rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
return
return oldhandle
def waitforconn(localip, localport,function): """ <Purpose> Waits for a connection to a port. Calls function with a socket-like object if it succeeds. <Arguments> localip: The local IP to listen on localport: The local port to bind to function: The function to call. It should take five arguments: (remoteip, remoteport, socketlikeobj, thiscommhandle, maincommhandle) If your function has an uncaught exception, the socket-like object it is using will be closed. <Exceptions> None. <Side Effects> Starts an event handler that listens for connections. <Returns> A handle to the comm object. This can be used to stop listening """ if not localip or localip == '0.0.0.0': raise Exception("Must specify a local IP address") if type(localport) is not int and type(localport) is not long: raise Exception("Local port number must be an integer") restrictions.assertisallowed('waitforconn',localip,localport) nanny.tattle_check('connport',localport) # If they specify an IP, we must use it... if specificIP and localip not in whitelistedIPs and specificIP != localip: raise Exception, "IP '"+localip+"' is not allowed. User restricts outgoing traffic to IP: '"+specificIP+"'" # check if I'm already listening on this port / ip (junkentry, oldhandle) = find_tip_entry('TCP',localip,localport) if oldhandle: # if it was already there, update the function and return comminfo[oldhandle]['function'] = function return handle = idhelper.getuniqueid() # we'll need to add it, so add a socket... nanny.tattle_add_item('insockets',handle) # get the socket try: mainsock = get_real_socket(localip,localport) # NOTE: Should this be anything other than a hardcoded number? mainsock.listen(5) # set up our table entry comminfo[handle] = {'type':'TCP','remotehost':None, 'remoteport':None,'localip':localip,'localport':localport,'socket':mainsock, 'outgoing':False, 'function':function} except: nanny.tattle_remove_item('insockets',handle) raise # start the selector if it's not running already check_selector() return handle
d9b4d7e98cbce925f111c760250aa481f24cb6d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/d9b4d7e98cbce925f111c760250aa481f24cb6d6/emulcomm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 4646, 12, 3729, 625, 16, 1191, 655, 16, 915, 4672, 3536, 411, 10262, 4150, 34, 678, 12351, 364, 279, 1459, 358, 279, 1756, 18, 282, 23665, 445, 598, 279, 2987, 17, 5625, 733, 309, 518, 21933, 18, 225, 411, 4628, 34, 1191, 625, 30, 1021, 1191, 2971, 358, 6514, 603, 1191, 655, 30, 1021, 1191, 1756, 358, 1993, 358, 445, 30, 1021, 445, 358, 745, 18, 282, 2597, 1410, 4862, 23714, 1775, 30, 261, 7222, 625, 16, 2632, 655, 16, 2987, 5625, 2603, 16, 333, 5702, 4110, 16, 2774, 5702, 4110, 13, 971, 3433, 445, 711, 392, 6301, 16510, 1520, 16, 326, 2987, 17, 5625, 733, 518, 353, 1450, 903, 506, 4375, 18, 225, 411, 11416, 34, 599, 18, 225, 411, 8895, 30755, 87, 34, 30620, 392, 871, 1838, 716, 666, 773, 364, 5921, 18, 225, 411, 1356, 34, 432, 1640, 358, 326, 1543, 733, 18, 282, 1220, 848, 506, 1399, 358, 2132, 13895, 3536, 309, 486, 1191, 625, 578, 1191, 625, 422, 296, 20, 18, 20, 18, 20, 18, 20, 4278, 1002, 1185, 2932, 10136, 4800, 279, 1191, 2971, 1758, 7923, 225, 309, 618, 12, 3729, 655, 13, 353, 486, 509, 471, 618, 12, 3729, 655, 13, 353, 486, 1525, 30, 1002, 1185, 2932, 2042, 1756, 1300, 1297, 506, 392, 3571, 7923, 225, 17499, 18, 11231, 291, 8151, 2668, 7048, 1884, 4646, 2187, 3729, 625, 16, 3729, 655, 13, 225, 290, 1072, 93, 18, 88, 4558, 298, 67, 1893, 2668, 4646, 655, 2187, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 4646, 12, 3729, 625, 16, 1191, 655, 16, 915, 4672, 3536, 411, 10262, 4150, 34, 678, 12351, 364, 279, 1459, 358, 279, 1756, 18, 282, 23665, 445, 598, 279, 2987, 17, 5625, 733, 309, 518, 21933, 18, 225, 411, 4628, 34, 1191, 625, 30, 1021, 1191, 2971, 358, 6514, 603, 1191, 655, 30, 1021, 1191, 1756, 358, 1993, 358, 445, 30, 1021, 445, 358, 745, 18, 282, 2597, 1410, 4862, 23714, 1775, 30, 261, 7222, 625, 16, 2632, 655, 16, 2987, 5625, 2603, 16, 333, 5702, 4110, 16, 2774, 5702, 4110, 13, 971, 3433, 445, 711, 392, 6301, 16510, 1520, 16, 326, 2987, 17, 5625, 733, 518, 353, 1450, 903, 506, 4375, 18, 225, 411, 11416, 2 ]
for i in self.peerconns:
for i in self.np.peerconns:
def GetSharedFileList(self, msg): self.logMessage("%s %s" %(msg.__class__, vars(msg)), 4) user = ip = port = None # Get peer's username, ip and port for i in self.peerconns: if i.conn is msg.conn.conn: user = i.username if i.addr is not None: if len(i.addr) != 2: break ip, port = i.addr break if user == None: # No peer connection return requestTime = time.time() if user in self.requestedShares: if not requestTime > 10 + self.requestedShares[user]: # Ignoring request, because it's 10 or less seconds since the # last one by this user return self.requestedShares[user] = requestTime # Check address is spoofed, if possible #if self.CheckSpoof(user, ip, port): # Message IS spoofed # return if user == self.config.sections["server"]["login"]: if ip != None and port != None: self.logMessage(_("%(user)s is making a BrowseShares request, blocking possible spoofing attempt from IP %(ip)s port %(port)s") %{'user':user, 'ip':ip, 'port':port}, 1) else: self.logMessage(_("%(user)s is making a BrowseShares request, blocking possible spoofing attempt from an unknown IP & port") %{'user':user}, None) if msg.conn.conn != None: self.queue.put(slskmessages.ConnClose(msg.conn.conn)) return self.logMessage(_("%(user)s is making a BrowseShares request") %{'user':user}, 1) addr = msg.conn.addr[0] checkuser, reason = self.CheckUser(user, addr) if checkuser == 1: ## Send Normal Shares if self.newnormalshares: self.CompressShares("normal") self.newnormalshares = False m = self.CompressedSharesNormal
e99e27aa3d49efe1c5a2a4e6bf0dfd724c3b6b36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/e99e27aa3d49efe1c5a2a4e6bf0dfd724c3b6b36/shares.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 7887, 26098, 12, 2890, 16, 1234, 4672, 365, 18, 1330, 1079, 27188, 87, 738, 87, 6, 8975, 3576, 16186, 1106, 972, 16, 4153, 12, 3576, 13, 3631, 1059, 13, 729, 273, 2359, 273, 1756, 273, 599, 468, 968, 4261, 1807, 2718, 16, 2359, 471, 1756, 364, 277, 316, 365, 18, 6782, 18, 12210, 591, 2387, 30, 309, 277, 18, 4646, 353, 1234, 18, 4646, 18, 4646, 30, 225, 729, 273, 277, 18, 5053, 309, 277, 18, 4793, 353, 486, 599, 30, 309, 562, 12, 77, 18, 4793, 13, 480, 576, 30, 898, 2359, 16, 1756, 273, 277, 18, 4793, 898, 309, 729, 422, 599, 30, 468, 2631, 4261, 1459, 327, 590, 950, 273, 813, 18, 957, 1435, 309, 729, 316, 365, 18, 19065, 24051, 30, 309, 486, 590, 950, 405, 225, 1728, 397, 365, 18, 19065, 24051, 63, 1355, 14542, 468, 467, 16997, 590, 16, 2724, 518, 1807, 1728, 578, 5242, 3974, 3241, 326, 468, 1142, 1245, 635, 333, 729, 327, 365, 18, 19065, 24051, 63, 1355, 65, 273, 590, 950, 468, 2073, 1758, 353, 25204, 792, 329, 16, 309, 3323, 468, 430, 365, 18, 1564, 55, 1631, 792, 12, 1355, 16, 2359, 16, 1756, 4672, 468, 2350, 4437, 25204, 792, 329, 468, 202, 2463, 309, 729, 422, 365, 18, 1425, 18, 11657, 9614, 3567, 6, 6362, 6, 5819, 11929, 30, 309, 2359, 480, 599, 471, 1756, 480, 599, 30, 365, 18, 1330, 1079, 24899, 2932, 17105, 1355, 13, 87, 353, 10480, 279, 605, 12481, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 7887, 26098, 12, 2890, 16, 1234, 4672, 365, 18, 1330, 1079, 27188, 87, 738, 87, 6, 8975, 3576, 16186, 1106, 972, 16, 4153, 12, 3576, 13, 3631, 1059, 13, 729, 273, 2359, 273, 1756, 273, 599, 468, 968, 4261, 1807, 2718, 16, 2359, 471, 1756, 364, 277, 316, 365, 18, 6782, 18, 12210, 591, 2387, 30, 309, 277, 18, 4646, 353, 1234, 18, 4646, 18, 4646, 30, 225, 729, 273, 277, 18, 5053, 309, 277, 18, 4793, 353, 486, 599, 30, 309, 562, 12, 77, 18, 4793, 13, 480, 576, 30, 898, 2359, 16, 1756, 273, 277, 18, 4793, 898, 309, 729, 422, 599, 30, 468, 2631, 4261, 1459, 327, 590, 950, 273, 813, 18, 957, 1435, 2 ]
ls = sz_ls[symbol]
ls = valence_config[symbol]
def get_nao(symbol, basis): """Number of basis functions. Parameters ========== symbol: str The chemical symbol. basis: str Basis function type. """ ls = sz_ls[symbol] nao = 0 zeta = {'s':1, 'd':2, 't':3, 'q':4} nzeta = zeta[basis[0]] is_pol = 'p' in basis for l in ls: nao += (2 * l + 1) * nzeta if is_pol: l_pol = None l = -1 while l_pol is None: l += 1 if not l in ls: l_pol = l nao += 2 * l_pol + 1 return nao
bd131d266b77db33c77359078e66dc2350b19980 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/bd131d266b77db33c77359078e66dc2350b19980/siesta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 82, 6033, 12, 7175, 16, 10853, 4672, 3536, 1854, 434, 10853, 4186, 18, 225, 7012, 422, 1432, 3273, 30, 609, 1021, 19028, 1706, 3273, 18, 10853, 30, 609, 605, 17247, 445, 618, 18, 3536, 7180, 273, 1244, 802, 67, 1425, 63, 7175, 65, 290, 6033, 273, 374, 998, 1066, 273, 13666, 87, 4278, 21, 16, 296, 72, 4278, 22, 16, 296, 88, 4278, 23, 16, 296, 85, 4278, 24, 97, 15062, 1066, 273, 998, 1066, 63, 23774, 63, 20, 13563, 353, 67, 3915, 273, 296, 84, 11, 316, 10853, 364, 328, 316, 7180, 30, 290, 6033, 1011, 261, 22, 380, 328, 397, 404, 13, 380, 15062, 1066, 309, 353, 67, 3915, 30, 328, 67, 3915, 273, 599, 328, 273, 300, 21, 1323, 328, 67, 3915, 353, 599, 30, 328, 1011, 404, 309, 486, 328, 316, 7180, 30, 328, 67, 3915, 273, 328, 290, 6033, 1011, 576, 380, 328, 67, 3915, 397, 404, 327, 290, 6033, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 82, 6033, 12, 7175, 16, 10853, 4672, 3536, 1854, 434, 10853, 4186, 18, 225, 7012, 422, 1432, 3273, 30, 609, 1021, 19028, 1706, 3273, 18, 10853, 30, 609, 605, 17247, 445, 618, 18, 3536, 7180, 273, 1244, 802, 67, 1425, 63, 7175, 65, 290, 6033, 273, 374, 998, 1066, 273, 13666, 87, 4278, 21, 16, 296, 72, 4278, 22, 16, 296, 88, 4278, 23, 16, 296, 85, 4278, 24, 97, 15062, 1066, 273, 998, 1066, 63, 23774, 63, 20, 13563, 353, 67, 3915, 273, 296, 84, 11, 316, 10853, 364, 328, 316, 7180, 30, 290, 6033, 1011, 261, 22, 380, 328, 397, 404, 13, 380, 15062, 1066, 309, 353, 67, 3915, 30, 328, 67, 3915, 273, 2 ]
articles[title][self.max_articles_per_feed:] = []
articles[title] = articles[title][:self.max_articles_per_feed+1]
def parse_feeds(self, require_url=True): ''' Create list of articles from a list of feeds. @param require_url: If True skip articles that don't have a link to a HTML page with the full article contents. @return: A dictionary whose keys are feed titles and whose values are each a list of dictionaries. Each list contains dictionaries of the form: { 'title' : article title, 'url' : URL of print version, 'date' : The publication date of the article as a string, 'description' : A summary of the article 'content' : The full article (can be an empty string). This is unused in DefaultProfile } ''' added_articles = {} feeds = self.get_feeds() articles = {} for title, url in feeds: try: src = self.browser.open(url).read() except Exception, err: self.logger.error('Could not fetch feed: %s\nError: %s'%(url, err)) if self.verbose: self.logger.exception(' ') continue articles[title] = [] added_articles[title] = [] soup = BeautifulStoneSoup(src) for item in soup.findAll('item'): try: if self.use_pubdate: pubdate = item.find('pubdate') if not pubdate: pubdate = item.find('dc:date') if not pubdate or not pubdate.string: self.logger.debug('Skipping article as it does not have publication date') continue pubdate = self.tag_to_string(pubdate) pubdate = pubdate.replace('+0000', 'GMT') url = self.get_article_url(item) url = self.tag_to_string(url) if require_url and not url: self.logger.debug('Skipping article as it does not have a link url') continue content = item.find('content:encoded') if not content: content = item.find('description') if content: content = self.process_html_description(content, strip_links=False) else: content = '' purl = url try: purl = self.print_version(url) except Exception, err: self.logger.debug('Skipping %s as could not find URL for print version. Error:\n%s'%(url, err)) continue d = { 'title' : self.tag_to_string(item.find('title')), 'url' : purl, 'timestamp': self.strptime(pubdate) if self.use_pubdate else time.time(), 'date' : pubdate if self.use_pubdate else time.ctime(), 'content' : content, } delta = time.time() - d['timestamp'] if not self.allow_duplicates: if d['title'] in added_articles[title]: continue added_articles[title].append(d['title']) if delta > self.oldest_article*3600*24: continue except Exception, err: if self.verbose: self.logger.exception('Error parsing article:\n%s'%(item,)) continue try: desc = item.find('description') d['description'] = self.process_html_description(desc) if self.html_description else desc.string except: d['description'] = '' articles[title].append(d) articles[title].sort(key=operator.itemgetter('timestamp'), reverse=True) articles[title][self.max_articles_per_feed:] = [] for item in articles[title]: item.pop('timestamp') if not articles[title]: articles.pop(title) return articles
a1389cfd57d21d89c10f768c71a7ae7e89fe6504 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/a1389cfd57d21d89c10f768c71a7ae7e89fe6504/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7848, 87, 12, 2890, 16, 2583, 67, 718, 33, 5510, 4672, 9163, 1788, 666, 434, 15828, 628, 279, 666, 434, 27684, 18, 632, 891, 2583, 67, 718, 30, 971, 1053, 2488, 15828, 716, 2727, 1404, 1240, 279, 1692, 358, 279, 3982, 1363, 598, 326, 1983, 7559, 2939, 18, 632, 2463, 30, 432, 3880, 8272, 1311, 854, 4746, 14693, 471, 8272, 924, 854, 1517, 279, 666, 434, 16176, 18, 8315, 666, 1914, 16176, 434, 326, 646, 30, 288, 296, 2649, 11, 4202, 294, 7559, 2077, 16, 296, 718, 11, 540, 294, 1976, 434, 1172, 1177, 16, 296, 712, 11, 3639, 294, 1021, 20574, 1509, 434, 326, 7559, 487, 279, 533, 16, 296, 3384, 11, 294, 432, 4916, 434, 326, 7559, 296, 1745, 11, 377, 294, 1021, 1983, 7559, 261, 4169, 506, 392, 1008, 533, 2934, 1220, 353, 10197, 316, 2989, 4029, 289, 9163, 3096, 67, 16462, 273, 2618, 27684, 273, 365, 18, 588, 67, 7848, 87, 1435, 15828, 273, 2618, 364, 2077, 16, 880, 316, 27684, 30, 775, 30, 1705, 273, 365, 18, 11213, 18, 3190, 12, 718, 2934, 896, 1435, 1335, 1185, 16, 393, 30, 365, 18, 4901, 18, 1636, 2668, 4445, 486, 2158, 4746, 30, 738, 87, 64, 82, 668, 30, 738, 87, 11, 17105, 718, 16, 393, 3719, 309, 365, 18, 11369, 30, 365, 18, 4901, 18, 4064, 2668, 8624, 1324, 225, 15828, 63, 2649, 65, 273, 5378, 3096, 67, 16462, 63, 2649, 65, 273, 5378, 15418, 273, 27358, 510, 476, 27069, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7848, 87, 12, 2890, 16, 2583, 67, 718, 33, 5510, 4672, 9163, 1788, 666, 434, 15828, 628, 279, 666, 434, 27684, 18, 632, 891, 2583, 67, 718, 30, 971, 1053, 2488, 15828, 716, 2727, 1404, 1240, 279, 1692, 358, 279, 3982, 1363, 598, 326, 1983, 7559, 2939, 18, 632, 2463, 30, 432, 3880, 8272, 1311, 854, 4746, 14693, 471, 8272, 924, 854, 1517, 279, 666, 434, 16176, 18, 8315, 666, 1914, 16176, 434, 326, 646, 30, 288, 296, 2649, 11, 4202, 294, 7559, 2077, 16, 296, 718, 11, 540, 294, 1976, 434, 1172, 1177, 16, 296, 712, 11, 3639, 294, 1021, 20574, 1509, 434, 326, 7559, 487, 279, 533, 16, 296, 3384, 11, 294, 432, 4916, 2 ]
assy.addmol(mol) mol.moveto(opengroup) mol = None
mol = _addMolecule(mol, assy, opengroup)
def _readmmp(assy, filnam, isInsert = False): """The routine to actually reading a mmp file and save data into data structure """ #bruce 041011: added 'U' to file mode, for universal newline support. l=open(filnam,"rU").readlines() if not isInsert: assy.filename=filnam mol = None ndix={} assy.alist = [] #assy.tree = Group("Root", assy, None) groupstack = [] grouplist = [] opengroup = None for card in l: key=keypat.match(card) if not key: continue key = key.group(0) if key == "group": # Group of Molecules and/or Groups name = getname(card, "Grp") opengroup = Group(name, assy, opengroup)#assy.tree) if not groupstack: grouplist += [opengroup] groupstack = [(opengroup, name)] + groupstack if key == "egroup": # Group of Molecules and/or Groups name = getname(card, "Grp") curgrp, curnam = groupstack[0] if name != curnam: print "mismatched group records:", name, curnam break if mol: assy.addmol(mol) mol.moveto(curgrp) mol = None groupstack = groupstack[1:] if groupstack: opengroup, junk = groupstack[0] else: opengroup = None elif key=="mol": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None name = getname(card, "Mole") mol=molecule(assy, name) disp = molpat.match(card) if disp: try: mol.setDisplay(dispNames.index(disp.group(1))) except ValueError: pass else: mol.setDisplay(diDEFAULT) elif key == "atom": m=atom1pat.match(card) if not m: print card n=int(m.group(1)) sym=PeriodicTable[int(m.group(2))].symbol xyz=A(map(float, [m.group(3),m.group(4),m.group(5)]))/1000.0 a = atom(sym, xyz, mol) disp = atom2pat.match(card) if disp: try: a.setDisplay(dispNames.index(disp.group(1))) except ValueError: pass assy.alist += [a] ndix[n]=a prevatom=a prevcard = card elif key == "bond1": list=map(int, re.findall("\d+",card[5:])) try: for a in map((lambda n: ndix[n]), list): mol.bond(prevatom, a) except KeyError: print "error in MMP file: atom ", prevcard print card # Read the MMP record for a Rotary Motor as: # rmotor (name) (r, g, b) torque speed (cx, cy, cz) (ax, ay, az) elif key == "rmotor": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=rmotpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) torq=float(m.group(5)) sped=float(m.group(6)) cxyz=A(map(float, [m.group(7),m.group(8),m.group(9)]))/1000.0 axyz=A(map(float, [m.group(10),m.group(11),m.group(12)]))/1000.0 prevmotor=RotaryMotor(assy) prevmotor.setProps(name, col, torq, sped, cxyz, axyz) opengroup.addmember(prevmotor) elif key == "shaft": list = map(int, re.findall("\d+",card[6:])) list = map((lambda n: ndix[n]), list) prevmotor.setShaft(list) # Read the MMP record for a Linear Motor as: # lmotor (name) (r, g, b) force stiffness (cx, cy, cz) (ax, ay, az) elif key == "lmotor": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=lmotpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) force=float(m.group(5)) stiffness=float(m.group(6)) cxyz=A(map(float, [m.group(7),m.group(8),m.group(9)]))/1000.0 axyz=A(map(float, [m.group(10),m.group(11),m.group(12)]))/1000.0 prevmotor=LinearMotor(assy) prevmotor.setProps(name, col, force, stiffness, cxyz, axyz) opengroup.addmember(prevmotor) # Read the MMP record for a Ground as: # ground (name) (r, g, b) atom1 atom2 ... atom25 {up to 25} elif key == "ground": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=grdpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) # Read in the list of atoms card =card[card.index(")")+1:] # skip past the color field list = map(int, re.findall("\d+",card[card.index(")")+1:])) list = map((lambda n: ndix[n]), list) gr = Ground(assy, list) # create ground and set props gr.name=name gr.color=col opengroup.addmember(gr) # Read the MMP record for a Thermostat as: # stat (name) (r, g, b) (temp) atom1 atom2 ... atom25 {up to 25} elif key == "stat": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=statpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) temp=m.group(5) # Read in the list of atoms card =card[card.index(")")+1:] # skip past the color field card =card[card.index(")")+1:] # skip past the temp field list = map(int, re.findall("\d+",card[card.index(")")+1:])) list = map((lambda n: ndix[n]), list) sr = Stat(assy, list) # create stat and set props sr.name=name sr.color=col sr.temp=temp opengroup.addmember(sr) elif key == "shaft": list = map(int, re.findall("\d+",card[6:])) list = map((lambda n: ndix[n]), list) prevmotor.setShaft(list) elif key=="csys": # Coordinate System if not isInsert: #Skip this record if inserting m=re.match(csyspat,card) name=m.group(1) wxyz = A(map(float, [m.group(2), m.group(3), m.group(4), m.group(5)])) scale=float(m.group(6)) assy.csys = Csys(assy, name, scale, wxyz) opengroup.addmember(assy.csys) elif key=="datum": # Datum object if not isInsert: #Skip this record if inserting if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=re.match(datumpat,card) if not m: print card continue name=m.group(1) type=m.group(5) col = tuple(map(int, [m.group(2), m.group(3), m.group(4)])) vec1 = A(map(float, [m.group(6), m.group(7), m.group(8)])) vec2 = A(map(float, [m.group(9), m.group(10), m.group(11)])) vec3 = A(map(float, [m.group(12), m.group(13), m.group(14)])) new = Datum(assy,name,type,vec1,vec2,vec3) opengroup.addmember(new) new.rgb = col elif key=="waals": # van der Waals Interactions pass # code was wrong -- to be implemented later elif key=="kelvin": # Temperature in Kelvin if not isInsert: #Skip this record if inserting m = re.match("kelvin (\d+)",card) n = int(m.group(1)) assy.temperature = n return grouplist
fb6c9c504f671cac1731613196f6f8f4e6c84063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/fb6c9c504f671cac1731613196f6f8f4e6c84063/fileIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 81, 1291, 12, 428, 93, 16, 661, 17808, 16, 353, 4600, 273, 1083, 4672, 3536, 1986, 12245, 358, 6013, 6453, 279, 312, 1291, 585, 471, 1923, 501, 1368, 501, 3695, 3536, 468, 2848, 3965, 374, 9803, 1611, 21, 30, 3096, 296, 57, 11, 358, 585, 1965, 16, 364, 26182, 9472, 2865, 18, 328, 33, 3190, 12, 7540, 17808, 10837, 86, 57, 20387, 896, 3548, 1435, 309, 486, 353, 4600, 30, 1551, 93, 18, 3459, 33, 7540, 17808, 12629, 273, 599, 5346, 697, 12938, 1551, 93, 18, 287, 376, 273, 5378, 468, 428, 93, 18, 3413, 273, 3756, 2932, 2375, 3113, 1551, 93, 16, 599, 13, 1041, 3772, 273, 5378, 314, 14004, 17842, 273, 5378, 1696, 1655, 273, 599, 225, 364, 5270, 316, 328, 30, 498, 33, 856, 16330, 18, 1916, 12, 3327, 13, 309, 486, 498, 30, 1324, 498, 273, 498, 18, 1655, 12, 20, 13, 225, 309, 498, 422, 315, 1655, 6877, 468, 3756, 434, 490, 29466, 471, 19, 280, 14712, 508, 273, 336, 529, 12, 3327, 16, 315, 43, 13832, 7923, 1696, 1655, 273, 3756, 12, 529, 16, 1551, 93, 16, 1696, 1655, 13, 7, 428, 93, 18, 3413, 13, 309, 486, 1041, 3772, 30, 314, 14004, 17842, 1011, 306, 3190, 1655, 65, 1041, 3772, 273, 306, 12, 3190, 1655, 16, 508, 25887, 397, 1041, 3772, 225, 309, 498, 422, 315, 1332, 656, 6877, 468, 3756, 434, 490, 29466, 471, 19, 280, 14712, 508, 273, 336, 529, 12, 3327, 16, 315, 43, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 81, 1291, 12, 428, 93, 16, 661, 17808, 16, 353, 4600, 273, 1083, 4672, 3536, 1986, 12245, 358, 6013, 6453, 279, 312, 1291, 585, 471, 1923, 501, 1368, 501, 3695, 3536, 468, 2848, 3965, 374, 9803, 1611, 21, 30, 3096, 296, 57, 11, 358, 585, 1965, 16, 364, 26182, 9472, 2865, 18, 328, 33, 3190, 12, 7540, 17808, 10837, 86, 57, 20387, 896, 3548, 1435, 309, 486, 353, 4600, 30, 1551, 93, 18, 3459, 33, 7540, 17808, 12629, 273, 599, 5346, 697, 12938, 1551, 93, 18, 287, 376, 273, 5378, 468, 428, 93, 18, 3413, 273, 3756, 2932, 2375, 3113, 1551, 93, 16, 599, 13, 1041, 3772, 273, 5378, 314, 14004, 17842, 273, 5378, 1696, 1655, 2 ]
matrix_string = '%s %d' % (matrix_string, int(matrix[j]))
matrix_string = '%s %d' % (matrix_string, nint(matrix[j]))
def convert(self, matrix):
05e86db0fbca14063d3168010cfa6ef30bb1e07e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/05e86db0fbca14063d3168010cfa6ef30bb1e07e/Mat2symop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 3148, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1765, 12, 2890, 16, 3148, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for i,insn in trace:
for i, insn in trace:
def make_tbs(trace): """Splits the trace into translation blocks. Splits the trace into translation blocks by creating a new TB every time the HEAD_EIP micro-op is seen. Returns a list of TB objects. """ tbs = [] current_tb = TB("START") current_tb.prev = None for i,insn in trace: if insn.op == "IFLO_TB_HEAD_EIP": if current_tb: tbs.append(current_tb) current_tb = TB(insn.args[0]) # Maintain forward and back pointers current_tb.prev = tbs[-1] tbs[-1].next = current_tb current_tb.body.append((i,insn)) else: if current_tb: current_tb.body.append((i,insn)) tbs.append(current_tb) return tbs
63b309d6f3838e4cb5c2921faf3bb1472f46245c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4260/63b309d6f3838e4cb5c2921faf3bb1472f46245c/newslice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 88, 2038, 12, 5129, 4672, 3536, 16582, 326, 2606, 1368, 4794, 4398, 18, 225, 5385, 87, 326, 2606, 1368, 4794, 4398, 635, 4979, 279, 394, 399, 38, 3614, 813, 326, 14792, 67, 41, 2579, 6481, 17, 556, 353, 5881, 18, 225, 2860, 279, 666, 434, 399, 38, 2184, 18, 3536, 268, 2038, 273, 5378, 783, 67, 18587, 273, 399, 38, 2932, 7570, 7923, 783, 67, 18587, 18, 10001, 273, 599, 364, 277, 16, 29821, 316, 2606, 30, 309, 29821, 18, 556, 422, 315, 5501, 1502, 67, 25730, 67, 12458, 67, 41, 2579, 6877, 309, 783, 67, 18587, 30, 268, 2038, 18, 6923, 12, 2972, 67, 18587, 13, 783, 67, 18587, 273, 399, 38, 12, 2679, 82, 18, 1968, 63, 20, 5717, 225, 468, 490, 1598, 530, 5104, 471, 1473, 13857, 783, 67, 18587, 18, 10001, 273, 268, 2038, 18919, 21, 65, 268, 2038, 18919, 21, 8009, 4285, 273, 783, 67, 18587, 225, 783, 67, 18587, 18, 3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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 88, 2038, 12, 5129, 4672, 3536, 16582, 326, 2606, 1368, 4794, 4398, 18, 225, 5385, 87, 326, 2606, 1368, 4794, 4398, 635, 4979, 279, 394, 399, 38, 3614, 813, 326, 14792, 67, 41, 2579, 6481, 17, 556, 353, 5881, 18, 225, 2860, 279, 666, 434, 399, 38, 2184, 18, 3536, 268, 2038, 273, 5378, 783, 67, 18587, 273, 399, 38, 2932, 7570, 7923, 783, 67, 18587, 18, 10001, 273, 599, 364, 277, 16, 29821, 316, 2606, 30, 309, 29821, 18, 556, 422, 315, 5501, 1502, 67, 25730, 67, 12458, 67, 41, 2579, 6877, 309, 783, 67, 18587, 30, 268, 2038, 18, 6923, 12, 2972, 67, 18587, 13, 783, 67, 18587, 273, 399, 38, 12, 2679, 82, 2 ]
if _debug: print "\t%s: Called Camera.getFocalPoint()" % rendererName
debugMsg("Called Camera.getFocalPoint()")
def getFocalPoint(self): """ Get the position of the focal point of the Camera
96b00238a8d5cd11876b111a3518775124c30a4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/96b00238a8d5cd11876b111a3518775124c30a4c/camera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2812, 23735, 2148, 12, 2890, 4672, 3536, 968, 326, 1754, 434, 326, 284, 23735, 1634, 434, 326, 30355, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2812, 23735, 2148, 12, 2890, 4672, 3536, 968, 326, 1754, 434, 326, 284, 23735, 1634, 434, 326, 30355, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return list
return mylist
def getPrevYearMonth(year, month): # Get the year and month for the previous month (watch out for January) prevmonth = month - 1 prevyear = year if prevmonth == 0: prevyear = year - 1 prevmonth = 12 return (prevyear, prevmonth)
9b9e9c7284c01c0653198e2117088c3fbee716cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10431/9b9e9c7284c01c0653198e2117088c3fbee716cb/getMonthlyBookings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 9958, 5593, 5445, 12, 6874, 16, 3138, 4672, 468, 968, 326, 3286, 471, 3138, 364, 326, 2416, 3138, 261, 7585, 596, 364, 23214, 24335, 13, 2807, 7496, 273, 3138, 300, 404, 2807, 6874, 273, 3286, 309, 2807, 7496, 422, 374, 30, 2807, 6874, 273, 3286, 300, 404, 2807, 7496, 273, 2593, 327, 261, 10001, 6874, 16, 2807, 7496, 13, 225, 2, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 9958, 5593, 5445, 12, 6874, 16, 3138, 4672, 468, 968, 326, 3286, 471, 3138, 364, 326, 2416, 3138, 261, 7585, 596, 364, 23214, 24335, 13, 2807, 7496, 273, 3138, 300, 404, 2807, 6874, 273, 3286, 309, 2807, 7496, 422, 374, 30, 2807, 6874, 273, 3286, 300, 404, 2807, 7496, 273, 2593, 327, 261, 10001, 6874, 16, 2807, 7496, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'state': lambda self,cr,uid,ctx={}: (ctx and ctx.get('manual',False)) and 'manual' or 'base',
'state': lambda self,cr,uid,ctx=None: (ctx and ctx.get('manual',False)) and 'manual' or 'base',
def _search_osv_memory(self, cr, uid, model, name, domain, context=None): if not domain: return [] field, operator, value = domain[0] if operator not in ['=', '!=']: raise osv.except_osv('Invalid search criterions','The osv_memory field can only be compared with = and != operator.') value = bool(value) if operator == '=' else not bool(value) all_model_ids = self.search(cr, uid, [], context=context) is_osv_mem = self._is_osv_memory(cr, uid, all_model_ids, 'osv_memory', arg=None, context=context) return [('id', 'in', [id for id in is_osv_mem if bool(is_osv_mem[id]) == value])]
4720ad1f8624b197cfd55bc8a9d2d26eb853531f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/4720ad1f8624b197cfd55bc8a9d2d26eb853531f/ir_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 67, 538, 90, 67, 7858, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 508, 16, 2461, 16, 819, 33, 7036, 4672, 309, 486, 2461, 30, 327, 5378, 652, 16, 3726, 16, 460, 273, 2461, 63, 20, 65, 309, 3726, 486, 316, 10228, 33, 2187, 30311, 14542, 1002, 1140, 90, 18, 14137, 67, 538, 90, 2668, 1941, 1623, 24992, 1115, 17023, 1986, 1140, 90, 67, 7858, 652, 848, 1338, 506, 15843, 598, 273, 471, 480, 3726, 1093, 13, 460, 273, 1426, 12, 1132, 13, 309, 3726, 422, 5214, 469, 486, 1426, 12, 1132, 13, 777, 67, 2284, 67, 2232, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 5378, 16, 819, 33, 2472, 13, 353, 67, 538, 90, 67, 3917, 273, 365, 6315, 291, 67, 538, 90, 67, 7858, 12, 3353, 16, 4555, 16, 777, 67, 2284, 67, 2232, 16, 296, 538, 90, 67, 7858, 2187, 1501, 33, 7036, 16, 819, 33, 2472, 13, 327, 306, 2668, 350, 2187, 296, 267, 2187, 306, 350, 364, 612, 316, 353, 67, 538, 90, 67, 3917, 309, 1426, 12, 291, 67, 538, 90, 67, 3917, 63, 350, 5717, 422, 460, 5717, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 67, 538, 90, 67, 7858, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 508, 16, 2461, 16, 819, 33, 7036, 4672, 309, 486, 2461, 30, 327, 5378, 652, 16, 3726, 16, 460, 273, 2461, 63, 20, 65, 309, 3726, 486, 316, 10228, 33, 2187, 30311, 14542, 1002, 1140, 90, 18, 14137, 67, 538, 90, 2668, 1941, 1623, 24992, 1115, 17023, 1986, 1140, 90, 67, 7858, 652, 848, 1338, 506, 15843, 598, 273, 471, 480, 3726, 1093, 13, 460, 273, 1426, 12, 1132, 13, 309, 3726, 422, 5214, 469, 486, 1426, 12, 1132, 13, 777, 67, 2284, 67, 2232, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 5378, 16, 819, 33, 2472, 13, 353, 67, 2 ]
try: my = None my = Root(config_opts) except Error, e: print e if my: my.close() sys.exit(100) my.close() print 'Finished cleaning root'
do_clean(config_opts, init=0)
def main(): # before we go on, make sure the user is a member of the 'mock' group. member = False for item in os.getgroups(): try: grptup = grp.getgrgid(item) except KeyError, e: continue if grptup[0] == 'mock': member = True if not member: print "You need to be a member of the mock group for this to work" sys.exit(1) # and make sure they're not root if os.geteuid() == 0: error("Don't try to run mock as root!") sys.exit(1) # config path config_path='/etc/mock' # defaults config_opts = {} config_opts['basedir'] = '/var/lib/mock/' # root name is automatically added to this config_opts['chroot'] = '/usr/sbin/mock-helper chroot' config_opts['mount'] = '/usr/sbin/mock-helper mount' config_opts['umount'] = '/usr/sbin/mock-helper umount' config_opts['rm'] = '/usr/sbin/mock-helper rm' config_opts['mknod'] = '/usr/sbin/mock-helper mknod' config_opts['yum'] = '/usr/sbin/mock-helper yum' config_opts['runuser'] = '/sbin/runuser' config_opts['chroot_setup_cmd'] = 'install buildsys-build' config_opts['chrootuser'] = 'mockbuild' config_opts['chrootgroup'] = 'mockbuild' config_opts['chrootuid'] = 500 config_opts['chrootgid'] = 500 config_opts['chroothome'] = '/builddir' config_opts['clean'] = True config_opts['debug'] = False config_opts['quiet'] = False config_opts['target_arch'] = 'i386' config_opts['files'] = {} config_opts['yum.conf'] = '' config_opts['macros'] = """
950a02e8990b7b978bb944a4c62a252273c46a64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7328/950a02e8990b7b978bb944a4c62a252273c46a64/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 1865, 732, 1960, 603, 16, 1221, 3071, 326, 729, 353, 279, 3140, 434, 326, 296, 22851, 11, 1041, 18, 3140, 273, 1083, 364, 761, 316, 1140, 18, 588, 4650, 13332, 775, 30, 3821, 337, 416, 273, 14295, 18, 588, 3197, 15780, 12, 1726, 13, 1335, 4999, 16, 425, 30, 1324, 309, 3821, 337, 416, 63, 20, 65, 422, 296, 22851, 4278, 3140, 273, 1053, 225, 309, 486, 3140, 30, 1172, 315, 6225, 1608, 358, 506, 279, 3140, 434, 326, 5416, 1041, 364, 333, 358, 1440, 6, 2589, 18, 8593, 12, 21, 13, 225, 468, 471, 1221, 3071, 2898, 4565, 486, 1365, 309, 1140, 18, 588, 73, 1911, 1435, 422, 374, 30, 555, 2932, 22293, 1404, 775, 358, 1086, 5416, 487, 1365, 4442, 13, 2589, 18, 8593, 12, 21, 13, 225, 468, 642, 589, 642, 67, 803, 2218, 19, 14175, 19, 22851, 11, 225, 468, 3467, 642, 67, 4952, 273, 2618, 642, 67, 4952, 3292, 31722, 3546, 273, 1173, 1401, 19, 2941, 19, 22851, 2473, 468, 1365, 508, 353, 6635, 3096, 358, 333, 642, 67, 4952, 3292, 343, 3085, 3546, 273, 1173, 13640, 19, 87, 4757, 19, 22851, 17, 4759, 462, 3085, 11, 642, 67, 4952, 3292, 4778, 3546, 273, 1173, 13640, 19, 87, 4757, 19, 22851, 17, 4759, 5344, 11, 642, 67, 4952, 3292, 379, 592, 3546, 273, 1173, 13640, 19, 87, 4757, 19, 22851, 17, 4759, 9570, 592, 11, 642, 67, 4952, 3292, 8864, 3546, 273, 1173, 13640, 19, 87, 4757, 19, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 1865, 732, 1960, 603, 16, 1221, 3071, 326, 729, 353, 279, 3140, 434, 326, 296, 22851, 11, 1041, 18, 3140, 273, 1083, 364, 761, 316, 1140, 18, 588, 4650, 13332, 775, 30, 3821, 337, 416, 273, 14295, 18, 588, 3197, 15780, 12, 1726, 13, 1335, 4999, 16, 425, 30, 1324, 309, 3821, 337, 416, 63, 20, 65, 422, 296, 22851, 4278, 3140, 273, 1053, 225, 309, 486, 3140, 30, 1172, 315, 6225, 1608, 358, 506, 279, 3140, 434, 326, 5416, 1041, 364, 333, 358, 1440, 6, 2589, 18, 8593, 12, 21, 13, 225, 468, 471, 1221, 3071, 2898, 4565, 486, 1365, 309, 1140, 18, 588, 73, 1911, 1435, 422, 374, 30, 555, 2932, 22293, 1404, 2 ]
self.
self.d = ''
def clear(self): """ Clear the path """ self.
f2d2d064337ebf6f343f6cb21ba78381195716ec /local1/tlutelli/issta_data/temp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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 12, 2890, 4672, 3536, 10121, 326, 589, 3536, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif here.get_prefix(handler_abspath) == '.': pass elif here.startswith(handler_abspath): self.in_path = True else: pass
else: prefix = here.get_prefix(handler_abspath) if prefix != '.': self.in_path = True
def __init__(self, handler, depth=None, count=None): from Folder import Folder as DatabaseFolder
c08fb43acf1d9479c6dd4fedb132f95998bed8a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/c08fb43acf1d9479c6dd4fedb132f95998bed8a7/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1838, 16, 3598, 33, 7036, 16, 1056, 33, 7036, 4672, 628, 12623, 1930, 12623, 487, 5130, 3899, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1838, 16, 3598, 33, 7036, 16, 1056, 33, 7036, 4672, 628, 12623, 1930, 12623, 487, 5130, 3899, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not len(ids):
if not ids:
def name_get(self, cursor, user, ids, context=None): if not len(ids): return [] res = [] for address in self.browse(cursor, user, ids, context): res.append((address.id, ", ".join(x for x in [address.name, address.partner.name, address.zip, address.city] if x))) return res
1fcf11f3a31c0d802824076979562f0f788d5c13 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9269/1fcf11f3a31c0d802824076979562f0f788d5c13/address.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 3258, 30, 327, 5378, 400, 273, 5378, 364, 1758, 316, 365, 18, 25731, 12, 9216, 16, 729, 16, 3258, 16, 819, 4672, 400, 18, 6923, 12443, 2867, 18, 350, 16, 3104, 3552, 5701, 12, 92, 364, 619, 316, 306, 2867, 18, 529, 16, 1758, 18, 31993, 18, 529, 16, 1758, 18, 4450, 16, 1758, 18, 14240, 65, 309, 619, 20349, 327, 400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 400, 18, 6923, 12443, 2867, 18, 350, 16, 3104, 3552, 5701, 12, 92, 364, 619, 316, 306, 2867, 18, 529, 16, 1758, 18, 31993, 18, 529, 16, 1758, 18, 4450, 16, 1758, 18, 14240, 65, 309, 619, 20349, 327, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise DistutilsPlatformError( "OK, where DO site-specific modules go on the Mac?")
return os.path.join(prefix, "Lib", "site-packages")
def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): """Return the directory containing the Python library (standard or site additions). If 'plat_specific' is true, return the directory containing platform-specific modules, i.e. any module from a non-pure-Python module distribution; otherwise, return the platform-shared library directory. If 'standard_lib' is true, return the directory containing standard Python library modules; otherwise, return the directory for site-specific modules. If 'prefix' is supplied, use it instead of sys.prefix or sys.exec_prefix -- i.e., ignore 'plat_specific'. """ if prefix is None: prefix = plat_specific and EXEC_PREFIX or PREFIX if os.name == "posix": libpython = os.path.join(prefix, "lib", "python" + sys.version[:3]) if standard_lib: return libpython else: return os.path.join(libpython, "site-packages") elif os.name == "nt": if standard_lib: return os.path.join(prefix, "Lib") else: if sys.version < "2.2": return prefix else: return os.path.join(PREFIX, "Lib", "site-packages") elif os.name == "mac": if plat_specific: if standard_lib: return os.path.join(prefix, "Mac", "Plugins") else: raise DistutilsPlatformError( "OK, where DO site-specific extensions go on the Mac?") else: if standard_lib: return os.path.join(prefix, "Lib") else: raise DistutilsPlatformError( "OK, where DO site-specific modules go on the Mac?") else: raise DistutilsPlatformError( "I don't know where Python installs its library " "on platform '%s'" % os.name)
212a2e1f9f9a49a796c85493fb079a5ade010a3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/212a2e1f9f9a49a796c85493fb079a5ade010a3d/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 2941, 12, 412, 270, 67, 12524, 33, 20, 16, 4529, 67, 2941, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 326, 6600, 5313, 261, 10005, 578, 2834, 26260, 2934, 225, 971, 296, 412, 270, 67, 12524, 11, 353, 638, 16, 327, 326, 1867, 4191, 4072, 17, 12524, 4381, 16, 277, 18, 73, 18, 1281, 1605, 628, 279, 1661, 17, 84, 594, 17, 15774, 1605, 7006, 31, 3541, 16, 327, 326, 4072, 17, 11574, 5313, 1867, 18, 225, 971, 296, 10005, 67, 2941, 11, 353, 638, 16, 327, 326, 1867, 4191, 4529, 6600, 5313, 4381, 31, 3541, 16, 327, 326, 1867, 364, 2834, 17, 12524, 4381, 18, 225, 971, 296, 3239, 11, 353, 4580, 16, 999, 518, 3560, 434, 2589, 18, 3239, 578, 2589, 18, 4177, 67, 3239, 1493, 277, 18, 73, 12990, 2305, 296, 412, 270, 67, 12524, 10332, 3536, 309, 1633, 353, 599, 30, 1633, 273, 29838, 67, 12524, 471, 24508, 67, 6307, 578, 17154, 225, 309, 1140, 18, 529, 422, 315, 24463, 6877, 2561, 8103, 273, 1140, 18, 803, 18, 5701, 12, 3239, 16, 315, 2941, 3113, 315, 8103, 6, 397, 2589, 18, 1589, 10531, 23, 5717, 309, 4529, 67, 2941, 30, 327, 2561, 8103, 469, 30, 327, 1140, 18, 803, 18, 5701, 12, 2941, 8103, 16, 315, 4256, 17, 10308, 7923, 225, 1327, 1140, 18, 529, 422, 315, 496, 6877, 309, 4529, 67, 2941, 30, 327, 1140, 18, 803, 18, 5701, 12, 3239, 16, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 2941, 12, 412, 270, 67, 12524, 33, 20, 16, 4529, 67, 2941, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 326, 6600, 5313, 261, 10005, 578, 2834, 26260, 2934, 225, 971, 296, 412, 270, 67, 12524, 11, 353, 638, 16, 327, 326, 1867, 4191, 4072, 17, 12524, 4381, 16, 277, 18, 73, 18, 1281, 1605, 628, 279, 1661, 17, 84, 594, 17, 15774, 1605, 7006, 31, 3541, 16, 327, 326, 4072, 17, 11574, 5313, 1867, 18, 225, 971, 296, 10005, 67, 2941, 11, 353, 638, 16, 327, 326, 1867, 4191, 4529, 6600, 5313, 4381, 31, 3541, 16, 327, 326, 1867, 364, 2834, 17, 12524, 4381, 18, 225, 971, 296, 3239, 2 ]
conf.env['CONFIGDIR'] = conf.env['PREFIX'] + '/etc/'
conf.env['CONFIGDIR'] = os.path.join(conf.env['PREFIX'], 'etc')
def append_cxx_flags(vals): conf.env.append_value('CCFLAGS', vals.split()) conf.env.append_value('CXXFLAGS', vals.split())
4e3ee97298ecf6faef09e60dfd5dc87604ca1e63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/399/4e3ee97298ecf6faef09e60dfd5dc87604ca1e63/autowaf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 71, 5279, 67, 7133, 12, 4524, 4672, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 6743, 17836, 2187, 5773, 18, 4939, 10756, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 39, 5619, 17836, 2187, 5773, 18, 4939, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 71, 5279, 67, 7133, 12, 4524, 4672, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 6743, 17836, 2187, 5773, 18, 4939, 10756, 2195, 18, 3074, 18, 6923, 67, 1132, 2668, 39, 5619, 17836, 2187, 5773, 18, 4939, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
off = int(plus[1] or 1)
off = int(patch[plus+1:] or 1)
def partial_name(s): if s in self.series: return s matches = [x for x in self.series if s in x] if len(matches) > 1: self.ui.warn(_('patch name "%s" is ambiguous:\n') % s) for m in matches: self.ui.warn(' %s\n' % m) return None if matches: return matches[0] if len(self.series) > 0 and len(self.applied) > 0: if s == 'qtip': return self.series[self.series_end()-1] if s == 'qbase': return self.series[0] return None
8b8bd89e1ae17638b0d3e852258b8807f49a2222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/8b8bd89e1ae17638b0d3e852258b8807f49a2222/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4702, 67, 529, 12, 87, 4672, 309, 272, 316, 365, 18, 10222, 30, 327, 272, 1885, 273, 306, 92, 364, 619, 316, 365, 18, 10222, 309, 272, 316, 619, 65, 309, 562, 12, 8436, 13, 405, 404, 30, 365, 18, 4881, 18, 8935, 24899, 2668, 2272, 508, 2213, 87, 6, 353, 20399, 5581, 82, 6134, 738, 272, 13, 364, 312, 316, 1885, 30, 365, 18, 4881, 18, 8935, 2668, 225, 738, 87, 64, 82, 11, 738, 312, 13, 327, 599, 309, 1885, 30, 327, 1885, 63, 20, 65, 309, 562, 12, 2890, 18, 10222, 13, 405, 374, 471, 562, 12, 2890, 18, 438, 3110, 13, 405, 374, 30, 309, 272, 422, 296, 85, 14587, 4278, 327, 365, 18, 10222, 63, 2890, 18, 10222, 67, 409, 1435, 17, 21, 65, 309, 272, 422, 296, 85, 1969, 4278, 327, 365, 18, 10222, 63, 20, 65, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4702, 67, 529, 12, 87, 4672, 309, 272, 316, 365, 18, 10222, 30, 327, 272, 1885, 273, 306, 92, 364, 619, 316, 365, 18, 10222, 309, 272, 316, 619, 65, 309, 562, 12, 8436, 13, 405, 404, 30, 365, 18, 4881, 18, 8935, 24899, 2668, 2272, 508, 2213, 87, 6, 353, 20399, 5581, 82, 6134, 738, 272, 13, 364, 312, 316, 1885, 30, 365, 18, 4881, 18, 8935, 2668, 225, 738, 87, 64, 82, 11, 738, 312, 13, 327, 599, 309, 1885, 30, 327, 1885, 63, 20, 65, 309, 562, 12, 2890, 18, 10222, 13, 405, 374, 471, 562, 12, 2890, 18, 438, 3110, 13, 405, 374, 30, 309, 272, 422, 296, 85, 14587, 4278, 327, 365, 18, 2 ]
def fl_get_glcanvas_xvisualinfo(ob): """ fl_get_glcanvas_xvisualinfo(ob) -> xvisualinfo class """ retval = _fl_get_glcanvas_xvisualinfo(ob)
def fl_get_glcanvas_xvisualinfo(pObject): """ fl_get_glcanvas_xvisualinfo(pObject) -> xvisualinfo class """ retval = _fl_get_glcanvas_xvisualinfo(pObject)
def fl_get_glcanvas_xvisualinfo(ob): """ fl_get_glcanvas_xvisualinfo(ob) -> xvisualinfo class """ retval = _fl_get_glcanvas_xvisualinfo(ob) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 7043, 15424, 67, 92, 26671, 1376, 12, 84, 921, 4672, 3536, 1183, 67, 588, 67, 7043, 15424, 67, 92, 26671, 1376, 12, 84, 921, 13, 317, 619, 26671, 1376, 667, 3536, 225, 5221, 273, 389, 2242, 67, 588, 67, 7043, 15424, 67, 92, 26671, 1376, 12, 84, 921, 13, 327,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 7043, 15424, 67, 92, 26671, 1376, 12, 84, 921, 4672, 3536, 1183, 67, 588, 67, 7043, 15424, 67, 92, 26671, 1376, 12, 84, 921, 13, 317, 619, 26671, 1376, 667, 3536, 225, 5221, 273, 389, 2242, 67, 588, 67, 7043, 15424, 67, 92, 26671, 1376, 12, 84, 921, 13, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result['weight'] = qty * res['weight']
result['th_weight'] = qty * res['weight']
def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True): if partner_id: lang=self.pool.get('res.partner').read(cr, uid, [partner_id])[0]['lang'] context = {'lang':lang} if not product: return {'value': {'price_unit': 0.0, 'notes':'', 'weight' : 0, 'product_uos_qty': qty}, 'domain':{'product_uom':[]}} if not pricelist: raise osv.except_osv('No Pricelist !', 'You have to select a pricelist in the sale form !\nPlease set one before choosing a product.') price = self.pool.get('product.pricelist').price_get(cr,uid,[pricelist], product, qty or 1.0, partner_id, {'uom': uom})[pricelist] if price is False: raise osv.except_osv('No valid pricelist line found !', "Couldn't find a pricelist line matching this product and quantity.\nYou have to change either the product, the quantity or the pricelist.") res = self.pool.get('product.product').read(cr, uid, [product], context=context)[0]
6a01b2a5073dde41d3a0932a113c38a273d96f73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/6a01b2a5073dde41d3a0932a113c38a273d96f73/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, 538, 33, 8381, 16, 508, 2218, 2187, 19170, 67, 350, 33, 8381, 16, 3303, 33, 8381, 16, 1089, 67, 8066, 33, 5510, 4672, 309, 19170, 67, 350, 30, 3303, 33, 2890, 18, 6011, 18, 588, 2668, 455, 18, 31993, 16063, 896, 12, 3353, 16, 4555, 16, 306, 31993, 67, 350, 5717, 63, 20, 23962, 4936, 3546, 819, 273, 13666, 4936, 4278, 4936, 97, 309, 486, 3017, 30, 327, 13666, 1132, 4278, 13666, 8694, 67, 4873, 4278, 374, 18, 20, 16, 296, 12903, 11, 2497, 2187, 296, 4865, 11, 294, 374, 16, 296, 5896, 67, 89, 538, 67, 85, 4098, 4278, 26667, 5779, 296, 4308, 4278, 27828, 5896, 67, 89, 362, 4278, 8526, 9090, 309, 486, 846, 335, 5449, 30, 1002, 1140, 90, 18, 14137, 67, 538, 90, 2668, 2279, 453, 1512, 5449, 401, 2187, 296, 6225, 1240, 358, 2027, 279, 846, 335, 5449, 316, 326, 272, 5349, 646, 401, 64, 82, 8496, 444, 1245, 1865, 24784, 310, 279, 3017, 1093, 13, 6205, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 683, 335, 5449, 16063, 8694, 67, 588, 12, 3353, 16, 1911, 16, 63, 683, 335, 5449, 6487, 3017, 16, 26667, 578, 404, 18, 20, 16, 19170, 67, 350, 16, 13666, 89, 362, 4278, 582, 362, 6792, 63, 683, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, 538, 33, 8381, 16, 508, 2218, 2187, 19170, 67, 350, 33, 8381, 16, 3303, 33, 8381, 16, 1089, 67, 8066, 33, 5510, 4672, 309, 19170, 67, 350, 30, 3303, 33, 2890, 18, 6011, 18, 588, 2668, 455, 18, 31993, 16063, 896, 12, 3353, 16, 4555, 16, 306, 31993, 67, 350, 5717, 63, 20, 23962, 4936, 3546, 819, 273, 13666, 4936, 4278, 4936, 97, 309, 486, 3017, 30, 327, 13666, 1132, 4278, 13666, 8694, 67, 4873, 4278, 374, 18, 20, 16, 296, 2 ]
title = None
if isinstance(item, Occurrence): title = eim.Inherit else: title = None
def export_item(self, item):
c6dca6734bb922b628af25795975d55b3e4461fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/c6dca6734bb922b628af25795975d55b3e4461fd/translator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1726, 12, 2890, 16, 761, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
[(0 : 1 : 0), (4 : 1 : 1), (1 : 0 : 1), (4 : 4 : 1)]
[(0 : 1 : 0), (1 : 0 : 1), (4 : 1 : 1), (4 : 4 : 1)]
def points(self): r""" All the points on this elliptic curve. The list of points is cached so subsequent calls are free.
5b3e13bc1da72ed371c878092222e7887554bcec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5b3e13bc1da72ed371c878092222e7887554bcec/ell_finite_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3143, 12, 2890, 4672, 436, 8395, 4826, 326, 3143, 603, 333, 415, 549, 21507, 8882, 18, 225, 1021, 666, 434, 3143, 353, 3472, 1427, 10815, 4097, 854, 4843, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3143, 12, 2890, 4672, 436, 8395, 4826, 326, 3143, 603, 333, 415, 549, 21507, 8882, 18, 225, 1021, 666, 434, 3143, 353, 3472, 1427, 10815, 4097, 854, 4843, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sql = "update OLAC_ARCHIVE set LastHarvested=%s where Archive_ID=%s" cur.execute(sql, (now, dbi.archiveId())) sql = "delete from INTEGRITY_CHECK where Object_ID=%s and Problem_Code='HFC'" cur.execute(sql, dbi.archiveId())
mark_success(con, dbi.archiveId())
def harvest(url, con, full=False, stream_filter=None, static=False): try: dbi = DBI(con) if static: h = SrHarvester(url, dbi, full, stream_filter) else: h = Harvester(url, dbi, full, stream_filter) now = datetime.datetime.now() cur = con.cursor() if h.harvest(): h.log("harvest successful") sql = "update OLAC_ARCHIVE set LastHarvested=%s where Archive_ID=%s" cur.execute(sql, (now, dbi.archiveId())) sql = "delete from INTEGRITY_CHECK where Object_ID=%s and Problem_Code='HFC'" cur.execute(sql, dbi.archiveId()) if static: # implicit deletion sql = "select OaiIdentifier from ARCHIVED_ITEM where Archive_ID=%s" cur.execute(sql, dbi.archiveId()) for oaiid, in cur.fetchall(): if oaiid not in h.recordOaiIds: sql = """ delete me.* from ARCHIVED_ITEM ai, METADATA_ELEM me where ai.OaiIdentifier=%s and ai.Item_ID=me.Item_ID """ cur.execute(sql, oaiid) else: h.log("harvest failed") # dbi can provide archive id only when it has successfully # processed identify response archiveid = dbi.archiveId() if archiveid is None: cur.execute("select Archive_ID from OLAC_ARCHIVE where BaseURL=%s", url) if cur.rowcount > 0: archiveid = cur.fetchone()[0] if archiveid: set_hfc(con, archiveid) cur.close() dbi.commit() rc, nrc, urc, drc, irc = dbi.counts() h.log("processed %d records (this may include retries)" % rc) h.log("new records: %d" % nrc) h.log("updated records: %d" % urc) h.log("deleted records: %d" % drc) h.log("ignored records: %d" % irc) except: msg = traceback.format_exc() msg = "\nUnexpected error in the harvester code:\n\n%s\n\n" % msg try: h.log(msg) except: print msg
750538a1662924126d26f70b17b8f65bd59b18ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8937/750538a1662924126d26f70b17b8f65bd59b18ef/harvester.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17895, 26923, 12, 718, 16, 356, 16, 1983, 33, 8381, 16, 1407, 67, 2188, 33, 7036, 16, 760, 33, 8381, 4672, 775, 30, 1319, 77, 273, 2383, 45, 12, 591, 13, 309, 760, 30, 366, 273, 348, 86, 44, 297, 3324, 387, 12, 718, 16, 1319, 77, 16, 1983, 16, 1407, 67, 2188, 13, 469, 30, 366, 273, 670, 297, 3324, 387, 12, 718, 16, 1319, 77, 16, 1983, 16, 1407, 67, 2188, 13, 2037, 273, 3314, 18, 6585, 18, 3338, 1435, 662, 273, 356, 18, 9216, 1435, 309, 366, 18, 30250, 26923, 13332, 366, 18, 1330, 2932, 30250, 26923, 6873, 7923, 2267, 67, 4768, 12, 591, 16, 1319, 77, 18, 10686, 548, 10756, 309, 760, 30, 468, 10592, 10899, 1847, 273, 315, 4025, 531, 10658, 3004, 628, 6052, 1792, 20764, 67, 12674, 1625, 13124, 67, 734, 5095, 87, 6, 662, 18, 8837, 12, 4669, 16, 1319, 77, 18, 10686, 548, 10756, 364, 320, 10658, 350, 16, 316, 662, 18, 5754, 454, 13332, 309, 320, 10658, 350, 486, 316, 366, 18, 3366, 51, 10658, 2673, 30, 1847, 273, 3536, 1430, 1791, 4509, 628, 6052, 1792, 20764, 67, 12674, 14679, 16, 24175, 67, 41, 26817, 1791, 1625, 14679, 18, 51, 10658, 3004, 5095, 87, 471, 14679, 18, 1180, 67, 734, 33, 3501, 18, 1180, 67, 734, 3536, 662, 18, 8837, 12, 4669, 16, 320, 10658, 350, 13, 469, 30, 366, 18, 1330, 2932, 30250, 26923, 2535, 7923, 468, 1319, 77, 848, 5615, 5052, 612, 1338, 1347, 518, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17895, 26923, 12, 718, 16, 356, 16, 1983, 33, 8381, 16, 1407, 67, 2188, 33, 7036, 16, 760, 33, 8381, 4672, 775, 30, 1319, 77, 273, 2383, 45, 12, 591, 13, 309, 760, 30, 366, 273, 348, 86, 44, 297, 3324, 387, 12, 718, 16, 1319, 77, 16, 1983, 16, 1407, 67, 2188, 13, 469, 30, 366, 273, 670, 297, 3324, 387, 12, 718, 16, 1319, 77, 16, 1983, 16, 1407, 67, 2188, 13, 2037, 273, 3314, 18, 6585, 18, 3338, 1435, 662, 273, 356, 18, 9216, 1435, 309, 366, 18, 30250, 26923, 13332, 366, 18, 1330, 2932, 30250, 26923, 6873, 7923, 2267, 67, 4768, 12, 591, 16, 1319, 77, 18, 10686, 548, 10756, 309, 760, 30, 468, 2 ]
result = self.sendStoredJobStatusInfo()
result = self.sendStoredStatusInfo()
def setApplicationStatus(self, appStatus, sendFlag=True): """ Send application status information to the JobState service for jobID """
984ec44890914e33ac430c1f4fb94fb85a231931 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/984ec44890914e33ac430c1f4fb94fb85a231931/JobReport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3208, 1482, 12, 2890, 16, 595, 1482, 16, 1366, 4678, 33, 5510, 4672, 3536, 2479, 2521, 1267, 1779, 358, 326, 3956, 1119, 1156, 364, 28913, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3208, 1482, 12, 2890, 16, 595, 1482, 16, 1366, 4678, 33, 5510, 4672, 3536, 2479, 2521, 1267, 1779, 358, 326, 3956, 1119, 1156, 364, 28913, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
title = "{File:%d}{Duration:12}{Bitrate:15}{VideoCodes:13}{VideoSize:11}{Pixel:14}{FPS:10}{AudioCodec:12}{SampleRate:13}{Channels:8}" % (len_filename+2) print (title.format( File="File", Duration="Duration[s]", Bitrate="Bitrate [b/s]", VideoCodes="VideoCodec", VideoSize="VideoSize", Pixel="Pixel format", FPS="FPS", AudioCodec="AudioCodec", SampleRate="Sample rate", Channels="Channels")) print ""
vFile = "File".ljust(len_filename+2) vDuration = "Duration[s]".ljust(12) vBitrate = "Bitrate [b/s]".ljust(15) vVideoCodec = "VideoCodec".ljust(13) vVideoSize = "VideoSize".ljust(11) vPixel = "Pixel format".ljust(14) vFPS = "FPS".ljust(10) vAudioCodec = "AudioCodec".ljust(12) vSampleRate = "Sample rate".ljust(13) vChannels = "Channels".ljust(8) title = vFile + vDuration + vVideoCodec + vVideoSize + vPixel + vFPS + vAudioCodec + vSampleRate + vChannels print title
def showInfo(node): global len_filename node.play() info = "{File:%d}{Duration:12}{Bitrate:15}{VideoCodes:13}{VideoSize:11}{Pixel:14}{FPS:10}{AudioCodec:12}{SampleRate:13}{Channels:8}" % (len_filename+2) if node.hasAudio(): print (info.format( File=str(os.path.basename(node.href)), Duration=str(node.getDuration()/1000.), Bitrate=str(node.getBitrate()), VideoCodes=node.getVideoCodec(), VideoSize=str(node.getMediaSize()), Pixel=node.getStreamPixelFormat(), FPS='%2.2f'%node.fps, AudioCodec=node.getAudioCodec(), SampleRate=str(node.getAudioSampleRate()), Channels=str(node.getNumAudioChannels()))) else: print (info.format( File=str(os.path.basename(node.href)), Duration=str(node.getDuration()/1000.), Bitrate=str(node.getBitrate()), VideoCodes=node.getVideoCodec(), VideoSize=str(node.getMediaSize()), Pixel=node.getStreamPixelFormat(), FPS='%2.2f'%node.fps, AudioCodec=' ', SampleRate=' ', Channels=' '))
0b35c5758623bfb26399df7e17d60d9e9dc45ef5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/0b35c5758623bfb26399df7e17d60d9e9dc45ef5/avg_videoinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 966, 12, 2159, 4672, 2552, 562, 67, 3459, 756, 18, 1601, 1435, 225, 1123, 273, 4144, 812, 5319, 72, 8637, 5326, 30, 2138, 8637, 5775, 5141, 30, 3600, 8637, 10083, 6295, 30, 3437, 8637, 10083, 1225, 30, 2499, 8637, 9037, 30, 3461, 8637, 42, 5857, 30, 2163, 8637, 12719, 11008, 30, 2138, 8637, 8504, 4727, 30, 3437, 8637, 10585, 30, 28, 1532, 738, 261, 1897, 67, 3459, 15, 22, 13, 309, 756, 18, 5332, 12719, 13332, 1172, 261, 1376, 18, 2139, 12, 1387, 33, 701, 12, 538, 18, 803, 18, 13909, 12, 2159, 18, 7547, 13, 3631, 4822, 33, 701, 12, 2159, 18, 588, 5326, 1435, 19, 18088, 18, 3631, 6539, 5141, 33, 701, 12, 2159, 18, 588, 5775, 5141, 1435, 3631, 14030, 6295, 33, 2159, 18, 588, 10083, 11008, 9334, 14030, 1225, 33, 701, 12, 2159, 18, 588, 5419, 1225, 1435, 3631, 26070, 33, 2159, 18, 588, 1228, 9037, 1630, 9334, 478, 5857, 28713, 22, 18, 22, 74, 11, 9, 2159, 18, 74, 1121, 16, 15045, 11008, 33, 2159, 18, 588, 12719, 11008, 9334, 11474, 4727, 33, 701, 12, 2159, 18, 588, 12719, 8504, 4727, 1435, 3631, 25263, 33, 701, 12, 2159, 18, 588, 2578, 12719, 10585, 1435, 20349, 469, 30, 1172, 261, 1376, 18, 2139, 12, 1387, 33, 701, 12, 538, 18, 803, 18, 13909, 12, 2159, 18, 7547, 13, 3631, 4822, 33, 701, 12, 2159, 18, 588, 5326, 1435, 19, 18088, 18, 3631, 6539, 5141, 33, 701, 12, 2159, 18, 588, 5775, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 966, 12, 2159, 4672, 2552, 562, 67, 3459, 756, 18, 1601, 1435, 225, 1123, 273, 4144, 812, 5319, 72, 8637, 5326, 30, 2138, 8637, 5775, 5141, 30, 3600, 8637, 10083, 6295, 30, 3437, 8637, 10083, 1225, 30, 2499, 8637, 9037, 30, 3461, 8637, 42, 5857, 30, 2163, 8637, 12719, 11008, 30, 2138, 8637, 8504, 4727, 30, 3437, 8637, 10585, 30, 28, 1532, 738, 261, 1897, 67, 3459, 15, 22, 13, 309, 756, 18, 5332, 12719, 13332, 1172, 261, 1376, 18, 2139, 12, 1387, 33, 701, 12, 538, 18, 803, 18, 13909, 12, 2159, 18, 7547, 13, 3631, 4822, 33, 701, 12, 2159, 18, 588, 5326, 1435, 19, 18088, 18, 3631, 6539, 5141, 33, 701, 12, 2159, 18, 2 ]
import traceback
def reader(lnum=[lnum]): highlight[lnum[0]] = 1 try: return linecache.getline(file, lnum[0]) finally: lnum[0] += 1
c572d2b8c8b81f1123a6458b6dac838a9268cf42 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c572d2b8c8b81f1123a6458b6dac838a9268cf42/cgitb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2949, 12, 80, 2107, 22850, 80, 2107, 65, 4672, 8839, 63, 80, 2107, 63, 20, 13563, 273, 404, 775, 30, 327, 4739, 557, 807, 18, 588, 1369, 12, 768, 16, 328, 2107, 63, 20, 5717, 3095, 30, 328, 2107, 63, 20, 65,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2949, 12, 80, 2107, 22850, 80, 2107, 65, 4672, 8839, 63, 80, 2107, 63, 20, 13563, 273, 404, 775, 30, 327, 4739, 557, 807, 18, 588, 1369, 12, 768, 16, 328, 2107, 63, 20, 5717, 3095, 30, 328, 2107, 63, 20, 65, 1011, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise SMTPSenderRefused('%s: %s' % (from_addr, resp))
raise SMTPSenderRefused(code, resp, from_addr)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2492, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def update_status(self, queue_name, status, patch=None):
def update_status(self, queue_name, status, patch=None, results_file=None):
def update_status(self, queue_name, status, patch=None): # During unit testing, statusbot_host is None if not self.statusbot_host: return
d3f16e09167dc7ccddb701c3f6b4fae5bd8dec02 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/d3f16e09167dc7ccddb701c3f6b4fae5bd8dec02/statusbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2327, 12, 2890, 16, 2389, 67, 529, 16, 1267, 16, 4729, 33, 7036, 16, 1686, 67, 768, 33, 7036, 4672, 468, 463, 4017, 2836, 7769, 16, 1267, 4819, 67, 2564, 353, 599, 309, 486, 365, 18, 2327, 4819, 67, 2564, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2327, 12, 2890, 16, 2389, 67, 529, 16, 1267, 16, 4729, 33, 7036, 16, 1686, 67, 768, 33, 7036, 4672, 468, 463, 4017, 2836, 7769, 16, 1267, 4819, 67, 2564, 353, 599, 309, 486, 365, 18, 2327, 4819, 67, 2564, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Calls listFolderContents in protected only by ACI so that
Calls listFolderContents in protected only by ACI so that
def folderlistingFolderContents(self, spec=None, contentFilter=None, suppressHiddenFiles=0 ): """ Calls listFolderContents in protected only by ACI so that folder_listing can work without the List folder contents permission, as in CMFDefault """ return self.listFolderContents(spec,contentFilter,suppressHiddenFiles)
16b617800e575a37b82739b1f1fe95edd774f1d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/16b617800e575a37b82739b1f1fe95edd774f1d7/PloneLocalFolderNG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3009, 21228, 3899, 6323, 12, 2890, 16, 857, 33, 7036, 16, 913, 1586, 33, 7036, 16, 12257, 9345, 2697, 33, 20, 262, 30, 3536, 23665, 666, 3899, 6323, 316, 4750, 1338, 635, 432, 7266, 1427, 716, 3009, 67, 21228, 848, 1440, 2887, 326, 987, 3009, 2939, 4132, 16, 487, 316, 385, 13542, 1868, 3536, 327, 365, 18, 1098, 3899, 6323, 12, 2793, 16, 1745, 1586, 16, 10840, 9345, 2697, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 21228, 848, 1440, 2887, 326, 987, 3009, 2939, 4132, 16, 487, 316, 385, 13542, 1868, 3536, 327, 365, 18, 1098, 3899, 6323, 12, 2793, 16, 1745, 1586, 16, 10840, 9345, 2697, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if platform.machine() == 'i386': if sys.maxint <= 2147483647: host_factory = Darwin_i386 else: host_factory = Darwin_x86_64 else: host_factory = Darwin
assert platform.machine() in ('i386', 'x86_64') if sys.maxint <= 2147483647: host_factory = Darwin_i386 else: host_factory = Darwin_x86_64
def check___thread(self): return True
c6a703f3a63d60952d754f9e2a0df3c87353acec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/c6a703f3a63d60952d754f9e2a0df3c87353acec/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 31268, 5930, 12, 2890, 4672, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 31268, 5930, 12, 2890, 4672, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_fl_set_object_callback = cfuncproto( load_so_libforms(), "fl_set_object_callback", \ FL_CALLBACKPTR, [cty.POINTER(FL_OBJECT), FL_CALLBACKPTR, cty.c_long], \ """FL_CALLBACKPTR fl_set_object_callback(FL_OBJECT * obj, \ FL_CALLBACKPTR callback, long int argument) """)
def fl_set_object_posthandler(pObject, py_post): """fl_set_object_posthandler(pObject, py_post) -> handler_pointer """ c_post = FL_HANDLEPTR(py_post) keep_cfunc_refs(c_post) keep_elem_refs(pObject) retval = _fl_set_object_posthandler(pObject, c_post) return retval
b829f09cae1b90a96369148568351f4a143ac407 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/b829f09cae1b90a96369148568351f4a143ac407/library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1612, 67, 2767, 4176, 12, 84, 921, 16, 2395, 67, 2767, 4672, 3536, 2242, 67, 542, 67, 1612, 67, 2767, 4176, 12, 84, 921, 16, 2395, 67, 2767, 13, 317, 1838, 67, 10437, 3536, 225, 276, 67, 2767, 273, 31358, 67, 23056, 1856, 54, 12, 2074, 67, 2767, 13, 3455, 67, 71, 644, 67, 9316, 12, 71, 67, 2767, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1612, 67, 2767, 4176, 12, 84, 921, 16, 2395, 67, 2767, 4672, 3536, 2242, 67, 542, 67, 1612, 67, 2767, 4176, 12, 84, 921, 16, 2395, 67, 2767, 13, 317, 1838, 67, 10437, 3536, 225, 276, 67, 2767, 273, 31358, 67, 23056, 1856, 54, 12, 2074, 67, 2767, 13, 3455, 67, 71, 644, 67, 9316, 12, 71, 67, 2767, 13, 3455, 67, 10037, 67, 9316, 12, 84, 921, 13, 5221, 273, 389, 2242, 67, 542, 67, 1612, 67, 2767, 4176, 12, 84, 921, 16, 276, 67, 2767, 13, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
t_start = startOfInterval(t, t_length) print timestamp_to_string(t), t_length, timestamp_to_string(t_start) assert(time.localtime(t_start)[0:6] == (2009, 3, 4, 0, 55, 0)) t = time.mktime((2009, 3, 4, 1, 57, 17, 0, 0, 0))
t_test = time.mktime((2009, 3, 4, 1, 0, 0, 0, 0, 0)) t_ans = time.mktime((2009, 3, 4, 0, 55, 0, 0, 0, 0)) t_start = startOfInterval(t_test, t_length) print timestamp_to_string(t_test), t_length, timestamp_to_string(t_start) assert(t_start == t_ans)
def _get_object(module_class, *args, **kwargs): """Given a path to a class, instantiates an instance of the class with the given args and returns it.""" # Split the path into its parts parts = module_class.split('.') # Strip off the classname: module = '.'.join(parts[:-1]) # Import the top level module mod = __import__(module) # Then recursively work down from the top level module to the class name: for part in parts[1:]: mod = getattr(mod, part) # Instance 'mod' will now be a class. Instantiate an instance and return it: obj = mod(*args, **kwargs) return obj
e7f837b0d6bf15754108508ecefa2a293f5150e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6433/e7f837b0d6bf15754108508ecefa2a293f5150e1/weeutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1612, 12, 2978, 67, 1106, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 6083, 279, 589, 358, 279, 667, 16, 5934, 16020, 392, 791, 434, 326, 667, 598, 326, 864, 833, 471, 1135, 518, 12123, 225, 468, 5385, 326, 589, 1368, 2097, 2140, 2140, 273, 1605, 67, 1106, 18, 4939, 2668, 1093, 13, 468, 15589, 3397, 326, 7479, 30, 1605, 273, 2611, 18, 5701, 12, 6019, 10531, 17, 21, 5717, 468, 6164, 326, 1760, 1801, 1605, 681, 273, 1001, 5666, 972, 12, 2978, 13, 468, 9697, 8536, 1440, 2588, 628, 326, 1760, 1801, 1605, 358, 326, 667, 508, 30, 364, 1087, 316, 2140, 63, 21, 30, 14542, 681, 273, 3869, 12, 1711, 16, 1087, 13, 468, 5180, 296, 1711, 11, 903, 2037, 506, 279, 667, 18, 26492, 392, 791, 471, 327, 518, 30, 1081, 273, 681, 30857, 1968, 16, 2826, 4333, 13, 327, 1081, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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5385, 326, 589, 1368, 2097, 2140, 2140, 273, 1605, 67, 1106, 18, 4939, 2668, 1093, 13, 468, 15589, 3397, 326, 7479, 30, 1605, 273, 2611, 18, 5701, 12, 6019, 10531, 17, 21, 5717, 468, 6164, 326, 1760, 1801, 1605, 681, 273, 1001, 5666, 972, 12, 2978, 13, 468, 9697, 8536, 1440, 2588, 628, 326, 1760, 1801, 1605, 358, 326, 667, 508, 30, 364, 1087, 316, 2140, 63, 21, 30, 14542, 681, 273, 3869, 12, 1711, 16, 1087, 13, 2 ]
'''
"""
def mousemove(self, window_name, object_name): ''' Mouse move on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy @type object_name: string
2840728a35706bfd7cd3e236c75533448a30fc1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/2840728a35706bfd7cd3e236c75533448a30fc1d/mouse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 8501, 12, 2890, 16, 2742, 67, 529, 16, 733, 67, 529, 4672, 3536, 17013, 3635, 603, 392, 733, 18, 225, 632, 891, 2742, 67, 529, 30, 6076, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 632, 723, 2742, 67, 529, 30, 533, 632, 891, 733, 67, 529, 30, 1033, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 2965, 3824, 3904, 481, 991, 93, 632, 723, 733, 67, 529, 30, 533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 8501, 12, 2890, 16, 2742, 67, 529, 16, 733, 67, 529, 4672, 3536, 17013, 3635, 603, 392, 733, 18, 225, 632, 891, 2742, 67, 529, 30, 6076, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 632, 723, 2742, 67, 529, 30, 533, 632, 891, 733, 67, 529, 30, 1033, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 2965, 3824, 3904, 481, 991, 93, 632, 723, 733, 67, 529, 30, 533, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""%(cls, r, id, id, id, id, id, t)
"""%(cls, r, id, id, id, id, t)
def html_in(self, do_print=False): id = self.__id t = self.__in.rstrip()
ed42b69831306105fe28f565959b22509255a46b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/ed42b69831306105fe28f565959b22509255a46b/cell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 267, 12, 2890, 16, 741, 67, 1188, 33, 8381, 4672, 612, 273, 365, 16186, 350, 268, 273, 365, 16186, 267, 18, 86, 6406, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 267, 12, 2890, 16, 741, 67, 1188, 33, 8381, 4672, 612, 273, 365, 16186, 350, 268, 273, 365, 16186, 267, 18, 86, 6406, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
item="radar_linux_SuSe"
item="Hawkeye_ZX-86"
def getRandomRadar (): myint=random.randrange(0,3) item="radar_free_bsd" if (myint<=0): item="radar_windows_2k" elif (myint==1): item="radar_linux_SuSe" return item
79b55d0dbd84cca97d22a389ebb0a1b239459682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/79b55d0dbd84cca97d22a389ebb0a1b239459682/ship_upgrades.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20581, 6621, 297, 1832, 30, 3399, 474, 33, 9188, 18, 7884, 3676, 12, 20, 16, 23, 13, 761, 1546, 6012, 297, 67, 9156, 67, 2038, 72, 6, 309, 261, 4811, 474, 32, 33, 20, 4672, 761, 1546, 6012, 297, 67, 13226, 67, 22, 79, 6, 1327, 261, 4811, 474, 631, 21, 4672, 761, 1546, 44, 2219, 856, 73, 67, 62, 60, 17, 5292, 6, 327, 761, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20581, 6621, 297, 1832, 30, 3399, 474, 33, 9188, 18, 7884, 3676, 12, 20, 16, 23, 13, 761, 1546, 6012, 297, 67, 9156, 67, 2038, 72, 6, 309, 261, 4811, 474, 32, 33, 20, 4672, 761, 1546, 6012, 297, 67, 13226, 67, 22, 79, 6, 1327, 261, 4811, 474, 631, 21, 4672, 761, 1546, 44, 2219, 856, 73, 67, 62, 60, 17, 5292, 6, 327, 761, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
str = 'ISA&00& &00& &ZZ&ZZ000 &ZZ&ZZ001 &030828&1128&U&00401&000010121&0&T&!+\n' str += 'GS&HC&ZZ000&ZZ001&20030828&1128&17&X&004010X098+\n' str += 'ST&837&11280001+\n' str += 'TST&AA!1!1&BB!5+\n' str += 'SE&3&11280001+\n' str += 'GE&1&17+\n' str += 'IEA&1&000010121+\n' fd = tempfile.NamedTemporaryFile() fd.write(str)
str1 = 'ISA&00& &00& &ZZ&ZZ000 &ZZ&ZZ001 &030828&1128&U&00401&000010121&0&T&!+\n' str1 += 'GS&HC&ZZ000&ZZ001&20030828&1128&17&X&004010X098+\n' str1 += 'ST&837&11280001+\n' str1 += 'TST&AA!1!1&BB!5+\n' str1 += 'SE&3&11280001+\n' str1 += 'GE&1&17+\n' str1 += 'IEA&1&000010121+\n' fd = tempfile.NamedTemporaryFile() fd.write(str1)
def test_arbitrary_delimiters(self): str = 'ISA&00& &00& &ZZ&ZZ000 &ZZ&ZZ001 &030828&1128&U&00401&000010121&0&T&!+\n' str += 'GS&HC&ZZ000&ZZ001&20030828&1128&17&X&004010X098+\n' str += 'ST&837&11280001+\n' str += 'TST&AA!1!1&BB!5+\n' str += 'SE&3&11280001+\n' str += 'GE&1&17+\n' str += 'IEA&1&000010121+\n' fd = tempfile.NamedTemporaryFile() fd.write(str) fd.seek(0) errors = [] src = pyx12.x12file.X12file(fd.name) for seg in src: errors.extend(src.pop_errors()) err_cde = None if len(errors) > 0: err_cde = errors[0][1] self.assertEqual(err_cde, None) self.assertEqual(src.subele_term, '!') self.assertEqual(src.ele_term, '&') self.assertEqual(src.seg_term, '+')
1433c380fc3bf2e7c5ac05b385e1b69e19134b72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11528/1433c380fc3bf2e7c5ac05b385e1b69e19134b72/x12file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 297, 3682, 3345, 67, 3771, 1038, 414, 12, 2890, 4672, 609, 21, 273, 296, 5127, 37, 10, 713, 10, 1850, 473, 713, 10, 1850, 473, 27096, 10, 27096, 3784, 1850, 473, 27096, 10, 27096, 11664, 1850, 473, 4630, 6840, 6030, 10, 21, 10392, 10, 57, 10, 26565, 1611, 10, 2787, 15168, 5340, 10, 20, 10, 56, 10, 5, 16971, 82, 11, 609, 21, 1011, 296, 16113, 10, 23408, 10, 27096, 3784, 10, 27096, 11664, 10, 6976, 5082, 28, 6030, 10, 21, 10392, 10, 4033, 10, 60, 10, 26565, 23254, 60, 5908, 28, 16971, 82, 11, 609, 21, 1011, 296, 882, 10, 28, 6418, 10, 21, 10392, 13304, 16971, 82, 11, 609, 21, 1011, 296, 56, 882, 10, 5284, 5, 21, 5, 21, 10, 9676, 5, 25, 16971, 82, 11, 609, 21, 1011, 296, 1090, 10, 23, 10, 21, 10392, 13304, 16971, 82, 11, 609, 21, 1011, 296, 7113, 10, 21, 10, 4033, 16971, 82, 11, 609, 21, 1011, 296, 8732, 37, 10, 21, 10, 2787, 15168, 5340, 16971, 82, 11, 5194, 273, 13275, 18, 7604, 23808, 1435, 5194, 18, 2626, 12, 701, 21, 13, 5194, 18, 16508, 12, 20, 13, 1334, 273, 5378, 1705, 273, 2395, 92, 2138, 18, 92, 2138, 768, 18, 60, 2138, 768, 12, 8313, 18, 529, 13, 364, 2291, 316, 1705, 30, 1334, 18, 14313, 12, 4816, 18, 5120, 67, 4324, 10756, 393, 67, 71, 323, 273, 599, 309, 562, 12, 4324, 13, 405, 374, 30, 393, 67, 71, 323, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 297, 3682, 3345, 67, 3771, 1038, 414, 12, 2890, 4672, 609, 21, 273, 296, 5127, 37, 10, 713, 10, 1850, 473, 713, 10, 1850, 473, 27096, 10, 27096, 3784, 1850, 473, 27096, 10, 27096, 11664, 1850, 473, 4630, 6840, 6030, 10, 21, 10392, 10, 57, 10, 26565, 1611, 10, 2787, 15168, 5340, 10, 20, 10, 56, 10, 5, 16971, 82, 11, 609, 21, 1011, 296, 16113, 10, 23408, 10, 27096, 3784, 10, 27096, 11664, 10, 6976, 5082, 28, 6030, 10, 21, 10392, 10, 4033, 10, 60, 10, 26565, 23254, 60, 5908, 28, 16971, 82, 11, 609, 21, 1011, 296, 882, 10, 28, 6418, 10, 21, 10392, 13304, 16971, 82, 11, 609, 21, 1011, 296, 56, 882, 2 ]
return np.array(forces)[self.resort]
if all: return np.array(all_forces) else: return np.array(forces)[self.resort]
def read_forces(self, atoms): file = open('OUTCAR','r') lines = file.readlines() file.close() n=0 for line in lines: if line.rfind('TOTAL-FORCE') > -1: forces=[] for i in range(len(atoms)): forces.append(np.array([float(f) for f in lines[n+2+i].split()[3:6]])) n+=1 return np.array(forces)[self.resort]
ad587d124629dabee9af7c9d2168a44c4c7c1799 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/ad587d124629dabee9af7c9d2168a44c4c7c1799/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1884, 764, 12, 2890, 16, 9006, 4672, 585, 273, 1696, 2668, 5069, 39, 985, 17023, 86, 6134, 2362, 273, 585, 18, 896, 3548, 1435, 585, 18, 4412, 1435, 290, 33, 20, 364, 980, 316, 2362, 30, 309, 980, 18, 86, 4720, 2668, 28624, 17, 27817, 6134, 405, 300, 21, 30, 26376, 33, 8526, 364, 277, 316, 1048, 12, 1897, 12, 14937, 3719, 30, 26376, 18, 6923, 12, 6782, 18, 1126, 3816, 5659, 12, 74, 13, 364, 284, 316, 2362, 63, 82, 15, 22, 15, 77, 8009, 4939, 1435, 63, 23, 30, 26, 13563, 3719, 290, 15, 33, 21, 327, 1130, 18, 1126, 12, 1884, 764, 25146, 2890, 18, 455, 499, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1884, 764, 12, 2890, 16, 9006, 4672, 585, 273, 1696, 2668, 5069, 39, 985, 17023, 86, 6134, 2362, 273, 585, 18, 896, 3548, 1435, 585, 18, 4412, 1435, 290, 33, 20, 364, 980, 316, 2362, 30, 309, 980, 18, 86, 4720, 2668, 28624, 17, 27817, 6134, 405, 300, 21, 30, 26376, 33, 8526, 364, 277, 316, 1048, 12, 1897, 12, 14937, 3719, 30, 26376, 18, 6923, 12, 6782, 18, 1126, 3816, 5659, 12, 74, 13, 364, 284, 316, 2362, 63, 82, 15, 22, 15, 77, 8009, 4939, 1435, 63, 23, 30, 26, 13563, 3719, 290, 15, 33, 21, 327, 1130, 18, 1126, 12, 1884, 764, 25146, 2890, 18, 455, 499, 65, 2, -100, -100, -100, -100, -100 ]
dict = parse_qs(qs, self.keep_blank_values, self.strict_parsing) self.list = [] for key, valuelist in dict.items(): for value in valuelist: self.list.append(MiniFieldStorage(key, value))
self.list = list = [] for key, value in parse_qsl(qs, self.keep_blank_values, self.strict_parsing): list.append(MiniFieldStorage(key, value))
def read_urlencoded(self): """Internal: read data in query string format.""" qs = self.fp.read(self.length) dict = parse_qs(qs, self.keep_blank_values, self.strict_parsing) self.list = [] for key, valuelist in dict.items(): for value in valuelist: self.list.append(MiniFieldStorage(key, value)) self.skip_lines()
4b586b9580d56feba0bd5380153e55fef13be2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4b586b9580d56feba0bd5380153e55fef13be2cf/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 19690, 12, 2890, 4672, 3536, 3061, 30, 855, 501, 316, 843, 533, 740, 12123, 8719, 273, 365, 18, 7944, 18, 896, 12, 2890, 18, 2469, 13, 365, 18, 1098, 273, 666, 273, 5378, 364, 498, 16, 460, 316, 1109, 67, 85, 2069, 12, 12926, 16, 365, 18, 10102, 67, 12111, 67, 2372, 16, 365, 18, 13948, 67, 24979, 4672, 666, 18, 6923, 12, 2930, 77, 974, 3245, 12, 856, 16, 460, 3719, 365, 18, 7457, 67, 3548, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 19690, 12, 2890, 4672, 3536, 3061, 30, 855, 501, 316, 843, 533, 740, 12123, 8719, 273, 365, 18, 7944, 18, 896, 12, 2890, 18, 2469, 13, 365, 18, 1098, 273, 666, 273, 5378, 364, 498, 16, 460, 316, 1109, 67, 85, 2069, 12, 12926, 16, 365, 18, 10102, 67, 12111, 67, 2372, 16, 365, 18, 13948, 67, 24979, 4672, 666, 18, 6923, 12, 2930, 77, 974, 3245, 12, 856, 16, 460, 3719, 365, 18, 7457, 67, 3548, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pass
pass
def mouseReleaseEvent(self, event): """Only used to detect the end of a freehand selection curve. """ buttons, modifiers = event.buttons(), event.modifiers() #print "Button released: ", but if buttons & Qt.LeftButton: if modifiers & Qt.ShiftModifier: pass#self.leftShiftUp(event) elif modifiers & Qt.ControlModifier: pass#self.leftCntlUp(event) else: self.leftUp(event)
7828cbef13f84d50298938f6ae339289db2ec006 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/7828cbef13f84d50298938f6ae339289db2ec006/ThumbView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7391, 1133, 12, 2890, 16, 871, 4672, 3536, 3386, 1399, 358, 5966, 326, 679, 434, 279, 4843, 2349, 4421, 8882, 18, 3536, 9502, 16, 10429, 273, 871, 18, 16016, 9334, 871, 18, 15432, 1435, 225, 468, 1188, 315, 3616, 15976, 30, 3104, 1496, 225, 309, 9502, 473, 7354, 18, 3910, 3616, 30, 309, 10429, 473, 7354, 18, 10544, 9829, 30, 1342, 7, 2890, 18, 4482, 10544, 1211, 12, 2575, 13, 1327, 10429, 473, 7354, 18, 3367, 9829, 30, 1342, 7, 2890, 18, 4482, 11750, 80, 1211, 12, 2575, 13, 469, 30, 365, 18, 4482, 1211, 12, 2575, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 7644, 7391, 1133, 12, 2890, 16, 871, 4672, 3536, 3386, 1399, 358, 5966, 326, 679, 434, 279, 4843, 2349, 4421, 8882, 18, 3536, 9502, 16, 10429, 273, 871, 18, 16016, 9334, 871, 18, 15432, 1435, 225, 468, 1188, 315, 3616, 15976, 30, 3104, 1496, 225, 309, 9502, 473, 7354, 18, 3910, 3616, 30, 309, 10429, 473, 7354, 18, 10544, 9829, 30, 1342, 7, 2890, 18, 4482, 10544, 1211, 12, 2575, 13, 1327, 10429, 473, 7354, 18, 3367, 9829, 30, 1342, 7, 2890, 18, 4482, 11750, 80, 1211, 12, 2575, 13, 469, 30, 365, 18, 4482, 1211, 12, 2575, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" collect variables so that plotters can plot them all at once You can of course put it in other uses Usage: a = dataAggregator( maxRecord=0, recordSize=0) maxRecord: if more data is pushed, the old ones are discarded recordSize: size of record a.push(gen, data, idx=-1) gen: generation number data: one record (will set recordSize if the first time), or idx: if idx!=-1, set data at idx. a.clear() a.range() a.data[i] a.gen a.ready()
""" collect variables so that plotters can plot them all at once You can of course put it in other uses Usage: a = dataAggregator( maxRecord=0, recordSize=0) maxRecord: if more data is pushed, the old ones are discarded recordSize: size of record a.push(gen, data, idx=-1) gen: generation number data: one record (will set recordSize if the first time), or idx: if idx!=-1, set data at idx. a.clear() a.range() a.data[i] a.gen a.ready() Internal data storage: self.gen [ .... ] self.data column1 [ ...... ] column2 [ ...... ] ....... each record is pushed at the end of """ def __init__(self, maxRecord=0, recordSize=0): """ maxRecord: maxRecorddow size. I.e., maximum generations of data to keep """ self.gen = [] self.data = [] self.maxRecord = maxRecord self.recordSize = recordSize
def endl(output=">", outputExpr="", **kwargs): parm = '' for (k,v) in kwargs.items(): parm += ' , ' + str(k) + '=' + str(v) cmd = r'''pyEval( r'"\n"' ''' + ', output="""' + output + \ '""", outputExpr="""' + outputExpr + '"""' + parm + ')' # print cmd return eval(cmd)
221d6e46bb102816794d97211e9ea83f19d74d6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/221d6e46bb102816794d97211e9ea83f19d74d6c/simuUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 80, 12, 2844, 1546, 2984, 16, 876, 4742, 1546, 3113, 2826, 4333, 4672, 19924, 273, 875, 364, 261, 79, 16, 90, 13, 316, 1205, 18, 3319, 13332, 19924, 1011, 296, 269, 296, 397, 609, 12, 79, 13, 397, 5214, 397, 609, 12, 90, 13, 1797, 273, 436, 26418, 2074, 13904, 12, 436, 4970, 64, 82, 5187, 9163, 397, 2265, 876, 1546, 3660, 11, 397, 876, 397, 521, 2119, 6, 3113, 876, 4742, 1546, 3660, 11, 397, 876, 4742, 397, 2119, 3660, 11, 397, 19924, 397, 5777, 468, 1172, 1797, 327, 5302, 12, 4172, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 80, 12, 2844, 1546, 2984, 16, 876, 4742, 1546, 3113, 2826, 4333, 4672, 19924, 273, 875, 364, 261, 79, 16, 90, 13, 316, 1205, 18, 3319, 13332, 19924, 1011, 296, 269, 296, 397, 609, 12, 79, 13, 397, 5214, 397, 609, 12, 90, 13, 1797, 273, 436, 26418, 2074, 13904, 12, 436, 4970, 64, 82, 5187, 9163, 397, 2265, 876, 1546, 3660, 11, 397, 876, 397, 521, 2119, 6, 3113, 876, 4742, 1546, 3660, 11, 397, 876, 4742, 397, 2119, 3660, 11, 397, 19924, 397, 5777, 468, 1172, 1797, 327, 5302, 12, 4172, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"], outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Icn", libraries=["IconServicesLib"], libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
def genpluginproject(architecture, module, project=None, projectdir=None, sources=[], sourcedirs=[], libraries=[], extradirs=[], extraexportsymbols=[], outputdir=":::Lib:lib-dynload", libraryflags=None, stdlibraryflags=None, prefixname=None): if architecture == "all": # For the time being we generate two project files. Not as nice as # a single multitarget project, but easier to implement for now. genpluginproject("ppc", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols, outputdir, libraryflags, stdlibraryflags, prefixname) genpluginproject("carbon", module, project, projectdir, sources, sourcedirs, libraries, extradirs, extraexportsymbols, outputdir, libraryflags, stdlibraryflags, prefixname) return templatename = "template-%s" % architecture targetname = "%s.%s" % (module, architecture) dllname = "%s.%s.slb" % (module, architecture) if not project: if architecture != "ppc": project = "%s.%s.mcp"%(module, architecture) else: project = "%s.mcp"%module if not projectdir: projectdir = PROJECTDIR if not sources: sources = [module + 'module.c'] if not sourcedirs: for moduledir in MODULEDIRS: if '%' in moduledir: # For historical reasons an initial _ in the modulename # is not reflected in the folder name if module[0] == '_': modulewithout_ = module[1:] else: modulewithout_ = module moduledir = moduledir % modulewithout_ fn = os.path.join(projectdir, os.path.join(moduledir, sources[0])) if os.path.exists(fn): moduledir, sourcefile = os.path.split(fn) sourcedirs = [relpath(projectdir, moduledir)] sources[0] = sourcefile break else: print "Warning: %s: sourcefile not found: %s"%(module, sources[0]) sourcedirs = [] if prefixname: pass elif architecture == "carbon": prefixname = "mwerks_carbonplugin_config.h" else: prefixname = "mwerks_plugin_config.h" dict = { "sysprefix" : relpath(projectdir, sys.prefix), "sources" : sources, "extrasearchdirs" : sourcedirs + extradirs, "libraries": libraries, "mac_outputdir" : outputdir, "extraexportsymbols" : extraexportsymbols, "mac_targetname" : targetname, "mac_dllname" : dllname, "prefixname" : prefixname, } if libraryflags: dict['libraryflags'] = libraryflags if stdlibraryflags: dict['stdlibraryflags'] = stdlibraryflags mkcwproject.mkproject(os.path.join(projectdir, project), module, dict, force=FORCEREBUILD, templatename=templatename)
e1b118b3fce53d731b8a3909b130935162681de2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e1b118b3fce53d731b8a3909b130935162681de2/genpluginprojects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487, 2870, 23732, 3284, 87, 22850, 6487, 876, 1214, 1546, 2866, 30, 5664, 30, 2941, 17, 28595, 945, 3113, 5313, 7133, 33, 7036, 16, 2044, 12083, 7133, 33, 7036, 16, 1633, 529, 33, 7036, 4672, 309, 27418, 422, 315, 454, 6877, 468, 2457, 326, 813, 3832, 732, 2103, 2795, 1984, 1390, 18, 2288, 487, 13752, 487, 468, 279, 2202, 1778, 305, 826, 1984, 16, 1496, 15857, 358, 2348, 364, 2037, 18, 3157, 4094, 4406, 2932, 84, 2436, 3113, 1605, 16, 1984, 16, 1984, 1214, 16, 5550, 16, 1084, 8291, 16, 14732, 16, 7582, 361, 10539, 16, 2870, 23732, 3284, 87, 16, 876, 1214, 16, 5313, 7133, 16, 2044, 12083, 7133, 16, 1633, 529, 13, 3157, 4094, 4406, 2932, 71, 11801, 3113, 1605, 16, 1984, 16, 1984, 1214, 16, 5550, 16, 1084, 8291, 16, 14732, 16, 7582, 361, 10539, 16, 2870, 23732, 3284, 87, 16, 876, 1214, 16, 5313, 7133, 16, 2044, 12083, 7133, 16, 1633, 529, 13, 327, 13988, 270, 1069, 273, 315, 3202, 6456, 87, 6, 738, 27418, 1018, 529, 273, 2213, 87, 7866, 87, 6, 738, 261, 2978, 16, 27418, 13, 302, 2906, 529, 273, 2213, 87, 7866, 87, 18, 2069, 70, 6, 738, 261, 2978, 16, 27418, 13, 309, 486, 1984, 30, 309, 27418, 480, 315, 84, 2436, 6877, 1984, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487, 2870, 23732, 3284, 87, 22850, 6487, 876, 1214, 1546, 2866, 30, 5664, 30, 2941, 17, 28595, 945, 3113, 5313, 7133, 33, 7036, 16, 2044, 12083, 7133, 33, 7036, 16, 1633, 529, 33, 7036, 4672, 309, 27418, 422, 315, 454, 6877, 468, 2457, 326, 813, 3832, 732, 2103, 2795, 1984, 1390, 18, 2288, 487, 13752, 487, 468, 279, 2202, 1778, 305, 826, 1984, 16, 1496, 15857, 358, 2348, 364, 2037, 18, 3157, 4094, 4406, 2932, 84, 2436, 3113, 1605, 16, 1984, 16, 1984, 1214, 16, 5550, 2 ]
"When selecting this feature, you are placed in "\ "<b>Build Atom</b> mode where you may paste copies "\ "of clipboard objects into the model where ever you click."\
"<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "fileopen", self.fileOpenAction.iconSet().pixmap() ) self.fileOpenAction.setWhatsThis( fileOpenText ) #### Save File #### fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)</b></p><br> "\ "<p><img source=\"filesave\"><br> "\ "Saves the current file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "filesave", self.fileSaveAction.iconSet().pixmap() ) self.fileSaveAction.setWhatsThis( fileSaveText ) ############################################## # Edit Toolbar ############################################## #### Undo #### editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\ "<p><img source=\"editUndo\"><br> "\ "Reverses the last edit or command to the active part. "\ "<b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editUndo", self.editUndoAction.iconSet().pixmap() ) self.editUndoAction.setWhatsThis( editUndoText ) #### Redo #### editRedoText = "<u><b>Redo</b></u> (Ctrl + Y)</b></p><br> "\ "<p><img source=\"editRedo\"> <br>"\ "Re-applies the actions or commands on which you have used "\ "the Undo command. <b>Currently not implemented</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editRedo", self.editRedoAction.iconSet().pixmap() ) self.editRedoAction.setWhatsThis( editRedoText ) #### Cut #### editCutText = "<u><b>Cut</b></u> (Ctrl + X)</b></p><br> "\ "<p><img source=\"editCut\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCut", self.editCutAction.iconSet().pixmap() ) self.editCutAction.setWhatsThis( editCutText ) #### Copy #### editCopyText = "<u><b>Copy</b></u> (Ctrl + C)</b></p><br> "\ "<p><img source=\"editCopy\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCopy", self.editCopyAction.iconSet().pixmap() ) self.editCopyAction.setWhatsThis( editCopyText ) #### Paste #### editPasteText = "<u><b>Paste</b></u> (Ctrl + V)</b></p><br> "\ "<p><img source=\"editPaste\"><br> "\ "When selecting this feature, you are placed in "\ "<b>Build Atom</b> mode where you may paste copies "\ "of clipboard objects into the model where ever you click."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editPaste", self.editPasteAction.iconSet().pixmap() ) self.editPasteAction.setWhatsThis( editPasteText ) #### Delete #### editDeleteText = "<u><b>Delete</b></u> (DEL)</b></p><br> "\ "<p><img source=\"editDelete\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release QMimeSourceFactory.defaultFactory().setPixmap( "editDelete", self.editDeleteAction.iconSet().pixmap() ) self.editDeleteAction.setWhatsThis( editDeleteText ) ############################################## # View Toolbar ############################################## #### Home View #### setViewHomeActionText = "<u><b>Home</b></u> (Home)<br>"\ "<p><img source=\"setViewHome\"><br> "\ "When you create a new model, it appears in a default view orientation (FRONT view). When you open an existing model, it appears in the orientation it was last saved. You can change the default orientation by selecting <b>Set Home View to Current View</b> from the <b>View</b> menu.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewHome", self.setViewHomeAction.iconSet().pixmap() ) self.setViewHomeAction.setWhatsThis( setViewHomeActionText ) #### Fit to Window #### setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"setViewFitToWindow\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFitToWindow", self.setViewFitToWindowAction.iconSet().pixmap() ) self.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) #### Recenter #### setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"setViewRecenter\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRecenter", self.setViewRecenterAction.iconSet().pixmap() ) self.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) #### Zoom Tool #### setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"setzoomTool\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setzoomTool", self.zoomToolAction.iconSet().pixmap() ) self.zoomToolAction.setWhatsThis( setzoomToolActionText ) #### Pan Tool #### setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"setpanTool\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setpanTool", self.panToolAction.iconSet().pixmap() ) self.panToolAction.setWhatsThis( setpanToolActionText ) #### Rotate Tool #### setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"setrotateTool\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setrotateTool", self.rotateToolAction.iconSet().pixmap() ) self.rotateToolAction.setWhatsThis( setrotateToolActionText ) #### Orthographic Projection #### setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOrtho", self.setViewOrthoAction.iconSet().pixmap() ) self.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) #### Perspective Projection #### setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPerspec", self.setViewPerspecAction.iconSet().pixmap() ) self.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) #### Normal To #### setViewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"setViewNormalTo\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewNormalTo", self.setViewNormalToAction.iconSet().pixmap() ) self.setViewNormalToAction.setWhatsThis( setViewNormalToActionText ) #### Parallel To #### setViewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"setViewParallelTo\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewParallelTo", self.setViewParallelToAction.iconSet().pixmap() ) self.setViewParallelToAction.setWhatsThis( setViewParallelToActionText ) #### Save Named View #### saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"saveNamedView\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "saveNamedView", self.saveNamedViewAction.iconSet().pixmap() ) self.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) #### Front View #### setViewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"setViewFront\"><br> "\ "Orients the view to the Front View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFront", self.setViewFrontAction.iconSet().pixmap() ) self.setViewFrontAction.setWhatsThis( setViewFrontActionText ) #### Back View #### setViewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"setViewBack\"><br> "\ "Orients the view to the Back View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBack", self.setViewBackAction.iconSet().pixmap() ) self.setViewBackAction.setWhatsThis( setViewBackActionText ) #### Top View #### setViewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"setViewTop\"><br> "\ "Orients the view to the Top View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewTop", self.setViewTopAction.iconSet().pixmap() ) self.setViewTopAction.setWhatsThis( setViewTopActionText ) #### Bottom View #### setViewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"setViewBottom\"><br> "\ "Orients the view to the Bottom View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBottom", self.setViewBottomAction.iconSet().pixmap() ) self.setViewBottomAction.setWhatsThis( setViewBottomActionText ) #### Left View #### setViewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"setViewLeft\"><br> "\ "Orients the view to the Left View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewLeft", self.setViewLeftAction.iconSet().pixmap() ) self.setViewLeftAction.setWhatsThis( setViewLeftActionText ) #### Right View #### setViewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"setViewRight\"><br> "\ "Orients the view to the Right View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRight", self.setViewRightAction.iconSet().pixmap() ) self.setViewRightAction.setWhatsThis( setViewRightActionText ) #### Rotate View 180 #### setViewOppositeActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"setViewOpposite\"><br> "\ "Rotates the view 180 degrees."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOpposite", self.setViewOppositeAction.iconSet().pixmap() ) self.setViewOppositeAction.setWhatsThis( setViewOppositeActionText ) #### Rotate View +90 #### setViewPlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"setViewPlus90\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPlus90", self.setViewPlus90Action.iconSet().pixmap() ) self.setViewPlus90Action.setWhatsThis( setViewPlus90ActionText ) #### Rotate View -90 #### setViewMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"setViewMinus90\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewMinus90", self.setViewMinus90Action.iconSet().pixmap() ) self.setViewMinus90Action.setWhatsThis( setViewMinus90ActionText ) ############################################## # Grids Toolbar ############################################## #### Surface 100 #### orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"orient100Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient100Action", self.orient100Action.iconSet().pixmap() ) self.orient100Action.setWhatsThis(orient100ActionText ) #### Surface 110 #### orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"orient110Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient110Action", self.orient110Action.iconSet().pixmap() ) self.orient110Action.setWhatsThis(orient110ActionText ) #### Surface 111 #### orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"orient111Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient111Action", self.orient111Action.iconSet().pixmap() ) self.orient111Action.setWhatsThis(orient111ActionText ) ############################################## # Molecular Display toolbar ############################################## #### Display Default #### dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"dispDefaultAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>General</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDefaultAction", self.dispDefaultAction.iconSet().pixmap() ) self.dispDefaultAction.setWhatsThis(dispDefaultActionText ) #### Display Invisible #### dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"dispInvisAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispInvisAction", self.dispInvisAction.iconSet().pixmap() ) self.dispInvisAction.setWhatsThis(dispInvisActionText ) #### Display Lines #### dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"dispLinesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispLinesAction", self.dispLinesAction.iconSet().pixmap() ) self.dispLinesAction.setWhatsThis(dispLinesActionText ) #### Display Tubes #### dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"dispTubesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTubesAction", self.dispTubesAction.iconSet().pixmap() ) self.dispTubesAction.setWhatsThis(dispTubesActionText ) #### Display Ball and Stick (was CPK) #### dispCPKActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"dispCPKAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCPKAction", self.dispCPKAction.iconSet().pixmap() ) self.dispCPKAction.setWhatsThis(dispCPKActionText ) #### Display CPK (was VdW) #### [bruce extended and slightly corrected text, 060307] dispVdWActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"dispVdWAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispVdWAction", self.dispVdWAction.iconSet().pixmap() ) self.dispVdWAction.setWhatsThis(dispVdWActionText ) ############################################## # Select toolbar ############################################## #### Select All #### selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)</b></p><br>"\ "<p><img source=\"selectAllAction\"><br> "\ "During <b>Select Atoms</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectAllAction", self.selectAllAction.iconSet().pixmap() ) self.selectAllAction.setWhatsThis(selectAllActionText ) #### Select None #### selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"selectNoneAction\"><br> "\ "Unselects everything currently selected.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectNoneAction", self.selectNoneAction.iconSet().pixmap() ) self.selectNoneAction.setWhatsThis(selectNoneActionText ) #### Invert Selection #### selectInvertActionText = "<u><b>Invert Selection</b></u> <br> (Ctrl + Shift + I)</b></p><br>"\ "<p><img source=\"selectInvertAction\"><br> "\ "Inverts the current selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectInvertAction", self.selectInvertAction.iconSet().pixmap() ) self.selectInvertAction.setWhatsThis(selectInvertActionText ) #### Select Connected #### selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\ "<p><img source=\"selectConnectedAction\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectConnectedAction", self.selectConnectedAction.iconSet().pixmap() ) self.selectConnectedAction.setWhatsThis(selectConnectedActionText ) #### Select Doubly #### selectDoublyActionText = "<u><b>Select Doubly</b></u></b></p><br>"\ "<p><img source=\"selectDoublyAction\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection.</p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectDoublyAction", self.selectDoublyAction.iconSet().pixmap() ) self.selectDoublyAction.setWhatsThis(selectDoublyActionText ) #### Expand Selection #### selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)</b></p><br>"\ "<p><img source=\"selectExpandAction\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectExpandAction", self.selectExpandAction.iconSet().pixmap() ) self.selectExpandAction.setWhatsThis(selectExpandActionText ) #### Contract Selection #### selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)</b></p><br>"\ "<p><img source=\"selectContractAction\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectContractAction", self.selectContractAction.iconSet().pixmap() ) self.selectContractAction.setWhatsThis(selectContractActionText ) ############################################## # Modify Toolbar ############################################## #### Minimize Selection #### modifyMinimizeSelActionText = "<u><b>Minimize Selection</b></u> (Ctrl + M)</b></p><br>"\ "<p><img source=\"modifyMinimizeSelAction\"><br> "\ "Arranges the atoms (<i>of the current selection</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeSelAction", self.modifyMinimizeSelAction.iconSet().pixmap() ) self.modifyMinimizeSelAction.setWhatsThis(modifyMinimizeSelActionText ) #### Minimize All #### modifyMinimizeAllActionText = "<u><b>Minimize All</b></u></p><br>"\ "<p><img source=\"modifyMinimizeAllAction\"><br> "\ "Arranges the atoms (<i>of the entire part</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeAllAction", self.modifyMinimizeAllAction.iconSet().pixmap() ) self.modifyMinimizeAllAction.setWhatsThis(modifyMinimizeAllActionText ) #### Hydrogenate #### modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> </b></p><br>"\ "<p><img source=\"modifyHydrogenateAction\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyHydrogenateAction", self.modifyHydrogenateAction.iconSet().pixmap() ) self.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) #### Dehydrogenate #### modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"modifyDehydrogenateAction\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDehydrogenateAction", self.modifyDehydrogenateAction.iconSet().pixmap() ) self.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) #### Passivate #### modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)</b></p><br>"\ "<p><img source=\"modifyPassivateAction\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyPassivateAction", self.modifyPassivateAction.iconSet().pixmap() ) self.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) #### Stretch #### modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"modifyStretchAction\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyStretchAction", self.modifyStretchAction.iconSet().pixmap() ) self.modifyStretchAction.setWhatsThis(modifyStretchActionText ) #### Delete Bonds #### modifyDeleteBondsActionText = "<u><b>Delete Bonds</b></u><br>"\ "<p><img source=\"modifyDeleteBondsAction\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDeleteBondsAction", self.modifyDeleteBondsAction.iconSet().pixmap() ) self.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) #### Separate #### modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"modifySeparateAction\"><br> "\ "Creates a new chunk from the currently selected atoms.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifySeparateAction", self.modifySeparateAction.iconSet().pixmap() ) self.modifySeparateAction.setWhatsThis(modifySeparateActionText ) #### Merge Chunks #### modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"modifyMergeAction\"><br> "\ "Merges two or more chunks into a single chunk.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMergeAction", self.modifyMergeAction.iconSet().pixmap() ) self.modifyMergeAction.setWhatsThis(modifyMergeActionText ) #### Invert Chunks #### modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"modifyInvertAction\"><br> "\ "Inverts the atoms of the selected chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyInvertAction", self.modifyInvertAction.iconSet().pixmap() ) self.modifyInvertAction.setWhatsThis(modifyInvertActionText ) #### Align to Common Axis #### modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"modifyAlignCommonAxis\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAlignCommonAxis", self. modifyAlignCommonAxisAction.iconSet().pixmap() ) self. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) ############################################## # Tools Toolbar ############################################## #### Select Chunks #### toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\" toolsSelectMoleculesAction\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectMoleculesAction", self. toolsSelectMoleculesAction.iconSet().pixmap() ) self. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) #### Select Atoms #### toolsSelectAtomsActionText = "<u><b>Select Atoms</b></u><!-- [[Feature:Select Atoms Mode]] --><br>"\ "<p><img source=\" toolsSelectAtomsAction\"><br> "\ "<b>Select Atoms</b> allows you to select/unselect atoms with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects an atom(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes atom(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds atom(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectAtomsAction", self. toolsSelectAtomsAction.iconSet().pixmap() ) self. toolsSelectAtomsAction.setWhatsThis( toolsSelectAtomsActionText ) #### Move Chunks #### toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\" toolsMoveMoleculeAction\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsMoveMoleculeAction", self. toolsMoveMoleculeAction.iconSet().pixmap() ) self. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) #### Build Atoms Tool #### toolsDepositAtomActionText = "<u><b>Build Tool</b></u><!-- [[Feature:Build Mode]] --><br>"\ "<p><img source=\" toolsDepositAtomAction\"><br> "\ "<b>Build Mode</b> allows you to build structures by depositing objects "\ "from the Molecular Modeling Kit, including atoms, clipboard objects and parts "\ "from the nanoENGINEER-1 Library.</p>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDepositAtomAction", self. toolsDepositAtomAction.iconSet().pixmap() ) self. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) #### Cookie Cutter #### toolsCookieCutActionText = "<u><b>Cookie Cutter Tool</b></u><!-- [[Feature:Cookie Cutter Mode]] --><br>"\ "<p><><img source=\" toolsCookieCutAction\"><br> "\ "Activates <b>Cookie Cutter</b> mode, allowing you to cut out 3-D shapes from a "\ "slab of diamond or lonsdaleite lattice.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCookieCutAction", self. toolsCookieCutAction.iconSet().pixmap() ) self. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) #### Extrude Tool #### toolsExtrudeActionText = "<u><b>Extrude Tool</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\" toolsExtrudeAction\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsExtrudeAction", self. toolsExtrudeAction.iconSet().pixmap() ) self. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) #### Fuse Chunks Tool #### toolsFuseChunksActionText = "<u><b>Fuse Chunks Tool</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\" toolsFuseChunksAction\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two types of fusing are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints) "\ "of two or more chunks. Bonds are drawn (and undrawn) as chunks "\ "are moved together (and apart).<br><br>"\ "<b>Fuse Atoms</b> fuses overlapping atoms between chunks. Overlapping "\ "pairs of atoms are highlighted in green and blue to indicate which atoms "\ "will be fused.<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseChunksAction", self. toolsFuseChunksAction.iconSet().pixmap() ) self.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) #### Fuse Atoms Tool #### toolsFuseAtomsActionText = "<u><b>Fuse Atoms Tool</b></u><!-- [[Feature:Fuse Atoms Mode]] (nim?) --><br>"\ "<p><img source=\" toolsFuseAtomsAction\"><br> "\ "<b>Fuse Atoms</b> fuses the overlapping atoms between two or more chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseAtomsAction", self. toolsFuseAtomsAction.iconSet().pixmap() ) self.toolsFuseAtomsAction.setWhatsThis( toolsFuseAtomsActionText ) #### Movie Player #### simMoviePlayerActionText = "<u><b>Movie Player</b></u><br>"\ "<p><img source=\" simMoviePlayerAction\"><br> "\ "Plays the most recent trajectory (movie) file created by the <b>Simulator</b>.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMoviePlayerAction", self. simMoviePlayerAction.iconSet().pixmap() ) self. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) #### Simulator #### simSetupActionText = "<u><b>Simulator</b></u><br>"\ "<p><img source=\" simSetupAction\"><br> "\ "Creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model. The user determines the number of frames in the movie, the time step, "\ "and the temperature for the simulation.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simSetupAction", self. simSetupAction.iconSet().pixmap() ) self. simSetupAction.setWhatsThis( simSetupActionText ) #### Plot Tool #### simPlotToolActionText = "<u><b>Plot Tool</b></u><br>"\ "<p><img source=\" simPlotToolAction\"><br> "\ "Plots a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file, and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simPlotToolAction", self. simPlotToolAction.iconSet().pixmap() ) self. simPlotToolAction.setWhatsThis( simPlotToolActionText ) ############################################## # Dashboard Buttons ############################################## #### Done #### toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\" toolsDoneAction\"><br> "\ "Completes the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDoneAction", self. toolsDoneAction.iconSet().pixmap() ) self. toolsDoneAction.setWhatsThis( toolsDoneActionText ) #### Cancel #### toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\" toolsCancelAction\"><br> "\ "Cancels the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCancelAction", self.toolsCancelAction.iconSet().pixmap() ) self. toolsCancelAction.setWhatsThis( toolsCancelActionText ) #### Back up #### toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "<p><img source=\" toolsBackUpAction\"><br> "\ "Undoes the previous operation."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsBackUpAction", self.toolsBackUpAction.iconSet().pixmap() ) self. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) #### Start Over #### toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "<p><img source=\"toolsStartOverAction\"><br> "\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "toolsStartOverAction", self.toolsStartOverAction.iconSet().pixmap() ) self.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) #### Add Layers #### ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ccAddLayerAction\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "ccAddLayerAction", self.ccAddLayerAction.iconSet().pixmap() ) self.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) ############################################## # Jigs ############################################## #### Anchor #### jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"jigsAnchorAction\"><br> "\ "Attaches a <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Select Atoms</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAnchorAction", self.jigsAnchorAction.iconSet().pixmap() ) self.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) #### Rotary Motor #### jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"jigsMotorAction\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsMotorAction", self.jigsMotorAction.iconSet().pixmap() ) self.jigsMotorAction.setWhatsThis(jigsMotorActionText ) #### Linear Motor #### jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"jigsLinearMotorAction\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsLinearMotorAction", self.jigsLinearMotorAction.iconSet().pixmap() ) self.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) #### Thermostat #### jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"jigsStatAction\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsStatAction", self.jigsStatAction.iconSet().pixmap() ) self.jigsStatAction.setWhatsThis(jigsStatActionText ) #### Thermometer #### jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"jigsThermoAction\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsThermoAction", self.jigsThermoAction.iconSet().pixmap() ) self.jigsThermoAction.setWhatsThis(jigsThermoActionText ) #### ESP Image #### jigsESPImageActionText = "<u><b>ESP Image</b></u></b></p><br>"\ "<p><img source=\"jigsESPImageAction\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsESPImageAction", self.jigsESPImageAction.iconSet().pixmap() ) self.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) #### Atom Set #### jigsAtomSetActionText = "<u><b>Atom Set</b></u></b></p><br>"\ "<p><img source=\"jigsAtomSetAction\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Select Atoms</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAtomSetAction", self.jigsAtomSetAction.iconSet().pixmap() ) self.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) #### Measure Distance #### jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDistanceAction\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Select Atoms</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDistanceAction", self.jigsDistanceAction.iconSet().pixmap() ) self.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) #### Measure Angle #### jigsAngleActionText = "<u><b>Measure Angle Jig</b></u></b></p><br>"\ "<p><img source=\"jigsAngleAction\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Select Atoms</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAngleAction", self.jigsAngleAction.iconSet().pixmap() ) self.jigsAngleAction.setWhatsThis(jigsAngleActionText ) #### Measure Dihedral #### jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDihedralAction\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Select Atoms</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDihedralAction", self.jigsDihedralAction.iconSet().pixmap() ) self.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) #### GAMESS Jig #### jigsGamessActionText = "<u><b>GAMESS Jig</b></u></b></p><br>"\ "<p><img source=\"jigsGamessAction\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Select Atoms</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGamessAction", self.jigsGamessAction.iconSet().pixmap() ) self.jigsGamessAction.setWhatsThis(jigsGamessActionText ) #### Grid Plane Jig #### jigsGridPlaneActionText = "<u><b>Grid Plane</b></u></b></p><br>"\ "<p><img source=\"jigsGridPlaneAction\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGridPlaneAction", self.jigsGridPlaneAction.iconSet().pixmap() ) self.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) ############################################## # Display ############################################## #### Display Object Color #### dispObjectColorActionText = "<u><b>Object Color</b></u><br>"\ "<p><img source=\"dispObjectColorAction\"><br> "\ "Allows you to change the color of the selected object(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispObjectColorAction", self.dispObjectColorAction.iconSet().pixmap() ) self.dispObjectColorAction.setWhatsThis(dispObjectColorActionText ) #### Display Background Color #### dispBGColorActionText = "<u><b>Background Color</b></u><br>"\ "<p><img source=\"dispBGColorAction\"><br> "\ "Allows you to change the background color of the main window.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBGColorAction", self.dispBGColorAction.iconSet().pixmap() ) self.dispBGColorAction.setWhatsThis(dispBGColorActionText ) ############################################## # Help Toolbar ############################################## #### What's This #### helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"helpWhatsThis\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "helpWhatsThis", self.helpWhatsThisAction.iconSet().pixmap() ) self.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) ############################################## # Datum Display Toolbar ############################################## #### Display Trihedron #### dispTrihedronText = "<u><b>Display Trihedron</b></u><br>"\ "<p><img source=\"dispTrihedron\"><br> "\ "Toggles the trihedron on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTrihedron", self.dispTrihedronAction.iconSet().pixmap() ) self.dispTrihedronAction.setWhatsThis(dispTrihedronText ) #### Display Csys #### dispCsysText = "<u><b>Display Csys Axis</b></u><br>"\ "<p><img source=\"dispCsys\"><br> "\ "Toggles the coordinate system axis on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCsys", self.dispCsysAction.iconSet().pixmap() ) self.dispCsysAction.setWhatsThis(dispCsysText ) #### Display Datum Lines #### dispDatumLinesText = "<u><b>Display Datum Lines</b></u><br>"\ "<p><img source=\"dispDatumLines\"><br> "\ "Toggles Datum Lines on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumLines", self.dispDatumLinesAction.iconSet().pixmap() ) self.dispDatumLinesAction.setWhatsThis(dispDatumLinesText ) #### Display Datum Planes #### dispDatumPlanesText = "<u><b>Display Datum Planes</b></u><br>"\ "<p><img source=\"dispDatumPlanes\"><br> "\ "Toggles Datum Planes on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumPlanes", self.dispDatumPlanesAction.iconSet().pixmap() ) self.dispDatumPlanesAction.setWhatsThis(dispDatumPlanesText ) #### Display Grid #### dispGridText = "<u><b>Display 3-D Grid</b></u><br>"\ "<p><img source=\"dispGrid\"><br> "\ "Toggles the 3-D grid on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispGrid", self.dispGridAction.iconSet().pixmap() ) self.dispGridAction.setWhatsThis(dispGridText )
a3e2701eac6332c617e71c2600f8a4bd8a3005b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a3e2701eac6332c617e71c2600f8a4bd8a3005b8/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 225, 11849, 7, 7074, 1387, 11849, 7, 225, 585, 4755, 1528, 273, 3532, 89, 4438, 70, 34, 4755, 1387, 1757, 70, 4695, 89, 34, 377, 261, 12418, 397, 348, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 2354, 836, 2412, 4438, 2848, 34, 1548, 315, 13370, 326, 783, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 2354, 836, 3113, 365, 18, 768, 4755, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 4755, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 4755, 1528, 262, 225, 19709, 26487, 7, 468, 15328, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2 ]
print entryMod print self.lastRun
def work(self, context, ldapEntry, modified): assert(context['test'] == 'value') assert(ldapEntry.dn == 'uid=john,ou=People,dc=example,dc=com') assert(ldapEntry.attributes.has_key('modifyTimestamp')) # Independently verify the modify time stamp entryMod = time.mktime(time.strptime(ldapEntry.attributes['modifyTimestamp'][0] + 'UTC', "%Y%m%d%H%M%SZ%Z")) - time.timezone print entryMod print self.lastRun if (entryMod >= self.lastRun): assert(modified) else: assert(not modified)
688bf380c482146632bb9c1cbd54c80e54e709a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3476/688bf380c482146632bb9c1cbd54c80e54e709a1/test_plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 12, 2890, 16, 819, 16, 8079, 1622, 16, 4358, 4672, 1815, 12, 2472, 3292, 3813, 3546, 422, 296, 1132, 6134, 1815, 12, 14394, 1622, 18, 5176, 422, 296, 1911, 33, 78, 22223, 16, 1395, 33, 11227, 11763, 16, 7201, 33, 8236, 16, 7201, 33, 832, 6134, 1815, 12, 14394, 1622, 18, 4350, 18, 5332, 67, 856, 2668, 17042, 4921, 26112, 468, 657, 10891, 715, 3929, 326, 5612, 813, 14429, 1241, 1739, 273, 813, 18, 24816, 957, 12, 957, 18, 701, 10650, 12, 14394, 1622, 18, 4350, 3292, 17042, 4921, 3546, 63, 20, 65, 397, 296, 11471, 2187, 2213, 61, 9, 81, 9, 72, 9, 44, 9, 49, 9, 28830, 9, 62, 6, 3719, 300, 813, 18, 12690, 309, 261, 4099, 1739, 1545, 365, 18, 2722, 1997, 4672, 1815, 12, 7342, 13, 469, 30, 1815, 12, 902, 4358, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 12, 2890, 16, 819, 16, 8079, 1622, 16, 4358, 4672, 1815, 12, 2472, 3292, 3813, 3546, 422, 296, 1132, 6134, 1815, 12, 14394, 1622, 18, 5176, 422, 296, 1911, 33, 78, 22223, 16, 1395, 33, 11227, 11763, 16, 7201, 33, 8236, 16, 7201, 33, 832, 6134, 1815, 12, 14394, 1622, 18, 4350, 18, 5332, 67, 856, 2668, 17042, 4921, 26112, 468, 657, 10891, 715, 3929, 326, 5612, 813, 14429, 1241, 1739, 273, 813, 18, 24816, 957, 12, 957, 18, 701, 10650, 12, 14394, 1622, 18, 4350, 3292, 17042, 4921, 3546, 63, 20, 65, 397, 296, 11471, 2187, 2213, 61, 9, 81, 9, 72, 9, 44, 9, 49, 9, 28830, 9, 62, 6, 3719, 300, 813, 18, 12690, 2 ]
if data: data = data + self._bufferedCharacter else: data = self._bufferedCharacter
data = self._bufferedCharacter + data
def readChunk(self, chunkSize=None): if chunkSize is None: chunkSize = self._defaultChunkSize
08780933775ede89af53f8d2f872ff9e1a9fd66d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4487/08780933775ede89af53f8d2f872ff9e1a9fd66d/inputstream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5579, 12, 2890, 16, 17791, 33, 7036, 4672, 309, 17791, 353, 599, 30, 17791, 273, 365, 6315, 1886, 26307, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5579, 12, 2890, 16, 17791, 33, 7036, 4672, 309, 17791, 353, 599, 30, 17791, 273, 365, 6315, 1886, 26307, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rml2 = rml_parser._parse(rml_dom, objs, data, header=self.header)
rml2 = rml_parser._parse(rml_dom, objs, data, header=want_header)
def create(self, cr, uid, ids, data, context=None): logo = None if not context: context={} context = context.copy()
866cadab7bd51ff8fc1fc49960756e462cad5e23 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/866cadab7bd51ff8fc1fc49960756e462cad5e23/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036, 4672, 19128, 273, 599, 309, 486, 819, 30, 819, 12938, 819, 273, 819, 18, 3530, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
val = ""
val = ''
def createTimeScale(t0, tMax, tSuspended): global data timescale = "<div class=\"t\" style=\"right:{0}%\">{1}</div>\n" output = '<div id="timescale">\n' # set scale for timeline tTotal = tMax - t0 tS = 0.1 if(tTotal <= 0): return output if(tTotal > 4): tS = 1 if(tSuspended < 0): for i in range(int(tTotal/tS)+1): pos = "%0.3f" % (100 - ((float(i)*tS*100)/tTotal)) if(i > 0): val = "%0.f" % (float(i)*tS*1000) else: val = "" output += timescale.format(pos, val) else: tSuspend = tSuspended - t0 divTotal = int(tTotal/tS) + 1 divSuspend = int(tSuspend/tS) s0 = (tSuspend - tS*divSuspend)*100/tTotal for i in range(divTotal): pos = "%0.3f" % (100 - ((float(i)*tS*100)/tTotal) - s0) if((i == 0) and (s0 < 3)): val = "" elif(i == divSuspend): val = "S/R" else: val = "%0.f" % (float(i-divSuspend)*tS*1000) output += timescale.format(pos, val) output += '</div>\n' return output
0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 950, 5587, 12, 88, 20, 16, 268, 2747, 16, 268, 55, 22942, 4672, 2552, 501, 1658, 31402, 273, 3532, 2892, 667, 5189, 88, 2412, 2154, 5189, 4083, 18611, 20, 97, 9, 2412, 21502, 21, 12863, 2892, 5333, 82, 6, 876, 273, 2368, 2892, 612, 1546, 8584, 31402, 6, 5333, 82, 11, 225, 468, 444, 3159, 364, 18316, 268, 5269, 273, 268, 2747, 300, 268, 20, 268, 55, 273, 374, 18, 21, 309, 12, 88, 5269, 1648, 374, 4672, 327, 876, 309, 12, 88, 5269, 405, 1059, 4672, 268, 55, 273, 404, 309, 12, 88, 55, 22942, 411, 374, 4672, 364, 277, 316, 1048, 12, 474, 12, 88, 5269, 19, 88, 55, 27921, 21, 4672, 949, 273, 2213, 20, 18, 23, 74, 6, 738, 261, 6625, 300, 14015, 5659, 12, 77, 17653, 88, 55, 14, 6625, 13176, 88, 5269, 3719, 309, 12, 77, 405, 374, 4672, 1244, 273, 2213, 20, 18, 74, 6, 738, 261, 5659, 12, 77, 17653, 88, 55, 14, 18088, 13, 469, 30, 1244, 273, 875, 876, 1011, 1658, 31402, 18, 2139, 12, 917, 16, 1244, 13, 469, 30, 268, 55, 18815, 273, 268, 55, 22942, 300, 268, 20, 3739, 5269, 273, 509, 12, 88, 5269, 19, 88, 55, 13, 397, 404, 3739, 55, 18815, 273, 509, 12, 88, 55, 18815, 19, 88, 55, 13, 272, 20, 273, 261, 88, 55, 18815, 300, 268, 55, 14, 2892, 55, 18815, 17653, 6625, 19, 88, 5269, 364, 277, 316, 1048, 12, 2892, 5269, 4672, 949, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 950, 5587, 12, 88, 20, 16, 268, 2747, 16, 268, 55, 22942, 4672, 2552, 501, 1658, 31402, 273, 3532, 2892, 667, 5189, 88, 2412, 2154, 5189, 4083, 18611, 20, 97, 9, 2412, 21502, 21, 12863, 2892, 5333, 82, 6, 876, 273, 2368, 2892, 612, 1546, 8584, 31402, 6, 5333, 82, 11, 225, 468, 444, 3159, 364, 18316, 268, 5269, 273, 268, 2747, 300, 268, 20, 268, 55, 273, 374, 18, 21, 309, 12, 88, 5269, 1648, 374, 4672, 327, 876, 309, 12, 88, 5269, 405, 1059, 4672, 268, 55, 273, 404, 309, 12, 88, 55, 22942, 411, 374, 4672, 364, 277, 316, 1048, 12, 474, 12, 88, 5269, 19, 88, 55, 27921, 21, 4672, 949, 273, 2213, 2 ]
if doc[0] == child:
if build.MakePublicAttributeName(doc[0]) == child:
def generate_child(self, child, dir): "Generate a single child. May force a few children to be built as we generate deps" self.generate_type = GEN_DEMAND_CHILD oldOut = sys.stdout
af00c659ee2a4e007020c7822eccdd96596358a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/af00c659ee2a4e007020c7822eccdd96596358a2/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 3624, 12, 2890, 16, 1151, 16, 1577, 4672, 315, 4625, 279, 2202, 1151, 18, 225, 16734, 2944, 279, 11315, 2325, 358, 506, 6650, 487, 732, 2103, 8740, 6, 365, 18, 7163, 67, 723, 273, 611, 1157, 67, 1639, 11712, 67, 27043, 1592, 1182, 273, 2589, 18, 10283, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 3624, 12, 2890, 16, 1151, 16, 1577, 4672, 315, 4625, 279, 2202, 1151, 18, 225, 16734, 2944, 279, 11315, 2325, 358, 506, 6650, 487, 732, 2103, 8740, 6, 365, 18, 7163, 67, 723, 273, 611, 1157, 67, 1639, 11712, 67, 27043, 1592, 1182, 273, 2589, 18, 10283, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pass
pass
def run_local(self): try: cmd(self.settings["sharedir"]+"/targets/"+self.settings["target"]+"/"+self.settings["target"]+".sh run","build script failed") except CatalystError: self.unbind() raise CatalystError,"Stage build aborting due to error."
5e8de06dbed3622479791f82c34715e2209e63c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/5e8de06dbed3622479791f82c34715e2209e63c2/targets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3729, 12, 2890, 4672, 775, 30, 1797, 12, 2890, 18, 4272, 9614, 14419, 1214, 6, 3737, 6, 19, 11358, 4898, 15, 2890, 18, 4272, 9614, 3299, 6, 3737, 6, 4898, 15, 2890, 18, 4272, 9614, 3299, 6, 3737, 9654, 674, 1086, 15937, 3510, 2728, 2535, 7923, 1335, 385, 3145, 1094, 668, 30, 365, 18, 318, 4376, 1435, 1002, 385, 3145, 1094, 668, 10837, 8755, 1361, 6263, 310, 6541, 358, 555, 1199, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3729, 12, 2890, 4672, 775, 30, 1797, 12, 2890, 18, 4272, 9614, 14419, 1214, 6, 3737, 6, 19, 11358, 4898, 15, 2890, 18, 4272, 9614, 3299, 6, 3737, 6, 4898, 15, 2890, 18, 4272, 9614, 3299, 6, 3737, 9654, 674, 1086, 15937, 3510, 2728, 2535, 7923, 1335, 385, 3145, 1094, 668, 30, 365, 18, 318, 4376, 1435, 1002, 385, 3145, 1094, 668, 10837, 8755, 1361, 6263, 310, 6541, 358, 555, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
GroupsController.name_cache[ prefix[0] + group ] = temp_gid
GroupsController.name_cache[prefix[0]+group] = temp_gid
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """
2c25685af98e96114695a04efeb86385220aeb9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2c25685af98e96114695a04efeb86385220aeb9c/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 19233, 3163, 3621, 12, 2890, 16, 1041, 16, 16745, 33, 5510, 16, 2581, 33, 8381, 16, 3656, 67, 13490, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 1564, 326, 2619, 3252, 716, 279, 4529, 1041, 1608, 358, 284, 4062, 1183, 2219, 2656, 715, 18, 2457, 3454, 16, 279, 1041, 315, 3307, 83, 6, 1608, 576, 2619, 3252, 315, 12243, 17, 3307, 83, 6, 471, 315, 18908, 17, 3307, 83, 6, 364, 2097, 10098, 87, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 3656, 67, 13490, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 1564, 326, 2619, 3252, 716, 279, 4529, 1041, 1608, 358, 284, 4062, 1183, 2219, 2656, 715, 18, 2457, 3454, 16, 279, 1041, 315, 3307, 83, 6, 1608, 576, 2619, 3252, 315, 12243, 17, 3307, 83, 6, 471, 315, 18908, 17, 3307, 83, 6, 364, 2097, 10098, 87, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else: sendchannel("Abstimmung gegen %s anberaumt. Noch %d Stimmmen nötig für Bann." % (target, int(round(len(users)*VOTEQUOTA)) - 1)) hatevotes[target] = [(user,time())]
else: sendchannel("Abstimmung gegen %s anberaumt. Noch %d \ Stimmen nötig für Bann." % \ (target, int(round(len(users) * VOTEQUOTA)) - 1)) hatevotes[target] = [(user, time())]
def checkTimeOut(votes): if votes[0][1] + TIMEOUT > time(): return votes # no votes have timed out elif len(votes) > 1: return checkTimeOut(votes[1:]) # oldest vote has timed out, continue checking else: return [] # no valid vote left
17c61548967182a27edf171b75277fa10ff63052 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14907/17c61548967182a27edf171b75277fa10ff63052/scherbengericht.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 950, 1182, 12, 27800, 4672, 309, 19588, 63, 20, 6362, 21, 65, 397, 24374, 405, 813, 13332, 327, 19588, 10792, 468, 1158, 19588, 1240, 7491, 596, 1327, 562, 12, 27800, 13, 405, 404, 30, 327, 866, 950, 1182, 12, 27800, 63, 21, 30, 5717, 225, 468, 17067, 12501, 711, 7491, 596, 16, 1324, 6728, 469, 30, 327, 5378, 15604, 468, 1158, 923, 12501, 2002, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 950, 1182, 12, 27800, 4672, 309, 19588, 63, 20, 6362, 21, 65, 397, 24374, 405, 813, 13332, 327, 19588, 10792, 468, 1158, 19588, 1240, 7491, 596, 1327, 562, 12, 27800, 13, 405, 404, 30, 327, 866, 950, 1182, 12, 27800, 63, 21, 30, 5717, 225, 468, 17067, 12501, 711, 7491, 596, 16, 1324, 6728, 469, 30, 327, 5378, 15604, 468, 1158, 923, 12501, 2002, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
allSites = [name for name in regSites if name not in exceptionSites]
allSites = restoreOriginalCase([name for name in listToLower(regSites) if name not in listToLower(exceptionSites)], completeSiteList)
def DataTransferSumup(range_end = datetime.date.today(), range_begin = None, output = "text", header = True): if not gGrid or gGrid.lower() == 'local': try: gridDisplayName = gConfig.get("local", "grid_name") except: gridDisplayName = "" else: gridDisplayName = 'OSG' if not range_end: if not range_begin: range_end = datetime.date.today() else: range_end = range_begin + datetime.timedelta(days=+1) if not range_begin: range_begin = range_end + datetime.timedelta(days=-1) timediff = range_end - range_begin regSites = GetListOfOSGSEs(); disabledSites = GetListOfDisabledOSGSites() reportingSitesDate = GetSiteLastReportingDate(range_begin, True) pingSites = [] for data in reportingSitesDate: if ( len(data) > 0 ): (name,lastreport) = data.split("\t") pingSites.append(name) exceptionSites = ['AGLT2_CE_2', 'BNL-LCG2', 'BNL_ATLAS_1', 'BNL_ATLAS_2', 'FNAL_GPGRID_2', 'USCMS-FNAL-XEN', 'USCMS-FNAL-WC1-CE2', 'USCMS-FNAL-WC1-CE3', 'USCMS-FNAL-WC1-CE4', 'BNL_LOCAL', 'BNL_OSG', 'BNL_PANDA', 'GLOW-CMS', 'UCSDT2-B', 'Purdue-Lear' ] #exceptionSites = ['BNL_ATLAS_1', 'BNL_ATLAS_2', 'USCMS-FNAL-WC1-CE2', 'USCMS-FNAL-WC1-CE3', 'USCMS-FNAL-WC1-CE4', 'BNL_LOCAL', 'BNL_OSG', 'BNL_PANDA', 'GLOW-CMS', 'UCSDT2-B'] reportingSites = GetListOfDataTransferReportingSites(range_begin,range_end) #print "reporting sites",reportingSites allSites = None if regSites != None: allSites = [name for name in regSites if name not in exceptionSites] #print "allSites is ", allSites missingSites, emptySites = None, None if allSites: missingSites = [name for name in allSites if name not in \ reportingSites and name not in pingSites] emptySites = [name for name in allSites if name not in reportingSites \ and name in pingSites] extraSites = [name for name in reportingSites if allSites and name not in \ allSites and disabledSites and name not in disabledSites] knownExtras = [name for name in extraSites if name in exceptionSites and \ name not in regSites] extraSites = [name for name in extraSites if name not in exceptionSites] reportingDisabled = None if disabledSites != None: reportingDisabled = [name for name in reportingSites if name in \ disabledSites] #print allSites #print reportingSites #print missingSites #print extraSites if allSites != None: print "As of %s, there are %s registered SRMv2 %s sites." % \ (DateToString(datetime.date.today(),False), prettyInt(len(allSites)), gridDisplayName) print "\nBetween %s - %s (midnight - midnight UTC):\n" % \ (DateToString(range_begin, False), DateToString(range_end, False)) n = len(reportingSites) print prettyInt(n)+" sites reported\n" #[njobs,wallduration,div] = GetTotals(range_begin,range_end) [njobs,wallduration] = GetDataTransferTotals(range_begin,range_end) if (njobs != "NULL"): njobs = int(njobs); wallduration = float(wallduration) else: njobs = 0 wallduration = 0 print "Total number of transfers: "+prettyInt(njobs) print "Total transfer duration: "+niceNum( wallduration / 3600, 1 )+ " hours" if reportingSites != None and extraSites != None and knownExtras != None \ and allSites != None: n = len(reportingSites)-len(extraSites)-len(knownExtras) print "%s registered sites reported (%s%% of %s sites)" % \ (prettyInt(n), niceNum(n*100/len(allSites),1), gridDisplayName) if missingSites != None and allSites != None: n = len(missingSites) print "%s registered sites have NOT reported (%s%% of %s sites)" % \ (prettyInt(n), niceNum(n*100/len(allSites),1), gridDisplayName) if emptySites != None and allSites != None: n = len(emptySites) print "%s registered sites have reported but have no activity (%s%% " \ "of %s sites)" % (prettyInt(n), niceNum(n*100/len(allSites), 1), gridDisplayName) print n = len(extraSites); if not gGrid or gGrid.lower() != "local": print prettyInt(n)+" non-sanctioned non-registered sites reported " \ "(might indicate a discrepancy between OIM and Gratia)." elif allSites != None: print prettyInt(n)+" non-sanctioned non-registered sites reported." if reportingDisabled != None: n = len(reportingDisabled) print prettyInt(n)+" disabled sites have reported." if emptySites != None: print "\nThe sites with no activity are: \n"+prettyList(emptySites) if missingSites != None: print "\nThe non reporting sites are: \n"+prettyList(missingSites) if allSites != None: print "\nThe non registered sites are: \n"+prettyList(extraSites) if reportingDisabled != None: print "\nThe disabled sites that are reporting: \n" + \ prettyList(reportingDisabled) print "\n" return missingSites
6d8a4b1e13b56fd714149dae3171a05103390c56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/637/6d8a4b1e13b56fd714149dae3171a05103390c56/AccountingReports.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1910, 5912, 3495, 416, 12, 3676, 67, 409, 273, 3314, 18, 712, 18, 30064, 9334, 1048, 67, 10086, 273, 599, 16, 876, 273, 315, 955, 3113, 1446, 273, 1053, 4672, 225, 309, 486, 314, 6313, 578, 314, 6313, 18, 8167, 1435, 422, 296, 3729, 4278, 775, 30, 3068, 20524, 273, 314, 809, 18, 588, 2932, 3729, 3113, 315, 5222, 67, 529, 7923, 1335, 30, 3068, 20524, 273, 1408, 469, 30, 3068, 20524, 273, 296, 4618, 43, 11, 225, 309, 486, 1048, 67, 409, 30, 309, 486, 1048, 67, 10086, 30, 1048, 67, 409, 273, 3314, 18, 712, 18, 30064, 1435, 469, 30, 1048, 67, 409, 273, 1048, 67, 10086, 397, 3314, 18, 31295, 12, 9810, 33, 15, 21, 13, 309, 486, 1048, 67, 10086, 30, 1048, 67, 10086, 273, 1048, 67, 409, 397, 3314, 18, 31295, 12, 9810, 29711, 21, 13, 7491, 3048, 273, 1048, 67, 409, 300, 1048, 67, 10086, 225, 960, 17055, 273, 968, 682, 951, 4618, 43, 1090, 87, 5621, 5673, 17055, 273, 968, 682, 951, 8853, 4618, 16113, 2997, 1435, 225, 16096, 17055, 1626, 273, 968, 4956, 3024, 29285, 1626, 12, 3676, 67, 10086, 16, 1053, 13, 10087, 17055, 273, 5378, 364, 501, 316, 16096, 17055, 1626, 30, 309, 261, 562, 12, 892, 13, 405, 374, 262, 30, 261, 529, 16, 2722, 6006, 13, 273, 501, 18, 4939, 31458, 88, 7923, 10087, 17055, 18, 6923, 12, 529, 13, 225, 1520, 17055, 273, 10228, 1781, 12050, 22, 67, 1441, 67, 22, 2187, 296, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1910, 5912, 3495, 416, 12, 3676, 67, 409, 273, 3314, 18, 712, 18, 30064, 9334, 1048, 67, 10086, 273, 599, 16, 876, 273, 315, 955, 3113, 1446, 273, 1053, 4672, 225, 309, 486, 314, 6313, 578, 314, 6313, 18, 8167, 1435, 422, 296, 3729, 4278, 775, 30, 3068, 20524, 273, 314, 809, 18, 588, 2932, 3729, 3113, 315, 5222, 67, 529, 7923, 1335, 30, 3068, 20524, 273, 1408, 469, 30, 3068, 20524, 273, 296, 4618, 43, 11, 225, 309, 486, 1048, 67, 409, 30, 309, 486, 1048, 67, 10086, 30, 1048, 67, 409, 273, 3314, 18, 712, 18, 30064, 1435, 469, 30, 1048, 67, 409, 273, 1048, 67, 10086, 397, 3314, 18, 31295, 12, 9810, 33, 15, 21, 2 ]
now = time.time() for cookie in self: if cookie.is_expired(now): self.clear(cookie.domain, cookie.path, cookie.name) self._cookies_lock.release()
try: now = time.time() for cookie in self: if cookie.is_expired(now): self.clear(cookie.domain, cookie.path, cookie.name) finally: self._cookies_lock.release()
def clear_expired_cookies(self): """Discard all expired cookies.
7ad53bfd99e2b82b856b3e4809283230957deb42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 67, 15820, 67, 16240, 12, 2890, 4672, 3536, 14185, 777, 7708, 7237, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.exptime = 10 self.filter = "B" self.tolra = 1./60. self.toldec = 1./60.
def __init__ (self): ChimeraObject.__init__ (self)
465f38d63439f53dc4de381756d79da238f7ead6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/977/465f38d63439f53dc4de381756d79da238f7ead6/pointverify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 1680, 4417, 69, 921, 16186, 2738, 972, 261, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 1680, 4417, 69, 921, 16186, 2738, 972, 261, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.message( "Zero step value overridden to 1\n" )
def step( self, num = None ): """ step according to num, if num is not given, according to set step parameters """ if self.theRunningFlag == 1: return
ef0ac0d72b622a6dbcfbb4a91a0affde55b98851 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/ef0ac0d72b622a6dbcfbb4a91a0affde55b98851/GtkSessionMonitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 365, 16, 818, 273, 599, 262, 30, 3536, 2235, 4888, 358, 818, 16, 309, 818, 353, 486, 864, 16, 4888, 358, 444, 2235, 1472, 3536, 309, 365, 18, 5787, 7051, 4678, 422, 404, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 365, 16, 818, 273, 599, 262, 30, 3536, 2235, 4888, 358, 818, 16, 309, 818, 353, 486, 864, 16, 4888, 358, 444, 2235, 1472, 3536, 309, 365, 18, 5787, 7051, 4678, 422, 404, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""")
''')
def write_standard_fields(self, out, doc): """ Write HTML code containing descriptions of any standard markup fields that are defined by the given L{APIDoc} object (such as C{@author} and C{@todo} fields).
5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10005, 67, 2821, 12, 2890, 16, 596, 16, 997, 4672, 3536, 2598, 3982, 981, 4191, 15550, 434, 1281, 4529, 9813, 1466, 716, 854, 2553, 635, 326, 864, 511, 95, 2203, 734, 504, 97, 733, 261, 87, 2648, 487, 385, 95, 36, 4161, 97, 471, 385, 95, 36, 9012, 97, 1466, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 97, 1466, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (not self.frameBuffer or not self.images[self.activeImage]): return (w0, h0) = (self.frameBuffer.width, self.frameBuffer.height)
imageID = self.mapping[self.frameNo] frameBuffer = self.frameBuffers[imageID] image = self.images[imageID] if (not frameBuffer or not image): return (w0, h0) = (frameBuffer.width, frameBuffer.height)
def zoomIn (self): if (not self.frameBuffer or not self.images[self.activeImage]): return (w0, h0) = (self.frameBuffer.width, self.frameBuffer.height) # setup the appropriate transformation self.transformation.scaleBy_ (2.0) # update the zoom factor self.frameBuffer.zoom *= 2.0 # resize the frame newSize = self.transformation.transformSize_ ((w0, h0)) self.setFrameSize_ (newSize) self.setNeedsDisplay_ (True) return
1c7ef5ca193e111645b0167b875ecd3729036ac9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2360/1c7ef5ca193e111645b0167b875ecd3729036ac9/PyImageView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7182, 382, 261, 2890, 4672, 225, 1316, 734, 273, 365, 18, 6770, 63, 2890, 18, 3789, 2279, 65, 2623, 1892, 273, 365, 18, 3789, 13699, 63, 2730, 734, 65, 1316, 273, 365, 18, 7369, 63, 2730, 734, 65, 225, 309, 261, 902, 2623, 1892, 578, 486, 1316, 4672, 327, 225, 261, 91, 20, 16, 366, 20, 13, 273, 261, 3789, 1892, 18, 2819, 16, 2623, 1892, 18, 4210, 13, 225, 468, 3875, 326, 5505, 8620, 365, 18, 2338, 1471, 18, 5864, 858, 67, 261, 22, 18, 20, 13, 225, 468, 1089, 326, 7182, 5578, 365, 18, 3789, 1892, 18, 14932, 6413, 576, 18,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7182, 382, 261, 2890, 4672, 225, 1316, 734, 273, 365, 18, 6770, 63, 2890, 18, 3789, 2279, 65, 2623, 1892, 273, 365, 18, 3789, 13699, 63, 2730, 734, 65, 1316, 273, 365, 18, 7369, 63, 2730, 734, 65, 225, 309, 261, 902, 2623, 1892, 578, 486, 1316, 4672, 327, 225, 261, 91, 20, 16, 366, 20, 13, 273, 261, 3789, 1892, 18, 2819, 16, 2623, 1892, 18, 4210, 13, 225, 468, 3875, 326, 5505, 8620, 365, 18, 2338, 1471, 18, 5864, 858, 67, 261, 22, 18, 20, 13, 225, 468, 1089, 326, 7182, 5578, 365, 18, 3789, 1892, 18, 14932, 6413, 576, 18, 20, 225, 468, 7041, 326, 2623, 21402, 273, 365, 18, 2338, 1471, 18, 6547, 1225, 2 ]
WHERE category='coverage' AND build=%s GROUP BY file, unit ORDER BY unit""", (build.id,))
WHERE category='coverage' AND build=%s AND step=%s GROUP BY file, unit ORDER BY unit""", (build.id, step.name))
def render_summary(self, req, config, build, step, category): assert category == 'coverage'
15629190f9a759be821647ca5123fbd37415cea6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/15629190f9a759be821647ca5123fbd37415cea6/summarizers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 7687, 12, 2890, 16, 1111, 16, 642, 16, 1361, 16, 2235, 16, 3150, 4672, 1815, 3150, 422, 296, 16356, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 7687, 12, 2890, 16, 1111, 16, 642, 16, 1361, 16, 2235, 16, 3150, 4672, 1815, 3150, 422, 296, 16356, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
file.Write(" SetGLError(GL_INVALID_VALUE);\n")
file.Write(" SetGLError(GL_INVALID_ENUM);\n")
def WriteValidationCode(self, file): file.Write(" if (!Validate%s(%s)) {\n" % (self.enum_type, self.name)) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return parse_error::kParseNoError;\n") file.Write(" }\n")
69d80aea409f6d8a3a505edb1cfd19b1a594ea8d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/69d80aea409f6d8a3a505edb1cfd19b1a594ea8d/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 585, 18, 3067, 2932, 225, 309, 16051, 4270, 9, 87, 9275, 87, 3719, 18890, 82, 6, 738, 261, 2890, 18, 7924, 67, 723, 16, 365, 18, 529, 3719, 585, 18, 3067, 2932, 565, 1000, 11261, 668, 12, 11261, 67, 9347, 67, 16509, 20472, 82, 7923, 585, 18, 3067, 2932, 565, 327, 1109, 67, 1636, 2866, 79, 3201, 2279, 668, 9747, 82, 7923, 585, 18, 3067, 2932, 225, 289, 64, 82, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 585, 18, 3067, 2932, 225, 309, 16051, 4270, 9, 87, 9275, 87, 3719, 18890, 82, 6, 738, 261, 2890, 18, 7924, 67, 723, 16, 365, 18, 529, 3719, 585, 18, 3067, 2932, 565, 1000, 11261, 668, 12, 11261, 67, 9347, 67, 16509, 20472, 82, 7923, 585, 18, 3067, 2932, 565, 327, 1109, 67, 1636, 2866, 79, 3201, 2279, 668, 9747, 82, 7923, 585, 18, 3067, 2932, 225, 289, 64, 82, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
inifile.write ("%s=%s\n" % (name, repr (data)[1:-1]))
lines.append ("%s=%s" % (name, repr (data)[1:-1]))
def create_inifile (self): # Create an inifile containing data describing the installation. # This could be done without creating a real file, but # a file is (at least) useful for debugging bdist_wininst.
34b4134b92d8ae35d7116619c46b7cf5f0d39e62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/34b4134b92d8ae35d7116619c46b7cf5f0d39e62/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 267, 430, 398, 261, 2890, 4672, 468, 1788, 392, 316, 430, 398, 4191, 501, 16868, 326, 13193, 18, 468, 1220, 3377, 506, 2731, 2887, 4979, 279, 2863, 585, 16, 1496, 468, 279, 585, 353, 261, 270, 4520, 13, 5301, 364, 10450, 324, 4413, 67, 8082, 8591, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 267, 430, 398, 261, 2890, 4672, 468, 1788, 392, 316, 430, 398, 4191, 501, 16868, 326, 13193, 18, 468, 1220, 3377, 506, 2731, 2887, 4979, 279, 2863, 585, 16, 1496, 468, 279, 585, 353, 261, 270, 4520, 13, 5301, 364, 10450, 324, 4413, 67, 8082, 8591, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
flags = db.DB_CREATE | db.DB_TRUNCATE
flags = db.DB_CREATE if os.path.isfile(file): os.unlink(file)
def _checkflag(flag): if flag == 'r': flags = db.DB_RDONLY elif flag == 'rw': flags = 0 elif flag == 'w': flags = db.DB_CREATE elif flag == 'c': flags = db.DB_CREATE elif flag == 'n': flags = db.DB_CREATE | db.DB_TRUNCATE else: raise error, "flags should be one of 'r', 'w', 'c' or 'n'" return flags | db.DB_THREAD
a6b3caad417c0472b611be251d623331744079a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a6b3caad417c0472b611be251d623331744079a5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6420, 12, 6420, 4672, 309, 2982, 422, 296, 86, 4278, 2943, 273, 1319, 18, 2290, 67, 20403, 10857, 1327, 2982, 422, 296, 21878, 4278, 2943, 273, 374, 1327, 2982, 422, 296, 91, 4278, 2943, 273, 225, 1319, 18, 2290, 67, 9344, 1327, 2982, 422, 296, 71, 4278, 2943, 273, 225, 1319, 18, 2290, 67, 9344, 1327, 2982, 422, 296, 82, 4278, 2943, 273, 1319, 18, 2290, 67, 9344, 565, 309, 1140, 18, 803, 18, 291, 768, 12, 768, 4672, 1140, 18, 318, 1232, 12, 768, 13, 469, 30, 1002, 555, 16, 315, 7133, 1410, 506, 1245, 434, 296, 86, 2187, 296, 91, 2187, 296, 71, 11, 578, 296, 82, 4970, 327, 2943, 571, 1319, 18, 2290, 67, 21730, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6420, 12, 6420, 4672, 309, 2982, 422, 296, 86, 4278, 2943, 273, 1319, 18, 2290, 67, 20403, 10857, 1327, 2982, 422, 296, 21878, 4278, 2943, 273, 374, 1327, 2982, 422, 296, 91, 4278, 2943, 273, 225, 1319, 18, 2290, 67, 9344, 1327, 2982, 422, 296, 71, 4278, 2943, 273, 225, 1319, 18, 2290, 67, 9344, 1327, 2982, 422, 296, 82, 4278, 2943, 273, 1319, 18, 2290, 67, 9344, 565, 309, 1140, 18, 803, 18, 291, 768, 12, 768, 4672, 1140, 18, 318, 1232, 12, 768, 13, 469, 30, 1002, 555, 16, 315, 7133, 1410, 506, 1245, 434, 296, 86, 2187, 296, 91, 2187, 296, 71, 11, 578, 296, 82, 4970, 327, 2943, 571, 1319, 18, 2290, 2 ]
__kernel = aiml.Kernel() __kernel.bootstrap(learnFiles="std-startup.xml", commands="bootstrap")
_kernel = aiml.Kernel() _kernel.verbose(config["general.verbose"] == "yes") _kernel.bootstrap(learnFiles="std-startup.xml", commands="bootstrap") _kernel.setBotName(config["general.botname"])
def init(): global __kernel "Initialize the front-ends and back-ends." # Fetch the configuration info config = configFile.get() # Initialize the AIML interpreter __kernel = aiml.Kernel() __kernel.bootstrap(learnFiles="std-startup.xml", commands="bootstrap") # Handle local mode: only start the tty frontend if config['cla.localMode'] == "yes": __addFrontEnd("tty", "FrontEndTTY") else: # Initialize the front-ends. Pythonic black magic ensues... # First we iterate over all frontend modules. for fe in frontends.__all__: # If this frontend isn't activated in the configuration file, # ignore it. try: isActive = (config["%s.active" % fe] == "yes") except KeyError: print "WARNING: no 'active' entry found for module %s in configuration file." % fe isActive = False if not isActive: if config['cla.verboseMode'] == 'yes': print "Skipping inactive frontend: %s" % fe continue # Attempt to extract the name of the front-end class defined in this module. # If no such class is defined, or if the class is not a subclass of IFrontEnd, # skip this module. try: cls = eval("frontends.%s.frontEndClass" % fe) if issubclass(eval("frontends.%s.%s" % (fe, cls)), frontends.frontend.IFrontEnd): # Create an instance of this class in the __frontends dictionary __addFrontEnd(fe, cls) break except: # no class defined in this file. continue
8ed881ac1760bd1874fc2c43b2350ed67b15284e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13130/8ed881ac1760bd1874fc2c43b2350ed67b15284e/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 13332, 2552, 1001, 8111, 315, 7520, 326, 6641, 17, 5839, 471, 1473, 17, 5839, 1199, 468, 8065, 326, 1664, 1123, 642, 273, 12247, 18, 588, 1435, 225, 468, 9190, 326, 432, 45, 1495, 16048, 389, 8111, 273, 279, 381, 80, 18, 11286, 1435, 389, 8111, 18, 11369, 12, 1425, 9614, 12259, 18, 11369, 11929, 422, 315, 9707, 7923, 389, 8111, 18, 12722, 12, 21346, 2697, 1546, 5084, 17, 23939, 18, 2902, 3113, 4364, 1546, 12722, 7923, 389, 8111, 18, 542, 6522, 461, 12, 1425, 9614, 12259, 18, 4819, 529, 6, 5717, 225, 468, 5004, 1191, 1965, 30, 1338, 787, 326, 21520, 15442, 309, 642, 3292, 830, 69, 18, 3729, 2309, 3546, 422, 315, 9707, 6877, 1001, 1289, 9580, 1638, 2932, 5512, 3113, 315, 9580, 1638, 20576, 7923, 469, 30, 468, 9190, 326, 6641, 17, 5839, 18, 225, 6600, 335, 7721, 8146, 19670, 3610, 2777, 468, 5783, 732, 7401, 1879, 777, 15442, 4381, 18, 364, 1656, 316, 6641, 5839, 16186, 454, 972, 30, 468, 971, 333, 15442, 5177, 1404, 14892, 316, 326, 1664, 585, 16, 468, 2305, 518, 18, 775, 30, 15083, 273, 261, 1425, 9614, 9, 87, 18, 3535, 6, 738, 1656, 65, 422, 315, 9707, 7923, 1335, 4999, 30, 1172, 315, 9511, 30, 1158, 296, 3535, 11, 1241, 1392, 364, 1605, 738, 87, 316, 1664, 585, 1199, 738, 1656, 15083, 273, 1083, 309, 486, 15083, 30, 309, 642, 3292, 830, 69, 18, 11369, 2309, 3546, 422, 296, 9707, 4278, 1172, 315, 16877, 16838, 15442, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 13332, 2552, 1001, 8111, 315, 7520, 326, 6641, 17, 5839, 471, 1473, 17, 5839, 1199, 468, 8065, 326, 1664, 1123, 642, 273, 12247, 18, 588, 1435, 225, 468, 9190, 326, 432, 45, 1495, 16048, 389, 8111, 273, 279, 381, 80, 18, 11286, 1435, 389, 8111, 18, 11369, 12, 1425, 9614, 12259, 18, 11369, 11929, 422, 315, 9707, 7923, 389, 8111, 18, 12722, 12, 21346, 2697, 1546, 5084, 17, 23939, 18, 2902, 3113, 4364, 1546, 12722, 7923, 389, 8111, 18, 542, 6522, 461, 12, 1425, 9614, 12259, 18, 4819, 529, 6, 5717, 225, 468, 5004, 1191, 1965, 30, 1338, 787, 326, 21520, 15442, 309, 642, 3292, 830, 69, 18, 3729, 2309, 3546, 422, 315, 9707, 6877, 1001, 1289, 2 ]
failures.append((name, e))
failures.append((name, meth, e))
def run_tests(tm): classes = [obj for name, obj in inspect.getmembers(tm) if isinstance(obj, type)] tm.raises = raises tm.skip = skip successes = [] failures = [] skipped = [] for klass in classes: tests = [(name, meth) for name, meth in inspect.getmembers(klass()) if not name.startswith('_')] for name, meth in tests: if name == 'setup_class': continue try: meth() except Skip: skipped.append(name) except Exception, e: failures.append((name, e)) else: successes.append(name) if successes: print "Successes :" print '', '\n '.join(successes) print if failures: print "Failures :" for name, exc in failures: print '', name, "failed because", str(exc) print if skipped: print "Skipped" print '', '\n '.join(skipped)
48a0f245c877112163faca4b3cb4ae682e985dd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/48a0f245c877112163faca4b3cb4ae682e985dd3/_test_logic_build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 16341, 12, 16925, 4672, 3318, 273, 306, 2603, 364, 508, 16, 1081, 316, 5334, 18, 588, 7640, 12, 16925, 13, 309, 1549, 12, 2603, 16, 618, 25887, 225, 6118, 18, 354, 6141, 273, 14183, 6118, 18, 7457, 273, 2488, 225, 2216, 281, 273, 5378, 11720, 273, 5378, 9700, 273, 5378, 282, 364, 7352, 316, 3318, 30, 7434, 273, 306, 12, 529, 16, 7917, 13, 364, 508, 16, 7917, 316, 5334, 18, 588, 7640, 12, 22626, 10756, 309, 486, 508, 18, 17514, 1918, 2668, 4623, 25887, 364, 508, 16, 7917, 316, 7434, 30, 309, 508, 422, 296, 8401, 67, 1106, 4278, 1324, 775, 30, 7917, 1435, 1335, 6611, 30, 9700, 18, 6923, 12, 529, 13, 1335, 1185, 16, 425, 30, 11720, 18, 6923, 12443, 529, 16, 7917, 16, 425, 3719, 469, 30, 2216, 281, 18, 6923, 12, 529, 13, 225, 309, 2216, 281, 30, 1172, 315, 4510, 281, 20514, 1172, 10226, 2337, 82, 2418, 5701, 12, 4768, 281, 13, 1172, 309, 11720, 30, 1172, 315, 14479, 20514, 364, 508, 16, 3533, 316, 11720, 30, 1172, 10226, 508, 16, 315, 7307, 2724, 3113, 609, 12, 10075, 13, 1172, 309, 9700, 30, 1172, 315, 16425, 6, 1172, 10226, 2337, 82, 2418, 5701, 12, 25346, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 16341, 12, 16925, 4672, 3318, 273, 306, 2603, 364, 508, 16, 1081, 316, 5334, 18, 588, 7640, 12, 16925, 13, 309, 1549, 12, 2603, 16, 618, 25887, 225, 6118, 18, 354, 6141, 273, 14183, 6118, 18, 7457, 273, 2488, 225, 2216, 281, 273, 5378, 11720, 273, 5378, 9700, 273, 5378, 282, 364, 7352, 316, 3318, 30, 7434, 273, 306, 12, 529, 16, 7917, 13, 364, 508, 16, 7917, 316, 5334, 18, 588, 7640, 12, 22626, 10756, 309, 486, 508, 18, 17514, 1918, 2668, 4623, 25887, 364, 508, 16, 7917, 316, 7434, 30, 309, 508, 422, 296, 8401, 67, 1106, 4278, 1324, 775, 30, 7917, 1435, 1335, 6611, 30, 9700, 18, 6923, 12, 529, 13, 1335, 1185, 2 ]
if line.startswith(" line = "" if "typedefintPy_ssize_t" in line: line = "" if "__PYX_EXTERN_Cdoublepow" in line: line = "" if line.startswith("staticPyObject*__pyx_n_"): line = "" if line.startswith("static__Pyx_InternTabEntry__pyx_intern_tab"): line = "" if line.startswith("{&__pyx_n_"): line = "" if line == "{0,0}": line = "" if line == "};": line = "" if line.startswith("if(__Pyx_InternStrings"): line = "" line = line.replace("(", "").replace(")", "") if "PyString_AsString" in line: line = line.replace("PyErr_Occurred", "!__pyx_x") line = line.replace("Py_ssize_t", "int") line = line.replace("PyInt_AsSsize_t", "PyInt_AsLong") line = line.replace("PyInt_FromSsize_t", "PyInt_FromLong") line = line.replace("PY_SSIZE_T_MAX", "0x7fffffff") if line == "0,/*nb_index*/": line = "" if line == "if!oreturn0;": line = "" if line.startswith("struct__pyx_obj_") and line.endswith("*p;"): line = "" if line.startswith("struct__pyx_obj_") and "*p=" in line: line = "" if line.startswith("p=struct__pyx_obj_") and line.endswith("*o;"): line = "" line = line.replace("__cinit__", "__new__")
if line == "Py_INCREF(__pyx_m);": line = ""
def munge_c_line(line): # # Try to compensate for changes in code generation # strategy. # # MINOR HACKs are relatively harmless since any # problems they mask will be caught due to the # C code failing to compile. # # HACKs, on the other hand, could mask real problems. # The reference files should be updated as soon as # possible to make them unnecessary, and they # should be removed. # # MINOR HACK: Ignore runtime support code if line == "/* Runtime support code */": raise StopComparison # Ignore comments and other easily recognisable junk if line[:2] == "/*" and line[-2:] == "*/": line = "" elif line in ignore_lines: line = "" line = replace(line, " ", "") # MINOR HACK: ignore prototypes if line[-9:] == "/*proto*/": line = "" # HACK: treat all temp vars as equivalent line = re.sub("__pyx_[0-9]+", "__pyx_x", line) # HACK: ignore differences in source line numbers line = re.sub("__pyx_lineno=[0-9]+", "__pyx_lineno=x", line) # MINOR HACK: ignore temp var declarations if line == "PyObject*__pyx_x=0;": line = "" if line == "int__pyx_x;": line = "" if line == "Py_ssize_t__pyx_x;": line = "" # MINOR HACK: ignore gcc3.3 bug workaround lines if "__pyx_gcc33_" in line: line = "" # MINOR HACK: allow for 2.3/2.5 difference in module-level traceback lines # ------ End of standing hacks ----- # HACK: Ignore preprocessor directives and preamble lines if line.startswith("#"): line = "" if "typedefintPy_ssize_t" in line: line = "" if "__PYX_EXTERN_Cdoublepow" in line: line = "" # MINOR HACK: Ignore interned name declarations and table if line.startswith("staticPyObject*__pyx_n_"): line = "" if line.startswith("static__Pyx_InternTabEntry__pyx_intern_tab"): line = "" if line.startswith("{&__pyx_n_"): line = "" if line == "{0,0}": line = "" if line == "};": line = "" # HACK: Ignore interned name init call if line.startswith("if(__Pyx_InternStrings"): line = "" # HACK: Ignore all parentheses line = line.replace("(", "").replace(")", "") # HACK: Fix up PyString_AsString error value handling if "PyString_AsString" in line: line = line.replace("PyErr_Occurred", "!__pyx_x") # HACK: Fix up Py_ssize_t line = line.replace("Py_ssize_t", "int") line = line.replace("PyInt_AsSsize_t", "PyInt_AsLong") line = line.replace("PyInt_FromSsize_t", "PyInt_FromLong") line = line.replace("PY_SSIZE_T_MAX", "0x7fffffff") # HACK: Ignore nb_index slot if line == "0,/*nb_index*/": line = "" # HACK: Ignore tp_new error checking code if line == "if!oreturn0;": line = "" # HACK: Ignore tp_new self casting if line.startswith("struct__pyx_obj_") and line.endswith("*p;"): line = "" if line.startswith("struct__pyx_obj_") and "*p=" in line: line = "" if line.startswith("p=struct__pyx_obj_") and line.endswith("*o;"): line = "" # HACK: Fix up __cinit__ line = line.replace("__cinit__", "__new__") # ---------- END HACKS ---------- return line
5ca4ac8579e11db4f7d81770ff9cfc1303f0e995 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2099/5ca4ac8579e11db4f7d81770ff9cfc1303f0e995/Testing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 25561, 67, 71, 67, 1369, 12, 1369, 4672, 468, 468, 282, 6161, 358, 1161, 773, 340, 364, 3478, 316, 981, 9377, 468, 282, 6252, 18, 468, 468, 282, 6989, 916, 670, 3649, 87, 854, 1279, 17526, 17895, 781, 403, 3241, 1281, 468, 282, 9688, 2898, 3066, 903, 506, 13537, 6541, 358, 326, 468, 282, 385, 981, 21311, 358, 4074, 18, 468, 468, 282, 670, 3649, 87, 16, 603, 326, 1308, 948, 16, 3377, 3066, 2863, 9688, 18, 468, 282, 1021, 2114, 1390, 1410, 506, 3526, 487, 17136, 487, 468, 282, 3323, 358, 1221, 2182, 19908, 16, 471, 2898, 468, 282, 1410, 506, 3723, 18, 468, 468, 6989, 916, 670, 3649, 30, 8049, 3099, 2865, 981, 309, 980, 422, 2206, 14, 2509, 2865, 981, 1195, 6877, 1002, 5131, 16059, 468, 8049, 5678, 471, 1308, 17997, 14603, 291, 429, 525, 1683, 309, 980, 10531, 22, 65, 422, 2206, 7388, 471, 980, 18919, 22, 26894, 422, 15902, 4898, 30, 980, 273, 1408, 1327, 980, 316, 2305, 67, 3548, 30, 980, 273, 1408, 980, 273, 1453, 12, 1369, 16, 315, 3104, 1408, 13, 225, 468, 6989, 916, 670, 3649, 30, 2305, 450, 3307, 989, 309, 980, 18919, 29, 26894, 422, 2206, 14, 9393, 14, 4898, 30, 980, 273, 1408, 225, 468, 670, 3649, 30, 10116, 777, 1906, 4153, 487, 7680, 980, 273, 283, 18, 1717, 2932, 972, 2074, 92, 67, 63, 20, 17, 29, 3737, 3113, 10425, 2074, 92, 67, 92, 3113, 980, 13, 225, 468, 670, 3649, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 25561, 67, 71, 67, 1369, 12, 1369, 4672, 468, 468, 282, 6161, 358, 1161, 773, 340, 364, 3478, 316, 981, 9377, 468, 282, 6252, 18, 468, 468, 282, 6989, 916, 670, 3649, 87, 854, 1279, 17526, 17895, 781, 403, 3241, 1281, 468, 282, 9688, 2898, 3066, 903, 506, 13537, 6541, 358, 326, 468, 282, 385, 981, 21311, 358, 4074, 18, 468, 468, 282, 670, 3649, 87, 16, 603, 326, 1308, 948, 16, 3377, 3066, 2863, 9688, 18, 468, 282, 1021, 2114, 1390, 1410, 506, 3526, 487, 17136, 487, 468, 282, 3323, 358, 1221, 2182, 19908, 16, 471, 2898, 468, 282, 1410, 506, 3723, 18, 468, 468, 6989, 916, 670, 3649, 30, 8049, 3099, 2865, 981, 309, 980, 2 ]
def onDeleteEventUpdateUI(self, event): event.arguments['Text'] = _(u'Delete Collection')
def onRemoveEventUpdateUI(self, event): event.arguments['Text'] = _(u'Remove Collection')
def onDeleteEventUpdateUI(self, event): event.arguments['Text'] = _(u'Delete Collection') """ this is enabled if any user item is selected in the sidebar """ event.arguments['Enable'] = (self.selectedItemToView is not None and getattr(self.selectedItemToView, 'renameable', True))
60a27eef89954655c16fcc2fd796edc41bbe0e7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/60a27eef89954655c16fcc2fd796edc41bbe0e7d/SideBar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3288, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 871, 18, 7099, 3292, 1528, 3546, 273, 389, 12, 89, 11, 3288, 2200, 6134, 3536, 333, 353,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 603, 3288, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 871, 18, 7099, 3292, 1528, 3546, 273, 389, 12, 89, 11, 3288, 2200, 6134, 3536, 333, 353, 3696, 309, 1281, 729, 761, 353, 3170, 316, 326, 23364, 3536, 871, 18, 7099, 3292, 8317, 3546, 273, 261, 2890, 18, 8109, 1180, 774, 1767, 353, 486, 599, 471, 3869, 12, 2890, 18, 8109, 1180, 774, 1767, 16, 296, 18539, 429, 2187, 1053, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if index == 1: done = 1
if index == 1: break
def run_pw (command, timeout=-1, withexitstatus=0, password=''): """This is just like pexpect.run(), but adds automatic password sending. This sits in a loop and waits for either 'password' or EOF. Whenever it sees 'password' it will send the given password and then go back to waiting. When it sees EOF it will return. """ if timeout == -1: child = spawn(command, maxread=2000) else: child = spawn(command, timeout=timeout, maxread=2000) done = 0 while not done: index = child.expect (['(?i)password', EOF]) if index == 1: done = 1 else: child.sendline(password) if withexitstatus: child.close() return (child.before, child.exitstatus) else: return child.before
279f29a5f4095210201b073a35f0a270f5e91698 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/279f29a5f4095210201b073a35f0a270f5e91698/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 14921, 261, 3076, 16, 2021, 29711, 21, 16, 598, 8593, 2327, 33, 20, 16, 2201, 2218, 11, 4672, 3536, 2503, 353, 2537, 3007, 293, 12339, 18, 2681, 9334, 1496, 4831, 5859, 2201, 5431, 18, 1220, 272, 1282, 316, 279, 2798, 471, 16248, 364, 3344, 296, 3664, 11, 578, 6431, 18, 3497, 4009, 502, 518, 29308, 296, 3664, 11, 518, 903, 1366, 326, 864, 2201, 471, 1508, 1960, 1473, 358, 7336, 18, 5203, 518, 29308, 6431, 518, 903, 327, 18, 3536, 309, 2021, 422, 300, 21, 30, 1151, 273, 12560, 12, 3076, 16, 943, 896, 33, 17172, 13, 469, 30, 1151, 273, 12560, 12, 3076, 16, 2021, 33, 4538, 16, 943, 896, 33, 17172, 13, 2731, 273, 374, 1323, 486, 2731, 30, 770, 273, 1151, 18, 12339, 261, 3292, 3680, 77, 13, 3664, 2187, 6431, 5717, 309, 770, 422, 404, 30, 898, 469, 30, 1151, 18, 4661, 1369, 12, 3664, 13, 309, 598, 8593, 2327, 30, 1151, 18, 4412, 1435, 327, 261, 3624, 18, 5771, 16, 1151, 18, 8593, 2327, 13, 469, 30, 327, 1151, 18, 5771, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 14921, 261, 3076, 16, 2021, 29711, 21, 16, 598, 8593, 2327, 33, 20, 16, 2201, 2218, 11, 4672, 3536, 2503, 353, 2537, 3007, 293, 12339, 18, 2681, 9334, 1496, 4831, 5859, 2201, 5431, 18, 1220, 272, 1282, 316, 279, 2798, 471, 16248, 364, 3344, 296, 3664, 11, 578, 6431, 18, 3497, 4009, 502, 518, 29308, 296, 3664, 11, 518, 903, 1366, 326, 864, 2201, 471, 1508, 1960, 1473, 358, 7336, 18, 5203, 518, 29308, 6431, 518, 903, 327, 18, 3536, 309, 2021, 422, 300, 21, 30, 1151, 273, 12560, 12, 3076, 16, 943, 896, 33, 17172, 13, 469, 30, 1151, 273, 12560, 12, 3076, 16, 2021, 33, 4538, 16, 943, 896, 33, 17172, 13, 2731, 273, 2 ]
nsi_template = file("gwyddion.nsi.template" ,"r")
nsi_template = file(GWYDDION_NSI_TEMPLATE ,"r")
def get_uninstall_line(filename, prefix): if os.path.isdir(filename): return ' RmDir "$INSTDIR\\'+filename.replace(prefix, "", 1)+'"\n' else: return ' Delete "$INSTDIR\\'+filename.replace(prefix, "", 1)+'"\n'
2aa63f9f1b97e76527493df0969d89611cf62ad6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6171/2aa63f9f1b97e76527493df0969d89611cf62ad6/generate-gwyddion-nsi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28872, 67, 1369, 12, 3459, 16, 1633, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 3459, 4672, 327, 296, 282, 534, 81, 1621, 4662, 19784, 4537, 10471, 15, 3459, 18, 2079, 12, 3239, 16, 23453, 404, 27921, 4970, 64, 82, 11, 469, 30, 327, 296, 282, 2504, 4662, 19784, 4537, 10471, 15, 3459, 18, 2079, 12, 3239, 16, 23453, 404, 27921, 4970, 64, 82, 11, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 28872, 67, 1369, 12, 3459, 16, 1633, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 3459, 4672, 327, 296, 282, 534, 81, 1621, 4662, 19784, 4537, 10471, 15, 3459, 18, 2079, 12, 3239, 16, 23453, 404, 27921, 4970, 64, 82, 11, 469, 30, 327, 296, 282, 2504, 4662, 19784, 4537, 10471, 15, 3459, 18, 2079, 12, 3239, 16, 23453, 404, 27921, 4970, 64, 82, 11, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(self.domHandle.callList[3]['name'],'changeItem') self.assertEqual(self.domHandle.callList[3]['id'],match[0])
self.assertEqual(self.domHandle.callList[3]['name'],'changeItems') self.assertEqual(self.domHandle.callList[3]['pairs'][0][0],match[0])
def testUpdate(self): (tch, handle) = fillTemplate("unittest/update",self.domHandle,'gtk-x11-MozillaBrowser','platform') text = tch.read() text = HTMLPattern.match(text).group(1) self.assert_(self.updatePattern.match(text)) #span for template inserted id = self.updatePattern.match(text).group(1) handle.initialFillIn() self.assertEqual(len(self.domHandle.callList),1) self.assertEqual(self.domHandle.callList[0]['name'],'addItemBefore') self.assertEqual(self.domHandle.callList[0]['id'],id) match = self.itemPattern.findall(self.domHandle.callList[0]['xml']) self.assertEqual(len(match),1) self.x.signalChange() handle.updateRegions[0].doChange() self.assertEqual(len(self.domHandle.callList),2) self.assertEqual(self.domHandle.callList[1]['name'],'changeItem') self.assertEqual(self.domHandle.callList[1]['id'],match[0]) temp = HTMLObject('<span>object</span>') handle.updateRegions[0].doChange() self.assertEqual(len(self.domHandle.callList),3) self.assertEqual(self.domHandle.callList[2]['name'],'changeItem') self.assertEqual(self.domHandle.callList[2]['id'],match[0]) temp.remove() handle.updateRegions[0].doChange() self.assertEqual(len(self.domHandle.callList),4) self.assertEqual(self.domHandle.callList[3]['name'],'changeItem') self.assertEqual(self.domHandle.callList[3]['id'],match[0]) self.assertEqual(ranOnUnload, 0) handle.unlinkTemplate() self.assertEqual(ranOnUnload, 1)
d7309566483c297c1559fec0fdaea0edc577801d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/d7309566483c297c1559fec0fdaea0edc577801d/templatetest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1891, 12, 2890, 4672, 261, 88, 343, 16, 1640, 13, 273, 3636, 2283, 2932, 4873, 3813, 19, 2725, 3113, 2890, 18, 9859, 3259, 11189, 4521, 79, 17, 92, 2499, 17, 49, 11142, 10745, 9132, 17023, 9898, 6134, 977, 273, 268, 343, 18, 896, 1435, 977, 273, 3982, 3234, 18, 1916, 12, 955, 2934, 1655, 12, 21, 13, 365, 18, 11231, 67, 12, 2890, 18, 2725, 3234, 18, 1916, 12, 955, 3719, 468, 3969, 364, 1542, 9564, 612, 273, 365, 18, 2725, 3234, 18, 1916, 12, 955, 2934, 1655, 12, 21, 13, 1640, 18, 6769, 8026, 382, 1435, 365, 18, 11231, 5812, 12, 1897, 12, 2890, 18, 9859, 3259, 18, 1991, 682, 3631, 21, 13, 365, 18, 11231, 5812, 12, 2890, 18, 9859, 3259, 18, 1991, 682, 63, 20, 23962, 529, 3546, 11189, 1289, 1180, 4649, 6134, 365, 18, 11231, 5812, 12, 2890, 18, 9859, 3259, 18, 1991, 682, 63, 20, 23962, 350, 17337, 350, 13, 845, 273, 365, 18, 1726, 3234, 18, 4720, 454, 12, 2890, 18, 9859, 3259, 18, 1991, 682, 63, 20, 23962, 2902, 19486, 365, 18, 11231, 5812, 12, 1897, 12, 1916, 3631, 21, 13, 365, 18, 92, 18, 10420, 3043, 1435, 1640, 18, 2725, 17344, 63, 20, 8009, 2896, 3043, 1435, 365, 18, 11231, 5812, 12, 1897, 12, 2890, 18, 9859, 3259, 18, 1991, 682, 3631, 22, 13, 365, 18, 11231, 5812, 12, 2890, 18, 9859, 3259, 18, 1991, 682, 63, 21, 23962, 529, 3546, 11189, 3427, 1180, 6134, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1891, 12, 2890, 4672, 261, 88, 343, 16, 1640, 13, 273, 3636, 2283, 2932, 4873, 3813, 19, 2725, 3113, 2890, 18, 9859, 3259, 11189, 4521, 79, 17, 92, 2499, 17, 49, 11142, 10745, 9132, 17023, 9898, 6134, 977, 273, 268, 343, 18, 896, 1435, 977, 273, 3982, 3234, 18, 1916, 12, 955, 2934, 1655, 12, 21, 13, 365, 18, 11231, 67, 12, 2890, 18, 2725, 3234, 18, 1916, 12, 955, 3719, 468, 3969, 364, 1542, 9564, 612, 273, 365, 18, 2725, 3234, 18, 1916, 12, 955, 2934, 1655, 12, 21, 13, 1640, 18, 6769, 8026, 382, 1435, 365, 18, 11231, 5812, 12, 1897, 12, 2890, 18, 9859, 3259, 18, 1991, 682, 3631, 21, 13, 365, 18, 11231, 2 ]
print ' %s = %s (%s)' % (k,vk,d)
self._writeln(' %s = %s (%s)' % (k,vk,d))
def _show_module_versions(self,k,v): print k[2:] K = v.keys() K.sort() for k in K: vk = v[k] try: m = recursiveImport(k,sys.path[:],1) d = getattr(m,'__version__',None)==vk and 'SAME' or 'DIFFERENT' except: m = None d = '??????unknown??????' print ' %s = %s (%s)' % (k,vk,d)
bc915edf828a5bbd246acf2f5a8aa5640a677698 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/bc915edf828a5bbd246acf2f5a8aa5640a677698/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 67, 2978, 67, 10169, 12, 2890, 16, 79, 16, 90, 4672, 1172, 417, 63, 22, 26894, 1475, 273, 331, 18, 2452, 1435, 1475, 18, 3804, 1435, 364, 417, 316, 1475, 30, 331, 79, 273, 331, 63, 79, 65, 775, 30, 312, 273, 5904, 5010, 12, 79, 16, 9499, 18, 803, 10531, 6487, 21, 13, 302, 273, 3869, 12, 81, 11189, 972, 1589, 972, 2187, 7036, 13, 631, 90, 79, 471, 296, 29080, 11, 578, 296, 2565, 9303, 2222, 11, 1335, 30, 312, 273, 599, 302, 273, 13023, 14646, 14646, 35, 8172, 14646, 14646, 35, 4899, 1172, 296, 225, 738, 87, 273, 738, 87, 6142, 87, 2506, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 67, 2978, 67, 10169, 12, 2890, 16, 79, 16, 90, 4672, 1172, 417, 63, 22, 26894, 1475, 273, 331, 18, 2452, 1435, 1475, 18, 3804, 1435, 364, 417, 316, 1475, 30, 331, 79, 273, 331, 63, 79, 65, 775, 30, 312, 273, 5904, 5010, 12, 79, 16, 9499, 18, 803, 10531, 6487, 21, 13, 302, 273, 3869, 12, 81, 11189, 972, 1589, 972, 2187, 7036, 13, 631, 90, 79, 471, 296, 29080, 11, 578, 296, 2565, 9303, 2222, 11, 1335, 30, 312, 273, 599, 302, 273, 13023, 14646, 14646, 35, 8172, 14646, 14646, 35, 4899, 1172, 296, 225, 738, 87, 273, 738, 87, 6142, 87, 2506, 738, 261, 79, 16, 90, 79, 16, 72, 13, 2, -100 ]
result.append(FeatureNode(gtlib.gt_genome_node_rec_ref(a.get(i))))
result.append(FeatureNode(gtlib.gt_genome_node_ref(a.get(i))))
def get_features_for_range(self, start, end, seqid): from ctypes import byref a = Array() err = Error() rng = Range(start, end) rval = gtlib.gt_feature_index_get_features_for_range(self.fi, a, \ seqid, byref(rng),\ err) if rval != 0: gterror(err) result = [] for i in range(a.size()): result.append(FeatureNode(gtlib.gt_genome_node_rec_ref(a.get(i)))) return result
c6994328b257198b8cbf9589c655448b71bf0759 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8905/c6994328b257198b8cbf9589c655448b71bf0759/feature_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7139, 67, 1884, 67, 3676, 12, 2890, 16, 787, 16, 679, 16, 31583, 4672, 628, 6983, 1930, 12725, 279, 273, 1510, 1435, 393, 273, 1068, 1435, 11418, 273, 8086, 12, 1937, 16, 679, 13, 14267, 273, 9879, 2941, 18, 4521, 67, 7238, 67, 1615, 67, 588, 67, 7139, 67, 1884, 67, 3676, 12, 2890, 18, 22056, 16, 279, 16, 521, 31583, 16, 12725, 12, 86, 3368, 3631, 64, 393, 13, 309, 14267, 480, 374, 30, 9879, 1636, 12, 370, 13, 563, 273, 5378, 364, 277, 316, 1048, 12, 69, 18, 1467, 1435, 4672, 563, 18, 6923, 12, 4595, 907, 12, 4521, 2941, 18, 4521, 67, 23220, 67, 2159, 67, 1734, 12, 69, 18, 588, 12, 77, 3719, 3719, 327, 563, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7139, 67, 1884, 67, 3676, 12, 2890, 16, 787, 16, 679, 16, 31583, 4672, 628, 6983, 1930, 12725, 279, 273, 1510, 1435, 393, 273, 1068, 1435, 11418, 273, 8086, 12, 1937, 16, 679, 13, 14267, 273, 9879, 2941, 18, 4521, 67, 7238, 67, 1615, 67, 588, 67, 7139, 67, 1884, 67, 3676, 12, 2890, 18, 22056, 16, 279, 16, 521, 31583, 16, 12725, 12, 86, 3368, 3631, 64, 393, 13, 309, 14267, 480, 374, 30, 9879, 1636, 12, 370, 13, 563, 273, 5378, 364, 277, 316, 1048, 12, 69, 18, 1467, 1435, 4672, 563, 18, 6923, 12, 4595, 907, 12, 4521, 2941, 18, 4521, 67, 23220, 67, 2159, 67, 1734, 12, 69, 18, 588, 12, 77, 2 ]
'data': {'prefix', dirname,
'data': {'prefix': dirname,
def __init__(self, conf='sdi.conf'): # get the correct conf path dirname = os.path.dirname(sys.argv[0]) self.conffilepath = dirname +'/'+ conf
7360f206086a74880ad88ca6f253cea58169924c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/189/7360f206086a74880ad88ca6f253cea58169924c/configsdiparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2195, 2218, 87, 3211, 18, 3923, 11, 4672, 468, 336, 326, 3434, 2195, 589, 4283, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 19485, 63, 20, 5717, 365, 18, 3923, 10561, 273, 4283, 397, 11, 2473, 15, 2195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2195, 2218, 87, 3211, 18, 3923, 11, 4672, 468, 336, 326, 3434, 2195, 589, 4283, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 19485, 63, 20, 5717, 365, 18, 3923, 10561, 273, 4283, 397, 11, 2473, 15, 2195, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
link = urljoin(baseurl, quote(match.group(3))) desc = match.group(4) imgMatch = HTMLLinkGrabber.imgPattern.match(desc) if imgMatch: thumb = urljoin(baseurl, quote(imgMatch.group(1)))
try: linkURL = match.group(3).encode('ascii') except UnicodeDecodeError: print "WARNING: scraped URL is non-ascii (%s)-- discarding" \ % match.group(3)
def getLinks(self,data, baseurl): self.links = [] self.lastLink = None self.inLink = False self.inObject = False self.baseurl = baseurl self.inTitle = False self.title = None self.thumbnailUrl = None
d6b5a8ca06fa3cd902e97521777ca7493ad9b10c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/d6b5a8ca06fa3cd902e97521777ca7493ad9b10c/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7100, 12, 2890, 16, 892, 16, 25427, 4672, 365, 18, 7135, 273, 5378, 365, 18, 2722, 2098, 273, 599, 365, 18, 267, 2098, 273, 1083, 365, 18, 267, 921, 273, 1083, 365, 18, 1969, 718, 273, 25427, 365, 18, 267, 4247, 273, 1083, 365, 18, 2649, 273, 599, 365, 18, 14904, 1489, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 267, 921, 273, 1083, 365, 18, 1969, 718, 273, 25427, 365, 18, 267, 4247, 273, 1083, 365, 18, 2649, 273, 599, 365, 18, 14904, 1489, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if items1[j] != items2[j]:
if l1.ll_getitem_fast(j) != l2.ll_getitem_fast(j):
def ll_listeq(l1, l2, eqfn): if not l1 and not l2: return True if not l1 or not l2: return False len1 = l1.ll_length() len2 = l2.ll_length() if len1 != len2: return False j = 0 items1 = l1.ll_items() items2 = l2.ll_items() while j < len1: if eqfn is None: if items1[j] != items2[j]: return False else: if not eqfn(items1[j], items2[j]): return False j += 1 return True
afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 1098, 11253, 12, 80, 21, 16, 328, 22, 16, 7555, 4293, 4672, 309, 486, 328, 21, 471, 486, 328, 22, 30, 327, 1053, 309, 486, 328, 21, 578, 486, 328, 22, 30, 327, 1083, 562, 21, 273, 328, 21, 18, 2906, 67, 2469, 1435, 562, 22, 273, 328, 22, 18, 2906, 67, 2469, 1435, 309, 562, 21, 480, 562, 22, 30, 327, 1083, 525, 273, 374, 1516, 21, 273, 328, 21, 18, 2906, 67, 3319, 1435, 1516, 22, 273, 328, 22, 18, 2906, 67, 3319, 1435, 1323, 525, 411, 562, 21, 30, 309, 7555, 4293, 353, 599, 30, 309, 328, 21, 18, 2906, 67, 31571, 67, 8076, 12, 78, 13, 480, 328, 22, 18, 2906, 67, 31571, 67, 8076, 12, 78, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 1098, 11253, 12, 80, 21, 16, 328, 22, 16, 7555, 4293, 4672, 309, 486, 328, 21, 471, 486, 328, 22, 30, 327, 1053, 309, 486, 328, 21, 578, 486, 328, 22, 30, 327, 1083, 562, 21, 273, 328, 21, 18, 2906, 67, 2469, 1435, 562, 22, 273, 328, 22, 18, 2906, 67, 2469, 1435, 309, 562, 21, 480, 562, 22, 30, 327, 1083, 525, 273, 374, 1516, 21, 273, 328, 21, 18, 2906, 67, 3319, 1435, 1516, 22, 273, 328, 22, 18, 2906, 67, 3319, 1435, 1323, 525, 411, 562, 21, 30, 309, 7555, 4293, 353, 599, 30, 309, 328, 21, 18, 2906, 67, 31571, 67, 8076, 12, 78, 13, 480, 328, 22, 18, 2906, 67, 2 ]
"hp:b:rxec", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr"]
"hp:b:rxecD", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr", "debug"]
def usage(): sys.stderr.write("""USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: port, a number, default = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (default off) -e, --echo: enable local echo (default off) -c, --cr: disable LF -> CR+LF translation
c31f8cf1780093fab7de1a8a90fbcac98d8284c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/c31f8cf1780093fab7de1a8a90fbcac98d8284c6/miniterm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 2589, 18, 11241, 18, 2626, 2932, 3660, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354, 30, 1756, 16, 279, 1300, 16, 805, 273, 374, 578, 279, 2346, 508, 300, 70, 16, 1493, 12124, 1100, 33, 12536, 12587, 30, 9846, 1100, 5141, 16, 805, 19332, 713, 300, 86, 16, 1493, 86, 3428, 299, 87, 30, 565, 4237, 534, 8047, 19, 1268, 55, 4693, 3325, 261, 1886, 3397, 13, 300, 92, 16, 1493, 92, 265, 92, 3674, 30, 282, 4237, 17888, 4693, 3325, 261, 1886, 3397, 13, 300, 73, 16, 1493, 12946, 30, 1377, 4237, 1191, 3376, 261, 1886, 3397, 13, 300, 71, 16, 1493, 3353, 30, 3639, 4056, 18803, 317, 6732, 15, 9105, 4794, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 2589, 18, 11241, 18, 2626, 2932, 3660, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354, 30, 1756, 16, 279, 1300, 16, 805, 273, 374, 578, 279, 2346, 508, 300, 70, 16, 1493, 12124, 1100, 33, 12536, 12587, 30, 9846, 1100, 5141, 16, 805, 19332, 713, 300, 86, 16, 1493, 86, 3428, 299, 87, 30, 565, 4237, 534, 8047, 19, 1268, 55, 4693, 3325, 261, 1886, 3397, 13, 300, 92, 16, 1493, 92, 265, 92, 3674, 30, 282, 4237, 17888, 4693, 3325, 261, 1886, 3397, 13, 300, 73, 16, 1493, 12946, 30, 1377, 4237, 1191, 3376, 261, 1886, 3397, 2 ]
if type == "StartTag":
if type in ("StartTag", "EmptyTag"):
def is_optional_start(self, tagname, previous, next): type = next and next["type"] or None if tagname in 'html': # An html element's start tag may be omitted if the first thing # inside the html element is not a space character or a comment. return type not in ("Comment", "SpaceCharacters") elif tagname == 'head': # A head element's start tag may be omitted if the first thing # inside the head element is an element. return type == "StartTag" elif tagname == 'body': # A body element's start tag may be omitted if the first thing # inside the body element is not a space character or a comment, # except if the first thing inside the body element is a script # or style element and the node immediately preceding the body # element is a head element whose end tag has been omitted. if type in ("Comment", "SpaceCharacters"): return False elif type == "StartTag": # XXX: we do not look at the preceding event, so we never omit # the body element's start tag if it's followed by a script or # a style element. return next["name"] not in ('script', 'style') else: return True elif tagname == 'colgroup': # A colgroup element's start tag may be omitted if the first thing # inside the colgroup element is a col element, and if the element # is not immediately preceeded by another colgroup element whose # end tag has been omitted. if type == "StartTag": # XXX: we do not look at the preceding event, so instead we never # omit the colgroup element's end tag when it is immediately # followed by another colgroup element. See is_optional_end. return next["name"] == "col" else: return False elif tagname == 'tbody': # A tbody element's start tag may be omitted if the first thing # inside the tbody element is a tr element, and if the element is # not immediately preceeded by a tbody, thead, or tfoot element # whose end tag has been omitted. if type == "StartTag": # omit the thead and tfoot elements' end tag when they are # immediately followed by a tbody element. See is_optional_end. if previous and previous['type'] == 'EndTag' and \ previous['name'] in ('tbody','thead','tfoot'): return False return next["name"] == 'tr' else: return False return False
09dc1a278f77e93eaa8e6c131fce6cbfbc135a86 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9368/09dc1a278f77e93eaa8e6c131fce6cbfbc135a86/optionaltags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 10444, 67, 1937, 12, 2890, 16, 25586, 16, 2416, 16, 1024, 4672, 618, 273, 1024, 471, 1024, 9614, 723, 11929, 578, 599, 309, 25586, 316, 296, 2620, 4278, 468, 1922, 1729, 930, 1807, 787, 1047, 2026, 506, 16195, 309, 326, 1122, 7757, 468, 4832, 326, 1729, 930, 353, 486, 279, 3476, 3351, 578, 279, 2879, 18, 327, 618, 486, 316, 7566, 4469, 3113, 315, 3819, 11600, 7923, 1327, 25586, 422, 296, 1978, 4278, 468, 432, 910, 930, 1807, 787, 1047, 2026, 506, 16195, 309, 326, 1122, 7757, 468, 4832, 326, 910, 930, 353, 392, 930, 18, 327, 618, 422, 315, 30512, 6, 1327, 25586, 422, 296, 3432, 4278, 468, 432, 1417, 930, 1807, 787, 1047, 2026, 506, 16195, 309, 326, 1122, 7757, 468, 4832, 326, 1417, 930, 353, 486, 279, 3476, 3351, 578, 279, 2879, 16, 468, 1335, 309, 326, 1122, 7757, 4832, 326, 1417, 930, 353, 279, 2728, 468, 578, 2154, 930, 471, 326, 756, 7636, 19969, 326, 1417, 468, 930, 353, 279, 910, 930, 8272, 679, 1047, 711, 2118, 16195, 18, 309, 618, 316, 7566, 4469, 3113, 315, 3819, 11600, 6, 4672, 327, 1083, 1327, 618, 316, 7566, 30512, 3113, 315, 1921, 1805, 6, 4672, 468, 11329, 30, 732, 741, 486, 2324, 622, 326, 19969, 871, 16, 1427, 732, 5903, 14088, 468, 326, 1417, 930, 1807, 787, 1047, 309, 518, 1807, 10860, 635, 279, 2728, 578, 468, 279, 2154, 930, 18, 327, 1024, 9614, 529, 11929, 486, 316, 7707, 4263, 2187, 296, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 10444, 67, 1937, 12, 2890, 16, 25586, 16, 2416, 16, 1024, 4672, 618, 273, 1024, 471, 1024, 9614, 723, 11929, 578, 599, 309, 25586, 316, 296, 2620, 4278, 468, 1922, 1729, 930, 1807, 787, 1047, 2026, 506, 16195, 309, 326, 1122, 7757, 468, 4832, 326, 1729, 930, 353, 486, 279, 3476, 3351, 578, 279, 2879, 18, 327, 618, 486, 316, 7566, 4469, 3113, 315, 3819, 11600, 7923, 1327, 25586, 422, 296, 1978, 4278, 468, 432, 910, 930, 1807, 787, 1047, 2026, 506, 16195, 309, 326, 1122, 7757, 468, 4832, 326, 910, 930, 353, 392, 930, 18, 327, 618, 422, 315, 30512, 6, 1327, 25586, 422, 296, 3432, 4278, 468, 432, 1417, 930, 1807, 787, 1047, 2026, 2 ]
f = open('test_data/' + i)
f = open('test_data/bin_input/' + i)
def test_binary(self): for i, j in bin_samples: f = open('test_data/' + i) rec = MarcBinary(f.read()) edition_marc_bin = read_edition(rec) #print 'result:' #pprint(edition_marc_bin) #print #print 'expected:' #pprint(j) #print self.assertEqual(sorted(edition_marc_bin.keys()), sorted(j.keys())) print i for k in edition_marc_bin.keys(): if isinstance(j[k], list): for item1, item2 in zip(edition_marc_bin[k], j[k]): self.assertEqual(item1, item2)
a5057da2e7eea47e32d9fad221028ec7aa29f86b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/a5057da2e7eea47e32d9fad221028ec7aa29f86b/test_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8578, 12, 2890, 4672, 364, 277, 16, 525, 316, 4158, 67, 7319, 30, 284, 273, 1696, 2668, 3813, 67, 892, 19, 4757, 67, 2630, 2473, 397, 277, 13, 1950, 273, 490, 11828, 5905, 12, 74, 18, 896, 10756, 28432, 67, 3684, 71, 67, 4757, 273, 855, 67, 329, 608, 12, 3927, 13, 468, 1188, 296, 2088, 2497, 468, 84, 1188, 12, 329, 608, 67, 3684, 71, 67, 4757, 13, 468, 1188, 468, 1188, 296, 3825, 2497, 468, 84, 1188, 12, 78, 13, 468, 1188, 365, 18, 11231, 5812, 12, 10350, 12, 329, 608, 67, 3684, 71, 67, 4757, 18, 2452, 1435, 3631, 3115, 12, 78, 18, 2452, 1435, 3719, 1172, 277, 364, 417, 316, 28432, 67, 3684, 71, 67, 4757, 18, 2452, 13332, 309, 1549, 12, 78, 63, 79, 6487, 666, 4672, 364, 761, 21, 16, 761, 22, 316, 3144, 12, 329, 608, 67, 3684, 71, 67, 4757, 63, 79, 6487, 525, 63, 79, 65, 4672, 365, 18, 11231, 5812, 12, 1726, 21, 16, 761, 22, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8578, 12, 2890, 4672, 364, 277, 16, 525, 316, 4158, 67, 7319, 30, 284, 273, 1696, 2668, 3813, 67, 892, 19, 4757, 67, 2630, 2473, 397, 277, 13, 1950, 273, 490, 11828, 5905, 12, 74, 18, 896, 10756, 28432, 67, 3684, 71, 67, 4757, 273, 855, 67, 329, 608, 12, 3927, 13, 468, 1188, 296, 2088, 2497, 468, 84, 1188, 12, 329, 608, 67, 3684, 71, 67, 4757, 13, 468, 1188, 468, 1188, 296, 3825, 2497, 468, 84, 1188, 12, 78, 13, 468, 1188, 365, 18, 11231, 5812, 12, 10350, 12, 329, 608, 67, 3684, 71, 67, 4757, 18, 2452, 1435, 3631, 3115, 12, 78, 18, 2452, 1435, 3719, 1172, 277, 364, 417, 316, 28432, 67, 2 ]
site = insite.getSite(code = code) if site in ar: del ar[ar.index(site)] ar2 = ar2 + [site]
if code in getSite().family.langs: site = insite.getSite(code = code) if site in ar: del ar[ar.index(site)] ar2 = ar2 + [site]
def interwikiFormat(links, insite = None): """Create a suitable string encoding all interwiki links for a wikipedia page. 'links' should be a dictionary with the language names as keys, and either PageLink objects or the link-names of the pages as values. The string is formatted for inclusion in insite (defaulting to your own). """ if insite is None: insite = getSite() if not links: return '' # Security check: site may not refer to itself. for pl in links.values(): if pl.site()==insite: raise ValueError("Trying to add interwiki link to self") s = [] ar = links.keys() ar.sort() putfirst = insite.interwiki_putfirst() if putfirst: #In this case I might have to change the order ar2 = [] for code in putfirst: site = insite.getSite(code = code) if site in ar: del ar[ar.index(site)] ar2 = ar2 + [site] ar = ar2 + ar for site in ar: try: s.append(links[site].aslink()) except AttributeError: s.append('[[%s:%s]]' % (site.linkto(links[site],othersite=insite))) if insite.lang in config.interwiki_on_one_line: sep = ' ' else: sep = '\r\n' s=sep.join(s) + '\r\n' return s
a6cca3acccc5b1a49a5aebc13a06bfd2110233a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/a6cca3acccc5b1a49a5aebc13a06bfd2110233a0/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1554, 13044, 1630, 12, 7135, 16, 2763, 1137, 273, 599, 4672, 3536, 1684, 279, 10631, 533, 2688, 777, 1554, 13044, 4716, 364, 279, 21137, 1363, 18, 225, 296, 7135, 11, 1410, 506, 279, 3880, 598, 326, 2653, 1257, 487, 1311, 16, 471, 3344, 3460, 2098, 2184, 578, 326, 1692, 17, 1973, 434, 326, 4689, 487, 924, 18, 225, 1021, 533, 353, 4955, 364, 26485, 316, 2763, 1137, 261, 1886, 310, 358, 3433, 4953, 2934, 3536, 309, 2763, 1137, 353, 599, 30, 2763, 1137, 273, 11021, 1435, 309, 486, 4716, 30, 327, 875, 468, 6036, 866, 30, 2834, 2026, 486, 8884, 358, 6174, 18, 364, 886, 316, 4716, 18, 2372, 13332, 309, 886, 18, 4256, 1435, 631, 2679, 1137, 30, 1002, 2068, 2932, 18038, 358, 527, 1554, 13044, 1692, 358, 365, 7923, 272, 273, 5378, 419, 273, 4716, 18, 2452, 1435, 419, 18, 3804, 1435, 1378, 3645, 273, 2763, 1137, 18, 2761, 13044, 67, 458, 3645, 1435, 309, 1378, 3645, 30, 468, 382, 333, 648, 467, 4825, 1240, 358, 2549, 326, 1353, 419, 22, 273, 5378, 364, 981, 316, 1378, 3645, 30, 309, 981, 316, 11021, 7675, 9309, 18, 4936, 87, 30, 2834, 273, 2763, 1137, 18, 588, 4956, 12, 710, 273, 981, 13, 309, 2834, 316, 419, 30, 1464, 419, 63, 297, 18, 1615, 12, 4256, 25887, 419, 22, 273, 419, 22, 397, 306, 4256, 65, 419, 273, 419, 22, 397, 419, 364, 2834, 316, 419, 30, 775, 30, 272, 18, 6923, 12, 7135, 63, 4256, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1554, 13044, 1630, 12, 7135, 16, 2763, 1137, 273, 599, 4672, 3536, 1684, 279, 10631, 533, 2688, 777, 1554, 13044, 4716, 364, 279, 21137, 1363, 18, 225, 296, 7135, 11, 1410, 506, 279, 3880, 598, 326, 2653, 1257, 487, 1311, 16, 471, 3344, 3460, 2098, 2184, 578, 326, 1692, 17, 1973, 434, 326, 4689, 487, 924, 18, 225, 1021, 533, 353, 4955, 364, 26485, 316, 2763, 1137, 261, 1886, 310, 358, 3433, 4953, 2934, 3536, 309, 2763, 1137, 353, 599, 30, 2763, 1137, 273, 11021, 1435, 309, 486, 4716, 30, 327, 875, 468, 6036, 866, 30, 2834, 2026, 486, 8884, 358, 6174, 18, 364, 886, 316, 4716, 18, 2372, 13332, 309, 886, 18, 4256, 1435, 631, 2679, 1137, 2 ]
words = words + get_class_members(object.__class__)
words.extend(get_class_members(thisobject.__class__))
def attr_matches(self, text): """Compute matches when text contains a dot.
311279bc75ca8640eb928be4079866f776eb390d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/311279bc75ca8640eb928be4079866f776eb390d/rlcompleter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1604, 67, 8436, 12, 2890, 16, 977, 4672, 3536, 7018, 1885, 1347, 977, 1914, 279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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1604, 67, 8436, 12, 2890, 16, 977, 4672, 3536, 7018, 1885, 1347, 977, 1914, 279, 3928, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Return a list of all keywords, built-in functions and names currently defines in __main__ that match.
Return a list of all keywords, built-in functions and names currently defined in self.namespace that match.
def global_matches(self, text): """Compute matches when text is a simple name.
d18d418fb2a9d39a9807f353a7759bd968c14cf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d18d418fb2a9d39a9807f353a7759bd968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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2552, 67, 8436, 12, 2890, 16, 977, 4672, 3536, 7018, 1885, 1347, 977, 353, 279, 4143, 508, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
why = os.strerror(err.errno)
why = _strerror(err)
def ftp_MKD(self, line): """Create the specified directory.""" path = self.fs.translate(line)
93acc72ebc75fdf3b1931c4e1f9e2f2d830514c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/93acc72ebc75fdf3b1931c4e1f9e2f2d830514c9/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 49, 47, 40, 12, 2890, 16, 980, 4672, 3536, 1684, 326, 1269, 1867, 12123, 589, 273, 365, 18, 2556, 18, 13929, 12, 1369, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 49, 47, 40, 12, 2890, 16, 980, 4672, 3536, 1684, 326, 1269, 1867, 12123, 589, 273, 365, 18, 2556, 18, 13929, 12, 1369, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Note that the pattern uses match, so you need the whole filename """ match = pattern.match(line) if match: return match.group(1) else: return None
Note that the pattern uses match, so you need the whole filename """ match = pattern.match(line) if match: return match.group(1) else: return None
def re_scan(pattern, line): """ First check to see whether the pattern matches. (eg. Does it match "linux-2.6.\d.tar.bz2" ?) Then we strip out the actual trigger itself from that, and return it. (eg. return "2.6.\d") Note that the pattern uses match, so you need the whole filename """ match = pattern.match(line) if match: return match.group(1) else: return None
e66b9f5063d72ade1724ec2ef6d1edfee61a9065 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/e66b9f5063d72ade1724ec2ef6d1edfee61a9065/trigger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 67, 9871, 12, 4951, 16, 980, 4672, 3536, 5783, 866, 358, 2621, 2856, 326, 1936, 1885, 18, 261, 1332, 18, 9637, 518, 845, 315, 20132, 17, 22, 18, 26, 8403, 72, 18, 11718, 18, 25292, 22, 6, 692, 13, 9697, 732, 2569, 596, 326, 3214, 3080, 6174, 628, 716, 16, 471, 327, 518, 18, 261, 1332, 18, 327, 315, 22, 18, 26, 8403, 72, 7923, 3609, 716, 326, 1936, 4692, 845, 16, 1427, 1846, 1608, 326, 7339, 1544, 3536, 845, 273, 1936, 18, 1916, 12, 1369, 13, 309, 845, 30, 327, 845, 18, 1655, 12, 21, 13, 469, 30, 327, 599, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 18, 26, 8403, 72, 18, 11718, 18, 25292, 22, 6, 692, 13, 9697, 732, 2569, 596, 326, 3214, 3080, 6174, 628, 716, 16, 471, 327, 518, 18, 261, 1332, 18, 327, 315, 22, 18, 26, 8403, 72, 7923, 3609, 716, 326, 1936, 4692, 845, 16, 1427, 1846, 1608, 326, 7339, 1544, 3536, 845, 273, 1936, 18, 1916, 12, 1369, 13, 309, 845, 30, 327, 845, 18, 1655, 12, 21, 13, 469, 30, 327, 599, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, counts = {}, modules = {}): self.counts = counts.copy() self.modules = modules.copy()
def __init__(self, counts=None, calledfuncs=None, infile=None, outfile=None): self.counts = counts if self.counts is None: self.counts = {} self.counter = self.counts.copy() self.calledfuncs = calledfuncs if self.calledfuncs is None: self.calledfuncs = {} self.calledfuncs = self.calledfuncs.copy() self.infile = infile self.outfile = outfile if self.infile: try: thingie = pickle.load(open(self.infile, 'r')) if type(thingie) is types.DictType: self.update(self.__class__(thingie)) elif type(thingie) is types.TupleType and len(thingie) == 2: (counts, calledfuncs,) = thingie self.update(self.__class__(counts, calledfuncs)) except (IOError, EOFError,): pass except pickle.UnpicklingError: self.update(self.__class__(marshal.load(open(self.infile))))
def __init__(self, counts = {}, modules = {}): self.counts = counts.copy() # map (filename, lineno) to count self.modules = modules.copy() # map filenames to modules
c477681c3a8034551a1e2f52cb1b8688b955b46f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c477681c3a8034551a1e2f52cb1b8688b955b46f/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6880, 273, 10615, 4381, 273, 2618, 4672, 365, 18, 8008, 273, 6880, 18, 3530, 1435, 565, 468, 852, 261, 3459, 16, 7586, 13, 358, 1056, 365, 18, 6400, 273, 4381, 18, 3530, 1435, 225, 468, 852, 9066, 358, 4381, 2, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6880, 273, 10615, 4381, 273, 2618, 4672, 365, 18, 8008, 273, 6880, 18, 3530, 1435, 565, 468, 852, 261, 3459, 16, 7586, 13, 358, 1056, 365, 18, 6400, 273, 4381, 18, 3530, 1435, 225, 468, 852, 9066, 358, 4381, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Pixmap, [cty.POINTER(FL_IMAGE), FL_WINDOW],
Pixmap, [cty.POINTER(FL_IMAGE), FL_WINDOW],
def flimage_from_pixmap(pImage, pixmap): """ flimage_from_pixmap(pImage, pixmap) -> num. """ retval = _flimage_from_pixmap(pImage, pixmap) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 2080, 67, 14861, 1458, 12, 84, 2040, 16, 11871, 1458, 4672, 3536, 1183, 2730, 67, 2080, 67, 14861, 1458, 12, 84, 2040, 16, 11871, 1458, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 2730, 67, 2080, 67, 14861, 1458, 12, 84, 2040, 16, 11871, 1458, 13, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
and self.same_exception_signature_as_resolved_type(other_type)
and self.same_exception_signature_as_resolved_type(other_type) \ and self.nogil == other_type.nogil def pointer_assignable_from_resolved_type(self, other_type): return self.same_c_signature_as_resolved_type(other_type) \ and self.same_exception_signature_as_resolved_type(other_type) \ and not (self.nogil and not other_type.nogil)
def same_as_resolved_type(self, other_type, as_cmethod = 0): return self.same_c_signature_as_resolved_type(other_type, as_cmethod) \ and self.same_exception_signature_as_resolved_type(other_type)
ab9b3aa206b1e1fca31362459f381a926cc326b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2099/ab9b3aa206b1e1fca31362459f381a926cc326b7/PyrexTypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1967, 67, 345, 67, 11792, 67, 723, 12, 2890, 16, 1308, 67, 723, 16, 487, 67, 71, 2039, 273, 374, 4672, 327, 365, 18, 14307, 67, 71, 67, 8195, 67, 345, 67, 11792, 67, 723, 12, 3011, 67, 723, 16, 487, 67, 71, 2039, 13, 521, 471, 365, 18, 14307, 67, 4064, 67, 8195, 67, 345, 67, 11792, 67, 723, 12, 3011, 67, 723, 13, 521, 471, 365, 18, 82, 717, 330, 422, 1308, 67, 723, 18, 82, 717, 330, 225, 1652, 4407, 67, 6145, 429, 67, 2080, 67, 11792, 67, 723, 12, 2890, 16, 1308, 67, 723, 4672, 327, 365, 18, 14307, 67, 71, 67, 8195, 67, 345, 67, 11792, 67, 723, 12, 3011, 67, 723, 13, 521, 471, 365, 18, 14307, 67, 4064, 67, 8195, 67, 345, 67, 11792, 67, 723, 12, 3011, 67, 723, 13, 521, 471, 486, 261, 2890, 18, 82, 717, 330, 471, 486, 1308, 67, 723, 18, 82, 717, 330, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 8195, 67, 345, 67, 11792, 67, 723, 12, 3011, 67, 723, 13, 521, 471, 365, 18, 82, 717, 330, 422, 1308, 67, 723, 18, 82, 717, 330, 225, 1652, 4407, 67, 6145, 429, 67, 2080, 67, 11792, 67, 723, 12, 2890, 16, 1308, 67, 723, 4672, 327, 365, 18, 14307, 67, 71, 67, 8195, 67, 345, 67, 11792, 67, 723, 12, 3011, 67, 723, 13, 2 ]
raise URLError(msg)
raise urllib2.URLError(msg)
def ftp_open(self, req): host = req.get_host() if not host: raise IOError, ('ftp error', 'no host given') host, port = splitport(host) if port is None: port = ftplib.FTP_PORT
910f95a098f1a90682e47d55fc5c2b6a80026f06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7001/910f95a098f1a90682e47d55fc5c2b6a80026f06/byterange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 3190, 12, 2890, 16, 1111, 4672, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 296, 2135, 1479, 864, 6134, 1479, 16, 1756, 273, 1416, 655, 12, 2564, 13, 309, 1756, 353, 599, 30, 1756, 273, 11038, 6673, 18, 17104, 67, 6354, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 1479, 273, 1111, 18, 588, 67, 2564, 1435, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 296, 2135, 1479, 864, 6134, 1479, 16, 1756, 273, 1416, 655, 12, 2564, 13, 309, 1756, 353, 599, 30, 1756, 273, 11038, 6673, 18, 17104, 67, 6354, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
datatype = self.get_datatype(name)
datatype = self.get_record_datatype(name)
def load_state_from_ical_file(self, file): """Load state from the given ical file. """ self.reset() self.set_changed()
3e621f65f9697086bc4bb430b238d0ff6f2b55ff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/3e621f65f9697086bc4bb430b238d0ff6f2b55ff/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2019, 67, 2080, 67, 1706, 67, 768, 12, 2890, 16, 585, 4672, 3536, 2563, 919, 628, 326, 864, 277, 771, 585, 18, 3536, 365, 18, 6208, 1435, 365, 18, 542, 67, 6703, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2019, 67, 2080, 67, 1706, 67, 768, 12, 2890, 16, 585, 4672, 3536, 2563, 919, 628, 326, 864, 277, 771, 585, 18, 3536, 365, 18, 6208, 1435, 365, 18, 542, 67, 6703, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if prefix: outStr = '%s %s' % (prefix, outStr)
if prefixes: outStr = '%%s %s' % (outStr,)
def wrap(*args,**kwargs): if args: rArgs = [args[0].__class__.__name__ + ', '] else: rArgs = []
b3c75ef6790058aadf797b0280da9100f372364a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/b3c75ef6790058aadf797b0280da9100f372364a/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 30857, 1968, 16, 636, 4333, 4672, 309, 833, 30, 436, 2615, 273, 306, 1968, 63, 20, 8009, 972, 1106, 972, 16186, 529, 972, 397, 2265, 12671, 469, 30, 436, 2615, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 30857, 1968, 16, 636, 4333, 4672, 309, 833, 30, 436, 2615, 273, 306, 1968, 63, 20, 8009, 972, 1106, 972, 16186, 529, 972, 397, 2265, 12671, 469, 30, 436, 2615, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (recd.type == recd.server.ca.m.TYPE_AUDIO):
if (recd.type == self.server.ca.m.TYPE_AUDIO):
def translate_path(self, path): #todo: what to return here if not returning a file or how to handle errors? urlp = urlparse.urlparse(path) urls = urlp[2] urls = posixpath.normpath(urllib.unquote(urls)) urlPath = urls.split('/') urlPath = filter(None, urlPath)
66a83c1c103d3e11c411439a29400aa4b79d7359 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6451/66a83c1c103d3e11c411439a29400aa4b79d7359/mesh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 67, 803, 12, 2890, 16, 589, 4672, 468, 9012, 30, 4121, 358, 327, 2674, 309, 486, 5785, 279, 585, 578, 3661, 358, 1640, 1334, 35, 880, 84, 273, 15185, 18, 718, 2670, 12, 803, 13, 6903, 273, 880, 84, 63, 22, 65, 6903, 273, 16366, 803, 18, 7959, 803, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 67, 803, 12, 2890, 16, 589, 4672, 468, 9012, 30, 4121, 358, 327, 2674, 309, 486, 5785, 279, 585, 578, 3661, 358, 1640, 1334, 35, 880, 84, 273, 15185, 18, 718, 2670, 12, 803, 13, 6903, 273, 880, 84, 63, 22, 65, 6903, 273, 16366, 803, 18, 7959, 803, 12, 718, 2941, 18, 318, 6889, 12, 10518, 3719, 26186, 273, 6903, 18, 4939, 2668, 2473, 13, 26186, 273, 1034, 12, 7036, 16, 26186, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
line_total = line_total - currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, inv.tax_amount)
line_total = line_total - currency_pool.compute(cr, uid, inv.currency_id.id, company_currency, inv.tax_amount, context=context_multi_currency)
def _get_payment_term_lines(term_id, amount): term_pool = self.pool.get('account.payment.term') if term_id and amount: terms = term_pool.compute(cr, uid, term_id, amount) return terms return False
02af34f56048406372b55ae89131f75f8d3688e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/02af34f56048406372b55ae89131f75f8d3688e5/account_voucher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 9261, 67, 6408, 67, 3548, 12, 6408, 67, 350, 16, 3844, 4672, 2481, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 9261, 18, 6408, 6134, 309, 2481, 67, 350, 471, 3844, 30, 6548, 273, 2481, 67, 6011, 18, 9200, 12, 3353, 16, 4555, 16, 2481, 67, 350, 16, 3844, 13, 327, 6548, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 588, 67, 9261, 67, 6408, 67, 3548, 12, 6408, 67, 350, 16, 3844, 4672, 2481, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 9261, 18, 6408, 6134, 309, 2481, 67, 350, 471, 3844, 30, 6548, 273, 2481, 67, 6011, 18, 9200, 12, 3353, 16, 4555, 16, 2481, 67, 350, 16, 3844, 13, 327, 6548, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
buff = [] if client_address in client: client[client_address][serverMac] = {"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()}
if client_address not in client: client[client_address] ={}
def newconn(socket, frame): # INIT SERVER # TODO handle the -1 connbuff size option if frame.frameMesgType == INIT_SERVER: print "Connected to new server: "+frame.frameMACAddress # declare a new buffer to store data from clients to the server buff = [] # setup the main server data structure server[frame.frameMACAddress] = {"socket":socket, "default_server_buff_size":int(frame.frameContent),"to_server_buff":buff} # send a response to the server resp = NATFrame() resp.initAsForwarderResponse(STATUS_CONFIRMED) try: socket.send(resp.toString()) except Exception, e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise drop_server(frame.frameMACAddress) print "SocketError occured sending Status_Confirm Response to server: "+frame.frameMACAddress # launch threads to handle this server settimer(0,read_from_server,[frame.frameMACAddress]) settimer(0,write_to_server,[frame.frameMACAddress]) # INIT CLIENT elif frame.frameMesgType == INIT_CLIENT: serverMac = frame.frameContent found_server = (serverMac in server) # is the server available if found_server: this_server = server[serverMac] client_address = frame.frameMACAddress print "Connected Client: "+client_address+" to server: "+serverMac # buffer for messages from server to client buff = [] # is the client already connected if client_address in client: client[client_address][serverMac] = {"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()} # is this an initial connection else: client[frame.frameMACAddress]= {serverMac:{"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()}} # send a response resp = NATFrame() resp.initAsForwarderResponse(STATUS_CONFIRMED) try: socket.send(resp.toString()) except Exception, e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise print "SocketError occured sending Status Confirmed to client: "+client_address drop_client(frame.frameMACAddress,serverMac) print "Dropped Client: "+client_address return # Tell the server it has this client this_server['to_server_buff'].append(frame.toString()) # start threads to read and write from this client socket settimer(0,read_from_client,[client_address,serverMac]) settimer(0,write_to_client,[client_address,serverMac]) # The server is not available else: resp = NATFrame() resp.initAsForwarderResponse(STATUS_NO_SERVER) try: socket.send(resp.toString()) except Exception,e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise print "SocketError occured sending STATUS_NO_SERVER to client: "+frame.frameMACAddress drop_client(frame.frameMACAddress,serverMac) print frame.frameMACAddress+" has been dropped"
af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9/forwarder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 4646, 12, 7814, 16, 2623, 4672, 225, 468, 12584, 15061, 468, 2660, 1640, 326, 300, 21, 1487, 20664, 963, 1456, 309, 2623, 18, 3789, 49, 281, 75, 559, 422, 12584, 67, 4370, 30, 225, 1172, 315, 8932, 358, 394, 1438, 30, 13773, 3789, 18, 3789, 10875, 1887, 225, 468, 14196, 279, 394, 1613, 358, 1707, 501, 628, 7712, 358, 326, 1438, 6139, 273, 225, 5378, 225, 468, 3875, 326, 2774, 1438, 501, 3695, 1438, 63, 3789, 18, 3789, 10875, 1887, 65, 273, 12528, 7814, 6877, 7814, 16, 315, 1886, 67, 3567, 67, 20664, 67, 1467, 6877, 474, 12, 3789, 18, 3789, 1350, 3631, 6, 869, 67, 3567, 67, 20664, 6877, 20664, 97, 225, 468, 1366, 279, 766, 358, 326, 1438, 1718, 273, 31395, 3219, 1435, 1718, 18, 2738, 1463, 30839, 1064, 12, 8608, 67, 2248, 1653, 54, 25773, 13, 775, 30, 2987, 18, 4661, 12, 12243, 18, 10492, 10756, 1335, 1185, 16, 425, 30, 309, 315, 7814, 6, 486, 316, 609, 12, 723, 12, 73, 3719, 471, 315, 4534, 6, 486, 316, 609, 12, 73, 4672, 1002, 3640, 67, 3567, 12, 3789, 18, 3789, 10875, 1887, 13, 1172, 315, 4534, 668, 16206, 5431, 2685, 67, 11269, 2306, 358, 1438, 30, 13773, 3789, 18, 3789, 10875, 1887, 225, 468, 8037, 7403, 358, 1640, 333, 1438, 444, 12542, 12, 20, 16, 896, 67, 2080, 67, 3567, 16, 63, 3789, 18, 3789, 10875, 1887, 5717, 444, 12542, 12, 20, 16, 2626, 67, 869, 67, 3567, 16, 63, 3789, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 4646, 12, 7814, 16, 2623, 4672, 225, 468, 12584, 15061, 468, 2660, 1640, 326, 300, 21, 1487, 20664, 963, 1456, 309, 2623, 18, 3789, 49, 281, 75, 559, 422, 12584, 67, 4370, 30, 225, 1172, 315, 8932, 358, 394, 1438, 30, 13773, 3789, 18, 3789, 10875, 1887, 225, 468, 14196, 279, 394, 1613, 358, 1707, 501, 628, 7712, 358, 326, 1438, 6139, 273, 225, 5378, 225, 468, 3875, 326, 2774, 1438, 501, 3695, 1438, 63, 3789, 18, 3789, 10875, 1887, 65, 273, 12528, 7814, 6877, 7814, 16, 315, 1886, 67, 3567, 67, 20664, 67, 1467, 6877, 474, 12, 3789, 18, 3789, 1350, 3631, 6, 869, 67, 3567, 67, 20664, 6877, 20664, 97, 225, 468, 1366, 279, 766, 2 ]
print 'subscribe window hiding'
def cancel(self, button): self.addWin.hide() print 'subscribe window hiding'
9451e391459a5473d7e32928f0343a891a9fc552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/9451e391459a5473d7e32928f0343a891a9fc552/managergui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 16, 3568, 4672, 365, 18, 1289, 18049, 18, 11248, 1435, 1172, 296, 9174, 2742, 366, 10415, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 16, 3568, 4672, 365, 18, 1289, 18049, 18, 11248, 1435, 1172, 296, 9174, 2742, 366, 10415, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for name in self.cookies.keys(): value,expires,domain,path,secure=self.cookies[name] cookie='set-cookie: %s=%s' % (name,value) if expires: cookie = "%s; expires=%s" % (cookie,expires) if domain: cookie = "%s; domain=%s" % (cookie,domain) if path: cookie = "%s; path=%s" % (cookie,path) if secure: cookie = cookie+'; secure'
for name, attrs in self.cookies.items(): if attrs.has_key('expires'): cookie='set-cookie: %s="%s"' % (name,attrs['value']) else: cookie=('set-cookie: %s="%s"; Version="1"' % (name,attrs['value'])) for name, v in attrs.items(): if name=='expires': cookie = '%s; Expires="%s"' % (cookie,v) elif name=='domain': cookie = '%s; Domain="%s"' % (cookie,v) elif name=='path': cookie = '%s; Path=%s' % (cookie,v) elif name=='max_age': cookie = '%s; Max-Age="%s"' % (cookie,v) elif name=='comment': cookie = '%s; Comment="%s"' % (cookie,v) elif name=='secure': cookie = '%s; Secure' % cookie elif name!='value': raise ValueError, ( 'Invalid cookie attribute, %s' % name)
def _cookie_list(self):
b848b28c6e7efd6f3933bba219f4532ebd6acb2a /local1/tlut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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8417, 67, 1098, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if tmp.adjusted() % 2 == 0:
if tmp.adjusted() & 1 == 0:
def sqrt(self, context=None): """Return the square root of self.
61992efc4bb413ae7a19752215eca5af09be6b6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/61992efc4bb413ae7a19752215eca5af09be6b6d/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5700, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 990, 326, 8576, 1365, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5700, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 990, 326, 8576, 1365, 434, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.pychecker.check()
if self.confirmSave(): self.pychecker.check()
def check_source_with_pychecker(self): """Check source with pychecker""" self.pychecker.check()
d28ff278579f062f6670d34570f1c48d68985bd3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2464/d28ff278579f062f6670d34570f1c48d68985bd3/Child.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3168, 67, 1918, 67, 2074, 19243, 12, 2890, 4672, 3536, 1564, 1084, 598, 2395, 19243, 8395, 365, 18, 2074, 19243, 18, 1893, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 866, 67, 3168, 67, 1918, 67, 2074, 19243, 12, 2890, 4672, 3536, 1564, 1084, 598, 2395, 19243, 8395, 365, 18, 2074, 19243, 18, 1893, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not(os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")):
if not (os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")):
def MakeInstallerLinux(): import compileall if RUNTIME: # No worries, it won't be used PYTHONV="python" else: PYTHONV=SDK["PYTHONVERSION"] PV=PYTHONV.replace("python", "") if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") oscmd("mkdir linuxroot") # Invoke installpanda.py to install it into a temporary dir if RUNTIME: InstallRuntime(destdir = "linuxroot", outputdir = GetOutputDir()) else: InstallPanda(destdir = "linuxroot", outputdir = GetOutputDir()) oscmd("chmod -R 755 linuxroot/usr/share/panda3d") if (os.path.exists("/usr/bin/rpmbuild") and not os.path.exists("/usr/bin/dpkg-deb")): oscmd("rm -rf linuxroot/DEBIAN") oscmd("rpm -E '%_target_cpu' > "+GetOutputDir()+"/tmp/architecture.txt") ARCH=ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip() pandasource = os.path.abspath(os.getcwd()) txt = INSTALLER_SPEC_FILE[1:].replace("VERSION",VERSION).replace("PANDASOURCE",pandasource).replace("PYTHONV",PYTHONV).replace("PV",PV) WriteFile("panda3d.spec", txt) oscmd("rpmbuild --define '_rpmdir "+pandasource+"' --root "+pandasource+" --buildroot linuxroot -bb panda3d.spec") oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .") oscmd("rmdir "+ARCH, True) if (os.path.exists("/usr/bin/dpkg-deb")): oscmd("dpkg --print-architecture > "+GetOutputDir()+"/tmp/architecture.txt") ARCH=ReadFile(GetOutputDir()+"/tmp/architecture.txt").strip() if RUNTIME: txt = RUNTIME_INSTALLER_DEB_FILE[1:] else: txt = INSTALLER_DEB_FILE[1:] txt = txt.replace("VERSION",str(VERSION)).replace("PYTHONV",PYTHONV).replace("ARCH",ARCH).replace("PV",PV) oscmd("mkdir --mode=0755 -p linuxroot/DEBIAN") oscmd("cd linuxroot ; (find usr -type f -exec md5sum {} \;) > DEBIAN/md5sums") if (not RUNTIME): oscmd("cd linuxroot ; (find etc -type f -exec md5sum {} \;) >> DEBIAN/md5sums") WriteFile("linuxroot/DEBIAN/conffiles","/etc/Config.prc\n") WriteFile("linuxroot/DEBIAN/control",txt) WriteFile("linuxroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n") oscmd("cp linuxroot/DEBIAN/postinst linuxroot/DEBIAN/postrm") oscmd("chmod -R 755 linuxroot/DEBIAN") if (RUNTIME): oscmd("dpkg-deb -b linuxroot panda3d-runtime_"+VERSION+"_"+ARCH+".deb") else: oscmd("dpkg-deb -b linuxroot panda3d_"+VERSION+"_"+ARCH+".deb") oscmd("chmod -R 755 linuxroot") if not(os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")): exit("To build an installer, either rpmbuild or dpkg-deb must be present on your system!")
b4ded0c5fe8af93b51de55ac7cbdd44413792565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b4ded0c5fe8af93b51de55ac7cbdd44413792565/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 19475, 13332, 1930, 4074, 454, 309, 534, 25375, 30, 468, 2631, 14591, 566, 281, 16, 518, 8462, 1404, 506, 1399, 12191, 20131, 58, 1546, 8103, 6, 469, 30, 12191, 20131, 58, 33, 22625, 9614, 16235, 20131, 5757, 11929, 27102, 33, 16235, 20131, 58, 18, 2079, 2932, 8103, 3113, 1408, 13, 309, 261, 538, 18, 803, 18, 291, 1214, 2932, 20132, 3085, 6, 3719, 30, 31476, 1264, 2932, 343, 1711, 300, 54, 2371, 2539, 19725, 3085, 7923, 31476, 1264, 2932, 8864, 300, 5809, 19725, 3085, 501, 18, 11718, 18, 9764, 3325, 18, 11718, 18, 9764, 293, 464, 69, 23, 72, 18, 2793, 7923, 31476, 1264, 2932, 26686, 19725, 3085, 7923, 225, 468, 14373, 3799, 84, 464, 69, 18, 2074, 358, 3799, 518, 1368, 279, 6269, 1577, 309, 534, 25375, 30, 10284, 5576, 12, 10488, 1214, 273, 315, 20132, 3085, 3113, 876, 1214, 273, 968, 1447, 1621, 10756, 469, 30, 10284, 52, 464, 69, 12, 10488, 1214, 273, 315, 20132, 3085, 3113, 876, 1214, 273, 968, 1447, 1621, 10756, 31476, 1264, 2932, 343, 1711, 300, 54, 2371, 2539, 19725, 3085, 19, 13640, 19, 14419, 19, 84, 464, 69, 23, 72, 7923, 225, 309, 261, 538, 18, 803, 18, 1808, 2932, 19, 13640, 19, 4757, 19, 13832, 1627, 680, 7923, 471, 486, 1140, 18, 803, 18, 1808, 2932, 19, 13640, 19, 4757, 19, 72, 10657, 17, 31888, 6, 3719, 30, 31476, 1264, 2932, 8864, 300, 5809, 19725, 3085, 19, 1639, 38, 21634, 7923, 31476, 1264, 2932, 86, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 19475, 13332, 1930, 4074, 454, 309, 534, 25375, 30, 468, 2631, 14591, 566, 281, 16, 518, 8462, 1404, 506, 1399, 12191, 20131, 58, 1546, 8103, 6, 469, 30, 12191, 20131, 58, 33, 22625, 9614, 16235, 20131, 5757, 11929, 27102, 33, 16235, 20131, 58, 18, 2079, 2932, 8103, 3113, 1408, 13, 309, 261, 538, 18, 803, 18, 291, 1214, 2932, 20132, 3085, 6, 3719, 30, 31476, 1264, 2932, 343, 1711, 300, 54, 2371, 2539, 19725, 3085, 7923, 31476, 1264, 2932, 8864, 300, 5809, 19725, 3085, 501, 18, 11718, 18, 9764, 3325, 18, 11718, 18, 9764, 293, 464, 69, 23, 72, 18, 2793, 7923, 31476, 1264, 2932, 26686, 19725, 3085, 7923, 225, 468, 14373, 3799, 84, 464, 69, 2 ]
editor = os.getenv("EDITOR", "vi") displayNote(bottom, "File not found. Do you want to create this file using " + os.path.basename(editor) + " ? (y/n) ", core_state["x"] - 1) if (ord('y') == bottom.getch(0, 0)): os.spawnlp(os.P_WAIT, editor, real_path)
displayNote (bottom, "File not found. Do you want to create this file? [y/N] ", core_state["x"] - 1) response = bottom.getch (0, 0) if ord ('y') == response or ord ('Y') == response: invokeEditor (editor, real_path) curses.reset_prog_mode () curses.curs_set(1) curses.curs_set(0)
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Change to the base path. os.chdir (os.path.dirname (starting_filename)) core_state["curr_base_path"] = "" # There are three windows: a top status bar, a primary screen, and a bottom # status bar. There is also the main screen, of course. Create them. top = meta_screen.subwin (1, meta_x, 0, 0) main = meta_screen.subwin (meta_y - 2, meta_x, 1, 0) bottom = meta_screen.subwin (1, meta_x, meta_y - 1, 0) # Read in the configuration. config = core_state["config"] = generateConfiguration () # Okay. History's actually a bad name for this right now, but it'll have # to do. This is a list of pages; it normally tracks history, but can # also track search results. At the beginning, the only element in the # history is the starting page; others will be added, subtracted, etc. core_state["history"] = [] historyAdd(core_state, os.path.basename (starting_filename)) core_state["history_position"] = 0 fresh_page = True done = False curses.def_prog_mode () main_needs_redraw = True while not done: current_loc = core_state["history"][core_state["history_position"]] if fresh_page: filename = current_loc["filename"] core_state["curr_base_path"] = os.path.dirname (filename) readHyltFile (filename, core_state)
dffc05987167f1e73f81ee3a2be7db157a9223cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/dffc05987167f1e73f81ee3a2be7db157a9223cd/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 7576, 358, 326, 1026, 589, 18, 1140, 18, 343, 1214, 261, 538, 18, 803, 18, 12287, 261, 18526, 67, 3459, 3719, 2922, 67, 2019, 9614, 17016, 67, 1969, 67, 803, 11929, 273, 1408, 282, 468, 6149, 854, 8925, 9965, 30, 279, 1760, 1267, 4653, 16, 279, 3354, 5518, 16, 471, 279, 5469, 468, 1267, 4653, 18, 225, 6149, 353, 2546, 326, 2774, 5518, 16, 434, 4362, 18, 225, 1788, 2182, 18, 1760, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 21, 16, 2191, 67, 92, 16, 374, 16, 374, 13, 2774, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 3901, 67, 93, 300, 576, 16, 2191, 67, 92, 16, 404, 16, 374, 13, 5469, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 21, 16, 2191, 67, 92, 16, 2191, 67, 93, 300, 404, 16, 374, 13, 225, 468, 2720, 316, 326, 1664, 18, 642, 273, 2922, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 7576, 358, 326, 1026, 589, 18, 1140, 18, 343, 1214, 261, 538, 18, 803, 18, 12287, 261, 18526, 67, 2 ]
0x00b4: 0x0403,
0x00b4: 0x0404,
def getregentry(): return (Codec().encode,Codec().decode,StreamReader,StreamWriter)
b908ae68b729e61b4747f467f9d160ec3ec8cf6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b908ae68b729e61b4747f467f9d160ec3ec8cf6d/koi8_u.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1574, 4099, 13332, 225, 327, 261, 11008, 7675, 3015, 16, 11008, 7675, 3922, 16, 31495, 16, 29421, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1574, 4099, 13332, 225, 327, 261, 11008, 7675, 3015, 16, 11008, 7675, 3922, 16, 31495, 16, 29421, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gLogger.info("Verification of PFNs complete")
gLogger.info( "Verification of PFNs complete" )
def __verifyPfns(self,pfnSizes,storageElements): gLogger.info('Checking %s storage files exist in the catalog' % len(pfnSizes)) pfnsToRemove = [] incorrectlyRegistered = [] allDone = True # First get all the PFNs as they should be registered in the catalog for pfns in breakListIntoChunks(sortList(pfnSizes.keys()),100): res = self.replicaManager.getPfnForProtocol(pfns,storageElements[0],withPort=False) if not res['OK']: allDone = False continue for pfn, error in res['Value']['Failed'].items(): gLogger.error('Failed to obtain registered PFN for physical file','%s %s' % (pfn,error)) if res['Value']['Failed']: allDone = False catalogStoragePfns = res['Value']['Successful'] # Determine whether these PFNs are registered and if so obtain the LFN res = self.replicaManager.getCatalogLFNForPFN(catalogStoragePfns.values()) if not res['OK']: allDone = False continue for surl in sortList(res['Value']['Failed'].keys()): if res['Value']['Failed'][surl] == 'No such file or directory': #pfnsToRemove.append(surl) print surl else: gLogger.error('Failed to get LFN for PFN','%s %s' % (surl,res['Value']['Failed'][surl])) existingLFNs = res['Value']['Successful'].values() if existingLFNs: res = self.replicaManager.getCatalogReplicas(existingLFNs) if not res['OK']: allDone = False continue for lfn, error in res['Value']['Failed'].items(): gLogger.error('Failed to obtain registered replicas for LFN','%s %s' % (lfn,error)) if res['Value']['Failed']: allDone = False for lfn,replicas in res['Value']['Successful'].items(): match = False for storageElement in storageElements: if storageElement in replicas.keys(): match = True if not match: pass#incorrectlyRegistered.append(lfn) #print lfn gLogger.info("Verification of PFNs complete") if incorrectlyRegistered: gLogger.info("Found %d files incorrectly registered" % len(incorrectlyRegistered)) if pfnsToRemove: gLogger.info("Found %d files to be removed" % len(pfnsToRemove)) resDict = {'Remove':pfnsToRemove,'ReRegister':incorrectlyRegistered,'AllDone':allDone} return S_OK(resDict)
ee83668b2f6e1bbb37e504fcdd26bdf3e730b233 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/ee83668b2f6e1bbb37e504fcdd26bdf3e730b233/SENamespaceCatalogCheckAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8705, 52, 74, 2387, 12, 2890, 16, 84, 4293, 11923, 16, 5697, 3471, 4672, 314, 3328, 18, 1376, 2668, 14294, 738, 87, 2502, 1390, 1005, 316, 326, 6222, 11, 738, 562, 12, 84, 4293, 11923, 3719, 10811, 2387, 12765, 273, 5378, 25621, 10868, 273, 5378, 777, 7387, 273, 1053, 468, 5783, 336, 777, 326, 453, 42, 10386, 487, 2898, 1410, 506, 4104, 316, 326, 6222, 364, 10811, 2387, 316, 898, 682, 5952, 14975, 12, 3804, 682, 12, 84, 4293, 11923, 18, 2452, 1435, 3631, 6625, 4672, 400, 273, 365, 18, 30065, 1318, 18, 588, 52, 4293, 1290, 5752, 12, 14241, 2387, 16, 5697, 3471, 63, 20, 6487, 1918, 2617, 33, 8381, 13, 309, 486, 400, 3292, 3141, 3546, 30, 777, 7387, 273, 1083, 1324, 364, 293, 4293, 16, 555, 316, 400, 3292, 620, 21712, 2925, 29489, 3319, 13332, 314, 3328, 18, 1636, 2668, 2925, 358, 7161, 4104, 453, 19793, 364, 11640, 585, 17023, 9, 87, 738, 87, 11, 738, 261, 84, 4293, 16, 1636, 3719, 309, 400, 3292, 620, 21712, 2925, 3546, 30, 777, 7387, 273, 1083, 6222, 3245, 52, 74, 2387, 273, 400, 3292, 620, 21712, 14277, 3546, 468, 10229, 2856, 4259, 453, 42, 10386, 854, 4104, 471, 309, 1427, 7161, 326, 18803, 50, 400, 273, 365, 18, 30065, 1318, 18, 588, 9769, 9105, 50, 1290, 52, 19793, 12, 7199, 3245, 52, 74, 2387, 18, 2372, 10756, 309, 486, 400, 3292, 3141, 3546, 30, 777, 7387, 273, 1083, 1324, 364, 272, 718, 316, 1524, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8705, 52, 74, 2387, 12, 2890, 16, 84, 4293, 11923, 16, 5697, 3471, 4672, 314, 3328, 18, 1376, 2668, 14294, 738, 87, 2502, 1390, 1005, 316, 326, 6222, 11, 738, 562, 12, 84, 4293, 11923, 3719, 10811, 2387, 12765, 273, 5378, 25621, 10868, 273, 5378, 777, 7387, 273, 1053, 468, 5783, 336, 777, 326, 453, 42, 10386, 487, 2898, 1410, 506, 4104, 316, 326, 6222, 364, 10811, 2387, 316, 898, 682, 5952, 14975, 12, 3804, 682, 12, 84, 4293, 11923, 18, 2452, 1435, 3631, 6625, 4672, 400, 273, 365, 18, 30065, 1318, 18, 588, 52, 4293, 1290, 5752, 12, 14241, 2387, 16, 5697, 3471, 63, 20, 6487, 1918, 2617, 33, 8381, 13, 309, 486, 400, 3292, 3141, 2 ]
self.UIManager.get_widget('/mainmenu/newmenu/').show()
def set_menu_contextual_items_visible(self, show_songinfo_only=False): if show_songinfo_only: self.UIManager.get_widget('/mainmenu/songinfo_menu/').show() self.UIManager.get_widget('/mainmenu/addmenu/').hide() self.UIManager.get_widget('/mainmenu/replacemenu/').hide() self.UIManager.get_widget('/mainmenu/rmmenu/').hide() self.UIManager.get_widget('/mainmenu/removemenu/').hide() self.UIManager.get_widget('/mainmenu/clearmenu/').hide() self.UIManager.get_widget('/mainmenu/savemenu/').hide() self.UIManager.get_widget('/mainmenu/updatemenu/').hide() self.UIManager.get_widget('/mainmenu/newmenu/').hide() self.UIManager.get_widget('/mainmenu/editmenu/').hide() self.UIManager.get_widget('/mainmenu/sortmenu/').hide() self.UIManager.get_widget('/mainmenu/edittagmenu/').hide() return if not self.expanded: return elif self.notebook.get_current_page() == self.TAB_CURRENT: if len(self.currentdata) > 0: if self.current_selection.count_selected_rows() > 0: self.UIManager.get_widget('/mainmenu/removemenu/').show() if HAVE_TAGPY: self.UIManager.get_widget('/mainmenu/edittagmenu/').show() else: self.UIManager.get_widget('/mainmenu/edittagmenu/').hide() else: self.UIManager.get_widget('/mainmenu/removemenu/').hide() if not self.filterbox_visible: self.UIManager.get_widget('/mainmenu/clearmenu/').show() self.UIManager.get_widget('/mainmenu/savemenu/').show() self.UIManager.get_widget('/mainmenu/sortmenu/').show() else: self.UIManager.get_widget('/mainmenu/clearmenu/').hide() self.UIManager.get_widget('/mainmenu/savemenu/').hide() self.UIManager.get_widget('/mainmenu/sortmenu/').hide() self.UIManager.get_widget('/mainmenu/addmenu/').hide() self.UIManager.get_widget('/mainmenu/replacemenu/').hide() self.UIManager.get_widget('/mainmenu/rmmenu/').hide() self.UIManager.get_widget('/mainmenu/updatemenu/').hide() self.UIManager.get_widget('/mainmenu/newmenu/').hide() self.UIManager.get_widget('/mainmenu/editmenu/').hide() elif self.notebook.get_current_page() == self.TAB_LIBRARY: if len(self.browserdata) > 0: if self.browser_selection.count_selected_rows() > 0: self.UIManager.get_widget('/mainmenu/addmenu/').show() self.UIManager.get_widget('/mainmenu/replacemenu/').show() if HAVE_TAGPY: self.UIManager.get_widget('/mainmenu/edittagmenu/').show() else: self.UIManager.get_widget('/mainmenu/edittagmenu/').hide() else: self.UIManager.get_widget('/mainmenu/addmenu/').hide() self.UIManager.get_widget('/mainmenu/replacemenu/').hide() self.UIManager.get_widget('/mainmenu/updatemenu/').show() else: self.UIManager.get_widget('/mainmenu/updatemenu/').hide() self.UIManager.get_widget('/mainmenu/removemenu/').hide() self.UIManager.get_widget('/mainmenu/clearmenu/').hide() self.UIManager.get_widget('/mainmenu/savemenu/').hide() self.UIManager.get_widget('/mainmenu/rmmenu/').hide() self.UIManager.get_widget('/mainmenu/newmenu/').hide() self.UIManager.get_widget('/mainmenu/editmenu/').hide() self.UIManager.get_widget('/mainmenu/sortmenu/').hide() elif self.notebook.get_current_page() == self.TAB_PLAYLISTS: if self.playlists_selection.count_selected_rows() > 0: self.UIManager.get_widget('/mainmenu/addmenu/').show() self.UIManager.get_widget('/mainmenu/replacemenu/').show() self.UIManager.get_widget('/mainmenu/rmmenu/').show() else: self.UIManager.get_widget('/mainmenu/addmenu/').hide() self.UIManager.get_widget('/mainmenu/replacemenu/').hide() self.UIManager.get_widget('/mainmenu/rmmenu/').hide() self.UIManager.get_widget('/mainmenu/removemenu/').hide() self.UIManager.get_widget('/mainmenu/clearmenu/').hide() self.UIManager.get_widget('/mainmenu/savemenu/').hide() self.UIManager.get_widget('/mainmenu/updatemenu/').hide() self.UIManager.get_widget('/mainmenu/newmenu/').hide() self.UIManager.get_widget('/mainmenu/editmenu/').hide() self.UIManager.get_widget('/mainmenu/sortmenu/').hide() self.UIManager.get_widget('/mainmenu/edittagmenu/').hide() elif self.notebook.get_current_page() == self.TAB_STREAMS: if self.streams_selection.count_selected_rows() > 0: if self.streams_selection.count_selected_rows() == 1: self.UIManager.get_widget('/mainmenu/editmenu/').show() else: self.UIManager.get_widget('/mainmenu/editmenu/').hide() self.UIManager.get_widget('/mainmenu/addmenu/').show() self.UIManager.get_widget('/mainmenu/replacemenu/').show() self.UIManager.get_widget('/mainmenu/rmmenu/').show() else: self.UIManager.get_widget('/mainmenu/addmenu/').hide() self.UIManager.get_widget('/mainmenu/replacemenu/').hide() self.UIManager.get_widget('/mainmenu/rmmenu/').hide() self.UIManager.get_widget('/mainmenu/newmenu/').show() self.UIManager.get_widget('/mainmenu/removemenu/').hide() self.UIManager.get_widget('/mainmenu/clearmenu/').hide() self.UIManager.get_widget('/mainmenu/savemenu/').hide() self.UIManager.get_widget('/mainmenu/updatemenu/').hide() self.UIManager.get_widget('/mainmenu/sortmenu/').hide() self.UIManager.get_widget('/mainmenu/edittagmenu/').hide() self.UIManager.get_widget('/mainmenu/songinfo_menu/').hide()
48b67fcc80970d59270b275335d2299d4464b303 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/48b67fcc80970d59270b275335d2299d4464b303/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5414, 67, 2472, 1462, 67, 3319, 67, 8613, 12, 2890, 16, 2405, 67, 816, 75, 1376, 67, 3700, 33, 8381, 4672, 309, 2405, 67, 816, 75, 1376, 67, 3700, 30, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 816, 75, 1376, 67, 5414, 2473, 2934, 4500, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 1289, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 2079, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 8864, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 2764, 1527, 351, 2104, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 2131, 4610, 2104, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 87, 842, 351, 2104, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 2725, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 2704, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 4619, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 3804, 5414, 2473, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5414, 67, 2472, 1462, 67, 3319, 67, 8613, 12, 2890, 16, 2405, 67, 816, 75, 1376, 67, 3700, 33, 8381, 4672, 309, 2405, 67, 816, 75, 1376, 67, 3700, 30, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 816, 75, 1376, 67, 5414, 2473, 2934, 4500, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 1289, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 2079, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 5254, 5414, 19, 8864, 5414, 2473, 2934, 11248, 1435, 365, 18, 5370, 1318, 18, 588, 67, 2 ]
def __init__(self, node, clickCallback):
def __init__(self, node, clickCallback=None):
def __init__(self, node, clickCallback): global g_Player g_Player = avg.Player.get() self.__node = node self.__setChecked(False) self.__clickCallback = clickCallback Button.__init__(self, node, self.__onClick)
e3d1a33980ea204c525bd3c895cdcf45c9b2d689 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7300/e3d1a33980ea204c525bd3c895cdcf45c9b2d689/button.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 756, 16, 4682, 2428, 33, 7036, 4672, 2552, 314, 67, 12148, 314, 67, 12148, 273, 11152, 18, 12148, 18, 588, 1435, 365, 16186, 2159, 273, 756, 365, 16186, 542, 11454, 12, 8381, 13, 365, 16186, 7475, 2428, 273, 4682, 2428, 12569, 16186, 2738, 972, 12, 2890, 16, 756, 16, 365, 16186, 265, 6563, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 756, 16, 4682, 2428, 33, 7036, 4672, 2552, 314, 67, 12148, 314, 67, 12148, 273, 11152, 18, 12148, 18, 588, 1435, 365, 16186, 2159, 273, 756, 365, 16186, 542, 11454, 12, 8381, 13, 365, 16186, 7475, 2428, 273, 4682, 2428, 12569, 16186, 2738, 972, 12, 2890, 16, 756, 16, 365, 16186, 265, 6563, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Get the main wikipage template without evaluating. Like the below. Should it be wikipage ? Or would that be inconsistent with the template-evaluating UI methods ? """ return self.getSkinTemplate('wikipage')
Get the standard wikipage template, unevaluated, for macro access. This will always return the standard skin's wikipage as zwiki_plone's doesn't have the macros. Provides macro aliases for backwards compatibility. """ standard_wikipage = DEFAULT_TEMPLATES['wikipage'].__of__(self) if self.inCMF(): template = standard_wikipage else: template = self.getSkinTemplate('wikipage') def alias(old,new): template.macros[old] = template.macros.get( new, standard_wikipage.macros[new]) alias("head","head") alias("linkpanel","linkpanel") alias("navpanel","navpanel") alias("quickaccesskeys","accesskeys") alias("quicklinks","wikilinks") alias("displaymodes","displaymodes") alias("editlinks","pagelinks") alias("logolink","logolink") alias("pagenameand","pagenameand") alias("pagename","pagenameonly") alias("commentform","commentform") alias("pagemanagement","pagemanagement") return template
def wikipage_template(self, REQUEST=None): """ Get the main wikipage template without evaluating.
eca196db28d4fc210eb4d268c41dba73dd1882f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/eca196db28d4fc210eb4d268c41dba73dd1882f3/UI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 1766, 625, 410, 67, 3202, 12, 2890, 16, 12492, 33, 7036, 4672, 3536, 968, 326, 2774, 341, 1766, 625, 410, 1542, 2887, 26704, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 1766, 625, 410, 67, 3202, 12, 2890, 16, 12492, 33, 7036, 4672, 3536, 968, 326, 2774, 341, 1766, 625, 410, 1542, 2887, 26704, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def getEntryForObject(self, documentId, default=None):
def getEntryForObject(self, documentId, default=MV):
def getEntryForObject(self, documentId, default=None): """Takes a document ID and returns all the information we have on that specific object.""" if default is None: return self._unindex.get(documentId, default) else: return self._unindex.get(documentId)
9563f2bcbaf222ffb87d614b61d2a1f5acaab1f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/9563f2bcbaf222ffb87d614b61d2a1f5acaab1f9/UnIndex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15428, 1290, 921, 12, 2890, 16, 28573, 16, 805, 33, 49, 58, 4672, 3536, 11524, 279, 1668, 1599, 471, 1135, 777, 326, 1779, 732, 1240, 603, 716, 2923, 733, 12123, 309, 805, 353, 599, 30, 327, 365, 6315, 318, 1615, 18, 588, 12, 5457, 548, 16, 805, 13, 469, 30, 327, 365, 6315, 318, 1615, 18, 588, 12, 5457, 548, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 805, 13, 469, 30, 327, 365, 6315, 318, 1615, 18, 588, 12, 5457, 548, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]