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 |
|---|---|---|---|---|---|---|
res = self.__executeOperation(path,'exists') | res = self.__executeOperation( path, 'exists' ) | def __getBasePath(self,path): exists = False while not exists: res = self.__executeOperation(path,'exists') if not res['OK']: return res else: exists = res['Value'] if not exists: path = os.path.dirname(path) return S_OK(path) | 6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
15912,
12,
2890,
16,
803,
4672,
1704,
273,
1083,
1323,
486,
1704,
30,
400,
273,
365,
16186,
8837,
2988,
12,
589,
16,
296,
1808,
11,
262,
309,
486,
400,
3292,
3141,
3546,
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,
1001,
588,
15912,
12,
2890,
16,
803,
4672,
1704,
273,
1083,
1323,
486,
1704,
30,
400,
273,
365,
16186,
8837,
2988,
12,
589,
16,
296,
1808,
11,
262,
309,
486,
400,
3292,
3141,
3546,
30,... |
returns the ``User``. | returns ``False``. | def activate_user(self, activation_key): """ Validates an activation key and activates the corresponding ``User`` if valid. If the key is valid and has not expired, returns the ``User`` after activating. If the key is not valid or has expired, returns ``False``. If the key is valid but the ``User`` is already active... | 5bc8f95e12e51437fa7921cab36411e805643c90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9129/5bc8f95e12e51437fa7921cab36411e805643c90/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
67,
1355,
12,
2890,
16,
10027,
67,
856,
4672,
3536,
2364,
815,
392,
10027,
498,
471,
5981,
815,
326,
4656,
12176,
1299,
10335,
309,
923,
18,
225,
971,
326,
498,
353,
923,
471,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
67,
1355,
12,
2890,
16,
10027,
67,
856,
4672,
3536,
2364,
815,
392,
10027,
498,
471,
5981,
815,
326,
4656,
12176,
1299,
10335,
309,
923,
18,
225,
971,
326,
498,
353,
923,
471,
7... |
def ParseDepsFile(self, direct_reference): | def ParseDepsFile(self): | def ParseDepsFile(self, direct_reference): """No DEPS to parse for a .gclient file.""" raise gclient_utils.Error('Internal error') | f1eaec8c2c4cf43e6361b8b3b932641edd407cda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/f1eaec8c2c4cf43e6361b8b3b932641edd407cda/gclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
14430,
812,
12,
2890,
4672,
3536,
2279,
2030,
5857,
358,
1109,
364,
279,
263,
75,
2625,
585,
12123,
1002,
314,
2625,
67,
5471,
18,
668,
2668,
3061,
555,
6134,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2884,
14430,
812,
12,
2890,
4672,
3536,
2279,
2030,
5857,
358,
1109,
364,
279,
263,
75,
2625,
585,
12123,
1002,
314,
2625,
67,
5471,
18,
668,
2668,
3061,
555,
6134,
2,
-100,
-100,
-100,
... |
if not user: | if user: self.user = user else: | def _load_config(self, host, database, user, password): # grab the global config get_value = global_config.global_config.get_config_value | 5c915dee50292ae5990605c26d60a4063a7cf2c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/5c915dee50292ae5990605c26d60a4063a7cf2c0/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
1425,
12,
2890,
16,
1479,
16,
2063,
16,
729,
16,
2201,
4672,
468,
11086,
326,
2552,
642,
336,
67,
1132,
273,
2552,
67,
1425,
18,
6347,
67,
1425,
18,
588,
67,
1425,
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,
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,
945,
67,
1425,
12,
2890,
16,
1479,
16,
2063,
16,
729,
16,
2201,
4672,
468,
11086,
326,
2552,
642,
336,
67,
1132,
273,
2552,
67,
1425,
18,
6347,
67,
1425,
18,
588,
67,
1425,
67,
... |
pilotList = pList[ini:last] | pilotList = pList[ini:last] | def getPilotMonitorWeb(self,selectDict,sortList,startItem,maxItems): """ Get summary of the pilot job information in a standard structure """ resultDict = {} last_update = None if selectDict.has_key('LastUpdateTime'): last_update = selectDict['LastUpdateTime'] del selectDict['LastUpdateTime'] # Sorting instructions. ... | 4281b6ebd17e9e6456de007d4a03f9fe1ab6a236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4281b6ebd17e9e6456de007d4a03f9fe1ab6a236/PilotAgentsDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
22797,
7187,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
1719,
1779,
316,
279,
4529,
3695,
3536,
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,
1689,
22797,
7187,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
1719,
1779,
316,
279,
4529,
3695,
3536,
225... |
'hc_freetext':'test text to step 3', 'g-0-vocabulary':'DeCS', 'g-0-code':'C02', 'g-0-text':'Virus diseases', 's-0-vocabulary':'DeCS', 's-0-code':'C03.752.530', 's-0-text':'Malaria', | 'hc_freetext': 'test text to step 3', 'hc_freetext|pt-br': '', 'hc_freetext|es': '', 'g-TOTAL_FORMS': 1, 'g-INITIAL_FORMS': 0, 'g-0-vocabulary': 'DeCS', 'g-0-code': 'C02', 'g-0-text': 'Virus diseases', 'g-0-text|pt-br': 'Viroses', 'g-0-text|es': 'Virosis', 's-TOTAL_FORMS': 1, 's-INITIAL_FORMS': 0, 's-0-vocabulary': 'De... | def test_submit(self): self.client.login(username='admin',passowrd='qazwsx') response = self.client.post('/rg/step_3/1/',{ 'hc_freetext':'test text to step 3', 'g-0-vocabulary':'DeCS', 'g-0-code':'C02', 'g-0-text':'Virus diseases', 's-0-vocabulary':'DeCS', 's-0-code':'C03.752.530', 's-0-text':'Malaria', }) self.failUnl... | 54feda62d97b4827907d312ab81eef520083a307 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/54feda62d97b4827907d312ab81eef520083a307/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9297,
12,
2890,
4672,
365,
18,
2625,
18,
5819,
12,
5053,
2218,
3666,
2187,
5466,
543,
13623,
2218,
85,
1561,
4749,
92,
6134,
766,
273,
365,
18,
2625,
18,
2767,
2668,
19,
2687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9297,
12,
2890,
4672,
365,
18,
2625,
18,
5819,
12,
5053,
2218,
3666,
2187,
5466,
543,
13623,
2218,
85,
1561,
4749,
92,
6134,
766,
273,
365,
18,
2625,
18,
2767,
2668,
19,
2687... |
class ProdMgrConfiguration(dict): """ _ProdMgrConfiguration_ Configuation container for the ProdMgr | class ProdAgentConfiguration(dict): """ _ProdAgentConfiguration_ Configuation container for the ProdAgent | def loadProdMgrConfiguration(): """ _loadProdMgrConfiguration_ Util method to load the ProdMgrConfiguration from a location defined by the env var PRODMGR_CONFIG Returns a ProdMgrConfiguration object """ envVar = os.environ.get("PRODMGR_CONFIG", None) if envVar == None: msg = "Cannot load ProdMgr Configuration:\n" m... | 2e75e0b77d8fd3fb6b9c99147ca9e6610aa64f55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/2e75e0b77d8fd3fb6b9c99147ca9e6610aa64f55/Configuration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
30683,
9455,
1750,
13332,
3536,
389,
945,
30683,
9455,
1750,
67,
225,
3564,
707,
358,
1262,
326,
1186,
72,
9455,
1750,
628,
279,
2117,
2553,
635,
326,
1550,
569,
11770,
1212,
49,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
30683,
9455,
1750,
13332,
3536,
389,
945,
30683,
9455,
1750,
67,
225,
3564,
707,
358,
1262,
326,
1186,
72,
9455,
1750,
628,
279,
2117,
2553,
635,
326,
1550,
569,
11770,
1212,
49,
6... |
(r'L?"', String, 'string'), (r"L?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char), | (r'"', String, 'string'), | def _shortened_many(*words): return '|'.join(map(_shortened, words)) | c7ed1c140cd8203d359c69526f4f0032b52e2368 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6148/c7ed1c140cd8203d359c69526f4f0032b52e2368/other.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6620,
275,
329,
67,
9353,
30857,
3753,
4672,
327,
8030,
18,
5701,
12,
1458,
24899,
6620,
275,
329,
16,
4511,
3719,
225,
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,
389,
6620,
275,
329,
67,
9353,
30857,
3753,
4672,
327,
8030,
18,
5701,
12,
1458,
24899,
6620,
275,
329,
16,
4511,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
initialcount=185 | initialcount=187 | def initialize_glyphs(): global initial_glyphs, initialcount, count for number in initial_glyphs: toto="_00%02d" % int(number) initial_glyphs.insert(0,toto) initial_glyphs.remove(number) if font_name=="gregorio": glyphs_to_append=("_1025", "_2561") initialcount=185 elif font_name=="parmesan": glyphs_to_append=("_1025",... | 379d2cafc1b5e11d4f2e423df35c450ac58c2a0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7096/379d2cafc1b5e11d4f2e423df35c450ac58c2a0e/squarize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
67,
19426,
87,
13332,
2552,
2172,
67,
19426,
87,
16,
2172,
1883,
16,
1056,
364,
1300,
316,
2172,
67,
19426,
87,
30,
268,
6302,
1546,
67,
713,
9,
3103,
72,
6,
738,
509,
12,
2696... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
67,
19426,
87,
13332,
2552,
2172,
67,
19426,
87,
16,
2172,
1883,
16,
1056,
364,
1300,
316,
2172,
67,
19426,
87,
30,
268,
6302,
1546,
67,
713,
9,
3103,
72,
6,
738,
509,
12,
2696... |
Exactly one of pickle (a string containing a pickle) or file (the filename of a pickle) must be provided. EXAMPLES: | Exactly one of ``pickle`` (a string containing a pickle) or ``file`` (the filename of a pickle) must be provided. EXAMPLES:: | def explain_pickle(pickle=None, file=None, compress=True, **kwargs): r""" Explain a pickle. (That is, produce source code such that evaluating the code is equivalent to loading the pickle.) Feeding the result of explain_pickle to sage_eval should be totally equivalent to loading the pickle with cPickle. INPUTS: pick... | a4aad1557cdf06ed8562711534ca467dff85c855 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/a4aad1557cdf06ed8562711534ca467dff85c855/explain_pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19765,
67,
20847,
12,
20847,
33,
7036,
16,
585,
33,
7036,
16,
8099,
33,
5510,
16,
2826,
4333,
4672,
436,
8395,
1312,
7446,
279,
13379,
18,
225,
261,
18163,
353,
16,
11402,
1084,
981,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19765,
67,
20847,
12,
20847,
33,
7036,
16,
585,
33,
7036,
16,
8099,
33,
5510,
16,
2826,
4333,
4672,
436,
8395,
1312,
7446,
279,
13379,
18,
225,
261,
18163,
353,
16,
11402,
1084,
981,
4... |
if hasattr(ob, 'aq_base'): return ob.aq_base return ob | return getattr(ob, 'aq_base', ob) | def aq_base(ob, hasattr=hasattr): # Return the aq_base of an object. if hasattr(ob, 'aq_base'): return ob.aq_base return ob | caffc57c633e1357305c97c70b16eab181721275 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/caffc57c633e1357305c97c70b16eab181721275/Common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
279,
85,
67,
1969,
12,
947,
16,
3859,
33,
5332,
1747,
4672,
468,
2000,
326,
279,
85,
67,
1969,
434,
392,
733,
18,
327,
3869,
12,
947,
16,
296,
69,
85,
67,
1969,
2187,
3768,
13,
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,
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,
279,
85,
67,
1969,
12,
947,
16,
3859,
33,
5332,
1747,
4672,
468,
2000,
326,
279,
85,
67,
1969,
434,
392,
733,
18,
327,
3869,
12,
947,
16,
296,
69,
85,
67,
1969,
2187,
3768,
13,
225... |
self.previousPasswords.append(self.password) | if self.password is not None: self.previousPasswords.append(self.password) | def setPassword(self, password, passwordManagerName=None): self._checkDisallowedPreviousPassword(password) | 19bca3563087da3b70730bafe2c74e6715cc6ca0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9625/19bca3563087da3b70730bafe2c74e6715cc6ca0/principal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23753,
12,
2890,
16,
2201,
16,
2201,
1318,
461,
33,
7036,
4672,
365,
6315,
1893,
1669,
8151,
8351,
3913,
12,
3664,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23753,
12,
2890,
16,
2201,
16,
2201,
1318,
461,
33,
7036,
4672,
365,
6315,
1893,
1669,
8151,
8351,
3913,
12,
3664,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
re.compile ('(?:^|\\s+)((?:[A-Z]+[^\\s]*(?:$|\\s+))+)'), | re.compile ('(?:^|\\s+)(?:(?:([A-Z]+[^\\s]*)(?:$|\\s+))+)'), | def articulators_re (articulators): return re.compile ( '(?:^|\\s+)' '((?:%s))' '(?:$|\\s+)' % ')|(?:'.join (articulators) ) | e76704486fa375954a5ed9fe0e3914d2a8776afb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/e76704486fa375954a5ed9fe0e3914d2a8776afb/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3688,
335,
332,
3062,
67,
266,
261,
485,
335,
332,
3062,
4672,
327,
283,
18,
11100,
261,
296,
6503,
66,
26984,
87,
29169,
7747,
3680,
5319,
87,
13,
2506,
296,
6503,
8,
26984,
87,
29169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3688,
335,
332,
3062,
67,
266,
261,
485,
335,
332,
3062,
4672,
327,
283,
18,
11100,
261,
296,
6503,
66,
26984,
87,
29169,
7747,
3680,
5319,
87,
13,
2506,
296,
6503,
8,
26984,
87,
29169... |
recipeFiles = hg.getRecipe(scm.uri, scm.revision, subpath, cacheDir) | recipeFiles = hg.getRecipe(uri, scm.revision, subpath, cacheDir) | def loadTargets(self): ''' Locate source troves and yield a BobPackage for each of them. ''' | 959af55f367c3ba28c4eb33c02735b295c581708 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7644/959af55f367c3ba28c4eb33c02735b295c581708/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
9432,
12,
2890,
4672,
9163,
2851,
340,
1084,
23432,
3324,
471,
2824,
279,
605,
947,
2261,
364,
1517,
434,
2182,
18,
9163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
9432,
12,
2890,
4672,
9163,
2851,
340,
1084,
23432,
3324,
471,
2824,
279,
605,
947,
2261,
364,
1517,
434,
2182,
18,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if 'has_fulltext' in param: q_list.append('has_fulltext:%s' % param['has_fulltext']) q_list += ['%s:"%s"' % (k, param[k]) for k in facet_fields if k in param] | def run_solr_query(param = {}, rows=100, page=1, sort=None): q_list = [] if 'q' in param: q_param = param['q'].strip() else: q_param = None offset = rows * (page - 1) if q_param: if q_param == '*:*' or re_fields.match(q_param): q_list.append(q_param) else: isbn = read_isbn(q_param) if isbn: q_list.append('isbn:(%s)' % ... | 407b1af014a681a628570323c267e7795433f52c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/407b1af014a681a628570323c267e7795433f52c/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
22495,
67,
2271,
12,
891,
273,
10615,
2595,
33,
6625,
16,
1363,
33,
21,
16,
1524,
33,
7036,
4672,
1043,
67,
1098,
273,
5378,
309,
296,
85,
11,
316,
579,
30,
1043,
67,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22495,
67,
2271,
12,
891,
273,
10615,
2595,
33,
6625,
16,
1363,
33,
21,
16,
1524,
33,
7036,
4672,
1043,
67,
1098,
273,
5378,
309,
296,
85,
11,
316,
579,
30,
1043,
67,
891,
... | |
self.respond("150 FILE: %s" %resp) | self.respond("150 FILE: %s" %filename) | def ftp_STOU(self, line): """Store a file on the server with a unique name.""" | 6acd774ca12e273be29b34a624d9a639fbccd65d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/6acd774ca12e273be29b34a624d9a639fbccd65d/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
882,
26556,
12,
2890,
16,
980,
4672,
3536,
2257,
279,
585,
603,
326,
1438,
598,
279,
3089,
508,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
882,
26556,
12,
2890,
16,
980,
4672,
3536,
2257,
279,
585,
603,
326,
1438,
598,
279,
3089,
508,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def __call__(self, index): | def __call__(self, index, mir_rorp = None): | def __call__(self, index): """Given rpath, change permissions up to and including index""" old_index = self.current_index self.current_index = index if not index or index <= old_index: return self.restore_old(index) self.add_new(old_index, index) | e6698c92cb905f1cb657aec0ceca13ade2e8bb3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8033/e6698c92cb905f1cb657aec0ceca13ade2e8bb3c/restore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
770,
16,
312,
481,
67,
86,
280,
84,
273,
599,
4672,
3536,
6083,
436,
803,
16,
2549,
4371,
731,
358,
471,
6508,
770,
8395,
1592,
67,
1615,
273,
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,
1001,
1991,
972,
12,
2890,
16,
770,
16,
312,
481,
67,
86,
280,
84,
273,
599,
4672,
3536,
6083,
436,
803,
16,
2549,
4371,
731,
358,
471,
6508,
770,
8395,
1592,
67,
1615,
273,
365,
18,... |
payment_line() | payment_line() | def onchange_move_line(self, cr, uid, ids, move_line_id, payment_type, date_prefered, date_planned, currency=False, company_currency=False, context=None): # Adds account.move.line name to the payment line communication res = super(payment_line, self).onchange_move_line(cr, uid, ids, move_line_id, payment_type, date_pre... | ba55325fb28e4694031f3a8c2676d3ee24c64fe7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/ba55325fb28e4694031f3a8c2676d3ee24c64fe7/payment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8501,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3635,
67,
1369,
67,
350,
16,
5184,
67,
723,
16,
1509,
67,
1484,
586,
329,
16,
1509,
67,
412,
10041,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8501,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3635,
67,
1369,
67,
350,
16,
5184,
67,
723,
16,
1509,
67,
1484,
586,
329,
16,
1509,
67,
412,
10041,
16,
5... |
print format | def output_files(self): allfiles = [] for format in www.settings.RENDERING_RESULT_FORMATS: print format if format != 'csv' and os.path.exists(self.get_map_filepath(format)): allfiles.append((self.get_map_fileurl(format), _("%(title)s %(format)s Map") \ % { 'title' : self.maptitle, 'format': format.upper() } )) if os.pa... | e33179a11b174c4de85ff18c03aa65b981e694f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14904/e33179a11b174c4de85ff18c03aa65b981e694f6/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
2354,
12,
2890,
4672,
777,
2354,
273,
5378,
364,
740,
316,
8765,
18,
4272,
18,
25230,
1360,
67,
12289,
67,
7254,
55,
30,
309,
740,
480,
296,
6715,
11,
471,
1140,
18,
803,
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,
876,
67,
2354,
12,
2890,
4672,
777,
2354,
273,
5378,
364,
740,
316,
8765,
18,
4272,
18,
25230,
1360,
67,
12289,
67,
7254,
55,
30,
309,
740,
480,
296,
6715,
11,
471,
1140,
18,
803,
18... | |
def remove(self, name, ignoreError=True): | def remove(self, name, must_exist=True): | def remove(self, name, ignoreError=True): """Deletes the given series from the database""" if type(name) == type(""): name = [name] | e780a121cafdc2b96c39b9165ac8164fb607907a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/e780a121cafdc2b96c39b9165ac8164fb607907a/fame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
508,
16,
1297,
67,
7398,
33,
5510,
4672,
3536,
7551,
326,
864,
4166,
628,
326,
2063,
8395,
309,
618,
12,
529,
13,
422,
618,
2932,
6,
4672,
508,
273,
306,
529,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
508,
16,
1297,
67,
7398,
33,
5510,
4672,
3536,
7551,
326,
864,
4166,
628,
326,
2063,
8395,
309,
618,
12,
529,
13,
422,
618,
2932,
6,
4672,
508,
273,
306,
529,
65,... |
- ``unit`` | - ``unit`` | def base_units(unit): """ Converts unit to base SI units. INPUT: - ``unit`` OUTPUT: - `symbolic expression` EXAMPLES:: sage: sage.symbolic.units.base_units(units.length.foot) 381/1250*meter If unit is already a base unit, it just returns that unit:: sage: sage.symbolic.units.base_units(units.length.meter) meter... | ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
7705,
12,
4873,
4672,
3536,
20377,
2836,
358,
1026,
5705,
4971,
18,
225,
12943,
30,
225,
300,
12176,
4873,
10335,
225,
11550,
30,
225,
300,
1375,
9009,
12164,
2652,
68,
225,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
7705,
12,
4873,
4672,
3536,
20377,
2836,
358,
1026,
5705,
4971,
18,
225,
12943,
30,
225,
300,
12176,
4873,
10335,
225,
11550,
30,
225,
300,
1375,
9009,
12164,
2652,
68,
225,
56... |
self.stopId = Utils.AddToolButtonBmpIS(self, self.toolbar, | self.stopId = Utils.AddToolButtonBmpIS(self, self.toolbar, | def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight)) | 872f754eafee36b7b9b20954604570707e5cd36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/872f754eafee36b7b9b20954604570707e5cd36c/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2110,
273,
599,
4672,
324,
1966,
18,
38,
1966,
16186,
2738,
972,
12,
2890,
13,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
938,
18,
9177,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2110,
273,
599,
4672,
324,
1966,
18,
38,
1966,
16186,
2738,
972,
12,
2890,
13,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
938,
18,
9177,
16,
... |
self.draw_image(image, (x0 + hskip + addx, y0 + vskip + addy)) | self.draw_image(image, (x0 + addx, y0 + addy)) | def update_content(self): """ update the listing area """ | 89d3a48576954c634545f1e0e240fa334f6245a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/89d3a48576954c634545f1e0e240fa334f6245a2/listing_area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
inputPorts += visibleOptionalPorts | inputPorts += visibleOptionalInputPorts | def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | bb5e4e6e1f45b2acc9dd36ba0e6d8b580347ac97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/bb5e4e6e1f45b2acc9dd36ba0e6d8b580347ac97/pipeline_view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
3120,
12,
2890,
16,
1605,
4672,
3536,
3875,
3120,
12,
2978,
30,
5924,
13,
317,
599,
1000,
731,
326,
761,
358,
3037,
326,
1123,
316,
296,
2978,
11,
225,
3536,
468,
2315,
1605,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
3120,
12,
2890,
16,
1605,
4672,
3536,
3875,
3120,
12,
2978,
30,
5924,
13,
317,
599,
1000,
731,
326,
761,
358,
3037,
326,
1123,
316,
296,
2978,
11,
225,
3536,
468,
2315,
1605,
112... |
if package != "": | if package: | def check_package (self, package, package_dir): | bd2cc520622c423aa1640b469928b01b28d2a4e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bd2cc520622c423aa1640b469928b01b28d2a4e1/build_py.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5610,
261,
2890,
16,
2181,
16,
2181,
67,
1214,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5610,
261,
2890,
16,
2181,
16,
2181,
67,
1214,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def window_configure(self, index, cnf={}, **kw): | def window_configure(self, index, cnf=None, **kw): | def window_configure(self, index, cnf={}, **kw): """Configure an embedded window at INDEX.""" if type(cnf) == StringType: x = self.tk.split(self.tk.call( self._w, 'window', 'configure', index, '-'+cnf)) return (x[0][1:],) + x[1:] self.tk.call( (self._w, 'window', 'configure', index) + self._options(cnf, kw)) | 7d1fd40e79192369cdb553ef0c7864157048d762 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7d1fd40e79192369cdb553ef0c7864157048d762/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
14895,
12,
2890,
16,
770,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
3536,
11207,
392,
7488,
2742,
622,
12425,
12123,
309,
618,
12,
10305,
74,
13,
422,
31570,
30,
619,
273,
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,
2742,
67,
14895,
12,
2890,
16,
770,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
3536,
11207,
392,
7488,
2742,
622,
12425,
12123,
309,
618,
12,
10305,
74,
13,
422,
31570,
30,
619,
273,
3... |
self.moveOne(page,newPageTitle,self.delete) | self.moveOne(page, newPageTitle) | def treat(self, page): # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<"% page.title()) if self.skipredirects and page.isRedirectPage(): wikipedia.output(u'Page %s is a redirect; skipping.' % page.title()) return pagetitle = pa... | fdaa4fded7058caed04ad186ca8423116740a471 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/fdaa4fded7058caed04ad186ca8423116740a471/movepages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1363,
4672,
468,
9674,
326,
2077,
434,
326,
1363,
732,
4565,
5960,
603,
18,
468,
31386,
326,
2077,
316,
5405,
1802,
18,
21137,
18,
2844,
12,
89,
12691,
82,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1363,
4672,
468,
9674,
326,
2077,
434,
326,
1363,
732,
4565,
5960,
603,
18,
468,
31386,
326,
2077,
316,
5405,
1802,
18,
21137,
18,
2844,
12,
89,
12691,
82,
64,
82,... |
text=TLabel(subpanel, style='FlatLabel', text=_("(c)2003-2008 sK1 Team")) | text=TLabel(subpanel, style='FlatLabel', text="(c)2003-%s sK1 Team"%(year)) | def build_tab_about(self): panel = TFrame(self.root, style='FlatFrame', borderwidth = 10) self.nb.add(panel, text='About application') | cb41970ecca19f52cc5b4f60403ec208ca33ac49 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/cb41970ecca19f52cc5b4f60403ec208ca33ac49/aboutdlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
7032,
67,
21071,
12,
2890,
4672,
6594,
273,
399,
3219,
12,
2890,
18,
3085,
16,
2154,
2218,
16384,
3219,
2187,
5795,
2819,
273,
1728,
13,
365,
18,
6423,
18,
1289,
12,
13916,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
7032,
67,
21071,
12,
2890,
4672,
6594,
273,
399,
3219,
12,
2890,
18,
3085,
16,
2154,
2218,
16384,
3219,
2187,
5795,
2819,
273,
1728,
13,
365,
18,
6423,
18,
1289,
12,
13916,
1... |
ReportLabBlue = HexColor(0x4e5688) | ReportLabBlueOLD = HexColor(0x4e5688) ReportLabBlue = HexColor(0x00337f) ReportLabBluePCMYK = PCMYKColor(100,65,0,30,spotName='Pantone 288U') | def linearlyInterpolatedColor(c0, c1, x0, x1, x): """ Linearly interpolates colors. Can handle RGB, CMYK and PCMYK colors - give ValueError if colours aren't the same. Doesn't currently handle 'Spot Color Interpolation'. """ if c0.__class__ != c1.__class__: raise ValueError, "Color classes must be the same for interpo... | bced316f2c85db8348a270cb0bdd42e0b2037976 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/bced316f2c85db8348a270cb0bdd42e0b2037976/colors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9103,
715,
15665,
690,
2957,
12,
71,
20,
16,
276,
21,
16,
619,
20,
16,
619,
21,
16,
619,
4672,
3536,
13921,
715,
7326,
815,
5740,
18,
4480,
1640,
11510,
16,
15871,
61,
47,
471,
453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9103,
715,
15665,
690,
2957,
12,
71,
20,
16,
276,
21,
16,
619,
20,
16,
619,
21,
16,
619,
4672,
3536,
13921,
715,
7326,
815,
5740,
18,
4480,
1640,
11510,
16,
15871,
61,
47,
471,
453,
... |
if vars.get('modules', True): | if image in (image_type_modulesextra, image_type_modulesinline): makeflags['MODULES'] = True | def do_flavour_packages(self, packages, makefile, arch, subarch, flavour, vars, makeflags, extra): image = self.templates["control.image"] headers = self.templates["control.headers"] modules = self.templates["control.modules"] image_latest = self.templates["control.image.latest"] headers_latest = self.templates["contro... | 84673b9dcffa5c3bbe1dff1662cbf72316127c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5794/84673b9dcffa5c3bbe1dff1662cbf72316127c2d/gencontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2242,
842,
477,
67,
10308,
12,
2890,
16,
5907,
16,
1221,
768,
16,
6637,
16,
720,
991,
16,
31227,
477,
16,
4153,
16,
1221,
7133,
16,
2870,
4672,
1316,
273,
365,
18,
8502,
961... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2242,
842,
477,
67,
10308,
12,
2890,
16,
5907,
16,
1221,
768,
16,
6637,
16,
720,
991,
16,
31227,
477,
16,
4153,
16,
1221,
7133,
16,
2870,
4672,
1316,
273,
365,
18,
8502,
961... |
else: if (entry_name=='manage' or entry_name[:7]=='manage_'): roles='manage', | def publish(self, module_name, after_list, published='web_objects', | ce36b9e307df69ea62df6d1e120ffd941cc06920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/ce36b9e307df69ea62df6d1e120ffd941cc06920/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
dim=extract['train_idx'].shape[0] | dim=extract['train_idx'].shape[0] | def get_split_image(fname): extract = {} try: h5 = h5py.File(fname, 'r') except: return extract dsets = ['train_idx', 'test_idx'] for dset in dsets: path = '/task/' + dset if path in h5: extract[dset] = h5[path][...] h5.close() if len(extract['train_idx'].shape)==1: dim=1 else: dim=extract['train_idx'].shape[0] imag... | 03ecd5943db4f7f975ba7af40bdff84d0e42a047 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/03ecd5943db4f7f975ba7af40bdff84d0e42a047/task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4939,
67,
2730,
12,
12749,
4672,
2608,
273,
2618,
775,
30,
366,
25,
273,
366,
25,
2074,
18,
812,
12,
12749,
16,
296,
86,
6134,
1335,
30,
327,
2608,
225,
302,
4424,
273,
1022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4939,
67,
2730,
12,
12749,
4672,
2608,
273,
2618,
775,
30,
366,
25,
273,
366,
25,
2074,
18,
812,
12,
12749,
16,
296,
86,
6134,
1335,
30,
327,
2608,
225,
302,
4424,
273,
1022... |
(loc >= len(instring)-self.matchLen or instring[loc+self.matchLen].upper() not in self.identChars) ): | (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen].upper() not in self.identChars) and (loc == 0 or instring[loc-1].upper() not in self.identChars) ): | def parseImpl( self, instring, loc, doActions=True ): if self.caseless: if ( (instring[ loc:loc+self.matchLen ].upper() == self.caselessmatch) and (loc >= len(instring)-self.matchLen or instring[loc+self.matchLen].upper() not in self.identChars) ): return loc+self.matchLen, self.match else: if (instring[loc] == self.fi... | 66f022f05f4c4a00bc687c992ac5f603638b7d24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/66f022f05f4c4a00bc687c992ac5f603638b7d24/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
309,
365,
18,
6349,
12617,
30,
309,
261,
261,
267,
1080,
63,
1515,
30,
1829,
15,
2890,
18,
1916,
2891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
309,
365,
18,
6349,
12617,
30,
309,
261,
261,
267,
1080,
63,
1515,
30,
1829,
15,
2890,
18,
1916,
2891,... |
return self._do(lambda child, child_pos: None) | def ignore_child(child, child_pos, child_size): pass return self._do(ignore_child) | def size(self): return self._do(lambda child, child_pos: None) | 1519d15b2c4d33d337c85fb7237e78275b96f003 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5406/1519d15b2c4d33d337c85fb7237e78275b96f003/Box.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
12,
2890,
4672,
327,
365,
6315,
2896,
12,
14661,
1151,
16,
1151,
67,
917,
30,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
963,
12,
2890,
4672,
327,
365,
6315,
2896,
12,
14661,
1151,
16,
1151,
67,
917,
30,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
wait_for_pid(self.proc.pid) | def test_cmdline(self): self.proc = subprocess.Popen([PYTHON, "-E"], stdout=DEVNULL, stderr=DEVNULL) wait_for_pid(self.proc.pid) self.assertEqual(psutil.Process(self.proc.pid).cmdline, [PYTHON, "-E"]) | 32b801095b8c7f65efeff8217bb6a2c05128bc00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7296/32b801095b8c7f65efeff8217bb6a2c05128bc00/test_psutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4172,
1369,
12,
2890,
4672,
365,
18,
9381,
273,
6652,
18,
52,
3190,
3816,
16235,
20131,
16,
3701,
41,
6,
6487,
3909,
33,
15301,
8560,
16,
4514,
33,
15301,
8560,
13,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4172,
1369,
12,
2890,
4672,
365,
18,
9381,
273,
6652,
18,
52,
3190,
3816,
16235,
20131,
16,
3701,
41,
6,
6487,
3909,
33,
15301,
8560,
16,
4514,
33,
15301,
8560,
13,
365,
18,
... | |
bytes = self.cube_io.getBytesFromArray(band, swap) | bytes = self.cube_io.getBytesFromArray(band, endian) | def iterRawBIP(self, swap): # bands vary fastest, then samples, then lines for i in range(self.lines): band = self.cube_io.getFocalPlaneRaw(i, use_progress=False).transpose() bytes = self.cube_io.getBytesFromArray(band, swap) yield bytes | 76fd4dd2813de31275bd61bfe7f8a3aa3c2ca966 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/76fd4dd2813de31275bd61bfe7f8a3aa3c2ca966/cube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
4809,
38,
2579,
12,
2890,
16,
7720,
4672,
468,
18960,
23674,
4797,
395,
16,
1508,
5216,
16,
1508,
2362,
364,
277,
316,
1048,
12,
2890,
18,
3548,
4672,
8937,
273,
365,
18,
21186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
4809,
38,
2579,
12,
2890,
16,
7720,
4672,
468,
18960,
23674,
4797,
395,
16,
1508,
5216,
16,
1508,
2362,
364,
277,
316,
1048,
12,
2890,
18,
3548,
4672,
8937,
273,
365,
18,
21186,
... |
STRING 'r"abc"' (1, 4) (1, 11) OP '+' (1, 12) (1, 13) STRING 'r"ABC"' (1, 14) (1, 21) OP '+' (1, 22) (1, 23) STRING 'R"ABC"' (1, 24) (1, 31) OP '+' (1, 32) (1, 33) STRING 'R"ABC"' (1, 34) (1, 41) | STRING 'r"abc"' (1, 4) (1, 10) OP '+' (1, 11) (1, 12) STRING 'r"ABC"' (1, 13) (1, 19) OP '+' (1, 20) (1, 21) STRING 'R"ABC"' (1, 22) (1, 28) OP '+' (1, 29) (1, 30) STRING 'R"ABC"' (1, 31) (1, 37) | ... " def y(m): # A whitespace after the colon\\n" | 1fbae9878cfa20d661d49e29e47c6085f32923a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1fbae9878cfa20d661d49e29e47c6085f32923a3/test_tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.set_size_scale_value(size_units) | self.size_scale.set_value(size_units) | def set_size_new(self, exts): size = exts if size > self.size_upper: size = self.size_upper elif size < self.size_lower: size = self.size_lower self.size_new = size size_units = self.__get_num(size) self.size_entry.set_text(str(size_units)) self.set_size_scale_value(size_units) self.update_remaining_space_label() | 4c8278f583fa1a9df0785931facf799ec839c696 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/4c8278f583fa1a9df0785931facf799ec839c696/InputController.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1467,
67,
2704,
12,
2890,
16,
20793,
4672,
963,
273,
20793,
309,
963,
405,
365,
18,
1467,
67,
5797,
30,
963,
273,
365,
18,
1467,
67,
5797,
1327,
963,
411,
365,
18,
1467,
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,
444,
67,
1467,
67,
2704,
12,
2890,
16,
20793,
4672,
963,
273,
20793,
309,
963,
405,
365,
18,
1467,
67,
5797,
30,
963,
273,
365,
18,
1467,
67,
5797,
1327,
963,
411,
365,
18,
1467,
67,... |
res['account_id']=data_account['value']['account_id'] | def _rec_enc_cash(self, cr, uid, data, context): pool_link= pooler.get_pool(cr.dbname) pool_link_statement=pool_link.get('account.bank.statement') statement_ids=pool_link_statement.search(cr,uid,[('date','=',time.strftime('%Y-%m-%d')),('state','=','draft')]) message='Your Cash Entries Have Been Encoded to Bank Stateme... | 45fe2c603e106a9a39e1e1fdc63f84c74e30bedd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/45fe2c603e106a9a39e1e1fdc63f84c74e30bedd/cci_encode_cash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
1331,
67,
71,
961,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
225,
2845,
67,
1232,
33,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
2845,
67,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
1331,
67,
71,
961,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
225,
2845,
67,
1232,
33,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
2845,
67,
12... | |
user_id | system | notification id ---------+--------+-------------------------- joe_user | jabber | ON_NEW_COMMENT joe_user | email | ON_ZINE_UPGRADE_AVAILABLE joe_user | sms | ON_SERVER_EXPLODED | user_id | notification_system | notification id ---------+---------------------+-------------------------- 1 | jabber | ON_NEW_COMMENT 1 | email | ON_ZINE_UPGRADE_AVAILABLE 1 | sms | ON_SERVER_EXPLODED | def mail_from_notification(self, message): title = message.title.to_text() details = self.find_details(message.details) longtext = self.textify(message.longtext, collect_urls=True) actions = self.find_actions(message.actions) return render_template('notifications/email.txt', title=title, details=details, longtext=longt... | 0f10eaf7f1168a7e900e1f2290b8b87fdc424a3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/0f10eaf7f1168a7e900e1f2290b8b87fdc424a3d/notifications.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4791,
67,
2080,
67,
9927,
12,
2890,
16,
883,
4672,
2077,
273,
883,
18,
2649,
18,
869,
67,
955,
1435,
3189,
273,
365,
18,
4720,
67,
6395,
12,
2150,
18,
6395,
13,
1525,
955,
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,
4791,
67,
2080,
67,
9927,
12,
2890,
16,
883,
4672,
2077,
273,
883,
18,
2649,
18,
869,
67,
955,
1435,
3189,
273,
365,
18,
4720,
67,
6395,
12,
2150,
18,
6395,
13,
1525,
955,
273,
365,
... |
Alternative output array in which to place the result. It must have the same shape as the expected output but the type will be cast if necessary. | Alternative output array in which to place the result. It must have the same shape as the expected output but the type will be cast if necessary. | def std(a, axis=None, dtype=None, out=None): """Compute the standard deviation along the specified axis. *Description* Returns the standard deviation of the array elements, a measure of the spread of a distribution. The standard deviation is computed for the flattened array by default, otherwise over the specified ax... | fe2f8b811f8f87475f51396eca9a848d2746ab2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/fe2f8b811f8f87475f51396eca9a848d2746ab2b/fromnumeric.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2044,
12,
69,
16,
2654,
33,
7036,
16,
3182,
33,
7036,
16,
596,
33,
7036,
4672,
3536,
7018,
326,
4529,
17585,
7563,
326,
1269,
2654,
18,
225,
380,
3291,
14,
225,
2860,
326,
4529,
17585,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2044,
12,
69,
16,
2654,
33,
7036,
16,
3182,
33,
7036,
16,
596,
33,
7036,
4672,
3536,
7018,
326,
4529,
17585,
7563,
326,
1269,
2654,
18,
225,
380,
3291,
14,
225,
2860,
326,
4529,
17585,... |
l_emails.append(node.administrator_email) | l_emails.extend(node.administrator_email.split(',')) | def getMaintainersEmails(self, node): #returns a list of emails for given folder until the site object l_emails = [] auth_tool = self.getAuthenticationTool() if node is self: return l_emails else: while 1: if node == self: l_emails.append(node.administrator_email) break if hasattr(node, 'maintainer_email'): if node.mai... | 9f37ec0ff008c2f503116d06ea3d60d9317d254e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/9f37ec0ff008c2f503116d06ea3d60d9317d254e/NySite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2108,
1598,
8234,
26614,
12,
2890,
16,
756,
4672,
468,
6154,
279,
666,
434,
14255,
364,
864,
3009,
3180,
326,
2834,
733,
328,
67,
22762,
273,
5378,
1357,
67,
6738,
273,
365,
18,
588,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2108,
1598,
8234,
26614,
12,
2890,
16,
756,
4672,
468,
6154,
279,
666,
434,
14255,
364,
864,
3009,
3180,
326,
2834,
733,
328,
67,
22762,
273,
5378,
1357,
67,
6738,
273,
365,
18,
588,
6... |
es.load('gungame/included_addons/gg_warmup_round') | es.server.queuecmd('es_xload gungame/included_addons/gg_warmup_round') | def gg_win(event_var): global countBombDeathAsSuicide # Get player info userid = int(event_var['winner']) index = gungamelib.getPlayer(userid).index playerName = gungamelib.getPlayer(userid).name # Game is over gungamelib.setGlobal('gameOver', 1) # Create a variable to prevent bomb explosion deaths from counting a s... | 98ad48f336a7999f1446f7427431cbb87ef92a48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4575/98ad48f336a7999f1446f7427431cbb87ef92a48/gungame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29758,
67,
8082,
12,
2575,
67,
1401,
4672,
2552,
1056,
38,
16659,
758,
421,
1463,
17072,
335,
831,
225,
468,
968,
7291,
1123,
6709,
273,
509,
12,
2575,
67,
1401,
3292,
91,
7872,
19486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29758,
67,
8082,
12,
2575,
67,
1401,
4672,
2552,
1056,
38,
16659,
758,
421,
1463,
17072,
335,
831,
225,
468,
968,
7291,
1123,
6709,
273,
509,
12,
2575,
67,
1401,
3292,
91,
7872,
19486,
... |
self.index_list = range(0,lp_new) | def get_next_media(self): | e5ceb2dd324130917f21293db926c014038e4702 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/e5ceb2dd324130917f21293db926c014038e4702/deefuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
5829,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
5829,
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,
... | |
if info == None or (info['status'] != 304 and info['status'] != 200): | if info == None or (info['status'] != 304 and info['status'] != 200) or info['content-type'].startswith('text'): | def updateIconCache (self, url, info): self.dbItem.confirmDBThread() | 8ae7d7762268f39432634dd8d897313dea024e49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/8ae7d7762268f39432634dd8d897313dea024e49/iconcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
5554,
1649,
261,
2890,
16,
880,
16,
1123,
4672,
365,
18,
1966,
1180,
18,
10927,
2290,
3830,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5554,
1649,
261,
2890,
16,
880,
16,
1123,
4672,
365,
18,
1966,
1180,
18,
10927,
2290,
3830,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
local_port=None, log=None) : | local_port=None, log=None, intercept_output=True) : | def __init__ (self, command, program_id, timeout, cache_requests=False, local_port=None, log=None) : adopt_init_args(self, locals()) self._process = None self._server = None self.initialize_server() | 7fa4f9c53b20fc1fc9f0a2b2509c49a9f9056261 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/7fa4f9c53b20fc1fc9f0a2b2509c49a9f9056261/xmlrpc_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1296,
16,
5402,
67,
350,
16,
2021,
16,
1247,
67,
11420,
33,
8381,
16,
1191,
67,
655,
33,
7036,
16,
613,
33,
7036,
16,
10883,
67,
2844,
33,
5510,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1296,
16,
5402,
67,
350,
16,
2021,
16,
1247,
67,
11420,
33,
8381,
16,
1191,
67,
655,
33,
7036,
16,
613,
33,
7036,
16,
10883,
67,
2844,
33,
5510,
13,
... |
for x in wobj: cmd=cmd+" "+x; | for x in wobj: cmd=cmd+" "+x | def CompileLIB(lib=0, obj=[], opts=[]): if (lib==0): sys.exit("syntax error in CompileLIB directive"); if (COMPILER=="MSVC7"): wlib = "built\\lib\\" + lib wobj = xpaths("built\\tmp\\",obj,"") ALLTARGETS.append(wlib) if (older(wlib, wobj)): cmd = 'lib.exe /nologo /OUT:'+wlib; if (OPTIMIZE==4): cmd = cmd + " /LTCG " for... | aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
14484,
12,
2941,
33,
20,
16,
1081,
22850,
6487,
1500,
33,
8526,
4672,
309,
261,
2941,
631,
20,
4672,
2589,
18,
8593,
2932,
14308,
555,
316,
16143,
14484,
8655,
8863,
225,
309,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
14484,
12,
2941,
33,
20,
16,
1081,
22850,
6487,
1500,
33,
8526,
4672,
309,
261,
2941,
631,
20,
4672,
2589,
18,
8593,
2932,
14308,
555,
316,
16143,
14484,
8655,
8863,
225,
309,
261... |
nr_common = len(reduce(sets.Set.intersection, \ [sets.Set(c1[r]), sets.Set(c2[c]), sets.Set(c3[s])])) | nr_common = len(reduce(set.intersection, \ [set(c1[r]), set(c2[c]), set(c3[s])])) | def tau_to_bitrade(t1, t2, t3): """ Given permutations t1, t2, t3 that represent a latin bitrade, convert them to an explicit latin bitrade (T1, T2). The result is unique up to isotopism. EXAMPLE:: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,2,3,4) ) sage: y... | 00935113886301953e99e48abcc831b9cfdc636e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/00935113886301953e99e48abcc831b9cfdc636e/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
67,
869,
67,
3682,
354,
323,
12,
88,
21,
16,
268,
22,
16,
268,
23,
4672,
3536,
16803,
26468,
268,
21,
16,
268,
22,
16,
268,
23,
716,
2406,
279,
30486,
2831,
354,
323,
16,
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,
12284,
67,
869,
67,
3682,
354,
323,
12,
88,
21,
16,
268,
22,
16,
268,
23,
4672,
3536,
16803,
26468,
268,
21,
16,
268,
22,
16,
268,
23,
716,
2406,
279,
30486,
2831,
354,
323,
16,
17... |
return None | return None | def getInitiativesEvents(self, folder=None): """returns a list with events related with a folder inside the Initiatives folder""" try: search_keywords = u' or '.join((folder.getLocalProperty('keywords', 'en')+' '+folder.getLocalProperty('title', 'en')).split()) expr = 'self.getCatalogedObjects(meta_type=\'%s\', approve... | 9bafd90013beef4170a14ef742a93e7bdabaa85c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/9bafd90013beef4170a14ef742a93e7bdabaa85c/SEMIDESite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26458,
77,
8785,
3783,
12,
2890,
16,
3009,
33,
7036,
4672,
3536,
6154,
279,
666,
598,
2641,
3746,
598,
279,
3009,
4832,
326,
4378,
77,
8785,
3009,
8395,
775,
30,
1623,
67,
11771,
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,
26458,
77,
8785,
3783,
12,
2890,
16,
3009,
33,
7036,
4672,
3536,
6154,
279,
666,
598,
2641,
3746,
598,
279,
3009,
4832,
326,
4378,
77,
8785,
3009,
8395,
775,
30,
1623,
67,
11771,
273,
... |
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. | 0eb4070e28a5423ec6b12fc4236fdfa03b4e3060 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0eb4070e28a5423ec6b12fc4236fdfa03b4e3060/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,
... |
elif generation >= self._maxiter: | elif self.generations >= self._maxiter: | def Solve(self, costfunction, termination, sigint_callback=None, EvaluationMonitor=Null, StepMonitor=Null, ExtraArgs=(), **kwds): """Minimize a function using differential evolution. | 91a03a53045aaa0de9cb92ab63f2cecc0481af16 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8935/91a03a53045aaa0de9cb92ab63f2cecc0481af16/differential_evolution.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
348,
5390,
12,
2890,
16,
6991,
915,
16,
19650,
16,
3553,
474,
67,
3394,
33,
7036,
16,
17340,
7187,
33,
2041,
16,
8693,
7187,
33,
2041,
16,
13592,
2615,
33,
9334,
2826,
25577,
4672,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
348,
5390,
12,
2890,
16,
6991,
915,
16,
19650,
16,
3553,
474,
67,
3394,
33,
7036,
16,
17340,
7187,
33,
2041,
16,
8693,
7187,
33,
2041,
16,
13592,
2615,
33,
9334,
2826,
25577,
4672,
353... |
site = ceMap[ce] | site = ceMap[ce] | def getPilotSummaryWeb(self,selectDict,sortList,startItem,maxItems): """ Get summary of the pilot jobs status by CE/site in a standard structure """ | 4281b6ebd17e9e6456de007d4a03f9fe1ab6a236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4281b6ebd17e9e6456de007d4a03f9fe1ab6a236/PilotAgentsDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
22797,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
6550,
1267,
635,
29538,
19,
4256,
316,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
22797,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
6550,
1267,
635,
29538,
19,
4256,
316,
279,... |
logStatusMsg( u"Warning: %s" % unicode(message), 1 ) | logStatusMsg( u"Warning: %s" % unicodeC(message), 1 ) | def main( ): global _runOnce getConfig(filename=configFile) if os.getcwd() != getConfig()['global']['workingDir'] or os.getcwd() != os.path.realpath( getConfig()['global']['workingDir'] ): os.chdir(getConfig()['global']['workingDir']) if isRunning() and os.name != 'nt': logStatusMsg('RSSDler is already running. exiting... | 15efa811c3a3c7e375db44557ec2cc39fdd58d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/15efa811c3a3c7e375db44557ec2cc39fdd58d98/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
262,
30,
2552,
389,
2681,
12212,
4367,
12,
3459,
33,
1425,
812,
13,
309,
1140,
18,
588,
11089,
1435,
480,
4367,
1435,
3292,
6347,
21712,
20478,
1621,
3546,
578,
1140,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
262,
30,
2552,
389,
2681,
12212,
4367,
12,
3459,
33,
1425,
812,
13,
309,
1140,
18,
588,
11089,
1435,
480,
4367,
1435,
3292,
6347,
21712,
20478,
1621,
3546,
578,
1140,
18,
588,
... |
evt.Skip() class NeXTTest(wx.Panel, debugmixin): """Control to search through the MPD database to add songs to the playlist. Displays genre, artist, album, and songs. """ debuglevel = 0 def __init__(self, parent): wx.Panel.__init__(self, parent) self.default_font = self.GetFont() self.font = wx.Font(8, self.default_... | def OnListSelect(self, evt): list = evt.GetEventObject() idx = self.findLevel(list) if idx == -1: # list not found evt.Skip() return | 917c8b62dd961ff22fc73f7d540cf48f7a809f8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/917c8b62dd961ff22fc73f7d540cf48f7a809f8e/nextpanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
682,
3391,
12,
2890,
16,
6324,
4672,
666,
273,
6324,
18,
967,
1133,
921,
1435,
2067,
273,
365,
18,
4720,
2355,
12,
1098,
13,
309,
2067,
422,
300,
21,
30,
468,
666,
486,
1392,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
682,
3391,
12,
2890,
16,
6324,
4672,
666,
273,
6324,
18,
967,
1133,
921,
1435,
2067,
273,
365,
18,
4720,
2355,
12,
1098,
13,
309,
2067,
422,
300,
21,
30,
468,
666,
486,
1392,
6... | |
"""Open the pty slave and acquire the controlling terminal. Return the file descriptor. Linux version.""" | """slave_open(tty_name) -> slave_fd Open the pty slave and acquire the controlling terminal, returning opened filedescriptor. Deprecated, use openpty() instead.""" | def slave_open(tty_name): """Open the pty slave and acquire the controlling terminal. Return the file descriptor. Linux version.""" # (Should be universal? --Guido) return os.open(tty_name, FCNTL.O_RDWR) | 6d951f735b4c1c2eb40969ba36833572e3d1105e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6d951f735b4c1c2eb40969ba36833572e3d1105e/pty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11735,
67,
3190,
12,
5512,
67,
529,
4672,
3536,
3678,
326,
293,
4098,
11735,
471,
10533,
326,
3325,
2456,
8651,
18,
2000,
326,
585,
4950,
18,
225,
13318,
1177,
12123,
468,
261,
14309,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11735,
67,
3190,
12,
5512,
67,
529,
4672,
3536,
3678,
326,
293,
4098,
11735,
471,
10533,
326,
3325,
2456,
8651,
18,
2000,
326,
585,
4950,
18,
225,
13318,
1177,
12123,
468,
261,
14309,
50... |
l.append('<li>In %s</li>'%esc(str(ti))) | l.append(_('<li>In %s</li>') % esc(str(ti))) | def pt_html(context=5): esc = cgi.escape l = ['<h1>Templating Error</h1>', '<p><b>%s</b>: %s</p>'%(esc(str(sys.exc_type)), esc(str(sys.exc_value))), '<p class="help">Debugging information follows</p>', '<ol>',] from roundup.cgi.PageTemplates.Expressions import TraversalError t = inspect.trace(context) t.reverse() for f... | f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4/cgitb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5818,
67,
2620,
12,
2472,
33,
25,
4672,
2904,
273,
276,
10052,
18,
6939,
328,
273,
10228,
32,
76,
21,
34,
26033,
1776,
1068,
1757,
76,
21,
1870,
16,
2368,
84,
4438,
70,
9822,
87,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5818,
67,
2620,
12,
2472,
33,
25,
4672,
2904,
273,
276,
10052,
18,
6939,
328,
273,
10228,
32,
76,
21,
34,
26033,
1776,
1068,
1757,
76,
21,
1870,
16,
2368,
84,
4438,
70,
9822,
87,
175... |
raise socket.error, why | raise | def send(self, data): try: result = self.socket.send(data) return result except socket.error, why: if why[0] == EWOULDBLOCK: return 0 else: raise socket.error, why return 0 | 396297d278d50670ce25f4f04758b5d6dbccf7eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/396297d278d50670ce25f4f04758b5d6dbccf7eb/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
775,
30,
563,
273,
365,
18,
7814,
18,
4661,
12,
892,
13,
327,
563,
1335,
2987,
18,
1636,
16,
11598,
30,
309,
11598,
63,
20,
65,
422,
512,
59,
51,
150... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
775,
30,
563,
273,
365,
18,
7814,
18,
4661,
12,
892,
13,
327,
563,
1335,
2987,
18,
1636,
16,
11598,
30,
309,
11598,
63,
20,
65,
422,
512,
59,
51,
150... |
gLogger.debug("StageRequest.__getStageSubmittedReplicas: Obtained %s StageSubmitted replicas(s) to process." % len(res['Value'])) | gLogger.debug("StageRequest.__getStageSubmittedReplicas: Obtained %s StageSubmitted replicas(s) to process." % len(res['Value'])) | def __getStageSubmittedReplicas(self): """ This obtains the StageSubmitted replicas from the Replicas table and the RequestID from the StageRequests table """ res = self.stagerClient.getStageSubmittedReplicas() if not res['OK']: gLogger.error("StageRequest.__getStageSubmittedReplicas: Failed to get replicas with StageS... | c369e1c855a278e3d1d127ef357de87f32215399 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c369e1c855a278e3d1d127ef357de87f32215399/StageMonitorAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
8755,
28882,
17248,
12,
2890,
4672,
3536,
1220,
3768,
16598,
326,
16531,
28882,
21545,
628,
326,
31222,
1014,
471,
326,
1567,
734,
628,
326,
16531,
6421,
1014,
3536,
400,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
8755,
28882,
17248,
12,
2890,
4672,
3536,
1220,
3768,
16598,
326,
16531,
28882,
21545,
628,
326,
31222,
1014,
471,
326,
1567,
734,
628,
326,
16531,
6421,
1014,
3536,
400,
273,
3... |
drawing.scale(self.scalings[frame - self.start]) | if frame < self.start: drawing.scale(self.scalings[0]) elif frame > self.end: drawing.scale(self.scalings[-1]) else: drawing.scale(self.scalings[frame - self.start]) | def draw_on(self, drawing, frame): drawing.scale(self.scalings[frame - self.start]) | 2928440de6db62cd21831d24b9bca00ea8a0442b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4675/2928440de6db62cd21831d24b9bca00ea8a0442b/effect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
265,
12,
2890,
16,
16327,
16,
2623,
4672,
16327,
18,
5864,
12,
2890,
18,
87,
771,
899,
63,
3789,
300,
365,
18,
1937,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
265,
12,
2890,
16,
16327,
16,
2623,
4672,
16327,
18,
5864,
12,
2890,
18,
87,
771,
899,
63,
3789,
300,
365,
18,
1937,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" def setProjectionFileList(self): self.projectionFileCombo.clear() for file in self.recentProjectionFiles: if file == "(None)": self.projectionFileCombo.insertItem("(None)") else: self.projectionFileCombo.insertItem(os.path.split(file)[1]) def selectProjectionFile(self, n): if n < len(self.recentPro... | def removeSelected(self): for i in range(self.resultList.count()-1, -1, -1): if self.resultList.isSelected(i): # remove from listbox and original list of results self.resultList.removeItem(i) self.shownResults.remove(self.shownResults[i]) | 9b3db9553363f043b5ef9b742878adf1a84c693a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9b3db9553363f043b5ef9b742878adf1a84c693a/OWkNNOptimization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7416,
12,
2890,
4672,
364,
277,
316,
1048,
12,
2890,
18,
2088,
682,
18,
1883,
1435,
17,
21,
16,
300,
21,
16,
300,
21,
4672,
309,
365,
18,
2088,
682,
18,
291,
7416,
12,
77,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7416,
12,
2890,
4672,
364,
277,
316,
1048,
12,
2890,
18,
2088,
682,
18,
1883,
1435,
17,
21,
16,
300,
21,
16,
300,
21,
4672,
309,
365,
18,
2088,
682,
18,
291,
7416,
12,
77,
46... | |
gump.addText(245, 39, self.title, 0x480) | gump.addText(245, 39, self.title, enabbledhue) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3189,
12,
2890,
16,
7291,
16,
1775,
4672,
309,
365,
18,
2938,
18,
75,
379,
27672,
480,
374,
30,
7291,
18,
7814,
18,
4412,
75,
2801,
12,
2890,
18,
2938,
18,
75,
379,
27672,
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,
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,
3189,
12,
2890,
16,
7291,
16,
1775,
4672,
309,
365,
18,
2938,
18,
75,
379,
27672,
480,
374,
30,
7291,
18,
7814,
18,
4412,
75,
2801,
12,
2890,
18,
2938,
18,
75,
379,
27672,
16,
374,
... |
self.registryValue('answer.probabilityWhenAdressed'), | self.registryValue('answer.probabilityWhenAddressed', msg.args[0]), | def invalidCommand(self, irc, msg, tokens): message = msg.args[1] usedToStartWithNick = False if message.startswith(message): parsed = re.match('(.+ |\W)?(?P<message>\w.*)', message) message = parsed.group('message') usedToStartWithNick = True if self.registryValue('answer.commands') or usedToStartWithNick: self._respo... | 7a332860ca6d20c1086c1781e73585b3fc7d624b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12790/7a332860ca6d20c1086c1781e73585b3fc7d624b/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2057,
2189,
12,
2890,
16,
277,
1310,
16,
1234,
16,
2430,
4672,
883,
273,
1234,
18,
1968,
63,
21,
65,
1399,
28939,
1190,
29756,
273,
1083,
309,
883,
18,
17514,
1918,
12,
2150,
4672,
270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2057,
2189,
12,
2890,
16,
277,
1310,
16,
1234,
16,
2430,
4672,
883,
273,
1234,
18,
1968,
63,
21,
65,
1399,
28939,
1190,
29756,
273,
1083,
309,
883,
18,
17514,
1918,
12,
2150,
4672,
270... |
'in_love', 'indignant', 'interested', 'invisible', 'jealous', | 'in love', 'indignant', 'interested', 'invisible', 'jealous', | def _build_element(self, element, nsmap): values = self.values if 'unknown' in values and len(values) > 1: raise BuilderError("Cannot have any other activities if the `unknown' activity is specified") for note in self.notes: note.to_element(parent=element, nsmap=nsmap) XMLMultipleChoiceElement._build_element(self, elem... | 6027fc1a5226d48c4dd9048b320945c03ab603f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/6027fc1a5226d48c4dd9048b320945c03ab603f5/rpid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
2956,
12,
2890,
16,
930,
16,
3153,
1458,
4672,
924,
273,
365,
18,
2372,
309,
296,
8172,
11,
316,
924,
471,
562,
12,
2372,
13,
405,
404,
30,
1002,
5008,
668,
2932,
4515... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3510,
67,
2956,
12,
2890,
16,
930,
16,
3153,
1458,
4672,
924,
273,
365,
18,
2372,
309,
296,
8172,
11,
316,
924,
471,
562,
12,
2372,
13,
405,
404,
30,
1002,
5008,
668,
2932,
4515... |
t = self.timer() - self.t if self.dispatch[event](frame,t): self.t = self.timer() else: self.t = self.timer() - t | timer = self.timer t = timer() - self.t if self.dispatch[event](self, frame,t): self.t = timer() else: self.t = timer() - t | def trace_dispatch_i(self, frame, event, arg): t = self.timer() - self.t # - 1 # Integer calibration constant if self.dispatch[event](frame,t): self.t = self.timer() else: self.t = self.timer() - t # put back unrecorded delta return | e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
10739,
67,
77,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
268,
273,
365,
18,
12542,
1435,
300,
365,
18,
88,
468,
300,
404,
468,
2144,
15344,
5381,
309,
365,
18,
10739,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
10739,
67,
77,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
268,
273,
365,
18,
12542,
1435,
300,
365,
18,
88,
468,
300,
404,
468,
2144,
15344,
5381,
309,
365,
18,
10739,
63... |
self.expectEquals(dn.pop(), "o=grid", msg="DN %s does not end with o=grid" % prettyDN(entry.dn)) if not (self.type.lower() == "url"): self.expectEquals(dn.pop(), "mds-vo-name=local", msg="DN %s does not end with mds-vo-name=local,o=grid" % prettyDN(entry.dn)) if not (self.type.lower() == "gipinfo"): self.expectEquals(d... | fulldn = prettyDN(entry.dn) self.expectEquals(dn.pop(), "o=grid", msg="DN %s does not end with o=grid" % fulldn) self.expectEquals(dn.pop().lower(), "mds-vo-name=local", msg="DN %s does not end with mds-vo-name=local,o=grid" % fulldn) if (self.type.lower() == "url"): self.expectEquals(dn.pop().lower(), ("mds-vo-name=%s... | def test_dn(self): for entry in self.entries: dn = list(entry.dn) self.expectEquals(dn.pop(), "o=grid", msg="DN %s does not end with o=grid" % prettyDN(entry.dn)) if not (self.type.lower() == "url"): # the served page does not have the mds-vo-name=local self.expectEquals(dn.pop(), "mds-vo-name=local", msg="DN %s does n... | 198976fadfd1b4c591b33b6115b1953c70bb1e1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12088/198976fadfd1b4c591b33b6115b1953c70bb1e1c/gip_validate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5176,
12,
2890,
4672,
364,
1241,
316,
365,
18,
8219,
30,
8800,
273,
666,
12,
4099,
18,
5176,
13,
365,
18,
12339,
8867,
12,
5176,
18,
5120,
9334,
315,
83,
33,
5222,
3113,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5176,
12,
2890,
4672,
364,
1241,
316,
365,
18,
8219,
30,
8800,
273,
666,
12,
4099,
18,
5176,
13,
365,
18,
12339,
8867,
12,
5176,
18,
5120,
9334,
315,
83,
33,
5222,
3113,
12... |
main_bp = target.BreakpointCreateByName ("main", "a.out"); | main_bp = target.BreakpointCreateByName ("main", sys.argv[1]); | def disassemble_instructions (insts): for i in range(0, insts.GetSize()): print insts.GetInstructionAtIndex(i) | a5290b7bf1b0ca2799622de849db96d3813c7c2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/a5290b7bf1b0ca2799622de849db96d3813c7c2f/disasm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
29676,
67,
25758,
261,
8591,
87,
4672,
364,
277,
316,
1048,
12,
20,
16,
1804,
87,
18,
967,
1225,
1435,
4672,
1172,
1804,
87,
18,
967,
11983,
24499,
12,
77,
13,
225,
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,
1015,
29676,
67,
25758,
261,
8591,
87,
4672,
364,
277,
316,
1048,
12,
20,
16,
1804,
87,
18,
967,
1225,
1435,
4672,
1172,
1804,
87,
18,
967,
11983,
24499,
12,
77,
13,
225,
2,
-100,
-1... |
print "using blkid" | def enable_swap(self): swaps=[] try: swaps=self.datasource.getswap_devs() except: print "using blkid" process = subprocess.Popen( ['blkid', '-t', 'TYPE=swap', '-o', 'device'], stdout=subprocess.PIPE) (out,err)=process.communicate() swaps=out.strip().split('\n') | 9b7265cfbaa32d558f3c1ca0a3f2419d96597374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7197/9b7265cfbaa32d558f3c1ca0a3f2419d96597374/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
67,
22270,
12,
2890,
4672,
1352,
6679,
33,
8526,
775,
30,
1352,
6679,
33,
2890,
18,
13178,
552,
18,
588,
22270,
67,
5206,
87,
1435,
1335,
30,
1207,
273,
6652,
18,
52,
3190,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
67,
22270,
12,
2890,
4672,
1352,
6679,
33,
8526,
775,
30,
1352,
6679,
33,
2890,
18,
13178,
552,
18,
588,
22270,
67,
5206,
87,
1435,
1335,
30,
1207,
273,
6652,
18,
52,
3190,
12,
... | |
self.logger.error("Cannot open %s." % STATE_FILE) | self.logger.error("Cannot open %s." % self.STATE_FILE) | def store_state(self, options): """Store options""" try: f = open(self.STATE_FILE, 'w') try: pickle.dump(options, f) except: f.close() except IOError: self.logger.error("Cannot open %s." % STATE_FILE) | c86b9992b65b34fe28af20e13e54a6a5d4f2b9ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4183/c86b9992b65b34fe28af20e13e54a6a5d4f2b9ae/screenkey.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
67,
2019,
12,
2890,
16,
702,
4672,
3536,
2257,
702,
8395,
775,
30,
284,
273,
1696,
12,
2890,
18,
7998,
67,
3776,
16,
296,
91,
6134,
775,
30,
13379,
18,
8481,
12,
2116,
16,
284,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
67,
2019,
12,
2890,
16,
702,
4672,
3536,
2257,
702,
8395,
775,
30,
284,
273,
1696,
12,
2890,
18,
7998,
67,
3776,
16,
296,
91,
6134,
775,
30,
13379,
18,
8481,
12,
2116,
16,
284,... |
for i in [len(x) for x in self._wbuf]: buf_len += i | for x in self._wbuf: buf_len += len(x) | def __get_wbuf_len (self): buf_len = 0 for i in [len(x) for x in self._wbuf]: buf_len += i return buf_len | 02cbbcbce4351e277d7a28cfb36c5c65342a1b7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/02cbbcbce4351e277d7a28cfb36c5c65342a1b7e/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
91,
4385,
67,
1897,
261,
2890,
4672,
1681,
67,
1897,
273,
374,
364,
619,
316,
365,
6315,
91,
4385,
30,
1681,
67,
1897,
1011,
562,
12,
92,
13,
327,
1681,
67,
1897,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
91,
4385,
67,
1897,
261,
2890,
4672,
1681,
67,
1897,
273,
374,
364,
619,
316,
365,
6315,
91,
4385,
30,
1681,
67,
1897,
1011,
562,
12,
92,
13,
327,
1681,
67,
1897,
2,
... |
'area':'length^2', 'capacitance':'time^4*current^2/(length^2*mass)', 'charge':'current*time', 'conductance':'current^2*time^3/(mass*length^2)', 'electric_potential':'mass*length^2/(current*time^3)', 'energy':'mass*length^2/time^2', 'fiber_linear_mass_density':'mass/length', 'force':'mass*length/time^2', 'frequency':'1/... | 'area':'length^2', 'capacitance':'time^4*current^2/(length^2*mass)', 'charge':'current*time', 'conductance':'current^2*time^3/(mass*length^2)', 'electric_potential':'mass*length^2/(current*time^3)', 'energy':'mass*length^2/time^2', 'fiber_linear_mass_density':'mass/length', 'force':'mass*length/time^2', 'frequency':'1/... | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun... | ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... |
if (live_time_program == None) or bisect_contains(procids, row.process_id): | if (live_time_program is None) or bisect_contains(procids, row.process_id): | def segmentlistdict_fromsearchsummary(xmldoc, live_time_program = None): """ Convenience wrapper for a common case usage of the segmentlistdict class: searches the process table in xmldoc for occurances of a program named live_time_program, then scans the search summary table for matching process IDs and constructs a s... | 9f92ac438a1cc26173b8760e4710509adaf4589a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/9f92ac438a1cc26173b8760e4710509adaf4589a/llwapp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3267,
1098,
1576,
67,
2080,
3072,
7687,
12,
2902,
2434,
16,
8429,
67,
957,
67,
12890,
273,
599,
4672,
3536,
735,
9080,
4053,
364,
279,
2975,
648,
4084,
434,
326,
3267,
1098,
1576,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3267,
1098,
1576,
67,
2080,
3072,
7687,
12,
2902,
2434,
16,
8429,
67,
957,
67,
12890,
273,
599,
4672,
3536,
735,
9080,
4053,
364,
279,
2975,
648,
4084,
434,
326,
3267,
1098,
1576,
667,
... |
self.rsa_fd_hostname.set_text(attrs["hostname"]) | self.rsa_fd_ip.set_text(attrs["ipaddr"]) | def pop_rsa_fd(self, attrs): self.rsa_fd_name.set_text(attrs["name"]) self.rsa_fd_login.set_text(attrs["login"]) self.rsa_fd_passwd.set_text(attrs["passwd"]) self.rsa_fd_hostname.set_text(attrs["hostname"]) | e702ad77867af3ad7b256870d18b07352b55ea75 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/e702ad77867af3ad7b256870d18b07352b55ea75/FenceHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
24654,
67,
8313,
12,
2890,
16,
3422,
4672,
365,
18,
24654,
67,
8313,
67,
529,
18,
542,
67,
955,
12,
7039,
9614,
529,
6,
5717,
365,
18,
24654,
67,
8313,
67,
5819,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
24654,
67,
8313,
12,
2890,
16,
3422,
4672,
365,
18,
24654,
67,
8313,
67,
529,
18,
542,
67,
955,
12,
7039,
9614,
529,
6,
5717,
365,
18,
24654,
67,
8313,
67,
5819,
18,
542,
... |
return curry(operator.eq, field, None) | if value: return curry(operator.eq, field, None) else: return curry(operator.ne, field, None) | def lookup_query_terms(lookup_type, field, value): if lookup_type in QUERY_TERMS_MAPPING: return curry(QUERY_TERMS_MAPPING[lookup_type], field, value) elif lookup_type == 'contains': return curry(field.like, '%%%s%%' % value) elif lookup_type == 'icontains': raise NotImplemented() elif lookup_type == 'in': raise NotImp... | 50bbf4031eeb3fda39a8cee6a43ff7b0ae0856e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1224/50bbf4031eeb3fda39a8cee6a43ff7b0ae0856e2/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
67,
2271,
67,
10112,
12,
8664,
67,
723,
16,
652,
16,
460,
4672,
309,
3689,
67,
723,
316,
17089,
67,
2560,
3537,
67,
20450,
30,
327,
662,
1176,
12,
10753,
67,
2560,
3537,
67,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
67,
2271,
67,
10112,
12,
8664,
67,
723,
16,
652,
16,
460,
4672,
309,
3689,
67,
723,
316,
17089,
67,
2560,
3537,
67,
20450,
30,
327,
662,
1176,
12,
10753,
67,
2560,
3537,
67,
20... |
return ''.join(v).encode(encoding) | return ''.join(v).encode(encoding, "xmlcharrefreplace") class LocaleTextCalendar(TextCalendar): """ This class can be passed a locale name in the constructor and will return month and weekday names in the specified locale. If this locale includes an encoding all strings containing month and weekday names will be retu... | def formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None): """ Return a formatted year as a complete HTML page. """ if encoding is None: encoding = sys.getdefaultencoding() v = [] a = v.append a('<?xml version="1.0" encoding="%s"?>\n' % encoding) a('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Stric... | 243815ee949d8494ecadb24f0872307909b05fc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/243815ee949d8494ecadb24f0872307909b05fc8/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
6874,
2433,
12,
2890,
16,
2898,
2091,
16,
1835,
33,
23,
16,
3747,
2218,
11650,
18,
5212,
2187,
2688,
33,
7036,
4672,
3536,
2000,
279,
4955,
3286,
487,
279,
3912,
3982,
1363,
18,
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,
740,
6874,
2433,
12,
2890,
16,
2898,
2091,
16,
1835,
33,
23,
16,
3747,
2218,
11650,
18,
5212,
2187,
2688,
33,
7036,
4672,
3536,
2000,
279,
4955,
3286,
487,
279,
3912,
3982,
1363,
18,
3... |
DebugActiveProcessStop(dwProcessId) | win32.DebugActiveProcessStop(dwProcessId) | def detach(self, dwProcessId, bIgnoreExceptions = False): """ Detaches from a process currently being debugged. @see: L{attach}, L{detach_from_all} @type dwProcessId: int @param dwProcessId: Global ID of a process to detach from. @type bIgnoreExceptions: bool @keyword bIgnoreExceptions: True to ignore any except... | 162848ead719c67799f0b6f1bbaabd46665625ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/162848ead719c67799f0b6f1bbaabd46665625ae/debug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10199,
12,
2890,
16,
12394,
2227,
548,
16,
324,
3777,
11416,
273,
1083,
4672,
3536,
17867,
281,
628,
279,
1207,
4551,
3832,
1198,
2423,
18,
225,
632,
5946,
30,
511,
95,
7331,
5779,
511,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10199,
12,
2890,
16,
12394,
2227,
548,
16,
324,
3777,
11416,
273,
1083,
4672,
3536,
17867,
281,
628,
279,
1207,
4551,
3832,
1198,
2423,
18,
225,
632,
5946,
30,
511,
95,
7331,
5779,
511,
... |
bounds = self.omplSetup.getStateManifold().getBounds() | def solve(self): self.omplSetup.clear() startPose = self.convertToOmplPose(self.mainWidget.glViewer.startPose) goalPose = self.convertToOmplPose(self.mainWidget.glViewer.goalPose) self.omplSetup.setPlanner(self.planner) bounds = ob.RealVectorBounds(3) (bounds.low[0],bounds.low[1],bounds.low[2]) = self.mainWidget.glView... | aee2e6197797421dbb68228bf1ac3ac3003d5a77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7331/aee2e6197797421dbb68228bf1ac3ac3003d5a77/ompl_app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
12,
2890,
4672,
365,
18,
362,
412,
7365,
18,
8507,
1435,
787,
52,
2584,
273,
365,
18,
6283,
774,
51,
10514,
52,
2584,
12,
2890,
18,
5254,
4609,
18,
7043,
18415,
18,
1937,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
12,
2890,
4672,
365,
18,
362,
412,
7365,
18,
8507,
1435,
787,
52,
2584,
273,
365,
18,
6283,
774,
51,
10514,
52,
2584,
12,
2890,
18,
5254,
4609,
18,
7043,
18415,
18,
1937,
52,
... | |
nearest_words.append(row[0]) nearest_words.reverse() nearest_words.append(p) query = "SELECT word FROM %s WHERE word>'%s' ORDER BY word ASC LIMIT %d" % (bibwordsX, escape_string(p), n) res = run_sql(query) if res: | browsed_phrases_above[row[0]] = 1 if len(t) != 6 or t[-1:]=='%': query = "SELECT bx.value FROM %s AS bx WHERE bx.value>'%s' AND bx.tag LIKE '%s%%' ORDER BY bx.value ASC LIMIT %d" \ % (bx, escape_string(p), t, n_below) else: query = "SELECT bx.value FROM %s AS bx WHERE bx.value>'%s' AND bx.tag='%s' ORDER BY bx.value AS... | def create_nearest_terms_box(urlargs, p, f, n=5, prologue="<blockquote>", epilogue="</blockquote>"): """Return text box containing list of 'n' nearest terms above/below 'p' in the words index list for the field 'f'. Propose new searches according to `urlargs' with the new words. """ out = "" # deduce into which bibword... | c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
25785,
67,
10112,
67,
2147,
12,
718,
1968,
16,
293,
16,
284,
16,
290,
33,
25,
16,
450,
1330,
344,
1546,
32,
2629,
6889,
2984,
16,
5529,
21947,
344,
1546,
1757,
2629,
6889,
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,
752,
67,
25785,
67,
10112,
67,
2147,
12,
718,
1968,
16,
293,
16,
284,
16,
290,
33,
25,
16,
450,
1330,
344,
1546,
32,
2629,
6889,
2984,
16,
5529,
21947,
344,
1546,
1757,
2629,
6889,
2... |
help=_("schedule for automatically synchronizing the repository")) | help=_("cron entry date and time syntax for scheduling automatic repository synchronizations")) | def setup_parser(self): super(Update, self).setup_parser() self.parser.add_option("--name", dest="name", help=_("common repository name")) self.parser.add_option("--arch", dest="arch", help=_("package arch the repository should support")) self.parser.add_option("--feed", dest="feed", help=_("url feed to populate the re... | ee831dcceb17c926c96d47ad2bc108b0b38843b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/ee831dcceb17c926c96d47ad2bc108b0b38843b0/repo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
4288,
12,
2890,
4672,
2240,
12,
1891,
16,
365,
2934,
8401,
67,
4288,
1435,
365,
18,
4288,
18,
1289,
67,
3482,
2932,
413,
529,
3113,
1570,
1546,
529,
3113,
2809,
33,
67,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
4288,
12,
2890,
4672,
2240,
12,
1891,
16,
365,
2934,
8401,
67,
4288,
1435,
365,
18,
4288,
18,
1289,
67,
3482,
2932,
413,
529,
3113,
1570,
1546,
529,
3113,
2809,
33,
67,
2932,... |
'quantity_wanted' : fields.function(_quantity_wanted_get,string='Wanted Quantity',type="char",size="64",method=True,readonly=True, | 'quantity_wanted' : fields.function(_quantity_wanted_get,string='Wanted Quantity',type="char",size=64,method=True,readonly=True, | def _default_camp_date(self, cr, uid, context={}): if 'date1' in context and context['date1']: dd = context['date1'] return dd return [] | fd579264445d426cb1816460cf19cfb07cb147aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/fd579264445d426cb1816460cf19cfb07cb147aa/campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
... |
self.body.append('\\DUtopictitle{'System Message:'}\n') | self.body.append('\\DUtopictitle{System Message:}\n') | def visit_system_message(self, node): self.requirements['color'] = r'\usepackage{color}' self.visit_admonition(node) self.body.append('\\DUtopictitle{'System Message:'}\n') self.append_hypertargets(node) try: line = ', line~%s' % node['line'] except KeyError: line = '' self.body.append('\n%s/%s in %s%s\n' % (node['type... | c5f59c04734486158fa2a796337f5ab9f558570a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/c5f59c04734486158fa2a796337f5ab9f558570a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
4299,
67,
2150,
12,
2890,
16,
756,
4672,
365,
18,
16175,
3292,
3266,
3546,
273,
436,
8314,
1202,
5610,
95,
3266,
1713,
365,
18,
11658,
67,
361,
2586,
608,
12,
2159,
13,
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,
3757,
67,
4299,
67,
2150,
12,
2890,
16,
756,
4672,
365,
18,
16175,
3292,
3266,
3546,
273,
436,
8314,
1202,
5610,
95,
3266,
1713,
365,
18,
11658,
67,
361,
2586,
608,
12,
2159,
13,
365,
... |
if (PkgSkip("PYTHON")): | if (PkgSkip("PYTHON")): | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 7bd73effad0148a5536b9f22c940716f514d961f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/7bd73effad0148a5536b9f22c940716f514d961f/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
config_name: the configuration this is for c_data: the configuration dict | def _GenerateNativeRules(p, rules, output_dir, config_name, c_data, spec, options): """Generate a native rules file. Arguments: p: the target project rules: the set of rules to include output_dir: the directory in which the project/gyp resides config_name: the configuration this is for c_data: the configuration dict s... | e9705b6d08602d271d2d71150d616a2e30ebe9dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/e9705b6d08602d271d2d71150d616a2e30ebe9dc/msvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
9220,
4478,
12,
84,
16,
2931,
16,
876,
67,
1214,
16,
642,
67,
529,
16,
276,
67,
892,
16,
857,
16,
702,
4672,
3536,
4625,
279,
6448,
2931,
585,
18,
225,
13599,
30,
293,
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,
389,
4625,
9220,
4478,
12,
84,
16,
2931,
16,
876,
67,
1214,
16,
642,
67,
529,
16,
276,
67,
892,
16,
857,
16,
702,
4672,
3536,
4625,
279,
6448,
2931,
585,
18,
225,
13599,
30,
293,
3... | |
frameCustom=Frame(frame,borderwidth=2,relief=GROOVE) frameTheme=Frame(frame,borderwidth=2,relief=GROOVE) | frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE, text=' Custom Highlighting ') frameTheme=LabelFrame(frame,borderwidth=2,relief=GROOVE, text=' Highlighting Theme ') | def CreatePageHighlight(self): self.builtinTheme=StringVar(self) self.customTheme=StringVar(self) self.fgHilite=BooleanVar(self) self.colour=StringVar(self) self.fontName=StringVar(self) self.themeIsBuiltin=BooleanVar(self) self.highlightTarget=StringVar(self) ##widget creation #body frame frame=self.tabPages.pages['Hi... | ed15565253c2cb817c68ed89e22c7a6c7707ab66 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/ed15565253c2cb817c68ed89e22c7a6c7707ab66/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1964,
16205,
12,
2890,
4672,
365,
18,
24553,
8335,
33,
780,
1537,
12,
2890,
13,
365,
18,
3662,
8335,
33,
780,
1537,
12,
2890,
13,
365,
18,
2137,
44,
330,
1137,
33,
5507,
1537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1964,
16205,
12,
2890,
4672,
365,
18,
24553,
8335,
33,
780,
1537,
12,
2890,
13,
365,
18,
3662,
8335,
33,
780,
1537,
12,
2890,
13,
365,
18,
2137,
44,
330,
1137,
33,
5507,
1537,
... |
if self.prefix(src="../../libraries/i686-win32/lib/release", dst=""): self.path("libgobject-2.0-0.dll") self.path("libglib-2.0-0.dll") self.path("libgstreamer-0.10.dll") self.path("libgthread-2.0-0.dll") self.path("libgmodule-2.0-0.dll") self.path("libxml2.dll") self.path("iconv.dll") self.path("zlib1.dll") self.end_p... | def construct(self): super(WindowsManifest, self).construct() # the final exe is complicated because we're not sure where it's coming from, # nor do we have a fixed name for the executable self.path(self.find_existing_file( | be7b2590c31011d39a11de5125bd01090807731a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4269/be7b2590c31011d39a11de5125bd01090807731a/viewer_manifest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4872,
12,
2890,
4672,
2240,
12,
10399,
9121,
16,
365,
2934,
10062,
1435,
468,
326,
727,
15073,
353,
31312,
2724,
732,
4565,
486,
3071,
1625,
518,
1807,
19283,
628,
16,
468,
12517,
741,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4872,
12,
2890,
4672,
2240,
12,
10399,
9121,
16,
365,
2934,
10062,
1435,
468,
326,
727,
15073,
353,
31312,
2724,
732,
4565,
486,
3071,
1625,
518,
1807,
19283,
628,
16,
468,
12517,
741,
7... | |
nin, ndefault = _get_nargs(pyfunc) | def __init__(self, pyfunc, otypes='', doc=None): nin, ndefault = _get_nargs(pyfunc) self.thefunc = pyfunc self.ufunc = None self.nin = nin self.nin_wo_defaults = nin - ndefault self.nout = None if doc is None: self.__doc__ = pyfunc.__doc__ else: self.__doc__ = doc if isinstance(otypes, types.StringType): self.otypes = ... | a345bd21446141f16f70b8f84c7b42b257b0dcff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/a345bd21446141f16f70b8f84c7b42b257b0dcff/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2395,
644,
16,
320,
2352,
2218,
2187,
997,
33,
7036,
4672,
365,
18,
5787,
644,
273,
2395,
644,
365,
18,
89,
644,
273,
599,
365,
18,
82,
267,
273,
290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2395,
644,
16,
320,
2352,
2218,
2187,
997,
33,
7036,
4672,
365,
18,
5787,
644,
273,
2395,
644,
365,
18,
89,
644,
273,
599,
365,
18,
82,
267,
273,
290,
... | |
DamnInstallModule(DV.curdir+'modules'+os.sep+i) | DamnInstallModule(DV.curdir+'modules'+DV.sep+i) | def DamnLoadConfig(forcemodules=False): Damnlog('Loading config.') DV.preferences=None try: execfile(DV.curdir+'conf'+os.sep+'preferences.damnvid') # Load preferences except: pass # Someone's been messing around with the conf.py file? DV.path_prefs=[] DV.defaultprefs={ } for i in DV.preferences.iterkeys(): if DV.prefer... | 18d91d3a382ccc85706a20ab0defe4fb663ef94f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/18d91d3a382ccc85706a20ab0defe4fb663ef94f/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
2563,
809,
12,
5734,
6400,
33,
8381,
4672,
463,
301,
82,
1330,
2668,
10515,
642,
1093,
13,
463,
58,
18,
23219,
33,
7036,
775,
30,
1196,
768,
12,
30199,
18,
1397,
1214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
2563,
809,
12,
5734,
6400,
33,
8381,
4672,
463,
301,
82,
1330,
2668,
10515,
642,
1093,
13,
463,
58,
18,
23219,
33,
7036,
775,
30,
1196,
768,
12,
30199,
18,
1397,
1214,
... |
return multilinkGenerator(self._prop.classname, self._client, l) | return self.multilinkGenerator(l) | def reverse(self): ''' return the list in reverse order ''' l = self._value[:] l.reverse() return multilinkGenerator(self._prop.classname, self._client, l) | 2fd96fc216ed11668df3cf326b476fb085ace3b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/2fd96fc216ed11668df3cf326b476fb085ace3b5/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4219,
12,
2890,
4672,
9163,
327,
326,
666,
316,
4219,
1353,
9163,
328,
273,
365,
6315,
1132,
10531,
65,
328,
18,
9845,
1435,
327,
1778,
330,
754,
3908,
12,
2890,
6315,
5986,
18,
18340,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4219,
12,
2890,
4672,
9163,
327,
326,
666,
316,
4219,
1353,
9163,
328,
273,
365,
6315,
1132,
10531,
65,
328,
18,
9845,
1435,
327,
1778,
330,
754,
3908,
12,
2890,
6315,
5986,
18,
18340,
... |
return True | return runflag | def calculation_required(self, atoms=None, quantities=None): ''' determines if a calculation is needed. | 6d9d93a8630ce88fc068d3dba1581cf982bc76dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/6d9d93a8630ce88fc068d3dba1581cf982bc76dd/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11096,
67,
4718,
12,
2890,
16,
9006,
33,
7036,
16,
10251,
1961,
33,
7036,
4672,
9163,
12949,
309,
279,
11096,
353,
3577,
18,
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,
11096,
67,
4718,
12,
2890,
16,
9006,
33,
7036,
16,
10251,
1961,
33,
7036,
4672,
9163,
12949,
309,
279,
11096,
353,
3577,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
index1, index2, shift = splitbins(decomp_index) | index1, index2, shift = splitbins(decomp_index, trace) | def maketables(): unicode = UnicodeData(UNICODE_DATA) # extract unicode properties dummy = (0, 0, 0, 0) table = [dummy] cache = {0: dummy} index = [0] * len(unicode.chars) # 1) database properties for char in unicode.chars: record = unicode.table[char] if record: # extract database properties category = CATEGORY_NAM... | 2622eef694d130c649bfad1efd483f3876f83f54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2622eef694d130c649bfad1efd483f3876f83f54/makeunicodedata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
278,
1538,
13332,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
13,
1014,
273,
306,
21050,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
278,
1538,
13332,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
13,
1014,
273,
306,
21050,
65,
... |
} def SaveSubtopic(self, topic_num, subtopic_num, subtopic_name, subtopic_description) : """ $DB->Exec("UPDATE subtopic SET subtopic_name=" . wsq($subtopic_name) . ", subtopic_description=" . wsq($subtopic_description) . " WHERE topic_num=$topic_num AND subtopic_num=$subtopic_num") }""" pass | """ pass def SaveSubtopic(self, topic_num, subtopic_num, subtopic_name, subtopic_description) : """ $DB->Exec("UPDATE subtopic SET subtopic_name=" . wsq($subtopic_name) . ", subtopic_description=" . wsq($subtopic_description) . " WHERE topic_num=$topic_num AND subtopic_num=$subtopic_num") }""" pass | def Subtopics(self, topic_num) : my %subtopics = () my $sql = "SELECT topic.topic_num, topic_name, topic_description, subtopic_num, subtopic_name, subtopic_description from subtopic, topic WHERE subtopic.topic_num = topic.topic_num" $sql .= " AND topic.topic_num = $topic_num" if ($topic_num) my $recordset = $DB->Record... | af47980a4a37d4d229d15b0723786b674ded69fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/af47980a4a37d4d229d15b0723786b674ded69fe/DataLayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2592,
17905,
12,
2890,
16,
3958,
67,
2107,
13,
294,
3399,
738,
1717,
17905,
273,
1832,
3399,
271,
4669,
273,
315,
4803,
3958,
18,
10476,
67,
2107,
16,
3958,
67,
529,
16,
3958,
67,
3384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2592,
17905,
12,
2890,
16,
3958,
67,
2107,
13,
294,
3399,
738,
1717,
17905,
273,
1832,
3399,
271,
4669,
273,
315,
4803,
3958,
18,
10476,
67,
2107,
16,
3958,
67,
529,
16,
3958,
67,
3384... |
if context.get('bin_size', False): | if context.get('bin_size', False) and val: | def get_memory(self, cr, obj, ids, name, user=None, context=None, values=None): if not context: context = {} if not values: values = [] res = {} for i in ids: val = None for v in values: if v['id'] == i: val = v[name] break if context.get('bin_size', False): res[i] = tools.human_size(long(val)) else: res[i] = val retur... | 846d3f4a6a25510915faaf9fb19827593a99bc43 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/846d3f4a6a25510915faaf9fb19827593a99bc43/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7858,
12,
2890,
16,
4422,
16,
1081,
16,
3258,
16,
508,
16,
729,
33,
7036,
16,
819,
33,
7036,
16,
924,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
924,
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,
336,
67,
7858,
12,
2890,
16,
4422,
16,
1081,
16,
3258,
16,
508,
16,
729,
33,
7036,
16,
819,
33,
7036,
16,
924,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
924,
30,... |
are quite straightforwardly expressed with this Python idiom. The problem is that this creates an uncollectable reference cycle, and we have to explicitly close the innermost generator to clean up the cycle. XXX As of 14-Apr-2006, Tim doubts that anyone understands _why_ some cycle XXX is uncollectable here. | are quite straightforwardly expressed with this Python idiom. | ... def _m235(): | 79d08acd5bd9202d73755c1c590660d0a80b44f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/79d08acd5bd9202d73755c1c590660d0a80b44f5/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
389,
81,
30803,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
389,
81,
30803,
13332,
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,
-... |
ret = [ ] | ret = { } | def search(self, name, flag, version): """Return a list of RpmPackage's matching the Requires: (name, RPMSENSE_* flag, EVR string).""" | 2169adb8d2c203f5b4c5934ddc8b49350a118270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/2169adb8d2c203f5b4c5934ddc8b49350a118270/lists.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
508,
16,
2982,
16,
1177,
4672,
3536,
990,
279,
666,
434,
534,
7755,
2261,
1807,
3607,
326,
16412,
30,
261,
529,
16,
534,
12728,
1090,
50,
1090,
67,
14,
2982,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
508,
16,
2982,
16,
1177,
4672,
3536,
990,
279,
666,
434,
534,
7755,
2261,
1807,
3607,
326,
16412,
30,
261,
529,
16,
534,
12728,
1090,
50,
1090,
67,
14,
2982,
16,
... |
a,b,c = search_tree(self, partition, proof=True, dig=True) | a,b,c = search_tree(self, partition, proof=True, dig=True, verbosity=verbosity) | def canonical_label(self, partition=None, proof=False): """ Returns the canonical label with respect to the partition. If no partition is given, uses the unit partition. | abe3c388212ae5d897f338e2fdc2d8bf095f3e19 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/abe3c388212ae5d897f338e2fdc2d8bf095f3e19/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
14601,
33,
8381,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
18,
971,
1158,
3590,
353,
864,
16,
4692,
326,
2836,
359... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
14601,
33,
8381,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
18,
971,
1158,
3590,
353,
864,
16,
4692,
326,
2836,
359... |
}) | }, lang) | def AddMember(self, name, password, digest=0, remote=None): | 573bc3f5543df89d6c925b452984ab250387f81e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/573bc3f5543df89d6c925b452984ab250387f81e/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
4419,
12,
2890,
16,
508,
16,
2201,
16,
5403,
33,
20,
16,
2632,
33,
7036,
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,
... | [
1,
1,
1,
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,
1436,
4419,
12,
2890,
16,
508,
16,
2201,
16,
5403,
33,
20,
16,
2632,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if port <> -1: | if self.port <> -1: | def check(self): """ Check for new mails on your pop3 account. """ try: if self.ssl == True: if port <> -1: s = poplib.POP3_SSL(self.host, self.port) else: s = poplib.POP3_SSL(self.host) else: if port <> -1: s = poplib.POP3(self.host, self.port) else: s = poplib.POP3(self.host) except poplib.error_protoerror, e: self.e... | 6fa69a66ab3e54395f6a87e45693c5f017e28dfb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10818/6fa69a66ab3e54395f6a87e45693c5f017e28dfb/watch_mail_pop3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
2073,
364,
394,
4791,
87,
603,
3433,
1843,
23,
2236,
18,
3536,
775,
30,
309,
365,
18,
8157,
422,
1053,
30,
309,
365,
18,
655,
2813,
300,
21,
30,
272,
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,
866,
12,
2890,
4672,
3536,
2073,
364,
394,
4791,
87,
603,
3433,
1843,
23,
2236,
18,
3536,
775,
30,
309,
365,
18,
8157,
422,
1053,
30,
309,
365,
18,
655,
2813,
300,
21,
30,
272,
273,
... |
ws = Workspace.objects.get(pk = workspace_id) | ws = DAMWorkspace.objects.get(pk = workspace_id) | def test_remove_items(self): workspace_id = 1 ws = Workspace.objects.get(pk = workspace_id) node_parent = Node.objects.get(label = 'People', workspace = ws) item = Item.objects.create(uploader = User.objects.get(pk = 1), type = Type.objects.get(name = 'image'),) node_parent = Node.objects.get(label = 'People', work... | 774c03fcc85d5555c72b71c04da9a7d1a510e957 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4589/774c03fcc85d5555c72b71c04da9a7d1a510e957/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4479,
67,
3319,
12,
2890,
4672,
6003,
67,
350,
273,
404,
4945,
273,
463,
2192,
8241,
18,
6911,
18,
588,
12,
5465,
273,
6003,
67,
350,
13,
756,
67,
2938,
273,
2029,
18,
6911... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4479,
67,
3319,
12,
2890,
4672,
6003,
67,
350,
273,
404,
4945,
273,
463,
2192,
8241,
18,
6911,
18,
588,
12,
5465,
273,
6003,
67,
350,
13,
756,
67,
2938,
273,
2029,
18,
6911... |
print x0, y0, x1, y1 | def look_down(buffer, parent_bbox): for child in node.iterchildren(): _scan(child, buffer, parent_bbox, page_size, rotation) if node.tail and node.tail.strip(): buffer.append(node.tail) if node.text and node.text.strip(): buffer.append(node.text) | 30f6d08a28953c9e0326904c0aa6b020ee0dd266 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3685/30f6d08a28953c9e0326904c0aa6b020ee0dd266/hocr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1363,
67,
1467,
16,
6752,
13,
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,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1363,
67,
1467,
16,
6752,
13,
3... | |
super(GlyphCollectionView, self).set(wrappedGlyphs) | def set(self, glyphs): # remove removed wrapped items removedGlyphs = set(self._wrappedListItems) - set(glyphs) for glyph in removedGlyphs: del self._wrappedListItems[glyph] self._unsubscribeFromGlyph(glyph) # wrap the glyphs for the list wrappedGlyphs = [self._wrapGlyphForList(glyph) for glyph in glyphs] # set the cel... | 4b5c548ae1f4073b9586c0d7f60282837cb5dbfa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8848/4b5c548ae1f4073b9586c0d7f60282837cb5dbfa/glyphCollectionView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
23404,
4672,
468,
1206,
3723,
5805,
1516,
3723,
25399,
273,
444,
12,
2890,
6315,
18704,
682,
3126,
13,
300,
444,
12,
19426,
87,
13,
364,
9440,
316,
3723,
25399,
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,
444,
12,
2890,
16,
23404,
4672,
468,
1206,
3723,
5805,
1516,
3723,
25399,
273,
444,
12,
2890,
6315,
18704,
682,
3126,
13,
300,
444,
12,
19426,
87,
13,
364,
9440,
316,
3723,
25399,
30,
... | |
today = date_today() | today = datetime.datetime.now().date() | def delete_old_closed_tasks(self, widget = None): self.__log("Starting deletion of old tasks") today = date_today() requester = self.plugin_api.get_requester() closed_tids = requester.get_tasks_list(status = [Task.STA_DISMISSED, Task.STA_DONE]) closed_tasks = [requester.get_task(tid) for tid in closed_tids] to_remove =... | 04a28387f90180bd118e1191697be093a66f7fa2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/04a28387f90180bd118e1191697be093a66f7fa2/reaper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
1673,
67,
12204,
67,
9416,
12,
2890,
16,
3604,
273,
599,
4672,
365,
16186,
1330,
2932,
11715,
10899,
434,
1592,
4592,
7923,
10074,
273,
3314,
18,
6585,
18,
3338,
7675,
712,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
1673,
67,
12204,
67,
9416,
12,
2890,
16,
3604,
273,
599,
4672,
365,
16186,
1330,
2932,
11715,
10899,
434,
1592,
4592,
7923,
10074,
273,
3314,
18,
6585,
18,
3338,
7675,
712,
143... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.