rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
def _validate(self, data): | def _validateParameters(self, data): | def _validate(self, data): """ Validate parameters. """ if (len(data.gravityDir) != 3): raise ValueError, \ "Gravity direction must be a 3 component list or tuple." try: dataFloat = map(float, data.gravityDir) except: raise ValueError, \ "'gravityDir' must contain floating point values." return | e563405812ca5f8e6ed4510d26a73a2913860f32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8643/e563405812ca5f8e6ed4510d26a73a2913860f32/GravityField.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
2402,
12,
2890,
16,
501,
4672,
3536,
3554,
1472,
18,
3536,
309,
261,
1897,
12,
892,
18,
2752,
16438,
1621,
13,
480,
890,
4672,
1002,
2068,
16,
521,
315,
14571,
16438,
4068,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5662,
2402,
12,
2890,
16,
501,
4672,
3536,
3554,
1472,
18,
3536,
309,
261,
1897,
12,
892,
18,
2752,
16438,
1621,
13,
480,
890,
4672,
1002,
2068,
16,
521,
315,
14571,
16438,
4068,
... |
1 This confirms that ad has degree 8 and is orthogonal, hence factors through SO(8)=D4. | 1 This confirms that `ad` has degree 8 and is orthogonal, hence factors through SO(8)=D4:: | def branching_rule_from_plethysm(chi, cartan_type, return_matrix = False): """ INPUT: - ``chi`` - the character of an irreducible representation pi of a group G - ``cartan_type`` - a classical Cartan type (A,B,C or D). It is assumed that the image of the irreducible representation pi naturally has its image in the gr... | 67d654215599230a09c5cccc4e460acbf57b6338 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/67d654215599230a09c5cccc4e460acbf57b6338/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
310,
67,
5345,
67,
2080,
67,
412,
546,
1900,
81,
12,
24010,
16,
7035,
304,
67,
723,
16,
327,
67,
5667,
273,
1083,
4672,
3536,
12943,
30,
225,
300,
12176,
24010,
10335,
300,
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,
3803,
310,
67,
5345,
67,
2080,
67,
412,
546,
1900,
81,
12,
24010,
16,
7035,
304,
67,
723,
16,
327,
67,
5667,
273,
1083,
4672,
3536,
12943,
30,
225,
300,
12176,
24010,
10335,
300,
326,
... |
tc = TC() tests = t1, t2, t3, t4, t5, t6, \ tc.t1, tc.t2, tc.t3, tc.t4, tc.t5, tc.t6 | text.event_add("<<calltip-show>>", "(") text.event_add("<<calltip-hide>>", ")") text.bind("<<calltip-show>>", self.calltip_show) text.bind("<<calltip-hide>>", self.calltip_hide) text.focus_set() | def test( tests ): failed=[] for t in tests: if get_arg_text(t) != t.__doc__: failed.append(t) print "%s - expected %s, but got %s" % (t, `t.__doc__`, `get_arg_text(t)`) print "%d of %d tests failed" % (len(failed), len(tests)) | 0fb0f909e7af00b84fcfc51ba034c6c45d4d6ae9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0fb0f909e7af00b84fcfc51ba034c6c45d4d6ae9/CallTipWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
7434,
262,
30,
2535,
33,
8526,
364,
268,
316,
7434,
30,
309,
336,
67,
3175,
67,
955,
12,
88,
13,
480,
268,
16186,
2434,
972,
30,
2535,
18,
6923,
12,
88,
13,
1172,
2213,
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,
1842,
12,
7434,
262,
30,
2535,
33,
8526,
364,
268,
316,
7434,
30,
309,
336,
67,
3175,
67,
955,
12,
88,
13,
480,
268,
16186,
2434,
972,
30,
2535,
18,
6923,
12,
88,
13,
1172,
2213,
8... |
print repeat | def view(atoms, data=None, viewer=None, repeat=None): print repeat # Ignore for parallel calculations: if parallel.size != 1: return if hasattr(atoms, 'GetUnitCell'): # Convert old ASE ListOfAtoms to new style. if oldase: atoms = OldASEListOfAtomsWrapper(atoms).copy() else: raise RuntimeError('conversion to old ASE no... | 69bfca0d2b92dda352eb2452bcfc87611e6f4461 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/69bfca0d2b92dda352eb2452bcfc87611e6f4461/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
14937,
16,
501,
33,
7036,
16,
14157,
33,
7036,
16,
7666,
33,
7036,
4672,
468,
8049,
364,
7230,
20882,
30,
309,
7230,
18,
1467,
480,
404,
30,
327,
225,
309,
3859,
12,
14937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
14937,
16,
501,
33,
7036,
16,
14157,
33,
7036,
16,
7666,
33,
7036,
4672,
468,
8049,
364,
7230,
20882,
30,
309,
7230,
18,
1467,
480,
404,
30,
327,
225,
309,
3859,
12,
14937,
... | |
def xml(self,parent): | def as_xml(self,parent): | def xml(self,parent): """Create vcard-tmp XML representation of the field. | ca0c8dbc3ecd0b409f98dffb6e90f2f51152b2c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/ca0c8dbc3ecd0b409f98dffb6e90f2f51152b2c7/vcard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2902,
12,
2890,
16,
2938,
4672,
3536,
1684,
29760,
17,
5645,
3167,
4335,
434,
326,
652,
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,
487,
67,
2902,
12,
2890,
16,
2938,
4672,
3536,
1684,
29760,
17,
5645,
3167,
4335,
434,
326,
652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.log_error("CGI script exited OK") | self.log_message("CGI script exited OK") | def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = rest.rfind('?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = rest.find('/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.translate_path(scrip... | bcbdc95e90794794081927b81006ce8563974969 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/bcbdc95e90794794081927b81006ce8563974969/CGIHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... |
extract words from particular metdata (such as 8564_u) | extract words from particular metdata (such as 8564_u) @param wash_index_terms: do we wash index terms, and if yes (when >0), how many characters do we keep in the index terms; see max_char_length parameter of wash_index_term() | def __init__(self, index_id, fields_to_index, table_name_pattern, default_get_words_fnc, tag_to_words_fnc_map, wash_index_terms=True, is_fulltext_index=False): """Creates words table instance. @param index_id: the index integer identificator @param fields_to_index: a list of fields to index @param table_name_pattern: i... | 72ed665460767a1dfec90bd7e425d998bebd05ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/72ed665460767a1dfec90bd7e425d998bebd05ed/bibindex_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
770,
67,
350,
16,
1466,
67,
869,
67,
1615,
16,
1014,
67,
529,
67,
4951,
16,
805,
67,
588,
67,
3753,
67,
4293,
71,
16,
1047,
67,
869,
67,
3753,
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,
1001,
2738,
972,
12,
2890,
16,
770,
67,
350,
16,
1466,
67,
869,
67,
1615,
16,
1014,
67,
529,
67,
4951,
16,
805,
67,
588,
67,
3753,
67,
4293,
71,
16,
1047,
67,
869,
67,
3753,
67,
... |
class ModelRangeTout: """Implemantation MVC de la procedure RangeTout moves all the JPEG files to a directory named from their day and with the name according to the time""" def __init__(self): """ """ self.__label = "Rangement photo" self.startSignal = Signal() self.refreshSignal = Signal() self.finishSignal = Signa... | def start(self,List): """ Lance les calculs """ self.startSignal.emit(self.__label, len(List)) | 02aba0861cad6f07d39c13403ddd4461a7b0bdfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12328/02aba0861cad6f07d39c13403ddd4461a7b0bdfa/signals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
682,
4672,
3536,
511,
1359,
18022,
3026,
87,
3536,
365,
18,
1937,
11208,
18,
18356,
12,
2890,
16186,
1925,
16,
562,
12,
682,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
682,
4672,
3536,
511,
1359,
18022,
3026,
87,
3536,
365,
18,
1937,
11208,
18,
18356,
12,
2890,
16186,
1925,
16,
562,
12,
682,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-... | |
elif arithgroup.is_CongruenceSubgroup(group): if ( rings.Integer(level) != group.level() ): raise ValueError, "group.level() and level do not match." elif group is None: pass else: raise ValueError, "group of unknown type." | def canonical_parameters(group, level, weight, base_ring): """ Given a group, level, weight, and base_ring as input by the user, return a canonicalized version of them, where level is a Sage integer, group really is a group, weight is a Sage integer, and base_ring a Sage ring. Note that we can't just get the level from... | 9585d6960d4f9d3bfa754e0ea5cf05a8914ecc4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9585d6960d4f9d3bfa754e0ea5cf05a8914ecc4e/constructor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
3977,
12,
1655,
16,
1801,
16,
3119,
16,
1026,
67,
8022,
4672,
3536,
16803,
279,
1041,
16,
1801,
16,
3119,
16,
471,
1026,
67,
8022,
487,
810,
635,
326,
729,
16,
327,
279,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
3977,
12,
1655,
16,
1801,
16,
3119,
16,
1026,
67,
8022,
4672,
3536,
16803,
279,
1041,
16,
1801,
16,
3119,
16,
471,
1026,
67,
8022,
487,
810,
635,
326,
729,
16,
327,
279,
73... | |
read_xyz(xyz) | self.read_xyz(xyz) | def __init__(self, poscar=None, xyz=None): """Initialize the data members of this class""" # List of the chemical symbols of the atoms self.atomNames = [] # Lattice constant, in ngstrms self.latticeConstant = 1. # 3x3 matrix containing the basis vectors of the supercell # in row major format self.basisVectors = eye(3) ... | 8a337fe09a8ba8a7785606036889ce50631d3645 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14986/8a337fe09a8ba8a7785606036889ce50631d3645/supercell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
949,
9815,
33,
7036,
16,
14779,
33,
7036,
4672,
3536,
7520,
326,
501,
4833,
434,
333,
667,
8395,
468,
987,
434,
326,
19028,
1706,
7963,
434,
326,
9006,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
949,
9815,
33,
7036,
16,
14779,
33,
7036,
4672,
3536,
7520,
326,
501,
4833,
434,
333,
667,
8395,
468,
987,
434,
326,
19028,
1706,
7963,
434,
326,
9006,
3... |
def testErrnoOnClose(self): f = self.f os.close(f.fileno()) self.f = None try: f.close() except IOError as e: self.assertEqual(e.errno, errno.EBADF) else: self.fail("Should have raised IOError") | def ClosedFD(func): @wraps(func) def wrapper(self): f = self.f os.close(f.fileno()) try: func(self, f) finally: try: self.f.close() except IOError: pass return wrapper def ClosedFDRaises(func): @wraps(func) def wrapper(self): f = self.f os.close(f.fileno()) try: func(self, f) except IOError as e: self.assertEqual(... | def testErrnoOnClose(self): # Test that the IOError's `errno` attribute is correctly set when # close() fails. Here we first close the file descriptor ourselves so # that close() fails with EBADF ('Bad file descriptor'). f = self.f os.close(f.fileno()) self.f = None try: f.close() except IOError as e: self.assertEqual(... | 7f0c93a5f09f2ae6cf5062e770544d6cb3b06f61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/7f0c93a5f09f2ae6cf5062e770544d6cb3b06f61/test_fileio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2524,
2135,
1398,
4605,
12,
2890,
4672,
468,
7766,
716,
326,
8340,
1807,
1375,
19088,
68,
1566,
353,
8783,
444,
1347,
468,
1746,
1435,
6684,
18,
13743,
732,
1122,
1746,
326,
585,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2524,
2135,
1398,
4605,
12,
2890,
4672,
468,
7766,
716,
326,
8340,
1807,
1375,
19088,
68,
1566,
353,
8783,
444,
1347,
468,
1746,
1435,
6684,
18,
13743,
732,
1122,
1746,
326,
585,
4... |
try: return self.__getitem__(key) except: raise AttributeError, "object has no attribute '%s'" % key | if key[:1]<>'_': try: return self.__getitem__(key) except: pass raise AttributeError, "object has no attribute '%s'" % key | def __getattr__(self, key): try: return self.__dict__[key] except KeyError: pass try: return self.__getitem__(key) except: raise AttributeError, "object has no attribute '%s'" % key | 5919c53f448bacc61fbd5eb87bb272306fdcc8ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5919c53f448bacc61fbd5eb87bb272306fdcc8ae/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
498,
4672,
775,
30,
327,
365,
16186,
1576,
972,
63,
856,
65,
1335,
4999,
30,
1342,
775,
30,
327,
365,
16186,
31571,
972,
12,
856,
13,
1335,
30,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
498,
4672,
775,
30,
327,
365,
16186,
1576,
972,
63,
856,
65,
1335,
4999,
30,
1342,
775,
30,
327,
365,
16186,
31571,
972,
12,
856,
13,
1335,
30,
10... |
def get_info (self, id): | def sql_sub_vars(self, sql, args): m = re.search(dynvars_re, sql) if not m: return sql aname=m.group()[1:] try: arg = args[aname] except KeyError: raise Exception("Dynamic variable '$%s' not defined." % aname) self.cgi.hdf.setValue('report.var.'+aname , arg) sql = m.string[:m.start()] + arg + m.string[m.end():] return ... | def get_info (self, id): cursor = self.db.cursor() | 6fbde2a321355430c86a21b8b3c6625f0eeae1a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/6fbde2a321355430c86a21b8b3c6625f0eeae1a2/Report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1847,
67,
1717,
67,
4699,
12,
2890,
16,
1847,
16,
833,
4672,
312,
273,
283,
18,
3072,
12,
28595,
4699,
67,
266,
16,
1847,
13,
309,
486,
312,
30,
327,
1847,
392,
339,
33,
81,
18,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1847,
67,
1717,
67,
4699,
12,
2890,
16,
1847,
16,
833,
4672,
312,
273,
283,
18,
3072,
12,
28595,
4699,
67,
266,
16,
1847,
13,
309,
486,
312,
30,
327,
1847,
392,
339,
33,
81,
18,
16... |
self.file1 += chars | self.file1 += "\xf1" | def test_mbcs_name(self): try: chars = os.fsencode("\u65e5\u672c") except UnicodeError: raise unittest.SkipTest("Unable to encode for this platform.") | f498b754ed63c69b42240a46c0d9c9c01936360d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/f498b754ed63c69b42240a46c0d9c9c01936360d/test_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1627,
2143,
67,
529,
12,
2890,
4672,
775,
30,
5230,
273,
1140,
18,
2556,
3015,
31458,
89,
9222,
73,
25,
64,
89,
26,
9060,
71,
7923,
1335,
9633,
668,
30,
1002,
2836,
3813,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
1627,
2143,
67,
529,
12,
2890,
4672,
775,
30,
5230,
273,
1140,
18,
2556,
3015,
31458,
89,
9222,
73,
25,
64,
89,
26,
9060,
71,
7923,
1335,
9633,
668,
30,
1002,
2836,
3813,
1... |
testformat("One million is %i", 1000000, grouping=1, output='One million is 1,000,000', | testformat("One million is %i", 1000000, grouping=1, output='One million is 1%s000%s000' % (sep, sep), | def testformat(formatstr, value, grouping = 0, output=None, func=locale.format): if verbose: if output: print "%s %% %s =? %s ..." %\ (repr(formatstr), repr(value), repr(output)), else: print "%s %% %s works? ..." % (repr(formatstr), repr(value)), result = func(formatstr, value, grouping = grouping) if output and resul... | 3173101aa34aee8b9fe17db6efcad0224c46775b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3173101aa34aee8b9fe17db6efcad0224c46775b/test_locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2139,
12,
2139,
701,
16,
460,
16,
12116,
273,
374,
16,
876,
33,
7036,
16,
1326,
33,
6339,
18,
2139,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2139,
12,
2139,
701,
16,
460,
16,
12116,
273,
374,
16,
876,
33,
7036,
16,
1326,
33,
6339,
18,
2139,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
... |
builder['is_green'] = not re.search('fail', cell.renderContents()) or \ re.search('lost', cell.renderContents()) | builder['is_green'] = not re.search('fail', cell.renderContents()) | def _parse_last_build_cell(self, builder, cell): status_link = cell.find('a') if status_link: # Will be either a revision number or a build number revision_string = status_link.string # If revision_string has non-digits assume it's not a revision number. builder['built_revision'] = int(revision_string) \ if not re.matc... | 43f273ae48bbad92c52482918a5419dd094c2516 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/43f273ae48bbad92c52482918a5419dd094c2516/buildbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
2722,
67,
3510,
67,
3855,
12,
2890,
16,
2089,
16,
2484,
4672,
1267,
67,
1232,
273,
2484,
18,
4720,
2668,
69,
6134,
309,
1267,
67,
1232,
30,
468,
9980,
506,
3344,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
2722,
67,
3510,
67,
3855,
12,
2890,
16,
2089,
16,
2484,
4672,
1267,
67,
1232,
273,
2484,
18,
4720,
2668,
69,
6134,
309,
1267,
67,
1232,
30,
468,
9980,
506,
3344,
279,
... |
"Return a symbolic expr representing a type for coercion" | """ Return a symbolic expr representing a type for coercion """ | def canon_type(type_expr):###stub [note: this is not canon_expr!] "Return a symbolic expr representing a type for coercion" return Anything # for now! when we implement TypeCoerce, revise this printnim("canon_type is a stub; got %r" % type_expr) ## so far: Widget2D, int return lambda x:x #stub | d0ffa4ebc7f1e32fb807fce132593cfedae374b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/d0ffa4ebc7f1e32fb807fce132593cfedae374b0/attr_decl_macros.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29147,
67,
723,
12,
723,
67,
8638,
4672,
13151,
12847,
306,
7652,
30,
333,
353,
486,
29147,
67,
8638,
5,
65,
3536,
2000,
279,
16754,
3065,
5123,
279,
618,
364,
1825,
12610,
285,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29147,
67,
723,
12,
723,
67,
8638,
4672,
13151,
12847,
306,
7652,
30,
333,
353,
486,
29147,
67,
8638,
5,
65,
3536,
2000,
279,
16754,
3065,
5123,
279,
618,
364,
1825,
12610,
285,
3536,
... |
hbox.pack_start(gtk.Label('Band:')) self.band_combo = pgu.ComboBoxEntry(band_list, self.set_band_cb) hbox.pack_start(self.band_combo) self.band_combo.entry.connect('key_press_event', self.combo_entry_key_press_cb) | hbox.pack_start(pgu.Label('Band:')) self.band_combo = pgu.ComboText(band_list, action=self.set_band_cb) if ds.RasterCount > 20: self.band_combo.set_wrap_width(2) hbox.pack_start(self.band_combo, expand=False) self.const_entry = gtk.Entry() self.const_entry.set_max_length(8) self.const_entry.set_size_request(80, -1) s... | def __init__(self, name, layer, src_index, master_dialog): gtk.Frame.__init__(self,name) self.master_dialog = master_dialog self.updating = False self.src_index = src_index | 30093beb2981ba47380749a3f1c597965f66f39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/30093beb2981ba47380749a3f1c597965f66f39e/gvrasterpropdlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
3018,
16,
1705,
67,
1615,
16,
4171,
67,
12730,
4672,
22718,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
529,
13,
365,
18,
7525,
67,
12730,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
3018,
16,
1705,
67,
1615,
16,
4171,
67,
12730,
4672,
22718,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
529,
13,
365,
18,
7525,
67,
12730,
273,
... |
logging.debug("hosts_deny (net): %s" % str(forbidden)) | logging.debug("hosts_deny (net): %s" % remote_addr) | def check_forbidden(request): """ Simple action and host access checks Spider agents are checked against the called actions, hosts against the blacklist. Raises Forbidden if triggered. """ args = request.args action = args.get('action') if ((args or request.method != 'GET') and action not in ['rss_rc', 'show', 'sitema... | a81b87de3874570795b28d56838264c0e1f11fb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/a81b87de3874570795b28d56838264c0e1f11fb8/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1884,
9215,
12,
2293,
4672,
3536,
4477,
1301,
471,
1479,
2006,
4271,
225,
5878,
3585,
16423,
854,
5950,
5314,
326,
2566,
4209,
16,
7206,
5314,
326,
11709,
18,
20497,
20204,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1884,
9215,
12,
2293,
4672,
3536,
4477,
1301,
471,
1479,
2006,
4271,
225,
5878,
3585,
16423,
854,
5950,
5314,
326,
2566,
4209,
16,
7206,
5314,
326,
11709,
18,
20497,
20204,
309,
... |
Files:%s\n\n" % (ftsGUID.ljust(15),ftsServer.ljust(15),str(channelID).ljust(15),sourceSE.ljust(15),targetSE.ljust(15),str(len(files)).ljust(15)) gLogger.info(infoStr) | Files:%s\n\n" % ( ftsGUID.ljust( 15 ), ftsServer.ljust( 15 ), str( channelID ).ljust( 15 ), sourceSE.ljust( 15 ), targetSE.ljust( 15 ), str( len( files ) ).ljust( 15 ) ) gLogger.info( infoStr ) | def submitTransfer(self,channelDict): """ This method creates and submits FTS jobs based on information it gets from the DB """ | 75a149be6b3b3e1970a5e02d5a7dfaf10cbe2b74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/75a149be6b3b3e1970a5e02d5a7dfaf10cbe2b74/FTSSubmitAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
5912,
12,
2890,
16,
4327,
5014,
4672,
3536,
1220,
707,
3414,
471,
720,
22679,
478,
8047,
6550,
2511,
603,
1779,
518,
5571,
628,
326,
2383,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
5912,
12,
2890,
16,
4327,
5014,
4672,
3536,
1220,
707,
3414,
471,
720,
22679,
478,
8047,
6550,
2511,
603,
1779,
518,
5571,
628,
326,
2383,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
return ret.strip() | return ret.strip().encode("utf8") | def clean_title(t): t = urllib.unquote(t) (t, ext) = os.path.splitext(t) m = re.match("(.*)(?:[(|\[]|, The$)",t, re.I) ret = t if m: ret = m.group(1) return ret.strip() | 5b17f44af5433ea865afaa08492738ac79b1b9e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/5b17f44af5433ea865afaa08492738ac79b1b9e9/ofdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
2649,
12,
88,
4672,
268,
273,
11527,
18,
318,
6889,
12,
88,
13,
261,
88,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
88,
13,
312,
273,
283,
18,
1916,
2932,
14361... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
2649,
12,
88,
4672,
268,
273,
11527,
18,
318,
6889,
12,
88,
13,
261,
88,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
88,
13,
312,
273,
283,
18,
1916,
2932,
14361... |
self.label_12.setGeometry(QtCore.QRect(230,120,351,21)) | self.label_12.setGeometry(QtCore.QRect(240,50,371,21)) | def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" ")) | 63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... |
@type content: L{Object} | @type content: L{Content} | def resume(self, content): """ Appending this content has resumed. @param content: The content for which proccessing has been resumed. @type content: L{Object} """ frame = Frame(content.type) self.resolver.push(frame) | 119720611fabd315e50ed5481f636ad6ec82cfaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5377/119720611fabd315e50ed5481f636ad6ec82cfaa/marshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10774,
12,
2890,
16,
913,
4672,
3536,
6181,
310,
333,
913,
711,
24632,
329,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
2118,
24632,
329,
18,
632,
723,
913,
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,
10774,
12,
2890,
16,
913,
4672,
3536,
6181,
310,
333,
913,
711,
24632,
329,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
2118,
24632,
329,
18,
632,
723,
913,
30,
... |
Script.registerSwitch( "", "Architecture=", "Configure LocalSite/Architecture=<architecture>", setArchitecture ) | Script.registerSwitch( "", "Architecture=", "Configure /Architecture=<architecture>", setArchitecture ) | def setVO( optionValue ): global vo vo = optionValue DIRAC.gLogger.debug( '/DIRAC/VirtualOrganization =', optionValue ) Script.localCfg.addDefaultEntry( '/DIRAC/VirtualOrganization', optionValue ) return DIRAC.S_OK() | 37bb2952135334fad881a9436ee9c3f159d58183 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/37bb2952135334fad881a9436ee9c3f159d58183/dirac-configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
16169,
12,
28272,
262,
30,
2552,
19993,
19993,
273,
28272,
18544,
2226,
18,
75,
3328,
18,
4148,
12,
1173,
4537,
2226,
19,
6466,
8113,
273,
2187,
28272,
262,
7739,
18,
3729,
8198,
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,
444,
16169,
12,
28272,
262,
30,
2552,
19993,
19993,
273,
28272,
18544,
2226,
18,
75,
3328,
18,
4148,
12,
1173,
4537,
2226,
19,
6466,
8113,
273,
2187,
28272,
262,
7739,
18,
3729,
8198,
18... |
if 'level' in dims: | if 'level' in dims or 'levels' in dims: | def print_var_write(self,var): """Write single variable block to stream for ncdf_file.""" | 39906ceef653d8c6170b21f1acadbe64cdbb572d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2666/39906ceef653d8c6170b21f1acadbe64cdbb572d/generate_ncvars.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1401,
67,
2626,
12,
2890,
16,
1401,
4672,
3536,
3067,
2202,
2190,
1203,
358,
1407,
364,
8194,
2180,
67,
768,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1401,
67,
2626,
12,
2890,
16,
1401,
4672,
3536,
3067,
2202,
2190,
1203,
358,
1407,
364,
8194,
2180,
67,
768,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
localImagePage.delete(comment + ' [[:commons:Image:%s]]' % filenameOnCommons, prompt = False) | localImagePage.delete( comment + ' [[:commons:Image:%s]]' % filenameOnCommons, prompt = False) | 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... |
def IN_CLASSC(a): return ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000) IN_CLASSC_NET = 0xffffff00 | def IN_CLASSC(a): return ((((in_addr_t)(a)) & (-536870912)) == (-1073741824)) IN_CLASSC_NET = (-256) | def IN_CLASSC(a): return ((((in_addr_t)(a)) & 0xe0000000) == 0xc0000000) | ba2ec76d10f9c4338d59e69ea18f8e4ee47acb39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ba2ec76d10f9c4338d59e69ea18f8e4ee47acb39/IN.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2120,
67,
5237,
39,
12,
69,
4672,
327,
261,
12443,
12,
267,
67,
4793,
67,
88,
21433,
69,
3719,
473,
374,
6554,
17877,
13,
422,
374,
6511,
17877,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2120,
67,
5237,
39,
12,
69,
4672,
327,
261,
12443,
12,
267,
67,
4793,
67,
88,
21433,
69,
3719,
473,
374,
6554,
17877,
13,
422,
374,
6511,
17877,
13,
225,
2,
-100,
-100,
-100,
-100,
-... |
f = filename | f = filename | def SaveToFile(self, filename,canvas): """Open a file, and ask each object in turn to write itself to the file. Keep track of the file position at each point for use in the index at the end""" | 2764f6aba803c404738174eb5f2be76b34808793 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2764f6aba803c404738174eb5f2be76b34808793/pdfdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7074,
15450,
12,
2890,
16,
1544,
16,
15424,
4672,
3536,
3678,
279,
585,
16,
471,
6827,
1517,
733,
316,
7005,
358,
1045,
6174,
358,
326,
585,
18,
225,
10498,
3298,
434,
326,
585,
1754,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7074,
15450,
12,
2890,
16,
1544,
16,
15424,
4672,
3536,
3678,
279,
585,
16,
471,
6827,
1517,
733,
316,
7005,
358,
1045,
6174,
358,
326,
585,
18,
225,
10498,
3298,
434,
326,
585,
1754,
... |
widgets.get_widget('toYearSpin').set_value(2010.0) self.text.get_buffer().set_text('') | widgets.get_widget('toYearSpin').set_value(2010.0) | def reset(self): #tree self.treeTranslator = {} for column in self.treeView.get_columns(): self.treeView.remove_column(column) | 23d9b7907883190ae00fc628f4381ee6ba3f3477 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5712/23d9b7907883190ae00fc628f4381ee6ba3f3477/gsr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
468,
3413,
365,
18,
3413,
12233,
273,
2618,
364,
1057,
316,
365,
18,
3413,
1767,
18,
588,
67,
5112,
13332,
365,
18,
3413,
1767,
18,
4479,
67,
2827,
12,
2827,
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,
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,
2715,
12,
2890,
4672,
468,
3413,
365,
18,
3413,
12233,
273,
2618,
364,
1057,
316,
365,
18,
3413,
1767,
18,
588,
67,
5112,
13332,
365,
18,
3413,
1767,
18,
4479,
67,
2827,
12,
2827,
13,
... |
def book_found(self, book): gobject.idle_add(self.__add_list_item, book) | def load_books(self, books): threading.Thread(target=self._load_books, args=(books,)).start() def _load_books(self, books): for book in books: self.book_found(book) self.books_done() def book_found(self, item): if item.bookmarks is None: item.load() if item.bookmarks is not None: gobject.idle_add(self.__add_list_item... | def book_found(self, book): gobject.idle_add(self.__add_list_item, book) | 209a11766866b155ca426fca5147b1ebe6ff0903 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/209a11766866b155ca426fca5147b1ebe6ff0903/library.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6978,
67,
7015,
12,
2890,
16,
6978,
4672,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
16186,
1289,
67,
1098,
67,
1726,
16,
6978,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6978,
67,
7015,
12,
2890,
16,
6978,
4672,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
16186,
1289,
67,
1098,
67,
1726,
16,
6978,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def func(): i = 1 all = 0 while i <= 5: all += 1./i i += 1 yield all | 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,
1326,
13332,
277,
273,
404,
777,
273,
374,
1323,
277,
1648,
1381,
30,
777,
1011,
404,
18,
19,
77,
277,
1011,
404,
2824,
777,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
13332,
277,
273,
404,
777,
273,
374,
1323,
277,
1648,
1381,
30,
777,
1011,
404,
18,
19,
77,
277,
1011,
404,
2824,
777,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=.../tools/QATestScripts/Performance/PerfLargeDataSharing.py --restore=.../test_profile/__repository__.001 | /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataSharing.py --restore=.../test_profile/__repository__.001 | def runSingles(options): """ Run the test(s) specified with the options.single parameter. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['release'] >>> options.single = 'ThisTestDoesNotExist' >>> runSingles(options) Test(s) not foun... | ad17cec5f290a1afe127c78e0b20723aa8b8bf15 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/ad17cec5f290a1afe127c78e0b20723aa8b8bf15/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
55,
310,
1040,
12,
2116,
4672,
3536,
1939,
326,
1842,
12,
87,
13,
1269,
598,
326,
702,
18,
7526,
1569,
18,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
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,
1086,
55,
310,
1040,
12,
2116,
4672,
3536,
1939,
326,
1842,
12,
87,
13,
1269,
598,
326,
702,
18,
7526,
1569,
18,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
... |
if cl.super: | if hasattr(cl, "super") and cl.super: | def listclasses(self): dir, file = os.path.split(self.file) name, ext = os.path.splitext(file) if os.path.normcase(ext) != ".py": return [] try: dict = pyclbr.readmodule_ex(name, [dir] + sys.path) except ImportError, msg: return [] items = [] self.classes = {} for key, cl in dict.items(): if cl.module == name: s = key ... | cae8451f2521ff928aa802aff2b13ef8b6188994 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cae8451f2521ff928aa802aff2b13ef8b6188994/ClassBrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
4701,
12,
2890,
4672,
1577,
16,
585,
273,
1140,
18,
803,
18,
4939,
12,
2890,
18,
768,
13,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
768,
13,
309,
1140,
18,
803,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
4701,
12,
2890,
4672,
1577,
16,
585,
273,
1140,
18,
803,
18,
4939,
12,
2890,
18,
768,
13,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
768,
13,
309,
1140,
18,
803,
18... |
data = obj_pool.browse(cr, uid, data_id[0]) | data = obj_data.browse(cr, uid, data_id[0]) | def execute(self, cr, uid, ids, context=None): obj_multi = self.browse(cr, uid, ids[0]) obj_acc = self.pool.get('account.account') obj_acc_tax = self.pool.get('account.tax') obj_journal = self.pool.get('account.journal') obj_sequence = self.pool.get('ir.sequence') obj_acc_template = self.pool.get('account.account.templ... | ea26c97f35a214d1c291c0ae03c097776a60310a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ea26c97f35a214d1c291c0ae03c097776a60310a/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
7027,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
1081,
67,
8981,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
7027,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
1081,
67,
8981,
273,
365,
18,
... |
d.append({"NEVRA": p.getNEVRA(), "VRA": p.getVRA(), "NAME": p["name"], "ARCH": p["arch"], "VERSION": p.getVR(), "REPO": "installed", "SIZE": int2str(int(p["size_package"]))}) | d.append({"NEVRA": p.getNEVRA(), "VRA": p.getVRA(), "NAME": p["name"], "ARCH": p["arch"], "VERSION": p.getVR(), "REPO": "installed", "SIZE": int2str(int(p["signature"]["payloadsize"][0]))}) | def runCommand(self, clearrepos=False): """Perform operations from self.opresolver. | b593e832f04b2b365925cdcce18f5fbc078d47f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/b593e832f04b2b365925cdcce18f5fbc078d47f9/yum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31933,
12,
2890,
16,
2424,
15564,
33,
8381,
4672,
3536,
4990,
5295,
628,
365,
18,
556,
14122,
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,
31933,
12,
2890,
16,
2424,
15564,
33,
8381,
4672,
3536,
4990,
5295,
628,
365,
18,
556,
14122,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Def', tpc) self.initdef += '\n%s%s.__init__(self,pname="%s",optional=1,repeatable=1)' % (ID3,tpc,tp.getName()) | self.classdef.set('\n\n%sclass %s(%s):' \ % (ID1, tp.getName() + '_Def', tpc)) self.basector.set('\n%s%s.__init__(self,pname="%s",optional=1,repeatable=1)' % (ID3,tpc,tp.getName())) | self.classdef = '\n\n%sclass %s(%s):' % (ID1, tp.getName() \ + '_Def', tpc) | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
1106,
536,
273,
2337,
82,
64,
82,
9,
1017,
459,
738,
87,
9275,
87,
13,
2497,
738,
261,
734,
21,
16,
8071,
18,
17994,
1435,
521,
397,
2070,
3262,
2187,
268,
2436,
13,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
18,
1106,
536,
273,
2337,
82,
64,
82,
9,
1017,
459,
738,
87,
9275,
87,
13,
2497,
738,
261,
734,
21,
16,
8071,
18,
17994,
1435,
521,
397,
2070,
3262,
2187,
268,
2436,
13,
2,
-100,
-1... |
self.configure = options.get('configure', 'configure') | self.configure = options.get('configure-%s' % self.osxflavor, None) if not self.configure: self.configure = options.get('configure-%s' % self.uname.lower(), None) if not self.configure: self.configure = options.get('configure', 'configure') | def __init__(self, buildout, name, options): | fc6d112bf4e05d49af01e8fe99b81e61857cd4aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13387/fc6d112bf4e05d49af01e8fe99b81e61857cd4aa/cmmi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
659,
16,
508,
16,
702,
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,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
1361,
659,
16,
508,
16,
702,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
except OSError: | except (OSError, NotImplementedError): | def can_symlink(): global _can_symlink if _can_symlink is not None: return _can_symlink try: os.symlink(TESTFN, TESTFN + "can_symlink") can = True except OSError: can = False _can_symlink = can return can | bb240936d61e6dc72816eb14c2e756684c1ec623 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/bb240936d61e6dc72816eb14c2e756684c1ec623/support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
21278,
13332,
2552,
389,
4169,
67,
21278,
309,
389,
4169,
67,
21278,
353,
486,
599,
30,
327,
389,
4169,
67,
21278,
775,
30,
1140,
18,
21278,
12,
16961,
19793,
16,
22130,
19793,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
21278,
13332,
2552,
389,
4169,
67,
21278,
309,
389,
4169,
67,
21278,
353,
486,
599,
30,
327,
389,
4169,
67,
21278,
775,
30,
1140,
18,
21278,
12,
16961,
19793,
16,
22130,
19793,
... |
if len(args) > len(variables) and len(args) > 1: raise ValueError, "the number of arguments must be less than or equal to %s"%len(variables) | if len(args) > self.number_of_arguments(): raise ValueError, "the number of arguments must be less than or equal to %s"%self.number_of_arguments() | def __call__(self, *args, **kwargs): """ EXAMPLES: sage: x,y,z=var('x,y,z') sage: h = sin + cos sage: h(1) sin(1) + cos(1) sage: h(x) sin(x) + cos(x) sage: h = 3*sin sage: h(1) 3*sin(1) sage: h(x) 3*sin(x) | a97f6d3c193bd2c64d2bea40a2ebb39a22b72b82 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a97f6d3c193bd2c64d2bea40a2ebb39a22b72b82/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
16,
93,
16,
94,
33,
1401,
2668,
92,
16,
93,
16,
94,
6134,
225,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
16,
2826,
4333,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
16,
93,
16,
94,
33,
1401,
2668,
92,
16,
93,
16,
94,
6134,
225,
272,
... |
trace(3, depth, "feasible _fix install alternative") | def _fix(self, pkgs, changeset, locked, pending, pruneweight, depth=0): depth += 1 trace(1, depth, "_fix()") | 8a3ce935a4d11b30501bacb1be5af06513522100 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/8a3ce935a4d11b30501bacb1be5af06513522100/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
12,
2890,
16,
16922,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
4672,
3598,
1011,
404,
2606,
12,
21,
16,
3598,
16,
4192,
904,
1435,
7923,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
12,
2890,
16,
16922,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
4672,
3598,
1011,
404,
2606,
12,
21,
16,
3598,
16,
4192,
904,
1435,
7923,
2,
... | |
l.append(dowrap('<b>%s:</b> %s: %s: %s , %s: %s' % (translate_e('changed', 'Changed'), ev.field, translate('added', 'added'), ev.added, translate('removed', 'removed'), ev.removed))) | l.append(dowrap('<b>%s:</b> %s: %s: %s , %s: %s' % (translate('changed', 'Changed', as_unicode=1), ev.field, translate('added', 'added', as_unicode=1), ev.added, translate('removed', 'removed', as_unicode=1), ev.removed))) | def translate_e(msgid, default, encoding='latin1', **kw): return unicode(translate(msgid, default, **kw), encoding).encode('utf8') | cb25d5a45ec3361e74d184fbf3fb3c2dd1fa2c36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/cb25d5a45ec3361e74d184fbf3fb3c2dd1fa2c36/pdfwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
67,
73,
12,
3576,
350,
16,
805,
16,
2688,
2218,
26578,
21,
2187,
2826,
9987,
4672,
327,
5252,
12,
13929,
12,
3576,
350,
16,
805,
16,
2826,
9987,
3631,
2688,
2934,
3015,
2668,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4204,
67,
73,
12,
3576,
350,
16,
805,
16,
2688,
2218,
26578,
21,
2187,
2826,
9987,
4672,
327,
5252,
12,
13929,
12,
3576,
350,
16,
805,
16,
2826,
9987,
3631,
2688,
2934,
3015,
2668,
315... |
auto_download_cbx = widgetset.Checkbox(_("Pause Auto-Downloading:")) | auto_download_cbx = widgetset.Checkbox(_("Pause Auto-Downloading when this many items are unwatched:")) | def _build_auto_download(channel, grid): auto_download_cbx = widgetset.Checkbox(_("Pause Auto-Downloading:")) grid.pack(auto_download_cbx, grid.ALIGN_RIGHT) max_new_options = [ ("1", _("1 unwateched item")), ("3", _("3 unwatched items")), ("5", _("5 unwatched items")), ("10", _("10 unwatched items")), ("15", _("15 un... | d128ae3ac714e9c7477916eeb7bee2c9705e5ef1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/d128ae3ac714e9c7477916eeb7bee2c9705e5ef1/channelsettingspanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
6079,
67,
7813,
12,
4327,
16,
3068,
4672,
3656,
67,
7813,
67,
7358,
92,
273,
3604,
542,
18,
21272,
24899,
2932,
19205,
8064,
17,
27217,
1347,
333,
4906,
1516,
854,
640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
6079,
67,
7813,
12,
4327,
16,
3068,
4672,
3656,
67,
7813,
67,
7358,
92,
273,
3604,
542,
18,
21272,
24899,
2932,
19205,
8064,
17,
27217,
1347,
333,
4906,
1516,
854,
640,
... |
def set_acl_status(self): pass | def set_acl_status(self, pkgid, personid, newAcl, status): pkg = model.PackageListing.get_by(model.PackageListing.c.pkgid==pkgid) if not pkg: return dict(status=False, message='Package Listing %s does not exist' % pkgid) try: fas.verify_user_pass(personid, '') except AuthError, e: if e.startswith('No such user: '): ... | def set_acl_status(self): pass | d9c140f72178760724edbe252e74e5b8f4914989 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/d9c140f72178760724edbe252e74e5b8f4914989/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
10150,
67,
2327,
12,
2890,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
10150,
67,
2327,
12,
2890,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return redirect_to('/proposal/review_index') | return redirect_to(action='review_index') | def _review(self, id): """Review a proposal. """ c.proposal = Proposal.find_by_id(id) | 6bc911380db9446571b393499fefd4fdbaf41c0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/6bc911380db9446571b393499fefd4fdbaf41c0e/proposal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16041,
12,
2890,
16,
612,
4672,
3536,
9159,
279,
14708,
18,
3536,
276,
18,
685,
8016,
273,
19945,
18,
4720,
67,
1637,
67,
350,
12,
350,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16041,
12,
2890,
16,
612,
4672,
3536,
9159,
279,
14708,
18,
3536,
276,
18,
685,
8016,
273,
19945,
18,
4720,
67,
1637,
67,
350,
12,
350,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" """ def __init__(self): pass def __conditionalLoadDefaults__(self,defaults,cp): if not(cp.has_section(defaults["section"])): cp.add_section(defaults["section"]) for key, val in defaults["options"].iteritems(): if not cp.has_option(defaults["section"], key): cp.set(defaults["section"], key, val) def setupNodeWeb(... | """ """ def __init__(self): pass def __conditionalLoadDefaults__(self,defaults,cp): if not(cp.has_section(defaults["section"])): cp.add_section(defaults["section"]) for key, val in defaults["options"].iteritems(): if not cp.has_option(defaults["section"], key): cp.set(defaults["section"], key, val) def setupNodeWeb(... | def __init__(self, opts, cp, dir='', tag_base="effDRatioTest"): """ """ self.__conditionalLoadDefaults__(effDRatioJob.defaults,cp) self.__prog__ = 'effDRatioTest' self.__executable = string.strip(cp.get('fu-condor','effDRatio')) self.__universe = string.strip(cp.get('fu-condor','universe')) pipeline.CondorDAGJob.__init... | cbd6ac162cb6bf2eb4ad5ce9c3d03753b881f67f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/cbd6ac162cb6bf2eb4ad5ce9c3d03753b881f67f/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1500,
16,
3283,
16,
1577,
2218,
2187,
1047,
67,
1969,
1546,
17098,
6331,
4197,
4709,
6,
4672,
3536,
3536,
365,
16186,
22019,
2563,
7019,
972,
12,
17098,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1500,
16,
3283,
16,
1577,
2218,
2187,
1047,
67,
1969,
1546,
17098,
6331,
4197,
4709,
6,
4672,
3536,
3536,
365,
16186,
22019,
2563,
7019,
972,
12,
17098,
63... |
self.assertRaises(TypeError, sys.getrefcount) c = sys.getrefcount(None) n = None self.assertEqual(sys.getrefcount(None), c+1) del n self.assertEqual(sys.getrefcount(None), c) | if hasattr(sys, 'getrefcount'): self.assertRaises(TypeError, sys.getrefcount) c = sys.getrefcount(None) n = None self.assertEqual(sys.getrefcount(None), c+1) del n self.assertEqual(sys.getrefcount(None), c) | def test_refcount(self): self.assertRaises(TypeError, sys.getrefcount) c = sys.getrefcount(None) n = None self.assertEqual(sys.getrefcount(None), c+1) del n self.assertEqual(sys.getrefcount(None), c) if hasattr(sys, "gettotalrefcount"): self.assert_(isinstance(sys.gettotalrefcount(), int)) | 07c95e07881042d8745b824056a92c3d76e33061 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/07c95e07881042d8745b824056a92c3d76e33061/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1734,
1883,
12,
2890,
4672,
309,
3859,
12,
9499,
16,
296,
588,
1734,
1883,
11,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
2589,
18,
588,
1734,
1883,
13,
276,
273,
2589... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1734,
1883,
12,
2890,
4672,
309,
3859,
12,
9499,
16,
296,
588,
1734,
1883,
11,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
2589,
18,
588,
1734,
1883,
13,
276,
273,
2589... |
self.slideshow_controls = gtk.HBox() ss_back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = ss_back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_text('') ss_back.set_property('can-focus', False) ss_back.connect('clicked', self.prev_img_in_list) self.ss_start = gtk... | self.slideshow_controls = gtk.HBox() ss_back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = ss_back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_text('') ss_back.set_property('can-focus', False) ss_back.connect('clicked', self.prev_img_in_list) self.ss_start = gtk... | def __init__(self): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not userkey: error = {'provider': domain, 'reason': "no session for that domain", 'code': 401 } return {'result': result, 'error': error} | def send(self): result = {} error = None # If we don't have a userkey in our session we bail early with a # 401 userkey = session.get('userkey') if not userkey: error = {'provider': domain, 'reason': "no session for that domain", 'code': 401 } return {'result': result, 'error': error} try: domain = request.POST.get('do... | 2eed297529650cef749f94803e7171a47c6670c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12761/2eed297529650cef749f94803e7171a47c6670c0/send.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
4672,
563,
273,
2618,
555,
273,
599,
468,
971,
732,
2727,
1404,
1240,
279,
729,
856,
316,
3134,
1339,
732,
18422,
11646,
598,
279,
468,
14052,
729,
856,
273,
1339,
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,
1366,
12,
2890,
4672,
563,
273,
2618,
555,
273,
599,
468,
971,
732,
2727,
1404,
1240,
279,
729,
856,
316,
3134,
1339,
732,
18422,
11646,
598,
279,
468,
14052,
729,
856,
273,
1339,
18,
... | |
- ``prec`` - precision, default: None. Providing a precision can | - ``prec`` - precision, default: ``None``. Providing a precision can | def clebsch_gordan(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculates the Clebsch-Gordan coefficient `< j_1 m_1 \; j_2 m_2 | j_3 m_3 >`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed ... | 2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1619,
2038,
343,
67,
75,
517,
304,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1619,
2038,
343,
67,
75,
517,
304,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
26... |
logging.progress('%s: unhandled Inotify event “%s” %s.' % (self.getName(), event, path)) | logging.debug('%s: unhandled Inotify event “%s” %s.' % (self.getName(), event, path)) | def myfunc(path, event, gid = gid, dirname = path) : return self.process_event(path, event, gid, dirname) | e39672bfac63c0fc879ec14686fa029d69b3c5ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7650/e39672bfac63c0fc879ec14686fa029d69b3c5ec/internals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
644,
12,
803,
16,
871,
16,
11399,
273,
11399,
16,
4283,
273,
589,
13,
294,
327,
365,
18,
2567,
67,
2575,
12,
803,
16,
871,
16,
11399,
16,
4283,
13,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
644,
12,
803,
16,
871,
16,
11399,
273,
11399,
16,
4283,
273,
589,
13,
294,
327,
365,
18,
2567,
67,
2575,
12,
803,
16,
871,
16,
11399,
16,
4283,
13,
2,
-100,
-100,
-100,
-100,
... |
if not __debug__: expected = [ev for ev in expected if ev[0] != LINE] | def check_events(self, expected): events = self.get_events_wotime() if not __debug__: # Running under -O, so we don't get LINE events expected = [ev for ev in expected if ev[0] != LINE] if events != expected: self.fail( "events did not match expectation; got:\n%s\nexpected:\n%s" % (pprint.pformat(events), pprint.pforma... | 80703c89308a2adbdece4c8c044e7ba4d3069f91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/80703c89308a2adbdece4c8c044e7ba4d3069f91/test_hotshot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5989,
12,
2890,
16,
2665,
4672,
2641,
273,
365,
18,
588,
67,
5989,
67,
91,
352,
494,
1435,
309,
486,
1001,
4148,
972,
30,
468,
20480,
3613,
300,
51,
16,
1427,
732,
2727,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5989,
12,
2890,
16,
2665,
4672,
2641,
273,
365,
18,
588,
67,
5989,
67,
91,
352,
494,
1435,
309,
486,
1001,
4148,
972,
30,
468,
20480,
3613,
300,
51,
16,
1427,
732,
2727,
140... | |
return os.path.join(os.path.dirname(sys.executable), "Makefile") | return os.path.join(os.path.dirname(os.path.realpath(sys.executable)), "Makefile") | def get_makefile_filename(): """Return full pathname of installed Makefile from the Python build.""" if python_build: return os.path.join(os.path.dirname(sys.executable), "Makefile") lib_dir = get_python_lib(plat_specific=1, standard_lib=1) return os.path.join(lib_dir, "config", "Makefile") | 61567bb0b2ef83bd57d781f891cee6726784ec13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/61567bb0b2ef83bd57d781f891cee6726784ec13/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6540,
768,
67,
3459,
13332,
3536,
990,
1983,
9806,
434,
5876,
4344,
768,
628,
326,
6600,
1361,
12123,
309,
5790,
67,
3510,
30,
327,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6540,
768,
67,
3459,
13332,
3536,
990,
1983,
9806,
434,
5876,
4344,
768,
628,
326,
6600,
1361,
12123,
309,
5790,
67,
3510,
30,
327,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
... |
'sum_debit': self._sum_debit, 'sum_credit': self._sum_credit, | def __init__(self, cr, uid, name, context=None): super(third_party_ledger, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, 'lines': self.lines, 'sum_debit_partner': self._sum_debit_partner, 'sum_credit_partner': self._sum_credit_partner, 'sum_debit': self._sum_debit, 'sum_credit'... | 33fa22f0ff5d3dc5bab99620831a2c268a91835f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/33fa22f0ff5d3dc5bab99620831a2c268a91835f/account_partner_ledger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
819,
33,
7036,
4672,
2240,
12,
451,
6909,
67,
21214,
67,
1259,
693,
16,
365,
2934,
972,
2738,
972,
12,
3353,
16,
4555,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
819,
33,
7036,
4672,
2240,
12,
451,
6909,
67,
21214,
67,
1259,
693,
16,
365,
2934,
972,
2738,
972,
12,
3353,
16,
4555,
16,... | |
sys.exit(False) | sys.exit(1) | def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, imagemagick, statistics, requir... | 0f178cb606ce1cfb96840e30bd489d420b041e6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/0f178cb606ce1cfb96840e30bd489d420b041e6d/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6289,
312,
11373,
18337,
628,
326,
1296,
980,
1135,
1053,
3536,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
1904,
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,
2774,
13332,
3536,
6289,
312,
11373,
18337,
628,
326,
1296,
980,
1135,
1053,
3536,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
1904,
6... |
if dist[ind].items() == []: return | def displayStat(self, data, ind, dist): if not data: return attr = data.domain[ind] attr_name = QCanvasText (attr.name, self) attr_name.move(10, 10) attr_name.show() title_str = "Category" if attr.varType == orange.VarTypes.Continuous: title_str = "Values" category = QCanvasText (title_str, self) category.move(self.hb... | f6689f5082dfc572890d208ac104a0f4c27d0fec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/f6689f5082dfc572890d208ac104a0f4c27d0fec/OWAttributeStatistics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
5000,
12,
2890,
16,
501,
16,
1547,
16,
2411,
4672,
309,
486,
501,
30,
327,
225,
1604,
273,
501,
18,
4308,
63,
728,
65,
1604,
67,
529,
273,
2238,
12971,
1528,
261,
1747,
18,
529... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
5000,
12,
2890,
16,
501,
16,
1547,
16,
2411,
4672,
309,
486,
501,
30,
327,
225,
1604,
273,
501,
18,
4308,
63,
728,
65,
1604,
67,
529,
273,
2238,
12971,
1528,
261,
1747,
18,
529... | |
assert self.model, "The model %s does not exist !" % (rec_model,) | assert self.model, "The model %s does not exist !" % \ (attributes["model"].encode('utf8'),) | def startElement(self, name, attributes): | cb758487746e70b69f35b66436f4f32642182e74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/cb758487746e70b69f35b66436f4f32642182e74/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
1677,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
1677,
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,... |
while 1: try: i = s.index('%') except: break lastCharIndex = len(s)-1 if i <= lastCharIndex-2: num = eval('0x' + s[i+1:i+3]) s = s[:i] + chr(num) + s[i+3:] s = s.replace('+', ' ') return s | result = '' i = 0 while i < len(s): char = s[i] if char == '+': char = ' ' elif char == '%': if i < (len(s)-2): num = eval('0x' + s[i+1:i+3]) char = chr(num) i += 2 i += 1 result += char return result if __debug__: assert unescapeHtmlString('asdf') == 'asdf' assert unescapeHtmlString('as+df') == 'as df' assert unescap... | def unescapeHtmlString(s): # converts %## to corresponding character # replaces '+' with ' ' while 1: try: i = s.index('%') except: break lastCharIndex = len(s)-1 if i <= lastCharIndex-2: num = eval('0x' + s[i+1:i+3]) s = s[:i] + chr(num) + s[i+3:] s = s.replace('+', ' ') return s | 791162d433de3c0adb4b3b8588849cc20f37a525 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/791162d433de3c0adb4b3b8588849cc20f37a525/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15568,
4353,
780,
12,
87,
4672,
468,
7759,
738,
1189,
358,
4656,
3351,
468,
12878,
10058,
598,
296,
296,
563,
273,
875,
277,
273,
374,
1323,
277,
411,
562,
12,
87,
4672,
1149,
273,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15568,
4353,
780,
12,
87,
4672,
468,
7759,
738,
1189,
358,
4656,
3351,
468,
12878,
10058,
598,
296,
296,
563,
273,
875,
277,
273,
374,
1323,
277,
411,
562,
12,
87,
4672,
1149,
273,
272... |
i.set_url(self.url + title, False) | i.set_url(self.url + str(title), False) | def dvd_vcd_title_menu(self, arg=None, menuw=None): """ Generate special menu for DVD/VCD/SVCD content """ if not self.menuw: self.menuw = menuw | fa0ca54655ce0ff76d8d97e88b4dc21d5f56a1d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/fa0ca54655ce0ff76d8d97e88b4dc21d5f56a1d5/videoitem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12494,
72,
67,
4227,
72,
67,
2649,
67,
5414,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
6654,
4582,
3824,
364,
463,
21544,
19,
58,
10160,
19,
23927,
10160,
913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12494,
72,
67,
4227,
72,
67,
2649,
67,
5414,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
6654,
4582,
3824,
364,
463,
21544,
19,
58,
10160,
19,
23927,
10160,
913,
... |
return st.replace('\\', r'\\')\ .replace('\t', r'\t')\ | return st.replace('\t', r'\t')\ | def escape(st): """ Escape special chars and return the given string *st*. **Examples**: >>> escape('\\t and \\n and \\r and " and \\\\') '\\\\t and \\\\n and \\\\r and \\\\" and \\\\\\\\' """ return st.replace('\\', r'\\')\ .replace('\t', r'\t')\ .replace('\r', r'\r')\ .replace('\n', r'\n')\ .replace('\"', r'\"') | 23f32744d832a9f8cfa23933ddf3b20cb7942446 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/23f32744d832a9f8cfa23933ddf3b20cb7942446/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
12,
334,
4672,
3536,
18025,
4582,
5230,
471,
327,
326,
864,
533,
380,
334,
11146,
225,
2826,
23905,
636,
30,
225,
4080,
4114,
2668,
1695,
88,
471,
1736,
82,
471,
1736,
86,
471,
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,
4114,
12,
334,
4672,
3536,
18025,
4582,
5230,
471,
327,
326,
864,
533,
380,
334,
11146,
225,
2826,
23905,
636,
30,
225,
4080,
4114,
2668,
1695,
88,
471,
1736,
82,
471,
1736,
86,
471,
3... |
return int(ptx),int(pty),int(rectWidth),int(rectHeight) | return ptx, pty, rectWidth, rectHeight | def _point2ClientCoord(self, corner1, corner2): """Converts user point coords to client screen int coords x,y,width,height""" c1= Numeric.array(corner1) c2= Numeric.array(corner2) # convert to screen coords pt1= c1*self._pointScale+self._pointShift pt2= c2*self._pointScale+self._pointShift # make height and width posit... | 00b9c8672fa526a520f6bc7793fdcdde97278d33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/00b9c8672fa526a520f6bc7793fdcdde97278d33/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1153,
22,
1227,
5401,
12,
2890,
16,
11055,
21,
16,
11055,
22,
4672,
3536,
5692,
729,
1634,
6074,
358,
1004,
5518,
509,
6074,
619,
16,
93,
16,
2819,
16,
4210,
8395,
276,
21,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1153,
22,
1227,
5401,
12,
2890,
16,
11055,
21,
16,
11055,
22,
4672,
3536,
5692,
729,
1634,
6074,
358,
1004,
5518,
509,
6074,
619,
16,
93,
16,
2819,
16,
4210,
8395,
276,
21,
33,
... |
def execute(self, iterations=1, *args, **dargs): | def execute(self, iterations = None, test_length = None, *args, **dargs): | def execute(self, iterations=1, *args, **dargs): self.warmup(*args, **dargs) | 57c270094b89101816e4c935ed6a20a5115f8a20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/57c270094b89101816e4c935ed6a20a5115f8a20/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
11316,
273,
599,
16,
1842,
67,
2469,
273,
599,
16,
380,
1968,
16,
2826,
72,
1968,
4672,
365,
18,
13113,
416,
30857,
1968,
16,
2826,
72,
1968,
13,
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,
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,
1836,
12,
2890,
16,
11316,
273,
599,
16,
1842,
67,
2469,
273,
599,
16,
380,
1968,
16,
2826,
72,
1968,
4672,
365,
18,
13113,
416,
30857,
1968,
16,
2826,
72,
1968,
13,
2,
-100,
-100,
-... |
return self._untagged_response(typ, name) | return self._untagged_response(typ, dat, name) | def lsub(self, directory='""', pattern='*'): """List 'subscribed' mailbox names in directory matching pattern. | 30d7469fec69eeeae9057b22a126d4a00278147c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/30d7469fec69eeeae9057b22a126d4a00278147c/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
1717,
12,
2890,
16,
1867,
2218,
3660,
2187,
1936,
2218,
4035,
4672,
3536,
682,
296,
27847,
11,
14187,
1257,
316,
1867,
3607,
1936,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
328,
1717,
12,
2890,
16,
1867,
2218,
3660,
2187,
1936,
2218,
4035,
4672,
3536,
682,
296,
27847,
11,
14187,
1257,
316,
1867,
3607,
1936,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
9: "tls", | 9: "tls", | def createFields(self): yield Bytes(self, "header", 4, r"PE header signature (PE\0\0)") if self["header"].value != "PE\0\0": raise ParserError("Invalid PE header signature") yield Enum(UInt16(self, "cpu", "CPU type"), self.cpu_name) yield UInt16(self, "nb_section", "Number of sections") yield TimestampUnix32(self, "cre... | cad193bfeedf91f8b8752b0cd425159e9f7ea0d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/cad193bfeedf91f8b8752b0cd425159e9f7ea0d6/exe_pe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
5985,
12,
2890,
16,
315,
3374,
3113,
1059,
16,
436,
6,
1423,
1446,
3372,
261,
1423,
64,
20,
64,
20,
2225,
13,
309,
365,
9614,
3374,
6,
8009,
1132,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
12,
2890,
4672,
2824,
5985,
12,
2890,
16,
315,
3374,
3113,
1059,
16,
436,
6,
1423,
1446,
3372,
261,
1423,
64,
20,
64,
20,
2225,
13,
309,
365,
9614,
3374,
6,
8009,
1132,
48... |
testExample(id='1',path="SinglePhysics/LinearProblems/"+times+"/Stokes/"+dims+"/"+els+"/"+interp+"/"+level+"",master42=,master42="FluidMechanics/Stokes/42Master",nodes='1',ndiffDir='expected_results',outputDir='output') | testExample(id='1',path="SinglePhysics/LinearProblems/"+times+"/Stokes/"+dims+"/"+els+"/"+interp+"/"+level+"",master42="FluidMechanics/Stokes/42Master",nodes='1',ndiffDir='expected_results',outputDir='output') | def htmlWrapper(infile, outfile) : stext1 = "<"; stext2 = ">"; rtext1 = "<"; rtext2 = ">"; input = sys.stdin output = sys.stdout input = open(infile) output = open(outfile, 'w') insertTag("<pre>",output) for s in input.xreadlines(): output.write(s.replace(stext1, rtext1).replace(stext2,rtext2)) insertTag("</pre>"... | 4b4af678af2faefcde702c301578f77cd09ed528 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1766/4b4af678af2faefcde702c301578f77cd09ed528/examplesTester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
3611,
12,
267,
768,
16,
8756,
13,
294,
384,
408,
21,
273,
3532,
14432,
384,
408,
22,
273,
14675,
31,
436,
955,
21,
273,
7830,
5618,
4868,
31,
436,
955,
22,
273,
7830,
4521,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
3611,
12,
267,
768,
16,
8756,
13,
294,
384,
408,
21,
273,
3532,
14432,
384,
408,
22,
273,
14675,
31,
436,
955,
21,
273,
7830,
5618,
4868,
31,
436,
955,
22,
273,
7830,
4521,
486... |
print "HI" | def convert_result_value(self, value): print "RESULT", value if value is None: print "RETNONE" return None print "HI" parts = value.split('.') try: (value, microsecond) = value.split('.') microsecond = int(microsecond) except ValueError: (value, microsecond) = (value, 0) tup = time.strptime(value, "%Y-%m-%d %H:%M:%S") ... | ad7938a8e0c2b0d57954b7d5ec1e0b2ad9552625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/ad7938a8e0c2b0d57954b7d5ec1e0b2ad9552625/sqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2088,
67,
1132,
12,
2890,
16,
460,
4672,
1172,
315,
12289,
3113,
460,
309,
460,
353,
599,
30,
1172,
315,
10238,
9826,
6,
327,
599,
2140,
273,
460,
18,
4939,
2668,
1093,
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,
1765,
67,
2088,
67,
1132,
12,
2890,
16,
460,
4672,
1172,
315,
12289,
3113,
460,
309,
460,
353,
599,
30,
1172,
315,
10238,
9826,
6,
327,
599,
2140,
273,
460,
18,
4939,
2668,
1093,
13,
... | |
if choice.button == -1 or not char or not socket: | if choice.button == 0 or not char or not socket: | def charinfo_response( player, args, choice ): socket = player.socket char = args[0] if choice.button == -1 or not char or not socket: return 1 textentries = choice.text keys = textentries.keys() for key in keys: if key == 1: char.name = textentries[ key ] elif key == 2: char.title = textentries[ key ] elif key == 3:... | 16d943fd0e5ebca2889aa24e812f754ff243f756 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/16d943fd0e5ebca2889aa24e812f754ff243f756/info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
1376,
67,
2740,
12,
7291,
16,
833,
16,
6023,
262,
30,
2987,
273,
7291,
18,
7814,
1149,
273,
833,
63,
20,
65,
309,
6023,
18,
5391,
422,
374,
578,
486,
1149,
578,
486,
2987,
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,
1149,
1376,
67,
2740,
12,
7291,
16,
833,
16,
6023,
262,
30,
2987,
273,
7291,
18,
7814,
1149,
273,
833,
63,
20,
65,
309,
6023,
18,
5391,
422,
374,
578,
486,
1149,
578,
486,
2987,
30,
... |
print "CVS checkout begin: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC") | print "CVS export begin: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC") | def do_cvs_checkout(modules, tag, cvsroot, cvs): """Check out a CVS directory. modules is a list of directories to check out, e.g. ['nsprpub'] """ for module in modules: (parent, leaf) = os.path.split(module) print "CVS checkout begin: " + datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC") check_call_noisy([c... | a2d3869f0c0aaf66d4735a15f83d3a51963ab78c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/a2d3869f0c0aaf66d4735a15f83d3a51963ab78c/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
71,
6904,
67,
17300,
12,
6400,
16,
1047,
16,
276,
6904,
3085,
16,
276,
6904,
4672,
3536,
1564,
596,
279,
385,
14640,
1867,
18,
4381,
353,
279,
666,
434,
6402,
358,
866,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
71,
6904,
67,
17300,
12,
6400,
16,
1047,
16,
276,
6904,
3085,
16,
276,
6904,
4672,
3536,
1564,
596,
279,
385,
14640,
1867,
18,
4381,
353,
279,
666,
434,
6402,
358,
866,
596,
... |
SkuNameList = map(lambda l: l.strip(), SkuName.split(DataType.TAB_VALUE_SPLIT)) | SkuNameList = map(lambda l: l.strip(), SkuName[0].split(DataType.TAB_VALUE_SPLIT)) | def GenBuildDatabase(self, PcdsSet = {}): #Build databases #Build PlatformDatabase for dsc in self.DscDatabase.keys(): dscObj = self.DscDatabase[dsc] for key in DataType.ARCH_LIST: pb = PlatformBuildClassObject() pb.DescFilePath = dsc pb.PlatformName = dscObj.Defines.DefinesDictionary[DataType.TAB_DSC_DEFINES_PLATFORM... | 08eb92cf7bbaab459a308638e24c5b8dd429ecf2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/08eb92cf7bbaab459a308638e24c5b8dd429ecf2/EdkIIWorkspaceBuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10938,
3116,
4254,
12,
2890,
16,
453,
71,
2377,
694,
273,
2618,
4672,
468,
3116,
16358,
468,
3116,
11810,
4254,
364,
302,
1017,
316,
365,
18,
40,
1017,
4254,
18,
2452,
13332,
302,
1017,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10938,
3116,
4254,
12,
2890,
16,
453,
71,
2377,
694,
273,
2618,
4672,
468,
3116,
16358,
468,
3116,
11810,
4254,
364,
302,
1017,
316,
365,
18,
40,
1017,
4254,
18,
2452,
13332,
302,
1017,
... |
ctx = self.get_ctx(str(job.details.group.id.val)) | gid = job.details.group.id.val | def lookup(self, job): ctx = self.get_ctx(str(job.details.group.id.val)) sf = self.internal_session() handle = sf.createJobHandle() handle.attach(job.id.val, ctx) if handle.jobFinished(ctx): raise omero.ApiUsageException("Job already finished.") | dec8cfbecad50d2973baf2d9cc65965885648782 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/dec8cfbecad50d2973baf2d9cc65965885648782/processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
12,
2890,
16,
1719,
4672,
11399,
273,
1719,
18,
6395,
18,
1655,
18,
350,
18,
1125,
9033,
273,
365,
18,
7236,
67,
3184,
1435,
1640,
273,
9033,
18,
2640,
2278,
3259,
1435,
1640,
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,
3689,
12,
2890,
16,
1719,
4672,
11399,
273,
1719,
18,
6395,
18,
1655,
18,
350,
18,
1125,
9033,
273,
365,
18,
7236,
67,
3184,
1435,
1640,
273,
9033,
18,
2640,
2278,
3259,
1435,
1640,
18... |
class SetBookmark(SelectAction): | class MarkerAction(SelectAction): @classmethod def worksWithMajorMode(cls, mode): return hasattr(mode, 'MarkerAdd') class SetBookmark(MarkerAction): | def processMinibuffer(self, minibuffer, mode, line): """ Callback function used to set the stc to the correct line. """ # stc counts lines from zero, but displayed starting at 1. #dprint("goto line = %d" % line) mode.EnsureVisible(line - 1) mode.GotoLine(line - 1) | 64f1393c9288463f4fc4ffa09f13ac770fd77b8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/64f1393c9288463f4fc4ffa09f13ac770fd77b8b/cursor_movement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
2930,
495,
962,
12,
2890,
16,
1131,
495,
962,
16,
1965,
16,
980,
4672,
3536,
8444,
445,
1399,
358,
444,
326,
384,
71,
358,
326,
3434,
980,
18,
3536,
225,
468,
384,
71,
6880,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
2930,
495,
962,
12,
2890,
16,
1131,
495,
962,
16,
1965,
16,
980,
4672,
3536,
8444,
445,
1399,
358,
444,
326,
384,
71,
358,
326,
3434,
980,
18,
3536,
225,
468,
384,
71,
6880,
23... |
InstallService(serviceClassString, serviceName, serviceDisplayName, serviceDeps = serviceDeps, startType=startup, userName=userName,password=password, exeName=exeName, perfMonIni=perfMonIni,perfMonDll=perfMonDll) | InstallService(serviceClassString, serviceName, serviceDisplayName, serviceDeps = serviceDeps, startType=startup, bRunInteractive=interactive, userName=userName,password=password, exeName=exeName, perfMonIni=perfMonIni,perfMonDll=perfMonDll) | def HandleCommandLine(cls, serviceClassString = None, argv = None, customInstallOptions = "", customOptionHandler = None): """Utility function allowing services to process the command line. Allows standard commands such as 'start', 'stop', 'debug', 'install' etc. Install supports 'standard' command line options prefi... | ace6349f680363035807225fbc1f73bbf99875e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/ace6349f680363035807225fbc1f73bbf99875e9/win32serviceutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
21391,
12,
6429,
16,
1156,
797,
780,
273,
599,
16,
5261,
273,
599,
16,
1679,
6410,
1320,
273,
23453,
1679,
1895,
1503,
273,
599,
4672,
3536,
6497,
445,
15632,
4028,
358,
1207,
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,
5004,
21391,
12,
6429,
16,
1156,
797,
780,
273,
599,
16,
5261,
273,
599,
16,
1679,
6410,
1320,
273,
23453,
1679,
1895,
1503,
273,
599,
4672,
3536,
6497,
445,
15632,
4028,
358,
1207,
326,... |
test_cases = get_test_cases(test_files, cfg) test_hooks = get_test_hooks(test_files, cfg) | if cfg.list_tests or cfg.run_tests: test_cases = get_test_cases(test_files, cfg) if cfg.list_hooks or cfg.run_tests: test_hooks = get_test_hooks(test_files, cfg) | def main(argv): """Main program.""" # Environment if sys.version_info < (2, 3): print >> sys.stderr, '%s: need Python 2.3 or later' % argv[0] print >> sys.stderr, 'your python is %s' % sys.version return 1 # Defaults cfg = Options() cfg.basedir = os.path.join(os.path.dirname(argv[0]), 'src') # Figure out terminal si... | ae0ebb20226646d3db8007834d0f4dd048aeacb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/ae0ebb20226646d3db8007834d0f4dd048aeacb6/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
3536,
6376,
5402,
12123,
225,
468,
7518,
309,
2589,
18,
1589,
67,
1376,
411,
261,
22,
16,
890,
4672,
1172,
1671,
2589,
18,
11241,
16,
1995,
87,
30,
1608,
6600,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
3536,
6376,
5402,
12123,
225,
468,
7518,
309,
2589,
18,
1589,
67,
1376,
411,
261,
22,
16,
890,
4672,
1172,
1671,
2589,
18,
11241,
16,
1995,
87,
30,
1608,
6600,
5... |
"-IModules/objc", | "-IModules/objc", | def IfFrameWork(name, packages, extensions, headername=None): """ Return the packages and extensions if the framework exists, or two empty lists if not. """ | c7327c87d5a2f44301555206c46d8ef6ed97cf84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/c7327c87d5a2f44301555206c46d8ef6ed97cf84/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
971,
3219,
2421,
12,
529,
16,
5907,
16,
4418,
16,
1446,
529,
33,
7036,
4672,
3536,
2000,
326,
5907,
471,
4418,
309,
326,
8257,
1704,
16,
578,
2795,
1008,
6035,
309,
486,
18,
3536,
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,
971,
3219,
2421,
12,
529,
16,
5907,
16,
4418,
16,
1446,
529,
33,
7036,
4672,
3536,
2000,
326,
5907,
471,
4418,
309,
326,
8257,
1704,
16,
578,
2795,
1008,
6035,
309,
486,
18,
3536,
2,
... |
raise AssertionError('Target date %s not found in the current profile\'s terms.' % target_date) | raise AssertionError( ("Target date %s not found in the current profile's " "terms.") % target_date) | def find_term(start_or_end, target_date): """Search through the profile's terms to find one that contains the given target date as either its start or end date. Parameter start_or_end must be either 0 or 1.""" for term, dates in profile.terms.items(): if dates[start_or_end] == target_date: return term raise AssertionE... | 20eab91c91a9f72ec790d8c5d1fb9261b7b89028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4025/20eab91c91a9f72ec790d8c5d1fb9261b7b89028/formatters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6408,
12,
1937,
67,
280,
67,
409,
16,
1018,
67,
712,
4672,
3536,
2979,
3059,
326,
3042,
1807,
6548,
358,
1104,
1245,
716,
1914,
326,
864,
1018,
1509,
487,
3344,
2097,
787,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6408,
12,
1937,
67,
280,
67,
409,
16,
1018,
67,
712,
4672,
3536,
2979,
3059,
326,
3042,
1807,
6548,
358,
1104,
1245,
716,
1914,
326,
864,
1018,
1509,
487,
3344,
2097,
787,
57... |
primary_language = Column(String(50)) | def __tablename__(cls): if (decl.has_inherited_table(cls) and TableNameMixin not in cls.__bases__): return None return cls.__name__.lower() | 47663a62287b4563a15dc08b4942a49616f9f1df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/47663a62287b4563a15dc08b4942a49616f9f1df/declarative.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7032,
14724,
972,
12,
6429,
4672,
309,
261,
8840,
18,
5332,
67,
6018,
329,
67,
2121,
12,
6429,
13,
471,
18750,
14439,
486,
316,
2028,
16186,
18602,
972,
4672,
327,
599,
327,
2028,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
7032,
14724,
972,
12,
6429,
4672,
309,
261,
8840,
18,
5332,
67,
6018,
329,
67,
2121,
12,
6429,
13,
471,
18750,
14439,
486,
316,
2028,
16186,
18602,
972,
4672,
327,
599,
327,
2028,
... | |
name = self.filters[index].getName() | name = self.filterList.getFilter(index).getName() | def onCheckFilter(self, event): """ Created: 13.04.2006, KP Description: Event handler called when user toggles filter on or off """ index = event.GetSelection() name = self.filters[index].getName() status = self.filterListbox.IsChecked(index) cmd = "Enable" if not status: cmd = "Disable" undo_cmd = "%s.setFilter(%s, ... | 11b6aca8e062f71a7f91f1d093c8a68ee26af76f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2877/11b6aca8e062f71a7f91f1d093c8a68ee26af76f/FilterEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1564,
1586,
12,
2890,
16,
871,
4672,
3536,
12953,
30,
5958,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
2587,
1838,
2566,
1347,
729,
6316,
75,
1040,
1034,
603,
578,
3397,
3536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1564,
1586,
12,
2890,
16,
871,
4672,
3536,
12953,
30,
5958,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
2587,
1838,
2566,
1347,
729,
6316,
75,
1040,
1034,
603,
578,
3397,
3536... |
for header in ('Delivery-date', 'Date', 'Resent-Date'): try: date = message.getdate_tz(header) | for header in 'Delivery-date', 'Received', 'Resent-Date', 'Date': try: if header == 'Received': token = message.getrawheader(header).rsplit(';', 1)[-1] else: token = message.get(header) date = rfc822.parsedate_tz(token) | def guess_delivery_time(message): """Return a guess at the delivery date of an rfc822 message""" assert(message) # try to guess the delivery date from various headers # get more desparate as we go through the array for header in ('Delivery-date', 'Date', 'Resent-Date'): try: date = message.getdate_tz(header) if date: t... | 8e5c8700572d74629eb9edb1090a83c0d316d633 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1746/8e5c8700572d74629eb9edb1090a83c0d316d633/archivemail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
15703,
67,
957,
12,
2150,
4672,
3536,
990,
279,
7274,
622,
326,
7912,
1509,
434,
392,
16590,
24532,
883,
8395,
1815,
12,
2150,
13,
468,
775,
358,
7274,
326,
7912,
1509,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
15703,
67,
957,
12,
2150,
4672,
3536,
990,
279,
7274,
622,
326,
7912,
1509,
434,
392,
16590,
24532,
883,
8395,
1815,
12,
2150,
13,
468,
775,
358,
7274,
326,
7912,
1509,
628,
... |
"H62": atom_info("H", 0, "H'"), | "H62": atom_info("H", 0, "H"), | def keys(self): return ("element_symbol", "ionic_state", "scattering_label") | 46b20303e8ed53745807da84c39cb29f25aa3911 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/46b20303e8ed53745807da84c39cb29f25aa3911/residue_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
7566,
2956,
67,
7175,
3113,
315,
285,
335,
67,
2019,
3113,
315,
31320,
310,
67,
1925,
7923,
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,
1311,
12,
2890,
4672,
327,
7566,
2956,
67,
7175,
3113,
315,
285,
335,
67,
2019,
3113,
315,
31320,
310,
67,
1925,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
[-2.0, 1.0, 3.0, 1.0, -2.0, -2.0, -2.0, 1.0, 1.0, 1.0] sage: P.spectrum(laplacian=True) [5.0, 2.0, 1.48112136999e-16, 2.0, 5.0, 5.0, 5.0, 2.0, 2.0, 2.0] | [-2.0, -2.0, -2.0, -2.0, 1.0, 1.0, 1.0, 1.0, 1.0, 3.0] sage: P.spectrum(laplacian=True) [-1.41325497305e-16, 2.0, 2.0, 2.0, 2.0, 2.0, 5.0, 5.0, 5.0, 5.0] | def spectrum(self, laplacian=False): """ Returns the spectrum of the graph, the eigenvalues of the adjacency matrix INPUT: laplacian -- if True, use the Laplacian matrix instead (see self.kirchhoff_matrix()) EXAMPLE: sage: P = graphs.PetersenGraph() sage: P.spectrum() [-2.0, 1.0, 3.0, 1.0, -2.0, -2.0, -2.0, 1.0, 1.0,... | 281655831c71902bdb893bb1d887e5acb7a1e722 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/281655831c71902bdb893bb1d887e5acb7a1e722/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
7125,
30538,
2779,
33,
8381,
4672,
3536,
2860,
326,
17970,
434,
326,
2667,
16,
326,
29831,
434,
326,
25220,
3148,
225,
12943,
30,
7125,
30538,
2779,
1493,
309,
1053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17970,
12,
2890,
16,
7125,
30538,
2779,
33,
8381,
4672,
3536,
2860,
326,
17970,
434,
326,
2667,
16,
326,
29831,
434,
326,
25220,
3148,
225,
12943,
30,
7125,
30538,
2779,
1493,
309,
1053,
... |
self.assertEquals(QtPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--qt"]) | self.assertEquals(QtPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--qt", '--makeargs="-j8"']) | def test_qt_port(self): self.assertEquals(QtPort.name(), "Qt") self.assertEquals(QtPort.flag(), "--port=qt") self.assertEquals(QtPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) self.assertEquals(QtPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--qt"]) | 1f801dba38433229db4e1b47943685fb62c74bc3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/1f801dba38433229db4e1b47943685fb62c74bc3/webkitport_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
23311,
67,
655,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
23310,
2617,
18,
529,
9334,
315,
23310,
7923,
365,
18,
11231,
8867,
12,
23310,
2617,
18,
6420,
9334,
5238,
655,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23311,
67,
655,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
23310,
2617,
18,
529,
9334,
315,
23310,
7923,
365,
18,
11231,
8867,
12,
23310,
2617,
18,
6420,
9334,
5238,
655,
33,
... |
if self.debug > 0: print cmd | log.debug(cmd) | def execute_external_dynamics(self, nc=None, txt=None, stoppfile='stop', stopprogram=None): ''' Implementation of the stay alive functionality with socket communication between dacapo and python. Known limitations: It is not possible to start 2 independent Dacapo calculators from the same python process, since the pyt... | efb0053a692e68241ce5b5d3e00d105383545b1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/efb0053a692e68241ce5b5d3e00d105383545b1a/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
9375,
67,
31129,
2102,
12,
2890,
16,
8194,
33,
7036,
16,
6463,
33,
7036,
16,
2132,
84,
768,
2218,
5681,
2187,
2132,
12890,
33,
7036,
4672,
9163,
25379,
434,
326,
23449,
13714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
9375,
67,
31129,
2102,
12,
2890,
16,
8194,
33,
7036,
16,
6463,
33,
7036,
16,
2132,
84,
768,
2218,
5681,
2187,
2132,
12890,
33,
7036,
4672,
9163,
25379,
434,
326,
23449,
13714,
... |
wrap = None | wrap = None | def delete(arr, obj, axis=None): """Return a new array with sub-arrays along an axis deleted. Return a new array with the sub-arrays (i.e. rows or columns) deleted along the given axis as specified by obj obj may be a slice_object (s_[3:5:2]) or an integer or an array of integers indicated which sub-arrays to remove.... | c268f1d89bbf826e69bafabbf0029b7847ca59a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/c268f1d89bbf826e69bafabbf0029b7847ca59a4/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
5399,
16,
1081,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
720,
17,
16223,
7563,
392,
2654,
4282,
18,
225,
2000,
279,
394,
526,
598,
326,
720,
17,
16223,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
5399,
16,
1081,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
720,
17,
16223,
7563,
392,
2654,
4282,
18,
225,
2000,
279,
394,
526,
598,
326,
720,
17,
16223,
261,
... |
if value == '': | if value == '' or value is None: | def currency(value, args=""): """Convert a value to a money formatted string. places: required number of places after the decimal point curr: optional currency symbol before the sign (may be blank) wrapcents:tag to wrap the part after the decimal point Usage: val|currency val|currency:'places=2' val|currency:'pla... | c62a286a4fdc69f54d088cf885fefda81b006135 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/c62a286a4fdc69f54d088cf885fefda81b006135/satchmo_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5462,
12,
1132,
16,
833,
1546,
6,
4672,
3536,
2723,
279,
460,
358,
279,
15601,
4955,
533,
18,
225,
12576,
30,
225,
1931,
1300,
434,
12576,
1839,
326,
6970,
1634,
4306,
30,
565,
3129,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5462,
12,
1132,
16,
833,
1546,
6,
4672,
3536,
2723,
279,
460,
358,
279,
15601,
4955,
533,
18,
225,
12576,
30,
225,
1931,
1300,
434,
12576,
1839,
326,
6970,
1634,
4306,
30,
565,
3129,
5... |
self.forceSelect(self.treeroot) | self.forceSelect(self.treeroot) | def __init__(self,parent,id,title,main): # Dialog init wx.Dialog.__init__(self,parent,id,title) self.parent=main DV.prefs.save() # Save just in case, we're gonna modify stuff! self.toppanel=wx.Panel(self,-1) self.bestsize=[0,0] self.defaultvalue=DV.l('(default)') # Top part of the toppanel self.topsizer=wx.BoxSizer(wx.... | 0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
350,
16,
2649,
16,
5254,
4672,
468,
17242,
1208,
7075,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
350,
16,
2649,
13,
365,
18,
2938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
350,
16,
2649,
16,
5254,
4672,
468,
17242,
1208,
7075,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
350,
16,
2649,
13,
365,
18,
2938,
... |
def __getPilots(self): | def __getPilots( self ): | def __getPilots(self): | 364464017f61dc703439c7a2235a47d4ba35aafe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/364464017f61dc703439c7a2235a47d4ba35aafe/DiracSiteAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
52,
330,
6968,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
52,
330,
6968,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
], context=context): | ], context=ctx): | def get_action_id(self, cursor, user, action_id, context=None): if self.search(cursor, user, [ ('id', '=', action_id), ], context=context): return action_id for action_type in ( 'ir.action.report', 'ir.action.act_window', 'ir.action.wizard', 'ir.action.url', ): action_obj = self.pool.get(action_type) action_id2 = actio... | 3b4b241f0e20cc7c72b37c898fa2fcf912f2327a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/3b4b241f0e20cc7c72b37c898fa2fcf912f2327a/action.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1128,
67,
350,
12,
2890,
16,
3347,
16,
729,
16,
1301,
67,
350,
16,
819,
33,
7036,
4672,
309,
365,
18,
3072,
12,
9216,
16,
729,
16,
306,
7707,
350,
2187,
15196,
2187,
1301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
67,
350,
12,
2890,
16,
3347,
16,
729,
16,
1301,
67,
350,
16,
819,
33,
7036,
4672,
309,
365,
18,
3072,
12,
9216,
16,
729,
16,
306,
7707,
350,
2187,
15196,
2187,
1301,
... |
gLogger.info("execute: Checking of reserved tasks is disabled. To enable create the following option %s/CheckReserved" % (self.section)) | gLogger.info("execute: Checking of reserved tasks is disabled.") gLogger.info("execute: To enable create the 'CheckReserved' option") | def execute(self): """ The TaskManagerBase execution method. """ | 40be04c1cef65844e032c0bbd2d7b13c11bd9645 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/40be04c1cef65844e032c0bbd2d7b13c11bd9645/TaskManagerAgentBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1021,
3837,
1318,
2171,
4588,
707,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1836,
12,
2890,
4672,
3536,
1021,
3837,
1318,
2171,
4588,
707,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
physicaltotal -= unicode(char.gettag('dmg_poison')) | physicaltotal -= int(char.gettag('dmg_poison')) | def charinfo( socket, char ): if not char or not socket: return gump = wolfpack.gumps.cGump() gump.setCallback( "commands.info.charinfo_response" ) gump.setArgs( [char.serial] ) gump.startPage(0) gump.addResizeGump( 64, 34, 9260, 464, 462 ) #Background gump.addGump(30, 33, 10421, 0) gump.addGump(59, 22, 10420, 0) gum... | f1fa616f8e661d14405ae7734e7fcff894bfb60b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f1fa616f8e661d14405ae7734e7fcff894bfb60b/info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
1376,
12,
2987,
16,
1149,
262,
30,
309,
486,
1149,
578,
486,
2987,
30,
327,
225,
314,
2801,
273,
341,
355,
74,
2920,
18,
75,
23868,
18,
71,
43,
2801,
1435,
314,
2801,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
1376,
12,
2987,
16,
1149,
262,
30,
309,
486,
1149,
578,
486,
2987,
30,
327,
225,
314,
2801,
273,
341,
355,
74,
2920,
18,
75,
23868,
18,
71,
43,
2801,
1435,
314,
2801,
18,
542,
... |
except urlgrabber.grabber.URLGrabError: | except urlgrabber.grabber.URLGrabError: | def __openFd(self, offset=None, headerend=None): if not self.fd: if isUrl(self.filename): import urlgrabber try: if offset or headerend: self.fd = urlgrabber.urlopen(self.filename, range=(offset, headerend), timeout=sockettimeout) else: self.fd = urlgrabber.urlopen(self.filename, timeout=sockettimeout) #except urlgrabb... | bf283037bba62f4852279a5f7714a4c0ecd3e556 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/bf283037bba62f4852279a5f7714a4c0ecd3e556/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3190,
27263,
12,
2890,
16,
1384,
33,
7036,
16,
1446,
409,
33,
7036,
4672,
309,
486,
365,
18,
8313,
30,
309,
353,
1489,
12,
2890,
18,
3459,
4672,
1930,
880,
2752,
23709,
775,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3190,
27263,
12,
2890,
16,
1384,
33,
7036,
16,
1446,
409,
33,
7036,
4672,
309,
486,
365,
18,
8313,
30,
309,
353,
1489,
12,
2890,
18,
3459,
4672,
1930,
880,
2752,
23709,
775,
30,
... |
raise IOError(popen.stderr.read()) for line in popen.stdout: | raise IOError(stderr.decode("mbcs")) stdout = stdout.decode("mbcs") for line in stdout.split("\n"): | def query_vcvarsall(version, arch="x86"): """Launch vcvarsall.bat and read the settings from its environment """ vcvarsall = find_vcvarsall(version) interesting = set(("include", "lib", "libpath", "path")) result = {} if vcvarsall is None: raise IOError("Unable to find vcvarsall.bat") popen = subprocess.Popen('"%s" %s... | aed017d32242a3a4a6df9679a9e7671c252c9ae1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/aed017d32242a3a4a6df9679a9e7671c252c9ae1/msvc9compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
4227,
4699,
454,
12,
1589,
16,
6637,
1546,
92,
5292,
6,
4672,
3536,
9569,
12802,
4699,
454,
18,
28260,
471,
855,
326,
1947,
628,
2097,
3330,
3536,
12802,
4699,
454,
273,
1104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
4227,
4699,
454,
12,
1589,
16,
6637,
1546,
92,
5292,
6,
4672,
3536,
9569,
12802,
4699,
454,
18,
28260,
471,
855,
326,
1947,
628,
2097,
3330,
3536,
12802,
4699,
454,
273,
1104,
... |
if len(name) > 1: if len(name) > 2: extension = name[-2] else: extension = name[-1] mimetype, encoding = mimetypes.guess_type('.%s' % extension) else: mimetype = 'application/octet-stream' | if name[-1] in i18n.languages: name = name[:-1] mimetype, encoding = mimetypes.guess_type('.'.join(name)) if mimetype is None: return 'application/octet-stream' | def get_mimetype(self): """ Try to guess the mimetype for a resource, given the resource itself and its name. To guess from the name we need to extract the type extension, we use an heuristic for this task, but it needs to be improved because there are many patterns: | 332516e2cfac1041f3e17054c0e4c90248dd51bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/332516e2cfac1041f3e17054c0e4c90248dd51bf/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
22571,
12,
2890,
4672,
3536,
6161,
358,
7274,
326,
12595,
364,
279,
1058,
16,
864,
326,
1058,
6174,
471,
2097,
508,
18,
2974,
7274,
628,
326,
508,
732,
1608,
358,
2608,
326,
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,
336,
67,
22571,
12,
2890,
4672,
3536,
6161,
358,
7274,
326,
12595,
364,
279,
1058,
16,
864,
326,
1058,
6174,
471,
2097,
508,
18,
2974,
7274,
628,
326,
508,
732,
1608,
358,
2608,
326,
6... |
def __init_from_reg_key__( self, key, name = None ): | def __init_from_reg_key__(self, key, name = None): | def __init_from_reg_key__( self, key, name = None ): if not name: key, name = os.path.split( key ) value, type = _winreg.QueryValueEx( key, name ) self.__init_from_bytes__( value ) | c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
67,
2080,
67,
1574,
67,
856,
972,
12,
2890,
16,
498,
16,
508,
273,
599,
4672,
309,
486,
508,
30,
498,
16,
508,
273,
1140,
18,
803,
18,
4939,
12,
498,
262,
460,
16,
618,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
67,
2080,
67,
1574,
67,
856,
972,
12,
2890,
16,
498,
16,
508,
273,
599,
4672,
309,
486,
508,
30,
498,
16,
508,
273,
1140,
18,
803,
18,
4939,
12,
498,
262,
460,
16,
618,... |
self.listen_sock.bind(("", MSRP_PORT)) | self.listen_sock.bind(("", 0)) self.local_uri_path[-1].port = self.listen_sock.getsockname()[1] | def __init__(self, is_incoming, do_dump, relay_ip=None, relay_port=None): self.is_incoming = is_incoming self.do_dump = do_dump self.relay_ip = relay_ip self.relay_port = relay_port self.local_uri_path = [msrp_protocol.URI(host=default_host_ip, port=MSRP_PORT, session_id="".join(random.choice(string.letters + string.di... | fe3d0f7c1c3ab8c671eb1feff4742e9cfc2b4e88 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/fe3d0f7c1c3ab8c671eb1feff4742e9cfc2b4e88/sip_invite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
353,
67,
31033,
16,
741,
67,
8481,
16,
18874,
67,
625,
33,
7036,
16,
18874,
67,
655,
33,
7036,
4672,
365,
18,
291,
67,
31033,
273,
353,
67,
31033,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
353,
67,
31033,
16,
741,
67,
8481,
16,
18874,
67,
625,
33,
7036,
16,
18874,
67,
655,
33,
7036,
4672,
365,
18,
291,
67,
31033,
273,
353,
67,
31033,
365,... |
[self.paper.itemconfig( i, width=self.line_width+2) for i in self.items] | [self.paper.itemconfig( i, width=self.line_width+2) for i in self.items if not "arrow_no_focus" in self.paper.gettags(i)] | def focus( self): [self.paper.itemconfig( i, width=self.line_width+2) for i in self.items] | 6cbea89431262f6c6d8a9e13b9089309e33d5694 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4298/6cbea89431262f6c6d8a9e13b9089309e33d5694/arrow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7155,
12,
365,
4672,
306,
2890,
18,
27400,
18,
1726,
1425,
12,
277,
16,
1835,
33,
2890,
18,
1369,
67,
2819,
15,
22,
13,
364,
277,
316,
365,
18,
3319,
65,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7155,
12,
365,
4672,
306,
2890,
18,
27400,
18,
1726,
1425,
12,
277,
16,
1835,
33,
2890,
18,
1369,
67,
2819,
15,
22,
13,
364,
277,
316,
365,
18,
3319,
65,
2,
-100,
-100,
-100,
-100,
... |
self.img = io.MultiImage(os.path.join('data', 'multipage.tif')) | self.img = io.MultiImage(os.path.join(data_dir, 'multipage.tif')) | def setUp(self): # This multipage TIF file was created with imagemagick: # convert im1.tif im2.tif -adjoin multipage.tif self.img = io.MultiImage(os.path.join('data', 'multipage.tif')) | 33afe601aaccce33ca58edc7ee86d9b89a276ea1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/33afe601aaccce33ca58edc7ee86d9b89a276ea1/test_io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
468,
1220,
14421,
410,
399,
5501,
585,
1703,
2522,
598,
8902,
351,
346,
1200,
30,
468,
1765,
709,
21,
18,
26922,
709,
22,
18,
26922,
300,
361,
5701,
14421,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
468,
1220,
14421,
410,
399,
5501,
585,
1703,
2522,
598,
8902,
351,
346,
1200,
30,
468,
1765,
709,
21,
18,
26922,
709,
22,
18,
26922,
300,
361,
5701,
14421,
410,
... |
if parent_tid in current_parents or parent_tid == child_tid: | if child_tid in genealogy or parent_tid == child_tid: | def move_task(self, parent_tid, child_tid): """Moves the task identified by child_tid under parent_tid, removing all the precedent parents. Child becomes a root task if parent_tid is None""" child_task = self.req.get_task(child_tid) current_parents = child_task.get_parents() #Avoid the typical time-traveller problem be... | 28a860e9ebaf4bb13b2c4f0a209def2f0e88feda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/28a860e9ebaf4bb13b2c4f0a209def2f0e88feda/tasktree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
4146,
12,
2890,
16,
982,
67,
18081,
16,
1151,
67,
18081,
4672,
3536,
19297,
326,
1562,
9283,
635,
1151,
67,
18081,
3613,
982,
67,
18081,
16,
9427,
777,
326,
10575,
319,
6298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
4146,
12,
2890,
16,
982,
67,
18081,
16,
1151,
67,
18081,
4672,
3536,
19297,
326,
1562,
9283,
635,
1151,
67,
18081,
3613,
982,
67,
18081,
16,
9427,
777,
326,
10575,
319,
6298,
... |
print "Bootstraping:", egg_path | print "Bootstrapping:", egg_path | def main(prefix=sys.prefix, verbose=False): """ To bootstrap Enstaller into a Python environment, used the following code: sys.path.insert(0, '/path/to/Enstaller.egg') from egginst.bootstrap import main main() """ import egginst # This is the path to the egg which we want to install. # Note that whoever calls this fu... | c825168548e696c4e97e1552eff2be7c0ca5c32c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7707/c825168548e696c4e97e1552eff2be7c0ca5c32c/bootstrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3239,
33,
9499,
18,
3239,
16,
3988,
33,
8381,
4672,
3536,
2974,
7065,
1374,
3429,
264,
1368,
279,
6600,
3330,
16,
1399,
326,
3751,
981,
30,
225,
2589,
18,
803,
18,
6387,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3239,
33,
9499,
18,
3239,
16,
3988,
33,
8381,
4672,
3536,
2974,
7065,
1374,
3429,
264,
1368,
279,
6600,
3330,
16,
1399,
326,
3751,
981,
30,
225,
2589,
18,
803,
18,
6387,
12,
... |
if s == "": | if s == b"": | def read(self, size=None): L = [self._buf] avail = len(self._buf) while size is None or avail < size: s = self._read() if s == "": break L.append(s) avail += len(s) all = "".join(L) if size is None: self._buf = "" return all else: self._buf = all[size:] return all[:size] | 0ee5eeb8ffb167d55a746c97c91558cf0e855c94 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/0ee5eeb8ffb167d55a746c97c91558cf0e855c94/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
33,
7036,
4672,
511,
273,
306,
2890,
6315,
4385,
65,
15783,
273,
562,
12,
2890,
6315,
4385,
13,
1323,
963,
353,
599,
578,
15783,
411,
963,
30,
272,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
33,
7036,
4672,
511,
273,
306,
2890,
6315,
4385,
65,
15783,
273,
562,
12,
2890,
6315,
4385,
13,
1323,
963,
353,
599,
578,
15783,
411,
963,
30,
272,
273,
365,
... |
os.renames(origfilename, nukemoveorigto) | shutil.move(origfilename, nukemoveorigto) | def find_relink(fullnukepath, nukemoveto): for x in os.listdir(download_dir): linkpath = os.path.join(download_dir, x) if os.path.islink(linkpath): if fullnukepath == os.readlink(linkpath): os.unlink(linkpath) os.symlink(nukemoveto, linkpath) break | e74602d00d0a0bc97cb32331f86d15c2f3ca6221 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13915/e74602d00d0a0bc97cb32331f86d15c2f3ca6221/tvwrangler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
266,
1232,
12,
2854,
29705,
803,
16,
9244,
79,
351,
1527,
11453,
4672,
364,
619,
316,
1140,
18,
1098,
1214,
12,
7813,
67,
1214,
4672,
1692,
803,
273,
1140,
18,
803,
18,
5701,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
266,
1232,
12,
2854,
29705,
803,
16,
9244,
79,
351,
1527,
11453,
4672,
364,
619,
316,
1140,
18,
1098,
1214,
12,
7813,
67,
1214,
4672,
1692,
803,
273,
1140,
18,
803,
18,
5701,... |
aVariableID[0] = '(' + aVariableID[0] + '/'+ aSystemPath[aLastSlash+1:] + '/' + 'N_A)' | if( aVariableReference[1][aLastColon+1:] == 'SIZE' ): if ( aSystemPath == '/' ): aVariableID[0] = 'default' else: aVariableID[0] = aSystemPath[aLastSlash+1:] else: if ( aSystemPath == '/' ): aVariableID[0] = '(' + aVariableID[0] + '/default/N_A)' else: aVariableID[0] = '(' + aVariableID[0] + '/'+ aSystemPath[aL... | def p_expression_variablereference(t): 'VariableReference : NAME COMMA NAME' | 9d0ce5180468dc36265806001a8a8bee6695069c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/9d0ce5180468dc36265806001a8a8bee6695069c/expressionparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
8692,
67,
4093,
27371,
73,
1134,
12,
88,
4672,
296,
3092,
2404,
294,
6048,
17373,
6048,
11,
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,
293,
67,
8692,
67,
4093,
27371,
73,
1134,
12,
88,
4672,
296,
3092,
2404,
294,
6048,
17373,
6048,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.