rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if options.debug: print "DEBUG: checking for dir:", c_dir if options.verbose: print "Child channel already exists:", c_label | if options.debug: print timestamp(), "DEBUG: checking for dir:", c_dir if options.verbose: print timestamp(), "Info: Child channel already exists:", c_label | def main(): if options.demo: key = False current_channels = {} current_channel_labels = ['rhel-x86_64-server-5'] else: # Login to Satellite server key = login(options.user, options.password) # Build existing channel list current_channels = client.channel.list_all_channels(key) current_channel_labels = [] for channel in... | 07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... |
testclasses = (EnumerateTestCase, SubclassTestCase, TestEmpty, TestBig, TestReversed) test_support.run_unittest(*testclasses) | test_support.run_unittest(__name__) | def test_main(verbose=None): testclasses = (EnumerateTestCase, SubclassTestCase, TestEmpty, TestBig, TestReversed) test_support.run_unittest(*testclasses) # verify reference counting import sys if verbose and hasattr(sys, "gettotalrefcount"): counts = [None] * 5 for i in xrange(len(counts)): test_support.run_unittest(... | 4cbee82e5add66358d6ea20802ef2796a602187c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/4cbee82e5add66358d6ea20802ef2796a602187c/test_enumerate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
972,
529,
972,
13,
225,
468,
3929,
2114,
22075,
1930,
2589,
309,
3988,
471,
3859,
12,
9499,
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,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
972,
529,
972,
13,
225,
468,
3929,
2114,
22075,
1930,
2589,
309,
3988,
471,
3859,
12,
9499,
16... |
SimpleXMLRPCDispatcher.__init__(self, allow_none) | SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) | def __init__(self, addr, requestHandler=SimpleXMLRPCRequestHandler, logRequests=True, allow_none=False): self.logRequests = logRequests | 427aedbbd436a3daa27176b2a57b8e402d1ff0e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/427aedbbd436a3daa27176b2a57b8e402d1ff0e0/SimpleXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3091,
16,
590,
1503,
33,
5784,
4201,
8087,
28773,
16,
613,
6421,
33,
5510,
16,
1699,
67,
6102,
33,
8381,
4672,
365,
18,
1330,
6421,
273,
613,
6421,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3091,
16,
590,
1503,
33,
5784,
4201,
8087,
28773,
16,
613,
6421,
33,
5510,
16,
1699,
67,
6102,
33,
8381,
4672,
365,
18,
1330,
6421,
273,
613,
6421,
2,
... |
""" | def test_sendbytes(self): if self.TYPE != 'processes': return | 146b7ab818cadccf91ad98e64cfefb77705da0ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/146b7ab818cadccf91ad98e64cfefb77705da0ca/test_multiprocessing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4661,
3890,
12,
2890,
4672,
309,
365,
18,
2399,
480,
296,
18675,
4278,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
67,
4661,
3890,
12,
2890,
4672,
309,
365,
18,
2399,
480,
296,
18675,
4278,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
'list_type_id' : fields.many2one('dm.customers_list.type','Type'), 'update_frq' : fields.integer('Update Frequency'), | 'list_type_id': fields.many2one('dm.customers_list.type', 'Type'), 'update_frq': fields.integer('Update Frequency'), | def _check(self, cr, uid, ids=False, context={}): ''' Function called by the scheduler to create workitem from the segments of propositions. ''' ids = self.search(cr,uid,[('date_start','=',time.strftime('%Y-%m-%d %H:%M:%S'))]) for id in ids: res = self.browse(cr,uid,[id])[0] offer_step_id = self.pool.get('dm.offer.step... | 7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
33,
8381,
16,
819,
12938,
4672,
9163,
4284,
2566,
635,
326,
8129,
358,
752,
26409,
628,
326,
5155,
434,
450,
12388,
18,
9163,
3258,
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,
389,
1893,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
33,
8381,
16,
819,
12938,
4672,
9163,
4284,
2566,
635,
326,
8129,
358,
752,
26409,
628,
326,
5155,
434,
450,
12388,
18,
9163,
3258,
2... |
stats(out, 'Flush Code', filter(lambda r: r['flushcode'] != 0, trace), 'flushcode') | def stats(out, prefix, trace, field): n = len(trace) total = calc_total(trace, field) max = calc_max(trace, field) avg = total / n if n > 1: dev = math.sqrt(freduce(lambda t,r: (r - avg) ** 2, field, trace, 0) / (n - 1)) else: dev = 0 | 026893e3775bddc091792396f1a4b6d6ceaeb373 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6651/026893e3775bddc091792396f1a4b6d6ceaeb373/gc-nvp-trace-processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3177,
12,
659,
16,
1633,
16,
2606,
16,
652,
4672,
290,
273,
562,
12,
5129,
13,
2078,
273,
7029,
67,
4963,
12,
5129,
16,
652,
13,
943,
273,
7029,
67,
1896,
12,
5129,
16,
652,
13,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3177,
12,
659,
16,
1633,
16,
2606,
16,
652,
4672,
290,
273,
562,
12,
5129,
13,
2078,
273,
7029,
67,
4963,
12,
5129,
16,
652,
13,
943,
273,
7029,
67,
1896,
12,
5129,
16,
652,
13,
11... | |
colwidth='%i%%' % colwidth)) | width='%i%%' % colwidth)) | def write_colspecs(self): width = 0 for node in self.colspecs: width += node['colwidth'] for node in self.colspecs: colwidth = int(node['colwidth'] * 100.0 / width + 0.5) self.body.append(self.emptytag(node, 'col', colwidth='%i%%' % colwidth)) self.colspecs = [] | e5b86952afb3c654a9cfeec9e22267d9e4162276 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/e5b86952afb3c654a9cfeec9e22267d9e4162276/html4css1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1293,
15115,
12,
2890,
4672,
1835,
273,
374,
364,
756,
316,
365,
18,
1293,
15115,
30,
1835,
1011,
756,
3292,
1293,
2819,
3546,
364,
756,
316,
365,
18,
1293,
15115,
30,
645,
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,
1045,
67,
1293,
15115,
12,
2890,
4672,
1835,
273,
374,
364,
756,
316,
365,
18,
1293,
15115,
30,
1835,
1011,
756,
3292,
1293,
2819,
3546,
364,
756,
316,
365,
18,
1293,
15115,
30,
645,
2... |
if not chunk.atoms or not chunk.ladder: return None n_bases = chunk.ladder.baselength() if n_bases<1: return chunk_center = chunk.center if chunk.color: chunk_color = chunk.color else: chunk_color = white | def compute_memo(self, chunk): """ If drawing chunks in this display mode can be optimized by precomputing some info from chunk's appearance, compute that info and return it. | 1ea3d0895e8c6154e79ed08bf2c7d573e1a134cd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/1ea3d0895e8c6154e79ed08bf2c7d573e1a134cd/DnaCylinderChunks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
19521,
12,
2890,
16,
2441,
4672,
3536,
971,
16327,
6055,
316,
333,
2562,
1965,
848,
506,
15411,
635,
675,
13406,
310,
2690,
1123,
628,
2441,
1807,
9788,
1359,
16,
3671,
716,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
19521,
12,
2890,
16,
2441,
4672,
3536,
971,
16327,
6055,
316,
333,
2562,
1965,
848,
506,
15411,
635,
675,
13406,
310,
2690,
1123,
628,
2441,
1807,
9788,
1359,
16,
3671,
716,
11... | |
def set_selected_name_value(self, name, value): self.table.set_row(self.selected_rows[0], [name,value]) def get_selected_name_value(self): returner = None if self.selected_rows is not None: returner = self.table.get_row(self.selected_rows[0]) return returner | def on_delete_clicked(self, widget, data=None): if not self.selected_rows: return for i in self.selected_rows: row = self.table.get_row(i) self.delete_stack.append([row[0],row[1]]) self.table.remove_multiple(self.selected_rows) | 56785355aadb709813a019e339a590cb0c4706f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/56785355aadb709813a019e339a590cb0c4706f3/properties.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3733,
67,
7475,
329,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
309,
486,
365,
18,
8109,
67,
3870,
30,
327,
225,
364,
277,
316,
365,
18,
8109,
67,
3870,
30,
1027,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3733,
67,
7475,
329,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
309,
486,
365,
18,
8109,
67,
3870,
30,
327,
225,
364,
277,
316,
365,
18,
8109,
67,
3870,
30,
1027,
273,
3... | |
elif name == self.INPUTS: self.array = self.inputs | def __start_element(self, name, attrs): if name == self.TO_BROWSE: self.array = self.toBrowse elif name == self.BROWSED: self.array = self.browsed elif name == self.INPUTS: self.array = self.inputs elif name == self.UPLOADS: self.array = self.uploads elif name == self.URL_DATA: self.url = attrs[self.URI] self.headers =... | 84dbb348b99197cf38d201f63a249321603c8177 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6330/84dbb348b99197cf38d201f63a249321603c8177/crawlerpersister.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1937,
67,
2956,
12,
2890,
16,
508,
16,
3422,
4672,
309,
508,
422,
365,
18,
4296,
67,
38,
11226,
1090,
30,
365,
18,
1126,
273,
365,
18,
869,
27304,
1327,
508,
422,
365,
18,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1937,
67,
2956,
12,
2890,
16,
508,
16,
3422,
4672,
309,
508,
422,
365,
18,
4296,
67,
38,
11226,
1090,
30,
365,
18,
1126,
273,
365,
18,
869,
27304,
1327,
508,
422,
365,
18,
38,
... | |
print (Y1-Y2).max() | if verbose > 2: print (Y1-Y2).max() | def test_cdist_yule_random(self): "Tests cdist(X, 'yule') on random data." eps = 1e-07 # Get the data: the input matrix and the right output. X1 = eo['cdist-X1'] < 0.5 X2 = eo['cdist-X2'] < 0.5 Y1 = cdist(X1, X2, 'yule') Y2 = cdist(X1, X2, 'test_yule') print (Y1-Y2).max() self.failUnless(within_tol(Y1, Y2, eps)) | 379f39dc44f5ae0fd8f3f6a7e63e65fd4421b6f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/379f39dc44f5ae0fd8f3f6a7e63e65fd4421b6f9/test_distance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4315,
376,
67,
93,
725,
67,
9188,
12,
2890,
4672,
315,
14650,
276,
4413,
12,
60,
16,
296,
93,
725,
6134,
603,
2744,
501,
1199,
7785,
273,
404,
73,
17,
8642,
468,
968,
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,
1842,
67,
4315,
376,
67,
93,
725,
67,
9188,
12,
2890,
4672,
315,
14650,
276,
4413,
12,
60,
16,
296,
93,
725,
6134,
603,
2744,
501,
1199,
7785,
273,
404,
73,
17,
8642,
468,
968,
326,
... |
elif self.sampleMethod==1: | elif self.resampling==1: | def score(self, ids): """compute scores for the list of learners""" if (not self.data): for id in ids: self.learners[id].results = None return # test which learners can accept the given data set # e.g., regressions can't deal with classification data learners = [] n = len(self.data.domain.attributes)*2 new = self.data.... | b6da925d044fec442a4b02d9a5fa7e753c24afa5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/b6da925d044fec442a4b02d9a5fa7e753c24afa5/OWTestLearners.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4462,
12,
2890,
16,
3258,
4672,
3536,
9200,
8474,
364,
326,
666,
434,
16094,
414,
8395,
309,
261,
902,
365,
18,
892,
4672,
364,
612,
316,
3258,
30,
365,
18,
21346,
414,
63,
350,
8009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4462,
12,
2890,
16,
3258,
4672,
3536,
9200,
8474,
364,
326,
666,
434,
16094,
414,
8395,
309,
261,
902,
365,
18,
892,
4672,
364,
612,
316,
3258,
30,
365,
18,
21346,
414,
63,
350,
8009,
... |
if reply <> None: | if reply != None: | def session(self): call, host_port = self.sock.recvfrom(8192) reply = self.handle(call) if reply <> None: self.sock.sendto(reply, host_port) | c672f8c377b9befd49fed010441b025deace386a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c672f8c377b9befd49fed010441b025deace386a/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1339,
12,
2890,
4672,
745,
16,
1479,
67,
655,
273,
365,
18,
15031,
18,
18334,
2080,
12,
28,
15561,
13,
4332,
273,
365,
18,
4110,
12,
1991,
13,
309,
4332,
480,
599,
30,
365,
18,
15031... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1339,
12,
2890,
4672,
745,
16,
1479,
67,
655,
273,
365,
18,
15031,
18,
18334,
2080,
12,
28,
15561,
13,
4332,
273,
365,
18,
4110,
12,
1991,
13,
309,
4332,
480,
599,
30,
365,
18,
15031... |
subjectSetBuilder = SubjectSetBuilder() subjectSetBuilder.set[type] = 1 query = Query(self.query, (subjectSetBuilder,), lambda s, p, o: (None, SUBCLASSOF, s)) self.query(query, None, SUBCLASSOF, type) return subjectSetBuilder.set.keys() | objectSetBuilder = ObjectSetBuilder() objectSetBuilder.set[type] = 1 self.visitTransitiveSubTypes(objectSetBuilder, type) return objectSetBuilder.set.keys() def visitTransitiveSubTypes(self, callback, type): trans = And(callback, Query(self.visitTransitiveSubTypes, (callback,), lambda s, p, o: (s,))) self.query(trans,... | def getTransitiveSubTypes(self, type): subjectSetBuilder = SubjectSetBuilder() subjectSetBuilder.set[type] = 1 query = Query(self.query, (subjectSetBuilder,), lambda s, p, o: (None, SUBCLASSOF, s)) self.query(query, None, SUBCLASSOF, type) return subjectSetBuilder.set.keys() | 6935cf296932b943098c51b5d7ae2675b8a908fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/6935cf296932b943098c51b5d7ae2675b8a908fe/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1429,
3720,
1676,
2016,
12,
2890,
16,
618,
4672,
3221,
694,
1263,
273,
9912,
694,
1263,
1435,
3221,
694,
1263,
18,
542,
63,
723,
65,
273,
404,
843,
273,
2770,
12,
2890,
18,
2271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
3720,
1676,
2016,
12,
2890,
16,
618,
4672,
3221,
694,
1263,
273,
9912,
694,
1263,
1435,
3221,
694,
1263,
18,
542,
63,
723,
65,
273,
404,
843,
273,
2770,
12,
2890,
18,
2271,
... |
if self._must_close: return True | def _check_close(self): if self._must_close: return True | e1a55fd1da7d8acdeb331df21c94e7e43fb8dd73 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/e1a55fd1da7d8acdeb331df21c94e7e43fb8dd73/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
4412,
12,
2890,
4672,
309,
365,
6315,
11926,
67,
4412,
30,
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,
... | [
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
4412,
12,
2890,
4672,
309,
365,
6315,
11926,
67,
4412,
30,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
lib = ( | lib = [ | def dependencies(self): | ed5338330ed4f608ea6e6bba542fd605986e8f04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/ed5338330ed4f608ea6e6bba542fd605986e8f04/Dependencies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5030,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5030,
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,
-100,
-100,
-... |
return | def __init__(self,scene): """ Initialisation of the Camera object | 1854c8488520f906732b4f370cdb2d7253cc6936 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/1854c8488520f906732b4f370cdb2d7253cc6936/camera.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23694,
4672,
3536,
10188,
10742,
434,
326,
30355,
733,
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,
1001,
2738,
972,
12,
2890,
16,
23694,
4672,
3536,
10188,
10742,
434,
326,
30355,
733,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
quantity=0 numeric=True | quantity = 0 numeric = True | def _quantity_delivered_total(self, cr, uid, ids, name, args, context={}): result={} campaigns = self.browse(cr,uid,ids) for campaign in campaigns: quantity=0 numeric=True for propo in campaign.proposition_ids: if propo.quantity_delivered.isdigit(): quantity += int(propo.quantity_delivered) else: result[campaign.id]='C... | 7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16172,
67,
26672,
329,
67,
4963,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
12938,
8965,
87,
273,
365,
18,
25731,
12,
3353,
16,
1911,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16172,
67,
26672,
329,
67,
4963,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
12938,
8965,
87,
273,
365,
18,
25731,
12,
3353,
16,
1911,
1... |
assert len(m) == 512, "len(m) is %d, but expecting 512" % (len(m),) try: m.seek(513,0) except ValueError: pass else: assert 0, 'Could seek beyond the new size' | assert len(m) == 512, "len(m) is %d, but expecting 512" % (len(m),) try: m.seek(513,0) except ValueError: pass else: assert 0, 'Could seek beyond the new size' | def test_both(): "Test mmap module on Unix systems and Windows" # Create an mmap'ed file f = open('foo', 'w+') # Write 2 pages worth of data to the file f.write('\0'* PAGESIZE) f.write('foo') f.write('\0'* (PAGESIZE-3) ) m = mmap.mmap(f.fileno(), 2 * PAGESIZE) f.close() # Simple sanity checks print ' Position of f... | 3fd2eadd17ad86a8bb6f59f93bcc52a5e99c3c03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3fd2eadd17ad86a8bb6f59f93bcc52a5e99c3c03/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18237,
13332,
315,
4709,
30749,
1605,
603,
9480,
14908,
471,
8202,
6,
225,
468,
1788,
392,
30749,
11,
329,
585,
284,
273,
1696,
2668,
11351,
2187,
296,
91,
15,
6134,
225,
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,
1842,
67,
18237,
13332,
315,
4709,
30749,
1605,
603,
9480,
14908,
471,
8202,
6,
225,
468,
1788,
392,
30749,
11,
329,
585,
284,
273,
1696,
2668,
11351,
2187,
296,
91,
15,
6134,
225,
468,
... |
add_to_preamble(document, ["% this command was inserted by lyx2lyx"]) add_to_preamble(document, ["\\usepackage{multirow}"]) | add_to_preamble(document, ["% lyx2lyx multirow additions ", "\\usepackage{multirow}"]) | def revert_multirow(document): " Revert multirow cells in tables to TeX-code" i = 0 multirow = False while True: # cell type 3 is multirow begin cell i = find_token(document.body, '<cell multirow="3"', i) if i == -1: break # a multirow cell was found multirow = True # remove the multirow tag, set the valignment to top ... | 2ad71f22ce55ec684b3b242901de361aa370389d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/2ad71f22ce55ec684b3b242901de361aa370389d/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7027,
492,
12,
5457,
4672,
315,
868,
1097,
3309,
492,
5983,
316,
4606,
358,
28602,
60,
17,
710,
6,
277,
273,
374,
3309,
492,
273,
1083,
1323,
1053,
30,
468,
2484,
618,
890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7027,
492,
12,
5457,
4672,
315,
868,
1097,
3309,
492,
5983,
316,
4606,
358,
28602,
60,
17,
710,
6,
277,
273,
374,
3309,
492,
273,
1083,
1323,
1053,
30,
468,
2484,
618,
890,
... |
def GetStatus(self): """Return the status of the device. Logical volumes will can be in all four states, although we don't deactivate (lvchange -an) them when shutdown, so STATUS_EXISTING should not be seen for our devices. """ result = utils.RunCmd(["lvs", "--noheadings", "-olv_attr", self.dev_path]) if result.fail... | def Shutdown(self): """Shutdown the device. | 39e9e213617d8af940346b587aa5f42c5e78d966 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/39e9e213617d8af940346b587aa5f42c5e78d966/bdev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17640,
12,
2890,
4672,
3536,
10961,
326,
2346,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17640,
12,
2890,
4672,
3536,
10961,
326,
2346,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
if (!ComputeDataSize(1, sizeof(%s), %d, &data_size)) { | if (!ComputeDataSize(count, sizeof(%s), %d, &data_size)) { | def WriteGetDataSizeCode(self, func, file): """Overrriden from TypeHandler.""" code = """ uint32 data_size; | dd338377948baa4520f90f4c2447926216be4728 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/dd338377948baa4520f90f4c2447926216be4728/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
967,
29414,
1085,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
981,
273,
3536,
225,
2254,
1578,
501,
67,
1467,
31,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
2598,
967,
29414,
1085,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
981,
273,
3536,
225,
2254,
1578,
501,
67,
1467,
31,
2,
-100,
-100,
-100,
-100,
... |
se = statusentry(l) file_ = se.name if se.node: applied.append(se) else: series.append(file_) | try: n, name = l.split(':', 1) except ValueError: series.append(l) else: applied.append(statusentry(bin(n), name)) | def restore(self, repo, rev, delete=None, qupdate=None): desc = repo[rev].description().strip() lines = desc.splitlines() i = 0 datastart = None series = [] applied = [] qpp = None for i, line in enumerate(lines): if line == 'Patch Data:': datastart = i + 1 elif line.startswith('Dirstate:'): l = line.rstrip() l = l[10:... | c3fb9b13f9f3b0c5438dd558e62124d8c567ec43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/c3fb9b13f9f3b0c5438dd558e62124d8c567ec43/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
12,
2890,
16,
3538,
16,
5588,
16,
1430,
33,
7036,
16,
719,
84,
712,
33,
7036,
4672,
3044,
273,
3538,
63,
9083,
8009,
3384,
7675,
6406,
1435,
2362,
273,
3044,
18,
4939,
3548,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
12,
2890,
16,
3538,
16,
5588,
16,
1430,
33,
7036,
16,
719,
84,
712,
33,
7036,
4672,
3044,
273,
3538,
63,
9083,
8009,
3384,
7675,
6406,
1435,
2362,
273,
3044,
18,
4939,
3548,
1435... |
st t1, ds, [scale, index, base], disp | st t1, ds, [0, t0, t7], disp | def macroop SUB_P_R | edaaf1ebf1461b20c0bfa06472d5188a975e47c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/edaaf1ebf1461b20c0bfa06472d5188a975e47c7/add_and_subtract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
10025,
67,
52,
67,
54,
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,
11522,
556,
10025,
67,
52,
67,
54,
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,
... |
c.ConnectList(node_list) | self._ConnectList(c, node_list) | def call_instance_list(self, node_list, hypervisor_list): """Returns the list of running instances on a given node. | 253482126e14ec90848550d2d2005740e45f62a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/253482126e14ec90848550d2d2005740e45f62a8/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
1336,
67,
1098,
12,
2890,
16,
756,
67,
1098,
16,
9512,
10227,
67,
1098,
4672,
3536,
1356,
326,
666,
434,
3549,
3884,
603,
279,
864,
756,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
1336,
67,
1098,
12,
2890,
16,
756,
67,
1098,
16,
9512,
10227,
67,
1098,
4672,
3536,
1356,
326,
666,
434,
3549,
3884,
603,
279,
864,
756,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
Instantiate with: IMAP4_SSL([, host[, port[, keyfile[, certfile]]]]) | Instantiate with: IMAP4_SSL([host[, port[, keyfile[, certfile]]]]) | def print_log(self): self._mesg('last %d IMAP4 interactions:' % len(self._cmd_log)) i, n = self._cmd_log_idx, self._cmd_log_len while n: try: apply(self._mesg, self._cmd_log[i]) except: pass i += 1 if i >= self._cmd_log_len: i = 0 n -= 1 | 513ff3549774a7695d1577edd8942a3550f301be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/513ff3549774a7695d1577edd8942a3550f301be/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1330,
12,
2890,
4672,
365,
6315,
26244,
75,
2668,
2722,
738,
72,
6246,
2203,
24,
23877,
2497,
738,
562,
12,
2890,
6315,
4172,
67,
1330,
3719,
277,
16,
290,
273,
365,
6315,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1330,
12,
2890,
4672,
365,
6315,
26244,
75,
2668,
2722,
738,
72,
6246,
2203,
24,
23877,
2497,
738,
562,
12,
2890,
6315,
4172,
67,
1330,
3719,
277,
16,
290,
273,
365,
6315,
41... |
if not self.workerThread: self.workerThread = MediaMonkeyWorkerThread(self) self.workerThread.Start(100.0) self.workerThread.Call(partial( self.workerThread.Jubox, ID, clear, repeat, shuffle, crossfade, )) | if self.checkWorkerThread(): self.workerThread.Call(partial( self.workerThread.Jubox, ID, clear, repeat, shuffle, crossfade, )) | def Jubox(self, ID, clear=True,repeat=2,shuffle=2,crossfade=2): if not self.workerThread: self.workerThread = MediaMonkeyWorkerThread(self) self.workerThread.Start(100.0) self.workerThread.Call(partial( self.workerThread.Jubox, ID, clear, repeat, shuffle, crossfade, )) | d5260163cbd4fbc67849ace2ade2149e354e4a3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/d5260163cbd4fbc67849ace2ade2149e354e4a3f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
804,
373,
2409,
12,
2890,
16,
1599,
16,
2424,
33,
5510,
16,
9374,
33,
22,
16,
31980,
33,
22,
16,
14653,
507,
323,
33,
22,
4672,
309,
486,
365,
18,
10124,
3830,
30,
365,
18,
10124,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
804,
373,
2409,
12,
2890,
16,
1599,
16,
2424,
33,
5510,
16,
9374,
33,
22,
16,
31980,
33,
22,
16,
14653,
507,
323,
33,
22,
4672,
309,
486,
365,
18,
10124,
3830,
30,
365,
18,
10124,
... |
if len(segments) >= 2 and segments[-1] == '..': | if len(segments) == 2 and segments[1] == '..' and segments[0] == '': segments[-1] = '' elif len(segments) >= 2 and segments[-1] == '..': | def urljoin(base, url, allow_framents = 1): if not base: return url bscheme, bnetloc, bpath, bparams, bquery, bfragment = \ urlparse(base, '', allow_framents) scheme, netloc, path, params, query, fragment = \ urlparse(url, bscheme, allow_framents) # XXX Unofficial hack: default netloc to bnetloc even if # schemes diffe... | d3d585f7b6c4b091ee9fc9d580d5b998c07d625f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d3d585f7b6c4b091ee9fc9d580d5b998c07d625f/urlparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
74,
1940,
4877,
273,
404,
4672,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
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,
25447,
12,
1969,
16,
880,
16,
1699,
67,
74,
1940,
4877,
273,
404,
4672,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
16,... |
def add_args(self, kernel, args): self.run_boottool('--update-kernel=%s --args=%s' % \ | def add_args(self, kernel, args): self.run_boottool('--update-kernel=%s --args=%s' % \ | def set_default(self, index): self.run_boottool('--set-default=%s' % index) | 777c2c1dbed9a9df8ea6c03b2074c57b2ed7ebf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/777c2c1dbed9a9df8ea6c03b2074c57b2ed7ebf7/boottool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1886,
12,
2890,
16,
770,
4672,
365,
18,
2681,
67,
7137,
6738,
2668,
413,
542,
17,
1886,
5095,
87,
11,
738,
770,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
1886,
12,
2890,
16,
770,
4672,
365,
18,
2681,
67,
7137,
6738,
2668,
413,
542,
17,
1886,
5095,
87,
11,
738,
770,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
log.msg("WARNING: If you are on a slow connection, it is good to limit the number of threads to a low number like 2.\n") log.msg("WARNING: Else higher number of threads executed could cause network congestion and timeouts.\n\n") | log.msg("WARNING: If you are on a slow connection, it is good to limit the number of threads to a low number like 2.\n") log.msg("WARNING: Else higher number of threads executed could cause network congestion and timeouts.\n\n") | def __init__(self, width, lock): DownloadFromWeb.__init__(self, width=width) #ProgressBar.__init__(self, width) #self.width = width MyPythonLib.Archiver.__init__(self, lock=lock) #self.lock = lock | 633e729fafe639c8598b2bed45f16557d7c7726b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12499/633e729fafe639c8598b2bed45f16557d7c7726b/pypt_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1835,
16,
2176,
4672,
13059,
1265,
4079,
16186,
2738,
972,
12,
2890,
16,
1835,
33,
2819,
13,
468,
31547,
16186,
2738,
972,
12,
2890,
16,
1835,
13,
468,
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,
16,
1835,
16,
2176,
4672,
13059,
1265,
4079,
16186,
2738,
972,
12,
2890,
16,
1835,
33,
2819,
13,
468,
31547,
16186,
2738,
972,
12,
2890,
16,
1835,
13,
468,
2... |
last_tvs = ('', 0) all_tvs = True | last_tvs = ('', 0) all_tvs = True tvs_shortname = True | def update_content(self): """ update the listing area """ | c5d9a16227d08ca70802295bc4f5c12dcfb0f55d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c5d9a16227d08ca70802295bc4f5c12dcfb0f55d/listing_area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1745,
12,
2890,
4672,
3536,
1089,
326,
11591,
5091,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
queue = gst.element_factory_make("queue") | queue = gst.element_factory_make("queue", "videoqueue") queue.set_property("max-size-time", 5000000000) queue.set_property("max-size-bytes", 33554432) queue.connect("overrun", self.log_queue_overrun) | def createVideoBin ( self ): queue = gst.element_factory_make("queue") | f15b83863a802d1ccabd04f9b9f7ec6cd19d6f75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6451/f15b83863a802d1ccabd04f9b9f7ec6cd19d6f75/glive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10083,
9913,
261,
365,
262,
30,
2389,
273,
314,
334,
18,
2956,
67,
6848,
67,
6540,
2932,
4000,
7923,
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,
752,
10083,
9913,
261,
365,
262,
30,
2389,
273,
314,
334,
18,
2956,
67,
6848,
67,
6540,
2932,
4000,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.button.config(state=DISABLED) self.UpdateStatus('Changing button text') self.button.config(text='Running') | try: self.button.config(state=DISABLED) self.UpdateStatus('Changing button text') self.button.config(text='Running') except TclError: self.broken_tk = True self.UpdateStatus('Unable to disable button due to broken Tk library') | def UpdateRunState(self, running=True): if running: self.UpdateStatus('disabling button') self.button.config(state=DISABLED) self.UpdateStatus('Changing button text') self.button.config(text='Running') self.UpdateStatus('Running...') else: self.UpdateStatus('enabling button') self.button.config(state=NORMAL) self.Updat... | 2e1970167edccf31068d2894b884bccc940f0d32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/2e1970167edccf31068d2894b884bccc940f0d32/tk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
1997,
1119,
12,
2890,
16,
3549,
33,
5510,
4672,
309,
3549,
30,
365,
18,
1891,
1482,
2668,
2251,
17912,
3568,
6134,
775,
30,
365,
18,
5391,
18,
1425,
12,
2019,
33,
24493,
13,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
1997,
1119,
12,
2890,
16,
3549,
33,
5510,
4672,
309,
3549,
30,
365,
18,
1891,
1482,
2668,
2251,
17912,
3568,
6134,
775,
30,
365,
18,
5391,
18,
1425,
12,
2019,
33,
24493,
13,
365,... |
for view in self.views: | for view in list(self.views): | def notify(self, changed=None): """ Notify all views that something was changed on me. Passing a dictionary of {'attribute': 'new value'} in changed will pass this dictionary to the view for increased performance. If you don't want to do this, don't, and just use the traditional MVC paradigm of querying the model for t... | 292f53d3b30508bf9c2400911f3fee9c01d727c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/292f53d3b30508bf9c2400911f3fee9c01d727c0/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
3550,
33,
7036,
4672,
3536,
10918,
777,
7361,
716,
5943,
1703,
3550,
603,
1791,
18,
31741,
279,
3880,
434,
13666,
4589,
4278,
296,
2704,
460,
11,
97,
316,
3550,
903,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
3550,
33,
7036,
4672,
3536,
10918,
777,
7361,
716,
5943,
1703,
3550,
603,
1791,
18,
31741,
279,
3880,
434,
13666,
4589,
4278,
296,
2704,
460,
11,
97,
316,
3550,
903,
... |
self.f = fd.makefile(fd, "r+", 1) | self.f = fd.makefile("r+", 1) | def __init__(self, fd): # Dictionary of valid commands self.commands = _proto_commands # Flag to stop the server self.closed = False # Print debug info self.debug = True # Dictionary to keep track of started processes self._children = dict() # Buffer and flag for PROC mode self._proc = None | 8c9c6a050ae410643cad6448d45e21a5993a5657 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8495/8c9c6a050ae410643cad6448d45e21a5993a5657/protocol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5194,
4672,
468,
16447,
434,
923,
4364,
365,
18,
7847,
273,
389,
9393,
67,
7847,
468,
9960,
358,
2132,
326,
1438,
365,
18,
12204,
273,
1083,
468,
3038,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5194,
4672,
468,
16447,
434,
923,
4364,
365,
18,
7847,
273,
389,
9393,
67,
7847,
468,
9960,
358,
2132,
326,
1438,
365,
18,
12204,
273,
1083,
468,
3038,
1... |
poly_obj = Polyhedron(vertices = vertices) | poly_obj = Polyhedron(vertices = vertices, cdd_type = cdd_type) | def vert_to_ieq(vertices, rays = [], cdd_type = 'rational', verbose = False): """ Converts a list of vertices to an inequality representation, using cddlib. INPUT: vertices -- a list of vertices rays -- optional, a list of rays cdd_type -- optional. Defaults to rational, and the exact arithmetic of testcdd1_gmp. Usi... | 2982355fc9920f23a945af9db61ce993006ba33c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/2982355fc9920f23a945af9db61ce993006ba33c/polyhedra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3173,
67,
869,
67,
1385,
85,
12,
17476,
16,
14961,
87,
273,
5378,
16,
276,
449,
67,
723,
273,
296,
7034,
287,
2187,
3988,
273,
1083,
4672,
3536,
20377,
279,
666,
434,
6928,
358,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3173,
67,
869,
67,
1385,
85,
12,
17476,
16,
14961,
87,
273,
5378,
16,
276,
449,
67,
723,
273,
296,
7034,
287,
2187,
3988,
273,
1083,
4672,
3536,
20377,
279,
666,
434,
6928,
358,
392,
... |
album_path + base_album_path + '-%i' % album_concat | album_path = base_album_path + '-%i' % album_concat | def DownloadAlbum(self, base_path, user='default', title=None): """Download an album to the client. Keyword arguments: base_path -- the path on the filesystem to copy albums to. Each album will be stored in base_path/<album title>. If base_path does not exist, it and each non-existent parent directory will be created.... | 4b6651bd810585adf399174b1b738460cf2fc40d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/4b6651bd810585adf399174b1b738460cf2fc40d/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13059,
30330,
12,
2890,
16,
1026,
67,
803,
16,
729,
2218,
1886,
2187,
2077,
33,
7036,
4672,
3536,
7109,
392,
14844,
358,
326,
1004,
18,
225,
18317,
1775,
30,
1026,
67,
803,
1493,
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,
13059,
30330,
12,
2890,
16,
1026,
67,
803,
16,
729,
2218,
1886,
2187,
2077,
33,
7036,
4672,
3536,
7109,
392,
14844,
358,
326,
1004,
18,
225,
18317,
1775,
30,
1026,
67,
803,
1493,
326,
... |
garbage_digit_pattern = sre.compile(unicode(r'^\s*?([\+\-]?\d+?(\.\d+)?\s*?)+?\s*?$'), sre.UNICODE) | garbage_digit_pattern = \ sre.compile(unicode(r'^\s*?([\+\-]?\d+?(\.\d+)?\s*?)+?\s*?$'), sre.UNICODE) | def find_end_of_reference_section(docbody, ref_start_line, ref_line_marker, ref_line_marker_ptn): """Given that the start of a document's reference section has already been recognised, this function is tasked with finding the line-number in the document of the last line of the reference section. @param docbody: (list) ... | afd852f45332d11ac027b8d47ce1a922ce7f2cc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/afd852f45332d11ac027b8d47ce1a922ce7f2cc6/refextract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
409,
67,
792,
67,
6180,
67,
3464,
12,
2434,
3432,
16,
1278,
67,
1937,
67,
1369,
16,
1278,
67,
1369,
67,
11145,
16,
1278,
67,
1369,
67,
11145,
67,
337,
82,
4672,
3536,
6083,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
409,
67,
792,
67,
6180,
67,
3464,
12,
2434,
3432,
16,
1278,
67,
1937,
67,
1369,
16,
1278,
67,
1369,
67,
11145,
16,
1278,
67,
1369,
67,
11145,
67,
337,
82,
4672,
3536,
6083,... |
__swig_setmethods__["TrafficAverage"] = _micropolisengine.Micropolis_TrafficAverage_set __swig_getmethods__["TrafficAverage"] = _micropolisengine.Micropolis_TrafficAverage_get if _newclass:TrafficAverage = _swig_property(_micropolisengine.Micropolis_TrafficAverage_get, _micropolisengine.Micropolis_TrafficAverage_set) _... | __swig_setmethods__["trafficAverage"] = _micropolisengine.Micropolis_trafficAverage_set __swig_getmethods__["trafficAverage"] = _micropolisengine.Micropolis_trafficAverage_get if _newclass:trafficAverage = _swig_property(_micropolisengine.Micropolis_trafficAverage_get, _micropolisengine.Micropolis_trafficAverage_set) | def DoFlood(*args): return _micropolisengine.Micropolis_DoFlood(*args) | 39aa8be370504bb33ae6f1dae8e29718b8334236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10557/39aa8be370504bb33ae6f1dae8e29718b8334236/micropolisengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
42,
383,
369,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
3244,
42,
383,
369,
30857,
1968,
13,
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,
2256,
42,
383,
369,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
3244,
42,
383,
369,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
self.assertEqual(check_line('def intersection(list1, list2):\n', REPORTER), None) | self.assertEqual(check_line('def intersection(list1, list2):\n'), None) | self.assertEqual(check_line('def intersection(list1, list2):\n', REPORTER), None) | 455beb61539a40eb35dfd637d0cd015a7cbec7a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/455beb61539a40eb35dfd637d0cd015a7cbec7a0/test_format.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
11231,
5812,
12,
1893,
67,
1369,
2668,
536,
7619,
12,
1098,
21,
16,
666,
22,
4672,
64,
82,
2187,
2438,
52,
916,
2560,
3631,
599,
13,
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,
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,
365,
18,
11231,
5812,
12,
1893,
67,
1369,
2668,
536,
7619,
12,
1098,
21,
16,
666,
22,
4672,
64,
82,
2187,
2438,
52,
916,
2560,
3631,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
('SymbolName', ('ptr', '+ PointerToSymbolTable * - SymbolTableIndex 1 18', ('scalar', '<8s', symname))) | ('SymbolName', ('ptr', '+ PointerToSymbolTable * SymbolTableIndex 18', ('scalar', '<8s', symname))) | def symname(value): parts = struct.unpack("<2L", value) if parts[0] == 0: return string_table_entry(parts[1]) else: return '%s' | abd32a55dfe68962be88fe32d76cd6777ead9446 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/abd32a55dfe68962be88fe32d76cd6777ead9446/coff-dump.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5382,
529,
12,
1132,
4672,
2140,
273,
1958,
18,
17309,
2932,
32,
22,
48,
3113,
460,
13,
309,
2140,
63,
20,
65,
422,
374,
30,
327,
533,
67,
2121,
67,
4099,
12,
6019,
63,
21,
5717,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5382,
529,
12,
1132,
4672,
2140,
273,
1958,
18,
17309,
2932,
32,
22,
48,
3113,
460,
13,
309,
2140,
63,
20,
65,
422,
374,
30,
327,
533,
67,
2121,
67,
4099,
12,
6019,
63,
21,
5717,
4... |
def testMultiply(self); | def testMultiply(self): | def testMultiply(self); self.assertEquals((0 * 10), 0) self.assertEquals((5 * 8), 40) | fda3a193436562e79bcd598f024a5c115e31f3fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fda3a193436562e79bcd598f024a5c115e31f3fa/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
26040,
12,
2890,
4672,
365,
18,
11231,
8867,
12443,
20,
380,
1728,
3631,
374,
13,
365,
18,
11231,
8867,
12443,
25,
380,
1725,
3631,
8063,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
26040,
12,
2890,
4672,
365,
18,
11231,
8867,
12443,
20,
380,
1728,
3631,
374,
13,
365,
18,
11231,
8867,
12443,
25,
380,
1725,
3631,
8063,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
z = slow_tubes_with_title('Titles_22_Sep_2006/5SmallBearingPage-17.gif', 8, start=0) | z = slow_tubes_with_title('Titles_22_Sep_2006/5SmallBearingPages-17.gif', 8, start=0) | def cross_fade(real_seconds, from_filespec, to_filespec, start=0, avg=10): # We only do cross-fades at 6 ps/sec return m.motionBlur(from_filespec, start=start, incr=10, frames=real_seconds*m.SECOND, avg=avg, textlist=textlist_6ps, fadeTo=to_filespec) | 4bf20b26fb588b67720b74031247013bb5b27d93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/4bf20b26fb588b67720b74031247013bb5b27d93/example.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6828,
67,
507,
323,
12,
7688,
67,
7572,
16,
628,
67,
2354,
705,
16,
358,
67,
2354,
705,
16,
787,
33,
20,
16,
11152,
33,
2163,
4672,
468,
1660,
1338,
741,
6828,
17,
74,
16601,
622,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6828,
67,
507,
323,
12,
7688,
67,
7572,
16,
628,
67,
2354,
705,
16,
358,
67,
2354,
705,
16,
787,
33,
20,
16,
11152,
33,
2163,
4672,
468,
1660,
1338,
741,
6828,
17,
74,
16601,
622,
... |
'%.4f rotations' % (nsecs / 0.2) | '%.3f rotations' % (nsecs / 0.2) | def textlist_0_15ps(framenumber): nsecs = framenumber * 5.0e-6 return [ '%.4f nanoseconds' % nsecs, '%.4f rotations' % (nsecs / 0.2) ] | 975288b86949caa644022f4cad97fc06af241804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/975288b86949caa644022f4cad97fc06af241804/example.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
1098,
67,
20,
67,
3600,
1121,
12,
74,
1940,
21998,
4672,
290,
21317,
273,
21799,
21998,
380,
1381,
18,
20,
73,
17,
26,
327,
306,
22036,
24,
74,
6468,
23272,
11,
738,
290,
21317,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
1098,
67,
20,
67,
3600,
1121,
12,
74,
1940,
21998,
4672,
290,
21317,
273,
21799,
21998,
380,
1381,
18,
20,
73,
17,
26,
327,
306,
22036,
24,
74,
6468,
23272,
11,
738,
290,
21317,
... |
(prefix + in_line + '\n') for in_line in text.split('\n')) | [(prefix + in_line + '\n') for in_line in text.split('\n')]) | def comment_begin(self, text): """Return commented version of the passed text WITHOUT end of line/comment.""" prefix = '.\\" ' out_text = ''.join( (prefix + in_line + '\n') for in_line in text.split('\n')) return out_text | 7db8c9688adf9838ecb9ee2d70c96ac5e4aebe73 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/7db8c9688adf9838ecb9ee2d70c96ac5e4aebe73/manpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2879,
67,
10086,
12,
2890,
16,
977,
4672,
3536,
990,
31813,
1177,
434,
326,
2275,
977,
13601,
5069,
679,
434,
980,
19,
3469,
12123,
1633,
273,
2418,
27576,
296,
596,
67,
955,
273,
875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2879,
67,
10086,
12,
2890,
16,
977,
4672,
3536,
990,
31813,
1177,
434,
326,
2275,
977,
13601,
5069,
679,
434,
980,
19,
3469,
12123,
1633,
273,
2418,
27576,
296,
596,
67,
955,
273,
875,
... |
if i < 0: return None data[0] = data[0][i+1:] | if i >= 0: data[0] = data[0][i+1:] | def parsedate_tz(data): """Convert a date string to a time tuple. Accounts for military timezones. """ data = data.split() # The FWS after the comma after the day-of-week is optional, so search and # adjust for this. if data[0].endswith(',') or data[0].lower() in _daynames: # There's a dayname here. Skip it del data[0... | 32f0fb9f41b33477c609a90dcedd062772cec8d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/32f0fb9f41b33477c609a90dcedd062772cec8d0/_parseaddr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
501,
18,
4939,
1435,
468,
1021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
501,
18,
4939,
1435,
468,
1021... |
r""" Deficient numbers: $\sigma(n) < 2n$. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A005100;a Deficient numbers: sigma(n) < 2n sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 1 sage: a(2) 2 sage: a(12) 14... | def __init__(self): r""" Deficient numbers: $\sigma(n) < 2n$. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A005100;a Deficient numbers: sigma(n) < 2n sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 1 sage: a... | def _eval(self, n): p = sloane.A000043(n) return Integer(2**(p-1) * (2**p - 1)) | d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
293,
273,
272,
383,
8806,
18,
37,
2787,
8942,
12,
82,
13,
327,
2144,
12,
22,
636,
12,
84,
17,
21,
13,
380,
261,
22,
636,
84,
300,
404,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
293,
273,
272,
383,
8806,
18,
37,
2787,
8942,
12,
82,
13,
327,
2144,
12,
22,
636,
12,
84,
17,
21,
13,
380,
261,
22,
636,
84,
300,
404,
3719,
2... |
connectControl(lb, master, value, callback, "itemSelectionChanged()", CallFront_ListBox(lb), ListBoxCallback(lb, master)) | connectControl(lb, master, value, callback, "itemSelectionChanged()", CallFrontListBox(lb), CallBackListBox(lb, master)) | def listBox(widget, master, value = None, labels = None, box = None, tooltip = None, callback = None, selectionMode = QListWidget.SingleSelection, debuggingEnabled = 1): bg = box and widgetBox(widget, box, orientation = "horizontal") or widget lb = OrangeListBox(bg) lb.setSelectionMode(selectionMode) if bg.layout(): bg... | d26de079e17bbf73783829e143857af9e4646987 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/d26de079e17bbf73783829e143857af9e4646987/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
3514,
12,
6587,
16,
4171,
16,
460,
273,
599,
16,
3249,
273,
599,
16,
3919,
273,
599,
16,
11915,
273,
599,
16,
1348,
273,
599,
16,
4421,
2309,
273,
2238,
682,
4609,
18,
5281,
623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
3514,
12,
6587,
16,
4171,
16,
460,
273,
599,
16,
3249,
273,
599,
16,
3919,
273,
599,
16,
11915,
273,
599,
16,
1348,
273,
599,
16,
4421,
2309,
273,
2238,
682,
4609,
18,
5281,
623... |
'install', 'FINAL=1', 'HYBRID=0'], | 'install'], | def build(buildenv): version = buildenv['version'] if buildenv['os'] in ('osx', 'posix'): # Create the build directory buildDir = os.path.abspath("build_%s" % version) if os.access(buildDir, os.F_OK): hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, info['name'], "Temporary build directory exists: " + buildDir... | f844257559b98060a04b4e1b946547b2bded535c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f844257559b98060a04b4e1b946547b2bded535c/__hardhat__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
3510,
3074,
4672,
225,
1177,
273,
1361,
3074,
3292,
1589,
3546,
225,
309,
1361,
3074,
3292,
538,
3546,
316,
7707,
538,
92,
2187,
296,
24463,
11,
4672,
282,
468,
1788,
326,
1361... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
3510,
3074,
4672,
225,
1177,
273,
1361,
3074,
3292,
1589,
3546,
225,
309,
1361,
3074,
3292,
538,
3546,
316,
7707,
538,
92,
2187,
296,
24463,
11,
4672,
282,
468,
1788,
326,
1361... |
_visitedIds.add(id(obj)) | def fastRepr(obj, maxLen=200, strFactor=10, _visitedIds=None): """ caps the length of iterable types """ if _visitedIds is None: _visitedIds = set() if id(obj) in _visitedIds: return '<ALREADY-VISITED %s>' % itype(obj) _visitedIds.add(id(obj)) if type(obj) in (types.TupleType, types.ListType): s = '' s += {types.TupleT... | ca66ed7e36efe9ca6451f6c83bec41b57c345289 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/ca66ed7e36efe9ca6451f6c83bec41b57c345289/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4797,
426,
683,
12,
2603,
16,
29618,
33,
6976,
16,
609,
6837,
33,
2163,
16,
389,
30129,
2673,
33,
7036,
4672,
3536,
15788,
326,
769,
434,
6087,
1953,
3536,
309,
389,
30129,
2673,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4797,
426,
683,
12,
2603,
16,
29618,
33,
6976,
16,
609,
6837,
33,
2163,
16,
389,
30129,
2673,
33,
7036,
4672,
3536,
15788,
326,
769,
434,
6087,
1953,
3536,
309,
389,
30129,
2673,
353,
... | |
message_id, message, content_type, failure_report, success_report = self.message_queue.wait() | message_id, message, content_type, failure_report, success_report, notify_progress = self.message_queue.wait() | def _message_queue_handler(self): notification_center = NotificationCenter() while True: message_id, message, content_type, failure_report, success_report = self.message_queue.wait() if self.msrp_session is None: # should we generate ChatStreamDidNotDeliver per each message in the queue here? break chunk = self.msrp_se... | 9af8782291be49027e8e214e88214b4559557759 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/9af8782291be49027e8e214e88214b4559557759/msrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2150,
67,
4000,
67,
4176,
12,
2890,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
1323,
1053,
30,
883,
67,
350,
16,
883,
16,
913,
67,
723,
16,
5166,
67,
6006,
16,
2216,
67,
6006,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2150,
67,
4000,
67,
4176,
12,
2890,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
1323,
1053,
30,
883,
67,
350,
16,
883,
16,
913,
67,
723,
16,
5166,
67,
6006,
16,
2216,
67,
6006,... |
r""" Pascal's triangle read by rows: $C(n,k) = {n \choose k} = \frac {n!} {(k!(n-k)!)}$, $0 \le k \le n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A007318 sage: a(0) 1 sage: a(1) 1 sage: a(13) 4 sage: a.list(15) [1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1] sage: ... | def __init__(self): r""" Pascal's triangle read by rows: $C(n,k) = {n \choose k} = \frac {n!} {(k!(n-k)!)}$, $0 \le k \le n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A007318 sage: a(0) 1 sage: a(1) 1 sage: a(13) 4 sage: a.list(15) [1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1... | def _eval(self, n): return arith.lcm([i for i in range(1,n+1)],integer=True) | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
419,
483,
18,
80,
7670,
3816,
77,
364,
277,
316,
1048,
12,
21,
16,
82,
15,
21,
13,
6487,
7745,
33,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
419,
483,
18,
80,
7670,
3816,
77,
364,
277,
316,
1048,
12,
21,
16,
82,
15,
21,
13,
6487,
7745,
33,
5510,
13,
2,
-100,
-100,
-100,
-100,
-10... |
self.debug('cannot find %s in cyclemap' % currentmap) return None | return firstmap | def getNextMap(self): # let's first check if a vote passed for the next map nmap = self.getCvar('g_nextmap').getString() self.debug('g_nextmap: %s' % nmap) if nmap != "": if nmap[:4] == 'ut4_': nmap = nmap[4:] elif nmap[:3] == 'ut_': nmap = nmap[3:] return nmap.title() | a4dcf413543f3daff8ca3758a0857595ac4d16f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/a4dcf413543f3daff8ca3758a0857595ac4d16f2/iourt41.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6927,
863,
12,
2890,
4672,
468,
2231,
1807,
1122,
866,
309,
279,
12501,
2275,
364,
326,
1024,
852,
290,
1458,
273,
365,
18,
588,
39,
1401,
2668,
75,
67,
4285,
1458,
16063,
588,
780,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6927,
863,
12,
2890,
4672,
468,
2231,
1807,
1122,
866,
309,
279,
12501,
2275,
364,
326,
1024,
852,
290,
1458,
273,
365,
18,
588,
39,
1401,
2668,
75,
67,
4285,
1458,
16063,
588,
780,
14... |
def __init__(self, specialized=None, entry_link=None, original_event=None, extension_elements=None, | def __init__(self, specialized=None, entry_link=None, original_event=None, extension_elements=None, | def GetCalendarEventEntryClass(): return CalendarEventEntry | 6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7335,
1133,
1622,
797,
13332,
327,
5542,
1133,
1622,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7335,
1133,
1622,
797,
13332,
327,
5542,
1133,
1622,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
ext_outputs = cmd._mutate_outputs( self.distribution.has_ext_modules(), 'build_ext', 'build_lib', '' ) | ext_outputs = self.get_ext_outputs() | def run(self): # Generate metadata first self.run_command("egg_info") | ff23de19b2189dc8cf0d7730034fa01667bda04a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/ff23de19b2189dc8cf0d7730034fa01667bda04a/bdist_egg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
6654,
1982,
1122,
365,
18,
2681,
67,
3076,
2932,
23171,
67,
1376,
7923,
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,
1086,
12,
2890,
4672,
468,
6654,
1982,
1122,
365,
18,
2681,
67,
3076,
2932,
23171,
67,
1376,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
convertEntities=["xml", "html"]).contents[0] | convertEntities=self.entities).contents[0] | def guessFile (self, page, user, channel, url, date, time): mimetype_enc= self.magic.buffer (page) g = self.mimetype_re.search(mimetype_enc) if g is not None: mimetype= g.groups()[0] encoding= g.groups()[2] else: self.logger.warn ("initial mimetype detection failed: %s" % mimetype_enc) | 8f2a5093781032809e6c348196ee129e275f0030 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5759/8f2a5093781032809e6c348196ee129e275f0030/url.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
812,
261,
2890,
16,
1363,
16,
729,
16,
1904,
16,
880,
16,
1509,
16,
813,
4672,
12595,
67,
1331,
33,
365,
18,
11179,
18,
4106,
261,
2433,
13,
314,
273,
365,
18,
22571,
67,
266,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
812,
261,
2890,
16,
1363,
16,
729,
16,
1904,
16,
880,
16,
1509,
16,
813,
4672,
12595,
67,
1331,
33,
365,
18,
11179,
18,
4106,
261,
2433,
13,
314,
273,
365,
18,
22571,
67,
266,
... |
env.Append( CPPFLAGS=['-DUSE_XERCES_TRUE', '-DCLAM_USE_XML'] ) | env.Append( CPPFLAGS=['-DUSE_XERCES=1', '-DCLAM_USE_XML'] ) | def test_xml_backend( env, conf ) : crosscompiling=env.has_key('crossmingw') and env['crossmingw'] if env['xmlbackend'] in ('both','xercesc') : if not conf.CheckCXXHeader('xercesc/util/PlatformUtils.hpp') : return config_error( "Could not find xerces c headers! Defaulting to the null xml backend" ) env.Append(ENV=os.e... | 11fdf5bf394e0ccea0a25af67f2795327507f939 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1456/11fdf5bf394e0ccea0a25af67f2795327507f939/clam_dependent_libs_checks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2902,
67,
9993,
12,
1550,
16,
2195,
262,
294,
6828,
2919,
4973,
33,
3074,
18,
5332,
67,
856,
2668,
14653,
11987,
91,
6134,
471,
1550,
3292,
14653,
11987,
91,
3546,
225,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2902,
67,
9993,
12,
1550,
16,
2195,
262,
294,
6828,
2919,
4973,
33,
3074,
18,
5332,
67,
856,
2668,
14653,
11987,
91,
6134,
471,
1550,
3292,
14653,
11987,
91,
3546,
225,
309,
... |
last.data = string.rstrip(last.data) + "\n " | last.data = last.data.rstrip() + "\n " | def rewrite_descriptor(doc, descriptor): # # Do these things: # 1. Add an "index='no'" attribute to the element if the tagName # ends in 'ni', removing the 'ni' from the name. # 2. Create a <signature> from the name attribute # 2a.Create an <args> if it appears to be available. # 3. Create additional <sign... | e1e96851d480a7d1acf8fd96abaeb00c195ae7b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e1e96851d480a7d1acf8fd96abaeb00c195ae7b1/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10738,
67,
12628,
12,
2434,
16,
4950,
4672,
468,
468,
2256,
4259,
9198,
30,
468,
282,
404,
18,
1436,
392,
315,
1615,
2218,
2135,
4970,
1566,
358,
326,
930,
309,
326,
7196,
468,
1377,
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,
10738,
67,
12628,
12,
2434,
16,
4950,
4672,
468,
468,
2256,
4259,
9198,
30,
468,
282,
404,
18,
1436,
392,
315,
1615,
2218,
2135,
4970,
1566,
358,
326,
930,
309,
326,
7196,
468,
1377,
3... |
lines = content.split("\n") if lines and self.get_hashfile_format(uri, lines): glade = os.path.join(DATADIR, "parano.glade") dialog = gtk.glade.XML(glade,"dialog_add_or_open") dialog = dialog.get_widget("dialog_add_or_open") result = dialog.run() dialog.hide_all() if result == gtk.RESPONSE_CANCEL: return if result ==... | log("rejecting, no hashfile detected: '%s'" % uri) | def on_filelist_drag_data_received(self, widget, drag_context, x, y, selection_data, info, timestamp): files = selection_data.data.split() drag_context.drop_finish(True, timestamp) for f in files: # remove trailing noise f = f.strip("\r\n\x00",) | 4ea1f13de038d4f844826cb7bd3925ffd32e0440 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2200/4ea1f13de038d4f844826cb7bd3925ffd32e0440/parano.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
7540,
5449,
67,
15997,
67,
892,
67,
15213,
12,
2890,
16,
3604,
16,
8823,
67,
2472,
16,
619,
16,
677,
16,
4421,
67,
892,
16,
1123,
16,
2858,
4672,
225,
1390,
273,
4421,
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,
603,
67,
7540,
5449,
67,
15997,
67,
892,
67,
15213,
12,
2890,
16,
3604,
16,
8823,
67,
2472,
16,
619,
16,
677,
16,
4421,
67,
892,
16,
1123,
16,
2858,
4672,
225,
1390,
273,
4421,
67,
... |
""" | The `build_icon_from_file` argument indicates (when True) that the icon has to be created on the fly from a given image file. The `icon_name` argument is then interpreted as the path to this file. Those specific icons will *not be cached*. """ | def _get_tree_icon(self, icon_name, add_bullet=False, \ add_padlock=False, add_missing=False, icon_size=32): """ Loads an icon from the current icon theme at the specified size, suitable for display in a gtk.TreeView. Additional emblems can be added on top of the icon. | e1994fc1dfb9d8350e212ce0b1b26250cfc75975 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/e1994fc1dfb9d8350e212ce0b1b26250cfc75975/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3413,
67,
3950,
12,
2890,
16,
4126,
67,
529,
16,
527,
67,
70,
19994,
33,
8381,
16,
521,
527,
67,
6982,
739,
33,
8381,
16,
527,
67,
7337,
33,
8381,
16,
4126,
67,
1467,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3413,
67,
3950,
12,
2890,
16,
4126,
67,
529,
16,
527,
67,
70,
19994,
33,
8381,
16,
521,
527,
67,
6982,
739,
33,
8381,
16,
527,
67,
7337,
33,
8381,
16,
4126,
67,
1467,... |
def ir_get(cr, uid, key, key2, models, meta=False, context={}, res_id_req=False): | def ir_get(cr, uid, key, key2, models, meta=False, context=None, res_id_req=False): | def ir_get(cr, uid, key, key2, models, meta=False, context={}, res_id_req=False): obj = pooler.get_pool(cr.dbname).get('ir.values') res = obj.get(cr, uid, key, key2, models, meta=meta, context=context, res_id_req=res_id_req) return res | ca739187f74c171daf6f6344a9065a3e78571ae4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/ca739187f74c171daf6f6344a9065a3e78571ae4/ir.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9482,
67,
588,
12,
3353,
16,
4555,
16,
498,
16,
498,
22,
16,
3679,
16,
2191,
33,
8381,
16,
819,
33,
7036,
16,
400,
67,
350,
67,
3658,
33,
8381,
4672,
1081,
273,
2845,
264,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9482,
67,
588,
12,
3353,
16,
4555,
16,
498,
16,
498,
22,
16,
3679,
16,
2191,
33,
8381,
16,
819,
33,
7036,
16,
400,
67,
350,
67,
3658,
33,
8381,
4672,
1081,
273,
2845,
264,
18,
588,... |
chunk = self.session.send_message(msg, dt=dt) | chunk = self.chat.send_message(msg, dt=dt) | def send_message(self, msg): dt = datetime.datetime.utcnow() chunk = self.session.send_message(msg, dt=dt) printed_msg = format_outgoing_message(self.inv.local_uri, msg, dt=dt) print printed_msg if self.history_file: self.history_file.write(printed_msg + '\n') self.history_file.flush() return chunk | 757218aa36e3d9194fabf2b88e4254a122dc47e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/757218aa36e3d9194fabf2b88e4254a122dc47e9/sip_session2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2150,
12,
2890,
16,
1234,
4672,
3681,
273,
3314,
18,
6585,
18,
17892,
3338,
1435,
2441,
273,
365,
18,
10880,
18,
4661,
67,
2150,
12,
3576,
16,
3681,
33,
7510,
13,
14099,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2150,
12,
2890,
16,
1234,
4672,
3681,
273,
3314,
18,
6585,
18,
17892,
3338,
1435,
2441,
273,
365,
18,
10880,
18,
4661,
67,
2150,
12,
3576,
16,
3681,
33,
7510,
13,
14099,
67,
... |
return self.rClass() | return self.rClass(self.owner._ds) | def new(self): return self.rClass() | f64c6013fc268619b092d97d86e783b9d7d90d04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/f64c6013fc268619b092d97d86e783b9d7d90d04/LinkSet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
327,
365,
18,
86,
797,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
327,
365,
18,
86,
797,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def expect(self, tag): if not self.is_next(tag): self.expected(str(tag)) self.advance() | def expect(self, tag): if not self.is_next(tag): self.expected(str(tag)) self.advance() | 853b6817522b0a6ab57aeba509fed94e7b06a702 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12871/853b6817522b0a6ab57aeba509fed94e7b06a702/lex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
1047,
4672,
309,
486,
365,
18,
291,
67,
4285,
12,
2692,
4672,
365,
18,
3825,
12,
701,
12,
2692,
3719,
365,
18,
361,
5882,
1435,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
1047,
4672,
309,
486,
365,
18,
291,
67,
4285,
12,
2692,
4672,
365,
18,
3825,
12,
701,
12,
2692,
3719,
365,
18,
361,
5882,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-... | |
self.install_progress_window.modify_bg(gtk.STATE_NORMAL, " | self.install_progress_window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(' | def switch_progress_windows(self, use_install_window=True): self.debconf_progress_window.hide() if use_install_window: self.old_progress_window = self.debconf_progress_window self.old_progress_info = self.progress_info self.old_progress_bar = self.progress_bar self.old_progress_cancel_button = self.progress_cancel_butt... | 0d9db6bb1440e631a900ca3baada9b31abfdd5e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12903/0d9db6bb1440e631a900ca3baada9b31abfdd5e6/gtk_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
67,
8298,
67,
13226,
12,
2890,
16,
999,
67,
5425,
67,
5668,
33,
5510,
4672,
365,
18,
31888,
3923,
67,
8298,
67,
5668,
18,
11248,
1435,
309,
999,
67,
5425,
67,
5668,
30,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
67,
8298,
67,
13226,
12,
2890,
16,
999,
67,
5425,
67,
5668,
33,
5510,
4672,
365,
18,
31888,
3923,
67,
8298,
67,
5668,
18,
11248,
1435,
309,
999,
67,
5425,
67,
5668,
30,
365,
18... |
(e[0], e[2], str(error)) | (e[0], e[2], str(result)) | def strftest(now): if verbose: print "strftime test for", time.ctime(now) nowsecs = int(now) gmt = time.gmtime(now) now = time.localtime(now) if now[3] < 12: ampm='AM' else: ampm='PM' jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6)) if now[8]: tz = time.tzname[1] else: tz = time.tzname[0] if now[3] > 12:... | 13213000ae80713da06a699eb2da2a6567c899f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/13213000ae80713da06a699eb2da2a6567c899f0/test_strftime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
1222,
395,
12,
3338,
4672,
309,
3988,
30,
1172,
315,
701,
9982,
1842,
364,
3113,
813,
18,
21261,
12,
3338,
13,
2037,
21317,
273,
509,
12,
3338,
13,
314,
1010,
273,
813,
18,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
1222,
395,
12,
3338,
4672,
309,
3988,
30,
1172,
315,
701,
9982,
1842,
364,
3113,
813,
18,
21261,
12,
3338,
13,
2037,
21317,
273,
509,
12,
3338,
13,
314,
1010,
273,
813,
18,
75,
... |
self.__milter_dispatcher = PpyMilterDispatcher(object) self.__milter_dispatcher.__milter=self | self.__milter_dispatcher = PpyMilterDispatcher(self) | def __init__(self,socket,config): PpyMilter.__init__(self) self.socket=socket self.config=config self.CanAddHeaders() self.CanChangeBody() self.CanChangeHeaders() | 439cf48343ed031c18bd4dfcee725d0b9ca4e2e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10919/439cf48343ed031c18bd4dfcee725d0b9ca4e2e2/milterconnector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7814,
16,
1425,
4672,
453,
2074,
49,
1088,
16186,
2738,
972,
12,
2890,
13,
365,
18,
7814,
33,
7814,
365,
18,
1425,
33,
1425,
365,
18,
2568,
986,
3121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7814,
16,
1425,
4672,
453,
2074,
49,
1088,
16186,
2738,
972,
12,
2890,
13,
365,
18,
7814,
33,
7814,
365,
18,
1425,
33,
1425,
365,
18,
2568,
986,
3121,
... |
args_re=re.compile(_args_re_pattern) | args_re = re.compile(_args_re_pattern) | def execute(macro, text): request = macro.request formatter = macro.formatter _ = request.getText # return immediately if getting links for the current page if request.mode_getpagelinks: return '' args_re=re.compile(_args_re_pattern) currentyear, currentmonth, currentday, h, m, s, wd, yd, ds = request.user.getTime(t... | c79f60fb49c576ca468470320f53086fc17db5eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/c79f60fb49c576ca468470320f53086fc17db5eb/MonthCalendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
26448,
16,
977,
4672,
590,
273,
11522,
18,
2293,
4453,
273,
11522,
18,
12354,
389,
273,
590,
18,
588,
1528,
225,
468,
327,
7636,
309,
8742,
4716,
364,
326,
783,
1363,
309,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
26448,
16,
977,
4672,
590,
273,
11522,
18,
2293,
4453,
273,
11522,
18,
12354,
389,
273,
590,
18,
588,
1528,
225,
468,
327,
7636,
309,
8742,
4716,
364,
326,
783,
1363,
309,
59... |
msg = redmsg("Movie file [" + self.filename + "] not valid for the current part") | msg = redmsg("Movie file [" + self.filename + "] not valid for the current part.") | def _setup(self, hflag = True): """Setup this movie for playing """ if DEBUG1: print "movie._setup() called. filename = [" + self.filename + "]" r = self._checkMovieFile() if r == 1: msg = redmsg("Cannot play movie file [" + self.filename + "]. It does not exist.") self.assy.w.history.message(msg) return r elif r ==... | 4ca5dc642dda3cfa6fc5c4c36e82504a1e6ff750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/4ca5dc642dda3cfa6fc5c4c36e82504a1e6ff750/movie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
12,
2890,
16,
366,
6420,
273,
1053,
4672,
3536,
7365,
333,
21360,
364,
23982,
3536,
309,
6369,
21,
30,
1172,
315,
8683,
13120,
6315,
8401,
1435,
2566,
18,
1544,
273,
8247,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
12,
2890,
16,
366,
6420,
273,
1053,
4672,
3536,
7365,
333,
21360,
364,
23982,
3536,
309,
6369,
21,
30,
1172,
315,
8683,
13120,
6315,
8401,
1435,
2566,
18,
1544,
273,
8247,
397... |
not FilterFlag(args, "--force")): | not FilterFlag(args, "--force")): | def Change(change_info, args): """Creates/edits a changelist.""" silent = FilterFlag(args, "--silent") # Verify the user is running the change command from a read-write checkout. svn_info = gclient_scm.CaptureSVNInfo('.') if not svn_info: ErrorExit("Current checkout is unversioned. Please retry with a versioned " "di... | 1aac2dee70b9defbd5139f71d8ca5350903f776c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/1aac2dee70b9defbd5139f71d8ca5350903f776c/gcl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
12,
3427,
67,
1376,
16,
833,
4672,
3536,
2729,
19,
329,
1282,
279,
9435,
5449,
12123,
10404,
273,
4008,
4678,
12,
1968,
16,
5238,
21862,
7923,
225,
468,
8553,
326,
729,
353,
3549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
12,
3427,
67,
1376,
16,
833,
4672,
3536,
2729,
19,
329,
1282,
279,
9435,
5449,
12123,
10404,
273,
4008,
4678,
12,
1968,
16,
5238,
21862,
7923,
225,
468,
8553,
326,
729,
353,
3549,
... |
return Infsign[resultsign] | return _Infsign[resultsign] | def __mul__(self, other, context=None): """Return self * other. | ebab68ad25421add045049bc0a87fbe7000ec3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ebab68ad25421add045049bc0a87fbe7000ec3f7/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
990,
365,
380,
1308,
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,... | [
1,
1,
1,
1,
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,
1001,
16411,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
990,
365,
380,
1308,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
regex = fix['exceptions'] | exceptions = fix['exceptions'] | def generator(source, replacements, exceptions, regex, textfilename = None, sqlfilename = None, pagename = None): if source == 'sqldump': for pl in read_pages_from_sql_dump(sqlfilename, replacements, exceptions, regex): yield pl elif source == 'textfile': for pl in read_pages_from_text_file(textfilename): yield pl elif... | b3ad97abb158f9418a92cd57ec8dd8ff43c7963d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/b3ad97abb158f9418a92cd57ec8dd8ff43c7963d/replace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4456,
12,
3168,
16,
11413,
16,
4798,
16,
3936,
16,
977,
3459,
273,
599,
16,
1847,
3459,
273,
599,
16,
4262,
1069,
273,
599,
4672,
309,
1084,
422,
296,
4669,
8481,
4278,
364,
886,
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,
4456,
12,
3168,
16,
11413,
16,
4798,
16,
3936,
16,
977,
3459,
273,
599,
16,
1847,
3459,
273,
599,
16,
4262,
1069,
273,
599,
4672,
309,
1084,
422,
296,
4669,
8481,
4278,
364,
886,
316,
... |
self.render(request, message, css_class='error', form_contents=openid_url) | return self.render(request, message, css_class='error', form_contents=openid_url) | def do_verify(self, request): """Process the form submission, initating OpenID verification. """ | 56d76f6c36cfa84e695c6abbf1fcc0e827e31cbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/56d76f6c36cfa84e695c6abbf1fcc0e827e31cbb/open_id.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8705,
12,
2890,
16,
590,
4672,
3536,
2227,
326,
646,
8515,
16,
1208,
1776,
25781,
11805,
18,
3536,
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,
741,
67,
8705,
12,
2890,
16,
590,
4672,
3536,
2227,
326,
646,
8515,
16,
1208,
1776,
25781,
11805,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
extdir = join(dirname(abspath(__file__)), "extension") if not isdir(extdir): extdir = join(dirname(dirname(abspath(__file__))), "extension") assert isdir(extdir), "can't find extension" | extdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "extension") if not os.path.isdir(extdir): extdir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "extension") assert os.path.isdir(extdir), "can't find extension" | def create_extension_dir(): extension_dir = _copy_zipped_extension("chrome-extension.zip") if extension_dir: return extension_dir extension_dir = join(dirname(abspath(__file__)), "chrome-extension.zip") extension_dir = _copy_zipped_extension(extension_dir) if extension_dir: return extension_dir path = mkdtemp() # FI... | e474f441b10a13d9a67358685e0a01f8158c57a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/215/e474f441b10a13d9a67358685e0a01f8158c57a7/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6447,
67,
1214,
13332,
2710,
67,
1214,
273,
389,
3530,
67,
4450,
1845,
67,
6447,
2932,
343,
10896,
17,
6447,
18,
4450,
7923,
309,
2710,
67,
1214,
30,
327,
2710,
67,
1214,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6447,
67,
1214,
13332,
2710,
67,
1214,
273,
389,
3530,
67,
4450,
1845,
67,
6447,
2932,
343,
10896,
17,
6447,
18,
4450,
7923,
309,
2710,
67,
1214,
30,
327,
2710,
67,
1214,
225,... |
task_str = task.tostring().strip('\x00').strip() if task_str.startswith('CONV'): | task_str = task.tostring().strip(asbytes('\x00')).strip() if task_str.startswith(asbytes('CONV')): | def func_and_grad(x): f = func(x, *args) g = fprime(x, *args) return f, g | 1ceffb21eb8372cf22799d6b5f33ac21a98a2be6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/1ceffb21eb8372cf22799d6b5f33ac21a98a2be6/lbfgsb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
464,
67,
9974,
12,
92,
4672,
284,
273,
1326,
12,
92,
16,
380,
1968,
13,
314,
273,
284,
16382,
12,
92,
16,
380,
1968,
13,
327,
284,
16,
314,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
464,
67,
9974,
12,
92,
4672,
284,
273,
1326,
12,
92,
16,
380,
1968,
13,
314,
273,
284,
16382,
12,
92,
16,
380,
1968,
13,
327,
284,
16,
314,
2,
-100,
-100,
-100,
-100,
-10... |
dispatcher_name=os.path.basename(target_file))) | dispatcher_name=os.path.splitext(os.path.basename(target_file))[0])) | def write_win32_dispatcher(self, source_file, target_file): open(target_file, "wb").write( self.windows_dispatcher( command_path=source_file, dispatcher_name=os.path.basename(target_file))) | 8ca197828f05547e512859f18c944c564f665511 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/8ca197828f05547e512859f18c944c564f665511/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
8082,
1578,
67,
18495,
12,
2890,
16,
1084,
67,
768,
16,
1018,
67,
768,
4672,
1696,
12,
3299,
67,
768,
16,
315,
9464,
20387,
2626,
12,
365,
18,
13226,
67,
18495,
12,
1296,
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,
1045,
67,
8082,
1578,
67,
18495,
12,
2890,
16,
1084,
67,
768,
16,
1018,
67,
768,
4672,
1696,
12,
3299,
67,
768,
16,
315,
9464,
20387,
2626,
12,
365,
18,
13226,
67,
18495,
12,
1296,
6... |
this = apply(_quickfix.new_CrossID, args) | this = _quickfix.new_CrossID(*args) | def __init__(self, *args): this = apply(_quickfix.new_CrossID, 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,
13941,
734,
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,
13941,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
1... |
if r == 'y': | if r == _('y'): | def prompt(query): """prompt query, and process base inputs | d9b58144c3aac4c6612e3a64bfe762d8cc17c05c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/d9b58144c3aac4c6612e3a64bfe762d8cc17c05c/record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2271,
4672,
3536,
13325,
843,
16,
471,
1207,
1026,
4540,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2271,
4672,
3536,
13325,
843,
16,
471,
1207,
1026,
4540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
plot(getinjpar(injection,0),getinjpar(injection,1),'go',scalex=False,scaley=False) | plot([getinjpar(injection,0)],[getinjpar(injection,1)],'go',scalex=False,scaley=False) | def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y... | 0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
22,
40,
8111,
12,
92,
3404,
16,
93,
3404,
16,
50,
92,
16,
50,
93,
4672,
619,
651,
33,
80,
15738,
12,
1154,
12,
92,
3404,
3631,
1896,
12,
92,
3404,
3631,
50,
92,
13,
677,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
22,
40,
8111,
12,
92,
3404,
16,
93,
3404,
16,
50,
92,
16,
50,
93,
4672,
619,
651,
33,
80,
15738,
12,
1154,
12,
92,
3404,
3631,
1896,
12,
92,
3404,
3631,
50,
92,
13,
677,
65... |
if set_prev_to_none == True: self.preloadimg_prev_pixbuf_original = None elif set_next_to_none == True: self.preloadimg_next_pixbuf_original = None | def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag... | 27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2704,
67,
2730,
12,
2890,
16,
999,
67,
1484,
945,
6081,
67,
4285,
16,
999,
67,
1484,
945,
6081,
67,
10001,
16,
999,
67,
2972,
67,
14861,
4385,
67,
8830,
16,
2715,
67,
9216,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2704,
67,
2730,
12,
2890,
16,
999,
67,
1484,
945,
6081,
67,
4285,
16,
999,
67,
1484,
945,
6081,
67,
10001,
16,
999,
67,
2972,
67,
14861,
4385,
67,
8830,
16,
2715,
67,
9216,... | |
name=socket.gethostbyaddr(socket.gethostname())[0] | name=socket.gethostbyaddr(socket.gethostname())[0] | def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ name=string.strip(name) if len(name)==0: name=socket.gethostbyaddr(socket.gethostname())[0] self.putcmd("ehlo",name) (code,msg)=self.getreply() # According to RFC1869 some (badly written) # M... | de1c0a3c6cefc0960617175f1a9491221d9defa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/de1c0a3c6cefc0960617175f1a9491221d9defa6/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
225... |
if self.product and self.factory: p = container.manage_addProduct[self.product] t = getattr(p, self.factory, None) if getSecurityManager().validate(p, p, self.factory, t): m = t | p = container.manage_addProduct[self.product] m = getattr(p, self.factory, None) if m is None: return default try: if getSecurityManager().validate(p, p, self.factory, m): return m except Unauthorized: pass return default | def _queryFactoryMethod(self, container, m=None): try: if self.product and self.factory: p = container.manage_addProduct[self.product] t = getattr(p, self.factory, None) if getSecurityManager().validate(p, p, self.factory, t): m = t except: LOG('Types Tool', ERROR, '_queryFactoryMethod raised an exception', error=sys.e... | a198ce0c44e307a6dd25e83daa15e759733e8c9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/a198ce0c44e307a6dd25e83daa15e759733e8c9d/TypesTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
1733,
1305,
12,
2890,
16,
1478,
16,
312,
33,
7036,
4672,
775,
30,
293,
273,
1478,
18,
12633,
67,
1289,
4133,
63,
2890,
18,
5896,
65,
312,
273,
3869,
12,
84,
16,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
1733,
1305,
12,
2890,
16,
1478,
16,
312,
33,
7036,
4672,
775,
30,
293,
273,
1478,
18,
12633,
67,
1289,
4133,
63,
2890,
18,
5896,
65,
312,
273,
3869,
12,
84,
16,
365,
18,
... |
if not (isinstance(node.parent, nodes.TextElement) or isinstance(node.parent, nodes.Part)): | if (not isinstance(node.parent, nodes.TextElement) and not self.paragraph_suppress_newline): | def visit_image(self, node): # if the parent is structural - document, section, etc then we need # to break the previous paragraphish if not (isinstance(node.parent, nodes.TextElement) or isinstance(node.parent, nodes.Part)): self.break_paragraph() kw = {} if node.has_key('width'): kw['width'] = int(node['width']) if n... | 139779d7bc12cf5badb7b0aaa20c58544d65af8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/541/139779d7bc12cf5badb7b0aaa20c58544d65af8e/rst_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
468,
309,
326,
982,
353,
1958,
3766,
300,
1668,
16,
2442,
16,
5527,
1508,
732,
1608,
468,
358,
898,
326,
2416,
10190,
1468,
309,
261,
902,
1549... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
468,
309,
326,
982,
353,
1958,
3766,
300,
1668,
16,
2442,
16,
5527,
1508,
732,
1608,
468,
358,
898,
326,
2416,
10190,
1468,
309,
261,
902,
1549... |
x = line.strip().split() | x = line.strip().split(' ') | def get_mount_point_for_uuid(uuid): # handle gfvs for x,y in get_gvfs_devices_and_paths(): if uuid==x: return y # handle local devices dev_paths = get_dev_paths_for_uuid(uuid) f = os.popen('mount') s = f.read() f.close() for line in s.split('\n'): x = line.strip().split() if x: dev_path = x[0] if dev_path in dev_paths:... | 85e59bbb009788f264834a1a6ec9a7a3c29e2b7c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/317/85e59bbb009788f264834a1a6ec9a7a3c29e2b7c/backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4778,
67,
1153,
67,
1884,
67,
7080,
12,
7080,
4672,
468,
1640,
13828,
6904,
364,
619,
16,
93,
316,
336,
67,
75,
90,
2556,
67,
12506,
67,
464,
67,
4481,
13332,
309,
3822,
631... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4778,
67,
1153,
67,
1884,
67,
7080,
12,
7080,
4672,
468,
1640,
13828,
6904,
364,
619,
16,
93,
316,
336,
67,
75,
90,
2556,
67,
12506,
67,
464,
67,
4481,
13332,
309,
3822,
631... |
continue elif connection & 32 and direction in (0, 2): direction = _turnLeft[direction] continue elif isNode(connection): | else: direction = _turnRight[direction] connection &= ~connections[direction] if not connection & CONN_ALL4: connection &= ~CONN_MAYBE_NODE crackConnectionImage[pos] = connection continue elif connection & CONN_NODE: | def followEdge(crackConnectionImage, pos, direction): """Follow edge starting at `pos` in `direction` until crackConnectionImage[pos] fulfills `isNode`.""" pos = Point2D(pos[0], pos[1]) vPos = Vector2(pos[0] - 0.5, pos[1] - 0.5) result = Polygon([vPos]) while True: vPos += _dirVector[direction] result.append(vPos) pos... | a94194260b0ee2a979b184709c2d70b6c499169d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10394/a94194260b0ee2a979b184709c2d70b6c499169d/crackConvert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2805,
6098,
12,
71,
21580,
1952,
2040,
16,
949,
16,
4068,
4672,
3536,
8328,
3591,
5023,
622,
1375,
917,
68,
316,
1375,
9855,
68,
3180,
276,
21580,
1952,
2040,
63,
917,
65,
22290,
87,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2805,
6098,
12,
71,
21580,
1952,
2040,
16,
949,
16,
4068,
4672,
3536,
8328,
3591,
5023,
622,
1375,
917,
68,
316,
1375,
9855,
68,
3180,
276,
21580,
1952,
2040,
63,
917,
65,
22290,
87,
1... |
soup = BeautifulStoneSoup(src) | soup = BeautifulStoneSoup(src, convertEntities=BeautifulSoup.HTML_ENTITIES) | def parse_feeds(feeds, browser, print_version, max_articles_per_feed=10): articles = {} for title, url in feeds: src = browser.open(url).read() articles[title] = [] soup = BeautifulStoneSoup(src) for item in soup.findAll('item'): try: pubdate = item.find('pubdate').string if not pubdate: continue pubdate = pubdate.repl... | beb8ddb80ee41aabba9e9d1d4e9db6322b5d5f78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/beb8ddb80ee41aabba9e9d1d4e9db6322b5d5f78/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7848,
87,
12,
7848,
87,
16,
4748,
16,
1172,
67,
1589,
16,
943,
67,
16462,
67,
457,
67,
7848,
33,
2163,
4672,
15828,
273,
2618,
364,
2077,
16,
880,
316,
27684,
30,
1705,
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,
7848,
87,
12,
7848,
87,
16,
4748,
16,
1172,
67,
1589,
16,
943,
67,
16462,
67,
457,
67,
7848,
33,
2163,
4672,
15828,
273,
2618,
364,
2077,
16,
880,
316,
27684,
30,
1705,
273... |
self.detached_window = DetachedWindow("", detached_window_frame) | title = self.playlist[self.position].name self.detached_window = DetachedWindow(title, detached_window_frame) | def prepare_detached_playback(self): self.emit('will-play-detached') detached_window_frame = config.get(prefs.DETACHED_WINDOW_FRAME) if detached_window_frame is None: detached_window_frame = widgetset.Rect(0, 0, 800, 600) else: detached_window_frame = widgetset.Rect.from_string(detached_window_frame) self.detached_wind... | c5af34f4ac75895ab3c402078e95a1d9df9800a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/c5af34f4ac75895ab3c402078e95a1d9df9800a3/playback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
8238,
2004,
67,
1601,
823,
12,
2890,
4672,
365,
18,
18356,
2668,
20194,
17,
1601,
17,
8238,
2004,
6134,
22037,
67,
5668,
67,
3789,
273,
642,
18,
588,
12,
1484,
2556,
18,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
8238,
2004,
67,
1601,
823,
12,
2890,
4672,
365,
18,
18356,
2668,
20194,
17,
1601,
17,
8238,
2004,
6134,
22037,
67,
5668,
67,
3789,
273,
642,
18,
588,
12,
1484,
2556,
18,
40,
... |
def _strxor(s1, s2): """Utility method. XOR the two strings s1 and s2 (must have same length). """ return "".join(map(lambda x, y: chr(ord(x) ^ ord(y)), s1, s2)) | trans_5C = "".join ([chr (x ^ 0x5C) for x in xrange(256)]) trans_36 = "".join ([chr (x ^ 0x36) for x in xrange(256)]) | def _strxor(s1, s2): """Utility method. XOR the two strings s1 and s2 (must have same length). """ return "".join(map(lambda x, y: chr(ord(x) ^ ord(y)), s1, s2)) | 458b231678630505821e14f68867e640e7c2d240 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/458b231678630505821e14f68867e640e7c2d240/hmac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
906,
67,
25,
39,
273,
1408,
18,
5701,
23265,
15182,
261,
92,
3602,
374,
92,
25,
39,
13,
364,
619,
316,
12314,
12,
5034,
13,
5717,
906,
67,
5718,
273,
1408,
18,
5701,
23265,
15182,
261,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
906,
67,
25,
39,
273,
1408,
18,
5701,
23265,
15182,
261,
92,
3602,
374,
92,
25,
39,
13,
364,
619,
316,
12314,
12,
5034,
13,
5717,
906,
67,
5718,
273,
1408,
18,
5701,
23265,
15182,
261,
92,... |
debuglevel = 0 | def __init__(cls, name, bases, attributes): """Add prefs attribute to class attributes. | 1813ba7c30480ed0e55cdeafee63b878708d00b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/1813ba7c30480ed0e55cdeafee63b878708d00b6/userparams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
508,
16,
8337,
16,
1677,
4672,
3536,
986,
15503,
1566,
358,
667,
1677,
18,
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,
1001,
2738,
972,
12,
6429,
16,
508,
16,
8337,
16,
1677,
4672,
3536,
986,
15503,
1566,
358,
667,
1677,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
self.logger.error("Can't get MAC address for UUID %s" % uuid) ret.append(uuid) | self.logger.error("Can't get MAC address for UUID %s" % cuuid) ret.append(cuuid) | def xmlrpc_computersMenuSet(self, menus): """ Set computers imaging boot menu. | 66fed1a25e8d46f4bb5b4dfbc0898c1998453ad8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/66fed1a25e8d46f4bb5b4dfbc0898c1998453ad8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31811,
67,
13406,
414,
4599,
694,
12,
2890,
16,
21374,
4672,
3536,
1000,
5305,
414,
709,
5755,
4835,
3824,
18,
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,
31811,
67,
13406,
414,
4599,
694,
12,
2890,
16,
21374,
4672,
3536,
1000,
5305,
414,
709,
5755,
4835,
3824,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A form field that validated as Polish National Official Business Register Number (REGON) Valid forms are: 7 or 9 digits number | A form field that validated as Polish National Official Business Register Number (REGON). Valid numbers contain 7 or 9 digits. | def has_valid_checksum(self, number): """ Calculates a checksum with the provided algorithm. """ multiple_table = (6, 5, 7, 2, 3, 4, 5, 6, 7) result = 0 for i in range(len(number)-1): result += int(number[i]) * multiple_table[i] | f462011445a126f75033889802fc5073d796e1fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9988/f462011445a126f75033889802fc5073d796e1fb/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
877,
67,
15149,
12,
2890,
16,
1300,
4672,
3536,
26128,
279,
6697,
598,
326,
2112,
4886,
18,
3536,
3229,
67,
2121,
273,
261,
26,
16,
1381,
16,
2371,
16,
576,
16,
890,
16,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
877,
67,
15149,
12,
2890,
16,
1300,
4672,
3536,
26128,
279,
6697,
598,
326,
2112,
4886,
18,
3536,
3229,
67,
2121,
273,
261,
26,
16,
1381,
16,
2371,
16,
576,
16,
890,
16,
105... |
event.topWith = backWidth event.bottomY = frontX | event.topWidth = backWidth event.bottomX = frontX | def _checkBarbedWire(self): """ Check for the Target (ie. "Machine Gun Nest"), the squareness is just an approximation. """ # Grab both pipes determine the relative angle of the whole barbed # wire set barbedWire, relativePos = self._findClosest(self._barbedWires) visible, x, y, azimuth, elevation, angle = \ self._forw... | 746f46b5f38e7fdd76550d8e0449af7c79571cc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10608/746f46b5f38e7fdd76550d8e0449af7c79571cc1/vision.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
5190,
2992,
15249,
12,
2890,
4672,
3536,
2073,
364,
326,
5916,
261,
1385,
18,
315,
6981,
611,
318,
423,
395,
6,
3631,
326,
8576,
4496,
353,
2537,
392,
24769,
18,
3536,
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,
1893,
5190,
2992,
15249,
12,
2890,
4672,
3536,
2073,
364,
326,
5916,
261,
1385,
18,
315,
6981,
611,
318,
423,
395,
6,
3631,
326,
8576,
4496,
353,
2537,
392,
24769,
18,
3536,
468,
... |
clam_env['pkg_config_available'] = True if clam_env['double'] : clam_env.Append( CPPFLAGS=['-DCLAM_DOUBLE'] ) else : clam_env.Append( CPPFLAGS=['-DCLAM_FLOAT'] ) if not clam_env['checks'] : clam_env.Append( CPPFLAGS=['-DCLAM_DISABLE_CHECKS'] ) if clam_env['release_asserts'] : clam_env.Append( CPPFLAGS=['-DCLAM_USE_R... | env['pkg_config_available'] = True if env['double'] : env.Append( CPPFLAGS=['-DCLAM_DOUBLE'] ) else : env.Append( CPPFLAGS=['-DCLAM_FLOAT'] ) if not env['checks'] : env.Append( CPPFLAGS=['-DCLAM_DISABLE_CHECKS'] ) if env['release_asserts'] : env.Append( CPPFLAGS=['-DCLAM_USE_RELEASE_ASSERTS'] ) if env['optimize_and_... | def setup_global_environment( clam_env, conf ) : # clam env # check for pkg-config, compiler support, bash features, et. if sys.platform == 'linux2' : if not conf.check_pkg_config( conf ) : print 'WARNING: pkg-config is not installed' clam_env['pkg_config_available'] = False else : clam_env['pkg_config_available'] = Tr... | 3b2775acdc54a677de237741e3af8ce52371f3d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1456/3b2775acdc54a677de237741e3af8ce52371f3d0/clam_dependent_libs_checks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
6347,
67,
10274,
12,
927,
301,
67,
3074,
16,
2195,
262,
294,
468,
927,
301,
1550,
468,
866,
364,
3475,
17,
1425,
16,
5274,
2865,
16,
24817,
4467,
16,
3393,
18,
309,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
6347,
67,
10274,
12,
927,
301,
67,
3074,
16,
2195,
262,
294,
468,
927,
301,
1550,
468,
866,
364,
3475,
17,
1425,
16,
5274,
2865,
16,
24817,
4467,
16,
3393,
18,
309,
2589,
1... |
ret=self.__parse_results(cursor,callback, sofar) | ret=self.__parse_results(cursor,callback, sofar=sofar) | def query(self, query, callback): """execute a query and call callback on all the results, in the correct order. | 43dd1c6a3981dfe31ac4b33531b337e92ef7587c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2342/43dd1c6a3981dfe31ac4b33531b337e92ef7587c/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
843,
16,
1348,
4672,
3536,
8837,
279,
843,
471,
745,
1348,
603,
777,
326,
1686,
16,
316,
326,
3434,
1353,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
843,
16,
1348,
4672,
3536,
8837,
279,
843,
471,
745,
1348,
603,
777,
326,
1686,
16,
316,
326,
3434,
1353,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
assert prefix.join('bin', 'pypy-c').check() | assert prefix.join('bin', 'pypy').check() | def test_dir_structure(test='test'): # make sure we have sort of pypy-c pypy_c = py.path.local(pypydir).join('translator', 'goal', 'pypy-c') if not pypy_c.check(): os.system("echo faked_pypy_c> %s" % (pypy_c,)) fake_pypy_c = True else: fake_pypy_c = False try: builddir = package(py.path.local(pypydir).dirpath(), test) ... | 78c2f5a99169ba1c27e39c54584b859ac0286491 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/78c2f5a99169ba1c27e39c54584b859ac0286491/test_package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1214,
67,
7627,
12,
3813,
2218,
3813,
11,
4672,
468,
1221,
3071,
732,
1240,
1524,
434,
18951,
93,
17,
71,
18951,
93,
67,
71,
273,
2395,
18,
803,
18,
3729,
12,
22680,
93,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1214,
67,
7627,
12,
3813,
2218,
3813,
11,
4672,
468,
1221,
3071,
732,
1240,
1524,
434,
18951,
93,
17,
71,
18951,
93,
67,
71,
273,
2395,
18,
803,
18,
3729,
12,
22680,
93,
12... |
if eof or not last_cookie: | if eof or last_cookie == None: | def Listdir(self, dir): list = [] ra = (dir, 0, 16) while 1: (status, rest) = self.Readdir(ra) if status <> NFS_OK: break entries, eof = rest last_cookie = None for fileid, name, cookie in entries: print (fileid, name, cookie) # XXX list.append(fileid, name) last_cookie = cookie if eof or not last_cookie: break ra = (r... | 55641ecbd455a4a52d806017bb21032c88bdf84b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/55641ecbd455a4a52d806017bb21032c88bdf84b/nfsclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
987,
1214,
12,
2890,
16,
1577,
4672,
666,
273,
5378,
767,
273,
261,
1214,
16,
374,
16,
2872,
13,
1323,
404,
30,
261,
2327,
16,
3127,
13,
273,
365,
18,
1994,
1214,
12,
354,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
987,
1214,
12,
2890,
16,
1577,
4672,
666,
273,
5378,
767,
273,
261,
1214,
16,
374,
16,
2872,
13,
1323,
404,
30,
261,
2327,
16,
3127,
13,
273,
365,
18,
1994,
1214,
12,
354,
13,
309,
... |
date = datetime.strptime(datestring, usformat) return date.strftime(isoformat) | if datestring: date = datetime.strptime(datestring, usformat) return date.strftime(isoformat) else: return u'' | def getDate(datestring): ''' Try to get a date from the string or return the string ''' #MM/DD/YYYY usformat = u'%m/%d/%Y' isoformat = '%Y-%m-%d' date = datetime.strptime(datestring, usformat) return date.strftime(isoformat) | 1eac42dd424ffd2230747bf98f6ed9e9f6b83131 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7426/1eac42dd424ffd2230747bf98f6ed9e9f6b83131/fema_bot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10713,
12,
9683,
371,
4672,
9163,
6161,
358,
336,
279,
1509,
628,
326,
533,
578,
327,
326,
533,
9163,
225,
468,
8206,
19,
5698,
19,
26287,
584,
2139,
273,
582,
11,
9,
81,
5258,
72,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10713,
12,
9683,
371,
4672,
9163,
6161,
358,
336,
279,
1509,
628,
326,
533,
578,
327,
326,
533,
9163,
225,
468,
8206,
19,
5698,
19,
26287,
584,
2139,
273,
582,
11,
9,
81,
5258,
72,
5... |
] | ] | def combineBonus(sign, num): values = {'-':-1, '+':1} return num * values[sign] | 64baac3c13d723d4cca03c0e3976ada112e0ce94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/64baac3c13d723d4cca03c0e3976ada112e0ce94/linesyntax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
38,
22889,
12,
2977,
16,
818,
4672,
924,
273,
13666,
17,
4278,
17,
21,
16,
15126,
4278,
21,
97,
327,
818,
380,
924,
63,
2977,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
38,
22889,
12,
2977,
16,
818,
4672,
924,
273,
13666,
17,
4278,
17,
21,
16,
15126,
4278,
21,
97,
327,
818,
380,
924,
63,
2977,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.successors = successors | def __init__(self, graph, costf, successors, source, goal): self.costf = costf self.successors = successors self.source = source self.goal = goal Algorithm.__init__ (self, graph) self.run () | fab3924bbfdc4e0baaec94bea86091f99adace7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/fab3924bbfdc4e0baaec94bea86091f99adace7c/Algorithms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2667,
16,
6991,
74,
16,
25190,
16,
1084,
16,
17683,
4672,
365,
18,
12398,
74,
273,
6991,
74,
365,
18,
3168,
273,
1084,
365,
18,
27354,
273,
17683,
15067,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2667,
16,
6991,
74,
16,
25190,
16,
1084,
16,
17683,
4672,
365,
18,
12398,
74,
273,
6991,
74,
365,
18,
3168,
273,
1084,
365,
18,
27354,
273,
17683,
15067,... | |
if proc not in (1, 3, 4): | if proc not in (1, 3, 4): | def mkcred(self, proc): if proc not in (1, 3, 4): # not Mnt/Unmnt/Unmntall return rpc.AUTH_NULL, '' if self.cred == None: self.cred = rpc.AUTH_UNIX, rpc.make_auth_unix_default() return self.cred | 63ae96e3d7a1bf545bdf2c4484aa1cb065e920ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/63ae96e3d7a1bf545bdf2c4484aa1cb065e920ea/mountclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
20610,
12,
2890,
16,
5418,
4672,
309,
5418,
486,
316,
261,
21,
16,
890,
16,
1059,
4672,
468,
486,
490,
496,
19,
984,
21818,
19,
984,
21818,
454,
327,
6724,
18,
7131,
67,
8560,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
20610,
12,
2890,
16,
5418,
4672,
309,
5418,
486,
316,
261,
21,
16,
890,
16,
1059,
4672,
468,
486,
490,
496,
19,
984,
21818,
19,
984,
21818,
454,
327,
6724,
18,
7131,
67,
8560,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.