rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
return _prelude.idmef_data_get_data(data) | return (lambda d: None, _prelude.idmef_data_get_char, _prelude.idmef_data_get_byte, _prelude.idmef_data_get_uint32, _prelude.idmef_data_get_uint64, _prelude.idmef_data_get_float, _prelude.idmef_data_get_char_string, _prelude.idmef_data_get_byte_string)[_prelude.idmef_data_get_type(data)](data) | def idmef_value_c_to_python(value): func_type_table = { _prelude.IDMEF_VALUE_TYPE_INT8: _prelude.idmef_value_get_int8, _prelude.IDMEF_VALUE_TYPE_UINT8: _prelude.idmef_value_get_uint8, _prelude.IDMEF_VALUE_TYPE_INT16: _prelude.idmef_value_get_int16, _prelude.IDMEF_VALUE_TYPE_UINT16: _prelude.idmef_value_g... | 70503a61b09c81c138dcbfff4fd6a60a97ea41c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11628/70503a61b09c81c138dcbfff4fd6a60a97ea41c3/prelude.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
3501,
74,
67,
1132,
67,
71,
67,
869,
67,
8103,
12,
1132,
4672,
225,
1326,
67,
723,
67,
2121,
273,
288,
389,
1484,
80,
1317,
18,
734,
958,
42,
67,
4051,
67,
2399,
67,
3217,
28,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
3501,
74,
67,
1132,
67,
71,
67,
869,
67,
8103,
12,
1132,
4672,
225,
1326,
67,
723,
67,
2121,
273,
288,
389,
1484,
80,
1317,
18,
734,
958,
42,
67,
4051,
67,
2399,
67,
3217,
28,... |
self.msgObjs = [FakeyMessage({'from': 'user@domain', 'to': 'resu@domain', 'date': 'thursday', 'subject': 'it is a message', 'message-id': 'id-id-id-yayaya'}, (), '', '', 65656, None)] self.expected = {0: {'ENVELOPE': [ 'thursday', 'it is a message', [[None, None, 'user', 'domain']], [[None, None, 'user', 'domain']], [[... | self.msgObjs = [ FakeyMessage({ 'from': 'user@domain', 'to': 'resu@domain', 'date': 'thursday', 'subject': 'it is a message', 'message-id': 'id-id-id-yayaya'}, (), '', '', 65656, None), ] self.expected = { 0: {'ENVELOPE': ['thursday', 'it is a message', [[None, None, 'user', 'domain']], [[None, None, 'user', 'domain']]... | def fetch(): return self.client.fetchEnvelope(self.messages, uid=uid) | fd0ab51569d572065ee4a73067158b7e009de90d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/fd0ab51569d572065ee4a73067158b7e009de90d/test_imap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
13332,
327,
365,
18,
2625,
18,
5754,
10862,
12,
2890,
18,
6833,
16,
4555,
33,
1911,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2158,
13332,
327,
365,
18,
2625,
18,
5754,
10862,
12,
2890,
18,
6833,
16,
4555,
33,
1911,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (space_group_info is None): | if (space_group_info is not None): self.space_group_info = space_group_info else: | def __call__(self, option, opt, value, parser): if (opt == "--unit_cell"): unit_cell = None try: unit_cell = uctbx.unit_cell(value) except: pass if (unit_cell is None): crystal_symmetry = crystal_symmetry_from_any.extract_from(value) if ( crystal_symmetry is None or crystal_symmetry.unit_cell() is None): raise Option... | 0699076e2a272a9ff18073de02f0fb2181f091b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/0699076e2a272a9ff18073de02f0fb2181f091b1/option_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1456,
16,
2153,
16,
460,
16,
2082,
4672,
309,
261,
3838,
422,
5238,
4873,
67,
3855,
6,
4672,
2836,
67,
3855,
273,
599,
775,
30,
2836,
67,
3855,
273,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1456,
16,
2153,
16,
460,
16,
2082,
4672,
309,
261,
3838,
422,
5238,
4873,
67,
3855,
6,
4672,
2836,
67,
3855,
273,
599,
775,
30,
2836,
67,
3855,
273,
58... |
if 'selection' in fields[field]: trans = lambda x: translate(cr, res_name, 'selection', lang, x) or x for idx, (key, val) in enumerate(fields[field]['selection']): fields[field]['selection'][idx] = (key, trans(val)) | result_def = state_def.get('result', {}) | a014326410b0e9bc596723893389ec1029ec9f80 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/a014326410b0e9bc596723893389ec1029ec9f80/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
563,
67,
536,
273,
919,
67,
536,
18,
588,
2668,
2088,
2187,
2618,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
563,
67,
536,
273,
919,
67,
536,
18,
588,
2668,
2088,
2187,
2618,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
print 'smart sort', self._objectlist, attribute, order | def _on_configuration_changed(self, *k): order_descending = self._order_button.get_active() if order_descending: order = gtk.SORT_DESCENDING else: order = gtk.SORT_ASCENDING attribute = self._proxy.read() | b9c466169462bb506f4ba12050d3993b30b3ff15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11322/b9c466169462bb506f4ba12050d3993b30b3ff15/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
7025,
67,
6703,
12,
2890,
16,
380,
79,
4672,
1353,
67,
5569,
2846,
273,
365,
6315,
1019,
67,
5391,
18,
588,
67,
3535,
1435,
309,
1353,
67,
5569,
2846,
30,
1353,
273,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
7025,
67,
6703,
12,
2890,
16,
380,
79,
4672,
1353,
67,
5569,
2846,
273,
365,
6315,
1019,
67,
5391,
18,
588,
67,
3535,
1435,
309,
1353,
67,
5569,
2846,
30,
1353,
273,
22... | |
if not line: self.cmd_missing_arg() return | def ftp_STOR(self, line, rwa='w', mode='b'): if not line: self.cmd_missing_arg() return # A resume could occur in case of APPE or REST commands. # In that case we have to open file object in different ways: # STOR: rwa = 'w' # APPE: rwa = 'a' # REST: rwa = 'r+' (to permit seeking on file object) file = self.fs.transl... | 42cfb92815cfe91b8e9573da1b07cf8dce19a9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/42cfb92815cfe91b8e9573da1b07cf8dce19a9ff/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
882,
916,
12,
2890,
16,
980,
16,
7985,
69,
2218,
91,
2187,
1965,
2218,
70,
11,
4672,
225,
468,
432,
10774,
3377,
3334,
316,
648,
434,
14410,
1423,
578,
8392,
4364,
18,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
882,
916,
12,
2890,
16,
980,
16,
7985,
69,
2218,
91,
2187,
1965,
2218,
70,
11,
4672,
225,
468,
432,
10774,
3377,
3334,
316,
648,
434,
14410,
1423,
578,
8392,
4364,
18,
468,
... | |
jobIDString = ','.join([str(j) for j in jobIDList]) | jobIDString = ','.join( [str( j ) for j in jobIDList] ) | def removeJobFromDB(self, jobIDs): """Remove job from DB | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
2278,
1265,
2290,
12,
2890,
16,
1719,
5103,
4672,
3536,
3288,
1719,
628,
2383,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
2278,
1265,
2290,
12,
2890,
16,
1719,
5103,
4672,
3536,
3288,
1719,
628,
2383,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
class Spin_crystal_type_B(Crystal): | class Spin_crystal_type_B(ClassicalCrystal): | def CrystalOfSpins(type): r""" Return the spin crystal of the given type INPUT: T -- A CartanType (either B or D) Kashiwara and Nakashima represent the elements by sequences of signs +/-. In this implementation, the elements are represented by positive integers, but their notation can be recovered using signature() ... | 159c30089bab1b13af9e1095b1ee2b33969b7e53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/159c30089bab1b13af9e1095b1ee2b33969b7e53/spins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14998,
31365,
951,
3389,
2679,
12,
723,
4672,
436,
8395,
2000,
326,
12490,
4422,
31365,
434,
326,
864,
618,
225,
12943,
30,
399,
1493,
432,
17695,
304,
559,
261,
73,
2927,
605,
578,
463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14998,
31365,
951,
3389,
2679,
12,
723,
4672,
436,
8395,
2000,
326,
12490,
4422,
31365,
434,
326,
864,
618,
225,
12943,
30,
399,
1493,
432,
17695,
304,
559,
261,
73,
2927,
605,
578,
463,... |
if entryFactory: self.entryFactory = entryFactory | if 'entryFactory' in options: self.entryFactory = options['entryFactory'] | def __init__(self, entryFactory=None, columnFormatStrategies=None, readingSearchStrategy=None, translationSearchStrategy=None, databaseUrl=None, dbConnectInst=None): """ Initialises the BaseDictionary instance. | 7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1241,
1733,
33,
7036,
16,
1057,
1630,
1585,
15127,
33,
7036,
16,
6453,
2979,
4525,
33,
7036,
16,
4794,
2979,
4525,
33,
7036,
16,
2063,
1489,
33,
7036,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1241,
1733,
33,
7036,
16,
1057,
1630,
1585,
15127,
33,
7036,
16,
6453,
2979,
4525,
33,
7036,
16,
4794,
2979,
4525,
33,
7036,
16,
2063,
1489,
33,
7036,
16... |
introFree, selFreeIntensity, initSize, endingSize, growthModel, | initSize, endingSize, growthModel, | def simuComplexDisease(numChrom, numLoci, markerType, DSLafter, DSLdistTmp, introFree, selFreeIntensity, initSize, endingSize, growthModel, burninGen, splitGen, mixingGen, endingGen, numSubPop, migrModel, migrRate, alleleDistInSubPop, curAlleleFreqTmp, minMutAge, maxMutAge, fitnessTmp, mlSelModelTmp, mutaRate, recRate,... | 6192e8ac3832ae52136a6066f5b44a030344c709 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/6192e8ac3832ae52136a6066f5b44a030344c709/simuComplexDisease.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
89,
12795,
40,
26816,
12,
2107,
30761,
16,
818,
1333,
77,
16,
5373,
559,
16,
28053,
5205,
16,
28053,
4413,
9161,
16,
1208,
1225,
16,
11463,
1225,
16,
13334,
451,
1488,
16,
18305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
89,
12795,
40,
26816,
12,
2107,
30761,
16,
818,
1333,
77,
16,
5373,
559,
16,
28053,
5205,
16,
28053,
4413,
9161,
16,
1208,
1225,
16,
11463,
1225,
16,
13334,
451,
1488,
16,
18305,
... |
v.stmt_id as stmt_id, case sum(v.version_id) when %d then "A" when %d then "B" when %d then "AB" end as context | v.stmt_id AS stmt_id, CASE sum(IF(v.version_id = %d, 1, 0) + IF(v.version_id = %d, 2, 0)) WHEN 1 THEN "A" WHEN 2 THEN "B" WHEN 3 THEN "AB" END AS context | def prepareConnection(self, connection): cursor = connection.cursor() | 37ad7ef1cbf77fb013759adb3ee095d4767870e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5223/37ad7ef1cbf77fb013759adb3ee095d4767870e5/basicquery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1952,
12,
2890,
16,
1459,
4672,
3347,
273,
1459,
18,
9216,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1952,
12,
2890,
16,
1459,
4672,
3347,
273,
1459,
18,
9216,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
wikipedia.output(u'\n\n>>>> Description on \03{lightpurple}%s\03{default} <<<<\n' % page.title()) wikipedia.output(localImagePage.get()) wikipedia.output(u'\n\n>>>> Description on \03{lightpurple}%s\03{default} <<<<\n' % commonsImagePage.title()) wikipedia.output(commonsText) choice = wikipedia.inputChoice(u'Does the d... | pywikibot.output( u'\n\n>>>> Description on \03{lightpurple}%s\03{default} <<<<\n' % page.title()) pywikibot.output(localImagePage.get()) pywikibot.output( u'\n\n>>>> Description on \03{lightpurple}%s\03{default} <<<<\n' % commonsImagePage.title()) pywikibot.output(commonsText) choice = pywikibot.inputChoice( u'Does th... | def run(self): commons = wikipedia.getSite('commons', 'commons') comment = wikipedia.translate(self.site, nowCommonsMessage) | 3e7506930193ed64965aabc3e2d1d58bf15e5c6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/3e7506930193ed64965aabc3e2d1d58bf15e5c6b/nowcommons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
24021,
273,
21137,
18,
588,
4956,
2668,
6054,
87,
2187,
296,
6054,
87,
6134,
2879,
273,
21137,
18,
13929,
12,
2890,
18,
4256,
16,
2037,
6517,
87,
1079,
13,
2,
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,
1086,
12,
2890,
4672,
24021,
273,
21137,
18,
588,
4956,
2668,
6054,
87,
2187,
296,
6054,
87,
6134,
2879,
273,
21137,
18,
13929,
12,
2890,
18,
4256,
16,
2037,
6517,
87,
1079,
13,
2,
-10... |
self.output = "audioconvert ! vorbisenc ! oggmux ! filesink location=" + file | self.output = "audioconvert ! vorbisenc ! oggmux ! filesink location=%s" % file.replace(" ", "\ ") | def record(self): '''Record to this instrument's temporary file.''' | d2854a3005e8ed974492b8e6c3675ad74c72e737 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/d2854a3005e8ed974492b8e6c3675ad74c72e737/Instrument.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
2890,
4672,
9163,
2115,
358,
333,
10353,
1807,
6269,
585,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1409,
12,
2890,
4672,
9163,
2115,
358,
333,
10353,
1807,
6269,
585,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
ds = gdaltest.tiff_drv.Create( 'tmp/test_6.tif', 200, 200, 1, | ds = gdaltest.tiff_drv.Create( 'tmp/test_8.tif', 200, 200, 1, | def tiff_write_8(): options= [ 'TILED=YES', 'BLOCKSIZE=32', 'COMPRESS=PACKBITS' ] ds = gdaltest.tiff_drv.Create( 'tmp/test_6.tif', 200, 200, 1, gdal.GDT_Byte, options ) # make a 32x32 byte buffer buf = array.array('B',range(32)).tostring() for i in range(5): buf = buf + buf ds.WriteRaster( 0, 0, 32, 32, buf, buf_typ... | 777d5aad0cbc14d0eb98f470cd8022c9b6d43be0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/777d5aad0cbc14d0eb98f470cd8022c9b6d43be0/tiff_write.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
3048,
67,
2626,
67,
28,
13332,
225,
702,
33,
306,
296,
56,
9504,
33,
29081,
2187,
296,
11403,
4574,
33,
1578,
2187,
296,
4208,
22526,
33,
12231,
25171,
11,
308,
3780,
273,
15551,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
3048,
67,
2626,
67,
28,
13332,
225,
702,
33,
306,
296,
56,
9504,
33,
29081,
2187,
296,
11403,
4574,
33,
1578,
2187,
296,
4208,
22526,
33,
12231,
25171,
11,
308,
3780,
273,
15551,
... |
def testKukitCutObject(self): | def testKssCutObject(self): | def testKukitCutObject(self): req = self.portal.REQUEST view = content_replacer.ContentMenuView(self.fpage, req) result = view.cutObject() | c01f348b980345a36cd65be7267e7e1998a9d174 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12181/c01f348b980345a36cd65be7267e7e1998a9d174/test_menus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
47,
1049,
15812,
921,
12,
2890,
4672,
1111,
273,
365,
18,
24386,
18,
5519,
1476,
273,
913,
67,
26745,
10598,
18,
1350,
4599,
1767,
12,
2890,
18,
74,
2433,
16,
1111,
13,
563,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
47,
1049,
15812,
921,
12,
2890,
4672,
1111,
273,
365,
18,
24386,
18,
5519,
1476,
273,
913,
67,
26745,
10598,
18,
1350,
4599,
1767,
12,
2890,
18,
74,
2433,
16,
1111,
13,
563,
273,... |
self.beginInsertRows(QModelIndex(), 0, len(items)-1) | self.beginResetModel() | def load(self): try: try: file = open(ApplicationData.get('contacts')) items = pickle.load(file) except (IOError, OSError): file = open(ApplicationData.get('contacts.bak')) items = pickle.load(file) except (IOError, OSError): file = None group = ContactGroup('Test') contacts = [Contact(group, 'Call Test', '3333@sip2sip... | 0f2ef3558a357dfc3f0f2122fc1186bc6e7e698b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3447/0f2ef3558a357dfc3f0f2122fc1186bc6e7e698b/contacts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
775,
30,
775,
30,
585,
273,
1696,
12,
3208,
751,
18,
588,
2668,
20777,
26112,
1516,
273,
13379,
18,
945,
12,
768,
13,
1335,
261,
4294,
668,
16,
10002,
4672,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
775,
30,
775,
30,
585,
273,
1696,
12,
3208,
751,
18,
588,
2668,
20777,
26112,
1516,
273,
13379,
18,
945,
12,
768,
13,
1335,
261,
4294,
668,
16,
10002,
4672,
585,
... |
operator a string which will be output as the infix operator between | :param operator: a string which will be output as the infix operator between | def op(self, operator): """produce a generic operator function. | 6bc016a76205aefad3ba6f21a89053a318eeb88e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/6bc016a76205aefad3ba6f21a89053a318eeb88e/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
12,
2890,
16,
3726,
4672,
3536,
11776,
311,
279,
5210,
3726,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
12,
2890,
16,
3726,
4672,
3536,
11776,
311,
279,
5210,
3726,
445,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Returns the degree centrality (fraction of nodes connected to) as a dictionary of values keyed by node. The degree centrality is | Returns the degree centrality (fraction of vertices connected to) as a dictionary of values keyed by vertex. The degree centrality is | def centrality_degree(self, v=False): r""" Returns the degree centrality (fraction of nodes connected to) as a dictionary of values keyed by node. The degree centrality is normalized to be in range (0,1). Measures of the centrality of a vertex within a graph determine the relative importance of that node to its graph... | 7d819cbf1df622e9f76b4801233dbb334f44d362 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7d819cbf1df622e9f76b4801233dbb334f44d362/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
8230,
7919,
67,
21361,
12,
2890,
16,
331,
33,
8381,
4672,
436,
8395,
2860,
326,
10782,
276,
8230,
7919,
261,
16744,
434,
6928,
5840,
358,
13,
487,
279,
3880,
434,
924,
17408,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
8230,
7919,
67,
21361,
12,
2890,
16,
331,
33,
8381,
4672,
436,
8395,
2860,
326,
10782,
276,
8230,
7919,
261,
16744,
434,
6928,
5840,
358,
13,
487,
279,
3880,
434,
924,
17408,
635,
... |
if type is not None: value = type.decode(value) return value | if value is None: return type.default return type.decode(value) | def get_cookie(self, name, type=None): request, response = self.request, self.response # Get the value cookie = response.get_cookie(name) if cookie is None: value = request.get_cookie(name) else: # Check expiration time expires = cookie.expires if expires is not None: expires = expires[5:-4] expires = strptime(expires,... | 52a1b59f947418d1aa25ed45e8d3f3a214552685 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/52a1b59f947418d1aa25ed45e8d3f3a214552685/context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8417,
12,
2890,
16,
508,
16,
618,
33,
7036,
4672,
590,
16,
766,
273,
365,
18,
2293,
16,
365,
18,
2740,
468,
968,
326,
460,
3878,
273,
766,
18,
588,
67,
8417,
12,
529,
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,
336,
67,
8417,
12,
2890,
16,
508,
16,
618,
33,
7036,
4672,
590,
16,
766,
273,
365,
18,
2293,
16,
365,
18,
2740,
468,
968,
326,
460,
3878,
273,
766,
18,
588,
67,
8417,
12,
529,
13,
... |
INPUT: an integer OUTPUT: a list of four numbers whose squares sum to n EXAMPLES:: | INPUT: - ``n`` - an integer OUTPUT: - a list of four numbers whose squares sum to n EXAMPLES:: | def four_squares(n): """ Computes the decomposition into the sum of four squares, using an algorithm described by Peter Schorn at: http://www.schorn.ch/howto.html. INPUT: an integer OUTPUT: a list of four numbers whose squares sum to n EXAMPLES:: sage: four_squares(3) [0, 1, 1, 1] sage: four_squares(130) [0, 0, 3, 1... | 08206c95546f1db2a947692b19f3ca4ec939d5d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/08206c95546f1db2a947692b19f3ca4ec939d5d9/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12792,
67,
87,
29405,
12,
82,
4672,
3536,
14169,
281,
326,
26288,
1368,
326,
2142,
434,
12792,
31206,
16,
1450,
392,
4886,
11893,
635,
453,
847,
348,
4964,
82,
622,
30,
1062,
2207,
5591,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12792,
67,
87,
29405,
12,
82,
4672,
3536,
14169,
281,
326,
26288,
1368,
326,
2142,
434,
12792,
31206,
16,
1450,
392,
4886,
11893,
635,
453,
847,
348,
4964,
82,
622,
30,
1062,
2207,
5591,... |
self.statuslist.append(( _("Package list update"), '', _("Trying to download a new packetlist. Please wait..." ),'', '', statuspng, divpng, None, '' )) | self.statuslist.append(( _("Updating software catalog"), '', _("Searching for available updates. Please wait..." ),'', '', statuspng, divpng, None, '' )) | def setState(self,status = None): if status: self.currList = "status" self.statuslist = [] self["key_green"].setText("") self["key_blue"].setText("") self["key_yellow"].setText("") divpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/div-h.png")) if status == 'update': statuspng = Loa... | 018534fa7bf9be0885b2ffc753d8d6fc5b56143c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/018534fa7bf9be0885b2ffc753d8d6fc5b56143c/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12947,
12,
2890,
16,
2327,
273,
599,
4672,
309,
1267,
30,
365,
18,
17016,
682,
273,
315,
2327,
6,
365,
18,
2327,
1098,
273,
5378,
365,
9614,
856,
67,
11571,
6,
8009,
542,
1528,
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,
12947,
12,
2890,
16,
2327,
273,
599,
4672,
309,
1267,
30,
365,
18,
17016,
682,
273,
315,
2327,
6,
365,
18,
2327,
1098,
273,
5378,
365,
9614,
856,
67,
11571,
6,
8009,
542,
1528,
2932,
... |
issue = self.get_handler(issue_name) | issue = self.get_object(issue_name) | def go_to_issue(self, context): issue_name = context.get_form_value('issue_name') if not issue_name in self.get_handler_names(): return context.come_back(u'Issue not found.') issue = self.get_handler(issue_name) if not isinstance(issue, Issue): return context.come_back(u'Issue not found.') return context.uri.resolve2('... | 1fa77be5b783398ca5fc70ac4c6bcf0d082732e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1fa77be5b783398ca5fc70ac4c6bcf0d082732e2/tracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
67,
869,
67,
13882,
12,
2890,
16,
819,
4672,
5672,
67,
529,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
13882,
67,
529,
6134,
309,
486,
5672,
67,
529,
316,
365,
18,
588,
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,
1960,
67,
869,
67,
13882,
12,
2890,
16,
819,
4672,
5672,
67,
529,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
13882,
67,
529,
6134,
309,
486,
5672,
67,
529,
316,
365,
18,
588,
67,
... |
'style:position="center" ' | 'style:position="top left" ' | def test_image_full(self): style = self.style.clone() style.set_background(uri='Pictures/toto', position='top left', repeat='no-repeat', opacity=50, filter='myfilter') expected = ('<style:style style:family="paragraph">' '<style:paragraph-properties>' '<style:background-image ' 'xlink:href="Pictures/toto" ' 'style:posi... | 6fd6709ea9c81d28c1f17f6ceca4ccec71572ab7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/6fd6709ea9c81d28c1f17f6ceca4ccec71572ab7/test_style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2730,
67,
2854,
12,
2890,
4672,
2154,
273,
365,
18,
4060,
18,
14056,
1435,
2154,
18,
542,
67,
9342,
12,
1650,
2218,
52,
28636,
19,
3307,
83,
2187,
1754,
2218,
3669,
2002,
218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2730,
67,
2854,
12,
2890,
4672,
2154,
273,
365,
18,
4060,
18,
14056,
1435,
2154,
18,
542,
67,
9342,
12,
1650,
2218,
52,
28636,
19,
3307,
83,
2187,
1754,
2218,
3669,
2002,
218... |
model.postProcessParents() | def process(klass, contentHandler): """ Main process entry point. All instantiations of this class should be made through this class method unless you really know what you are doing. """ elements = contentHandler.getRoot().getChildren() model = klass() model.topLevelSimpleTypes = contentHandler.topLevelSimpleTypes mode... | b8edc8e06c23123f9d79f992de7ab12a338c9b98 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1844/b8edc8e06c23123f9d79f992de7ab12a338c9b98/fu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
22626,
16,
913,
1503,
4672,
3536,
12740,
1207,
1241,
1634,
18,
4826,
5934,
77,
1012,
434,
333,
667,
1410,
506,
7165,
3059,
333,
667,
707,
3308,
1846,
8654,
5055,
4121,
1846,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
22626,
16,
913,
1503,
4672,
3536,
12740,
1207,
1241,
1634,
18,
4826,
5934,
77,
1012,
434,
333,
667,
1410,
506,
7165,
3059,
333,
667,
707,
3308,
1846,
8654,
5055,
4121,
1846,
85... | |
self._closer.makefile_close() | def close(self): if self.closed: return self._closer.makefile_close() io.RawIOBase.close(self) | 5632861bff7fa6411b4628799710688d14756ec1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/5632861bff7fa6411b4628799710688d14756ec1/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
12204,
30,
327,
2527,
18,
4809,
4294,
2171,
18,
4412,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
12204,
30,
327,
2527,
18,
4809,
4294,
2171,
18,
4412,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
def processEOF(self, data): | def processEOF(self): | def processEOF(self, data): self.createHTMLNode() self.parser.phase.processEOF() | 8ef6b38c10a7b3aa507d2e8ae3e7fe155e46b6ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/8ef6b38c10a7b3aa507d2e8ae3e7fe155e46b6ae/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12706,
12,
2890,
4672,
365,
18,
2640,
4870,
907,
1435,
365,
18,
4288,
18,
13961,
18,
2567,
12706,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12706,
12,
2890,
4672,
365,
18,
2640,
4870,
907,
1435,
365,
18,
4288,
18,
13961,
18,
2567,
12706,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return curses.tparm(curses.tigetstr("setf"), 6) | return curses.tparm(SETF, 6) | def GetColor(color = None): if not HAVE_COLORS: return "" if color != None: color = color.lower() if (color == "blue"): return curses.tparm(curses.tigetstr("setf"), 1) elif (color == "green"): return curses.tparm(curses.tigetstr("setf"), 2) elif (color == "cyan"): return curses.tparm(curses.tigetstr("setf"), 3) elif (c... | c0695c34a90684ebb8c382fa9ff9081ded7d9802 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/c0695c34a90684ebb8c382fa9ff9081ded7d9802/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2957,
12,
3266,
273,
599,
4672,
309,
486,
21926,
3412,
67,
10989,
55,
30,
327,
1408,
309,
2036,
480,
599,
30,
2036,
273,
2036,
18,
8167,
1435,
309,
261,
3266,
422,
315,
14081,
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,
968,
2957,
12,
3266,
273,
599,
4672,
309,
486,
21926,
3412,
67,
10989,
55,
30,
327,
1408,
309,
2036,
480,
599,
30,
2036,
273,
2036,
18,
8167,
1435,
309,
261,
3266,
422,
315,
14081,
6,
... |
dlg.Destroy() | def onRunScript(self, event_): dlg = wx.FileDialog(None, 'Choose a script to run', './Scripts', '', '*.py', wx.OPEN) if dlg.ShowModal() == wx.ID_OK: try: self.runScript(dlg.GetPath()) except: (exceptionType, exceptionValue, exceptionTraceback) = sys.exc_info() frames = traceback.extract_tb(exceptionTraceback)[2:] dialo... | 7ac073cc28d9d5d60c4a9274d6bf4f34416a6173 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6368/7ac073cc28d9d5d60c4a9274d6bf4f34416a6173/neuroptikon_frame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1997,
3651,
12,
2890,
16,
871,
67,
4672,
25840,
273,
7075,
18,
812,
6353,
12,
7036,
16,
296,
24529,
279,
2728,
358,
1086,
2187,
12871,
15041,
2187,
10226,
19962,
2074,
2187,
7075,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1997,
3651,
12,
2890,
16,
871,
67,
4672,
25840,
273,
7075,
18,
812,
6353,
12,
7036,
16,
296,
24529,
279,
2728,
358,
1086,
2187,
12871,
15041,
2187,
10226,
19962,
2074,
2187,
7075,
1... | |
MarkerInterface,\ | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 85e69b65134313ec3f3db57e106088fcd5133b18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/85e69b65134313ec3f3db57e106088fcd5133b18/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
def history(self, direction='descending'): | def history(self, direction='descending', dre=re.compile('\d+')): | def history(self, direction='descending'): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] comments = {} history = self._klass.history(self._nodeid) history.sort() if directio... | 237ba6557a200663ce36484188c896ac285de68d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/237ba6557a200663ce36484188c896ac285de68d/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4927,
12,
2890,
16,
4068,
2218,
5569,
2846,
2187,
302,
266,
33,
266,
18,
11100,
2668,
64,
72,
6797,
3719,
30,
328,
273,
10228,
32,
2121,
667,
1546,
8189,
7918,
2368,
313,
4438,
451,
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,
4927,
12,
2890,
16,
4068,
2218,
5569,
2846,
2187,
302,
266,
33,
266,
18,
11100,
2668,
64,
72,
6797,
3719,
30,
328,
273,
10228,
32,
2121,
667,
1546,
8189,
7918,
2368,
313,
4438,
451,
20... |
'_topdir ' + os.getcwd() + '/build/rpm',]) | '_topdir %s/%s' % (os.getcwd(), rpm_base),]) | def run (self): | 0e661804b50eec51ca89be25e62a5acc391083e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0e661804b50eec51ca89be25e62a5acc391083e9/bdist_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._points = self._embed(read_palp_matrix( self.poly_x("p", reduce_dimension=True))) self._points.set_immutable() | if self.dim() == 0: self._points = self._vertices else: self._points = self._embed(read_palp_matrix( self.poly_x("p", reduce_dimension=True))) self._points.set_immutable() | def points(self): r""" Return all lattice points of this polytope as columns of a matrix. EXAMPLES: The lattice points of the 3-dimensional octahedron and its polar cube:: sage: o = lattice_polytope.octahedron(3) sage: o.points() [ 1 0 0 -1 0 0 0] [ 0 1 0 0 -1 0 0] [ 0 0 1 0 0 -1 0] sage: cube = o.pola... | 10caea0912f38e43cabd86a75aa2a5a6640cd135 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/10caea0912f38e43cabd86a75aa2a5a6640cd135/lattice_polytope.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3143,
12,
2890,
4672,
436,
8395,
2000,
777,
16690,
3143,
434,
333,
7573,
869,
347,
487,
2168,
434,
279,
3148,
18,
225,
5675,
8900,
11386,
30,
1021,
16690,
3143,
434,
326,
890,
17,
31236,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3143,
12,
2890,
4672,
436,
8395,
2000,
777,
16690,
3143,
434,
333,
7573,
869,
347,
487,
2168,
434,
279,
3148,
18,
225,
5675,
8900,
11386,
30,
1021,
16690,
3143,
434,
326,
890,
17,
31236,... |
if Q >= args[Q_pos][j] and Q < args[Q_pos][j+1]: | if Q[0] >= args[Q_pos][j] and Q[0] < args[Q_pos][j + 1]: | def create_2D_dist(som,*args,**kwargs): """ This function takes a SOM of single spectrum with energy transfer axes and rebins those axes to a given axis and converts the spectra into a single I(Q,E) spectrum. Parameters: ---------- -> som is the input SOM with energy transfer axis SOs -> *args is a mandatory list of a... | 8c0e478ff0fa2abc2e5d85a427bbaf1028f81580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8c0e478ff0fa2abc2e5d85a427bbaf1028f81580/hlr_create_2D_dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
22,
40,
67,
4413,
12,
87,
362,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
434,
2202,
17970,
598,
12929,
7412,
6515,
471,
283,
11862,
5348,
6515,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22,
40,
67,
4413,
12,
87,
362,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
434,
2202,
17970,
598,
12929,
7412,
6515,
471,
283,
11862,
5348,
6515,... |
if not self.flag and collide.dist(self.pos, self.team.base.center) < self.team.base.radius: self.pos[0] += 1 | basedist = collide.dist(self.pos, self.team.base.center) if basedist < self.team.base.radius: angle = math.atan2(self.team.base.center[1]-self.pos[1], self.team.base.center[0]-self.pos[0]) + math.pi self.pos = [math.cos(angle) * self.team.base.radius + self.team.base.pos[0], math.sin(angle) * self.team.base.radius + se... | def update_goals(self, dt): '''update the velocities to match the goals''' if not self.flag and collide.dist(self.pos, self.team.base.center) < self.team.base.radius: self.pos[0] += 1 self.hspeed += self.accelx self.vspeed += self.accely max = 30 if collide.dist((0,0),(self.hspeed, self.vspeed)) > max: dr = math.atan2(... | a88763d0651e3694631bd311df26113d428bb8b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/a88763d0651e3694631bd311df26113d428bb8b7/game.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
3240,
1031,
12,
2890,
16,
3681,
4672,
9163,
2725,
326,
331,
9640,
1961,
358,
845,
326,
1960,
1031,
26418,
2511,
376,
273,
645,
8130,
18,
4413,
12,
2890,
18,
917,
16,
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,
1089,
67,
3240,
1031,
12,
2890,
16,
3681,
4672,
9163,
2725,
326,
331,
9640,
1961,
358,
845,
326,
1960,
1031,
26418,
2511,
376,
273,
645,
8130,
18,
4413,
12,
2890,
18,
917,
16,
365,
18,... |
if len(args["namespace"] == 1): | if len(args["namespace"]) == 1: | def do_GET(self): if self.path.startswith("/?"): args = cgi.parse_qs( self.path[2:] ) else: args = {} | e38f93105bdff22c75ec2b89c6d2a477842bdb88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2338/e38f93105bdff22c75ec2b89c6d2a477842bdb88/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3264,
12,
2890,
4672,
309,
365,
18,
803,
18,
17514,
1918,
2932,
19,
7225,
4672,
833,
273,
276,
10052,
18,
2670,
67,
12926,
12,
365,
18,
803,
63,
22,
26894,
262,
469,
30,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
67,
3264,
12,
2890,
4672,
309,
365,
18,
803,
18,
17514,
1918,
2932,
19,
7225,
4672,
833,
273,
276,
10052,
18,
2670,
67,
12926,
12,
365,
18,
803,
63,
22,
26894,
262,
469,
30,
833... |
Instance attributes defined in this class, initialized when channel is opened: | Class attributes: | def appendleft(self, obj): list.insert(self, 0, obj) | da26c0220f6be8e564309ee809d0345ad26f45a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3782/da26c0220f6be8e564309ee809d0345ad26f45a4/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
4482,
12,
2890,
16,
1081,
4672,
666,
18,
6387,
12,
2890,
16,
374,
16,
1081,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
4482,
12,
2890,
16,
1081,
4672,
666,
18,
6387,
12,
2890,
16,
374,
16,
1081,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if s3_filename.startswith('s3:'): | if s3_file.startswith('s3:'): | def fetch_s3_file(s3_file): try: if s3_filename.startswith('s3:'): bucket_name, key_name = s3_file[len('s3:'):].split('/') c = boto.connect_s3() bucket = c.get_bucket(bucket_name) key = bucket.get_key(key_name) print 'Fetching %s.%s' % (bucket.name, key.name) path = os.path.join(config.get_value('General', 'working_dir... | bdbe45423437bd1a6ef47e57dae4ece0231283e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/bdbe45423437bd1a6ef47e57dae4ece0231283e6/startup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
87,
23,
67,
768,
12,
87,
23,
67,
768,
4672,
775,
30,
309,
272,
23,
67,
768,
18,
17514,
1918,
2668,
87,
23,
2497,
4672,
2783,
67,
529,
16,
498,
67,
529,
273,
272,
23,
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,
2158,
67,
87,
23,
67,
768,
12,
87,
23,
67,
768,
4672,
775,
30,
309,
272,
23,
67,
768,
18,
17514,
1918,
2668,
87,
23,
2497,
4672,
2783,
67,
529,
16,
498,
67,
529,
273,
272,
23,
67... |
return self.getconf('remoteuser') | user = None localeval = self.localeval if self.config.has_option(self.getsection(), 'remoteusereval'): user = self.getconf('remoteusereval') if user != None: return localeval.eval(user) user = self.getconf('remoteuser') if user != None: return user | def getuser(self): return self.getconf('remoteuser') | a6db99a21ee5e9452ed47fb4d1c6237b239eef6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5335/a6db99a21ee5e9452ed47fb4d1c6237b239eef6e/IMAP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1355,
12,
2890,
4672,
327,
365,
18,
588,
3923,
2668,
7222,
1355,
6134,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1355,
12,
2890,
4672,
327,
365,
18,
588,
3923,
2668,
7222,
1355,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.pool.get('ir.model.data').ir_set(self.cr, self.uid, 'action', keyword, \ | self.pool.get('ir.model.data').ir_set(self.cr, 1, 'action', keyword, \ | def process_act_window(self, node): assert getattr(node, 'id'), "Attribute %s of act_window is empty !" % ('id',) assert getattr(node, 'name'), "Attribute %s of act_window is empty !" % ('name',) assert getattr(node, 'res_model'), "Attribute %s of act_window is empty !" % ('res_model',) self.validate_xml_id(node.id) vi... | 9ec0865f7c8ce62032212bcee73dc1b1f39c2b04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9ec0865f7c8ce62032212bcee73dc1b1f39c2b04/yaml_import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
621,
67,
5668,
12,
2890,
16,
756,
4672,
1815,
3869,
12,
2159,
16,
296,
350,
19899,
315,
1499,
738,
87,
434,
1328,
67,
5668,
353,
1008,
29054,
738,
7707,
350,
2187,
13,
1815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
621,
67,
5668,
12,
2890,
16,
756,
4672,
1815,
3869,
12,
2159,
16,
296,
350,
19899,
315,
1499,
738,
87,
434,
1328,
67,
5668,
353,
1008,
29054,
738,
7707,
350,
2187,
13,
1815,
... |
@classmethod def getTable(cls): | @staticmethod def _create_field(*args, **kwargs): """ controls how fields are created when declared in the field list with a simple string, list, tuple, or dictionary rather than a field instance. By default, passes field declaration to the Field constructor. """ return Field(*args, **kwargs) @classmethod def getTab... | def __init__(cls, cl_name, bases, namespace): | 921743729a711ba51ff496b908e5a8ccd1ab477a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/921743729a711ba51ff496b908e5a8ccd1ab477a/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
927,
67,
529,
16,
8337,
16,
1981,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
927,
67,
529,
16,
8337,
16,
1981,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
message = _(u'msg_update_entries', default=u'Entries updated') | message = _(u'msg_update_entry', default=u'Entry updated') | def edit_entries(self, **kwargs): """ In this call we handle a form which contains a list of entries. Each entry has a text and time field which we expect to change. """ tracker = get_tracker(self.context) textkeys = [k for k in self.request.keys() if k.startswith('text-')] timekeys = [k for k in self.request.keys() if... | 964eb18633f02a68ce23066a2f76abe46bdb8672 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10445/964eb18633f02a68ce23066a2f76abe46bdb8672/entry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
8219,
12,
2890,
16,
2826,
4333,
4672,
3536,
657,
333,
745,
732,
1640,
279,
646,
1492,
1914,
279,
666,
434,
3222,
18,
8315,
1241,
711,
279,
977,
471,
813,
652,
1492,
732,
4489... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
8219,
12,
2890,
16,
2826,
4333,
4672,
3536,
657,
333,
745,
732,
1640,
279,
646,
1492,
1914,
279,
666,
434,
3222,
18,
8315,
1241,
711,
279,
977,
471,
813,
652,
1492,
732,
4489... |
@intFields(writeperm = None, capped = None, admin = None) | @intFields(writeperm = None, capped = None, admin = None, remove = None) | def addPermForm(self, auth, userGroupName): groups = self.repServer.auth.getGroupList() labels = self.repServer.auth.getLabelList() troves = self.repServer.auth.getItemList() | 4b66daa2d8f05d6498c511bfb2e56a732b82976d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4b66daa2d8f05d6498c511bfb2e56a732b82976d/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
9123,
1204,
12,
2890,
16,
1357,
16,
729,
3943,
4672,
3252,
273,
365,
18,
14462,
2081,
18,
1944,
18,
588,
1114,
682,
1435,
3249,
273,
365,
18,
14462,
2081,
18,
1944,
18,
588,
2224,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
9123,
1204,
12,
2890,
16,
1357,
16,
729,
3943,
4672,
3252,
273,
365,
18,
14462,
2081,
18,
1944,
18,
588,
1114,
682,
1435,
3249,
273,
365,
18,
14462,
2081,
18,
1944,
18,
588,
2224,... |
function. Right now it's pretty crude.""" | function. Right now it's pretty crude.""" | def toString(self): """Utility method for converting a Field to a string for the purpose of comparing fields. This comparison is used for determining whether a schema has changed in the auto update function. Right now it's pretty crude.""" # TODO fixme s = '%s(%s): {' % ( self.__class__.__name__, self.__name__ ) sorte... | 7ceff8c470eae33b4a063061230f3f8948cfaf8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/7ceff8c470eae33b4a063061230f3f8948cfaf8b/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1762,
12,
2890,
4672,
3536,
6497,
707,
364,
14540,
279,
2286,
358,
279,
533,
364,
326,
13115,
434,
17553,
1466,
18,
225,
1220,
5826,
353,
1399,
364,
23789,
2856,
279,
1963,
711,
3550,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1762,
12,
2890,
4672,
3536,
6497,
707,
364,
14540,
279,
2286,
358,
279,
533,
364,
326,
13115,
434,
17553,
1466,
18,
225,
1220,
5826,
353,
1399,
364,
23789,
2856,
279,
1963,
711,
3550,
31... |
if self.mode >= 0: self.chmod(macros['destdir'], thisdest[destlen:]) def __init__(self, fromFiles, toFile, mode, use, component): | self.chmod(macros['destdir'], thisdest[destlen:]) def __init__(self, fromFiles, toFile, **keywords): _FileAction.__init__(self, **keywords) | def do(self, macros): | fe27d4ad6ae0ded6abdad24608dcfc91c29d3e4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/fe27d4ad6ae0ded6abdad24608dcfc91c29d3e4d/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
24302,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
24302,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
max_snp_mismatch_rate, max_snp_NA_rate, npute_window_size, self.output_fname) | max_snp_mismatch_rate, max_snp_NA_rate, npute_window_size, self.output_dir) | def run(self): """ 2008-05-09 """ self.parameter_names = ['max_call_mismatch_rate_ls', 'max_call_NA_rate_ls', \ 'max_snp_mismatch_rate_ls', 'max_snp_NA_rate_ls', 'npute_window_size_ls'] if self.debug: #serial debug import pdb pdb.set_trace() init_data = self.create_init_data() min_call_probability, max_call_mismatch_ra... | f63587f08905f60d56304e528550eaba6f93898b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/f63587f08905f60d56304e528550eaba6f93898b/MpiQCCall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
4044,
28,
17,
6260,
17,
5908,
3536,
365,
18,
6775,
67,
1973,
273,
10228,
1896,
67,
1991,
67,
11173,
1916,
67,
5141,
67,
3251,
2187,
296,
1896,
67,
1991,
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,
1086,
12,
2890,
4672,
3536,
4044,
28,
17,
6260,
17,
5908,
3536,
365,
18,
6775,
67,
1973,
273,
10228,
1896,
67,
1991,
67,
11173,
1916,
67,
5141,
67,
3251,
2187,
296,
1896,
67,
1991,
67,... |
ret = [] for tag, line in get_all_tag_lines(data): cur = '<large>%s</large>' % tag if tag.startswith('00'): cur += '<code>%s</code>\n' % esc(line[:-1]) else: cur += '<code>' + esc_sp(line[0:2]) + ''.join("<b>$%s</b>%s" % (esc_sp(k), esc(v)) for k, v in get_all_subfields(line)) + '</code>' ret.append(cur) return '<br>\n... | return '<br>\n'.join(html_line(t, l) for t, l in get_all_tag_lines(data)) | def as_html(data): ret = [] for tag, line in get_all_tag_lines(data): cur = '<large>%s</large>' % tag if tag.startswith('00'): # control field: cur += '<code>%s</code>\n' % esc(line[:-1]) else: cur += '<code>' + esc_sp(line[0:2]) + ''.join("<b>$%s</b>%s" % (esc_sp(k), esc(v)) for k, v in get_all_subfields(line)) + '</c... | 724a0bd2f48077c45389f1c4f1045877bf29ac00 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/724a0bd2f48077c45389f1c4f1045877bf29ac00/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2620,
12,
892,
4672,
325,
273,
5378,
364,
1047,
16,
980,
316,
336,
67,
454,
67,
2692,
67,
3548,
12,
892,
4672,
662,
273,
2368,
14095,
9822,
87,
1757,
14095,
1870,
738,
1047,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2620,
12,
892,
4672,
325,
273,
5378,
364,
1047,
16,
980,
316,
336,
67,
454,
67,
2692,
67,
3548,
12,
892,
4672,
662,
273,
2368,
14095,
9822,
87,
1757,
14095,
1870,
738,
1047,
... |
viewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"ui/actions/View/Right.png\"><br> "\ | viewRightActionText =\ "<u><b>Right View</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Right.png\"><br> "\ | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their... | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... |
fp = open(pathname, "U") | if hasattr(sys.stdout, "newlines"): fp = open(pathname, "U") else: fp = open(pathname, "r") | def load_file(self, pathname): dir, name = os.path.split(pathname) name, ext = os.path.splitext(name) fp = open(pathname, "U") stuff = (ext, "r", imp.PY_SOURCE) self.load_module(name, fp, pathname, stuff) | 5dfe9be5ef61518a8b81e4c9b253068998be2078 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5dfe9be5ef61518a8b81e4c9b253068998be2078/modulefinder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
768,
12,
2890,
16,
9806,
4672,
1577,
16,
508,
273,
1140,
18,
803,
18,
4939,
12,
28336,
13,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
529,
13,
309,
3859,
12,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
768,
12,
2890,
16,
9806,
4672,
1577,
16,
508,
273,
1140,
18,
803,
18,
4939,
12,
28336,
13,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
529,
13,
309,
3859,
12,
9... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 310) else quickfix.StringField.__init__(self, 310, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
2163,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
2163,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,... |
maximal. Note that this may not be the term which actually appears first when ``self`` is printed. If the default term ordering is not what is desired, a comparison function, cmp(x,y), can be provided. | maximal. Note that this may not be the term which actually appears first when ``self`` is printed. If the default term ordering is not what is desired, a comparison function, cmp(x,y), can be provided. | def leading_term(self, cmp=None): r""" Returns the leading term of ``self``. | af11dfe919a0b487f6e716e60a01a0379a53e463 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/af11dfe919a0b487f6e716e60a01a0379a53e463/modules_with_basis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7676,
67,
6408,
12,
2890,
16,
9411,
33,
7036,
4672,
436,
8395,
2860,
326,
7676,
2481,
434,
12176,
2890,
68,
8338,
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,
7676,
67,
6408,
12,
2890,
16,
9411,
33,
7036,
4672,
436,
8395,
2860,
326,
7676,
2481,
434,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
_('Use any branch information in patch (implied by --exact)'))] + commitopts, _('hg import [-p NUM] [-m MESSAGE] [-f] PATCH...')), | _('Use any branch information in patch (implied by --exact)'))] + commitopts + commitopts2, _('hg import [OPTION]... PATCH...')), | def version_(ui): """output version and copyright information""" ui.write(_("Mercurial Distributed SCM (version %s)\n") % version.get_version()) ui.status(_( "\nCopyright (C) 2005-2007 Matt Mackall <mpm@selenic.com> and others\n" "This is free software; see the source for copying conditions. " "There is NO\nwarranty; "... | 2fd5dbc9c1e5ff4c6e98cdc5eb3acbc3166c9737 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/2fd5dbc9c1e5ff4c6e98cdc5eb3acbc3166c9737/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
67,
12,
4881,
4672,
3536,
2844,
1177,
471,
22245,
1779,
8395,
5915,
18,
2626,
24899,
2932,
8478,
1397,
649,
27877,
8795,
49,
261,
1589,
738,
87,
5153,
82,
7923,
738,
1177,
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,
1177,
67,
12,
4881,
4672,
3536,
2844,
1177,
471,
22245,
1779,
8395,
5915,
18,
2626,
24899,
2932,
8478,
1397,
649,
27877,
8795,
49,
261,
1589,
738,
87,
5153,
82,
7923,
738,
1177,
18,
588,... |
return 'greatest(0,datediff(least(%s,%s,%s), greatest(%s,%s,%s)))' % (e1,e2,e3,s1,s2,s3) | return 'greatest(0,timestampdiff(second,greatest(%s,%s,%s),least(%s,%s,%s)))/86400' % (s1,s2,s3,e1,e2,e3) | def sql_overlap3(s1,e1,s2,e2,s3,e3): return 'greatest(0,datediff(least(%s,%s,%s), greatest(%s,%s,%s)))' % (e1,e2,e3,s1,s2,s3) | 08dc9f1871fb9f0748ae0c068c27568973148e48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8604/08dc9f1871fb9f0748ae0c068c27568973148e48/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1847,
67,
17946,
23,
12,
87,
21,
16,
73,
21,
16,
87,
22,
16,
73,
22,
16,
87,
23,
16,
73,
23,
4672,
327,
296,
75,
6150,
395,
12,
20,
16,
12563,
3048,
12,
16446,
9275,
87,
15529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1847,
67,
17946,
23,
12,
87,
21,
16,
73,
21,
16,
87,
22,
16,
73,
22,
16,
87,
23,
16,
73,
23,
4672,
327,
296,
75,
6150,
395,
12,
20,
16,
12563,
3048,
12,
16446,
9275,
87,
15529,
... |
x_to_p_less_one = x**(p-1) x_to_p = x_to_p_less_one * x x_to_p_cubed = x_to_p.square() * x_to_p r = (base_ring(1) / base_ring(2)) * (x_to_p_cubed + Q[1]*x_to_p + S(Q[0])) | x_to_p_less_one = x**(p-1) x_to_p = x_to_p_less_one * x x_to_p_cubed = x_to_p.square() * x_to_p r = (base_ring(1) / base_ring(2)) * (x_to_p_cubed + Q[1]*x_to_p + S(Q[0])) | def frobenius_expansion_by_newton(Q, p, M): r""" Computes the action of Frobenius on $dx/y$ and on $x dx/y$, using Newton's method (as suggested in Kedlaya's paper). (This function does *not* yet use the cohomology relations -- that happens afterwards in the "reduction" step.) More specifically, it finds $F_0$ and $F... | 06ea403f27d6562f2b12bd1e2b8f27b9b674388a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/06ea403f27d6562f2b12bd1e2b8f27b9b674388a/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
303,
19425,
8384,
67,
2749,
12162,
67,
1637,
67,
2704,
1917,
12,
53,
16,
293,
16,
490,
4672,
436,
8395,
14169,
281,
326,
1301,
434,
478,
303,
19425,
8384,
603,
271,
13437,
19,
93,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
303,
19425,
8384,
67,
2749,
12162,
67,
1637,
67,
2704,
1917,
12,
53,
16,
293,
16,
490,
4672,
436,
8395,
14169,
281,
326,
1301,
434,
478,
303,
19425,
8384,
603,
271,
13437,
19,
93,... |
for i in xrange(min(revs) + 1, len(self)): | for i in xrange(first + 1, len(self)): | def descendants(self, *revs): """Generate the descendants of 'revs' in revision order. | d4eeb7e371bcd2ef6fcbb6ae8c8e6c1f7fc5da9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/d4eeb7e371bcd2ef6fcbb6ae8c8e6c1f7fc5da9b/revlog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18039,
12,
2890,
16,
380,
266,
6904,
4672,
3536,
4625,
326,
18039,
434,
296,
266,
6904,
11,
316,
6350,
1353,
18,
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,
18039,
12,
2890,
16,
380,
266,
6904,
4672,
3536,
4625,
326,
18039,
434,
296,
266,
6904,
11,
316,
6350,
1353,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.avatar = LocalAvatar.LocalAvatar(None, None, None) | self.avatar = LEAvatar(None, None, None) | def useDriveMode(self): """ Lerp down to eye level then switch to Drive mode """ # create avatar and set it's location to the camera if (self.avatar == None): #self.avatar = RobotToon.RobotToon() self.avatar = LocalAvatar.LocalAvatar(None, None, None) base.localAvatar = self.avatar self.avatar.doId = 0 self.avatar.robo... | 97e2d19ab961b670b3ad177dfe05a057eda260aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/97e2d19ab961b670b3ad177dfe05a057eda260aa/LevelEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
24681,
2309,
12,
2890,
4672,
3536,
511,
264,
84,
2588,
358,
16098,
1801,
1508,
1620,
358,
11473,
688,
1965,
3536,
468,
752,
16910,
471,
444,
518,
1807,
2117,
358,
326,
10836,
309,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
24681,
2309,
12,
2890,
4672,
3536,
511,
264,
84,
2588,
358,
16098,
1801,
1508,
1620,
358,
11473,
688,
1965,
3536,
468,
752,
16910,
471,
444,
518,
1807,
2117,
358,
326,
10836,
309,
2... |
if progress_callback: progress_callback('index.html') | self._files_written += 1 log.progress(self._files_written/self._num_files, 'index.html') | def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory. | fab1255010a52ee17b13b50d1696c13e716be512 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/fab1255010a52ee17b13b50d1696c13e716be512/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
], | ] + ['build/simuPOP_%s' % x for x in MODULES], | def ModuInfo(modu, SIMUPOP_VER, SIMUPOP_REV): # boost_inc_path = boost_include_dir boost_lib_names = [] boost_lib_path = None res = {} res['src'] = ['build/simuPOP_' + modu + '_wrap.cpp'] for src in SOURCE_FILES: res['src'].append(src[:-4] + '_' + modu + '.cpp') res['src'].extend(LIB_FILES) # lib if os.name == 'nt': ... | f2e8acc368de90f765575993e5a4ecc699cc430c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/f2e8acc368de90f765575993e5a4ecc699cc430c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3431,
89,
966,
12,
1711,
89,
16,
31433,
57,
30374,
67,
2204,
16,
31433,
57,
30374,
67,
862,
58,
4672,
468,
14994,
67,
9523,
67,
803,
273,
14994,
67,
6702,
67,
1214,
14994,
67,
2941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3431,
89,
966,
12,
1711,
89,
16,
31433,
57,
30374,
67,
2204,
16,
31433,
57,
30374,
67,
862,
58,
4672,
468,
14994,
67,
9523,
67,
803,
273,
14994,
67,
6702,
67,
1214,
14994,
67,
2941,
... |
cp_cmd = "cp %s/* %s/opt/mozilla/[a-z\-\.0-9]*/defaults/preferences/" % \ | cp_cmd = "cp %s/* %s/opt/mozilla/[a-z\-\.0-9]*/defaults/pref/" % \ | def copyFiles(self): full_path = "%s/preferences" % self.full_partner_path if os.path.exists(full_path): cp_cmd = "cp %s/* %s/opt/mozilla/[a-z\-\.0-9]*/defaults/preferences/" % \ (full_path, self.tmpdir) shellCommand(cp_cmd) | 2b72b9e05797f09c24ac4299448fae53cf1c38cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/2b72b9e05797f09c24ac4299448fae53cf1c38cb/partner-repacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
2697,
12,
2890,
4672,
1983,
67,
803,
273,
2213,
87,
19,
23219,
6,
738,
365,
18,
2854,
67,
31993,
67,
803,
309,
1140,
18,
803,
18,
1808,
12,
2854,
67,
803,
4672,
3283,
67,
4172,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
2697,
12,
2890,
4672,
1983,
67,
803,
273,
2213,
87,
19,
23219,
6,
738,
365,
18,
2854,
67,
31993,
67,
803,
309,
1140,
18,
803,
18,
1808,
12,
2854,
67,
803,
4672,
3283,
67,
4172,... |
gtest_filter = self._options.gtest_filter | gtest_filter = self._gtest_filter | def _ReadGtestFilterFile(self, name, cmd): '''Read a file which is a list of tests to filter out with --gtest_filter and append the command-line option to cmd. ''' filters = [] for directory in self._data_dirs: gtest_filter_files = [ os.path.join(directory, name + ".gtest.txt"), os.path.join(directory, name + ".gtest-%... | 3130c2db3d14804287e0c5fd99fad239f7858386 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/3130c2db3d14804287e0c5fd99fad239f7858386/chrome_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
43,
3813,
1586,
812,
12,
2890,
16,
508,
16,
1797,
4672,
9163,
1994,
279,
585,
1492,
353,
279,
666,
434,
7434,
358,
1034,
596,
598,
1493,
75,
3813,
67,
2188,
471,
714,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
43,
3813,
1586,
812,
12,
2890,
16,
508,
16,
1797,
4672,
9163,
1994,
279,
585,
1492,
353,
279,
666,
434,
7434,
358,
1034,
596,
598,
1493,
75,
3813,
67,
2188,
471,
714,
326,
... |
curs.execute(query, (one_day, ed)) | if host: curs.execute(query, (one_day, ed, host)) elif user: curs.execute(query, (one_day, ed, user)) else: curs.execute(query, (one_day, ed)) | def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None | 23256af1e8e77c746a31d94ef7f2cab0675707b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/23256af1e8e77c746a31d94ef7f2cab0675707b6/untangle_base_webfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
-100,
-100,
-1... |
where "command" is a string that can be passed to Subprocess.Popen() | where "command" is a string that can be passed to subprocess.Popen() | def ssl(self): """Return SSLObject instance used to communicate with the IMAP4 server. | 36f4214255ec8a2b5e0389a4e18cfcdec5c987ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/36f4214255ec8a2b5e0389a4e18cfcdec5c987ed/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5832,
12,
2890,
4672,
3536,
990,
7419,
921,
791,
1399,
358,
15541,
598,
326,
6246,
2203,
24,
1438,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5832,
12,
2890,
4672,
3536,
990,
7419,
921,
791,
1399,
358,
15541,
598,
326,
6246,
2203,
24,
1438,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pass | def __init__(self, uri = None): if uri is not None: self.connection = _connect(uri) def connect(self, uri): self.connection = _connect(uri) def write(self, data, statement): pass def create(self, data, tabname): pass | def data(self): self.update() if self.exampleTable: return self.exampleTable return None | 914335463cf95b57b6ce129d8bf6106fa5882b1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/914335463cf95b57b6ce129d8bf6106fa5882b1d/orngSQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
12,
2890,
4672,
365,
18,
2725,
1435,
309,
365,
18,
8236,
1388,
30,
327,
365,
18,
8236,
1388,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
12,
2890,
4672,
365,
18,
2725,
1435,
309,
365,
18,
8236,
1388,
30,
327,
365,
18,
8236,
1388,
327,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
output_phyi = "temp_f002.phy" | output_html = "temp_f002.html" | def test_with_multiple_output_formats(self): """Simple muscle call with multiple output formats""" input_file = "Fasta/f002" output_phyi = "temp_f002.phy" output_clwstrict = "temp_f002.clw" self.assert_(os.path.isfile(input_file)) records = list(SeqIO.parse(open(input_file),"fasta")) #Prepare the command... use Clustal... | 3fd73a34807fc3c7f44b6cc0c89d28fb80658d1b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/3fd73a34807fc3c7f44b6cc0c89d28fb80658d1b/test_Muscle_tool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1918,
67,
9622,
67,
2844,
67,
11962,
12,
2890,
4672,
3536,
5784,
312,
407,
2131,
745,
598,
3229,
876,
6449,
8395,
810,
67,
768,
273,
315,
12305,
69,
19,
74,
24908,
6,
876,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1918,
67,
9622,
67,
2844,
67,
11962,
12,
2890,
4672,
3536,
5784,
312,
407,
2131,
745,
598,
3229,
876,
6449,
8395,
810,
67,
768,
273,
315,
12305,
69,
19,
74,
24908,
6,
876,
... |
menu_item_object, menu_item_id, menu, context) | menu_item_object, menu_item_id[0], menu, context) | def _menu_for(self, cursor, user, identifier, ident_field_value, context=None): """ Returns a dictionary of menu tree | f433c2248755933f43055728de032cb05d66b56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2593/f433c2248755933f43055728de032cb05d66b56f/cms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5414,
67,
1884,
12,
2890,
16,
3347,
16,
729,
16,
2756,
16,
3390,
67,
1518,
67,
1132,
16,
819,
33,
7036,
4672,
3536,
2860,
279,
3880,
434,
3824,
2151,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5414,
67,
1884,
12,
2890,
16,
3347,
16,
729,
16,
2756,
16,
3390,
67,
1518,
67,
1132,
16,
819,
33,
7036,
4672,
3536,
2860,
279,
3880,
434,
3824,
2151,
2,
-100,
-100,
-100,
-100,
... |
def Accumulated_GC_skew(seq, window = 1000): " calculates the accumulated GC skew (G-C)/(G+C) (easier to see)" values = [] | def xGC_skew(seq, window = 1000, zoom = 100, r = 300, px = 100, py = 100): " calculates and plots normal and accumulated GC skew (GRAPHICS !!!) " from Tkinter import * from math import pi, sin, cos, log yscroll = Scrollbar(orient = VERTICAL) xscroll = Scrollbar(orient = HORIZONTAL) canvas = Canvas(yscrollcommand = ys... | def Accumulated_GC_skew(seq, window = 1000): " calculates the accumulated GC skew (G-C)/(G+C) (easier to see)" values = [] acc = 0 for i in range(0, len(seq), window): s = seq[i: i + window] print GC(s) acc += GC(s) values.append(acc) return values | 53822bd9bbc4f9ef4bb8423ba4ecd44a9a518636 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/53822bd9bbc4f9ef4bb8423ba4ecd44a9a518636/sequtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
15396,
67,
7771,
359,
12,
5436,
16,
2742,
273,
4336,
16,
7182,
273,
2130,
16,
436,
273,
11631,
16,
10318,
273,
2130,
16,
2395,
273,
2130,
4672,
315,
17264,
471,
17931,
2212,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
15396,
67,
7771,
359,
12,
5436,
16,
2742,
273,
4336,
16,
7182,
273,
2130,
16,
436,
273,
11631,
16,
10318,
273,
2130,
16,
2395,
273,
2130,
4672,
315,
17264,
471,
17931,
2212,
471,
... |
icalendar.remove(self, 'VEVENT', uid) | def remove(self, context): uid = context.get_form_value('UID') method = context.get_form_value('method', 'monthly_view') icalendar.remove(self, 'VEVENT', uid) goto = ';%s?%s' % (method, self.get_current_date()) if method not in dir(self): goto = '../;%s?%s' % (method, self.get_current_date()) return context.come_back(u... | cdcbfc5c5dcf59ef595103ae4ba9fe6baaeec457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/cdcbfc5c5dcf59ef595103ae4ba9fe6baaeec457/ical.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
819,
4672,
4555,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
3060,
6134,
707,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
2039,
2187,
296,
7496,
715,
67,
1945,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
819,
4672,
4555,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
3060,
6134,
707,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
2039,
2187,
296,
7496,
715,
67,
1945,
61... | |
data_key_name = keyed_data['Quantity'].strip()+"~"+keyed_data['Group'].strip()+"~"+keyed_data['Dataname'].strip()+"~"+keyed_data['Exp_Col_Name'].strip() print "Key Name:", data_key_name | data_key_name = keyed_data['Quantity'].strip()+"~"+keyed_data['Group'].strip()+"~"+keyed_data['Dataname'].strip()+"~"+keyed_data['Exp_Y_Col_Name'].strip() | def extract_config_data(config_file): print "*** Extracting Configuration Data and Building Dictionaries ***" # Collect Data from Config File groups_dict = {} quantities_dict = {} data_dict = {} keyed_groups = {} keyed_quantities = {} keyed_data = {} quantity_counter = 0 data_counter = 0 group_counter = 0 skip_counter... | c2bd4f556a2ce61eab4e48660ca05fb2aaf49751 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/c2bd4f556a2ce61eab4e48660ca05fb2aaf49751/Validation_Data_Processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
1425,
67,
892,
12,
1425,
67,
768,
4672,
1172,
315,
14465,
8152,
310,
4659,
1910,
471,
3998,
310,
463,
14336,
18852,
6,
225,
468,
9302,
1910,
628,
1903,
1387,
3252,
67,
1576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
1425,
67,
892,
12,
1425,
67,
768,
4672,
1172,
315,
14465,
8152,
310,
4659,
1910,
471,
3998,
310,
463,
14336,
18852,
6,
225,
468,
9302,
1910,
628,
1903,
1387,
3252,
67,
1576,
... |
self.__param_tuple__ = (self.__query_dict__['dillhole'][2],) | self.__param_tuple__ = (self.__query_dict__['expression'][2],) | def __init__(self, database, query_dict=None): """ point out strings '"value"' """ | 85d02cb25b26fc015382d67ed0b0b5b5529e5568 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/85d02cb25b26fc015382d67ed0b0b5b5529e5568/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
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,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
identity.__doc__ = projection_func_identity.__doc__ | def identity(self): """ Returns the identity projection. | 84c90f627aa2eefd601a2ae3a4ad63f4e91ac1cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/84c90f627aa2eefd601a2ae3a4ad63f4e91ac1cc/polyhedra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4215,
12,
2890,
4672,
3536,
2860,
326,
4215,
8106,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4215,
12,
2890,
4672,
3536,
2860,
326,
4215,
8106,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
if (oldValues.has_key(key)): oldValues[key][0] += njobs oldValues[key][1] += wall | if (oldValues.has_key(keys)): oldValues[keys][0] += njobs oldValues[keys][1] += wall | def GenericRange(what, range_end = datetime.date.today(), range_begin = None, output = "text"): factor = 3600 # Convert number of seconds to number of hours if (not range_begin or range_begin == None): range_begin = range_end + datetime.timedelta(days=-1) if (not range_end or range_end == None): range_end = range_beg... | 840d5408521dcd3fd349c48313ce276b0ab91bb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/840d5408521dcd3fd349c48313ce276b0ab91bb4/PSACCTReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7928,
2655,
12,
23770,
16,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
6,
4672,
5578,
273,
12396,
225,
468,
4037,
1300,
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,
7928,
2655,
12,
23770,
16,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
6,
4672,
5578,
273,
12396,
225,
468,
4037,
1300,
434,
... |
if op in (LITERAL, NOT_LITERAL): | if op in LITERAL_CODES: | def _compile(code, pattern, flags): # internal: compile a (sub)pattern emit = code.append for op, av in pattern: if op in (LITERAL, NOT_LITERAL): if flags & SRE_FLAG_IGNORECASE: emit(OPCODES[OP_IGNORE[op]]) emit(_sre.getlower(av, flags)) else: emit(OPCODES[op]) emit(av) elif op is IN: if flags & SRE_FLAG_IGNORECASE: em... | 3f8fdffe72485d69e9e31bdeb4796c1cca750eba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f8fdffe72485d69e9e31bdeb4796c1cca750eba/sre_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
12,
710,
16,
1936,
16,
2943,
4672,
468,
2713,
30,
4074,
279,
261,
1717,
13,
4951,
3626,
273,
981,
18,
6923,
364,
1061,
16,
1712,
316,
1936,
30,
309,
1061,
316,
511,
18454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11100,
12,
710,
16,
1936,
16,
2943,
4672,
468,
2713,
30,
4074,
279,
261,
1717,
13,
4951,
3626,
273,
981,
18,
6923,
364,
1061,
16,
1712,
316,
1936,
30,
309,
1061,
316,
511,
18454,
... |
return scm_map[scm_name](url, root_dir, relpath, scm_name) | return scm_map[scm_name](orig_url, root_dir, relpath, scm_name) | def CreateSCM(url=None, root_dir=None, relpath=None, scm_name='svn'): # TODO(maruel): Deduce the SCM from the url. scm_map = { 'svn' : SVNWrapper, 'git' : GitWrapper, } if url and (url.startswith('git:') or url.startswith('ssh:') or url.endswith('.git')): scm_name = 'git' if not scm_name in scm_map: raise gclient_uti... | 85b8f5dba3aba4ea68291e6ad299fdf2681d8869 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/85b8f5dba3aba4ea68291e6ad299fdf2681d8869/gclient_scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
2312,
49,
12,
718,
33,
7036,
16,
1365,
67,
1214,
33,
7036,
16,
14614,
33,
7036,
16,
29207,
67,
529,
2218,
31505,
11,
4672,
468,
2660,
12,
3684,
20317,
4672,
463,
329,
3965,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
2312,
49,
12,
718,
33,
7036,
16,
1365,
67,
1214,
33,
7036,
16,
14614,
33,
7036,
16,
29207,
67,
529,
2218,
31505,
11,
4672,
468,
2660,
12,
3684,
20317,
4672,
463,
329,
3965,
326,
... |
self._checkLogLevel(level) | """ Log data without and prefix. """ self._checkLogLevel(level, min=self.FATAL, max=self.DEBUG_MAX) | def log(self, level, data): self._checkLogLevel(level) self._log(level, 0, 1, "%s", data) | 3d7d63966162f8881fad278dc8cc728a7e5a1f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/3d7d63966162f8881fad278dc8cc728a7e5a1f77/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
1801,
16,
501,
4672,
3536,
1827,
501,
2887,
471,
1633,
18,
3536,
365,
6315,
1893,
21806,
12,
2815,
16,
1131,
33,
2890,
18,
29891,
16,
943,
33,
2890,
18,
9394,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
1801,
16,
501,
4672,
3536,
1827,
501,
2887,
471,
1633,
18,
3536,
365,
6315,
1893,
21806,
12,
2815,
16,
1131,
33,
2890,
18,
29891,
16,
943,
33,
2890,
18,
9394,
67,
... |
win32api.Sleep(2) | win32api.Sleep(2) | def win32_launcher(commandline): startupInfo = win32process.STARTUPINFO() startupInfo.dwFlags = win32process.DETACHED_PROCESS | win32process.STARTF_USESHOWWINDOW startupInfo.wShowWindow = win32con.SW_HIDE hProcess, hThread, dwProcessId, dwThreadId = \ win32process.CreateProcess(None, commandline, None, None, 0, 0, None... | cb21993c059a29db03180285e4c1a09e1235d9a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/cb21993c059a29db03180285e4c1a09e1235d9a2/converter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5657,
1578,
67,
20738,
264,
12,
3076,
1369,
4672,
11850,
966,
273,
5657,
1578,
2567,
18,
7570,
3079,
5923,
1435,
11850,
966,
18,
22512,
5094,
273,
5657,
1578,
2567,
18,
40,
31370,
15023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5657,
1578,
67,
20738,
264,
12,
3076,
1369,
4672,
11850,
966,
273,
5657,
1578,
2567,
18,
7570,
3079,
5923,
1435,
11850,
966,
18,
22512,
5094,
273,
5657,
1578,
2567,
18,
40,
31370,
15023,
... |
angle_samples = np.linspace(0,2*np.pi,angles) | angle_samples = np.linspace(0, 2*np.pi, angles) | def logpolar(ref_img,img_list,window_shape=None,angles=180, variance_threshold=0.75,peak_thresh=5): """Register the given images using log polar transforms. Output: ------- accepted : bool array For each of the input frames, return whether the image could be used. Hs : list of (3,3) floating point arrays For each of ... | cc3c399ed2f306cdf02d244f317c4793f63d5a0c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12843/cc3c399ed2f306cdf02d244f317c4793f63d5a0c/logpolar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
3915,
297,
12,
1734,
67,
6081,
16,
6081,
67,
1098,
16,
5668,
67,
4867,
33,
7036,
16,
12356,
33,
18278,
16,
12380,
67,
8699,
33,
20,
18,
5877,
16,
10244,
67,
19237,
33,
25,
4672,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
3915,
297,
12,
1734,
67,
6081,
16,
6081,
67,
1098,
16,
5668,
67,
4867,
33,
7036,
16,
12356,
33,
18278,
16,
12380,
67,
8699,
33,
20,
18,
5877,
16,
10244,
67,
19237,
33,
25,
4672,... |
newStore = self.store.extract('d','b','p') | newStore = self.store.extract(['d','b','p']) | def test_extract(self): '''DictStore: Test the extract function''' newStore = self.store.extract('d','b','p') #newStore.save('test_dictstore1.csv') | 45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8004,
12,
2890,
4672,
9163,
5014,
2257,
30,
7766,
326,
2608,
445,
26418,
394,
2257,
273,
365,
18,
2233,
18,
8004,
12,
3292,
72,
17023,
70,
17023,
84,
19486,
468,
2704,
2257,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
8004,
12,
2890,
4672,
9163,
5014,
2257,
30,
7766,
326,
2608,
445,
26418,
394,
2257,
273,
365,
18,
2233,
18,
8004,
12,
3292,
72,
17023,
70,
17023,
84,
19486,
468,
2704,
2257,
... |
['verbose', 'v', 'verbose color output'], | ['verbose', 'v', 'verbose color output (default)'], | def remove(self): if self in log.theLogPublisher.observers: log.removeObserver(self) | f904174f21f710dc919e29681965ae0589740649 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f904174f21f710dc919e29681965ae0589740649/trial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
4672,
309,
365,
316,
613,
18,
5787,
1343,
15960,
18,
12199,
2496,
30,
613,
18,
4479,
11048,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
4672,
309,
365,
316,
613,
18,
5787,
1343,
15960,
18,
12199,
2496,
30,
613,
18,
4479,
11048,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.histogramCheck.setChecked(False) self.histogramCheck.setDisabled(True) self.histogramLabel.setDisabled(True) | def __init__(self,parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "Nomogram", 1) | 73262a6b44aac8122745c128bc45bdad25f591e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/73262a6b44aac8122745c128bc45bdad25f591e8/OWNomogram.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
26685,
5553,
3113,
404,
13,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
26685,
5553,
3113,
404,
13,
2,... | |
(user, subnamespace, tagname) = self.tag_path_split (tag) | (user, subnamespace, tagname) = self.tag_path_split(tag) | def create_abstract_tag (self, tag, description=None, indexed=True): """Creates an (abstract) tag with the name (full path) given. The tag is not applied to any object. If the tag's name (tag) contains slashes, namespaces are created as needed. | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
17801,
67,
2692,
261,
2890,
16,
1047,
16,
2477,
33,
7036,
16,
8808,
33,
5510,
4672,
3536,
2729,
392,
261,
17801,
13,
1047,
598,
326,
508,
261,
2854,
589,
13,
864,
18,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17801,
67,
2692,
261,
2890,
16,
1047,
16,
2477,
33,
7036,
16,
8808,
33,
5510,
4672,
3536,
2729,
392,
261,
17801,
13,
1047,
598,
326,
508,
261,
2854,
589,
13,
864,
18,
1021,
... |
line = geom.readline().strip() | line = geom.next().strip() | def read_geom(): opened = False if type(geom) == type(''): geom = open(geom, 'r') opened = True lines = [] line = geom.readline().strip() # Skip header if present if line.startswith('BEGIN header'): while not line.startswith('END header'): line = geom.readline().strip() geom.readline() # skip blank line else: lines.a... | 39dd3544f0f8fd6f2cc4ecc741e1de15fbb88db0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/39dd3544f0f8fd6f2cc4ecc741e1de15fbb88db0/castep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
10049,
13332,
10191,
273,
1083,
309,
618,
12,
10049,
13,
422,
618,
2668,
11,
4672,
7364,
273,
1696,
12,
10049,
16,
296,
86,
6134,
10191,
273,
1053,
225,
2362,
273,
5378,
980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
10049,
13332,
10191,
273,
1083,
309,
618,
12,
10049,
13,
422,
618,
2668,
11,
4672,
7364,
273,
1696,
12,
10049,
16,
296,
86,
6134,
10191,
273,
1053,
225,
2362,
273,
5378,
980,
... |
def __init__(self, offset_vector): | def __init__(self, offset_vector, time_slide_id = None): self.time_slide_id = time_slide_id | def __init__(self, offset_vector): self.offset_vector = offset_vector self.deltas = ligolw_tisi.offset_vector_to_deltas(offset_vector) self.components = set() | 602bb20f07221107abd463f1f997ff3cd558a7bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/602bb20f07221107abd463f1f997ff3cd558a7bd/snglcoinc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1384,
67,
7737,
16,
813,
67,
26371,
67,
350,
273,
599,
4672,
365,
18,
957,
67,
26371,
67,
350,
273,
813,
67,
26371,
67,
350,
365,
18,
3348,
67,
7737,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1384,
67,
7737,
16,
813,
67,
26371,
67,
350,
273,
599,
4672,
365,
18,
957,
67,
26371,
67,
350,
273,
813,
67,
26371,
67,
350,
365,
18,
3348,
67,
7737,
... |
vob.setAttribute("file",os.path.join(getThemFile(themeName, videomode + '_' + introFile))) | vob.setAttribute("file",os.path.join(getThemeFile(themeName, videomode + '_' + introFile))) | def createDVDAuthorXMLNoMenus(screensize, numberofitems): """Creates the xml file for dvdauthor containing no menus.""" # creates a simple DVD with no menus that chains the videos one after the other # can contain an intro movie and each title can have a details page # displayed before each title write( "Creating DVD... | e83e330dd6079c7513d3059744cec38da1468e13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/e83e330dd6079c7513d3059744cec38da1468e13/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
40,
21544,
3594,
4201,
2279,
29755,
12,
1017,
266,
773,
554,
16,
1300,
792,
3319,
4672,
3536,
2729,
326,
2025,
585,
364,
12494,
72,
4161,
4191,
1158,
21374,
12123,
225,
468,
3414,
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,
40,
21544,
3594,
4201,
2279,
29755,
12,
1017,
266,
773,
554,
16,
1300,
792,
3319,
4672,
3536,
2729,
326,
2025,
585,
364,
12494,
72,
4161,
4191,
1158,
21374,
12123,
225,
468,
3414,
2... |
elif CONFIG is BuildConfig.L10N: | if CONFIG is BuildConfig.L10N: | def preprocess(src, debug=False, vals=None): """Returns the given source string, with variables substituted and testing code removed. Variables are of the following form: ${VarName} where "VarName" is the name of the variable. Testing code can be removed when debug is True. This method removes everything from any lin... | f7b6a6950d9ddde616f30725ff4cdbdbbb56e02f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8389/f7b6a6950d9ddde616f30725ff4cdbdbbb56e02f/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
12,
4816,
16,
1198,
33,
8381,
16,
5773,
33,
7036,
4672,
3536,
1356,
326,
864,
1084,
533,
16,
598,
3152,
7461,
4817,
471,
7769,
981,
3723,
18,
225,
23536,
854,
434,
326,
3751,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
12,
4816,
16,
1198,
33,
8381,
16,
5773,
33,
7036,
4672,
3536,
1356,
326,
864,
1084,
533,
16,
598,
3152,
7461,
4817,
471,
7769,
981,
3723,
18,
225,
23536,
854,
434,
326,
3751,
64... |
winnerField.x = 0 | winnerField.x = 200 | def enter(self): self.timeout = g_player.setTimeout(5000, self.onTimeout) winnerField = g_player.getElementByID("winner") self.startButton = StartButton(self.onStartClick) self.exitButton = ExitButton(lambda e:self.game.leave()) anim.fadeIn(winnerField, config.STATE_FADE_TIME).start() if self.game.getWinner() == 0: win... | 6b95493bcafa100a244de77ab3fe3e8d8591faef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7301/6b95493bcafa100a244de77ab3fe3e8d8591faef/Game.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
12,
2890,
4672,
365,
18,
4538,
273,
314,
67,
14872,
18,
542,
2694,
12,
25,
3784,
16,
365,
18,
265,
2694,
13,
5657,
1224,
974,
273,
314,
67,
14872,
18,
21336,
13331,
2932,
91,
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,
6103,
12,
2890,
4672,
365,
18,
4538,
273,
314,
67,
14872,
18,
542,
2694,
12,
25,
3784,
16,
365,
18,
265,
2694,
13,
5657,
1224,
974,
273,
314,
67,
14872,
18,
21336,
13331,
2932,
91,
7... |
idlist = map(lambda i: (i.isdigit() and int(i)) or i, idlist) | idlist = map(lambda i: int(i), idlist) | def _getbugs(self,idlist): '''Return a list of dicts of full bug info for each given bug id. bug ids that couldn't be found will return None instead of a dict.''' idlist = map(lambda i: (i.isdigit() and int(i)) or i, idlist) r = self._proxy.Bug.get_bugs({'ids':idlist, 'permissive': 1}) bugdict = dict([(b['id'], b['inte... | 745dc3f536f3ea03a836d884b6941251d1ce08d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5050/745dc3f536f3ea03a836d884b6941251d1ce08d2/bugzilla3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
19381,
12,
2890,
16,
350,
1098,
4672,
9163,
990,
279,
666,
434,
15838,
434,
1983,
7934,
1123,
364,
1517,
864,
7934,
612,
18,
7934,
3258,
716,
17991,
1404,
506,
1392,
903,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
19381,
12,
2890,
16,
350,
1098,
4672,
9163,
990,
279,
666,
434,
15838,
434,
1983,
7934,
1123,
364,
1517,
864,
7934,
612,
18,
7934,
3258,
716,
17991,
1404,
506,
1392,
903,
327,
... |
self.body.append('</dt>\n') self.body.append(self.starttag(node, 'dd', '')) if len(node) and isinstance(node[0], nodes.paragraph): node[0].set_class('first') | pass | def visit_definition(self, node): self.body.append('</dt>\n') self.body.append(self.starttag(node, 'dd', '')) if len(node) and isinstance(node[0], nodes.paragraph): node[0].set_class('first') | 6375238ab8247c4cfacf9efad70324a50b6c7ce8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/6375238ab8247c4cfacf9efad70324a50b6c7ce8/OOwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6907,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
7510,
5333,
82,
6134,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
449,
2187,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6907,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
7510,
5333,
82,
6134,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
449,
2187,
8... |
gLogger.error(errStr,lfn) return res if not res['Value']['Successful'].has_key(lfn): | gLogger.error( errStr, lfn ) return res if not res['Value']['Successful'].has_key( lfn ): | def putAndRegister(self,lfn,file,diracSE,guid=None,path=None,checksum=None,catalog=None): """ Put a local file to a Storage Element and register in the File Catalogues | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
... |
if cnf is None and not kw: cnf = {} for x in self.tk.split( self.tk.call(self._w, 'itemconfigure', tagOrId)): cnf[x[0][1:]] = (x[0][1:],) + x[1:] return cnf if type(cnf) == StringType and not kw: x = self.tk.split(self.tk.call( self._w, 'itemconfigure', tagOrId, '-'+cnf)) return (x[0][1:],) + x[1:] self.tk.call((self._... | return self._configure(('itemconfigure', tagOrId), cnf, kw) | def itemconfigure(self, tagOrId, cnf=None, **kw): """Configure resources of an item TAGORID. | 6ce1315bd35b6114abf8a59d0e9b9f7dce0bcd7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6ce1315bd35b6114abf8a59d0e9b9f7dce0bcd7d/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
14895,
12,
2890,
16,
1047,
1162,
548,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
3536,
11207,
2703,
434,
392,
761,
8358,
916,
734,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
761,
14895,
12,
2890,
16,
1047,
1162,
548,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
3536,
11207,
2703,
434,
392,
761,
8358,
916,
734,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"""Get the hostname that the user passed in to the request. | """ Get the hostname that the user passed in to the request. | def getRequestHostname(self): """Get the hostname that the user passed in to the request. | 61e18979bbf7cbc4ea2ccfcbdaa594bb49936f26 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12595/61e18979bbf7cbc4ea2ccfcbdaa594bb49936f26/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4328,
13769,
12,
2890,
4672,
3536,
967,
326,
5199,
716,
326,
729,
2275,
316,
358,
326,
590,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
4328,
13769,
12,
2890,
4672,
3536,
967,
326,
5199,
716,
326,
729,
2275,
316,
358,
326,
590,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if functionref != '%keepalive': codewriter.append('call void %s(%s)' % (functionref, args)) | codewriter.append('call void %s(%s)' % (functionref, args)) | def invoke(self, codewriter, targetvar, returntype, functionref, args, label, except_label): if returntype == 'void': if functionref != '%keepalive': #XXX I think keepalive should not be the last operation here! codewriter.append('call void %s(%s)' % (functionref, args)) else: codewriter.llvm('%s = call %s %s(%s)' % (t... | 11354dcb5ef05322fcbe1201ca7cb6f7e5284502 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/11354dcb5ef05322fcbe1201ca7cb6f7e5284502/exception.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
16,
981,
6299,
16,
1018,
1401,
16,
327,
723,
16,
445,
1734,
16,
833,
16,
1433,
16,
1335,
67,
1925,
4672,
309,
327,
723,
422,
296,
6459,
4278,
309,
445,
1734,
480,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
16,
981,
6299,
16,
1018,
1401,
16,
327,
723,
16,
445,
1734,
16,
833,
16,
1433,
16,
1335,
67,
1925,
4672,
309,
327,
723,
422,
296,
6459,
4278,
309,
445,
1734,
480,
199... |
app = App() | def run(): parser = optparse.OptionParser(usage = "usage: %prog [options]") parser.add_option("--version", dest="printversion", action="store_true", help="Display the version information for this program") (options, args) = parser.parse_args() if options.printversion != None: print get_version() return if not os.pat... | b0be527ef6a1f029d19420ceb0333083835e95bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/b0be527ef6a1f029d19420ceb0333083835e95bd/crawler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
413,
1589,
3113,
1570,
1546,
1188,
1589... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
413,
1589,
3113,
1570,
1546,
1188,
1589... | |
print 'Opening ' + self.short_name + '...' | print 'Opening ' + self.channel.name + '...' | def run(self): #print "Using libshout version %s" % shout.version() | d28aa783db003af7e24c341eb71817b82e80d9c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12047/d28aa783db003af7e24c341eb71817b82e80d9c4/d-fuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
1188,
315,
7736,
2561,
674,
659,
1177,
738,
87,
6,
738,
699,
659,
18,
1589,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
2890,
4672,
468,
1188,
315,
7736,
2561,
674,
659,
1177,
738,
87,
6,
738,
699,
659,
18,
1589,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tmp._int = (0,)+tmp._int | tmp._int = (0,) + tmp._int | def _rescale(self, exp, rounding = None, context=None, watchexp = 1): """Rescales so that the exponent is exp. | b277e15abb88b70aabae5a4859ba6920ae8be40f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b277e15abb88b70aabae5a4859ba6920ae8be40f/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
455,
1869,
12,
2890,
16,
1329,
16,
13885,
273,
599,
16,
819,
33,
7036,
16,
4267,
2749,
273,
404,
4672,
3536,
607,
21177,
1427,
716,
326,
9100,
353,
1329,
18,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
455,
1869,
12,
2890,
16,
1329,
16,
13885,
273,
599,
16,
819,
33,
7036,
16,
4267,
2749,
273,
404,
4672,
3536,
607,
21177,
1427,
716,
326,
9100,
353,
1329,
18,
2,
-100,
-100,
-100,
... |
def disk_type_get_next: | def disk_type_get_next(): | def disk_type_get_next: warnings.warn("disk_type_get_next() is deprecated and will be removed", DeprecationWarning) # XXX | 58f09f31f275f6d8c81df749d3dc7b8c9b8eb6ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5978/58f09f31f275f6d8c81df749d3dc7b8c9b8eb6ec/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4234,
67,
723,
67,
588,
67,
4285,
13332,
5599,
18,
8935,
2932,
10863,
67,
723,
67,
588,
67,
4285,
1435,
353,
6849,
471,
903,
506,
3723,
3113,
24041,
13,
468,
11329,
225,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4234,
67,
723,
67,
588,
67,
4285,
13332,
5599,
18,
8935,
2932,
10863,
67,
723,
67,
588,
67,
4285,
1435,
353,
6849,
471,
903,
506,
3723,
3113,
24041,
13,
468,
11329,
225,
2,
-100,
-100,... |
while len(filename) > 0 and (filename[0] == '/' or filename[0] == '\\'): | while (len(filename) > 0 and (filename[0] == '/' or filename[0] == '\\')): | def addGlob(self, wildcard): wildcard = os.path.join(self.dist_dir, wildcard) length = len(self.dist_dir) for filename in iglob(wildcard): if filename[:length] == self.dist_dir: filename = filename[length:] while len(filename) > 0 and (filename[0] == '/' or filename[0] == '\\'): filename = filename[1:] print "Compressi... | 16717514d85be409df247e58637855a19e0ad04f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/16717514d85be409df247e58637855a19e0ad04f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13499,
12,
2890,
16,
8531,
4672,
8531,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4413,
67,
1214,
16,
8531,
13,
769,
273,
562,
12,
2890,
18,
4413,
67,
1214,
13,
364,
1544,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13499,
12,
2890,
16,
8531,
4672,
8531,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4413,
67,
1214,
16,
8531,
13,
769,
273,
562,
12,
2890,
18,
4413,
67,
1214,
13,
364,
1544,
316,... |
path, object = locate(key) if object: file = open(key + '.html', 'w') file.write(html.page(object)) file.close() print 'wrote', key + '.html' | try: path, object = locate(key) except DocImportError, value: print value else: if object: page = html.page('Python: ' + describe(object), html.document(object, object.__name__)) file = open(key + '.html', 'w') file.write(page) file.close() print 'wrote', key + '.html' else: print 'no Python documentation found for %s'... | def writedoc(key): """Write HTML documentation to a file in the current directory.""" path, object = locate(key) if object: file = open(key + '.html', 'w') file.write(html.page(object)) file.close() print 'wrote', key + '.html' | 37f7b38eb6247564c00c8a355ab12268e8486c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37f7b38eb6247564c00c8a355ab12268e8486c4e/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
329,
504,
12,
856,
4672,
3536,
3067,
3982,
7323,
358,
279,
585,
316,
326,
783,
1867,
12123,
775,
30,
589,
16,
733,
273,
10627,
12,
856,
13,
1335,
3521,
5010,
668,
16,
460,
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,
2518,
329,
504,
12,
856,
4672,
3536,
3067,
3982,
7323,
358,
279,
585,
316,
326,
783,
1867,
12123,
775,
30,
589,
16,
733,
273,
10627,
12,
856,
13,
1335,
3521,
5010,
668,
16,
460,
30,
... |
video = query.get() | key_id = 0 for v in query: if v.key().id() > key_id and not v.youtube_id.endswith('_player'): video = v key_id = v.key().id() | def get(self): user = users.get_current_user() user_data = UserData.get_for_current_user() logout_url = users.create_logout_url(self.request.uri) video = None video_id = self.request.get('v') path = self.request.path readable_id = urllib.unquote(path.rpartition('/')[2]) if video_id: # Support for old links query = Vid... | 106a04fe81f0922574c0142c1a76b6e182a06189 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/106a04fe81f0922574c0142c1a76b6e182a06189/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
729,
67,
892,
273,
31109,
18,
588,
67,
1884,
67,
2972,
67,
1355,
1435,
12735,
67,
718,
273,
3677,
18,
2640,
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,
336,
12,
2890,
4672,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
729,
67,
892,
273,
31109,
18,
588,
67,
1884,
67,
2972,
67,
1355,
1435,
12735,
67,
718,
273,
3677,
18,
2640,
67... |
port = args[1] | port = args[1]._int() | def recurringRun(self, counter): self.test_response = self.request('PUT', self.cmp, body=self.rMikealAccount, headers=self.foxHeaders) self.checkStatus(431) #username in use auth = 'Basic %s' % base64.encodestring('%s:%s' % ("testAccount%s" % counter, "testAccount")).strip() putFoxHeaders = {'Host' : "sync.foxcloud... | 2f9ccd81c5f2191a75de255ab846809d22ef4a7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9939/2f9ccd81c5f2191a75de255ab846809d22ef4a7d/client-foxcloud.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26043,
1997,
12,
2890,
16,
3895,
4672,
282,
365,
18,
3813,
67,
2740,
273,
365,
18,
2293,
2668,
4762,
2187,
365,
18,
9625,
16,
1417,
33,
2890,
18,
86,
49,
2547,
287,
3032,
16,
1607,
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,
26043,
1997,
12,
2890,
16,
3895,
4672,
282,
365,
18,
3813,
67,
2740,
273,
365,
18,
2293,
2668,
4762,
2187,
365,
18,
9625,
16,
1417,
33,
2890,
18,
86,
49,
2547,
287,
3032,
16,
1607,
3... |
attributes = jobDB.getJobAttributes(job) if not attributes['OK']: | ret = jobDB.getJobAttributes(job) if not ret['OK']: | def __getJobDict(self, job): """ Get job constant Properties and keep them local to avoid quering the DB each time """ result = jobDB.getJobJDL(job) if not result['OK']: self.log.error(result['Message']) updateJobStatus( self.log, AGENT_NAME, job, 'Failed', 'No Job JDL Available', logRecord=True) return False | 962f17a6c5fa9829e5dcf98786c112246cc74530 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/962f17a6c5fa9829e5dcf98786c112246cc74530/Director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2278,
5014,
12,
2890,
16,
1719,
4672,
3536,
968,
1719,
5381,
6183,
471,
3455,
2182,
1191,
358,
4543,
21287,
310,
326,
2383,
1517,
813,
3536,
563,
273,
1719,
2290,
18,
588,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2278,
5014,
12,
2890,
16,
1719,
4672,
3536,
968,
1719,
5381,
6183,
471,
3455,
2182,
1191,
358,
4543,
21287,
310,
326,
2383,
1517,
813,
3536,
563,
273,
1719,
2290,
18,
588,
227... |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def demo(gen, pop): if gen < 2: return 1000 + 100 * gen if gen == 2: # this happens right before mating at generation 2 size = pop.popSize() pop.splitSubPop(0, [size/2, size - size/2]) # for generation two and later return [x + 50 * gen for x in pop.subPopSizes()] | 205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
12,
4507,
16,
1843,
4672,
309,
3157,
411,
576,
30,
327,
4336,
397,
2130,
380,
3157,
309,
3157,
422,
576,
30,
468,
333,
10555,
2145,
1865,
312,
1776,
622,
9377,
576,
963,
273,
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,
21477,
12,
4507,
16,
1843,
4672,
309,
3157,
411,
576,
30,
327,
4336,
397,
2130,
380,
3157,
309,
3157,
422,
576,
30,
468,
333,
10555,
2145,
1865,
312,
1776,
622,
9377,
576,
963,
273,
18... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.