rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
def _annual_finder(vmin, vmax, freqstr, aslocator): if freqstr != 'Q': | def _annual_finder(vmin, vmax, freq, aslocator): if freq != TS.FR_ANN: | def _annual_finder(vmin, vmax, freqstr, aslocator): if freqstr != 'Q': raise ValueError("unexpected frequency") (vmin, vmax) = (int(vmin), int(vmax+1)) span = vmax - vmin + 1 #............................................ dates = N.arange(vmin, vmax+1) format = N.empty(span, dtype="|S8") format.flat = '' #................. | 4112b0479c1d88be72e39db02bd49cdabdc15a77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/4112b0479c1d88be72e39db02bd49cdabdc15a77/mpl_timeseries_pgm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1072,
1462,
67,
15356,
12,
90,
1154,
16,
17831,
16,
7684,
16,
487,
20048,
4672,
309,
7684,
480,
15508,
18,
9981,
67,
11489,
30,
1002,
2068,
2932,
21248,
8670,
7923,
261,
90,
1154,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1072,
1462,
67,
15356,
12,
90,
1154,
16,
17831,
16,
7684,
16,
487,
20048,
4672,
309,
7684,
480,
15508,
18,
9981,
67,
11489,
30,
1002,
2068,
2932,
21248,
8670,
7923,
261,
90,
1154,
... |
self.assertEquals(len(sms_partials), len(simplsms_partials)) | assert len(sms_partials) == len(simplsms_partials) | def test_sms_analyze(self): """test_sms_analyzebt43lztar Make sure that the simplsms.sms_analyze function does the same thing as the sms_analyze function from libsms.""" audio, sampling_rate = self.get_audio() | f0576d53f10832adb8a491f85ec86d2219a621bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10871/f0576d53f10832adb8a491f85ec86d2219a621bf/sms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20984,
67,
304,
9508,
12,
2890,
4672,
3536,
3813,
67,
20984,
67,
304,
9508,
23602,
8942,
80,
94,
11718,
4344,
3071,
716,
326,
9330,
20984,
18,
20984,
67,
304,
9508,
445,
1552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20984,
67,
304,
9508,
12,
2890,
4672,
3536,
3813,
67,
20984,
67,
304,
9508,
23602,
8942,
80,
94,
11718,
4344,
3071,
716,
326,
9330,
20984,
18,
20984,
67,
304,
9508,
445,
1552,
... |
<th bgcolor=" | <th bgcolor=" | def callgraph_link(self, callgraph): if callgraph is None: return '' return ('<br /><span class="codelink"><a href="javascript: void(0);" ' 'onclick="toggleCallGraph(\'%s-div\');return false;">' 'call graph</a></span> ' % callgraph.uid) | ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
4660,
67,
1232,
12,
2890,
16,
745,
4660,
4672,
309,
745,
4660,
353,
599,
30,
327,
875,
327,
7707,
32,
2848,
342,
4438,
3969,
667,
1546,
71,
1009,
754,
14050,
69,
3897,
1546,
11242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
4660,
67,
1232,
12,
2890,
16,
745,
4660,
4672,
309,
745,
4660,
353,
599,
30,
327,
875,
327,
7707,
32,
2848,
342,
4438,
3969,
667,
1546,
71,
1009,
754,
14050,
69,
3897,
1546,
11242... |
'tax_amount':False | 'tax_amount':False, 'amount':False | def onchange_tax_id(self, cr, uid, ids, amount, tax_id, context={}): res = { 'tax_amount':False } tax_pool = self.pool.get('account.tax') if tax_id: tax = tax_pool.browse(cr, uid, tax_id) if tax.type == 'percent': res.update({ 'tax_amount':amount * tax.amount }) if tax.type == 'fixed': res.update({ 'tax_amount':amount ... | c1a9af0020b8b799fa4ca9940cdd72d451126c08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c1a9af0020b8b799fa4ca9940cdd72d451126c08/voucher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8066,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3844,
16,
5320,
67,
350,
16,
819,
12938,
4672,
400,
273,
288,
296,
8066,
67,
8949,
4278,
8381,
16,
296,
8949... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8066,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3844,
16,
5320,
67,
350,
16,
819,
12938,
4672,
400,
273,
288,
296,
8066,
67,
8949,
4278,
8381,
16,
296,
8949... |
keep=keep_poolsize<numconns | keep=keep_poolsize <= numconns | def release(self, conn): keep_poolsize=self._keep_poolsize self._lock.acquire() try: # do we keep this connection? free=self._free busy=self._busy numconns=len(free)+len(busy) keep=keep_poolsize<numconns busy.remove(conn) if keep: free.append(conn) self.onRelease(conn) finally: self._lock.release() | 69237f44d70b56a14126a2bc9e10b90d9a98b435 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/69237f44d70b56a14126a2bc9e10b90d9a98b435/dbi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
12,
2890,
16,
1487,
4672,
3455,
67,
6011,
1467,
33,
2890,
6315,
10102,
67,
6011,
1467,
365,
6315,
739,
18,
1077,
1039,
1435,
775,
30,
468,
741,
732,
3455,
333,
1459,
35,
4843,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
12,
2890,
16,
1487,
4672,
3455,
67,
6011,
1467,
33,
2890,
6315,
10102,
67,
6011,
1467,
365,
6315,
739,
18,
1077,
1039,
1435,
775,
30,
468,
741,
732,
3455,
333,
1459,
35,
4843,
33... |
self.deleteConfirmed(False) | self.deleteConfirmed((None, "no")) | def keySave(self): old_configured_sats = nimmanager.getConfiguredSats() self.run() new_configured_sats = nimmanager.getConfiguredSats() self.unconfed_sats = old_configured_sats - new_configured_sats self.satpos_to_remove = None self.deleteConfirmed(False) | 58d96b9ff49080139dbe98546a7fe78953fca987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/58d96b9ff49080139dbe98546a7fe78953fca987/Satconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
4755,
12,
2890,
4672,
1592,
67,
16449,
67,
87,
2323,
273,
290,
381,
4181,
18,
588,
15334,
55,
2323,
1435,
365,
18,
2681,
1435,
394,
67,
16449,
67,
87,
2323,
273,
290,
381,
4181,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
4755,
12,
2890,
4672,
1592,
67,
16449,
67,
87,
2323,
273,
290,
381,
4181,
18,
588,
15334,
55,
2323,
1435,
365,
18,
2681,
1435,
394,
67,
16449,
67,
87,
2323,
273,
290,
381,
4181,
... |
resize = log.height elif e == '+': if log.height: resize = log.height - 1 elif e == '-': resize = log.height + 1 elif e == 'q': return | def run(): msg = _resize = retry = 0 events = ( "window resize", ) profile_display = args.profile_display while True: for e in events: try: if e == "window resize": size = ui.get_cols_rows() resize = log.height continue e = top.get_focus()[0].keypress(size[:1], e) if e is None: pass elif e == 'f1': try: body.select(bod... | c7a86379293ec17e7eb7e653b90eacdc3b03736b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c7a86379293ec17e7eb7e653b90eacdc3b03736b/urwid_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
1234,
273,
389,
15169,
273,
3300,
273,
374,
2641,
273,
261,
315,
5668,
7041,
3113,
262,
3042,
67,
5417,
273,
833,
18,
5040,
67,
5417,
1323,
1053,
30,
364,
425,
316,
2641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
1234,
273,
389,
15169,
273,
3300,
273,
374,
2641,
273,
261,
315,
5668,
7041,
3113,
262,
3042,
67,
5417,
273,
833,
18,
5040,
67,
5417,
1323,
1053,
30,
364,
425,
316,
2641,
... | |
ips = resolve_host(host) for i in ips: hostset.add(i) | hostset |= resolve_host(host) | def hosts2map (hosts): """return a set of named hosts, and a list of subnets (host/netmask adresses). Only IPv4 host/netmasks are supported. """ hostset = Set() nets = [] for host in hosts: if _host_bitmask_re.match(host): host, mask = host.split("/") mask = int(mask) if not is_valid_bitmask(mask): error(PROXY, "bitmas... | e5f55f265db01ddd479e1a95dc970fd6b78a7549 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/e5f55f265db01ddd479e1a95dc970fd6b78a7549/ip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7206,
22,
1458,
261,
11588,
4672,
3536,
2463,
279,
444,
434,
4141,
7206,
16,
471,
279,
666,
434,
19140,
261,
2564,
19,
2758,
4455,
1261,
15807,
2934,
5098,
7853,
24,
1479,
19,
2758,
2910... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7206,
22,
1458,
261,
11588,
4672,
3536,
2463,
279,
444,
434,
4141,
7206,
16,
471,
279,
666,
434,
19140,
261,
2564,
19,
2758,
4455,
1261,
15807,
2934,
5098,
7853,
24,
1479,
19,
2758,
2910... |
preview_available = tasks_pending.filter(component__variant__name = 'preview', component__item=item).count() | preview_available = tasks_pending.filter(component__variant__name = 'preview', component__item=item).count() if item.type.name == 'audio': inprogress = int(not (preview_available == 0)) else: inprogress = int(not thumb_ready) | def _get_items_info(user, workspace, items): items_id = [i.pk for i in items] user_basket = Basket.get_basket(user, workspace) basket_items = user_basket.items.all().values_list('pk', flat=True) ws_tasks = Task.objects.filter(component__workspace=workspace) tasks_pending = ws_tasks.filter(state='pending') #tasks_do... | 0aa0a2e2a3f4d7a59fc0653ab97551760c552a49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4589/0aa0a2e2a3f4d7a59fc0653ab97551760c552a49/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3319,
67,
1376,
12,
1355,
16,
6003,
16,
1516,
4672,
225,
1516,
67,
350,
273,
306,
77,
18,
5465,
364,
277,
316,
1516,
65,
225,
729,
67,
26219,
273,
605,
7064,
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,
389,
588,
67,
3319,
67,
1376,
12,
1355,
16,
6003,
16,
1516,
4672,
225,
1516,
67,
350,
273,
306,
77,
18,
5465,
364,
277,
316,
1516,
65,
225,
729,
67,
26219,
273,
605,
7064,
18,
588,
... |
os.path.realpath(os.path.join(html_output_dir, '..'))) | os.path.realpath(os.path.join(html_output_dir, '..')), ignore_errors=False) | def html(self): """ After we've finished building the website index page, we copy everything one directory up. """ DocBuilder.html(self) html_output_dir = self._output_dir('html') copytree(html_output_dir, os.path.realpath(os.path.join(html_output_dir, '..'))) | 214cb404565101cb623776ddf5e59d5a22c373c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/214cb404565101cb623776ddf5e59d5a22c373c4/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
12,
2890,
4672,
3536,
7360,
732,
8081,
6708,
10504,
326,
12504,
770,
1363,
16,
732,
1610,
7756,
1245,
1867,
731,
18,
3536,
3521,
1263,
18,
2620,
12,
2890,
13,
1729,
67,
2844,
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,
1729,
12,
2890,
4672,
3536,
7360,
732,
8081,
6708,
10504,
326,
12504,
770,
1363,
16,
732,
1610,
7756,
1245,
1867,
731,
18,
3536,
3521,
1263,
18,
2620,
12,
2890,
13,
1729,
67,
2844,
67,
... |
Test.__init__(self, 1, "^.+(class|private|protected|public):", "6-5", "class/public/protected/private should be left justified.", filetype, ["c", "cc", "h"]) | Test.__init__(self, 1, "", "6-5", "class/public/protected/private should be left justified.", filetype, ["c", "cc", "h"]) def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines: if (re.search("^.+(class|private|protected|public):", line.stripped) and not line.inNestedClass):... | def __init__(self, filetype): Test.__init__(self, 1, "^.+(class|private|protected|public):", "6-5", "class/public/protected/private should be left justified.", filetype, ["c", "cc", "h"]) | 5432dc4fee5b9db163a86ec3ee3f1ecc4222856d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/5432dc4fee5b9db163a86ec3ee3f1ecc4222856d/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18902,
4672,
7766,
16186,
2738,
972,
12,
2890,
16,
404,
16,
15017,
15591,
12,
1106,
96,
1152,
96,
1117,
96,
482,
13,
2773,
16,
315,
26,
17,
25,
3113,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18902,
4672,
7766,
16186,
2738,
972,
12,
2890,
16,
404,
16,
15017,
15591,
12,
1106,
96,
1152,
96,
1117,
96,
482,
13,
2773,
16,
315,
26,
17,
25,
3113,
3... |
shortDiscNames = "" + [" (%s)" % x ("leave continuous", "entropy", "equal frequency", "equal width", "removed"] + ["custom %i" % x for x in range(1, 4)] | shortDiscNames = "" + [" (%s)" % x for x in ("leave continuous", "entropy", "equal frequency", "equal width", "removed")] + ["custom %i" % x for x in range(1, 4)] | def copyToCustom(self, which): self.clearLineEditFocus() if not self.data: return | bbfc69a1a5c9d5e906171672a6e4236dce60491c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/bbfc69a1a5c9d5e906171672a6e4236dce60491c/OWDiscretize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29817,
3802,
12,
2890,
16,
1492,
4672,
365,
18,
8507,
1670,
4666,
9233,
1435,
309,
486,
365,
18,
892,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29817,
3802,
12,
2890,
16,
1492,
4672,
365,
18,
8507,
1670,
4666,
9233,
1435,
309,
486,
365,
18,
892,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
c_int | _in('p', c_int) | # typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*); | 252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
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,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
params['login'] = a | params['login'] = a | def main (): import getopt # TODO usage = __desc__ + """\n\n%s [action] [data] [options] action: add|read|update|delete|search|edit - defaults to read options: -n|--name name - entry name (required) -l|--login login - login (required) -p|--password password - password (required) -d|--d... | d5107d69c90f97317db041d4692c00aabd5c7cf9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13309/d5107d69c90f97317db041d4692c00aabd5c7cf9/pdmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
1832,
30,
1930,
336,
3838,
225,
468,
2660,
4084,
273,
1001,
5569,
972,
397,
3536,
64,
82,
64,
82,
9,
87,
306,
1128,
65,
306,
892,
65,
306,
2116,
65,
1301,
30,
527,
96,
896,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
1832,
30,
1930,
336,
3838,
225,
468,
2660,
4084,
273,
1001,
5569,
972,
397,
3536,
64,
82,
64,
82,
9,
87,
306,
1128,
65,
306,
892,
65,
306,
2116,
65,
1301,
30,
527,
96,
896,
9... |
layout9.addWidget(self.pushButton33) self.pushButton34 = QPushButton(LayoutWidget_3,"pushButton34") | layout25.addWidget(self.pushButton33) self.pushButton34 = QPushButton(LayoutWidget_4,"pushButton34") | def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl) | 6166f547dc5eda73f10b7fa994920bda8fcb86cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/6166f547dc5eda73f10b7fa994920bda8fcb86cc/ElementSelectorDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
17638,
273,
374,
16,
2242,
273,
374,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
17638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
17638,
273,
374,
16,
2242,
273,
374,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
17638,
... |
def GetProperties(self): "Return the properties fo the StatusBar" props = HwndWrapper.GetProperties(self) props['BorderWidths'] = self.BorderWidths() | def Texts(self): "Return the texts for the control" texts = [self.Text()] | d79966405191de9504cf064467476aa5b42db4be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/d79966405191de9504cf064467476aa5b42db4be/common_controls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3867,
87,
12,
2890,
4672,
315,
990,
326,
15219,
364,
326,
3325,
6,
15219,
273,
306,
2890,
18,
1528,
1435,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3867,
87,
12,
2890,
4672,
315,
990,
326,
15219,
364,
326,
3325,
6,
15219,
273,
306,
2890,
18,
1528,
1435,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
gdata.GDataEntry.__init__(self, author=author, category=category, content=content, atom_id=atom_id, link=link, published=published, title=title, | gdata.GDataEntry.__init__(self, author=author, category=category, content=content, atom_id=atom_id, link=link, published=published, title=title, | def __init__(self, author=None, category=None, content=None, atom_id=None, link=None, published=None, title=None, updated=None, scope=None, role=None, extension_elements=None, extension_attributes=None, text=None): gdata.GDataEntry.__init__(self, author=author, category=category, content=content, atom_id=atom_id, link=... | 220fb3846b34b52b462236a865acc3580b5bf99c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/220fb3846b34b52b462236a865acc3580b5bf99c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
16,
2077,
33,
7036,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
16,
2077,
33,
7036,
16,
3... |
mtr = queryUtility(IMimetypesRegistryTool) | mtr = getToolByName(instance, 'mimetypes_registry', None) | def _process_input(self, value, file=None, default=None, mimetype=None, instance=None, **kwargs): if file is None: file = self._make_file(self.getName(), title='', file='', instance=instance) filename = kwargs.get('filename') or '' body = None if IBaseUnit.isImplementedBy(value): mimetype = value.getContentType() or mi... | 7ceff8c470eae33b4a063061230f3f8948cfaf8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/7ceff8c470eae33b4a063061230f3f8948cfaf8b/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2630,
12,
2890,
16,
460,
16,
585,
33,
7036,
16,
805,
33,
7036,
16,
12595,
33,
7036,
16,
791,
33,
7036,
16,
2826,
4333,
4672,
309,
585,
353,
599,
30,
585,
273,
365,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2630,
12,
2890,
16,
460,
16,
585,
33,
7036,
16,
805,
33,
7036,
16,
12595,
33,
7036,
16,
791,
33,
7036,
16,
2826,
4333,
4672,
309,
585,
353,
599,
30,
585,
273,
365,
6... |
if proxy_auth: h.putheader('Proxy-Authorization: Basic %s' % proxy_auth) if auth: h.putheader('Authorization: Basic %s' % auth) | if proxy_auth: h.putheader('Proxy-Authorization', 'Basic %s' % proxy_auth) if auth: h.putheader('Authorization', 'Basic %s' % auth) | def open_https(self, url, data=None): """Use HTTPS protocol.""" import httplib user_passwd = None proxy_passwd = None if isinstance(url, str): host, selector = splithost(url) if host: user_passwd, host = splituser(host) host = unquote(host) realhost = host else: host, selector = url # here, we determine, whether the pr... | 5cf97234cd24c1375a1e07e3000fac8046da0ec9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5cf97234cd24c1375a1e07e3000fac8046da0ec9/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4528,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
18904,
1771,
12123,
1930,
15851,
6673,
729,
67,
24002,
273,
599,
2889,
67,
24002,
273,
599,
309,
1549,
12,
718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4528,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
18904,
1771,
12123,
1930,
15851,
6673,
729,
67,
24002,
273,
599,
2889,
67,
24002,
273,
599,
309,
1549,
12,
718,
... |
def rev_merger(anno_dict, use_dict, verbose=True): | def rev_merger(anno_dict, use_dict, verbose=False): | def rev_merger(anno_dict, use_dict, verbose=True): """ merge extra bindings into reverse dict | 2a50941be1a6c8368a3d1c517506ec114dd7579d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1969/2a50941be1a6c8368a3d1c517506ec114dd7579d/pyzh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5588,
67,
6592,
693,
12,
1072,
83,
67,
1576,
16,
999,
67,
1576,
16,
3988,
33,
8381,
4672,
3536,
2691,
2870,
7394,
1368,
4219,
2065,
225,
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,
0,
0,
0,
0,
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,
5588,
67,
6592,
693,
12,
1072,
83,
67,
1576,
16,
999,
67,
1576,
16,
3988,
33,
8381,
4672,
3536,
2691,
2870,
7394,
1368,
4219,
2065,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return not self.is_ordinary(p, ell) | return self.is_good(p) and not self.is_ordinary(p, ell) | def is_supersingular(self, p, ell=None): """ Return True precisely when the mod-p representation attached to this elliptic curve is supersingular at ell. | 0f2a3397be3326f3190049bb122201893b08ca35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0f2a3397be3326f3190049bb122201893b08ca35/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2859,
414,
17830,
12,
2890,
16,
293,
16,
415,
80,
33,
7036,
4672,
3536,
2000,
1053,
13382,
291,
2357,
1347,
326,
681,
17,
84,
4335,
7495,
358,
333,
415,
549,
21507,
8882,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2859,
414,
17830,
12,
2890,
16,
293,
16,
415,
80,
33,
7036,
4672,
3536,
2000,
1053,
13382,
291,
2357,
1347,
326,
681,
17,
84,
4335,
7495,
358,
333,
415,
549,
21507,
8882,
353,... |
alphas, e_empirical) | alphas, e_empirical, max_newton_iterations, newton_converge) | def train(training_set, results, feature_fns, update_fn=None): """Train a maximum entropy classifier, returns MaxEntropy object. Train a maximum entropy classifier on a training set. training_set is a list of observations. results is a list of the class assignments for each observation. feature_fns is a list of the ... | 230ddfffe0c863a6de97e38fd9fa516b5020e9d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/230ddfffe0c863a6de97e38fd9fa516b5020e9d6/MaxEntropy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4691,
12,
17584,
67,
542,
16,
1686,
16,
2572,
67,
74,
2387,
16,
1089,
67,
4293,
33,
7036,
4672,
3536,
23419,
279,
4207,
15943,
14622,
16,
1135,
4238,
28727,
733,
18,
225,
2197,
267,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4691,
12,
17584,
67,
542,
16,
1686,
16,
2572,
67,
74,
2387,
16,
1089,
67,
4293,
33,
7036,
4672,
3536,
23419,
279,
4207,
15943,
14622,
16,
1135,
4238,
28727,
733,
18,
225,
2197,
267,
27... |
vself._updateProperty(name, value) | self._updateProperty(name, value) | def manage_changeProperties(self, REQUEST=None, **kw): """Change existing object properties by passing either a mapping object of name:value pairs {'foo':6} or passing name=value parameters.""" if REQUEST is None: props={} else: props=REQUEST if kw: for name, value in kw.items(): props[name]=value propdict=self._propdi... | 2101a9e0a9ab499b27b5c93e6545208184caca0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2101a9e0a9ab499b27b5c93e6545208184caca0a/PropertySheets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
3427,
2297,
12,
2890,
16,
12492,
33,
7036,
16,
2826,
9987,
4672,
3536,
3043,
2062,
733,
1790,
635,
9588,
3344,
279,
2874,
733,
434,
508,
30,
1132,
5574,
13666,
11351,
4278,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
3427,
2297,
12,
2890,
16,
12492,
33,
7036,
16,
2826,
9987,
4672,
3536,
3043,
2062,
733,
1790,
635,
9588,
3344,
279,
2874,
733,
434,
508,
30,
1132,
5574,
13666,
11351,
4278,
26... |
if isinstance(d, tuple([list,tuple])): | if isinstance(d, tuple([list, tuple])): | def state_array(self, d=None): """ Convert the parameter to a state array. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
1126,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
4037,
326,
1569,
358,
279,
919,
526,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
1126,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
4037,
326,
1569,
358,
279,
919,
526,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
try: yield self.p.index[i][-1] except: | ret = self.p.index[i] if not ret: | def __iter__(self): yield nullid for i in xrange(self.p.l): try: yield self.p.index[i][-1] except: self.p.loadindex(i) yield self.p.index[i][-1] | e0d7ec96ae281a1c0603b92c3065b85a42161a95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/e0d7ec96ae281a1c0603b92c3065b85a42161a95/revlog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
2824,
446,
350,
364,
277,
316,
12314,
12,
2890,
18,
84,
18,
80,
4672,
325,
273,
365,
18,
84,
18,
1615,
63,
77,
65,
309,
486,
325,
30,
365,
18,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2165,
972,
12,
2890,
4672,
2824,
446,
350,
364,
277,
316,
12314,
12,
2890,
18,
84,
18,
80,
4672,
325,
273,
365,
18,
84,
18,
1615,
63,
77,
65,
309,
486,
325,
30,
365,
18,
84,
... |
testSoundFile("44.1kHz_16bit_stereo.wav") | for filename in ["22.050Hz_16bit_mono.wav", "44.1kHz_16bit_stereo.aif", "44.1kHz_16bit_stereo.wav", "44.1kHz_mono.ogg", "44.1kHz_stereo.mp3", "48kHz_24bit_stereo.wav"]: testSoundFile(filename) def testSoundEOF(self): node = Player.createNode("sound", {"href": "../video/testfiles/44.1kHz_16bit_mono.wav"}) self.testEOF(n... | def testSoundFile(filename): Player.loadFile("empty.avg") node = Player.createNode("sound", {"href": "../video/testfiles/"+filename}) Player.getRootNode().appendChild(node) self.start(None, (lambda: node.play(), None, lambda: node.stop(), )) | abf41cf0dc55ce93e02e87ddfea6ae88c2a55f07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7300/abf41cf0dc55ce93e02e87ddfea6ae88c2a55f07/AVTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
24331,
812,
12,
3459,
4672,
19185,
18,
945,
812,
2932,
5531,
18,
14141,
7923,
756,
273,
19185,
18,
2640,
907,
2932,
29671,
3113,
12528,
7547,
6877,
315,
6216,
9115,
19,
3813,
2354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24331,
812,
12,
3459,
4672,
19185,
18,
945,
812,
2932,
5531,
18,
14141,
7923,
756,
273,
19185,
18,
2640,
907,
2932,
29671,
3113,
12528,
7547,
6877,
315,
6216,
9115,
19,
3813,
2354,
... |
sage: a[0] | sage: for m in a: print m, '\n-' | def __iter__(self): """ EXAMPLES: sage: MS = MatrixSpace(GF(2),2) sage: a = list(MS) sage: len(a) 16 sage: a[0] [0 0] [0 0] | a8865fa9a575fa968dfb6b77cd969af6eb9a27e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a8865fa9a575fa968dfb6b77cd969af6eb9a27e8/matrix_space.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
9238,
273,
7298,
3819,
12,
43,
42,
12,
22,
3631,
22,
13,
272,
410,
30,
279,
273,
666,
12,
3537,
13,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
9238,
273,
7298,
3819,
12,
43,
42,
12,
22,
3631,
22,
13,
272,
410,
30,
279,
273,
666,
12,
3537,
13,
272,
... |
if isinstance(x, float): return math.floor(x) | if isinstance(x, (float, int, long, complex)): return int(math.floor(x)) | def __call__(self, x): try: return x.floor() except AttributeError: if isinstance(x, float): return math.floor(x) return SymbolicComposition(self, SR(x)) | f66904a9c2b79e900c82c474c72af4474905b13b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f66904a9c2b79e900c82c474c72af4474905b13b/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
775,
30,
327,
619,
18,
74,
5807,
1435,
1335,
6394,
30,
309,
1549,
12,
92,
16,
261,
5659,
16,
509,
16,
1525,
16,
7233,
3719,
30,
327,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
775,
30,
327,
619,
18,
74,
5807,
1435,
1335,
6394,
30,
309,
1549,
12,
92,
16,
261,
5659,
16,
509,
16,
1525,
16,
7233,
3719,
30,
327,
509,
... |
def underlying_set(self): return unique_elements() def cartesian_product(self, other): return self * other def join(self, other): return self + other def sum(self, other): return self + other def difference(self, other): return self - other def symmetric_difference(self, other): return self ^ other def xor(self, other)... | def underlying_set(self): return self.unique_elements() | def underlying_set(self): return unique_elements() | 62da6e70babb13c16bb5a4224cf757be3a0102f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/62da6e70babb13c16bb5a4224cf757be3a0102f3/collections_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6808,
67,
542,
12,
2890,
4672,
327,
3089,
67,
6274,
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,... | [
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,
6808,
67,
542,
12,
2890,
4672,
327,
3089,
67,
6274,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
old_text = '' | def treat(self, pageno): """ Loads the given page, does some changes, and saves it. """ | d67bfeea9d6dffa809c6e92da5ceee1d1a77a309 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/d67bfeea9d6dffa809c6e92da5ceee1d1a77a309/djvutext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
4262,
5764,
4672,
3536,
4444,
87,
326,
864,
1363,
16,
1552,
2690,
3478,
16,
471,
14649,
518,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
4262,
5764,
4672,
3536,
4444,
87,
326,
864,
1363,
16,
1552,
2690,
3478,
16,
471,
14649,
518,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
def utcoffset( self, dt ): | def utcoffset(self, dt): | def utcoffset( self, dt ): "Calculates the utcoffset according to the datetime.tzinfo spec" if dt is None: return winInfo = self.getWinInfo( dt.year ) return -( winInfo.bias + self.dst( dt ) ) | c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9439,
3348,
12,
2890,
16,
3681,
4672,
315,
10587,
326,
9439,
3348,
4888,
358,
326,
3314,
18,
12994,
1376,
857,
6,
309,
3681,
353,
599,
30,
327,
5657,
966,
273,
365,
18,
588,
18049,
966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9439,
3348,
12,
2890,
16,
3681,
4672,
315,
10587,
326,
9439,
3348,
4888,
358,
326,
3314,
18,
12994,
1376,
857,
6,
309,
3681,
353,
599,
30,
327,
5657,
966,
273,
365,
18,
588,
18049,
966... |
t0 = sqrt(H[m,m]**2 + H[m,m+1]**2) t1 = H[m,m] / t0 t2 = H[m,m+1] / t0 | t0 = sqrt_fixed((H[m,m]**2 + H[m,m+1]**2)>>prec, prec) if not t0: break t1 = (H[m,m] << prec) // t0 t2 = (H[m,m+1] << prec) // t0 | def pslq(x, eps=None): """ Given a vector of real numbers x = [x1, x2, ..., xn], pslq(x) uses the PSLQ algorithm to find a list of integers [c1, c2, ..., cn] such that c1*x1 + c2*x2 + ... + cn*xn = 0 approximately. """ n = len(x) assert n >= 1 prec = mp.prec assert prec >= 53 target = prec // max(2,n) if target < 30: i... | 2aa95d086172fe0409027180d099c2472b14086a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/2aa95d086172fe0409027180d099c2472b14086a/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
2069,
85,
12,
92,
16,
7785,
33,
7036,
4672,
3536,
16803,
279,
3806,
434,
2863,
5600,
619,
273,
306,
92,
21,
16,
619,
22,
16,
1372,
16,
619,
82,
6487,
293,
2069,
85,
12,
92,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
2069,
85,
12,
92,
16,
7785,
33,
7036,
4672,
3536,
16803,
279,
3806,
434,
2863,
5600,
619,
273,
306,
92,
21,
16,
619,
22,
16,
1372,
16,
619,
82,
6487,
293,
2069,
85,
12,
92,
13... |
vigra.tensorEigenRepresentation(tensor), "\l e: sqrt(e[0]*e[0]+e[1]*e[1])*Vector(cos(-e[2]), sin(-e[2]))", {}) | vigra.tensorEigenRepresentation(tensor), "\l e: sqrt(e[0]+e[1])*Vector(cos(-e[2]), sin(-e[2]))", {}) | def tensor2Gradient(tensor): """rebuild vectors in dir. of large eigenvectors with lengths sqrt(trace)""" return vigra.transformImage( vigra.tensorEigenRepresentation(tensor), "\l e: sqrt(e[0]*e[0]+e[1]*e[1])*Vector(cos(-e[2]), sin(-e[2]))", {}) | eb087341bc20760be04e803c8af312824ba889e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10394/eb087341bc20760be04e803c8af312824ba889e2/bi_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8171,
22,
15651,
12,
13720,
4672,
3536,
266,
3510,
10046,
316,
1577,
18,
434,
7876,
11043,
29098,
598,
10917,
5700,
12,
5129,
15574,
327,
331,
360,
354,
18,
6547,
2040,
12,
331,
360,
354... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8171,
22,
15651,
12,
13720,
4672,
3536,
266,
3510,
10046,
316,
1577,
18,
434,
7876,
11043,
29098,
598,
10917,
5700,
12,
5129,
15574,
327,
331,
360,
354,
18,
6547,
2040,
12,
331,
360,
354... |
encodedComment = comment.encode(self.site().encoding()) encodedText = text.encode(self.site().encoding()) | def _putPage(self, text, comment=None, watchArticle=False, minorEdit=True, newPage=False, token=None, newToken=False, sysop=False, captchaId=None, captchaAnswer=None ): """Upload 'text' as new content of Page by filling out the edit form. | 033e43f99a99238b930c11de07eb4c1fb99bc261 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/033e43f99a99238b930c11de07eb4c1fb99bc261/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
458,
1964,
12,
2890,
16,
977,
16,
2879,
33,
7036,
16,
4267,
7880,
33,
8381,
16,
8439,
4666,
33,
5510,
16,
394,
1964,
33,
8381,
16,
1147,
33,
7036,
16,
394,
1345,
33,
8381,
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,
389,
458,
1964,
12,
2890,
16,
977,
16,
2879,
33,
7036,
16,
4267,
7880,
33,
8381,
16,
8439,
4666,
33,
5510,
16,
394,
1964,
33,
8381,
16,
1147,
33,
7036,
16,
394,
1345,
33,
8381,
16,
... | |
default_backend.process_cleanup() | default_backend.cleanup_process() | def jail(task_id, func, args, kwargs): """Wraps the task in a jail, which catches all exceptions, and saves the status and result of the task execution to the task meta backend. If the call was successful, it saves the result to the task result backend, and sets the task status to ``"DONE"``. If the call results in a... | 01f82ba425a2e799da3f804912fc2524db908def /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2024/01f82ba425a2e799da3f804912fc2524db908def/worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
525,
671,
12,
4146,
67,
350,
16,
1326,
16,
833,
16,
1205,
4672,
3536,
20785,
326,
1562,
316,
279,
525,
671,
16,
1492,
1044,
281,
777,
4798,
16,
471,
14649,
326,
1267,
471,
563,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
525,
671,
12,
4146,
67,
350,
16,
1326,
16,
833,
16,
1205,
4672,
3536,
20785,
326,
1562,
316,
279,
525,
671,
16,
1492,
1044,
281,
777,
4798,
16,
471,
14649,
326,
1267,
471,
563,
434,
... |
dbArgDict['user'] = user | dbArgDict[argTrans['user']] = user | def connect(self, uri): """the uri string's syntax is the same as that of sqlobject. Unfortunately, only postgres and mysql are going to be supported in the near future. scheme://[user[:password]@]host[:port]/database[?parameters] Examples: mysql://user:password@host/database mysql://host/database?debug=1 postgres://us... | 914335463cf95b57b6ce129d8bf6106fa5882b1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/914335463cf95b57b6ce129d8bf6106fa5882b1d/orngSQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
2003,
4672,
3536,
5787,
2003,
533,
1807,
6279,
353,
326,
1967,
487,
716,
434,
4744,
383,
489,
18,
1351,
24233,
16,
1338,
1603,
14107,
471,
7219,
854,
8554,
358,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
2003,
4672,
3536,
5787,
2003,
533,
1807,
6279,
353,
326,
1967,
487,
716,
434,
4744,
383,
489,
18,
1351,
24233,
16,
1338,
1603,
14107,
471,
7219,
854,
8554,
358,
506,
... |
if spamstatus=='True': spamstatus=True return (spamstatus,float(score),rules) | if spamstatusword=='True': spstatus=True return (spstatus,float(score),rules) | def safilter_symbols(self,messagecontent,user): """Pass content to sa, return spamflag, score, rules""" serverHost = self.config.get(self.section,'host') serverPort = self.config.getint(self.section,'port') timeout=self.config.getint(self.section,'timeout') retries = self.config.getint(self.section,'retries') peruserco... | 96116346333e86aa218fd1089d8cca0dd652a3c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10919/96116346333e86aa218fd1089d8cca0dd652a3c0/sa.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11029,
1088,
67,
15536,
12,
2890,
16,
2150,
1745,
16,
1355,
4672,
3536,
6433,
913,
358,
7864,
16,
327,
24824,
6420,
16,
4462,
16,
2931,
8395,
1438,
2594,
273,
365,
18,
1425,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11029,
1088,
67,
15536,
12,
2890,
16,
2150,
1745,
16,
1355,
4672,
3536,
6433,
913,
358,
7864,
16,
327,
24824,
6420,
16,
4462,
16,
2931,
8395,
1438,
2594,
273,
365,
18,
1425,
18,
588,
1... |
this = apply(_quickfix.new_DateOfBirth, args) | this = _quickfix.new_DateOfBirth(*args) | def __init__(self, *args): this = apply(_quickfix.new_DateOfBirth, 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,
1626,
951,
25791,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1626,
951,
25791,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
statusDict[stDict['Status']] = count | statusDict[stDict['Status']] = count | def export_getJobPageSummaryWeb(self, selectDict, sortList, startItem, maxItems, selectJobs = True): """ Get the summary of the job information for a given page in the job monitor in a generic format """ resultDict = {} startDate = selectDict.get('FromDate',None) if startDate: del selectDict['FromDate'] # For backward ... | 396fda10dee23c8f20cc9cac95df42b63b6824b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/396fda10dee23c8f20cc9cac95df42b63b6824b8/JobMonitoringHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
2278,
1964,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
16,
2027,
7276,
273,
1053,
4672,
3536,
968,
326,
4916,
434,
326,
1719,
177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
2278,
1964,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
16,
2027,
7276,
273,
1053,
4672,
3536,
968,
326,
4916,
434,
326,
1719,
177... |
def fl_get_spinner_bounds(obj, min, max): """ fl_get_spinner_bounds(obj, min, max) """ _fl_get_spinner_bounds(obj, min, max) | def fl_get_spinner_bounds(pObject, min_bound, max_bound): """ fl_get_spinner_bounds(pObject, min_bound, max_bound) """ _fl_get_spinner_bounds(pObject, min_bound, max_bound) | def fl_get_spinner_bounds(obj, min, max): """ fl_get_spinner_bounds(obj, min, max) """ _fl_get_spinner_bounds(obj, min, max) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
1752,
7872,
67,
10576,
12,
84,
921,
16,
1131,
67,
3653,
16,
943,
67,
3653,
4672,
3536,
1183,
67,
588,
67,
1752,
7872,
67,
10576,
12,
84,
921,
16,
1131,
67,
3653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
1752,
7872,
67,
10576,
12,
84,
921,
16,
1131,
67,
3653,
16,
943,
67,
3653,
4672,
3536,
1183,
67,
588,
67,
1752,
7872,
67,
10576,
12,
84,
921,
16,
1131,
67,
3653,
... |
else: msg = redmsg("No jigs in this part. Nothing to plot.") self.history.message(cmd + msg) | else: msg = redmsg("The part contains no jigs that write data to the trace file. Nothing to plot.") self.history.message(cmd + msg) msg = "The following jigs write output to the tracefile: Rotary Motors, Linear Motors, Grounds, Thermostats and Thermometers." self.history.message(msg) | def setup(self): """Setup the Plot Tool dialog, including populating the combobox with plotting options. """ # To setup the Plot Tool, we need to do the following: # 1. Make sure there is a valid DPB file. This is temporary since the Plot Tool will # soon allow the user to open and plot any trace file. # 2. From th... | fe62496612cca0d29cee8badf5bb9367300c2fdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/fe62496612cca0d29cee8badf5bb9367300c2fdd/PlotTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
3536,
7365,
326,
15211,
13288,
6176,
16,
6508,
3650,
1776,
326,
3894,
27570,
598,
20947,
702,
18,
3536,
468,
2974,
3875,
326,
15211,
13288,
16,
732,
1608,
358,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
3536,
7365,
326,
15211,
13288,
6176,
16,
6508,
3650,
1776,
326,
3894,
27570,
598,
20947,
702,
18,
3536,
468,
2974,
3875,
326,
15211,
13288,
16,
732,
1608,
358,
741,
... |
pieces.extend([' ', '{%d}' % (len(i),), IMAP4ServerProtocol.delimiter, i]) elif ' ' in i or '\t' in i: | pieces.extend([' ', '{%d}' % (len(i),), IMAP4Server.delimiter, i, IMAP4Server.delimiter]) elif (not i.startswith('BODY')) and (' ' in i or '\t' in i): | def collapseNestedLists(items): """Turn a nested list structure into an s-exp-like string. @type items: Any iterable @rtype: C{str} """ pieces = [] for i in items: if i is None: pieces.extend([' ', 'NIL']) elif isinstance(i, types.StringTypes): if '\n' in i: pieces.extend([' ', '{%d}' % (len(i),), IMAP4ServerProtocol... | c1816d7a73b09ea07fc8d6e23b4b15c60de7a924 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/c1816d7a73b09ea07fc8d6e23b4b15c60de7a924/imap4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
8649,
7432,
12,
3319,
4672,
3536,
15858,
279,
4764,
666,
3695,
1368,
392,
272,
17,
2749,
17,
5625,
533,
18,
225,
632,
723,
1516,
30,
5502,
6087,
225,
632,
86,
723,
30,
385,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
8649,
7432,
12,
3319,
4672,
3536,
15858,
279,
4764,
666,
3695,
1368,
392,
272,
17,
2749,
17,
5625,
533,
18,
225,
632,
723,
1516,
30,
5502,
6087,
225,
632,
86,
723,
30,
385,
95,
... |
"""Scan through string looking for a match to the pattern, returning a MatchObject instance, or None if no match was found.""" | """search(string[, pos][, endpos]) -> MatchObject or None Scan through string looking for a location where this regular expression produces a match, and return a corresponding MatchObject instance. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length matc... | def search(self, string, pos=0, endpos=None): """Scan through string looking for a match to the pattern, returning a MatchObject instance, or None if no match was found.""" | 27efdb65ccdb88d4f7ed7c10c99789ee4bdeba48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/27efdb65ccdb88d4f7ed7c10c99789ee4bdeba48/re.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
533,
16,
949,
33,
20,
16,
679,
917,
33,
7036,
4672,
3536,
7972,
3059,
533,
7849,
364,
279,
845,
358,
326,
1936,
16,
5785,
279,
4639,
921,
791,
16,
578,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
533,
16,
949,
33,
20,
16,
679,
917,
33,
7036,
4672,
3536,
7972,
3059,
533,
7849,
364,
279,
845,
358,
326,
1936,
16,
5785,
279,
4639,
921,
791,
16,
578,
599,
309,
... |
test_id = self._testNameFromId(event.name) if test_id is not None: event.name = test_id | testid = self._testNameFromId(event.name) if testid is not None: event.name = testid | def loadTestsFromName(self, event): """Implement hook. If the name is a number, it might be an ID assigned by us. If we can find a test to which we have assigned that ID, event.name is changed to the test's real ID. In this way, tests can be referred to via sequential numbers. """ test_id = self._testNameFromId(event.... | b0adf035279910c631ab1cd849f77076df6b5f2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11815/b0adf035279910c631ab1cd849f77076df6b5f2e/testid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14650,
29732,
12,
2890,
16,
871,
4672,
3536,
5726,
3953,
18,
225,
971,
326,
508,
353,
279,
1300,
16,
518,
4825,
506,
392,
1599,
6958,
635,
584,
18,
971,
732,
848,
1104,
279,
1842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14650,
29732,
12,
2890,
16,
871,
4672,
3536,
5726,
3953,
18,
225,
971,
326,
508,
353,
279,
1300,
16,
518,
4825,
506,
392,
1599,
6958,
635,
584,
18,
971,
732,
848,
1104,
279,
1842... |
(con["id"], con["description"], con["repoids"], con["package_profile"], con["key_value_pairs"]) | (con["id"], con["description"], \ con["repoids"],con["key_value_pairs"]) | def run(self): key = self.opts.key value = self.opts.value cons = self.cconn.consumers() baseurl = "%s://%s:%s" % (_cfg.server.scheme, _cfg.server.host, _cfg.server.port) for con in cons: con['package_profile'] = urlparse.urljoin(baseurl, con['package_profile']) if key is None: print_header(_("Consumer Information")) f... | 9cbb11a93950f58c82b5ab30387206959db99987 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/9cbb11a93950f58c82b5ab30387206959db99987/consumer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
498,
273,
365,
18,
4952,
18,
856,
460,
273,
365,
18,
4952,
18,
1132,
1959,
273,
365,
18,
71,
4646,
18,
17664,
414,
1435,
25427,
273,
2213,
87,
23155,
87,
5319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
498,
273,
365,
18,
4952,
18,
856,
460,
273,
365,
18,
4952,
18,
1132,
1959,
273,
365,
18,
71,
4646,
18,
17664,
414,
1435,
25427,
273,
2213,
87,
23155,
87,
5319,
... |
var s = "<span class=\'py-lineno\'>"; | var s = "<tt class=\'py-lineno\'>"; | def _colorize_re(tree, noparen=0): """ Recursively descend the given regexp parse tree to produce the HTML code for a colorized version of the regexp. @param tree: The regexp parse tree for the regexp that should be colorized. @type tree: L{sre_parse.SubPattern} @param noparen: If true, then don't include parenthases ... | cd4d6e5fbca5f698866ebe3598f5c2ca592983e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd4d6e5fbca5f698866ebe3598f5c2ca592983e0/html_colorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3266,
554,
67,
266,
12,
3413,
16,
28797,
7892,
33,
20,
4672,
3536,
31362,
10653,
326,
864,
7195,
1109,
2151,
358,
11402,
326,
3982,
981,
364,
279,
2036,
1235,
1177,
434,
326,
7195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3266,
554,
67,
266,
12,
3413,
16,
28797,
7892,
33,
20,
4672,
3536,
31362,
10653,
326,
864,
7195,
1109,
2151,
358,
11402,
326,
3982,
981,
364,
279,
2036,
1235,
1177,
434,
326,
7195,
... |
d[u].append(v) | d[u][v] = a | def rauzy_graph(self, n): r""" Returns the Rauzy graph of the factors of length n of self. | 475cb7fff73a8e5079540a881833d4140abb4165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/475cb7fff73a8e5079540a881833d4140abb4165/word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
767,
89,
21832,
67,
4660,
12,
2890,
16,
290,
4672,
436,
8395,
2860,
326,
534,
8377,
21832,
2667,
434,
326,
14490,
434,
769,
290,
434,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
767,
89,
21832,
67,
4660,
12,
2890,
16,
290,
4672,
436,
8395,
2860,
326,
534,
8377,
21832,
2667,
434,
326,
14490,
434,
769,
290,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.pool.map(func, iterable, chunksize) | return self.pool.map(func, iterable, chunksize) | def map (self, func, iterable, chunksize=None) : if self.enable_multiprocessing : self.pool.map(func, iterable, chunksize) else : map(func, iterable) | 22fb523cb11178bf561cf52ac705b0ff452b9269 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/22fb523cb11178bf561cf52ac705b0ff452b9269/smp_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
261,
2890,
16,
1326,
16,
6087,
16,
23256,
33,
7036,
13,
294,
309,
365,
18,
7589,
67,
5421,
625,
19507,
294,
327,
365,
18,
6011,
18,
1458,
12,
644,
16,
6087,
16,
23256,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
261,
2890,
16,
1326,
16,
6087,
16,
23256,
33,
7036,
13,
294,
309,
365,
18,
7589,
67,
5421,
625,
19507,
294,
327,
365,
18,
6011,
18,
1458,
12,
644,
16,
6087,
16,
23256,
13,
469,
... |
anemic = True | A_signed = A if self.rank() == A_signed.rank(): if use_star: return A.sign_submodule(-sign) else: raise RuntimeError, "Can't get here" V = A_signed.free_module() | def complement(self, bound=None): """ Return the largest Hecke-stable complement of this space. | c47cdc1c671fef9480c8f0aca24dfcf57b4b2aab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/c47cdc1c671fef9480c8f0aca24dfcf57b4b2aab/submodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17161,
12,
2890,
16,
2489,
33,
7036,
4672,
3536,
2000,
326,
12756,
670,
762,
73,
17,
15021,
17161,
434,
333,
3476,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17161,
12,
2890,
16,
2489,
33,
7036,
4672,
3536,
2000,
326,
12756,
670,
762,
73,
17,
15021,
17161,
434,
333,
3476,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
"""Element graphical display """ | """ Element graphical display class. """ | def forget_part(self, part): #bruce 060627 for compatibility with GLPane (for sake of chunk.kill) pass | 7828cbef13f84d50298938f6ae339289db2ec006 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/7828cbef13f84d50298938f6ae339289db2ec006/ThumbView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13776,
67,
2680,
12,
2890,
16,
1087,
4672,
468,
2848,
3965,
374,
4848,
26,
5324,
364,
8926,
598,
10252,
8485,
261,
1884,
272,
911,
434,
2441,
18,
16418,
13,
1342,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13776,
67,
2680,
12,
2890,
16,
1087,
4672,
468,
2848,
3965,
374,
4848,
26,
5324,
364,
8926,
598,
10252,
8485,
261,
1884,
272,
911,
434,
2441,
18,
16418,
13,
1342,
2,
-100,
-100,
-100,
... |
return [PushAllArgs, 'call %s class [mscorlib]System.Math::Abs(%s)' % (type_, type_)] | return [PushAllArgs, 'call %s class [mscorlib]System.Math::Abs(%s)' % (type_, type_), StoreResult] | def _abs(type_): return [PushAllArgs, 'call %s class [mscorlib]System.Math::Abs(%s)' % (type_, type_)] | 3bc32148539b535ef5e95d20a0e177d9680ae8e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3bc32148539b535ef5e95d20a0e177d9680ae8e9/opcodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5113,
12,
723,
67,
4672,
327,
306,
7621,
1595,
2615,
16,
296,
1991,
738,
87,
667,
306,
959,
3850,
2941,
65,
3163,
18,
10477,
2866,
9382,
9275,
87,
2506,
738,
261,
723,
67,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5113,
12,
723,
67,
4672,
327,
306,
7621,
1595,
2615,
16,
296,
1991,
738,
87,
667,
306,
959,
3850,
2941,
65,
3163,
18,
10477,
2866,
9382,
9275,
87,
2506,
738,
261,
723,
67,
16,
6... |
tmp_thumb = os.path.join(tempfile.gettempdir(), "thumb.%s" % ArtworkFormat[book.Artwork.Item(1).Format]) | tmp_thumb = os.path.join(tempfile.gettempdir(), "thumb.%s" % self.ArtworkFormat[book.Artwork.Item(1).Format]) | def _generate_thumbnail(self, book_path, book): ''' Convert iTunes artwork to thumbnail Cache generated thumbnails cache_dir = os.path.join(config_dir, 'caches', 'itunes') ''' | 462b2e6c44751baac6b573b9a8450f4512d05312 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/462b2e6c44751baac6b573b9a8450f4512d05312/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
14904,
12,
2890,
16,
6978,
67,
803,
16,
6978,
4672,
9163,
4037,
277,
56,
27490,
3688,
1252,
358,
9134,
4379,
4374,
30526,
1247,
67,
1214,
273,
1140,
18,
803,
18,
5701,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
14904,
12,
2890,
16,
6978,
67,
803,
16,
6978,
4672,
9163,
4037,
277,
56,
27490,
3688,
1252,
358,
9134,
4379,
4374,
30526,
1247,
67,
1214,
273,
1140,
18,
803,
18,
5701,
1... |
str += self._docstring_to_html(var.descr(), var.uid()) | str += self._docstring_to_html(var.descr(), vuid) vtyp = var.type() hasval = var.has_value() | def _var_details_entry(self, var, container): vname = var.name() vtyp = var.type() hasval = var.has_value() | b57986399a2595e7095d7d67227b7bcda199a18b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/b57986399a2595e7095d7d67227b7bcda199a18b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
6395,
67,
4099,
12,
2890,
16,
569,
16,
1478,
4672,
331,
529,
273,
569,
18,
529,
1435,
7966,
879,
273,
569,
18,
723,
1435,
711,
1125,
273,
569,
18,
5332,
67,
1132,
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,
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,
1401,
67,
6395,
67,
4099,
12,
2890,
16,
569,
16,
1478,
4672,
331,
529,
273,
569,
18,
529,
1435,
7966,
879,
273,
569,
18,
723,
1435,
711,
1125,
273,
569,
18,
5332,
67,
1132,
1435... |
path = "%s/GRB%s/likelihood" % (self.analysis_dir, self.name) system_call(self.name, 'mkdir -p %s/logs'%path) cmd = 'cp %s/lik* %s' % (self.input_dir, path) system_call(self.name, cmd) | def prepare_analysis_directory(self): # # Now create directories and copy a bunch of files # | 49433c72fbd74772bdd0097fb2679094b1f8a56f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/49433c72fbd74772bdd0097fb2679094b1f8a56f/pylal_exttrig_llutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
12746,
67,
5149,
12,
2890,
4672,
468,
468,
4494,
752,
6402,
471,
1610,
279,
25606,
434,
1390,
468,
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,
2911,
67,
12746,
67,
5149,
12,
2890,
4672,
468,
468,
4494,
752,
6402,
471,
1610,
279,
25606,
434,
1390,
468,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
if (np.array(listofkpts) == np.array(grid)).all(): | if grid.shape != listofkpts.shape: return True if (abs(listofkpts - grid) < 1e-6).all(): | def kpts_changed(calc, x): ''' check if kpt grid has changed. we have to take care to generate teh right k-points from x if needed. if a user provides (4,4,4) we need to generate the MP grid, etc... Since i changed the MP code in set_kpts, there is some incompatibility with old jacapo calculations and their MP grids.... | baef2ab3ffa5aa3f01ea578cff532644e8d5b7e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/baef2ab3ffa5aa3f01ea578cff532644e8d5b7e2/changed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
1092,
67,
6703,
12,
12448,
16,
619,
4672,
9163,
866,
309,
417,
337,
3068,
711,
3550,
18,
225,
732,
1240,
358,
4862,
7671,
358,
2103,
6489,
76,
2145,
417,
17,
4139,
628,
619,
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,
417,
1092,
67,
6703,
12,
12448,
16,
619,
4672,
9163,
866,
309,
417,
337,
3068,
711,
3550,
18,
225,
732,
1240,
358,
4862,
7671,
358,
2103,
6489,
76,
2145,
417,
17,
4139,
628,
619,
309,
... |
class Main: def GET(self, filename=None): if not filename: | class FutilSearch: def GET(self): params = web.input() try: query = params.query print query except AttributeError: web.header("Content-Type","text/html; charset=utf-8") | def GET(self, query): try: results = remote.search(query) for result in results: print result except socket.error, e: print "Launch the futil server ( futil.ws.wsServer ) and reboot web.py script" | 299fdb146db31f0b4854ed5a0b0757f0bc39a5ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2682/299fdb146db31f0b4854ed5a0b0757f0bc39a5ec/futil-web.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
843,
4672,
775,
30,
1686,
273,
2632,
18,
3072,
12,
2271,
13,
364,
563,
316,
1686,
30,
1172,
563,
1335,
2987,
18,
1636,
16,
425,
30,
1172,
315,
9569,
326,
284,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
843,
4672,
775,
30,
1686,
273,
2632,
18,
3072,
12,
2271,
13,
364,
563,
316,
1686,
30,
1172,
563,
1335,
2987,
18,
1636,
16,
425,
30,
1172,
315,
9569,
326,
284,
136... |
if dset in extract: | if dset in extract: | def get_extract(fname): """Get extract of Task file. @param fname: name of Task file @type fname: string @return: datasets from Task file @rtype: dict of lists """ extract = {} try: h5 = h5py.File(fname, 'r') except: return extract form_fields = ['train_idx', 'test_idx', 'input_variables', 'output_variables', 'perfor... | 03ecd5943db4f7f975ba7af40bdff84d0e42a047 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/03ecd5943db4f7f975ba7af40bdff84d0e42a047/task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8004,
12,
12749,
4672,
3536,
967,
2608,
434,
3837,
585,
18,
225,
632,
891,
5299,
30,
508,
434,
3837,
585,
632,
723,
5299,
30,
533,
632,
2463,
30,
11109,
628,
3837,
585,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8004,
12,
12749,
4672,
3536,
967,
2608,
434,
3837,
585,
18,
225,
632,
891,
5299,
30,
508,
434,
3837,
585,
632,
723,
5299,
30,
533,
632,
2463,
30,
11109,
628,
3837,
585,
632,
... |
"paste.webkit.FakeWebware.MiscUtils"], | "paste.webkit.FakeWebware.MiscUtils", "paste.servers", "paste.servers.scgi_server", "paste.wareweb"], | def get_data_files(path, files = []): l = [] for name in os.listdir(path): if name[0] == ".": continue relpath = os.path.join(path, name) f = os.path.join(BASEDIR, relpath) if os.path.isdir(f): get_data_files(relpath, files) elif os.path.isfile(f): l.append(f) pref = sysconfig.get_python_lib()[len(sysconfig.PREFIX) + 1... | 8f1cfee594580583a33fa4a041d3335ebd8c9d79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/8f1cfee594580583a33fa4a041d3335ebd8c9d79/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
67,
2354,
12,
803,
16,
1390,
273,
5378,
4672,
328,
273,
5378,
364,
508,
316,
1140,
18,
1098,
1214,
12,
803,
4672,
309,
508,
63,
20,
65,
422,
4585,
30,
1324,
14614,
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,
336,
67,
892,
67,
2354,
12,
803,
16,
1390,
273,
5378,
4672,
328,
273,
5378,
364,
508,
316,
1140,
18,
1098,
1214,
12,
803,
4672,
309,
508,
63,
20,
65,
422,
4585,
30,
1324,
14614,
273,... |
if logfile: | if os.path.isfile(logfile): | def dumpTestLogs(log, logfile): if logfile: log.write("chandler.log: [%s]\n" % logfile) try: CopyLog(logfile, log) except: pass log.write(separator) | 18b5a7cc16e1be8fff4b3db47ea67852322bf85b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/18b5a7cc16e1be8fff4b3db47ea67852322bf85b/newchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
4709,
7777,
12,
1330,
16,
15204,
4672,
309,
1140,
18,
803,
18,
291,
768,
12,
28806,
4672,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
30,
9799,
87,
13944,
82,
6,
738,
15204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
4709,
7777,
12,
1330,
16,
15204,
4672,
309,
1140,
18,
803,
18,
291,
768,
12,
28806,
4672,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
30,
9799,
87,
13944,
82,
6,
738,
15204,
... |
sock_address.sin_port = htons (port) | sock_address.sin_port = htons(port) | def land_net_connect(LandNet *self, char const *address): struct sockaddr_in sock_address char *host int port # Resolve hostname. struct hostent *hostinfo if self->state != LAND_NET_INVALID: return self->remote_address = strdup (address) split_address (address, &host, &port) if not (hostinfo = gethostbyname (host))... | 592872e308788b926d7358eb0ec411e83ee451d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/930/592872e308788b926d7358eb0ec411e83ee451d0/net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19193,
67,
2758,
67,
3612,
12,
29398,
7308,
380,
2890,
16,
1149,
1866,
380,
2867,
4672,
1958,
7313,
4793,
67,
267,
7313,
67,
2867,
1149,
380,
2564,
509,
1756,
225,
468,
9910,
5199,
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,
19193,
67,
2758,
67,
3612,
12,
29398,
7308,
380,
2890,
16,
1149,
1866,
380,
2867,
4672,
1958,
7313,
4793,
67,
267,
7313,
67,
2867,
1149,
380,
2564,
509,
1756,
225,
468,
9910,
5199,
18,
... |
x - self.panX, | x - self.panX, | def moveCursorToMouse( self, x, y): | 975775e065478d2f96eab880f848531975e80186 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12485/975775e065478d2f96eab880f848531975e80186/tiledrawingarea.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
6688,
774,
9186,
12,
365,
16,
619,
16,
677,
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,
... | [
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,
3635,
6688,
774,
9186,
12,
365,
16,
619,
16,
677,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
data_file = open( os.path.join(self.build_base, | data_file = open(os.path.join(self.build_base, | def update_pathconfig(self): # Write the new location to the pathconfig.py file. pathconfig = os.path.join(self.build_lib, self.package, 'pathconfig.py') if self.datafile_dir is None: # Make sure that we have installed the data files self.run_command('install_data') # Get the location of the installed data try: data_fi... | 7e86c9ed7a2671f488d0391e7d7ede4a68f750b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/7e86c9ed7a2671f488d0391e7d7ede4a68f750b4/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
803,
1425,
12,
2890,
4672,
468,
2598,
326,
394,
2117,
358,
326,
589,
1425,
18,
2074,
585,
18,
589,
1425,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3510,
67,
2941,
16,
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,
1089,
67,
803,
1425,
12,
2890,
4672,
468,
2598,
326,
394,
2117,
358,
326,
589,
1425,
18,
2074,
585,
18,
589,
1425,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3510,
67,
2941,
16,
365... |
sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, (_sage_const_1 .._sage_const_5 )]' | sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, R0.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, R0.1, (_sage_const_1 .._sage_const_5 )]' | def extract_numeric_literals(code): """ To eliminate the re-parsing and creation of numeric literals (e.g. during every iteration of a loop) we wish to pull them out and assign them to global variables. This function takes a block of code and returns a new block of code with literals replaced by variable names, as wel... | 2ad14cdfab4d14103fa42cfdf8aa85a475090d79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2ad14cdfab4d14103fa42cfdf8aa85a475090d79/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302... |
if newer( [ TEMPLATE + suffix, src_abs ], dst_abs ): | if newer( [ TEMPLATE + lang, src_abs ], dst_abs ): | def processWWW( src, depth ): src = os.path.normpath( src ) prefix = os.path.splitext( src )[0] suffix = os.path.splitext( src )[1][1:] if suffix != 'en': return for lang in LANGUAGES: if lang == 'en': dst = prefix + '.php' dst_depth = depth else: dst = lang + '/' + prefix + '.php' dst_depth = depth + 1 src = alt... | ef9060fe13b5f65cfdf484863954a4a25846ba85 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/ef9060fe13b5f65cfdf484863954a4a25846ba85/buildit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
19989,
59,
12,
1705,
16,
3598,
262,
30,
1705,
377,
273,
1140,
18,
803,
18,
7959,
803,
12,
1705,
262,
225,
1633,
273,
1140,
18,
803,
18,
4939,
408,
12,
1705,
262,
63,
20,
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,
1207,
19989,
59,
12,
1705,
16,
3598,
262,
30,
1705,
377,
273,
1140,
18,
803,
18,
7959,
803,
12,
1705,
262,
225,
1633,
273,
1140,
18,
803,
18,
4939,
408,
12,
1705,
262,
63,
20,
65,
... |
`errors.InvalidOS` exception, detailing why this is not a valid OS. | L{errors.InvalidOS} exception, detailing why this is not a valid OS. | def OSFromDisk(name, base_dir=None): """Create an OS instance from disk. This function will return an OS instance if the given name is a valid OS name. Otherwise, it will raise an appropriate `errors.InvalidOS` exception, detailing why this is not a valid OS. @type base_dir: string @keyword base_dir: Base directory c... | 10c2650b20cea3203db19baa02cca416127a3cea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/10c2650b20cea3203db19baa02cca416127a3cea/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5932,
1265,
6247,
12,
529,
16,
1026,
67,
1214,
33,
7036,
4672,
3536,
1684,
392,
5932,
791,
628,
4234,
18,
225,
1220,
445,
903,
327,
392,
5932,
791,
309,
326,
864,
508,
353,
279,
923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5932,
1265,
6247,
12,
529,
16,
1026,
67,
1214,
33,
7036,
4672,
3536,
1684,
392,
5932,
791,
628,
4234,
18,
225,
1220,
445,
903,
327,
392,
5932,
791,
309,
326,
864,
508,
353,
279,
923,
... |
self.icon = gio.File('temp.svg').icon_new() | self.icon = gio.FileIcon(gio.File('temp.svg')) | def setUp(self): self.file = open('temp.svg', 'w') self.svg = ('<?xml version="1.0" encoding="UTF-8" standalone="no"?>' '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" ' '"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">' '<svg width="32" height="32"/>') self.file.write(self.svg) self.file.close() self.icon =... | 38848aaa4ffecf6cccf576df496d41f4ce984579 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8659/38848aaa4ffecf6cccf576df496d41f4ce984579/test_gicon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
768,
273,
1696,
2668,
5814,
18,
11451,
2187,
296,
91,
6134,
365,
18,
11451,
273,
7707,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
5159,
17,
28,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
768,
273,
1696,
2668,
5814,
18,
11451,
2187,
296,
91,
6134,
365,
18,
11451,
273,
7707,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
5159,
17,
28,... |
try: db=self._jar.db() | try: db=self._p_jar.db() | def manage_Discard__draft__(self, REQUEST=None): 'Discard changes made during the version' try: db=self._jar.db() except: # BoboPOS 2 Globals.VersionBase[self._version].abort() else: # ZODB 3 db.abortVersion(self._version) | cf3c265aff25100bf9c83bace0cb95b70b951c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/cf3c265aff25100bf9c83bace0cb95b70b951c95/Draft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
14185,
972,
17153,
972,
12,
2890,
16,
12492,
33,
7036,
4672,
296,
14185,
3478,
7165,
4982,
326,
1177,
11,
775,
30,
1319,
33,
2890,
6315,
84,
67,
11930,
18,
1966,
1435,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
14185,
972,
17153,
972,
12,
2890,
16,
12492,
33,
7036,
4672,
296,
14185,
3478,
7165,
4982,
326,
1177,
11,
775,
30,
1319,
33,
2890,
6315,
84,
67,
11930,
18,
1966,
1435,
1335,
... |
if inspect.ismodule(obj): qualifier = 'mod' | def append_row(*column_texts): row = nodes.row('') for text in column_texts: node = nodes.paragraph('') vl = ViewList() vl.append(text, '<autosummary>') state.nested_parse(vl, 0, node) row.append(nodes.entry('', node)) body.append(row) | 034aae40bf31f7cd7d7a4706e0ea8047241cd123 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/034aae40bf31f7cd7d7a4706e0ea8047241cd123/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
492,
30857,
2827,
67,
26256,
4672,
1027,
273,
2199,
18,
492,
2668,
6134,
364,
977,
316,
1057,
67,
26256,
30,
756,
273,
2199,
18,
22445,
2668,
6134,
19755,
273,
4441,
682,
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,
714,
67,
492,
30857,
2827,
67,
26256,
4672,
1027,
273,
2199,
18,
492,
2668,
6134,
364,
977,
316,
1057,
67,
26256,
30,
756,
273,
2199,
18,
22445,
2668,
6134,
19755,
273,
4441,
682,
1435,
... | |
DESTINATION_CODE=str(the_waybill.destinationWarehouse.ORG_CODE) PRO_ACTIVITY_CODE="" ACTIVITY_OUC="" LNDARRM_CODE="" | DESTINATION_CODE=unicode(the_waybill.destinationWarehouse.ORG_CODE) PRO_ACTIVITY_CODE=u"" ACTIVITY_OUC=u"" LNDARRM_CODE=u"" | def write_dispatch_waybill_compass(self,waybill_id): db = cx_Oracle.Connection("TESTJERX001/TESTJERX001@//10.11.216.4:1521/JERX001") cursor = db.cursor()#connections['compas'].cursor() self.ErrorMessages = '' self.ErrorCodes = '' # gather wb info the_waybill = Waybill.objects.get(id=waybill_id) lineItems = the_waybil... | c497ff3c7ca806866130c41e5403acfcbf770652 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/c497ff3c7ca806866130c41e5403acfcbf770652/compas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
10739,
67,
1888,
17240,
67,
2919,
428,
12,
2890,
16,
1888,
17240,
67,
350,
4672,
1319,
273,
9494,
67,
23601,
18,
1952,
2932,
16961,
46,
654,
60,
11664,
19,
16961,
46,
654,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10739,
67,
1888,
17240,
67,
2919,
428,
12,
2890,
16,
1888,
17240,
67,
350,
4672,
1319,
273,
9494,
67,
23601,
18,
1952,
2932,
16961,
46,
654,
60,
11664,
19,
16961,
46,
654,
60... |
self.msgText("compare signals got a None for a signal\n") | self.msgText("compare signals got a None for new signal state\n") | def compareSignalAspects(self, oldSigState, newSigState) : ret = "0" if (newSigState == None or oldSigState == None) : # this is wrong self.msgText("compare signals got a None for a signal\n") self.doHalt() return newSigValue = self.rankSignalAspect(newSigState) oldSigValue = self.rankSignalAspect(oldSigState) self.msg... | 219951f746f72f6210b1a985c486a3c0fe38a240 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1660/219951f746f72f6210b1a985c486a3c0fe38a240/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
11208,
17468,
87,
12,
2890,
16,
1592,
8267,
1119,
16,
394,
8267,
1119,
13,
294,
325,
273,
315,
20,
6,
309,
261,
2704,
8267,
1119,
422,
599,
578,
1592,
8267,
1119,
422,
599,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
11208,
17468,
87,
12,
2890,
16,
1592,
8267,
1119,
16,
394,
8267,
1119,
13,
294,
325,
273,
315,
20,
6,
309,
261,
2704,
8267,
1119,
422,
599,
578,
1592,
8267,
1119,
422,
599,
13,
... |
try: names = dict(obj.name_get(cr, user, filter(None, res.values()), context)) except except_orm: names = {} iids = filter(None, res.values()) for iiid in iids: names[iiid] = '// Access Denied //' | names = {} for record in list(set(filter(None, res.values()))): try: record_name = dict(obj.name_get(cr, user, [record], context)) except except_orm: record_name = {} record_name[record] = '// Access Denied //' names.update(record_name) | def get(self, cr, obj, ids, name, user=None, context=None, values=None): if not context: context = {} if not values: values = {} res = {} for r in values: res[r['id']] = r[name] for id in ids: res.setdefault(id, '') obj = obj.pool.get(self._obj) # build a dictionary of the form {'id_of_distant_resource': name_of_distan... | 5a3cca40c9c9b6ef7546092be35d81f864279177 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5a3cca40c9c9b6ef7546092be35d81f864279177/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
4422,
16,
1081,
16,
3258,
16,
508,
16,
729,
33,
7036,
16,
819,
33,
7036,
16,
924,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
924,
30,
924,
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,
336,
12,
2890,
16,
4422,
16,
1081,
16,
3258,
16,
508,
16,
729,
33,
7036,
16,
819,
33,
7036,
16,
924,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
924,
30,
924,
273,... |
text='<div tal:content="python: request.get(\'data\')" />', | text=('<div tal:content="python: ' 'request.get(\'data\')" />'), | def testUTF8(self): manage_addPageTemplate(self.app, 'test', text='<div tal:content="python: request.get(\'data\')" />', encoding='ascii') zpt = self.app['test'] self.app.REQUEST.set('HTTP_ACCEPT_CHARSET', 'utf-8,ISO-8859-15') self.app.REQUEST.set('data', unicode('', 'iso-8859-15').encode('utf-8')) result = zpt.pt_rend... | 9ee8932389e2937ac17156196be900f498e09cdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9658/9ee8932389e2937ac17156196be900f498e09cdc/testZopePageTemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5159,
28,
12,
2890,
4672,
10680,
67,
1289,
1964,
2283,
12,
2890,
18,
2910,
16,
296,
3813,
2187,
977,
33,
2668,
32,
2892,
268,
287,
30,
1745,
1546,
8103,
30,
296,
296,
2293,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5159,
28,
12,
2890,
4672,
10680,
67,
1289,
1964,
2283,
12,
2890,
18,
2910,
16,
296,
3813,
2187,
977,
33,
2668,
32,
2892,
268,
287,
30,
1745,
1546,
8103,
30,
296,
296,
2293,
18,
... |
options.package_install_path = os.path.join( configuration.pyqt_mod_dir, 'Qwt5') | if options.module_install_path is None: options.module_install_path = os.path.join( configuration.pyqt_mod_dir, 'Qwt5') | def main(): """Generate the build tree and the Makefiles """ options, args = parse_args() print 'Command line options:' pprint.pprint(options.__dict__) print configuration = get_pyqt_configuration(options) options = check_sip(configuration, options) options = check_os(configuration, options) options = check_compiler... | 09bf48c73c72e129eff97709f2eed689d372830a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5650/09bf48c73c72e129eff97709f2eed689d372830a/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
4625,
326,
1361,
2151,
471,
326,
4344,
2354,
3536,
702,
16,
833,
273,
1109,
67,
1968,
1435,
225,
1172,
296,
2189,
980,
702,
2497,
18771,
18,
84,
1188,
12,
2116,
16186,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
4625,
326,
1361,
2151,
471,
326,
4344,
2354,
3536,
702,
16,
833,
273,
1109,
67,
1968,
1435,
225,
1172,
296,
2189,
980,
702,
2497,
18771,
18,
84,
1188,
12,
2116,
16186,... |
if __debug__: | global _debug if _debug: | def __del__(self): if __debug__: print "Destroying RDF.stream" Redland.librdf_free_stream(self.stream) | 9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
2552,
389,
4148,
309,
389,
4148,
30,
1172,
315,
10740,
310,
13539,
18,
3256,
6,
4621,
15733,
18,
2941,
19299,
67,
9156,
67,
3256,
12,
2890,
18,
3256,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
2552,
389,
4148,
309,
389,
4148,
30,
1172,
315,
10740,
310,
13539,
18,
3256,
6,
4621,
15733,
18,
2941,
19299,
67,
9156,
67,
3256,
12,
2890,
18,
3256,
1... |
self.expect("expression (int)[id length]", | self.expect("expression (int)[str_id length]", | def NSString_expr(self): """Test expression commands for NSString.""" exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) | 75b9e95b5a6f189e3c2f1d89758a45fea41aa612 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/75b9e95b5a6f189e3c2f1d89758a45fea41aa612/TestObjCMethods2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11472,
780,
67,
8638,
12,
2890,
4672,
3536,
4709,
2652,
4364,
364,
11472,
780,
12123,
15073,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
315,
69,
18,
659,
7923,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11472,
780,
67,
8638,
12,
2890,
4672,
3536,
4709,
2652,
4364,
364,
11472,
780,
12123,
15073,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
11089,
9334,
315,
69,
18,
659,
7923,
365,
1... |
('buffer', c_ubyte * 262144)] | ('buffer', c_ubyte * 16384)] | def close(self): asyncore.dispatcher.close(self) if self.server.socket_map != None: self.del_channel(self.server.socket_map) self.has_request = False self.has_response = False self.input_buffer = [] self.output_buffer = '' if self.server != None: # put it in inactive request handlers queue self.server.rh_queue.put(self... | 0d51deb44c49226d83af37f7a9b4114bcb1b2b06 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2504/0d51deb44c49226d83af37f7a9b4114bcb1b2b06/asyncserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
4326,
479,
18,
18495,
18,
4412,
12,
2890,
13,
309,
365,
18,
3567,
18,
7814,
67,
1458,
480,
599,
30,
365,
18,
3771,
67,
4327,
12,
2890,
18,
3567,
18,
7814,
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,
1746,
12,
2890,
4672,
4326,
479,
18,
18495,
18,
4412,
12,
2890,
13,
309,
365,
18,
3567,
18,
7814,
67,
1458,
480,
599,
30,
365,
18,
3771,
67,
4327,
12,
2890,
18,
3567,
18,
7814,
67,
... |
code, modname = compilesuite(suite, major, minor, language, script, fname, basepackage) if modname: suitelist.append((code, modname)) | code, suite, fss, modname, precompinfo = precompilesuite(suite, basepackage) if not code: continue allprecompinfo = allprecompinfo + precompinfo suiteinfo = suite, fss, modname suitelist.append((code, modname)) allsuites.append(suiteinfo) for suiteinfo in allsuites: compilesuite(suiteinfo, major, minor, language, scrip... | def compileaete(aete, resinfo, fname): """Generate code for a full aete resource. fname passed for doc purposes""" [version, language, script, suites] = aete major, minor = divmod(version, 256) fss = macfs.FSSpec(fname) creatorsignature, dummy = fss.GetCreatorType() packagename = identify(os.path.basename(fname)) if la... | 0d0698fa0adf7267f5ec2fc36990cfe728e31744 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0d0698fa0adf7267f5ec2fc36990cfe728e31744/gensuitemodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
69,
12865,
12,
69,
12865,
16,
400,
1376,
16,
5299,
4672,
3536,
4625,
981,
364,
279,
1983,
279,
12865,
1058,
18,
5299,
2275,
364,
997,
13694,
8395,
306,
1589,
16,
2653,
16,
2728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
69,
12865,
12,
69,
12865,
16,
400,
1376,
16,
5299,
4672,
3536,
4625,
981,
364,
279,
1983,
279,
12865,
1058,
18,
5299,
2275,
364,
997,
13694,
8395,
306,
1589,
16,
2653,
16,
2728,
... |
_DATE_UPDATED_FIELD = 'dateupdated:' | _DATE_UPDATED_FIELD = 'datemodified:' | def parse(self, token_list, variable_substitution_dict=None): """Make token_list consumable by search_engine. | f0a66215d07410de7e57947a06e5ff3a279a1455 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/f0a66215d07410de7e57947a06e5ff3a279a1455/search_engine_query_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1147,
67,
1098,
16,
2190,
67,
1717,
14278,
67,
1576,
33,
7036,
4672,
3536,
6464,
1147,
67,
1098,
7389,
429,
635,
1623,
67,
8944,
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,
1109,
12,
2890,
16,
1147,
67,
1098,
16,
2190,
67,
1717,
14278,
67,
1576,
33,
7036,
4672,
3536,
6464,
1147,
67,
1098,
7389,
429,
635,
1623,
67,
8944,
18,
2,
-100,
-100,
-100,
-100,
-100... |
variants = config.get("variants", {}) settings = config.get("settings", {}) | self._config = config self._console = console self._variants = {} self._settings = {} | def __init__(self, config, console): variants = config.get("variants", {}) settings = config.get("settings", {}) require = config.get("require", {}) use = config.get("use", {}) print variants print settings | 1240876ee6a7697d6993720a0c83c4857c077188 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/1240876ee6a7697d6993720a0c83c4857c077188/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
16,
2983,
4672,
365,
6315,
1425,
273,
642,
365,
6315,
8698,
273,
2983,
365,
6315,
15886,
273,
2618,
365,
6315,
4272,
273,
2618,
225,
2583,
273,
642,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
642,
16,
2983,
4672,
365,
6315,
1425,
273,
642,
365,
6315,
8698,
273,
2983,
365,
6315,
15886,
273,
2618,
365,
6315,
4272,
273,
2618,
225,
2583,
273,
642,
... |
som1=hlr_test.generate_som() | som1 = hlr_test.generate_som() | def create_E_vs_Q(obj,E,k,px_separate=True,*args,**kwargs): """ This functions takes a SOM with a wavelength axis, energy and wavevector tuples and turns the SOs contained in the SOM to 2D SOs with E and Q axes. Parameters: ---------- -> obj is the input SOM -> E (E_f for IGS) is an energy tuple (value, err2) -> k (k_... | cf46b3f0500e4ffd75f0e930b33e4c4cb1695688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/cf46b3f0500e4ffd75f0e930b33e4c4cb1695688/hlr_create_E_vs_Q.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
41,
67,
6904,
67,
53,
12,
2603,
16,
41,
16,
79,
16,
4430,
67,
16627,
340,
33,
5510,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
4186,
5530,
279,
348,
1872,
598,
279,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
41,
67,
6904,
67,
53,
12,
2603,
16,
41,
16,
79,
16,
4430,
67,
16627,
340,
33,
5510,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
4186,
5530,
279,
348,
1872,
598,
279,
21... |
BonsaiParser(StringIO(duplicateLogResult)) | BonsaiParser(duplicateLogResult) | def testDuplicateLogResult(self): try: BonsaiParser(StringIO(duplicateLogResult)) self.fail(badResultMsgs["duplicateLogResult"]) except InvalidResultError: pass | e8c5b2518f8dd78458b246b52a5fef3b92cc2416 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/e8c5b2518f8dd78458b246b52a5fef3b92cc2416/test_bonsaipoller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
11826,
1343,
1253,
12,
2890,
4672,
775,
30,
605,
7008,
10658,
2678,
12,
17342,
1343,
1253,
13,
365,
18,
6870,
12,
8759,
1253,
17949,
9614,
17342,
1343,
1253,
6,
5717,
1335,
1962,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
11826,
1343,
1253,
12,
2890,
4672,
775,
30,
605,
7008,
10658,
2678,
12,
17342,
1343,
1253,
13,
365,
18,
6870,
12,
8759,
1253,
17949,
9614,
17342,
1343,
1253,
6,
5717,
1335,
1962,
1... |
class CoincDefTable(DBTable): tableName = lsctables.CoincDefTable.tableName validcolumns = lsctables.CoincDefTable.validcolumns constraints = lsctables.CoincDefTable.constraints next_id = lsctables.CoincDefTable.next_id RowType = lsctables.CoincDefTable.RowType how_to_index = lsctables.CoincDefTable.how_to_index de... | def iterkeys(self): raise NotImplementedError | a0c9c1feaa7a56243c1a1ade1051ac9f54743552 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/a0c9c1feaa7a56243c1a1ade1051ac9f54743552/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31664,
12,
2890,
4672,
1002,
11206,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31664,
12,
2890,
4672,
1002,
11206,
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,
... | |
if rpms: | if deps: | def searchDep(name, flag, version, rpms): ret = [] if rpms: if not isinstance(version, TupleType): evr = evrSplit(version) else: evr = version for (f, v, rpm) in rpms: if rpm in ret: continue if version == "" or rangeCompare(flag, evr, f, evrSplit(v)): ret.append(rpm) elif v == "": if rpm.strict: print "Warning:", rpm.... | 1fec9a43376b6b9bfe41360a3ad6f07af8f8af71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/1fec9a43376b6b9bfe41360a3ad6f07af8f8af71/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
16316,
12,
529,
16,
2982,
16,
1177,
16,
8715,
959,
4672,
325,
273,
5378,
309,
8740,
30,
309,
486,
1549,
12,
1589,
16,
7257,
559,
4672,
2113,
86,
273,
2113,
86,
5521,
12,
1589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
16316,
12,
529,
16,
2982,
16,
1177,
16,
8715,
959,
4672,
325,
273,
5378,
309,
8740,
30,
309,
486,
1549,
12,
1589,
16,
7257,
559,
4672,
2113,
86,
273,
2113,
86,
5521,
12,
1589,
... |
cleanables=["/etc/resolv.conf","/var/tmp/*","/tmp/*","/root/*","/root/.*"] | cleanables=["/etc/resolv.conf","/var/tmp/*","/tmp/*","/root/*"] | def clean(self): destpath=self.settings["chroot_path"] cleanables=["/etc/resolv.conf","/var/tmp/*","/tmp/*","/root/*","/root/.*"] if self.settings["target"] not in ["livecd-stage2"]: #we don't need to clean up a livecd-stage2 cleanables.append("/usr/portage") if self.settings["target"]=="stage1": destpath+="/tmp/stage... | 849462fe50a8e980c0543a9101c5c9c7349dfea4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/849462fe50a8e980c0543a9101c5c9c7349dfea4/targets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
4672,
1570,
803,
33,
2890,
18,
4272,
9614,
343,
3085,
67,
803,
11929,
225,
2721,
1538,
33,
9614,
19,
14175,
19,
7818,
90,
18,
3923,
15937,
19,
1401,
19,
5645,
20308,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
4672,
1570,
803,
33,
2890,
18,
4272,
9614,
343,
3085,
67,
803,
11929,
225,
2721,
1538,
33,
9614,
19,
14175,
19,
7818,
90,
18,
3923,
15937,
19,
1401,
19,
5645,
20308,
15... |
if href not in self.manifest.hrefs: | path, frag = urldefrag(href) if path not in self.manifest.hrefs: | def _guide_from_opf(self, opf): self.guide = guide = Guide(self) for elem in xpath(opf, '/o2:package/o2:guide/o2:reference'): href = elem.get('href') if href not in self.manifest.hrefs: self.logger.log_warn(u'Guide reference %r not found' % href) continue guide.add(elem.get('type'), elem.get('title'), href) | 46c52b3bb56aae896d899445edfaa4e1e061833f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/46c52b3bb56aae896d899445edfaa4e1e061833f/oeb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12118,
67,
2080,
67,
556,
74,
12,
2890,
16,
1061,
74,
4672,
365,
18,
12118,
273,
7343,
273,
13018,
12,
2890,
13,
364,
3659,
316,
6748,
12,
556,
74,
16,
1173,
83,
22,
30,
5610,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12118,
67,
2080,
67,
556,
74,
12,
2890,
16,
1061,
74,
4672,
365,
18,
12118,
273,
7343,
273,
13018,
12,
2890,
13,
364,
3659,
316,
6748,
12,
556,
74,
16,
1173,
83,
22,
30,
5610,
... |
if os.path.exists(spawn.SPD_SPAWN_CMD): speechd_server = subprocess.Popen([spawn.SPD_SPAWN_CMD], stdin=None, stdout=subprocess.PIPE, stderr=None) | if os.path.exists(paths.SPD_SPAWN_CMD): speechd_server = subprocess.Popen([paths.SPD_SPAWN_CMD], stdin=None, stdout=subprocess.PIPE, stderr=None) | def speechd_server_spawn(self): """Attempts to spawn the speech-dispatcher server.""" if os.path.exists(spawn.SPD_SPAWN_CMD): speechd_server = subprocess.Popen([spawn.SPD_SPAWN_CMD], stdin=None, stdout=subprocess.PIPE, stderr=None) return speechd_server.communicate()[0].rstrip('\n') | 43c2be93bd652e5c83ba08da82f9dc9a5da5244f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7484/43c2be93bd652e5c83ba08da82f9dc9a5da5244f/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24556,
72,
67,
3567,
67,
1752,
9533,
12,
2890,
4672,
3536,
10113,
358,
12560,
326,
24556,
17,
18495,
1438,
12123,
309,
1140,
18,
803,
18,
1808,
12,
4481,
18,
3118,
40,
67,
3118,
37,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24556,
72,
67,
3567,
67,
1752,
9533,
12,
2890,
4672,
3536,
10113,
358,
12560,
326,
24556,
17,
18495,
1438,
12123,
309,
1140,
18,
803,
18,
1808,
12,
4481,
18,
3118,
40,
67,
3118,
37,
56... |
self._preTest() | def __call__(self, result=None): if result is None: result = self.defaultTestResult() writer = CaptureWriter() self._preTest() writer.capture() try: unittest.FunctionTestCase.__call__(self, result) finally: writer.release() self._postTest(result) self.checkOutput(writer.get_captured(), result) | 401af4e5b82d1801963b1a20fd4f8fa0884dc514 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/401af4e5b82d1801963b1a20fd4f8fa0884dc514/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
2633,
273,
18477,
2289,
1435,
225,
2633,
18,
19250,
1435,
775,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
2633,
273,
18477,
2289,
1435,
225,
2633,
18,
19250,
1435,
775,
30... | |
labels -- if False, each edge is a tuple (u,v) of vertices. | labels -- (bool; default: True) if False, each edge is a tuple (u,v) of vertices. sort -- (bool; default: True) if True, ensure that the list of edges is sorted. OUTPUT: A list of tuples. It is safe to change the returned list. | def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- if False, each edge is a tuple (u,v) of vertices. EXAMPLES: sage: graphs.DodecahedralGraph().edges() [(0, 1, None), (0, 10, None), (0, 19, None), (1, 8, None), (1, 2, N... | ebfb16afd1874bedbdd15e0f04398ba404f83477 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ebfb16afd1874bedbdd15e0f04398ba404f83477/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
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,
5231,
12,
2890,
16,
3249,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
353... |
version = "0.0.0", | version = version, | def filter_images (image): return image.startswith ("plugin-") or image.startswith ("category-") | 00b22a32371873d2bfd9cbed5c80e0bbab7682eb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7183/00b22a32371873d2bfd9cbed5c80e0bbab7682eb/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
7369,
261,
2730,
4672,
327,
1316,
18,
17514,
1918,
7566,
4094,
17,
7923,
578,
1316,
18,
17514,
1918,
7566,
4743,
17,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
7369,
261,
2730,
4672,
327,
1316,
18,
17514,
1918,
7566,
4094,
17,
7923,
578,
1316,
18,
17514,
1918,
7566,
4743,
17,
7923,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
sage: EllipticCurve('14a4').sha_an(use_database=True) | sage: EllipticCurve('14a4').sha_an(use_database=True) | def sha_an(self, use_database=False): """ Returns the Birch and Swinnerton-Dyer conjectural order of Sha as a provably corret integer, unless the analytic rank is > 1, in which case this function returns a numerical value. | d61e20ab95dcae0adf139cfaf4ff8a568d208514 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d61e20ab95dcae0adf139cfaf4ff8a568d208514/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6056,
67,
304,
12,
2890,
16,
999,
67,
6231,
33,
8381,
4672,
3536,
2860,
326,
605,
481,
343,
471,
5434,
267,
82,
1051,
265,
17,
40,
93,
264,
356,
937,
3766,
1353,
434,
2638,
69,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6056,
67,
304,
12,
2890,
16,
999,
67,
6231,
33,
8381,
4672,
3536,
2860,
326,
605,
481,
343,
471,
5434,
267,
82,
1051,
265,
17,
40,
93,
264,
356,
937,
3766,
1353,
434,
2638,
69,
487,
... |
Result: A list of Component objects on success or a dictionary containing values for the keys, "faultCode" and "faultString". | Result: A list of Component objects on success | def testplan_get_components(self, plan_id): """Get A List of Components For An Existing Test Plan. | 83012e559756373ef19add9ed3d26f1bf779a22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/231/83012e559756373ef19add9ed3d26f1bf779a22c/testopia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7088,
67,
588,
67,
8119,
12,
2890,
16,
4995,
67,
350,
4672,
3536,
967,
432,
987,
434,
25286,
2457,
1922,
28257,
7766,
12540,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
7088,
67,
588,
67,
8119,
12,
2890,
16,
4995,
67,
350,
4672,
3536,
967,
432,
987,
434,
25286,
2457,
1922,
28257,
7766,
12540,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for p in range(0,len(self.path_list)): if self.path_list[p] is not str: | for p in self.path_list: if type(p) is not str: | def execute_load(self) # Perform validation to ensure that we didn't end up invalid # parameters if self.path_list is not list: raise InvalidMLoadPropException(MLOAD_NOT_LIST) # Only perform an actual import if we have a non-zero list if len(self.path_list) is not 0: # Perform validation of the content of the path_lis... | 75dbf626c3b697e568752995866893479a555cae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/75dbf626c3b697e568752995866893479a555cae/moduleloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
945,
12,
2890,
13,
468,
11217,
3379,
358,
3387,
716,
732,
10242,
1404,
679,
731,
2057,
468,
1472,
309,
365,
18,
803,
67,
1098,
353,
486,
666,
30,
1002,
1962,
1495,
6189,
4658... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
945,
12,
2890,
13,
468,
11217,
3379,
358,
3387,
716,
732,
10242,
1404,
679,
731,
2057,
468,
1472,
309,
365,
18,
803,
67,
1098,
353,
486,
666,
30,
1002,
1962,
1495,
6189,
4658... |
version = "%sDIRAC " % e + eval('%sDIRAC.version' % e) +'; '+ version | version = "%sDIRAC " % e + eval( '%sDIRAC.version' % e ) + '; ' + version | def getCurrentVersion(): """ Get a string corresponding to the current version of the DIRAC package and all the installed extension packages """ import DIRAC version = 'DIRAC '+DIRAC.version extensions = gConfig.getOption('/DIRAC/Extensions',[]) for e in extensions['Value']: try: exec "import %sDIRAC" % e version = "... | c6ede79fb040cacb57bf55f97b259927e3788236 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c6ede79fb040cacb57bf55f97b259927e3788236/Version.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5175,
1444,
13332,
3536,
968,
279,
533,
4656,
358,
326,
783,
1177,
434,
326,
18544,
2226,
2181,
471,
777,
326,
5876,
2710,
5907,
3536,
225,
1930,
18544,
2226,
1177,
273,
296,
4537,
2226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5175,
1444,
13332,
3536,
968,
279,
533,
4656,
358,
326,
783,
1177,
434,
326,
18544,
2226,
2181,
471,
777,
326,
5876,
2710,
5907,
3536,
225,
1930,
18544,
2226,
1177,
273,
296,
4537,
2226,
... |
if role==controlTypes.ROLE_UNKNOWN: if "H1"<=nodeName<="H6": role=controlTypes.ROLE_HEADING level=nodeName[1:] | if "H1"<=nodeName<="H6": level=nodeName[1:] | def _normalizeControlField(self,attrs): level=None accRole=attrs.get('IAccessible::role',0) accRole=int(accRole) if isinstance(accRole,basestring) and accRole.isdigit() else accRole role=IAccessibleHandler.IAccessibleRolesToNVDARoles.get(accRole,controlTypes.ROLE_UNKNOWN) states=set(IAccessibleHandler.IAccessibleStates... | baf6288c7cdbd0dc3d468e5d632d3832f7217457 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/baf6288c7cdbd0dc3d468e5d632d3832f7217457/MSHTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12237,
3367,
974,
12,
2890,
16,
7039,
4672,
1801,
33,
7036,
4078,
2996,
33,
7039,
18,
588,
2668,
45,
10451,
2866,
4615,
2187,
20,
13,
4078,
2996,
33,
474,
12,
8981,
2996,
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,
389,
12237,
3367,
974,
12,
2890,
16,
7039,
4672,
1801,
33,
7036,
4078,
2996,
33,
7039,
18,
588,
2668,
45,
10451,
2866,
4615,
2187,
20,
13,
4078,
2996,
33,
474,
12,
8981,
2996,
13,
309,... |
pwfile.close() password = line.strip() if word == password: self.build() else: MessageBox(_('Password incorrect')).show() return def browse(self, update=False): """ build the items for the directory """ | def pass_cmp_cb(self, word=None): """ read the contents of self.dir/.passwd and compare to word callback for check_password_and_build """ | 25f765dcf37000b9331dffbdf14616ebeae88bbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/25f765dcf37000b9331dffbdf14616ebeae88bbb/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1342,
67,
9625,
67,
7358,
12,
2890,
16,
2076,
33,
7036,
4672,
3536,
855,
326,
2939,
434,
365,
18,
1214,
15865,
24002,
471,
3400,
358,
2076,
1348,
364,
866,
67,
3664,
67,
464,
67,
3510,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1342,
67,
9625,
67,
7358,
12,
2890,
16,
2076,
33,
7036,
4672,
3536,
855,
326,
2939,
434,
365,
18,
1214,
15865,
24002,
471,
3400,
358,
2076,
1348,
364,
866,
67,
3664,
67,
464,
67,
3510,... | |
for diracSE,pfn in lfnReplicas.items(): | for diracSE, pfn in lfnReplicas.items(): | def __resolveBestReplicas(self,sourceSE,lfnReplicas,catalogueSize): ########################################################### # Determine the best replicas (remove banned sources, invalid storage elements and file with the wrong size) configStr = '/Resources/StorageElements/BannedSource' bannedSources = gConfig.getVa... | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10828,
14173,
17248,
12,
2890,
16,
3168,
1090,
16,
80,
4293,
17248,
16,
7199,
344,
1225,
4672,
19709,
5516,
3228,
1189,
468,
10229,
326,
3796,
21545,
261,
4479,
324,
10041,
5550,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10828,
14173,
17248,
12,
2890,
16,
3168,
1090,
16,
80,
4293,
17248,
16,
7199,
344,
1225,
4672,
19709,
5516,
3228,
1189,
468,
10229,
326,
3796,
21545,
261,
4479,
324,
10041,
5550,
16,... |
def __init__ (self): | def __init__ (self, dockbar=None): | def __init__ (self): global PREFDIALOG if PrefDialog.__instance == None: PrefDialog.__instance = self else: PrefDialog.__instance.dialog.present() return | e55a5724d25a08ab1a8b3ca4b24f3a1f9c9d998c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/e55a5724d25a08ab1a8b3ca4b24f3a1f9c9d998c/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
5822,
3215,
33,
7036,
4672,
2552,
7071,
42,
2565,
18683,
309,
28184,
6353,
16186,
1336,
422,
599,
30,
28184,
6353,
16186,
1336,
273,
365,
469,
30,
28184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
5822,
3215,
33,
7036,
4672,
2552,
7071,
42,
2565,
18683,
309,
28184,
6353,
16186,
1336,
422,
599,
30,
28184,
6353,
16186,
1336,
273,
365,
469,
30,
28184,
... |
selector_pat = re.compile(r"([A-Za-z0-9\-\_\:\.]+[A-Za-z0-9\-\_\:\.\s\,]*)\s*\{([^\}]*)\}") | selector_pat = re.compile(r"([A-Za-z0-9\-\_\:\.]+[A-Za-z0-9\-\_\:\.\s\,]*)\s*\{([^\}]*)\}") IGNORED_TAGS = (Comment, Declaration, ProcessingInstruction) | def __init__(self, ns, css, font_delta=0): src = ns.string if hasattr(ns, 'string') else str(ns) src = re.sub(r'\s{2,}', ' ', src) # Remove multiple spaces for pat, repl in Span.rules: src = pat.sub(repl, src) if not src: raise ConversionError('No point in adding an empty string to a Span') if 'font-style' in css.keys... | 379a5f1a5a9e43388d1e30c6f98024d18ea08449 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/379a5f1a5a9e43388d1e30c6f98024d18ea08449/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3153,
16,
3747,
16,
3512,
67,
9878,
33,
20,
4672,
1705,
273,
3153,
18,
1080,
309,
3859,
12,
2387,
16,
296,
1080,
6134,
469,
609,
12,
2387,
13,
1705,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3153,
16,
3747,
16,
3512,
67,
9878,
33,
20,
4672,
1705,
273,
3153,
18,
1080,
309,
3859,
12,
2387,
16,
296,
1080,
6134,
469,
609,
12,
2387,
13,
1705,
27... |
if notification_id == 'add-success': data['customs_notification'] = 'Bugtracker successfully added! Bugs from this tracker should start appearing within 24 hours.' elif notification_id == 'edit-success': data['customs_notification'] = 'Bugtracker successfully edited! New settings should take effect within 24 hours.' el... | notifications = { 'add-success': 'Bugtracker successfully added! Bugs from this tracker should start appearing within 24 hours.', 'edit-success': 'Bugtracker successfully edited! New settings should take effect within 24 hours.', 'delete-success': 'Bugtracker successfully deleted!', 'tracker-existence-fail': 'Hmm, coul... | def list_trackers(request, tracker_types_form=None): data = {} if request.POST: tracker_types_form = mysite.customs.forms.TrackerTypesForm( request.POST, prefix='list_trackers') if tracker_types_form.is_valid(): tracker_type = tracker_types_form.cleaned_data['tracker_type'] if tracker_type == 'bugzilla': trackers = mys... | 0b654fcf204cf662579613f753fbfac41f8252dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/0b654fcf204cf662579613f753fbfac41f8252dc/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4101,
414,
12,
2293,
16,
9745,
67,
2352,
67,
687,
33,
7036,
4672,
501,
273,
2618,
309,
590,
18,
3798,
30,
9745,
67,
2352,
67,
687,
273,
312,
1900,
1137,
18,
3662,
87,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4101,
414,
12,
2293,
16,
9745,
67,
2352,
67,
687,
33,
7036,
4672,
501,
273,
2618,
309,
590,
18,
3798,
30,
9745,
67,
2352,
67,
687,
273,
312,
1900,
1137,
18,
3662,
87,
18,
... |
if not self.stack: for prefix, uri in self.prefixuri.items(): if prefix: attrs[u"xmlns:%s" % prefix] = uri else: attrs[u"xmlns"] = uri | for prefix, uri in self.ns_current: if prefix: attrs["xmlns:%s" % prefix] = uri else: attrs["xmlns"] = uri self.ns_current = [] | def startElement (self, name, attrs): attrs = dict_attrs(attrs) if not self.stack: for prefix, uri in self.prefixuri.items(): if prefix: attrs[u"xmlns:%s" % prefix] = uri else: attrs[u"xmlns"] = uri self.stack.append((wc.filter.xmlfilt.STARTTAG, name, attrs)) item = [wc.filter.xmlfilt.STARTTAG, name, attrs] self.tagbuf... | 857bd7fe261ab64e4383a47818282d5ebf04d521 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/857bd7fe261ab64e4383a47818282d5ebf04d521/XmlFilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
261,
2890,
16,
508,
16,
3422,
4672,
3422,
273,
2065,
67,
7039,
12,
7039,
13,
364,
1633,
16,
2003,
316,
365,
18,
2387,
67,
2972,
30,
309,
1633,
30,
3422,
9614,
16741,
5319,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
261,
2890,
16,
508,
16,
3422,
4672,
3422,
273,
2065,
67,
7039,
12,
7039,
13,
364,
1633,
16,
2003,
316,
365,
18,
2387,
67,
2972,
30,
309,
1633,
30,
3422,
9614,
16741,
5319,
87,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.