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 |
|---|---|---|---|---|---|---|
self.ignore_local_hold = True | def _NH_SIPApplicationGotInput(self, notification): engine = Engine() notification_center = NotificationCenter() settings = SIPSimpleSettings() if notification.data.input == '\x04': if self.active_session is not None: self.output.put('Ending audio session...\n') self.active_session.end() elif self.outgoing_session is n... | 4de651b3cfcbef33d807eb78f194261b199e86a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/4de651b3cfcbef33d807eb78f194261b199e86a3/sip_audio_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
17739,
3208,
15617,
1210,
12,
2890,
16,
3851,
4672,
4073,
273,
10507,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
309,
3851,
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,
389,
50,
44,
67,
17739,
3208,
15617,
1210,
12,
2890,
16,
3851,
4672,
4073,
273,
10507,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
309,
3851,
18,... | |
"Number", | "Number", "Boolean", | def isBadGlobal(self, identifier): return identifier in Lint.DEPRECATED_IDENTIFIER | 03dc001d2fddbdf69ae330008d879ce56a5a2389 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/03dc001d2fddbdf69ae330008d879ce56a5a2389/ecmalint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
6434,
5160,
12,
2890,
16,
2756,
4672,
327,
2756,
316,
511,
474,
18,
17575,
67,
16606,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
6434,
5160,
12,
2890,
16,
2756,
4672,
327,
2756,
316,
511,
474,
18,
17575,
67,
16606,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if data == u'': | if data == u'' or self.site().mediawiki_message('pagemovedsub') in data: | def move(self, newtitle, reason=None, movetalkpage=True, sysop=False, throttle=True, deleteAndMove=False, safe=True): """Move this page to new title given by newtitle. If safe, don't try to move and delete if not directly requested.""" # Login try: self.get() except: pass sysop = self._getActionUser(action = 'move', re... | 63b8223a15903ead17ecae4b0795cf5d1a4c4438 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/63b8223a15903ead17ecae4b0795cf5d1a4c4438/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
394,
2649,
16,
3971,
33,
7036,
16,
5730,
278,
2960,
2433,
33,
5510,
16,
2589,
556,
33,
8381,
16,
18304,
33,
5510,
16,
1430,
1876,
7607,
33,
8381,
16,
4183,
33,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
394,
2649,
16,
3971,
33,
7036,
16,
5730,
278,
2960,
2433,
33,
5510,
16,
2589,
556,
33,
8381,
16,
18304,
33,
5510,
16,
1430,
1876,
7607,
33,
8381,
16,
4183,
33,
55... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 527) else quickfix.StringField.__init__(self, 527, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5324,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5324,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... |
return str(sum) | return sum | def infer_next_version(last_version, increment): """ Given a simple application version (as a StrictVersion), and an increment (1.0, 0.1, or 0.0.1), guess the next version. >>> VersionManagement.infer_next_version('3.2', '0.0.1') '3.2.1' >>> VersionManagement.infer_next_version(StrictVersion('3.2'), '0.0.1') '3.2.1' >>... | e305d484aa2294b4f486a574edcd9ecbe9dea495 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/833/e305d484aa2294b4f486a574edcd9ecbe9dea495/hgtools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
... |
self.item = itemOrEvent.itsItem | self.event = EventStamp(itemOrEvent) | def __init__(self, bounds, itemOrEvent): """ @param bounds: the bounds of the item as drawn on the canvas. @type bounds: wx.Rect @param item: the item drawn on the canvas in these bounds @type itemOrEvent: C{Item} or C{EventStamp} """ # @@@ scaffolding: resize bounds is the lower 5 pixels self._bounds = bounds if isin... | 5a6cfd73a83ed3405c85525a218a1ad115e358e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5a6cfd73a83ed3405c85525a218a1ad115e358e0/CollectionCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4972,
16,
761,
1162,
1133,
4672,
3536,
632,
891,
4972,
30,
326,
4972,
434,
326,
761,
487,
19377,
603,
326,
5953,
18,
632,
723,
4972,
30,
7075,
18,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4972,
16,
761,
1162,
1133,
4672,
3536,
632,
891,
4972,
30,
326,
4972,
434,
326,
761,
487,
19377,
603,
326,
5953,
18,
632,
723,
4972,
30,
7075,
18,
6120,
... |
self.addHost(host, descriptiveName, mirrors) def addHost(self, host, descriptiveName = None, mirrors = None): | self.addHost(host, downloadUrl = downloadUrl, descriptiveName = descriptiveName, mirrors = mirrors) def addHost(self, host, downloadUrl = None, descriptiveName = None, mirrors = None): | def setHost(self, host, descriptiveName = None, mirrors = None): """ Specifies the URL that will ultimately host these contents. """ | d358a8d67ff3bd18e20575701cbe9cf362d7362d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/d358a8d67ff3bd18e20575701cbe9cf362d7362d/Packager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2594,
12,
2890,
16,
1479,
16,
302,
31812,
461,
273,
599,
16,
312,
27026,
273,
599,
4672,
3536,
4185,
5032,
326,
1976,
716,
903,
225,
406,
381,
5173,
1479,
4259,
2939,
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,
444,
2594,
12,
2890,
16,
1479,
16,
302,
31812,
461,
273,
599,
16,
312,
27026,
273,
599,
4672,
3536,
4185,
5032,
326,
1976,
716,
903,
225,
406,
381,
5173,
1479,
4259,
2939,
18,
3536,
2,... |
page.write("|| || %s ||" % (f.replace('range_summary.txt',''),) ) | page.write("|| || || || || %s ||" % (f.replace('range_summary.txt','').replace(base_name, ""),) ) | def parse_command_line(): parser = OptionParser(version = "%prog CVS $Id$", usage = "%prog [options] [file ...]", description = "%prog computes mass/mass upperlimit") parser.add_option("--webserver", help = "Set the webserver path. Required. Example https://ldas-jobs.ligo.caltech.edu/~channa/highmass_months_23-24_sum... | e7764ccb15e454456204ecdbbb20b2c9bc1d4e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e7764ccb15e454456204ecdbbb20b2c9bc1d4e17/make_summary_page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
13332,
2082,
273,
18862,
12,
1589,
273,
2213,
14654,
385,
14640,
271,
548,
8,
3113,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
768,
1372,
65,
3113,
2477,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
13332,
2082,
273,
18862,
12,
1589,
273,
2213,
14654,
385,
14640,
271,
548,
8,
3113,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
768,
1372,
65,
3113,
2477,
273,
... |
CRLF = '\r\n' | CRLF = b'\r\n' | def __init__(self, *args): Exception.__init__(self, *args) try: self.response = args[0] except IndexError: self.response = 'No response given' | eb96c4e975fd746fcc8b85f47c3592472b8d6b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/eb96c4e975fd746fcc8b85f47c3592472b8d6b15/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
1185,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
775,
30,
365,
18,
2740,
273,
833,
63,
20,
65,
1335,
10195,
30,
365,
18,
2740,
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,
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,
380,
1968,
4672,
1185,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
775,
30,
365,
18,
2740,
273,
833,
63,
20,
65,
1335,
10195,
30,
365,
18,
2740,
273... |
def to_str(self, encoding=None): | def to_str(self, encoding='UTF-8'): | def to_str(self, encoding=None): messages = self.state.messages message_ids = messages.keys() message_ids.sort() messages = [ messages[x].to_str() for x in message_ids ] return '\n'.join(messages) | 3dca643585e4656477668283622453425eeb4794 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/3dca643585e4656477668283622453425eeb4794/PO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
701,
12,
2890,
16,
2688,
2218,
5159,
17,
28,
11,
4672,
2743,
273,
365,
18,
2019,
18,
6833,
883,
67,
2232,
273,
2743,
18,
2452,
1435,
883,
67,
2232,
18,
3804,
1435,
2743,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
701,
12,
2890,
16,
2688,
2218,
5159,
17,
28,
11,
4672,
2743,
273,
365,
18,
2019,
18,
6833,
883,
67,
2232,
273,
2743,
18,
2452,
1435,
883,
67,
2232,
18,
3804,
1435,
2743,
273... |
logfile, 0, '') | logfile, 0, '') | def ClearDir(DEBUGON, logfile, dirl): 'Clear the node directories under dirlist' nodelist = [] dirlist=dirl.split(',') dirlen=len(dirlist) nodename = str(socket.gethostname()) if DEBUGON: printlog('o2tf.ClearDir: logfile = (%s)' % logfile, logfile, 0, '') printlog('o2tf.ClearDir: dirlist = (%s)' % dirlist, logfile, 0, ... | 657bfc37c22ea26052b0df161170cb3df469efec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1915/657bfc37c22ea26052b0df161170cb3df469efec/o2tf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10121,
1621,
12,
9394,
673,
16,
15204,
16,
1577,
80,
4672,
296,
9094,
326,
756,
6402,
3613,
1577,
1098,
11,
30068,
273,
5378,
1577,
1098,
33,
1214,
80,
18,
4939,
12,
2187,
6134,
1577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10121,
1621,
12,
9394,
673,
16,
15204,
16,
1577,
80,
4672,
296,
9094,
326,
756,
6402,
3613,
1577,
1098,
11,
30068,
273,
5378,
1577,
1098,
33,
1214,
80,
18,
4939,
12,
2187,
6134,
1577,
... |
profile=Profiler, | profile=profile, | def apply_jit(translator, backend_name="auto", **kwds): from pypy.jit.metainterp.simple_optimize import Optimizer if 'CPUClass' not in kwds: from pypy.jit.backend.detect_cpu import getcpuclass kwds['CPUClass'] = getcpuclass(backend_name) warmrunnerdesc = WarmRunnerDesc(translator, translate_support_code=True, listops=T... | 97ca17da2166200ce398417d051dc1714e104d1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/97ca17da2166200ce398417d051dc1714e104d1c/warmspot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
78,
305,
12,
17879,
16,
4221,
67,
529,
1546,
6079,
3113,
2826,
25577,
4672,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
9647,
67,
29155,
1930,
19615,
1824,
309,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
78,
305,
12,
17879,
16,
4221,
67,
529,
1546,
6079,
3113,
2826,
25577,
4672,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
9647,
67,
29155,
1930,
19615,
1824,
309,
29... |
access(path, mode) | access(path, os.R_OK|os.W_OK|os.X_OK) | def mkdir(path, mode=0777): filename = posixpath.basename(path) dirname = posixpath.dirname(path) f = _findFileFromPath(dirname) try: access(path, mode) except OSError, e: if e.errno != errno.ENOENT: raise if not isinstance(f, FakeDir): raise OSError(errno.ENOTDIR, '') if f.name in f.getChildren(): raise OSE... | 754ae64ac3d42c03c45da2920fdd1d027194154d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/754ae64ac3d42c03c45da2920fdd1d027194154d/os_mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
803,
16,
1965,
33,
20,
14509,
4672,
1544,
273,
16366,
803,
18,
13909,
12,
803,
13,
4283,
225,
273,
16366,
803,
18,
12287,
12,
803,
13,
284,
3639,
273,
389,
4720,
812,
23064,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
803,
16,
1965,
33,
20,
14509,
4672,
1544,
273,
16366,
803,
18,
13909,
12,
803,
13,
4283,
225,
273,
16366,
803,
18,
12287,
12,
803,
13,
284,
3639,
273,
389,
4720,
812,
23064,
... |
if port not in sysdesc.keys() or port not in portdesc.keys() \ or port not in mgmtip.keys(): | if port not in sysdesc.keys() or port not in portdesc.keys(): | def fileIntoDb(txn, sysname, sysdesc, portdesc, mgmtip, ip): txn.execute("DELETE FROM lldp WHERE equipment=%(ip)s", {'ip': str(ip)}) for port in sysname.keys(): if port not in sysdesc.keys() or port not in portdesc.keys() \ or port not in mgmtip.keys(): continue txn.execute("INSERT INTO lldp VALUES (%(ip)s, " "%(port)s... | d6c8d6680cb496fea1bab4808c1bbb9bdfb78878 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13050/d6c8d6680cb496fea1bab4808c1bbb9bdfb78878/lldp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
5952,
4331,
12,
24790,
16,
2589,
529,
16,
2589,
5569,
16,
1756,
5569,
16,
29919,
625,
16,
2359,
4672,
7827,
18,
8837,
2932,
6460,
4571,
328,
18503,
4852,
1298,
11568,
5095,
12,
625,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
5952,
4331,
12,
24790,
16,
2589,
529,
16,
2589,
5569,
16,
1756,
5569,
16,
29919,
625,
16,
2359,
4672,
7827,
18,
8837,
2932,
6460,
4571,
328,
18503,
4852,
1298,
11568,
5095,
12,
625,... |
if self.requred is not None: showIndent(outfile, level) outfile.write('requred=%s,\n' % self.requred) | if self.required is not None: showIndent(outfile, level) outfile.write('required=%s,\n' % self.required) | def exportLiteralChildren(self, outfile, level, name_): if self.ip_address is not None: showIndent(outfile, level) outfile.write('ip_address=%s,\n' % quote_python(self.ip_address).encode(ExternalEncoding)) if self.ipv6_address is not None: showIndent(outfile, level) outfile.write('ipv6_address=%s,\n' % quote_python(sel... | 91b7fa5f4789cd99e181dad4d2401509c907da8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/91b7fa5f4789cd99e181dad4d2401509c907da8c/generateds_system_1_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
6177,
4212,
12,
2890,
16,
8756,
16,
1801,
16,
508,
67,
4672,
309,
365,
18,
625,
67,
2867,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
625,
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,
3359,
6177,
4212,
12,
2890,
16,
8756,
16,
1801,
16,
508,
67,
4672,
309,
365,
18,
625,
67,
2867,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
625,
67,... |
tmp_conditions[tag2] = weather_dom.getElementsByTagName(tag)[0].getElementsByTagName(tag2)[0].getAttribute('data') | try: tmp_conditions[tag2] = weather_dom.getElementsByTagName(tag)[0].getElementsByTagName(tag2)[0].getAttribute('data') except IndexError: pass | def get_weather_from_google(location_id, hl = ''): """ Fetches weather report from Google Parameters location_id: a zip code (10001); city name, state (weather=woodland,PA); city name, country (weather=london,england); latitude/longitude(weather=,,,30670000,104019996) or possibly other. hl: the language parameter (lan... | 8a36cd3ce67008012cab4acb7a51bbd7cee3b8a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1185/8a36cd3ce67008012cab4acb7a51bbd7cee3b8a5/pywapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1814,
4806,
67,
2080,
67,
9536,
12,
3562,
67,
350,
16,
16043,
273,
875,
4672,
3536,
8065,
281,
21534,
2605,
628,
6124,
225,
7012,
2117,
67,
350,
30,
279,
3144,
981,
261,
6625,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1814,
4806,
67,
2080,
67,
9536,
12,
3562,
67,
350,
16,
16043,
273,
875,
4672,
3536,
8065,
281,
21534,
2605,
628,
6124,
225,
7012,
2117,
67,
350,
30,
279,
3144,
981,
261,
6625,... |
intermediate_path = os.path.join(build_path, 'obj', 'global_intermediate', path_components[1]) | intermediate_path = os.path.join(build_path, 'obj', 'global_intermediate', path_components[1]) | def total_split(path): components = [] while path: head, tail = os.path.split(path) if not tail: break components.append(tail) path = head return list(reversed(components)) | 650f43b727fd8956874de00f3fde5294046d753c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6097/650f43b727fd8956874de00f3fde5294046d753c/clobber_generated_headers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2078,
67,
4939,
12,
803,
4672,
4085,
273,
5378,
1323,
589,
30,
910,
16,
5798,
273,
1140,
18,
803,
18,
4939,
12,
803,
13,
309,
486,
5798,
30,
898,
4085,
18,
6923,
12,
13101,
13,
589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2078,
67,
4939,
12,
803,
4672,
4085,
273,
5378,
1323,
589,
30,
910,
16,
5798,
273,
1140,
18,
803,
18,
4939,
12,
803,
13,
309,
486,
5798,
30,
898,
4085,
18,
6923,
12,
13101,
13,
589,
... |
start += stop | start += step | def frange(start, stop, step): while start <= stop: yield start start += stop | 8783c37ca945fe2c656d1d7d62ed7a3ea7ff0047 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8783c37ca945fe2c656d1d7d62ed7a3ea7ff0047/test_colorsys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
3676,
12,
1937,
16,
2132,
16,
2235,
4672,
1323,
787,
1648,
2132,
30,
2824,
787,
787,
1011,
2235,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
3676,
12,
1937,
16,
2132,
16,
2235,
4672,
1323,
787,
1648,
2132,
30,
2824,
787,
787,
1011,
2235,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
padding = byte_count % 8 | padding = 8 - (byte_count % 8) | def _make_tag(base_dt, val, mdtype, sde=False): ''' Makes a simple matlab tag, full or sde ''' base_dt = np.dtype(base_dt) bo = boc.to_numpy_code(base_dt.byteorder) byte_count = base_dt.itemsize if not sde: udt = bo + 'u4' padding = byte_count % 8 all_dt = [('mdtype', udt), ('byte_count', udt), ('val', base_dt)] if pad... | f3e91385dab23e611bac0b3051058c7c87899297 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/f3e91385dab23e611bac0b3051058c7c87899297/test_mio5_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
2692,
12,
1969,
67,
7510,
16,
1244,
16,
3481,
723,
16,
272,
323,
33,
8381,
4672,
9163,
490,
3223,
279,
4143,
4834,
7411,
1047,
16,
1983,
578,
272,
323,
9163,
1026,
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,
389,
6540,
67,
2692,
12,
1969,
67,
7510,
16,
1244,
16,
3481,
723,
16,
272,
323,
33,
8381,
4672,
9163,
490,
3223,
279,
4143,
4834,
7411,
1047,
16,
1983,
578,
272,
323,
9163,
1026,
67,
... |
PangoGravity = enum_anon_2 enum_anon_3 = c_int | PangoGravity = enum_anon_3 enum_anon_4 = c_int | def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname) | 92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... |
return [myroot+x[len(cpref)+1:],x[len(cpref):]] | return [root+x[len(cpref)+1:],x[len(cpref):]] | def pathstrip(x,myroot,mystart): cpref=os.path.commonprefix([x,mystart]) return [myroot+x[len(cpref)+1:],x[len(cpref):]] | 37ec033936cd148abafc52a24966a719023ae65c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2807/37ec033936cd148abafc52a24966a719023ae65c/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
6406,
12,
92,
16,
4811,
3085,
16,
81,
1094,
485,
4672,
276,
25724,
33,
538,
18,
803,
18,
6054,
3239,
3816,
92,
16,
81,
1094,
485,
5717,
327,
306,
3085,
15,
92,
63,
1897,
12,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
6406,
12,
92,
16,
4811,
3085,
16,
81,
1094,
485,
4672,
276,
25724,
33,
538,
18,
803,
18,
6054,
3239,
3816,
92,
16,
81,
1094,
485,
5717,
327,
306,
3085,
15,
92,
63,
1897,
12,
7... |
self.prev_state = False | self.prev_state = False self.connecting = False self.screen_locked = False self.connecting = False | def __init__(self): self.size = ui.get_cols_rows() # Happy screen saying that you can't do anything because we're scanning # for networks. :-) # Will need a translation sooner or later self.screen_locker = urwid.Filler(urwid.Text(('important',"Scanning networks... stand by..."), align='center')) self.TITLE = 'Wicd Cur... | b1475ce12c0b990f7b6a595934f0c2377bb8c973 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12280/b1475ce12c0b990f7b6a595934f0c2377bb8c973/wicd-curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
2... |
[z.hide() for z in self.combos.values()] [z.hide() for z in self.labels.values()] self.vbox = QVBoxLayout() | vbox = self.layout() for box, control in self._hboxes: box.removeWidget(control) sip.delete(control) QApplication.processEvents() if not box.count(): vbox.removeItem(box) sip.delete(box) QApplication.processEvents() else: vbox = QVBoxLayout() | def setCombos(self, rowtags): """Creates a vertical column of comboboxes. tags are tags is usual in the (tag, backgroundvalue) case[should be enumerable]. rows are a dictionary with each key being a list of the indexes of tags that should be one one row. | eaf5b9a5cde30821a958027e79b819458d28cba1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3907/eaf5b9a5cde30821a958027e79b819458d28cba1/tagpanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
11328,
538,
12,
2890,
16,
1027,
4156,
4672,
3536,
2729,
279,
9768,
1057,
434,
3894,
27570,
281,
18,
2342,
854,
2342,
353,
25669,
316,
326,
261,
2692,
16,
5412,
1132,
13,
648,
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,
444,
11328,
538,
12,
2890,
16,
1027,
4156,
4672,
3536,
2729,
279,
9768,
1057,
434,
3894,
27570,
281,
18,
2342,
854,
2342,
353,
25669,
316,
326,
261,
2692,
16,
5412,
1132,
13,
648,
63,
... |
lldb.SBDebugger.SetAsync(True) self.m_commandInterpreter = lldb.SBDebugger.GetCommandInterpreter() | debugger = lldb.SBDebugger.Create() debugger.SetAsync(True) self.m_commandInterpreter = debugger.GetCommandInterpreter() | def setUp(self): lldb.SBDebugger.SetAsync(True) self.m_commandInterpreter = lldb.SBDebugger.GetCommandInterpreter() if not self.m_commandInterpreter: print "Couldn't get the command interpreter" sys.exit(-1) | dcd61ebcc31338d250754072628f30427184ff35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/dcd61ebcc31338d250754072628f30427184ff35/tester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
19977,
273,
328,
1236,
70,
18,
14541,
24113,
18,
1684,
1435,
19977,
18,
694,
2771,
12,
5510,
13,
365,
18,
81,
67,
3076,
30010,
273,
19977,
18,
967,
2189,
30010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19977,
273,
328,
1236,
70,
18,
14541,
24113,
18,
1684,
1435,
19977,
18,
694,
2771,
12,
5510,
13,
365,
18,
81,
67,
3076,
30010,
273,
19977,
18,
967,
2189,
30010,
... |
options.remoteLogFile = automation._devicemanager.getDeviceRoot() + '/' + options.remoteLogFile productRoot = options.remoteTestRoot + "/" + automation._product options.utilityPath = productRoot + "/bin" | options.remoteLogFile = options.remoteTestRoot + '/' + options.remoteLogFile | def verifyRemoteOptions(self, options, automation): options.remoteTestRoot = automation._devicemanager.getDeviceRoot() | 95b7f818a0a6821c503ec87238bb52c73e146dff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/95b7f818a0a6821c503ec87238bb52c73e146dff/runtestsremote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
5169,
1320,
12,
2890,
16,
702,
16,
17539,
4672,
702,
18,
7222,
4709,
2375,
273,
17539,
6315,
5964,
4181,
18,
588,
3654,
2375,
1435,
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,
3929,
5169,
1320,
12,
2890,
16,
702,
16,
17539,
4672,
702,
18,
7222,
4709,
2375,
273,
17539,
6315,
5964,
4181,
18,
588,
3654,
2375,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
importer = TimetableCSVImporter(self.context, charset) | root = removeSecurityProxy(self.context) importer = TimetableCSVImporter(root, charset) | def update(self): if "UPDATE_SUBMIT" not in self.request: return | 092ad3279e5593aeb564008edcbaf16c8eaacf27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/092ad3279e5593aeb564008edcbaf16c8eaacf27/csvimport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
309,
315,
8217,
67,
8362,
6068,
6,
486,
316,
365,
18,
2293,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
309,
315,
8217,
67,
8362,
6068,
6,
486,
316,
365,
18,
2293,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return _compile(pattern, 0).findall(string, maxsplit) | return _compile(pattern, 0).findall(string) | def findall(pattern, string, maxsplit=0): """Return a list of all non-overlapping matches in the string. If one or more groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group. Empty matches are included in the result.""" return _compile(pattern... | e06cbb8c56d76d5f845c4809a22fcdf99063496c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e06cbb8c56d76d5f845c4809a22fcdf99063496c/sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11842,
12,
4951,
16,
533,
16,
943,
4939,
33,
20,
4672,
3536,
990,
279,
666,
434,
777,
1661,
17,
17946,
1382,
1885,
316,
326,
533,
18,
225,
971,
1245,
578,
1898,
3252,
854,
3430,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11842,
12,
4951,
16,
533,
16,
943,
4939,
33,
20,
4672,
3536,
990,
279,
666,
434,
777,
1661,
17,
17946,
1382,
1885,
316,
326,
533,
18,
225,
971,
1245,
578,
1898,
3252,
854,
3430,
316,
... |
this = apply(_quickfix.new_ExpireTime, args) | this = _quickfix.new_ExpireTime(*args) | def __init__(self, *args): this = apply(_quickfix.new_ExpireTime, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
17033,
950,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
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,
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,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
17033,
950,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
1... |
cr.sql_log=1 | def __init__(self, cr, uid, name, context): super(general_ledger, self).__init__(cr, uid, name, context=context) cr.sql_log=1 self.date_borne = {} self.query = "" self.child_ids = "" self.tot_currency = 0.0 self.period_sql = "" self.sold_accounts = {} self.localcontext.update( { 'time': time, 'lines': self.lines, 'sum_... | 84830accf59d5cada276919684fe767f46a1eb70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/84830accf59d5cada276919684fe767f46a1eb70/general_ledger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
819,
4672,
2240,
12,
12259,
67,
1259,
693,
16,
365,
2934,
972,
2738,
972,
12,
3353,
16,
4555,
16,
508,
16,
819,
33,
2472,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
2240,
12,
12259,
67,
1259,
693,
16,
365,
2934,
972,
2738,
972,
12,
3353,
16,
4555,
16,
508,
16,
819,
33,
2472,
... | |
import AppleScript_Suite import AppleScript_Suite | def select(self, _object, _attributes={}, **_arguments): """select: Select the specified object(s) Required argument: the object to select Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'misc' _subcode = 'slct' | ead4c80ac2380eb0380e66e9d59ad2c359ef38f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ead4c80ac2380eb0380e66e9d59ad2c359ef38f2/Standard_Suite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
389,
1612,
16,
389,
4350,
28793,
2826,
67,
7099,
4672,
3536,
4025,
30,
6766,
326,
1269,
733,
12,
87,
13,
10647,
1237,
30,
326,
733,
358,
2027,
18317,
1237,
389,
435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
389,
1612,
16,
389,
4350,
28793,
2826,
67,
7099,
4672,
3536,
4025,
30,
6766,
326,
1269,
733,
12,
87,
13,
10647,
1237,
30,
326,
733,
358,
2027,
18317,
1237,
389,
435... | |
attrs={'InheritedPropertySheets': ';'.join(vsprops_dirs), 'ConfigurationType': config_type}, tools=tool_list) | attrs=prepared_attrs, tools=tool_list) | def _GenerateProject(vcproj_filename, build_file, spec): """Generates a vcproj file. Arguments: vcproj_filename: Filename of the vcproj file to generate. build_file: Filename of the .gyp file that the vcproj file comes from. spec: The target dictionary containing the properties of the target. """ print 'Generating %s'... | c45d824546f40fc52eb1c053326ef499067ff864 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/c45d824546f40fc52eb1c053326ef499067ff864/msvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
4109,
12,
4227,
17995,
67,
3459,
16,
1361,
67,
768,
16,
857,
4672,
3536,
6653,
279,
12802,
17995,
585,
18,
225,
13599,
30,
12802,
17995,
67,
3459,
30,
16671,
434,
326,
12802,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
4109,
12,
4227,
17995,
67,
3459,
16,
1361,
67,
768,
16,
857,
4672,
3536,
6653,
279,
12802,
17995,
585,
18,
225,
13599,
30,
12802,
17995,
67,
3459,
30,
16671,
434,
326,
12802,
... |
self.log_pos, items = elog.news(self.log_pos) | old_pos = self.log_pos new_pos, items = elog.news(old_pos) | def refresh(self, request): """ Refresh the cache - if anything has changed in the wiki, we see it in the edit-log and either delete cached data for the changed items (for 'meta') or the complete cache ('pagelists'). @param request: the request object """ from MoinMoin.logfile import editlog elog = editlog.EditLog(requ... | 5d664d4fb5ff8a1d0545e5fdcac83c266b64a658 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/5d664d4fb5ff8a1d0545e5fdcac83c266b64a658/Page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
590,
4672,
3536,
14179,
326,
1247,
300,
309,
6967,
711,
3550,
316,
326,
9050,
16,
732,
2621,
518,
316,
326,
3874,
17,
1330,
471,
3344,
1430,
3472,
501,
364,
326,
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,
4460,
12,
2890,
16,
590,
4672,
3536,
14179,
326,
1247,
300,
309,
6967,
711,
3550,
316,
326,
9050,
16,
732,
2621,
518,
316,
326,
3874,
17,
1330,
471,
3344,
1430,
3472,
501,
364,
326,
35... |
def box_horiz_clicked(obj, it, *args, **kwargs): | def box_horiz_clicked(obj, it): | def box_horiz_clicked(obj, it, *args, **kwargs): win = elementary.Window("box-horiz", elementary.ELM_WIN_BASIC) win.title_set("Box Horiz") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() bx = elementary.Box... | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3919,
67,
76,
5331,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
2147,
17,
76,
5331,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
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,
3919,
67,
76,
5331,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
2147,
17,
76,
5331,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,... |
def cvs_checkout(d,u): | def cvs_checkout(d): | def cvs_checkout(d,u): recursive_rmdir(d) cvs = find_exe('cvs') if cvs is None: print "Can't find cvs anywhere on the path" os.exit(1) have_tmp = os.path.isdir(_tmp) os.makedirs(d) os.environ['HOME']=d os.environ['CVSROOT']=':pserver:anonymous@cvs.reportlab.sourceforge.net:/cvsroot/reportlab' os.chdir(d) f = open(os.... | 427f1fdf43e35da9bb79e9430d26de850890d6fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/427f1fdf43e35da9bb79e9430d26de850890d6fc/cvs_check.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
6904,
67,
17300,
12,
72,
4672,
5904,
67,
8864,
1214,
12,
72,
13,
225,
276,
6904,
273,
1104,
67,
14880,
2668,
71,
6904,
6134,
309,
276,
6904,
353,
599,
30,
1172,
315,
2568,
1404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
6904,
67,
17300,
12,
72,
4672,
5904,
67,
8864,
1214,
12,
72,
13,
225,
276,
6904,
273,
1104,
67,
14880,
2668,
71,
6904,
6134,
309,
276,
6904,
353,
599,
30,
1172,
315,
2568,
1404,
... |
global_state.long_retval = fn3() | global_state.retval_long = fn3() | def call_function(fn, signature): if signature == 'void': fn2 = llmemory.cast_adr_to_ptr(fn, void_void_func) fn2() elif signature == 'long': fn3 = llmemory.cast_adr_to_ptr(fn, long_void_func) global_state.long_retval = fn3() elif signature == 'longlong': fn3 = llmemory.cast_adr_to_ptr(fn, longlong_void_func) global_sta... | 6328ace28f89b7bee84ea7d543431ab9813def20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/6328ace28f89b7bee84ea7d543431ab9813def20/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
915,
12,
4293,
16,
3372,
4672,
309,
3372,
422,
296,
6459,
4278,
2295,
22,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
918,
67,
6459,
67,
644,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
915,
12,
4293,
16,
3372,
4672,
309,
3372,
422,
296,
6459,
4278,
2295,
22,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
918,
67,
6459,
67,
644,
... |
found_lib = ",".join(found_libs) + " (static)" return found_lib | return found_libs | def find_static_library(func): "Given a symbol, return the most likely static library it's from." found_lib = None dbpath = None for dp in database_search_path: if os.path.exists(os.path.join(dp, "staticdb.sqlite")): dbpath = dp break if dbpath: staticdb = sqlite3.connect(os.path.join(dbpath, "staticdb.sqlite")) curs... | 060a70993f5e772c2507bcc6b5c2f8c71f8415a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4228/060a70993f5e772c2507bcc6b5c2f8c71f8415a3/readelf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3845,
67,
12083,
12,
644,
4672,
315,
6083,
279,
3273,
16,
327,
326,
4486,
10374,
760,
5313,
518,
1807,
628,
1199,
225,
1392,
67,
2941,
273,
599,
1319,
803,
273,
599,
364,
998... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
67,
12083,
12,
644,
4672,
315,
6083,
279,
3273,
16,
327,
326,
4486,
10374,
760,
5313,
518,
1807,
628,
1199,
225,
1392,
67,
2941,
273,
599,
1319,
803,
273,
599,
364,
998... |
if not data.has_key("ID_FS_LABEL"): | if not data.has_key("ID_FS_LABEL") and data["ID_FS_LABEL"] == "": | def update_usb(self, *args): #print_debug ("update_usb()") data=args[0] action=data['ACTION'] if not data.has_key("ID_FS_LABEL"): # don't update if we have disk (only partititions) return device="/dev/%s" %data['DEVPATH'].split('/')[2] if( len( data['DEVPATH'].split('/') ) ) > 3: devid=data['DEVPATH'].split('/')[3] ... | 9f2bd954c7cd211cd7514541876c26374d194e23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13520/9f2bd954c7cd211cd7514541876c26374d194e23/tcos-devices-ng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
25525,
12,
2890,
16,
380,
1968,
4672,
468,
1188,
67,
4148,
7566,
2725,
67,
25525,
1435,
7923,
501,
33,
1968,
63,
20,
65,
1301,
33,
892,
3292,
12249,
3546,
225,
309,
486,
501,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
25525,
12,
2890,
16,
380,
1968,
4672,
468,
1188,
67,
4148,
7566,
2725,
67,
25525,
1435,
7923,
501,
33,
1968,
63,
20,
65,
1301,
33,
892,
3292,
12249,
3546,
225,
309,
486,
501,... |
if (a1 < 0): | if a1 < 0: | def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,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 up the calculat... | 88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
23,
78,
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,
9029,
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,
341,
724,
264,
67,
23,
78,
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,
9029,
326,... |
print (('<br><a href="?removepage=%s">' % self.page_name) + | print (('<br><a href="%s?removepage=%s">' % (base, self.page_name)) + | def send_footer(self, versioned, mod_string=None, page_path=None, unmodified=False): | f8595ddfe1a99f0daf81474c72c391eda99fcb64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4007/f8595ddfe1a99f0daf81474c72c391eda99fcb64/piki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
14723,
12,
2890,
16,
17083,
16,
681,
67,
1080,
33,
7036,
16,
1363,
67,
803,
33,
7036,
16,
30481,
33,
8381,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
14723,
12,
2890,
16,
17083,
16,
681,
67,
1080,
33,
7036,
16,
1363,
67,
803,
33,
7036,
16,
30481,
33,
8381,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if r.dirstate[name] == 'r': r.undelete([name]) r.copy(patch, name) r.remove([patch], False) | if r.dirstate[patch] == 'a': r.dirstate.forget(patch) r.dirstate.add(name) else: if r.dirstate[name] == 'r': r.undelete([name]) r.copy(patch, name) r.remove([patch], False) | def rename(ui, repo, patch, name=None, **opts): """rename a patch With one argument, renames the current patch to PATCH1. With two arguments, renames PATCH1 to PATCH2.""" q = repo.mq if not name: name = patch patch = None if patch: patch = q.lookup(patch) else: if not q.applied: ui.write(_('No patches applied\n')) ... | 11326a9e5b925312dad514dbfe39f6ac9ee2a555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/11326a9e5b925312dad514dbfe39f6ac9ee2a555/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
4881,
16,
3538,
16,
4729,
16,
508,
33,
7036,
16,
2826,
4952,
4672,
3536,
18539,
279,
4729,
225,
3423,
1245,
1237,
16,
1654,
753,
326,
783,
4729,
358,
21298,
21,
18,
3423,
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,
6472,
12,
4881,
16,
3538,
16,
4729,
16,
508,
33,
7036,
16,
2826,
4952,
4672,
3536,
18539,
279,
4729,
225,
3423,
1245,
1237,
16,
1654,
753,
326,
783,
4729,
358,
21298,
21,
18,
3423,
279... |
file.write("tube1(" + povpoint(a1pos) + "," + stringVec(color1) + "," + povpoint(c1) + "," + povpoint(c2) + "," + povpoint(a2pos) + "," + stringVec(color2) + ")\n") | file.write("tube1(" + povpoint(a1pos) + "," + stringVec(color1) + "," + povpoint(c1) + "," + povpoint(c2) + "," + povpoint(a2pos) + "," + stringVec(color2) + ")\n") return | def writepov(self, file, dispdef, col): ##Huaicai 1/15/05: It seems the attributes from __setup__update() is not correct, ## at least for pov file writing, so compute it here locally. To fix bug 346,347 disp=max(self.atom1.display, self.atom2.display) if disp == diDEFAULT: disp = dispdef color1 = col or self.atom1.elem... | 8458fbfe4c9e599a4e7092a28b468082d5fe6e91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8458fbfe4c9e599a4e7092a28b468082d5fe6e91/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
84,
1527,
12,
2890,
16,
585,
16,
16232,
536,
16,
645,
4672,
7541,
44,
11886,
335,
10658,
404,
19,
3600,
19,
6260,
30,
2597,
12001,
326,
1677,
628,
1001,
8401,
972,
2725,
1435,
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,
1045,
84,
1527,
12,
2890,
16,
585,
16,
16232,
536,
16,
645,
4672,
7541,
44,
11886,
335,
10658,
404,
19,
3600,
19,
6260,
30,
2597,
12001,
326,
1677,
628,
1001,
8401,
972,
2725,
1435,
35... |
can be introduced when needed. - The "right area" contains the 3D Graphics Area (i.e. glpane) displaying the current part. | can be added as needed. - The "right area" contains the Graphics Area (i.e. glpane) displaying the current model. | def removeTab(self, index): res = QTabWidget.removeTab(self, index) # note: AFAIK, res is always None if index != -1: # -1 happens! glpane = self._glpane glpane.gl_update_confcorner() # fix bug 2522 (try 2) return res | 78cee7d87681716c89c16ba27c2643c4f3449af4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/78cee7d87681716c89c16ba27c2643c4f3449af4/Ui_PartWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
5661,
12,
2890,
16,
770,
4672,
400,
273,
2238,
5661,
4609,
18,
4479,
5661,
12,
2890,
16,
770,
13,
468,
4721,
30,
432,
2046,
45,
47,
16,
400,
353,
3712,
599,
309,
770,
480,
300,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
5661,
12,
2890,
16,
770,
4672,
400,
273,
2238,
5661,
4609,
18,
4479,
5661,
12,
2890,
16,
770,
13,
468,
4721,
30,
432,
2046,
45,
47,
16,
400,
353,
3712,
599,
309,
770,
480,
300,... |
typ, dat = apply(eval('M.%s' % cmd), args) | typ, dat = apply(getattr(M, cmd), args) | def run(cmd, args): _mesg('%s %s' % (cmd, args)) typ, dat = apply(eval('M.%s' % cmd), args) _mesg('%s => %s %s' % (cmd, typ, dat)) return dat | ed860500914c98bc53bdadf292c180ffad9bec09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed860500914c98bc53bdadf292c180ffad9bec09/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
4172,
16,
833,
4672,
389,
26244,
75,
29909,
87,
738,
87,
11,
738,
261,
4172,
16,
833,
3719,
3815,
16,
1150,
273,
2230,
12,
588,
1747,
12,
49,
16,
1797,
3631,
833,
13,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
4172,
16,
833,
4672,
389,
26244,
75,
29909,
87,
738,
87,
11,
738,
261,
4172,
16,
833,
3719,
3815,
16,
1150,
273,
2230,
12,
588,
1747,
12,
49,
16,
1797,
3631,
833,
13,
389,
... |
raise OSError(errno.EACCES) | def access(self, uid, fusepath, mode): ''' Test for access to a path. | 61ffff4136623d619714904364429f1bc9e485f4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/61ffff4136623d619714904364429f1bc9e485f4/cachemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
12,
2890,
16,
4555,
16,
19552,
803,
16,
1965,
4672,
9163,
7766,
364,
2006,
358,
279,
589,
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,
2006,
12,
2890,
16,
4555,
16,
19552,
803,
16,
1965,
4672,
9163,
7766,
364,
2006,
358,
279,
589,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
print "[AutoBackup] main", kwargs | def main(session, **kwargs): print "[AutoBackup] main", kwargs session.openWithCallback(doneConfiguring, Config) | a3d8f2c4f33c23ce60252053d181d4d05f4273b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12173/a3d8f2c4f33c23ce60252053d181d4d05f4273b0/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3184,
16,
2826,
4333,
4672,
1339,
18,
3190,
1190,
2428,
12,
8734,
809,
4017,
16,
1903,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3184,
16,
2826,
4333,
4672,
1339,
18,
3190,
1190,
2428,
12,
8734,
809,
4017,
16,
1903,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
""" This class represents a basic MSN contact list. @ivar contacts: The forward list (users on my list) @type contacts: dict (mapping user handles to MSNContact objects) @ivar authorizedContacts: Contacts that I have allowed to be notified when my state changes (allow list) @type authorizedContacts: dict (mapping use... | """ This class represents a basic MSN contact list. @ivar contacts: All contacts on my various lists @type contacts: dict (mapping user handles to MSNContact objects) @ivar version: The current contact list version (used for list syncing) @ivar groups: a mapping of group ids to group names (groups can only exist on th... | def setPhone(self, phoneType, value): """ set phone numbers/values for this specific user .. for phoneType check the *_PHONE constants and HAS_PAGER """ | 9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
9451,
12,
2890,
16,
7353,
559,
16,
460,
4672,
3536,
444,
7353,
5600,
19,
2372,
364,
333,
2923,
729,
6116,
364,
7353,
559,
866,
326,
380,
67,
8939,
5998,
6810,
471,
21641,
67,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9451,
12,
2890,
16,
7353,
559,
16,
460,
4672,
3536,
444,
7353,
5600,
19,
2372,
364,
333,
2923,
729,
6116,
364,
7353,
559,
866,
326,
380,
67,
8939,
5998,
6810,
471,
21641,
67,
52,
... |
def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): | def _get_conversion_rate(self, cr, uid, from_currency, to_currency, context=None): | def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): if context is None: context = {} if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_cu... | 342857ee74d4ba849a7544c356a431377efd706c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/342857ee74d4ba849a7544c356a431377efd706c/res_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
20990,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
16,
358,
67,
7095,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
486,
628,
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,
389,
588,
67,
20990,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
16,
358,
67,
7095,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
486,
628,
6... |
distElement=ET.SubElement(doElement,'distribution',{'distributionFormat':fileClass.format.name,'distributionAccess':'OnlineFileHTTP'}) | if fileClass.format : distElement=ET.SubElement(doElement,'distribution',{'distributionFormat':fileClass.format.name,'distributionAccess':'OnlineFileHTTP'}) else : distElement=ET.SubElement(doElement,'distribution',{'distributionFormat':'','distributionAccess':'OnlineFileHTTP'}) | def add_dataobject(self,fileClass,rootElement): | e213a239dbfaa1ed272a94ec9f19a6327611644c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7019/e213a239dbfaa1ed272a94ec9f19a6327611644c/Translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
892,
1612,
12,
2890,
16,
768,
797,
16,
3085,
1046,
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,
527,
67,
892,
1612,
12,
2890,
16,
768,
797,
16,
3085,
1046,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.bary.SetControlValue(vy) | if vy == None: self.bary.HiliteControl(255) self.bary_enabled = 0 else: if not self.bary_enabled: self.bary_enabled = 1 if self.activated: self.bary.HiliteControl(0) self.bary.SetControlValue(vy) def scalebarvalue(self, absmin, absmax, curmin, curmax): if curmin <= absmin and curmax >= absmax: return None if curmin ... | def updatescrollbars(self): SetPort(self.wid) vx, vy = self.getscrollbarvalues() if self.barx: self.barx.SetControlValue(vx) if self.bary: self.bary.SetControlValue(vy) | 3a0a0cb6a1371459e2660311fc8c04740045404b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3a0a0cb6a1371459e2660311fc8c04740045404b/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2166,
270,
742,
2693,
13518,
12,
2890,
4672,
1000,
2617,
12,
2890,
18,
30902,
13,
17911,
16,
24993,
273,
365,
18,
588,
12033,
3215,
2372,
1435,
309,
365,
18,
3215,
92,
30,
365,
18,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2166,
270,
742,
2693,
13518,
12,
2890,
4672,
1000,
2617,
12,
2890,
18,
30902,
13,
17911,
16,
24993,
273,
365,
18,
588,
12033,
3215,
2372,
1435,
309,
365,
18,
3215,
92,
30,
365,
18,
321... |
self.ctrl = None | def setup_part2(self): | c191e46f6f99b698570b6b14c9f46f8aedd7e024 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11626/c191e46f6f99b698570b6b14c9f46f8aedd7e024/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2680,
22,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2680,
22,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
print 'mouseDown: out of range' | def mouseDown(self, event): event_coords = event.x, event.y xcell, ycell = event.x / self.xsize - 1, 7 - (event.y / self.ysize - 1) loc = self.getLoc(event.x, event.y) if loc: piece = self.board[loc] print loc, piece if piece == None: print 'mouseDown: empty' self.selected = None elif piece.ishybrid(): img1, img2 = sel... | 62c88dc184b9451cbab757871822ad8127d8ecc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5164/62c88dc184b9451cbab757871822ad8127d8ecc6/gboard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
4164,
12,
2890,
16,
871,
4672,
871,
67,
9076,
273,
871,
18,
92,
16,
871,
18,
93,
619,
3855,
16,
677,
3855,
273,
871,
18,
92,
342,
365,
18,
92,
1467,
300,
404,
16,
2371,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
4164,
12,
2890,
16,
871,
4672,
871,
67,
9076,
273,
871,
18,
92,
16,
871,
18,
93,
619,
3855,
16,
677,
3855,
273,
871,
18,
92,
342,
365,
18,
92,
1467,
300,
404,
16,
2371,
300,
... | |
return 1 | wrappers[wrap] = wrap return wrappers | def try_connecting(self): """Try connecting to all self.addrlist addresses. | 353aeeac980bd27a7a227b1ce012b2f7b49ce0a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/353aeeac980bd27a7a227b1ce012b2f7b49ce0a6/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
3612,
310,
12,
2890,
4672,
3536,
7833,
14244,
358,
777,
365,
18,
4793,
1098,
6138,
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,
775,
67,
3612,
310,
12,
2890,
4672,
3536,
7833,
14244,
358,
777,
365,
18,
4793,
1098,
6138,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
global stdscr | def idle(caller): """This is called once every iteration through the getkey() loop (currently in the Repl class, see the get_line() method). The statusbar check needs to go here to take care of timed messages and the resize handlers need to be here to make sure it happens conveniently.""" global stdscr if importcompl... | 3707a623652dac451d86faed72821fdf6e3b5267 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/3707a623652dac451d86faed72821fdf6e3b5267/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
12,
16140,
4672,
3536,
2503,
353,
2566,
3647,
3614,
6532,
3059,
326,
336,
856,
1435,
2798,
261,
2972,
715,
316,
326,
868,
412,
667,
16,
2621,
326,
336,
67,
1369,
1435,
707,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
12,
16140,
4672,
3536,
2503,
353,
2566,
3647,
3614,
6532,
3059,
326,
336,
856,
1435,
2798,
261,
2972,
715,
316,
326,
868,
412,
667,
16,
2621,
326,
336,
67,
1369,
1435,
707,
2934,
... | |
return basename + '-' + str(self.get_start()) + '-' + \ str(self.get_end() - self.get_start()) + '.xml' | return basename + '-' + str(int(self.get_start())) + '-' + \ str(int(self.get_end()) - int(self.get_start())) + '.xml' | def get_output(self): """ Returns the file name of output from the power code. This must be kept synchronized with the name of the output file in power.c. """ if not self.get_start() or not self.get_end() or not self.get_ifo(): raise PowerError, "Start time, end time or ifo has not been set" | 9e8ad39725d7892a4d6817dfa760d1febdfa6c12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/9e8ad39725d7892a4d6817dfa760d1febdfa6c12/power.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
12,
2890,
4672,
3536,
2860,
326,
585,
508,
434,
876,
628,
326,
7212,
981,
18,
1220,
1297,
506,
16555,
3852,
598,
326,
508,
434,
326,
876,
585,
316,
7212,
18,
71,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
12,
2890,
4672,
3536,
2860,
326,
585,
508,
434,
876,
628,
326,
7212,
981,
18,
1220,
1297,
506,
16555,
3852,
598,
326,
508,
434,
326,
876,
585,
316,
7212,
18,
71,
18,
3... |
print "Received raw msg", repr(message) | def RecvDump(self, mcl, message): print "Received raw msg", repr(message) return True | b9525ce84ef4e735fe0f3992cbf1baa6453b4604 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/b9525ce84ef4e735fe0f3992cbf1baa6453b4604/test2_csp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30938,
10628,
12,
2890,
16,
312,
830,
16,
883,
4672,
225,
327,
1053,
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,
30938,
10628,
12,
2890,
16,
312,
830,
16,
883,
4672,
225,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.bgfilechooser.connect('update-preview', self.update_preview_cb, | self.bgfilechooser.connect('update-preview', self.update_preview, | def __init__(self): """Setup the preferences dialog interface, loading images, adding filters to file choosers and connecting some signals. """ super(PrefsDialog, self).__init__(gladefile('prefs.glade'), root='config-window') self.add_callbacks(PrefsCallbacks()) | de00492a8254b0d7a402011a0823338d7843934d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11147/de00492a8254b0d7a402011a0823338d7843934d/prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
7365,
326,
12750,
6176,
1560,
16,
7153,
4602,
16,
6534,
3415,
358,
585,
24784,
414,
471,
14244,
2690,
11505,
18,
3536,
2240,
12,
1386,
2556,
6353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
7365,
326,
12750,
6176,
1560,
16,
7153,
4602,
16,
6534,
3415,
358,
585,
24784,
414,
471,
14244,
2690,
11505,
18,
3536,
2240,
12,
1386,
2556,
6353,
... |
def full_division_polynomial(self, m): """ Return the m-th bivariate division polynomial in x and y. For the usual division polynomial only in x, see the | def full_division_polynomial(self, m, use_divpoly=True): """ Return the $m$-th bivariate division polynomial in $x$ and $y$. When $m$ is odd this is exactly the same as the usual $m$th division polynomial. For the usual division polynomial only in $x$, see the | def full_division_polynomial(self, m): """ Return the m-th bivariate division polynomial in x and y. | 84dad5dfc790d5dacf9589fdd0cfafb884726e83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/84dad5dfc790d5dacf9589fdd0cfafb884726e83/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
67,
2892,
1951,
67,
3915,
13602,
12,
2890,
16,
312,
4672,
3536,
2000,
326,
312,
17,
451,
324,
27693,
16536,
16991,
316,
619,
471,
677,
18,
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,
0,
0,
0,
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,
1983,
67,
2892,
1951,
67,
3915,
13602,
12,
2890,
16,
312,
4672,
3536,
2000,
326,
312,
17,
451,
324,
27693,
16536,
16991,
316,
619,
471,
677,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
-95 -1 -2 | -95 -1 -2 | def _sage_(self, R=None): """ Coerces self to Sage. EXAMPLES:: sage: R = singular.ring(0, '(x,y,z)', 'dp') sage: A = singular.matrix(2,2) sage: A._sage_(ZZ) [0 0] [0 0] sage: A = random_matrix(ZZ,3,3); A [ -8 2 1] [ -1 2 1] [-95 -1 -2] sage: As = singular(A); As -8 2 1 -1 2 1 -95 -1 -2... | 3ee840bb85a9af7b362b61a4824618e7b23da870 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/3ee840bb85a9af7b362b61a4824618e7b23da870/singular.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
534,
273,
10048,
18,
8022,
12,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
534,
273,
10048,
18,
8022,
12,
20,... |
spg._centrosymmetric = bool(f.readline().split()[1]) | spg._centrosymmetric = bool(int(f.readline().split()[1])) | def _read_datafile_entry(spg, no, symbol, setting, f): """Read space group data from f to spg.""" spg._no = no spg._symbol = symbol.strip() spg._setting = setting spg._centrosymmetric = bool(f.readline().split()[1]) # primitive vectors f.readline() spg._scaled_primitive_cell = np.array([map(float, f.readline().split())... | e077cbffee982a865e77ef6db689443d53849dbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/e077cbffee982a865e77ef6db689443d53849dbf/spacegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
892,
768,
67,
4099,
12,
1752,
75,
16,
1158,
16,
3273,
16,
3637,
16,
284,
4672,
3536,
1994,
3476,
1041,
501,
628,
284,
358,
1694,
75,
12123,
1694,
75,
6315,
2135,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
892,
768,
67,
4099,
12,
1752,
75,
16,
1158,
16,
3273,
16,
3637,
16,
284,
4672,
3536,
1994,
3476,
1041,
501,
628,
284,
358,
1694,
75,
12123,
1694,
75,
6315,
2135,
273,
1... |
CoincDatabaseConnection.commit() | def append(self, row): self.cursor.execute("INSERT INTO coinc_event VALUES (?, ?, ?, ?)", (lsctables.ILWDID(row.coinc_def_id), lsctables.ILWDID(row.time_slide_id), row.nevents, lsctables.ILWDID(row.coinc_event_id))) CoincDatabaseConnection.commit() | d54fb732022835e478a56be4372e71bb33d3cede /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/d54fb732022835e478a56be4372e71bb33d3cede/SnglBurstUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
1027,
4672,
365,
18,
9216,
18,
8837,
2932,
11356,
12421,
13170,
71,
67,
2575,
13477,
13590,
16,
20033,
20033,
692,
2225,
16,
261,
3251,
299,
1538,
18,
2627,
16006,
734... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
1027,
4672,
365,
18,
9216,
18,
8837,
2932,
11356,
12421,
13170,
71,
67,
2575,
13477,
13590,
16,
20033,
20033,
692,
2225,
16,
261,
3251,
299,
1538,
18,
2627,
16006,
734... | |
tend = toff + tlen if mend < len(buf) and tend < len(buf): | toff &= MASK tend = toff + (tlen & MASK) if mend < buflen and tend < buflen: | def _parse(self, fp): """Override this method to support alternative .mo formats.""" unpack = struct.unpack filename = getattr(fp, 'name', '') # Parse the .mo file header, which consists of 5 little endian 32 # bit words. self._catalog = catalog = {} buf = fp.read() # Are we big endian or little endian? magic = unpack(... | e7680dc2d35b27df2d3b024c61357b06f19ba8f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e7680dc2d35b27df2d3b024c61357b06f19ba8f6/gettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
4253,
4672,
3536,
6618,
333,
707,
358,
2865,
10355,
263,
8683,
6449,
12123,
6167,
273,
1958,
18,
17309,
1544,
273,
3869,
12,
7944,
16,
296,
529,
2187,
28707,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
4253,
4672,
3536,
6618,
333,
707,
358,
2865,
10355,
263,
8683,
6449,
12123,
6167,
273,
1958,
18,
17309,
1544,
273,
3869,
12,
7944,
16,
296,
529,
2187,
28707,
468... |
def collect_link(self, link): rv = self.collected_links.get(link) if rv is None: self.collected_links[link] = rv = len(self.collected_links) + 1 return rv | def collect_link(self, link): rv = self.collected_links.get(link) if rv is None: self.collected_links[link] = rv = len(self.collected_links) + 1 return rv | 6ce8d3660b7cb8ebd5dc9b1be5e810f62dbf72d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/6ce8d3660b7cb8ebd5dc9b1be5e810f62dbf72d3/zeml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
67,
1232,
12,
2890,
16,
1692,
4672,
5633,
273,
365,
18,
14676,
329,
67,
7135,
18,
588,
12,
1232,
13,
309,
5633,
353,
599,
30,
365,
18,
14676,
329,
67,
7135,
63,
1232,
65,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
67,
1232,
12,
2890,
16,
1692,
4672,
5633,
273,
365,
18,
14676,
329,
67,
7135,
18,
588,
12,
1232,
13,
309,
5633,
353,
599,
30,
365,
18,
14676,
329,
67,
7135,
63,
1232,
65,
273,
... | |
if label.strip() != ''] | if label.strip()] | def _generate_toc(self): """Generate key-to-(start, stop) table of contents.""" starts, stops = [], [] self._file.seek(0) next_pos = 0 label_lists = [] while True: line_pos = next_pos line = self._file.readline() next_pos = self._file.tell() if line == '\037\014' + os.linesep: if len(stops) < len(starts): stops.append(... | 3ae5cf1ce9baf6330ccf73291ebfeaee2c111013 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3ae5cf1ce9baf6330ccf73291ebfeaee2c111013/mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
1391,
12,
2890,
4672,
3536,
4625,
498,
17,
869,
17,
12,
1937,
16,
2132,
13,
1014,
434,
2939,
12123,
2542,
16,
12349,
273,
5378,
16,
5378,
365,
6315,
768,
18,
16508,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
1391,
12,
2890,
4672,
3536,
4625,
498,
17,
869,
17,
12,
1937,
16,
2132,
13,
1014,
434,
2939,
12123,
2542,
16,
12349,
273,
5378,
16,
5378,
365,
6315,
768,
18,
16508,
12,
... |
tree = self.parseQueryEx(query) | tree = self.parseQuery(query) | def parseQueryEx(self, query): tree = self.parseQueryEx(query) ignored = self.getIgnored() return tree, ignored | 98607a5c90ddf186bbecc81dbf61abc7d7fa43d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/98607a5c90ddf186bbecc81dbf61abc7d7fa43d1/QueryParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1138,
424,
12,
2890,
16,
843,
4672,
2151,
273,
365,
18,
2670,
1138,
12,
2271,
13,
5455,
273,
365,
18,
588,
15596,
1435,
327,
2151,
16,
5455,
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,
1109,
1138,
424,
12,
2890,
16,
843,
4672,
2151,
273,
365,
18,
2670,
1138,
12,
2271,
13,
5455,
273,
365,
18,
588,
15596,
1435,
327,
2151,
16,
5455,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
AP_MPMQ_DYNAMIC = 2 | AP_MPMQ_DYNAMIC = 2 | def init(): """ This function is called by the server at startup time """ return CallBack() | 3de9a0d15ba9eb7275476985ecfc3381876d7703 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/3de9a0d15ba9eb7275476985ecfc3381876d7703/apache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
13332,
3536,
1220,
445,
353,
2566,
635,
326,
1438,
622,
11850,
813,
3536,
225,
327,
3049,
2711,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1208,
13332,
3536,
1220,
445,
353,
2566,
635,
326,
1438,
622,
11850,
813,
3536,
225,
327,
3049,
2711,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.announce ("making hard links in %s..." % base_dir) | try: link = os.link msg = "making hard links in %s..." % base_dir except AttributeError: link = 0 msg = "copying files to %s..." % base_dir self.announce (msg) | def make_release_tree (self, base_dir, files): | 46b36026f18d396818890c08e0a6580f4cb2e817 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/46b36026f18d396818890c08e0a6580f4cb2e817/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9340,
67,
3413,
261,
2890,
16,
1026,
67,
1214,
16,
1390,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9340,
67,
3413,
261,
2890,
16,
1026,
67,
1214,
16,
1390,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
CompileLink(opts=LINKOPTS, dll='libpanda.dll', obj=OBJFILES, xdep=[ | CompileLink(opts=OPTS, dll='libpanda.dll', obj=OBJFILES, xdep=[ | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | e594b1b5a2c778da65602d37638829ada0570895 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e594b1b5a2c778da65602d37638829ada0570895/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
(typ, [data]) = <instance>.list(user, password) """ typ, dat = self._simple_command('LOGIN', user, password) | (typ, [data]) = <instance>.login(user, password) NB: 'password' will be quoted. """ typ, dat = self._simple_command('LOGIN', user, self._quote(password)) | def login(self, user, password): """Identify client using plaintext password. | 8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
729,
16,
2201,
4672,
3536,
25787,
1004,
1450,
11917,
2201,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
729,
16,
2201,
4672,
3536,
25787,
1004,
1450,
11917,
2201,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not self._prog_running: if self.opts.progress_obj: size = self.size + self._reget_length self.opts.progress_obj.start(self._prog_reportname, urllib.unquote(self.url), self._prog_basename, size=size, text=self.opts.text) self._prog_running = True self.opts.progress_obj.update(self._amount_read) self._amount_read +=... | try: if not self._prog_running: if self.opts.progress_obj: size = self.size + self._reget_length self.opts.progress_obj.start(self._prog_reportname, urllib.unquote(self.url), self._prog_basename, size=size, text=self.opts.text) self._prog_running = True self.opts.progress_obj.update(self._amount_read) self._amount_re... | def _retrieve(self, buf): if not self._prog_running: if self.opts.progress_obj: size = self.size + self._reget_length self.opts.progress_obj.start(self._prog_reportname, urllib.unquote(self.url), self._prog_basename, size=size, text=self.opts.text) self._prog_running = True self.opts.progress_obj.update(self._amount_r... | 3957ce44ad7d224da3073f20e65de0209ff07b5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7001/3957ce44ad7d224da3073f20e65de0209ff07b5e/grabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
17466,
12,
2890,
16,
1681,
4672,
309,
486,
365,
6315,
14654,
67,
8704,
30,
309,
365,
18,
4952,
18,
8298,
67,
2603,
30,
963,
225,
273,
365,
18,
1467,
397,
365,
6315,
266,
588,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
17466,
12,
2890,
16,
1681,
4672,
309,
486,
365,
6315,
14654,
67,
8704,
30,
309,
365,
18,
4952,
18,
8298,
67,
2603,
30,
963,
225,
273,
365,
18,
1467,
397,
365,
6315,
266,
588,
67... |
else: load.append(entry) if not "auto-use" in metaIgnore: for entry in autoRun: if entry in metaOptional: pass elif entry in load: pass elif entry in run: | else: load.append(entry) if not "auto-use" in metaIgnore: for entry in autoRun: if entry in metaOptional: pass elif entry in load: pass elif entry in run: if verbose: | def getDeps(id, variants): global classes global verbose variantsId = generateVariantCombinationId(variants) cache = readCache(id, "deps" + variantsId, classes[id]["path"]) if cache != None: return cache # Notes: # load time = before class = require # runtime = after class = use if verbose: print " - Gathering dep... | bc669da719dd71d9d390244fa8e3131d0eaee369 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/bc669da719dd71d9d390244fa8e3131d0eaee369/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
14430,
12,
350,
16,
12935,
4672,
2552,
3318,
2552,
3988,
225,
12935,
548,
273,
2103,
9356,
26062,
548,
12,
15886,
13,
225,
1247,
273,
855,
1649,
12,
350,
16,
315,
14877,
6,
397,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14430,
12,
350,
16,
12935,
4672,
2552,
3318,
2552,
3988,
225,
12935,
548,
273,
2103,
9356,
26062,
548,
12,
15886,
13,
225,
1247,
273,
855,
1649,
12,
350,
16,
315,
14877,
6,
397,
1... |
sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, (_sage_const_1 .._sage_const_5 )]' | sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, R0.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, R0.1, (_sage_const_1 .._sage_const_5 )]' | def extract_numeric_literals(code): """ To eliminate the re-parsing and creation of numeric literals (e.g. during every iteration of a loop) we wish to pull them out and assign them to global variables. This function takes a block of code and returns a new block of code with literals replaced by variable names, as wel... | 8ba549800a576297df93ab13c207fd071c3115d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/8ba549800a576297df93ab13c207fd071c3115d8/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302... |
self._debug("put on buffer") | debug(FILTER, "%s put rule %r on buffer", self, rule.title) | def _filterStartElement (self, tag, attrs): """filter the start element according to filter rules""" rulelist = [] filtered = False item = [STARTTAG, tag, attrs] for rule in self.rules: if rule.match_tag(tag) and rule.match_attrs(attrs): self._debug("matched rule %r on tag %r", rule.title, tag) if rule.start_sufficient... | 4a1c178ba0dd448a42795b2c19afac8cb1126130 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/4a1c178ba0dd448a42795b2c19afac8cb1126130/HtmlFilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
1685,
1046,
261,
2890,
16,
1047,
16,
3422,
4672,
3536,
2188,
326,
787,
930,
4888,
358,
1034,
2931,
8395,
436,
332,
5449,
273,
5378,
5105,
273,
1083,
761,
273,
306,
20943,
1470... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2188,
1685,
1046,
261,
2890,
16,
1047,
16,
3422,
4672,
3536,
2188,
326,
787,
930,
4888,
358,
1034,
2931,
8395,
436,
332,
5449,
273,
5378,
5105,
273,
1083,
761,
273,
306,
20943,
1470... |
url="http://www.megaupload.com/?d="+code req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') req.add_header('Cookie', 'l=es; user='+user) try: response = urllib2.urlopen(req) except: req = urllib2.Request(url.replace(" ","... | logger.info("getmegauploadvideo0") req = urllib2.Request("http://www.megaupload.com/?d="+code) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') req.add_header('Cookie', 'l=es; user='+user) try: opener = urllib2.build_opener(SmartRedirectHandle... | def getmegauploadvideo(code,user): url="http://www.megaupload.com/?d="+code req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') req.add_header('Cookie', 'l=es; user='+user) try: response = urllib2.urlopen(req) except: req ... | 51e0a90cf7253c7095d450fc2d77d5624ead14e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2004/51e0a90cf7253c7095d450fc2d77d5624ead14e7/megaupload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
81,
11061,
6327,
9115,
12,
710,
16,
1355,
4672,
880,
1546,
2505,
2207,
5591,
18,
81,
11061,
6327,
18,
832,
23239,
72,
1546,
15,
710,
1111,
273,
11527,
22,
18,
691,
12,
718,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
81,
11061,
6327,
9115,
12,
710,
16,
1355,
4672,
880,
1546,
2505,
2207,
5591,
18,
81,
11061,
6327,
18,
832,
23239,
72,
1546,
15,
710,
1111,
273,
11527,
22,
18,
691,
12,
718,
13,
... |
elif isinstance(pos, SeqFeature.AfterPosition) : return "<%i" % (pos.position + offset) | def _insdc_feature_position_string(pos, offset=0): """Build a GenBank/EMBL position string (PRIVATE). Use offset=1 to add one to convert a start position from python counting. """ if isinstance(pos, SeqFeature.ExactPosition) : return "%i" % (pos.position+offset) elif isinstance(pos, SeqFeature.WithinPosition) : return... | 1199bb09b08000bea42c30a71c6bf55ceedda60e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/1199bb09b08000bea42c30a71c6bf55ceedda60e/InsdcIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2679,
7201,
67,
7238,
67,
3276,
67,
1080,
12,
917,
16,
1384,
33,
20,
4672,
3536,
3116,
279,
10938,
16040,
19,
3375,
14618,
1754,
533,
261,
20055,
2934,
225,
2672,
1384,
33,
21,
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,
389,
2679,
7201,
67,
7238,
67,
3276,
67,
1080,
12,
917,
16,
1384,
33,
20,
4672,
3536,
3116,
279,
10938,
16040,
19,
3375,
14618,
1754,
533,
261,
20055,
2934,
225,
2672,
1384,
33,
21,
35... | |
""" | """ | def flimage_color_to_pixel(pImage, p2, p3, p4, p5): """ flimage_color_to_pixel(pImage, p2, p3, p4, p5) -> num. """ retval = _flimage_color_to_pixel(pImage, p2, p3, p4, p5) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
4672,
3536,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
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,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
4672,
3536,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
... |
cmd += [ options.params ] | cmd += [options.params] | def runRecordedScripts(options): """ Run recorded script tests >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['release', 'debug'] >>> runRecordedScripts(options) /.../RunPython... Chandler.py --create --catch=tests --profileDir=test_prof... | 64e3ec7e167097dc0b4afb4eadc40bc6adec660f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/64e3ec7e167097dc0b4afb4eadc40bc6adec660f/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
426,
3850,
785,
15041,
12,
2116,
4672,
3536,
1939,
16421,
2728,
7434,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
18,
25011,
2681,
273,
1053,
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,
1086,
426,
3850,
785,
15041,
12,
2116,
4672,
3536,
1939,
16421,
2728,
7434,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
18,
25011,
2681,
273,
1053,
4... |
return psfClumpX, psfClumpY, psfClumpIxx, psfClumIxy, psfClumpIyy | return psfClumpX, psfClumpY, psfClumpIxx, psfClumpIxy, psfClumpIyy | def getClump(self): psfImage = self.getImage() # # Embed psfImage into a larger image so we can smooth when measuring it # width, height = psfImage.getWidth(), psfImage.getHeight() largeImg = psfImage.Factory(2*width, 2*height) largeImg.set(0) | f568a7c046ec92f1eff985cacbfb715f5536b0db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6523/f568a7c046ec92f1eff985cacbfb715f5536b0db/PsfShapeHistogram.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13674,
2801,
12,
2890,
4672,
28687,
2040,
273,
365,
18,
588,
2040,
1435,
468,
468,
14564,
28687,
2040,
1368,
279,
10974,
1316,
1427,
732,
848,
11957,
1347,
10017,
4017,
518,
468,
1835,
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,
13674,
2801,
12,
2890,
4672,
28687,
2040,
273,
365,
18,
588,
2040,
1435,
468,
468,
14564,
28687,
2040,
1368,
279,
10974,
1316,
1427,
732,
848,
11957,
1347,
10017,
4017,
518,
468,
1835,
16,... |
def _printResponseJava(resp, response): | def _printResponseJava(self, resp, response): | def _printResponseJava(resp, response): resp.setContentType("text/xml") toClient = resp.getWriter() toClient.println(re.sub(EMPTYPARAMREGEX,"",response)) | c8e008fe10897ecc71f80fe5c7aeb349dd59ee4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10967/c8e008fe10897ecc71f80fe5c7aeb349dd59ee4f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
1064,
5852,
12,
2890,
16,
1718,
16,
766,
4672,
1718,
18,
542,
8046,
2932,
955,
19,
2902,
7923,
358,
1227,
273,
1718,
18,
588,
2289,
1435,
358,
1227,
18,
8222,
12,
266,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
1064,
5852,
12,
2890,
16,
1718,
16,
766,
4672,
1718,
18,
542,
8046,
2932,
955,
19,
2902,
7923,
358,
1227,
273,
1718,
18,
588,
2289,
1435,
358,
1227,
18,
8222,
12,
266,
18,
... |
try: stream = HTMLInputStream("tests/utf-8-bom.html") c = stream.readChar() while c: line, col = stream.position() if c == u"\n": print "Line %s, Column %s: Line Feed" % (line, col) else: print "Line %s, Column %s: %s" % (line, col, c.encode('utf-8')) c = stream.readChar() print "EOF" except IOError: print "The file d... | stream = HTMLInputStream("../tests/utf-8-bom.html") c = stream.char() while c: line, col = stream.position() if c == u"\n": print "Line %s, Column %s: Line Feed" % (line, col) else: print "Line %s, Column %s: %s" % (line, col, c.encode('utf-8')) c = stream.char() print "EOF" | def charsUntil(self, characters, opposite = False): """ Returns a string of characters from the stream up to but not including any character in characters or EOF. characters can be any container that supports the in method being called on it. """ charStack = [self.char()] | e26a37dce0f0e9cd42b27902ca48f17ab506eaf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/e26a37dce0f0e9cd42b27902ca48f17ab506eaf1/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
3949,
578,
6431,
18,
3949,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
3949,
578,
6431,
18,
3949,
848,
... |
ce.setProxy(self.proxy) | ce.setProxy( self.proxy ) | def submitJobs(self): """ Go through defined computing elements and submit jobs if necessary """ for queue in self.queueDict: ce = self.queueDict[queue]['CE'] ceName = self.queueDict[queue]['CEName'] queueName = self.queueDict[queue]['QueueName'] if 'CPUTime' in self.queueDict[queue]['ParametersDict'] : queueCPUTime ... | fecf3d418a4e3a08002c58982e809e7e4b152546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fecf3d418a4e3a08002c58982e809e7e4b152546/SiteDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
7276,
12,
2890,
4672,
3536,
4220,
3059,
2553,
20303,
2186,
471,
4879,
6550,
309,
4573,
3536,
225,
364,
2389,
316,
365,
18,
4000,
5014,
30,
5898,
273,
365,
18,
4000,
5014,
63,
4000,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
7276,
12,
2890,
4672,
3536,
4220,
3059,
2553,
20303,
2186,
471,
4879,
6550,
309,
4573,
3536,
225,
364,
2389,
316,
365,
18,
4000,
5014,
30,
5898,
273,
365,
18,
4000,
5014,
63,
4000,... |
Return True if this group is nilpotent. | Return ``True`` if this group is nilpotent. | def is_nilpotent(self): """ Return True if this group is nilpotent. EXAMPLES:: sage: G = PermutationGroup(['(1,2,3)(4,5)', '(1,2,3,4,5)']) sage: G.is_nilpotent() False sage: G = PermutationGroup(['(1,2,3)(4,5)']) sage: G.is_nilpotent() True """ return self._gap_().IsNilpotent().bool() | 1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
20154,
13130,
319,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
515,
13130,
319,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
92... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
20154,
13130,
319,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
515,
13130,
319,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
92... |
return ('enum', self.original) | return ('enum', self.values) | def toTuple(self): return ('enum', self.original) | f803947528fb6dc602fee30101646b2cc605160f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f803947528fb6dc602fee30101646b2cc605160f/typemap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
9038,
12,
2890,
4672,
327,
7707,
7924,
2187,
365,
18,
8830,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
9038,
12,
2890,
4672,
327,
7707,
7924,
2187,
365,
18,
8830,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._ascending = False | if sort_key == "name": self._ascending = True else: self._ascending = False | def _on_button_clicked(self, button, sort_key): if self._current_sort_key == sort_key: self._ascending = not self._ascending else: self._ascending = False old_button = self._button_map[self._current_sort_key] old_button.set_sort_state(SortBarButton.SORT_NONE) self._current_sort_key = sort_key if self._ascending: button... | 11228f89651758128ea9912b6ea0fcd86754daad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/11228f89651758128ea9912b6ea0fcd86754daad/itemlistwidgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
5391,
67,
7475,
329,
12,
2890,
16,
3568,
16,
1524,
67,
856,
4672,
309,
365,
6315,
2972,
67,
3804,
67,
856,
422,
1524,
67,
856,
30,
365,
6315,
3691,
2846,
273,
486,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
5391,
67,
7475,
329,
12,
2890,
16,
3568,
16,
1524,
67,
856,
4672,
309,
365,
6315,
2972,
67,
3804,
67,
856,
422,
1524,
67,
856,
30,
365,
6315,
3691,
2846,
273,
486,
365,... |
self.current_entry.msgid = self.current_token[7:-1] | self.current_entry.msgid = self._unquote_msg(self.current_token[7:-1]) | def handle_mi(self): """Handle a msgid.""" if self.current_state in ['MC', 'MS', 'MX']: _listappend(self.instance, self.current_entry) self.current_entry = POEntry() self.current_entry.obsolete = self.entry_obsolete self.current_entry.msgid = self.current_token[7:-1] return True | 56ac94824c255ef3d4d9dbfd4ffed5d8fc5d55f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/56ac94824c255ef3d4d9dbfd4ffed5d8fc5d55f7/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9197,
12,
2890,
4672,
3536,
3259,
279,
24389,
12123,
309,
365,
18,
2972,
67,
2019,
316,
10228,
20022,
2187,
296,
3537,
2187,
296,
13874,
3546,
30,
389,
1098,
6923,
12,
2890,
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,
1640,
67,
9197,
12,
2890,
4672,
3536,
3259,
279,
24389,
12123,
309,
365,
18,
2972,
67,
2019,
316,
10228,
20022,
2187,
296,
3537,
2187,
296,
13874,
3546,
30,
389,
1098,
6923,
12,
2890,
18... |
while self.updater.isAlive(): self.updater.stop = True | while self.thread.isAlive(): self.thread.stop = True | def shutdown(self): while self.updater.isAlive(): self.updater.stop = True time.sleep(0.1) | 1131e2e1366358f81403edeb62c1f67a0bcd18f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/1131e2e1366358f81403edeb62c1f67a0bcd18f3/rasterwand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
1323,
365,
18,
5930,
18,
291,
10608,
13332,
365,
18,
5930,
18,
5681,
273,
1053,
813,
18,
19607,
12,
20,
18,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
1323,
365,
18,
5930,
18,
291,
10608,
13332,
365,
18,
5930,
18,
5681,
273,
1053,
813,
18,
19607,
12,
20,
18,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return retval | def parse_EqualsMINUS(self, context, operands): retval = self.parse_EQUALS(context, operands) if context.currentRecord.target != None: context.currentRecord.target = ~context.currentRecord.target context.currentRecord.complete = True return retval | 0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8867,
6236,
3378,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
365,
18,
2670,
67,
12853,
55,
12,
2472,
16,
14883,
13,
309,
819,
18,
2972,
2115,
18,
3299,
480,
599,
30,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8867,
6236,
3378,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
365,
18,
2670,
67,
12853,
55,
12,
2472,
16,
14883,
13,
309,
819,
18,
2972,
2115,
18,
3299,
480,
599,
30,
81... | |
logging.warn('UPDATE invalid question %s' % remote_ip) | logging.warn('UPDATE invalid question from %s' % remote_ip) | def handle_update(self, msg): """Process an update message.""" | 2b2b5839b23008a8980ab8eeeca606297c51c416 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/2b2b5839b23008a8980ab8eeeca606297c51c416/route53d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
status += """<b><span class="warning">ERROR 4:Restricted</span></b>""" | status += """<b><span class="warning">4:Restricted</span></b>""" | def perform_validateconf(colID, ln, confirm=0, callback='yes'): """Validation of the configuration of the collections""" subtitle = """<a name="11"></a>Collections Status""" output = "" colID = int(colID) col_dict = dict(get_def_name('', "collection")) collections = run_sql("SELECT id, name, dbquery, restricted FROM... | 31263b92d0781de306d2784945c4ebefc2a5f3ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/31263b92d0781de306d2784945c4ebefc2a5f3ac/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
5662,
3923,
12,
1293,
734,
16,
7211,
16,
6932,
33,
20,
16,
1348,
2218,
9707,
11,
4672,
3536,
4354,
434,
326,
1664,
434,
326,
6980,
8395,
225,
20281,
273,
3536,
32,
69,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
5662,
3923,
12,
1293,
734,
16,
7211,
16,
6932,
33,
20,
16,
1348,
2218,
9707,
11,
4672,
3536,
4354,
434,
326,
1664,
434,
326,
6980,
8395,
225,
20281,
273,
3536,
32,
69,
508,
... |
env.history.message("Cancelled.") | env.history.message(cmd + "Cancelled.") | def load_espimage_file(self, choose_new_image = False, parent = None): '''Load the ESP (.png) image file pointed to by self.espimage_file. If the file does not exist, or if choose_new_image is True, the user will be prompted to choose a new image, and if the file chooser dialog is not cancelled, the new image will be l... | 8b2cc1226ce2066eacb9e0ecaa85df6e4ffcc317 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8b2cc1226ce2066eacb9e0ecaa85df6e4ffcc317/jigs_planes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
281,
84,
2730,
67,
768,
12,
2890,
16,
9876,
67,
2704,
67,
2730,
273,
1083,
16,
982,
273,
599,
4672,
9163,
2563,
326,
512,
3118,
261,
18,
6446,
13,
1316,
585,
25874,
358,
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,
1262,
67,
281,
84,
2730,
67,
768,
12,
2890,
16,
9876,
67,
2704,
67,
2730,
273,
1083,
16,
982,
273,
599,
4672,
9163,
2563,
326,
512,
3118,
261,
18,
6446,
13,
1316,
585,
25874,
358,
63... |
print "TODO: add monitor window for given memory address range" | print "TODO: add register / memory address range monitor window" | def monitor_cb(self, widget): print "TODO: add monitor window for given memory address range" | a839da0699cb05f1e3add20b29be66d8dc90680a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/a839da0699cb05f1e3add20b29be66d8dc90680a/debugui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
67,
7358,
12,
2890,
16,
3604,
4672,
1172,
315,
6241,
30,
527,
6438,
2742,
364,
864,
3778,
1758,
1048,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
67,
7358,
12,
2890,
16,
3604,
4672,
1172,
315,
6241,
30,
527,
6438,
2742,
364,
864,
3778,
1758,
1048,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
M = self._bsgs(E(0),1,ub) | M = self._bsgs(E(0),lb,ub) | def order(self): """ Return the order of this point on the elliptic curve. If the point has infinite order, returns 0. | 495bfd3531d90bd2d48aa6748ef9dbf178438963 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/495bfd3531d90bd2d48aa6748ef9dbf178438963/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1634,
603,
326,
415,
549,
21507,
8882,
18,
971,
326,
1634,
711,
14853,
1353,
16,
1135,
374,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1634,
603,
326,
415,
549,
21507,
8882,
18,
971,
326,
1634,
711,
14853,
1353,
16,
1135,
374,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
self.add(self.text) class DailyDoubleOverlay(clutter.Box): """ """ def __init__(self): """ """ super(DailyDoubleOverlay, self).__init__(clutter.BinLayout( clutter.BIN_ALIGNMENT_CENTER, clutter.BIN_ALIGNMENT_CENTER)) self.set_color(config.square_background_color) self.text = Text(config.player_overlay_font, 'Daily\nDo... | def set_text(self, text): """ """ self.remove(self.text) self.text = Text(config.player_overlay_font, text) self.add(self.text) | 8ee11e0cc92310df1931380e880ca1b02cf41ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10391/8ee11e0cc92310df1931380e880ca1b02cf41ee9/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
955,
12,
2890,
16,
977,
4672,
3536,
3536,
365,
18,
4479,
12,
2890,
18,
955,
13,
365,
18,
955,
273,
3867,
12,
1425,
18,
14872,
67,
17312,
67,
5776,
16,
977,
13,
365,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
955,
12,
2890,
16,
977,
4672,
3536,
3536,
365,
18,
4479,
12,
2890,
18,
955,
13,
365,
18,
955,
273,
3867,
12,
1425,
18,
14872,
67,
17312,
67,
5776,
16,
977,
13,
365,
18,
12... | |
statDict['Mode'] = S_IMODE(stat[ST_MODE]) | statDict['Mode'] = S_IMODE( stat[ST_MODE] ) | def __parse_stat(self,stat): statDict = {'File':False,'Directory':False} if S_ISREG(stat[ST_MODE]): statDict['File'] = True statDict['Size'] = stat[ST_SIZE] if S_ISDIR(stat[ST_MODE]): statDict['Directory'] = True statDict['Mode'] = S_IMODE(stat[ST_MODE]) return statDict | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
5642,
12,
2890,
16,
5642,
4672,
610,
5014,
273,
13666,
812,
4278,
8381,
11189,
2853,
4278,
8381,
97,
309,
348,
67,
5127,
5937,
12,
5642,
63,
882,
67,
7038,
65,
4672,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
5642,
12,
2890,
16,
5642,
4672,
610,
5014,
273,
13666,
812,
4278,
8381,
11189,
2853,
4278,
8381,
97,
309,
348,
67,
5127,
5937,
12,
5642,
63,
882,
67,
7038,
65,
4672,
61... |
older_than = self.last_record, limit = lines_needed, | older_than = older_than, limit = lines_needed, | def fill_top_underflow(self, lines_needed): if not self.archive: return record_iter = self.archive.get_records('chat', self.conversation.peer, older_than = self.last_record, limit = lines_needed, order = Archive.REVERSE_CHRONOLOGICAL) records = list(record_iter) if not records: return records.reverse() self.last_record... | cbe980e9ae95dc080883f1dc3ca6ec2ad98f19b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12768/cbe980e9ae95dc080883f1dc3ca6ec2ad98f19b9/chat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
3669,
67,
9341,
2426,
12,
2890,
16,
2362,
67,
17471,
4672,
309,
486,
365,
18,
10686,
30,
327,
1409,
67,
2165,
273,
365,
18,
10686,
18,
588,
67,
7094,
2668,
10880,
2187,
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,
3636,
67,
3669,
67,
9341,
2426,
12,
2890,
16,
2362,
67,
17471,
4672,
309,
486,
365,
18,
10686,
30,
327,
1409,
67,
2165,
273,
365,
18,
10686,
18,
588,
67,
7094,
2668,
10880,
2187,
365,
... |
self.read(name) def guess_type(self, url, strict=1): | self.read(name, strict) def add_type(self, type, ext, strict=True): """Add a mapping between a type and and extension. When the extension is already known, the new type will replace the old one. When the type is already known the extension will be added to the list of known extensions. If strict is true, information... | def __init__(self, filenames=()): if not inited: init() self.encodings_map = encodings_map.copy() self.suffix_map = suffix_map.copy() self.types_map = types_map.copy() self.common_types = common_types.copy() for name in filenames: self.read(name) | 5ccaf8f1298628bea5a4c7442413f2901914f1bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5ccaf8f1298628bea5a4c7442413f2901914f1bc/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9066,
33,
1435,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
18,
8477,
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,
9066,
33,
1435,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
18,
8477,
67,
... |
raise CompilerNotFound('f90') | raise CompilerNotFound('f77') | def set_exe(exe_key, f77=None, f90=None): cmd = self.executables.get(exe_key, None) if not cmd: return None # Note that we get cmd[0] here if the environment doesn't # have anything set exe_from_environ = getattr(self.command_vars, exe_key) if not exe_from_environ: possibles = [f90, f77] + self.possible_executables els... | 888d6eddcb686d7b4b502b34be35be9acec84f6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/888d6eddcb686d7b4b502b34be35be9acec84f6b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
14880,
12,
14880,
67,
856,
16,
284,
4700,
33,
7036,
16,
284,
9349,
33,
7036,
4672,
1797,
273,
365,
18,
4177,
322,
1538,
18,
588,
12,
14880,
67,
856,
16,
599,
13,
309,
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,
444,
67,
14880,
12,
14880,
67,
856,
16,
284,
4700,
33,
7036,
16,
284,
9349,
33,
7036,
4672,
1797,
273,
365,
18,
4177,
322,
1538,
18,
588,
12,
14880,
67,
856,
16,
599,
13,
309,
486,
... |
raise etree.ParserError( "No elements found") | raise etree.ParserError('No elements found') | def fragment_fromstring(html, create_parent=False, base_url=None, parser=None, **kw): """ Parses a single HTML element; it is an error if there is more than one element, or if anything but whitespace precedes or follows the element. If create_parent is true (or is a tag name) then a parent node will be created to enca... | ec3013fdafd39099b2c04b21ec7fd0eeea5ac0b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13107/ec3013fdafd39099b2c04b21ec7fd0eeea5ac0b9/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5481,
67,
2080,
1080,
12,
2620,
16,
752,
67,
2938,
33,
8381,
16,
1026,
67,
718,
33,
7036,
16,
2082,
33,
7036,
16,
2826,
9987,
4672,
3536,
2280,
2420,
279,
2202,
3982,
930,
31,
518,
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,
5481,
67,
2080,
1080,
12,
2620,
16,
752,
67,
2938,
33,
8381,
16,
1026,
67,
718,
33,
7036,
16,
2082,
33,
7036,
16,
2826,
9987,
4672,
3536,
2280,
2420,
279,
2202,
3982,
930,
31,
518,
3... |
if not self._ShouldHandleRequest("/echoheader"): | """The only difference between this function and the EchoHeaderOverride""" """function is in the parameter being passed to the helper function""" return self.EchoHeaderHelper("/echoheader") def EchoHeaderOverride(self): """This handler echoes back the value of a specific request header.""" """The UrlRequest unit tests... | def EchoHeader(self): """This handler echoes back the value of a specific request header.""" | eb834fb878a343d3ff67ba087e783a6e796d6fd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/eb834fb878a343d3ff67ba087e783a6e796d6fd5/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28995,
1864,
12,
2890,
4672,
3536,
2503,
1838,
3376,
281,
1473,
326,
460,
434,
279,
2923,
590,
1446,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28995,
1864,
12,
2890,
4672,
3536,
2503,
1838,
3376,
281,
1473,
326,
460,
434,
279,
2923,
590,
1446,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
names = [displayName, str(date)] node.AddChildNode(child, names, hasKids) | def _addChildNode(self, node, child, hasKids): displayName = child.getAttributeValue('displayName', default='<Untitled>') date = child.getAttributeValue('date', default='') if date != '': date = date.Format('%B %d, %Y %I:%M %p') names = [displayName, str(date)] node.AddChildNode(child, names, hasKids) | 9287e63e372ccc5efb65d33b97dc49a8f000ba71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9287e63e372ccc5efb65d33b97dc49a8f000ba71/blocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
25550,
12,
2890,
16,
756,
16,
1151,
16,
711,
47,
2232,
4672,
16218,
273,
1151,
18,
588,
14942,
2668,
5417,
461,
2187,
805,
2218,
32,
57,
496,
305,
1259,
1870,
13,
1509,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
25550,
12,
2890,
16,
756,
16,
1151,
16,
711,
47,
2232,
4672,
16218,
273,
1151,
18,
588,
14942,
2668,
5417,
461,
2187,
805,
2218,
32,
57,
496,
305,
1259,
1870,
13,
1509,
273,... | |
if i < (self.k0 + 2) or not self.cons(i) or self.cons(i-1) or not self.cons(i-2): | if i == 1: return (not self.cons(0) and self.cons(1)) if i == 0 or not self.cons(i) or self.cons(i-1) or not self.cons(i-2): | def cvc(self, i): """cvc(i) is TRUE <=> i-2,i-1,i has the form consonant - vowel - consonant and also if the second c is not w,x or y. this is used when trying to restore an e at the end of a short e.g. | 8345d263907db865fc1212b587728d28e3c3f5d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11001/8345d263907db865fc1212b587728d28e3c3f5d3/porter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
4227,
12,
2890,
16,
277,
4672,
3536,
71,
4227,
12,
77,
13,
353,
5383,
1648,
34,
277,
17,
22,
16,
77,
17,
21,
16,
77,
711,
326,
646,
356,
30835,
300,
30636,
300,
356,
30835,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
4227,
12,
2890,
16,
277,
4672,
3536,
71,
4227,
12,
77,
13,
353,
5383,
1648,
34,
277,
17,
22,
16,
77,
17,
21,
16,
77,
711,
326,
646,
356,
30835,
300,
30636,
300,
356,
30835,
47... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.