rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
Returns a group character of from ``values``, where ``values`` is
Returns a group character from ``values``, where ``values`` is
def character(self, values): r""" Returns a group character of from ``values``, where ``values`` is a list of the values of the character evaluated on the conjugacy classes. EXAMPLES:: sage: G = AlternatingGroup(4) sage: n = len(G.conjugacy_classes_representatives()) sage: G.character([1]*n) Character of Alternating ...
317c35fede8b7240fbdacb4dd62bbce96157450d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/317c35fede8b7240fbdacb4dd62bbce96157450d/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 12, 2890, 16, 924, 4672, 436, 8395, 2860, 279, 1041, 3351, 628, 12176, 2372, 68, 9191, 1625, 12176, 2372, 10335, 353, 279, 666, 434, 326, 924, 434, 326, 3351, 12697, 603, 326, 1055...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 12, 2890, 16, 924, 4672, 436, 8395, 2860, 279, 1041, 3351, 628, 12176, 2372, 68, 9191, 1625, 12176, 2372, 10335, 353, 279, 666, 434, 326, 924, 434, 326, 3351, 12697, 603, 326, 1055...
elif n == 14:
elif number == 14:
def number_mayan(self, n): x = 42.5 x1, x2, xc, x3, x4 = x + 5, x + 15, x + 20, x + 25, x + 35 y = 60 y1s, y5s, y10s, y20s = y, y - 10, y - 20, y - 40 if n == 5: svg_string = self._svg_bar(x, y1s) elif n == 7: svg_string = self._svg_bar(x, y1s) svg_string += self._svg_circle(x2, y5s, 3) svg_string += self._svg_circle(x...
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 24877, 304, 12, 2890, 16, 290, 4672, 619, 273, 14856, 18, 25, 619, 21, 16, 619, 22, 16, 15192, 16, 619, 23, 16, 619, 24, 273, 619, 397, 1381, 16, 619, 397, 4711, 16, 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, 1300, 67, 24877, 304, 12, 2890, 16, 290, 4672, 619, 273, 14856, 18, 25, 619, 21, 16, 619, 22, 16, 15192, 16, 619, 23, 16, 619, 24, 273, 619, 397, 1381, 16, 619, 397, 4711, 16, 619,...
retry = wifi_details.getRetry() except IOError, (errno, strerror): return None else: return "Retry limit:%s " % (wifi.getRetrylimit(), )
retry = wifi.wireless_info.getRetry() except IOError, (errno, strerror): return None else: return "Retry limit:%s " % (wifi.getRetrylimit(), )
def getRetrylimit(wifi, wifi_details): """ Return formatted string with Retry info. """ try: retry = wifi_details.getRetry() except IOError, (errno, strerror): return None else: return "Retry limit:%s " % (wifi.getRetrylimit(), )
00a2b457b7ea878745c9bf3776fc596fe42089a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/00a2b457b7ea878745c9bf3776fc596fe42089a9/iwconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4170, 2559, 3595, 12, 91, 704, 16, 341, 704, 67, 6395, 4672, 3536, 2000, 4955, 533, 598, 9954, 1123, 18, 3536, 775, 30, 3300, 273, 341, 704, 18, 14538, 2656, 67, 1376, 18, 588, 7539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4170, 2559, 3595, 12, 91, 704, 16, 341, 704, 67, 6395, 4672, 3536, 2000, 4955, 533, 598, 9954, 1123, 18, 3536, 775, 30, 3300, 273, 341, 704, 18, 14538, 2656, 67, 1376, 18, 588, 7539, ...
def log_state_default(self, params=None):
def log_state_default(self, params):
def log_state_default(self, params=None): pass
41fb2db3ffe117821b63c00171517cea74eb3e5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/41fb2db3ffe117821b63c00171517cea74eb3e5a/engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 2019, 67, 1886, 12, 2890, 16, 859, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 2019, 67, 1886, 12, 2890, 16, 859, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
>>> class A:
>>> class A:
... def setx(self, x):
aac857e07e983cfb7c1a2faaa8aec9409d49a30a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/aac857e07e983cfb7c1a2faaa8aec9409d49a30a/test_descrtut.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 444, 92, 12, 2890, 16, 619, 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, 1372, 377, 1652, 444, 92, 12, 2890, 16, 619, 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, ...
res = ''.join(res)
res = u''.join(res)
def raw_unicode_escape_decode( data,errors='strict'): """None """ res = PyUnicode_DecodeRawUnicodeEscape(data, len(data), errors) res = ''.join(res) return res,len(res)
43ce23feb40aadc6a6a9c31d19c968e0351f9245 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/43ce23feb40aadc6a6a9c31d19c968e0351f9245/inprogress__codecs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 67, 9124, 67, 6939, 67, 3922, 12, 501, 16, 4324, 2218, 13948, 11, 4672, 3536, 7036, 3536, 400, 273, 4707, 16532, 67, 6615, 4809, 16532, 8448, 12, 892, 16, 562, 12, 892, 3631, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 67, 9124, 67, 6939, 67, 3922, 12, 501, 16, 4324, 2218, 13948, 11, 4672, 3536, 7036, 3536, 400, 273, 4707, 16532, 67, 6615, 4809, 16532, 8448, 12, 892, 16, 562, 12, 892, 3631, 133...
def testConnect(self):
def test_connect(self):
def testConnect(self): s = ssl.wrap_socket(socket.socket(socket.AF_INET), cert_reqs=ssl.CERT_NONE) s.connect(("svn.python.org", 443)) c = s.getpeercert() if c: self.fail("Peer cert %s shouldn't be here!") s.close()
cb62a4cb12d8f0f9904d111d93c76ea857434a52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/cb62a4cb12d8f0f9904d111d93c76ea857434a52/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3612, 12, 2890, 4672, 272, 273, 5832, 18, 4113, 67, 7814, 12, 7814, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 3631, 3320, 67, 25782, 33, 8157, 18, 22367, 67, 9826, 13, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3612, 12, 2890, 4672, 272, 273, 5832, 18, 4113, 67, 7814, 12, 7814, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 3631, 3320, 67, 25782, 33, 8157, 18, 22367, 67, 9826, 13, 272, ...
fmts = [f.strip().upper() for f in self.data[self.data.row(id)][FIELD_MAP['formats']].split(',')] fmts.remove(format.upper()) self.data.set(id, FIELD_MAP['formats'], ','.join(fmts), row_is_id=True)
self.refresh_ids([id])
def remove_format(self, index, format, index_is_id=False, notify=True): id = index if index_is_id else self.id(index) path = os.path.join(self.library_path, self.path(id, index_is_id=True)) name = self.conn.get('SELECT name FROM data WHERE book=? AND format=?', (id, format), all=False) name = name[0] if name else False...
7931a9d2bd4dbc97f770b83bcc35f9584814e45c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/7931a9d2bd4dbc97f770b83bcc35f9584814e45c/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 2139, 12, 2890, 16, 770, 16, 740, 16, 770, 67, 291, 67, 350, 33, 8381, 16, 5066, 33, 5510, 4672, 612, 273, 770, 309, 770, 67, 291, 67, 350, 469, 365, 18, 350, 12, 1615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 2139, 12, 2890, 16, 770, 16, 740, 16, 770, 67, 291, 67, 350, 33, 8381, 16, 5066, 33, 5510, 4672, 612, 273, 770, 309, 770, 67, 291, 67, 350, 469, 365, 18, 350, 12, 1615, ...
raise KeyError( item ) def bounds( self ):
raise KeyError(item) def bounds(self):
def _find_first_match_( self, keys, item ): is_match = lambda k: self.match( item, k ) # use of ifilter here would be more efficent matches = filter( is_match, keys ) if matches: return matches[0] raise KeyError( item )
c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 3645, 67, 1916, 67, 12, 365, 16, 1311, 16, 761, 262, 30, 353, 67, 1916, 273, 3195, 417, 30, 365, 18, 1916, 12, 761, 16, 417, 262, 468, 999, 434, 309, 1088, 2674, 410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 67, 3645, 67, 1916, 67, 12, 365, 16, 1311, 16, 761, 262, 30, 353, 67, 1916, 273, 3195, 417, 30, 365, 18, 1916, 12, 761, 16, 417, 262, 468, 999, 434, 309, 1088, 2674, 410...
if (command == ' ') != last_type: last_type = command == ' ' blocks.append({'type': last_type and 'unmod' or 'mod', 'base.offset': fromline - 1, 'base.lines': [], 'changed.offset': toline - 1, 'changed.lines': []}) if command == ' ': blocks[-1]['changed.lines'].append(line) blocks[-1]['base.lines'].append(line) fromli...
while fromline < fromend or toline < toend: line = lines.next() command, line = line[0], line[1:] if (command == ' ') != last_type: last_type = command == ' ' blocks.append({'type': last_type and 'unmod' or 'mod', 'base.offset': fromline - 1, 'base.lines': [], 'changed.offset': toline - 1, 'changed.lines': []}) if c...
def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * '&nbsp; ' + mod * '&nbsp;'
81b657b816d8b094d2886fe500c5decefefc5342 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/81b657b816d8b094d2886fe500c5decefefc5342/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, ...
remaining = self.GetSize().width - widthMinusLastColumn """ Big fat hack. Since the grid is a scrolled window we set a border equal to the size of the scrollbar so the scroll bars won't show. Instead we should consider modifying grid adding a new style for not showing scrollbars. Bug """ remaining = remaining - wx.Sys...
remaining = self.GetClientSize().width - widthMinusLastColumn remaining -= self._colBorderSize
def wxSynchronizeWidget(self): """ A Grid can't easily redisplay its contents, so we write the following helper function to readjust everything after the contents change """ #Trim/extend the control's rows and update all values
f21edc0009ce00e11db682294e1d907846620696 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f21edc0009ce00e11db682294e1d907846620696/ControlBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7075, 19298, 554, 4609, 12, 2890, 4672, 3536, 432, 7145, 848, 1404, 17997, 5813, 1601, 2097, 2939, 16, 1427, 732, 1045, 326, 3751, 4222, 445, 358, 855, 3732, 7756, 1839, 326, 2939, 2549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7075, 19298, 554, 4609, 12, 2890, 4672, 3536, 432, 7145, 848, 1404, 17997, 5813, 1601, 2097, 2939, 16, 1427, 732, 1045, 326, 3751, 4222, 445, 358, 855, 3732, 7756, 1839, 326, 2939, 2549, ...
tablist.add(info, info.parent_id)
if hasattr(info, "parent_id"): tablist.add(info, info.parent_id) else: tablist.add(info)
def handle_tabs_changed(self, message): if message.type == 'guide': for info in list(message.changed): if info.default: self.update_default_guide(info) message.changed.remove(info) break tablist = self.tablist_for_message(message) if message.removed: tablist.remove(message.removed) for info in message.changed: tablist....
6515bbee77b9cd60445565df291ed797c032fac6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/6515bbee77b9cd60445565df291ed797c032fac6/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 16056, 67, 6703, 12, 2890, 16, 883, 4672, 309, 883, 18, 723, 422, 296, 12118, 4278, 364, 1123, 316, 666, 12, 2150, 18, 6703, 4672, 309, 1123, 18, 1886, 30, 365, 18, 2725, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 16056, 67, 6703, 12, 2890, 16, 883, 4672, 309, 883, 18, 723, 422, 296, 12118, 4278, 364, 1123, 316, 666, 12, 2150, 18, 6703, 4672, 309, 1123, 18, 1886, 30, 365, 18, 2725, 6...
as = atom.service.AtomService('code.google.com') self.assertEquals(as.server, 'code.google.com') (host, port, ssl, path) = atom.service.ProcessUrl(as,
atom_service = atom.service.AtomService('code.google.com') self.assertEquals(atom_service.server, 'code.google.com') (host, port, ssl, path) = atom.service.ProcessUrl(atom_service,
def testParseHttpUrl(self): as = atom.service.AtomService('code.google.com') self.assertEquals(as.server, 'code.google.com') (host, port, ssl, path) = atom.service.ProcessUrl(as, 'http://www.google.com/service/subservice?name=value')
c04c73a782840c833cb2436bbf4e5d652abedbfc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/c04c73a782840c833cb2436bbf4e5d652abedbfc/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3201, 2940, 1489, 12, 2890, 4672, 3179, 67, 3278, 273, 3179, 18, 3278, 18, 3641, 1179, 2668, 710, 18, 9536, 18, 832, 6134, 365, 18, 11231, 8867, 12, 7466, 67, 3278, 18, 3567, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3201, 2940, 1489, 12, 2890, 4672, 3179, 67, 3278, 273, 3179, 18, 3278, 18, 3641, 1179, 2668, 710, 18, 9536, 18, 832, 6134, 365, 18, 11231, 8867, 12, 7466, 67, 3278, 18, 3567, 16,...
else: x = '0'
def begin_text(self, attrs): if self.in_defs: id = attrs.get('id', '') if id: self.named_objects[id] = ('object', 'text', attrs) return
20f97a1a1862b824365b83f00419d19bd29be2c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/20f97a1a1862b824365b83f00419d19bd29be2c5/svgloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 67, 955, 12, 2890, 16, 3422, 4672, 309, 365, 18, 267, 67, 12537, 30, 612, 273, 3422, 18, 588, 2668, 350, 2187, 28707, 309, 612, 30, 365, 18, 13188, 67, 6911, 63, 350, 65, 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, 2376, 67, 955, 12, 2890, 16, 3422, 4672, 309, 365, 18, 267, 67, 12537, 30, 612, 273, 3422, 18, 588, 2668, 350, 2187, 28707, 309, 612, 30, 365, 18, 13188, 67, 6911, 63, 350, 65, 273, ...
def __init__(self,lang,term,relatedwords=[],label=''):
def __init__(self,lang,term,relatedwords=[]):
def __init__(self,lang,term,relatedwords=[],label=''): """ Constructor Generally called with two parameters: - The language of the term - The term (string)
1b1b4569b6745a15f68c338b63248732b0b8fe0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1b1b4569b6745a15f68c338b63248732b0b8fe0d/wiktionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4936, 16, 6408, 16, 9243, 3753, 33, 8526, 4672, 3536, 11417, 3055, 1230, 2566, 598, 2795, 1472, 30, 300, 1021, 2653, 434, 326, 2481, 300, 1021, 2481, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4936, 16, 6408, 16, 9243, 3753, 33, 8526, 4672, 3536, 11417, 3055, 1230, 2566, 598, 2795, 1472, 30, 300, 1021, 2653, 434, 326, 2481, 300, 1021, 2481, 261, ...
print >> env_file, " setenv LD_LIBRARY_PATH " + self.install_platlib + ":${LD_LIBRARY_PATH}"
print >> env_file, " setenv LD_LIBRARY_PATH " + glue_install_platlib + ":${LD_LIBRARY_PATH}"
def run(self):
ae44075ce5df81f6404c737cc4720f6c045115d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/ae44075ce5df81f6404c737cc4720f6c045115d1/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
class DummyScheduler: def __init__(self): self.c = [] def __call__(self, func, delay, args = []): self.c.append((func, delay, args))
def start_connection(self, ip): self.c.append(ip)
e515f2d77bfcdfdf465f07113b3fb94b00f492ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/e515f2d77bfcdfdf465f07113b3fb94b00f492ad/Connecter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 4071, 12, 2890, 16, 2359, 4672, 365, 18, 71, 18, 6923, 12, 625, 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, ...
[ 1, 1, 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, 787, 67, 4071, 12, 2890, 16, 2359, 4672, 365, 18, 71, 18, 6923, 12, 625, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if max_queued and (len(self.downloads) >= max_queued):
if max_queued and (len(self.get_downloads()) >= max_queued):
def add_download(self, d): max_queued = int(self.get_setting('max_queued', 0)) if max_queued and (len(self.downloads) >= max_queued): raise Exception('Too many downloads queued (see "max_queued" config var)')
a1911aafcb90976a58220f7b22d873526957c643 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12636/a1911aafcb90976a58220f7b22d873526957c643/manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7813, 12, 2890, 16, 302, 4672, 943, 67, 19499, 273, 509, 12, 2890, 18, 588, 67, 8920, 2668, 1896, 67, 19499, 2187, 374, 3719, 309, 943, 67, 19499, 471, 261, 1897, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7813, 12, 2890, 16, 302, 4672, 943, 67, 19499, 273, 509, 12, 2890, 18, 588, 67, 8920, 2668, 1896, 67, 19499, 2187, 374, 3719, 309, 943, 67, 19499, 471, 261, 1897, 12, 2890, ...
path = gnomevfs.get_local_path_from_uri(item.get_uri())
path = realpath(gnomevfs.get_local_path_from_uri(item.get_uri()))
def get_background_items(self, window, item): """ Menu activated on entering a directory. Builds context menu for File menu and for window background. @type window: NautilusNavigationWindow @param window: @type item: NautilusVFSFile @param item: @rtype: list of MenuItems @return: The context ...
3e52df1110523c743b8fffdc71032c706f762465 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/3e52df1110523c743b8fffdc71032c706f762465/NautilusSvn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9342, 67, 3319, 12, 2890, 16, 2742, 16, 761, 4672, 225, 3536, 9809, 14892, 603, 19014, 279, 1867, 18, 3998, 87, 819, 3824, 364, 1387, 3824, 471, 364, 2742, 5412, 18, 225, 632,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9342, 67, 3319, 12, 2890, 16, 2742, 16, 761, 4672, 225, 3536, 9809, 14892, 603, 19014, 279, 1867, 18, 3998, 87, 819, 3824, 364, 1387, 3824, 471, 364, 2742, 5412, 18, 225, 632,...
if (rev in self.commits or (revnum < self.lastrevs.get(self.module, 0))): return
if (rev in self.commits or revnum < to_revnum): return None
def parselogentry(orig_paths, revnum, author, date, message): self.ui.debug("parsing revision %d (%d changes)\n" % (revnum, len(orig_paths)))
1dc7f27002cdbb31b8f5fa4ea02313fc66ff16ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/1dc7f27002cdbb31b8f5fa4ea02313fc66ff16ee/subversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 26...
st.append("%02X"%(int(str(M[x,y].int_repr()))))
st.append("%02X"%(int(str(M[x, y].int_repr()))))
def hex_str_vector(self, M): """ Return a one dimensional AES like representation of the matrix M.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 67, 701, 67, 7737, 12, 2890, 16, 490, 4672, 3536, 2000, 279, 1245, 17469, 15986, 3007, 4335, 434, 326, 3148, 490, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 67, 701, 67, 7737, 12, 2890, 16, 490, 4672, 3536, 2000, 279, 1245, 17469, 15986, 3007, 4335, 434, 326, 3148, 490, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Interval.__init__(self, name, duration)
Interval.__init__(self, name, self.duration)
def __init__(self, node, startPos = None, endPos = None, duration = None, startVel = None, endZ = None, gravityMult = None, name = None): """ You may specify several different sets of input parameters. (If startPos is not provided, it will be obtained from the node.) # go from startPos to endPos in duration seconds st...
ca6e9716d8ec52f509566e08cd7787d4ab72c732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/ca6e9716d8ec52f509566e08cd7787d4ab72c732/ProjectileInterval.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 756, 16, 16013, 273, 599, 16, 19809, 273, 599, 16, 3734, 273, 599, 16, 787, 58, 292, 273, 599, 16, 679, 62, 273, 599, 16, 26189, 5049, 273, 599, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 756, 16, 16013, 273, 599, 16, 19809, 273, 599, 16, 3734, 273, 599, 16, 787, 58, 292, 273, 599, 16, 679, 62, 273, 599, 16, 26189, 5049, 273, 599, 16, ...
if self.getNewFlavor():
if not self.getNewFlavor().isEmpty():
def depformat(name, dep, f): f.write('\t%s: %s\n' %(name, str(dep).replace('\n', '\n\t%s' %(' '* (len(name)+2)))))
16c7d8d09535ba6a109bdcfdd00a820bbb0535cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/16c7d8d09535ba6a109bdcfdd00a820bbb0535cf/trove.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5993, 2139, 12, 529, 16, 5993, 16, 284, 4672, 284, 18, 2626, 2668, 64, 88, 9, 87, 30, 738, 87, 64, 82, 11, 8975, 529, 16, 609, 12, 15037, 2934, 2079, 2668, 64, 82, 2187, 2337, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5993, 2139, 12, 529, 16, 5993, 16, 284, 4672, 284, 18, 2626, 2668, 64, 88, 9, 87, 30, 738, 87, 64, 82, 11, 8975, 529, 16, 609, 12, 15037, 2934, 2079, 2668, 64, 82, 2187, 2337, 82, ...
logger.debug("Override encoding of template to %s" % self.encoding)
if self.encoding != 'ascii': logger.debug("Override encoding of %s TGenshi template to %s" % (self.name, self.encoding))
def bind_entry(self, entry, metadata): '''Build literal file information''' fname = entry.get('realname', entry.get('name')) try: stream = self.template.generate( \ name=fname, metadata=metadata, path=self.name, properties=self.properties).filter(removecomment) if isinstance(self.template, TextTemplate): textdata = str...
ad6ac403ada75067c3858d19f16be97ef971c84d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/ad6ac403ada75067c3858d19f16be97ef971c84d/TGenshi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 67, 4099, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 3116, 7158, 585, 1779, 26418, 5299, 273, 1241, 18, 588, 2668, 7688, 529, 2187, 1241, 18, 588, 2668, 529, 26112, 775, 30, 1407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 67, 4099, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 3116, 7158, 585, 1779, 26418, 5299, 273, 1241, 18, 588, 2668, 7688, 529, 2187, 1241, 18, 588, 2668, 529, 26112, 775, 30, 1407, ...
edgesCurveObject = UnconnectedLinesCurve(self, QPen(QColor(224,224,224)), self.xData, self.yData)
edgesCurveObject = UnconnectedLinesCurve(self, QPen(QColor(192,192,192)), self.xData, self.yData)
def updateData(self): self.removeDrawingCurves(removeLegendItems = 0) self.removeMarkers() self.tips.removeAll() self.xData = [] self.yData = [] edgesCount = 0 # draw edges for e in range(self.nEdges): (key,i,j) = self.edges[e] x1 = self.visualizer.xCoors[i] x2 = self.visualizer.xCoors[j] y1 = self.visualizer.yCoors...
1555c438c2f1bad035c168abae34e16c922522a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/1555c438c2f1bad035c168abae34e16c922522a8/OWGraphDrawerCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 751, 12, 2890, 4672, 365, 18, 4479, 26885, 2408, 3324, 12, 4479, 16812, 3126, 273, 374, 13, 365, 18, 4479, 21644, 1435, 365, 18, 88, 7146, 18, 4479, 1595, 1435, 225, 365, 18, 92,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 751, 12, 2890, 4672, 365, 18, 4479, 26885, 2408, 3324, 12, 4479, 16812, 3126, 273, 374, 13, 365, 18, 4479, 21644, 1435, 365, 18, 88, 7146, 18, 4479, 1595, 1435, 225, 365, 18, 92,...
newnode.append(contnode) else: newnode.append(contnode.__class__(dispname, dispname))
dispname = target newnode.append(contnode.__class__(dispname, dispname))
def missing_reference(app, env, node, contnode): """Attempt to resolve a missing reference via intersphinx references.""" domain = node.get('refdomain') if not domain: # only objects in domains are in the inventory return target = node['reftarget'] objtypes = env.domains[domain].objtypes_for_role(node['reftype']) if no...
bf71b0b2fad1a802d0cb4a23aa9dfa568fbd9393 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/bf71b0b2fad1a802d0cb4a23aa9dfa568fbd9393/intersphinx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 6180, 12, 2910, 16, 1550, 16, 756, 16, 466, 2159, 4672, 3536, 7744, 358, 2245, 279, 3315, 2114, 3970, 1554, 87, 15922, 5351, 12123, 2461, 273, 756, 18, 588, 2668, 1734, 4308, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 6180, 12, 2910, 16, 1550, 16, 756, 16, 466, 2159, 4672, 3536, 7744, 358, 2245, 279, 3315, 2114, 3970, 1554, 87, 15922, 5351, 12123, 2461, 273, 756, 18, 588, 2668, 1734, 4308, ...
fs = fs.decode(stream.encoding)
ufs = fs.decode(stream.encoding)
def emit(self, record): """ Emit a record.
dc323b1e942a87d12db8e101bb735470f6743b07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/dc323b1e942a87d12db8e101bb735470f6743b07/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return if self._p_jar.db is not Globals.Bobobase._jar.db: raise 'Version Error', ( '''You may not change the database cache size while working in a <em>version</em>''') self._cache_size=Globals.Bobobase._jar.cache.cache_size=value
def manage_cache_size(self,value,REQUEST): "set cache size" try: v=self._p_jar.getVersion() except: pass else: if v: self._vcache_size=value self._p_jar.db().setVersionCacheSize(value) else: self._cache_size=value self._p_jar.db().setCacheSize(value) return
6d93a7b72c3e0200f057e85e4a55eac1c82d9241 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6d93a7b72c3e0200f057e85e4a55eac1c82d9241/CacheManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 2493, 67, 1467, 12, 2890, 16, 1132, 16, 5519, 4672, 315, 542, 1247, 963, 6, 775, 30, 331, 33, 2890, 6315, 84, 67, 11930, 18, 588, 1444, 1435, 1335, 30, 1342, 469, 30, 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, 10680, 67, 2493, 67, 1467, 12, 2890, 16, 1132, 16, 5519, 4672, 315, 542, 1247, 963, 6, 775, 30, 331, 33, 2890, 6315, 84, 67, 11930, 18, 588, 1444, 1435, 1335, 30, 1342, 469, 30, 309,...
time.room = saveRoom(meeting[5] if len(meeting) > 5
time.room = saveRoom(meeting[5] if len(meeting) > 5
def saveSections(groups, course): for groupnum, group in enumerate(groups): for sectInfo in group: section = Section() section.course = course section.sectionnum = sectInfo['num'] section.group = groupnum section.save() for prof in sectInfo['instructor'].split('/'): section.professors.add(saveProfessor(sectInfo['in...
0fe435bd9d02146203e7296ae17fd11ab25f4c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14941/0fe435bd9d02146203e7296ae17fd11ab25f4c33/uploadcourses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 15965, 12, 4650, 16, 4362, 4672, 364, 1041, 2107, 16, 1041, 316, 4241, 12, 4650, 4672, 364, 29140, 966, 316, 1041, 30, 2442, 273, 10092, 1435, 2442, 18, 5566, 377, 273, 4362, 2442,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 15965, 12, 4650, 16, 4362, 4672, 364, 1041, 2107, 16, 1041, 316, 4241, 12, 4650, 4672, 364, 29140, 966, 316, 1041, 30, 2442, 273, 10092, 1435, 2442, 18, 5566, 377, 273, 4362, 2442,...
if new_edge > edge:
if new_edge >= edge:
def _match_right (self, current_geo, possible_geo, best_geo): '''We want to find terminals that are fully to the right of the right-side border, but closest in the x direction, breaking ties via the closest cursor y position.''' #print "matching right..." # right-side edge of the current terminal edge = current_geo['or...
10a464c2d3c0c95e1f43f0d4fb4a4b4ab4ed08b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/10a464c2d3c0c95e1f43f0d4fb4a4b4ab4ed08b2/terminator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1916, 67, 4083, 261, 2890, 16, 783, 67, 12376, 16, 3323, 67, 12376, 16, 3796, 67, 12376, 4672, 9163, 3218, 2545, 358, 1104, 16122, 1031, 716, 854, 7418, 358, 326, 2145, 434, 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, 389, 1916, 67, 4083, 261, 2890, 16, 783, 67, 12376, 16, 3323, 67, 12376, 16, 3796, 67, 12376, 4672, 9163, 3218, 2545, 358, 1104, 16122, 1031, 716, 854, 7418, 358, 326, 2145, 434, 326, ...
self.client.db.security.hasPermission = lambda a,b,c: True
self.client.db.security.hasPermission = lambda *args, **kwargs: True
def testCorrectLogin(self): self.client.db.security.hasPermission = lambda a,b,c: True
d9b97716a39025bf48047fde83911de0fb5cd15e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d9b97716a39025bf48047fde83911de0fb5cd15e/test_actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16147, 5358, 12, 2890, 4672, 365, 18, 2625, 18, 1966, 18, 7462, 18, 5332, 5041, 273, 3195, 279, 16, 70, 16, 71, 30, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16147, 5358, 12, 2890, 4672, 365, 18, 2625, 18, 1966, 18, 7462, 18, 5332, 5041, 273, 3195, 279, 16, 70, 16, 71, 30, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
httpd = TCPServer(('127.0.0.1', _http_port), HTTPRequestHandler)
while True : try : httpd = TCPServer(('127.0.0.1', _http_port), HTTPRequestHandler) break except socket.error, e : if e[0] == 98 : logging.warning("%s/webadmin: socket alreadyin use. waiting 5 seconds." % pname) time.sleep(5) else : logging.error("%s/webadmin: socket error %s." % (pname, e)) return
def fork_http_server() : try: if os.fork() == 0 : # FIXME: drop_privileges() → become setuid('licorn:licorn') open(wpid_path,'w').write("%s\n" % os.getpid()) process.set_name('%s/webadmin' % pname) logging.progress("%s/webadmin: starting (pid %d)." % (pname, os.getpid())) httpd = TCPServer(('127.0.0.1', _http_port), H...
80798a2d55860e49f654c6effbffdb873b80102c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7650/80798a2d55860e49f654c6effbffdb873b80102c/internals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12515, 67, 2505, 67, 3567, 1435, 294, 775, 30, 309, 1140, 18, 23335, 1435, 422, 374, 294, 468, 9852, 30, 3640, 67, 28459, 2852, 1435, 225, 163, 233, 245, 12561, 444, 1911, 2668, 80, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12515, 67, 2505, 67, 3567, 1435, 294, 775, 30, 309, 1140, 18, 23335, 1435, 422, 374, 294, 468, 9852, 30, 3640, 67, 28459, 2852, 1435, 225, 163, 233, 245, 12561, 444, 1911, 2668, 80, 33...
def __init__(self, worksheet_name): self.name = worksheet_name self.worksheet = notebook.get_worksheet_with_name(worksheet_name)
def __init__(self, name): self.name = name try: self.worksheet = notebook.get_worksheet_with_id(name) except KeyError: self.worksheet = notebook.create_new_worksheet(name)
def __init__(self, worksheet_name): self.name = worksheet_name self.worksheet = notebook.get_worksheet_with_name(worksheet_name)
4c7bcd9d8bd55210ea8607271d6d96f158f400a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4c7bcd9d8bd55210ea8607271d6d96f158f400a8/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13622, 67, 529, 4672, 365, 18, 529, 273, 13622, 67, 529, 365, 18, 1252, 8118, 273, 14718, 18, 588, 67, 1252, 8118, 67, 1918, 67, 529, 12, 1252, 8118, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13622, 67, 529, 4672, 365, 18, 529, 273, 13622, 67, 529, 365, 18, 1252, 8118, 273, 14718, 18, 588, 67, 1252, 8118, 67, 1918, 67, 529, 12, 1252, 8118, 6...
sage: K.hilbert_class_polynomial()
sage: K.hilbert_class_field_defining_polynomial()
def hilbert_class_polynomial(self): r""" Returns a polynomial over $\QQ$ whose roots generate the Hilbert class field of this quadratic field.
2a259e3659e2fbb631c618303984449cc23e8057 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2a259e3659e2fbb631c618303984449cc23e8057/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 330, 25925, 67, 1106, 67, 3915, 13602, 12, 2890, 4672, 436, 8395, 2860, 279, 16991, 1879, 271, 64, 53, 53, 8, 8272, 12876, 2103, 326, 670, 330, 25925, 667, 652, 434, 333, 26146, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 366, 330, 25925, 67, 1106, 67, 3915, 13602, 12, 2890, 4672, 436, 8395, 2860, 279, 16991, 1879, 271, 64, 53, 53, 8, 8272, 12876, 2103, 326, 670, 330, 25925, 667, 652, 434, 333, 26146, 6...
test(tests)
def calltip_show(self, event): self.calltip.showtip("Hello world") def calltip_hide(self, event): self.calltip.hidetip() def main(): c=container() if __name__=='__main__': main()
def test( tests ): failed=[] for t in tests: if get_arg_text(t) != t.__doc__: failed.append(t) print "%s - expected %s, but got %s" % (t, `t.__doc__`, `get_arg_text(t)`) print "%d of %d tests failed" % (len(failed), len(tests))
85b973576887f174f4f12fa643eeb232dba2be66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/85b973576887f174f4f12fa643eeb232dba2be66/CallTipWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 7434, 262, 30, 2535, 33, 8526, 364, 268, 316, 7434, 30, 309, 336, 67, 3175, 67, 955, 12, 88, 13, 480, 268, 16186, 2434, 972, 30, 2535, 18, 6923, 12, 88, 13, 1172, 2213, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 7434, 262, 30, 2535, 33, 8526, 364, 268, 316, 7434, 30, 309, 336, 67, 3175, 67, 955, 12, 88, 13, 480, 268, 16186, 2434, 972, 30, 2535, 18, 6923, 12, 88, 13, 1172, 2213, 8...
ParseDbg.add("parse_expression, start buffer: \"%s\"" % self.buffer) match = re_start_fun.match(self.buffer)
self.pdbg("parse_expression, start buffer: \"%s\"" % self.buffer) match = re_fun.match(self.buffer)
def parse_expression(self, prune=False): self.buffer = self.buffer.strip() if self.buffer == "": if self.readline(): if re_rule.match(self.buffer): ParseDbg.add("parse_expression new line started new rule, returning None") return(None, None) self.buffer = self.buffer.strip() else: ParseDbg.add("parse_expression EOF, re...
57b9dbd56a9e011788ef60900e9a91776ddbb48d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2827/57b9dbd56a9e011788ef60900e9a91776ddbb48d/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8692, 12, 2890, 16, 13293, 33, 8381, 4672, 365, 18, 4106, 273, 365, 18, 4106, 18, 6406, 1435, 309, 365, 18, 4106, 422, 1408, 30, 309, 365, 18, 896, 1369, 13332, 309, 283, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8692, 12, 2890, 16, 13293, 33, 8381, 4672, 365, 18, 4106, 273, 365, 18, 4106, 18, 6406, 1435, 309, 365, 18, 4106, 422, 1408, 30, 309, 365, 18, 896, 1369, 13332, 309, 283, 6...
q = Queue.Queue(1)
def run(self): self.conf = self.get_conf_dict() #print self.conf
f301a42ec88d17568c5e38c8fe8c40e8d96caaea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12047/f301a42ec88d17568c5e38c8fe8c40e8d96caaea/d-fuzz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 3923, 273, 365, 18, 588, 67, 3923, 67, 1576, 1435, 468, 1188, 365, 18, 3923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 2890, 4672, 365, 18, 3923, 273, 365, 18, 588, 67, 3923, 67, 1576, 1435, 468, 1188, 365, 18, 3923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if WIN32: command = '"%s"' % command
if WIN32: command = '"%s"' % command
def quote_command(command): print " ".join(command) # Quote the program name, so it works even if it contains spaces command = " ".join(['"%s"' % x for x in command]) if WIN32: # odd, but true: the windows cmd processor can't handle more than # one quoted item per string unless you add quotes around the # whole line. c...
641b7da821a0c98bf91514ee688d4f4c7b8a24b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12227/641b7da821a0c98bf91514ee688d4f4c7b8a24b0/ctl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 67, 3076, 12, 3076, 4672, 1172, 315, 3552, 5701, 12, 3076, 13, 468, 21695, 326, 5402, 508, 16, 1427, 518, 6330, 5456, 309, 518, 1914, 7292, 1296, 273, 315, 3552, 5701, 12, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 67, 3076, 12, 3076, 4672, 1172, 315, 3552, 5701, 12, 3076, 13, 468, 21695, 326, 5402, 508, 16, 1427, 518, 6330, 5456, 309, 518, 1914, 7292, 1296, 273, 315, 3552, 5701, 12, 3292, ...
rc_entry = [ r'''\Format pdf pdf "PDF (ps2pdf)" P "%%" "" "document"
rc_entry = [r'''\Format pdf pdf "PDF (ps2pdf)" P "%%" "" "document"
def checkFormatEntries(): ''' Check all formats (\Format entries) ''' checkProg('a Tgif viewer and editor', ['tgif'], rc_entry = [ r'\Format tgif obj Tgif "" "%%" "%%" ""']) # checkProg('a FIG viewer and editor', ['xfig'], rc_entry = [ r'\Format fig fig FIG "" "...
d5443737342903de489d527802cd2cdd38987d74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/d5443737342903de489d527802cd2cdd38987d74/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1630, 5400, 13332, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 626, 75, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, 67, 4099, 273, 306, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1630, 5400, 13332, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 626, 75, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, 67, 4099, 273, 306, ...
elif ' ' in params[0]: nicks = params[0].split(' ') else: nicks = params[0]
else: nicks = params
def text_command(self,cmdstring,window): if not cmdstring: return # is raising a exception necessary? # in a debug window, do nothing if hasattr(window, "get_channelname") and \ window.get_channelname() == "debug": return
0dbeb27338ea0516012ebbac32c21016326f116b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2718/0dbeb27338ea0516012ebbac32c21016326f116b/wxserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 67, 3076, 12, 2890, 16, 4172, 1080, 16, 5668, 4672, 309, 486, 1797, 1080, 30, 327, 468, 353, 28014, 279, 1520, 4573, 35, 225, 468, 316, 279, 1198, 2742, 16, 741, 5083, 309, 3859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 67, 3076, 12, 2890, 16, 4172, 1080, 16, 5668, 4672, 309, 486, 1797, 1080, 30, 327, 468, 353, 28014, 279, 1520, 4573, 35, 225, 468, 316, 279, 1198, 2742, 16, 741, 5083, 309, 3859, ...
fillColor, strokeColor = style[self.level]
fillColor, strokeColor = styleFor(self.level)
def label(self, lab, x, y, dx, dy, flipped, opacity=1.0):
e4d979c4296cd0e14b4bf1e9438cfdf27e240481 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/e4d979c4296cd0e14b4bf1e9438cfdf27e240481/du-svg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 12, 2890, 16, 11814, 16, 619, 16, 677, 16, 6633, 16, 7732, 16, 28821, 16, 12636, 33, 21, 18, 20, 4672, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 12, 2890, 16, 11814, 16, 619, 16, 677, 16, 6633, 16, 7732, 16, 28821, 16, 12636, 33, 21, 18, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sage: os.listdir(nb.directory() + '/worksheets/' + W.filename())
sage: sorted(os.listdir(nb.directory() + '/worksheets/' + W.filename()))
def filename(self): """ Return the filename (really directory) where the files associated to this worksheet are stored.
d313604fd20d8e178abfdc9d30684d263fcbef76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d313604fd20d8e178abfdc9d30684d263fcbef76/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1544, 12, 2890, 4672, 3536, 2000, 326, 1544, 261, 266, 1230, 1867, 13, 1625, 326, 1390, 3627, 358, 333, 13622, 854, 4041, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1544, 12, 2890, 4672, 3536, 2000, 326, 1544, 261, 266, 1230, 1867, 13, 1625, 326, 1390, 3627, 358, 333, 13622, 854, 4041, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.assertIsInstance(keys, list) self.assertIsInstance(keys[0], int)
self.assertTrue(isinstance(keys, list)) self.assertTrue(isinstance(keys[0], int))
def test01_basic(self): d = db.DB()
cf864ec6d7865633f1d8454ba2cc4580bd219b8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/cf864ec6d7865633f1d8454ba2cc4580bd219b8a/test_recno.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 13240, 12, 2890, 4672, 302, 273, 1319, 18, 2290, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1842, 1611, 67, 13240, 12, 2890, 4672, 302, 273, 1319, 18, 2290, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'MSIECookieJar'. only mechanize supports MSIECookieJar.
'MSIECookieJar', 'Firefox3'. Only mechanize supports MSIECookieJar.
def delItem(self, x=0): u"""returns what should be the last added item to the rss feed. Or specify which item to return""" self.itemsQuaDict.pop(x)
203bc63458d62ab6656919aebe481575d28d7a74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/203bc63458d62ab6656919aebe481575d28d7a74/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 1180, 12, 2890, 16, 619, 33, 20, 4672, 582, 8395, 6154, 4121, 1410, 506, 326, 1142, 3096, 761, 358, 326, 18817, 4746, 18, 2965, 4800, 1492, 761, 358, 327, 8395, 365, 18, 3319, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 1180, 12, 2890, 16, 619, 33, 20, 4672, 582, 8395, 6154, 4121, 1410, 506, 326, 1142, 3096, 761, 358, 326, 18817, 4746, 18, 2965, 4800, 1492, 761, 358, 327, 8395, 365, 18, 3319, 92...
'x-amz-meta-project.name': 'Spring Extensions',
'x-amz-meta-project.name': 'Spring Python',
def publish(filepath, s3bucket, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, version): filename = filepath.split("/")[-1] s3key = "/".join([ p['release.type'], p['project.key'], p['natural.name'], filename ]) print "Reading in content from %s" % filepath filedata = open(filepath, "rb").read() filehash = _sha(filedata).h...
402ef6a62ae0803902eab3b483034665a49967b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/402ef6a62ae0803902eab3b483034665a49967b3/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 10561, 16, 272, 23, 7242, 16, 3279, 67, 13204, 67, 3297, 67, 734, 16, 3279, 67, 20455, 67, 13204, 67, 3297, 16, 1177, 4672, 1544, 273, 3608, 18, 4939, 2932, 4898, 13, 18919, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 10561, 16, 272, 23, 7242, 16, 3279, 67, 13204, 67, 3297, 67, 734, 16, 3279, 67, 20455, 67, 13204, 67, 3297, 16, 1177, 4672, 1544, 273, 3608, 18, 4939, 2932, 4898, 13, 18919, ...
if not incl_dirs: return
if not incl_dirs: incl_dirs = [prefix]
def calc_info(self,prefix): lib_dirs = filter(os.path.isdir, combine_paths(prefix,'lib',['fftw*','FFTW*'])) if not lib_dirs: lib_dirs = filter(os.path.isdir, combine_paths(prefix,['fftw*','FFTW*'],'lib')) if not lib_dirs: lib_dirs = filter(os.path.isdir, combine_paths(prefix,['lib','fftw*','FFTW*'])) if not lib_dirs: ...
51f44ff4f1e50db5c51c3d3114500a01810505ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/51f44ff4f1e50db5c51c3d3114500a01810505ec/system_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 16, 3239, 4672, 2561, 67, 8291, 273, 1034, 12, 538, 18, 803, 18, 291, 1214, 16, 8661, 67, 4481, 12, 3239, 11189, 2941, 2187, 3292, 25174, 91, 14, 17023, 2246,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1376, 12, 2890, 16, 3239, 4672, 2561, 67, 8291, 273, 1034, 12, 538, 18, 803, 18, 291, 1214, 16, 8661, 67, 4481, 12, 3239, 11189, 2941, 2187, 3292, 25174, 91, 14, 17023, 2246,...
import pdb pdb.set_trace()
def getDimensions(self): """ Created 20.07.2007, LP Description: Returns the (x,y,z) dimensions of the dataset this dataunit contains """ if not self.dimensions: self.dimensions = self.reader.GetImageDims() import pdb pdb.set_trace() # Make sure that every dimension is at least 1. This prevents # software from crashing...
2286bf0a0e2ea7e43262a2409bd4aa77152afde6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/2286bf0a0e2ea7e43262a2409bd4aa77152afde6/LIFDataSource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 23124, 12, 2890, 4672, 3536, 12953, 4200, 18, 8642, 18, 6976, 27, 16, 511, 52, 6507, 30, 2860, 326, 261, 92, 16, 93, 16, 94, 13, 5769, 434, 326, 3709, 333, 501, 4873, 1914, 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, 2343, 23124, 12, 2890, 4672, 3536, 12953, 4200, 18, 8642, 18, 6976, 27, 16, 511, 52, 6507, 30, 2860, 326, 261, 92, 16, 93, 16, 94, 13, 5769, 434, 326, 3709, 333, 501, 4873, 1914, 353...
msg = '*' else: msg = ' '
msg = '*' else: msg = ' '
def print_summary_(fct_name, compile_time, fct_call_time, fct_call, apply_time, op_cimpl, message, outputs_size, n_apply_to_print=15, n_ops_to_print=20, print_apply=True): """ do the actual printing of print_summary and print_diff_summary.
2ac3c664b014e300edd2c12fc42f3fd49c1c8931 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/2ac3c664b014e300edd2c12fc42f3fd49c1c8931/profilemode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7687, 67, 12, 74, 299, 67, 529, 16, 4074, 67, 957, 16, 28478, 67, 1991, 67, 957, 16, 28478, 67, 1991, 16, 2230, 67, 957, 16, 1061, 67, 71, 11299, 16, 883, 16, 6729, 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, 1172, 67, 7687, 67, 12, 74, 299, 67, 529, 16, 4074, 67, 957, 16, 28478, 67, 1991, 67, 957, 16, 28478, 67, 1991, 16, 2230, 67, 957, 16, 1061, 67, 71, 11299, 16, 883, 16, 6729, 67, ...
""" Get the IP address of the interface.
""" Get the IP address of the interface.
def GetIP(self): """ Get the IP address of the interface.
6f0faa1ac2c9bae4d122f4d6babe96248aee11b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12280/6f0faa1ac2c9bae4d122f4d6babe96248aee11b5/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, ...
wx.MessageBox(e, "Error")
wx.MessageBox(e.__str__(), "Error")
def write(self, s): txt = s.strip().translate(None, "\b") if txt: (keepgoing, skip) = dialog.Update(scriptnum - 1, msg + "\n" + txt) if not keepgoing: raise UserAborted if skip: raise UserSkipped
56d9aad6f16d55c618bdb3c6e9d195e6e81dd777 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12606/56d9aad6f16d55c618bdb3c6e9d195e6e81dd777/dbtk_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 272, 4672, 6463, 273, 272, 18, 6406, 7675, 13929, 12, 7036, 16, 1548, 70, 7923, 309, 6463, 30, 261, 10102, 8162, 16, 2488, 13, 273, 6176, 18, 1891, 12, 4263, 2107, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 272, 4672, 6463, 273, 272, 18, 6406, 7675, 13929, 12, 7036, 16, 1548, 70, 7923, 309, 6463, 30, 261, 10102, 8162, 16, 2488, 13, 273, 6176, 18, 1891, 12, 4263, 2107, ...
"""
r"""
def __iter__(self): """ Returns an iterator on the elements of self.
0c5cb94bdc0dba9150cb164c00100196aa13fa7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0c5cb94bdc0dba9150cb164c00100196aa13fa7e/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 436, 8395, 2860, 392, 2775, 603, 326, 2186, 434, 365, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 436, 8395, 2860, 392, 2775, 603, 326, 2186, 434, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if mol.hidden: continue
if mol.hidden or mol.display == diINVISIBLE: continue
def find_bondable_pairs(self, chunk_list = None): '''Checks the bondpoints of the selected chunk to see if they are close enough to bond with any other bondpoints in a list of chunks. Hidden chunks are skipped. ''' self.bondable_pairs = [] self.ways_of_bonding = {} if not chunk_list: chunk_list = self.o.assy.molecule...
36ecf86cd310caee386f9f47f59775c487387178 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/36ecf86cd310caee386f9f47f59775c487387178/fusechunksMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 26425, 429, 67, 11545, 12, 2890, 16, 2441, 67, 1098, 273, 599, 4672, 9163, 4081, 326, 8427, 4139, 434, 326, 3170, 2441, 358, 2621, 309, 2898, 854, 1746, 7304, 358, 8427, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 26425, 429, 67, 11545, 12, 2890, 16, 2441, 67, 1098, 273, 599, 4672, 9163, 4081, 326, 8427, 4139, 434, 326, 3170, 2441, 358, 2621, 309, 2898, 854, 1746, 7304, 358, 8427, 598, ...
self._recaclulate_hidden_items()
self._recalculate_hidden_items()
def toggle_unwatched_only(self): self.unwatched_only = not self.unwatched_only self._recaclulate_hidden_items()
50f7cf243721f70bea2282d173a65bd053cf9525 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/50f7cf243721f70bea2282d173a65bd053cf9525/itemlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 67, 318, 7585, 329, 67, 3700, 12, 2890, 4672, 365, 18, 318, 7585, 329, 67, 3700, 273, 486, 365, 18, 318, 7585, 329, 67, 3700, 365, 6315, 3927, 10150, 6243, 67, 6345, 67, 3319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10486, 67, 318, 7585, 329, 67, 3700, 12, 2890, 4672, 365, 18, 318, 7585, 329, 67, 3700, 273, 486, 365, 18, 318, 7585, 329, 67, 3700, 365, 6315, 3927, 10150, 6243, 67, 6345, 67, 3319, ...
db.dialect.ddl_compiler(db.dialect, schema.CreateTable(testTable)).\ get_column_specification(aCol))
db.dialect.ddl_compiler( db.dialect, schema.CreateTable(testTable)). get_column_specification(aCol) )
def testcolumns(self): expectedResults = { 'int_column': 'int_column INTEGER', 'smallint_column': 'smallint_column SMALLINT', 'varchar_column': 'varchar_column VARCHAR(20)', 'numeric_column': 'numeric_column NUMERIC(12, 3)', 'float_column': 'float_column FLOAT(25)', }
12a323eb0c4f90230016da8a2bd66928b448c142 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/12a323eb0c4f90230016da8a2bd66928b448c142/test_types.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5112, 12, 2890, 4672, 2665, 3447, 273, 288, 296, 474, 67, 2827, 4278, 296, 474, 67, 2827, 16481, 2187, 296, 12019, 474, 67, 2827, 4278, 296, 12019, 474, 67, 2827, 17918, 3217, 2187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5112, 12, 2890, 4672, 2665, 3447, 273, 288, 296, 474, 67, 2827, 4278, 296, 474, 67, 2827, 16481, 2187, 296, 12019, 474, 67, 2827, 4278, 296, 12019, 474, 67, 2827, 17918, 3217, 2187...
for arg in args: if removeSecurityProxy(arg) is not arg: args = map(removeSecurityProxy, args) adapter = self.factory(*args) if (ILocation.providedBy(adapter) and adapter.__parent__ is None): adapter.__parent__ = args[0] return ProxyFactory(adapter)
def __call__(self, *args): for arg in args: if removeSecurityProxy(arg) is not arg: args = map(removeSecurityProxy, args) adapter = self.factory(*args) if (ILocation.providedBy(adapter) and adapter.__parent__ is None): adapter.__parent__ = args[0] return ProxyFactory(adapter)
c4df19b7123c032c70b5860013f9a3c864759b7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/c4df19b7123c032c70b5860013f9a3c864759b7f/adapter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 4672, 364, 1501, 316, 833, 30, 309, 1206, 4368, 3886, 12, 3175, 13, 353, 486, 1501, 30, 833, 273, 852, 12, 4479, 4368, 3886, 16, 833, 13, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 364, 1501, 316, 833, 30, 309, 1206, 4368, 3886, 12, 3175, 13, 353, 486, 1501, 30, 833, 273, 852, 12, 4479, 4368, 3886, 16, 833, 13, 45...
self.recent_button.set_active(page_num == self.RECENT_BUTTON)
self.recent_button.set_active(page_num == self.RECENT_PAGE)
def on_notebook_switch_page(self, notebook, page, page_num): self.app.config['ui_page'] = int(page_num)
91f39d525aa754f73fbd6f2def7ecf4c4df6f560 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14744/91f39d525aa754f73fbd6f2def7ecf4c4df6f560/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 24422, 67, 9610, 67, 2433, 12, 2890, 16, 14718, 16, 1363, 16, 1363, 67, 2107, 4672, 365, 18, 2910, 18, 1425, 3292, 4881, 67, 2433, 3546, 273, 509, 12, 2433, 67, 2107, 13, 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, 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, 603, 67, 24422, 67, 9610, 67, 2433, 12, 2890, 16, 14718, 16, 1363, 16, 1363, 67, 2107, 4672, 365, 18, 2910, 18, 1425, 3292, 4881, 67, 2433, 3546, 273, 509, 12, 2433, 67, 2107, 13, 2,...
skip_name = self.skip_name
def runPath(self, pathname): """Run all tests found in the directory named by pathname and all subdirectories.""" names=os.listdir(pathname) skip_name = self.skip_name for name in names: fname, ext=os.path.splitext(name) if name[:4]=='test' and name[-3:]=='.py' and \ (not skip_name(name)): filepath=os.path.join(pathnam...
b26ccc00e07a9e28efae6443a91327ceedcfb9fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b26ccc00e07a9e28efae6443a91327ceedcfb9fe/testrunner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 743, 12, 2890, 16, 9806, 4672, 3536, 1997, 777, 7434, 1392, 316, 326, 1867, 4141, 635, 9806, 471, 777, 31220, 12123, 1257, 33, 538, 18, 1098, 1214, 12, 28336, 13, 364, 508, 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, 1086, 743, 12, 2890, 16, 9806, 4672, 3536, 1997, 777, 7434, 1392, 316, 326, 1867, 4141, 635, 9806, 471, 777, 31220, 12123, 1257, 33, 538, 18, 1098, 1214, 12, 28336, 13, 364, 508, 316, ...
pass inputs[unicode2] = [unicode(), unicode("123")] for func in funcs: for (cls, inps) in inputs.iteritems(): for inp in inps: out = filter(func, cls(inp)) self.assertEqual(inp, out) self.assert_(not isinstance(out, cls))
def __getitem__(self, index): return 2*unicode.__getitem__(self, index) inputs[unicode2] = { unicode(): unicode(), unicode("123"): unicode("112233") } for (cls, inps) in inputs.iteritems(): for (inp, exp) in inps.iteritems(): self.assertEqual( filter(funcs[0], cls(inp)), filter(funcs[1], cls(inp)) ) for func in func...
def test_filter_subclasses(self): # test, that filter() never returns tuple, str or unicode subclasses funcs = (None, lambda x: True) class tuple2(tuple): pass class str2(str): pass inputs = { tuple2: [(), (1,2,3)], str2: ["", "123"] } if have_unicode: class unicode2(unicode): pass inputs[unicode2] = [unicode(), unic...
464c07adeb55a85567c8d810f2eda662bfd6131e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/464c07adeb55a85567c8d810f2eda662bfd6131e/test_builtin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2188, 67, 1717, 4701, 12, 2890, 4672, 468, 1842, 16, 716, 1034, 1435, 5903, 1135, 3193, 16, 609, 578, 5252, 15320, 15630, 273, 261, 7036, 16, 3195, 619, 30, 1053, 13, 667, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2188, 67, 1717, 4701, 12, 2890, 4672, 468, 1842, 16, 716, 1034, 1435, 5903, 1135, 3193, 16, 609, 578, 5252, 15320, 15630, 273, 261, 7036, 16, 3195, 619, 30, 1053, 13, 667, 31...
height = int(round(3*size)) width = int(round(17*size))
height = int(round(3.6*size)) width = int(round(16.51*size))
def sysbox(size): canvas = {} # The system box of the computer. height = int(round(3*size)) width = int(round(17*size)) depth = int(round(2*size)) highlight = int(round(1*size)) bothighlight = int(round(0.49*size)) floppystart = int(round(19*size)) # measured in half-pixels floppyend = int(round(29*size)) # measured...
f3ddd15caee6adbcc98dcf72f6332664cf7e8c12 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7420/f3ddd15caee6adbcc98dcf72f6332664cf7e8c12/mkicon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2589, 2147, 12, 1467, 4672, 5953, 273, 2618, 225, 468, 1021, 2619, 3919, 434, 326, 26579, 18, 225, 2072, 273, 509, 12, 2260, 12, 23, 18, 26, 14, 1467, 3719, 1835, 273, 509, 12, 2260, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2589, 2147, 12, 1467, 4672, 5953, 273, 2618, 225, 468, 1021, 2619, 3919, 434, 326, 26579, 18, 225, 2072, 273, 509, 12, 2260, 12, 23, 18, 26, 14, 1467, 3719, 1835, 273, 509, 12, 2260, ...
qtReq = '4.3'
def convert_qt_version(version): version = '%x'%version temp = [] while len(version) > 0: version, chunk = version[:-2], version[-2:] temp.insert(0, str(int(chunk, 16))) return '.'.join(temp)
265b261e9eb6cc5931d7dcd9567cfbf8c96ad22f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14949/265b261e9eb6cc5931d7dcd9567cfbf8c96ad22f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 23311, 67, 1589, 12, 1589, 4672, 1177, 273, 1995, 92, 11, 9, 1589, 1906, 273, 5378, 1323, 562, 12, 1589, 13, 405, 374, 30, 1177, 16, 2441, 273, 1177, 10531, 17, 22, 6487, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 23311, 67, 1589, 12, 1589, 4672, 1177, 273, 1995, 92, 11, 9, 1589, 1906, 273, 5378, 1323, 562, 12, 1589, 13, 405, 374, 30, 1177, 16, 2441, 273, 1177, 10531, 17, 22, 6487, 1...
port = logging.handlers.DEFAULT_TCP_LOGGING_PORT while port < logging.handlers.DEFAULT_TCP_LOGGING_PORT+100: try: tcpserver = LogRecordSocketReceiver(port=port) except socket.error: port += 1 else: break else: raise ImportError, "Could not find unused port"
tcpserver = LogRecordSocketReceiver(port=0) port = tcpserver.socket.getsockname()[1]
def test_main_inner(): rootLogger = logging.getLogger("") rootLogger.setLevel(logging.DEBUG) # Find an unused port number port = logging.handlers.DEFAULT_TCP_LOGGING_PORT while port < logging.handlers.DEFAULT_TCP_LOGGING_PORT+100: try: tcpserver = LogRecordSocketReceiver(port=port) except socket.error: port += 1 else:...
84fce9c90bb6222402db988213192cd89a3f917b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/84fce9c90bb6222402db988213192cd89a3f917b/test_logging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 67, 7872, 13332, 1365, 3328, 273, 2907, 18, 588, 3328, 2932, 7923, 1365, 3328, 18, 542, 2355, 12, 11167, 18, 9394, 13, 225, 468, 4163, 392, 10197, 1756, 1300, 1756, 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, 1842, 67, 5254, 67, 7872, 13332, 1365, 3328, 273, 2907, 18, 588, 3328, 2932, 7923, 1365, 3328, 18, 542, 2355, 12, 11167, 18, 9394, 13, 225, 468, 4163, 392, 10197, 1756, 1300, 1756, 273, ...
self.bname = bname
self.bname[name] = bname
def badNameFilter(self, name, force = False): if not globalvar.filtBadName: return False
6e1a27796fa520d54fa473b224be0c3db7fd9cbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/6e1a27796fa520d54fa473b224be0c3db7fd9cbd/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5570, 461, 1586, 12, 2890, 16, 508, 16, 2944, 273, 1083, 4672, 309, 486, 2552, 1401, 18, 30991, 6434, 461, 30, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5570, 461, 1586, 12, 2890, 16, 508, 16, 2944, 273, 1083, 4672, 309, 486, 2552, 1401, 18, 30991, 6434, 461, 30, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
obj = attrgetter('next')(self._cls)(self)
obj = self._fetch_function_iterator.next()
def _cache_next_element(self): """ a) retrieves the next element from the fetch function b) writes the data to the cache c) passes the data through to the calling element """ self._cache_miss += 1 try: obj = attrgetter('next')(self._cls)(self) self._pickle_iterator.dump( obj ) return obj except StopIteration: self._pic...
2355828a58c7929e11ae58a88a6ffb902ba065ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6604/2355828a58c7929e11ae58a88a6ffb902ba065ba/cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2493, 67, 4285, 67, 2956, 12, 2890, 4672, 3536, 279, 13, 9023, 326, 1024, 930, 628, 326, 2158, 445, 324, 13, 7262, 326, 501, 358, 326, 1247, 276, 13, 11656, 326, 501, 3059, 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, 389, 2493, 67, 4285, 67, 2956, 12, 2890, 4672, 3536, 279, 13, 9023, 326, 1024, 930, 628, 326, 2158, 445, 324, 13, 7262, 326, 501, 358, 326, 1247, 276, 13, 11656, 326, 501, 3059, 358, ...
You may want to <A href="../"> start a new search</A>
def perform_display_account(req,data,bask,aler,sear): uid = getUid(req) #your account if isGuestUser(uid): user ="guest" accBody = """You are logged in as guest. You may want to <A href="../youraccount.py/login">login</A> as a regular user <BR><BR> You may want to <A href="../"> start a new search</A> """ bask=aler="""...
2ae2a95b8eafc93b9613c323150293b0683afbb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2ae2a95b8eafc93b9613c323150293b0683afbb1/webaccount.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 5417, 67, 4631, 12, 3658, 16, 892, 16, 70, 835, 16, 6774, 16, 307, 297, 4672, 4555, 273, 31652, 12, 3658, 13, 468, 93, 477, 2236, 309, 353, 12978, 1299, 12, 1911, 4672, 729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 5417, 67, 4631, 12, 3658, 16, 892, 16, 70, 835, 16, 6774, 16, 307, 297, 4672, 4555, 273, 31652, 12, 3658, 13, 468, 93, 477, 2236, 309, 353, 12978, 1299, 12, 1911, 4672, 729...
blocs = set_partition_ordered.OrderedSetPartitions(copy.copy(set), taillesblocs).list()
blocs = set_partition_ordered.OrderedSetPartitions(copy.copy(set), taillesblocs)
def __iterator_part(self, part): set = self.set
0c5829b64e83939f27e78ee2d1eb9d2d6d5fe63a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0c5829b64e83939f27e78ee2d1eb9d2d6d5fe63a/set_partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9838, 67, 2680, 12, 2890, 16, 1087, 4672, 444, 273, 365, 18, 542, 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, 1001, 9838, 67, 2680, 12, 2890, 16, 1087, 4672, 444, 273, 365, 18, 542, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
cmd.deferred.addBoth(close) d = DeferredList([cmd.deferred, protocol.deferred], fireOnOneErrback=1)
d.addBoth(close)
def close(x, m=_mutable): m[0] and m[0].disconnect() return x
0b32993f650133174c7471dcae011c638fd3fade /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/0b32993f650133174c7471dcae011c638fd3fade/ftp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 92, 16, 312, 33, 67, 5146, 4672, 312, 63, 20, 65, 471, 312, 63, 20, 8009, 20177, 1435, 327, 619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 92, 16, 312, 33, 67, 5146, 4672, 312, 63, 20, 65, 471, 312, 63, 20, 8009, 20177, 1435, 327, 619, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def getPackageObject(self, pkgtup):
def getPackageObject(self, pkgtup, allow_missing=False):
def getPackageObject(self, pkgtup): """retrieves a packageObject from a pkgtuple - if we need to pick and choose which one is best we better call out to some method from here to pick the best pkgobj if there are more than one response - right now it's more rudimentary.""" # look it up in the self.localPackages first:...
17068d8e299ab477d8c6a5bc566e5f62d7b34759 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/17068d8e299ab477d8c6a5bc566e5f62d7b34759/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11506, 921, 12, 2890, 16, 3475, 88, 416, 16, 1699, 67, 7337, 33, 8381, 4672, 3536, 14580, 3324, 279, 2181, 921, 628, 279, 3475, 8052, 300, 309, 732, 1608, 358, 6002, 471, 9876, 1492, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11506, 921, 12, 2890, 16, 3475, 88, 416, 16, 1699, 67, 7337, 33, 8381, 4672, 3536, 14580, 3324, 279, 2181, 921, 628, 279, 3475, 8052, 300, 309, 732, 1608, 358, 6002, 471, 9876, 1492, 1...
return self.keyname
return self.key
def getkey(self): return self.keyname
8a26f1933d2876e464fe11a666ad363c83f287dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8a26f1933d2876e464fe11a666ad363c83f287dd/back_metakit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 856, 12, 2890, 4672, 327, 365, 18, 856, 529, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 856, 12, 2890, 4672, 327, 365, 18, 856, 529, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.folder = self.doclist.CreateFolder(self.folder_name)
self.folder = self.client.CreateFolder(self.folder_name)
def setUp(self): client_login() self.doclist = client self.folder_name = 'TestFolder' self.folder = self.doclist.CreateFolder(self.folder_name)
dcc46816af19bac967f4b588353a3ee4514dd5d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/dcc46816af19bac967f4b588353a3ee4514dd5d2/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 1004, 67, 5819, 1435, 365, 18, 2434, 1098, 273, 1004, 365, 18, 5609, 67, 529, 273, 296, 4709, 3899, 11, 365, 18, 5609, 273, 365, 18, 2434, 1098, 18, 1684, 3899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 1004, 67, 5819, 1435, 365, 18, 2434, 1098, 273, 1004, 365, 18, 5609, 67, 529, 273, 296, 4709, 3899, 11, 365, 18, 5609, 273, 365, 18, 2434, 1098, 18, 1684, 3899, ...
or band_3.GetMaskFlags() != band.GetMaskFlags() \ or str(band_2.GetMaskBand()) != str(band.GetMaskBand()) \ or str(band_3.GetMaskBand()) != str(band.GetMaskBand()):
or band_3.GetMaskFlags() != band.GetMaskFlags():
def mask_3(): if gdaltest.have_ng == 0: return 'skip' ds = gdal.Open( 'data/stefan_full_rgba.png' ) if ds is None: gdaltest.post_reason( 'Failed to open test dataset.' ) return 'fail' # Test first mask. band = ds.GetRasterBand(1) if band.GetMaskFlags() != gdal.GMF_ALPHA + gdal.GMF_PER_DATASET: gdaltest.post_reaso...
f798bec6a692d22e45ea35cbfd351214db6f1f7d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/f798bec6a692d22e45ea35cbfd351214db6f1f7d/mask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3066, 67, 23, 13332, 225, 309, 15551, 2390, 395, 18, 21516, 67, 3368, 422, 374, 30, 327, 296, 7457, 11, 225, 3780, 273, 15551, 287, 18, 3678, 12, 296, 892, 19, 334, 10241, 304, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3066, 67, 23, 13332, 225, 309, 15551, 2390, 395, 18, 21516, 67, 3368, 422, 374, 30, 327, 296, 7457, 11, 225, 3780, 273, 15551, 287, 18, 3678, 12, 296, 892, 19, 334, 10241, 304, 67, 2...
nodeDeps = getNodeDeps(node) fileDeps.data['require'].extend(nodeDeps)
nodeDeps = getNodeDeps(node, inFunction) field = 'use' if inFunction else 'require' fileDeps.data[field].extend(nodeDeps) elif node.type == "body" and node.parent.type == "function": inFunction = True
def analyzeNodeDeps(node, fileDeps):
e75c23a655ca9ec96cd3e7688c44053910d135e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/e75c23a655ca9ec96cd3e7688c44053910d135e8/Class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 907, 14430, 12, 2159, 16, 585, 14430, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12375, 907, 14430, 12, 2159, 16, 585, 14430, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(1 - np.sign(Uvar[uB]) * bnd_rel) * Uvar[uB] + bnd_abs)
(1-np.sign(Uvar[uB]) * bnd_rel)*Uvar[uB] + bnd_abs)
def StartingPoint(self, **kwargs): """ Compute a strictly feasible initial primal-dual estimate (x,z). By default, x is taken as the starting point given in `nlp` and moved strictly into the bounds, and z is taken as the vector of ones. """ n = self.nlp.n Lvar = self.nlp.Lvar ; lB = self.lowerB Uvar = self.nlp.Uvar ; u...
9a6c4f472b4224b483cf355221f1a3acafaa6be3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13857/9a6c4f472b4224b483cf355221f1a3acafaa6be3/pdmerit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24591, 2148, 12, 2890, 16, 2826, 4333, 4672, 3536, 8155, 279, 23457, 1656, 30711, 2172, 846, 2840, 17, 72, 1462, 11108, 261, 92, 16, 94, 2934, 2525, 805, 16, 619, 353, 9830, 487, 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, 24591, 2148, 12, 2890, 16, 2826, 4333, 4672, 3536, 8155, 279, 23457, 1656, 30711, 2172, 846, 2840, 17, 72, 1462, 11108, 261, 92, 16, 94, 2934, 2525, 805, 16, 619, 353, 9830, 487, 326, ...
template_dict = {'organization': 'SAGE (at %s)'%(socket.gethostname()),
template_dict = {'organization': 'SAGE (at %s)'%(socket.getfqdn()),
def setup_server(template=None): check_dsage_dir() template_dict = {'organization': 'SAGE (at %s)'%(socket.gethostname()), 'unit': '389', 'locality': None, 'state': 'Washington', 'country': 'US', 'cn': socket.gethostname(), 'uid': 'sage_user', 'dn_oid': None, 'serial': str(random.randint(1,2**31)), 'dns_name': None, 'c...
2d1c151f4f759a4d6c6b6208e8ce8db303a98218 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2d1c151f4f759a4d6c6b6208e8ce8db303a98218/dsage_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 3567, 12, 3202, 33, 7036, 4672, 866, 67, 2377, 410, 67, 1214, 1435, 1542, 67, 1576, 273, 13666, 15336, 4278, 296, 55, 2833, 261, 270, 738, 87, 2506, 17105, 7814, 18, 588, 192...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 3567, 12, 3202, 33, 7036, 4672, 866, 67, 2377, 410, 67, 1214, 1435, 1542, 67, 1576, 273, 13666, 15336, 4278, 296, 55, 2833, 261, 270, 738, 87, 2506, 17105, 7814, 18, 588, 192...
WHERE tt_user = '%(tt_user)s' AND tt_name = '%(tt_name)s'
WHERE tt_user = %s AND tt_name = %s
def fetchAll(cls, env, data): """Retrieve an existing tt from the database by ID. result: { "field_value_mapping":{ "default":{ "summary":"aaa", "description":"bbb", },
fc81cb214b3f9b6f118c64a88c1ca66803e73c85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5628/fc81cb214b3f9b6f118c64a88c1ca66803e73c85/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12817, 12, 6429, 16, 1550, 16, 501, 4672, 3536, 5767, 392, 2062, 3574, 628, 326, 2063, 635, 1599, 18, 563, 30, 288, 315, 1518, 67, 1132, 67, 6770, 6877, 95, 315, 1886, 6877, 95, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12817, 12, 6429, 16, 1550, 16, 501, 4672, 3536, 5767, 392, 2062, 3574, 628, 326, 2063, 635, 1599, 18, 563, 30, 288, 315, 1518, 67, 1132, 67, 6770, 6877, 95, 315, 1886, 6877, 95, 315, ...
sub.__parent = self
sub.__parent = wkref(self)
def __setitem__( self, k, v ): if isinstance(v,ParseResultsWithOffset): self.__tokdict[k] = self.__tokdict.get(k,list()) + [v] sub = v[0] elif isinstance(k,int): self.__toklist[k] = v sub = v else: self.__tokdict[k] = self.__tokdict.get(k,list()) + [(v,0)] sub = v if isinstance(sub,ParseResults): sub.__parent = self
fe4553e6ec2935041dca80d29446568e2932ed31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3693/fe4553e6ec2935041dca80d29446568e2932ed31/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 365, 16, 417, 16, 331, 262, 30, 309, 1549, 12, 90, 16, 3201, 3447, 1190, 2335, 4672, 365, 16186, 17692, 1576, 63, 79, 65, 273, 365, 16186, 17692, 1576, 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, 1001, 542, 1726, 972, 12, 365, 16, 417, 16, 331, 262, 30, 309, 1549, 12, 90, 16, 3201, 3447, 1190, 2335, 4672, 365, 16186, 17692, 1576, 63, 79, 65, 273, 365, 16186, 17692, 1576, 18, ...
def __init__(self, name, is_dc=True, formatter=None, none_is=None):
def __init__(self, name, is_dc=True, formatter=None, none_is=None, renderer=lambda x: unicode(x)):
def __init__(self, name, is_dc=True, formatter=None, none_is=None): self.name = name self.is_dc = is_dc self.formatter = formatter self.none_is = none_is
199d870b191ab863f21a4f55341501cbacd5c51b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/199d870b191ab863f21a4f55341501cbacd5c51b/opf2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 353, 67, 7201, 33, 5510, 16, 4453, 33, 7036, 16, 6555, 67, 291, 33, 7036, 16, 5690, 33, 14661, 619, 30, 5252, 12, 92, 3719, 30, 365, 18, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 16, 353, 67, 7201, 33, 5510, 16, 4453, 33, 7036, 16, 6555, 67, 291, 33, 7036, 16, 5690, 33, 14661, 619, 30, 5252, 12, 92, 3719, 30, 365, 18, 529...
self.assertEqual(str(waiter), "<Waiter greenlet=None exc_info=(<type 'exceptions.ZeroDivisionError'>,)>")
assert re.match('^<Waiter greenlet=None exc_info=.*ZeroDivisionError.*$', str(waiter)), str(waiter)
def test(self): waiter = self.waiter self.assertEqual(str(waiter), '<Waiter greenlet=None>') waiter.switch(25) self.assertEqual(str(waiter), '<Waiter greenlet=None value=25>') self.assertEqual(waiter.get(), 25)
e0ae1fdf139bbcb327466e8444a5035944425079 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/e0ae1fdf139bbcb327466e8444a5035944425079/test__hub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 17522, 273, 365, 18, 7048, 264, 365, 18, 11231, 5812, 12, 701, 12, 7048, 264, 3631, 2368, 5480, 264, 10004, 1810, 33, 7036, 1870, 13, 17522, 18, 9610, 12, 2947, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 17522, 273, 365, 18, 7048, 264, 365, 18, 11231, 5812, 12, 701, 12, 7048, 264, 3631, 2368, 5480, 264, 10004, 1810, 33, 7036, 1870, 13, 17522, 18, 9610, 12, 2947, 1...
self.filepath, self.child = '', None
self.filename, self.filepath = "", '' self.child, self.fullscreen = None, False self.keyConfig = loadMplayerInputConf()
def __init__(self, playlist): self.playlist = playlist self.filepath, self.child = '', None # Set up the window self.window = gtk.Window() self.window.set_icon_name('video') self.window.set_default_size(*START_SIZE) self.window.set_position(gtk.WIN_POS_CENTER) self.window.show() self.socket = gtk.Socket() self.window...
efc3b07bbba04bedff98b4a30a0b717cf4b50c5a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13137/efc3b07bbba04bedff98b4a30a0b717cf4b50c5a/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16428, 4672, 365, 18, 1601, 1098, 273, 16428, 365, 18, 3459, 16, 365, 18, 10561, 273, 23453, 875, 365, 18, 3624, 16, 365, 18, 2854, 9252, 273, 599, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16428, 4672, 365, 18, 1601, 1098, 273, 16428, 365, 18, 3459, 16, 365, 18, 10561, 273, 23453, 875, 365, 18, 3624, 16, 365, 18, 2854, 9252, 273, 599, 16, ...
self.build_list_params(params, instances, 'instances.member.%d')
self.build_list_params(params, instances, 'Instances.member.%d')
def describe_instance_health(self, load_balancer_name, instances=None): """ Get current state of all Instances registered to an Load Balancer.
8eb9753cc2e5cd3bb853fdb8b1324b77450a9548 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/8eb9753cc2e5cd3bb853fdb8b1324b77450a9548/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6401, 67, 1336, 67, 13267, 12, 2890, 16, 1262, 67, 18770, 67, 529, 16, 3884, 33, 7036, 4672, 3536, 968, 783, 919, 434, 777, 18357, 4104, 358, 392, 4444, 605, 5191, 18, 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, 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, 6401, 67, 1336, 67, 13267, 12, 2890, 16, 1262, 67, 18770, 67, 529, 16, 3884, 33, 7036, 4672, 3536, 968, 783, 919, 434, 777, 18357, 4104, 358, 392, 4444, 605, 5191, 18, 2, -100, -100, ...
resultDict[key] = value else: resultDict[key] = value return S_OK(resultDict)
resultDict[key] = value else: resultDict[key] = value return S_OK( resultDict )
def getMetadataSet(self,metaSetName,expandFlag,credDict): """ Get fully expanded contents of the metadata set """ result = self.getMetadataFields(credDict) if not result['OK']: return result metaTypeDict = result['Value'] req = "SELECT S.MetaKey,S.MetaValue FROM FC_MetaSets as S, FC_MetaSetNames as N WHERE N.MetaSetNa...
127f98379e5064d0a5d5df2ba7ce74c780770faa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/127f98379e5064d0a5d5df2ba7ce74c780770faa/DirectoryMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 694, 12, 2890, 16, 3901, 11924, 16, 12320, 4678, 16, 20610, 5014, 4672, 3536, 968, 7418, 8406, 2939, 434, 326, 1982, 444, 3536, 563, 273, 365, 18, 588, 2277, 2314, 12, 20610, 5014...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 694, 12, 2890, 16, 3901, 11924, 16, 12320, 4678, 16, 20610, 5014, 4672, 3536, 968, 7418, 8406, 2939, 434, 326, 1982, 444, 3536, 563, 273, 365, 18, 588, 2277, 2314, 12, 20610, 5014...
class TestCacheManager(CachingComponentsTestCase): def test_markerhandling(self): cm = CacheManager(self.workdir) marker_string = cm._getMarker( 'somefakedhash', 3) self.assertEqual(marker_string, 'somefakedhash_3') hash = cm._getHashFromMarker('somefakedhash_3') self.assertEqual(hash, 'somefakedhash') self.assertEqua...
def setUp(self): self.workdir = tempfile.mkdtemp() self.inputdir = tempfile.mkdtemp() self.src_path1 = os.path.join(self.inputdir, 'srcfile1') self.src_path2 = os.path.join(self.inputdir, 'srcfile2') self.result_path1 = os.path.join(self.inputdir, 'resultfile1') self.result_path2 = os.path.join(self.inputdir, 'resultfi...
dc8f5fb045b3be0c0611ea58c3b37e99aab059e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9162/dc8f5fb045b3be0c0611ea58c3b37e99aab059e8/test_cachemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 1252, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 365, 18, 2630, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 365, 18, 4816, 67, 803, 21, 273, 1140, 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, 24292, 12, 2890, 4672, 365, 18, 1252, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 365, 18, 2630, 1214, 273, 13275, 18, 24816, 72, 5814, 1435, 365, 18, 4816, 67, 803, 21, 273, 1140, 18...
print _('Editing entry %s\n'
print _('Editing entry %r\n'
def edit(self, entry=None): """Edits the specified `entry`. If `entry` is None, a new entry is created.
4a1b0e39c0e8f9263a36e8e53943e18224245734 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/4a1b0e39c0e8f9263a36e8e53943e18224245734/tel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 1241, 33, 7036, 4672, 3536, 2671, 1282, 326, 1269, 1375, 4099, 8338, 971, 1375, 4099, 68, 353, 599, 16, 279, 394, 1241, 353, 2522, 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, 0, 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, 3874, 12, 2890, 16, 1241, 33, 7036, 4672, 3536, 2671, 1282, 326, 1269, 1375, 4099, 8338, 971, 1375, 4099, 68, 353, 599, 16, 279, 394, 1241, 353, 2522, 18, 2, -100, -100, -100, -100, -1...
for reqInfo, depSet, provInfo in cannotResolve:
for reqInfo, depSet, provInfo in sorted(cannotResolve):
def checkDeps(self, uJob, jobSet, trvSrc, findOrdering, resolveDeps, ineligible, keepRequired = True, criticalUpdateInfo = None): """ Given a jobSet, use its dependencies to determine an ordering, resolve problems with jobs that have difficult dependency problems immediately, and determine any missing dependencies. """
ee8e3f7e7259b9fa13fdf6605d38435a6109f022 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ee8e3f7e7259b9fa13fdf6605d38435a6109f022/resolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 14430, 12, 2890, 16, 582, 2278, 16, 1719, 694, 16, 433, 90, 7740, 16, 1104, 20493, 16, 2245, 14430, 16, 316, 292, 16057, 16, 3455, 3705, 273, 1053, 16, 11239, 1891, 966, 273, 599,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 14430, 12, 2890, 16, 582, 2278, 16, 1719, 694, 16, 433, 90, 7740, 16, 1104, 20493, 16, 2245, 14430, 16, 316, 292, 16057, 16, 3455, 3705, 273, 1053, 16, 11239, 1891, 966, 273, 599,...
self.attr_content.append(LocalAttributeDeclaration(self))
content.append(LocalAttributeDeclaration(self))
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
66c6baf2288f065b45db940b63cfc5dba1aa9fb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/66c6baf2288f065b45db940b63cfc5dba1aa9fb0/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return '(%s CROSS JOIN %s)' % (fixed, optional)
return ('(', fixed, ' CROSS JOIN ', optional, ')')
def LeftJoin(self, expr, fixed, optional, cond=None): if cond is not None: return '(%s LEFT JOIN %s ON (%s))' % (fixed, optional, cond) else: # If no condition is available, this is actually a cross # join. return '(%s CROSS JOIN %s)' % (fixed, optional)
d865e4bb2a2ccd72870204a5984403ca535a7525 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5223/d865e4bb2a2ccd72870204a5984403ca535a7525/emit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13338, 4572, 12, 2890, 16, 3065, 16, 5499, 16, 3129, 16, 6941, 33, 7036, 4672, 309, 6941, 353, 486, 599, 30, 327, 7747, 9, 87, 9686, 7645, 738, 87, 6229, 6142, 87, 13, 2506, 738, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13338, 4572, 12, 2890, 16, 3065, 16, 5499, 16, 3129, 16, 6941, 33, 7036, 4672, 309, 6941, 353, 486, 599, 30, 327, 7747, 9, 87, 9686, 7645, 738, 87, 6229, 6142, 87, 13, 2506, 738, 261...
url = zapi.absoluteURL(app, request)
app_url = zapi.absoluteURL(app, request) query_string = request.getHeader('QUERY_STRING') if query_string: query_string = "?%s" % query_string else: query_string = "" full_url = "%s%s" % (str(request.URL), query_string)
def unauthorized(self, id, request): """Signal an authorization failure.""" if not IBrowserRequest.providedBy(request) or request.method == 'PUT': next = getNextUtility(self, IAuthentication) return next.unauthorized(id, request) if str(request.URL).endswith('.ics'): # Special case: testing shows that Mozilla Calendar ...
e0bc02dcf7875f8ec119554896e956abb8b0c838 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/e0bc02dcf7875f8ec119554896e956abb8b0c838/security.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 8434, 12, 2890, 16, 612, 16, 590, 4672, 3536, 11208, 392, 6093, 5166, 12123, 309, 486, 467, 9132, 691, 18, 29206, 858, 12, 2293, 13, 578, 590, 18, 2039, 422, 296, 4762, 4278, 1024...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 8434, 12, 2890, 16, 612, 16, 590, 4672, 3536, 11208, 392, 6093, 5166, 12123, 309, 486, 467, 9132, 691, 18, 29206, 858, 12, 2293, 13, 578, 590, 18, 2039, 422, 296, 4762, 4278, 1024...
if _debug: print "\t%s: Called Plot.__init__()" % rendererName pass def setData(self,*dataList):
Item.__init__(self) debugMsg(" Called Plot.__init__()") self.renderer = scene.renderer self.title = None self.xlabel = None self.ylabel = None self.zlabel = None def setData(self, *dataList):
def __init__(self,scene): """ Initialisation of the abstract Plot class @param scene: The Scene to render the plot in @type scene: Scene object """ if _debug: print "\t%s: Called Plot.__init__()" % rendererName pass
525240b057c0121c2cab7772950af46d6399ad7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/525240b057c0121c2cab7772950af46d6399ad7e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 23694, 4672, 3536, 10188, 10742, 434, 326, 8770, 15211, 667, 225, 632, 891, 9065, 30, 1021, 29347, 358, 1743, 326, 3207, 316, 632, 723, 9065, 30, 29347, 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, 1001, 2738, 972, 12, 2890, 16, 23694, 4672, 3536, 10188, 10742, 434, 326, 8770, 15211, 667, 225, 632, 891, 9065, 30, 1021, 29347, 358, 1743, 326, 3207, 316, 632, 723, 9065, 30, 29347, 73...
new_items, del_items, self.play_items)
new_items, del_items, \ self.play_items)
def update(self, new_files, del_files, all_files): """ update the current item set. Maybe this function can share some code with cwd in the future, but it's easier now the way it is """ new_items = [] del_items = []
c597eabb07d1d19996e3517901c2c154305ed589 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c597eabb07d1d19996e3517901c2c154305ed589/mediamenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 394, 67, 2354, 16, 1464, 67, 2354, 16, 777, 67, 2354, 4672, 3536, 1089, 326, 783, 761, 444, 18, 14024, 333, 445, 848, 7433, 2690, 981, 598, 7239, 316, 326, 3563, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 394, 67, 2354, 16, 1464, 67, 2354, 16, 777, 67, 2354, 4672, 3536, 1089, 326, 783, 761, 444, 18, 14024, 333, 445, 848, 7433, 2690, 981, 598, 7239, 316, 326, 3563, ...
res = prefac * sumres * (-1) ** (int(aa + bb + cc + dd))
res = prefac * sumres * (-1) ** int(aa + bb + cc + dd)
def racah(aa, bb, cc, dd, ee, ff, prec=None): r""" Calculate the Racah symbol `W(a,b,c,d;e,f)`. INPUT: - ``a``, ..., ``f`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number times the square root of a rational n...
7df69c5c6f107763eb9f25a2174930b0961c0f48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7df69c5c6f107763eb9f25a2174930b0961c0f48/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 767, 5353, 76, 12, 7598, 16, 7129, 16, 4946, 16, 6957, 16, 14657, 16, 6875, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326, 534, 1077, 9795, 3273, 1375, 59, 12, 69, 16, 70, 16, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 767, 5353, 76, 12, 7598, 16, 7129, 16, 4946, 16, 6957, 16, 14657, 16, 6875, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326, 534, 1077, 9795, 3273, 1375, 59, 12, 69, 16, 70, 16, 71, ...
print "\nStopping Server..."
print "\nShutting down..."
def quit(): global server global commandLine
e31bc9a2c87a67a97d76f41fc1eb65d098c86d2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11436/e31bc9a2c87a67a97d76f41fc1eb65d098c86d2a/crossfire_test_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 13332, 2552, 1438, 2552, 20894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 13332, 2552, 1438, 2552, 20894, 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,...
output)
output, 'FAIL')
def PrintRegressions(self, output): """Write the regressions computed by _CalculateRegressions() to output. """
4cbe0a9c3971f44c85c837d71040dcb37f112b1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/4cbe0a9c3971f44c85c837d71040dcb37f112b1c/compare_failures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3038, 1617, 663, 1115, 12, 2890, 16, 876, 4672, 3536, 3067, 326, 960, 663, 1115, 8470, 635, 389, 8695, 1617, 663, 1115, 1435, 358, 876, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3038, 1617, 663, 1115, 12, 2890, 16, 876, 4672, 3536, 3067, 326, 960, 663, 1115, 8470, 635, 389, 8695, 1617, 663, 1115, 1435, 358, 876, 18, 3536, 2, -100, -100, -100, -100, -100, -100, ...
command="darcs add --case-ok --recursive"
command="darcs add --case-ok --not-recursive"
def _addEntries(self, root, entries): """ Add a sequence of entries. """
d31c2def0d385e9ca38ac3d7ef6bb662f7170efc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/d31c2def0d385e9ca38ac3d7ef6bb662f7170efc/darcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 5400, 12, 2890, 16, 1365, 16, 3222, 4672, 3536, 1436, 279, 3102, 434, 3222, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 389, 1289, 5400, 12, 2890, 16, 1365, 16, 3222, 4672, 3536, 1436, 279, 3102, 434, 3222, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
>>> translate_stacktrace(file('infolog.txt').read())
>>> translate_stacktrace(file('infolog.txt').read())
def translate_stacktrace(infolog): r'''\ Translate a complete stacktrace to (module, address, filename, lineno) tuples. The input string may be a complete infolog (i.e. infolog.txt). At the very least it must contain the 'Spring XXX has crashed.' or 'Hang detection triggered for Spring XXX.' line and at least one stac...
7dc5a98fa74ee085e0e58fb0f326bdea30111f1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1030/7dc5a98fa74ee085e0e58fb0f326bdea30111f1d/stacktrace_translator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 67, 3772, 5129, 12, 10625, 3966, 4672, 436, 6309, 8314, 16820, 279, 3912, 26934, 358, 261, 2978, 16, 1758, 16, 1544, 16, 7586, 13, 10384, 18, 225, 1021, 810, 533, 2026, 506, 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, 4204, 67, 3772, 5129, 12, 10625, 3966, 4672, 436, 6309, 8314, 16820, 279, 3912, 26934, 358, 261, 2978, 16, 1758, 16, 1544, 16, 7586, 13, 10384, 18, 225, 1021, 810, 533, 2026, 506, 279, ...
buffering. Sublcasses should however, if possible, try to
buffering. Subclasses should however, if possible, try to
def readline(self, size=None):
7f3ed74643dd87ef9b6f54c235e4c562179cfb33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7f3ed74643dd87ef9b6f54c235e4c562179cfb33/codecs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 33, 7036, 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,...
self.assertEqual(fcmp(float(" .25e-1 "), .025), 0)
self.assertEqual(test_support.fcmp(float(" .25e-1 "), .025), 0)
def test_float_with_comma(self): # set locale to something that doesn't use '.' for the decimal point # float must not accept the locale specific decimal point but # it still has to accept the normal python syntac import locale if not locale.localeconv()['decimal_point'] == ',': return
a853a89dc3c57941a15a7463cf59dfad775a7e5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/a853a89dc3c57941a15a7463cf59dfad775a7e5f/test_float.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5659, 67, 1918, 67, 25034, 12, 2890, 4672, 468, 444, 2573, 358, 5943, 716, 3302, 1404, 999, 2611, 364, 326, 6970, 1634, 468, 1431, 1297, 486, 2791, 326, 2573, 2923, 6970, 1634,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5659, 67, 1918, 67, 25034, 12, 2890, 4672, 468, 444, 2573, 358, 5943, 716, 3302, 1404, 999, 2611, 364, 326, 6970, 1634, 468, 1431, 1297, 486, 2791, 326, 2573, 2923, 6970, 1634,...
conversation = self.context
conversation = context
def __call__(self):
f088cb946e301737ef8c848c7891dfbdfe4abf56 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12197/f088cb946e301737ef8c848c7891dfbdfe4abf56/comments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 1001, 1991, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
content.append(Sequence())
content.append(Sequence(self))
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = []
0f22280071ba54237b2f9c645f8fa9542d57d244 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/0f22280071ba54237b2f9c645f8fa9542d57d244/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 913, 273, 5378, 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, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 913, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
def processEndTag(self, tagname, attributes):
def processEndTag(self, tagname):
def processEndTag(self, tagname, attributes): self.parser.parseError()
b1506b097484802495bf8cc4bd05649a3c331d23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/b1506b097484802495bf8cc4bd05649a3c331d23/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 25633, 12, 2890, 16, 25586, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1207, 25633, 12, 2890, 16, 25586, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
name = forms.CharField(max_length=100, widget=forms.TextInput(attrs={'size':25})) description = forms.CharField(max_length=250, widget=forms.TextInput(attrs={'size':25}), required=False)
name = forms.CharField(max_length=100, widget=forms.TextInput(attrs={'size':25, 'autocomplete': 'off'})) description = forms.CharField(max_length=250, widget=forms.TextInput(attrs={'size':25, 'autocomplete': 'off'}), required=False)
def __init__(self, name_check=False, *args, **kwargs): super(GroupForm, self).__init__(*args, **kwargs) self.name_check=name_check try: if kwargs['initial']['owners']: pass self.fields['owners'] = ExperimenterModelMultipleChoiceField(queryset=kwargs['initial']['experimenters'], initial=kwargs['initial']['owner'], requi...
1b34cc31fcc05c09bec2e5557c02c3a370c77a12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/1b34cc31fcc05c09bec2e5557c02c3a370c77a12/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 67, 1893, 33, 8381, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 1114, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 67, 1893, 33, 8381, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 1114, 1204, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 365, ...
self.open_feedback_msg(dev.get_gui_name(), e.feedback_msg)
if dev not in self.ejected_devices: self.open_feedback_msg(dev.get_gui_name(), e.feedback_msg) self.ejected_devices.add(dev)
def do_connect(self, connected_devices, device_kind): for dev, detected_device in connected_devices: if dev.OPEN_FEEDBACK_MESSAGE is not None: self.open_feedback_slot(dev.OPEN_FEEDBACK_MESSAGE) try: dev.reset(detected_device=detected_device, report_progress=self.report_progress) dev.open() except OpenFeedback, e: self....
5dacd76a4e89935ac3e2ce334f784aeda6d65eec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/5dacd76a4e89935ac3e2ce334f784aeda6d65eec/device.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3612, 12, 2890, 16, 5840, 67, 12506, 16, 2346, 67, 9224, 4672, 364, 4461, 16, 8316, 67, 5964, 316, 5840, 67, 12506, 30, 309, 4461, 18, 11437, 67, 29195, 8720, 67, 8723, 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, 741, 67, 3612, 12, 2890, 16, 5840, 67, 12506, 16, 2346, 67, 9224, 4672, 364, 4461, 16, 8316, 67, 5964, 316, 5840, 67, 12506, 30, 309, 4461, 18, 11437, 67, 29195, 8720, 67, 8723, 353, ...