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 |
|---|---|---|---|---|---|---|
return item | return self.set_finger_friendly(item) | def for_each_task_set_status(tasks, status): changed_episode_urls = [] for row_reference, task in tasks: if status is not None: if status == download.DownloadTask.QUEUED: # Only queue task when its paused/failed/cancelled if task.status in (task.PAUSED, task.FAILED, task.CANCELLED): self.download_queue_manager.add_task... | 510c784e2954344f295cb7cfc7e22925148e180f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/510c784e2954344f295cb7cfc7e22925148e180f/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
364,
67,
13798,
67,
4146,
67,
542,
67,
2327,
12,
9416,
16,
1267,
4672,
3550,
67,
29687,
67,
10518,
273,
5378,
364,
1027,
67,
6180,
16,
1562,
316,
4592,
30,
309,
1267,
353,
486,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
364,
67,
13798,
67,
4146,
67,
542,
67,
2327,
12,
9416,
16,
1267,
4672,
3550,
67,
29687,
67,
10518,
273,
5378,
364,
1027,
67,
6180,
16,
1562,
316,
4592,
30,
309,
1267,
353,
486,
599,
... |
elif key == AWM_AUTO_HIDE: | elif key == AWN_AUTO_HIDE: | def bool_changed(self, check, key): self.client.set_bool(key, check.get_active()) if key == AWM_KEEP_BELOW: if check.get_active(): self.wTree.get_widget("autohide").set_active(True) else: self.wTree.get_widget("autohide").set_active(False) elif key == AWM_AUTO_HIDE: if not check.get_active(): if self.wTree.get_widget("... | aa272dd4a420adae46f421dc7b30cb26da66c32d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8416/aa272dd4a420adae46f421dc7b30cb26da66c32d/awnPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1426,
67,
6703,
12,
2890,
16,
866,
16,
498,
4672,
365,
18,
2625,
18,
542,
67,
6430,
12,
856,
16,
866,
18,
588,
67,
3535,
10756,
309,
498,
422,
13228,
49,
67,
6859,
10541,
67,
5948,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1426,
67,
6703,
12,
2890,
16,
866,
16,
498,
4672,
365,
18,
2625,
18,
542,
67,
6430,
12,
856,
16,
866,
18,
588,
67,
3535,
10756,
309,
498,
422,
13228,
49,
67,
6859,
10541,
67,
5948,
... |
def makeTree(self, numBounds): | def makeBound( self ) : b1 = V2f( -1, -1 ) b2 = V2f( 1, 1 ) bound = Box2f( b1, b2 ) return bound def makeRandomTree(self, numBounds): | def makeBound( self ) : b1 = V2f( random.random(), random.random() ) b2 = V2f( random.random(), random.random() ) bound = Box2f( b1 ) bound.extendBy( b2 ) return bound | 4ad6372a07364aefd9c635be6abf8692f532b8cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/4ad6372a07364aefd9c635be6abf8692f532b8cb/BoundedKDTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
3499,
12,
365,
262,
294,
324,
21,
273,
776,
22,
74,
12,
2744,
18,
9188,
9334,
2744,
18,
9188,
1435,
262,
324,
22,
273,
776,
22,
74,
12,
2744,
18,
9188,
9334,
2744,
18,
9188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
3499,
12,
365,
262,
294,
324,
21,
273,
776,
22,
74,
12,
2744,
18,
9188,
9334,
2744,
18,
9188,
1435,
262,
324,
22,
273,
776,
22,
74,
12,
2744,
18,
9188,
9334,
2744,
18,
9188,
... |
s = "<td" | css_class = "" url = "" | def render_cell(self, obj): """ Renders the table cell containing column data. """ rendered_data = self.render_data(obj) s = "<td" | 88e532ecfb9f3e56993bd98da84bb2c03beb5954 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6757/88e532ecfb9f3e56993bd98da84bb2c03beb5954/grids.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3855,
12,
2890,
16,
1081,
4672,
3536,
534,
10130,
326,
1014,
2484,
4191,
1057,
501,
18,
3536,
7935,
67,
892,
273,
365,
18,
5902,
67,
892,
12,
2603,
13,
272,
273,
3532,
4465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
67,
3855,
12,
2890,
16,
1081,
4672,
3536,
534,
10130,
326,
1014,
2484,
4191,
1057,
501,
18,
3536,
7935,
67,
892,
273,
365,
18,
5902,
67,
892,
12,
2603,
13,
272,
273,
3532,
4465,
... |
yes = 'bash -c "yes | %s' % cmd | yes = 'bash -c "yes | %s"' % cmd | def create_raid_partition(devices, pnum, mdnum, raidlevel=1): opts = '--create /dev/md%d' % mdnum opts = '%s --force -l%d -n%d' % (opts, raidlevel, len(devices)) devices = ['%s%d' % (device, pnum) for device in devices] cmd = 'mdadm %s %s' % (opts, ' '.join(devices)) yes = 'bash -c "yes | %s' % cmd return runlog(yes) | 2bc6e8eb157bdbfa3e2f8c5058aa2ff420ff6937 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2558/2bc6e8eb157bdbfa3e2f8c5058aa2ff420ff6937/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
354,
350,
67,
10534,
12,
12506,
16,
293,
2107,
16,
3481,
2107,
16,
767,
350,
2815,
33,
21,
4672,
1500,
273,
3534,
2640,
342,
5206,
19,
1264,
9,
72,
11,
738,
3481,
2107,
1500... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
354,
350,
67,
10534,
12,
12506,
16,
293,
2107,
16,
3481,
2107,
16,
767,
350,
2815,
33,
21,
4672,
1500,
273,
3534,
2640,
342,
5206,
19,
1264,
9,
72,
11,
738,
3481,
2107,
1500... |
f_model = field.get("model",'').encode('ascii') | f_model = field.get("model",'').encode('utf-8') | def _tag_record(self, cr, rec, data_node=None): rec_model = rec.get("model").encode('ascii') model = self.pool.get(rec_model) assert model, "The model %s does not exist !" % (rec_model,) rec_id = rec.get("id",'').encode('ascii') rec_context = rec.get("context", None) if rec_context: rec_context = unsafe_eval(rec_contex... | fdabe0f0dbaca61e1dcb395b5df9ce609b1cc6e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fdabe0f0dbaca61e1dcb395b5df9ce609b1cc6e2/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
3366,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
2284,
273,
1950,
18,
588,
2932,
2284,
20387,
3015,
2668,
9184,
6134,
938,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
3366,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
2284,
273,
1950,
18,
588,
2932,
2284,
20387,
3015,
2668,
9184,
6134,
938,
273,
365,
18,
... |
if eventType is wx.EVT_CHAR: processed = False if (event.m_keyCode in set ([wx.WXK_ESCAPE, wx.WXK_TAB, wx.WXK_RETURN, wx.WXK_NUMPAD_ENTER])): gridWindow = sentToWidget.GetParent() if (gridWindow is not None and isinstance (gridWindow.GetParent(), wx.grid.Grid)): event.SetEventObject (gridWindow) gridWindow.Proces... | if (eventType is wx.EVT_KEY_DOWN and event.m_keyCode in set ((wx.WXK_ESCAPE, wx.WXK_TAB, wx.WXK_RETURN, wx.WXK_NUMPAD_ENTER))): gridWindow = sentToWidget.GetParent() if (gridWindow is not None and isinstance (gridWindow.GetParent(), wx.grid.Grid)): event.SetEventObject (gridWindow) gridWindow.ProcessEvent (event) | def NameToWidget (name): """ Given a name, returns the corresponding widget. """ sentTo = None if type (name) is str: if name == "MainFrame": sentTo = application.mainFrame elif name == "__FocusWindow__": sentTo = wx.Window_FindFocus() else: sentTo = Block.findBlockByName (name) if sentTo is not None: sentTo = sentTo.w... | 16e2fc68b6b3e20bc5ba45b33377d60772f29012 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/16e2fc68b6b3e20bc5ba45b33377d60772f29012/script_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1770,
774,
4609,
261,
529,
4672,
3536,
16803,
279,
508,
16,
1135,
326,
4656,
3604,
18,
3536,
3271,
774,
273,
599,
309,
618,
261,
529,
13,
353,
609,
30,
309,
508,
422,
315,
6376,
3219,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1770,
774,
4609,
261,
529,
4672,
3536,
16803,
279,
508,
16,
1135,
326,
4656,
3604,
18,
3536,
3271,
774,
273,
599,
309,
618,
261,
529,
13,
353,
609,
30,
309,
508,
422,
315,
6376,
3219,
... |
except NoOptionError: | except ConfigParser.NoSectionError, ConfigParser.NoOptionError: | def _check_file(self): """Check if the password file has been init properly. """ if os.path.exists(self.file_path): config = ConfigParser.RawConfigParser() config.read(self.file_path) try: self.crypted_password = config.get(_KEYRING_SETTING, _CRYPTED_PASSWORD) return self.crypted_password.strip() != '' except NoOptionE... | 4db5f81323d075df7be0ff60159018fa63f9758f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5209/4db5f81323d075df7be0ff60159018fa63f9758f/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
768,
12,
2890,
4672,
3536,
1564,
309,
326,
2201,
585,
711,
2118,
1208,
8214,
18,
3536,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
768,
67,
803,
4672,
642,
273,
25076,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
768,
12,
2890,
4672,
3536,
1564,
309,
326,
2201,
585,
711,
2118,
1208,
8214,
18,
3536,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
768,
67,
803,
4672,
642,
273,
25076,
... |
return ('UNIX', self.hostname) | return ('UNIX', repr(self.hostname)) | def getPeer(self): return ('UNIX', self.hostname) | b179b298195f5b78c8f637eca6973ab49e6d0b89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b179b298195f5b78c8f637eca6973ab49e6d0b89/unix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29875,
12,
2890,
4672,
327,
7707,
10377,
60,
2187,
365,
18,
10358,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29875,
12,
2890,
4672,
327,
7707,
10377,
60,
2187,
365,
18,
10358,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert ec.verify_dsa(self.data, r, s) assert not ec.verify_dsa(self.data, s, r) | assert ec.verify_dsa(self.data, r, s) assert not ec.verify_dsa(self.data, s, r) | def _test_sign_dsa(self): ec = EC.gen_params(EC.NID_sect233k1) # ec.gen_key() self.assertRaises(EC.ECError, ec.sign_dsa, self.data) ec = EC.load_key(self.privkey) r, s = ec.sign_dsa(self.data) assert ec.verify_dsa(self.data, r, s) # XXX leaks 40 bytes assert not ec.verify_dsa(self.data, s, r) # XXX leaks 40 bytes | 18a4a5df547099feef576f97f6a7fd7c24ef0295 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10522/18a4a5df547099feef576f97f6a7fd7c24ef0295/test_ecdsa.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
2977,
67,
19603,
12,
2890,
4672,
6557,
273,
7773,
18,
4507,
67,
2010,
12,
7228,
18,
50,
734,
67,
5709,
31026,
79,
21,
13,
468,
6557,
18,
4507,
67,
856,
1435,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
2977,
67,
19603,
12,
2890,
4672,
6557,
273,
7773,
18,
4507,
67,
2010,
12,
7228,
18,
50,
734,
67,
5709,
31026,
79,
21,
13,
468,
6557,
18,
4507,
67,
856,
1435,
365,
18,
... |
{'mode':0666, 'backlog':5})) | {'mode':0666, 'backlog':50})) | def testEscape(self): self.assertEqual(strports.parse(r'unix:foo\:bar\=baz\:qux\\', self.f), ('UNIX', ('foo:bar=baz:qux\\', self.f), {'mode':0666, 'backlog':5})) | 67b1d6b02f0fa3aad8d8e3b6f4a7ba811c22853e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/67b1d6b02f0fa3aad8d8e3b6f4a7ba811c22853e/test_strports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
8448,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
701,
4363,
18,
2670,
12,
86,
11,
21136,
30,
11351,
64,
30,
3215,
64,
33,
70,
1561,
64,
30,
372,
92,
1695,
2187,
365,
18,
74,
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,
1842,
8448,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
701,
4363,
18,
2670,
12,
86,
11,
21136,
30,
11351,
64,
30,
3215,
64,
33,
70,
1561,
64,
30,
372,
92,
1695,
2187,
365,
18,
74,
3... |
if not name or ihatexml.nonXmlBMPRegexp.search(name): | if not name or ihatexml.nonXmlBMPRegexp.search(name) or name[0] == '"': | def insertDoctype(self, token): name = token["name"] publicId = token["publicId"] systemId = token["systemId"] | f50fb369182592b6b398fe69ddc6de8721c9b131 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9368/f50fb369182592b6b398fe69ddc6de8721c9b131/etree_lxml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
3244,
12387,
12,
2890,
16,
1147,
4672,
508,
273,
1147,
9614,
529,
11929,
1071,
548,
273,
1147,
9614,
482,
548,
11929,
30083,
273,
1147,
9614,
4299,
548,
11929,
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,
0,
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,
2243,
3244,
12387,
12,
2890,
16,
1147,
4672,
508,
273,
1147,
9614,
529,
11929,
1071,
548,
273,
1147,
9614,
482,
548,
11929,
30083,
273,
1147,
9614,
4299,
548,
11929,
2,
-100,
-100,
-100,
... |
{'Text': ('IdRoute', wxMenu.GetLabel, wxMenu.SetLabel), 'Help': ('IdRoute', wxMenu.GetHelpString, wxMenu.SetHelpString)}) | {'Text': ('IdRoute', wx.Menu.GetLabel, wx.Menu.SetLabel), 'Help': ('IdRoute', wx.Menu.GetHelpString, wx.Menu.SetHelpString)}) | def properties(self): tcl = self.textConstrLst[self.index] if tcl.method in ('Append', 'AppendMenu'): props = CollectionIddDTC.properties(self) props.update( {'Text': ('IdRoute', wxMenu.GetLabel, wxMenu.SetLabel), 'Help': ('IdRoute', wxMenu.GetHelpString, wxMenu.SetHelpString)}) elif tcl.method == 'AppendSeparator': pr... | fe776dc2ca0742866f15794198b01bacb2b96bb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/fe776dc2ca0742866f15794198b01bacb2b96bb2/UtilCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1790,
12,
2890,
4672,
268,
830,
273,
365,
18,
955,
442,
701,
28134,
63,
2890,
18,
1615,
65,
309,
268,
830,
18,
2039,
316,
7707,
5736,
2187,
296,
5736,
4599,
11,
4672,
3458,
273,
2200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1790,
12,
2890,
4672,
268,
830,
273,
365,
18,
955,
442,
701,
28134,
63,
2890,
18,
1615,
65,
309,
268,
830,
18,
2039,
316,
7707,
5736,
2187,
296,
5736,
4599,
11,
4672,
3458,
273,
2200,
... |
param = lsctables.ProcessParams() param.program = process.program param.process_id = process.process_id param.param = str(name) param.type = str(type) param.value = str(value) paramtable.append(param) | row = lsctables.ProcessParams() row.program = process.program row.process_id = process.process_id row.param = str(name) row.type = str(type) row.value = str(value) paramtable.append(row) | def append_process_params(doc, process, params): """ doc is an XML document tree, process is the row in the process table for which these are the parameters, and params is a list of (name, type, value) tuples one for each parameter. """ paramtable = table.get_table(doc, lsctables.ProcessParamsTable.tableName) for name,... | 3fd2e671ef19475b69f33026189986cdcf428ad6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/3fd2e671ef19475b69f33026189986cdcf428ad6/llwapp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
2567,
67,
2010,
12,
2434,
16,
1207,
16,
859,
4672,
3536,
997,
353,
392,
3167,
1668,
2151,
16,
1207,
353,
326,
1027,
316,
326,
1207,
1014,
364,
1492,
4259,
854,
326,
1472,
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,
714,
67,
2567,
67,
2010,
12,
2434,
16,
1207,
16,
859,
4672,
3536,
997,
353,
392,
3167,
1668,
2151,
16,
1207,
353,
326,
1027,
316,
326,
1207,
1014,
364,
1492,
4259,
854,
326,
1472,
16,
... |
print descriptor.label | def static_fields(ordered_descriptors, parameters, internal, label, format): adresses = {} begin = 0 for descriptor in ordered_descriptors: if descriptor.internal == internal: end = begin + reduce(lambda x,y: x*y, descriptor.shape(parameters), 1) adresses[descriptor.label] = (begin, end) end = begin size = end labels ... | c3e6484461e23e3f46915ab02a3f8d953e38fddc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11053/c3e6484461e23e3f46915ab02a3f8d953e38fddc/descriptors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
760,
67,
2821,
12,
9885,
67,
72,
8379,
16,
1472,
16,
2713,
16,
1433,
16,
740,
4672,
1261,
15807,
273,
2618,
2376,
273,
374,
364,
4950,
316,
5901,
67,
72,
8379,
30,
309,
4950,
18,
723... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
760,
67,
2821,
12,
9885,
67,
72,
8379,
16,
1472,
16,
2713,
16,
1433,
16,
740,
4672,
1261,
15807,
273,
2618,
2376,
273,
374,
364,
4950,
316,
5901,
67,
72,
8379,
30,
309,
4950,
18,
723... | |
colSizer.Add(self.errorText, 0, wxEXPAND) | errorTextSizer.Add(self.errorText, 0, wxEXPAND) minsize = self.errorText.GetBestSize() minsize.SetHeight(2*self.errorText.GetBestSize().GetHeight()) errorTextSizer.SetMinSize(minsize) colSizer.Add(errorTextSizer, 0, wxEXPAND) | def __init__(self, flag): frame = wxFrame(None, -1, 'BitTorrent ' + version + ' download', size = wxSize(400, 250)) self.frame = frame self.flag = flag self.uiflag = Event() self.fin = false | 31b206623a387766cda7766ad975d6fdd01ab2af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/31b206623a387766cda7766ad975d6fdd01ab2af/btdownloadgui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2982,
4672,
2623,
273,
7075,
3219,
12,
7036,
16,
300,
21,
16,
296,
5775,
27266,
547,
296,
397,
1177,
397,
296,
4224,
2187,
963,
273,
7075,
1225,
12,
1601... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2982,
4672,
2623,
273,
7075,
3219,
12,
7036,
16,
300,
21,
16,
296,
5775,
27266,
547,
296,
397,
1177,
397,
296,
4224,
2187,
963,
273,
7075,
1225,
12,
1601... |
device_info.append((instance.primary_node, inst_disk.iv_name, result.data)) | device_info.append((instance.primary_node, inst_disk.iv_name, result.payload)) | def _AssembleInstanceDisks(lu, instance, ignore_secondaries=False): """Prepare the block devices for an instance. This sets up the block devices on all nodes. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type instance: L{objects.Instance} @param instance: the instance for whose dis... | 1dff8e07f07ac14ee33d688ea5614904b23ecbb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/1dff8e07f07ac14ee33d688ea5614904b23ecbb4/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1463,
10045,
1442,
22021,
12,
28832,
16,
791,
16,
2305,
67,
8538,
5646,
33,
8381,
4672,
3536,
7543,
326,
1203,
7166,
364,
392,
791,
18,
225,
1220,
1678,
731,
326,
1203,
7166,
603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1463,
10045,
1442,
22021,
12,
28832,
16,
791,
16,
2305,
67,
8538,
5646,
33,
8381,
4672,
3536,
7543,
326,
1203,
7166,
364,
392,
791,
18,
225,
1220,
1678,
731,
326,
1203,
7166,
603,
... |
if domains and result: result = domainSpecMatch(domains, request) if not result: LOG('Zope', WARNING, 'invalid domain for user %s' % self.getUserName()) return result | if domains: return result and domainSpecMatch(domains, request) | def authenticate(self, password, request): passwrd=self._getPassword() | b524eb8d385b3d37d4c9cdb4f50ab88b14c32c5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b524eb8d385b3d37d4c9cdb4f50ab88b14c32c5d/User.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8929,
12,
2890,
16,
2201,
16,
590,
4672,
1342,
91,
13623,
33,
2890,
6315,
588,
3913,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8929,
12,
2890,
16,
2201,
16,
590,
4672,
1342,
91,
13623,
33,
2890,
6315,
588,
3913,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
choice = [] | """Return (aliases, command table entry) for command string.""" choice = None | def find(cmd): choice = [] for e in table.keys(): aliases = e.lstrip("^").split("|") if cmd in aliases: return e, table[e] for a in aliases: if a.startswith(cmd): choice.append(e) if len(choice) == 1: e = choice[0] return e, table[e] raise UnknownCommand(cmd) | 211ab79d74c9f9e4d0711d1aa2ed6f28642ea5a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/211ab79d74c9f9e4d0711d1aa2ed6f28642ea5a0/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12,
4172,
4672,
3536,
990,
261,
13831,
16,
1296,
1014,
1241,
13,
364,
1296,
533,
12123,
6023,
273,
599,
364,
425,
316,
1014,
18,
2452,
13332,
6900,
273,
425,
18,
80,
6406,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12,
4172,
4672,
3536,
990,
261,
13831,
16,
1296,
1014,
1241,
13,
364,
1296,
533,
12123,
6023,
273,
599,
364,
425,
316,
1014,
18,
2452,
13332,
6900,
273,
425,
18,
80,
6406,
2932,
... |
subprocess.call("C:\\Utilities\\pskill.exe -t sh.exe") subprocess.call("C:\\Utilities\\pskill.exe -t make.exe") subprocess.call("C:\\Utilities\\pskill.exe -t seamonkey") | subprocess.call("D:\\PsTools\\pskill.exe -t sh.exe") subprocess.call("D:\\PsTools\\pskill.exe -t make.exe") subprocess.call("D:\\PsTools\\pskill.exe -t seamonkey.eye") | def killAndClobber(slaveName, branchDir): print "Killing SeaMonkey..." mozDir = os.path.join('C:\\', slaveName, branchDir, 'mozilla') try: # This may be redundant if the pskill on sh.exe succeeds, but we # want to be sure. subprocess.call("C:\\Utilities\\pskill.exe -t sh.exe") subprocess.call("C:\\Utilities\\pskill.exe... | a2bba1d3c60de2a37ee234df7b1cf93947aeeb6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/a2bba1d3c60de2a37ee234df7b1cf93947aeeb6c/killAndClobberWin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
1876,
39,
1295,
744,
12,
27352,
461,
16,
3803,
1621,
4672,
1172,
315,
47,
5789,
3265,
69,
11415,
856,
7070,
7344,
94,
1621,
273,
1140,
18,
803,
18,
5701,
2668,
39,
31027,
2187,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
1876,
39,
1295,
744,
12,
27352,
461,
16,
3803,
1621,
4672,
1172,
315,
47,
5789,
3265,
69,
11415,
856,
7070,
7344,
94,
1621,
273,
1140,
18,
803,
18,
5701,
2668,
39,
31027,
2187,
1... |
return None | def onBusMessage(self, bus, message): confirmMainThread() "recieves message posted on the GstBus" if message.type == gst.MESSAGE_ERROR: err, debug = message.parse_error() print "onBusMessage: gstreamer error: %s" % err elif message.type == gst.MESSAGE_EOS: | e1525c9d9702d597df70f25448a0a053e7addb24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/e1525c9d9702d597df70f25448a0a053e7addb24/gstreamerrenderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
7086,
1079,
12,
2890,
16,
5766,
16,
883,
4672,
6932,
6376,
3830,
1435,
315,
3927,
1385,
3324,
883,
23082,
603,
326,
611,
334,
7086,
6,
309,
883,
18,
723,
422,
314,
334,
18,
8723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7086,
1079,
12,
2890,
16,
5766,
16,
883,
4672,
6932,
6376,
3830,
1435,
315,
3927,
1385,
3324,
883,
23082,
603,
326,
611,
334,
7086,
6,
309,
883,
18,
723,
422,
314,
334,
18,
8723,
... | |
... print 'Failure' | ... if ""include" directive disabled." in out.value: ... print 'Good' ... else: ... print 'Failure' | ... def setData(self, data): | 5e57d9e1383b38774db3ddf2e284d47da56d9efc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12162/5e57d9e1383b38774db3ddf2e284d47da56d9efc/rest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
7929,
12,
2890,
16,
501,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
7929,
12,
2890,
16,
501,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def fl_form_is_visible(form): """ fl_form_is_visible(form) -> ID """ retval = _fl_form_is_visible(form) | def fl_form_is_visible(pForm): """ fl_form_is_visible(pForm) -> ID """ retval = _fl_form_is_visible(pForm) | def fl_form_is_visible(form): """ fl_form_is_visible(form) -> ID """ retval = _fl_form_is_visible(form) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
687,
67,
291,
67,
8613,
12,
84,
1204,
4672,
3536,
1183,
67,
687,
67,
291,
67,
8613,
12,
84,
1204,
13,
317,
1599,
3536,
225,
5221,
273,
389,
2242,
67,
687,
67,
291,
67,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
687,
67,
291,
67,
8613,
12,
84,
1204,
4672,
3536,
1183,
67,
687,
67,
291,
67,
8613,
12,
84,
1204,
13,
317,
1599,
3536,
225,
5221,
273,
389,
2242,
67,
687,
67,
291,
67,
86... |
return "%s"%self.list | return "%s"%self._list | def __repr__(self): return "%s"%self.list | 3cfa1b764cc6179c31a1090018aa7bfd52997657 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3cfa1b764cc6179c31a1090018aa7bfd52997657/tensor_product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
2213,
87,
28385,
2890,
18,
1098,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
2213,
87,
28385,
2890,
18,
1098,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
timezone = fields.Char('Timezone') | timezone = fields.Selection('timezones', 'Timezone') | def __init__(self): super(Location, self).__init__() self._sql_constraints = [ ('name_uniq', 'UNIQUE(name)', 'The name of calendar location must be unique!'), ] self._order.insert(0, ('name', 'ASC')) | 90a844c1da42eeea518457b5ccbfdae01a5578b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9294/90a844c1da42eeea518457b5ccbfdae01a5578b3/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
2735,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
4669,
67,
11967,
273,
306,
7707,
529,
67,
31649,
2187,
296,
16879,
12,
529,
13,
2187,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
2735,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
4669,
67,
11967,
273,
306,
7707,
529,
67,
31649,
2187,
296,
16879,
12,
529,
13,
2187,
2... |
for x in R(g((X,one,zero))).roots(multiplicities=False): points.append(self.point([x,one,zero])) | g10 = R(g(X,one,zero)) if g10.is_zero(): for x in K: yield(self.point([x,one,zero])) else: for x in g10.roots(multiplicities=False): yield(self.point([x,one,zero])) | def rational_points(self, algorithm="enum", sort=True): r""" Return the rational points on this curve computed via enumeration. | 05c8eef04e5f3195edea5753cb5866da744515e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/05c8eef04e5f3195edea5753cb5866da744515e5/projective_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
2,
-100,
-100,
-100,
-100,
... |
700*x^2 - 2*x + 305 | 700*y^2 - 2*y + 305 | def univariate_polynomial(self, R=None): """ Returns a univariate polynomial associated to this multivariate polynomial. | 8932961336a2e30c16bc529548ab7b19976a7af4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8932961336a2e30c16bc529548ab7b19976a7af4/multi_polynomial_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
27693,
67,
3915,
13602,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
2860,
279,
640,
27693,
16991,
3627,
358,
333,
1778,
27693,
16991,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
27693,
67,
3915,
13602,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
2860,
279,
640,
27693,
16991,
3627,
358,
333,
1778,
27693,
16991,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
<class 'sage.plot.graphics3d.TransformGroup'> | <class 'base.TransformGroup'> | def plot3d(self, stickers=True): """ sage: C = RubiksCube().move("R*U") sage: C.plot3d() <class 'sage.plot.graphics3d.TransformGroup'> sage: C.plot() Graphics object consisting of 55 graphics primitives """ while len(self.colors) < 7: self.colors.append((.1, .1, .1)) side_colors = [Texture(color=c, ambient=.75) for c i... | bf6231515f8c3f03e908056fd09e59c8b412e1a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bf6231515f8c3f03e908056fd09e59c8b412e1a8/cubegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
23,
72,
12,
2890,
16,
25608,
414,
33,
5510,
4672,
3536,
272,
410,
30,
385,
273,
534,
373,
1766,
87,
39,
4895,
7675,
8501,
2932,
54,
14,
57,
7923,
272,
410,
30,
385,
18,
4032,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
23,
72,
12,
2890,
16,
25608,
414,
33,
5510,
4672,
3536,
272,
410,
30,
385,
273,
534,
373,
1766,
87,
39,
4895,
7675,
8501,
2932,
54,
14,
57,
7923,
272,
410,
30,
385,
18,
4032,
... |
for w_key, cell in w_dict.non_empties(): | for w_key, hash, cell in w_dict.non_empties(): | def unwrap__Dict(space, w_dict): result = {} for w_key, cell in w_dict.non_empties(): result[space.unwrap(w_key)] = space.unwrap(cell.get()) return result | a9a72cafc2a01ecab085d2980211916bd9911e63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/a9a72cafc2a01ecab085d2980211916bd9911e63/dictobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11014,
972,
5014,
12,
2981,
16,
341,
67,
1576,
4672,
563,
273,
2618,
364,
341,
67,
856,
16,
1651,
16,
2484,
316,
341,
67,
1576,
18,
5836,
67,
5744,
606,
13332,
563,
63,
2981,
18,
318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11014,
972,
5014,
12,
2981,
16,
341,
67,
1576,
4672,
563,
273,
2618,
364,
341,
67,
856,
16,
1651,
16,
2484,
316,
341,
67,
1576,
18,
5836,
67,
5744,
606,
13332,
563,
63,
2981,
18,
318... |
self.output.write("".join(self.out)) | for token in self.out: self.output.write(token.encode("utf-8")) | def onfinish(self): self.buffersize = 0 self.tolkens += [('',''),('','')] self.ontolken(('','')) self.output.write("".join(self.out)) | 94f7ab737f97df3ff46e4eb4aee54f550404f498 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10925/94f7ab737f97df3ff46e4eb4aee54f550404f498/minify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
13749,
12,
2890,
4672,
365,
18,
28101,
554,
273,
374,
365,
18,
3490,
79,
773,
1011,
306,
2668,
2187,
6309,
3631,
2668,
17023,
6134,
65,
365,
18,
1580,
355,
28735,
12,
2668,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
13749,
12,
2890,
4672,
365,
18,
28101,
554,
273,
374,
365,
18,
3490,
79,
773,
1011,
306,
2668,
2187,
6309,
3631,
2668,
17023,
6134,
65,
365,
18,
1580,
355,
28735,
12,
2668,
2187,
... |
def __init__(self, out, dtd, filename, encoding, mails): | def __init__(self, out, dtd, encoding, mails): | def __init__(self, out, dtd, filename, encoding, mails): | 46150b618daa12147dcf6582726c44fc81523cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6851/46150b618daa12147dcf6582726c44fc81523cee/obfusmail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
596,
16,
3681,
72,
16,
1544,
16,
2688,
16,
4791,
87,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
596,
16,
3681,
72,
16,
1544,
16,
2688,
16,
4791,
87,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Group([ (1,2,3,4) ]) | Group( [ (1,2,3,4) ] ) | def PermutationGroup(x, from_group=False, check=True): """ Return the permutation group associated to $x$ (typically a list of generators). EXAMPLES: sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G Permutation Group with generators [(1,2,3)(4,5), (3,4)] We can also make permutation groups from PARI grou... | ab7e25208557859a7d56f48a5fbc25f58c1458f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ab7e25208557859a7d56f48a5fbc25f58c1458f7/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13813,
9245,
1114,
12,
92,
16,
628,
67,
1655,
33,
8381,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
17440,
1041,
3627,
358,
271,
92,
8,
261,
12846,
6478,
279,
666,
434,
13327,
2934,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13813,
9245,
1114,
12,
92,
16,
628,
67,
1655,
33,
8381,
16,
866,
33,
5510,
4672,
3536,
2000,
326,
17440,
1041,
3627,
358,
271,
92,
8,
261,
12846,
6478,
279,
666,
434,
13327,
2934,
225,... |
proxyS.querySQLS("UPDATE Datasets SET status='completed',modificationdate=CURRENT_DATE WHERE vuid=:vuid", {':vuid':vuid}) | proxyS.querySQLS("UPDATE ATLAS_PANDA.Datasets SET status='completed',modificationdate=SYSDATE WHERE vuid=:vuid", {':vuid':vuid}) | def eraseDispDatasets(ids): _logger.debug("eraseDispDatasets") datasets = [] # get jobs status,jobs = Client.getJobStatus(ids) if status != 0: return # gather dispDBlcoks for job in jobs: # dispatchDS is not a DQ2 dataset in US if job.cloud == 'US': continue # erase disp datasets for production jobs only if job.prodSou... | 30f2a3e17d4cc6139386897f3a358df66e88255c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7525/30f2a3e17d4cc6139386897f3a358df66e88255c/copyArchive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22038,
1669,
84,
14305,
2413,
12,
2232,
4672,
389,
4901,
18,
4148,
2932,
264,
448,
1669,
84,
14305,
2413,
7923,
11109,
273,
5378,
468,
336,
6550,
1267,
16,
10088,
273,
2445,
18,
588,
234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22038,
1669,
84,
14305,
2413,
12,
2232,
4672,
389,
4901,
18,
4148,
2932,
264,
448,
1669,
84,
14305,
2413,
7923,
11109,
273,
5378,
468,
336,
6550,
1267,
16,
10088,
273,
2445,
18,
588,
234... |
this = apply(_quickfix.new_LegCouponPaymentDate, args) | this = _quickfix.new_LegCouponPaymentDate(*args) | def __init__(self, *args): this = apply(_quickfix.new_LegCouponPaymentDate, 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,
8329,
22744,
6032,
1626,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
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,
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,
8329,
22744,
6032,
1626,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,... |
dumpMouseEvent() | def mainMouseUp(): print "mainMouseUp" dumpMouseEvent() | b3babf3b4e29d30a88b1fe341a53f70c95c72695 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7300/b3babf3b4e29d30a88b1fe341a53f70c95c72695/Test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
9186,
1211,
13332,
1172,
315,
5254,
9186,
1211,
6,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
9186,
1211,
13332,
1172,
315,
5254,
9186,
1211,
6,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
new_class = super(PolymorphicModelBase, self).__new__(self, model_name, bases, attrs) | new_class = self.call_superclass_new_method(model_name, bases, attrs) | def __new__(self, model_name, bases, attrs): #print; print '###', model_name, '- bases:', bases # create new model new_class = super(PolymorphicModelBase, self).__new__(self, model_name, bases, attrs) | 53d82def56f89a4d49aa99043bf99778248a3918 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13100/53d82def56f89a4d49aa99043bf99778248a3918/polymorphic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
2890,
16,
938,
67,
529,
16,
8337,
16,
3422,
4672,
468,
1188,
31,
1172,
296,
13151,
2187,
938,
67,
529,
16,
2400,
8337,
30,
2187,
8337,
225,
468,
752,
394,
938,
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,
2704,
972,
12,
2890,
16,
938,
67,
529,
16,
8337,
16,
3422,
4672,
468,
1188,
31,
1172,
296,
13151,
2187,
938,
67,
529,
16,
2400,
8337,
30,
2187,
8337,
225,
468,
752,
394,
938,
3... |
'<html><head><title>%s Input Data</title></head><body>\n%s\n' | '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">\n' '<html lang="en"><head><title>%s Input Data</title></head>\n' '<body bgcolor=" | def default_input_form(id,arguments,action='query', tabs=''): if arguments: items=arguments.items() return ( "%s\n%s%s" % ( '<html><head><title>%s Input Data</title></head><body>\n%s\n' '<form action="<dtml-var URL2>/<dtml-var id>/%s" ' 'method="get">\n' '<h2>%s Input Data</h2>\n' 'Enter query parameters:<br>' '<table>... | 3d1e3442c3794f3670869345b2b72bccda8e8ddf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/3d1e3442c3794f3670869345b2b72bccda8e8ddf/Aqueduct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
2630,
67,
687,
12,
350,
16,
7099,
16,
1128,
2218,
2271,
2187,
10920,
2218,
11,
4672,
309,
1775,
30,
1516,
33,
7099,
18,
3319,
1435,
327,
261,
2213,
87,
64,
82,
9,
87,
9,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
2630,
67,
687,
12,
350,
16,
7099,
16,
1128,
2218,
2271,
2187,
10920,
2218,
11,
4672,
309,
1775,
30,
1516,
33,
7099,
18,
3319,
1435,
327,
261,
2213,
87,
64,
82,
9,
87,
9,
8... |
ContStr = group("r?'" + any(r'\\.', r"[^\n'\\]") + group("'", r'\\\r?\n'), 'r?"' + any(r'\\.', r'[^\n"\\]') + group('"', r'\\\r?\n')) | ContStr = group("[rR]?'" + any(r'\\.', r"[^\n'\\]") + group("'", r'\\\r?\n'), '[rR]?"' + any(r'\\.', r'[^\n"\\]') + group('"', r'\\\r?\n')) | def maybe(*choices): return apply(group, choices) + '?' | d11b888f9fc4baa2e0d763a0360c02bc7403a9ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d11b888f9fc4baa2e0d763a0360c02bc7403a9ca/tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6944,
30857,
11937,
4672,
327,
2230,
12,
1655,
16,
7246,
13,
397,
6787,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6944,
30857,
11937,
4672,
327,
2230,
12,
1655,
16,
7246,
13,
397,
6787,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
filename = GetVCSFilename(filename, self.srcdir) | (filename, rootname) = GetVCSFilename(filename, self.srcdir) if rootname: cvs_root = rootname | def ProcessFile(self, file): """Dump symbols from this file into a symbol file, stored in the proper directory structure in |symbol_path|.""" result = False sourceFileStream = '' for arch in self.archs: try: cmd = os.popen("%s %s %s" % (self.dump_syms, arch, file), "r") module_line = cmd.next() if module_line.startswi... | 0a664656fecf2b6ec004785f3fab3d7ee1d79c8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/0a664656fecf2b6ec004785f3fab3d7ee1d79c8d/symbolstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
812,
12,
2890,
16,
585,
4672,
3536,
10628,
7963,
628,
333,
585,
1368,
279,
3273,
585,
16,
4041,
316,
326,
5338,
1867,
3695,
316,
225,
571,
7175,
67,
803,
96,
12123,
563,
273,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
812,
12,
2890,
16,
585,
4672,
3536,
10628,
7963,
628,
333,
585,
1368,
279,
3273,
585,
16,
4041,
316,
326,
5338,
1867,
3695,
316,
225,
571,
7175,
67,
803,
96,
12123,
563,
273,
108... |
return FOOTER % time.asctime(time.localtime(time.time())) | timestamp = time.asctime(time.localtime(time.time())) return FOOTER % (epydoc.__version__, timestamp) | def _footer(self): """ @return: The HTML code for the footer of a page. @rtype: C{string} """ return FOOTER % time.asctime(time.localtime(time.time())) | 60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14723,
12,
2890,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
9860,
434,
279,
1363,
18,
632,
86,
723,
30,
385,
95,
1080,
97,
3536,
2858,
273,
813,
18,
345,
21261,
12,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14723,
12,
2890,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
9860,
434,
279,
1363,
18,
632,
86,
723,
30,
385,
95,
1080,
97,
3536,
2858,
273,
813,
18,
345,
21261,
12,
9... |
app.video_renderer = VLCRenderer() app.audio_renderer = None | app.renderer = VLCRenderer() app.video_renderer = app.audio_renderer = app.renderer | def run(self): app.video_renderer = VLCRenderer() # FIXME - implement audio renderer app.audio_renderer = None self.initXULRunner() gtk.gdk.threads_init() self.startup() gtk.gdk.threads_enter() settings = gtk.settings_get_default() settings.set_property('gtk-theme-name', "MS-Windows") settings.set_property('gtk-tooltip... | 5b18c8d5155475d5cd9b6041bfff208f34f8ecd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/5b18c8d5155475d5cd9b6041bfff208f34f8ecd5/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
595,
18,
9115,
67,
14374,
273,
776,
13394,
6747,
1435,
468,
9852,
300,
2348,
7447,
5690,
595,
18,
11509,
67,
14374,
273,
599,
365,
18,
2738,
60,
1506,
9709,
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,
1086,
12,
2890,
4672,
595,
18,
9115,
67,
14374,
273,
776,
13394,
6747,
1435,
468,
9852,
300,
2348,
7447,
5690,
595,
18,
11509,
67,
14374,
273,
599,
365,
18,
2738,
60,
1506,
9709,
1435,
... |
if not got: roleshack=entry_name+'__roles__' if hasattr(object, roleshack): roles=getattr(object, roleshack) parents.append(object) object=subobject steps.append(entry_name) | try: try: doc=subobject.__doc__ except: doc=getattr(object, entry_name+'__doc__') if not doc: raise AttributeError, entry_name except: if debug_mode: self.debugError("Missing doc string at: %s" % URL) else: self.notFoundError("%s" % (URL)) if hasattr(subobject,'__roles__'): roles=subobject.__roles__ else: if not got: ... | def publish(self, module_name, after_list, published='web_objects', imported_modules={}, module_dicts={},debug=0): | 86142d8cf2df52c6b79f4c067e9f567cd669c1c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/86142d8cf2df52c6b79f4c067e9f567cd669c1c3/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
9101,
67,
6400,
28793,
1605,
67,
16287,
28793,
4148,
33,
20,
4672,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
9101,
67,
6400,
28793,
1605,
67,
16287,
28793,
4148,
33,
20,
4672,
2,
-100,
-100,
-100,
-10... |
def flimage_get_linearlut(p1): """ flimage_get_linearlut(p1) -> num. """ retval = _flimage_get_linearlut(p1) | def flimage_get_linearlut(pImage): """ flimage_get_linearlut(pImage) -> num. """ retval = _flimage_get_linearlut(pImage) | def flimage_get_linearlut(p1): """ flimage_get_linearlut(p1) -> num. """ retval = _flimage_get_linearlut(p1) return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
588,
67,
12379,
80,
322,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
588,
67,
12379,
80,
322,
12,
84,
2040,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
588,
67,
12379,
80,
322,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
588,
67,
12379,
80,
322,
12,
84,
2040,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,... |
return [table_node] | return [table_node] + messages | def table(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): if not content: warning = state_machine.reporter.warning( 'Content block expected for the "%s" directive; none found.' % name, nodes.literal_block(block_text, block_text), line=lineno) return [warning] if arguments: ... | 4874646745457318480a61c60d9bd6c8d770e5a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/4874646745457318480a61c60d9bd6c8d770e5a0/body.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1014,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
309,
486,
913,
30,
3436,
273,
919,
67,
9149,
18,
266,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1014,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
309,
486,
913,
30,
3436,
273,
919,
67,
9149,
18,
266,
... |
if with: for pkg in with.split(): | with_ = kw.pop('with', with_) for key in kw: raise TypeError("configure() got an unexpected keyword argument '%s'" % key) if with_: for pkg in with_.split(): | def configure(ctxt, file_='configure', enable=None, disable=None, with=None, without=None, cflags=None, cxxflags=None): """Run a ``configure`` script. :param ctxt: the build context :type ctxt: `Context` :param file\_: name of the configure script :param enable: names of the features to enable, seperated by spaces :pa... | df8a4fe83ef5cb896afaeda7748fc6bd6e1a0c25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/df8a4fe83ef5cb896afaeda7748fc6bd6e1a0c25/ctools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
20364,
16,
585,
67,
2218,
14895,
2187,
4237,
33,
7036,
16,
4056,
33,
7036,
16,
598,
33,
7036,
16,
2887,
33,
7036,
16,
276,
7133,
33,
7036,
16,
276,
5279,
7133,
33,
7036,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
20364,
16,
585,
67,
2218,
14895,
2187,
4237,
33,
7036,
16,
4056,
33,
7036,
16,
598,
33,
7036,
16,
2887,
33,
7036,
16,
276,
7133,
33,
7036,
16,
276,
5279,
7133,
33,
7036,
46... |
def __call__( self, eventdatafiles, nevents, *args): | def __call__( self, eventdatafiles_or_filename, nevents, *args): | def __call__( self, eventdatafiles, nevents, *args): '''histogram event data in the given list of event data files | 753d71a2bb21469ae7b8ce439178b808ea512f0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4114/753d71a2bb21469ae7b8ce439178b808ea512f0e/ParallelHistogrammer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
365,
16,
29446,
2354,
67,
280,
67,
3459,
16,
1073,
616,
87,
16,
380,
1968,
4672,
9163,
22702,
871,
501,
316,
326,
864,
666,
434,
871,
501,
1390,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
365,
16,
29446,
2354,
67,
280,
67,
3459,
16,
1073,
616,
87,
16,
380,
1968,
4672,
9163,
22702,
871,
501,
316,
326,
864,
666,
434,
871,
501,
1390,
2,
-100,
-100,
-... |
def bayes_mvs(data,alpha=0.95): """Return bayesian confidence intervals for the mean, var, and std. | def bayes_mvs(data,alpha=0.90): """Return Bayesian confidence intervals for the mean, var, and std. | def bayes_mvs(data,alpha=0.95): """Return bayesian confidence intervals for the mean, var, and std. Assumes 1-d data all has same mean and variance and uses Jeffrey's prior for variance and std. alpha gives the probability that the returned interval contains the true parameter. """ x = ravel(data) n = len(x) assert(... | 8eb9a24ddb25de152b74631da8a514f5ff59eb4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/8eb9a24ddb25de152b74631da8a514f5ff59eb4f/morestats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
528,
281,
67,
81,
6904,
12,
892,
16,
5429,
33,
20,
18,
9349,
4672,
3536,
990,
605,
528,
13404,
15588,
10389,
364,
326,
3722,
16,
569,
16,
471,
2044,
18,
225,
25374,
404,
17,
72,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
528,
281,
67,
81,
6904,
12,
892,
16,
5429,
33,
20,
18,
9349,
4672,
3536,
990,
605,
528,
13404,
15588,
10389,
364,
326,
3722,
16,
569,
16,
471,
2044,
18,
225,
25374,
404,
17,
72,... |
''' | """ | def Tarball(env,location,dirs,suffix=''): ''' Custom Command: create Tarball of some subdirs location: where to create the tar (optionally incl. filename.tar.gz) suffix: (optional) suffix to include in the tar name dirs: directories to include in the tar This is a bit of a hack, because we want to be able to include a... | 805399aa7bd426f570ac3d393804b04d329e3b77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13677/805399aa7bd426f570ac3d393804b04d329e3b77/Buildhelper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
399,
23846,
12,
3074,
16,
3562,
16,
8291,
16,
8477,
2218,
11,
4672,
3536,
6082,
3498,
30,
752,
399,
23846,
434,
2690,
720,
8291,
2117,
30,
1625,
358,
752,
326,
8232,
261,
3482,
1230,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
399,
23846,
12,
3074,
16,
3562,
16,
8291,
16,
8477,
2218,
11,
4672,
3536,
6082,
3498,
30,
752,
399,
23846,
434,
2690,
720,
8291,
2117,
30,
1625,
358,
752,
326,
8232,
261,
3482,
1230,
2... |
debug("New peer "+ip+" port "+port) | debug("New peer %s port %d" % (ip, port)) | def main(): args = parse_qs(environ['QUERY_STRING']) if not args: print "Content-type: text/plain" print "" print repr(inst_key_cache) return for a in required_args: if a not in args or len(args[a]) < 1: error("Missing required argument: "+a) raise Exception("Missing required argument: "+a ) key = args['info_hash'][... | ea9fb7eed0e90848abfb97ea7ac7e8f0bb77a23b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14779/ea9fb7eed0e90848abfb97ea7ac7e8f0bb77a23b/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
833,
273,
1109,
67,
12926,
12,
28684,
3292,
10753,
67,
5804,
19486,
225,
309,
486,
833,
30,
1172,
315,
1350,
17,
723,
30,
977,
19,
7446,
6,
1172,
1408,
1172,
8480,
12,
859... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
273,
1109,
67,
12926,
12,
28684,
3292,
10753,
67,
5804,
19486,
225,
309,
486,
833,
30,
1172,
315,
1350,
17,
723,
30,
977,
19,
7446,
6,
1172,
1408,
1172,
8480,
12,
859... |
file_title = file_name.split('.')[-2] | file_title = file_name.split('.')[:-2] file_title = file_title[0] | def get_file_info(self, media): file_name = media.split(os.sep)[-1] file_title = file_name.split('.')[-2] file_ext = file_name.split('.')[-1] return file_name, file_title, file_ext | 95ceaf3edd8eef9223ea99bca356ceec4d029d9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/95ceaf3edd8eef9223ea99bca356ceec4d029d9f/deefuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
1376,
12,
2890,
16,
3539,
4672,
585,
67,
529,
273,
3539,
18,
4939,
12,
538,
18,
10814,
13,
18919,
21,
65,
585,
67,
2649,
273,
585,
67,
529,
18,
4939,
2668,
1093,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
67,
1376,
12,
2890,
16,
3539,
4672,
585,
67,
529,
273,
3539,
18,
4939,
12,
538,
18,
10814,
13,
18919,
21,
65,
585,
67,
2649,
273,
585,
67,
529,
18,
4939,
2668,
1093,
... |
if self.showSubsetDistributions and self.conditionalSubsetDict: | if self.conditionalSubsetDict: | def addRect(self, x0, x1, y0, y1, condition = "", usedAttrs = [], attrVals = ""): x0 = int(x0); x1 = int(x1); y0 = int(y0); y1 = int(y1) if x0 == x1: x1+=1 if y0 == y1: y1+=1 | e9d9dacd9a0eba29f2c3082ac6763755c24eb485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/e9d9dacd9a0eba29f2c3082ac6763755c24eb485/OWMosaicDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6120,
12,
2890,
16,
619,
20,
16,
619,
21,
16,
677,
20,
16,
677,
21,
16,
2269,
273,
23453,
1399,
8262,
273,
5378,
16,
1604,
13169,
273,
1408,
4672,
619,
20,
273,
509,
12,
92,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6120,
12,
2890,
16,
619,
20,
16,
619,
21,
16,
677,
20,
16,
677,
21,
16,
2269,
273,
23453,
1399,
8262,
273,
5378,
16,
1604,
13169,
273,
1408,
4672,
619,
20,
273,
509,
12,
92,
2... |
files = output.readline()[:-1].split('./')[1:] | files = output.readline()[:-1].split(' ') | def _applyChangeset(self, changeset): """ Do the actual work of applying the changeset to the working copy. """ | bf8b08b98323fac602c63932252752bb0d637fa1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5981/bf8b08b98323fac602c63932252752bb0d637fa1/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
29743,
12,
2890,
16,
22463,
4672,
3536,
2256,
326,
3214,
1440,
434,
13650,
326,
22463,
358,
326,
5960,
1610,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
29743,
12,
2890,
16,
22463,
4672,
3536,
2256,
326,
3214,
1440,
434,
13650,
326,
22463,
358,
326,
5960,
1610,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
case; algebraic numbers select the principle complex b'th | case; algebraic numbers select the principal complex b'th | def __pow__(self, e): """ self^p returns the p'th power of self (where p can be an arbitrary rational). If p is (a/b), takes the b'th root of self, then takes that to the a'th power. If self is negative and b is odd, it takes the real b'th root; if self is odd and b is even, this takes a complex root. Note that the ... | 4bdf08a997ab55d67dd48b374fa3d4cbb7ddbd56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4bdf08a997ab55d67dd48b374fa3d4cbb7ddbd56/qqbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
425,
4672,
3536,
365,
66,
84,
1135,
326,
293,
1404,
76,
7212,
434,
365,
261,
6051,
293,
848,
506,
392,
11078,
436,
8371,
2934,
225,
971,
293,
353,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
425,
4672,
3536,
365,
66,
84,
1135,
326,
293,
1404,
76,
7212,
434,
365,
261,
6051,
293,
848,
506,
392,
11078,
436,
8371,
2934,
225,
971,
293,
353,
261,
... |
+--------------+ | 1 2 3 | | 4 Up 5 | | 6 7 8 | +--------------+--------------+--------------+--------------+ | 9 10 11 | 17 18 19 | 25 26 27 | 33 34 35 | | 12 Left 13 | 20 Front 21 | 28 Right 29 | 36 Back 37 | | 14 15 16 | 22 23 24 | 30 31 32 | 38 39 40 | +--... | def plot3d_cubie(cnt, clrs): """ Plots the front, up and right face of a cubie centered at cnt and rgbcolors given by clrs (in the order FUR). Type P.show() to view. EXAMPLES: sage: from sage.groups.perm_gps.cubegroup import * sage: clrF = blue; clrU = red; clrR = green sage: P = plot3d_cubie([1/2,1/2,1/2],[clrF,clrU... | ffecca43e67eb5a268ace7448b4aa9b938a485ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ffecca43e67eb5a268ace7448b4aa9b938a485ff/cubegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
23,
72,
67,
71,
373,
1385,
12,
13085,
16,
927,
5453,
4672,
3536,
3008,
6968,
326,
6641,
16,
731,
471,
2145,
7945,
434,
279,
276,
373,
1385,
25340,
622,
7599,
471,
6917,
9724,
864... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
23,
72,
67,
71,
373,
1385,
12,
13085,
16,
927,
5453,
4672,
3536,
3008,
6968,
326,
6641,
16,
731,
471,
2145,
7945,
434,
279,
276,
373,
1385,
25340,
622,
7599,
471,
6917,
9724,
864... | |
IndicatorData.objects.all().delete() | def new_run_all(self, indicator_list=None): from django.db.utils import IntegrityError IndicatorData.objects.all().delete() seen_indicators = set() # to track which Indicators may be gone now created_indicators = set() import copy metadata_to_import = [ metadata for metadata in self.get_metadata() \ if (metadata['indi... | 063e799591ad2cfd23f86b44192dc2fc40ae681c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12153/063e799591ad2cfd23f86b44192dc2fc40ae681c/load.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2681,
67,
454,
12,
2890,
16,
10664,
67,
1098,
33,
7036,
4672,
628,
13710,
18,
1966,
18,
5471,
1930,
15285,
560,
668,
5881,
67,
728,
24994,
273,
444,
1435,
468,
358,
3298,
1492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2681,
67,
454,
12,
2890,
16,
10664,
67,
1098,
33,
7036,
4672,
628,
13710,
18,
1966,
18,
5471,
1930,
15285,
560,
668,
5881,
67,
728,
24994,
273,
444,
1435,
468,
358,
3298,
1492... | |
log=self.a_log) | log=self.a_log) | def t_Aligner(self, run=True ): | 406e82ca95520c7badb9dbb830cadd182e043ec6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/406e82ca95520c7badb9dbb830cadd182e043ec6/Aligner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
67,
10044,
264,
12,
2890,
16,
1086,
33,
5510,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
67,
10044,
264,
12,
2890,
16,
1086,
33,
5510,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
""" % (form_url, _("Article details"), | """ % (_("Article details"), | def tmpl_register_ill_article_request_step1(self, infos, admin=True, ln=CFG_SITE_LANG): """ @param infos: informations @type infos: list """ | 648f0875a183c65548d6b2535cea8cf25a2a9827 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/648f0875a183c65548d6b2535cea8cf25a2a9827/bibcirculation_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4861,
67,
737,
67,
11480,
67,
2293,
67,
4119,
21,
12,
2890,
16,
10626,
16,
3981,
33,
5510,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
3536,
632,
891,
10626,
30,
26978,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10720,
67,
4861,
67,
737,
67,
11480,
67,
2293,
67,
4119,
21,
12,
2890,
16,
10626,
16,
3981,
33,
5510,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
3536,
632,
891,
10626,
30,
26978,... |
errno.ECONNABORTED, errno.EPIPE): | errno.ECONNABORTED, errno.EPIPE, errno.EBADF): | def handle_error(self): """Called when an exception is raised and not otherwise handled.""" try: raise except (KeyboardInterrupt, SystemExit, asyncore.ExitNow): raise except socket.error, err: # fix around asyncore bug (http://bugs.python.org/issue1736101) if err[0] in (errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN... | 49509d2b691fc8623dee698cdc7f9b4e1a130746 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7236/49509d2b691fc8623dee698cdc7f9b4e1a130746/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
4672,
3536,
8185,
1347,
392,
1520,
353,
11531,
471,
486,
3541,
7681,
12123,
775,
30,
1002,
1335,
261,
17872,
14126,
16,
25454,
16,
4326,
479,
18,
6767,
8674,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
4672,
3536,
8185,
1347,
392,
1520,
353,
11531,
471,
486,
3541,
7681,
12123,
775,
30,
1002,
1335,
261,
17872,
14126,
16,
25454,
16,
4326,
479,
18,
6767,
8674,
46... |
self.starts = None | self.starts = numarray.array(None, shape=1, type = numarray.Int32) | def __init__(self, parentNode, name, atom=None, column=None, title="", filters=None, expectedrows=0, testmode=False, new=True): """Create an Index instance. | 24c4f4ad89ae2bca2849e5da9637e597ace29276 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12687/24c4f4ad89ae2bca2849e5da9637e597ace29276/Index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7234,
16,
508,
16,
3179,
33,
7036,
16,
1057,
33,
7036,
16,
2077,
1546,
3113,
3415,
33,
7036,
16,
2665,
3870,
33,
20,
16,
1842,
3188,
33,
8381,
16,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7234,
16,
508,
16,
3179,
33,
7036,
16,
1057,
33,
7036,
16,
2077,
1546,
3113,
3415,
33,
7036,
16,
2665,
3870,
33,
20,
16,
1842,
3188,
33,
8381,
16,
394,... |
numberOfBasePairs = getNumberOfBasePairsFromDuplexLength('B-DNA', duplexLength, duplexRise = duplexRise ) | raw_numberOfBasePairsToAddOrRemove = self._determine_numberOfBasePairs_to_change() if raw_numberOfBasePairsToAddOrRemove > 1: numberOfBasePairsToAddOrRemove = raw_numberOfBasePairsToAddOrRemove - 1 else: numberOfBasePairsToAddOrRemove = raw_numberOfBasePairsToAddOrRemove current_numberOfBasePairs = sel... | def getCursorText(self): """ This is used as a callback method in DnaLine mode @see: DnaLineMode.setParams, DnaLineMode_GM.Draw """ #@TODO: Refactor this. Similar code exists in #DnaStrand_EditCommand.getCursorText() -- Ninad 2008-04-12 if self.grabbedHandle is None: return currentPosition = self.grabbedHandle.current... | 640dbc297db41f44690e85ab063dbd8ead85887b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/640dbc297db41f44690e85ab063dbd8ead85887b/DnaSegment_EditCommand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14135,
2467,
1528,
12,
2890,
4672,
3536,
1220,
353,
1399,
487,
279,
1348,
707,
316,
463,
6582,
1670,
1965,
632,
5946,
30,
463,
6582,
1670,
2309,
18,
542,
1370,
16,
463,
6582,
1670,
2309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14135,
2467,
1528,
12,
2890,
4672,
3536,
1220,
353,
1399,
487,
279,
1348,
707,
316,
463,
6582,
1670,
1965,
632,
5946,
30,
463,
6582,
1670,
2309,
18,
542,
1370,
16,
463,
6582,
1670,
2309,... |
logging.debug("\tIndex should be %i. Is really %i." % (i, vert.index)) | logging.debug("\tIndex should be %i. Is really %i." % (i + baseIndex, vert.index)) | def importObj(self, obj, rm, data, idx): logging.info("[plDrawableSpans::%s]" % (obj.key.name)) if data is None: data = Blender.Mesh.New(obj.key.name) if (len(data.getColorLayerNames()) < 1) or not('Col' in data.getColorLayerNames()): data.addColorLayer('Col') data.activeColorLayer = 'Col' di = obj.DIIndices[idx] f... | 9408572cbe14e5dcf9410c67eabb212cdfddc971 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12598/9408572cbe14e5dcf9410c67eabb212cdfddc971/PyPRP_Geometry_Classes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
2675,
12,
2890,
16,
1081,
16,
6692,
16,
501,
16,
2067,
4672,
2907,
18,
1376,
2932,
63,
412,
16149,
17798,
2866,
9,
87,
4279,
738,
261,
2603,
18,
856,
18,
529,
3719,
225,
309,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
2675,
12,
2890,
16,
1081,
16,
6692,
16,
501,
16,
2067,
4672,
2907,
18,
1376,
2932,
63,
412,
16149,
17798,
2866,
9,
87,
4279,
738,
261,
2603,
18,
856,
18,
529,
3719,
225,
309,
5... |
print "program:", " ".join(options.program) | def __init__(self, options): print "program:", " ".join(options.program) self.options = options cmd.Cmd.__init__(self) self.do_status() if self.zd_status: m = re.search("(?m)^args=(.*)$", self.zd_status) if m: s = m.group(1) args = eval(s, {"__builtins__": {}}) if args != self.options.program: print "WARNING! zdaemon i... | 10fc2a206a615b1392b515314bc39a7733afa458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9782/10fc2a206a615b1392b515314bc39a7733afa458/zdctl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
4672,
365,
18,
2116,
273,
702,
1797,
18,
5931,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2896,
67,
2327,
1435,
309,
365,
18,
94,
72,
67,
2327,
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,
2738,
972,
12,
2890,
16,
702,
4672,
365,
18,
2116,
273,
702,
1797,
18,
5931,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2896,
67,
2327,
1435,
309,
365,
18,
94,
72,
67,
2327,
30,
... | |
'5.19.1' | '5.20.1' | def version(self): """ Return the version of Maxima that Sage includes. | bd199609ce47020500825b6ce49309b71892d8f0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/bd199609ce47020500825b6ce49309b71892d8f0/maxima.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
12,
2890,
4672,
3536,
2000,
326,
1177,
434,
4238,
13888,
716,
348,
410,
6104,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
12,
2890,
4672,
3536,
2000,
326,
1177,
434,
4238,
13888,
716,
348,
410,
6104,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
while self.cont and not self.buf: | while len(self.buf) < bytes and self.cont: | def read(self, bytes): while self.cont and not self.buf: self.perform() r = self.buf[:bytes] self.buf = self.buf[bytes:] return r | 7b1a68367bb2f697b35a292c78a82f88c50e5724 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/373/7b1a68367bb2f697b35a292c78a82f88c50e5724/comm_curl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1731,
4672,
1323,
562,
12,
2890,
18,
4385,
13,
411,
1731,
471,
365,
18,
1213,
30,
365,
18,
16092,
1435,
436,
273,
365,
18,
4385,
10531,
3890,
65,
365,
18,
4385,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1731,
4672,
1323,
562,
12,
2890,
18,
4385,
13,
411,
1731,
471,
365,
18,
1213,
30,
365,
18,
16092,
1435,
436,
273,
365,
18,
4385,
10531,
3890,
65,
365,
18,
4385,
27... |
self.sf.percent_done = 0 | self.sf.percent_done = str(0) | def statStartup(self, download): # set some values self.sf.running = Transfer.TF_RUNNING self.sf.percent_done = 0 self.sf.time_left = "Starting..." self.sf.down_speed = "0.00 kB/s" self.sf.up_speed = "0.00 kB/s" self.sf.transferowner = self.tf.transferowner self.sf.seeds = "" self.sf.peers = "" self.sf.sharing = "" sel... | 4f35b3be0affaa4df9f48df32a09fd87e65e2c5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/156/4f35b3be0affaa4df9f48df32a09fd87e65e2c5c/Transfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
610,
22178,
12,
2890,
16,
4224,
4672,
468,
444,
2690,
924,
365,
18,
21668,
18,
8704,
273,
12279,
18,
17963,
67,
29358,
365,
18,
21668,
18,
8849,
67,
8734,
273,
609,
12,
20,
13,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
610,
22178,
12,
2890,
16,
4224,
4672,
468,
444,
2690,
924,
365,
18,
21668,
18,
8704,
273,
12279,
18,
17963,
67,
29358,
365,
18,
21668,
18,
8849,
67,
8734,
273,
609,
12,
20,
13,
365,
... |
sage: G.molien_series() | sage: G.molien_series() | def molien_series(self): r""" Returns the Molien series of a transtive permutation group. The function $$ M(x) = (1/|G|)\sum_{g\in G} det(1-x*g)^(-1) $$ is sometimes called the "Molien series" of G. GAP's \code{MolienSeries} is associated to a character of a group G. How are these related? A group G, given as a permuta... | dec2af0d3a1e0445413373435894862c1e9fe7bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/dec2af0d3a1e0445413373435894862c1e9fe7bf/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
13637,
334,
688,
17440,
1041,
18,
1021,
445,
5366,
490,
12,
92,
13,
273,
261,
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,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
13637,
334,
688,
17440,
1041,
18,
1021,
445,
5366,
490,
12,
92,
13,
273,
261,
21,
... |
if self.debug > 0: print 'setting: %s. self.ready = False ' % key | log.debug('setting: %s. self.ready = False ' % key) | def set(self, **kwargs): '''set a parameter | 97d65b7f6de853ae8bd02694f63966f3dfe9ab9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/97d65b7f6de853ae8bd02694f63966f3dfe9ab9e/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
2826,
4333,
4672,
9163,
542,
279,
1569,
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,
444,
12,
2890,
16,
2826,
4333,
4672,
9163,
542,
279,
1569,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return networkToDataSink( dataSink, maxFileSize = maxFileSize ) | return self.networkToDataSink( dataSink, maxFileSize = maxFileSize ) | def networkToFD( self, iFD, maxFileSize = 0 ): dataSink = os.fdopen( iFD, "w" ) try: return networkToDataSink( dataSink, maxFileSize = maxFileSize ) finally: dataSink.close() | c630028843e7c83490cdd59919ad88cd4425d8e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/c630028843e7c83490cdd59919ad88cd4425d8e0/FileHelper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
774,
16894,
12,
365,
16,
277,
16894,
16,
943,
15100,
273,
374,
262,
30,
501,
11326,
273,
1140,
18,
8313,
3190,
12,
277,
16894,
16,
315,
91,
6,
262,
775,
30,
327,
365,
18,
5185,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
774,
16894,
12,
365,
16,
277,
16894,
16,
943,
15100,
273,
374,
262,
30,
501,
11326,
273,
1140,
18,
8313,
3190,
12,
277,
16894,
16,
315,
91,
6,
262,
775,
30,
327,
365,
18,
5185,... |
self.Context.Plugins['core'].Display['active_plugins'].Value = plugins | self.Context.Plugins['core'].Screen['active_plugins'].Value = plugins | def ListChanged(self, *args, **kwargs): if self.Block > 0: return self.Block += 1 plugins = self.EnabledPluginsList.get_list() | 0190ad040d9e81d296e8e395ec48d9671a08d7f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7062/0190ad040d9e81d296e8e395ec48d9671a08d7f1/Pages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
987,
5033,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
365,
18,
1768,
405,
374,
30,
327,
365,
18,
1768,
1011,
404,
4799,
273,
365,
18,
1526,
9461,
682,
18,
588,
67,
1098,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
5033,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
365,
18,
1768,
405,
374,
30,
327,
365,
18,
1768,
1011,
404,
4799,
273,
365,
18,
1526,
9461,
682,
18,
588,
67,
1098,
143... |
solr_select_url = 'http://ia331509:8984/solr/inside/select' | if hasattr(config, 'plugin_inside'): solr_host = config.plugin_worksearch.get['solr'] solr_select_url = "http://" + solr_host + "/solr/inside/select" | def quote_snippet(snippet): return re_trans.sub(lambda m: trans[m.group(1)], web.htmlquote(snippet)) | 08628e6445c3caedbcdc9ef298721699690ff0ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/08628e6445c3caedbcdc9ef298721699690ff0ce/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3862,
67,
25788,
12,
25788,
4672,
327,
283,
67,
2338,
18,
1717,
12,
14661,
312,
30,
906,
63,
81,
18,
1655,
12,
21,
13,
6487,
3311,
18,
2620,
6889,
12,
25788,
3719,
225,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3862,
67,
25788,
12,
25788,
4672,
327,
283,
67,
2338,
18,
1717,
12,
14661,
312,
30,
906,
63,
81,
18,
1655,
12,
21,
13,
6487,
3311,
18,
2620,
6889,
12,
25788,
3719,
225,
2,
-100,
-100... |
data = response.read() print response.status, response.reason | returned_html = response.read() | def post_multipart(host, selector, fields, files, cookies): """ Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return the server's response page... | 9dec94ac7c50a9fcf171b9372a004229a1876b7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/9dec94ac7c50a9fcf171b9372a004229a1876b7e/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
16404,
12,
2564,
16,
3451,
16,
1466,
16,
1390,
16,
7237,
4672,
3536,
5616,
1466,
471,
1390,
358,
392,
1062,
1479,
487,
10263,
19,
687,
17,
892,
18,
1466,
353,
279,
3102,
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,
1603,
67,
16404,
12,
2564,
16,
3451,
16,
1466,
16,
1390,
16,
7237,
4672,
3536,
5616,
1466,
471,
1390,
358,
392,
1062,
1479,
487,
10263,
19,
687,
17,
892,
18,
1466,
353,
279,
3102,
434,... |
dc.SetTextForeground(eventColors.textColor) | dc.SetTextForeground(textColor) | def Draw(self, dc, styles, brushOffset, selected): item = self._item itemRect = self._bounds eventColors = styles.blockItem.getEventColors(item) if selected: brush = styles.brushes.GetGradientBrush(itemRect.x + brushOffset, itemRect.width, eventColors.selectedGradientLeft, eventColors.selectedGradientRight) pen = wx.P... | 614c6e0fec5358c7acde5bbf542101668445ed6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/614c6e0fec5358c7acde5bbf542101668445ed6a/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
12,
2890,
16,
6744,
16,
5687,
16,
5186,
1218,
2335,
16,
3170,
4672,
761,
273,
365,
6315,
1726,
761,
6120,
273,
365,
6315,
10576,
225,
871,
12570,
273,
5687,
18,
2629,
1180,
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,
10184,
12,
2890,
16,
6744,
16,
5687,
16,
5186,
1218,
2335,
16,
3170,
4672,
761,
273,
365,
6315,
1726,
761,
6120,
273,
365,
6315,
10576,
225,
871,
12570,
273,
5687,
18,
2629,
1180,
18,
... |
self.__modulus = ntl_ZZ_pEContext(ntl_ZZ_pX(list(base_ring.polynomial()), p)) | self._modulus = ntl_ZZ_pEContext(ntl_ZZ_pX(list(base_ring.polynomial()), p)) | def __init__(self, base_ring, name="x", sparse=False, element_class=None, implementation=None): """ TESTS: sage: from sage.rings.polynomial.polynomial_ring import PolynomialRing_field as PRing sage: R = PRing(QQ, 'x'); R Univariate Polynomial Ring in x over Rational Field sage: type(R.gen()) <class 'sage.rings.polynomi... | f812bf5e39f469853f7ca700db86ba4ec881eb70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f812bf5e39f469853f7ca700db86ba4ec881eb70/polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
8022,
16,
508,
1546,
92,
3113,
9387,
33,
8381,
16,
930,
67,
1106,
33,
7036,
16,
4471,
33,
7036,
4672,
3536,
22130,
55,
30,
272,
410,
30,
628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
8022,
16,
508,
1546,
92,
3113,
9387,
33,
8381,
16,
930,
67,
1106,
33,
7036,
16,
4471,
33,
7036,
4672,
3536,
22130,
55,
30,
272,
410,
30,
628,... |
results = singlegame.results() for result in results: if results[result].user.key() == user.key(): tips[user.key()] = results[result] else: tips[user.key()] = {} | hastip = False if str(user.key()) in results: tips.append(results[str(user.key())]) else: tips.append({}) | def singlegame_tips(self, singlegame, users): tips = {} for user in users: results = singlegame.results() for result in results: if results[result].user.key() == user.key(): tips[user.key()] = results[result] else: tips[user.key()] = {} return tips | d601a7d8818f752c1978d4a6a5e1e563d8daf838 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11033/d601a7d8818f752c1978d4a6a5e1e563d8daf838/control.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2202,
13957,
67,
88,
7146,
12,
2890,
16,
2202,
13957,
16,
3677,
4672,
31606,
273,
2618,
364,
729,
316,
3677,
30,
366,
689,
625,
273,
1083,
309,
609,
12,
1355,
18,
856,
10756,
316,
1686... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2202,
13957,
67,
88,
7146,
12,
2890,
16,
2202,
13957,
16,
3677,
4672,
31606,
273,
2618,
364,
729,
316,
3677,
30,
366,
689,
625,
273,
1083,
309,
609,
12,
1355,
18,
856,
10756,
316,
1686... |
if ye >= 0: exponent = xe*yc*10**ye else: exponent, remainder = divmod(xe*yc, 10**-ye) if remainder: return None | xe *= yc while xe % 10 == 0: xe //= 10 ye += 1 if ye < 0: return None exponent = xe * 10**ye | def _power_exact(self, other, p): """Attempt to compute self**other exactly. | a123631a5ca464c99faf039ee5c74ec9025d5d64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/a123631a5ca464c99faf039ee5c74ec9025d5d64/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12238,
67,
17165,
12,
2890,
16,
1308,
16,
293,
4672,
3536,
7744,
358,
3671,
365,
636,
3011,
8950,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12238,
67,
17165,
12,
2890,
16,
1308,
16,
293,
4672,
3536,
7744,
358,
3671,
365,
636,
3011,
8950,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
res2 = run_sql("DELETE FROM user WHERE id=%s" % userID) | res2 = run_sql("DELETE FROM user WHERE id=%s", (userID, )) | def perform_rejectaccount(req, userID, email_user_pattern, limit_to, maxpage, page, callback='yes', confirm=0): """Delete account and send an email to the owner.""" (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) res = run_sql("SELECT id, email, note FROM user ... | 880b8bdf9919b6ee052a6dbe8c7a64f8b5b9c888 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/880b8bdf9919b6ee052a6dbe8c7a64f8b5b9c888/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
24163,
4631,
12,
3658,
16,
16299,
16,
2699,
67,
1355,
67,
4951,
16,
1800,
67,
869,
16,
943,
2433,
16,
1363,
16,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
2613,
2236,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
24163,
4631,
12,
3658,
16,
16299,
16,
2699,
67,
1355,
67,
4951,
16,
1800,
67,
869,
16,
943,
2433,
16,
1363,
16,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
2613,
2236,
... |
nodes = Nodes(self.api, [node_id], Node.extra_fields).values() | nodes = Nodes(self.api, [node_id]).values() | def call(self, auth, node_id, method, type, optional_vals = {}): if filter(lambda field: field not in self.update_fields, optional_vals): raise PLCInvalidArgument, "Invalid fields specified" | 55a83efafe6feb553ef22eca59659a1387421903 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/55a83efafe6feb553ef22eca59659a1387421903/AdmAddNodeNetwork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
350,
16,
707,
16,
618,
16,
3129,
67,
4524,
273,
2618,
4672,
309,
1034,
12,
14661,
652,
30,
652,
486,
316,
365,
18,
2725,
67,
2821,
16,
3129,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
350,
16,
707,
16,
618,
16,
3129,
67,
4524,
273,
2618,
4672,
309,
1034,
12,
14661,
652,
30,
652,
486,
316,
365,
18,
2725,
67,
2821,
16,
3129,
6... |
detached_window_frame = Rect(0, 0, 800, 600) else: detached_window_frame = Rect.from_string(detached_window_frame) | detached_window_frame = widgetset.Rect(0, 0, 800, 600) else: detached_window_frame = widgetset.Rect.from_string(detached_window_frame) | def prepare_detached_playback(self): detached_window_frame = config.get(prefs.DETACHED_WINDOW_FRAME) if detached_window_frame is None: detached_window_frame = Rect(0, 0, 800, 600) else: detached_window_frame = Rect.from_string(detached_window_frame) self.detached_window = widgetset.Window("", detached_window_frame) ali... | 03d3664607ac80459de44da61281b5ac3917e2c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/03d3664607ac80459de44da61281b5ac3917e2c0/playback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
8238,
2004,
67,
1601,
823,
12,
2890,
4672,
22037,
67,
5668,
67,
3789,
273,
642,
18,
588,
12,
1484,
2556,
18,
40,
31370,
15023,
67,
23407,
67,
15072,
13,
309,
22037,
67,
5668,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
8238,
2004,
67,
1601,
823,
12,
2890,
4672,
22037,
67,
5668,
67,
3789,
273,
642,
18,
588,
12,
1484,
2556,
18,
40,
31370,
15023,
67,
23407,
67,
15072,
13,
309,
22037,
67,
5668,... |
return '\\frac{%s}{%s}' % (ops[0], ops[1]) | return self.parenthesize('\\frac{%s}'%ops[0],'{%s}'%ops[1], self._operator, op_symbols=op_symbols, paren_symbols=parens) | def _latex_(self): ops = [x._latex_() for x in self._operands] if self._operator == operator.add: return '%s + %s' % (ops[0], ops[1]) elif self._operator == operator.sub: return '%s - %s' % (ops[0], ops[1]) elif self._operator == operator.mul: return '%s \\cdot %s' % (ops[0], ops[1]) elif self._operator == operator.div... | d80bf7cbd123e40324df94f42d0a13a4f3c09a6c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d80bf7cbd123e40324df94f42d0a13a4f3c09a6c/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
12,
2890,
4672,
6727,
273,
306,
92,
6315,
26264,
67,
1435,
364,
619,
316,
365,
6315,
4063,
5708,
65,
309,
365,
6315,
9497,
422,
3726,
18,
1289,
30,
327,
1995,
87,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
12,
2890,
4672,
6727,
273,
306,
92,
6315,
26264,
67,
1435,
364,
619,
316,
365,
6315,
4063,
5708,
65,
309,
365,
6315,
9497,
422,
3726,
18,
1289,
30,
327,
1995,
87,
397,
... |
print kw | def build_toolbars(self): """Sets the layout of the navigation topbar on a Reddit. The result is a list of menus which will be rendered in order and displayed at the top of the Reddit.""" # Ensure the default button is the first tab default_button_name = c.site.default_listing button_names = ['blessed', 'hot', 'new',... | 0f0919be4b413bf38429f4d7110d61122b4d856c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6723/0f0919be4b413bf38429f4d7110d61122b4d856c/pages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
6738,
13518,
12,
2890,
4672,
3536,
2785,
326,
3511,
434,
326,
10394,
1760,
3215,
603,
279,
4621,
72,
305,
18,
225,
1021,
563,
353,
279,
666,
434,
21374,
1492,
903,
506,
7935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
6738,
13518,
12,
2890,
4672,
3536,
2785,
326,
3511,
434,
326,
10394,
1760,
3215,
603,
279,
4621,
72,
305,
18,
225,
1021,
563,
353,
279,
666,
434,
21374,
1492,
903,
506,
7935,
... | |
def show_imshow_popup_menu(self, (x, y), image, subplot): | def show_imshow_popup_menu(self, (x, y), image, subplot, imshow_kwargs): | def show_imshow_popup_menu(self, (x, y), image, subplot): ''' shows a popup menu at pos x,y with items to: - Show image histogram - Change contrast stretching ''' # Manage a dict of popup menus keyed by each subplot (x,y) location if 'popup_menus' not in self.__dict__: self.popup_menus = {} params = self.subplot_param... | 85566b0bd1d42c808fc402bbd3f334d859bd5243 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2870/85566b0bd1d42c808fc402bbd3f334d859bd5243/cpfigure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
381,
4500,
67,
16086,
67,
5414,
12,
2890,
16,
261,
92,
16,
677,
3631,
1316,
16,
19826,
16,
31219,
67,
4333,
4672,
9163,
17975,
279,
10431,
3824,
622,
949,
619,
16,
93,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
381,
4500,
67,
16086,
67,
5414,
12,
2890,
16,
261,
92,
16,
677,
3631,
1316,
16,
19826,
16,
31219,
67,
4333,
4672,
9163,
17975,
279,
10431,
3824,
622,
949,
619,
16,
93,
598,
... |
except ValueError: print "Cannot extract x of origin." | except ValueError: print "Cannot extract x of origin:\n ", rec, file_name return [] | def extract_tls_parameters(remark_3_records): | c7414c7bd0f10baaa7d702b1454c3d4335e68afe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/c7414c7bd0f10baaa7d702b1454c3d4335e68afe/remark_3_interpretation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print "Switching Phase button" | msg = "Switching Phase button" appendTextview(self.textviewStdOut, msg) | def switchPhase(self, event): if event.key==self.dictKeybindings['switchPhase']: self.funcSwitchPhase() print "Switching Phase button" | 4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
11406,
12,
2890,
16,
871,
4672,
309,
871,
18,
856,
631,
2890,
18,
1576,
653,
15863,
3292,
9610,
11406,
3546,
30,
365,
18,
644,
10200,
11406,
1435,
1234,
273,
315,
10200,
310,
19459... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
11406,
12,
2890,
16,
871,
4672,
309,
871,
18,
856,
631,
2890,
18,
1576,
653,
15863,
3292,
9610,
11406,
3546,
30,
365,
18,
644,
10200,
11406,
1435,
1234,
273,
315,
10200,
310,
19459... |
raise ValueError("Only SIGTERM is supported on Windows") | raise ValueError("Unsupported signal") | def send_signal(self, sig): """Send a signal to the process """ if sig == signal.SIGTERM: self.terminate() elif sig == signal.CTRL_C_EVENT: os.kill(self.pid, signal.CTRL_C_EVENT) elif sig == signal.CTRL_BREAK_EVENT: os.kill(self.pid, signal.CTRL_BREAK_EVENT) else: raise ValueError("Only SIGTERM is supported on Windows"... | 859f5eaecb739bbbaf2f7405e65449bca1c93fb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/859f5eaecb739bbbaf2f7405e65449bca1c93fb3/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
10420,
12,
2890,
16,
3553,
4672,
3536,
3826,
279,
4277,
358,
326,
1207,
3536,
309,
3553,
422,
4277,
18,
18513,
15176,
30,
365,
18,
30017,
1435,
1327,
3553,
422,
4277,
18,
23876... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
10420,
12,
2890,
16,
3553,
4672,
3536,
3826,
279,
4277,
358,
326,
1207,
3536,
309,
3553,
422,
4277,
18,
18513,
15176,
30,
365,
18,
30017,
1435,
1327,
3553,
422,
4277,
18,
23876... |
return self.get("label", self["name"] ) def is_hidden( self ): | return self.get("label", self["name"]) def is_hidden(self): | def get_label( self ): """Gets default label""" return self.get("label", self["name"] ) | 0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1925,
12,
365,
262,
30,
3536,
3002,
805,
1433,
8395,
327,
365,
18,
588,
2932,
1925,
3113,
365,
9614,
529,
11929,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1925,
12,
365,
262,
30,
3536,
3002,
805,
1433,
8395,
327,
365,
18,
588,
2932,
1925,
3113,
365,
9614,
529,
11929,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
title = "<span color=\" closeddate = "<span color=\" self.taskdone_ts.append(None,[tid,t.get_color(),title,closeddate]) | title_str = "<span color=\" closeddate_str = "<span color=\" self.taskdone_ts.append(None,[tid,t.get_color(),title_str,closeddate,closeddate_str]) | def refresh_closed(self) : #We build the closed tasks pane dselect = self.taskdone_tview.get_selection() d_path = None if dselect : d_model,d_path = dselect.get_selected_rows() #pylint: disable-msg=W0612 #We empty the pane self.taskdone_ts.clear() #We rebuild it tag_list,notag_only = self.get_selected_tags() closed_tas... | 612537b0c84eca4937fc82d2e663530bca28c69e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/612537b0c84eca4937fc82d2e663530bca28c69e/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
12204,
12,
2890,
13,
294,
468,
3218,
1361,
326,
4375,
4592,
13618,
302,
4025,
273,
365,
18,
4146,
8734,
67,
88,
1945,
18,
588,
67,
10705,
1435,
302,
67,
803,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
12204,
12,
2890,
13,
294,
468,
3218,
1361,
326,
4375,
4592,
13618,
302,
4025,
273,
365,
18,
4146,
8734,
67,
88,
1945,
18,
588,
67,
10705,
1435,
302,
67,
803,
273,
599,
309,
... |
T = pymorph.to_uint8(T) | if T.max() < 256: T = pymorph.to_uint8(T) else: T = pymorph.to_uint8(T*(256.0/T.max())) | def roysam_watershed(dna,thresh=None,blur_factor=3): ''' Run watershed on mixed gradient & intensity image as suggested by Lin et al. -Input dna: DNA image thresh: Gray value threshold (default: computed using Murphy's RC) blur_factor: Blur factor (default: 3) REFERENCE Gang Lin, Umesh Adiga, K... | cccb5683a2e992e44571e0303ce31675d9b834d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12199/cccb5683a2e992e44571e0303ce31675d9b834d8/roysam.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
721,
1900,
301,
67,
91,
31302,
18550,
12,
5176,
69,
16,
19237,
33,
7036,
16,
27065,
67,
6812,
33,
23,
4672,
9163,
1939,
341,
31302,
18550,
603,
7826,
10292,
473,
16551,
1316,
487,
22168,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
721,
1900,
301,
67,
91,
31302,
18550,
12,
5176,
69,
16,
19237,
33,
7036,
16,
27065,
67,
6812,
33,
23,
4672,
9163,
1939,
341,
31302,
18550,
603,
7826,
10292,
473,
16551,
1316,
487,
22168,... |
if vote_up_count > 0: | if vote_up_count > 0 and user_id not in awarded_users: | def first_ask_be_voted(self): query = "SELECT act.user_id, q.vote_up_count FROM \ activity act, question q WHERE act.activity_type = %s AND \ act.object_id = q.id AND\ act.user_id NOT IN (SELECT user_id FROM award WHERE badge_id = %s)" % (TYPE_ACTIVITY_ASK_QUESTION, 13) cursor = connection.cursor() cursor.execute(query... | 13407f9b909fb0fb93ffbc0838b57262c10d9f21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3729/13407f9b909fb0fb93ffbc0838b57262c10d9f21/once_award_badges.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1122,
67,
835,
67,
2196,
67,
90,
16474,
12,
2890,
4672,
843,
273,
315,
4803,
1328,
18,
1355,
67,
350,
16,
1043,
18,
25911,
67,
416,
67,
1883,
4571,
521,
5728,
1328,
16,
5073,
1043,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1122,
67,
835,
67,
2196,
67,
90,
16474,
12,
2890,
4672,
843,
273,
315,
4803,
1328,
18,
1355,
67,
350,
16,
1043,
18,
25911,
67,
416,
67,
1883,
4571,
521,
5728,
1328,
16,
5073,
1043,
4... |
Parse `input_lines` and return a `docutils.nodes.document` instance. Extend `StateMachineWS.run()`: set up parse-global data, run the StateMachine, and return the resulting document. | Parse `input_lines` and modify the `document` node in place. Extend `StateMachineWS.run()`: set up parse-global data and run the StateMachine. | def run(self, input_lines, document, input_offset=0, match_titles=1, inliner=None): """ Parse `input_lines` and return a `docutils.nodes.document` instance. | e68dba6c063d73c2bddeab651f441e8cb455d186 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/e68dba6c063d73c2bddeab651f441e8cb455d186/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
810,
67,
3548,
16,
1668,
16,
810,
67,
3348,
33,
20,
16,
845,
67,
17643,
33,
21,
16,
316,
7511,
264,
33,
7036,
4672,
3536,
2884,
1375,
2630,
67,
3548,
68,
471,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
810,
67,
3548,
16,
1668,
16,
810,
67,
3348,
33,
20,
16,
845,
67,
17643,
33,
21,
16,
316,
7511,
264,
33,
7036,
4672,
3536,
2884,
1375,
2630,
67,
3548,
68,
471,
3... |
if Zpid and not READ_ONLY: | PID_FILE=os.path.join(CLIENT_HOME, 'Z2.pid') if USE_DAEMON and not READ_ONLY: | def set_locale(val): try: import locale except: raise SystemExit, ( 'The locale module could not be imported.\n' 'To use localization options, you must ensure\n' 'that the locale module is compiled into your\n' 'Python installation.' ) try: locale.setlocale(locale.LC_ALL, val) except: raise SystemExit, ( 'The specified... | 61e58cf7076cd2024e39df99896d0a31a9735f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/61e58cf7076cd2024e39df99896d0a31a9735f2a/z2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6339,
12,
1125,
4672,
775,
30,
1930,
2573,
1335,
30,
1002,
25454,
16,
261,
296,
1986,
2573,
1605,
3377,
486,
506,
9101,
8403,
82,
11,
296,
774,
999,
17981,
702,
16,
1846,
1297... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6339,
12,
1125,
4672,
775,
30,
1930,
2573,
1335,
30,
1002,
25454,
16,
261,
296,
1986,
2573,
1605,
3377,
486,
506,
9101,
8403,
82,
11,
296,
774,
999,
17981,
702,
16,
1846,
1297... |
unit_tests = (POSIXProcessTestCase,) | def test_main(): unit_tests = (ProcessTestCase, POSIXProcessTestCase, Win32ProcessTestCase, CommandTests, ProcessTestCaseNoPoll, HelperFunctionTests) unit_tests = (POSIXProcessTestCase,) support.run_unittest(*unit_tests) support.reap_children() | 8fcffbe54c6d7e31b5947e1ac59d1943d377c4f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/8fcffbe54c6d7e31b5947e1ac59d1943d377c4f9/test_subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
2836,
67,
16341,
273,
261,
2227,
4709,
2449,
16,
13803,
31773,
2227,
4709,
2449,
16,
21628,
1578,
2227,
4709,
2449,
16,
3498,
14650,
16,
4389,
4709,
2449,
2279,
1908... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
2836,
67,
16341,
273,
261,
2227,
4709,
2449,
16,
13803,
31773,
2227,
4709,
2449,
16,
21628,
1578,
2227,
4709,
2449,
16,
3498,
14650,
16,
4389,
4709,
2449,
2279,
1908... | |
dt = dt.replace(tzinfo=icuTzinfo) | if not hasattr(dt, 'hour'): dt = forceToDateTime(view, dt, icuTzinfo) else: dt = dt.replace(tzinfo=icuTzinfo) | def getICUInstance(name): result = None if name is not None: result = view.tzinfo.getInstance(name) if result is not None and \ result.tzid == 'GMT' and \ name != 'GMT': result = None | aa7bf0eb18fe0fdff1ae7b1027f4e23d710e26c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/aa7bf0eb18fe0fdff1ae7b1027f4e23d710e26c9/TimeZone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2871,
57,
1442,
12,
529,
4672,
563,
273,
599,
309,
508,
353,
486,
599,
30,
563,
273,
1476,
18,
12994,
1376,
18,
588,
1442,
12,
529,
13,
309,
563,
353,
486,
599,
471,
521,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
2871,
57,
1442,
12,
529,
4672,
563,
273,
599,
309,
508,
353,
486,
599,
30,
563,
273,
1476,
18,
12994,
1376,
18,
588,
1442,
12,
529,
13,
309,
563,
353,
486,
599,
471,
521,
563,
... |
if value is None or value == "": | if value is None: | def is_valid_multiple(self, value): | 33cda8db2844c9e5a5d3d373ffad138a7961426f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/33cda8db2844c9e5a5d3d373ffad138a7961426f/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
877,
67,
9622,
12,
2890,
16,
460,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
877,
67,
9622,
12,
2890,
16,
460,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 44) else quickfix.DoubleField.__init__(self, 44, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
13291,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
13291,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
... |
(k, s) where k is the index of the symbol obtained by acting on the `j`'th symbol with `I`, and `s` is the parity of of the `j`'th symbol. | ``(k, s)`` where k is the index of the symbol obtained by acting on the `j`'th symbol with `I`, and `s` is the parity of of the `j`'th symbol (a Python ``int``, either 1 or -1) | def apply_I(self, j): """ Apply the matrix `I=[-1,0,0,1]` to the `j`-th Manin symbol. | 9ae824ec769dcfde5ec83bc3e40af81e971a8b62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9ae824ec769dcfde5ec83bc3e40af81e971a8b62/manin_symbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
45,
12,
2890,
16,
525,
4672,
3536,
5534,
326,
3148,
1375,
45,
33,
18919,
21,
16,
20,
16,
20,
16,
21,
65,
68,
358,
326,
1375,
78,
68,
17,
451,
8660,
267,
3273,
18,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
67,
45,
12,
2890,
16,
525,
4672,
3536,
5534,
326,
3148,
1375,
45,
33,
18919,
21,
16,
20,
16,
20,
16,
21,
65,
68,
358,
326,
1375,
78,
68,
17,
451,
8660,
267,
3273,
18,
2,
-1... |
cls._iname[inode] += pathname | cls._iname[inode] += [ pathname ] else: cls._iname[inode] = [ pathname ] | def _updateMap(cls, pathname, inode): cls._namei[pathname] = inode | e4bbec517612e6a473a4b4ecafe3c50695485f6b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/e4bbec517612e6a473a4b4ecafe3c50695485f6b/nametoinodemap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
863,
12,
6429,
16,
9806,
16,
17870,
4672,
2028,
6315,
529,
77,
63,
28336,
65,
273,
17870,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
863,
12,
6429,
16,
9806,
16,
17870,
4672,
2028,
6315,
529,
77,
63,
28336,
65,
273,
17870,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if type(value._operand) in (int, long, float) and attr_type in (int, long, float): | if attr_type in (int, long, float) and (type(value._operand) in (int, long, float) or \ isinstance(value._operand, basestring) and value._operand.isdigit()): | def query_raw(self, **attrs): """ Query the database for objects matching all of the given attributes (specified in kwargs). There are a few special kwarg attributes: | b7c50895f4235491799970098e855b65f710b979 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/b7c50895f4235491799970098e855b65f710b979/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
1899,
12,
2890,
16,
2826,
7039,
4672,
3536,
2770,
326,
2063,
364,
2184,
3607,
777,
434,
326,
864,
1677,
261,
13827,
316,
1205,
2934,
225,
6149,
854,
279,
11315,
4582,
19554,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
843,
67,
1899,
12,
2890,
16,
2826,
7039,
4672,
3536,
2770,
326,
2063,
364,
2184,
3607,
777,
434,
326,
864,
1677,
261,
13827,
316,
1205,
2934,
225,
6149,
854,
279,
11315,
4582,
19554,
167... |
for k, v in cls.__dict__.items(): if hasattr(v, '_formfield'): fields.append((k, v)) | for name in dir(cls): if not name.startswith('_'): field = getattr(cls, name) if hasattr(field, '_formfield'): fields.append((name, field)) | def __new__(cls, *args, **kw): """ Use the field creation counter to create an ordered list of form fields. """ if '_unbound_fields' not in cls.__dict__: fields = [] for k, v in cls.__dict__.items(): if hasattr(v, '_formfield'): fields.append((k, v)) fields.sort(lambda x,y: cmp(x[1].creation_counter, y[1].creation_coun... | e8e17f1482bdd0729c47275a8d4555ba35d87b07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8614/e8e17f1482bdd0729c47275a8d4555ba35d87b07/form.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
2672,
326,
652,
6710,
3895,
358,
752,
392,
5901,
666,
434,
646,
1466,
18,
3536,
309,
2070,
318,
3653,
67,
2821,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
2672,
326,
652,
6710,
3895,
358,
752,
392,
5901,
666,
434,
646,
1466,
18,
3536,
309,
2070,
318,
3653,
67,
2821,
11... |
(freqlist,finc)=self.getfreqs(nchan,spw,start,1) | if(mode=='velocity'): (freqlist,finc)=self.getfreqs(nchan,spw,start,-1) else: (freqlist,finc)=self.getfreqs(nchan,spw,start,1) | def setChannelization(self,mode,spw,field,nchan,start,width,frame,veltype,restf): """ determine appropriate values for channelization parameters when default values are used for mode='velocity' or 'frequency' or 'channel' """ #pdb.set_trace() #if (mode!='frequency' and mode!='velocity') or (nchan!=-1 and start!='' and ... | 93b23fce9d48a029a398a23df73f95174e378bb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/93b23fce9d48a029a398a23df73f95174e378bb5/cleanhelper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2909,
1588,
12,
2890,
16,
3188,
16,
1752,
91,
16,
1518,
16,
82,
7472,
16,
1937,
16,
2819,
16,
3789,
16,
941,
723,
16,
8792,
74,
4672,
3536,
4199,
5505,
924,
364,
1904,
1588,
147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2909,
1588,
12,
2890,
16,
3188,
16,
1752,
91,
16,
1518,
16,
82,
7472,
16,
1937,
16,
2819,
16,
3789,
16,
941,
723,
16,
8792,
74,
4672,
3536,
4199,
5505,
924,
364,
1904,
1588,
147... |
elif square.color() == EMPTY: | elif squarecolor == EMPTY: | def score(self, color): """ score according to chinese rules (area, instead of territory) """ if color == WHITE: count = KOMI + self.black_dead else: count = self.white_dead for square in self.squares: if square.color() == color: count += 1 elif square.color() == EMPTY: surround = 0 for neighbour in square.neighbours: ... | b93265f9827cb41167492d438d904c50adf13529 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6661/b93265f9827cb41167492d438d904c50adf13529/go.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4462,
12,
2890,
16,
2036,
4672,
3536,
4462,
4888,
358,
462,
25331,
2931,
261,
5036,
16,
3560,
434,
268,
25313,
13,
3536,
309,
2036,
422,
24353,
30,
1056,
273,
1475,
1872,
45,
397,
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,
4462,
12,
2890,
16,
2036,
4672,
3536,
4462,
4888,
358,
462,
25331,
2931,
261,
5036,
16,
3560,
434,
268,
25313,
13,
3536,
309,
2036,
422,
24353,
30,
1056,
273,
1475,
1872,
45,
397,
365,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.