rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
parser.readfp(file)
try: parser.readfp(file) except: return None
def load(self): """Load data from the file
9cef252a991da44dfd5ef8bfbee9344920cf402a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/9cef252a991da44dfd5ef8bfbee9344920cf402a/persistance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 3536, 2563, 501, 628, 326, 585, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 3536, 2563, 501, 628, 326, 585, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if parts=[]:
if parts==[]:
def catname(self): """The name of the page without the namespace part. Gives an error if the page is from the main namespace.""" title=self.linkname() parts=title.split(':') parts=parts[1:] if parts=[]: raise NoNamespace(self) return ':'.join(parts)
8a92aaf761d44fd6dc0dda9534522d1549aae12b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/8a92aaf761d44fd6dc0dda9534522d1549aae12b/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6573, 529, 12, 2890, 4672, 3536, 1986, 508, 434, 326, 1363, 2887, 326, 1981, 1087, 18, 611, 3606, 392, 555, 309, 326, 1363, 353, 628, 326, 2774, 1981, 12123, 2077, 33, 2890, 18, 1232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6573, 529, 12, 2890, 4672, 3536, 1986, 508, 434, 326, 1363, 2887, 326, 1981, 1087, 18, 611, 3606, 392, 555, 309, 326, 1363, 353, 628, 326, 2774, 1981, 12123, 2077, 33, 2890, 18, 1232, ...
def test_resource_doesnt_exists(self):
def test_resource_exists(self):
def test_resource_doesnt_exists(self): att = Attachment(self.env, 'wiki', 'WikiStart') att.insert('file.txt', StringIO(''), 1) self.assertTrue(resource_exists(self.env, att.resource))
fef2a15f3bb235344dba8bd689663115917b693b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/fef2a15f3bb235344dba8bd689663115917b693b/attachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3146, 67, 1808, 12, 2890, 4672, 2403, 273, 15939, 12, 2890, 18, 3074, 16, 296, 13044, 2187, 296, 25438, 1685, 6134, 2403, 18, 6387, 2668, 768, 18, 5830, 2187, 15777, 2668, 1989...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3146, 67, 1808, 12, 2890, 4672, 2403, 273, 15939, 12, 2890, 18, 3074, 16, 296, 13044, 2187, 296, 25438, 1685, 6134, 2403, 18, 6387, 2668, 768, 18, 5830, 2187, 15777, 2668, 1989...
self.win.addstr(y, x, msg[:self.maxX - x - 1], attr)
try: self.win.addstr(y, x, msg[:self.maxX - x - 1], attr) except: pass
def addstr(self, y, x, msg, attr=curses.A_NORMAL): """ Writes string to subwindow if able. This takes into account screen bounds to avoid making curses upset. This should only be called from the context of a panel's draw method. Arguments: y - vertical location x - horizontal location msg - text to be added att...
a14a1480a82f81aaf80b954ecbeefe4df2803f59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13459/a14a1480a82f81aaf80b954ecbeefe4df2803f59/panel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 701, 12, 2890, 16, 677, 16, 619, 16, 1234, 16, 1604, 33, 1397, 2420, 18, 37, 67, 15480, 4672, 3536, 30053, 533, 358, 720, 5668, 309, 7752, 18, 1220, 5530, 1368, 2236, 5518, 4972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 701, 12, 2890, 16, 677, 16, 619, 16, 1234, 16, 1604, 33, 1397, 2420, 18, 37, 67, 15480, 4672, 3536, 30053, 533, 358, 720, 5668, 309, 7752, 18, 1220, 5530, 1368, 2236, 5518, 4972, ...
view = gtk.TreeView() self.view = PlayList(view, name) swin.add(view)
self.view = PlayList(name) swin.add(self.view)
def initialize_window(self, name): win = self.win = gtk.Window() win.set_destroy_with_parent(True) win.set_default_size(400, 400) win.set_border_width(12)
68083c738a5c22a2d7652675c6efe895a6f082e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/68083c738a5c22a2d7652675c6efe895a6f082e4/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 5668, 12, 2890, 16, 508, 4672, 5657, 273, 365, 18, 8082, 273, 22718, 18, 3829, 1435, 5657, 18, 542, 67, 11662, 67, 1918, 67, 2938, 12, 5510, 13, 5657, 18, 542, 67, 1886, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 5668, 12, 2890, 16, 508, 4672, 5657, 273, 365, 18, 8082, 273, 22718, 18, 3829, 1435, 5657, 18, 542, 67, 11662, 67, 1918, 67, 2938, 12, 5510, 13, 5657, 18, 542, 67, 1886, 67...
print "SEx PREPROCESSING: uncompressing", fz
debug("Sextractor Preprocessing: uncompressing %s" % fz)
def process(userData, kind_id, argv): """ Execute system call then updates the database consequently. exit_code != 0 means problem. """ user_id = userData['UserID'] kind = userData['Kind'] # Log file to store storeLog = '_condor_stderr' success = 0 db = DB(host = DATABASE_HOST, user = DATABASE_USER, passwd = DATABASE...
13b9a9b87ab9f25ee174dc029876ecccb77b01ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/13b9a9b87ab9f25ee174dc029876ecccb77b01ad/wrapper_processing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1355, 751, 16, 3846, 67, 350, 16, 5261, 4672, 3536, 7903, 2619, 745, 1508, 4533, 326, 2063, 356, 9116, 715, 18, 2427, 67, 710, 480, 374, 4696, 6199, 18, 3536, 225, 729, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1355, 751, 16, 3846, 67, 350, 16, 5261, 4672, 3536, 7903, 2619, 745, 1508, 4533, 326, 2063, 356, 9116, 715, 18, 2427, 67, 710, 480, 374, 4696, 6199, 18, 3536, 225, 729, 67, ...
page = PageTemplateFile("zpt/multiplechoice_barchart_statistics.zpt", globals())
page = PageTemplateFile("zpt/multiplechoice_piechart_statistics.zpt", globals())
def render(self, answers): """Render statistics as HTML code""" total, answered, unanswered, per_choice = self.calculate(self.question, answers) chart = pygooglechart.PieChart3D(600, 170) data = [unanswered[0]] data += [i[1] for i in per_choice] chart.add_data(data) legend = ['No choice'] # TODO translate 'No choice' l...
3fc7ab9cdfc2704dd83eabdef24025688a8a9fc4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/3fc7ab9cdfc2704dd83eabdef24025688a8a9fc4/MultipleChoicePieChartStatistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 12415, 4672, 3536, 3420, 7691, 487, 3982, 981, 8395, 2078, 16, 5803, 329, 16, 640, 13490, 329, 16, 1534, 67, 11569, 273, 365, 18, 11162, 12, 2890, 18, 4173, 16, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 12415, 4672, 3536, 3420, 7691, 487, 3982, 981, 8395, 2078, 16, 5803, 329, 16, 640, 13490, 329, 16, 1534, 67, 11569, 273, 365, 18, 11162, 12, 2890, 18, 4173, 16, 124...
req.add_data(urllib.urlencode({'user_name': username, 'password': password, 'login': 'Login'}))
complete_params.update({'user_name': username, 'password': password, 'login': 'Login'}) if complete_params: req.add_data(urllib.urlencode(complete_params))
def send_request(self, method, req_params=None, auth_params=None): '''Make an HTTP request to a server method.
a14b9632811692eefd0e37dbe27cae2c3e005d88 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/a14b9632811692eefd0e37dbe27cae2c3e005d88/proxyclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 2293, 12, 2890, 16, 707, 16, 1111, 67, 2010, 33, 7036, 16, 1357, 67, 2010, 33, 7036, 4672, 9163, 6464, 392, 2239, 590, 358, 279, 1438, 707, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 2293, 12, 2890, 16, 707, 16, 1111, 67, 2010, 33, 7036, 16, 1357, 67, 2010, 33, 7036, 4672, 9163, 6464, 392, 2239, 590, 358, 279, 1438, 707, 18, 2, -100, -100, -100, -100, -...
@property path: path to MPlayer or its name in PATH
@property path: path to MPlayer or name of executable as found in PATH
def writable(): return False
b388a55c9f6c5cefea8afa815534a9bca3d8ae97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12327/b388a55c9f6c5cefea8afa815534a9bca3d8ae97/pymplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9691, 13332, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9691, 13332, 327, 1083, 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, ...
else: result.append(literal_text)
def vformat(self, format_string, args, kwargs): used_args = self.get_empty_used_args() result = [] for literal_text, field_name, format_spec, conversion in \ self.parse(format_string): if literal_text is None: # this is some markup, find the object and do # the formatting
61bfb0589bb8fe161bee757cd7fd33877e6d7cda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/61bfb0589bb8fe161bee757cd7fd33877e6d7cda/string.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 2139, 12, 2890, 16, 740, 67, 1080, 16, 833, 16, 1205, 4672, 1399, 67, 1968, 273, 365, 18, 588, 67, 5531, 67, 3668, 67, 1968, 1435, 563, 273, 5378, 364, 7158, 67, 955, 16, 652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 2139, 12, 2890, 16, 740, 67, 1080, 16, 833, 16, 1205, 4672, 1399, 67, 1968, 273, 365, 18, 588, 67, 5531, 67, 3668, 67, 1968, 1435, 563, 273, 5378, 364, 7158, 67, 955, 16, 652, ...
est1, maxc, est2 = row[-1], row[-2], row[-3]
est1, maxc, est2 = row[-1], abs(row[-2]), row[-3]
def nsum(f, interval, maxterms=None, method='hybrid', verbose=False): """ Computes the sum of f(k) for k = a, a+1, a+2, ..., b where [a, b] = interval, a = -inf and/or b = +inf. Two simple examples of infinite series that can be summed by :func:`nsum`, where the first converges rapidly and the second converges slowly, ...
3e8a3a5f2b44d2df03d505873e0241194049c09d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/3e8a3a5f2b44d2df03d505873e0241194049c09d/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 1364, 12, 74, 16, 3673, 16, 943, 10112, 33, 7036, 16, 707, 2218, 18112, 14400, 2187, 3988, 33, 8381, 4672, 3536, 14169, 281, 326, 2142, 434, 284, 12, 79, 13, 364, 417, 273, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 1364, 12, 74, 16, 3673, 16, 943, 10112, 33, 7036, 16, 707, 2218, 18112, 14400, 2187, 3988, 33, 8381, 4672, 3536, 14169, 281, 326, 2142, 434, 284, 12, 79, 13, 364, 417, 273, 279, ...
return None finally: file.close()
return None
def OpenFile(self, path=''): if path == '': fileDlg = wx.FileDialog(self.theMainFrame, style=wx.OPEN) if not fileDlg.ShowModal() == wx.ID_OK: return path = fileDlg.GetPath() self.AddFileToHistory(path) try: file = open(path ,"r") textContent = file.read() except: # Todo: better error handling? Just print error messag...
cc443dd98e01d739acfd83b09946a7583c28ee2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14712/cc443dd98e01d739acfd83b09946a7583c28ee2f/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25284, 12, 2890, 16, 589, 2218, 11, 4672, 309, 589, 422, 875, 30, 585, 40, 23623, 273, 7075, 18, 812, 6353, 12, 2890, 18, 5787, 6376, 3219, 16, 2154, 33, 27226, 18, 11437, 13, 309, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25284, 12, 2890, 16, 589, 2218, 11, 4672, 309, 589, 422, 875, 30, 585, 40, 23623, 273, 7075, 18, 812, 6353, 12, 2890, 18, 5787, 6376, 3219, 16, 2154, 33, 27226, 18, 11437, 13, 309, 4...
s = "%s %r" % (month_name[themonth], theyear)
s = month_name[themonth] if withyear: s = "%s %r" % (s, theyear)
def formatmonthname(self, theyear, themonth, width): """ Return a formatted month name. """ s = "%s %r" % (month_name[themonth], theyear) return s.center(width)
243815ee949d8494ecadb24f0872307909b05fc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/243815ee949d8494ecadb24f0872307909b05fc8/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 7496, 529, 12, 2890, 16, 2898, 2091, 16, 2182, 2152, 16, 1835, 4672, 3536, 2000, 279, 4955, 3138, 508, 18, 3536, 272, 273, 3138, 67, 529, 63, 451, 351, 2152, 65, 309, 598, 6874, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 7496, 529, 12, 2890, 16, 2898, 2091, 16, 2182, 2152, 16, 1835, 4672, 3536, 2000, 279, 4955, 3138, 508, 18, 3536, 272, 273, 3138, 67, 529, 63, 451, 351, 2152, 65, 309, 598, 6874, ...
absoluteTargetPathname = os.path.join(self.config.storageRoot, currentDirectory[6:])
absoluteTargetPathname = os.path.join(self.config.storageRoot, relativeTargetPathname[6:])
def priorityJobAllocationLoop(self): try: self.priorityJobAllocationDatabaseConnection = psycopg2.connect(self.config.databaseDSN) self.priorityJobAllocationCursor = self.priorityJobAllocationDatabaseConnection.cursor() except: self.quit = True socorro.lib.util.reportExceptionAndAbort(logger) # can't continue without a...
fc3b20c028dd46580532f76cbecf3d78d1dab7f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/fc3b20c028dd46580532f76cbecf3d78d1dab7f0/monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4394, 2278, 17353, 6452, 12, 2890, 4672, 775, 30, 365, 18, 8457, 2278, 17353, 4254, 1952, 273, 4250, 93, 22295, 75, 22, 18, 3612, 12, 2890, 18, 1425, 18, 6231, 3948, 50, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4394, 2278, 17353, 6452, 12, 2890, 4672, 775, 30, 365, 18, 8457, 2278, 17353, 4254, 1952, 273, 4250, 93, 22295, 75, 22, 18, 3612, 12, 2890, 18, 1425, 18, 6231, 3948, 50, 13, 365, 18, ...
except DoesNotExistError: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Recieved a DoesNotExistError while calling interface.acquire_vessels")
def acquire_resources(auth, rspec): """ <Purpose> Acquires resources for users over XMLRPC. <Arguments> auth An authorization dict of the form {'username':username, 'password':password} rspec A resource specificiation dict of the form {'rspec_type':type, 'number_of_nodes':num} <Exceptions> Raises xmlrpclib Fault object...
f18ee9fdda2c7ff2bc524b991ff88cb6c55b98e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/f18ee9fdda2c7ff2bc524b991ff88cb6c55b98e8/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10533, 67, 4683, 12, 1944, 16, 436, 2793, 4672, 3536, 411, 10262, 4150, 34, 12848, 4138, 2703, 364, 3677, 1879, 3167, 8087, 18, 411, 4628, 34, 1357, 1922, 6093, 2065, 434, 326, 646, 1366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10533, 67, 4683, 12, 1944, 16, 436, 2793, 4672, 3536, 411, 10262, 4150, 34, 12848, 4138, 2703, 364, 3677, 1879, 3167, 8087, 18, 411, 4628, 34, 1357, 1922, 6093, 2065, 434, 326, 646, 1366...
name = 'mod' mock = PyPycLoaderMock({}, {name: {'path': os.path.join('path', 'to', 'mod'), 'bc': b''}}) with util.uncache(name), self.assertRaises(ImportError):
name = 'mod' bc = {name: {'path': os.path.join('path', 'to', 'mod'), 'bc': b'XXX'}} mock = PyPycLoaderMock({name: None}, bc) with util.uncache(name), self.assertRaises(ValueError):
def test_bad_bytecode(self): # Bad code object bytecode should lead to an ImportError. name = 'mod' mock = PyPycLoaderMock({}, {name: {'path': os.path.join('path', 'to', 'mod'), 'bc': b''}}) with util.uncache(name), self.assertRaises(ImportError): mock.load_module(name)
442b4091c0ff004933136d9119e5fe619fb18159 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/442b4091c0ff004933136d9119e5fe619fb18159/test_abc_loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 1637, 16651, 12, 2890, 4672, 468, 6107, 981, 733, 22801, 1410, 5871, 358, 392, 11308, 18, 508, 273, 296, 1711, 11, 6533, 273, 288, 529, 30, 13666, 803, 4278, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 1637, 16651, 12, 2890, 4672, 468, 6107, 981, 733, 22801, 1410, 5871, 358, 392, 11308, 18, 508, 273, 296, 1711, 11, 6533, 273, 288, 529, 30, 13666, 803, 4278, 1140, ...
str = ' '*(width-2) + '<B>'+`uid`+'</B>\n'
str = ' '*(width-2) + '<b>'+`uid`+'</b>\n'
def _base_tree(self, uid, width=None, postfix=''): """ Return an HTML picture showing a class's base tree, with multiple inheritance.
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1969, 67, 3413, 12, 2890, 16, 4555, 16, 1835, 33, 7036, 16, 18923, 2218, 11, 4672, 3536, 2000, 392, 3982, 15406, 17253, 279, 667, 1807, 1026, 2151, 16, 598, 3229, 16334, 18, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1969, 67, 3413, 12, 2890, 16, 4555, 16, 1835, 33, 7036, 16, 18923, 2218, 11, 4672, 3536, 2000, 392, 3982, 15406, 17253, 279, 667, 1807, 1026, 2151, 16, 598, 3229, 16334, 18, 2, -1...
changecat.startswith(u'utgr ')):
changecat.startswith(u'utgr')):
def _parseSFSR(self,files): """Parsear ut det SFSR-registret som innehller alla ndringar i lagtexten frn HTML-filer""" all_attribs = [] r = Register() for f in files: soup = Util.loadSoup(f) r.rubrik = Util.elementText(soup.body('table')[2]('tr')[1]('td')[0]) changes = soup.body('table')[3:-2] for table in changes: kwa...
27881e47dab4fb6004d91ef4a7ad106869536e15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4027/27881e47dab4fb6004d91ef4a7ad106869536e15/SFS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 55, 4931, 54, 12, 2890, 16, 2354, 4672, 3536, 3201, 297, 5218, 3023, 348, 4931, 54, 17, 1574, 376, 1349, 4737, 316, 4644, 25356, 749, 777, 69, 290, 3069, 310, 297, 277, 1724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 55, 4931, 54, 12, 2890, 16, 2354, 4672, 3536, 3201, 297, 5218, 3023, 348, 4931, 54, 17, 1574, 376, 1349, 4737, 316, 4644, 25356, 749, 777, 69, 290, 3069, 310, 297, 277, 1724...
var h = trim(l[0].innerHTML);
var h = l[0].innerHTML;
def javascript(): s = r"""
81dc5f988fe5a88dd1a6e92466f139e7857baeb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/81dc5f988fe5a88dd1a6e92466f139e7857baeb8/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11341, 13332, 272, 273, 436, 8395, 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, -...
print 'Changing page %s' % (to_pl)
print "Changing page %s" % (to_pl)
def treat(to_pl): try: to_text = to_pl.get() interwikis = to_pl.interwiki() except wikipedia.IsRedirectPage: pass from_pl = '' for interwiki in interwikis: if interwiki.code() == from_lang: from_pl = interwiki if from_pl == '': print 'Interwiki link to ' + from_lang + ' not found.' raise NoInterwiki('Interwiki link not...
4fdfce26072f0411d6e124ab82fef024a3154034 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/4fdfce26072f0411d6e124ab82fef024a3154034/copy_table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10116, 12, 869, 67, 412, 4672, 775, 30, 358, 67, 955, 273, 358, 67, 412, 18, 588, 1435, 1554, 11999, 291, 273, 358, 67, 412, 18, 2761, 13044, 1435, 1335, 21137, 18, 2520, 5961, 1964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10116, 12, 869, 67, 412, 4672, 775, 30, 358, 67, 955, 273, 358, 67, 412, 18, 588, 1435, 1554, 11999, 291, 273, 358, 67, 412, 18, 2761, 13044, 1435, 1335, 21137, 18, 2520, 5961, 1964, ...
print 'No UNSIGNED header card, or unexpected BSCALE or BZERO card: not an SDSS idR file.'
print 'No UNSIGNED header card: not an SDSS idR file.'
def fix_sdss_idr(hdu): hdr = hdu.header.copy() if hdr.get('SIMPLE', True): print 'SIMPLE = T: not an SDSS idR file.' return hdu print 'Setting SIMPLE = True' hdr.update('SIMPLE', True, 'FITS compliant (via fix-sdss-idr.py)') if hdr.get('SDSS', None) == pyfits.UNDEFINED: print 'Setting SDSS = True' hdr['SDSS'] = True ...
14ec28717337c70419874d202e02ba3fe458cf2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7059/14ec28717337c70419874d202e02ba3fe458cf2f/fix-sdss-idr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 6427, 1049, 67, 350, 86, 12, 76, 2544, 4672, 7723, 273, 22320, 18, 3374, 18, 3530, 1435, 225, 309, 7723, 18, 588, 2668, 31669, 900, 2187, 1053, 4672, 1172, 296, 31669, 900, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 6427, 1049, 67, 350, 86, 12, 76, 2544, 4672, 7723, 273, 22320, 18, 3374, 18, 3530, 1435, 225, 309, 7723, 18, 588, 2668, 31669, 900, 2187, 1053, 4672, 1172, 296, 31669, 900, 2...
See http://svn.parisson.org/telemeta/ for more informations.
See http://telemeta.org for more informations.
def fullsplit(path, result=None): """ Split a pathname into components (the opposite of os.path.join) in a platform-neutral way. """ if result is None: result = [] head, tail = os.path.split(path) if head == '': return [tail] + result if head == path: return result return fullsplit(head, [tail] + result)
13b11a8aceb588e14cea30b9632c558950a9b7c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12043/13b11a8aceb588e14cea30b9632c558950a9b7c7/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 4939, 12, 803, 16, 563, 33, 7036, 4672, 3536, 5385, 279, 9806, 1368, 4085, 261, 5787, 20759, 434, 1140, 18, 803, 18, 5701, 13, 316, 279, 4072, 17, 4644, 14566, 287, 4031, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 4939, 12, 803, 16, 563, 33, 7036, 4672, 3536, 5385, 279, 9806, 1368, 4085, 261, 5787, 20759, 434, 1140, 18, 803, 18, 5701, 13, 316, 279, 4072, 17, 4644, 14566, 287, 4031, 18, 353...
self.filenameMetadata = result.findOne(Metadata)
self.filenameMetadata = result.findOne(Episode)
def gotFilenameMetadata(self, result): self.filenameMetadata = result.findOne(Metadata) self.chain2.start(result)
48bdf73dd156b6a94bf265a9e4e0f10ff49f3b31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/48bdf73dd156b6a94bf265a9e4e0f10ff49f3b31/episodetagger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 5359, 2277, 12, 2890, 16, 563, 4672, 365, 18, 3459, 2277, 273, 563, 18, 4720, 3335, 12, 18918, 11802, 13, 365, 18, 5639, 22, 18, 1937, 12, 2088, 13, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2363, 5359, 2277, 12, 2890, 16, 563, 4672, 365, 18, 3459, 2277, 273, 563, 18, 4720, 3335, 12, 18918, 11802, 13, 365, 18, 5639, 22, 18, 1937, 12, 2088, 13, 2, -100, -100, -100, -100, ...
self.forcecloseonsinsert = request.get('forcecloseonsinsert', self.forcecloseonsinsert)
self.forcecloseoninsert = request.get('forcecloseoninsert', self.forcecloseoninsert)
def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) self.showbreadcrumbs = request.get('showbreadcrumbs', self.showbreadcrumbs) self.setScopeInfos(context, request, self.showbreadcrumbs) # use self.multiselect = False (or multiselect = False in...
e540a2cfd26b242ae3a221b2c7539d7ca9a70900 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/e540a2cfd26b242ae3a221b2c7539d7ca9a70900/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 225, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 590, 273, 279, 85, 67, 7872, 12, 2890, 18, 2293, 13, 1339, 273, 590, 18, 588, 2668, 7042, ...
sage: g.plot(layout = "graphviz", prog = "dot") sage: g.plot(layout = "graphviz", prog = "neato") sage: g.plot(layout = "graphviz", prog = "twopi") sage: g.plot(layout = "graphviz", prog = "fdp")
sage: g.plot(layout = "graphviz", prog = "dot") sage: g.plot(layout = "graphviz", prog = "neato") sage: g.plot(layout = "graphviz", prog = "twopi") sage: g.plot(layout = "graphviz", prog = "fdp")
def layout_graphviz(self, dim = 2, prog = 'dot', **options): """ Calls ``graphviz`` to compute a layout of the vertices of this graph.
06f830c7a677dbabf75020fadb7c4c3325a771f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/06f830c7a677dbabf75020fadb7c4c3325a771f8/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3511, 67, 4660, 23167, 12, 2890, 16, 2464, 273, 576, 16, 11243, 273, 296, 9811, 2187, 2826, 2116, 4672, 3536, 23665, 12176, 4660, 23167, 10335, 358, 3671, 279, 3511, 434, 326, 6928, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3511, 67, 4660, 23167, 12, 2890, 16, 2464, 273, 576, 16, 11243, 273, 296, 9811, 2187, 2826, 2116, 4672, 3536, 23665, 12176, 4660, 23167, 10335, 358, 3671, 279, 3511, 434, 326, 6928, 434, ...
""" Return docstring for this unit. EXAMPLES:: sage: print units.area.acre._sage_doc_() Defined to be 10 square chains or 4840 square yards. Approximately equal to 4046.856 square meters. """ return unitdocs(self)
""" Return docstring for this unit. EXAMPLES:: sage: print units.area.acre._sage_doc_() Defined to be 10 square chains or 4840 square yards. Approximately equal to 4046.856 square meters. """ return unitdocs(self)
def _sage_doc_(self):
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 87, 410, 67, 2434, 67, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 87, 410, 67, 2434, 67, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
import time match=re.search(r'\d+\-\d+\-\d+ \d+:\d+:\d+', datetext) if match: return(convert_datetext_to_datestruct(datetext)) datetext=datetext.split(' ')[0] if re.search(r'\d+\-\d+\-\d+', datetext): return(convert_datetext_to_datestruct(datetext+' 0:0:0')) if re.search(r'\d+\-\d+', datetext): return(convert_datetext...
datetext = datetext.split(' ')[0] if datetext.count('-') > 0: return [int(date) for date in datetext.split('-')] return int(datetext),
def parse_date(datetext): """ Reads in a date imported from SPIRES, returning the datestruct accounts for either native spires (YYYYMMDD) or invenio style (YYYY-MM-DD) @param datetext: date from SPIRES record """ import time match=re.search(r'\d+\-\d+\-\d+ \d+:\d+:\d+', datetext) if match: return(convert_datetext_to_da...
e4236a1184b1381c3a41b8507c5143d0dd9f5759 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14116/e4236a1184b1381c3a41b8507c5143d0dd9f5759/bfe_INSPIRE_date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 712, 12, 3404, 27830, 4672, 3536, 29185, 316, 279, 1509, 9101, 628, 20955, 7031, 16, 5785, 326, 7811, 8813, 9484, 364, 3344, 6448, 1694, 2814, 261, 26287, 8206, 5698, 13, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 712, 12, 3404, 27830, 4672, 3536, 29185, 316, 279, 1509, 9101, 628, 20955, 7031, 16, 5785, 326, 7811, 8813, 9484, 364, 3344, 6448, 1694, 2814, 261, 26287, 8206, 5698, 13, 578, ...
wf.notifyFailure(instance, action, sys.exc_info())
wf.notifyException(instance, action, sys.exc_info())
def __call__(self, instance, *args, **kw): ''' Invokes the method. ''' wf = getToolByName(instance, 'portal_workflow', None) if wf is None: # No workflow found. return apply(self._m, (instance,) + args, kw) else: action = self._a wf.notifyBefore(instance, action) # Can throw an exception. try: res = apply(self._m, (in...
eab5ead35cde2d5d4cde2222cb3e1f1ea21970ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/eab5ead35cde2d5d4cde2222cb3e1f1ea21970ad/WorkflowCore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 791, 16, 380, 1968, 16, 2826, 9987, 4672, 9163, 22737, 326, 707, 18, 9163, 11578, 273, 336, 6364, 5911, 12, 1336, 16, 296, 24386, 67, 13815, 2187, 599, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 791, 16, 380, 1968, 16, 2826, 9987, 4672, 9163, 22737, 326, 707, 18, 9163, 11578, 273, 336, 6364, 5911, 12, 1336, 16, 296, 24386, 67, 13815, 2187, 599, 1...
import fedora.controllers.login as fc_login
from fedora.controllers import login as fc_login
def login(forward_url=None, *args, **kwargs): '''Page to become authenticated to the Account System. This shows a small login box to type in your username and password from the Fedora Account System. To use this, replace your current login controller method with:: import fedora.controllers.login as fc_login @expose...
84e1f33070720a7e723258dbb6a55609db8bd513 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9952/84e1f33070720a7e723258dbb6a55609db8bd513/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 11565, 67, 718, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 9163, 1964, 358, 12561, 9370, 358, 326, 6590, 2332, 18, 225, 1220, 17975, 279, 5264, 3925, 3919, 358, 618, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 11565, 67, 718, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 9163, 1964, 358, 12561, 9370, 358, 326, 6590, 2332, 18, 225, 1220, 17975, 279, 5264, 3925, 3919, 358, 618, 316, ...
class INotify(FileDescriptor):
class INotify(FileDescriptor, object):
def notify(self, filename, events): for callback in self.callbacks: if callback != None: callback[0](self, filename, events, callback[1])
d21c3469d0a011936be5529a21d66705f8682481 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11626/d21c3469d0a011936be5529a21d66705f8682481/inotify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 12, 2890, 16, 1544, 16, 2641, 4672, 364, 1348, 316, 365, 18, 13316, 30, 309, 1348, 480, 599, 30, 1348, 63, 20, 29955, 2890, 16, 1544, 16, 2641, 16, 1348, 63, 21, 5717, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5066, 12, 2890, 16, 1544, 16, 2641, 4672, 364, 1348, 316, 365, 18, 13316, 30, 309, 1348, 480, 599, 30, 1348, 63, 20, 29955, 2890, 16, 1544, 16, 2641, 16, 1348, 63, 21, 5717, 2, -100,...
_logger.debug(' '.join(msg))
_logger.debug(' '.join([ str(x) for x in msg]))
def _debug(*msg): _logger.debug(' '.join(msg))
6ef4fe09e7b91d6db497a10ee67d728eda46182a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/6ef4fe09e7b91d6db497a10ee67d728eda46182a/conv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4148, 30857, 3576, 4672, 389, 4901, 18, 4148, 2668, 2418, 5701, 12, 3576, 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,...
[ 1, 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, 389, 4148, 30857, 3576, 4672, 389, 4901, 18, 4148, 2668, 2418, 5701, 12, 3576, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
supply app and spit out the data in a format that can
nigeria app and spit out the data in a format that can
def testGenerateNetFixture(self): """ This isn't actually a test. It just takes advantage of the test harness to spam a bunch of messages to the supply app and spit out the data in a format that can be sucked into a fixture """ # this is the number of net reports that will be generated net_count = 0 "8005551213 > l...
88f34d4b4c44323a9774ba87506f8a253fe253aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/88f34d4b4c44323a9774ba87506f8a253fe253aa/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4625, 7308, 26392, 12, 2890, 4672, 3536, 1220, 5177, 1404, 6013, 279, 1842, 18, 225, 2597, 2537, 5530, 1261, 7445, 410, 434, 326, 1842, 366, 1303, 403, 358, 24824, 279, 25606, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4625, 7308, 26392, 12, 2890, 4672, 3536, 1220, 5177, 1404, 6013, 279, 1842, 18, 225, 2597, 2537, 5530, 1261, 7445, 410, 434, 326, 1842, 366, 1303, 403, 358, 24824, 279, 25606, 434, ...
c.hash = URLHash() c.hash.url = url meta.Session.add(c.hash) meta.Session.commit()
c.hash = URLHash() c.hash.url = url meta.Session.add(c.hash) meta.Session.commit()
def generate_hash(self, id): if not h.auth.authorized(h.auth.Or(h.auth.is_same_zookeepr_attendee(id), h.auth.has_organiser_role)): # Raise a no_auth error h.auth.no_role()
c171a46d991ceee8360dd7206f044144d675e805 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12856/c171a46d991ceee8360dd7206f044144d675e805/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2816, 12, 2890, 16, 612, 4672, 309, 486, 366, 18, 1944, 18, 8434, 12, 76, 18, 1944, 18, 1162, 12, 76, 18, 1944, 18, 291, 67, 14307, 67, 94, 1184, 1340, 683, 67, 10164, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2816, 12, 2890, 16, 612, 4672, 309, 486, 366, 18, 1944, 18, 8434, 12, 76, 18, 1944, 18, 1162, 12, 76, 18, 1944, 18, 291, 67, 14307, 67, 94, 1184, 1340, 683, 67, 10164, 20...
class Classic: """ A dummy classic class. """
def expose(self, key=None): """ Expose the decorated method for this L{Exposer} with the given key. A method which is exposed will be able to be retrieved by this L{Exposer}'s C{get} method with that key. If no key is provided, the key is the method name of the exposed method. Use like so:: class MyClass: @someExpo...
def bar(self): return 7
67def41630027427bc854fd2b407c6486276b4e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7078/67def41630027427bc854fd2b407c6486276b4e4/expose.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 12, 2890, 4672, 327, 2371, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 12, 2890, 4672, 327, 2371, 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, -1...
private.write(str) public.write(str) str = self._standard_fields(doc) private.write(str) public.write(str)
str += self._standard_fields(doc) public.write(str); private.write(str)
def _write_class(self, public, private, uid, doc): """ @return: An HTML page describing the class identified by C{uid}. @rtype: C{string} @param uid: The unique identifier for the class that should be documented. @type uid: L{UID} """ # Write the header, navigation bar, & class name. str = self._header(uid.name()) priv...
21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 1106, 12, 2890, 16, 1071, 16, 3238, 16, 4555, 16, 997, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 667, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 1106, 12, 2890, 16, 1071, 16, 3238, 16, 4555, 16, 997, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 667, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, ...
if not torPid: panels["log"].monitor_event("ERR", "Unable to resolve tor pid, abandoning connection listing")
if not torPid: panels["log"].monitor_event("WARN", "Unable to resolve tor pid, abandoning connection listing")
def drawTorMonitor(stdscr, conn, loggedEvents): """ Starts arm interface reflecting information on provided control port. stdscr - curses window conn - active Tor control port connection loggedEvents - types of events to be logged (plus an optional "UNKNOWN" for otherwise unrecognized events) """ curses.use_default_c...
0ca15e64c01eefad510d61622b3ebf861c5c425d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13459/0ca15e64c01eefad510d61622b3ebf861c5c425d/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 27266, 7187, 12, 5084, 24638, 16, 1487, 16, 7545, 3783, 4672, 3536, 30620, 23563, 1560, 3037, 310, 1779, 603, 2112, 3325, 1756, 18, 225, 2044, 24638, 300, 30436, 2742, 1487, 300, 269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 27266, 7187, 12, 5084, 24638, 16, 1487, 16, 7545, 3783, 4672, 3536, 30620, 23563, 1560, 3037, 310, 1779, 603, 2112, 3325, 1756, 18, 225, 2044, 24638, 300, 30436, 2742, 1487, 300, 269...
iface = conf.iff
iface = conf.iface
def __init__(self, iface = None, type = ETH_P_ALL, filter=None): if iface is None: iface = conf.iff self.ins = pcap.pcapObject() self.ins.open_live(iface, 1600, 0, 100) if conf.except_filter: if filter: filter = "(%s) and not (%s)" % (filter, conf.except_filter) else: filter = "not (%s)" % conf.except_filter if filter:...
4ab0830431443d93b512facc592cad2f9ac6ca25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/4ab0830431443d93b512facc592cad2f9ac6ca25/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9751, 273, 599, 16, 618, 273, 512, 2455, 67, 52, 67, 4685, 16, 1034, 33, 7036, 4672, 309, 9751, 353, 599, 30, 9751, 273, 2195, 18, 31479, 365, 18, 2679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9751, 273, 599, 16, 618, 273, 512, 2455, 67, 52, 67, 4685, 16, 1034, 33, 7036, 4672, 309, 9751, 353, 599, 30, 9751, 273, 2195, 18, 31479, 365, 18, 2679...
return Infsign[sign]
return _Infsign[sign]
def __truediv__(self, other, context=None): """Return self / other.""" other = _convert_other(other) if other is NotImplemented: return NotImplemented
335c6f295295ab5b62a80d25d26d89243eb80fb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/335c6f295295ab5b62a80d25d26d89243eb80fb0/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 313, 5957, 427, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 342, 1308, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 13, 309, 1308, 353, 10051, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 313, 5957, 427, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 990, 365, 342, 1308, 12123, 1308, 273, 389, 6283, 67, 3011, 12, 3011, 13, 309, 1308, 353, 10051, 30, 327, ...
gConfig.read(configFiles)
if not os.path.isfile(configFiles): print "ERROR!!! Cannot read " + configFiles + ". Please create " + configFiles + " by copying " + configFiles + ".template and filling in the appropriate values." sys.exit(1) gConfig.read(configFiles) DBConnectString(configFiles)
def UseArgs(argv): global gProbename,gOutput,gWithPanda,gGroupBy,gVOName,gEmailTo,gEmailToNames,gEmailSubject,gConfig,gGrid monthly = False weekly = False daily = False configFiles = "gratiareports.conf" if not os.path.isfile(configFiles): print "ERROR!!! Cannot read " + configFiles + ". Please create " + configFiles...
da5129b32ffc65c5da6332c2cf48f08f15972171 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/da5129b32ffc65c5da6332c2cf48f08f15972171/AccountingReports.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2672, 2615, 12, 19485, 4672, 2552, 314, 9152, 1069, 16, 75, 1447, 16, 75, 1190, 52, 464, 69, 16, 75, 26257, 16, 75, 16169, 461, 16, 75, 4134, 774, 16, 75, 4134, 774, 1557, 16, 75, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2672, 2615, 12, 19485, 4672, 2552, 314, 9152, 1069, 16, 75, 1447, 16, 75, 1190, 52, 464, 69, 16, 75, 26257, 16, 75, 16169, 461, 16, 75, 4134, 774, 16, 75, 4134, 774, 1557, 16, 75, ...
results = self.searchMicroblog("http://identi.ca/api/search.json", self.options['searchTerm'], since_id=last_id)
try: results = self.searchMicroblog("http://identi.ca/api/search.json", self.options['searchTerm'], since_id=last_id) except: results = []
def updateIdentica(self): """ Pull new posts from Identi.ca and return new posts in a list """
83f2b93054a66c026b568a9031e6f8fd17f9d143 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5464/83f2b93054a66c026b568a9031e6f8fd17f9d143/MicroblogMedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 548, 4499, 69, 12, 2890, 4672, 3536, 14899, 394, 10775, 628, 13128, 77, 18, 5353, 471, 327, 394, 10775, 316, 279, 666, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 548, 4499, 69, 12, 2890, 4672, 3536, 14899, 394, 10775, 628, 13128, 77, 18, 5353, 471, 327, 394, 10775, 316, 279, 666, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.update_status = _("An error occured.")
self.update_status = _("An error occurred.")
def update(self): if self.update_status is not None: # We've been called before. Just return the previous result. return self.update_status
1b0ea5b194f079b81ab5a916a4460e2d84c09d0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/1b0ea5b194f079b81ab5a916a4460e2d84c09d0d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 309, 365, 18, 2725, 67, 2327, 353, 486, 599, 30, 468, 1660, 8081, 2118, 2566, 1865, 18, 12526, 327, 326, 2416, 563, 18, 327, 365, 18, 2725, 67, 2327, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 309, 365, 18, 2725, 67, 2327, 353, 486, 599, 30, 468, 1660, 8081, 2118, 2566, 1865, 18, 12526, 327, 326, 2416, 563, 18, 327, 365, 18, 2725, 67, 2327, 2, -100, -...
return len(self.db)
return len(self.keys())
def __len__(self): return len(self.db)
8bd32c4b56596337f074e511ab466279f2158b15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/8bd32c4b56596337f074e511ab466279f2158b15/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 327, 562, 12, 2890, 18, 1966, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 327, 562, 12, 2890, 18, 1966, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pixbuf.write( open( cover_file, "r").read())
try: pixbuf.write( open( cover_file, "r").read()) except: log('Data error while reading pixbuf. Deleting %s', cover_file, sender=self) util.delete_file(cover_file)
def image_download_thread( self, url, callback_pixbuf = None, callback_status = None, callback_finished = None, cover_file = None): if callback_status != None: util.idle_add(callback_status, _('Downloading channel cover...')) pixbuf = gtk.gdk.PixbufLoader() if cover_file is None: log( 'Downloading %s', url) pixbuf.wri...
580d165a0a53ae82dd3dee1a6747bd7c3ba7668e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/580d165a0a53ae82dd3dee1a6747bd7c3ba7668e/libgpodder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1316, 67, 7813, 67, 5930, 12, 365, 16, 880, 16, 1348, 67, 14861, 4385, 273, 599, 16, 1348, 67, 2327, 273, 599, 16, 1348, 67, 13527, 273, 599, 16, 5590, 67, 768, 273, 599, 4672, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1316, 67, 7813, 67, 5930, 12, 365, 16, 880, 16, 1348, 67, 14861, 4385, 273, 599, 16, 1348, 67, 2327, 273, 599, 16, 1348, 67, 13527, 273, 599, 16, 5590, 67, 768, 273, 599, 4672, 309, ...
""" import networkx.cores return networkx.cores.find_cores(self.networkx_graph(copy=False), with_labels)
sage: a=random_matrix(ZZ,20,x=2,sparse=True, density=.1) sage: b=DiGraph(20) sage: b.add_edges(a.nonzero_positions()) sage: cores=b.cores(with_labels=True); cores {0: 1, 1: 1, 2: 2, 3: 2, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1, 9: 1, 10: 2, 11: 1, 12: 1, 13: 1, 14: 1, 15: 2, 16: 1, 17: 2, 18: 2, 19: 2} sage: [v for v,c in cores....
def cores(self, with_labels=False): """ Returns the core number for each vertex in an ordered list. 'K-cores in graph theory were introduced by Seidman in 1983 and by Bollobas in 1984 as a method of (destructively) simplifying graph topology to aid in analysis and visualization. They have been more recently defined as...
db10d8e792525f4a9dfaadba9e49063c73bf5b3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/db10d8e792525f4a9dfaadba9e49063c73bf5b3d/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15355, 12, 2890, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 2922, 1300, 364, 1517, 5253, 316, 392, 5901, 666, 18, 225, 296, 47, 17, 12906, 316, 2667, 326, 630, 4591, 26339, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15355, 12, 2890, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 2922, 1300, 364, 1517, 5253, 316, 392, 5901, 666, 18, 225, 296, 47, 17, 12906, 316, 2667, 326, 630, 4591, 26339, 63...
dummy_f = function(filter(lambda x: isinstance(x, gof.Variable) and \
if n_fixed_steps in [-1,1]: ''' We do have a special case here, namely is so might happen that whatever we have in dummy_args is not sufficient to compile the function( i.e. missing inputs). Furthermore we might not even need to compile the function here for this special case. But due to the way I wrote the code is eas...
def scan(fn, sequences=[], outputs_info=[], non_sequences=[], n_steps = None, truncate_gradient = -1, go_backwards = False, mode = None, name = None): """Function that constructs and applies a Scan op :param fn: Function that describes the operations involved in one step of scan Given variables representing all the sl...
7e32b612764b38522582ed41b0e822e94160eeb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/7e32b612764b38522582ed41b0e822e94160eeb5/scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 12, 4293, 16, 8463, 22850, 6487, 6729, 67, 1376, 22850, 6487, 1661, 67, 17190, 22850, 6487, 290, 67, 8986, 273, 599, 16, 10310, 67, 20219, 273, 300, 21, 16, 1960, 67, 823, 6397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 12, 4293, 16, 8463, 22850, 6487, 6729, 67, 1376, 22850, 6487, 1661, 67, 17190, 22850, 6487, 290, 67, 8986, 273, 599, 16, 10310, 67, 20219, 273, 300, 21, 16, 1960, 67, 823, 6397, ...
conn = cherrypy.thread_data.db c = conn.cursor()
def default(self, id=None, text=None): logged_in = Session().get_logged_in() conn = cherrypy.thread_data.db c = conn.cursor() m = cherrypy.request.method
4b3b0887bbd7693b28f3887b7bce2d7daf7358e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3078/4b3b0887bbd7693b28f3887b7bce2d7daf7358e8/minitwit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 12, 2890, 16, 612, 33, 7036, 16, 977, 33, 7036, 4672, 7545, 67, 267, 273, 3877, 7675, 588, 67, 19385, 67, 267, 1435, 312, 273, 462, 370, 28398, 18, 2293, 18, 2039, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 12, 2890, 16, 612, 33, 7036, 16, 977, 33, 7036, 4672, 7545, 67, 267, 273, 3877, 7675, 588, 67, 19385, 67, 267, 1435, 312, 273, 462, 370, 28398, 18, 2293, 18, 2039, 2, -100, -100...
args = list(args)
def call_streamin(self, cw, func, ret, args, kwargs): #{{{ args = list(args) callfunc = self.caller for sfunc, t in cleanlist('streamin'): ret = callfunc(self, sfunc, 'streamin', False, ret, args, kwargs) return ret
1f0ce6565fe09e77eb687cd2bdb5b205ae77ec0c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2635/1f0ce6565fe09e77eb687cd2bdb5b205ae77ec0c/signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 3256, 267, 12, 2890, 16, 14098, 16, 1326, 16, 325, 16, 833, 16, 1205, 4672, 3735, 12187, 745, 644, 273, 365, 18, 16140, 364, 272, 644, 16, 268, 316, 2721, 1098, 2668, 3256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 3256, 267, 12, 2890, 16, 14098, 16, 1326, 16, 325, 16, 833, 16, 1205, 4672, 3735, 12187, 745, 644, 273, 365, 18, 16140, 364, 272, 644, 16, 268, 316, 2721, 1098, 2668, 3256, ...
add_newdoc('numpy.lib._compile_base', 'bincount',
add_newdoc('numpy.lib._compiled_base', 'bincount',
>>> def add_mod5(x, y):
11943ab29867441fc0b8662f77eb788afc5f4f46 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/11943ab29867441fc0b8662f77eb788afc5f4f46/add_newdocs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 527, 67, 1711, 25, 12, 92, 16, 677, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 527, 67, 1711, 25, 12, 92, 16, 677, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"""Adjust op1, op2 so that op2.int+[0] > op1.int >= op2.int.
"""Adjust op1, op2 so that op2.int * 10 > op1.int >= op2.int.
def _adjust_coefficients(op1, op2): """Adjust op1, op2 so that op2.int+[0] > op1.int >= op2.int. Returns the adjusted op1, op2 as well as the change in op1.exp-op2.exp. Used on _WorkRep instances during division. """ adjust = 0 #If op1 is smaller, get it to same size if len(op2.int) > len(op1.int): diff = len(op2.int...
636a6b100fe6083388bc5315758326078abe65b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/636a6b100fe6083388bc5315758326078abe65b4/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13362, 67, 8075, 12344, 12, 556, 21, 16, 1061, 22, 4672, 3536, 10952, 1061, 21, 16, 1061, 22, 1427, 716, 1061, 22, 18, 474, 380, 1728, 405, 1061, 21, 18, 474, 1545, 1061, 22, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13362, 67, 8075, 12344, 12, 556, 21, 16, 1061, 22, 4672, 3536, 10952, 1061, 21, 16, 1061, 22, 1427, 716, 1061, 22, 18, 474, 380, 1728, 405, 1061, 21, 18, 474, 1545, 1061, 22, 18...
rw = RasterBargraph() self.mpav.onIdle = rw.clear
self.rw = RasterBargraph() self.mpav.onIdle = self.onIdle
def run(self): self.mpav = MPAVClient() rw = RasterBargraph() self.mpav.onIdle = rw.clear delayed = Delay(30, self.mpav.waitForBuffer) viz = Visualizer() while not self.stop: rw.writeBars(viz.transform(delayed())) rw.clear()
a60082c2d4bcc60e0b690263f5d7b207dcafc3fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/a60082c2d4bcc60e0b690263f5d7b207dcafc3fe/rasterwand.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 1291, 842, 273, 490, 4066, 58, 1227, 1435, 365, 18, 21878, 273, 30757, 38, 3175, 1483, 1435, 365, 18, 1291, 842, 18, 265, 13834, 273, 365, 18, 265, 13834...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 18, 1291, 842, 273, 490, 4066, 58, 1227, 1435, 365, 18, 21878, 273, 30757, 38, 3175, 1483, 1435, 365, 18, 1291, 842, 18, 265, 13834, 273, 365, 18, 265, 13834...
cmd = ("rm " + self.ptMount + "/" + self.CurrentMap + "/'" + file + "'")
cmd = ("rm -f '" + self.ptMount + "'/" + self.CurrentMap + "/'" + file + "'")
def delPoiOnTomtom( self,entry ):
8243e11b0eb6e861e9a780faca385bc774f517b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/603/8243e11b0eb6e861e9a780faca385bc774f517b8/pytomtom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 52, 11359, 1398, 56, 362, 3599, 12, 365, 16, 4099, 262, 30, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 52, 11359, 1398, 56, 362, 3599, 12, 365, 16, 4099, 262, 30, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if a[0] in packages: packages[a[0]]['rdepends'].append((pkg, a[1], a[2]))
if a[0] in packages and (not check_doubles or pkg not in packages[a[0]]['rconflicts']): packages[a[0]]['rconflicts'].append(pkg)
def read_binaries(self, basedir, distribution, arch): """Read the list of binary packages from the specified directory The binary packages are read from the `Packages_${arch}' files within the directory specified as `basedir' parameter, replacing ${arch} with the value of the arch parameter. Considering the large amou...
b57aefed68ccf3a45d249459e90c513a8a777948 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/b57aefed68ccf3a45d249459e90c513a8a777948/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4757, 5646, 12, 2890, 16, 15573, 16, 7006, 16, 6637, 4672, 3536, 1994, 326, 666, 434, 3112, 5907, 628, 326, 1269, 1867, 225, 1021, 3112, 5907, 854, 855, 628, 326, 1375, 11425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4757, 5646, 12, 2890, 16, 15573, 16, 7006, 16, 6637, 4672, 3536, 1994, 326, 666, 434, 3112, 5907, 628, 326, 1269, 1867, 225, 1021, 3112, 5907, 854, 855, 628, 326, 1375, 11425, ...
""" Get the IP address of the interface.
""" Get the IP address of the interface.
def GetIP(self): """ Get the IP address of the interface.
8064be227246aa688af0551bc7128f1ad261b0fe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/353/8064be227246aa688af0551bc7128f1ad261b0fe/wnettools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2579, 12, 2890, 4672, 3536, 968, 326, 2971, 1758, 434, 326, 1560, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2579, 12, 2890, 4672, 3536, 968, 326, 2971, 1758, 434, 326, 1560, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.ts_range = (None, None,)
self.ts_range = None
def clear (self):
8d5093e4a2340e29c99296ea4204ff46670eb549 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/8d5093e4a2340e29c99296ea4204ff46670eb549/Timeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
assert after.time == 2 assert after.weight == 2 assert after.dist_walked == 2
print after assert after.time == 5 assert after.weight == 5 assert after.dist_walked == 10
def test_walk(self): s = Egress("longstreet", 2) wo = WalkOptions() after = s.walk(State(0,0),wo) wo.destroy() assert after.time == 2 assert after.weight == 2 assert after.dist_walked == 2 assert after.prev_edge_type == 12 assert after.prev_edge_name == "longstreet" assert after.num_agencies == 0
508050e46940a166eed1f6861034e5a50d05f2bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10974/508050e46940a166eed1f6861034e5a50d05f2bf/unit_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11348, 12, 2890, 4672, 272, 273, 512, 2329, 2932, 5748, 22424, 3113, 576, 13, 341, 83, 273, 7564, 1320, 1435, 1839, 273, 272, 18, 11348, 12, 1119, 12, 20, 16, 20, 3631, 6933,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11348, 12, 2890, 4672, 272, 273, 512, 2329, 2932, 5748, 22424, 3113, 576, 13, 341, 83, 273, 7564, 1320, 1435, 1839, 273, 272, 18, 11348, 12, 1119, 12, 20, 16, 20, 3631, 6933,...
help(module) or call help('modulename')."""
help(module) or call help('modulename').'''
def __repr__(self): return """To get help on a Python object, call help(object).
a8b37d1a3238fb85be760a30db03672525e8f591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a8b37d1a3238fb85be760a30db03672525e8f591/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 3536, 774, 336, 2809, 603, 279, 6600, 733, 16, 745, 2809, 12, 1612, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 3536, 774, 336, 2809, 603, 279, 6600, 733, 16, 745, 2809, 12, 1612, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 551) else quickfix.StringField.__init__(self, 551, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 10593, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 10593, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 273...
for i in range(len(tk)): if tk_pr[i]>=tk_po[i]: return False return True
for i in range(len(tk)): if tk_pr[i]>=tk_po[i]: return False return True
def check_split_str(split_str): if re.match("((^|,)(\d+:\d+|\d+))+$",split_str)==None: return False tk=[] tk_sort=[] tk_pr=[] tk_po=[] split_str=str(split_str) tk_split=re.findall("(^|,)(\d+:\d+)|(\d+)",split_str) for i in range(len(tk_split)): if tk_split[i][2]!='': tk.append(tk_split[i][2]) tk_pr.append(int(tk[-1])...
76bd12c9f0f970ec39e56fe35c8c6964ae612c86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/76bd12c9f0f970ec39e56fe35c8c6964ae612c86/indexsplit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 4939, 67, 701, 12, 4939, 67, 701, 4672, 309, 283, 18, 1916, 2932, 12443, 66, 96, 16, 13, 4713, 72, 15, 5581, 72, 15, 8960, 72, 15, 3719, 26020, 3113, 4939, 67, 701, 13, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 4939, 67, 701, 12, 4939, 67, 701, 4672, 309, 283, 18, 1916, 2932, 12443, 66, 96, 16, 13, 4713, 72, 15, 5581, 72, 15, 8960, 72, 15, 3719, 26020, 3113, 4939, 67, 701, 13, 63...
res['occurences'].append(('delete', occurences_todel))
res['occurences'].insert(0, ('delete', occurences_todel))
def ical2values(self, cursor, user, event_id, ical, calendar_id, vevent=None, context=None): ''' Convert iCalendar to values for create or write
0c487ca73b535f1f8b4cd41f4280a2499a1315f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9294/0c487ca73b535f1f8b4cd41f4280a2499a1315f4/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 771, 22, 2372, 12, 2890, 16, 3347, 16, 729, 16, 871, 67, 350, 16, 277, 771, 16, 5686, 67, 350, 16, 331, 2575, 33, 7036, 16, 819, 33, 7036, 4672, 9163, 4037, 277, 7335, 358, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 771, 22, 2372, 12, 2890, 16, 3347, 16, 729, 16, 871, 67, 350, 16, 277, 771, 16, 5686, 67, 350, 16, 331, 2575, 33, 7036, 16, 819, 33, 7036, 4672, 9163, 4037, 277, 7335, 358, 92...
("severity", value.encode('utf-8'), i))
("severity", value, i))
def setSeverityList(self, s): """Remove all severities, set them to `s`""" self.assertNoTickets()
dcac9900ef68be5a1bfa423276a595d98b1050eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/dcac9900ef68be5a1bfa423276a595d98b1050eb/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 21630, 682, 12, 2890, 16, 272, 4672, 3536, 3288, 777, 6963, 1961, 16, 444, 2182, 358, 1375, 87, 68, 8395, 365, 18, 11231, 2279, 6264, 2413, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 21630, 682, 12, 2890, 16, 272, 4672, 3536, 3288, 777, 6963, 1961, 16, 444, 2182, 358, 1375, 87, 68, 8395, 365, 18, 11231, 2279, 6264, 2413, 1435, 2, -100, -100, -100, -100, -100, ...
transformed for 4-coloring in linear time since |E| = O(|V|).
transformed for `4`-coloring in linear time since `|E| = O(|V|)`.
def all_graph_colorings(G,n,count_only=False): """ Computes all n-colorings of the graph G by casting the graph coloring problem into an exact cover problem, and passing this into an implementation of the Dancing Links algorithm described by Knuth (who attributes the idea to Hitotumatu and Noshita). The construction w...
7056b61dfa30c6705aab69c7fdf3017463c8aae2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7056b61dfa30c6705aab69c7fdf3017463c8aae2/graph_coloring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 4660, 67, 3266, 899, 12, 43, 16, 82, 16, 1883, 67, 3700, 33, 8381, 4672, 3536, 14169, 281, 777, 290, 17, 3266, 899, 434, 326, 2667, 611, 635, 27660, 326, 2667, 2036, 310, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 4660, 67, 3266, 899, 12, 43, 16, 82, 16, 1883, 67, 3700, 33, 8381, 4672, 3536, 14169, 281, 777, 290, 17, 3266, 899, 434, 326, 2667, 611, 635, 27660, 326, 2667, 2036, 310, 61...
if v_to.rsplit('_')[0] in vocab: selected.add(v_to)
if v_to.rsplit('_')[0] in vocab: selected.add(v_to)
def _load_graph(gr_file, vocab): parent = {} conj = {} selected = set() for line in open(gr_file): if not (line.startswith('(') and line.endswith(')\n')): raise ValueError(line) label, v_from, v_to = _parse_edge(line[1:-2]) if v_to.rsplit('_')[0] in vocab: selected.add(v_to) if label.startswith('conj'): assert v_to n...
27909ed190534c68f3d1d7fe0ee5cc52be9b90c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6480/27909ed190534c68f3d1d7fe0ee5cc52be9b90c8/shortest_path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 4660, 12, 3197, 67, 768, 16, 9623, 4672, 982, 273, 2618, 10550, 273, 2618, 3170, 273, 444, 1435, 364, 980, 316, 1696, 12, 3197, 67, 768, 4672, 309, 486, 261, 1369, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 4660, 12, 3197, 67, 768, 16, 9623, 4672, 982, 273, 2618, 10550, 273, 2618, 3170, 273, 444, 1435, 364, 980, 316, 1696, 12, 3197, 67, 768, 4672, 309, 486, 261, 1369, 18, ...
'total_pay':round(rs.basic + allow - deduct)
'total_pay':rs.basic + allow - deduct
def _calculate(self, cr, uid, ids, field_names, arg, context=None): slip_line_obj = self.pool.get('hr.payslip.line') if context is None: context = {} res = {} for rs in self.browse(cr, uid, ids, context=context): allow = 0.0 deduct = 0.0 others = 0.0 obj = {'basic':rs.basic} if rs.igross > 0: obj['gross'] = rs.igross i...
e0bd6974e23888d11f0954c282c2f73add98d1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e0bd6974e23888d11f0954c282c2f73add98d1f2/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 33, 7036, 4672, 272, 3169, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 1973, 16, 1501, 16, 819, 33, 7036, 4672, 272, 3169, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, ...
("script", self.startTagScript), (("base", "link", "meta", "style", "title"),
(("script", "style"), self.startTagScriptStyle), (("base", "link", "meta", "title"),
def __init__(self, parser, tree): Phase.__init__(self, parser, tree) self.startTagHandler = utils.MethodDispatcher([ ("html", self.startTagHtml), ("script", self.startTagScript), (("base", "link", "meta", "style", "title"), self.startTagFromHead), ("body", self.startTagBody), (("address", "blockquote", "center", "dir",...
a4829b3ce4292fe493d1bd795b5ac5199640db20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/a4829b3ce4292fe493d1bd795b5ac5199640db20/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 365, 18, 1937, 1805, 1503, 273, 2990, 18, 1305, 6681, 3816, 7566, 2620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 365, 18, 1937, 1805, 1503, 273, 2990, 18, 1305, 6681, 3816, 7566, 2620, ...
However, as it contains no induced subgraphs isomorphic to `P_6`, an exception is raised in this case :: sage: g.induced_subgraph_search(graphs.PathGraph(6)) Traceback (most recent call last): ... ValueError: No induced copy of the graph exists
However, the Petersen graph does not contain a subgraph isomorphic to `K_3`:: sage: g.subgraph_search(graphs.CompleteGraph(3)) is None True Nor does it contain a nonempty induced subgraph isomorphic to `P_6`:: sage: g.subgraph_search(graphs.PathGraph(6), induced=True) is None True The empty graph is a subgraph of e...
def induced_subgraph_search(self, G): r""" Returns an induced copy of `G` in self.
84286d4be578725f91d534440b316bce27cdde2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/84286d4be578725f91d534440b316bce27cdde2f/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1547, 26372, 67, 1717, 4660, 67, 3072, 12, 2890, 16, 611, 4672, 436, 8395, 2860, 392, 1547, 26372, 1610, 434, 1375, 43, 68, 316, 365, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1547, 26372, 67, 1717, 4660, 67, 3072, 12, 2890, 16, 611, 4672, 436, 8395, 2860, 392, 1547, 26372, 1610, 434, 1375, 43, 68, 316, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -...
match = re.search(_version_start_reqexp, pkgname)
match = nameversion.search(pkgname)
def get_package_info(self, package, factory): _version_start_reqexp = '-[0-9]'
da7c2a2958b88c0658025523e7829c13f241fb9f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10543/da7c2a2958b88c0658025523e7829c13f241fb9f/distro.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5610, 67, 1376, 12, 2890, 16, 2181, 16, 3272, 4672, 389, 1589, 67, 1937, 67, 3658, 2749, 273, 2400, 63, 20, 17, 29, 3864, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 5610, 67, 1376, 12, 2890, 16, 2181, 16, 3272, 4672, 389, 1589, 67, 1937, 67, 3658, 2749, 273, 2400, 63, 20, 17, 29, 3864, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
print content
def __parseJSON(self, data): maxlag = True while maxlag: try: maxlag = False parsed = json.loads(data.read()) content = None if isinstance(parsed, dict): content = APIResult(parsed) content.response = self.response.items() elif isinstance(parsed, list): content = APIListResult(parsed) content.response = self.response.i...
a3f85e5341236033e4826e0fbcbe37de3acfb35d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10544/a3f85e5341236033e4826e0fbcbe37de3acfb35d/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 2986, 12, 2890, 16, 501, 4672, 943, 22532, 273, 1053, 1323, 943, 22532, 30, 775, 30, 943, 22532, 273, 1083, 2707, 273, 1163, 18, 17135, 12, 892, 18, 896, 10756, 913, 273, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 2986, 12, 2890, 16, 501, 4672, 943, 22532, 273, 1053, 1323, 943, 22532, 30, 775, 30, 943, 22532, 273, 1083, 2707, 273, 1163, 18, 17135, 12, 892, 18, 896, 10756, 913, 273, 5...
if not is_valid_ip_address(localip): raise Exception("Local IP address is invalid.")
def waitforconn(localip, localport,function): """ <Purpose> Waits for a connection to a port. Calls function with a socket-like object if it succeeds. <Arguments> localip: The local IP to listen on localport: The local port to bind to function: The function to call. It should take five arguments: (remoteip, remote...
86ad74d7f2a9e42e79c68ad230d00a596e6fabc6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/86ad74d7f2a9e42e79c68ad230d00a596e6fabc6/emulcomm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 4646, 12, 3729, 625, 16, 1191, 655, 16, 915, 4672, 3536, 411, 10262, 4150, 34, 678, 12351, 364, 279, 1459, 358, 279, 1756, 18, 282, 23665, 445, 598, 279, 2987, 17, 5625, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 4646, 12, 3729, 625, 16, 1191, 655, 16, 915, 4672, 3536, 411, 10262, 4150, 34, 678, 12351, 364, 279, 1459, 358, 279, 1756, 18, 282, 23665, 445, 598, 279, 2987, 17, 5625, 73...
:type: `str`"""
:type: ``str``"""
def __init__(self, title, body='', node_defaults=None, edge_defaults=None, caption=None): """ Create a new `DotGraph`. """ self.title = title """The title of the graph."""
912021905a9b0fb447c4012c2843c9621eff06e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/912021905a9b0fb447c4012c2843c9621eff06e9/dotgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 16, 1417, 2218, 2187, 756, 67, 7606, 33, 7036, 16, 3591, 67, 7606, 33, 7036, 16, 11006, 33, 7036, 4672, 3536, 1788, 279, 394, 1375, 10412, 4137, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 16, 1417, 2218, 2187, 756, 67, 7606, 33, 7036, 16, 3591, 67, 7606, 33, 7036, 16, 11006, 33, 7036, 4672, 3536, 1788, 279, 394, 1375, 10412, 4137, 83...
if random.random() > 0.1:
if trandom.random() > 0.1:
def test_LP294788(self): # https://bugs.launchpad.net/bugs/294788 # BTree keeps some deleted objects referenced
4f378e5ca87951659d67123673df32a4c15ec19d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10048/4f378e5ca87951659d67123673df32a4c15ec19d/testBTrees.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14461, 5540, 9462, 5482, 12, 2890, 4672, 468, 2333, 2207, 19381, 18, 20738, 6982, 18, 2758, 19, 19381, 19, 5540, 9462, 5482, 468, 605, 2471, 20948, 2690, 4282, 2184, 8042, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14461, 5540, 9462, 5482, 12, 2890, 4672, 468, 2333, 2207, 19381, 18, 20738, 6982, 18, 2758, 19, 19381, 19, 5540, 9462, 5482, 468, 605, 2471, 20948, 2690, 4282, 2184, 8042, 2, -...
def _location_amount(self, cursor, user, target_uom, qty_uom, uom_index, context=None): """ Take a raw list of quantities and uom and convert it to the target uom. """ uom_obj = self.pool.get('product.uom') res = 0 for uom,qty in qty_uom: res += uom_obj.compute_qty( cursor, user, uom_index[uom], qty, uom_index[target_u...
def set_state_open(self, cursor, user, ids, context=None): self.write(cursor, user, ids, {'state':'open'})
def _location_amount(self, cursor, user, target_uom, qty_uom, uom_index, context=None): """ Take a raw list of quantities and uom and convert it to the target uom. """ uom_obj = self.pool.get('product.uom') res = 0 for uom,qty in qty_uom: res += uom_obj.compute_qty( cursor, user, uom_index[uom], qty, uom_index[target_u...
97b5b7f758f2acb4fc87255ae834f7b7b898c215 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/97b5b7f758f2acb4fc87255ae834f7b7b898c215/inventory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3562, 67, 8949, 12, 2890, 16, 3347, 16, 729, 16, 1018, 67, 89, 362, 16, 26667, 67, 89, 362, 16, 582, 362, 67, 1615, 16, 819, 33, 7036, 4672, 3536, 17129, 279, 1831, 666, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3562, 67, 8949, 12, 2890, 16, 3347, 16, 729, 16, 1018, 67, 89, 362, 16, 26667, 67, 89, 362, 16, 582, 362, 67, 1615, 16, 819, 33, 7036, 4672, 3536, 17129, 279, 1831, 666, 434, ...
if string.find(f+":"+argd[px], p) > -1: argd[px] = string.replace(f+":"+argd[px], f+":"+p, term)
if string.find(argd[px], f+":"+p) > -1: argd[px] = string.replace(argd[px], f+":"+p, f+":"+term)
def create_nearest_terms_box(urlargd, p, f, t='w', n=5, ln=cdslang, intro_text_p=True): """Return text box containing list of 'n' nearest terms above/below 'p' for the field 'f' for matching type 't' (words/phrases) in language 'ln'. Propose new searches according to `urlargs' with the new words. If `intro_text_p' is t...
b88a3c99570b02cc5f555c6be9eb4e056ab88d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/b88a3c99570b02cc5f555c6be9eb4e056ab88d35/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 25785, 67, 10112, 67, 2147, 12, 718, 3175, 72, 16, 293, 16, 284, 16, 268, 2218, 91, 2187, 290, 33, 25, 16, 7211, 33, 4315, 2069, 539, 16, 13079, 67, 955, 67, 84, 33, 5510,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 25785, 67, 10112, 67, 2147, 12, 718, 3175, 72, 16, 293, 16, 284, 16, 268, 2218, 91, 2187, 290, 33, 25, 16, 7211, 33, 4315, 2069, 539, 16, 13079, 67, 955, 67, 84, 33, 5510,...
event = wx.CommandEvent(commandType=wx.EVT_MENU.evtType[0],
event = wx.CommandEvent(commandType=wx.EVT_MENU.evtType[0],
def emulate_menu_accelerator(string, ctrlFlag=True, altFlag=False, shiftFlag=False): """ Emulate typing a key accelerator that's handled by a menu. This searches through the items in the main frame's menu bar, and tries to find once whose accelerator matches. Unfortunately, just processing a keydown/keyup pair doesn't...
105f5651830f79be6bdc7702dbf4b422d95b0544 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/105f5651830f79be6bdc7702dbf4b422d95b0544/User.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 801, 6243, 67, 5414, 67, 30737, 7385, 12, 1080, 16, 6414, 4678, 33, 5510, 16, 3770, 4678, 33, 8381, 16, 4654, 4678, 33, 8381, 4672, 3536, 7377, 6243, 13408, 279, 498, 15153, 7385, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 801, 6243, 67, 5414, 67, 30737, 7385, 12, 1080, 16, 6414, 4678, 33, 5510, 16, 3770, 4678, 33, 8381, 16, 4654, 4678, 33, 8381, 4672, 3536, 7377, 6243, 13408, 279, 498, 15153, 7385, 716, ...
except _RegError:
except RegError:
def get_msvc_paths (path, version='6.0', platform='x86'): """Get a list of devstudio directories (include, lib or path). Return a list of strings; will be empty list if unable to access the registry or appropriate registry keys not found.""" if not _can_read_reg: return [] L = [] if path=='lib': path= 'Library' path...
1027e3fde9b9cb6eb470cc13e48fbd2208658b32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1027e3fde9b9cb6eb470cc13e48fbd2208658b32/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 959, 4227, 67, 4481, 261, 803, 16, 1177, 2218, 26, 18, 20, 2187, 4072, 2218, 92, 5292, 11, 4672, 3536, 967, 279, 666, 434, 4461, 334, 4484, 6402, 261, 6702, 16, 2561, 578, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 959, 4227, 67, 4481, 261, 803, 16, 1177, 2218, 26, 18, 20, 2187, 4072, 2218, 92, 5292, 11, 4672, 3536, 967, 279, 666, 434, 4461, 334, 4484, 6402, 261, 6702, 16, 2561, 578, 5...
if not self.fixed_size: if self.marked_pos >= len(self.text): self.text = self.text.ljust(len(self.text) + 1)
self.maybeExpand()
def handleKey(self, key): # this will no change anything on the value itself # so we can handle it here in gui element if key == KEY_DELETE: self.text = self.text[0:self.marked_pos] + self.text[self.marked_pos + 1:] elif key == KEY_LEFT: self.marked_pos -= 1 elif key == KEY_RIGHT: self.marked_pos += 1 if not self.fixed...
1e595b94afee2632a87d1191e0d9fb6f698ac493 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/1e595b94afee2632a87d1191e0d9fb6f698ac493/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 653, 12, 2890, 16, 498, 4672, 468, 333, 903, 1158, 2549, 6967, 603, 326, 460, 6174, 468, 1427, 732, 848, 1640, 518, 2674, 316, 13238, 930, 309, 498, 422, 5311, 67, 6460, 30, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 653, 12, 2890, 16, 498, 4672, 468, 333, 903, 1158, 2549, 6967, 603, 326, 460, 6174, 468, 1427, 732, 848, 1640, 518, 2674, 316, 13238, 930, 309, 498, 422, 5311, 67, 6460, 30, 365,...
versionQueue = version.buildAllDemos(buildTarget, demoBrowser, copyDemos)
versionQueue = version.buildAllDemos(buildTarget)
def buildAllDemos(self, buildTarget, demoBrowser, copyDemos): buildQueue = {} for versionName, version in self.children.iteritems(): versionQueue = version.buildAllDemos(buildTarget, demoBrowser, copyDemos) for qxVersion, jobData in versionQueue.iteritems(): if not qxVersion in buildQueue: buildQueue[qxVersion] = [] bu...
074d6ff63573eb00617de5f63c6708be5563b7c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/074d6ff63573eb00617de5f63c6708be5563b7c6/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1595, 15058, 538, 12, 2890, 16, 1361, 2326, 16, 21477, 9132, 16, 1610, 15058, 538, 4672, 1361, 3183, 273, 2618, 364, 1177, 461, 16, 1177, 316, 365, 18, 5906, 18, 2165, 3319, 13332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1595, 15058, 538, 12, 2890, 16, 1361, 2326, 16, 21477, 9132, 16, 1610, 15058, 538, 4672, 1361, 3183, 273, 2618, 364, 1177, 461, 16, 1177, 316, 365, 18, 5906, 18, 2165, 3319, 13332,...
return ("-100,100|%d,%d|%.0f,%.0f|%d,%d" % (full_left_y, full_right_y, left_x, right_x, left_y, right_y), b, b_30, r2, r2_30)
result = Struct() result.urlfrag = ("-100,100|%d,%d|%.0f,%.0f|%d,%d" % (full_left_y, full_right_y, left_x, right_x, left_y, right_y)) result.b_full = b result.b_short = b_30 result.r2_full = r2 result.r2_short = r2_30 return result
def trendlines(data): """Return a a triple of (url,slopelong,slopeshort) for the full and 30-year trend lines (url is a fragment).""" # full trend (a,b,r2) = trend(data) yearmin = data[0][0] yearmax = data[-1][0] full_left_y = int(round(a + yearmin * b)) full_right_y = int(round(a + yearmax * b)) # thirty-year trend # ...
fcceccd589e2b05d5dde1db921d81cea9a2d7e4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/fcceccd589e2b05d5dde1db921d81cea9a2d7e4c/vischeck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 20262, 3548, 12, 892, 4672, 3536, 990, 279, 279, 14543, 434, 261, 718, 16, 87, 16884, 292, 932, 16, 87, 16884, 4607, 499, 13, 364, 326, 1983, 471, 5196, 17, 6874, 268, 20262, 2362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 20262, 3548, 12, 892, 4672, 3536, 990, 279, 279, 14543, 434, 261, 718, 16, 87, 16884, 292, 932, 16, 87, 16884, 4607, 499, 13, 364, 326, 1983, 471, 5196, 17, 6874, 268, 20262, 2362...
option = QStyleOptionButton() option.initFrom(button) box = OWGUI.indentedBox(optimizedBox, qApp.style().subElementRect(QStyle.SE_CheckBoxIndicator, option, button).width() - 3)
box = OWGUI.indentedBox(optimizedBox, sep=OWGUI.checkButtonOffsetHint(button)) box.layout().setSpacing(0)
def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, 'k-Means Clustering')
5921e86a0f8db837ec398576f4d3480209314d2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/5921e86a0f8db837ec398576f4d3480209314d2a/OWKMeans.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 296, 79, 17, 4667, 634, 29103, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 296, 79, 17, 4667, 634, 29103, 6134,...
if res: v_score = int(res[0][0]) else: v_score = 0
def add_col_fld(colID, fldID, type, fldvID=''): """Add a sort/search/field to the collection. colID - the id of the collection involved fldID - the id of the field. fldvID - the id of the fieldvalue. type - which type, seo, sew... score - the score of the format, decides sorting, if not given, place the format on top""...
d82bf3bfd17dee33feab4ef69fc9eec17232c2f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/d82bf3bfd17dee33feab4ef69fc9eec17232c2f5/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1293, 67, 19794, 12, 1293, 734, 16, 9880, 734, 16, 618, 16, 9880, 90, 734, 2218, 11, 4672, 3536, 986, 279, 1524, 19, 3072, 19, 1518, 358, 326, 1849, 18, 645, 734, 300, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1293, 67, 19794, 12, 1293, 734, 16, 9880, 734, 16, 618, 16, 9880, 90, 734, 2218, 11, 4672, 3536, 986, 279, 1524, 19, 3072, 19, 1518, 358, 326, 1849, 18, 645, 734, 300, 326, ...
def client_login(): if client.GetClientLoginToken() is None: client.ClientLogin(username, password, source='Document List Client Unit Tests') if spreadsheets.GetClientLoginToken() is None: spreadsheets.ClientLogin(username, password, source='Document List Client Unit Tests') class DocumentListQueryTest(unittest.TestC...
class DocumentsListServiceTest(unittest.TestCase): def setUp(self): self.client = client self.editClient = editClient self.editClient.SetClientLoginToken(client.GetClientLoginToken()) self.editClient.additional_headers = {'If-Match': '*'} self.spreadsheets = spreadsheets self.DOCUMENT_CATEGORY = client._MakeKindCategor...
def client_login(): if client.GetClientLoginToken() is None: client.ClientLogin(username, password, source='Document List Client Unit Tests') if spreadsheets.GetClientLoginToken() is None: spreadsheets.ClientLogin(username, password, source='Document List Client Unit Tests')
6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1004, 67, 5819, 13332, 309, 1004, 18, 967, 1227, 5358, 1345, 1435, 353, 599, 30, 1004, 18, 1227, 5358, 12, 5053, 16, 2201, 16, 1084, 2218, 2519, 987, 2445, 8380, 7766, 87, 6134, 309, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1004, 67, 5819, 13332, 309, 1004, 18, 967, 1227, 5358, 1345, 1435, 353, 599, 30, 1004, 18, 1227, 5358, 12, 5053, 16, 2201, 16, 1084, 2218, 2519, 987, 2445, 8380, 7766, 87, 6134, 309, 1...
self.filename = filename
self.filename = _normpath(filename)
def __init__(self, filename="NoName", date_time=(1980,1,1,0,0,0)): self.filename = filename # Name of the file in the archive self.date_time = date_time # year, month, day, hour, min, sec # Standard values: self.compress_type = ZIP_STORED # Type of compression for the file self.comment = "" # ...
9a1c2c1570f3f7af994952e01e1b98f805970e38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9a1c2c1570f3f7af994952e01e1b98f805970e38/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 1546, 2279, 461, 3113, 1509, 67, 957, 28657, 3657, 3672, 16, 21, 16, 21, 16, 20, 16, 20, 16, 20, 3719, 30, 365, 18, 3459, 273, 389, 7959, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 1546, 2279, 461, 3113, 1509, 67, 957, 28657, 3657, 3672, 16, 21, 16, 21, 16, 20, 16, 20, 16, 20, 3719, 30, 365, 18, 3459, 273, 389, 7959, 803, ...
def fl_addtopup(n, str): """ fl_addtopup(n, str) -> num. """ retval = _fl_addtopup(n, str)
def fl_addtopup(n, pup_string): """ fl_addtopup(n, pup_string) -> num. """ retval = _fl_addtopup(n, pup_string)
def fl_addtopup(n, str): """ fl_addtopup(n, str) -> num. """ retval = _fl_addtopup(n, str) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 3669, 416, 12, 82, 16, 293, 416, 67, 1080, 4672, 3536, 1183, 67, 1289, 3669, 416, 12, 82, 16, 293, 416, 67, 1080, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 3669, 416, 12, 82, 16, 293, 416, 67, 1080, 4672, 3536, 1183, 67, 1289, 3669, 416, 12, 82, 16, 293, 416, 67, 1080, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, ...
ok = dialog.ok('Connection Timeout', 'Try again.')
ok = dialog.ok(__language__(30503), __language__(30504))
def doPlugin(): params=get_params() url=None name=None mode=None page=1 userid='' try: url=urllib.unquote_plus(params["url"]) except: pass try: page=int(params["page"]) except: pass try: userid=urllib.unquote_plus(params["userid"]) except: pass try: name=urllib.unquote_plus(params["name"]) except: pass try: mode=int(p...
a3305f1cd1ae2e5ede9780e451b285854021a8f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9429/a3305f1cd1ae2e5ede9780e451b285854021a8f5/default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3773, 13332, 859, 33, 588, 67, 2010, 1435, 880, 33, 7036, 508, 33, 7036, 1965, 33, 7036, 1363, 33, 21, 6709, 2218, 11, 225, 775, 30, 880, 33, 718, 2941, 18, 318, 6889, 67, 10103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3773, 13332, 859, 33, 588, 67, 2010, 1435, 880, 33, 7036, 508, 33, 7036, 1965, 33, 7036, 1363, 33, 21, 6709, 2218, 11, 225, 775, 30, 880, 33, 718, 2941, 18, 318, 6889, 67, 10103...
shop_id=self.pool.get('sale.shop').search(cr, uid, [('magento_id', '>', 0)])
shop_id=self.pool.get('sale.shop').search(cr, uid, [('magento_flag', '=', True)])
def createOrder(self, cr, uid, so): has_error = 0
794a6c15fca07ed6bbd1d3e09f1fb16e0bff568f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/794a6c15fca07ed6bbd1d3e09f1fb16e0bff568f/magento_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2448, 12, 2890, 16, 4422, 16, 4555, 16, 1427, 4672, 711, 67, 1636, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2448, 12, 2890, 16, 4422, 16, 4555, 16, 1427, 4672, 711, 67, 1636, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def findModelBoundary(self, point, dir, accuracy=0.0001):
def findModelBoundary(self, point, direction, savebmodel=True, culling=True):
def findModelBoundary(self, point, dir, accuracy=0.0001): """Find the boundary of the model in |direction|, starting at the given |point|. Return None if no boundary is found. |direction| and point| should be arrays, lists or tuples of the same |dimension as the model. """
7d8f9cb4320fdd8fc9b604d50de630c5126d68f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7248/7d8f9cb4320fdd8fc9b604d50de630c5126d68f5/FEval.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1488, 11941, 12, 2890, 16, 1634, 16, 4068, 16, 1923, 70, 2284, 33, 5510, 16, 276, 420, 310, 33, 5510, 4672, 3536, 3125, 326, 7679, 434, 326, 938, 316, 571, 9855, 96, 16, 5023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1488, 11941, 12, 2890, 16, 1634, 16, 4068, 16, 1923, 70, 2284, 33, 5510, 16, 276, 420, 310, 33, 5510, 4672, 3536, 3125, 326, 7679, 434, 326, 938, 316, 571, 9855, 96, 16, 5023, ...
exts.append( Extension('unicodedata', ['unicodedata.c', 'unicodedatabase.c']) )
exts.append( Extension('unicodedata', ['unicodedata.c']) )
def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.append('/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.append( '/usr/local/include' )
22a99abc03bcf50a77af25a03feff702adfbc6b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/22a99abc03bcf50a77af25a03feff702adfbc6b4/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12083, 67, 8291, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12083, 67, 8291, 30, 365, ...
for i in importanttags.keys(): value = rpmtag[i] importanttags[i] = value importanttags[value[0]] = value hdrtags = importanttags repos = readRepos(releasever, configfiles, arch, buildroot, 0)
hdrtags = getImportantTags() time1 = time.clock() repos = readRepos(releasever, configfiles, arch, buildroot, 0, 1) time2 = time.clock() print "needed", time2 - time1, "seconds to read the repos"
def main(): import getopt global cachedir if len(sys.argv) <= 1: usage() return 0 (_, hostname, kernelversion, _, arch) = os.uname() owner = None if os.geteuid() == 0: owner = 1 homedir = os.environ.get("HOME", "") if homedir and not owner: cachedir = homedir + "/.pyrpm/cache/" if not os.path.isdir(cachedir): print "Cr...
b74ca6d66a12237e53cef4262f44b2bac15e7255 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/b74ca6d66a12237e53cef4262f44b2bac15e7255/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 336, 3838, 2552, 3472, 481, 309, 562, 12, 9499, 18, 19485, 13, 1648, 404, 30, 4084, 1435, 327, 374, 261, 67, 16, 5199, 16, 5536, 1589, 16, 389, 16, 6637, 13, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 336, 3838, 2552, 3472, 481, 309, 562, 12, 9499, 18, 19485, 13, 1648, 404, 30, 4084, 1435, 327, 374, 261, 67, 16, 5199, 16, 5536, 1589, 16, 389, 16, 6637, 13, 273, ...
This list is used by L{_write_indices} to construct the
This list is used by L{write_indices()} to construct the
def _extract_term_index(self): """ Extract the set of terms that should be indexed from all documented docstrings. Return the extracted set as a list of tuples of the form C{(key, term, [links])}. This list is used by L{_write_indices} to construct the term index. @rtype: C{list} of C{(string, ParsedDocstring, list of...
002d70bfdb399f96d8ebf5ed35ed01eb526ca66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/002d70bfdb399f96d8ebf5ed35ed01eb526ca66c/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8004, 67, 6408, 67, 1615, 12, 2890, 4672, 3536, 8152, 326, 444, 434, 6548, 716, 1410, 506, 8808, 628, 777, 23051, 997, 10219, 18, 225, 2000, 326, 9438, 444, 487, 279, 666, 434, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 67, 6408, 67, 1615, 12, 2890, 4672, 3536, 8152, 326, 444, 434, 6548, 716, 1410, 506, 8808, 628, 777, 23051, 997, 10219, 18, 225, 2000, 326, 9438, 444, 487, 279, 666, 434, 10...
if x is X[0]: G.add(Line(x[0], y.y1, x[0]+xdepth, y.y1+ydepth,strokeColor=c,strokeWidth=0.6*xdelta))
def F(x,i, slope=slope, y0=y0): return float((x-x0)*slope[i]+y0[i])
cf1d260e6e6e62494630abc50f1c00859d13ee7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/cf1d260e6e6e62494630abc50f1c00859d13ee7e/utils3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 12, 92, 16, 77, 16, 17543, 33, 30320, 16, 677, 20, 33, 93, 20, 4672, 327, 1431, 12443, 92, 17, 92, 20, 17653, 30320, 63, 77, 3737, 93, 20, 63, 77, 5717, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 12, 92, 16, 77, 16, 17543, 33, 30320, 16, 677, 20, 33, 93, 20, 4672, 327, 1431, 12443, 92, 17, 92, 20, 17653, 30320, 63, 77, 3737, 93, 20, 63, 77, 5717, 2, -100, -100, -100, ...
self.valid_chars = []
self.valid_chars = []
def display_sudoku(self, sudoku):
0a0e4f57e86817b5ed43489a7c227ec1593d0921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/0a0e4f57e86817b5ed43489a7c227ec1593d0921/sudoku.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 87, 1100, 20924, 12, 2890, 16, 272, 1100, 20924, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 87, 1100, 20924, 12, 2890, 16, 272, 1100, 20924, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
except errors.AutoservRunError:
except:
def wait_up(self, timeout=None): """ Wait until the remote host is up or the timeout expires. In fact, it will wait until an ssh connection to the remote host can be established. Args: timeout: time limit in seconds before returning even if the host is not up. Returns: True if the host was found to be up, False othe...
d00e2e8d9a6402eea2da7444bfc2a8f71a51f9a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/d00e2e8d9a6402eea2da7444bfc2a8f71a51f9a1/ssh_host.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 416, 12, 2890, 16, 2021, 33, 7036, 4672, 3536, 5838, 3180, 326, 2632, 1479, 353, 731, 578, 326, 2021, 7368, 18, 225, 657, 5410, 16, 518, 903, 2529, 3180, 392, 7056, 1459, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 416, 12, 2890, 16, 2021, 33, 7036, 4672, 3536, 5838, 3180, 326, 2632, 1479, 353, 731, 578, 326, 2021, 7368, 18, 225, 657, 5410, 16, 518, 903, 2529, 3180, 392, 7056, 1459, 358...
detail_html = '' msg = detail.get('message','')
detail_html = ''
def check_quality(uri, user, pwd, dbname, modules): uid = login(uri, dbname, user, pwd) if uid: conn = xmlrpclib.ServerProxy(uri + '/xmlrpc/object') qualityresult = {} final = {} test_detail = {} for module in modules: quality_result = execute(conn,'execute', dbname, uid, pwd,'module.quality.check','check_quality',modu...
a5c907c11a712e976144bb03f1908f64eb0b9d47 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/a5c907c11a712e976144bb03f1908f64eb0b9d47/base_quality_interrogation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 16495, 12, 1650, 16, 729, 16, 14720, 16, 18448, 16, 4381, 4672, 4555, 273, 3925, 12, 1650, 16, 18448, 16, 729, 16, 14720, 13, 309, 4555, 30, 1487, 273, 2025, 13832, 830, 495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 16495, 12, 1650, 16, 729, 16, 14720, 16, 18448, 16, 4381, 4672, 4555, 273, 3925, 12, 1650, 16, 18448, 16, 729, 16, 14720, 13, 309, 4555, 30, 1487, 273, 2025, 13832, 830, 495, ...
transaction.begin()
begin_transaction() transaction = get_transaction()
def update(self, portal, do_dry_run): self._setup_logger()
87d77beef9ad7f779a72b45f110812bff155600f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/87d77beef9ad7f779a72b45f110812bff155600f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 11899, 16, 741, 67, 25011, 67, 2681, 4672, 365, 6315, 8401, 67, 4901, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 11899, 16, 741, 67, 25011, 67, 2681, 4672, 365, 6315, 8401, 67, 4901, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
(k, s) where k is the index of the symbol obtained by acting on the `j`'th symbol with `I`, and `s` is the parity of of the `j`'th symbol.
``(k, s)`` where k is the index of the symbol obtained by acting on the `j`'th symbol with `I`, and `s` is the parity of of the `j`'th symbol (a Python ``int``, either 1 or -1)
def apply_I(self, j): """ Apply the matrix `I=[-1,0,0,1]` to the `j`-th Manin symbol.
f24ed23ca578b7754f3c6e09286c906b75c8f52b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f24ed23ca578b7754f3c6e09286c906b75c8f52b/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 45, 12, 2890, 16, 525, 4672, 3536, 5534, 326, 3148, 1375, 45, 33, 18919, 21, 16, 20, 16, 20, 16, 21, 65, 68, 358, 326, 1375, 78, 68, 17, 451, 8660, 267, 3273, 18, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 45, 12, 2890, 16, 525, 4672, 3536, 5534, 326, 3148, 1375, 45, 33, 18919, 21, 16, 20, 16, 20, 16, 21, 65, 68, 358, 326, 1375, 78, 68, 17, 451, 8660, 267, 3273, 18, 2, -1...
"""Returns the full path to the given subdir of tools/buildbot/scripts."""
"""Returns the full path to the given subdir of tools/buildbot/scripts, or None if that path cannot be found. """
def _BuildbotScriptPath(sub_dir): """Returns the full path to the given subdir of tools/buildbot/scripts.""" this_script_dir = google.path_utils.ScriptDir() return google.path_utils.FindUpward(this_script_dir, 'tools', 'buildbot', 'scripts', sub_dir)
590277b5baef3274cd4d9ffb9ee0215ea74356f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/590277b5baef3274cd4d9ffb9ee0215ea74356f2/smoketests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3116, 4819, 3651, 743, 12, 1717, 67, 1214, 4672, 3536, 1356, 326, 1983, 589, 358, 326, 864, 16921, 434, 8513, 19, 3510, 4819, 19, 12827, 16, 578, 599, 309, 716, 589, 2780, 506, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3116, 4819, 3651, 743, 12, 1717, 67, 1214, 4672, 3536, 1356, 326, 1983, 589, 358, 326, 864, 16921, 434, 8513, 19, 3510, 4819, 19, 12827, 16, 578, 599, 309, 716, 589, 2780, 506, 13...
self.helpModel = loader.loadModelCopy( "Pointlight" )
self.helpModel = loader.loadModelCopy( "models/misc/Pointlight" )
def __init__(self, light, parent, type, lightcolor=VBase4(0.3,0.3,0.3,1), specularColor = VBase4(1), position = Point3(0,0,0), orientation = Vec3(1,0,0), constant = 1.0, linear = 0.0, quadratic = 0.0, exponent = 0.0, tag="", lence = None): ################################################################# # __init__(sel...
23f2ca04525562a06414805320a81df80df464b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/23f2ca04525562a06414805320a81df80df464b0/seLights.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9052, 16, 982, 16, 618, 16, 9052, 3266, 33, 58, 2171, 24, 12, 20, 18, 23, 16, 20, 18, 23, 16, 20, 18, 23, 16, 21, 3631, 857, 2490, 2957, 273, 776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9052, 16, 982, 16, 618, 16, 9052, 3266, 33, 58, 2171, 24, 12, 20, 18, 23, 16, 20, 18, 23, 16, 20, 18, 23, 16, 21, 3631, 857, 2490, 2957, 273, 776, ...
return None
return
def includeType(type): type = unaliasType(type) if type.kind in ('builtin', 'native'): return None file = conf.irregularFilenames.get(type.name, type.name) + '.h' if file not in filesIncluded: f.write('#include "%s"\n' % file) filesIncluded.add(file) return type
ba95b8f415d6cb96d8c6a3e563448bf0af49507c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/ba95b8f415d6cb96d8c6a3e563448bf0af49507c/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2341, 559, 12, 723, 4672, 618, 273, 640, 4930, 559, 12, 723, 13, 309, 618, 18, 9224, 316, 7707, 24553, 2187, 296, 13635, 11, 4672, 327, 585, 273, 2195, 18, 481, 16819, 25579, 6809, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2341, 559, 12, 723, 4672, 618, 273, 640, 4930, 559, 12, 723, 13, 309, 618, 18, 9224, 316, 7707, 24553, 2187, 296, 13635, 11, 4672, 327, 585, 273, 2195, 18, 481, 16819, 25579, 6809, 18,...
Improving the Reliability/Cost Ratio of Goniophotometric Comparisons
Improving the Reliability/Cost Ratio of Goniophotometric Comparisons
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
7518b9371fc42cae5b7ff818acf3a636401881ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13808/7518b9371fc42cae5b7ff818acf3a636401881ae/abmb_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25079, 2250, 12, 2890, 4672, 327, 436, 8395, 1220, 353, 326, 1686, 434, 3433, 938, 1086, 434, 521, 955, 17156, 95, 2090, 49, 17, 57, 97, 364, 326, 423, 270, 3766, 4360, 275, 362, 275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25079, 2250, 12, 2890, 4672, 327, 436, 8395, 1220, 353, 326, 1686, 434, 3433, 938, 1086, 434, 521, 955, 17156, 95, 2090, 49, 17, 57, 97, 364, 326, 423, 270, 3766, 4360, 275, 362, 275, ...
return {"id": self.id, "output": self.output.getvalue(), "subtasks_done": self.subtasks_done, "subtasks_total": self.subtasks_total, "status": self.status, "done": self.status==TaskStatus.DONE, "started": time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(self.started))}
return {"id": self.id, "output": self.output.getvalue(), "subtasks_done": self.subtasks_done, "subtasks_total": self.subtasks_total, "status": self.status, "active": self.status == TaskStatus.ACTIVE, "failed": self.status == TaskStatus.FAILED, "done": self.status==TaskStatus.DONE, "started": time.strftime("%Y-%m-%d %H:...
def dict(self): return {"id": self.id, "output": self.output.getvalue(), "subtasks_done": self.subtasks_done, "subtasks_total": self.subtasks_total, "status": self.status, "done": self.status==TaskStatus.DONE, "started": time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(self.started))}
a32d77eb5a0ee1425a429a241679b75e06606022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3860/a32d77eb5a0ee1425a429a241679b75e06606022/tasks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 12, 2890, 4672, 327, 12528, 350, 6877, 365, 18, 350, 16, 315, 2844, 6877, 365, 18, 2844, 18, 588, 1132, 9334, 315, 1717, 9416, 67, 8734, 6877, 365, 18, 1717, 9416, 67, 8734, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 12, 2890, 4672, 327, 12528, 350, 6877, 365, 18, 350, 16, 315, 2844, 6877, 365, 18, 2844, 18, 588, 1132, 9334, 315, 1717, 9416, 67, 8734, 6877, 365, 18, 1717, 9416, 67, 8734, 16, ...
if len(word) < 1:
if len(word) < 2:
def command_send(word, word_eol, userdata): if len(word) < 1: print "You must provide a user to send the track to." return xchat.EAT_ALL aud = bus.get_object('org.atheme.audacious', '/org/atheme/audacious') xchat.command('DCC SEND %s "%s"' % (word[1], aud.SongFilename(aud.Position()).encode("utf8"))) return xchat.EAT_...
55867303cfecca45c6c4cfd5534b07074450dcad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11853/55867303cfecca45c6c4cfd5534b07074450dcad/xchat-audacious.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 4661, 12, 1095, 16, 2076, 67, 30951, 16, 21518, 4672, 309, 562, 12, 1095, 13, 411, 576, 30, 1172, 315, 6225, 1297, 5615, 279, 729, 358, 1366, 326, 3298, 358, 1199, 327, 619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 4661, 12, 1095, 16, 2076, 67, 30951, 16, 21518, 4672, 309, 562, 12, 1095, 13, 411, 576, 30, 1172, 315, 6225, 1297, 5615, 279, 729, 358, 1366, 326, 3298, 358, 1199, 327, 619, ...