rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
return the principle root.
return the principal root.
def nth_root(self, n): """ Return the nth root of this number.
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, 20196, 67, 3085, 12, 2890, 16, 290, 4672, 3536, 2000, 326, 20196, 1365, 434, 333, 1300, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20196, 67, 3085, 12, 2890, 16, 290, 4672, 3536, 2000, 326, 20196, 1365, 434, 333, 1300, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 120)
self.assertEqual(u.fp.raw._sock.gettimeout(), 120)
def test_http_timeout(self): u = _urlopen_with_retry("http://www.python.org", timeout=120) self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 120)
5ce8975a83a5664bc531c881eb9c98ebf09801e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/5ce8975a83a5664bc531c881eb9c98ebf09801e3/test_urllib2net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2505, 67, 4538, 12, 2890, 4672, 582, 273, 389, 295, 18589, 67, 1918, 67, 9620, 2932, 2505, 2207, 5591, 18, 8103, 18, 3341, 3113, 2021, 33, 22343, 13, 365, 18, 11231, 5812, 12, 89, 18, 7944, 18, 7944, 18, 1899, 6315, 15031, 18, 588, 4538, 9334, 15743, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1918, 67, 9620, 2932, 2505, 2207, 5591, 18, 8103, 18, 3341, 3113, 2021, 33, 22343, 13, 365, 18, 11231, 5812, 12, 89, 18, 7944, 18, 7944, 18, 1899, 6315, 15031, 18, 588, 4538, 9334, 15743, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def getHash(self): return len(DebugClass.itemlist)
assert self.dprint(items) for i in range(len(items)): self.Check(i, self.isChecked(i)) self.Bind(wx.EVT_CHECKLISTBOX, self.OnCheckListBox)
def getHash(self): return len(DebugClass.itemlist)
56ac591d312ea693f3992735f261bc9a7c0cde45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/56ac591d312ea693f3992735f261bc9a7c0cde45/debug_classes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16075, 12, 2890, 4672, 327, 562, 12, 2829, 797, 18, 1726, 1098, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 16075, 12, 2890, 4672, 327, 562, 12, 2829, 797, 18, 1726, 1098, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
in gmt (such as those returned by time.time()) and the
in gmt (such as those returned by time.time()) and the
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 3536, 990, 279, 394, 1509, 17, 957, 733, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14, 1968, 4672, 3536, 990, 279, 394, 1509, 17, 957, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
parent = wx.GetApp().mainFrame
app = wx.GetApp() if app is not None: parent = app.mainFrame
def get(view, parent=None, testPassword=None): """ Get the master password. If needed, it will be asked from the user. Safe to call from from a background thread. @raise NoMasterPassword: NoMasterPassword will be raised if we have a non-default master password that has timed out, and the user cancels the dialog where we ask for it. @param view: Repository view. @return: deferred """ if _timer is not None: _timer.cancel() prefs = schema.ns("osaf.framework.MasterPassword", view).masterPasswordPrefs if not prefs.masterPassword: return '' # Return the cached password if we have it if _masterPassword is not None: # Reset timer _setTimedPassword(_masterPassword, prefs.timeout * 60) return _masterPassword # Otherwise, let's ask the user... from osaf.framework import password if testPassword is not None: passwords = [testPassword] else: passwords = [item for item in password.Password.iterItems(view)] if parent is None: parent = wx.GetApp().mainFrame while True: dlg = GetMasterPasswordDialog(parent, prefs.timeout) if wx.Platform == '__WXMAC__': dlg.CenterOnParent() try: if dlg.ShowModal() != wx.ID_OK: raise password.NoMasterPassword(_(u'No master password')) pword, timeout = dlg.getPasswordAndTimeout() finally: dlg.Destroy() again = False for item in passwords: if not waitForDeferred(item.initialized()): continue try: waitForDeferred(item.decryptPassword(masterPassword=pword)) break except password.DecryptionError: again = True break else: raise RuntimeError('At least one password was expected to be initialized') if again: wx.MessageBox (_(u'Master password was incorrect, please try again.'), _(u'Incorrect password'), parent=parent) continue break if prefs.timeout != timeout: prefs.timeout = timeout view.commit() _setTimedPassword(pword, timeout * 60) return _masterPassword
51897aa3f2b00065302646e2e9094f4d63a8782b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/51897aa3f2b00065302646e2e9094f4d63a8782b/MasterPassword.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 1945, 16, 982, 33, 7036, 16, 1842, 3913, 33, 7036, 4672, 3536, 968, 326, 4171, 2201, 18, 971, 3577, 16, 518, 903, 506, 19279, 628, 326, 729, 18, 225, 14060, 358, 745, 628, 628, 279, 5412, 2650, 18, 225, 632, 11628, 2631, 7786, 3913, 30, 2631, 7786, 3913, 903, 506, 11531, 309, 732, 1240, 279, 1661, 17, 1886, 4171, 2201, 716, 711, 7491, 596, 16, 471, 326, 729, 3755, 87, 326, 6176, 1625, 732, 6827, 364, 518, 18, 225, 632, 891, 1476, 30, 282, 6281, 1476, 18, 632, 2463, 30, 4202, 7045, 3536, 309, 389, 12542, 353, 486, 599, 30, 389, 12542, 18, 10996, 1435, 225, 15503, 273, 1963, 18, 2387, 2932, 538, 1727, 18, 12303, 18, 7786, 3913, 3113, 1476, 2934, 7525, 3913, 1386, 2556, 225, 309, 486, 15503, 18, 7525, 3913, 30, 327, 875, 225, 468, 2000, 326, 3472, 2201, 309, 732, 1240, 518, 309, 389, 7525, 3913, 353, 486, 599, 30, 468, 7151, 5441, 389, 542, 19336, 3913, 24899, 7525, 3913, 16, 15503, 18, 4538, 380, 4752, 13, 327, 389, 7525, 3913, 225, 468, 5272, 16, 2231, 1807, 6827, 326, 729, 2777, 628, 1140, 1727, 18, 12303, 1930, 2201, 225, 309, 1842, 3913, 353, 486, 599, 30, 24210, 273, 306, 3813, 3913, 65, 469, 30, 24210, 273, 306, 1726, 364, 761, 316, 2201, 18, 3913, 18, 2165, 3126, 12, 1945, 25887, 225, 309, 982, 353, 599, 30, 595, 273, 7075, 18, 967, 3371, 1435, 309, 595, 353, 486, 599, 30, 982, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 1945, 16, 982, 33, 7036, 16, 1842, 3913, 33, 7036, 4672, 3536, 968, 326, 4171, 2201, 18, 971, 3577, 16, 518, 903, 506, 19279, 628, 326, 729, 18, 225, 14060, 358, 745, 628, 628, 279, 5412, 2650, 18, 225, 632, 11628, 2631, 7786, 3913, 30, 2631, 7786, 3913, 903, 506, 11531, 309, 732, 1240, 279, 1661, 17, 1886, 4171, 2201, 716, 711, 7491, 596, 16, 471, 326, 729, 3755, 87, 326, 6176, 1625, 732, 6827, 364, 518, 18, 225, 632, 891, 1476, 30, 282, 6281, 1476, 18, 632, 2463, 30, 4202, 7045, 3536, 309, 389, 12542, 353, 486, 599, 30, 389, 12542, 18, 10996, 1435, 225, 15503, 273, 1963, 18, 2387, 2932, 538, 1727, 18, 12303, 2 ]
preOps = [ migrator(rate=[
preOps = migrator(rate=[
def mutator(pop, param): 'Parameter has a length of region and a mutation rate at each basepair' region, rate = param # there are certainly more efficient algorithm, but this # example just mutate each basepair one by one.... for i in range(region): if random.random() < rate: try: idx = pop.addLoci(chrom=0, pos=i)[0] except: # position might duplicate continue # choose someone to mutate ind = pop.individual(random.randint(0, pop.popSize() - 1)) ind.setAllele(1, idx) return True
505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29156, 12, 5120, 16, 579, 4672, 296, 1662, 711, 279, 769, 434, 3020, 471, 279, 11934, 4993, 622, 1517, 1026, 6017, 11, 3020, 16, 4993, 273, 579, 468, 1915, 854, 8626, 715, 1898, 14382, 4886, 16, 1496, 333, 468, 3454, 2537, 15887, 1517, 1026, 6017, 1245, 635, 1245, 6265, 364, 277, 316, 1048, 12, 6858, 4672, 309, 2744, 18, 9188, 1435, 411, 4993, 30, 775, 30, 2067, 273, 1843, 18, 1289, 1333, 77, 12, 16298, 33, 20, 16, 949, 33, 77, 25146, 20, 65, 1335, 30, 468, 1754, 4825, 6751, 1324, 468, 9876,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29156, 12, 5120, 16, 579, 4672, 296, 1662, 711, 279, 769, 434, 3020, 471, 279, 11934, 4993, 622, 1517, 1026, 6017, 11, 3020, 16, 4993, 273, 579, 468, 1915, 854, 8626, 715, 1898, 14382, 4886, 16, 1496, 333, 468, 3454, 2537, 15887, 1517, 1026, 6017, 1245, 635, 1245, 6265, 364, 277, 316, 1048, 12, 6858, 4672, 309, 2744, 18, 9188, 1435, 411, 4993, 30, 775, 30, 2067, 273, 1843, 18, 1289, 1333, 77, 12, 16298, 33, 20, 16, 949, 33, 77, 25146, 20, 65, 1335, 30, 468, 1754, 4825, 6751, 1324, 468, 9876, 18626, 358, 15887, 1547, 273, 1843, 18, 22032, 5557, 12, 9188, 18, 7884, 474, 12, 20, 16, 1843, 18, 5120, 1225, 1435, 300, 404, 3719, 2 ]
BENTO4_VERSION = '0-9-7'
BENTO4_VERSION = '0-9-8'
def ZipIt(dir) : zip_filename = dir+'.zip' if os.path.exists(zip_filename): os.remove(zip_filename) archive = zipfile.ZipFile(zip_filename, "w", zipfile.ZIP_DEFLATED) ZipDir(dir, archive, dir) archive.close()
c72968b880caab3967e0e9d1045e30a49e4f0b16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5710/c72968b880caab3967e0e9d1045e30a49e4f0b16/ExportSourceTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8603, 7193, 12, 1214, 13, 294, 3144, 67, 3459, 273, 1577, 6797, 18, 4450, 11, 225, 309,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8603, 7193, 12, 1214, 13, 294, 3144, 67, 3459, 273, 1577, 6797, 18, 4450, 11, 225, 309, 1140, 18, 803, 18, 1808, 12, 4450, 67, 3459, 4672, 1140, 18, 4479, 12, 4450, 67, 3459, 13, 225, 5052, 273, 18823, 18, 29394, 12, 4450, 67, 3459, 16, 315, 91, 3113, 18823, 18, 13951, 67, 12904, 48, 6344, 13, 8603, 1621, 12, 1214, 16, 5052, 16, 1577, 13, 5052, 18, 4412, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
s = idaapi.get_struc(id)
s = idaapi.get_struc(sid)
def DelStruc(id): """ Delete a structure type @param id: structure type ID @return: 0 if bad structure type ID is passed 1 otherwise the structure type is deleted. All data and other structure types referencing to the deleted structure type will be displayed as array of bytes. """ s = idaapi.get_struc(id) if not s: return 0 return idaapi.del_struc(s)
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6603, 1585, 5286, 12, 350, 4672, 3536, 2504, 279, 3695, 618, 225, 632, 891, 612, 30, 3695, 618, 1599, 225, 632, 2463, 30, 374, 309, 5570, 3695, 618, 1599, 353, 2275, 404, 3541, 326, 3695, 618, 353, 4282, 18, 4826, 501, 471, 1308, 3695, 1953, 24509, 358, 326, 4282, 3695, 618, 903, 506, 10453, 487, 526, 434, 1731, 18, 3536, 272, 273, 612, 69, 2425, 18, 588, 67, 701, 5286, 12, 7453, 13, 309, 486, 272, 30, 327, 374, 225, 327, 612, 69, 2425, 18, 3771, 67, 701, 5286, 12, 87, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6603, 1585, 5286, 12, 350, 4672, 3536, 2504, 279, 3695, 618, 225, 632, 891, 612, 30, 3695, 618, 1599, 225, 632, 2463, 30, 374, 309, 5570, 3695, 618, 1599, 353, 2275, 404, 3541, 326, 3695, 618, 353, 4282, 18, 4826, 501, 471, 1308, 3695, 1953, 24509, 358, 326, 4282, 3695, 618, 903, 506, 10453, 487, 526, 434, 1731, 18, 3536, 272, 273, 612, 69, 2425, 18, 588, 67, 701, 5286, 12, 7453, 13, 309, 486, 272, 30, 327, 374, 225, 327, 612, 69, 2425, 18, 3771, 67, 701, 5286, 12, 87, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self.__entries.index (entry)
return self._entries.index (entry)
def index (self, entry): return self.__entries.index (entry)
ed500b819555108af67057bd24de252315b598d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/ed500b819555108af67057bd24de252315b598d2/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 261, 2890, 16, 1241, 4672, 327, 365, 16186, 8219, 18, 1615, 261, 4099, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 770, 261, 2890, 16, 1241, 4672, 327, 365, 16186, 8219, 18, 1615, 261, 4099, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
class StrokeOrderBuilder(CSVFileLoader):
class NarrowBuildCSVFileLoader(CSVFileLoader): """ A CSVFileLoader that ignores entries for Unicode characters outside the BMP. """ @classmethod def getDefaultOptions(cls): options = super(NarrowBuildCSVFileLoader, cls).getDefaultOptions() options.update({'wideBuild': True}) return options @classmethod def getOptionMetaData(cls, option): optionsMetaData = {'wideBuild': {'type': 'bool', 'description': "include characters outside the Unicode BMP"}} if option in optionsMetaData: return optionsMetaData[option] else: return super(NarrowBuildCSVFileLoader, cls).getOptionMetaData( option) def filterEntry(self, entryDict): if (entryDict and 'ChineseCharacter' in entryDict and entryDict['ChineseCharacter'] > u'\U00010000'): return None return entryDict class StrokeOrderBuilder(NarrowBuildCSVFileLoader):
def build(self): import codecs
ec20f0cb3b7d6f3d33d81ca502fd1939f9d56e73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/ec20f0cb3b7d6f3d33d81ca502fd1939f9d56e73/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 4672, 1930, 17437, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1361, 12, 2890, 4672, 1930, 17437, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return super(osv.osv,self).write(cr, uid, ids, vals, context)
return super(task,self).write(cr, uid, ids, vals, context)
def write(self, cr, uid, ids,vals,context={}): if (vals.has_key('project_id') and vals['project_id']) or (vals.has_key('name') and vals['name']): vals_line = {} hr_anlytic_timesheet = self.pool.get('hr.analytic.timesheet') task_obj_l = self.browse(cr, uid, ids, context) if (vals.has_key('project_id') and vals['project_id']): project_obj = self.pool.get('project.project').browse(cr, uid, vals['project_id']) acc_id = project_obj.category_id.id
a9f6551f879763c23ece121459a21f76bb874ebf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/a9f6551f879763c23ece121459a21f76bb874ebf/project_timesheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4524, 16, 2472, 12938, 4672, 309, 261, 4524, 18, 5332, 67, 856, 2668, 4406, 67, 350, 6134, 471, 5773, 3292, 4406, 67, 350, 19486, 578, 261, 4524, 18, 5332, 67, 856, 2668, 529, 6134, 471, 5773, 3292, 529, 3546, 4672, 5773, 67, 1369, 273, 2618, 15407, 67, 304, 715, 88, 335, 67, 8293, 2963, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 304, 7834, 335, 18, 8293, 2963, 6134, 1562, 67, 2603, 67, 80, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 13, 309, 261, 4524, 18, 5332, 67, 856, 2668, 4406, 67, 350, 6134, 471, 5773, 3292, 4406, 67, 350, 3546, 4672, 1984, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4406, 18, 4406, 16063, 25731, 12, 3353, 16, 4555, 16, 5773, 3292, 4406, 67, 350, 19486, 4078, 67, 350, 273, 1984, 67, 2603, 18, 4743, 67, 350, 18, 350, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4524, 16, 2472, 12938, 4672, 309, 261, 4524, 18, 5332, 67, 856, 2668, 4406, 67, 350, 6134, 471, 5773, 3292, 4406, 67, 350, 19486, 578, 261, 4524, 18, 5332, 67, 856, 2668, 529, 6134, 471, 5773, 3292, 529, 3546, 4672, 5773, 67, 1369, 273, 2618, 15407, 67, 304, 715, 88, 335, 67, 8293, 2963, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 304, 7834, 335, 18, 8293, 2963, 6134, 1562, 67, 2603, 67, 80, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 13, 309, 261, 4524, 18, 5332, 67, 856, 2668, 4406, 67, 350, 6134, 471, 5773, 3292, 4406, 67, 350, 3546, 4672, 2 ]
(element.getPackage().getCleanName(),
(element.getProduct().getCleanName(),
def generateArchetypesClass(self, element,**kw): """this is the all singing all dancing core generator logic for a full featured Archetypes class """ log.info("%sGenerating class '%s'.", ' '*self.infoind, element.getName()) name = element.getCleanName() # prepare file outfile=StringIO() wrt = outfile.write wrt('\n') # dealing with creation-permissions and -roles for this type if self.detailed_created_permissions: creation_permission = ("'Add %s Content'" % element.getCleanName()) # TODO: looks a bit shitty, ^^^^^. 'Add Event Content'... # 'Add MyProduct Content' is ok, but the prefixed way # 'Myproduct: Add Event' is preferrable to the above # version. # As luck would have it, there was a typo # --detailed-created-permissions, so I fixed the non-typo # --detailed-creation-permissions up with the new # generated syntax. elif self.detailed_creation_permissions: creation_permission =("'%s: Add %s'" % (element.getPackage().getCleanName(), element.getCleanName())) else: creation_permission = None creation_roles = "('Manager', 'Owner')" cpfromoption = self.getOption('creation_permission', element, None) if cpfromoption: creation_permission = self.processExpression(cpfromoption) crfromoption = self.getOption('creation_roles', element, None) if crfromoption: creation_roles = self.processExpression(crfromoption)
19a845e5df3a08f15a2b11421d0b48d96c717e53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/19a845e5df3a08f15a2b11421d0b48d96c717e53/ArchetypesGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12269, 15180, 797, 12, 2890, 16, 930, 16, 636, 9987, 4672, 3536, 2211, 353, 326, 777, 4864, 310, 777, 302, 304, 2822, 2922, 4456, 4058, 364, 279, 1983, 2572, 72, 16959, 15180, 667, 3536, 613, 18, 1376, 27188, 87, 21755, 667, 1995, 87, 14550, 16, 296, 565, 14609, 2890, 18, 1376, 728, 16, 930, 18, 17994, 10756, 225, 508, 273, 930, 18, 588, 7605, 461, 1435, 225, 468, 2911, 585, 8756, 33, 780, 4294, 1435, 31565, 273, 8756, 18, 2626, 31565, 2668, 64, 82, 6134, 225, 468, 21964, 598, 6710, 17, 9612, 471, 300, 7774, 364, 333, 618, 309, 365, 18, 72, 6372, 67, 4824, 67, 9612, 30, 6710, 67, 9827, 273, 261, 5187, 986, 738, 87, 3697, 4970, 738, 930, 18, 588, 7605, 461, 10756, 468, 2660, 30, 10192, 279, 2831, 699, 305, 4098, 16, 3602, 20254, 18, 296, 986, 2587, 3697, 11, 2777, 468, 296, 986, 8005, 4133, 3697, 11, 353, 1529, 16, 1496, 326, 12829, 4031, 468, 296, 12062, 5896, 30, 1436, 2587, 11, 353, 13256, 354, 7119, 358, 326, 5721, 468, 1177, 18, 468, 2970, 328, 9031, 4102, 1240, 518, 16, 1915, 1703, 279, 3815, 83, 468, 1493, 72, 6372, 17, 4824, 17, 9612, 16, 1427, 467, 5499, 326, 1661, 17, 12846, 83, 468, 1493, 72, 6372, 17, 17169, 17, 9612, 731, 598, 326, 394, 468, 4374, 6279, 18, 1327, 365, 18, 72, 6372, 67, 17169, 67, 9612, 30, 6710, 67, 9827, 273, 29823, 9, 87, 30, 1436, 738, 87, 4970, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12269, 15180, 797, 12, 2890, 16, 930, 16, 636, 9987, 4672, 3536, 2211, 353, 326, 777, 4864, 310, 777, 302, 304, 2822, 2922, 4456, 4058, 364, 279, 1983, 2572, 72, 16959, 15180, 667, 3536, 613, 18, 1376, 27188, 87, 21755, 667, 1995, 87, 14550, 16, 296, 565, 14609, 2890, 18, 1376, 728, 16, 930, 18, 17994, 10756, 225, 508, 273, 930, 18, 588, 7605, 461, 1435, 225, 468, 2911, 585, 8756, 33, 780, 4294, 1435, 31565, 273, 8756, 18, 2626, 31565, 2668, 64, 82, 6134, 225, 468, 21964, 598, 6710, 17, 9612, 471, 300, 7774, 364, 333, 618, 309, 365, 18, 72, 6372, 67, 4824, 67, 9612, 30, 6710, 67, 9827, 273, 261, 5187, 986, 738, 87, 2 ]
r+="X"
r[-1]['val']="X"
def encodetiles(self,tilelist): if not tilelist: return '' r='' for t in tilelist: #The browser swaps the X and Y values, it seems. r+="%d%d%d"%(t.pos[1],t.pos[0],t.uncovered) if t.bomb: r+="X" else: r+=str(t.adjacency) return r
146b666f749ad20ba42d4c049d42b6474b7c5e65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14104/146b666f749ad20ba42d4c049d42b6474b7c5e65/webmines.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17755, 278, 1449, 12, 2890, 16, 1025, 5449, 4672, 309, 486, 268, 330, 5449, 30, 327, 875, 436, 2218, 11, 364, 268, 316, 268, 330, 5449, 30, 468, 1986, 4748, 1352, 6679, 326, 1139, 471, 1624, 924, 16, 518, 12001, 18, 436, 15, 11613, 72, 9, 72, 9, 72, 6, 17105, 88, 18, 917, 63, 21, 6487, 88, 18, 917, 63, 20, 6487, 88, 18, 551, 1643, 329, 13,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17755, 278, 1449, 12, 2890, 16, 1025, 5449, 4672, 309, 486, 268, 330, 5449, 30, 327, 875, 436, 2218, 11, 364, 268, 316, 268, 330, 5449, 30, 468, 1986, 4748, 1352, 6679, 326, 1139, 471, 1624, 924, 16, 518, 12001, 18, 436, 15, 11613, 72, 9, 72, 9, 72, 6, 17105, 88, 18, 917, 63, 21, 6487, 88, 18, 917, 63, 20, 6487, 88, 18, 551, 1643, 329, 13, 309, 268, 18, 70, 16659, 30, 436, 18919, 21, 23962, 1125, 3546, 1546, 60, 6, 469, 30, 436, 15, 33, 701, 12, 88, 18, 13829, 1077, 2075, 13, 327, 436, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
name, self, ''.join(traceback.format_trace())))
name, self, ''.join(traceback.format_exc())))
def __getitem__(self, name): if name == 'id': return self._id if name not in self._data[self._id]: # build the list of fields we will fetch
01adbd02623d43c62d1daf70fb3e15cb5df9cbed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/01adbd02623d43c62d1daf70fb3e15cb5df9cbed/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434, 1466, 732, 903, 2158, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.unpack_tarball( tarball_path )
self.unpack_tarball( tarball_path, self.boost_root )
def get_tarball( self, *args ): if not args or args == []: args = [ 'download', 'unpack' ]
3f0366c1d4e33eca4693567235cd2cbe44e6bfde /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7959/3f0366c1d4e33eca4693567235cd2cbe44e6bfde/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 88, 23846, 12, 365, 16, 380, 1968, 262, 30, 309, 486, 833, 578, 833, 422, 5378, 30, 833, 273, 306, 296, 7813, 2187, 296, 17309, 11, 308, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_, stepless_data = zip(*data)
if min_step is not None: data = [(step, tup) for step, tup in data if min_step <= step] if max_step is not None: data = [(step, tup) for step, tup in data if step <= max_step] stepless_data = [tup for step, tup in data]
def get_plot_data(self, expr_x, expr_y): """Generate plot-ready data.
e95d25887b561966f6c5076fe18c3901d1d73897 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12871/e95d25887b561966f6c5076fe18c3901d1d73897/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4032, 67, 892, 12, 2890, 16, 3065, 67, 92, 16, 3065, 67, 93, 4672, 3536, 4625, 3207, 17, 1672, 501, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4032, 67, 892, 12, 2890, 16, 3065, 67, 92, 16, 3065, 67, 93, 4672, 3536, 4625, 3207, 17, 1672, 501, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ignore[self.mylang] = self.mysite.namespaces()
ignore_title[self.mylang] = self.mysite.namespaces()
def run(self): if self.main_only: if ignore.has_key(self.mylang): ignore[self.mylang] += self.mysite.namespaces() else: ignore[self.mylang] = self.mysite.namespaces() for disambTitle in self.page_list: # when run with -redir argument, there's another summary message if self.solve_redirect: wikipedia.setAction(wikipedia.translate(self.mysite,msg_redir) % disambTitle) else: wikipedia.setAction(wikipedia.translate(self.mysite,msg) % disambTitle) disambPl = wikipedia.PageLink(self.mysite, disambTitle) self.primaryIgnoreManager = PrimaryIgnoreManager(disambPl, enabled = self.primary) if self.solve_redirect: try: target = disambPl.getRedirectTo() target = unicode(target, wikipedia.myencoding()) self.alternatives.append(target) except wikipedia.NoPage: print "The specified page was not found." user_input = wikipedia.input(u"Please enter the name of the page where the redirect should have pointed at, or press enter to quit:") if user_input == "": sys.exit(1) else: self.alternatives.append(user_input) except wikipedia.IsNotRedirectPage: print "The specified page is not a redirect." sys.exit(1) elif self.getAlternatives: try: if self.primary: disamb_pl = wikipedia.PageLink(self.mysite, primary_topic_format[self.mylang] % disambTitle) thistxt = disamb_pl.get(throttle=False) else: thistxt = disambPl.get(throttle=False) except wikipedia.IsRedirectPage,arg: thistxt = wikipedia.PageLink(self.mysite, str(arg)).get(throttle=False) thistxt = wikipedia.removeLanguageLinks(thistxt) thistxt = wikipedia.removeCategoryLinks(thistxt, self.mysite) # regular expression matching a wikilink w = r'([^\]\|]*)' Rlink = re.compile(r'\[\['+w+r'(\|'+w+r')?\]\]') for matchObj in Rlink.findall(thistxt): self.alternatives.append(matchObj[0]) self.makeAlternativesUnique() # sort possible choices self.alternatives.sort() self.listAlternatives() gen = ReferringPageGenerator(disambPl) for refpl in gen.generate(): if not self.primaryIgnoreManager.isIgnored(refpl): # run until the user selected 'quit' if not self.treat(refpl, disambPl): break # clear alternatives before working on next disambiguation page self.alternatives = []
c3bf7b6226198bd9948d0e297929fc74124dd44a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/c3bf7b6226198bd9948d0e297929fc74124dd44a/solve_disambiguation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 365, 18, 5254, 67, 3700, 30, 309, 2305, 18, 5332, 67, 856, 12, 2890, 18, 4811, 4936, 4672, 2305, 63, 2890, 18, 4811, 4936, 65, 1011, 365, 18, 81, 1900, 1137, 18, 16078, 1435, 469, 30, 2305, 67, 2649, 63, 2890, 18, 4811, 4936, 65, 273, 365, 18, 81, 1900, 1137, 18, 16078, 1435, 225, 364, 1015, 2536, 4247, 316, 365, 18, 2433, 67, 1098, 30, 468, 1347, 1086, 598, 300, 1118, 481, 1237, 16, 1915, 1807, 4042, 4916, 883, 309, 365, 18, 24626, 67, 7590, 30, 21137, 18, 542, 1803, 12, 11999, 13744, 18, 13929, 12, 2890, 18, 81, 1900, 1137, 16, 3576, 67, 1118, 481, 13, 738, 1015, 2536, 4247, 13, 469, 30, 21137, 18, 542, 1803, 12, 11999, 13744, 18, 13929, 12, 2890, 18, 81, 1900, 1137, 16, 3576, 13, 738, 1015, 2536, 4247, 13, 225, 1015, 2536, 1749, 273, 21137, 18, 1964, 2098, 12, 2890, 18, 81, 1900, 1137, 16, 1015, 2536, 4247, 13, 225, 365, 18, 8258, 3777, 1318, 273, 15884, 3777, 1318, 12, 2251, 2536, 1749, 16, 3696, 273, 365, 18, 8258, 13, 225, 309, 365, 18, 24626, 67, 7590, 30, 775, 30, 1018, 273, 1015, 2536, 1749, 18, 588, 5961, 774, 1435, 1018, 273, 5252, 12, 3299, 16, 21137, 18, 4811, 5999, 10756, 365, 18, 16025, 8785, 18, 6923, 12, 3299, 13, 1335, 21137, 18, 2279, 1964, 30, 1172, 315, 1986, 1269, 1363, 1703, 486, 1392, 1199, 729, 67, 2630, 273, 21137, 18, 2630, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 365, 18, 5254, 67, 3700, 30, 309, 2305, 18, 5332, 67, 856, 12, 2890, 18, 4811, 4936, 4672, 2305, 63, 2890, 18, 4811, 4936, 65, 1011, 365, 18, 81, 1900, 1137, 18, 16078, 1435, 469, 30, 2305, 67, 2649, 63, 2890, 18, 4811, 4936, 65, 273, 365, 18, 81, 1900, 1137, 18, 16078, 1435, 225, 364, 1015, 2536, 4247, 316, 365, 18, 2433, 67, 1098, 30, 468, 1347, 1086, 598, 300, 1118, 481, 1237, 16, 1915, 1807, 4042, 4916, 883, 309, 365, 18, 24626, 67, 7590, 30, 21137, 18, 542, 1803, 12, 11999, 13744, 18, 13929, 12, 2890, 18, 81, 1900, 1137, 16, 3576, 67, 1118, 481, 13, 738, 1015, 2536, 4247, 13, 2 ]
self.logger.error( '__escape_string: Could not escape string', '"%s"' %s )
self.logger.debug( '__escape_string: Could not escape string', '"%s"' %s )
def __escapeString( self, s, connection ): """ To be used for escaping any MySQL string before passing it to the DB this should prevent passing non-MySQL acepted characters to the DB It also includes quotation marks " around the given string """
dbbfc2e9691b79636765e7ead3e5df27861504bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/dbbfc2e9691b79636765e7ead3e5df27861504bc/MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6939, 780, 12, 365, 16, 272, 16, 1459, 262, 30, 3536, 2974, 506, 1399, 364, 20604, 1281, 13485, 533, 1865, 9588, 518, 358, 326, 2383, 333, 1410, 5309, 9588, 1661, 17, 28723, 279, 956, 329, 3949, 358, 326, 2383, 2597, 2546, 6104, 4914, 367, 13999, 315, 6740, 326, 864, 533, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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326, 2383, 333, 1410, 5309, 9588, 1661, 17, 28723, 279, 956, 329, 3949, 358, 326, 2383, 2597, 2546, 6104, 4914, 367, 13999, 315, 6740, 326, 864, 533, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pass
def __init__(self, script_args=None, exit_code=None, message=None, output=None, cwd=None): if not message: message = 'Failed to run "%s"' % script_args if exit_code: message += " exit_code: %d" % exit_code if cwd: message += " cwd: %s" % cwd Exception.__init__(self, message) self.script_args = script_args self.exit_code = exit_code self.output = output self.cwd = cwd def message_with_output(self, output_limit=500): if self.output: if len(self.output) > output_limit: return "%s\nLast %s characters of output:\n%s" % (self, output_limit, self.output[-output_limit:]) return "%s\n%s" % (self, self.output) return str(self)
def message(self): return "\n".join(self.message_lines) + "\n"
cbfef173775a18c163a046efa120abeeff3a6751 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/cbfef173775a18c163a046efa120abeeff3a6751/scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 12, 2890, 4672, 327, 1548, 82, 9654, 5701, 12, 2890, 18, 2150, 67, 3548, 13, 397, 1548, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 883, 12, 2890, 4672, 327, 1548, 82, 9654, 5701, 12, 2890, 18, 2150, 67, 3548, 13, 397, 1548, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for dn in ticket_dn_list:
print job_dn_list for dn,group in ticket_dn_list: print dn,group
def execute(self): """ The main agent execution method """
1cff06ebf279b10e12a27c88249cd250a48ec3fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/1cff06ebf279b10e12a27c88249cd250a48ec3fb/ProxyRenewalAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps")))
bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps")))
def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fallout3.png'), _("Launch Fallout3"), _("Launch Fallout3 + FOSE"), '')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('GECK.exe'), Image(r'images/geck.png'), _("Launch GECK"), _("Launch GECK + FOSE"), '-editor')) BashStatusBar.buttons.append( App_Button( bosh.dirs['app'].join('fomm\\fomm.exe'), Image(r'images/database_connect.png'), _("Launch FOMM"))) BashStatusBar.buttons.append( App_FO3Edit( (bosh.dirs['FO3EditPath'], '-view'), Image(r'images/brick_edit.png'), _("Launch FO3View"))) BashStatusBar.buttons.append( App_FO3Edit( dirs['FO3EditPath']), Image(r'images/brick.png'), _("Launch FO3Edit"))) BashStatusBar.buttons.append( App_FO3Edit( (dirs['FO3EditPath'],'-translate'), Image(r'images/brick_error.png'), _("Launch FO3Trans"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/Boss1.png'), _("Launch BOSS"))) BashStatusBar.buttons.append( App_BOSS( bosh.dirs['app'].join('Data\\BOSS-F.bat'), Image(r'images/boss2.png'), _("Launch BOSS"))) if bosh.inisettings['showmodelingtoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['BlenderPath'], Image(r'images/blender.png'), _("Launch Blender"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['GmaxPath'], Image(r'images/gmax.png'), _("Launch Gmax"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MayaPath'], Image(r'images/maya.png'), _("Launch Maya"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['MaxPath'], Image(r'images/max.png'), _("Launch 3dsMax"))) if bosh.inisettings['showmodelingtoollaunchers'] or bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['NifskopePath'], Image(r'images/nifskope.png'), _("Launch Nifskope"))) if bosh.inisettings['showtexturetoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['GIMP'], Image(r'images/gimp.png'), _("Launch GIMP"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Photoshop'], Image(r'images/photoshop.png'), _("Launch Photoshop"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Artweaver'], Image(r'images/artweaver.png'), _("Launch Artweaver"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['PaintNET'], Image(r'images/paint.net.png'), _("Launch Paint.NET"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['DDSConverter'], Image(r'images/ddsconverter.png'), _("Launch DDSConverter"))) if bosh.inisettings['showaudiotoollaunchers']: BashStatusBar.buttons.append( App_Button( bosh.dirs['Audacity'], Image(r'images/audacity.png'), _("Launch Audacity"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Fraps'], Image(r'images/fraps.png'), _("Launch Fraps"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['NPP'], Image(r'images/notepad++.png'), _("Launch Notepad++"))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom2'], Image(r'images/custom2.png'), _(bosh.inisettings['custom2txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom3'], Image(r'images/custom3.png'), _(bosh.inisettings['custom3txt']))) BashStatusBar.buttons.append( App_Button( bosh.dirs['Custom4'], Image(r'images/custom4.png'), _(bosh.inisettings['custom4txt']))) BashStatusBar.buttons.append(App_BashMon()) BashStatusBar.buttons.append(App_DocBrowser()) BashStatusBar.buttons.append(App_ModChecker()) BashStatusBar.buttons.append(App_Help())
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 1482, 5190, 13332, 3536, 7520, 1267, 4653, 4716, 12123, 468, 413, 38, 961, 2685, 19, 2098, 5190, 468, 38, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 3371, 67, 42, 287, 14533, 23, 10756, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 42, 2584, 67, 3616, 10756, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 4965, 25365, 67, 3616, 10756, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 478, 287, 14533, 23, 67, 3616, 12, 324, 17636, 18, 8291, 3292, 2910, 29489, 5701, 2668, 42, 287, 14533, 23, 18, 14880, 19899, 3421, 12, 86, 11, 7369, 19, 74, 287, 14533, 23, 18, 6446, 19899, 389, 2932, 9569, 478, 287, 14533, 23, 6, 3631, 389, 2932, 9569, 478, 287, 14533, 23, 397, 17634, 1090, 6, 3631, 875, 3719, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 4677, 67, 3616, 12, 324, 17636, 18, 8291, 3292, 2910, 29489, 5701, 2668, 7113, 3507, 18, 14880, 19899, 3421, 12, 86, 11, 7369, 19, 75, 762, 18, 6446, 19899, 389, 2932, 9569, 17788, 3507, 6, 3631, 389, 2932, 9569, 17788, 3507, 397, 17634, 1090, 6, 3631, 2400, 9177, 26112, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 4677, 67, 3616, 12, 324, 17636, 18, 8291, 3292, 2910, 29489, 5701, 2668, 74, 362, 81, 1695, 74, 362, 81, 18, 14880, 19899, 3421, 12, 86, 11, 7369, 19, 6231, 67, 3612, 18, 6446, 19899, 389, 2932, 9569, 478, 1872, 49, 6, 20349, 605, 961, 1482, 5190, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 1482, 5190, 13332, 3536, 7520, 1267, 4653, 4716, 12123, 468, 413, 38, 961, 2685, 19, 2098, 5190, 468, 38, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 3371, 67, 42, 287, 14533, 23, 10756, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 42, 2584, 67, 3616, 10756, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 4965, 25365, 67, 3616, 10756, 605, 961, 1482, 5190, 18, 16016, 18, 6923, 12, 478, 287, 14533, 23, 67, 3616, 12, 324, 17636, 18, 8291, 3292, 2910, 29489, 5701, 2668, 42, 287, 14533, 23, 18, 14880, 19899, 3421, 12, 86, 11, 7369, 19, 74, 287, 14533, 23, 18, 6446, 19899, 389, 2932, 9569, 478, 287, 14533, 23, 6, 3631, 389, 2 ]
if isinstance(x, float):
if isinstance(x, float):
def __call__(self, x): """ EXAMPLES::
b8d4e8980196922bad05dde8387e4a6f47ddf4b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/b8d4e8980196922bad05dde8387e4a6f47ddf4b0/other.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1991, 972, 12, 2890, 16, 619, 4672, 3536, 5675, 8900, 11386, 2866, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>"
modifyAlignCommonAxisActionText =\ "<u><b>Align To Common Axis</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk. "\ "You must select two or more chunks before using this feature."\ "</p>"
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their own widgets, usually in a method called add_whats_this_text(), not in this file. """ # # File Toolbar # # Open File fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)<br> "\ "<p><img source=\"ui/actions/File/Open.png\"><br> "\ "Opens a new file."\ "</p>" win.fileOpenAction.setWhatsThis( fileOpenText ) # Import File fileImportText = "<u><b>Import File</b></u><br>"\ "Inserts a file of any chemical file format supported by "\ "<b>Openbabel</b> into the current Part" win.fileImportAction.setWhatsThis(fileImportText) #Export File fileExportText = "<u><b>Export File</b></u><br>"\ "Save the current Part in any chemical file format supported by "\ "<b>Openbabel</b>. Note that exclusive features of NanoEngineer-1 "\ "are not saved to the exported file" win.fileExportAction.setWhatsThis(fileExportText) # Save File fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)<br> "\ "<p><img source=\"ui/actions//Save.png\"><br> "\ "Saves the current file."\ "</p>" win.fileSaveAction.setWhatsThis( fileSaveText ) # # Edit Toolbar # # Make Checkpoint ### editMakeCheckpointText = \ "<u><b>Make Checkpoint</b></u>"\ "<p>"\ "<img source=\"ui/actions/Edit/Make_CheckPoint.png\"><br> "\ "Make Undo checkpoint."\ "</p>" win.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) # Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = \ "<u><b>Automatic Checkpointing</b></u>"\ "<p>"\ "Enables/Disables <b>Automatic Checkpointing</b>. When enabled, "\ "the program maintains the Undo stack automatically. When disabled, "\ "the user is required to manually create Undo checkpoints using the "\ "<b>Make Checkpoint</b> button: "\ "</p>"\ "<p><img source=\"ui/actions/Edit/Make_CheckPoint.png\">"\ "</p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. "\ "By disabling Automatic Checkpointing, the program will run faster. "\ "</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints "\ "manually when Automatic Checkpointing is disabled.</i></b>"\ "</p>" win.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) # Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" win.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) # Undo editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ "<p><img source=\"ui/actions/Undo.png\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning win.editUndoAction.setWhatsThis( editUndoText ) win.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link # Redo from PlatformDependent import is_macintosh if is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s<br> "\ "<p><img source=\"ui/actions/Edit/Redo.png\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning win.editRedoAction.setWhatsThis( editRedoText ) win.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link # Cut editCutText = "<u><b>Cut</b></u> (Ctrl + X)<br> "\ "<p><img source=\"ui/actions/Edit/Cut.png\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" win.editCutAction.setWhatsThis( editCutText ) # Copy editCopyText = "<u><b>Copy</b></u> (Ctrl + C)<br> "\ "<p><img source=\"ui/actions/Edit/Copy.png\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" win.editCopyAction.setWhatsThis( editCopyText ) # Paste editPasteText = "<u><b>Paste</b></u> (Ctrl + V)<br> "\ "<p><img source=\"ui/actions/Edit/Paste_On.png\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" win.editPasteAction.setWhatsThis( editPasteText ) # Delete editDeleteText = "<u><b>Delete</b></u> (DEL)<br> "\ "<p><img source=\"ui/actions/Delete.png\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release win.editDeleteAction.setWhatsThis( editDeleteText ) #Preferences Dialog editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\ "such as changing atom, bond display properties,"\ "lighting, background color, window position and"\ "size, plugins etc. </p>" win.editPrefsAction.setWhatsThis( editPrefsText ) # # View Toolbar # # Home View setViewHomeActionText = \ "<u><b>Home</b></u> (Home)<br>"\ "<p>"\ "<img source=\"ui/actions/View/Modify/Home.png\"><br>"\ "When you create a new model, it appears in a "\ "default view orientation (FRONT view). When you "\ "open an existing model, it appears in the "\ "orientation it was last saved. You can change the "\ "default orientation by selecting <b>Set Home View "\ "to Current View</b> from the <b>View</b> menu."\ "</p>" win.setViewHomeAction.setWhatsThis( setViewHomeActionText ) # Fit to Window setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom_To_Fit.png\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" win.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) # Recenter setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Recenter.png\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" win.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) # Zoom Tool setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom.png\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" win.zoomToolAction.setWhatsThis( setzoomToolActionText ) # Pan Tool setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Pan.png\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" win.panToolAction.setWhatsThis( setpanToolActionText ) # Rotate Tool setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Rotate.png\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" win.rotateToolAction.setWhatsThis( setrotateToolActionText ) # Orthographic Projection setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" win.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) # Perspective Projection setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" win.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) # Normal To viewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Normal_To.png/\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" win.viewNormalToAction.setWhatsThis( viewNormalToActionText ) # Parallel To viewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Parallel_To.png\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" win.viewParallelToAction.setWhatsThis( viewParallelToActionText ) # Save Named View saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Save_Named_View.png\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" win.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) # Front View viewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"ui/actions/View/Front.png\"><br> "\ "Orients the view to the Front View."\ "</p>" win.viewFrontAction.setWhatsThis( viewFrontActionText ) # Back View viewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"ui/actions/View/Back.png\"><br> "\ "Orients the view to the Back View."\ "</p>" win.viewBackAction.setWhatsThis( viewBackActionText ) # Top View viewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"ui/actions/View/Top.png\"><br> "\ "Orients the view to the Top View."\ "</p>" win.viewTopAction.setWhatsThis( viewTopActionText ) # Bottom View viewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"ui/actions/View/Bottom.png\"><br> "\ "Orients the view to the Bottom View."\ "</p>" win.viewBottomAction.setWhatsThis( viewBottomActionText ) # Left View viewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"ui/actions/View/Left.png\"><br> "\ "Orients the view to the Left View."\ "</p>" win.viewLeftAction.setWhatsThis( viewLeftActionText ) # Right View viewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"ui/actions/View/Right.png\"><br> "\ "Orients the view to the Right View."\ "</p>" win.viewRightAction.setWhatsThis( viewRightActionText ) #Isometric View viewIsometricActionText = "<u><b>IsometricView</b></u><br>"\ "<p><img source=\"ui/actions/View/Isometric.png\"><br> "\ "Orients the view to the Isometric View."\ "</p>" win.viewIsometricAction.setWhatsThis( viewIsometricActionText ) # Rotate View 180 viewRotate180ActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_180.png.png\"><br> "\ "Rotates the view 180 degrees."\ "</p>" win.viewRotate180Action.setWhatsThis( viewRotate180ActionText ) # Rotate View +90 viewRotatePlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_+90.png\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotatePlus90Action.setWhatsThis( viewRotatePlus90ActionText ) # Rotate View -90 viewRotateMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotateMinus90Action.setWhatsThis( viewRotateMinus90ActionText ) # QuteMol viewQuteMolActionText = \ "<u><b>QuteMol</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/QuteMol.png\"><br> "\ "Starts QuteMol and loads a PDB file of the current model."\ "</p>" \ "QuteMol must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewQuteMolAction.setWhatsThis( viewQuteMolActionText ) # POV-Ray (was Raytrace Scene) viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText ) # # Grids Toolbar # # Surface 100 orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface100.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" win.orient100Action.setWhatsThis(orient100ActionText ) # Surface 110 orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface110.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" win.orient110Action.setWhatsThis(orient110ActionText ) # Surface 111 orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface111.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" win.orient111Action.setWhatsThis(orient111ActionText ) # # Insert toolbar # # Graphene insertGrapheneActionText = \ "<u><b>Build Graphene</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Graphene.png\"><br> "\ "Inserts a 2D sheet of graphene in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertGrapheneAction.setWhatsThis(insertGrapheneActionText ) # Build Nanotube insertNanotubeActionText = \ "<u><b>Build Nanotube</b></u>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Nanotube.png\"> <br>"\ "Inserts a carbon or boron nitride nanotube in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertNanotubeAction.setWhatsThis(insertNanotubeActionText ) # Build DNA buildDnaActionText = \ "<u><b>Build DNA</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/DNA.png\"><br> "\ "Inserts DNA in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.buildDnaAction.setWhatsThis(buildDnaActionText ) # POV-Ray Scene insertPovraySceneActionText = "<u><b>Insert POV-Ray Scene</b></u><br>"\ "<p><img source=\"ui/actions/POV-Ray_Scene.png\"><br> "\ "Inserts a POV-Ray Scene file based on the current model and viewpoint. "\ "</p>" win.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText ) # Comment insertCommentActionText = "<u><b>Insert Comment</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Comment.png\"><br> "\ "Inserts a comment in the current part. "\ "</p>" win.insertCommentAction.setWhatsThis(insertCommentActionText ) # # Display toolbar # # Display Default dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Default.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>Modes</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" win.dispDefaultAction.setWhatsThis(dispDefaultActionText ) # Display Invisible dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Invisible.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispInvisAction.setWhatsThis(dispInvisActionText ) # Display Lines dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Lines.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispLinesAction.setWhatsThis(dispLinesActionText ) # Display Tubes dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Tubes.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispTubesAction.setWhatsThis(dispTubesActionText ) # Display Ball and Stick dispBallActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Ball_and_Stick.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispBallAction.setWhatsThis(dispBallActionText ) # Display CPK # [bruce extended and slightly corrected text, 060307] dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispCPKAction.setWhatsThis(dispCPKActionText ) # Display Cylinder dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Cylinder</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispCylinderAction.setWhatsThis(dispCylinderActionText ) # Display Surface dispSurfaceActionText = "<u><b>Display Surface</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Surface.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Surface</b> mode. Chunks are rendered as a smooth surface."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Surface</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispSurfaceAction.setWhatsThis(dispSurfaceActionText ) #Reset Chunk Color dispResetChunkColorText = "<u><b>Reset Chunk Color</b></u><br>"\ "Resets the user defined chunk color and renders the atoms " \ "(in the chunk) with their own element colors" win.dispResetChunkColorAction.setWhatsThis(dispResetChunkColorText ) #Reset Atoms Display dispResetAtomsDisplayText = "<u><b>Reset Atoms Display</b></u><br>"\ "Renders the selected atoms (or the atoms in the"\ "selected chunks) with the same display style as "\ "that of their parent chunk" win.dispResetAtomsDisplayAction.setWhatsThis(dispResetAtomsDisplayText) #Show Invisible Atoms dispShowInvisAtomsText = "<u><b>Show Invisible Atoms</b></u><br>"\ "Renders the selected atoms (or the atoms in the selected "\ "chunks) with the same display style as their parent chunk. "\ "However, if the parent chunk is set as invisible, this feature " \ "will not work. " win.dispShowInvisAtomsAction.setWhatsThis(dispShowInvisAtomsText) #Element Color Settings Dialog dispElementColorSettingsText = "<u><b>Element Color Settings Dialog</b></u><br>"\ "Element colors can be manually changed " \ "using this dialog. Also, the user can load"\ "or save the element colors" win.dispElementColorSettingsAction.setWhatsThis(dispElementColorSettingsText) # # Select toolbar # # Select All selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_All.png\"><br> "\ "When in <b>Build</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" win.selectAllAction.setWhatsThis(selectAllActionText ) # Select None selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_None.png\"><br> "\ "Unselects everything currently selected.</p>" win.selectNoneAction.setWhatsThis(selectNoneActionText ) # InvertSelection selectInvertActionText = "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Invert.png\"><br> "\ "Inverts the current selection.</p>" win.selectInvertAction.setWhatsThis(selectInvertActionText ) # Select Connected selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Connected.png\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>You can also select all connected atoms by double clicking on an atom or bond "\ "while in <b>Build</b> mode.</p>" win.selectConnectedAction.setWhatsThis(selectConnectedActionText ) # Select Doubly selectDoublyActionText = "<u><b>Select Doubly</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Doubly.png\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection."\ "</p>" win.selectDoublyAction.setWhatsThis(selectDoublyActionText ) # Expand Selection selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Expand.png\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" win.selectExpandAction.setWhatsThis(selectExpandActionText ) # Contract Selection selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Contract.png\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" win.selectContractAction.setWhatsThis(selectContractActionText ) # # Modify Toolbar # # Adjust Selection modifyAdjustSelActionText = "<u><b>Adjust Selection</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_Selection.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the selection</i>) to make the geometry more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText ) # Adjust All modifyAdjustAllActionText = "<u><b>Adjust All</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_All.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the entire part</i>) to make the geometry of the part more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText ) # Hydrogenate modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> <br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Hydrogenate.png\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" win.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) # Dehydrogenate modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Dehydrogenate.png\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" win.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) # Passivate modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)<br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Passivate.png\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" win.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) # Stretch modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" win.modifyStretchAction.setWhatsThis(modifyStretchActionText ) # Delete Bonds modifyDeleteBondsActionText = "<u><b>Cut Bonds</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Delete_Bonds.png\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" win.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) # Separate/New Chunk modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Separate.png\"><br> "\ "Creates a new chunk(s) from the currently selected atoms. "\ "If the selected atoms belong to different chunks, multiple new "\ "chunks are created.</p>" win.modifySeparateAction.setWhatsThis(modifySeparateActionText ) # New Chunk makeChunkFromSelectedAtomsActionText = "<u><b>New Chunk</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/New_Chunk.png\"><br> "\ "Creates a new chunk from the currently selected atoms. "\ "All atoms end up in a single chunk.</p>" win.makeChunkFromSelectedAtomsAction.setWhatsThis(makeChunkFromSelectedAtomsActionText ) # Merge Chunks modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Merge.png\"><br> "\ "Merges two or more chunks into a single chunk.</p>" win.modifyMergeAction.setWhatsThis(modifyMergeActionText ) # Invert Chunks modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>" win.modifyInvertAction.setWhatsThis(modifyInvertActionText ) # Mirror Selected Chunks #Note that the the feature name is intentionally kept "Mirror" instead of "Mirror Chunks" because # in future we will support mirrroing atoms as well. -- ninad060814 modifyMirrorActionText = "<u><b>Mirror</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Mirror.png\"><br> "\ "Mirrors the selected <b> chunks </b> about a reference Grid Plane.<br>"\ "<font color=\"#808080\">Note: In this version, it doesn't mirror jigs or individual atoms.</font> </p>" win.modifyMirrorAction.setWhatsThis(modifyMirrorActionText ) # Align to Common Axis modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" win. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) #Center on Common Axis modifyCenterCommonAxisActionText= "<u><b>Center On Common Axis</b></u><br>"\ "<p><b> Moves</b> all selected chunks to the center of the <b> first </b> selected chunk "\ "and also <b>aligns</b> them to the axis of the first one ."\ "You must select two or more chunks before using this feature. </p>" win.modifyCenterCommonAxisAction.setWhatsThis(modifyCenterCommonAxisActionText) # # Tools Toolbar # # Select Chunks toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/63.png\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" win. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) # Move Chunks toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/64.png\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" win. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) # Build Atoms toolsDepositAtomActionText = \ "<u><b>Build Atoms</b></u><!-- [[Feature:Build Atoms]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Atoms.png\"><br> "\ "<b>Build Atoms</b> allows you to build structures one atom at a time or by depositing objects "\ "that are on the paste clipboard. You can also insert structures from the "\ "NanoEngineer-1 Parts Library.</p>"\ "<p>It is also possible to change bond types between atoms using the <b>Bond Tool</b> or by "\ "simply dragging and dropping one bondpoint onto another."\ "</p>" win. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) # Build Crystal (was Cookie Cutter Mode) toolsCookieCutActionText = "<u><b>Build Crystal</b></u><!-- [[Feature:Build Crystal]] --><br>"\ "<p><><img source=\"ui/actions/Tools/Build Structures/Cookie_Cutter.png\"><br> "\ "<b>Build Crystal</b> provides tools for cutting out multi-layered shapes from "\ "slabs of diamond or lonsdaleite lattice.</p>" win. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) # Tools > Extrude toolsExtrudeActionText = "<u><b>Extrude</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\"ui/actions/Insert/Features/Extrude.png\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" win. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) # Fuse Chunks Mode toolsFuseChunksActionText = "<u><b>Fuse Chunks Mode</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Fuse.png\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two fusing options are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints "\ "of two or more chunks. Bondpoints are highlighted and lines are drawn (and undrawn) as chunks "\ "are dragged to indicate bonding relationships between bondpoints. Bondpoints with "\ "multiple bonding relationships are highlighted in magenta to indicate that they cannot "\ "make bonds.<br><br>"\ "<b>Fuse Atoms</b> fuses pairs of overlapping atoms between chunks. The set of overlapping "\ "atoms in the selected chunk(s) are highlighted in green while the set of atoms that will be deleted "\ "in non-selected chunks are highlighted in dark red. It is possible that deleted atoms will not fuse "\ "properly, leaving bondpoints on the selected chunk(s) atoms. This is a bug. To help "\ "minimize this problem, try to get the bonds of overlapping atoms oriented similarly.<br>"\ "</p>" win.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) # # Simulator Toolbar # # Minimize Energy simMinimizeEnergyActionText = "<u><b>Minimize Energy</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Minimize_Energy.png\"><br> "\ "The potential energy of a chemical structure is a function of the relative positions of its atoms. " \ "To obtain this energy with complete accuracy involves a lot of computer time spent on quantum " \ "mechanical calculations, which cannot be practically done on a desktop computer. "\ "To get an approximate potential energy without all that, we represent the energy as a series of " \ "terms involving geometric properties of the structure: lengths of chemical bonds, angles between " \ "pairs and triples of chemical bonds, etc. </p>" \ "<p>" \ "As is generally the case with physical systems, the gradient of the potential energy represents " \ "the forces acting on various particles. The atoms want to move in the direction that most reduces " \ "the potential energy. Energy minimization is a process of adjusting the atom positions to try to find " \ "a global minimum of the potential energy. Each atom contributes three variables (its x, y, and z " \ "coordinates) so the search space is multi-dimensional. The global minimum is the configuration " \ "that the atoms will settle into if lowered to zero Kelvin. </p>" win. simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText ) # Run Dynamics (was NanoDynamics-1). Mark 060807. simSetupActionText = "<u><b>Run Dynamics</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Run_Dynamics.png\"><br> "\ "This is the interface to the NanoEngineer-1 molecular dynamics simulator. "\ "Enter the parameters of the simulation and click <b>Run Simulation</b>."\ "The simulator creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model.</p>" win. simSetupAction.setWhatsThis( simSetupActionText ) # Play Movie (was Movie Player) Mark 060807. simMoviePlayerActionText = "<u><b>Play Movie</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Play_Movie.png\"><br> "\ "Plays the most recent trajectory (movie) file created by the NanoEngineer-1 molecular dynamics simulator."\ "To create a movie file, select <b>Run Dynamics</b>.</p>" win. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) # Make Graphs (was Plot Tool) Mark 060807. simPlotToolActionText = "<u><b>Make Graphs</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Make_Graphs.png\"><br> "\ "Make a graph of a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "<b>Measure Distance:</b> distance(angstroms)<br>"\ "<b>Measure Angle:</b> angle (degrees)<br>"\ "<b>Measure Dihedral:</b> dihedral(degrees)<br>"\ "</p>" win. simPlotToolAction.setWhatsThis( simPlotToolActionText ) # # Dashboard Buttons # # Done toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Done.png\"><br> "\ "Completes the current operation and enters the default mode."\ "</p>" win. toolsDoneAction.setWhatsThis( toolsDoneActionText ) # Cancel toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Cancel.png\"><br> "\ "Cancels the current operation and enters the default mode."\ "</p>" win. toolsCancelAction.setWhatsThis( toolsCancelActionText ) # Back up toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "Undoes the previous operation."\ "</p>" win. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) # Start Over toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" win.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) # Add Layers ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/addlayer.png\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" win.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) # # Jigs # # Anchor jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Anchor.png\"><br> "\ "Attaches an <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Build</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" win.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) # Rotary Motor jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Rotary_Motor.png\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsMotorAction.setWhatsThis(jigsMotorActionText ) # Linear Motor jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Linear_Motor.png\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) # Thermostat jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Thermostat.png\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" win.jigsStatAction.setWhatsThis(jigsStatActionText ) # Thermometer jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Thermometer.png\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" win.jigsThermoAction.setWhatsThis(jigsThermoActionText ) # ESP Image jigsESPImageActionText = "<u><b>ESP Image</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/ESP_Image.png\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" win.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) # Atom Set jigsAtomSetActionText = "<u><b>Atom Set</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Atom_Set.png\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Build</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" win.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) # Measure Distance jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Distance.png\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Build</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) # Measure Angle jigsAngleActionText = "<u><b>Measure Angle Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Angle.png\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Build</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsAngleAction.setWhatsThis(jigsAngleActionText ) # Measure Dihedral jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Dihedral.png\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Build</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) # GAMESS Jig jigsGamessActionText = "<u><b>GAMESS Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Gamess.png\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Build</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" win.jigsGamessAction.setWhatsThis(jigsGamessActionText ) # Grid Plane Jig jigsGridPlaneActionText = "<u><b>Grid Plane</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Reference Geometry/Grid_Plane.png\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" win.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) # # Help Toolbar # # What's This helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"ui/actions/Help/WhatsThis.png\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" win.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) win.helpMouseControlsAction.setWhatsThis('Displays help for mouse controls') win.helpKeyboardShortcutsAction.setWhatsThis('Displays help for keyboard shortcuts')
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 3536, 225, 468, 468, 1387, 13288, 3215, 468, 225, 468, 3502, 1387, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 32, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 4881, 19, 4905, 19, 812, 19, 3678, 18, 6446, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 5657, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 468, 6164, 1387, 225, 585, 5010, 1528, 273, 3532, 89, 4438, 70, 34, 5010, 1387, 1757, 70, 4695, 89, 4438, 2848, 2984, 64, 315, 14214, 279, 585, 434, 1281, 19028, 1706, 585, 740, 3260, 635, 1548, 3532, 70, 34, 3678, 70, 873, 1757, 70, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 2 ]
elif os.path.isfile(connect_paths(libpath, '__init__.py')): mod.filename = connect_paths(libpath, '__init__.py')
elif os.path.isfile(connect_paths(libpath, '__init__.py')): mod.filename = libpath+'/__init__.py'
def parse_module(name, ast=None, parent=None, node=None): # --- valid name? for c in name: if not c in string.letters+string.digits+'_.': print ("*ERROR*:%s.py: module names should consist of letters, digits and underscores" % name) sys.exit() # --- parse ident = name.split('.')[-1] mod = module(ident, node) mod.builtin = False if ast: # XXX mod.ast = ast mod.filename = name+'.py' mod.dir = '' mod.mod_path = [name] mod.mod_dir = [] else: # --- locate module relname = name.replace('.', '/') relpath = name.split('.') if parent: path = connect_paths(parent.dir, relname) else: path = name libpath = connect_paths(getgx().libdir, relname) rootpath = connect_paths(os.getcwd(), relname) if os.path.isfile(path+'.py'): # local module mod.filename = path+'.py' if parent: mod.mod_path = parent.mod_dir + relpath else: mod.mod_path = relpath split = path.split('/') mod.dir = '/'.join(split[:-1]) mod.mod_dir = mod.mod_path[:-1] mod.builtin = not parent or parent.builtin elif os.path.isfile(connect_paths(path, '__init__.py')): mod.filename = connect_paths(path, '__init__.py') if parent: mod.mod_path = parent.mod_dir + relpath else: mod.mod_path = relpath mod.dir = path mod.mod_dir = mod.mod_path mod.builtin = not parent or parent.builtin elif os.path.isfile(rootpath+'.py'): # root module mod.filename = rootpath+'.py' mod.mod_path = relpath split = rootpath.split('/') mod.dir = '/'.join(split[:-1]) mod.mod_dir = mod.mod_path[:-1] elif os.path.isfile(connect_paths(rootpath, '__init__.py')): mod.filename = connect_paths(rootpath, '__init__.py') mod.mod_path = relpath mod.dir = rootpath mod.mod_dir = mod.mod_path elif os.path.isfile(libpath+'.py'): # library module mod.filename = libpath+'.py' mod.mod_path = relpath split = libpath.split('/') mod.dir = '/'.join(split[:-1]) mod.mod_dir = mod.mod_path[:-1] mod.builtin = True elif os.path.isfile(connect_paths(libpath, '__init__.py')): mod.filename = connect_paths(libpath, '__init__.py') mod.mod_path = relpath mod.dir = libpath mod.mod_dir = mod.mod_path mod.builtin = True else: error('cannot locate module: '+name, node) modpath = '.'.join(mod.mod_path) if modpath in getgx().modules: # cached? return getgx().modules[modpath] #print 'not cached', modpath getgx().modules[modpath] = mod mod.ast = parsefile(mod.filename) old_mv = getmv() mod.mv = mv = moduleVisitor(mod) setmv(mv) mv.visit = mv.dispatch mv.visitor = mv mv.dispatch(mod.ast) mv = old_mv setmv(mv) mod.funcs = mod.mv.funcs mod.classes = mod.mv.classes return mod
d7ff07b382c793e4aea86abd70975b573665754e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4470/d7ff07b382c793e4aea86abd70975b573665754e/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2978, 12, 529, 16, 3364, 33, 7036, 16, 982, 33, 7036, 16, 756, 33, 7036, 4672, 468, 9948, 923, 508, 35, 364, 276, 316, 508, 30, 309, 486, 276, 316, 533, 18, 26054, 15, 1080, 18, 16649, 6797, 67, 1093, 30, 1172, 7566, 14, 3589, 14, 5319, 87, 18, 2074, 30, 1605, 1257, 1410, 7111, 434, 13768, 16, 6815, 471, 24714, 6, 738, 508, 13, 2589, 18, 8593, 1435, 225, 468, 9948, 1109, 3390, 273, 508, 18, 4939, 2668, 1093, 13, 18919, 21, 65, 681, 273, 1605, 12, 6392, 16, 756, 13, 681, 18, 24553, 273, 1083, 225, 309, 3364, 30, 468, 11329, 681, 18, 689, 273, 3364, 681, 18, 3459, 273, 508, 6797, 18, 2074, 11, 681, 18, 1214, 273, 875, 681, 18, 1711, 67, 803, 273, 306, 529, 65, 681, 18, 1711, 67, 1214, 273, 5378, 469, 30, 468, 9948, 10627, 1605, 1279, 529, 273, 508, 18, 2079, 2668, 1093, 16, 2023, 13, 14614, 273, 508, 18, 4939, 2668, 1093, 13, 309, 982, 30, 589, 273, 3077, 67, 4481, 12, 2938, 18, 1214, 16, 1279, 529, 13, 469, 30, 589, 273, 508, 2561, 803, 273, 3077, 67, 4481, 12, 588, 75, 92, 7675, 2941, 1214, 16, 1279, 529, 13, 1365, 803, 273, 3077, 67, 4481, 12, 538, 18, 588, 11089, 9334, 1279, 529, 13, 225, 309, 1140, 18, 803, 18, 291, 768, 12, 803, 6797, 18, 2074, 11, 4672, 468, 1191, 1605, 681, 18, 3459, 273, 589, 6797, 18, 2074, 11, 309, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2978, 12, 529, 16, 3364, 33, 7036, 16, 982, 33, 7036, 16, 756, 33, 7036, 4672, 468, 9948, 923, 508, 35, 364, 276, 316, 508, 30, 309, 486, 276, 316, 533, 18, 26054, 15, 1080, 18, 16649, 6797, 67, 1093, 30, 1172, 7566, 14, 3589, 14, 5319, 87, 18, 2074, 30, 1605, 1257, 1410, 7111, 434, 13768, 16, 6815, 471, 24714, 6, 738, 508, 13, 2589, 18, 8593, 1435, 225, 468, 9948, 1109, 3390, 273, 508, 18, 4939, 2668, 1093, 13, 18919, 21, 65, 681, 273, 1605, 12, 6392, 16, 756, 13, 681, 18, 24553, 273, 1083, 225, 309, 3364, 30, 468, 11329, 681, 18, 689, 273, 3364, 681, 18, 3459, 273, 508, 6797, 18, 2074, 2 ]
FunctionnalTest(CHECK + [ "group", "-v", "--name=%s" % group_name ], context=context).Run() group_name = "groupe_a_skel" FunctionnalTest(ADD + [ "group", "--name=%s" % group_name, '''--description="Le groupe C s'il vous plaît..."''' ], context=context).Run() FunctionnalTest(MODIFY + [ "group", '--name=%s' % group_name, '--not-permissive' ], chk_cmds = [ gen_chk_acls_cmds(group_name) ], context=context).Run() FunctionnalTest(MODIFY + [ "group", "--name=%s" % group_name, "--permissive" ], chk_cmds = [ gen_chk_acls_cmds(group_name) ], context=context).Run() FunctionnalTest(MODIFY + [ "group", "--name=%s" % group_name, "--permissive" ], context=context+'+already').Run()
gname = 'ARCHIVES-test' ScenarioTest([ ADD + [ 'group', gname, '-v' ], [ 'sudo', 'touch', "%s/%s/%s/test.txt" % ( configuration.defaults.home_base_path, configuration.groups.names['plural'], gname) ], [ 'sudo', 'mkdir', "%s/%s/%s/testdir" % ( configuration.defaults.home_base_path, configuration.groups.names['plural'], gname) ], [ 'sudo', 'touch', "%s/%s/%s/testdir/testfile" % ( configuration.defaults.home_base_path, configuration.groups.names['plural'], gname) ], CHK + [ "group", "-vb", gname ], DEL + [ 'group', gname ], [ 'sudo', 'find', configuration.home_archive_dir ], [ 'sudo', 'getfacl', '-R', configuration.home_archive_dir ], [ 'sudo', 'rm', '-rf', '%s/*' % configuration.home_archive_dir ] ], context=context, descr='''verify the --archive option of DEL group and check on ''' '''shared dir contents.''' ).Run()
def gen_chk_acls_cmds(group):
07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3157, 67, 27038, 67, 69, 6429, 67, 24680, 12, 1655, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return FiniteField_ext_pariElement(self.__parent, ~self.__value)
return FiniteField_ext_pariElement(self.__parent, ~self.__value, check=False)
def __invert__(self): """ EXAMPLES: sage: from sage.rings.finite_field import FiniteField_ext_pari sage: a = FiniteField_ext_pari(9, 'a').gen() sage: ~a a + 2 sage: (a+1)*a 2*a + 1 """
d17d26732f59bf8d3b821fe67313fdb16e88661d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d17d26732f59bf8d3b821fe67313fdb16e88661d/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 267, 1097, 972, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 86, 899, 18, 9551, 67, 1518, 1930, 9458, 1137, 974, 67, 408, 67, 1065, 77, 272, 410, 30, 279, 273, 9458, 1137, 974, 67, 408, 67, 1065, 77, 12, 29, 16, 296, 69, 16063, 4507, 1435, 272, 410, 30, 4871, 69, 279, 397, 576, 272, 410, 30, 261, 69, 15, 21, 17653, 69, 576, 14, 69, 397, 404, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 267, 1097, 972, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 86, 899, 18, 9551, 67, 1518, 1930, 9458, 1137, 974, 67, 408, 67, 1065, 77, 272, 410, 30, 279, 273, 9458, 1137, 974, 67, 408, 67, 1065, 77, 12, 29, 16, 296, 69, 16063, 4507, 1435, 272, 410, 30, 4871, 69, 279, 397, 576, 272, 410, 30, 261, 69, 15, 21, 17653, 69, 576, 14, 69, 397, 404, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
widget=TextAreaWidget(),
def generateFti(self,element,subtypes): ''' '''
f5e5b424a0e01e9a88492672f53fc4444f4bee7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/f5e5b424a0e01e9a88492672f53fc4444f4bee7f/ArchGenXML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 42, 9096, 12, 2890, 16, 2956, 16, 1717, 2352, 4672, 9163, 9163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2103, 42, 9096, 12, 2890, 16, 2956, 16, 1717, 2352, 4672, 9163, 9163, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
atomStart0 = chain[helix.startIndex-1].getAtom('CA') atomStart1 = chain[helix.startIndex].getAtom('CA')
if(helix.startIndex-1 in chain.residueRange()): atomStart0 = chain[helix.startIndex-1].getAtom('CA') if(helix.startIndex in chain.residueRange()): atomStart1 = chain[helix.startIndex].getAtom('CA')
def helixFlipButtonPress(self): """
21dad13f9a8161dface447e24aefbdaa6b79a129 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4399/21dad13f9a8161dface447e24aefbdaa6b79a129/calpha_structure_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13150, 697, 28535, 3616, 11840, 12, 2890, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30, 1652, 13150, 697, 28535, 3616, 11840, 12, 2890, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
error_handler=log.err)
error_handler=d.errback)
def get_charset2_cb(_charset): # check that the new charset is the expected one self.assertEqual(new_charset, _charset) # leave everything as found self.device.SetCharset(charset, dbus_interface=CRD_INTFACE, reply_handler=lambda: d.callback(True), error_handler=log.err)
45c00959c14e666ef31b3f93137f14e6d66959e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/45c00959c14e666ef31b3f93137f14e6d66959e4/test_dbus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9999, 22, 67, 7358, 24899, 9999, 4672, 468, 866, 716, 326, 394, 4856, 353, 326, 2665, 1245, 365, 18, 11231, 5812, 12, 2704, 67, 9999, 16, 389, 9999, 13, 468, 8851, 7756, 487, 1392, 365, 18, 5964, 18, 694, 9652, 12, 9999, 16, 21866, 67, 5831, 33, 5093, 40, 67, 3217, 11300, 16, 4332, 67, 4176, 33, 14661, 30, 302, 18, 3394, 12, 5510, 3631, 555, 67, 4176, 33, 1330, 18, 370, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9999, 22, 67, 7358, 24899, 9999, 4672, 468, 866, 716, 326, 394, 4856, 353, 326, 2665, 1245, 365, 18, 11231, 5812, 12, 2704, 67, 9999, 16, 389, 9999, 13, 468, 8851, 7756, 487, 1392, 365, 18, 5964, 18, 694, 9652, 12, 9999, 16, 21866, 67, 5831, 33, 5093, 40, 67, 3217, 11300, 16, 4332, 67, 4176, 33, 14661, 30, 302, 18, 3394, 12, 5510, 3631, 555, 67, 4176, 33, 1330, 18, 370, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print 'Problem in %s - %s' % (value.filename, value.args)
print value
def doc(thing): """Display documentation on an object (for interactive use).""" if type(thing) is type(""): try: path, x = locate(thing) except DocImportError, value: print 'Problem in %s - %s' % (value.filename, value.args) return if x: thing = x else: print 'No Python documentation found for %s.' % repr(thing) return desc = describe(thing) module = inspect.getmodule(thing) if module and module is not thing: desc = desc + ' in module ' + module.__name__ pager('Help on %s:\n\n' % desc + text.document(thing))
37f7b38eb6247564c00c8a355ab12268e8486c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37f7b38eb6247564c00c8a355ab12268e8486c4e/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 4274, 4672, 3536, 4236, 7323, 603, 392, 733, 261, 1884, 12625, 999, 13, 12123, 309, 618, 12, 4274, 13, 353, 618, 2932, 6, 4672, 775, 30, 589, 16, 619, 273, 10627, 12, 4274, 13, 1335, 3521, 5010, 668, 16, 460, 30, 1172, 460, 327, 309, 619, 30, 7757, 273, 619, 469, 30, 1172, 296, 2279, 6600, 7323, 1392, 364, 738, 87, 1093, 738, 8480, 12, 4274, 13, 327, 225, 3044, 273, 6401, 12, 4274, 13, 1605, 273, 5334, 18, 588, 2978, 12, 4274, 13, 309, 1605, 471, 1605, 353, 486, 7757, 30, 3044, 273, 3044, 397, 296, 316, 1605, 296, 397, 1605, 16186, 529, 972, 12679, 2668, 6696, 603, 738, 87, 5581, 82, 64, 82, 11, 738, 3044, 397, 977, 18, 5457, 12, 4274, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 997, 12, 4274, 4672, 3536, 4236, 7323, 603, 392, 733, 261, 1884, 12625, 999, 13, 12123, 309, 618, 12, 4274, 13, 353, 618, 2932, 6, 4672, 775, 30, 589, 16, 619, 273, 10627, 12, 4274, 13, 1335, 3521, 5010, 668, 16, 460, 30, 1172, 460, 327, 309, 619, 30, 7757, 273, 619, 469, 30, 1172, 296, 2279, 6600, 7323, 1392, 364, 738, 87, 1093, 738, 8480, 12, 4274, 13, 327, 225, 3044, 273, 6401, 12, 4274, 13, 1605, 273, 5334, 18, 588, 2978, 12, 4274, 13, 309, 1605, 471, 1605, 353, 486, 7757, 30, 3044, 273, 3044, 397, 296, 316, 1605, 296, 397, 1605, 16186, 529, 972, 12679, 2668, 6696, 603, 738, 87, 5581, 82, 64, 82, 11, 2 ]
print "no dll" raise self.Exceptions.DeviceNotFound
raise self.Exceptions.DriverNotFound
def __start__( self, ledRX=True, ledTX=True, legacyRX=False, repeatStopCodes=False,
8f7bce61609e1a37f6170e13dfa118b231e99f38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/8f7bce61609e1a37f6170e13dfa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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1937, 972, 12, 365, 16, 12987, 54, 60, 33, 5510, 16, 12987, 16556, 33, 5510, 16, 8866, 54, 60, 33, 8381, 16, 7666, 4947, 6295, 33, 8381, 16, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120)
self.assertEqual(u.fp.raw.fp._sock.gettimeout(), 120)
def test_http_Value(self): u = urllib2.urlopen("http://www.python.org", timeout=120) self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120)
9834ba99773dc9627749f716d360358387ae516b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9834ba99773dc9627749f716d360358387ae516b/test_urllib2net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2505, 67, 620, 12, 2890, 4672, 582, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 2207, 5591, 18, 8103, 18, 3341, 3113, 2021, 33, 22343, 13, 365, 18, 11231, 5812, 12, 89, 18, 7944, 6315, 15031, 18, 7944, 6315, 15031, 18, 588, 4538, 9334, 15743, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2505, 67, 620, 12, 2890, 4672, 582, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 2207, 5591, 18, 8103, 18, 3341, 3113, 2021, 33, 22343, 13, 365, 18, 11231, 5812, 12, 89, 18, 7944, 6315, 15031, 18, 7944, 6315, 15031, 18, 588, 4538, 9334, 15743, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""
r"""
def encoding(self,S,padic=False): """ The binary encoding of the string S, as a binary string element.
ca219b0206186a194cdf8e11d2082bec654536f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/ca219b0206186a194cdf8e11d2082bec654536f8/string_monoid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2688, 12, 2890, 16, 55, 16, 6982, 335, 33, 8381, 4672, 436, 8395, 1021, 3112, 2688, 434, 326, 533, 348, 16, 487, 279, 3112, 533, 930, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2688, 12, 2890, 16, 55, 16, 6982, 335, 33, 8381, 4672, 436, 8395, 1021, 3112, 2688, 434, 326, 533, 348, 16, 487, 279, 3112, 533, 930, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
log.msg("Changing listening port in server.conf " +
log.msg("Changing listening port " +
def main(options): """ Main execution loop of the server. """ # config = get_conf('server') # LOG_FILE = config['log_file'] # LOG_LEVEL = config['log_level'] # SSL = get_bool(config['ssl']) # SSL_PRIVKEY = config['privkey_file'] # SSL_CERT = config['cert_file'] # CLIENT_PORT = int(config['client_port']) # PUBKEY_DATABASE = os.path.expanduser(config['pubkey_database']) # STATS_FILE = config['stats_file'] LOG_FILE = options.logfile LOG_LEVEL = options.loglevel SSL = get_bool(options.ssl) SSL_PRIVKEY = options.privkey SSL_CERT = options.cert CLIENT_PORT = options.port STATS_FILE = options.statsfile DB_FILE = options.dbfile FAILURE_THRESHOLD = options.job_failure_threshold # start logging startLogging(LOG_FILE) # Job database jobdb = JobDatabaseSQLite(db_file=DB_FILE, job_failure_threshold=FAILURE_THRESHOLD, log_file=LOG_FILE, log_level=LOG_LEVEL) # Worker database monitordb = MonitorDatabase(db_file=DB_FILE, log_file=LOG_FILE, log_level=LOG_LEVEL) # Client database clientdb = ClientDatabase() # Create the main DSage object dsage_server = DSageServer(jobdb, monitordb, clientdb, log_level=LOG_LEVEL) p = _SSHKeyPortalRoot(portal.Portal(Realm(dsage_server))) # Credentials checker p.portal.registerChecker(PublicKeyCredentialsCheckerDB(clientdb)) # HACK: unsafeTracebacks should eventually be TURNED off client_factory = pb.PBServerFactory(p, unsafeTracebacks=True) # Create the looping call that will output the XML file for Dashboard tsk1 = task.LoopingCall(write_stats, dsage_server, STATS_FILE) tsk1.start(5.0, now=False) # Create the PBServerFactory for workers # Use this for unauthorized workers # dsage_worker = DSageWorkerServer(jobdb, log_level=LOG_LEVEL) # worker_factory = WorkerPBServerFactory(dsage_worker) dsage_server.client_factory = client_factory attempts = 0 err_msg = "Could not find an open port after 50 attempts." NEW_CLIENT_PORT = CLIENT_PORT while True: if attempts > 50: log.err(err_msg) log.err('Last attempted port: %s' % (NEW_CLIENT_PORT)) sys.exit(-1) try: try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('', NEW_CLIENT_PORT)) port_used = True except socket.error, msg: port_used = False if not port_used: if SSL: ssl_context = ssl.DefaultOpenSSLContextFactory( SSL_PRIVKEY, SSL_CERT) reactor.listenSSL(NEW_CLIENT_PORT, client_factory, contextFactory = ssl_context) break else: reactor.listenTCP(NEW_CLIENT_PORT, client_factory) break else: raise SystemError('Trying to bind to open port: ' + '%s.' % (NEW_CLIENT_PORT)) except (SystemError, error.CannotListenError): attempts += 1 NEW_CLIENT_PORT += 1 except Exception, msg: print 'Exception: ', msg if SSL: print 'Error starting server with SSL enabled, please ' + \ 'check your configuration' else: print 'Error starting server, please check your configuration' sys.exit() if CLIENT_PORT != NEW_CLIENT_PORT: log.msg(DELIMITER) log.msg("***NOTICE***") log.msg("Changing listening port in server.conf " + "to %s" % (NEW_CLIENT_PORT)) log.msg(DELIMITER) log.msg(DELIMITER) log.msg('DSAGE Server') log.msg('Started with PID: %s' % (os.getpid())) if SSL: log.msg('Using SSL: True') else: log.msg('Using SSL: False') log.msg('Listening on port: %s' % (NEW_CLIENT_PORT)) log.msg(DELIMITER) # Code below can be turned on to do countrefs # from sage.dsage.misc.countrefs import logInThread # logInThread(n=15) # reactor.callWhenRunning(create_manhole) # import pdb; pdb.set_trace() if options.noblock: reactor.run(installSignalHandlers=0) else: reactor.run(installSignalHandlers=1)
1da5dd6b5fc14813a1db017c90bcdc1a88698673 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1da5dd6b5fc14813a1db017c90bcdc1a88698673/dsage_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 12740, 4588, 2798, 434, 326, 1438, 18, 225, 3536, 225, 468, 642, 273, 336, 67, 3923, 2668, 3567, 6134, 468, 2018, 67, 3776, 273, 642, 3292, 1330, 67, 768, 3546, 468, 2018, 67, 10398, 273, 642, 3292, 1330, 67, 2815, 3546, 468, 7419, 273, 336, 67, 6430, 12, 1425, 3292, 8157, 19486, 468, 7419, 67, 7698, 58, 3297, 273, 642, 3292, 11365, 856, 67, 768, 3546, 468, 7419, 67, 22367, 273, 642, 3292, 7593, 67, 768, 3546, 468, 16395, 67, 6354, 273, 509, 12, 1425, 3292, 2625, 67, 655, 19486, 468, 23295, 3297, 67, 22366, 273, 1140, 18, 803, 18, 12320, 1355, 12, 1425, 3292, 23428, 67, 6231, 19486, 468, 2347, 17813, 67, 3776, 273, 642, 3292, 5296, 67, 768, 3546, 225, 2018, 67, 3776, 273, 702, 18, 28806, 2018, 67, 10398, 273, 702, 18, 28189, 7419, 273, 336, 67, 6430, 12, 2116, 18, 8157, 13, 7419, 67, 7698, 58, 3297, 273, 702, 18, 11365, 856, 7419, 67, 22367, 273, 702, 18, 7593, 16395, 67, 6354, 273, 702, 18, 655, 2347, 17813, 67, 3776, 273, 702, 18, 5296, 768, 2383, 67, 3776, 273, 702, 18, 1966, 768, 24077, 67, 23840, 273, 702, 18, 4688, 67, 12251, 67, 8699, 225, 468, 787, 2907, 787, 7735, 12, 4842, 67, 3776, 13, 225, 468, 3956, 2063, 1719, 1966, 273, 3956, 4254, 3997, 1137, 12, 1966, 67, 768, 33, 2290, 67, 3776, 16, 1719, 67, 12251, 67, 8699, 33, 17623, 67, 23840, 16, 613, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 12740, 4588, 2798, 434, 326, 1438, 18, 225, 3536, 225, 468, 642, 273, 336, 67, 3923, 2668, 3567, 6134, 468, 2018, 67, 3776, 273, 642, 3292, 1330, 67, 768, 3546, 468, 2018, 67, 10398, 273, 642, 3292, 1330, 67, 2815, 3546, 468, 7419, 273, 336, 67, 6430, 12, 1425, 3292, 8157, 19486, 468, 7419, 67, 7698, 58, 3297, 273, 642, 3292, 11365, 856, 67, 768, 3546, 468, 7419, 67, 22367, 273, 642, 3292, 7593, 67, 768, 3546, 468, 16395, 67, 6354, 273, 509, 12, 1425, 3292, 2625, 67, 655, 19486, 468, 23295, 3297, 67, 22366, 273, 1140, 18, 803, 18, 12320, 1355, 12, 1425, 3292, 23428, 67, 6231, 19486, 468, 2347, 17813, 67, 2 ]
if caps is not None: filters = caps[0] self.width = filters["width"] self.height = filters["height"] timecode = self.pipeline.query_position(gst.FORMAT_TIME)[0] pixbuf = gtk.gdk.pixbuf_new_from_data(buff.data, gtk.gdk.COLORSPACE_RGB, False, 8, self.width, self.height, self.width * 3)
if caps is None: self.success = False self.disconnect() self.done() return False filters = caps[0] width = filters["width"] height = filters["height"] timecode = self.thumbnail_pipeline.query_position(gst.FORMAT_TIME)[0] pixbuf = gtk.gdk.pixbuf_new_from_data( buff.data, gtk.gdk.COLORSPACE_RGB, False, 8, width, height, width * 3)
def buffer_probe_handler_real(self, pad, buff, name): """Capture buffers as gdk_pixbufs when told to.""" if self.grabit: caps = buff.caps if caps is not None: filters = caps[0] self.width = filters["width"] self.height = filters["height"] timecode = self.pipeline.query_position(gst.FORMAT_TIME)[0] pixbuf = gtk.gdk.pixbuf_new_from_data(buff.data, gtk.gdk.COLORSPACE_RGB, False, 8, self.width, self.height, self.width * 3) pixbuf.save(self.thumbnail_filename, "png") del pixbuf self.success = True self.disconnect() self.done() return False
9ec3a8ff57978fde4b3a57d656b012c6d994d233 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/9ec3a8ff57978fde4b3a57d656b012c6d994d233/gst_extractor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1613, 67, 27230, 67, 4176, 67, 7688, 12, 2890, 16, 4627, 16, 6139, 16, 508, 4672, 3536, 12372, 9664, 487, 314, 2883, 67, 14861, 4385, 87, 1347, 268, 1673, 358, 12123, 309, 365, 18, 2752, 3682, 30, 15788, 273, 6139, 18, 22984, 309, 15788, 353, 599, 30, 365, 18, 4768, 273, 1083, 365, 18, 20177, 1435, 365, 18, 8734, 1435, 327, 1083, 225, 3415, 273, 15788, 63, 20, 65, 1835, 273, 3415, 9614, 2819, 11929, 2072, 273, 3415, 9614, 4210, 11929, 813, 710, 273, 365, 18, 14904, 67, 14511, 18, 2271, 67, 3276, 12, 75, 334, 18, 7254, 67, 4684, 25146, 20, 65, 11871, 4385, 273, 22718, 18, 75, 2883, 18, 14861, 4385, 67, 2704, 67, 2080, 67, 892, 12, 6139, 18, 892, 16, 22718, 18, 75, 2883, 18, 10989, 6616, 67, 11343, 16, 1083, 16, 1725, 16, 1835, 16, 2072, 16, 1835, 380, 890, 13, 11871, 4385, 18, 5688, 12, 2890, 18, 14904, 67, 3459, 16, 315, 6446, 7923, 1464, 11871, 4385, 365, 18, 4768, 273, 1053, 365, 18, 20177, 1435, 365, 18, 8734, 1435, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 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, 1613, 67, 27230, 67, 4176, 67, 7688, 12, 2890, 16, 4627, 16, 6139, 16, 508, 4672, 3536, 12372, 9664, 487, 314, 2883, 67, 14861, 4385, 87, 1347, 268, 1673, 358, 12123, 309, 365, 18, 2752, 3682, 30, 15788, 273, 6139, 18, 22984, 309, 15788, 353, 599, 30, 365, 18, 4768, 273, 1083, 365, 18, 20177, 1435, 365, 18, 8734, 1435, 327, 1083, 225, 3415, 273, 15788, 63, 20, 65, 1835, 273, 3415, 9614, 2819, 11929, 2072, 273, 3415, 9614, 4210, 11929, 813, 710, 273, 365, 18, 14904, 67, 14511, 18, 2271, 67, 3276, 12, 75, 334, 18, 7254, 67, 4684, 25146, 20, 65, 11871, 4385, 273, 22718, 18, 75, 2883, 18, 14861, 4385, 67, 2704, 67, 2080, 67, 2 ]
return [ id for d, id in facs ]
return [ id for d, n, id in facs ]
def primes_above(self, x, degree=None): r""" Return prime ideals of self lying over x. INPUT: - ``x``: usually an element or ideal of self. It should be such that self.ideal(x) is sensible. This excludes x=0. - ``degree`` (default: None): None or an integer. If None, find all primes above x of any degree. If an integer, find all primes above x such that the resulting residue field has exactly this degree. OUTPUT: A list of prime ideals of self lying over x. If degree is specified and no such ideal exists, returns the empty list. The output is sorted by residue degree first, then by underlying prime (or equivalently, by norm). EXAMPLES:: sage: x = ZZ['x'].gen() sage: F.<t> = NumberField(x^3 - 2) :: sage: P2s = F.primes_above(2) sage: P2s # random [Fractional ideal (-t)] sage: all(2 in P2 for P2 in P2s) True sage: all(P2.is_prime() for P2 in P2s) True sage: [ P2.norm() for P2 in P2s ] [2] :: sage: P3s = F.primes_above(3) sage: P3s # random [Fractional ideal (t + 1)] sage: all(3 in P3 for P3 in P3s) True sage: all(P3.is_prime() for P3 in P3s) True sage: [ P3.norm() for P3 in P3s ] [3] The ideal (3) is totally ramified in F, so there is no degree 2 prime above 3:: sage: F.primes_above(3, degree=2) [] sage: [ id.residue_class_degree() for id, _ in F.ideal(3).factor() ] [1] Asking for a specific degree works:: sage: P5_1s = F.primes_above(5, degree=1) sage: P5_1s # random [Fractional ideal (-t^2 - 1)] sage: P5_1 = P5_1s[0]; P5_1.residue_class_degree() 1 :: sage: P5_2s = F.primes_above(5, degree=2) sage: P5_2s # random [Fractional ideal (t^2 - 2*t - 1)] sage: P5_2 = P5_2s[0]; P5_2.residue_class_degree() 2
b1ff2cfec2ee360f7df9341f799c02aaa308934c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b1ff2cfec2ee360f7df9341f799c02aaa308934c/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 846, 4485, 67, 25998, 12, 2890, 16, 619, 16, 10782, 33, 7036, 4672, 436, 8395, 2000, 17014, 10572, 1031, 434, 365, 328, 14946, 1879, 619, 18, 225, 12943, 30, 282, 300, 225, 12176, 92, 10335, 30, 11234, 392, 930, 578, 23349, 434, 365, 18, 2597, 1410, 506, 4123, 716, 365, 18, 831, 287, 12, 92, 13, 353, 15390, 1523, 18, 1220, 13644, 619, 33, 20, 18, 225, 300, 225, 12176, 21361, 10335, 261, 1886, 30, 599, 4672, 599, 578, 392, 3571, 18, 971, 599, 16, 1104, 777, 846, 4485, 5721, 619, 434, 1281, 10782, 18, 971, 392, 3571, 16, 1104, 777, 846, 4485, 5721, 619, 4123, 716, 326, 8156, 14765, 652, 711, 8950, 333, 10782, 18, 282, 11550, 30, 432, 666, 434, 17014, 10572, 1031, 434, 365, 328, 14946, 1879, 619, 18, 971, 10782, 353, 1269, 471, 1158, 4123, 23349, 1704, 16, 1135, 326, 1008, 666, 18, 1021, 876, 353, 3115, 635, 14765, 10782, 1122, 16, 1508, 635, 6808, 17014, 261, 280, 7680, 715, 16, 635, 4651, 2934, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 619, 273, 2285, 62, 3292, 92, 29489, 4507, 1435, 272, 410, 30, 478, 22782, 88, 34, 273, 3588, 974, 12, 92, 66, 23, 300, 576, 13, 225, 493, 225, 272, 410, 30, 453, 22, 87, 273, 478, 18, 683, 4485, 67, 25998, 12, 22, 13, 272, 410, 30, 453, 22, 87, 468, 2744, 306, 13724, 287, 23349, 24927, 88, 25887, 272, 410, 30, 777, 12, 22, 316, 453, 22, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 846, 4485, 67, 25998, 12, 2890, 16, 619, 16, 10782, 33, 7036, 4672, 436, 8395, 2000, 17014, 10572, 1031, 434, 365, 328, 14946, 1879, 619, 18, 225, 12943, 30, 282, 300, 225, 12176, 92, 10335, 30, 11234, 392, 930, 578, 23349, 434, 365, 18, 2597, 1410, 506, 4123, 716, 365, 18, 831, 287, 12, 92, 13, 353, 15390, 1523, 18, 1220, 13644, 619, 33, 20, 18, 225, 300, 225, 12176, 21361, 10335, 261, 1886, 30, 599, 4672, 599, 578, 392, 3571, 18, 971, 599, 16, 1104, 777, 846, 4485, 5721, 619, 434, 1281, 10782, 18, 971, 392, 3571, 16, 1104, 777, 846, 4485, 5721, 619, 4123, 716, 326, 8156, 14765, 652, 711, 8950, 333, 10782, 18, 282, 11550, 2 ]
u"""returns 0 if no cookie configured, 1 if cookie configured, 2 if cookie already configured (even if it is for a null value)"""
u"""returns 0 if no cookie configured, 1 if cookie configured, 2 if cookie already configured (even if it is for a null value)"""
def cookieHandler(): u"""returns 0 if no cookie configured, 1 if cookie configured, 2 if cookie already configured (even if it is for a null value)""" global cj returnValue = 2 logStatusMsg(u"""testing cookieFile settings""", 5) if cj == 1: pass elif cj == None and not getConfig()['global']['cookieFile']: logStatusMsg(u"""no cookies set""", 5) returnValue = 0 elif getConfig()['global']['urllib'] and not isinstance(cj, (cookielib.MozillaCookieJar, cookielib.LWPCookieJar) ): logStatusMsg(u"""attempting to load cookie type: %s """ % getConfig()['global']['cookieType'], 5) cj = cookielib.__getattribute__( getConfig()['global']['cookieType'] )() try: cj.load(getConfig()['global']['cookieFile']) returnValue = 1 logStatusMsg(u"""cookies loaded""", 5) except (cookielib.LoadError, IOError), m: logStatusMsg( unicodeC(m) + u' disabling cookies. To re-enable cookies, stop RSSDler, correct the problem, and restart.', 1) returnValue = 0 elif not getConfig()['global']['urllib'] and not isinstance(cj, (mechanize.MozillaCookieJar, mechanize.LWPCookieJar, mechanize.MSIECookieJar) ): logStatusMsg(u"""attempting to load cookie type: %s """ % getConfig()['global']['cookieType'], 5) cj = mechanize.__getattribute__( getConfig()['global']['cookieType'] )() try: cj.load(getConfig()['global']['cookieFile']) returnValue = 1 logStatusMsg(u"""cookies loaded""", 5) except (mechanize._clientcookie.LoadError, IOError), m: logStatusMsg( unicodeC(m) + u' disabling cookies. To re-enable cookies, stop RSSDler, correct the problem, and restart.', 1) returnValue = 0 return returnValue
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3878, 1503, 13332, 582, 8395, 6154, 374, 309, 1158, 3878, 4351, 16, 404, 309, 3878, 4351, 16, 576, 309, 3878, 1818, 4351, 261, 16728, 309, 518, 353, 364, 279, 446, 460, 15574, 2552, 18896, 7750, 273, 576, 613, 1482, 3332, 12, 89, 8395, 3813, 310, 3878, 812, 1947, 3660, 3113, 1381, 13, 309, 18896, 422, 404, 30, 1342, 1327, 18896, 422, 599, 471, 486, 4367, 1435, 3292, 6347, 21712, 8417, 812, 3546, 30, 613, 1482, 3332, 12, 89, 8395, 2135, 7237, 444, 3660, 3113, 1381, 13, 7750, 273, 374, 1327, 4367, 1435, 3292, 6347, 21712, 718, 2941, 3546, 471, 486, 1549, 12, 71, 78, 16, 261, 29854, 77, 30575, 18, 49, 11142, 10745, 6151, 10813, 16, 15860, 77, 30575, 18, 48, 59, 3513, 2538, 10813, 13, 262, 30, 613, 1482, 3332, 12, 89, 8395, 11764, 310, 358, 1262, 3878, 618, 30, 738, 87, 3536, 738, 4367, 1435, 3292, 6347, 21712, 8417, 559, 17337, 1381, 13, 18896, 273, 15860, 77, 30575, 16186, 588, 4589, 972, 12, 4367, 1435, 3292, 6347, 21712, 8417, 559, 3546, 262, 1435, 775, 30, 18896, 18, 945, 12, 588, 809, 1435, 3292, 6347, 21712, 8417, 812, 19486, 7750, 273, 404, 613, 1482, 3332, 12, 89, 8395, 16240, 4203, 3660, 3113, 1381, 13, 1335, 261, 29854, 77, 30575, 18, 2563, 668, 16, 8340, 3631, 312, 30, 613, 1482, 3332, 12, 5252, 39, 12, 81, 13, 397, 582, 11, 1015, 17912, 7237, 18, 2974, 283, 17, 7589, 7237, 16, 2132, 31481, 40, 749, 16, 3434, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3878, 1503, 13332, 582, 8395, 6154, 374, 309, 1158, 3878, 4351, 16, 404, 309, 3878, 4351, 16, 576, 309, 3878, 1818, 4351, 261, 16728, 309, 518, 353, 364, 279, 446, 460, 15574, 2552, 18896, 7750, 273, 576, 613, 1482, 3332, 12, 89, 8395, 3813, 310, 3878, 812, 1947, 3660, 3113, 1381, 13, 309, 18896, 422, 404, 30, 1342, 1327, 18896, 422, 599, 471, 486, 4367, 1435, 3292, 6347, 21712, 8417, 812, 3546, 30, 613, 1482, 3332, 12, 89, 8395, 2135, 7237, 444, 3660, 3113, 1381, 13, 7750, 273, 374, 1327, 4367, 1435, 3292, 6347, 21712, 718, 2941, 3546, 471, 486, 1549, 12, 71, 78, 16, 261, 29854, 77, 30575, 18, 49, 11142, 10745, 6151, 10813, 16, 15860, 77, 2 ]
while key == IHEOL:
while key == "IHEOL":
def getcourse(isprobe, akey): "Get a course and distance from the user." key = 0 dquad = copy.copy(game.quadrant) navmode = "unspecified" itemp = "curt" dsect = coord() iprompt = False if game.landed and not isprobe: prout(_("Dummy! You can't leave standard orbit until you")) proutn(_("are back aboard the ship.")) scanner.chew() return False while navmode == "unspecified": if damaged(DNAVSYS): if isprobe: prout(_("Computer damaged; manual navigation only")) else: prout(_("Computer damaged; manual movement only")) scanner.chew() navmode = "manual" key = IHEOL break if isprobe and akey != -1: # For probe launch, use pre-scanned value first time key = akey akey = -1 else: key = scanner.next() if key == IHEOL: proutn(_("Manual or automatic- ")) iprompt = True scanner.chew() elif key == IHALPHA: if scanner.sees("manual"): navmode = "manual" key = scanner.next() break elif scanner.sees("automatic"): navmode = "automatic" key = scanner.next() break else: huh() scanner.chew() return False else: # numeric if isprobe: prout(_("(Manual navigation assumed.)")) else: prout(_("(Manual movement assumed.)")) navmode = "manual" break if navmode == "automatic": while key == IHEOL: if isprobe: proutn(_("Target quadrant or quadrant&sector- ")) else: proutn(_("Destination sector or quadrant&sector- ")) scanner.chew() iprompt = True key = scanner.next() if key != IHREAL: huh() return False xi = int(round(scanner.real))-1 key = scanner.next() if key != IHREAL: huh() return False xj = int(round(scanner.real))-1 key = scanner.next() if key == IHREAL: # both quadrant and sector specified xk = int(round(scanner.real))-1 key = scanner.next() if key != IHREAL: huh() return False xl = int(round(scanner.real))-1 dquad.i = xi dquad.j = xj dsect.i = xk dsect.j = xl else: # only one pair of numbers was specified if isprobe: # only quadrant specified -- go to center of dest quad dquad.i = xi dquad.j = xj dsect.j = dsect.i = 4 # preserves 1-origin behavior else: # only sector specified dsect.i = xi dsect.j = xj itemp = "normal" if not VALID_QUADRANT(dquad.i,dquad.j) or not VALID_SECTOR(dsect.i,dsect.j): huh() return False skip(1) if not isprobe: if itemp > "curt": if iprompt: prout(_("Helmsman Sulu- \"Course locked in for Sector %s.\"") % dsect) else: prout(_("Ensign Chekov- \"Course laid in, Captain.\"")) # the actual deltas get computed here delta = coord() delta.i = dquad.j-game.quadrant.j + 0.1*(dsect.j-game.sector.j) delta.j = game.quadrant.i-dquad.i + 0.1*(game.sector.i-dsect.i) else: # manual while key == IHEOL: proutn(_("X and Y displacements- ")) scanner.chew() iprompt = True key = scanner.next() itemp = "verbose" if key != IHREAL: huh() return False delta.j = scanner.real key = scanner.next() if key != IHREAL: huh() return False delta.i = scanner.real # Check for zero movement if delta.i == 0 and delta.j == 0: scanner.chew() return False if itemp == "verbose" and not isprobe: skip(1) prout(_("Helmsman Sulu- \"Aye, Sir.\"")) # Course actually laid in. game.dist = delta.distance() game.direc = delta.bearing() if game.direc < 0.0: game.direc += 12.0 scanner.chew() return True
af15867a294e48006eba4fd9997cae401ccbfb05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/af15867a294e48006eba4fd9997cae401ccbfb05/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5566, 12, 291, 27230, 16, 279, 856, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775, 3188, 273, 315, 318, 13827, 6, 761, 84, 273, 315, 1397, 88, 6, 302, 5709, 273, 2745, 1435, 2359, 8645, 273, 1083, 309, 7920, 18, 80, 5860, 471, 486, 353, 27230, 30, 450, 322, 24899, 2932, 20094, 5, 4554, 848, 1404, 8851, 4529, 17656, 3180, 1846, 6, 3719, 450, 322, 82, 24899, 2932, 834, 1473, 279, 3752, 326, 24316, 1199, 3719, 7683, 18, 343, 359, 1435, 327, 1083, 1323, 8775, 3188, 422, 315, 318, 13827, 6877, 309, 302, 301, 11349, 12, 8609, 5856, 30664, 4672, 309, 353, 27230, 30, 450, 322, 24899, 2932, 7703, 264, 302, 301, 11349, 31, 11297, 10394, 1338, 6, 3719, 469, 30, 450, 322, 24899, 2932, 7703, 264, 302, 301, 11349, 31, 11297, 26017, 1338, 6, 3719, 7683, 18, 343, 359, 1435, 8775, 3188, 273, 315, 19840, 6, 498, 273, 467, 3900, 1741, 898, 309, 353, 27230, 471, 279, 856, 480, 300, 21, 30, 468, 2457, 10695, 8037, 16, 999, 675, 17, 1017, 10041, 460, 1122, 813, 498, 273, 279, 856, 279, 856, 273, 300, 21, 469, 30, 498, 273, 7683, 18, 4285, 1435, 309, 498, 422, 467, 3900, 1741, 30, 450, 322, 82, 24899, 2932, 25139, 578, 5859, 17, 315, 3719, 2359, 8645, 273, 1053, 7683, 18, 343, 359, 1435, 1327, 498, 422, 467, 44, 26313, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5566, 12, 291, 27230, 16, 279, 856, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775, 3188, 273, 315, 318, 13827, 6, 761, 84, 273, 315, 1397, 88, 6, 302, 5709, 273, 2745, 1435, 2359, 8645, 273, 1083, 309, 7920, 18, 80, 5860, 471, 486, 353, 27230, 30, 450, 322, 24899, 2932, 20094, 5, 4554, 848, 1404, 8851, 4529, 17656, 3180, 1846, 6, 3719, 450, 322, 82, 24899, 2932, 834, 1473, 279, 3752, 326, 24316, 1199, 3719, 7683, 18, 343, 359, 1435, 327, 1083, 1323, 8775, 3188, 422, 315, 318, 13827, 6877, 309, 302, 301, 11349, 12, 8609, 5856, 2 ]
def _load_Files(self): href = os.path.join( self.Get("config_dir", "config")
self.configParser = self._load_Files("files") def _load_Files(self, section): "Load the config file and add it to configParser" href = os.path.join( self.Get("config_dir"), "config")
def _load_Files(self): href = os.path.join( self.Get("config_dir", "config") self.configParser = ConfigParser.ConfigParser() if len( self.configParser.read(href)) == 0: print "No conf file find" for (key, values) in defaultConf.items("): if not key in self.configParser.options(): self.configParser.set("default", key, value)
7b19abf7d5a6a776a423f65290cc0d136b8b699d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/7b19abf7d5a6a776a423f65290cc0d136b8b699d/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 1425, 2678, 273, 365, 6315, 945, 67, 2697, 2932, 2354, 7923, 282, 1652, 389, 945, 67, 2697, 12, 2890, 16, 2442, 4672, 315, 2563, 326, 642, 585, 471, 527, 518, 358, 642, 2678, 6, 3897, 273, 1140, 18, 803, 18, 5701, 12, 365, 18, 967, 2932, 1425, 67, 1214, 6, 3631, 315, 1425, 7923, 225, 365, 18, 1425, 2678, 273, 25076, 18, 809, 2678, 1435, 309, 562, 12, 365, 18, 1425, 2678, 18, 896, 12, 7547, 3719, 422, 374, 30, 1172, 315, 2279, 2195, 585, 1104, 6, 364, 261, 856, 16, 924, 13, 316, 805, 3976, 18, 3319, 2932, 4672, 309, 486, 498, 316, 365, 18, 1425, 2678, 18, 2116, 13332, 365, 18, 1425, 2678, 18, 542, 2932, 1886, 3113, 498, 16, 460, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 2678, 6, 3897, 273, 1140, 18, 803, 18, 5701, 12, 365, 18, 967, 2932, 1425, 67, 1214, 6, 3631, 315, 1425, 7923, 225, 365, 18, 1425, 2678, 273, 25076, 18, 809, 2678, 1435, 309, 562, 12, 365, 18, 1425, 2678, 18, 896, 12, 7547, 3719, 422, 374, 30, 1172, 315, 2279, 2195, 585, 1104, 6, 364, 261, 856, 16, 924, 13, 316, 805, 3976, 18, 3319, 2932, 4672, 309, 486, 498, 316, 365, 18, 1425, 2678, 18, 2116, 13332, 365, 18, 1425, 2678, 18, 542, 2 ]
self._logger.info("Creating tag.")
def _onTag(self, e): try: self._logger.info("Creating tag.") tagID = e.GetId() if self._tagMenu.IsChecked(tagID) == True: # since clicking checks self.setTag(self._track, tagID) else: self.unsetTag(self._track, tagID) self.refreshSelectedTrack() except AttributeError as err: if str(err) != "'MainWindow' object has no attribute '_track'": raise err self._logger.error("No track selected.") return
6ece34958d0ec2d8d79071a73ea889b1b54b62d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/6ece34958d0ec2d8d79071a73ea889b1b54b62d3/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 265, 1805, 12, 2890, 16, 425, 4672, 775, 30, 1047, 734, 273, 425, 18, 967, 548, 1435, 309, 365, 6315, 2692, 4599, 18, 2520, 11454, 12, 2692, 734, 13, 422, 1053, 30, 468, 3241, 4682, 310, 4271, 365, 18, 542, 1805, 12, 2890, 6315, 4101, 16, 1047, 734, 13, 469, 30, 365, 18, 18579, 1805, 12, 2890, 6315, 4101, 16, 1047, 734, 13, 365, 18, 9144, 7416, 4402, 1435, 1335, 6394, 487, 393, 30, 309, 609, 12, 370, 13, 480, 2491, 6376, 3829, 11, 733, 711, 1158, 1566, 2070, 4101, 4970, 30, 1002, 393, 365, 6315, 4901, 18, 1636, 2932, 2279, 3298, 3170, 1199, 13, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 265, 1805, 12, 2890, 16, 425, 4672, 775, 30, 1047, 734, 273, 425, 18, 967, 548, 1435, 309, 365, 6315, 2692, 4599, 18, 2520, 11454, 12, 2692, 734, 13, 422, 1053, 30, 468, 3241, 4682, 310, 4271, 365, 18, 542, 1805, 12, 2890, 6315, 4101, 16, 1047, 734, 13, 469, 30, 365, 18, 18579, 1805, 12, 2890, 6315, 4101, 16, 1047, 734, 13, 365, 18, 9144, 7416, 4402, 1435, 1335, 6394, 487, 393, 30, 309, 609, 12, 370, 13, 480, 2491, 6376, 3829, 11, 733, 711, 1158, 1566, 2070, 4101, 4970, 30, 1002, 393, 365, 6315, 4901, 18, 1636, 2932, 2279, 3298, 3170, 1199, 13, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""This is handler dumps the content of POST request to a disk file into the data_dir/dump. Sub-directories are not supported."""
"""This is handler dumps the content of POST/PUT request to a disk file into the data_dir/dump. Sub-directories are not supported."""
def WriteFile(self): """This is handler dumps the content of POST request to a disk file into the data_dir/dump. Sub-directories are not supported."""
762d2db5d5e1b0d7852ddb2efef982b00e897322 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/762d2db5d5e1b0d7852ddb2efef982b00e897322/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24155, 12, 2890, 4672, 3536, 2503, 353, 1838, 6711, 326, 913, 434, 5485, 590, 358, 279, 4234, 585, 1368, 326, 501, 67, 1214, 19, 8481, 18, 2592, 17, 15121, 854, 486, 3260, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24155, 12, 2890, 4672, 3536, 2503, 353, 1838, 6711, 326, 913, 434, 5485, 590, 358, 279, 4234, 585, 1368, 326, 501, 67, 1214, 19, 8481, 18, 2592, 17, 15121, 854, 486, 3260, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.satList.sort(key = lambda x: x[0])
self.satList.sort(key = self.sortFunc)
def readTransponders(self): # read initial networks from file. we only read files which we are interested in, # which means only these where a compatible tuner exists. self.satellites = { } self.transponders = { } self.transponderscable = { } self.transpondersterrestrial = { } db = eDVBDB.getInstance() if self.hasNimType("DVB-S"): print "Reading satellites.xml" db.readSatellites(self.satList, self.satellites, self.transponders) self.satList.sort(key = lambda x: x[0]) # sort by orbpos #print "SATLIST", self.satList #print "SATS", self.satellites #print "TRANSPONDERS", self.transponders
406b024501ad0bf0473d08b345de5e94c370804b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/406b024501ad0bf0473d08b345de5e94c370804b/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1429, 3111, 414, 12, 2890, 4672, 468, 855, 2172, 13884, 628, 585, 18, 732, 1338, 855, 1390, 1492, 732, 854, 20506, 316, 16, 468, 1492, 4696, 1338, 4259, 1625, 279, 7318, 268, 29640, 1704, 18, 365, 18, 12973, 1165, 2997, 273, 288, 289, 365, 18, 2338, 3111, 414, 273, 288, 289, 365, 18, 2338, 3111, 414, 71, 429, 273, 288, 289, 365, 18, 2338, 17707, 8190, 455, 17493, 273, 288, 289, 1319, 273, 425, 30199, 38, 2290, 18, 588, 1442, 1435, 309, 365, 18, 5332, 50, 381, 559, 2932, 30199, 38, 17, 55, 6, 4672, 1172, 315, 15714, 5942, 1165, 2997, 18, 2902, 6, 1319, 18, 896, 15163, 1165, 2997, 12, 2890, 18, 12973, 682, 16, 365, 18, 12973, 1165, 2997, 16, 365, 18, 2338, 3111, 414, 13, 365, 18, 12973, 682, 18, 3804, 12, 856, 273, 365, 18, 3804, 2622, 13, 468, 1524, 635, 16823, 917, 468, 1188, 315, 55, 789, 7085, 3113, 365, 18, 12973, 682, 468, 1188, 315, 55, 17813, 3113, 365, 18, 12973, 1165, 2997, 468, 1188, 315, 8989, 10789, 4179, 55, 3113, 365, 18, 2338, 3111, 414, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 855, 1429, 3111, 414, 12, 2890, 4672, 468, 855, 2172, 13884, 628, 585, 18, 732, 1338, 855, 1390, 1492, 732, 854, 20506, 316, 16, 468, 1492, 4696, 1338, 4259, 1625, 279, 7318, 268, 29640, 1704, 18, 365, 18, 12973, 1165, 2997, 273, 288, 289, 365, 18, 2338, 3111, 414, 273, 288, 289, 365, 18, 2338, 3111, 414, 71, 429, 273, 288, 289, 365, 18, 2338, 17707, 8190, 455, 17493, 273, 288, 289, 1319, 273, 425, 30199, 38, 2290, 18, 588, 1442, 1435, 309, 365, 18, 5332, 50, 381, 559, 2932, 30199, 38, 17, 55, 6, 4672, 1172, 315, 15714, 5942, 1165, 2997, 18, 2902, 6, 1319, 18, 896, 15163, 1165, 2997, 12, 2890, 18, 12973, 682, 16, 365, 2 ]
if bits[2] != 'for':
if bits[2] != 'in':
def do_tagged_objects(parser, token): """ Retrieves a list of objects for a given Model which are tagged with a given Tag and stores them in a context variable. The tag must be an instance of a ``Tag``, not the name of a tag. The model is specified in ``[appname].[modelname]`` format. Example usage:: {% tagged_objects foo_tag in tv.Model as object_list %} """ bits = token.contents.split() if len(bits) != 6: raise TemplateSyntaxError('%s tag requires exactly five arguments' % bits[0]) if bits[2] != 'for': raise TemplateSyntaxError("second argument to %s tag must be 'in'" % bits[0]) if bits[4] != 'as': raise TemplateSyntaxError("fourth argument to %s tag must be 'as'" % bits[0]) return TaggedObjectsNode(bits[1], bits[3], bits[5])
95ef388684f261e416d45f7a2ad1caf18331dcb2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4290/95ef388684f261e416d45f7a2ad1caf18331dcb2/tagging_tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 23023, 67, 6911, 12, 4288, 16, 1147, 4672, 3536, 20507, 279, 666, 434, 2184, 364, 279, 864, 3164, 1492, 854, 12503, 598, 279, 864, 4034, 471, 9064, 2182, 316, 279, 819, 2190, 18, 225, 1021, 1047, 1297, 506, 392, 791, 434, 279, 12176, 1805, 68, 9191, 486, 326, 508, 434, 279, 1047, 18, 225, 1021, 938, 353, 1269, 316, 12176, 63, 2910, 529, 8009, 63, 2284, 529, 65, 10335, 740, 18, 225, 5090, 4084, 2866, 225, 288, 9, 12503, 67, 6911, 8431, 67, 2692, 316, 13521, 18, 1488, 487, 733, 67, 1098, 738, 97, 3536, 4125, 273, 1147, 18, 3980, 18, 4939, 1435, 309, 562, 12, 6789, 13, 480, 1666, 30, 1002, 5035, 22510, 29909, 87, 1047, 4991, 8950, 23714, 1775, 11, 738, 4125, 63, 20, 5717, 309, 4125, 63, 22, 65, 480, 296, 267, 4278, 1002, 5035, 22510, 2932, 8538, 1237, 358, 738, 87, 1047, 1297, 506, 296, 267, 4970, 738, 4125, 63, 20, 5717, 309, 4125, 63, 24, 65, 480, 296, 345, 4278, 1002, 5035, 22510, 2932, 74, 477, 451, 1237, 358, 738, 87, 1047, 1297, 506, 296, 345, 4970, 738, 4125, 63, 20, 5717, 327, 30802, 4710, 907, 12, 6789, 63, 21, 6487, 4125, 63, 23, 6487, 4125, 63, 25, 5717, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 23023, 67, 6911, 12, 4288, 16, 1147, 4672, 3536, 20507, 279, 666, 434, 2184, 364, 279, 864, 3164, 1492, 854, 12503, 598, 279, 864, 4034, 471, 9064, 2182, 316, 279, 819, 2190, 18, 225, 1021, 1047, 1297, 506, 392, 791, 434, 279, 12176, 1805, 68, 9191, 486, 326, 508, 434, 279, 1047, 18, 225, 1021, 938, 353, 1269, 316, 12176, 63, 2910, 529, 8009, 63, 2284, 529, 65, 10335, 740, 18, 225, 5090, 4084, 2866, 225, 288, 9, 12503, 67, 6911, 8431, 67, 2692, 316, 13521, 18, 1488, 487, 733, 67, 1098, 738, 97, 3536, 4125, 273, 1147, 18, 3980, 18, 4939, 1435, 309, 562, 12, 6789, 13, 480, 1666, 30, 1002, 5035, 22510, 29909, 87, 2 ]
if band == consts.MM_NETWORK_BAND_ANY: pass else: raise KeyError("Unsupported band %d" % band)
for key, value in self.custom.band_dict.items(): if band & key: return self.send_at("AT+ZBANDI=%d" % self.custom.band_dict[key])
def set_band(self, band): """Sets the band to ``band``""" if not len(self.custom.band_dict): if band == consts.MM_NETWORK_BAND_ANY: return defer.succeed('') else: raise KeyError("Unsupported band %d" % band)
b96b9869242e522112b0801c1f3f76cd8097ab7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/b96b9869242e522112b0801c1f3f76cd8097ab7b/zte.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 12752, 12, 2890, 16, 8937, 4672, 3536, 2785, 326, 8937, 358, 12176, 12752, 10335, 8395, 309, 486, 562, 12, 2890, 18, 3662, 18, 12752, 67, 1576, 4672, 309, 8937, 422, 15677, 18, 8206, 67, 28047, 67, 38, 4307, 67, 15409, 30, 327, 2220, 18, 87,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 12752, 12, 2890, 16, 8937, 4672, 3536, 2785, 326, 8937, 358, 12176, 12752, 10335, 8395, 309, 486, 562, 12, 2890, 18, 3662, 18, 12752, 67, 1576, 4672, 309, 8937, 422, 15677, 18, 8206, 67, 28047, 67, 38, 4307, 67, 15409, 30, 327, 2220, 18, 87, 5286, 5288, 2668, 6134, 469, 30, 1002, 4999, 2932, 8544, 8937, 738, 72, 6, 738, 8937, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""").replace('\n', os.linesep)
""")
def testBufferOutputAddErrorOrFailure(self): for message_attr, add_attr, include_error in [ ('errors', 'addError', True), ('failures', 'addFailure', False), ('errors', 'addError', True), ('failures', 'addFailure', False) ]: result = self.getStartedResult() buffered_out = sys.stdout buffered_err = sys.stderr result._original_stdout = StringIO() result._original_stderr = StringIO()
93232660bb96b8ab10de393850007b49b0cc595c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/93232660bb96b8ab10de393850007b49b0cc595c/test_result.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1892, 1447, 986, 668, 1162, 5247, 12, 2890, 4672, 364, 883, 67, 1747, 16, 527, 67, 1747, 16, 2341, 67, 1636, 316, 306, 7707, 4324, 2187, 296, 1289, 668, 2187, 1053, 3631, 7707, 26268, 2187, 296, 1289, 5247, 2187, 1083, 3631, 7707, 4324, 2187, 296, 1289, 668, 2187, 1053, 3631, 7707, 26268, 2187, 296, 1289, 5247, 2187, 1083, 13, 308, 30, 563, 273, 365, 18, 588, 9217, 1253, 1435, 11445, 67, 659, 273, 2589, 18, 10283, 11445, 67, 370, 273, 2589, 18, 11241, 563, 6315, 8830, 67, 10283, 273, 15777, 1435, 563, 6315, 8830, 67, 11241, 273, 15777, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1892, 1447, 986, 668, 1162, 5247, 12, 2890, 4672, 364, 883, 67, 1747, 16, 527, 67, 1747, 16, 2341, 67, 1636, 316, 306, 7707, 4324, 2187, 296, 1289, 668, 2187, 1053, 3631, 7707, 26268, 2187, 296, 1289, 5247, 2187, 1083, 3631, 7707, 4324, 2187, 296, 1289, 668, 2187, 1053, 3631, 7707, 26268, 2187, 296, 1289, 5247, 2187, 1083, 13, 308, 30, 563, 273, 365, 18, 588, 9217, 1253, 1435, 11445, 67, 659, 273, 2589, 18, 10283, 11445, 67, 370, 273, 2589, 18, 11241, 563, 6315, 8830, 67, 10283, 273, 15777, 1435, 563, 6315, 8830, 67, 11241, 273, 15777, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def ChangeStatusBar(self, oldValue, newValue): pass
def GetStatusBar(self, x): return self.control.GetStatusBar() def SetStatusBar(self, value): self.control.SetStatusBar(value) if value: self.control.SendSizeEvent()
def ChangeStatusBar(self, oldValue, newValue): pass # XXX Cannot refresh designer because statusbar not yet connected
46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7576, 1482, 5190, 12, 2890, 16, 11144, 16, 6129, 4672, 1342, 468, 11329, 14143, 4460, 8281, 264, 2724, 1267, 3215, 486, 4671, 5840, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7576, 1482, 5190, 12, 2890, 16, 11144, 16, 6129, 4672, 1342, 468, 11329, 14143, 4460, 8281, 264, 2724, 1267, 3215, 486, 4671, 5840, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
debug(" %s does not path-match %s", req_path, path)
_debug(" %s does not path-match %s", req_path, path)
def path_return_ok(self, path, request): debug("- checking cookie path=%s", path) req_path = request_path(request) if not req_path.startswith(path): debug(" %s does not path-match %s", req_path, path) return False return True
e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 67, 2463, 67, 601, 12, 2890, 16, 589, 16, 590, 4672, 1198, 2932, 17, 6728, 3878, 589, 5095, 87, 3113, 589, 13, 1111, 67, 803, 273, 590, 67, 803, 12, 2293, 13, 309, 486, 1111, 67, 803, 18, 17514, 1918, 12, 803, 4672, 389, 4148, 2932, 225, 738, 87, 1552, 486, 589, 17, 1916, 738, 87, 3113, 1111, 67, 803, 16, 589, 13, 327, 1083, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 2890, 16, 589, 16, 590, 4672, 1198, 2932, 17, 6728, 3878, 589, 5095, 87, 3113, 589, 13, 1111, 67, 803, 273, 590, 67, 803, 12, 2293, 13, 309, 486, 1111, 67, 803, 18, 17514, 1918, 12, 803, 4672, 389, 4148, 2932, 225, 738, 87, 1552, 486, 589, 17, 1916, 738, 87, 3113, 1111, 67, 803, 16, 589, 13, 327, 1083, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0], item[1])) if item[2]: strList.append(', optional') strList.append('\n')
if not item[0].startswith('__param'): indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0], item[1])) if item[2]: strList.append(', optional') strList.append('\n') else: return ['*Simple* %s' % item[1]]
def recurseTypeList(self, allTypeDict, typeList, level, alreadyListed): """Recurse through a dictionary of type lists until reach Python types. """ if level > 12: # just in case return strList = [] for item in typeList: if item[0].startswith('_'): indent = ID2 + IDSP2*level strList.append('%s%s: %s' % (indent, item[0], item[1])) if item[2]: strList.append(', optional') strList.append('\n') if allTypeDict.has_key(item[1]): if item[1] not in alreadyListed: alreadyListed.append(item[1]) strList.extend(self.recurseTypeList(allTypeDict, allTypeDict[item[1]], level+1, alreadyListed)) return strList
d9d3337d4084d54d35a9489cf9880e594989841c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/d9d3337d4084d54d35a9489cf9880e594989841c/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11502, 559, 682, 12, 2890, 16, 777, 559, 5014, 16, 618, 682, 16, 1801, 16, 1818, 682, 329, 4672, 3536, 426, 17682, 3059, 279, 3880, 434, 618, 6035, 3180, 9287, 6600, 1953, 18, 3536, 309, 1801, 405, 2593, 30, 225, 468, 2537, 316, 648, 327, 609, 682, 273, 5378, 364, 761, 316, 618, 682, 30, 309, 761, 63, 20, 8009, 17514, 1918, 2668, 4623, 4672, 309, 486, 761, 63, 20, 8009, 17514, 1918, 2668, 972, 891, 11, 4672, 3504, 273, 1599, 22, 397, 1599, 3118, 22, 14, 2815, 609, 682, 18, 6923, 29909, 87, 9, 87, 30, 738, 87, 11, 738, 261, 9355, 16, 761, 63, 20, 6487, 761, 63, 21, 22643, 309, 761, 63, 22, 14542, 609, 682, 18, 6923, 12, 2187, 3129, 6134, 609, 682, 18, 6923, 2668, 64, 82, 6134, 469, 30, 327, 10228, 14, 5784, 14, 738, 87, 11, 738, 761, 63, 21, 13563, 309, 777, 559, 5014, 18, 5332, 67, 856, 12, 1726, 63, 21, 65, 4672, 309, 761, 63, 21, 65, 486, 316, 1818, 682, 329, 30, 1818, 682, 329, 18, 6923, 12, 1726, 63, 21, 5717, 609, 682, 18, 14313, 12, 2890, 18, 29362, 559, 682, 12, 454, 559, 5014, 16, 777, 559, 5014, 63, 1726, 63, 21, 65, 6487, 1801, 15, 21, 16, 1818, 682, 329, 3719, 327, 609, 682, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11502, 559, 682, 12, 2890, 16, 777, 559, 5014, 16, 618, 682, 16, 1801, 16, 1818, 682, 329, 4672, 3536, 426, 17682, 3059, 279, 3880, 434, 618, 6035, 3180, 9287, 6600, 1953, 18, 3536, 309, 1801, 405, 2593, 30, 225, 468, 2537, 316, 648, 327, 609, 682, 273, 5378, 364, 761, 316, 618, 682, 30, 309, 761, 63, 20, 8009, 17514, 1918, 2668, 4623, 4672, 309, 486, 761, 63, 20, 8009, 17514, 1918, 2668, 972, 891, 11, 4672, 3504, 273, 1599, 22, 397, 1599, 3118, 22, 14, 2815, 609, 682, 18, 6923, 29909, 87, 9, 87, 30, 738, 87, 11, 738, 261, 9355, 16, 761, 63, 20, 6487, 761, 63, 21, 22643, 309, 761, 63, 22, 14542, 609, 2 ]
Invenio (formerly CDSWare), then you should not proceed with
Invenio (formerly CDSware), then you should not proceed with
def tmpl_admin_migrate_formats(self, ln): """ Basic page to warn user that migration of formats to format templates is not straightforward """ _ = gettext_set_language(ln) # load the right message language out = '''<p>The migration of format is not completely staightforward. Here are some advice for the migration:</p> <ol> <li>If you do not have modified original formats provided by default in CDS Invenio (formerly CDSWare), then you should not proceed with this step.</li> <li>If you have only made small changes to the original formats provided by default in CDS Invenio (formerly CDSWare), then you should not proceed with this step, but compare your modified files with the new provided files and make changes manually.</li> <li>If you have created totally new formats or made large modifications to the provided one, we still advice you not to use this tool and make changes by yourself. However, you can try to run this translation tool as a starting point. If you have made HTML prototypes of the formats, then you would better start from the prototypes.</li> </ol> <p>In any case you should fill the table that maps text labels to a Marc codes BEFORE doing this migration, which should help you to write new formats (and also help you manage fields of the system).<br/> Here are some explanations that can help you understand why we advice you to rewrite format manually:</p> <p>The new BibFormat now uses format files that separate the presentation from the business logic, which is something that cannot be completely automated. The formats will be moved to new kinds of configuration files, called "<i>Format templates</i> (for the presentation) and "<i>Format elements</i> (for the part that binds the record in database to the format template). Format templates are written in HTML. Format elements are written in Python. However basic format elements do not even need to be written, as BibFormat can guess which field of a record it has to retrieve by looking at an internal mapping table (maps a label to a marc code). It is why it is important that you fill this table correctly BEFORE running the translation of the formats. </p> <p>This migration tool will do as much as possible to translate your formats in these new kind of files. It will create format templates files corresponding to your formats, and will include an attempt of translation + the original code as comment. Empty format elements files will be created whenever necessary.</p>'''
505c3d30a955c667b9991b574b161cdc797b0161 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/505c3d30a955c667b9991b574b161cdc797b0161/bibformat_migration_kit_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3666, 67, 22083, 67, 11962, 12, 2890, 16, 7211, 4672, 3536, 7651, 1363, 358, 1894, 729, 716, 6333, 434, 6449, 358, 740, 5539, 353, 486, 21251, 11565, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 565, 468, 1262, 326, 2145, 883, 2653, 225, 596, 273, 9163, 32, 84, 34, 1986, 6333, 434, 740, 353, 486, 14416, 384, 19717, 11565, 18, 13743, 854, 2690, 29929, 364, 326, 6333, 19814, 84, 34, 411, 355, 34, 411, 549, 34, 2047, 1846, 741, 486, 1240, 4358, 2282, 6449, 2112, 635, 805, 316, 385, 3948, 657, 3995, 1594, 261, 7208, 715, 385, 3948, 2726, 3631, 1508, 1846, 1410, 486, 11247, 598, 333, 2235, 17347, 549, 34, 411, 549, 34, 2047, 1846, 1240, 1338, 7165, 5264, 3478, 358, 326, 2282, 6449, 2112, 635, 805, 316, 385, 3948, 657, 3995, 1594, 261, 7208, 715, 385, 3948, 2726, 3631, 1508, 1846, 1410, 486, 11247, 598, 333, 2235, 16, 1496, 3400, 3433, 4358, 1390, 598, 326, 394, 2112, 1390, 471, 1221, 3478, 10036, 17347, 549, 34, 411, 549, 34, 2047, 1846, 1240, 2522, 9997, 1230, 394, 6449, 578, 7165, 7876, 17953, 358, 326, 2112, 1245, 16, 732, 4859, 29929, 1846, 486, 358, 999, 333, 5226, 471, 1221, 3478, 635, 3433, 2890, 18, 10724, 16, 1846, 848, 775, 358, 1086, 333, 4794, 5226, 487, 279, 5023, 1634, 18, 971, 1846, 1240, 7165, 3982, 450, 3307, 989, 434, 326, 6449, 16, 1508, 1846, 4102, 7844, 787, 628, 326, 450, 3307, 989, 17347, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3666, 67, 22083, 67, 11962, 12, 2890, 16, 7211, 4672, 3536, 7651, 1363, 358, 1894, 729, 716, 6333, 434, 6449, 358, 740, 5539, 353, 486, 21251, 11565, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 565, 468, 1262, 326, 2145, 883, 2653, 225, 596, 273, 9163, 32, 84, 34, 1986, 6333, 434, 740, 353, 486, 14416, 384, 19717, 11565, 18, 13743, 854, 2690, 29929, 364, 326, 6333, 19814, 84, 34, 411, 355, 34, 411, 549, 34, 2047, 1846, 741, 486, 1240, 4358, 2282, 6449, 2112, 635, 805, 316, 385, 3948, 657, 3995, 1594, 261, 7208, 715, 385, 3948, 2726, 3631, 1508, 1846, 1410, 486, 11247, 598, 333, 2235, 17347, 549, 34, 411, 549, 2 ]
p1, p2 = self.o.mousepoints(event) v2 = norm(p2-p1) px = ptonline(a.posn(), p1, v2)
px = self.dragto(a.posn(), event)
def leftShiftDrag(self, event): """ drag the new atom around
c3b33ebb3c32b24b8ca0870be88dba2058d5d0b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c3b33ebb3c32b24b8ca0870be88dba2058d5d0b6/depositMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2002, 10544, 11728, 12, 2890, 16, 871, 4672, 3536, 8823, 326, 394, 3179, 6740, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.x[i].t = val
self.x[i].t = (c_uint * (len(val) + 1))() self.x[i].t[0] = len(val) for j, num in enumerate(val): self.x[i].t[j+1] = num
def __init__(self, stringSVM, labels, values):
50217656cb09ddf6382337cca40b8f4397b91010 /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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 533, 55, 7397, 16, 3249, 16, 924, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
candidates)
addresses)
def locate_many(self, domain, role=None, maxservers=None): """Locate a list of up to `maxservers' of domain controllers.""" if role is None: role = 'dc' if maxservers is None: maxservers = self._maxservers if role not in ('dc', 'gc', 'pdc'): raise ValueError, 'Role should be one of "dc", "gc" or "pdc".' if role == 'pdc': maxservers = 1 domain = domain.upper() self.m_logger.debug('locating domain controllers for %s (role %s)' % (domain, role)) key = (domain, role) if key in self.m_cache: stamp, nrequested, servers = self.m_cache[key] now = time.time() if now - stamp < self._timeout and nrequested >= maxservers: self.m_logger.debug('domain controllers found in cache') return servers self.m_logger.debug('domain controllers not in cache, going to network') servers = [] candidates = [] if self.m_site is None and not self.m_site_detected: self.m_site = self._detect_site(domain) self.m_site_detected = True if self.m_site and role != 'pdc': query = '_ldap._tcp.%s._sites.%s._msdcs.%s' % \ (self.m_site, role, domain.lower()) answer = self._dns_query(query, 'SRV') candidates += self._order_dns_srv(answer) query = '_ldap._tcp.%s._msdcs.%s' % (role, domain.lower()) answer = self._dns_query(query, 'SRV') candidates += self._order_dns_srv(answer) candidates = self._extract_addresses_from_srv(candidates) self._remove_duplicates(candidates) replies = [] netlogon = NetlogonClient() for i in range(0, len(candidates), maxservers): for addr in candidates[i:i+maxservers]: addr = (addr, LDAP_PORT) netlogon.query(addr, domain) replies += netlogon.call() if self._sufficient_domain_controllers(replies, role, maxservers): break result = self._select_domain_controllers(replies, role, maxservers, candidates) servers = self._extract_addresses_from_netlogon(result) self.m_logger.debug('found %d domain controllers' % len(servers)) now = time.time() self.m_cache[key] = (now, maxservers, servers) return servers
e4f0f07a232f0948ef6daae133ae57183267e3a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11970/e4f0f07a232f0948ef6daae133ae57183267e3a3/locate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10627, 67, 9353, 12, 2890, 16, 2461, 16, 2478, 33, 7036, 16, 943, 14247, 33, 7036, 4672, 3536, 1333, 340, 279, 666, 434, 731, 358, 1375, 1896, 14247, 11, 434, 2461, 12403, 12123, 309, 2478, 353, 599, 30, 2478, 273, 296, 7201, 11, 309, 943, 14247, 353, 599, 30, 943, 14247, 273, 365, 6315, 1896, 14247, 309, 2478, 486, 316, 7707, 7201, 2187, 296, 13241, 2187, 296, 84, 7201, 11, 4672, 1002, 2068, 16, 296, 2996, 1410, 506, 1245, 434, 315, 7201, 3113, 315, 13241, 6, 578, 315, 84, 7201, 12013, 309, 2478, 422, 296, 84, 7201, 4278, 943, 14247, 273, 404, 2461, 273, 2461, 18, 5797, 1435, 365, 18, 81, 67, 4901, 18, 4148, 2668, 1829, 1776, 2461, 12403, 364, 738, 87, 261, 4615, 738, 87, 2506, 738, 261, 4308, 16, 2478, 3719, 498, 273, 261, 4308, 16, 2478, 13, 309, 498, 316, 365, 18, 81, 67, 2493, 30, 14429, 16, 290, 19065, 16, 7084, 273, 365, 18, 81, 67, 2493, 63, 856, 65, 2037, 273, 813, 18, 957, 1435, 309, 2037, 300, 14429, 411, 365, 6315, 4538, 471, 290, 19065, 1545, 943, 14247, 30, 365, 18, 81, 67, 4901, 18, 4148, 2668, 4308, 12403, 1392, 316, 1247, 6134, 327, 7084, 365, 18, 81, 67, 4901, 18, 4148, 2668, 4308, 12403, 486, 316, 1247, 16, 8554, 358, 2483, 6134, 7084, 273, 5378, 7965, 273, 5378, 309, 365, 18, 81, 67, 4256, 353, 599, 471, 486, 365, 18, 81, 67, 4256, 67, 8238, 828, 30, 365, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10627, 67, 9353, 12, 2890, 16, 2461, 16, 2478, 33, 7036, 16, 943, 14247, 33, 7036, 4672, 3536, 1333, 340, 279, 666, 434, 731, 358, 1375, 1896, 14247, 11, 434, 2461, 12403, 12123, 309, 2478, 353, 599, 30, 2478, 273, 296, 7201, 11, 309, 943, 14247, 353, 599, 30, 943, 14247, 273, 365, 6315, 1896, 14247, 309, 2478, 486, 316, 7707, 7201, 2187, 296, 13241, 2187, 296, 84, 7201, 11, 4672, 1002, 2068, 16, 296, 2996, 1410, 506, 1245, 434, 315, 7201, 3113, 315, 13241, 6, 578, 315, 84, 7201, 12013, 309, 2478, 422, 296, 84, 7201, 4278, 943, 14247, 273, 404, 2461, 273, 2461, 18, 5797, 1435, 365, 18, 81, 67, 4901, 18, 4148, 2668, 1829, 1776, 2 ]
return isntrList
return instrList
def AddInstruments(self, instrTuples): """ Adds one or more instruments to the Project, and ensures that they are all appended to the undo stack as a single atomic action. Parameters: instrTuples -- a list of tuples containing name and type that will be passed to AddInstrument(). Returns: A list of the added Instruments. """ undoAction = self.NewAtomicUndoAction() instrList = [] for name, type in instrTuples: instr = self.AddInstrument(name, type, _undoAction_=undoAction) instrList.append(instr) return isntrList
05cec31478852c794ce54bdd1c733e5f77c85d18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/05cec31478852c794ce54bdd1c733e5f77c85d18/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 19228, 87, 12, 2890, 16, 16170, 25813, 4672, 3536, 15605, 1245, 578, 1898, 29555, 358, 326, 5420, 16, 471, 11932, 716, 2898, 854, 777, 12317, 358, 326, 15436, 2110, 487, 279, 2202, 7960, 1301, 18, 225, 7012, 30, 16170, 25813, 1493, 279, 666, 434, 10384, 4191, 508, 471, 618, 716, 903, 506, 2275, 358, 1436, 19228, 7675, 225, 2860, 30, 432, 666, 434, 326, 3096, 25565, 87, 18, 3536, 225, 15436, 1803, 273, 365, 18, 1908, 23102, 31224, 1803, 1435, 16170, 682, 273, 5378, 364, 508, 16, 618, 316, 16170, 25813, 30, 16170, 273, 365, 18, 986, 19228, 12, 529, 16, 618, 16, 389, 31226, 1803, 67, 33, 31226, 1803, 13, 16170, 682, 18, 6923, 12, 267, 701, 13, 327, 16170, 682, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1436, 19228, 87, 12, 2890, 16, 16170, 25813, 4672, 3536, 15605, 1245, 578, 1898, 29555, 358, 326, 5420, 16, 471, 11932, 716, 2898, 854, 777, 12317, 358, 326, 15436, 2110, 487, 279, 2202, 7960, 1301, 18, 225, 7012, 30, 16170, 25813, 1493, 279, 666, 434, 10384, 4191, 508, 471, 618, 716, 903, 506, 2275, 358, 1436, 19228, 7675, 225, 2860, 30, 432, 666, 434, 326, 3096, 25565, 87, 18, 3536, 225, 15436, 1803, 273, 365, 18, 1908, 23102, 31224, 1803, 1435, 16170, 682, 273, 5378, 364, 508, 16, 618, 316, 16170, 25813, 30, 16170, 273, 365, 18, 986, 19228, 12, 529, 16, 618, 16, 389, 31226, 1803, 67, 33, 31226, 1803, 13, 16170, 682, 18, 6923, 12, 267, 2 ]
print("Materials in groups:",mat) print("Textures in groups:",tex) file.close()
file.close()
def load_msh(filename,orbiterpath,convert_coords): '''Read MSH file''' print("filepath=",filename,"orbiterpath=",orbiterpath) file=open(filename,"r") s=file.readline(); if s!='MSHX1\n': print("This file is not orbiter mesh: ",s) return else: print("Orbiter mesh format detected ") n_groups=0 #N of groups from header n_materials=0 #N of mats from header n_textures=0 #N of texs from header n_grp=0 #real N of groups mat=[] #mats in group (int) tex=[] #texs in group (int) groups=[] #groups description [label(str),mat(int),tex(int),nv(int),nt(int),obj(bpy.data.object)] materials=[] #materials description [name,[diff RGBA],[amb RGBA],[spec RGBAP],[emit RGBA]] textures=[] #[texture filename, texture name] while True: s=file.readline() if s=='': break; v=s.split() #print (v) #------Reading GROUPS section------------- if v[0]=="GROUPS": print("Reading groups:") n_groups=int(v[1]); n_mat=0; n_tex=0 #group material and texture label="" while n_grp<n_groups: s1=file.readline(); v1=s1.split() #if v1[0]=="NONORMAL": # print("NONORMAL!") if v1[0]=="LABEL": label=v1[1] if v1[0]=="MATERIAL": n_mat=int(v1[1]) #1..n if v1[0]=="TEXTURE": n_tex=int(v1[1]) #1..n #Reading geometry if v1[0]=="GEOM": vtx=[] tri=[] norm=[] uv=[] nv=int(v1[1]) nt=int(v1[2]) #print ("Group No:",n_grp," verts=",nv," tris=",nt) for n in range(nv): s2=file.readline(); v2=s2.split(); #print(v2); if convert_coords: vtx.append([-float(v2[0]),-float(v2[2]),float(v2[1])])# convert from left-handed coord system else: vtx.append([float(v2[0]),float(v2[1]),float(v2[2])]) #without conversion if len(v2)>5: #there are normals (not vtx+uvs only) #should I convert the normals? norm.append([float(v2[3]),float(v2[4]),float(v2[5])]) if len(v2)==8: #there are normals and uvs if convert_coords: #in Blender, (0,0) is the upper-left corner. #in Orbiter -- lower-left corner. So I must invert V axis uv.append([float(v2[6]),1.0-float(v2[7])]) else: uv.append([float(v2[6]),float(v2[7])]) elif len(v2)==5: #there are only uvs if convert_coords: uv.append([float(v2[3]),1.0-float(v2[4])]) else: uv.append([float(v2[3]),float(v2[4])]) for n in range(nt): #read triangles s2=file.readline(); v2=s2.split(); if convert_coords: tri.append([int(v2[0]),int(v2[2]),int(v2[1])]) #reverted triangle else: tri.append([int(v2[0]),int(v2[1]),int(v2[2])]) #non reverted triangle #print (vtx) #print(norm) n_grp=n_grp+1; if label=='': label="ORBGroup"+str(n_grp) obj=create_mesh(label,vtx,tri,norm,uv) if n_mat!=0: mat.append(n_mat) if n_tex!=0: tex.append(n_tex) groups.append([label,n_mat,n_tex,nv,nt,obj]) label="" #--------------Reading MATERIALS section----------------------- elif v[0]=="MATERIALS": n_materials=int(v[1]) print("-------Reading Materials section,nmats=",n_materials,"------------") #material names for i in range (n_materials): materials.append([file.readline().strip()]) #material properties for i in range (n_materials): file.readline(); # TODO: name checking for n in range(4): s1=file.readline() v1=s1.split() print("Reading material component,n=",n," comp=",v1) if (n==2)and(len(v1)==5): #Specular,5 components materials[i].append([float(v1[0]),float(v1[1]),float(v1[2]),float(v1[3]),float(v1[4])]) else: #Other, 4 components materials[i].append([float(v1[0]),float(v1[1]),float(v1[2]),float(v1[3])]) #---------------Reading TEXTURES section------------------ elif v[0]=="TEXTURES": n_textures=int(v[1]); for i in range(n_textures): textures.append([file.readline().strip(),"ORBTexture"+str(i)]) print(""); print("==========================Summary===========================================") print("Headers: groups=",n_groups," materials=",n_materials," textures=",n_textures) print("\nData:\nGroups:") print(groups,"\nReal No=",len(groups)) print("Materials:",materials) print("Textures:",textures) print("Materials in groups:",mat) print("Textures in groups:",tex) #file file.close() create_materials(groups,materials,textures,orbiterpath) return{"FINISHED"}
a742957b6ee3c17a1d5ddaf38dbe115cb0e00154 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10993/a742957b6ee3c17a1d5ddaf38dbe115cb0e00154/io_import_msh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 81, 674, 12, 3459, 16, 16640, 2165, 803, 16, 6283, 67, 9076, 4672, 9163, 1994, 490, 2664, 585, 26418, 1172, 2932, 10561, 1546, 16, 3459, 10837, 16640, 2165, 803, 1546, 16, 16640, 2165, 803, 13, 225, 585, 33, 3190, 12, 3459, 10837, 86, 7923, 272, 33, 768, 18, 896, 1369, 5621, 309, 272, 5, 2218, 49, 2664, 60, 21, 64, 82, 4278, 1172, 2932, 2503, 585, 353, 486, 16823, 2165, 6986, 30, 3104, 87, 13, 327, 469, 30, 1172, 2932, 1162, 70, 2165, 6986, 740, 8316, 9369, 290, 67, 4650, 33, 20, 225, 468, 50, 434, 3252, 628, 1446, 290, 67, 20542, 87, 33, 20, 282, 468, 50, 434, 312, 2323, 628, 1446, 290, 67, 955, 1823, 33, 20, 565, 468, 50, 434, 16573, 87, 628, 1446, 290, 67, 17532, 33, 20, 540, 468, 7688, 423, 434, 3252, 4834, 33, 8526, 1850, 468, 81, 2323, 316, 1041, 261, 474, 13, 16573, 33, 8526, 1850, 468, 21763, 87, 316, 1041, 261, 474, 13, 3252, 33, 8526, 4202, 468, 4650, 2477, 306, 1925, 12, 701, 3631, 7373, 12, 474, 3631, 21763, 12, 474, 3631, 16588, 12, 474, 3631, 496, 12, 474, 3631, 2603, 12, 70, 2074, 18, 892, 18, 1612, 25887, 31824, 33, 8526, 565, 468, 20542, 87, 2477, 306, 529, 16, 63, 5413, 23308, 6487, 63, 2536, 23308, 6487, 63, 2793, 11510, 2203, 6487, 63, 18356, 23308, 13563, 977, 1823, 33, 8526, 377, 468, 63, 955, 594, 1544, 16, 11428, 508, 65, 1323, 1053, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 81, 674, 12, 3459, 16, 16640, 2165, 803, 16, 6283, 67, 9076, 4672, 9163, 1994, 490, 2664, 585, 26418, 1172, 2932, 10561, 1546, 16, 3459, 10837, 16640, 2165, 803, 1546, 16, 16640, 2165, 803, 13, 225, 585, 33, 3190, 12, 3459, 10837, 86, 7923, 272, 33, 768, 18, 896, 1369, 5621, 309, 272, 5, 2218, 49, 2664, 60, 21, 64, 82, 4278, 1172, 2932, 2503, 585, 353, 486, 16823, 2165, 6986, 30, 3104, 87, 13, 327, 469, 30, 1172, 2932, 1162, 70, 2165, 6986, 740, 8316, 9369, 290, 67, 4650, 33, 20, 225, 468, 50, 434, 3252, 628, 1446, 290, 67, 20542, 87, 33, 20, 282, 468, 50, 434, 312, 2323, 628, 1446, 290, 67, 955, 2 ]
if debug_prints: print "got a crash but seh is intact, aborting"
logger.log_text("got a crash but seh is intact, aborting")
def exception(self, event): if event.is_first_chance(): event.continueStatus = win32.DBG_EXCEPTION_NOT_HANDLED if self.testing: if self.checkSnapshotPage(event): if debug_prints: print "updated snapshot" event.continueStatus = win32.DBG_CONTINUE elif hasattr(event, 'get_fault_type') and event.get_fault_type() == win32.EXCEPTION_EXECUTE_FAULT: # XXX FIXME # if the crash is a DEP fault I get stuck here # forever and no SEH is used at all! # more research is needed to see if it's indeed a # protection of the OS or a bug in my debugger :/ if debug_prints: print "dep fault, aborting" self.process.kill()
6d6079c7bcc0ba519b666a5d46e251aede9525d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/6d6079c7bcc0ba519b666a5d46e251aede9525d0/sehtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 12, 2890, 16, 871, 4672, 309, 871, 18, 291, 67, 3645, 67, 343, 1359, 13332, 871, 18, 17143, 1482, 273, 5657, 1578, 18, 2290, 43, 67, 12658, 67, 4400, 67, 12346, 6687, 309, 365, 18, 3813, 310, 30, 309, 365, 18, 1893, 4568, 1964, 12, 2575, 4672, 309, 1198, 67, 1188, 87, 30, 1172, 315, 7007, 4439, 6, 871, 18, 17143, 1482, 273, 5657, 1578, 18, 2290, 43, 67, 6067, 26725, 1327, 3859, 12, 2575, 16, 296, 588, 67, 643, 67, 723, 6134, 471, 871, 18, 588, 67, 643, 67, 723, 1435, 422, 5657, 1578, 18, 12658, 67, 15271, 9099, 67, 2636, 30, 468, 11329, 9852, 468, 309, 326, 17053, 353, 279, 2030, 52, 12530, 467, 336, 384, 9031, 2674, 468, 21238, 471, 1158, 3174, 44, 353, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1520, 12, 2890, 16, 871, 4672, 309, 871, 18, 291, 67, 3645, 67, 343, 1359, 13332, 871, 18, 17143, 1482, 273, 5657, 1578, 18, 2290, 43, 67, 12658, 67, 4400, 67, 12346, 6687, 309, 365, 18, 3813, 310, 30, 309, 365, 18, 1893, 4568, 1964, 12, 2575, 4672, 309, 1198, 67, 1188, 87, 30, 1172, 315, 7007, 4439, 6, 871, 18, 17143, 1482, 273, 5657, 1578, 18, 2290, 43, 67, 6067, 26725, 1327, 3859, 12, 2575, 16, 296, 588, 67, 643, 67, 723, 6134, 471, 871, 18, 588, 67, 643, 67, 723, 1435, 422, 5657, 1578, 18, 12658, 67, 15271, 9099, 67, 2636, 30, 468, 11329, 9852, 468, 309, 326, 17053, 353, 279, 2030, 52, 12530, 467, 336, 2 ]
treebuilder = treebuilders.simpletree
treebuilder = treebuilders.simpletree.TreeBuilder
def parse(): optParser = getOptParser() opts,args = optParser.parse_args() try: f = args[-1] except IndexError: print "No filename provided. Use -h for help" sys.exit(1) if opts.treebuilder is not None: try: #This isn't a great way to do this exec("import treebuilders.%s")%opts.treebuilder.split(".")[0] treebuilder = eval("treebuilders.%s"%opts.treebuilder) except NameError: print "Treebuilder %s not found"%opts.treebuilder raise except: treebuilder = treebuilders.simpletree.TreeBuilder else: import treebuilders.simpletree treebuilder = treebuilders.simpletree p = parser.HTMLParser(tree=treebuilder) if opts.profile: import hotshot import hotshot.stats prof = hotshot.Profile('stats.prof') prof.runcall(p.parse, f, False) prof.close() # XXX - We should use a temp file here stats = hotshot.stats.load('stats.prof') stats.strip_dirs() stats.sort_stats('time') stats.print_stats() elif opts.time: import time t0 = time.time() document = p.parse(f) t1 = time.time() print p.tree.testSerializer(document) if opts.error: print "\nParse errors:\n" + "\n".join(p.errors) t2 = time.time() print "\n\nRun took: %fs (plus %fs to print the output)"%(t1-t0, t2-t1) else: document = p.parse(f) print document print p.tree.testSerializer(document) if opts.error: print "\nParse errors:\n" + "\n".join(p.errors)
b99fff6c5e538187360d1c1bec19f4147addb1ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/b99fff6c5e538187360d1c1bec19f4147addb1ed/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 13332, 2153, 2678, 273, 28959, 2678, 1435, 1500, 16, 1968, 273, 2153, 2678, 18, 2670, 67, 1968, 1435, 225, 775, 30, 284, 273, 833, 18919, 21, 65, 1335, 10195, 30, 1172, 315, 2279, 1544, 2112, 18, 2672, 300, 76, 364, 2809, 6, 2589, 18, 8593, 12, 21, 13, 309, 1500, 18, 3413, 9574, 353, 486, 599, 30, 775, 30, 468, 2503, 5177, 1404, 279, 18825, 4031, 358, 741, 333, 1196, 2932, 5666, 2151, 3510, 414, 7866, 87, 7923, 9, 4952, 18, 3413, 9574, 18, 4939, 2932, 1199, 25146, 20, 65, 2151, 9574, 273, 5302, 2932, 3413, 3510, 414, 7866, 87, 28385, 4952, 18, 3413, 9574, 13, 1335, 25473, 30, 1172, 315, 2471, 9574, 738, 87, 486, 1392, 28385, 4952, 18, 3413, 9574, 1002, 1335, 30, 2151, 9574, 273, 2151, 3510, 414, 18, 9812, 1469, 992, 18, 25060, 469, 30, 1930, 2151, 3510, 414, 18, 9812, 1469, 992, 2151, 9574, 273, 2151, 3510, 414, 18, 9812, 1469, 992, 18, 25060, 225, 293, 273, 2082, 18, 4870, 2678, 12, 3413, 33, 3413, 9574, 13, 225, 309, 1500, 18, 5040, 30, 1930, 12811, 2415, 1930, 12811, 2415, 18, 5296, 9214, 273, 12811, 2415, 18, 4029, 2668, 5296, 18, 16121, 6134, 9214, 18, 86, 551, 454, 12, 84, 18, 2670, 16, 284, 16, 1083, 13, 9214, 18, 4412, 1435, 468, 11329, 300, 1660, 1410, 999, 279, 1906, 585, 2674, 3177, 273, 12811, 2415, 18, 5296, 18, 945, 2668, 5296, 18, 16121, 6134, 3177, 18, 6406, 67, 8291, 1435, 3177, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 13332, 2153, 2678, 273, 28959, 2678, 1435, 1500, 16, 1968, 273, 2153, 2678, 18, 2670, 67, 1968, 1435, 225, 775, 30, 284, 273, 833, 18919, 21, 65, 1335, 10195, 30, 1172, 315, 2279, 1544, 2112, 18, 2672, 300, 76, 364, 2809, 6, 2589, 18, 8593, 12, 21, 13, 309, 1500, 18, 3413, 9574, 353, 486, 599, 30, 775, 30, 468, 2503, 5177, 1404, 279, 18825, 4031, 358, 741, 333, 1196, 2932, 5666, 2151, 3510, 414, 7866, 87, 7923, 9, 4952, 18, 3413, 9574, 18, 4939, 2932, 1199, 25146, 20, 65, 2151, 9574, 273, 5302, 2932, 3413, 3510, 414, 7866, 87, 28385, 4952, 18, 3413, 9574, 13, 1335, 25473, 30, 1172, 315, 2471, 9574, 738, 87, 486, 1392, 2 ]
if EasyDialogs.AskYesNoCancel('Proceed with removing old aliases?') <= 0: sys.exit(0) LibFiles = [] allfiles = os.listdir(':') for f in allfiles: if f[-4:] == '.slb': finfo = macfs.FSSpec(f).GetFInfo() if finfo.Flags & 0x8000: os.unlink(f) else: LibFiles.append(f)
def main(): # Ask the user for the plugins directory dir, ok = macfs.GetDirectory() if not ok: sys.exit(0) os.chdir(dir.as_pathname()) # Remove old .slb aliases and collect a list of .slb files if EasyDialogs.AskYesNoCancel('Proceed with removing old aliases?') <= 0: sys.exit(0) LibFiles = [] allfiles = os.listdir(':') for f in allfiles: if f[-4:] == '.slb': finfo = macfs.FSSpec(f).GetFInfo() if finfo.Flags & 0x8000: os.unlink(f) else: LibFiles.append(f) print LibFiles # Create the new aliases. if EasyDialogs.AskYesNoCancel('Proceed with creating new ones?') <= 0: sys.exit(0) for dst, src in goals: if src in LibFiles: mkalias(src, dst) else: EasyDialogs.Message(dst+' not created: '+src+' not found') EasyDialogs.Message('All done!')
964b9fd985c3eb26a65b0c9dce5284148674de08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/964b9fd985c3eb26a65b0c9dce5284148674de08/fixfiletypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 25747, 326, 729, 364, 326, 4799, 1867, 1577, 16, 1529, 273, 5318, 2556, 18, 967, 2853, 1435, 309, 486, 1529, 30, 2589, 18, 8593, 12, 20, 13, 1140, 18, 343, 1214, 12, 1214, 18, 345, 67, 28336, 10756, 225, 468, 3581, 1592, 263, 2069, 70, 6900, 471, 3274, 279, 666, 434, 263, 2069, 70, 1390, 1172, 10560, 2697, 468, 1788, 326, 394, 6900, 18, 309, 29442, 11885, 14072, 18, 23663, 22352, 2279, 6691, 2668, 626, 5288, 598, 4979, 394, 5945, 4899, 13, 1648, 374, 30, 2589, 18, 8593, 12, 20, 13, 364, 3046, 16, 1705, 316, 1960, 1031, 30, 309, 1705, 316, 10560, 2697, 30, 5028, 4930, 12, 4816, 16, 3046, 13, 469, 30, 29442, 11885, 14072, 18, 1079, 12, 11057, 6797, 486, 2522, 30, 15126, 4816, 6797, 486, 1392, 6134, 225, 29442, 11885, 14072, 18, 1079, 2668, 1595, 2731, 5124, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13332, 468, 25747, 326, 729, 364, 326, 4799, 1867, 1577, 16, 1529, 273, 5318, 2556, 18, 967, 2853, 1435, 309, 486, 1529, 30, 2589, 18, 8593, 12, 20, 13, 1140, 18, 343, 1214, 12, 1214, 18, 345, 67, 28336, 10756, 225, 468, 3581, 1592, 263, 2069, 70, 6900, 471, 3274, 279, 666, 434, 263, 2069, 70, 1390, 1172, 10560, 2697, 468, 1788, 326, 394, 6900, 18, 309, 29442, 11885, 14072, 18, 23663, 22352, 2279, 6691, 2668, 626, 5288, 598, 4979, 394, 5945, 4899, 13, 1648, 374, 30, 2589, 18, 8593, 12, 20, 13, 364, 3046, 16, 1705, 316, 1960, 1031, 30, 309, 1705, 316, 10560, 2697, 30, 5028, 4930, 12, 4816, 16, 3046, 13, 469, 30, 29442, 2 ]
perm_delete = fields.Boolean('Delete Permission')
perm_delete = fields.Boolean('Delete Access')
def read(self, cursor, user, ids, fields_names=None, context=None): translation_obj = self.pool.get('ir.translation')
a71eceeb3a70daf8b424e4d9a10528df0469e81f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/a71eceeb3a70daf8b424e4d9a10528df0469e81f/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 1466, 67, 1973, 33, 7036, 16, 819, 33, 7036, 4672, 4794, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 10173, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 855, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 1466, 67, 1973, 33, 7036, 16, 819, 33, 7036, 4672, 4794, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 10173, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if isinstance(self.root, Expr.Negate): return Expr(self.root.expr) if isinstance(self.root, Expr.Number): return Expr(-self.root.value) return Expr(Expr.Negate(self.root))
code = self.code if len(code) == 1: return Expr(-code[0]) if code[-1] is _EXPRNEG: return Expr(code[:-1]) return Expr(code + [_EXPRNEG])
def __neg__(self): if isinstance(self.root, Expr.Negate): return Expr(self.root.expr) if isinstance(self.root, Expr.Number): return Expr(-self.root.value) return Expr(Expr.Negate(self.root))
1dd24e33ec6c36d3d5a36f2c212e6968864d27b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/1dd24e33ec6c36d3d5a36f2c212e6968864d27b3/esotope-bfc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14518, 972, 12, 2890, 4672, 309, 1549, 12, 2890, 18, 3085, 16, 8074, 18, 50, 4784, 4672, 327, 8074, 12, 2890, 18, 3085, 18, 8638, 13, 309, 1549, 12, 2890, 18, 3085, 16, 8074, 18, 1854, 4672, 327, 8074, 19236, 2890, 18, 3085, 18, 1132, 13, 327, 8074, 12, 4742, 18, 50, 4784, 12, 2890, 18, 3085, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 50, 4784, 4672, 327, 8074, 12, 2890, 18, 3085, 18, 8638, 13, 309, 1549, 12, 2890, 18, 3085, 16, 8074, 18, 1854, 4672, 327, 8074, 19236, 2890, 18, 3085, 18, 1132, 13, 327, 8074, 12, 4742, 18, 50, 4784, 12, 2890, 18, 3085, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
timeout = job.timeout
def write_job_file(self, job): """ Writes out the job file to be executed to disk.
8232b2d731d8950c9b50e56799c9a8fef29dca71 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/8232b2d731d8950c9b50e56799c9a8fef29dca71/dsage_worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4688, 67, 768, 12, 2890, 16, 1719, 4672, 3536, 30053, 596, 326, 1719, 585, 358, 506, 7120, 358, 4234, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 22398, 316, 326, 981, 30, 1652, 1045, 67, 4688, 67, 768, 12, 2890, 16, 1719, 4672, 3536, 30053, 596, 326, 1719, 585, 358, 506, 7120, 358, 4234, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return http.Response(stream = message("Please request a specific worksheet"))
return HTMLResponse(stream = message("Please request a specific worksheet"))
def render(self, ctx): return http.Response(stream = message("Please request a specific worksheet"))
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 327, 1062, 18, 1064, 12, 3256, 273, 883, 2932, 8496, 590, 279, 2923, 13622, 6, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 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, 1743, 12, 2890, 16, 1103, 4672, 327, 1062, 18, 1064, 12, 3256, 273, 883, 2932, 8496, 590, 279, 2923, 13622, 6, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.list[slotidx] = (_("init module"), 2, slot)
self.list[slotidx] = (_("init module"), ConfigDummy(), 2, slot)
def updateState(self, slot): state = eDVBCI_UI.getInstance().getState(slot) self.state[slot] = state
eb2804ab0205fd9204cd745feb840fdb4bc56216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/eb2804ab0205fd9204cd745feb840fdb4bc56216/Ci.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1119, 12, 2890, 16, 4694, 4672, 919, 273, 425, 30199, 38, 7266, 67, 5370, 18, 588, 1442, 7675, 588, 1119, 12, 14194, 13, 365, 18, 2019, 63, 14194, 65, 273, 919, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1119, 12, 2890, 16, 4694, 4672, 919, 273, 425, 30199, 38, 7266, 67, 5370, 18, 588, 1442, 7675, 588, 1119, 12, 14194, 13, 365, 18, 2019, 63, 14194, 65, 273, 919, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, allow_none):
def __init__(self, allow_none, encoding):
def __init__(self, allow_none): self.funcs = {} self.instance = None self.allow_none = allow_none
2234f2d789905def1599dba588da16bbe4b99357 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2234f2d789905def1599dba588da16bbe4b99357/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1699, 67, 6102, 16, 2688, 4672, 365, 18, 17728, 273, 2618, 365, 18, 1336, 273, 599, 365, 18, 5965, 67, 6102, 273, 1699, 67, 6102, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1699, 67, 6102, 16, 2688, 4672, 365, 18, 17728, 273, 2618, 365, 18, 1336, 273, 599, 365, 18, 5965, 67, 6102, 273, 1699, 67, 6102, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.doingCmd = None self.manGuideScriptRunner = None
self.doingCmd = None
def __init__(self, master, actor,
3840494bc0492f518ca35b58e6fb1e00be7f32ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/3840494bc0492f518ca35b58e6fb1e00be7f32ab/GuideWdg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 8327, 16, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4171, 16, 8327, 16, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
tx._canvas.line(t_off+x1, ys, t_off+x2, ys)
tx._canvas.line(x1, ys, x2, ys)
def _do_post_text(t_off, tx): xs = tx.XtraState leading = xs.style.leading autoLeading = xs.autoLeading f = xs.f if autoLeading=='max': leading = max(leading,1.2*f.fontSize) elif autoLeading=='min': leading = 1.2*f.fontSize ff = 0.125*f.fontSize y0 = xs.cur_y y = y0 - ff csc = None for x1,x2,c in xs.underlines: if c!=csc: tx._canvas.setStrokeColor(c) csc = c tx._canvas.line(t_off+x1, y, t_off+x2, y) xs.underlines = [] xs.underline=0 xs.underlineColor=None ys = y0 + 2*ff for x1,x2,c in xs.strikes: if c!=csc: tx._canvas.setStrokeColor(c) csc = c tx._canvas.line(t_off+x1, ys, t_off+x2, ys) xs.strikes = [] xs.strike=0 xs.strikeColor=None yl = y + leading for x1,x2,link,c in xs.links: if platypus_link_underline: if c!=csc: tx._canvas.setStrokeColor(c) csc = c tx._canvas.line(t_off+x1, y, t_off+x2, y) _doLink(tx, link, (t_off+x1, y, t_off+x2, yl)) xs.links = [] xs.link=None xs.linkColor=None xs.cur_y -= leading
ae97b90f6a178f0d7566cbd8acc91dc0dd0700c1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7053/ae97b90f6a178f0d7566cbd8acc91dc0dd0700c1/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2767, 67, 955, 12, 88, 67, 3674, 16, 2229, 4672, 9280, 273, 2229, 18, 60, 2033, 1119, 7676, 273, 9280, 18, 4060, 18, 27200, 3656, 19112, 273, 9280, 18, 6079, 19112, 284, 273, 9280, 18, 74, 309, 3656, 19112, 18920, 1896, 4278, 7676, 273, 943, 12, 27200, 16, 21, 18, 22, 14, 74, 18, 5776, 1225, 13, 1327, 3656, 19112, 18920, 1154, 4278, 7676, 273, 404, 18, 22, 14, 74, 18, 5776, 1225, 6875, 273, 374, 18, 18473, 14, 74, 18, 5776, 1225, 677, 20, 273, 9280, 18, 1397, 67, 93, 677, 273, 677, 20, 300, 6875, 276, 1017, 273, 599, 364, 619, 21, 16, 92, 22, 16, 71, 316, 9280, 18, 9341, 3548, 30, 309, 276, 5, 33, 71, 1017, 30, 2229, 6315, 15424, 18, 542, 14602, 2957, 12, 71, 13, 276, 1017, 273, 276, 2229, 6315, 15424, 18, 1369, 12, 88, 67, 3674, 15, 92, 21, 16, 677, 16, 268, 67, 3674, 15, 92, 22, 16, 677, 13, 9280, 18, 9341, 3548, 273, 5378, 9280, 18, 9341, 1369, 33, 20, 9280, 18, 9341, 1369, 2957, 33, 7036, 225, 16036, 273, 677, 20, 397, 576, 14, 1403, 364, 619, 21, 16, 92, 22, 16, 71, 316, 9280, 18, 701, 25235, 30, 309, 276, 5, 33, 71, 1017, 30, 2229, 6315, 15424, 18, 542, 14602, 2957, 12, 71, 13, 276, 1017, 273, 276, 2229, 6315, 15424, 18, 1369, 12, 92, 21, 16, 16036, 16, 619, 22, 16, 16036, 13, 9280, 18, 701, 25235, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2896, 67, 2767, 67, 955, 12, 88, 67, 3674, 16, 2229, 4672, 9280, 273, 2229, 18, 60, 2033, 1119, 7676, 273, 9280, 18, 4060, 18, 27200, 3656, 19112, 273, 9280, 18, 6079, 19112, 284, 273, 9280, 18, 74, 309, 3656, 19112, 18920, 1896, 4278, 7676, 273, 943, 12, 27200, 16, 21, 18, 22, 14, 74, 18, 5776, 1225, 13, 1327, 3656, 19112, 18920, 1154, 4278, 7676, 273, 404, 18, 22, 14, 74, 18, 5776, 1225, 6875, 273, 374, 18, 18473, 14, 74, 18, 5776, 1225, 677, 20, 273, 9280, 18, 1397, 67, 93, 677, 273, 677, 20, 300, 6875, 276, 1017, 273, 599, 364, 619, 21, 16, 92, 22, 16, 71, 316, 9280, 18, 9341, 3548, 30, 2 ]
stop += rcs*nchunk2
stop += rchunksize*nchunk2
def searchLastRow(self, item): # Variable initialization item1, item2 = item bebounds = self.bebounds b0, b1 = bebounds[0], bebounds[-1] bounds = bebounds[1:-1] itemsize = self.dtype.itemsize sortedLRcache = self.sortedLRcache hi = self.nelementsSLR # maximum number of elements rcs = self.chunksize // self.reduction
cac7fa90baf2dcde2a5f445c16751dcb191a15ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12687/cac7fa90baf2dcde2a5f445c16751dcb191a15ae/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 3024, 1999, 12, 2890, 16, 761, 4672, 468, 7110, 10313, 761, 21, 16, 761, 22, 273, 761, 506, 10576, 273, 365, 18, 2196, 10576, 324, 20, 16, 324, 21, 273, 506, 10576, 63, 20, 6487, 506, 10576, 18919, 21, 65, 4972, 273, 506, 10576, 63, 21, 30, 17, 21, 65, 761, 1467, 273, 365, 18, 8972, 18, 1726, 1467, 3115, 16018, 2493, 273, 365, 18, 10350, 16018, 2493, 10118, 273, 365, 18, 82, 6274, 4559, 54, 9079, 468, 4207, 1300, 434, 2186, 436, 2143, 273, 365, 18, 6551, 1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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1623, 3024, 1999, 12, 2890, 16, 761, 4672, 468, 7110, 10313, 761, 21, 16, 761, 22, 273, 761, 506, 10576, 273, 365, 18, 2196, 10576, 324, 20, 16, 324, 21, 273, 506, 10576, 63, 20, 6487, 506, 10576, 18919, 21, 65, 4972, 273, 506, 10576, 63, 21, 30, 17, 21, 65, 761, 1467, 273, 365, 18, 8972, 18, 1726, 1467, 3115, 16018, 2493, 273, 365, 18, 10350, 16018, 2493, 10118, 273, 365, 18, 82, 6274, 4559, 54, 9079, 468, 4207, 1300, 434, 2186, 436, 2143, 273, 365, 18, 6551, 1467, 368, 365, 18, 1118, 4062, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise
def yumrepo(self): if not self._yumrepo: self.yumbase.repos.disableRepo('*') self.yumbase.add_enable_repo('pkgdb-%s' % self.repo.shortname, ['%s%s' % (self.repo.mirror, self.repo.url)]) self._yumrepo = self.yumbase.repos.getRepo('pkgdb-%s' % self.repo.shortname) # populate sack try: self.yumbase._getSacks(thisrepo=self._yumrepo.id) except Exception, e: raise raise PkgImportError('Repo %s failed to read! (%s)' % (self._yumrepo, e))
a69d8febd41eaf6574eeafd48fb0b9fda70aaba2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9953/a69d8febd41eaf6574eeafd48fb0b9fda70aaba2/packagebuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 677, 379, 7422, 12, 2890, 4672, 309, 486, 365, 6315, 93, 379, 7422, 30, 365, 18, 93, 379, 1969, 18, 15564, 18, 8394, 8791, 2668, 4035, 13, 365, 18, 93, 379, 1969, 18, 1289, 67, 7589, 67, 7422, 2668, 10657, 1966, 6456, 87, 11, 738, 365, 18, 7422, 18, 28650, 16, 10228, 9, 87, 9, 87, 11, 738, 261, 2890, 18, 7422, 18, 27197, 16, 365, 18, 7422, 18, 718, 13, 5717, 365, 6315, 93, 379, 7422, 273, 365, 18, 93, 379, 1969, 18, 15564, 18, 588, 8791, 2668, 10657, 1966, 6456, 87, 11, 738, 365, 18, 7422, 18, 28650, 13, 225, 468, 6490, 272, 484, 775, 30, 365, 18, 93, 379, 1969, 6315, 588, 55, 22098, 12, 2211, 7422, 33, 2890, 6315, 93, 379, 7422, 18, 350, 13, 1335, 1185, 16, 425, 30, 453, 14931, 5010, 668, 2668, 8791, 738, 87, 2535, 358, 855, 5, 6142, 87, 2506, 738, 261, 2890, 6315, 93, 379, 7422, 16, 425, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 677, 379, 7422, 12, 2890, 4672, 309, 486, 365, 6315, 93, 379, 7422, 30, 365, 18, 93, 379, 1969, 18, 15564, 18, 8394, 8791, 2668, 4035, 13, 365, 18, 93, 379, 1969, 18, 1289, 67, 7589, 67, 7422, 2668, 10657, 1966, 6456, 87, 11, 738, 365, 18, 7422, 18, 28650, 16, 10228, 9, 87, 9, 87, 11, 738, 261, 2890, 18, 7422, 18, 27197, 16, 365, 18, 7422, 18, 718, 13, 5717, 365, 6315, 93, 379, 7422, 273, 365, 18, 93, 379, 1969, 18, 15564, 18, 588, 8791, 2668, 10657, 1966, 6456, 87, 11, 738, 365, 18, 7422, 18, 28650, 13, 225, 468, 6490, 272, 484, 775, 30, 365, 18, 93, 379, 1969, 6315, 588, 55, 22098, 12, 2 ]
mapper.ImmediateModeRendering()
mapper.ImmediateModeRenderingOn()
def AddNewActor(self, pubsub_evt): """ Create surface actor, save into project and send it to viewer. """ surface_data = pubsub_evt.data
126beb40b82e95beafd08ec6f018e851103caee2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/126beb40b82e95beafd08ec6f018e851103caee2/surface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1908, 17876, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 3536, 1788, 9034, 8327, 16, 1923, 1368, 1984, 471, 1366, 518, 358, 14157, 18, 3536, 9034, 67, 892, 273, 23288, 67, 73, 11734, 18, 892, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1436, 1908, 17876, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 3536, 1788, 9034, 8327, 16, 1923, 1368, 1984, 471, 1366, 518, 358, 14157, 18, 3536, 9034, 67, 892, 273, 23288, 67, 73, 11734, 18, 892, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
timestamp = os.path.getctime(filepath) if timestamp > self.conf.mdtimestamp: self.conf.mdtimestamp = timestamp
rxml = filepath + '/repomd.xml' if os.path.exists(rxml): timestamp = os.path.getctime(rxml) if timestamp > self.conf.mdtimestamp: self.conf.mdtimestamp = timestamp
def _test_setup_dirs(self): # start the sanity/stupidity checks for mydir in self.conf.directories: if os.path.isabs(mydir): testdir = mydir else: if mydir.startswith('../'): testdir = os.path.realpath(mydir) else: testdir = os.path.join(self.conf.basedir, mydir)
6e6f8febc9042b5a95e20e5d7813a62a2ca30289 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9557/6e6f8febc9042b5a95e20e5d7813a62a2ca30289/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 8401, 67, 8291, 12, 2890, 4672, 468, 787, 326, 16267, 19, 334, 416, 24237, 4271, 364, 3399, 1214, 316, 365, 18, 3923, 18, 15121, 30, 309, 1140, 18, 803, 18, 291, 5113, 12, 4811, 1214, 4672, 1842, 1214, 273, 3399, 1214, 469, 30, 309, 3399, 1214, 18, 17514, 1918, 2668, 838, 2473, 4672, 1842, 1214, 273, 1140, 18, 803, 18, 7688, 803, 12, 4811, 1214, 13, 469, 30, 1842, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 31722, 16, 3399, 1214, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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3813, 67, 8401, 67, 8291, 12, 2890, 4672, 468, 787, 326, 16267, 19, 334, 416, 24237, 4271, 364, 3399, 1214, 316, 365, 18, 3923, 18, 15121, 30, 309, 1140, 18, 803, 18, 291, 5113, 12, 4811, 1214, 4672, 1842, 1214, 273, 3399, 1214, 469, 30, 309, 3399, 1214, 18, 17514, 1918, 2668, 838, 2473, 4672, 1842, 1214, 273, 1140, 18, 803, 18, 7688, 803, 12, 4811, 1214, 13, 469, 30, 1842, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 31722, 16, 3399, 1214, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(repr(self.faultCode), repr(self.faultString))
(self.faultCode, repr(self.faultString))
def __repr__(self): return ( "<Fault %s: %s>" % (repr(self.faultCode), repr(self.faultString)) )
ec00ab8f6244c6bfe9524cd649c63e5bcb7f4750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ec00ab8f6244c6bfe9524cd649c63e5bcb7f4750/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 261, 3532, 7083, 738, 87, 30, 738, 87, 2984, 738, 261, 2890, 18, 643, 1085, 16, 8480, 12, 2890, 18, 643, 780, 3719, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 261, 3532, 7083, 738, 87, 30, 738, 87, 2984, 738, 261, 2890, 18, 643, 1085, 16, 8480, 12, 2890, 18, 643, 780, 3719, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert not filter(lambda x: isinstance(x,LCActionFlowable),V),'LCActionFlowables not allowed in sublists'
assert not [x for x in V if isinstance(x,LCActionFlowable)],'LCActionFlowables not allowed in sublists'
def _flowableSublist(V): "if it isn't a list or tuple, wrap it in a list" if type(V) not in (ListType, TupleType): V = V is not None and [V] or [] from doctemplate import LCActionFlowable assert not filter(lambda x: isinstance(x,LCActionFlowable),V),'LCActionFlowables not allowed in sublists' return V
af20f9e0bc90c57f1430ca9650389ab64c8ea9f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/af20f9e0bc90c57f1430ca9650389ab64c8ea9f1/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2426, 429, 55, 440, 376, 12, 58, 4672, 315, 430, 518, 5177, 1404, 279, 666, 578, 3193, 16, 2193, 518, 316, 279, 666, 6, 309, 618, 12, 58, 13, 486, 316, 261, 19366, 16, 7257, 559, 4672, 776, 273, 776, 353, 486, 599, 471, 306, 58, 65, 578, 5378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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2426, 429, 55, 440, 376, 12, 58, 4672, 315, 430, 518, 5177, 1404, 279, 666, 578, 3193, 16, 2193, 518, 316, 279, 666, 6, 309, 618, 12, 58, 13, 486, 316, 261, 19366, 16, 7257, 559, 4672, 776, 273, 776, 353, 486, 599, 471, 306, 58, 65, 578, 5378, 628, 31263, 29761, 1930, 27727, 1803, 5249, 429, 1815, 486, 306, 92, 364, 619, 316, 776, 309, 1549, 12, 92, 16, 13394, 1803, 5249, 429, 13, 6487, 11, 13394, 1803, 5249, 1538, 486, 2935, 316, 17809, 1486, 11, 327, 776, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
s.quit() if debug: smtplib.stderr = oldstderr
try: s.quit() if debug: smtplib.stderr = oldstderr except: pass
def _email_send(message, openobject_id=None, debug=False): """Low-level method to send directly a Message through the configured smtp server. :param message: an email.message.Message to send :param debug: True if messages should be output to stderr before being sent, and smtplib.SMTP put into debug mode. :return: True if the mail was delivered successfully to the smtp, else False (+ exception logged) """ if openobject_id: message['Message-Id'] = "<%s-openobject-%s@%s>" % (time.time(), openobject_id, socket.gethostname()) try: oldstderr = smtplib.stderr s = smtplib.SMTP() try: # in case of debug, the messages are printed to stderr. if debug: smtplib.stderr = WriteToLogger() s.set_debuglevel(int(bool(debug))) # 0 or 1 s.connect(smtp_server, config['smtp_port']) if ssl: s.ehlo() s.starttls() s.ehlo() if config['smtp_user'] or config['smtp_password']: s.login(config['smtp_user'], config['smtp_password']) s.sendmail(email_from, flatten([email_to, email_cc, email_bcc]), message.as_string()) finally: s.quit() if debug: smtplib.stderr = oldstderr except Exception, e: _logger.error('could not deliver email', exc_info=True) return False return True
478ab1c86d3d35f3b5c2e40276f5574c62d56543 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/478ab1c86d3d35f3b5c2e40276f5574c62d56543/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3652, 67, 4661, 12, 2150, 16, 1696, 1612, 67, 350, 33, 7036, 16, 1198, 33, 8381, 4672, 3536, 10520, 17, 2815, 707, 358, 1366, 5122, 279, 2350, 3059, 326, 4351, 17660, 1438, 18, 294, 891, 883, 30, 392, 2699, 18, 2150, 18, 1079, 358, 1366, 294, 891, 1198, 30, 1053, 309, 2743, 1410, 506, 876, 358, 4514, 1865, 3832, 3271, 16, 471, 272, 1010, 6673, 18, 55, 14636, 1378, 1368, 1198, 1965, 18, 294, 2463, 30, 1053, 309, 326, 4791, 1703, 22112, 4985, 358, 326, 17660, 16, 469, 1083, 261, 15, 1520, 7545, 13, 3536, 309, 1696, 1612, 67, 350, 30, 883, 3292, 1079, 17, 548, 3546, 273, 3532, 9, 87, 17, 3190, 1612, 6456, 87, 36, 9, 87, 2984, 738, 261, 957, 18, 957, 9334, 1696, 1612, 67, 350, 16, 2987, 18, 75, 546, 669, 529, 10756, 225, 775, 30, 1592, 11241, 273, 272, 1010, 6673, 18, 11241, 272, 273, 272, 1010, 6673, 18, 55, 14636, 1435, 775, 30, 468, 316, 648, 434, 1198, 16, 326, 2743, 854, 14099, 358, 4514, 18, 309, 1198, 30, 272, 1010, 6673, 18, 11241, 273, 21991, 3328, 1435, 225, 272, 18, 542, 67, 4148, 2815, 12, 474, 12, 6430, 12, 4148, 20349, 225, 468, 374, 578, 404, 272, 18, 3612, 12, 20278, 67, 3567, 16, 642, 3292, 20278, 67, 655, 19486, 309, 5832, 30, 272, 18, 73, 76, 383, 1435, 272, 18, 1937, 17116, 1435, 272, 18, 73, 76, 383, 1435, 225, 309, 642, 3292, 20278, 67, 1355, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3652, 67, 4661, 12, 2150, 16, 1696, 1612, 67, 350, 33, 7036, 16, 1198, 33, 8381, 4672, 3536, 10520, 17, 2815, 707, 358, 1366, 5122, 279, 2350, 3059, 326, 4351, 17660, 1438, 18, 294, 891, 883, 30, 392, 2699, 18, 2150, 18, 1079, 358, 1366, 294, 891, 1198, 30, 1053, 309, 2743, 1410, 506, 876, 358, 4514, 1865, 3832, 3271, 16, 471, 272, 1010, 6673, 18, 55, 14636, 1378, 1368, 1198, 1965, 18, 294, 2463, 30, 1053, 309, 326, 4791, 1703, 22112, 4985, 358, 326, 17660, 16, 469, 1083, 261, 15, 1520, 7545, 13, 3536, 309, 1696, 1612, 67, 350, 30, 883, 3292, 1079, 17, 548, 3546, 273, 3532, 9, 87, 17, 3190, 1612, 6456, 87, 36, 2 ]
cp.set("gip_tests", "enable_glite", "False")
cp.set("gip_tests", "results_dir", results_dir)
def interpolateConfig(cp): if cp_get(cp, "gip_tests", "site_names", "") == "": cp.set("gip_tests", "site_names", cp_get(cp, "site", "name", "")) if cp_get(cp, "gip_tests", "site_dns", "") == "": host_parts = cp_get(cp, "ce", "name", "").split('.') site_dns = "%s.%s" % (host_parts[:-2], host_parts[:-1]) cp.set("gip_tests", "site_dns", site_dns) if cp_get(cp, "gip_tests", "required_site", "") == "": cp.set("gip_tests", "required_sites", cp_get(cp, "gip_tests", "site_names", "")) grid = cp_get(cp, "site", "group", "") cp.set("gip_tests", "bdii_port", "2170") cp.set("gip_tests", "egee_port", "2170") cp.set("gip_tests", "interop_url", "http://oim.grid.iu.edu/publisher/get_osg_interop_bdii_ldap_list.php?grid=%s&format=html" % grid) if "ITB" in grid: cp.set("bdii", "endpoint", "ldap://is-itb.grid.iu.edu:2170") cp.set("gip_tests", "bdii_addr", "is-itb.grid.iu.edu") cp.set("gip_tests", "egee_bdii", "pps-bdii.cern.ch") cp.set("gip_tests", "egee_bdii_conf_url", "http://egee-pre-production-service.web.cern.ch/egee-pre-production-service/bdii/pps-all-sites.conf") web_server = "http://is-itb.grid.iu.edu" else: cp.set("gip_tests", "bdii_addr", "is.grid.iu.edu") cp.set("gip_tests", "egee_bdii", "lcg-bdii.cern.ch") cp.set("gip_tests", "egee_bdii_conf_url", "http://lcg-bdii-conf.cern.ch/bdii-conf/bdii.conf") web_server = "http://is.grid.iu.edu" cp.set("gip_tests", "update_url", web_server + "/cgi-bin/status.cgi") cp.set("gip_tests", "schema_check_url", web_server + "/data/cemon_processed_osg/%s.processed?which=%s") cp.set("gip_tests", "validator_url", web_server + "/data/cemon_processed_osg/%s.processed?which=%s") if cp_get(cp, "gip_tests", "compare_excludes", "") == "": compare_excludes="GlueCEStateFreeJobSlots,GlueCEStateRunningJobs,GlueCEStateTotalJobs,GlueSiteLocation,GlueSAStateAvailableSpace,GlueSAStateUsedSpace" cp.set("gip_tests", "compare_excludes", compare_excludes) if cp_get(cp, "gip_tests", "enable_glite", "") == "": cp.set("gip_tests", "enable_glite", "False") if cp_get(cp, "gip_tests", "results_dir", "") == "": results_dir = os.path.expandvars("$VDT_LOCATION/apache/htdocs/") cp.set("gip_tests", "enable_glite", "False")
bef31ea77737a7f712e6154212174ef981e1beea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12088/bef31ea77737a7f712e6154212174ef981e1beea/gip_testing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13156, 809, 12, 4057, 4672, 309, 3283, 67, 588, 12, 4057, 16, 315, 75, 625, 67, 16341, 3113, 315, 4256, 67, 1973, 3113, 1408, 13, 422, 1408, 30, 3283, 18, 542, 2932, 75, 625, 67, 16341, 3113, 315, 4256, 67, 1973, 3113, 3283, 67, 588, 12, 4057, 16, 315, 4256, 3113, 315, 529, 3113, 1408, 3719, 225, 309, 3283, 67, 588, 12, 4057, 16, 315, 75, 625, 67, 16341, 3113, 315, 4256, 67, 14926, 3113, 1408, 13, 422, 1408, 30, 1479, 67, 6019, 273, 3283, 67, 588, 12, 4057, 16, 315, 311, 3113, 315, 529, 3113, 1408, 2934, 4939, 2668, 1093, 13, 2834, 67, 14926, 273, 2213, 87, 7866, 87, 6, 738, 261, 2564, 67, 6019, 10531, 17, 22, 6487, 1479, 67, 6019, 10531, 17, 21, 5717, 3283, 18, 542, 2932, 75, 625, 67, 16341, 3113, 315, 4256, 67, 14926, 3113, 2834, 67, 14926, 13, 225, 309, 3283, 67, 588, 12, 4057, 16, 315, 75, 625, 67, 16341, 3113, 315, 4718, 67, 4256, 3113, 1408, 13, 422, 1408, 30, 3283, 18, 542, 2932, 75, 625, 67, 16341, 3113, 315, 4718, 67, 12180, 3113, 3283, 67, 588, 12, 4057, 16, 315, 75, 625, 67, 16341, 3113, 315, 4256, 67, 1973, 3113, 1408, 3719, 225, 3068, 273, 3283, 67, 588, 12, 4057, 16, 315, 4256, 3113, 315, 1655, 3113, 1408, 13, 3283, 18, 542, 2932, 75, 625, 67, 16341, 3113, 315, 16410, 2835, 67, 655, 3113, 315, 22, 31779, 7923, 3283, 18, 542, 2932, 75, 625, 67, 16341, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13156, 809, 12, 4057, 4672, 309, 3283, 67, 588, 12, 4057, 16, 315, 75, 625, 67, 16341, 3113, 315, 4256, 67, 1973, 3113, 1408, 13, 422, 1408, 30, 3283, 18, 542, 2932, 75, 625, 67, 16341, 3113, 315, 4256, 67, 1973, 3113, 3283, 67, 588, 12, 4057, 16, 315, 4256, 3113, 315, 529, 3113, 1408, 3719, 225, 309, 3283, 67, 588, 12, 4057, 16, 315, 75, 625, 67, 16341, 3113, 315, 4256, 67, 14926, 3113, 1408, 13, 422, 1408, 30, 1479, 67, 6019, 273, 3283, 67, 588, 12, 4057, 16, 315, 311, 3113, 315, 529, 3113, 1408, 2934, 4939, 2668, 1093, 13, 2834, 67, 14926, 273, 2213, 87, 7866, 87, 6, 738, 261, 2564, 67, 6019, 10531, 17, 2 ]
if cellNr >= self.programChain.cellCount:
if (self.cell.blockMode == \ dvdread.CELL_BLOCK_MODE_ANGLE_FIRST or \ self.cell.blockMode == \ dvdread.CELL_BLOCK_MODE_ANGLE_MIDDLE): cellNr += 1 nextMode = self.programChain.getCell(cellNr).blockMode while nextMode != dvdread.CELL_BLOCK_MODE_ANGLE_LAST: cellNr += 1 nextMode = self.programChain.getCell(cellNr).blockMode cellNr += 1 if cellNr > self.programChain.cellCount:
def linkCell(self, cellNr, sectorNr=None): """Link to the specified cell.
c517613690cb665282fcaf9ca4252741af236776 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/c517613690cb665282fcaf9ca4252741af236776/machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 4020, 12, 2890, 16, 2484, 18726, 16, 16323, 18726, 33, 7036, 4672, 3536, 2098, 358, 326, 1269, 2484, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1692, 4020, 12, 2890, 16, 2484, 18726, 16, 16323, 18726, 33, 7036, 4672, 3536, 2098, 358, 326, 1269, 2484, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
boolOptionsGlobal = ['runOnce', 'active', 'rssFeed', 'urllib', 'noClobber']
boolOptionsGlobal = ['runOnce', 'active', 'rssFeed', 'urllib', 'noClobber', 'debug']
def getSaved( filename=None, unset=False): u"""Return an instance of the SaveProcessor class creating one if needed""" global saved if unset: saved = None elif not saved: saved = SaveProcessor(saveFileName=filename) return saved
cb06f1645b77b7012f9195d9b9e4a000a0842687 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/cb06f1645b77b7012f9195d9b9e4a000a0842687/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 8158, 12, 1544, 33, 7036, 16, 2646, 33, 8381, 4672, 582, 8395, 990, 392, 791, 434, 326, 7074, 5164, 667, 4979, 1245, 309, 3577, 8395, 2552, 5198, 309, 2646, 30, 5198, 273, 599, 1327, 486, 5198, 30, 5198, 273, 7074, 5164, 12, 5688, 4771, 33, 3459, 13, 327, 5198, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1322, 8158, 12, 1544, 33, 7036, 16, 2646, 33, 8381, 4672, 582, 8395, 990, 392, 791, 434, 326, 7074, 5164, 667, 4979, 1245, 309, 3577, 8395, 2552, 5198, 309, 2646, 30, 5198, 273, 599, 1327, 486, 5198, 30, 5198, 273, 7074, 5164, 12, 5688, 4771, 33, 3459, 13, 327, 5198, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
str += '(type=' + epytext.to_html(param.type())
str += '(type=' + dom_to_html(param.type(), container)
def _func_details(self, functions, cls, heading='Function Details'): """Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</table>'
b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6315, 3804, 12, 10722, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 2121, 1870, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6315, 3804, 12, 10722, 13, 309, 562, 12, 10722, 13, 422, 374, 30, 327, 875, 609, 273, 365, 6315, 2121, 67, 3374, 12, 19948, 16, 296, 6395, 6134, 6797, 1757, 2121, 1870, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_1.00_spectrogram_whitened_thumbnail.png\" width=\"50%\"><br>" hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_16.00_spectrogram_whitened_thumbnail.png\" width=\"50%\"><br>"
hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_1.00_spectrogram_whitened.thumb.png\" width=\"50%\"><br>" hoftQscanLinks += " <img src=\"" + hoft_qscan[i + len(ifolist) - 1] + "/" + gpstime0 + "_" + ifo + ":" + strain + "_16.00_spectrogram_whitened.thumb.png\" width=\"50%\"><br>"
def getFileMatchingTrigger(jobname,string_id,file_list=False): if os.access(jobname,os.F_OK): filesInDir = os.listdir(jobname) fileList = [] for paramFile in filesInDir: if fnmatch.fnmatch(paramFile, "*"+string_id+"*.html"): if file_list: fileList.append("../"+jobname+"/"+paramFile) else: return "../"+jobname+"/"+paramFile if fileList: return fileList else: return False else: return False
9273b7b0fb17e529b5b4f6f9baeb0fb70e722be9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/9273b7b0fb17e529b5b4f6f9baeb0fb70e722be9/makeCheckList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 9517, 6518, 12, 4688, 529, 16, 1080, 67, 350, 16, 768, 67, 1098, 33, 8381, 4672, 309, 1140, 18, 3860, 12, 4688, 529, 16, 538, 18, 42, 67, 3141, 4672, 1390, 382, 1621, 273, 1140, 18, 1098, 1214, 12, 4688, 529, 13, 18645, 273, 5378, 364, 579, 812, 316, 1390, 382, 1621, 30, 309, 18764, 18, 4293, 1916, 12, 891, 812, 16, 10971, 15, 1080, 67, 350, 9078, 11146, 2620, 6, 4672, 309, 585, 67, 1098, 30, 18645, 18, 6923, 2932, 838, 4898, 15, 4688, 529, 9078, 4898, 15, 891, 812, 13, 469, 30, 327, 315, 838, 4898, 15, 4688, 529, 9078, 4898, 15, 891, 812, 309, 18645, 30, 327, 18645, 469, 30, 327, 1083, 469, 30, 327, 1083, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6034, 9517, 6518, 12, 4688, 529, 16, 1080, 67, 350, 16, 768, 67, 1098, 33, 8381, 4672, 309, 1140, 18, 3860, 12, 4688, 529, 16, 538, 18, 42, 67, 3141, 4672, 1390, 382, 1621, 273, 1140, 18, 1098, 1214, 12, 4688, 529, 13, 18645, 273, 5378, 364, 579, 812, 316, 1390, 382, 1621, 30, 309, 18764, 18, 4293, 1916, 12, 891, 812, 16, 10971, 15, 1080, 67, 350, 9078, 11146, 2620, 6, 4672, 309, 585, 67, 1098, 30, 18645, 18, 6923, 2932, 838, 4898, 15, 4688, 529, 9078, 4898, 15, 891, 812, 13, 469, 30, 327, 315, 838, 4898, 15, 4688, 529, 9078, 4898, 15, 891, 812, 309, 18645, 30, 327, 18645, 469, 30, 327, 1083, 469, 30, 2 ]
the sorted list of unique numbers described by the ranges.
the sorted list of unique numbers described by the ranges. A range with a positive step describes the offsets (first + n * step) where n is an integer such that first <= offset <= last. A range with a negative step describes the offsets (first + n * step) where n is an integer such that last <= offset <= first.
def parse_slidespec(slidespec): """ Accepts a string in the format instrument=first:last:step[,first:last:step]... and returns the tuple (instrument, [offset1, offset2, ....]) where the offsets are the sorted list of unique numbers described by the ranges. Example: >>> parse_slidespec("H1=-5:+5:0.5") ('H1', [-5.0, -4.5, -4.0, -3.5, -3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0]) """ try: instrument, rangespec = slidespec.split("=") except ValueError: raise ValueError, "cannot parse time slide \"%s\"" % slidespec offsets = set() for range in rangespec.split(","): try: first, last, step = map(float, range.split(":")) except ValueError: raise ValueError, "malformed range \"%s\" in \"%s\"" % (range, rangespec) if step == 0: if first != last: raise ValueError, "divide by zero in range \"%s\"" % range offsets.add(first) continue if (last - first) / step < 0.0: raise ValueError, "step has wrong sign in range \"%s\"" % range i = 0 while True: x = first + i * step if x > last: break offsets.add(x) i += 1 offsets = list(offsets) offsets.sort() return instrument.strip(), offsets
3280eb72d42d7add55fe0714f37c98d2e461410d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/3280eb72d42d7add55fe0714f37c98d2e461410d/ligolw_tisi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2069, 4369, 705, 12, 2069, 4369, 705, 4672, 3536, 27158, 279, 533, 316, 326, 740, 10353, 33, 3645, 30, 2722, 30, 4119, 63, 16, 3645, 30, 2722, 30, 4119, 65, 2777, 225, 471, 1135, 326, 3193, 261, 22818, 16, 306, 3348, 21, 16, 1384, 22, 16, 1372, 18, 5717, 1625, 326, 8738, 854, 326, 3115, 666, 434, 3089, 5600, 11893, 635, 326, 7322, 18, 225, 432, 1048, 598, 279, 6895, 2235, 19605, 326, 8738, 261, 3645, 397, 290, 380, 2235, 13, 1625, 290, 353, 392, 3571, 4123, 716, 1122, 1648, 1384, 1648, 1142, 18, 225, 432, 1048, 598, 279, 6092, 2235, 19605, 326, 8738, 261, 3645, 397, 290, 380, 2235, 13, 1625, 290, 353, 392, 3571, 4123, 716, 1142, 1648, 1384, 1648, 1122, 18, 225, 5090, 30, 225, 4080, 1109, 67, 2069, 4369, 705, 2932, 44, 21, 29711, 25, 30, 15, 25, 30, 20, 18, 25, 7923, 7707, 44, 21, 2187, 23059, 25, 18, 20, 16, 300, 24, 18, 25, 16, 300, 24, 18, 20, 16, 300, 23, 18, 25, 16, 300, 23, 18, 20, 16, 300, 22, 18, 25, 16, 300, 22, 18, 20, 16, 300, 21, 18, 25, 16, 300, 21, 18, 20, 16, 300, 20, 18, 25, 16, 374, 18, 20, 16, 374, 18, 25, 16, 404, 18, 20, 16, 404, 18, 25, 16, 576, 18, 20, 16, 576, 18, 25, 16, 890, 18, 20, 16, 890, 18, 25, 16, 1059, 18, 20, 16, 1059, 18, 25, 16, 1381, 18, 20, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2069, 4369, 705, 12, 2069, 4369, 705, 4672, 3536, 27158, 279, 533, 316, 326, 740, 10353, 33, 3645, 30, 2722, 30, 4119, 63, 16, 3645, 30, 2722, 30, 4119, 65, 2777, 225, 471, 1135, 326, 3193, 261, 22818, 16, 306, 3348, 21, 16, 1384, 22, 16, 1372, 18, 5717, 1625, 326, 8738, 854, 326, 3115, 666, 434, 3089, 5600, 11893, 635, 326, 7322, 18, 225, 432, 1048, 598, 279, 6895, 2235, 19605, 326, 8738, 261, 3645, 397, 290, 380, 2235, 13, 1625, 290, 353, 392, 3571, 4123, 716, 1122, 1648, 1384, 1648, 1142, 18, 225, 432, 1048, 598, 279, 6092, 2235, 19605, 326, 8738, 261, 3645, 397, 290, 380, 2235, 13, 1625, 290, 353, 392, 3571, 2 ]
mset(phash, '|'.join((ip, port,)), namespace='I')
mset(phash, '|'.join((ip, str(port))), namespace='I')
def real_main(): args = parse_qs(environ['QUERY_STRING']) if not args: print "Status: 301 Moved Permanantly\nLocation: /\n\n", return for a in ('info_hash', 'port'): if a not in args or len(args[a]) < 1: return # Maybe now that trackhub is fixed we shoud be less harsh? resps(bencode({'failure reason': "You must provide %s!"%a})) ip = environ['REMOTE_ADDR'] key = args['info_hash'][0] err = None if(len(key) > 128): err = "Insanely long key!" else: try: port = int(args['port'][0]) except: err = "Invalid port number!" if err: return resps(bencode({'failure reason': err})) # Crop raises chance of a clash, plausible deniability for the win! phash = md5("%s/%d").hexdigest()[:16] # TODO BT: If left=0, the download is done and we should not return any peers. event = args.pop('event', [None])[0] if event == "stopped": # Maybe we should only remove it from this track, but this is good enough. mdel(phash, namespace='I') return # They are going away, don't waste bw/cpu on this. resps(bencode({'interval': 2048, 'peers': []})) updatetrack = False # Get existing peers r = get(key, namespace='K') if r: s = r.split('|') if len(s) > 32: ks = sample(s, 32) else: ks = s peers = get_multi(ks, namespace='I') lostpeers = (p for p in ks if p not in peers) if lostpeers: # Remove lost peers s = (k for k in s if k not in lostpeers) updatetrack = True if phash in peers: peers.remove(phash) # Remove self from returned peers # New track! else: s = [] peers = {} mset(phash, '|'.join((ip, port,)), namespace='I') # This might be redundant, but ensures we update the port number in case it has changed. if phash not in s: # Assume new peer s.append(phash) updatetrack = True if updatetrack: mset(key, '|'.join(s), namespace='K') #debug("Returned %s peers" % len(peers)) ps = dict((k, peers[k].split('|')) for k in peers) pl = ({'ip': ps[h][0], 'port': ps[h][1]} for h in ps) resps(bencode({'interval': 4424, 'peers': pl}))
547fbff1c8f123c01e6ebc9e28e01d54fa538bec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14779/547fbff1c8f123c01e6ebc9e28e01d54fa538bec/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2863, 67, 5254, 13332, 833, 273, 1109, 67, 12926, 12, 28684, 3292, 10753, 67, 5804, 19486, 225, 309, 486, 833, 30, 1172, 315, 1482, 30, 26403, 490, 9952, 13813, 304, 970, 715, 64, 82, 2735, 30, 342, 64, 82, 64, 82, 3113, 327, 225, 364, 279, 316, 7707, 1376, 67, 2816, 2187, 296, 655, 11, 4672, 309, 279, 486, 316, 833, 578, 562, 12, 1968, 63, 69, 5717, 411, 404, 30, 327, 468, 14024, 2037, 716, 3298, 14986, 353, 5499, 732, 699, 83, 1100, 506, 5242, 366, 976, 35, 400, 1121, 12, 70, 3015, 12590, 11, 12251, 3971, 4278, 315, 6225, 1297, 5615, 738, 87, 4442, 9, 69, 31700, 225, 2359, 273, 5473, 3292, 15790, 67, 14142, 3546, 498, 273, 833, 3292, 1376, 67, 2816, 3546, 63, 20, 65, 393, 273, 599, 225, 309, 12, 1897, 12, 856, 13, 405, 8038, 4672, 393, 273, 315, 5048, 304, 2357, 1525, 498, 4442, 469, 30, 775, 30, 1756, 273, 509, 12, 1968, 3292, 655, 3546, 63, 20, 5717, 1335, 30, 393, 273, 315, 1941, 1756, 1300, 4442, 225, 309, 393, 30, 327, 400, 1121, 12, 70, 3015, 12590, 11, 12251, 3971, 4278, 393, 31700, 225, 468, 385, 1764, 14183, 17920, 434, 279, 927, 961, 16, 886, 69, 407, 1523, 5545, 21280, 364, 326, 5657, 5, 1844, 961, 273, 3481, 25, 27188, 87, 5258, 72, 20387, 7118, 10171, 1435, 10531, 2313, 65, 225, 468, 2660, 605, 56, 30, 971, 2002, 33, 20, 16, 326, 4224, 353, 2731, 471, 732, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2863, 67, 5254, 13332, 833, 273, 1109, 67, 12926, 12, 28684, 3292, 10753, 67, 5804, 19486, 225, 309, 486, 833, 30, 1172, 315, 1482, 30, 26403, 490, 9952, 13813, 304, 970, 715, 64, 82, 2735, 30, 342, 64, 82, 64, 82, 3113, 327, 225, 364, 279, 316, 7707, 1376, 67, 2816, 2187, 296, 655, 11, 4672, 309, 279, 486, 316, 833, 578, 562, 12, 1968, 63, 69, 5717, 411, 404, 30, 327, 468, 14024, 2037, 716, 3298, 14986, 353, 5499, 732, 699, 83, 1100, 506, 5242, 366, 976, 35, 400, 1121, 12, 70, 3015, 12590, 11, 12251, 3971, 4278, 315, 6225, 1297, 5615, 738, 87, 4442, 9, 69, 31700, 225, 2359, 273, 5473, 3292, 15790, 67, 14142, 3546, 2 ]
st t1, seg, [scale, index, t2], disp
st t1, seg, [1, t2, t7], disp
def macroop BTC_P_R { rdip t7 limm t1, imm srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" limm t3, 1 rol t3, t3, reg ldst t1, seg, [1, t2, t7] sext t0, t1, reg, flags=(CF,) xor t1, t1, t3 st t1, seg, [scale, index, t2], disp
67fee0102648eb597c8c2a368da5f37f4b13b78b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6787/67fee0102648eb597c8c2a368da5f37f4b13b78b/bit_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 15988, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 20167, 81, 268, 21, 16, 709, 81, 272, 354, 77, 268, 22, 16, 268, 21, 16, 7751, 3074, 18, 892, 1225, 422, 1725, 13, 692, 890, 294, 14015, 3074, 18, 892, 1225, 422, 1059, 13, 692, 576, 294, 404, 2225, 20167, 81, 268, 23, 16, 404, 10643, 268, 23, 16, 268, 23, 16, 960, 328, 11057, 268, 21, 16, 2291, 16, 306, 21, 16, 268, 22, 16, 268, 27, 65, 272, 408, 268, 20, 16, 268, 21, 16, 960, 16, 2943, 28657, 8955, 16, 13, 17586, 268, 21, 16, 268, 21, 16, 268, 23, 384, 268, 21, 16, 2291, 16, 306, 5864, 16, 770, 16, 268, 22, 6487, 16232, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 15988, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 20167, 81, 268, 21, 16, 709, 81, 272, 354, 77, 268, 22, 16, 268, 21, 16, 7751, 3074, 18, 892, 1225, 422, 1725, 13, 692, 890, 294, 14015, 3074, 18, 892, 1225, 422, 1059, 13, 692, 576, 294, 404, 2225, 20167, 81, 268, 23, 16, 404, 10643, 268, 23, 16, 268, 23, 16, 960, 328, 11057, 268, 21, 16, 2291, 16, 306, 21, 16, 268, 22, 16, 268, 27, 65, 272, 408, 268, 20, 16, 268, 21, 16, 960, 16, 2943, 28657, 8955, 16, 13, 17586, 268, 21, 16, 268, 21, 16, 268, 23, 384, 268, 21, 16, 2291, 16, 306, 5864, 16, 770, 16, 2 ]
item = NewsItem.objects.get(schema__id=schema.id, title=entry.title, description=entry.description)
item = NewsItem.objects.get(schema__id=schema.id, url=entry.link)
def main(argv=None): logger.info("Starting add_news") if argv: url = argv[0] else: url = 'http://search.boston.com/search/api?q=*&sort=-articleprintpublicationdate&subject=massachusetts&scope=bonzai' schema_slug = 'local-news' try: schema = Schema.objects.get(slug=schema_slug) except Schema.DoesNotExist: print "Schema (%s): DoesNotExist" % schema_slug sys.exit(1) f = feedparser.parse(url) for entry in f.entries: try: item = NewsItem.objects.get(schema__id=schema.id, title=entry.title, description=entry.description) print "Already have %r (id %d)" % (item.title, item.id) except NewsItem.DoesNotExist: item = NewsItem() try: item.schema = schema item.title = convert_entities(entry.title) item.description = convert_entities(entry.description) item.url = entry.link item.location_name = entry.get('x-calconnect-street') or entry.get('georss_featurename') item.item_date = datetime.datetime(*entry.updated_parsed[:6]) item.pub_date = datetime.datetime(*entry.updated_parsed[:6]) # feedparser bug: depending on which parser it magically uses, # we either get the xml namespace in the key name, or we don't. point = entry.get('georss_point') or entry.get('point') if point: x, y = point.split(' ') else: # Fall back on geocoding. text = item.title + ' ' + item.description try: x, y = quick_dirty_fallback_geocode(text, parse=True) except GeocodingException: logger.debug("Geocoding exception on %r:" % text) log_exception(level=logging.DEBUG) continue if None in (x, y): logger.debug("couldn't geocode '%s...'" % item.title[:30]) continue item.location = Point((float(y), float(x))) if item.location.x == 0.0 and item.location.y == 0.0: # There's a lot of these. Maybe attempt to # parse and geocode if we haven't already? logger.info("Skipping %r as it has bad location 0,0" % item.title) continue if not item.location_name: # Fall back to reverse-geocoding. from ebpub.geocoder import reverse try: block, distance = reverse.reverse_geocode(item.location) logger.debug(" Reverse-geocoded point to %r" % block.pretty_name) item.location_name = block.pretty_name except reverse.ReverseGeocodeError: logger.debug(" Failed to reverse geocode %s for %r" % (item.location.wkt, item.title)) item.location_name = u'' item.save() logger.info("Saved: %s" % item.title) except: logger.error("Warning: couldn't save %r. Traceback:" % item.title) log_exception() logger.info("Finished add_news")
41f016572216a36d3af500427fdadb6d4f62ba97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10327/41f016572216a36d3af500427fdadb6d4f62ba97/add_news.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 1194, 18, 1376, 2932, 11715, 527, 67, 18443, 7923, 309, 5261, 30, 880, 273, 5261, 63, 20, 65, 469, 30, 880, 273, 296, 2505, 2207, 3072, 18, 70, 669, 265, 18, 832, 19, 3072, 19, 2425, 35, 85, 33, 14, 10, 3804, 29711, 11480, 1188, 28631, 712, 10, 7857, 33, 10424, 497, 407, 278, 3428, 10, 4887, 33, 18688, 94, 10658, 11, 1963, 67, 6436, 273, 296, 3729, 17, 18443, 11, 225, 775, 30, 1963, 273, 4611, 18, 6911, 18, 588, 12, 6436, 33, 4821, 67, 6436, 13, 1335, 4611, 18, 15264, 30, 1172, 315, 3078, 6142, 87, 4672, 22273, 6, 738, 1963, 67, 6436, 2589, 18, 8593, 12, 21, 13, 225, 284, 273, 4746, 4288, 18, 2670, 12, 718, 13, 225, 364, 1241, 316, 284, 18, 8219, 30, 775, 30, 761, 273, 27061, 1180, 18, 6911, 18, 588, 12, 4821, 972, 350, 33, 4821, 18, 350, 16, 880, 33, 4099, 18, 1232, 13, 1172, 315, 9430, 1240, 738, 86, 261, 350, 738, 72, 2225, 738, 261, 1726, 18, 2649, 16, 761, 18, 350, 13, 1335, 27061, 1180, 18, 15264, 30, 761, 273, 27061, 1180, 1435, 775, 30, 761, 18, 4821, 273, 1963, 761, 18, 2649, 273, 1765, 67, 9996, 12, 4099, 18, 2649, 13, 761, 18, 3384, 273, 1765, 67, 9996, 12, 4099, 18, 3384, 13, 761, 18, 718, 273, 1241, 18, 1232, 761, 18, 3562, 67, 529, 273, 1241, 18, 588, 2668, 92, 17, 771, 3612, 17, 22424, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 1194, 18, 1376, 2932, 11715, 527, 67, 18443, 7923, 309, 5261, 30, 880, 273, 5261, 63, 20, 65, 469, 30, 880, 273, 296, 2505, 2207, 3072, 18, 70, 669, 265, 18, 832, 19, 3072, 19, 2425, 35, 85, 33, 14, 10, 3804, 29711, 11480, 1188, 28631, 712, 10, 7857, 33, 10424, 497, 407, 278, 3428, 10, 4887, 33, 18688, 94, 10658, 11, 1963, 67, 6436, 273, 296, 3729, 17, 18443, 11, 225, 775, 30, 1963, 273, 4611, 18, 6911, 18, 588, 12, 6436, 33, 4821, 67, 6436, 13, 1335, 4611, 18, 15264, 30, 1172, 315, 3078, 6142, 87, 4672, 22273, 6, 738, 1963, 67, 6436, 2589, 18, 8593, 12, 21, 13, 225, 2 ]
("foo", 5, 3.14, None, buffer("blob"),))
("foo", 5, 3.14, None, buffer(b"blob"),))
def setUp(self): self.con = sqlite.connect(":memory:") cur = self.con.cursor() cur.execute(""" create table test( t text, i integer, f float, n, b blob ) """) cur.execute("insert into test(t, i, f, n, b) values (?, ?, ?, ?, ?)", ("foo", 5, 3.14, None, buffer("blob"),))
3488e70407261abba20e38080df81d1ef94ecae6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/3488e70407261abba20e38080df81d1ef94ecae6/userfunctions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 591, 273, 16184, 18, 3612, 2932, 30, 7858, 2773, 13, 662, 273, 365, 18, 591, 18, 9216, 1435, 662, 18, 8837, 2932, 3660, 752, 1014, 1842, 12, 268, 977, 16, 277, 3571, 16, 284, 1431, 16, 290, 16, 324, 4795, 262, 3536, 13, 662, 18, 8837, 2932, 6387, 1368, 1842, 12, 88, 16, 277, 16, 284, 16, 290, 16, 324, 13, 924, 13590, 16, 20033, 20033, 20033, 692, 2225, 16, 7566, 11351, 3113, 1381, 16, 890, 18, 3461, 16, 599, 16, 1613, 2932, 10721, 6, 3631, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 365, 18, 591, 18, 9216, 1435, 662, 18, 8837, 2932, 3660, 752, 1014, 1842, 12, 268, 977, 16, 277, 3571, 16, 284, 1431, 16, 290, 16, 324, 4795, 262, 3536, 13, 662, 18, 8837, 2932, 6387, 1368, 1842, 12, 88, 16, 277, 16, 284, 16, 290, 16, 324, 13, 924, 13590, 16, 20033, 20033, 20033, 692, 2225, 16, 7566, 11351, 3113, 1381, 16, 890, 18, 3461, 16, 599, 16, 1613, 2932, 10721, 6, 3631, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.sage._expect.expect(self.sage._prompt, timeout=timeout)
e.expect(self.sage._prompt, timeout=timeout)
def stop(self): """ Stops the current worker and resets it's internal state. """ INTERRUPT_TRIES = 20 timeout = 0.3 try: for i in range(INTERRUPT_TRIES): self.sage._expect.sendline('q') self.sage._expect.sendline(chr(3)) # send ctrl-c try: self.sage._expect.expect(self.sage._prompt, timeout=timeout) success = True break except (pexpect.TIMEOUT, pexpect.EOF), msg: if self.log_level > 3: log.err("Trying to interrupt SAGE (try %s)..." % i) except Exception, msg: log.err("[Worker %s] Could not do a soft reset, performing a hard reset now.") if not success: pid = self.__sage.pid() cmd = 'kill -9 -%s'%pid os.system(cmd) self.sage = Sage() self.sage.reset() self.free = True self.job = None
b26ee276ff3afed683baa8910a742216978dfeee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b26ee276ff3afed683baa8910a742216978dfeee/dsage_worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 934, 4473, 326, 783, 4322, 471, 20063, 518, 1807, 2713, 919, 18, 225, 3536, 225, 6137, 9712, 57, 1856, 67, 6566, 3991, 273, 4200, 2021, 273, 374, 18, 23, 775, 30, 364, 277, 316, 1048, 12, 9125, 19866, 1856, 67, 6566, 3991, 4672, 365, 18, 87, 410, 6315, 12339, 18, 4661, 1369, 2668, 85, 6134, 365, 18, 87, 410, 6315, 12339, 18, 4661, 1369, 12, 15182, 12, 23, 3719, 225, 468, 1366, 6414, 17, 71, 775, 30, 425, 18, 12339, 12, 2890, 18, 87, 410, 6315, 13325, 16, 2021, 33, 4538, 13, 2216, 273, 1053, 898, 1335, 261, 30251, 18, 9503, 16, 293, 12339, 18, 12706, 3631, 1234, 30, 309, 365, 18, 1330, 67, 2815, 405, 890, 30, 613, 18, 370, 2932, 18038, 358, 13123, 348, 2833, 261, 698, 738, 87, 13, 7070, 738, 277, 13, 1335, 1185, 16, 1234, 30, 613, 18, 370, 2932, 63, 6671, 738, 87, 65, 14312, 486, 741, 279, 8971, 2715, 16, 14928, 279, 7877, 2715, 2037, 1199, 13, 225, 309, 486, 2216, 30, 4231, 273, 365, 16186, 87, 410, 18, 6610, 1435, 1797, 273, 296, 16418, 300, 29, 300, 9, 87, 11, 9, 6610, 1140, 18, 4299, 12, 4172, 13, 365, 18, 87, 410, 273, 348, 410, 1435, 225, 365, 18, 87, 410, 18, 6208, 1435, 365, 18, 9156, 273, 1053, 365, 18, 4688, 273, 599, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2132, 12, 2890, 4672, 3536, 934, 4473, 326, 783, 4322, 471, 20063, 518, 1807, 2713, 919, 18, 225, 3536, 225, 6137, 9712, 57, 1856, 67, 6566, 3991, 273, 4200, 2021, 273, 374, 18, 23, 775, 30, 364, 277, 316, 1048, 12, 9125, 19866, 1856, 67, 6566, 3991, 4672, 365, 18, 87, 410, 6315, 12339, 18, 4661, 1369, 2668, 85, 6134, 365, 18, 87, 410, 6315, 12339, 18, 4661, 1369, 12, 15182, 12, 23, 3719, 225, 468, 1366, 6414, 17, 71, 775, 30, 425, 18, 12339, 12, 2890, 18, 87, 410, 6315, 13325, 16, 2021, 33, 4538, 13, 2216, 273, 1053, 898, 1335, 261, 30251, 18, 9503, 16, 293, 12339, 18, 12706, 3631, 1234, 30, 309, 365, 18, 1330, 2 ]
A 4 by :math:`$(n-1)$` matrix ``Z`` is returned. At the :math:`$i$`th iteration, clusters with indices ``Z[i, 0]`` and ``Z[i, 1]`` are combined to form cluster :math:`$n + i$`. A cluster with an index less than :math:`$n$` corresponds to one of the :math:`$n$` original observations. The distance between
A 4 by :math:`(n-1)` matrix ``Z`` is returned. At the :math:`i`-th iteration, clusters with indices ``Z[i, 0]`` and ``Z[i, 1]`` are combined to form cluster :math:`n + i`. A cluster with an index less than :math:`n` corresponds to one of the :math:`n` original observations. The distance between
def linkage(y, method='single', metric='euclidean'): """ Performs hierarchical/agglomerative clustering on the condensed distance matrix y. y must be a {n \choose 2} sized vector where n is the number of original observations paired in the distance matrix. The behavior of this function is very similar to the MATLAB(TM) linkage function. A 4 by :math:`$(n-1)$` matrix ``Z`` is returned. At the :math:`$i$`th iteration, clusters with indices ``Z[i, 0]`` and ``Z[i, 1]`` are combined to form cluster :math:`$n + i$`. A cluster with an index less than :math:`$n$` corresponds to one of the :math:`$n$` original observations. The distance between clusters ``Z[i, 0]`` and ``Z[i, 1]`` is given by ``Z[i, 2]``. The fourth value ``Z[i, 3]`` represents the number of original observations in the newly formed cluster. The following linkage methods are used to compute the distance :math:`$d(s, t)$` between two clusters :math:`$s$` and :math:`$t$`. The algorithm begins with a forest of clusters that have yet to be used in the hierarchy being formed. When two clusters :math:`$s$` and :math:`$t$` from this forest are combined into a single cluster :math:`$u$`, :math:`$s$` and :math:`$t$` are removed from the forest, and :math:`$u$` is added to the forest. When only one cluster remains in the forest, the algorithm stops, and this cluster becomes the root. A distance matrix is maintained at each iteration. The ``d[i,j]`` entry corresponds to the distance between cluster :math:`$i$` and :math:`$j$` in the original forest. At each iteration, the algorithm must update the distance matrix to reflect the distance of the newly formed cluster u with the remaining clusters in the forest. Suppose there are :math:`$|u|$` original observations :math:`$u[0], \ldots, u[|u|-1]$` in cluster :math:`$u$` and :math:`$|v|$` original objects :math:`$v[0], \ldots, v[|v|-1]$` in cluster :math:`$v$`. Recall :math:`$s$` and :math:`$t$` are combined to form cluster :math:`$u$`. Let :math:`$v$` be any remaining cluster in the forest that is not :math:`$u$`. :Parameters: Q : ndarray A condensed or redundant distance matrix. A condensed distance matrix is a flat array containing the upper triangular of the distance matrix. This is the form that ``pdist`` returns. Alternatively, a collection of :math:`$m$` observation vectors in n dimensions may be passed as a :math:`$m$` by :math:`$n$` array. method : string The linkage algorithm to use. See the ``Linkage Methods`` section below for full descriptions. metric : string The distance metric to use. See the ``distance.pdist`` function for a list of valid distance metrics. Linkage Methods --------------- The following are methods for calculating the distance between the newly formed cluster :math:`$u$` and each :math:`$v$`. * method=``single`` assigns .. math: d(u,v) = \min(dist(u[i],v[j])) for all points :math:`$i$` in cluster :math:`$u$` and :math:`$j$` in cluster :math:`$v$`. This is also known as the Nearest Point Algorithm. * method=``complete`` assigns .. math: d(u, v) = \max(dist(u[i],v[j])) for all points :math:`$i$` in cluster u and :math:`$j$` in cluster :math:`$v$`. This is also known by the Farthest Point Algorithm or Voor Hees Algorithm. * method=``average`` assigns .. math: d(u,v) = \sum_{ij} \frac{d(u[i], v[j])} {(|u|*|v|) for all points :math:`$i$` and :math:`$j$` where :math:`$|u|$` and :math:`$|v|$` are the cardinalities of clusters :math:`$u$` and :math:`$v$`, respectively. This is also called the UPGMA algorithm. This is called UPGMA. * method='weighted' assigns .. math: d(u,v) = (dist(s,v) + dist(t,v))/2 where cluster u was formed with cluster s and t and v is a remaining cluster in the forest. (also called WPGMA) * method='centroid' assigns .. math: dist(s,t) = euclid(c_s, c_t) where :math:`$c_s$` and :math:`$c_t$` are the centroids of clusters :math:`$s$` and :math:`$t$`, respectively. When two clusters :math:`$s$` and :math:`$t$` are combined into a new cluster :math:`$u$`, the new centroid is computed over all the original objects in clusters :math:`$s$` and :math:`$t$`. The distance then becomes the Euclidean distance between the centroid of :math:`$u$` and the centroid of a remaining cluster :math:`$v$` in the forest. This is also known as the UPGMC algorithm. * method='median' assigns math:`$d(s,t)$` like the ``centroid`` method. When two clusters s and t are combined into a new cluster :math:`$u$`, the average of centroids s and t give the new centroid :math:`$u$`. This is also known as the WPGMC algorithm. * method='ward' uses the Ward variance minimization algorithm. The new entry :math:`$d(u,v)$` is computed as follows, .. math: d(u,v) = \sqrt{\frac{|v|+|s|} {T}d(v,s)^2 + \frac{|v|+|t|} {T}d(v,t)^2 + \frac{|v|} {T}d(s,t)^2} where :math:`$u$` is the newly joined cluster consisting of clusters :math:`$s$` and :math:`$t$`, :math:`$v$` is an unused cluster in the forest, :math:`$T=|v|+|s|+|t|$`, and :math:`$|*|$` is the cardinality of its argument. This is also known as the incremental algorithm. Warning ------- When the minimum distance pair in the forest is chosen, there may be two or more pairs with the same minimum distance. This implementation may chose a different minimum than the MATLAB(TM) version. """ if not isinstance(method, str): raise TypeError("Argument 'method' must be a string.") y = _convert_to_double(np.asarray(y, order='c')) s = y.shape if len(s) == 1: distance.is_valid_y(y, throw=True, name='y') d = distance.num_obs_y(y) if method not in _cpy_non_euclid_methods.keys(): raise ValueError("Valid methods when the raw observations are omitted are 'single', 'complete', 'weighted', and 'average'.") # Since the C code does not support striding using strides. [y] = _copy_arrays_if_base_present([y]) Z = np.zeros((d - 1, 4)) _hierarchy_wrap.linkage_wrap(y, Z, int(d), \ int(_cpy_non_euclid_methods[method])) elif len(s) == 2: X = y n = s[0] m = s[1] if method not in _cpy_linkage_methods: raise ValueError('Invalid method: %s' % method) if method in _cpy_non_euclid_methods.keys(): dm = distance.pdist(X, metric) Z = np.zeros((n - 1, 4)) _hierarchy_wrap.linkage_wrap(dm, Z, n, \ int(_cpy_non_euclid_methods[method])) elif method in _cpy_euclid_methods.keys(): if metric != 'euclidean': raise ValueError('Method %s requires the distance metric to be euclidean' % s) dm = distance.pdist(X, metric) Z = np.zeros((n - 1, 4)) _hierarchy_wrap.linkage_euclid_wrap(dm, Z, X, m, n, int(_cpy_euclid_methods[method])) return Z
8172e9e1737f1f6d84d1b06fa46e587e764a1a0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/8172e9e1737f1f6d84d1b06fa46e587e764a1a0f/hierarchy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 410, 12, 93, 16, 707, 2218, 7526, 2187, 3999, 2218, 73, 22392, 11, 4672, 3536, 27391, 26633, 19, 346, 7043, 362, 264, 1535, 18743, 603, 326, 6941, 28003, 3888, 3148, 677, 18, 677, 1297, 506, 279, 288, 82, 521, 25777, 576, 97, 26046, 3806, 1625, 290, 353, 326, 1300, 434, 2282, 16477, 18066, 316, 326, 3888, 3148, 18, 1021, 6885, 434, 333, 445, 353, 8572, 7281, 358, 326, 490, 789, 48, 2090, 12, 22903, 13, 1692, 410, 445, 18, 225, 432, 1059, 635, 294, 15949, 28288, 12, 82, 17, 21, 22025, 3148, 12176, 62, 10335, 353, 2106, 18, 2380, 326, 294, 15949, 28288, 77, 68, 17, 451, 6532, 16, 9566, 598, 4295, 12176, 62, 63, 77, 16, 374, 65, 10335, 471, 12176, 62, 63, 77, 16, 404, 65, 10335, 854, 8224, 358, 646, 2855, 294, 15949, 28288, 82, 397, 277, 8338, 432, 2855, 598, 392, 770, 5242, 2353, 294, 15949, 28288, 82, 68, 13955, 358, 1245, 434, 326, 294, 15949, 28288, 82, 68, 2282, 16477, 18, 1021, 3888, 3086, 9566, 12176, 62, 63, 77, 16, 374, 65, 10335, 471, 12176, 62, 63, 77, 16, 404, 65, 10335, 353, 864, 635, 12176, 62, 63, 77, 16, 576, 65, 68, 8338, 1021, 12792, 451, 460, 12176, 62, 63, 77, 16, 890, 65, 10335, 8686, 326, 1300, 434, 2282, 16477, 316, 326, 10894, 20010, 2855, 18, 225, 1021, 3751, 1692, 410, 2590, 854, 1399, 358, 3671, 326, 3888, 294, 15949, 28288, 8, 72, 12, 87, 16, 268, 21877, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 410, 12, 93, 16, 707, 2218, 7526, 2187, 3999, 2218, 73, 22392, 11, 4672, 3536, 27391, 26633, 19, 346, 7043, 362, 264, 1535, 18743, 603, 326, 6941, 28003, 3888, 3148, 677, 18, 677, 1297, 506, 279, 288, 82, 521, 25777, 576, 97, 26046, 3806, 1625, 290, 353, 326, 1300, 434, 2282, 16477, 18066, 316, 326, 3888, 3148, 18, 1021, 6885, 434, 333, 445, 353, 8572, 7281, 358, 326, 490, 789, 48, 2090, 12, 22903, 13, 1692, 410, 445, 18, 225, 432, 1059, 635, 294, 15949, 28288, 12, 82, 17, 21, 22025, 3148, 12176, 62, 10335, 353, 2106, 18, 2380, 326, 294, 15949, 28288, 77, 68, 17, 451, 6532, 16, 9566, 598, 4295, 12176, 62, 63, 77, 16, 2 ]
return self._getCachedInfo()['venue']['name']
return self._getCachedInfo('venue', 'name')
def getVenueName(self): """Returns the name of the venue where the event is held. """ return self._getCachedInfo()['venue']['name']
ec1304614ea5bc838c2f5bb83444fc59ac9c26d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/ec1304614ea5bc838c2f5bb83444fc59ac9c26d8/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11031, 275, 344, 461, 12, 2890, 4672, 3536, 1356, 326, 508, 434, 326, 331, 275, 344, 1625, 326, 871, 353, 15770, 18, 3536, 225, 327, 365, 6315, 588, 9839, 966, 2668, 24612, 2187, 296, 529, 6134, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11031, 275, 344, 461, 12, 2890, 4672, 3536, 1356, 326, 508, 434, 326, 331, 275, 344, 1625, 326, 871, 353, 15770, 18, 3536, 225, 327, 365, 6315, 588, 9839, 966, 2668, 24612, 2187, 296, 529, 6134, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
expect(f.read(1), 'z')
expect(f.read(1), b'z')
def expect(got_this, expect_this): if test_support.verbose: print('%r =?= %r ...' % (got_this, expect_this), end=' ') if got_this != expect_this: if test_support.verbose: print('no') raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print('yes')
f55d86abe0e358709c72f404db4b832ea362c7d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/f55d86abe0e358709c72f404db4b832ea362c7d9/test_largefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 12, 13212, 67, 2211, 16, 4489, 67, 2211, 4672, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 29909, 86, 273, 35, 33, 738, 86, 25956, 738, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 3631, 679, 2218, 8624, 309, 2363, 67, 2211, 480, 4489, 67, 2211, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 2135, 6134, 1002, 1842, 67, 13261, 18, 4709, 2925, 16, 296, 13212, 738, 86, 16, 1496, 2665, 738, 86, 11, 738, 64, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 13, 469, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 9707, 6134, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 2135, 6134, 1002, 1842, 67, 13261, 18, 4709, 2925, 16, 296, 13212, 738, 86, 16, 1496, 2665, 738, 86, 11, 738, 64, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 13, 469, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 9707, 6134, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
builder.getObject(state, name).source = '\n'.join(text).lstrip('\n\t/ ')+'\n/'
obj = builder.getObject(state, name) if obj: obj.source = '\n'.join(text).lstrip('\n\t/ ')+'\n/'
def customQuery(cursor, state, builder): cursor.execute(""" SELECT name, DECODE(line, 1, '/'||chr(10)||'CREATE OR REPLACE ', '')||text FROM user_source WHERE type IN ('%s') ORDER BY name, type, line""" % "', '".join(builder.DbType))
bfd136ac9ae145198693c941adea2547c628575f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/760/bfd136ac9ae145198693c941adea2547c628575f/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1679, 1138, 12, 9216, 16, 919, 16, 2089, 4672, 3347, 18, 8837, 2932, 3660, 9111, 508, 16, 2030, 5572, 12, 1369, 16, 404, 16, 2023, 20081, 15182, 12, 2163, 14047, 16637, 9344, 4869, 23679, 2265, 875, 14047, 96, 955, 4571, 282, 729, 67, 3168, 4852, 225, 618, 2120, 7707, 9, 87, 6134, 10205, 6953, 508, 16, 618, 16, 980, 8395, 738, 14912, 2119, 18, 5701, 12, 9574, 18, 4331, 559, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 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, 1679, 1138, 12, 9216, 16, 919, 16, 2089, 4672, 3347, 18, 8837, 2932, 3660, 9111, 508, 16, 2030, 5572, 12, 1369, 16, 404, 16, 2023, 20081, 15182, 12, 2163, 14047, 16637, 9344, 4869, 23679, 2265, 875, 14047, 96, 955, 4571, 282, 729, 67, 3168, 4852, 225, 618, 2120, 7707, 9, 87, 6134, 10205, 6953, 508, 16, 618, 16, 980, 8395, 738, 14912, 2119, 18, 5701, 12, 9574, 18, 4331, 559, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
reg.register_linear_resample(image['data'], remaped_image['data'], M_inverse, imdata['step'])
reg.register_linear_resample(image, remaped_image, M_inverse, step)
def remap_image(image, parm_vector, resample='linear'): """ remaped_image = remap_image(image, parm_vector, resample='linear') rotates and translates image using the 3 angles and 3 translations in the 6-dim parm_vector. The mapping is stored in the 4x4 M_inverse matrix from the get_inverse_mapping method. Parameters ---------- image : {dictionary} image is the source image to be remapped. it is a dictionary with the data as an ndarray in the ['data'] component. parm_vector : {ndarray} parm_vector is the 6-dimensional vector (3 angles, 3 translations) generated from the registration. resample : {'linear', 'cubic'}, optional Returns ------- remaped_image : {dictionary} Examples -------- image = fmri_series[i] x[0:6] = measures[i]['align_rotate'][0:6] # overwrite the fMRI volume with the aligned volume fmri_series[i] = remap_image(image, x, resample='cubic') """ # # remap imageG to coordinates of imageF (creates imageG') # use the 6 dim parm_vector (3 angles, 3 translations) to remap # M_inverse = get_inverse_mappings(parm_vector) (layers, rows, cols) = image['data'].shape # allocate the zero image remaped_image = np.zeros(layers*rows*cols, dtype=np.uint8).reshape(layers, rows, cols) remaped_image = {'data' : remaped_image, 'mat' : image['mat'], 'dim' : image['dim'], 'fwhm' : image['fwhm']} imdata = build_structs() if resample == 'linear': # trilinear interpolation mapping. reg.register_linear_resample(image['data'], remaped_image['data'], M_inverse, imdata['step']) elif resample == 'cubic': # tricubic convolve interpolation mapping. reg.register_cubic_resample(image['data'], remaped_image['data'], M_inverse, imdata['step']) return remaped_image
a0a06507bdbd3322039b726463a7cc1c63e59774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/a0a06507bdbd3322039b726463a7cc1c63e59774/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 11, 4672, 3536, 849, 5994, 67, 2730, 273, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 6134, 225, 4168, 815, 471, 2162, 815, 1316, 1450, 326, 890, 15479, 471, 890, 7863, 316, 326, 1666, 17, 3509, 19924, 67, 7737, 18, 1021, 2874, 353, 4041, 316, 326, 1059, 92, 24, 490, 67, 22552, 3148, 628, 326, 336, 67, 22552, 67, 6770, 707, 18, 225, 7012, 12181, 1316, 294, 288, 15556, 97, 1316, 353, 326, 1084, 1316, 358, 506, 21674, 1845, 18, 518, 353, 279, 3880, 598, 326, 501, 487, 392, 8304, 316, 326, 10228, 892, 3546, 1794, 18, 225, 19924, 67, 7737, 294, 288, 25681, 97, 19924, 67, 7737, 353, 326, 1666, 17, 31236, 3806, 261, 23, 15479, 16, 890, 7863, 13, 4374, 628, 326, 7914, 18, 225, 19220, 294, 13666, 12379, 2187, 296, 71, 17616, 11, 5779, 3129, 282, 2860, 18365, 849, 5994, 67, 2730, 294, 288, 15556, 97, 225, 19830, 27093, 1316, 273, 10940, 566, 67, 10222, 63, 77, 65, 619, 63, 20, 30, 26, 65, 273, 22692, 63, 77, 23962, 7989, 67, 20342, 3546, 63, 20, 30, 26, 65, 468, 6156, 326, 284, 49, 2259, 3940, 598, 326, 13939, 3940, 10940, 566, 67, 10222, 63, 77, 65, 273, 21674, 67, 2730, 12, 2730, 16, 619, 16, 19220, 2218, 71, 17616, 6134, 225, 3536, 225, 468, 468, 21674, 1316, 43, 358, 5513, 434, 1316, 42, 261, 19787, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 11, 4672, 3536, 849, 5994, 67, 2730, 273, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 6134, 225, 4168, 815, 471, 2162, 815, 1316, 1450, 326, 890, 15479, 471, 890, 7863, 316, 326, 1666, 17, 3509, 19924, 67, 7737, 18, 1021, 2874, 353, 4041, 316, 326, 1059, 92, 24, 490, 67, 22552, 3148, 628, 326, 336, 67, 22552, 67, 6770, 707, 18, 225, 7012, 12181, 1316, 294, 288, 15556, 97, 1316, 353, 326, 1084, 1316, 358, 506, 21674, 1845, 18, 518, 353, 279, 3880, 598, 326, 501, 487, 392, 8304, 316, 326, 10228, 892, 3546, 1794, 18, 225, 19924, 67, 2 ]
fromdate = datetime.datetime.today() todate = datetime.datetime.today()
fromdate = None todate = None
def to_datetime(datestr): numlist = re.findall('\d+', datestr) if len(numlist) != 3: print >>sys.stderr, '%s not in correct format [DD/MM/YYYY]' % datestr return None else: datelist = [] for num in numlist: datelist.append(string.atoi(num)) return datetime.datetime(datelist[2], datelist[1], datelist[0])
f55a79144368a66b96fa92a55d8cec444dbad926 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5095/f55a79144368a66b96fa92a55d8cec444dbad926/supremecourt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 6585, 12, 9683, 313, 4672, 818, 1098, 273, 283, 18, 4720, 454, 2668, 64, 72, 15, 2187, 7811, 313, 13, 309, 562, 12, 2107, 1098, 13, 480, 890, 30, 1172, 1671, 9499, 18, 11241, 16, 1995, 87, 486, 316, 3434, 740, 306, 5698, 19, 8206, 19, 26287, 3864, 738, 7811, 313, 327, 599, 469, 30, 1150, 5449, 273, 5378, 364, 818, 316, 818, 1098, 30, 1150, 5449, 18, 6923, 12, 1080, 18, 270, 11359, 12, 2107, 3719, 327, 3314, 18, 6585, 12, 3404, 5449, 63, 22, 6487, 1150, 5449, 63, 21, 6487, 1150, 5449, 63, 20, 5717, 225, 2, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 6585, 12, 9683, 313, 4672, 818, 1098, 273, 283, 18, 4720, 454, 2668, 64, 72, 15, 2187, 7811, 313, 13, 309, 562, 12, 2107, 1098, 13, 480, 890, 30, 1172, 1671, 9499, 18, 11241, 16, 1995, 87, 486, 316, 3434, 740, 306, 5698, 19, 8206, 19, 26287, 3864, 738, 7811, 313, 327, 599, 469, 30, 1150, 5449, 273, 5378, 364, 818, 316, 818, 1098, 30, 1150, 5449, 18, 6923, 12, 1080, 18, 270, 11359, 12, 2107, 3719, 327, 3314, 18, 6585, 12, 3404, 5449, 63, 22, 6487, 1150, 5449, 63, 21, 6487, 1150, 5449, 63, 20, 5717, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self.is_64bit() and self.is_i686()
return self.is_64bit() and self.is_PentiumIV()
def _is_Nocona(self): return self.is_64bit() and self.is_i686()
19cc4b93b3dd495fd355d77225d3f97e23f85ffb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/19cc4b93b3dd495fd355d77225d3f97e23f85ffb/cpuinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 67, 50, 16550, 69, 12, 2890, 4672, 327, 365, 18, 291, 67, 1105, 3682, 1435, 471, 365, 18, 291, 67, 77, 26, 5292, 1435, 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, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 291, 67, 50, 16550, 69, 12, 2890, 4672, 327, 365, 18, 291, 67, 1105, 3682, 1435, 471, 365, 18, 291, 67, 77, 26, 5292, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
capture_temp=False, assert_no_temp=False):
capture_temp=False, assert_no_temp=False, split_cmd=True):
def __init__(self, base_path=None, template_path=None, environ=None, cwd=None, start_clear=True, ignore_paths=None, ignore_hidden=True, capture_temp=False, assert_no_temp=False): """ Creates an environment. ``base_path`` is used as the current working directory, and generally where changes are looked for. If not given, it will be the directory of the calling script plus ``test-output/``.
1edb8b5be29dbec631d234d0f7427ff0e8b3b22d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8710/1edb8b5be29dbec631d234d0f7427ff0e8b3b22d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1026, 67, 803, 33, 7036, 16, 1542, 67, 803, 33, 7036, 16, 5473, 33, 7036, 16, 7239, 33, 7036, 16, 787, 67, 8507, 33, 5510, 16, 2305, 67, 4481, 33, 7036, 16, 2305, 67, 6345, 33, 5510, 16, 7477, 67, 5814, 33, 8381, 16, 1815, 67, 2135, 67, 5814, 33, 8381, 16, 1416, 67, 4172, 33, 5510, 4672, 3536, 10210, 392, 3330, 18, 225, 12176, 1969, 67, 803, 10335, 353, 1399, 487, 326, 783, 5960, 1867, 16, 471, 19190, 1625, 3478, 854, 27321, 364, 18, 971, 486, 864, 16, 518, 903, 506, 326, 1867, 434, 326, 4440, 2728, 8737, 12176, 3813, 17, 2844, 19, 68, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1026, 67, 803, 33, 7036, 16, 1542, 67, 803, 33, 7036, 16, 5473, 33, 7036, 16, 7239, 33, 7036, 16, 787, 67, 8507, 33, 5510, 16, 2305, 67, 4481, 33, 7036, 16, 2305, 67, 6345, 33, 5510, 16, 7477, 67, 5814, 33, 8381, 16, 1815, 67, 2135, 67, 5814, 33, 8381, 16, 1416, 67, 4172, 33, 5510, 4672, 3536, 10210, 392, 3330, 18, 225, 12176, 1969, 67, 803, 10335, 353, 1399, 487, 326, 783, 5960, 1867, 16, 471, 19190, 1625, 3478, 854, 27321, 364, 18, 971, 486, 864, 16, 518, 903, 506, 326, 1867, 434, 326, 4440, 2728, 8737, 12176, 3813, 17, 2844, 19, 68, 8338, 2, -100, -100, -100, -100, -100, -100 ]
class SimpleXMLRPCRequestHandler(GenericXMLRPCRequestHandler, SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
class SimpleXMLRPCRequestHandler(GenericXMLRPCRequestHandler, SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
def _dispatch(self, method, params): #print 'TERP-CALL : ',method, params import traceback try: n = self.path.split("/")[-1] s = LocalService(n) m = getattr(s, method) s._service._response = None r = m(*params) res = s._service._response if res != None: r = res return r except Exception, e: tb_s = reduce(lambda x, y: x+y, traceback.format_exception( sys.exc_type, sys.exc_value, sys.exc_traceback)) s = str(e) import tools if tools.config['debug_mode']: import pdb tb = sys.exc_info()[2] pdb.post_mortem(tb) raise xmlrpclib.Fault(s, tb_s)
07f8f4943d0e6d1b45e76498021f6b5ff8ed63dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/07f8f4943d0e6d1b45e76498021f6b5ff8ed63dc/netsvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 12, 2890, 16, 707, 16, 859, 4672, 468, 1188, 296, 2560, 52, 17, 13730, 294, 2265, 2039, 16, 859, 1930, 10820, 775, 30, 290, 273, 365, 18, 803, 18, 4939, 2932, 4898, 13, 18919, 21, 65, 272, 273, 3566, 1179, 12, 82, 13, 312, 273, 3869, 12, 87, 16, 707, 13, 272, 6315, 3278, 6315, 2740, 273, 599, 436, 273, 312, 30857, 2010, 13, 400, 273, 272, 6315, 3278, 6315, 2740, 309, 400, 480, 599, 30, 436, 273, 400, 327, 436, 1335, 1185, 16, 425, 30, 8739, 67, 87, 273, 5459, 12, 14661, 619, 16, 677, 30, 619, 15, 93, 16, 10820, 18, 2139, 67, 4064, 12, 2589, 18, 10075, 67, 723, 16, 2589, 18, 10075, 67, 1132, 16, 2589, 18, 10075, 67, 21696, 3719, 272, 273, 609, 12, 73, 13, 1930, 8513, 309, 8513, 18, 1425, 3292, 4148, 67, 3188, 3546, 30, 1930, 10892, 8739, 273, 2589, 18, 10075, 67, 1376, 1435, 63, 22, 65, 10892, 18, 2767, 67, 81, 499, 351, 12, 18587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 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 12, 2890, 16, 707, 16, 859, 4672, 468, 1188, 296, 2560, 52, 17, 13730, 294, 2265, 2039, 16, 859, 1930, 10820, 775, 30, 290, 273, 365, 18, 803, 18, 4939, 2932, 4898, 13, 18919, 21, 65, 272, 273, 3566, 1179, 12, 82, 13, 312, 273, 3869, 12, 87, 16, 707, 13, 272, 6315, 3278, 6315, 2740, 273, 599, 436, 273, 312, 30857, 2010, 13, 400, 273, 272, 6315, 3278, 6315, 2740, 309, 400, 480, 599, 30, 436, 273, 400, 327, 436, 1335, 1185, 16, 425, 30, 8739, 67, 87, 273, 5459, 12, 14661, 619, 16, 677, 30, 619, 15, 93, 16, 10820, 18, 2139, 67, 4064, 12, 2589, 18, 10075, 67, 723, 16, 2589, 18, 10075, 2 ]
files = popenx(cmdline, 'b') fi = files[0] fo = files[1] if self.have_popen3: fe = files[2]
files = subprocess.Popen(cmdline, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE )
def run_cgi(self): """Execute a CGI script.""" path = self.path dir, rest = self.cgi_info
3a145a18c863f2b573b47126f7d6ed35bc3d48af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/3a145a18c863f2b573b47126f7d6ed35bc3d48af/CGIHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 589, 273, 365, 18, 803, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 589, 273, 365, 18, 803, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"Unknown format: must be either 'vtk' or 'vtk-xml'\n"
"Unknown format: must be either 'vtk' or 'vtk-xml'\n"
def setData(self, points=None, fname=None, format=None, radii=None, colors=None): """ Set data to the plot @param points: the array to use for the points of the sphere locations in space @type points: array
6480f756a9f1895c985f2adcc7d2ec5d3da1a3d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/6480f756a9f1895c985f2adcc7d2ec5d3da1a3d2/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7929, 12, 2890, 16, 3143, 33, 7036, 16, 5299, 33, 7036, 16, 740, 33, 7036, 16, 28125, 33, 7036, 16, 5740, 33, 7036, 4672, 3536, 1000, 501, 358, 326, 3207, 632, 891, 3143, 30, 326, 526, 358, 999, 364, 326, 3143, 434, 326, 20041, 7838, 316, 3476, 632, 723, 3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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7929, 12, 2890, 16, 3143, 33, 7036, 16, 5299, 33, 7036, 16, 740, 33, 7036, 16, 28125, 33, 7036, 16, 5740, 33, 7036, 4672, 3536, 1000, 501, 358, 326, 3207, 632, 891, 3143, 30, 326, 526, 358, 999, 364, 326, 3143, 434, 326, 20041, 7838, 316, 3476, 632, 723, 3143, 30, 526, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.state = (nsdict, ['xml'], [])
self.state = (nsdict, {'xml':''}, {})
def __init__(self, node, write, **kw): '''Create and run the implementation.'''
6df2d566784161a533c97fa1bd11ec1e27489fcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6df2d566784161a533c97fa1bd11ec1e27489fcb/c14n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 756, 16, 1045, 16, 2826, 9987, 4672, 9163, 1684, 471, 1086, 326, 4471, 1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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 756, 16, 1045, 16, 2826, 9987, 4672, 9163, 1684, 471, 1086, 326, 4471, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
}
}
def c_code(self, node, nodename, (x, z, gz), (gx,), sub): fail = sub['fail'] ds0, ds1 = self.ds ignore_border = int(self.ignore_border) return """ if (%(x)s->nd != 4 || %(z)s->nd != 4 || %(gz)s->nd != 4) { PyErr_SetString(PyExc_ValueError, "rank error"); %(fail)s; } if ((NULL == %(gx)s) || (CudaNdarray_HOST_DIMS(%(gx)s)[0] != CudaNdarray_HOST_DIMS(%(x)s)[0]) || (CudaNdarray_HOST_DIMS(%(gx)s)[1] != CudaNdarray_HOST_DIMS(%(x)s)[1]) || (CudaNdarray_HOST_DIMS(%(gx)s)[2] != CudaNdarray_HOST_DIMS(%(x)s)[2]) || (CudaNdarray_HOST_DIMS(%(gx)s)[3] != CudaNdarray_HOST_DIMS(%(x)s)[3])) { Py_XDECREF(%(gx)s); %(gx)s = (CudaNdarray*)CudaNdarray_new_null(); if ((NULL == %(gx)s) || CudaNdarray_alloc_contiguous(%(gx)s, 4, CudaNdarray_HOST_DIMS(%(x)s))) { Py_XDECREF(%(gx)s); %(gx)s = NULL; %(fail)s; } } { //TODO: supporting more output columns than threads // make sure we cover every x row when ignore border isset and there's a border present to be ignored int needs_extra_z_col = %(ignore_border)s && (CudaNdarray_HOST_DIMS(%(x)s)[2] %% %(ds0)s); dim3 grid(CudaNdarray_HOST_DIMS(%(z)s)[0],CudaNdarray_HOST_DIMS(%(z)s)[2] + (needs_extra_z_col ? 1 : 0)); dim3 block(CudaNdarray_HOST_DIMS(%(x)s)[3]); kDownsampleMaxGrad_%(nodename)s<%(ds0)s, %(ds1)s> <<<grid, block>>>( CudaNdarray_HOST_DIMS(%(z)s)[0], CudaNdarray_HOST_DIMS(%(z)s)[1], CudaNdarray_HOST_DIMS(%(z)s)[2], CudaNdarray_HOST_DIMS(%(z)s)[3], CudaNdarray_HOST_DIMS(%(x)s)[2], CudaNdarray_HOST_DIMS(%(x)s)[3], CudaNdarray_DEV_DATA(%(x)s), CudaNdarray_HOST_STRIDES(%(x)s)[0], CudaNdarray_HOST_STRIDES(%(x)s)[1], CudaNdarray_HOST_STRIDES(%(x)s)[2], CudaNdarray_HOST_STRIDES(%(x)s)[3], CudaNdarray_DEV_DATA(%(z)s), CudaNdarray_HOST_STRIDES(%(z)s)[0], CudaNdarray_HOST_STRIDES(%(z)s)[1], CudaNdarray_HOST_STRIDES(%(z)s)[2], CudaNdarray_HOST_STRIDES(%(z)s)[3], CudaNdarray_DEV_DATA(%(gz)s), CudaNdarray_HOST_STRIDES(%(gz)s)[0], CudaNdarray_HOST_STRIDES(%(gz)s)[1], CudaNdarray_HOST_STRIDES(%(gz)s)[2], CudaNdarray_HOST_STRIDES(%(gz)s)[3], CudaNdarray_DEV_DATA(%(gx)s)); CNDA_THREAD_SYNC; cudaError_t err = cudaGetLastError(); if( cudaSuccess != err) { PyErr_Format(PyExc_RuntimeError, "Cuda error: %%s: %%s. (grid: %%i x %%i; block: %%i x %%i x %%i)\\n", "kDownsampleMaxGrad_%(nodename)s", cudaGetErrorString(err), grid.x, grid.y, block.x, block.y, block.z); %(fail)s; } } """ % locals()
98f8608be75b8b81997fa956395f0063b48ea567 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/98f8608be75b8b81997fa956395f0063b48ea567/blas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 710, 12, 2890, 16, 756, 16, 14003, 1069, 16, 261, 92, 16, 998, 16, 14136, 3631, 261, 75, 92, 16, 3631, 720, 4672, 2321, 273, 720, 3292, 6870, 3546, 3780, 20, 16, 3780, 21, 273, 365, 18, 2377, 2305, 67, 8815, 273, 509, 12, 2890, 18, 6185, 67, 8815, 13, 327, 3536, 309, 6142, 12, 92, 13, 87, 2122, 4880, 480, 1059, 747, 8975, 94, 13, 87, 2122, 4880, 480, 1059, 747, 8975, 9764, 13, 87, 2122, 4880, 480, 1059, 13, 288, 4707, 2524, 67, 694, 780, 12, 9413, 29924, 67, 23610, 16, 315, 11500, 555, 8863, 8975, 6870, 13, 87, 31, 289, 309, 14015, 8560, 422, 8975, 75, 92, 13, 87, 13, 747, 261, 39, 1100, 6491, 72, 1126, 67, 8908, 67, 2565, 3537, 9275, 12, 75, 92, 13, 87, 25146, 20, 65, 480, 385, 1100, 6491, 72, 1126, 67, 8908, 67, 2565, 3537, 9275, 12, 92, 13, 87, 25146, 20, 5717, 747, 261, 39, 1100, 6491, 72, 1126, 67, 8908, 67, 2565, 3537, 9275, 12, 75, 92, 13, 87, 25146, 21, 65, 480, 385, 1100, 6491, 72, 1126, 67, 8908, 67, 2565, 3537, 9275, 12, 92, 13, 87, 25146, 21, 5717, 747, 261, 39, 1100, 6491, 72, 1126, 67, 8908, 67, 2565, 3537, 9275, 12, 75, 92, 13, 87, 25146, 22, 65, 480, 385, 1100, 6491, 72, 1126, 67, 8908, 67, 2565, 3537, 9275, 12, 92, 13, 87, 25146, 22, 5717, 747, 261, 39, 1100, 6491, 72, 1126, 67, 8908, 67, 2565, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 710, 12, 2890, 16, 756, 16, 14003, 1069, 16, 261, 92, 16, 998, 16, 14136, 3631, 261, 75, 92, 16, 3631, 720, 4672, 2321, 273, 720, 3292, 6870, 3546, 3780, 20, 16, 3780, 21, 273, 365, 18, 2377, 2305, 67, 8815, 273, 509, 12, 2890, 18, 6185, 67, 8815, 13, 327, 3536, 309, 6142, 12, 92, 13, 87, 2122, 4880, 480, 1059, 747, 8975, 94, 13, 87, 2122, 4880, 480, 1059, 747, 8975, 9764, 13, 87, 2122, 4880, 480, 1059, 13, 288, 4707, 2524, 67, 694, 780, 12, 9413, 29924, 67, 23610, 16, 315, 11500, 555, 8863, 8975, 6870, 13, 87, 31, 289, 309, 14015, 8560, 422, 8975, 75, 92, 13, 87, 13, 747, 261, 39, 2 ]
class RuleLine(object): """A rule line is a single "Allow:" (allowance==1) or "Disallow:" (allowance==0) followed by a path."""
class RuleLine: """A rule line is a single "Allow:" (allowance==True) or "Disallow:" (allowance==False) followed by a path."""
def __str__(self): ret = "" for entry in self.entries: ret = ret + str(entry) + "\n" return ret
9f86ae009f1e74ee040c0d6e683bcba6894a674b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4845/9f86ae009f1e74ee040c0d6e683bcba6894a674b/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 325, 273, 1408, 364, 1241, 316, 365, 18, 8219, 30, 325, 273, 325, 397, 609, 12, 4099, 13, 397, 1548, 82, 6, 327, 325, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 701, 972, 12, 2890, 4672, 325, 273, 1408, 364, 1241, 316, 365, 18, 8219, 30, 325, 273, 325, 397, 609, 12, 4099, 13, 397, 1548, 82, 6, 327, 325, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert(self.debugPrint("setAvatarPhysicsIndicator()"))
assert self.notify.debugStateCall(self)
def setAvatarPhysicsIndicator(self, indicator): """ indicator is a NodePath """ assert(self.debugPrint("setAvatarPhysicsIndicator()")) self.cWallSphereNodePath.show()
abc151a082286523619150b15b5dc30864de5bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/abc151a082286523619150b15b5dc30864de5bde/GravityWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 23999, 3731, 1900, 2102, 13140, 12, 2890, 16, 10664, 4672, 3536, 10664, 353, 279, 2029, 743, 3536, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 365, 18, 71, 26558, 22747, 907, 743, 18, 4500, 1435, 2, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23999, 3731, 1900, 2102, 13140, 12, 2890, 16, 10664, 4672, 3536, 10664, 353, 279, 2029, 743, 3536, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 365, 18, 71, 26558, 22747, 907, 743, 18, 4500, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
buffer += key if key == '\n': break return buffer
buffer += key if key == '\n': break finally: curses.raw(False) return buffer.encode(getpreferredencoding())
def readline(self): """I can't think of any reason why anything other than readline would be useful in the context of an interactive interpreter so this is the only one I've done anything with. The others are just there in case someone does something weird to stop it from blowing up."""
cd3b707f7e1acfdd7180d26c1bb4a6a98ccb3a75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/cd3b707f7e1acfdd7180d26c1bb4a6a98ccb3a75/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 4672, 3536, 45, 848, 1404, 15507, 434, 1281, 3971, 11598, 6967, 1308, 2353, 12023, 4102, 506, 5301, 316, 326, 819, 434, 392, 12625, 16048, 1427, 333, 353, 326, 1338, 1245, 467, 8081, 2731, 6967, 598, 18, 1021, 10654, 854, 2537, 1915, 316, 648, 18626, 1552, 5943, 20843, 358, 2132, 518, 628, 324, 821, 310, 731, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12023, 12, 2890, 4672, 3536, 45, 848, 1404, 15507, 434, 1281, 3971, 11598, 6967, 1308, 2353, 12023, 4102, 506, 5301, 316, 326, 819, 434, 392, 12625, 16048, 1427, 333, 353, 326, 1338, 1245, 467, 8081, 2731, 6967, 598, 18, 1021, 10654, 854, 2537, 1915, 316, 648, 18626, 1552, 5943, 20843, 358, 2132, 518, 628, 324, 821, 310, 731, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(S_IFLNK, "l", S_IFREG, "-", S_IFBLK, "b", S_IFDIR, "d", S_IFCHR, "c", S_IFIFO, "p"), (TUREAD, "r"), (TUWRITE, "w"), (TUEXEC, "x", TSUID, "S", TUEXEC|TSUID, "s"), (TGREAD, "r"), (TGWRITE, "w"), (TGEXEC, "x", TSGID, "S", TGEXEC|TSGID, "s"), (TOREAD, "r"), (TOWRITE, "w"), (TOEXEC, "x", TSVTX, "T", TOEXEC|TSVTX, "t"))
((S_IFLNK, "l"), (S_IFREG, "-"), (S_IFBLK, "b"), (S_IFDIR, "d"), (S_IFCHR, "c"), (S_IFIFO, "p")), ((TUREAD, "r"),), ((TUWRITE, "w"),), ((TUEXEC|TSUID, "s"), (TSUID, "S"), (TUEXEC, "x")), ((TGREAD, "r"),), ((TGWRITE, "w"),), ((TGEXEC|TSGID, "s"), (TSGID, "S"), (TGEXEC, "x")), ((TOREAD, "r"),), ((TOWRITE, "w"),), ((TOEXEC|TSVTX, "t"), (TSVTX, "T"), (TOEXEC, "x")) )
def copyfileobj(src, dst, length=None): """Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. """ if length == 0: return if length is None: shutil.copyfileobj(src, dst) return BUFSIZE = 16 * 1024 blocks, remainder = divmod(length, BUFSIZE) for b in xrange(blocks): buf = src.read(BUFSIZE) if len(buf) < BUFSIZE: raise IOError, "end of file reached" dst.write(buf) if remainder != 0: buf = src.read(remainder) if len(buf) < remainder: raise IOError, "end of file reached" dst.write(buf) return
8bc462fcafe9f11094f0185813f95c0f569b112e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bc462fcafe9f11094f0185813f95c0f569b112e/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 769, 422, 374, 30, 327, 309, 769, 353, 599, 30, 11060, 18, 3530, 768, 2603, 12, 4816, 16, 3046, 13, 327, 225, 10937, 42, 4574, 273, 2872, 380, 6250, 4398, 16, 10022, 273, 26105, 12, 2469, 16, 10937, 42, 4574, 13, 364, 324, 316, 12314, 12, 7996, 4672, 1681, 273, 1705, 18, 896, 12, 3000, 42, 4574, 13, 309, 562, 12, 4385, 13, 411, 10937, 42, 4574, 30, 1002, 8340, 16, 315, 409, 434, 585, 8675, 6, 3046, 18, 2626, 12, 4385, 13, 225, 309, 10022, 480, 374, 30, 1681, 273, 1705, 18, 896, 12, 2764, 25407, 13, 309, 562, 12, 4385, 13, 411, 10022, 30, 1002, 8340, 16, 315, 409, 434, 585, 8675, 6, 3046, 18, 2626, 12, 4385, 13, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 769, 422, 374, 30, 327, 309, 769, 353, 599, 30, 11060, 18, 3530, 768, 2603, 12, 4816, 16, 3046, 13, 327, 225, 10937, 42, 4574, 273, 2872, 380, 6250, 4398, 16, 10022, 273, 26105, 12, 2469, 16, 10937, 42, 4574, 13, 364, 324, 316, 12314, 12, 7996, 4672, 1681, 273, 1705, 18, 896, 12, 3000, 42, 4574, 13, 309, 562, 12, 4385, 13, 411, 10937, 42, 4574, 30, 1002, 8340, 16, 315, 409, 434, 585, 8675, 6, 3046, 18, 2626, 12, 4385, 13, 225, 2 ]