rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if(str==null)
if ( str == null )
private String convertNullString(String str) { if(str==null) { return "";//$NON-NLS-1$ } return str; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/6e556b6ba79fd7c2229aa78a94d04fb0e81aa9db/ParameterDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1765, 2041, 780, 12, 780, 609, 13, 202, 95, 202, 202, 430, 12, 701, 631, 2011, 13, 202, 202, 95, 1082, 202, 2463, 1408, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1765, 2041, 780, 12, 780, 609, 13, 202, 95, 202, 202, 430, 12, 701, 631, 2011, 13, 202, 202, 95, 1082, 202, 2463, 1408, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, ...
if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) {
if((mode == InserterException.FATAL_ERRORS_IN_BLOCKS) || (mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS)) {
private boolean processLine(BufferedReader reader, OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... ("+e+")"); System.err.println("Bye... ("+e+")"); return true; } boolean getCHKOnly = false; if(line == null) return true; String uline = line.toUpperCase(); Logger.minor(this, "Command: "+line); if(uline.startsWith("GET:")) { // Should have a key next String key = line.substring("GET:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); Logger.normal(this, "Key: "+uri); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // FIXME limit it above if(data.size() > 32*1024) { System.err.println("Data is more than 32K: "+data.size()); outsb.append("Data is more than 32K: "+data.size()); return false; } byte[] dataBytes = BucketTools.toByteArray(data); boolean evil = false; for(int i=0;i<dataBytes.length;i++) { // Look for escape codes if(dataBytes[i] == '\n') continue; if(dataBytes[i] == '\r') continue; if(dataBytes[i] < 32) evil = true; } if(evil) { System.err.println("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); outsb.append("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); return false; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()+"\r\n"); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("GETFILE:")) { // Should have a key next String key = line.substring("GETFILE:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // Now calculate filename String fnam = uri.getDocName(); fnam = sanitize(fnam); if(fnam.length() == 0) { fnam = "freenet-download-"+HexUtil.bytesToHex(BucketTools.hash(data), 0, 10); String ext = DefaultMIMETypes.getExtension(cm.getMIMEType()); if(ext != null && !ext.equals("")) fnam += "." + ext; } File f = new File(downloadsDir, fnam); if(f.exists()) { outsb.append("File exists already: "+fnam); fnam = "freenet-"+System.currentTimeMillis()+"-"+fnam; } FileOutputStream fos = null; try { fos = new FileOutputStream(f); BucketTools.copyTo(data, fos, Long.MAX_VALUE); fos.close(); outsb.append("Written to "+fnam); } catch (IOException e) { outsb.append("Could not write file: caught "+e); e.printStackTrace(); } finally { if(fos != null) try { fos.close(); } catch (IOException e1) { // Ignore } } long endTime = System.currentTimeMillis(); long sz = data.size(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Download rate: "+rate+" bytes / second"); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("UPDATE")) { outsb.append("starting the update process"); // FIXME run on separate thread n.getNodeUpdater().Update(); return false; }else if(uline.startsWith("BLOW")) { n.getNodeUpdater().blow("caught an IOException : (Incompetent Operator) :p"); return false; } else if(uline.startsWith("SHUTDOWN")) { StringBuffer sb = new StringBuffer(); sb.append("Shutting node down.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.exit(); } else if(uline.startsWith("RESTART")) { StringBuffer sb = new StringBuffer(); sb.append("Restarting the node.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.getNodeStarter().restart(); } else if(uline.startsWith("QUIT") && n.directTMCI == this) { StringBuffer sb = new StringBuffer(); sb.append("QUIT command not available in console mode.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return false; } else if(uline.startsWith("QUIT")) { StringBuffer sb = new StringBuffer(); sb.append("Closing connection.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return true; } else if(uline.startsWith("HELP")) { printHeader(out); return false; } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { // Just insert to local store if(getCHKOnly) line = line.substring(("GETCHK:").length()); else line = line.substring("PUT:".length()); while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String content; if(line.length() > 0) { // Single line insert content = line; } else { // Multiple line insert content = readLines(reader, false); } // Insert byte[] data = content.getBytes(); InsertBlock block = new InsertBlock(new ArrayBucket(data), null, FreenetURI.EMPTY_CHK_URI); FreenetURI uri; try { uri = client.insert(block, getCHKOnly); } catch (InserterException e) { outsb.append("Error: "+e.getMessage()); if(e.uri != null) outsb.append("URI would have been: "+e.uri); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { outsb.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()); } return false; } outsb.append("URI: "+uri); //////////////////////////////////////////////////////////////////////////////// } else if(uline.startsWith("PUTDIR:") || (uline.startsWith("PUTSSKDIR")) || (getCHKOnly = uline.startsWith("GETCHKDIR:"))) { // TODO: Check for errors? boolean ssk = false; if(uline.startsWith("PUTDIR:")) line = line.substring("PUTDIR:".length()); else if(uline.startsWith("PUTSSKDIR:")) { line = line.substring("PUTSSKDIR:".length()); ssk = true; } else if(uline.startsWith("GETCHKDIR:")) line = line.substring(("GETCHKDIR:").length()); else { System.err.println("Impossible"); outsb.append("Impossible"); } line = line.trim(); if(line.length() < 1) { printHeader(out); return false; } String defaultFile = null; FreenetURI insertURI = FreenetURI.EMPTY_CHK_URI; // set default file? if (line.matches("^.*#.*$")) { String[] split = line.split("#"); if(ssk) { insertURI = new FreenetURI(split[0]); line = split[1]; if(split.length > 2) defaultFile = split[2]; } else { defaultFile = split[1]; line = split[0]; } } HashMap bucketsByName = makeBucketsByName(line); if(defaultFile == null) { String[] defaultFiles = new String[] { "index.html", "index.htm", "default.html", "default.htm" }; for(int i=0;i<defaultFiles.length;i++) { if(bucketsByName.containsKey(defaultFiles[i])) { defaultFile = defaultFiles[i]; break; } } } FreenetURI uri; try { uri = client.insertManifest(insertURI, bucketsByName, defaultFile); uri = uri.addMetaStrings(new String[] { "" }); outsb.append("======================================================="); outsb.append("URI: "+uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: "+uri); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } Logger.error(this, "Caught "+e, e); } } else if(uline.startsWith("PUTFILE:") || (getCHKOnly = uline.startsWith("GETCHKFILE:"))) { // Just insert to local store if(getCHKOnly) { line = line.substring(("GETCHKFILE:").length()); } else { line = line.substring("PUTFILE:".length()); } while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String mimeType = DefaultMIMETypes.guessMIMEType(line); if (line.indexOf('#') > -1) { String[] splittedLine = line.split("#"); line = splittedLine[0]; mimeType = splittedLine[1]; } File f = new File(line); outsb.append("Attempting to read file "+line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type outsb.append("Using MIME type: "+mimeType + "\r\n"); if(mimeType.equals(DefaultMIMETypes.DEFAULT_MIME_TYPE)) mimeType = ""; // don't need to override it FileBucket fb = new FileBucket(f, true, false, false, false); InsertBlock block = new InsertBlock(fb, new ClientMetadata(mimeType), FreenetURI.EMPTY_CHK_URI); startTime = System.currentTimeMillis(); FreenetURI uri = client.insert(block, getCHKOnly); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: "+uri+"\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: "+t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r, ""); outsb.append("Insert URI: "+key.getInsertURI().toString(false)+"\r\n"); outsb.append("Request URI: "+key.getURI().toString(false)+"\r\n"); FreenetURI insertURI = key.getInsertURI().setDocName("testsite"); String fixedInsertURI = insertURI.toString(false); outsb.append("Note that you MUST add a filename to the end of the above URLs e.g.:\r\n"+fixedInsertURI+"\r\n"); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:"+fixedInsertURI+"#directoryToUpload/"+"\r\n"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n"+key.getURI().toString(false)+"testsite/"); } else if(uline.startsWith("PUTSSK:")) { String cmd = line.substring("PUTSSK:".length()); cmd = cmd.trim(); if(cmd.indexOf(';') <= 0) { outsb.append("No target URI provided."); outsb.append("PUTSSK:<insert uri>;<url to redirect to>"); return false; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: "+insertURI); outsb.append("Target URI: "+targetURI); FreenetURI insert = new FreenetURI(insertURI); FreenetURI target = new FreenetURI(targetURI); try { FreenetURI result = client.insertRedirect(insert, target); outsb.append("Successfully inserted to fetch URI: "+result); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportPublicFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : "+Version.highestSeenBuild); } } else if(uline.startsWith("ADDPEER:") || uline.startsWith("CONNECT:")) { String key = null; if(uline.startsWith("CONNECT:")) { key = line.substring("CONNECT:".length()); } else { key = line.substring("ADDPEER:".length()); } while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); String content = null; if(key.length() > 0) { // Filename BufferedReader in; outsb.append("Trying to add peer to node by noderef in "+key+"\r\n"); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading...\r\n"); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading...\r\n"); URL url = new URL(key); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); } content = readLines(in, true); in.close(); } else { content = readLines(reader, true); } if(content == null) return false; if(content.equals("")) return false; addPeer(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: "+n.myName); String key = line.substring("NAME:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); outsb.append("New name: "+key); try{ n.config.get("node").getOption("name").setValue(key); Logger.minor(this, "Setting node.name to "+key); }catch(Exception e){ Logger.error(this, "Error setting node's name"); } n.config.store(); } else if(uline.startsWith("DISABLEPEER:")) { String nodeIdentifier = (line.substring("DISABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(disablePeer(nodeIdentifier)) { outsb.append("disable succeeded for "+nodeIdentifier); } else { outsb.append("disable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("ENABLEPEER:")) { String nodeIdentifier = (line.substring("ENABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(enablePeer(nodeIdentifier)) { outsb.append("enable succeeded for "+nodeIdentifier); } else { outsb.append("enable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("SETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("SETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(true); outsb.append("set ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("UNSETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("UNSETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(false); outsb.append("unset ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("HAVEPEER:")) { String nodeIdentifier = (line.substring("HAVEPEER:".length())).trim(); if(havePeer(nodeIdentifier)) { outsb.append("true for "+nodeIdentifier); } else { outsb.append("false for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("REMOVEPEER:") || uline.startsWith("DISCONNECT:")) { String nodeIdentifier = null; if(uline.startsWith("DISCONNECT:")) { nodeIdentifier = line.substring("DISCONNECT:".length()); } else { nodeIdentifier = line.substring("REMOVEPEER:".length()); } if(removePeer(nodeIdentifier)) { outsb.append("peer removed for "+nodeIdentifier); } else { outsb.append("peer removal failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("PEER:")) { String nodeIdentifier = (line.substring("PEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); outsb.append(fs.toString()); } else if(uline.startsWith("PEERWMD:")) { String nodeIdentifier = (line.substring("PEERWMD:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); SimpleFieldSet meta = pn.exportMetadataFieldSet(); if(!meta.isEmpty()) fs.put("metadata", meta); outsb.append(fs.toString()); } else if(uline.startsWith("PEERS")) { outsb.append(n.getTMCIPeerList()); outsb.append("PEERS done.\r\n"); } else if(uline.startsWith("PLUGLOAD:")) { if (line.substring("PLUGLOAD:".length()).trim().equals("?")) { outsb.append(" PLUGLOAD: pkg.Class - Load plugin from current classpath"); outsb.append(" PLUGLOAD: pkg.Class@file:<filename> - Load plugin from file"); outsb.append(" PLUGLOAD: pkg.Class@http://... - Load plugin from online file"); outsb.append(" PLUGLOAD: *@... - Load plugin from manifest in given jarfile"); outsb.append(""); outsb.append("If the filename/url ends with \".url\", it" + " is treated as a link, meaning that the first line is" + " the accual URL. Else it is loaded as classpath and" + " the class it loaded from it (meaning the file could" + " be either a jar-file or a class-file)."); outsb.append(""); outsb.append(" PLUGLOAD: pkg.Class* - Load newest version of plugin from http://downloads.freenetproject.org/alpha/plugins/"); outsb.append(""); } else n.pluginManager.startPlugin(line.substring("PLUGLOAD:".length()).trim()); //outsb.append("PLUGLOAD: <pkg.classname>[(@<URI to jarfile.jar>|<<URI to file containing real URI>|* (will load from freenets pluginpool))] - Load plugin."); } else if(uline.startsWith("PLUGLIST")) { outsb.append(n.pluginManager.dumpPlugins()); } else if(uline.startsWith("PLUGKILL:")) { n.pluginManager.killPlugin(line.substring("PLUGKILL:".length()).trim()); } else { if(uline.length() > 0) printHeader(out); } outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); return false; }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/TextModeClientInterface.java/clean/src/freenet/node/TextModeClientInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, ...
return targetUserRequest; }
return targetUserRequest; }
protected Authentication attemptSwitchUser( HttpServletRequest request) throws AuthenticationException { UsernamePasswordAuthenticationToken targetUserRequest = null; String username = request.getParameter(ACEGI_SECURITY_SWITCH_USERNAME_KEY); if (username == null) { username = ""; } if (logger.isDebugEnabled()) { logger.debug("Attempt to switch to user [" + username + "]"); } // load the user by name UserDetails targetUser = this.userDetailsService .loadUserByUsername(username); // user not found if (targetUser == null) { throw new UsernameNotFoundException(messages.getMessage( "SwitchUserProcessingFilter.usernameNotFound", new Object[] {username}, "Username {0} not found")); } // account is expired if (!targetUser.isAccountNonLocked()) { throw new LockedException(messages.getMessage( "SwitchUserProcessingFilter.locked", "User account is locked")); } // user is disabled if (!targetUser.isEnabled()) { throw new DisabledException(messages.getMessage( "SwitchUserProcessingFilter.disabled", "User is disabled")); } // account is expired if (!targetUser.isAccountNonExpired()) { throw new AccountExpiredException(messages.getMessage( "SwitchUserProcessingFilter.expired", "User account has expired")); } // credentials expired if (!targetUser.isCredentialsNonExpired()) { throw new CredentialsExpiredException(messages .getMessage( "SwitchUserProcessingFilter.credentialsExpired", "User credentials have expired")); } // ok, create the switch user token targetUserRequest = createSwitchUserToken(request, username, targetUser); if (logger.isDebugEnabled()) { logger.debug("Switch User Token [" + targetUserRequest + "]"); } // publish event if (this.eventPublisher != null) { eventPublisher.publishEvent(new AuthenticationSwitchUserEvent( SecurityContextHolder.getContext() .getAuthentication(), targetUser)); } return targetUserRequest; }
57740 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57740/6abceb7ab07b8a8e8816039a4b31d533226cb6d7/SwitchUserProcessingFilter.java/clean/core/src/main/java/org/acegisecurity/ui/switchuser/SwitchUserProcessingFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 8665, 4395, 10200, 1299, 12, 7734, 9984, 590, 13, 1216, 23458, 288, 7734, 11313, 3913, 6492, 1345, 1018, 31059, 273, 446, 31, 7734, 514, 2718, 273, 590, 18, 588, 1662, 12, 6312, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 8665, 4395, 10200, 1299, 12, 7734, 9984, 590, 13, 1216, 23458, 288, 7734, 11313, 3913, 6492, 1345, 1018, 31059, 273, 446, 31, 7734, 514, 2718, 273, 590, 18, 588, 1662, 12, 6312, 13...
setRequestPathInfo("/initBegin");
setRequestPathInfo("/begin");
public void testCategoryLoad() throws Exception { ComponentContext context = new ComponentContext(); ComponentContext.setContext(context, getRequest()); setRequestPathInfo("/initBegin"); actionPerform(); verifyNoActionErrors(); Set cats = (Set) getActionServlet().getServletContext().getAttribute(Constants.CATEGORIES); assertNotNull(cats); Set expecting = new HashSet(); expecting.add("People"); expecting.add("Entities"); assertEquals(2, cats.size()); assertEquals(expecting, cats); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/cce42c663c5093ba5ef4f57298bdb92cde5f5275/BeginControllerTest.java/buggy/testmodel/webapp/test/src/org/intermine/web/BeginControllerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4457, 2563, 1435, 1216, 1185, 288, 3639, 5435, 1042, 819, 273, 394, 5435, 1042, 5621, 3639, 5435, 1042, 18, 542, 1042, 12, 2472, 16, 4328, 10663, 3639, 12475, 743, 966, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4457, 2563, 1435, 1216, 1185, 288, 3639, 5435, 1042, 819, 273, 394, 5435, 1042, 5621, 3639, 5435, 1042, 18, 542, 1042, 12, 2472, 16, 4328, 10663, 3639, 12475, 743, 966, 2...
public ViewportCreateDialog(String title, ConfigElement elt, String elementType)
public ViewportCreateDialog(String title, ConfigContext ctx, ConfigElement elt, String elementType)
public ViewportCreateDialog(String title, ConfigElement elt, String elementType) { super(); this.setTitle(title); this.setModal(true); enableEvents(AWTEvent.WINDOW_EVENT_MASK); if ( elt == null ) { ConfigBrokerProxy broker = new ConfigBrokerProxy(); ConfigDefinition vp_def = broker.getRepository().get(elementType); ConfigElementFactory factory = new ConfigElementFactory(broker.getRepository().getAllLatest()); elt = factory.create("ViewportCreateDialog Element " + VP_ELT_COUNT, vp_def); } mViewportElement = elt; mViewportElement.addConfigElementListener(this); mBoundsPanel = new ViewportBoundsEditorPanel(elt); mUserPanel = new ViewportUserEditorPanel(elt); this.setResizable(false); }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/e189b7abf8a9e10f29a811de6b84cc7af1e46f08/ViewportCreateDialog.java/buggy/modules/vrjuggler/vrjconfig/customeditors/display_window/org/vrjuggler/vrjconfig/customeditors/display_window/ViewportCreateDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 4441, 655, 1684, 6353, 12, 780, 2077, 16, 1903, 1046, 11572, 16, 1171, 9079, 514, 21427, 13, 282, 288, 1377, 2240, 5621, 1377, 333, 18, 542, 4247, 12, 2649, 1769, 1377, 333, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 4441, 655, 1684, 6353, 12, 780, 2077, 16, 1903, 1046, 11572, 16, 1171, 9079, 514, 21427, 13, 282, 288, 1377, 2240, 5621, 1377, 333, 18, 542, 4247, 12, 2649, 1769, 1377, 333, 18, 5...
ascRotation = new AngleSelectorComposite(grpRotation, SWT.BORDER, (int) fdCurrent.getRotation(), Display .getCurrent().getSystemColor(SWT.COLOR_WHITE)); GridData gdASCRotation = new GridData(GridData.FILL_BOTH); gdASCRotation.horizontalSpan = 1; gdASCRotation.verticalSpan = 3; ascRotation.setLayoutData(gdASCRotation); ascRotation.setAngleChangeListener(this);
ascRotation = new AngleSelectorComposite( grpRotation, SWT.BORDER, ChartUIUtil.getFontRotation( fdCurrent ), Display.getCurrent( ).getSystemColor( SWT.COLOR_WHITE ) ); GridData gdASCRotation = new GridData( GridData.FILL_BOTH ); gdASCRotation.horizontalSpan = 1; gdASCRotation.verticalSpan = 3; ascRotation.setLayoutData( gdASCRotation ); ascRotation.setAngleChangeListener( this );
private void createRotationPanel() { GridLayout glRotation = new GridLayout(); glRotation.verticalSpacing = 2; glRotation.marginHeight = 2; glRotation.marginWidth = 2; glRotation.numColumns = 3; grpRotation = new Group(cmpContent, SWT.NONE); GridData gdGRPRotation = new GridData(GridData.FILL_BOTH); gdGRPRotation.horizontalSpan = 6; gdGRPRotation.verticalSpan = 3; gdGRPRotation.heightHint = 180; grpRotation.setLayoutData(gdGRPRotation); grpRotation.setLayout(glRotation); grpRotation.setText(Messages.getString("FontDefinitionDialog.Lbl.Rotation")); //$NON-NLS-1$ ascRotation = new AngleSelectorComposite(grpRotation, SWT.BORDER, (int) fdCurrent.getRotation(), Display .getCurrent().getSystemColor(SWT.COLOR_WHITE)); GridData gdASCRotation = new GridData(GridData.FILL_BOTH); gdASCRotation.horizontalSpan = 1; gdASCRotation.verticalSpan = 3; ascRotation.setLayoutData(gdASCRotation); ascRotation.setAngleChangeListener(this); iscRotation = new IntegerSpinControl(grpRotation, SWT.NONE, (int) fdCurrent.getRotation()); GridData gdISCRotation = new GridData(GridData.FILL_HORIZONTAL); gdISCRotation.horizontalSpan = 2; iscRotation.setLayoutData(gdISCRotation); iscRotation.setMinimum(-90); iscRotation.setMaximum(90); iscRotation.setIncrement(1); iscRotation.addListener(this); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/24a5facd06b9834d9092d18b6e634919abd5a8d1/FontDefinitionDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 14032, 5537, 1435, 565, 288, 3639, 7145, 3744, 5118, 14032, 273, 394, 7145, 3744, 5621, 3639, 5118, 14032, 18, 17824, 18006, 273, 576, 31, 3639, 5118, 14032, 18, 10107, 2686...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 918, 752, 14032, 5537, 1435, 565, 288, 3639, 7145, 3744, 5118, 14032, 273, 394, 7145, 3744, 5621, 3639, 5118, 14032, 18, 17824, 18006, 273, 576, 31, 3639, 5118, 14032, 18, 10107, 2686...
int[] dest =
int[] dest =
protected void setPixels() { // expose destination image's pixels as int array int[] dest = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); // fill in starting image contents based on last image's dispose code if (lastDispose > 0) { if (lastDispose == 3) { // use image before last int n = frameCount - 2; if (n > 0) { lastImage = getFrame(n - 1); } else { lastImage = null; } } if (lastImage != null) { int[] prev = ((DataBufferInt) lastImage.getRaster().getDataBuffer()).getData(); System.arraycopy(prev, 0, dest, 0, width * height); // copy pixels if (lastDispose == 2) { // fill last image rect area with background color Graphics2D g = image.createGraphics(); Color c = null; if (transparency) { c = new Color(0, 0, 0, 0); // assume background is transparent } else { c = new Color(lastBgColor); // use given background color } g.setColor(c); g.setComposite(AlphaComposite.Src); // replace area g.fill(lastRect); g.dispose(); } } } // copy each source line to the appropriate place in the destination int pass = 1; int inc = 8; int iline = 0; for (int i = 0; i < ih; i++) { int line = i; if (interlace) { if (iline >= ih) { pass++; switch (pass) { case 2 : iline = 4; break; case 3 : iline = 2; inc = 4; break; case 4 : iline = 1; inc = 2; } } line = iline; iline += inc; } line += iy; if (line < height) { int k = line * width; int dx = k + ix; // start of line in dest int dlim = dx + iw; // end of dest line if ((k + width) < dlim) { dlim = k + width; // past dest edge } int sx = i * iw; // start of line in source while (dx < dlim) { // map color and insert in destination int index = ((int) pixels[sx++]) & 0xff; int c = act[index]; if (c != 0) dest[dx] = c; dx++; } } } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/38deb5a3770dd936982e996839c13f192aaf5f29/GifDecoder.java/buggy/Ajax/src/com/zimbra/ajax/imagemerge/GifDecoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 18079, 1435, 288, 3639, 368, 15722, 2929, 1316, 1807, 8948, 487, 509, 526, 3639, 509, 8526, 1570, 273, 5411, 14015, 751, 1892, 1702, 13, 1316, 18, 588, 18637, 7675, 588, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 4750, 918, 444, 18079, 1435, 288, 3639, 368, 15722, 2929, 1316, 1807, 8948, 487, 509, 526, 3639, 509, 8526, 1570, 273, 5411, 14015, 751, 1892, 1702, 13, 1316, 18, 588, 18637, 7675, 588, 7...
public ParseException() { super(); specialConstructor = false; }
public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal ) { super(""); specialConstructor = true; currentToken = currentTokenVal; expectedTokenSequences = expectedTokenSequencesVal; tokenImage = tokenImageVal; }
public ParseException() { super(); specialConstructor = false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/ParseException.java/buggy/pmd/src/net/sourceforge/pmd/cpd/cppast/ParseException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10616, 1435, 288, 3639, 2240, 5621, 3639, 4582, 6293, 273, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10616, 1435, 288, 3639, 2240, 5621, 3639, 4582, 6293, 273, 629, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
final public int yylength() { return yy_markedPos-yy_startRead;
public final int yylength() { return zzMarkedPos-zzStartRead;
final public int yylength() { return yy_markedPos-yy_startRead; }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/689ed6b27a2e7acac33d90a4e6fea2ddf018345b/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 509, 9016, 2469, 1435, 288, 565, 327, 9016, 67, 3355, 329, 1616, 17, 6795, 67, 1937, 1994, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 727, 1071, 509, 9016, 2469, 1435, 288, 565, 327, 9016, 67, 3355, 329, 1616, 17, 6795, 67, 1937, 1994, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (oldDirection.equals(direction)) {
if ( oldDirection.equals( direction ) ) {
public void lookAt(Vector3f pos, Vector3f worldUpVector) { direction.set(pos).subtractLocal(location).normalizeLocal(); // check to see if we haven't really updated camera -- no need to call // sets. if (oldDirection.equals(direction)) { return; } oldDirection.set(direction); up.set(worldUpVector); left.set(up).crossLocal(direction).normalizeLocal(); up.set(direction).crossLocal(left).normalizeLocal(); onFrameChange(); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/89df2ca7aa24704e55dc81b8acfac3f6df028acd/AbstractCamera.java/clean/src/com/jme/renderer/AbstractCamera.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2324, 861, 12, 5018, 23, 74, 949, 16, 5589, 23, 74, 9117, 1211, 5018, 13, 288, 3639, 4068, 18, 542, 12, 917, 2934, 1717, 1575, 2042, 12, 3562, 2934, 12237, 2042, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 2324, 861, 12, 5018, 23, 74, 949, 16, 5589, 23, 74, 9117, 1211, 5018, 13, 288, 3639, 4068, 18, 542, 12, 917, 2934, 1717, 1575, 2042, 12, 3562, 2934, 12237, 2042, 5621, 3639, ...
if ((lookupType & LOOKUP_FORCE_LDAP_REFRESH) != 0) {
if ((lookupType & KeyRingService.LOOKUP_FORCE_LDAP_REFRESH) != 0) {
public synchronized List findCert(String commonName, int lookupType) { ArrayList certificateList = new ArrayList(0); X500Name x500name = nameMapping.getX500Name(commonName); if (log.isDebugEnabled()) { log.debug("DirectoryKeyStore.findCert(" + commonName + ") - x500 Name = " + ((x500name == null) ? "not assigned yet" : x500name.toString()) + " lookup type=" + lookupType); } if (x500name == null) { return certificateList; } CertDirectoryServiceClient certFinder = certificateFinder; if ((lookupType & LOOKUP_FORCE_LDAP_REFRESH) != 0 || (lookupType & LOOKUP_LDAP) != 0) certFinder = getCertDirectoryServiceClient(commonName); // Refresh from LDAP service if requested if ((lookupType & LOOKUP_FORCE_LDAP_REFRESH) != 0) { // Update cache with certificates from LDAP. String filter = "(cn=" + commonName + ")"; lookupCertInLDAP(filter, certFinder); } // Search in the local hash map. List certList = certCache.getValidCertificates(x500name); if (log.isDebugEnabled()) { log.debug("Search key in local hash table:" + commonName + " - found " + (certList == null ? 0 : certList.size()) + " keys"); } if (certList == null || certList.size() == 0) { if ((lookupType & LOOKUP_FORCE_LDAP_REFRESH) != 0) { // We have just tried to lookup in LDAP so don't bother retrying again return certificateList; } else { // Look up in certificate directory service if ((lookupType & LOOKUP_LDAP) != 0) { String filter = "(cn=" + commonName + ")"; lookupCertInLDAP(filter, certFinder); certList = certCache.getValidCertificates(x500name); // Did we find certificates in LDAP? if (certList == null || certList.size() == 0) { return certificateList; } } } } Iterator it = certList.iterator(); CertificateStatus certstatus=null; while (it.hasNext()) { certstatus = (CertificateStatus) it.next(); if((lookupType & LOOKUP_LDAP) != 0 && certstatus.getCertificateOrigin() == CertificateOrigin.CERT_ORI_LDAP) { // The caller accepts certificates from LDAP. certificateList.add(certstatus); } else if ((lookupType & LOOKUP_KEYSTORE) != 0 && certstatus.getCertificateOrigin() == CertificateOrigin.CERT_ORI_KEYSTORE) { // The caller accepts certificates from the keystore. certificateList.add(certstatus); } if (log.isDebugEnabled()) { log.debug("DirectoryKeyStore.findCert: " + commonName + " - Cert origin: " + certstatus.getCertificateOrigin()); } } return certificateList; }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/fbd59ce8de9656776c34d87f6769836de97bba47/DirectoryKeyStore.java/buggy/securityservices/src/org/cougaar/core/security/crypto/DirectoryKeyStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 987, 1104, 5461, 12, 780, 2975, 461, 16, 6862, 565, 509, 3689, 559, 13, 225, 288, 565, 2407, 4944, 682, 273, 394, 2407, 12, 20, 1769, 565, 1139, 12483, 461, 619, 12483, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 987, 1104, 5461, 12, 780, 2975, 461, 16, 6862, 565, 509, 3689, 559, 13, 225, 288, 565, 2407, 4944, 682, 273, 394, 2407, 12, 20, 1769, 565, 1139, 12483, 461, 619, 12483, 529,...
return expr + " = " + quoteValue(key);
StringBuffer buf = new StringBuffer(64); buf.append(expr); buf.append(" = "); quoteValue(key, buf); return buf.toString();
public String createInExpr(String expr, ColumnConstraint[] constraints) { if (constraints.length == 1) { final ColumnConstraint constraint = constraints[0]; Object key = constraint.getValue(); if (key != RolapUtil.sqlNullValue) { return expr + " = " + quoteValue(key); } } int notNullCount = 0; StringBuffer sb = new StringBuffer(expr); sb.append(" in ("); for (int i = 0; i < constraints.length; i++) { final ColumnConstraint constraint = constraints[i]; Object key = constraint.getValue(); if (key == RolapUtil.sqlNullValue) { continue; } if (notNullCount > 0) { sb.append(", "); } ++notNullCount; sb.append(quoteValue(key)); } sb.append(")"); if (notNullCount < constraints.length) { // There was at least one null. switch (notNullCount) { case 0: // Special case -- there were no values besides null. // Return, for example, "x is null". return expr + " is null"; case 1: // Special case -- one not-null value, and null, for // example "(x is null or x = 1)". return "(" + expr + " = " + quoteValue(constraints[0].getValue()) + " or " + expr + " is null)"; default: // Nulls and values, for example, // "(x in (1, 2) or x IS NULL)". return "(" + sb.toString() + " or " + expr + "is null)"; } } else { // No nulls. Return, for example, "x in (1, 2, 3)". return sb.toString(); } }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapStar.java/buggy/src/main/mondrian/rolap/RolapStar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 752, 382, 4742, 12, 780, 3065, 16, 4753, 5806, 8526, 6237, 13, 288, 5411, 309, 261, 11967, 18, 2469, 422, 404, 13, 288, 7734, 727, 4753, 5806, 4954, 273, 6237, 63, 20, 15533,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 514, 752, 382, 4742, 12, 780, 3065, 16, 4753, 5806, 8526, 6237, 13, 288, 5411, 309, 261, 11967, 18, 2469, 422, 404, 13, 288, 7734, 727, 4753, 5806, 4954, 273, 6237, 63, 20, 15533,...
if (isClass() || isInterface()) {
if (this.binding.isClass() || this.binding.isInterface()) {
public boolean isTopLevel() { if (isClass() || isInterface()) { ReferenceBinding referenceBinding = (ReferenceBinding) this.binding; return !referenceBinding.isNestedType(); } return false; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f7c22ede9360f93a4f565c1bf1c92865a92127d7/TypeBinding.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 27046, 1435, 288, 202, 202, 430, 261, 291, 797, 1435, 747, 21456, 10756, 288, 1082, 202, 2404, 5250, 2114, 5250, 273, 261, 2404, 5250, 13, 333, 18, 7374, 31, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 1250, 353, 27046, 1435, 288, 202, 202, 430, 261, 291, 797, 1435, 747, 21456, 10756, 288, 1082, 202, 2404, 5250, 2114, 5250, 273, 261, 2404, 5250, 13, 333, 18, 7374, 31, 1082, ...
if (fields.hasNext()) { buf.append(", "); } }
if (fields.hasNext()) { buf.append(", "); } }
protected String buildFormalTypedArgumentList(Iterator fields) { JavaGenerationParameters params = getJavaGenerationParameters(); StringBuffer buf = new StringBuffer(); while (fields.hasNext()) { Field field = (Field) fields.next(); String type = field.getType(); buf.append(TypeGenerator.qualifiedClassName(params, type)); buf.append(' '); buf.append(getFieldId(field.getId())); if (fields.hasNext()) { buf.append(", "); } } return buf.toString(); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/8a7f5eefd6d08ce575d82dee6d963fc83f20a5c0/JavaGenerator.java/clean/apigen/apigen/gen/java/JavaGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 1361, 12183, 11985, 1379, 682, 12, 3198, 1466, 13, 288, 202, 202, 5852, 13842, 2402, 859, 273, 18911, 13842, 2402, 5621, 202, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 1361, 12183, 11985, 1379, 682, 12, 3198, 1466, 13, 288, 202, 202, 5852, 13842, 2402, 859, 273, 18911, 13842, 2402, 5621, 202, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 2...
this(owner, "");
this(owner, "");
public FileDialog(Frame owner) { this(owner, ""); toolkit.lockAWT(); try { } finally { toolkit.unlockAWT(); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3b500ee5922bc7890c276ddee76f1520b369f2fd/FileDialog.java/buggy/modules/awt/src/main/java/common/java/awt/FileDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1387, 6353, 12, 3219, 3410, 13, 288, 3639, 333, 12, 8443, 16, 1408, 1769, 3639, 5226, 8691, 18, 739, 37, 8588, 5621, 3639, 775, 288, 3639, 289, 3095, 288, 5411, 5226, 8691, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1387, 6353, 12, 3219, 3410, 13, 288, 3639, 333, 12, 8443, 16, 1408, 1769, 3639, 5226, 8691, 18, 739, 37, 8588, 5621, 3639, 775, 288, 3639, 289, 3095, 288, 5411, 5226, 8691, 18, 26...
for (Enumeration e = ((NSArray) rawValue).objectEnumerator(); e .hasMoreElements();) { EOAttribute attribute = (EOAttribute) pks .objectAtIndex(index++);
for(Enumeration e = ((NSArray)rawValue).objectEnumerator(); e.hasMoreElements();) { EOAttribute attribute = (EOAttribute)pks.objectAtIndex(index++);
public static NSDictionary primaryKeyDictionaryForString( EOEditingContext ec, String entityName, String string) { if (string == null) return null; if (string.trim().length() == 0) { return NSDictionary.EmptyDictionary; } EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName); NSArray pks = entity.primaryKeyAttributes(); NSMutableDictionary pk = new NSMutableDictionary(); try { Object rawValue = NSPropertyListSerialization .propertyListFromString(string); if (rawValue instanceof NSArray) { int index = 0; for (Enumeration e = ((NSArray) rawValue).objectEnumerator(); e .hasMoreElements();) { EOAttribute attribute = (EOAttribute) pks .objectAtIndex(index++); Object value = e.nextElement(); if (attribute.adaptorValueType() == EOAttribute.AdaptorDateType && !(value instanceof NSTimestamp)) { value = new NSTimestampFormatter("%Y-%m-%d %H:%M:%S %Z") .parseObject((String) value); } value = attribute.validateValue(value); pk.setObjectForKey(value, attribute.name()); if (pks.count() == 1) { break; } } } else { EOAttribute attribute = (EOAttribute) pks.objectAtIndex(0); Object value = rawValue; value = attribute.validateValue(value); pk.setObjectForKey(value, attribute.name()); } return pk; } catch (Exception ex) { throw new NSForwardException(ex, "Error while parsing primary key: " + string); } }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/34bd76e4415f130e75e7bb5959a34935299de2cf/ERXEOControlUtilities.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEOControlUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 423, 9903, 3192, 8841, 10905, 1290, 780, 12, 5411, 512, 51, 28029, 1042, 6557, 16, 514, 14868, 16, 514, 533, 13, 288, 3639, 309, 261, 1080, 422, 446, 13, 327, 446, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 423, 9903, 3192, 8841, 10905, 1290, 780, 12, 5411, 512, 51, 28029, 1042, 6557, 16, 514, 14868, 16, 514, 533, 13, 288, 3639, 309, 261, 1080, 422, 446, 13, 327, 446, 31, 3639, ...
model0.insertBackSlash(); model0.insertBackSlash();
model0.insertChar('\\'); model0.insertChar('\\');
public void testInsertBetweenDoubleEscape() { model1.insertBackSlash(); model1.insertBackSlash(); model1.move(-1); model1.insertBackSlash(); model1.move(-2); assertEquals("#0.0", "\\\\", model1.currentToken().getType()); model1.move(2); assertEquals("#0.1", "\\", model1.currentToken().getType()); model2.insertBackSlash(); model2.insertQuote(); model2.move(-1); model2.insertBackSlash(); model2.move(-2); assertEquals("#1.0", "\\\\", model2.currentToken().getType()); model2.move(2); assertEquals("#1.1", "\"", model2.currentToken().getType()); model0.insertBackSlash(); model0.insertBackSlash(); model0.move(-1); model0.insertClosedParen(); model0.move(-2); assertEquals("#2.0", "\\", model0.currentToken().getType()); model0.move(1); assertEquals("#2.1", ")", model0.currentToken().getType()); model0.move(1); assertEquals("#2.2", "\\", model0.currentToken().getType()); model0.move(1); model0.delete(-3); model0.insertBackSlash(); model0.insertQuote(); model0.move(-1); model0.insertClosedParen(); model0.move(-2); assertEquals("#3.0", "\\", model0.currentToken().getType()); model0.move(1); assertEquals("#3.1", ")", model0.currentToken().getType()); model0.move(1); assertEquals("#3.2", "\"", model0.currentToken().getType()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6f064a351cf6f32ca81eb7bd4e1d9f192f6a46c6/BackSlashTest.java/clean/drjava/src/edu/rice/cs/drjava/model/definitions/reducedmodel/BackSlashTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 4600, 11831, 5265, 8448, 1435, 288, 565, 938, 21, 18, 6387, 2711, 11033, 5621, 565, 938, 21, 18, 6387, 2711, 11033, 5621, 565, 938, 21, 18, 8501, 19236, 21, 1769, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 1842, 4600, 11831, 5265, 8448, 1435, 288, 565, 938, 21, 18, 6387, 2711, 11033, 5621, 565, 938, 21, 18, 6387, 2711, 11033, 5621, 565, 938, 21, 18, 8501, 19236, 21, 1769, 565, ...
if (iConstructors.length == 0) throw new RuntimeException();
if (iConstructors.length == 0) throw new RuntimeException("SNO: Target class \"" + targetClass.getDescriptor() + "\" has no constructors");
private void invokeConstructor( Java.Located located, Java.Scope scope, Java.Rvalue optionalEnclosingInstance, IClass targetClass, Java.Rvalue[] arguments ) throws CompileException { // Find constructors. IClass.IConstructor[] iConstructors = targetClass.getDeclaredIConstructors(); if (iConstructors.length == 0) throw new RuntimeException(); IClass.IConstructor iConstructor = (IClass.IConstructor) this.findMostSpecificIInvocable( located, iConstructors, // iInvocables arguments // arguments ); // Check exceptions that the constructor may throw. IClass[] thrownExceptions = iConstructor.getThrownExceptions(); for (int i = 0; i < thrownExceptions.length; ++i) { this.checkThrownException( located, thrownExceptions[i], scope ); } // Pass enclosing instance as a synthetic parameter. IClass outerIClass = targetClass.getOuterIClass(); if (outerIClass != null) { if (optionalEnclosingInstance == null) this.compileError("Enclosing instance for initialization of inner class \"" + targetClass + "\" missing", located.getLocation()); IClass eiic = this.compileGetValue(optionalEnclosingInstance); if (!outerIClass.isAssignableFrom(eiic)) this.compileError("Type of enclosing instance (\"" + eiic + "\") is not assignable to \"" + outerIClass + "\"", located.getLocation()); } // Pass local variables to constructor as synthetic parameters. { IClass.IField[] syntheticFields = targetClass.getSyntheticIFields(); // Determine enclosing function declarator and type declaration. Java.TypeBodyDeclaration scopeTBD; Java.TypeDeclaration scopeTypeDeclaration; { Java.Scope s = scope; for (; !(s instanceof Java.TypeBodyDeclaration); s = s.getEnclosingScope()); scopeTBD = (Java.TypeBodyDeclaration) s; scopeTypeDeclaration = scopeTBD.getDeclaringType(); } if (!(scopeTypeDeclaration instanceof Java.ClassDeclaration)) { if (syntheticFields.length > 0) throw new RuntimeException(); } else { Java.ClassDeclaration scopeClassDeclaration = (Java.ClassDeclaration) scopeTypeDeclaration; for (int i = 0; i < syntheticFields.length; ++i) { IClass.IField sf = syntheticFields[i]; if (!sf.getName().startsWith("val$")) continue; IClass.IField eisf = (IClass.IField) scopeClassDeclaration.syntheticFields.get(sf.getName()); if (eisf != null) { if (scopeTBD instanceof Java.MethodDeclarator) { this.load(located, this.resolve(scopeClassDeclaration), 0); this.writeOpcode(located, Opcode.GETFIELD); this.writeConstantFieldrefInfo( located, this.resolve(scopeClassDeclaration).getDescriptor(), // classFD sf.getName(), // fieldName sf.getDescriptor() // fieldFD ); } else if (scopeTBD instanceof Java.ConstructorDeclarator) { Java.ConstructorDeclarator constructorDeclarator = (Java.ConstructorDeclarator) scopeTBD; Java.LocalVariable syntheticParameter = (Java.LocalVariable) constructorDeclarator.syntheticParameters.get(sf.getName()); if (syntheticParameter == null) { this.compileError("Compiler limitation: Constructor cannot access local variable \"" + sf.getName().substring(4) + "\" declared in an enclosing block because none of the methods accesses it. As a workaround, declare a dummy method that accesses the local variable.", located.getLocation()); this.writeOpcode(located, Opcode.ACONST_NULL); } else { this.load(located, syntheticParameter); } } else { this.compileError("Compiler limitation: Initializers cannot access local variables declared in an enclosing block.", located.getLocation()); this.writeOpcode(located, Opcode.ACONST_NULL); } } else { String localVariableName = sf.getName().substring(4); Java.LocalVariable lv; DETERMINE_LV: { Java.Scope s; for (s = scope; s instanceof Java.BlockStatement; s = s.getEnclosingScope()) { Java.BlockStatement bs = (Java.BlockStatement) s; Java.Scope es = bs.getEnclosingScope(); if (!(es instanceof Java.Block)) continue; Java.Block b = (Java.Block) es; for (Iterator it = b.statements.iterator();;) { Java.BlockStatement bs2 = (Java.BlockStatement) it.next(); if (bs2 == bs) break; if (bs2 instanceof Java.LocalVariableDeclarationStatement) { Java.LocalVariableDeclarationStatement lvds = ((Java.LocalVariableDeclarationStatement) bs2); Java.VariableDeclarator[] vds = lvds.variableDeclarators; for (int j = 0; j < vds.length; ++j) { if (vds[j].name.equals(localVariableName)) { lv = this.getLocalVariable(lvds, vds[j]); break DETERMINE_LV; } } } } } while (!(s instanceof Java.FunctionDeclarator)) s = s.getEnclosingScope(); Java.FunctionDeclarator fd = (Java.FunctionDeclarator) s; for (int j = 0; j < fd.formalParameters.length; ++j) { Java.FunctionDeclarator.FormalParameter fp = fd.formalParameters[j]; if (fp.name.equals(localVariableName)) { lv = this.getLocalVariable(fp); break DETERMINE_LV; } } throw new RuntimeException("SNO: Synthetic field \"" + sf.getName() + "\" neither maps a synthetic field of an enclosing instance nor a local variable"); } this.load(located, lv); } } } } // Evaluate constructor arguments. IClass[] parameterTypes = iConstructor.getParameterTypes(); for (int i = 0; i < arguments.length; ++i) { this.assignmentConversion( (Java.Located) located, // located this.compileGetValue(arguments[i]), // sourceType parameterTypes[i], // targetType this.getConstantValue(arguments[i]) // optionalConstantValue ); } // Invoke! // Notice that the method descriptor is "iConstructor.getDescriptor()" prepended with the // synthetic parameters. this.writeOpcode(located, Opcode.INVOKESPECIAL); this.writeConstantMethodrefInfo( located, targetClass.getDescriptor(), // classFD "<init>", // methodName iConstructor.getDescriptor() // methodMD ); }
9453 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9453/9144825a0ce7c4e3f8cc307fff204eb4550cc555/UnitCompiler.java/buggy/janino/src/org/codehaus/janino/UnitCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4356, 6293, 12, 3639, 5110, 18, 1333, 690, 225, 13801, 16, 3639, 5110, 18, 3876, 565, 2146, 16, 3639, 5110, 18, 54, 1132, 282, 3129, 21594, 1442, 16, 3639, 467, 797, 3639, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 918, 4356, 6293, 12, 3639, 5110, 18, 1333, 690, 225, 13801, 16, 3639, 5110, 18, 3876, 565, 2146, 16, 3639, 5110, 18, 54, 1132, 282, 3129, 21594, 1442, 16, 3639, 467, 797, 3639, 14...
return getSlot( ListingElement.DETAIL_SLOT );
return getSlot( IListingElementModel.DETAIL_SLOT );
public SlotHandle getDetail( ) { return getSlot( ListingElement.DETAIL_SLOT ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/ListingHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ListingHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 23195, 3259, 2343, 1641, 12, 262, 202, 95, 202, 202, 2463, 17718, 352, 12, 987, 310, 1046, 18, 40, 19810, 67, 55, 1502, 56, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 23195, 3259, 2343, 1641, 12, 262, 202, 95, 202, 202, 2463, 17718, 352, 12, 987, 310, 1046, 18, 40, 19810, 67, 55, 1502, 56, 11272, 202, 97, 2, -100, -100, -100, -100, -100, ...
setModified(true);
public void setFolderId(String folderId) { if (((folderId == null) && (_folderId != null)) || ((folderId != null) && (_folderId == null)) || ((folderId != null) && (_folderId != null) && !folderId.equals(_folderId))) { if (!XSS_ALLOW_FOLDERID) { folderId = XSSUtil.strip(folderId); } _folderId = folderId; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 3899, 548, 12, 780, 31996, 13, 288, 202, 202, 430, 261, 12443, 5609, 548, 422, 446, 13, 597, 261, 67, 5609, 548, 480, 446, 3719, 747, 9506, 202, 12443, 5609, 548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 444, 3899, 548, 12, 780, 31996, 13, 288, 202, 202, 430, 261, 12443, 5609, 548, 422, 446, 13, 597, 261, 67, 5609, 548, 480, 446, 3719, 747, 9506, 202, 12443, 5609, 548, ...
protected void translateXMLNode(ITextRegionCollection container, Iterator regions) { // contents must be valid XHTML, translate escaped CDATA into what it really is... ITextRegion r = null; if (regions.hasNext()) { r = (ITextRegion) regions.next(); if (r.getType() == XMLRegionContext.XML_TAG_NAME || r.getType() == XMLJSPRegionContexts.JSP_DIRECTIVE_NAME) // <jsp:directive.xxx comes in as this { String fullTagName = container.getFullText(r).trim(); if (fullTagName.indexOf(':') > -1) { addTaglibVariables(fullTagName); // it may be a taglib } StringTokenizer st = new StringTokenizer(fullTagName, ":.", false); //$NON-NLS-1$ if (st.hasMoreTokens() && st.nextToken().equals("jsp")) //$NON-NLS-1$ { if (st.hasMoreTokens()) { String jspTagName = st.nextToken(); if (jspTagName.equals("useBean")) //$NON-NLS-1$ { advanceNextNode(); // get the content if (getCurrentNode() != null) { translateUseBean(container); // 'regions' should be all the useBean attributes } } else if (jspTagName.equals("scriptlet")) //$NON-NLS-1$ { // <jsp:scriptlet>scriptlet content...</jsp:scriptlet> IStructuredDocumentRegion sdr = getCurrentNode().getNext(); if(sdr != null) { translateScriptletString(sdr.getText(), sdr, sdr.getStartOffset(), sdr.getEndOffset()); } advanceNextNode(); } else if (jspTagName.equals("expression")) //$NON-NLS-1$ { // <jsp:expression>expression content...</jsp:expression> IStructuredDocumentRegion sdr = getCurrentNode().getNext(); if(sdr != null) { translateExpressionString(sdr.getText(), sdr, sdr.getStartOffset(), sdr.getEndOffset()); } advanceNextNode(); } else if (jspTagName.equals("declaration")) //$NON-NLS-1$ { // <jsp:declaration>declaration content...</jsp:declaration> IStructuredDocumentRegion sdr = getCurrentNode().getNext(); if(sdr != null) { translateDeclarationString(sdr.getText(), sdr, sdr.getStartOffset(), sdr.getEndOffset()); } advanceNextNode(); } else if (jspTagName.equals("directive")) //$NON-NLS-1$ { if (st.hasMoreTokens()) { String directiveName = st.nextToken(); if (directiveName.equals("taglib")) { //$NON-NLS-1$ handleTaglib(); return; } else if (directiveName.equals("include")) { //$NON-NLS-1$ String fileLocation = ""; //$NON-NLS-1$ String attrValue = ""; //$NON-NLS-1$ // CMVC 258311 // PMR 18368, B663 // skip to required "file" attribute, should be safe because // "file" is the only attribute for the include directive while (r != null && regions.hasNext() && !r.getType().equals(XMLRegionContext.XML_TAG_ATTRIBUTE_NAME)) { r = (ITextRegion) regions.next(); } attrValue = getAttributeValue(r, regions); if (attrValue != null) handleIncludeFile(fileLocation); } else if (directiveName.equals("page")) { //$NON-NLS-1$ // 20040702 commenting this out // bad if currentNode is referenced after here w/ the current list // see: https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3035 // setCurrentNode(getCurrentNode().getNext()); if (getCurrentNode() != null) { translatePageDirectiveAttributes(regions); // 'regions' are attributes for the directive } } } } else if(jspTagName.equals("include")) { //$NON-NLS-1$ // <jsp:include page="filename") /> while(regions.hasNext()) { r = (ITextRegion)regions.next(); if(r.getType() == XMLRegionContext.XML_TAG_ATTRIBUTE_NAME && getCurrentNode().getText(r).equals("page")) { //$NON-NLS-1$ String filename = getAttributeValue(r, regions); handleIncludeFile(filename); break; } } } } } else { // tag name is not jsp // handle embedded jsp attributes... ITextRegion embedded = null; Iterator attrRegions = null; ITextRegion attrChunk = null; while (regions.hasNext()) { embedded = (ITextRegion) regions.next(); if (embedded instanceof ITextRegionContainer) { // parse out container attrRegions = ((ITextRegionContainer) embedded).getRegions().iterator(); while (attrRegions.hasNext()) { attrChunk = (ITextRegion) attrRegions.next(); String type = attrChunk.getType(); // CMVC 263661, embedded JSP in attribute support // only want to translate one time per embedded region // so we only translate on the JSP open tags (not content) if (type == XMLJSPRegionContexts.JSP_EXPRESSION_OPEN || type == XMLJSPRegionContexts.JSP_SCRIPTLET_OPEN || type == XMLJSPRegionContexts.JSP_DECLARATION_OPEN || type == XMLJSPRegionContexts.JSP_DIRECTIVE_OPEN) { // now call jsptranslate //System.out.println("embedded jsp OPEN >>>> " + ((ITextRegionContainer)embedded).getText(attrChunk)); translateEmbeddedJSPInAttribute((ITextRegionContainer) embedded); } } } } } } } }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/2e01915a5c78fe7220591d5dfc6ebf923eaed5f2/JSPTranslator.java/buggy/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/java/JSPTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 225, 918, 225, 4204, 4201, 907, 12, 1285, 408, 5165, 2532, 225, 1478, 16, 225, 4498, 225, 10085, 13, 225, 288, 202, 202, 759, 225, 2939, 225, 1297, 225, 506, 225, 923, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 225, 918, 225, 4204, 4201, 907, 12, 1285, 408, 5165, 2532, 225, 1478, 16, 225, 4498, 225, 10085, 13, 225, 288, 202, 202, 759, 225, 2939, 225, 1297, 225, 506, 225, 923, 225, ...
.getSessionHandle( ).openDesign( fileName );
.getSessionHandle( ) .openDesign( fileName );
private void setDesignFile( String fileName ) throws DesignFileException, SemanticException, IOException { ReportDesignHandle handle = SessionHandleAdapter.getInstance( ) .getSessionHandle( ).openDesign( fileName ); if ( !page.getDisplayName( ).equals( "" ) ) //$NON-NLS-1$ handle.setDisplayName( page.getDisplayName( ) ); if ( !page.getDescription( ).equals( "" ) ) //$NON-NLS-1$ handle.setProperty( ModuleHandle.DESCRIPTION_PROP, page .getDescription( ) ); if ( !page.getPreviewImagePath( ).equals( "" ) ) //$NON-NLS-1$ handle.setIconFile( page.getPreviewImagePath( ) );// if ( !page.getCheetSheetPath( ).equals( "" ) ) //$NON-NLS-1$// handle.setCheetSheet( page.getCheetSheetPath( ) ); handle.save( ); handle.close( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/fa0d9b868dc450072bbb03258594a18bbc5f2012/PublishTemplateAction.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/PublishTemplateAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 444, 15478, 812, 12, 514, 3968, 262, 1216, 29703, 812, 503, 16, 1082, 202, 13185, 9941, 503, 16, 1860, 202, 95, 202, 202, 4820, 15478, 3259, 1640, 273, 3877, 3259, 4216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 918, 444, 15478, 812, 12, 514, 3968, 262, 1216, 29703, 812, 503, 16, 1082, 202, 13185, 9941, 503, 16, 1860, 202, 95, 202, 202, 4820, 15478, 3259, 1640, 273, 3877, 3259, 4216, ...
if (src instanceof UMOMessage) {
if (src instanceof UMOMessage && !isSourceTypeSupported(UMOMessage.class)) {
public final Object transform(Object src) throws TransformerException { Object result; String encoding = null; if (src instanceof UMOMessage) { encoding = ((UMOMessage) src).getEncoding(); src = ((UMOMessage) src).getPayload(); } if (!isSourceTypeSupported(src.getClass())) { if(ignoreBadInput) { logger.debug("Source type is incompatible with this transformer. Property 'ignoreBadInput' is set to true so the transformer chain will continue"); return src; } else { throw new TransformerException(new Message(Messages.TRANSFORM_X_UNSUPORTED_TYPE_X_ENDPOINT_X, getName(), src.getClass().getName(), endpoint.getEndpointURI()), this); } } else { if (endpoint != null && endpoint.getEncoding()!=null) { encoding = endpoint.getEncoding(); } if(encoding==null) { encoding = MuleManager.getConfiguration().getEncoding(); } result = doTransform(src, encoding); result = checkReturnClass(result); if (transformer != null) { result = transformer.transform(result); } } return result; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/e4a596928caf8df6fd4e25eaf0066305766f0ed9/AbstractTransformer.java/buggy/src/java/org/mule/transformers/AbstractTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1033, 2510, 12, 921, 1705, 13, 1216, 21684, 565, 288, 3639, 1033, 563, 31, 3639, 514, 2688, 273, 446, 31, 3639, 309, 261, 4816, 1276, 587, 5980, 1079, 597, 401, 291, 1830, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 727, 1033, 2510, 12, 921, 1705, 13, 1216, 21684, 565, 288, 3639, 1033, 563, 31, 3639, 514, 2688, 273, 446, 31, 3639, 309, 261, 4816, 1276, 587, 5980, 1079, 597, 401, 291, 1830, 55...
private int subParseString(boolean stop_on_reset, ArrayList v, int base_offset, String rules) throws ParseException { boolean ignoreChars = (base_offset == 0); int operator = -1; StringBuffer sb = new StringBuffer(); boolean doubleQuote = false; boolean eatingChars = false; boolean nextIsModifier = false; boolean isModifier = false; int i; main_parse_loop: for (i = 0; i < rules.length(); i++) { char c = rules.charAt(i); int type = -1; if (!eatingChars && ((c >= 0x09 && c <= 0x0D) || (c == 0x20))) continue; isModifier = nextIsModifier; nextIsModifier = false; if (eatingChars && c != '\'') { doubleQuote = false; sb.append(c); continue; } if (doubleQuote && eatingChars) { sb.append(c); doubleQuote = false; continue; } switch (c) { case '!': throw new ParseException ("Modifier '!' is not yet supported by Classpath", i + base_offset); case '<': type = CollationSorter.GREATERP; break; case ';': type = CollationSorter.GREATERS; break; case ',': type = CollationSorter.GREATERT; break; case '=': type = CollationSorter.EQUAL; break; case '\'': eatingChars = !eatingChars; doubleQuote = true; break; case '@': if (ignoreChars) throw new ParseException ("comparison list has not yet been started. You may only use" + "(<,;=&)", i + base_offset); // Inverse the order of secondaries from now on. nextIsModifier = true; type = CollationSorter.INVERSE_SECONDARY; break; case '&': type = CollationSorter.RESET; if (stop_on_reset) break main_parse_loop; break; default: if (operator < 0) throw new ParseException ("operator missing at " + (i + base_offset), i + base_offset); if (! eatingChars && ((c >= 0x21 && c <= 0x2F) || (c >= 0x3A && c <= 0x40) || (c >= 0x5B && c <= 0x60) || (c >= 0x7B && c <= 0x7E))) throw new ParseException ("unquoted punctuation character '" + c + "'", i + base_offset); //type = ignoreChars ? CollationSorter.IGNORE : -1; sb.append(c); break; } if (type < 0) continue; if (operator < 0) { operator = type; continue; } if (sb.length() == 0 && !isModifier) throw new ParseException ("text element empty at " + (i+base_offset), i+base_offset); if (operator == CollationSorter.RESET) { /* Reposition in the sorting list at the position * indicated by the text element. */ String subrules = rules.substring(i); ArrayList sorted_rules = new ArrayList(); int idx; // Parse the subrules but do not iterate through all // sublist. This is the priviledge of the first call. idx = subParseString(true, sorted_rules, base_offset+i, subrules); // Merge new parsed rules into the list. mergeRules(base_offset+i, sb.toString(), v, sorted_rules); sb.setLength(0); // Reset state to none. operator = -1; type = -1; // We have found a new subrule at 'idx' but it has not been parsed. if (idx >= 0) { i += idx-1; continue main_parse_loop; } else // No more rules. break main_parse_loop; } CollationSorter sorter = new CollationSorter(); if (operator == CollationSorter.GREATERP) ignoreChars = false; sorter.comparisonType = operator; sorter.textElement = sb.toString(); sorter.hashText = sorter.textElement.hashCode(); sorter.offset = base_offset+rules.length(); sorter.ignore = ignoreChars; sb.setLength(0); v.add(sorter); operator = type; } if (operator >= 0) { CollationSorter sorter = new CollationSorter(); int pos = rules.length() + base_offset; if ((sb.length() != 0 && nextIsModifier) || (sb.length() == 0 && !nextIsModifier && !eatingChars)) throw new ParseException("text element empty at " + pos, pos); if (operator == CollationSorter.GREATERP) ignoreChars = false; sorter.comparisonType = operator; sorter.textElement = sb.toString(); sorter.hashText = sorter.textElement.hashCode(); sorter.offset = base_offset+pos; sorter.ignore = ignoreChars; v.add(sorter); } if (i == rules.length()) return -1; else return i; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/RuleBasedCollator.java/buggy/core/src/classpath/java/java/text/RuleBasedCollator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 720, 3201, 780, 12, 6494, 2132, 67, 265, 67, 6208, 16, 2407, 331, 16, 9506, 377, 509, 1026, 67, 3348, 16, 514, 2931, 13, 565, 1216, 10616, 225, 288, 565, 1250, 2305, 7803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 3238, 509, 720, 3201, 780, 12, 6494, 2132, 67, 265, 67, 6208, 16, 2407, 331, 16, 9506, 377, 509, 1026, 67, 3348, 16, 514, 2931, 13, 565, 1216, 10616, 225, 288, 565, 1250, 2305, 7803, ...
public void add (IdentityStructure aIdentity) { ids.addElement(aIdentity); }
public void add(IdentityStructure aIdentity) { Preferences.getPreferances().getAccounts().getAccount(0).addIdentity(aIdentity.getID()); /*if (aIdentity.getParent() == null) { aIdentity.setParent(XMLPreferences.getPreferances().getAccounts().getAccount(0).getIdentities()); }*/ }
public void add (IdentityStructure aIdentity) { ids.addElement(aIdentity); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/197bb74e084fe41a1eb953921d753b275c595a3d/IdentityArray.java/buggy/grendel/sources/grendel/prefs/base/IdentityArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 261, 4334, 6999, 279, 4334, 13, 288, 565, 3258, 18, 1289, 1046, 12, 69, 4334, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 261, 4334, 6999, 279, 4334, 13, 288, 565, 3258, 18, 1289, 1046, 12, 69, 4334, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
protected QueryOperation combineOps(QueryOperation other, boolean union) { if (union) { // only join on intersection right now... if (hasNoResults()) { // a query for (other OR nothing) == other return other; } if (other.hasNoResults()) { return this; } if (mAllResultsQuery) return this; DBQueryOperation dbOther = null; if (other instanceof DBQueryOperation) { dbOther = (DBQueryOperation)other; if (dbOther.mAllResultsQuery) // (something OR ALL ) == ALL return dbOther; if (mLuceneOp != null && dbOther.mLuceneOp != null){ // can't combine return null; } mConstraints = mConstraints.orIConstraints(dbOther.mConstraints); return this; } else { return null; } } else { if (mAllResultsQuery) { // we match all results. (other AND anything) == other assert(mLuceneOp == null); if (hasSpamTrashSetting()) { other.forceHasSpamTrashSetting(); } return other; } DBQueryOperation dbOther = null; if (other instanceof DBQueryOperation) { dbOther = (DBQueryOperation)other; } else { return null; } if (mLuceneOp != null) { if (dbOther.mLuceneOp != null) { mLuceneOp.combineOps(dbOther.mLuceneOp, false); } } else { mLuceneOp = dbOther.mLuceneOp; } if (mAllResultsQuery && dbOther.mAllResultsQuery) { mAllResultsQuery = true; } else { mAllResultsQuery = false; }// ((LeafNode)mConstraints).andConstraints((LeafNode)dbOther.mConstraints); mConstraints = mConstraints.andIConstraints(dbOther.mConstraints); return this; } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/31d5c642f402e22750f62179c114fd54eb151529/DBQueryOperation.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/DBQueryOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2770, 2988, 8661, 8132, 12, 1138, 2988, 1308, 16, 1250, 7812, 13, 377, 288, 377, 202, 430, 261, 18910, 13, 288, 377, 202, 202, 759, 1338, 1233, 603, 7619, 2145, 2037, 2777, 377, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2770, 2988, 8661, 8132, 12, 1138, 2988, 1308, 16, 1250, 7812, 13, 377, 288, 377, 202, 430, 261, 18910, 13, 288, 377, 202, 202, 759, 1338, 1233, 603, 7619, 2145, 2037, 2777, 377, 2...
SymmetricKey symkey = ((SecretKeyFacade)key).key; return symkey.getLength();
public int engineGetKeySize(Key key) throws InvalidKeyException { if( ! (key instanceof SecretKeyFacade) ) { throw new InvalidKeyException("key must be JSS key"); } SymmetricKey symkey = ((SecretKeyFacade)key).key; return symkey.getLength(); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/844a47f512fc6f90ce5a4435b8a2511c9ef25adc/JSSCipherSpi.java/clean/security/jss/org/mozilla/jss/provider/javax/crypto/JSSCipherSpi.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 4073, 967, 653, 1225, 12, 653, 498, 13, 1216, 28885, 288, 3639, 309, 12, 401, 261, 856, 1276, 19391, 12467, 13, 262, 288, 5411, 604, 394, 28885, 2932, 856, 1297, 506, 29686, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 509, 4073, 967, 653, 1225, 12, 653, 498, 13, 1216, 28885, 288, 3639, 309, 12, 401, 261, 856, 1276, 19391, 12467, 13, 262, 288, 5411, 604, 394, 28885, 2932, 856, 1297, 506, 29686, ...
ELColumnTag.class, null, "setSortable"));
ELColumnTag.class, null, "setSortable"));
public PropertyDescriptor[] getPropertyDescriptors() { List proplist = new ArrayList(); try { proplist.add(new PropertyDescriptor("autolink", //$NON-NLS-1$ ELColumnTag.class, null, "setAutolink")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("class", //$NON-NLS-1$ ELColumnTag.class, null, "setClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("decorator", //$NON-NLS-1$ ELColumnTag.class, null, "setDecorator")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("group", //$NON-NLS-1$ ELColumnTag.class, null, "setGroup")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("headerClass", //$NON-NLS-1$ ELColumnTag.class, null, "setHeaderClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("href", //$NON-NLS-1$ ELColumnTag.class, null, "setHref")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("maxLength", //$NON-NLS-1$ ELColumnTag.class, null, "setMaxLength")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("maxWords", //$NON-NLS-1$ ELColumnTag.class, null, "setMaxWords")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("media", //$NON-NLS-1$ ELColumnTag.class, null, "setMedia")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("nulls", //$NON-NLS-1$ ELColumnTag.class, null, "setNulls")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramId", //$NON-NLS-1$ ELColumnTag.class, null, "setParamId")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramName", //$NON-NLS-1$ ELColumnTag.class, null, "setParamName")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramProperty", //$NON-NLS-1$ ELColumnTag.class, null, "setParamProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramScope", //$NON-NLS-1$ ELColumnTag.class, null, "setParamScope")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("property", //$NON-NLS-1$ ELColumnTag.class, null, "setProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sortable", //$NON-NLS-1$ ELColumnTag.class, null, "setSortable")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sortName", //$NON-NLS-1$ ELColumnTag.class, null, "setSortName")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("style", //$NON-NLS-1$ ELColumnTag.class, null, "setStyle")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("total", //$NON-NLS-1$ ELColumnTag.class, null, "setTotal")); // map //$NON-NLS-1$ proplist.add(new PropertyDescriptor("title", //$NON-NLS-1$ ELColumnTag.class, null, "setTitle")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("titleKey", //$NON-NLS-1$ ELColumnTag.class, null, "setTitleKey")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("url", //$NON-NLS-1$ ELColumnTag.class, null, "setUrl")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sortProperty", //$NON-NLS-1$ ELColumnTag.class, null, "setSortProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("comparator", //$NON-NLS-1$ ELColumnTag.class, null, "setComparator")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("valueClass", //$NON-NLS-1$ ELColumnTag.class, null, "setValueClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("defaultorder", //$NON-NLS-1$ ELColumnTag.class, null, "setDefaultorder")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("headerScope", //$NON-NLS-1$ ELColumnTag.class, null, "setHeaderScope")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("scope", //$NON-NLS-1$ ELColumnTag.class, null, "setScope")); //$NON-NLS-1$ // deprecated attribute proplist.add(new PropertyDescriptor("sort", //$NON-NLS-1$ ELColumnTag.class, null, "setSortable")); // map //$NON-NLS-1$ proplist.add(new PropertyDescriptor("styleClass", //$NON-NLS-1$ ELColumnTag.class, null, "setStyle")); // map //$NON-NLS-1$ proplist.add(new PropertyDescriptor("headerStyleClass", //$NON-NLS-1$ ELColumnTag.class, null, "setHeaderClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("width", //$NON-NLS-1$ ELColumnTag.class, null, "setWidth")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("align", //$NON-NLS-1$ ELColumnTag.class, null, "setAlign")); //$NON-NLS-1$ } catch (IntrospectionException ex) { throw new RuntimeException("You got an introspection exception - maybe defining a property that is not" + " defined in the bean?: " + ex.getMessage(), ex); } PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()]; return ((PropertyDescriptor[]) proplist.toArray(result)); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/ea5857c4cef1cb29975e7fa24489265ce454d3f3/ELColumnTagBeanInfo.java/clean/displaytag/src/main/java/org/displaytag/tags/el/ELColumnTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 987, 450, 17842, 273, 394, 2407, 5621, 3639, 775, 3639, 288, 5411, 450, 17842, 18, 1289, 12, 2704, 26761, 2932, 5854, 355, 754, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 987, 450, 17842, 273, 394, 2407, 5621, 3639, 775, 3639, 288, 5411, 450, 17842, 18, 1289, 12, 2704, 26761, 2932, 5854, 355, 754, 3113, ...
final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == Double.NaN || v1 == Double.NaN || v0 == DoubleNull || v1 == DoubleNull) {
final String b0 = calc0.evaluateString(evaluator); final String b1 = calc1.evaluateString(evaluator); if (b0 == null || b1 == null) {
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) { final DoubleCalc calc0 = compiler.compileDouble(call.getArg(0)); final DoubleCalc calc1 = compiler.compileDouble(call.getArg(1)); return new AbstractBooleanCalc(call, new Calc[] {calc0, calc1}) { public boolean evaluateBoolean(Evaluator evaluator) { final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == Double.NaN || v1 == Double.NaN || v0 == DoubleNull || v1 == DoubleNull) { return BooleanNull; } return v0 > v1; } }; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/759b141925c76c1aa0aaf89d93dc38bfe19d7c5a/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 29128, 4074, 1477, 12, 12793, 22783, 1477, 745, 16, 7784, 9213, 5274, 13, 288, 7734, 727, 3698, 25779, 7029, 20, 273, 5274, 18, 11100, 5265, 12, 1991, 18, 588, 4117, 12, 20, 10019,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 1071, 29128, 4074, 1477, 12, 12793, 22783, 1477, 745, 16, 7784, 9213, 5274, 13, 288, 7734, 727, 3698, 25779, 7029, 20, 273, 5274, 18, 11100, 5265, 12, 1991, 18, 588, 4117, 12, 20, 10019,...
if(hostname == null) return;
private void appendShortName(String hostname, StringBuffer sb) { int index=hostname.indexOf('.'); if(hostname == null) return; if(index > 0 && !Character.isDigit(hostname.charAt(0))) sb.append(hostname.substring(0, index)); else sb.append(hostname); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/afbd4271d9f89d467ca6e01df94a2b5799bf414a/IpAddress.java/buggy/src/org/jgroups/stack/IpAddress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 714, 29983, 12, 780, 5199, 16, 6674, 2393, 13, 288, 3639, 509, 225, 770, 33, 10358, 18, 31806, 2668, 1093, 1769, 2868, 309, 12, 1615, 405, 374, 597, 401, 7069, 18, 291, 10907...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 918, 714, 29983, 12, 780, 5199, 16, 6674, 2393, 13, 288, 3639, 509, 225, 770, 33, 10358, 18, 31806, 2668, 1093, 1769, 2868, 309, 12, 1615, 405, 374, 597, 401, 7069, 18, 291, 10907...
return person.getAttributeValues(key);
return this.person.getAttributeValues(key);
public Object[] getAttributeValues(String key) { return person.getAttributeValues(key); }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/c0c1dd0a1871ebae4f0039a690088b1e96747524/RestrictedPerson.java/clean/source/org/jasig/portal/security/provider/RestrictedPerson.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8526, 4061, 1972, 12, 780, 498, 13, 288, 3639, 327, 333, 18, 12479, 18, 588, 31770, 12, 856, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8526, 4061, 1972, 12, 780, 498, 13, 288, 3639, 327, 333, 18, 12479, 18, 588, 31770, 12, 856, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
SanityCheck.ASSERT(pos != null, "Record not found: " + page.page.getPageInfo()); int startOffset = pos.offset - 2;
SanityCheck.ASSERT(pos != null, "Record not found: " + ItemId.getId(loggable.tid) + ": " + page.page.getPageInfo() + "\n" + debugPageContents(page)); int startOffset = pos.offset - 2;
protected void redoRemoveValue(RemoveValueLoggable loggable) { DOMPage page = getCurrentPage(loggable.pageNum);// LOG.debug(debugPageContents(page)); DOMFilePageHeader ph = page.getPageHeader(); if (ph.getLsn() > -1 && requiresRedo(loggable, page)) { RecordPos pos = page.findRecord(ItemId.getId(loggable.tid)); SanityCheck.ASSERT(pos != null, "Record not found: " + page.page.getPageInfo()); int startOffset = pos.offset - 2; if (ItemId.isLink(loggable.tid)) { int end = pos.offset + 8; System.arraycopy(page.data, pos.offset + 8, page.data, pos.offset - 2, page.len - end); page.len = page.len - 10; } else { // get the record length short l = ByteConversion.byteToShort(page.data, pos.offset); if (ItemId.isRelocated(loggable.tid)) { pos.offset += 8; l += 8; } if (l == OVERFLOW) l += 8; // end offset int end = startOffset + 4 + l; int len = ph.getDataLength(); // remove old value System.arraycopy(page.data, end, page.data, startOffset, len - end); page.setDirty(true); len = len - l - 4; page.len = len; } ph.setDataLength(page.len); page.setDirty(true); ph.decRecordCount(); ph.setLsn(loggable.getLsn()); page.cleanUp(); dataCache.add(page); }// LOG.debug(debugPageContents(page)); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/0684cab660e163e22ec4c1a1c8cafa8ebf2fc97e/DOMFile.java/buggy/src/org/exist/storage/dom/DOMFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24524, 3288, 620, 12, 3288, 620, 1343, 8455, 613, 8455, 13, 288, 202, 202, 8168, 1964, 1363, 273, 5175, 1964, 12, 1330, 8455, 18, 2433, 2578, 1769, 759, 3639, 2018, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24524, 3288, 620, 12, 3288, 620, 1343, 8455, 613, 8455, 13, 288, 202, 202, 8168, 1964, 1363, 273, 5175, 1964, 12, 1330, 8455, 18, 2433, 2578, 1769, 759, 3639, 2018, 18, ...
String id = element.getAttribute(ID); String file = element.getAttribute(ICON);
String id = element.getAttribute(IWorkbenchRegistryConstants.ATT_ID); String file = element.getAttribute(IWorkbenchRegistryConstants.ATT_ICON);
public void addExtension(IExtensionTracker tracker, IExtension extension) { IConfigurationElement [] elements = extension.getConfigurationElements(); for (int i = 0; i < elements.length; i++) { IConfigurationElement element = elements[i]; if (element.getName().equals(tag)) { String id = element.getAttribute(ID); String file = element.getAttribute(ICON); if (file == null || id == null) continue; //ignore - malformed if (registry.getDescriptor(id) == null) { // first come, first serve ImageDescriptor descriptor = AbstractUIPlugin.imageDescriptorFromPlugin(element.getNamespace(), file); if (descriptor != null) { registry.put(id, descriptor); tracker.registerObject(extension, id, IExtensionTracker.REF_WEAK); } } } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/18aa626ed5129ff3e8459e02ddd7452c22cd38c1/ImageBindingRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ws/ImageBindingRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 31798, 12, 45, 3625, 8135, 9745, 16, 467, 3625, 2710, 13, 288, 202, 202, 45, 1750, 1046, 5378, 2186, 273, 2710, 18, 588, 1750, 3471, 5621, 202, 202, 1884, 261, 474, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 31798, 12, 45, 3625, 8135, 9745, 16, 467, 3625, 2710, 13, 288, 202, 202, 45, 1750, 1046, 5378, 2186, 273, 2710, 18, 588, 1750, 3471, 5621, 202, 202, 1884, 261, 474, 277, ...
advisory.setMessage(MessageFormat.format(bundle.getString("message.distributedTest.distributeInquiryMessage"), args));
advisory.setMessage(MessageFormat.format(bundle .getString("message.distributedTest.distributeInquiryMessage"), args));
private Advisory createTestAdvisory(DistributedTest distributedTest) { ResourceBundle bundle = ResourceBundle.getBundle("resources.ApplicationResources", LanguageUtils.getLocale()); Advisory advisory = new Advisory(); advisory.setCreated(Calendar.getInstance().getTime()); advisory.setExpires(distributedTest.getEndDate().getTime()); advisory.setSender(MessageFormat.format(bundle.getString("message.distributedTest.from"), new Object[] { ((ExecutionCourse) distributedTest .getTestScope().getDomainObject()).getNome() })); advisory.setSubject(distributedTest.getTitle()); final String beginHour = DateFormatUtils.format(distributedTest.getBeginHour().getTime(), "HH:mm"); final String beginDate = DateFormatUtils.format(distributedTest.getBeginDate().getTime(), "dd/MM/yyyy"); final String endHour = DateFormatUtils.format(distributedTest.getEndHour().getTime(), "HH:mm"); final String endDate = DateFormatUtils.format(distributedTest.getEndDate().getTime(), "dd/MM/yyyy"); Object[] args = { this.contextPath, distributedTest.getIdInternal().toString(), beginHour, beginDate, endHour, endDate }; if (distributedTest.getTestType().equals(new TestType(TestType.INQUIRY))) { advisory.setMessage(MessageFormat.format(bundle.getString("message.distributedTest.distributeInquiryMessage"), args)); } else { advisory.setMessage(MessageFormat.format(bundle.getString("message.distributedTest.distributeTestMessage"), args)); } return advisory; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/fc0f682f5f1f0bb73b34c490fee17483ed593d68/AddStudentsToDistributedTest.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/teacher/onlineTests/AddStudentsToDistributedTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4052, 3516, 630, 752, 4709, 1871, 3516, 630, 12, 1669, 11050, 4709, 16859, 4709, 13, 288, 3639, 19198, 3440, 273, 19198, 18, 588, 3405, 2932, 4683, 18, 3208, 3805, 3113, 9889, 1989, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4052, 3516, 630, 752, 4709, 1871, 3516, 630, 12, 1669, 11050, 4709, 16859, 4709, 13, 288, 3639, 19198, 3440, 273, 19198, 18, 588, 3405, 2932, 4683, 18, 3208, 3805, 3113, 9889, 1989, ...
ruby.setSourceFile(oldFile); ruby.setSourceLine(oldLine);
ruby.setSourceFile(oldFile); ruby.setSourceLine(oldLine);
public Object eval(String file, int line, int col, Object expr) throws BSFException { String oldFile = ruby.getSourceFile(); int oldLine = ruby.getSourceLine(); ruby.setSourceFile(file); ruby.setSourceLine(line); Object result = ruby.evalScript((String) expr, Object.class); ruby.setSourceFile(oldFile); ruby.setSourceLine(oldLine); return result; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/786cea08c1dd2092a02d1254b49fbee371ace5f9/JRubyEngine.java/buggy/org/jruby/javasupport/bsf/JRubyEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5302, 12, 780, 585, 16, 509, 980, 16, 509, 645, 16, 1033, 3065, 13, 1216, 605, 22395, 503, 288, 3639, 514, 1592, 812, 273, 22155, 18, 588, 31150, 5621, 3639, 509, 1592, 1670...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 1033, 5302, 12, 780, 585, 16, 509, 980, 16, 509, 645, 16, 1033, 3065, 13, 1216, 605, 22395, 503, 288, 3639, 514, 1592, 812, 273, 22155, 18, 588, 31150, 5621, 3639, 509, 1592, 1670...
defineAliasSyntax = new kawa.standard.define_alias(); define ("define-alias", defineAliasSyntax);
define ("define-alias", new kawa.standard.define_alias());
public void initScheme () { Named proc; Named syn; Procedure2 eqv; Procedure2 eq; Procedure2 equal; // (null-environment) null_environment = new Environment (); null_environment.setName ("null-environment"); environ = null_environment; //-- Section 4.1 -- complete define (Interpreter.quote_sym, new Quote ()); define_syntax("define", defineSyntax = new kawa.standard.define(false)); define_syntax("define-private", defineSyntaxPrivate = new kawa.standard.define(true)); define_syntax ("if", "kawa.standard.ifp"); define_syntax ("set!", "kawa.standard.set_b"); // Section 4.2 -- complete define_syntax ("cond", "kawa.lib.std_syntax"); define_syntax ("case", "kawa.lib.std_syntax"); define_syntax ("and", "kawa.lib.std_syntax"); define ("or", new kawa.standard.and_or (false)); define_syntax ("%let", "kawa.standard.let"); define_syntax ("let", "kawa.lib.std_syntax"); define_syntax ("%let-decl", "kawa.lib.std_syntax"); define_syntax ("%let-init", "kawa.lib.std_syntax"); define_syntax ("let*", "kawa.lib.std_syntax"); define_syntax ("letrec", "kawa.standard.letrec"); define ("begin", beginSyntax = new kawa.standard.begin()); define_syntax ("do", "kawa.lib.std_syntax"); define_syntax ("delay", "kawa.lib.std_syntax"); define_proc ("%make-promise", "kawa.lib.std_syntax"); define_syntax ("quasiquote", "kawa.standard.quasiquote"); //-- Section 5 -- complete [except for internal definitions] define_syntax ("lambda", "kawa.lang.Lambda"); // Appendix (and R5RS) defineSyntaxSyntax = new kawa.standard.define_syntax (); define ("define-syntax", defineSyntaxSyntax); define ("syntax-rules", new kawa.standard.syntax_rules ()); define ("syntax-case", new kawa.standard.syntax_case ()); define ("let-syntax", new kawa.standard.let_syntax (false)); define ("letrec-syntax", new kawa.standard.let_syntax (true)); r4_environment = new Environment (null_environment); r4_environment.setName ("r4rs-environment"); environ = r4_environment; //-- Section 6.1 -- complete define_proc ("not", new kawa.standard.not()); define_proc ("boolean?", "kawa.lib.misc"); //-- Section 6.2 -- complete eqv = new kawa.standard.eqv_p(); define_proc("eqv?", eqv); eq = new kawa.standard.eq_p(); define_proc("eq?", eq); equal = new kawa.standard.equal_p(); define_proc("equal?", equal); //-- Section 6.3 -- complete define_proc("pair?", "kawa.lib.lists"); define_proc("cons", kawa.standard.cons.consProcedure); define_proc ("car", "kawa.standard.car"); define_proc ("cdr", "kawa.standard.cdr"); define_proc ("set-car!", "kawa.lib.lists"); define_proc ("set-cdr!", "kawa.lib.lists"); define_proc ("caar", "kawa.standard.cxr"); define_proc ("cadr", "kawa.standard.cxr"); define_proc ("cdar", "kawa.standard.cxr"); define_proc ("cddr", "kawa.standard.cxr"); define_proc ("caaar", "kawa.standard.cxr"); define_proc ("caadr", "kawa.standard.cxr"); define_proc ("cadar", "kawa.standard.cxr"); define_proc ("caddr", "kawa.standard.cxr"); define_proc ("cdaar", "kawa.standard.cxr"); define_proc ("cdadr", "kawa.standard.cxr"); define_proc ("cddar", "kawa.standard.cxr"); define_proc ("cdddr", "kawa.standard.cxr"); define_proc ("caaaar", "kawa.standard.cxr"); define_proc ("caaadr", "kawa.standard.cxr"); define_proc ("caadar", "kawa.standard.cxr"); define_proc ("caaddr", "kawa.standard.cxr"); define_proc ("cadaar", "kawa.standard.cxr"); define_proc ("cadadr", "kawa.standard.cxr"); define_proc ("caddar", "kawa.standard.cxr"); define_proc ("cadddr", "kawa.standard.cxr"); define_proc ("cdaaar", "kawa.standard.cxr"); define_proc ("cdaadr", "kawa.standard.cxr"); define_proc ("cdadar", "kawa.standard.cxr"); define_proc ("cdaddr", "kawa.standard.cxr"); define_proc ("cddaar", "kawa.standard.cxr"); define_proc ("cddadr", "kawa.standard.cxr"); define_proc ("cdddar", "kawa.standard.cxr"); define_proc ("cddddr", "kawa.standard.cxr"); define_proc ("null?", "kawa.lib.lists"); define_proc ("list?", "kawa.standard.list_p"); define_proc ("list", "kawa.standard.list_v"); define_proc ("length", "kawa.standard.length"); define ("append", kawa.standard.append.appendProcedure); define_proc ("reverse", "kawa.standard.reverse"); define_proc ("list-tail", "kawa.standard.list_tail"); define_proc ("list-ref", "kawa.standard.list_ref"); proc = new kawa.standard.mem("memq",eq); define(proc.name (), proc); proc = new kawa.standard.mem("memv",eqv); define(proc.name (), proc); proc = new kawa.standard.mem("member",equal); define(proc.name (), proc); proc = new kawa.standard.ass("assq",eq); define(proc.name (), proc); proc = new kawa.standard.ass("assv",eqv); define(proc.name (), proc); proc = new kawa.standard.ass("assoc",equal); define(proc.name (), proc); //-- Section 6.4 -- complete, including slashified read/write define_proc ("symbol?", "kawa.lib.misc"); define_proc ("symbol->string", "kawa.lib.misc"); define_proc ("string->symbol", "kawa.lib.misc"); //-- Section 6.5 define_proc ("number?", "kawa.lib.numbers"); define_proc ("quantity?", "kawa.lib.number"); define_proc ("complex?", "kawa.lib.numbers"); define_proc ("real?", "kawa.lib.numbers"); define_proc ("rational?", "kawa.lib.numbers"); define_proc ("integer?", "kawa.standard.integer_p"); define_proc ("exact?", "kawa.standard.exact_p"); define_proc ("inexact?", "kawa.standard.inexact_p"); define_proc ("=", "kawa.standard.equal_oper"); define_proc ("<", "kawa.standard.less_oper"); define_proc (">", "kawa.standard.greater_oper"); define_proc ("<=", "kawa.standard.lessequal_oper"); define_proc (">=", "kawa.standard.greaterequal_oper"); define_proc ("zero?", "kawa.lib.numbers"); define_proc ("positive?", "kawa.standard.positive_p"); define_proc ("negative?", "kawa.lib.numbers"); define_proc ("odd?", "kawa.lib.numbers"); define_proc ("even?", "kawa.lib.numbers"); define_proc ("max", "kawa.standard.max"); define_proc ("min", "kawa.standard.min"); define_proc ("+", "kawa.standard.plus_oper"); define_proc ("-", "kawa.standard.minus_oper"); define_proc ("*", "kawa.standard.multiply_oper"); define_proc ("/", "kawa.standard.divide_oper"); define_proc ("abs", "kawa.lib.numbers"); define_proc ("quotient", "kawa.lib.numbers"); define_proc ("remainder", "kawa.lib.numbers"); define_proc ("modulo", "kawa.standard.modulo"); define_proc ("gcd", "kawa.standard.gcd"); define_proc ("lcm", "kawa.standard.lcm"); define_proc ("numerator", "kawa.lib.numbers"); define_proc ("denominator", "kawa.lib.numbers"); define_proc ("floor", "kawa.standard.floor"); define_proc ("ceiling", "kawa.standard.ceiling"); define_proc ("truncate", "kawa.standard.truncate"); define_proc ("round", "kawa.standard.round"); define_proc ("rationalize", "kawa.standard.rationalize"); define_proc ("exp", "kawa.lib.numbers"); define_proc ("log", "kawa.lib.numbers"); define_proc ("sin", "kawa.lib.numbers"); define_proc ("cos", "kawa.lib.numbers"); define_proc ("tan", "kawa.lib.numbers"); define_proc ("asin", "kawa.standard.asin"); define_proc ("acos", "kawa.standard.acos"); define_proc ("atan", "kawa.standard.atan"); define_proc ("sqrt", "kawa.standard.sqrt"); define_proc ("expt", "kawa.standard.expt"); define_proc ("make-rectangular", "kawa.lib.numbers"); define_proc ("make-polar", "kawa.lib.numbers"); define_proc ("real-part", "kawa.lib.numbers"); define_proc ("imag-part", "kawa.lib.numbers"); define_proc ("magnitude", "kawa.lib.numbers"); define_proc ("angle", "kawa.lib.numbers"); define_proc ("exact->inexact", "kawa.standard.exact2inexact"); define_proc ("inexact->exact", "kawa.standard.inexact2exact"); define_proc ("number->string", "kawa.standard.number2string"); define_proc ("string->number", "kawa.standard.string2number"); //-- Section 6.6 -- complete define_proc ("char?", "kawa.lib.characters"); define_proc ("char=?", "kawa.standard.char_equal_p"); define_proc ("char<?", "kawa.standard.char_less_p"); define_proc ("char>?", "kawa.standard.char_greater_p"); define_proc ("char<=?", "kawa.standard.char_less_equal_p"); define_proc ("char>=?", "kawa.standard.char_greater_equal_p"); define_proc ("char-ci=?", "kawa.standard.char_ci_equal_p"); define_proc ("char-ci<?", "kawa.standard.char_ci_less_p"); define_proc ("char-ci>?", "kawa.standard.char_ci_greater_p"); define_proc ("char-ci<=?", "kawa.standard.char_ci_less_equal_p"); define_proc ("char-ci>=?", "kawa.standard.char_ci_greater_equal_p"); define_proc ("char-alphabetic?", "kawa.lib.characters"); define_proc ("char-numeric?", "kawa.lib.characters"); define_proc ("char-whitespace?", "kawa.lib.characters"); define_proc ("char-upper-case?", "kawa.lib.characters"); define_proc ("char-lower-case?", "kawa.lib.characters"); define_proc ("char->integer", "kawa.lib.characters"); define_proc ("integer->char", "kawa.lib.characters"); define_proc ("char-upcase", "kawa.lib.characters"); define_proc ("char-downcase", "kawa.lib.characters"); //-- Section 6.7 -- complete define_proc ("string?", "kawa.lib.strings"); define_proc ("make-string", "kawa.lib.strings"); define_proc ("string", "kawa.standard.string_v"); define_proc ("string-length", "kawa.lib.strings"); define_proc ("string-ref", "kawa.lib.strings"); define_proc ("string-set!", "kawa.lib.strings"); define_proc ("string=?", "kawa.lib.strings"); define_proc ("string-ci=?", "kawa.standard.string_ci_equal_p"); define_proc ("string<?", "kawa.standard.string_lessthan_p"); define_proc ("string>?", "kawa.standard.string_greaterthan_p"); define_proc ("string<=?", "kawa.standard.string_lessequal_p"); define_proc ("string>=?", "kawa.standard.string_greaterequal_p"); define_proc ("string-ci<?", "kawa.standard.string_ci_lessthan_p"); define_proc ("string-ci>?", "kawa.standard.string_ci_greaterthan_p"); define_proc ("string-ci<=?", "kawa.standard.string_ci_lessequal_p"); define_proc ("string-ci>=?", "kawa.standard.string_ci_greaterequal_p"); define_proc ("substring", "kawa.lib.strings"); define_proc ("string-append", "kawa.standard.string_append"); define_proc ("string->list", "kawa.standard.string2list"); define_proc ("list->string", "kawa.standard.list2string"); define_proc ("string-copy", "kawa.lib.strings"); define_proc ("string-fill!", "kawa.lib.strings"); //-- Section 6.8 -- complete define_proc ("vector?", "kawa.lib.vectors"); define_proc ("make-vector", "kawa.standard.make_vector"); define ("vector", kawa.standard.vector_v.vectorProcedure); define_proc ("vector-length", "kawa.lib.vectors"); define_proc ("vector-ref", "kawa.lib.vectors"); define_proc ("vector-set!", "kawa.lib.vectors"); define_proc ("list->vector", "kawa.lib.vectors"); define_proc ("vector->list", "kawa.standard.vector2list"); define_proc ("vector-fill!", "kawa.standard.vector_fill_b"); // Extension: define ("vector-append", kawa.standard.vector_append.vappendProcedure); //-- Section 6.9 -- complete [except restricted call/cc] define_proc ("procedure?", "kawa.lib.misc"); define_proc ("apply", "kawa.standard.apply"); define_proc (new map (true)); // map define_proc (new map (false)); // for-each define_proc ("call-with-current-continuation", "kawa.standard.callcc"); define_proc ("call/cc", "kawa.standard.callcc"); define_proc ("force", "kawa.standard.force"); //-- Section 6.10 -- complete define_proc ("call-with-input-file", "kawa.standard.call_with_input_file"); define_proc ("call-with-output-file", "kawa.standard.call_with_output_file"); define_proc ("input-port?", "kawa.lib.ports"); define_proc ("output-port?", "kawa.lib.ports"); define_proc ("current-input-port", "kawa.lib.ports"); define_proc ("current-output-port", "kawa.lib.ports"); define_proc ("with-input-from-file", "kawa.standard.with_input_from_file"); define_proc ("with-output-to-file", "kawa.standard.with_output_to_file"); define_proc ("open-input-file", "kawa.standard.open_input_file"); define_proc ("open-output-file", "kawa.standard.open_output_file"); define_proc ("close-input-port", "kawa.standard.close_input_port"); define_proc ("close-output-port", "kawa.lib.ports"); define_proc ("read", "kawa.standard.read"); define_proc ("read-line", "kawa.standard.read_line"); define_proc (new readchar (false)); // read-char define_proc (new readchar (true)); // peek-char define_proc ("eof-object?", "kawa.lib.ports"); define_proc ("char-ready?", "kawa.standard.char_ready_p"); define_proc (new write(true)); // write define_proc (new write(false)); // display define_proc ("write-char", "kawa.standard.writechar"); define_proc ("newline", "kawa.lib.ports"); define_proc ("load", "kawa.standard.load"); define_proc ("transcript-off", "kawa.lib.ports"); define_proc ("transcript-on", "kawa.lib.ports"); define_proc ("call-with-input-string", "kawa.lib.ports"); // Extension define_proc ("call-with-output-string", // Extension "kawa.standard.call_with_output_string"); define_proc ("force-output", "kawa.lib.ports"); // Extension define_proc ("port-line", "kawa.lib.ports"); define_proc ("set-port-line!", "kawa.lib.ports"); define_proc ("port-column", "kawa.lib.ports"); define_proc ("input-port-line-number", "kawa.lib.ports"); // Extension define_proc ("set-input-port-line-number!", "kawa.lib.ports"); define_proc ("input-port-column-number", "kawa.lib.ports"); define_proc ("input-port-read-state", "kawa.lib.ports"); define_proc ("default-prompter", "kawa.lib.ports"); define_proc ("input-port-prompter", "kawa.lib.ports"); define_proc ("set-input-port-prompter!", "kawa.lib.ports"); define_syntax ("%syntax-error", "kawa.standard.syntax_error"); r5_environment = new Environment (r4_environment); r5_environment.setName ("r5rs-environment"); environ = r5_environment; define_proc ("values", "kawa.standard.values_v"); define_proc ("call-with-values", "kawa.standard.call_with_values"); define_proc ("eval", "kawa.lang.Eval"); define_proc ("repl", new kawa.repl(this)); define_proc ("scheme-report-environment", "kawa.standard.scheme_env"); define_proc ("null-environment", "kawa.standard.null_env"); define_proc ("interaction-environment", "kawa.standard.user_env"); define_proc ("dynamic-wind", "kawa.lib.syntax"); kawa_environment = new Environment (r5_environment); environ = kawa_environment; define_proc ("exit", "kawa.lib.thread"); String sym = "arithmetic-shift"; proc = new AutoloadProcedure (sym, "kawa.standard.ashift"); define (sym, proc); define ("ash", proc); define_proc ("logand", "kawa.standard.logand"); define_proc ("logior", "kawa.standard.logior"); define_proc ("logxor", "kawa.standard.logxor"); define_proc ("lognot", "kawa.standard.lognot"); define_proc ("logop", "kawa.standard.logop"); define_proc ("logbit?", "kawa.standard.logbit_p"); define_proc ("logtest", "kawa.standard.logtest"); define_proc ("logcount", "kawa.standard.logcount"); define_proc ("bit-extract", "kawa.standard.bit_extract"); define_proc ("integer-length", "kawa.standard.int_length"); // These are from SLIB. define_proc("string-upcase!", "kawa.lib.strings"); define_proc("string-downcase!", "kawa.lib.strings"); define_proc("string-capitalize!", "kawa.lib.strings"); define_proc("string-upcase", "kawa.lib.strings"); define_proc("string-downcase", "kawa.lib.strings"); define_proc("string-capitalize", "kawa.lib.strings"); define_syntax("primitive-virtual-method", new kawa.standard.prim_method(182)); define_syntax("primitive-static-method", new kawa.standard.prim_method(184)); define_syntax("primitive-interface-method", new kawa.standard.prim_method(185)); define_syntax("primitive-constructor", new kawa.standard.prim_method(183)); define_syntax("primitive-op1", new kawa.standard.prim_method()); define_syntax("primitive-get-field", "kawa.lib.reflection"); define_syntax("primitive-set-field", "kawa.lib.reflection"); define_syntax("primitive-get-static", "kawa.lib.reflection"); define_syntax("primitive-set-static", "kawa.lib.reflection"); define_syntax("primitive-array-new", "kawa.lib.reflection"); define_syntax("primitive-array-get", "kawa.lib.reflection"); define_syntax("primitive-array-set", "kawa.lib.reflection"); define_syntax("primitive-array-length", "kawa.lib.reflection"); define_proc("subtype?", "kawa.lib.reflection"); define_proc("primitive-throw", new kawa.standard.prim_throw()); define_syntax("try-finally", "kawa.standard.try_finally"); define_syntax("try-catch", "kawa.standard.try_catch"); define_proc("throw", "kawa.standard.throw_name"); define_proc("catch", "kawa.lib.syntax"); define_proc("error", "kawa.lib.syntax"); define_proc("as", kawa.standard.convert.getInstance()); define_proc("instance?", new kawa.standard.instance()); define_syntax("synchronized", "kawa.standard.synchronizd"); define_syntax("object", "kawa.standard.object"); define_proc("make", "gnu.kawa.reflect.MakeInstance"); define_proc("slot-ref", "gnu.kawa.reflect.SlotGet"); define_proc("slot-set!", "gnu.kawa.reflect.SlotSet"); define_proc("field", "gnu.kawa.reflect.SlotGet"); define_proc("class-methods", "gnu.kawa.reflect.ClassMethods"); define_proc("static-field", "kawa.standard.static_field"); define_proc("invoke-static", "gnu.kawa.reflect.InvokeStatic"); define_proc("file-exists?", "kawa.lib.files"); define_proc("file-directory?", "kawa.lib.files"); define_proc("file-readable?", "kawa.lib.files"); define_proc("file-writable?", "kawa.lib.files"); define_proc("delete-file", "kawa.lib.files"); define_proc("system-tmpdir", "kawa.lib.files"); define_proc("make-temporary-file", "kawa.lib.files"); define_proc("rename-file", "kawa.lib.files"); define_proc("copy-file", "kawa.lib.files"); define_proc("create-directory", "kawa.lib.files"); define_proc("->pathname", "kawa.lib.files"); define("port-char-encoding", Boolean.TRUE); define("symbol-read-case", "P"); define_proc("system", "kawa.lib.system"); define_proc("make-process", "kawa.lib.system"); define_proc("tokenize-string-to-string-array", "kawa.lib.system"); define_proc("tokenize-string-using-shell", "kawa.lib.system"); if ("/".equals(System.getProperty("file.separator"))) define ("command-parse", lookup("tokenize-string-using-shell")); else define ("command-parse", lookup("tokenize-string-to-string-array")); // JDK 1.1 only: define_proc ("record-accessor", "kawa.lib.reflection"); define_proc ("record-modifier", "kawa.lib.reflection"); define_proc ("record-predicate", "kawa.lib.reflection"); define_proc ("record-constructor", "kawa.lib.reflection"); define_proc ("make-record-type", "kawa.lib.reflection"); define_proc ("record-type-descriptor", "kawa.lib.reflection"); define_proc ("record-type-name", "kawa.lib.reflection"); define_proc ("record-type-field-names", "kawa.lib.reflection"); define_proc ("record?", "kawa.lib.reflection"); define_syntax ("when", "kawa.lib.syntax"); //-- (when cond exp ...) define_syntax ("unless", "kawa.lib.syntax"); //-- (unless cond exp ...) define_syntax ("fluid-let", "kawa.standard.fluid_let"); define_syntax("constant-fold", "kawa.standard.constant_fold"); define_proc ("compile-file", "kawa.lang.CompileFile"); define_proc ("load-compiled", "kawa.lang.loadcompiled"); define_proc ("environment-bound?", "kawa.lib.misc"); define_proc ("scheme-implementation-version", "kawa.lib.misc"); define_proc ("scheme-window", "kawa.lib.misc"); define_proc ("quantity->number", "kawa.standard.quantity2number"); define_proc ("quantity->unit", "kawa.standard.quantity2unit"); define_proc ("make-quantity", "kawa.standard.make_quantity"); define_syntax ("define-unit", "kawa.lib.quantities"); define_proc ("gentemp", "kawa.lib.syntax"); define_syntax ("defmacro", "kawa.lib.syntax"); define_proc("setter", kawa.standard.setter.setterProcedure); define_syntax ("future", "kawa.lib.thread"); define_proc ("%make-future", "kawa.standard.make_future"); define_proc ("sleep", "kawa.standard.sleep"); define_syntax ("trace", "kawa.lib.trace"); define_syntax ("untrace", "kawa.lib.trace"); define_proc ("format", "kawa.standard.format"); define_proc ("parse-format", parseFormat); //define_proc("emacs:parse-format", new kawa.standard.ParseFormat(true)); define_proc("emacs:read", "kawa.lib.emacs"); define_proc ("keyword?", "kawa.lib.keywords"); define_proc ("keyword->string", "kawa.lib.keywords"); define_proc ("string->keyword", "kawa.lib.keywords"); define_proc ("%makeProcLocation", "kawa.standard.makeProcLocation"); define_syntax ("location", "kawa.standard.location"); defineAliasSyntax = new kawa.standard.define_alias(); define ("define-alias", defineAliasSyntax); }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/fefed3d8e30546b18d95678feb3bd3ff9e3d3fe0/Scheme.java/clean/kawa/standard/Scheme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 9321, 1832, 225, 288, 1377, 9796, 5418, 31, 1377, 9796, 6194, 31, 1377, 26639, 22, 7555, 90, 31, 1377, 26639, 22, 7555, 31, 1377, 26639, 22, 3959, 31, 1377, 368, 261, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 9321, 1832, 225, 288, 1377, 9796, 5418, 31, 1377, 9796, 6194, 31, 1377, 26639, 22, 7555, 90, 31, 1377, 26639, 22, 7555, 31, 1377, 26639, 22, 3959, 31, 1377, 368, 261, 2...
String result = getValue().toLowerCase(); if (result.equals(getValue())) {
String result = toString().toLowerCase(); if (sameAs(result)) {
public IRubyObject downcase_bang() { String result = getValue().toLowerCase(); if (result.equals(getValue())) { return getRuntime().getNil(); } setValue(result); return this; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 21662, 67, 70, 539, 1435, 288, 3639, 514, 563, 273, 2366, 7675, 869, 5630, 5621, 3639, 309, 261, 2088, 18, 14963, 12, 24805, 1435, 3719, 288, 5411, 327, 18814...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 15908, 10340, 921, 21662, 67, 70, 539, 1435, 288, 3639, 514, 563, 273, 2366, 7675, 869, 5630, 5621, 3639, 309, 261, 2088, 18, 14963, 12, 24805, 1435, 3719, 288, 5411, 327, 18814...
ClientConnectionDelegate delegate = (ClientConnectionDelegate)response.getResponse();
ClientConnectionDelegate delegate = (ClientConnectionDelegate)ret;
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, id, PayloadKey.AS_IS); String methodName = ((MethodInvocation)invocation).getMethod().getName(); InvocationResponse response = null; if ("getClientAOPConfig".equals(methodName)) { //This is invoked on it's own connection InvokerLocator locator = new InvokerLocator(serverLocatorURI); Client client = new Client(locator); try { response = (InvocationResponse)client.invoke(invocation, null); invocation.setResponseContextInfo(response.getContextInfo()); } finally { client.disconnect(); } } else if ("createConnectionDelegate".equals(methodName)) { //This must be invoked on the same connection subsequently used by the created JMS connection JMSRemotingConnection connection = new JMSRemotingConnection(serverLocatorURI); MethodInvocation mi = (MethodInvocation)invocation; //Fill in the client connection id - this is needed on the server side //so if the connection fails we can tie together the failed remoting connection //and the server side connectiondelegate object so we can clean them up Object[] args = mi.getArguments(); args[2] = connection.getId(); try { response = (InvocationResponse)connection.getInvokingClient().invoke(invocation, null); invocation.setResponseContextInfo(response.getContextInfo()); //TODO - We should simplify this by considering combining the "state" and the "client delegate" //objects - right now this is somewhat over complex //with some state being stored in the client delegate objects and other state //stored in the client state objects. //We could probably get rid of the client state objects and just use the client delegate objects //for storing state. ClientConnectionDelegate delegate = (ClientConnectionDelegate)response.getResponse(); delegate.setConnnectionState(connection); } catch (Throwable t) { connection.close(); throw t; } } else { throw new IllegalStateException("Unknown invocation"); } if (log.isTraceEnabled()) { log.trace("got server response for " + ((MethodInvocation)invocation).getMethod().getName()); } return response.getResponse(); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/ClientConnectionFactoryDelegate.java/clean/src/main/org/jboss/jms/client/delegate/ClientConnectionFactoryDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1033, 4356, 12, 9267, 9495, 13, 1216, 4206, 282, 288, 1377, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 5768, 601, 310, 315, 397, 14015, 1305, 9267, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1033, 4356, 12, 9267, 9495, 13, 1216, 4206, 282, 288, 1377, 309, 261, 1330, 18, 291, 3448, 1526, 10756, 288, 613, 18, 5129, 2932, 5768, 601, 310, 315, 397, 14015, 1305, 9267, 13, ...
super("View Bug");
super("View Issue");
public LinkAction() { super("View Bug"); }
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/f6a926146fdaee94921b30a3ef6f88b4f2557c6c/IssuesBrowser.java/clean/test/ca/odell/glazedlists/demo/issuebrowser/swing/IssuesBrowser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 4048, 1803, 1435, 288, 5411, 2240, 2932, 1767, 11820, 8863, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 1071, 4048, 1803, 1435, 288, 5411, 2240, 2932, 1767, 11820, 8863, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
curUnits.addLast(Jimple.v().newAssignStmt(local, value));
curUnits.addLast(Jimple.v().newAssignStmt(local, value));
protected void doAssign(Local local, Value value){ curUnits.addLast(Jimple.v().newAssignStmt(local, value)); }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/6bfdd4698fa4edb661b1e45946e7d37b991d8275/ClassGenHelper.java/buggy/aop/abc/src/abc/tm/weaving/weaver/ClassGenHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 4910, 12, 2042, 1191, 16, 1445, 460, 15329, 377, 202, 202, 1397, 7537, 18, 1289, 3024, 12, 46, 2052, 18, 90, 7675, 2704, 4910, 8952, 12, 3729, 16, 460, 10019, 565, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 4910, 12, 2042, 1191, 16, 1445, 460, 15329, 377, 202, 202, 1397, 7537, 18, 1289, 3024, 12, 46, 2052, 18, 90, 7675, 2704, 4910, 8952, 12, 3729, 16, 460, 10019, 565, 289, ...
labelSimTime.setText("" + simulation.getSimulationTime());
if (labelSimTime != null) labelSimTime.setText("" + simulation.getSimulationTime());
public SimInformation(Simulation simulationToView) { super("Simulation Information"); simulation = simulationToView; // Register as simulation observer simulation.addObserver(simObserver = new Observer() { public void update(Observable obs, Object obj) { if (simulation.isRunning()) { labelStatus.setText("RUNNING"); } else { labelStatus.setText("STOPPED"); } labelNrMotes.setText("" + simulation.getMotesCount()); labelNrMoteTypes.setText("" + simulation.getMoteTypes().size()); } }); // Register as tick observer simulation.addTickObserver(tickObserver = new Observer() { public void update(Observable obs, Object obj) { labelSimTime.setText("" + simulation.getSimulationTime()); } }); JLabel label; JPanel mainPane = new JPanel(); mainPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.Y_AXIS)); JPanel smallPane; // Status information smallPane = new JPanel(); smallPane.setAlignmentX(Component.LEFT_ALIGNMENT); smallPane.setLayout(new BoxLayout(smallPane, BoxLayout.X_AXIS)); label = new JLabel("Status"); label.setPreferredSize(new Dimension(LABEL_WIDTH,LABEL_HEIGHT)); smallPane.add(label); smallPane.add(Box.createHorizontalStrut(10)); smallPane.add(Box.createHorizontalGlue()); label = new JLabel(); if (simulation.isRunning()) label.setText("RUNNING"); else label.setText("STOPPED"); labelStatus = label; smallPane.add(label); mainPane.add(smallPane); mainPane.add(Box.createRigidArea(new Dimension(0,5))); // Current simulation time smallPane = new JPanel(); smallPane.setAlignmentX(Component.LEFT_ALIGNMENT); smallPane.setLayout(new BoxLayout(smallPane, BoxLayout.X_AXIS)); label = new JLabel("Simulation time"); label.setPreferredSize(new Dimension(LABEL_WIDTH,LABEL_HEIGHT)); smallPane.add(label); smallPane.add(Box.createHorizontalStrut(10)); smallPane.add(Box.createHorizontalGlue()); label = new JLabel(); label.setText("" + simulation.getSimulationTime()); labelSimTime = label; smallPane.add(label); mainPane.add(smallPane); mainPane.add(Box.createRigidArea(new Dimension(0,5))); // Number of motes smallPane = new JPanel(); smallPane.setAlignmentX(Component.LEFT_ALIGNMENT); smallPane.setLayout(new BoxLayout(smallPane, BoxLayout.X_AXIS)); label = new JLabel("Number of motes"); label.setPreferredSize(new Dimension(LABEL_WIDTH,LABEL_HEIGHT)); smallPane.add(label); smallPane.add(Box.createHorizontalStrut(10)); smallPane.add(Box.createHorizontalGlue()); label = new JLabel(); label.setText("" + simulation.getMotesCount()); labelNrMotes = label; smallPane.add(label); mainPane.add(smallPane); mainPane.add(Box.createRigidArea(new Dimension(0,5))); // Number of mote types smallPane = new JPanel(); smallPane.setAlignmentX(Component.LEFT_ALIGNMENT); smallPane.setLayout(new BoxLayout(smallPane, BoxLayout.X_AXIS)); label = new JLabel("Number of mote types"); label.setPreferredSize(new Dimension(LABEL_WIDTH,LABEL_HEIGHT)); smallPane.add(label); smallPane.add(Box.createHorizontalStrut(10)); smallPane.add(Box.createHorizontalGlue()); label = new JLabel(); label.setText("" + simulation.getMoteTypes().size()); labelNrMoteTypes = label; smallPane.add(label); mainPane.add(smallPane); mainPane.add(Box.createRigidArea(new Dimension(0,5))); // Radio Medium type smallPane = new JPanel(); smallPane.setAlignmentX(Component.LEFT_ALIGNMENT); smallPane.setLayout(new BoxLayout(smallPane, BoxLayout.X_AXIS)); label = new JLabel("Radio medium"); label.setPreferredSize(new Dimension(LABEL_WIDTH,LABEL_HEIGHT)); smallPane.add(label); smallPane.add(Box.createHorizontalStrut(10)); smallPane.add(Box.createHorizontalGlue()); Class<? extends RadioMedium> radioMediumClass = simulation.getRadioMedium().getClass(); String description = GUI.getDescriptionOf(radioMediumClass); label = new JLabel(description); smallPane.add(label); mainPane.add(smallPane); mainPane.add(Box.createRigidArea(new Dimension(0,5))); this.setContentPane(mainPane); pack(); try { setSelected(true); } catch (java.beans.PropertyVetoException e) { // Could not select } }
26426 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26426/8c16d29d5e5f4a070eda325f72f9b89661227ef7/SimInformation.java/buggy/tools/cooja/java/se/sics/cooja/plugins/SimInformation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9587, 5369, 12, 18419, 14754, 774, 1767, 13, 288, 565, 2240, 2932, 18419, 15353, 8863, 565, 14754, 273, 14754, 774, 1767, 31, 3639, 368, 5433, 487, 14754, 9655, 565, 14754, 18, 1289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 9587, 5369, 12, 18419, 14754, 774, 1767, 13, 288, 565, 2240, 2932, 18419, 15353, 8863, 565, 14754, 273, 14754, 774, 1767, 31, 3639, 368, 5433, 487, 14754, 9655, 565, 14754, 18, 1289, ...
suite.addTest(CML2Test.suite()); suite.addTest(CMLFragmentsTest.suite());
public static Test suite () { TestSuite suite= new TestSuite("The cdk.io.cml Tests"); // suite.addTest(JumboTest.suite()); // suite.addTest(JmolTest.suite()); suite.addTest(JChemPaintTest.suite()); //suite.addTest(CML2Test.suite()); return suite; }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/64be6b889cb69adb10834b0b4125e80383240ec9/CMLIOTests.java/buggy/src/org/openscience/cdk/test/io/cml/CMLIOTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11371, 18, 1289, 4709, 12, 39, 1495, 22, 4709, 18, 30676, 10663, 11371, 18, 1289, 4709, 12, 39, 1495, 27588, 4709, 18, 30676, 10663, 11371, 18, 1289, 4709, 12, 39, 1495, 22, 4709, 18, 30676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11371, 18, 1289, 4709, 12, 39, 1495, 22, 4709, 18, 30676, 10663, 11371, 18, 1289, 4709, 12, 39, 1495, 27588, 4709, 18, 30676, 10663, 11371, 18, 1289, 4709, 12, 39, 1495, 22, 4709, 18, 30676, ...
if (debug) {
public AtomContainer placeRingSubstituents(RingSet rs, double bondLength) { Ring ring = null; Atom atom = null; RingSet rings = null; AtomContainer unplacedPartners = new AtomContainer();; AtomContainer sharedAtoms = new AtomContainer(); AtomContainer primaryAtoms = new AtomContainer(); AtomContainer treatedAtoms = new AtomContainer(); Point2d centerOfRingGravity = null; for (int j = 0; j < rs.size(); j++) { ring = (Ring)rs.elementAt(j); /* Get the j-th Ring in RingSet rs */ for (int k = 0; k < ring.getAtomCount(); k++) { unplacedPartners.removeAllElements(); sharedAtoms.removeAllElements(); primaryAtoms.removeAllElements(); atom = ring.getAtomAt(k); rings = rs.getRings(atom); centerOfRingGravity = rings.get2DCenter(); atomPlacer.partitionPartners(atom, unplacedPartners, sharedAtoms); atomPlacer.markNotPlaced(unplacedPartners); try { if (debug) { for (int f = 0; f < unplacedPartners.getAtomCount(); f++) { System.out.println("placeRingSubstituents->unplacedPartners: " + (molecule.getAtomNumber(unplacedPartners.getAtomAt(f)) + 1)); } } } catch(Exception exc) { } treatedAtoms.add(unplacedPartners); if (unplacedPartners.getAtomCount() > 0) { atomPlacer.distributePartners(atom, sharedAtoms, centerOfRingGravity, unplacedPartners, bondLength); } } } return treatedAtoms; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/ef5fe2d9d843d2cbe1f19850d54d98bf9a2b523f/RingPlacer.java/clean/src/org/openscience/cdk/layout/RingPlacer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7149, 2170, 3166, 10369, 1676, 5223, 89, 4877, 12, 10369, 694, 3597, 16, 1645, 8427, 1782, 13, 202, 95, 202, 202, 10369, 9221, 273, 446, 31, 202, 202, 3641, 3179, 273, 446, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7149, 2170, 3166, 10369, 1676, 5223, 89, 4877, 12, 10369, 694, 3597, 16, 1645, 8427, 1782, 13, 202, 95, 202, 202, 10369, 9221, 273, 446, 31, 202, 202, 3641, 3179, 273, 446, 31...
protected MavenProject getProject() { return project; }
protected MavenProject getProject() { return project; }
protected MavenProject getProject() { return project; }
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/6396dcd06fc9d3f1d37eba026eff3380edc55521/AbstractJbiMojo.java/buggy/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/AbstractJbiMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 17176, 4109, 11080, 1435, 565, 288, 3639, 327, 1984, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 17176, 4109, 11080, 1435, 565, 288, 3639, 327, 1984, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
IExtensionPoint point = registry.getExtensionPoint(PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_STARTUP);
IExtensionPoint point = registry.getExtensionPoint(PlatformUI.PLUGIN_ID, IWorkbenchConstants.TAG_STARTUP);
public void run() { IPluginRegistry registry = Platform.getPluginRegistry(); IExtensionPoint point = registry.getExtensionPoint(PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_STARTUP); IExtension[] extensions = point.getExtensions(); for (int i = 0; i < extensions.length; i++) { IExtension extension = extensions[i]; // Look for the class attribute in the startup element first IConfigurationElement[] configElements = extension.getConfigurationElements(); // There should only be one configuration element and it should // be named "startup". IConfigurationElement startupElement = null; for (int j = 0; j < configElements.length && startupElement == null; j++) { if (configElements[j].getName().equals(IWorkbenchConstants.TAG_CLASS)) { startupElement = configElements[j]; } } final IConfigurationElement startElement = startupElement; final String startupName; if (startElement != null) { // This will cause startupName to be null if // the class attribute does not exist. startupName = startElement.getAttribute(IWorkbenchConstants.TAG_CLASS); } else { startupName = null; } // If the startup element doesn't specify a class, use the plugin class final IPluginDescriptor pluginDescriptor = extension.getDeclaringPluginDescriptor(); SafeRunnable code = new SafeRunnable() { public void run() throws Exception { String id = pluginDescriptor.getUniqueIdentifier() + IPreferenceConstants.SEPARATOR; if (pref.indexOf(id) < 0) { IStartup startup = null; if (startupName == null) { Plugin plugin = pluginDescriptor.getPlugin(); startup = (IStartup) plugin; } else { startup = (IStartup) WorkbenchPlugin.createExtension(startElement, IWorkbenchConstants.TAG_CLASS); } startup.earlyStartup(); } } public void handleException(Throwable exception) { WorkbenchPlugin.log("Unhandled Exception", new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID, 0, "Unhandled Exception", exception)); //$NON-NLS-1$ //$NON-NLS-2$ } }; Platform.run(code); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/880c126fee70990e8c9173bd95bffba263dc1798/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 3773, 4243, 4023, 273, 11810, 18, 588, 3773, 4243, 5621, 9506, 202, 45, 3625, 2148, 1634, 273, 4023, 18, 588, 3625, 2148, 12, 8201, 5370, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 3773, 4243, 4023, 273, 11810, 18, 588, 3773, 4243, 5621, 9506, 202, 45, 3625, 2148, 1634, 273, 4023, 18, 588, 3625, 2148, 12, 8201, 5370, ...
pref.initialize(ir);
void prepare(OPT_IR ir) { // (1) if we haven't yet committed to a stack frame we // will look for operators that would require a stack frame // - LOWTABLESWITCH // - a GC Point, except for YieldPoints or IR_PROLOGUE boolean preventYieldPointRemoval = false; if (!frameRequired) { for (OPT_Instruction s = ir.firstInstructionInCodeOrder(); s != null; s = s.nextInstructionInCodeOrder()) { if (s.operator() == LOWTABLESWITCH) { // uses BL to get pc relative addressing. frameRequired = true; preventYieldPointRemoval = true; break; } else if (s.isGCPoint() && !s.isYieldPoint() && s.operator() != IR_PROLOGUE) { // frame required for GCpoints that are not yield points // or IR_PROLOGUE, which is the stack overflow check frameRequired = true; preventYieldPointRemoval = true; break; } } } pref.initialize(ir); // (2) // In non-adaptive configurations we can omit the yieldpoint if // the method contains exactly one basic block whose only successor // is the exit node. (The method may contain calls, but we believe that // in any program that isn't going to overflow its stack there must be // some invoked method that contains more than 1 basic block, and // we'll insert a yieldpoint in its prologue.) // In adaptive configurations the only methods we eliminate yieldpoints // from are those in which the yieldpoints are the only reason we would // have to allocate a stack frame for the method. Having more yieldpoints // gets us better sampling behavior. Thus, in the adaptive configuration // we only omit the yieldpoint in leaf methods with no PEIs that contain // exactly one basic block whose only successor is the exit node. // TODO: We may want to force yieldpoints in "large" PEI-free // single-block leaf methods (if any exist). // TODO: This is a kludge. Removing the yieldpoint removes // the adaptive system's ability to accurately sample program // behavior. Even if the method is absolutely trivial // eg boolean foo() { return false; }, we may still want to // sample it for the purposes of adaptive inlining. // On the other hand, the ability to do this inlining in some cases // may not be able to buy back having to create a stackframe // for all methods. // // Future feature: always insert a pseudo yield point that when taken will // create the stack frame on demand. OPT_BasicBlock firstBB = ir.cfg.entry(); boolean isSingleBlock = firstBB.hasZeroIn() && firstBB.hasOneOut() && firstBB.pointsOut(ir.cfg.exit()); boolean removeYieldpoints = isSingleBlock && ! preventYieldPointRemoval; //-#if RVM_WITH_ADAPTIVE_SYSTEM // In adaptive systems if we require a frame, we don't remove // any yield poits if (frameRequired) { removeYieldpoints = false; } //-#endif if (removeYieldpoints) { for (OPT_Instruction s = ir.firstInstructionInCodeOrder(); s != null; s = s.nextInstructionInCodeOrder()) { if (s.isYieldPoint()) { OPT_Instruction save = s; // get previous instruction, so we can continue // after we remove this instruction s = s.prevInstructionInCodeOrder(); save.remove(); ir.MIRInfo.gcIRMap.delete(save); } } prologueYieldpoint = false; } else { prologueYieldpoint = true; frameRequired = true; } // (3) initialization //initPools(ir); this.ir = ir; frameSize = spillPointer; initForArch(ir); // (4) save caughtExceptionOffset where the exception deliverer can find it ir.compiledMethod.setUnsignedExceptionOffset(caughtExceptionOffset); // (5) initialize the restrictions object restrict = new OPT_RegisterRestrictions(ir.regpool.getPhysicalRegisterSet()); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/cc12a52fe7cee92b90cd3a159895e82b0ea92ea6/OPT_GenericStackManager.java/buggy/rvm/src/vm/compilers/optimizing/regalloc/util/OPT_GenericStackManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 2911, 12, 15620, 67, 7937, 9482, 13, 288, 565, 368, 261, 21, 13, 309, 732, 15032, 1404, 4671, 16015, 358, 279, 2110, 2623, 732, 377, 368, 377, 903, 2324, 364, 12213, 716, 4102, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 918, 2911, 12, 15620, 67, 7937, 9482, 13, 288, 565, 368, 261, 21, 13, 309, 732, 15032, 1404, 4671, 16015, 358, 279, 2110, 2623, 732, 377, 368, 377, 903, 2324, 364, 12213, 716, 4102, 258...
session.put(AudienceSelectionHelper.AUDIENCE_FUNCTION, MatrixFunctionConstants.REVIEW_MATRIX);
session.put(AudienceSelectionHelper.AUDIENCE_FUNCTION, MatrixFunctionConstants.EVALUATE_MATRIX);
protected void setAudienceSelectionVariables(Map session, ScaffoldingCell sCell) { session.put(AudienceSelectionHelper.AUDIENCE_FUNCTION, MatrixFunctionConstants.REVIEW_MATRIX); session.put(AudienceSelectionHelper.AUDIENCE_QUALIFIER, sCell.getId().getValue()); session.put(AudienceSelectionHelper.AUDIENCE_INSTRUCTIONS, "Add evaluators to your cell"); session.put(AudienceSelectionHelper.AUDIENCE_GLOBAL_TITLE, "Evaluators to Publish to"); session.put(AudienceSelectionHelper.AUDIENCE_INDIVIDUAL_TITLE, "Publish to an Individual"); session.put(AudienceSelectionHelper.AUDIENCE_GROUP_TITLE, "Publish to a Group"); session.put(AudienceSelectionHelper.AUDIENCE_PUBLIC_FLAG, "false"); session.put(AudienceSelectionHelper.AUDIENCE_PUBLIC_TITLE, "Publish to the Internet"); session.put(AudienceSelectionHelper.AUDIENCE_SELECTED_TITLE, "Selected Evaluators"); session.put(AudienceSelectionHelper.AUDIENCE_FILTER_INSTRUCTIONS, "Select filter criteria to narrow user list"); session.put(AudienceSelectionHelper.AUDIENCE_GUEST_EMAIL, "false"); session.put(AudienceSelectionHelper.AUDIENCE_WORKSITE_LIMITED, "true"); }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/3453acdca005b65e3727c22aa4a2740654025a6a/EditScaffoldingCellController.java/clean/matrix/tool/src/java/org/theospi/portfolio/matrix/control/EditScaffoldingCellController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 444, 30418, 6233, 6158, 12, 863, 1339, 16, 2850, 14847, 310, 4020, 272, 4020, 13, 288, 1377, 1339, 18, 458, 12, 30418, 6233, 2276, 18, 14237, 2565, 7535, 67, 7788, 16, 7298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 4750, 918, 444, 30418, 6233, 6158, 12, 863, 1339, 16, 2850, 14847, 310, 4020, 272, 4020, 13, 288, 1377, 1339, 18, 458, 12, 30418, 6233, 2276, 18, 14237, 2565, 7535, 67, 7788, 16, 7298, ...
protected void configureXML11Pipeline() { // create datatype factory if (fXML11DatatypeFactory == null) { fXML11DatatypeFactory= DTDDVFactory.getInstance(XML11_DATATYPE_VALIDATOR_FACTORY); } setProperty(DATATYPE_VALIDATOR_FACTORY, fXML11DatatypeFactory); if (fXML11DTDScanner == null) { fXML11DTDScanner = new XML11DTDScannerImpl(); } // setup dtd pipeline if (fXML11DTDProcessor == null) { fXML11DTDProcessor = new XML11DTDProcessor(); } fProperties.put(DTD_SCANNER, fXML11DTDScanner); fProperties.put(DTD_PROCESSOR, fXML11DTDProcessor); fXML11DTDScanner.setDTDHandler(fXML11DTDProcessor); fXML11DTDProcessor.setDTDHandler(fDTDHandler); fXML11DTDScanner.setDTDContentModelHandler(fXML11DTDProcessor); fXML11DTDProcessor.setDTDContentModelHandler(fDTDContentModelHandler); if (fXML11DocScanner == null) { fXML11DocScanner = new XML11DocumentScannerImpl(); } if(fXML11DTDValidator == null) { fXML11DTDValidator = new XML11DTDValidator(); } fScanner = fXML11DocScanner; ((XMLComponent)fScanner).reset(this); fProperties.put(DOCUMENT_SCANNER, fXML11DocScanner); fProperties.put(DTD_VALIDATOR, fXML11DTDValidator); if (fFeatures.get(NAMESPACES) == Boolean.TRUE) { if (fXML11NamespaceBinder == null) { fXML11NamespaceBinder = new XML11NamespaceBinder(); } fProperties.put(NAMESPACE_BINDER, fXML11NamespaceBinder); fScanner.setDocumentHandler(fXML11DTDValidator); fXML11DTDValidator.setDocumentSource(fScanner); fXML11DTDValidator.setDocumentHandler(fXML11NamespaceBinder); fXML11NamespaceBinder.setDocumentSource(fXML11DTDValidator); fXML11NamespaceBinder.setDocumentHandler(fDocumentHandler); fDocumentHandler.setDocumentSource(fXML11NamespaceBinder); fLastComponent = fXML11NamespaceBinder; fXML11NamespaceBinder.reset(this); } else { fScanner.setDocumentHandler(fXML11DTDValidator); fXML11DTDValidator.setDocumentSource(fScanner); fXML11DTDValidator.setDocumentHandler(fDocumentHandler); fDocumentHandler.setDocumentSource(fXML11DTDValidator); fLastComponent = fXML11DTDValidator; } // reset all 1.1 components fXML11DTDProcessor.reset(this); fXML11DTDScanner.reset(this); fXML11DTDValidator.reset(this); // setup document pipeline if (fFeatures.get(XMLSCHEMA_VALIDATION) == Boolean.TRUE) { // If schema validator was not in the pipeline insert it. if (fSchemaValidator == null) { fSchemaValidator = new XMLSchemaValidator(); // add schema component fProperties.put(SCHEMA_VALIDATOR, fSchemaValidator); addComponent(fSchemaValidator); // add schema message formatter if (fErrorReporter.getMessageFormatter(XSMessageFormatter.SCHEMA_DOMAIN) == null) { XSMessageFormatter xmft = new XSMessageFormatter(); fErrorReporter.putMessageFormatter(XSMessageFormatter.SCHEMA_DOMAIN, xmft); } } fLastComponent.setDocumentHandler(fSchemaValidator); fSchemaValidator.setDocumentSource(fLastComponent); fSchemaValidator.setDocumentHandler(fDocumentHandler); fLastComponent = fSchemaValidator; } } // configurePipeline()
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/26a8a0c944a205dec7a37ec7d5c2a006bfe5c0a2/XML11Configuration.java/clean/src/org/apache/xerces/parsers/XML11Configuration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6459, 14895, 4201, 2499, 8798, 1435, 95, 759, 4824, 270, 6361, 6848, 430, 12, 74, 4201, 2499, 20228, 1733, 631, 2011, 15329, 74, 4201, 2499, 20228, 1733, 33, 9081, 5698, 58, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1117, 6459, 14895, 4201, 2499, 8798, 1435, 95, 759, 4824, 270, 6361, 6848, 430, 12, 74, 4201, 2499, 20228, 1733, 631, 2011, 15329, 74, 4201, 2499, 20228, 1733, 33, 9081, 5698, 58, 17...
fTraceArea.setText(filterStack(getTrace(t)));
fTraceArea.setText(getFilteredTrace(t));
private void showErrorTrace() { int index= fFailureList.getSelectedIndex(); if (index == -1) return; Throwable t= (Throwable) fExceptions.elementAt(index); fTraceArea.setText(filterStack(getTrace(t))); }
32006 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32006/bfc94ee739d62127c7477300b26127bd560765a1/TestRunner.java/clean/junit/awtui/TestRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2405, 668, 3448, 1435, 288, 202, 202, 474, 770, 33, 284, 5247, 682, 18, 588, 7416, 1016, 5621, 202, 202, 430, 261, 1615, 422, 300, 21, 13, 1082, 202, 2463, 31, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2405, 668, 3448, 1435, 288, 202, 202, 474, 770, 33, 284, 5247, 682, 18, 588, 7416, 1016, 5621, 202, 202, 430, 261, 1615, 422, 300, 21, 13, 1082, 202, 2463, 31, 1082, 2...
System.out.println("Usage (if classpath correctly set) :"); System.out.println("When viewing from a file:");
System.out.println("When you create your SIP Stack specify"); System.out.println("gov.nist.javax.sip.stack.SERVER_LOG = fileName\n"); System.out.println("gov.nist.javax.sip.stack.DEBUG_LOG = debugFileName\n"); System.out.println("*************************************");
public static void usage() { System.out.println("***************************************"); System.out.println("*** missing or incorrect parameters ***"); System.out.println("*************************************\n"); System.out.println("Usage (if classpath correctly set) :"); System.out.println("When viewing from a file:"); System.out.println( "java tools.tracesviewer.tracesViewer " + "-f tracesfile"); System.out.println("*************************************\n"); System.out.println( "When viewing from an RMI connection:" + "java tools.tracesviewer.tracesViewer " + "-rmihost rmihost -rmiport rmiport -stackId stackId"); System.out.println( "rmihost is the host name/address for the RMI registry"); System.out.println("rmiport is the port for the rmi registry"); System.out.println( "stackId is an identifier registered by the stack -- usually " + " the hostAddress:udpPort for the stack"); System.out.println( "The values are defaulted to rmihost == 127.0.0.1 " + " rmiport == 1099 and stackId == 127.0.0.1:5060"); System.out.println( "If no parameters are set, it is equivalent to running :"); System.out.println( "java tools.tracesviewer.tracesViewer -rmihost 127.0.0.1" + " -rmiport 1099 -stackId 127.0.0.1:5060 \n"); System.out.println("To view a trace logged in a set of files: "); System.out.println( " --> java tools.tracesviewer.tracesViewer -debug_file files"); System.out.println( " --> java tools.tracesviewer.tracesViewer -server_file files"); System.exit(0); }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/e9d03afd07559088234b80ebc449da19be3d65c6/TracesViewer.java/clean/trunk/src/tools/tracesviewer/TracesViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 4084, 1435, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 5021, 11345, 7388, 1769, 202, 202, 3163, 18, 659, 18, 8222, 2932, 14465, 3315, 578, 11332, 1472, 18852, 8863,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 760, 918, 4084, 1435, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 5021, 11345, 7388, 1769, 202, 202, 3163, 18, 659, 18, 8222, 2932, 14465, 3315, 578, 11332, 1472, 18852, 8863,...
result.add(i,i);
result.add((char)i,(char)i);
static UnicodeSet bitsToSet(int a) { UnicodeSet result = new UnicodeSet(); for (int i = 0; i < 32; ++i) { if ((a & (1<<i)) != 0) { result.add(i,i); } } return result; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/1799fb94fe7d614e8a175e9a3a5c2db1c3392a87/UnicodeSetTest.java/buggy/icu4j/src/com/ibm/icu/dev/test/translit/UnicodeSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 9633, 694, 4125, 25208, 12, 474, 279, 13, 288, 3639, 9633, 694, 563, 273, 394, 9633, 694, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3847, 31, 965, 77, 13, 288, 5411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 760, 9633, 694, 4125, 25208, 12, 474, 279, 13, 288, 3639, 9633, 694, 563, 273, 394, 9633, 694, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3847, 31, 965, 77, 13, 288, 5411...
if (Pooka.isDebug()) System.out.println("running MessagesRemoved on " + getFolderID());
getLogger().log(Level.FINE, "running MessagesRemoved on " + getFolderID());
protected void runMessagesRemoved(MessageCountEvent mce) { if (Pooka.isDebug()) System.out.println("running MessagesRemoved on " + getFolderID()); MessageCountEvent newMce = null; if (folderTableModel != null) { Message[] removedMessages = mce.getMessages(); Message[] uidRemovedMessages = new Message[removedMessages.length]; if (Pooka.isDebug()) System.out.println("removedMessages was of size " + removedMessages.length); MessageInfo mi; Vector removedProxies=new Vector(); for (int i = 0; i < removedMessages.length; i++) { if (Pooka.isDebug()) System.out.println("checking for existence of message."); try { UIDMimeMessage removedMsg = getUIDMimeMessage(removedMessages[i]); if (removedMsg != null) uidRemovedMessages[i] = removedMsg; else uidRemovedMessages[i] = removedMessages[i]; mi = getMessageInfo(removedMsg); if (mi.getMessageProxy() != null) mi.getMessageProxy().close(); if (mi != null) { if (Pooka.isDebug()) System.out.println("message exists--removing"); removedProxies.add(mi.getMessageProxy()); messageToInfoTable.remove(mi); uidToInfoTable.remove(new Long(removedMsg.getUID())); } } catch (MessagingException me) { } } newMce = new MessageCountEvent(getFolder(), mce.getType(), mce.isRemoved(), uidRemovedMessages); if (getFolderDisplayUI() != null) { if (removedProxies.size() > 0) getFolderDisplayUI().removeRows(removedProxies); resetMessageCounts(); fireMessageCountEvent(newMce); } else { resetMessageCounts(); fireMessageCountEvent(newMce); if (removedProxies.size() > 0) getFolderTableModel().removeRows(removedProxies); } } else { resetMessageCounts(); fireMessageCountEvent(mce); } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/671bfec2612c606cd6ea29f5249b18cb53c796bc/UIDFolderInfo.java/buggy/src/net/suberic/pooka/UIDFolderInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1086, 5058, 10026, 12, 1079, 1380, 1133, 312, 311, 13, 288, 565, 309, 261, 52, 1184, 69, 18, 291, 2829, 10756, 1377, 2332, 18, 659, 18, 8222, 2932, 8704, 4838, 10026, 603, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1086, 5058, 10026, 12, 1079, 1380, 1133, 312, 311, 13, 288, 565, 309, 261, 52, 1184, 69, 18, 291, 2829, 10756, 1377, 2332, 18, 659, 18, 8222, 2932, 8704, 4838, 10026, 603, 31...
double gcLoadFraction = (gcLoad - function[gcLoadUnder][0]) / (function[gcLoadAbove][0] - function[gcLoadUnder][0]); double gcLoadDelta = function[gcLoadAbove][liveRatioUnder] - function[gcLoadUnder][liveRatioUnder];
double gcLoadFraction = (gcLoad - function[gcLoadUnder][0]) / (function[gcLoadAbove][0] - function[gcLoadUnder][0]); double gcLoadDelta = function[gcLoadAbove][liveRatioUnder] - function[gcLoadUnder][liveRatioUnder];
private static double computeHeapChangeRatio(double liveRatio) { // (1) compute GC load. long totalCycles = Statistics.cycles() - endLastMajorGC; double totalTime = Statistics.cyclesToMillis(totalCycles); double gcLoad = accumulatedGCTime / totalTime; if (liveRatio > 1) { // Perhaps indicates bad bookkeeping in JMTk? Log.write("GCWarning: Live ratio greater than 1: "); Log.writeln(liveRatio); liveRatio = 1; } if (gcLoad > 1) { if (gcLoad > 1.0001) { Log.write("GC Error: GC load was greater than 1!! "); Log.writeln(gcLoad); Log.write("GC Error:\ttotal time (ms) "); Log.writeln(totalTime); Log.write("GC Error:\tgc time (ms) "); Log.writeln(accumulatedGCTime); } gcLoad = 1; } if (Assert.VERIFY_ASSERTIONS) Assert._assert(liveRatio >= 0); if (Assert.VERIFY_ASSERTIONS && gcLoad < 0) { Log.write("gcLoad computed to be "); Log.writeln(gcLoad); Log.write("\taccumulateGCTime was (ms) "); Log.writeln(accumulatedGCTime); Log.write("\ttotalTime was (ms) "); Log.writeln(totalTime); if (Assert.VERIFY_ASSERTIONS) Assert._assert(false); } if (Options.verbose.getValue() > 2) { Log.write("Live ratio "); Log.writeln(liveRatio); Log.write("GCLoad "); Log.writeln(gcLoad); } // (2) Find the 4 points surrounding gcLoad and liveRatio int liveRatioUnder = 1; int liveRatioAbove = function[0].length-1; int gcLoadUnder = 1; int gcLoadAbove = function.length-1; while (true) { if (function[0][liveRatioUnder+1] >= liveRatio) break; liveRatioUnder++; } while (true) { if (function[0][liveRatioAbove-1] <= liveRatio) break; liveRatioAbove--; } while (true) { if (function[gcLoadUnder+1][0] >= gcLoad) break; gcLoadUnder++; } while (true) { if (function[gcLoadAbove-1][0] <= gcLoad) break; gcLoadAbove--; } // (3) Compute the heap change ratio double factor = function[gcLoadUnder][liveRatioUnder]; double liveRatioFraction = (liveRatio - function[0][liveRatioUnder]) / (function[0][liveRatioAbove] - function[0][liveRatioUnder]); double liveRatioDelta = function[gcLoadUnder][liveRatioAbove] - function[gcLoadUnder][liveRatioUnder]; factor += (liveRatioFraction * liveRatioDelta); double gcLoadFraction = (gcLoad - function[gcLoadUnder][0]) / (function[gcLoadAbove][0] - function[gcLoadUnder][0]); double gcLoadDelta = function[gcLoadAbove][liveRatioUnder] - function[gcLoadUnder][liveRatioUnder]; factor += (gcLoadFraction * gcLoadDelta); if (Options.verbose.getValue() > 2) { Log.write("Heap adjustment factor is "); Log.writeln(factor); } return factor; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/HeapGrowthManager.java/clean/MMTk/src/org/mmtk/utility/heap/HeapGrowthManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1645, 3671, 15648, 3043, 8541, 12, 9056, 8429, 8541, 13, 288, 565, 368, 261, 21, 13, 3671, 15085, 1262, 18, 565, 1525, 2078, 17992, 9558, 273, 22964, 18, 23976, 1435, 300, 679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 3238, 760, 1645, 3671, 15648, 3043, 8541, 12, 9056, 8429, 8541, 13, 288, 565, 368, 261, 21, 13, 3671, 15085, 1262, 18, 565, 1525, 2078, 17992, 9558, 273, 22964, 18, 23976, 1435, 300, 679,...
return includePattern; }
return includePattern; }
public static FilePatternMatcher getIncludePattern() { return includePattern; }
49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/5626948860264209205e36947b9e39d53b3f3974/ConfigurationOptions.java/buggy/src/net/sf/statcvs/output/ConfigurationOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1387, 3234, 6286, 7854, 1571, 3234, 1435, 288, 202, 202, 2463, 2341, 3234, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1387, 3234, 6286, 7854, 1571, 3234, 1435, 288, 202, 202, 2463, 2341, 3234, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
dep.setVersion( version );
if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } }
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( project.hasParent() ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section Map artifactMap = project.getArtifactMap(); List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); String conflictId = ArtifactUtils.artifactId( dep.getGroupId(), dep.getArtifactId(), dep.getType(), dep.getClassifier(), dep.getVersion() ); Artifact artifact = (Artifact) artifactMap.get( conflictId ); String version = resolveVersion( artifact, "dependency", project ); dep.setVersion( version ); } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section Map pluginArtifactMap = project.getPluginArtifactMap(); List plugins = build.getPlugins(); for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) pluginArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "plugin", project ); plugin.setVersion( version ); } //Rewrite extensions section Map extensionArtifactMap = project.getExtensionArtifactMap(); List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String pluginId = ArtifactUtils.versionlessKey( ext.getGroupId(), ext.getArtifactId() ); Artifact artifact = (Artifact) extensionArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "extension", project ); ext.setVersion( version ); } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section Map reportArtifactMap = project.getReportArtifactMap(); List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) reportArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "report", project ); plugin.setVersion( version ); } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/8c97337f8b1e7590b5b50936679ff46b9845de63/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
weapon.internalName = "CLPRMLRM11"; weapon.mtfName = "CLPRMLRM11"; weapon.mepName = "CLPRMLRM11"; weapon.tdbName = "CLPRMLRM11";
weapon.internalName = "CLLRM11"; weapon.mtfName = "CLLRM11"; weapon.mepName = "CLLRM11"; weapon.tdbName = "CLLRM11";
public static WeaponType createCLPROLRM11() { WeaponType weapon = new WeaponType(); weapon.name = "LRM 11"; weapon.internalName = "CLPRMLRM11"; weapon.mtfName = "CLPRMLRM11"; weapon.mepName = "CLPRMLRM11"; weapon.tdbName = "CLPRMLRM11"; weapon.heat = 0; weapon.damage=DAMAGE_MISSILE; weapon.rackSize=11; weapon.ammoType = AmmoType.T_LRM; weapon.minimumRange = 0; weapon.shortRange = 7; weapon.mediumRange=14; weapon.longRange =21; weapon.tonnage = 2.2f; weapon.criticals=0; weapon.bv = 139; weapon.flags |= F_PROTOMECH; weapon.setModes(new String[] {"", "Indirect"}); return weapon; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/8eea5b22a5dea77598b05927c961935c69071762/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 5017, 3373, 48, 8717, 2499, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 48, 871...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 1660, 28629, 559, 752, 5017, 3373, 48, 8717, 2499, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 48, 871...
else _compileAll(); /* automatically compile if running junit test */
public void compileBeforeJUnit() { Frame parentFrame = JOptionPane.getFrameForComponent(MainFrame.this); if (parentFrame.isVisible()) { /* invisible when running junit test of this functionality */ final BooleanOption option = ALWAYS_COMPILE_BEFORE_JUNIT; Utilities.invokeLater(new Runnable() { public void run() { if (!DrJava.getConfig().getSetting(option).booleanValue()) { ConfirmCheckBoxDialog dialog = new ConfirmCheckBoxDialog(MainFrame.this, "Must Compile All Files to Continue", "To unit test all documents, you must first compile all out of sync files.\n" + "Would you like to compile and then test?", "Always compile before testing all files"); int rc = dialog.show(); switch (rc) { case JOptionPane.YES_OPTION: _compileAll(); // Only remember checkbox if they say yes if (dialog.getCheckBoxValue()) DrJava.getConfig().setSetting(option, Boolean.TRUE); break; case JOptionPane.NO_OPTION: case JOptionPane.CANCEL_OPTION: case JOptionPane.CLOSED_OPTION: // do nothing break; default: throw new RuntimeException("Invalid rc from showConfirmDialog: " + rc); } } else {// Utilities.showDebug("calling _compileAll"); _compileAll();// Utilities.showDebug("returned from _compileAll"); } } }); } else _compileAll(); /* automatically compile if running junit test */ }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ac147bfd47d7e558bfd3f0afa39ad091a35b6f6f/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4074, 4649, 46, 2802, 1435, 288, 1377, 8058, 982, 3219, 273, 804, 1895, 8485, 18, 588, 3219, 1290, 1841, 12, 6376, 3219, 18, 2211, 1769, 3639, 309, 261, 2938, 3219, 18, 291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 4074, 4649, 46, 2802, 1435, 288, 1377, 8058, 982, 3219, 273, 804, 1895, 8485, 18, 588, 3219, 1290, 1841, 12, 6376, 3219, 18, 2211, 1769, 3639, 309, 261, 2938, 3219, 18, 291, ...
Logger.error(this, "Could not read "+persistTarget+" ("+e+") and could not read "+persistTemp+" either ("+e1+")");
Logger.error(this, "Could not read "+persistTarget+" ("+e+") and could not read "+persistTemp+" either ("+e1+ ')');
Node(FreenetFilePersistentConfig config, RandomSource random, LoggingConfigHandler lc, NodeStarter ns) throws NodeInitException { // Easy stuff logMINOR = Logger.shouldLog(Logger.MINOR, this); String tmp = "Initializing Node using SVN r"+Version.cvsRevision+" ("+Version.buildNumber()+") and freenet-ext r"+NodeStarter.extRevisionNumber; Logger.normal(this, tmp); System.out.println(tmp); pInstantRejectIncoming = new TimeDecayingRunningAverage(0, 60000, 0.0, 1.0); nodeStarter=ns; if(logConfigHandler != lc) logConfigHandler=lc; startupTime = System.currentTimeMillis(); nodeNameUserAlert = new MeaningfulNodeNameUserAlert(this); recentlyCompletedIDs = new LRUQueue(); this.config = config; this.random = random; cachedPubKeys = new LRUHashtable(); lm = new LocationManager(random); try { localhostAddress = InetAddress.getByName("127.0.0.1"); } catch (UnknownHostException e3) { // Does not do a reverse lookup, so this is impossible throw new Error(e3); } fLocalhostAddress = new FreenetInetAddress(localhostAddress); requestSenders = new HashMap(); transferringRequestSenders = new HashMap(); insertSenders = new HashMap(); peerNodeStatuses = new HashMap(); peerNodeRoutingBackoffReasons = new HashMap(); runningUIDs = new HashSet(); dnsr = new DNSRequester(this); ps = new PacketSender(this); // FIXME maybe these should persist? They need to be private though, so after the node/peers split. (bug 51). decrementAtMax = random.nextDouble() <= DECREMENT_AT_MAX_PROB; decrementAtMin = random.nextDouble() <= DECREMENT_AT_MIN_PROB; bootID = random.nextLong(); throttledPacketSendAverage = new TimeDecayingRunningAverage(1, 10*60*1000 /* should be significantly longer than a typical transfer */, 0, Long.MAX_VALUE); buildOldAgeUserAlert = new BuildOldAgeUserAlert(); int sortOrder = 0; // Setup node-specific configuration SubConfig nodeConfig = new SubConfig("node", config); nodeConfig.register("aggressiveGC", aggressiveGCModificator, sortOrder++, true, false, "AggressiveGC modificator", "Enables the user to tweak the time in between GC and forced finalization. SHOULD NOT BE CHANGED unless you know what you're doing! -1 means : disable forced call to System.gc() and System.runFinalization()", new IntCallback() { public int get() { return aggressiveGCModificator; } public void set(int val) throws InvalidConfigValueException { if(val == get()) return; Logger.normal(this, "Changing aggressiveGCModificator to "+val); aggressiveGCModificator = val; } }); if(lastVersion <= 954) nodeConfig.fixOldDefault("aggressiveGC", "250"); //Memory Checking thread // TODO: proper config. callbacks : maybe we shoudln't start the thread at all if it's not worthy this.myMemoryChecker = new Thread(new MemoryChecker(), "Memory checker"); this.myMemoryChecker.setPriority(Thread.MAX_PRIORITY); this.myMemoryChecker.setDaemon(true); // FIXME maybe these configs should actually be under a node.ip subconfig? ipDetector = new NodeIPDetector(this); sortOrder = ipDetector.registerConfigs(nodeConfig, sortOrder); // Determine where to bind to nodeConfig.register("bindTo", "0.0.0.0", sortOrder++, true, true, "IP address to bind to", "IP address to bind to", new NodeBindtoCallback(this)); this.bindto = nodeConfig.getString("bindTo"); // Determine the port number nodeConfig.register("listenPort", -1 /* means random */, sortOrder++, true, true, "FNP port number (UDP)", "UDP port for node-to-node communications (Freenet Node Protocol)", new IntCallback() { public int get() { return portNumber; } public void set(int val) throws InvalidConfigValueException { // FIXME implement on the fly listenPort changing // Note that this sort of thing should be the exception rather than the rule!!!! String msg = "Switching listenPort on the fly not yet supported!"; Logger.error(this, msg); throw new InvalidConfigValueException(msg); } }); int port=-1; try{ port=nodeConfig.getInt("listenPort"); }catch (Exception e){ Logger.error(this, "Caught "+e, e); System.err.println(e); e.printStackTrace(); port=-1; } UdpSocketManager u = null; if(port > 65535) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Impossible port number: "+port); } else if(port == -1) { // Pick a random port for(int i=0;i<200000;i++) { int portNo = 1024 + random.nextInt(65535-1024); try { u = new UdpSocketManager(portNo, InetAddress.getByName(bindto), this); port = u.getPortNumber(); break; } catch (Exception e) { Logger.normal(this, "Could not use port: "+bindto+":"+portNo+": "+e, e); System.err.println("Could not use port: "+bindto+":"+portNo+": "+e); e.printStackTrace(); continue; } } if(u == null) throw new NodeInitException(EXIT_NO_AVAILABLE_UDP_PORTS, "Could not find an available UDP port number for FNP (none specified)"); } else { try { u = new UdpSocketManager(port, InetAddress.getByName(bindto), this); } catch (Exception e) { throw new NodeInitException(EXIT_IMPOSSIBLE_USM_PORT, "Could not bind to port: "+port+" (node already running?)"); } } usm = u; Logger.normal(this, "FNP port created on "+bindto+":"+port); System.out.println("FNP port created on "+bindto+":"+port); portNumber = port; Logger.normal(Node.class, "Creating node..."); previous_input_stat = 0; previous_output_stat = 0; previous_io_stat_time = 1; last_input_stat = 0; last_output_stat = 0; last_io_stat_time = 3; // Bandwidth limit nodeConfig.register("outputBandwidthLimit", "15K", sortOrder++, false, true, "Output bandwidth limit (bytes per second)", "Hard output bandwidth limit (bytes/sec); the node should almost never exceed this", new IntCallback() { public int get() { //return BlockTransmitter.getHardBandwidthLimit(); return (int) ((1000L * 1000L * 1000L) / outputThrottle.getNanosPerTick()); } public void set(int obwLimit) throws InvalidConfigValueException { if(obwLimit <= 0) throw new InvalidConfigValueException("Bandwidth limit must be positive"); outputThrottle.changeNanosAndBucketSizes((1000L * 1000L * 1000L) / obwLimit, obwLimit/2, (obwLimit * 2) / 5); obwLimit = (obwLimit * 4) / 5; // fudge factor; take into account non-request activity requestOutputThrottle.changeNanosAndBucketSize((1000L*1000L*1000L) / obwLimit, Math.max(obwLimit*60, 32768*20)); if(inputLimitDefault) { int ibwLimit = obwLimit * 4; requestInputThrottle.changeNanosAndBucketSize((1000L*1000L*1000L) / ibwLimit, Math.max(ibwLimit*60, 32768*20)); } } }); int obwLimit = nodeConfig.getInt("outputBandwidthLimit"); outputThrottle = new DoubleTokenBucket(obwLimit/2, (1000L*1000L*1000L) / obwLimit, obwLimit, (obwLimit * 2) / 5); obwLimit = (obwLimit * 4) / 5; // fudge factor; take into account non-request activity requestOutputThrottle = new TokenBucket(Math.max(obwLimit*60, 32768*20), (1000L*1000L*1000L) / obwLimit, 0); nodeConfig.register("inputBandwidthLimit", "-1", sortOrder++, false, true, "Input bandwidth limit (bytes per second)", "Input bandwidth limit (bytes/sec); the node will try not to exceed this; -1 = 4x set outputBandwidthLimit", new IntCallback() { public int get() { if(inputLimitDefault) return -1; return (((int) ((1000L * 1000L * 1000L) / requestInputThrottle.getNanosPerTick())) * 5) / 4; } public void set(int ibwLimit) throws InvalidConfigValueException { if(ibwLimit == -1) { inputLimitDefault = true; ibwLimit = (int) ((1000L * 1000L * 1000L) / outputThrottle.getNanosPerTick()) * 4; } else { ibwLimit = ibwLimit * 4 / 5; // fudge factor; take into account non-request activity } if(ibwLimit <= 0) throw new InvalidConfigValueException("Bandwidth limit must be positive or -1"); requestInputThrottle.changeNanosAndBucketSize((1000L*1000L*1000L) / ibwLimit, Math.max(ibwLimit*60, 32768*20)); } }); int ibwLimit = nodeConfig.getInt("inputBandwidthLimit"); if(ibwLimit == -1) { inputLimitDefault = true; ibwLimit = (int) ((1000L * 1000L * 1000L) / outputThrottle.getNanosPerTick()) * 4; } else { ibwLimit = ibwLimit * 4 / 5; } requestInputThrottle = new TokenBucket(Math.max(ibwLimit*60, 32768*20), (1000L*1000L*1000L) / ibwLimit, 0); // FIXME add an averaging/long-term/soft bandwidth limit. (bug 76) // SwapRequestInterval nodeConfig.register("swapRequestSendInterval", 2000, sortOrder++, true, false, "Swap request send interval (ms)", "Interval between swap attempting to send swap requests in milliseconds. Leave this alone!", new IntCallback() { public int get() { return swapInterval.fixedInterval; } public void set(int val) throws InvalidConfigValueException { swapInterval.set(val); } }); swapInterval = new StaticSwapRequestInterval(nodeConfig.getInt("swapRequestSendInterval")); // Testnet. // Cannot be enabled/disabled on the fly. // If enabled, forces certain other config options. if((testnetHandler = TestnetHandler.maybeCreate(this, config)) != null) { String msg = "WARNING: ENABLING TESTNET CODE! This WILL seriously jeopardize your anonymity!"; Logger.error(this, msg); System.err.println(msg); testnetEnabled = true; if(logConfigHandler.getFileLoggerHook() == null) { System.err.println("Forcing logging enabled (essential for testnet)"); logConfigHandler.forceEnableLogging(); } int x = Logger.globalGetThreshold(); if(!((x == Logger.MINOR) || (x == Logger.DEBUG))) { System.err.println("Forcing log threshold to MINOR for testnet, was "+x); Logger.globalSetThreshold(Logger.MINOR); } if(logConfigHandler.getMaxZippedLogFiles() < TESTNET_MIN_MAX_ZIPPED_LOGFILES) { System.err.println("Forcing max zipped logfiles space to 256MB for testnet"); try { logConfigHandler.setMaxZippedLogFiles(TESTNET_MIN_MAX_ZIPPED_LOGFILES_STRING); } catch (InvalidConfigValueException e) { throw new Error("Impossible: "+e); } } } else { String s = "Testnet mode DISABLED. You may have some level of anonymity. :)\n"+ "Note that while we no longer have explicit back-doors enabled, this version of Freenet is still a very early alpha, and may well have numerous bugs and design flaws.\n"+ "In particular: YOU ARE WIDE OPEN TO YOUR IMMEDIATE DARKNET PEERS! They can eavesdrop on your requests with relatively little difficulty at present (correlation attacks etc)."; Logger.normal(this, s); System.err.println(s); testnetEnabled = false; if(wasTestnet) { FileLoggerHook flh = logConfigHandler.getFileLoggerHook(); if(flh != null) flh.deleteAllOldLogFiles(); } } // Directory for node-related files other than store nodeConfig.register("nodeDir", ".", sortOrder++, true, false, "Node directory", "Name of directory to put node-related files e.g. peers list in", new StringCallback() { public String get() { return nodeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(nodeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving node directory on the fly not supported at present"); } }); nodeDir = new File(nodeConfig.getString("nodeDir")); if(!((nodeDir.exists() && nodeDir.isDirectory()) || (nodeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_BAD_NODE_DIR, msg); } // After we have set up testnet and IP address, load the node file try { // FIXME should take file directly? readNodeFile(new File(nodeDir, "node-"+portNumber).getPath(), random); } catch (IOException e) { try { readNodeFile(new File("node-"+portNumber+".bak").getPath(), random); } catch (IOException e1) { initNodeFileSettings(random); } } if(wasTestnet != testnetEnabled) { Logger.error(this, "Switched from testnet mode to non-testnet mode or vice versa! Regenerating pubkey, privkey, and deleting logs."); this.myCryptoGroup = Global.DSAgroupBigA; this.myPrivKey = new DSAPrivateKey(myCryptoGroup, random); this.myPubKey = new DSAPublicKey(myCryptoGroup, myPrivKey); } // Then read the peers peers = new PeerManager(this, new File(nodeDir, "peers-"+portNumber).getPath()); peers.writePeers(); peers.updatePMUserAlert(); nodePinger = new NodePinger(this); usm.setDispatcher(dispatcher=new NodeDispatcher(this)); usm.setLowLevelFilter(packetMangler = new FNPPacketMangler(this)); // Extra Peer Data Directory nodeConfig.register("extraPeerDataDir", new File(nodeDir, "extra-peer-data-"+portNumber).toString(), sortOrder++, true, false, "Extra peer data directory", "Name of directory to put extra peer data in", new StringCallback() { public String get() { return extraPeerDataDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(extraPeerDataDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving node directory on the fly not supported at present"); } }); extraPeerDataDir = new File(nodeConfig.getString("extraPeerDataDir")); if(!((extraPeerDataDir.exists() && extraPeerDataDir.isDirectory()) || (extraPeerDataDir.mkdir()))) { String msg = "Could not find or create extra peer data directory"; throw new NodeInitException(EXIT_EXTRA_PEER_DATA_DIR, msg); } // Name nodeConfig.register("name", myName, sortOrder++, false, true, "Node name for darknet", "Node name; you may want to set this to something descriptive if running on darknet e.g. Fred Blogg's Node; it is visible to any connecting node", new NodeNameCallback(this)); myName = nodeConfig.getString("name"); // Datastore nodeConfig.register("storeSize", "1G", sortOrder++, false, true, "Store size in bytes", "Store size in bytes", new LongCallback() { public long get() { return maxTotalKeys * sizePerKey; } public void set(long storeSize) throws InvalidConfigValueException { if((storeSize < 0) || (storeSize < (32 * 1024 * 1024))) throw new InvalidConfigValueException("Invalid store size"); long newMaxStoreKeys = storeSize / sizePerKey; if(newMaxStoreKeys == maxTotalKeys) return; // Update each datastore synchronized(Node.this) { maxTotalKeys = newMaxStoreKeys; maxStoreKeys = maxTotalKeys / 2; maxCacheKeys = maxTotalKeys - maxStoreKeys; } try { chkDatastore.setMaxKeys(maxStoreKeys, false); chkDatacache.setMaxKeys(maxCacheKeys, false); pubKeyDatastore.setMaxKeys(maxStoreKeys, false); pubKeyDatacache.setMaxKeys(maxCacheKeys, false); sskDatastore.setMaxKeys(maxStoreKeys, false); sskDatacache.setMaxKeys(maxCacheKeys, false); } catch (IOException e) { // FIXME we need to be able to tell the user. Logger.error(this, "Caught "+e+" resizing the datastore", e); System.err.println("Caught "+e+" resizing the datastore"); e.printStackTrace(); } catch (DatabaseException e) { Logger.error(this, "Caught "+e+" resizing the datastore", e); System.err.println("Caught "+e+" resizing the datastore"); e.printStackTrace(); } } }); long storeSize = nodeConfig.getLong("storeSize"); if(storeSize < 0 || storeSize < (32 * 1024 * 1024)) { // totally arbitrary minimum! throw new NodeInitException(EXIT_INVALID_STORE_SIZE, "Invalid store size"); } maxTotalKeys = storeSize / sizePerKey; nodeConfig.register("storeDir", ".", sortOrder++, true, false, "Store directory", "Name of directory to put store files in", new StringCallback() { public String get() { return storeDir.getPath(); } public void set(String val) throws InvalidConfigValueException { if(storeDir.equals(new File(val))) return; // FIXME throw new InvalidConfigValueException("Moving datastore on the fly not supported at present"); } }); storeDir = new File(nodeConfig.getString("storeDir")); if(!((storeDir.exists() && storeDir.isDirectory()) || (storeDir.mkdir()))) { String msg = "Could not find or create datastore directory"; throw new NodeInitException(EXIT_STORE_OTHER, msg); } maxStoreKeys = maxTotalKeys / 2; maxCacheKeys = maxTotalKeys - maxStoreKeys; // Setup datastores // First, global settings // Percentage of the database that must contain usefull data // decrease to increase performance, increase to save disk space System.setProperty("je.cleaner.minUtilization","90"); // Delete empty log files System.setProperty("je.cleaner.expunge","true"); EnvironmentConfig envConfig = new EnvironmentConfig(); envConfig.setAllowCreate(true); envConfig.setTransactional(true); envConfig.setTxnWriteNoSync(true); File dbDir = new File(storeDir, "database-"+portNumber); dbDir.mkdirs(); try { storeEnvironment = new Environment(dbDir, envConfig); envMutableConfig = storeEnvironment.getMutableConfig(); } catch (DatabaseException e) { System.err.println("Could not open store: "+e); e.printStackTrace(); throw new NodeInitException(EXIT_STORE_OTHER, e.getMessage()); } storeShutdownHook = new SemiOrderedShutdownHook(); Runtime.getRuntime().addShutdownHook(storeShutdownHook); storeShutdownHook.addLateJob(new Thread() { public void run() { try { storeEnvironment.close(); System.err.println("Successfully closed all datastores."); } catch (Throwable t) { System.err.println("Caught "+t+" closing environment"); t.printStackTrace(); } } }); nodeConfig.register("databaseMaxMemory", "20M", sortOrder++, true, false, "Datastore maximum memory usage", "Maximum memory usage of the database backing the datastore indexes", new LongCallback() { public long get() { return envMutableConfig.getCacheSize(); } public void set(long val) throws InvalidConfigValueException { if(val < 0) throw new InvalidConfigValueException("Negative values not supported"); envMutableConfig.setCacheSize(val); } }); envMutableConfig.setCacheSize(nodeConfig.getLong("databaseMaxMemory")); String suffix = "-" + portNumber; try { Logger.normal(this, "Initializing CHK Datastore"); System.out.println("Initializing CHK Datastore ("+maxStoreKeys+" keys)"); chkDatastore = BerkeleyDBFreenetStore.construct(lastVersion, storeDir, true, suffix, maxStoreKeys, CHKBlock.DATA_LENGTH, CHKBlock.TOTAL_HEADERS_LENGTH, true, BerkeleyDBFreenetStore.TYPE_CHK, storeEnvironment, random, storeShutdownHook); Logger.normal(this, "Initializing CHK Datacache"); System.out.println("Initializing CHK Datacache ("+maxCacheKeys+":"+maxCacheKeys+" keys)"); chkDatacache = BerkeleyDBFreenetStore.construct(lastVersion, storeDir, false, suffix, maxCacheKeys, CHKBlock.DATA_LENGTH, CHKBlock.TOTAL_HEADERS_LENGTH, true, BerkeleyDBFreenetStore.TYPE_CHK, storeEnvironment, random, storeShutdownHook); Logger.normal(this, "Initializing pubKey Datastore"); System.out.println("Initializing pubKey Datastore"); pubKeyDatastore = BerkeleyDBFreenetStore.construct(lastVersion, storeDir, true, suffix, maxStoreKeys, DSAPublicKey.PADDED_SIZE, 0, true, BerkeleyDBFreenetStore.TYPE_PUBKEY, storeEnvironment, random, storeShutdownHook); Logger.normal(this, "Initializing pubKey Datacache"); System.out.println("Initializing pubKey Datacache ("+maxCacheKeys+" keys)"); pubKeyDatacache = BerkeleyDBFreenetStore.construct(lastVersion, storeDir, false, suffix, maxCacheKeys, DSAPublicKey.PADDED_SIZE, 0, true, BerkeleyDBFreenetStore.TYPE_PUBKEY, storeEnvironment, random, storeShutdownHook); // FIXME can't auto-fix SSK stores. Logger.normal(this, "Initializing SSK Datastore"); System.out.println("Initializing SSK Datastore"); sskDatastore = BerkeleyDBFreenetStore.construct(lastVersion, storeDir, true, suffix, maxStoreKeys, SSKBlock.DATA_LENGTH, SSKBlock.TOTAL_HEADERS_LENGTH, false, BerkeleyDBFreenetStore.TYPE_SSK, storeEnvironment, random, storeShutdownHook); Logger.normal(this, "Initializing SSK Datacache"); System.out.println("Initializing SSK Datacache ("+maxCacheKeys+" keys)"); sskDatacache = BerkeleyDBFreenetStore.construct(lastVersion, storeDir, false, suffix, maxStoreKeys, SSKBlock.DATA_LENGTH, SSKBlock.TOTAL_HEADERS_LENGTH, false, BerkeleyDBFreenetStore.TYPE_SSK, storeEnvironment, random, storeShutdownHook); } catch (FileNotFoundException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); throw new NodeInitException(EXIT_STORE_FILE_NOT_FOUND, msg); } catch (IOException e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); e1.printStackTrace(); throw new NodeInitException(EXIT_STORE_IOEXCEPTION, msg); } catch (Exception e1) { String msg = "Could not open datastore: "+e1; Logger.error(this, msg, e1); System.err.println(msg); e1.printStackTrace(); throw new NodeInitException(EXIT_STORE_OTHER, msg); } nodeConfig.register("throttleFile", "throttle.dat", sortOrder++, true, false, "File to store the persistent throttle data to", "File to store the persistent throttle data to", new StringCallback() { public String get() { return persistTarget.toString(); } public void set(String val) throws InvalidConfigValueException { setThrottles(val); } }); String throttleFile = nodeConfig.getString("throttleFile"); try { setThrottles(throttleFile); } catch (InvalidConfigValueException e2) { throw new NodeInitException(EXIT_THROTTLE_FILE_ERROR, e2.getMessage()); } throttlePersister = new ThrottlePersister(); SimpleFieldSet throttleFS = null; try { throttleFS = SimpleFieldSet.readFrom(persistTarget); } catch (IOException e) { try { throttleFS = SimpleFieldSet.readFrom(persistTemp); } catch (FileNotFoundException e1) { // Ignore } catch (IOException e1) { Logger.error(this, "Could not read "+persistTarget+" ("+e+") and could not read "+persistTemp+" either ("+e1+")"); } } if(logMINOR) Logger.minor(this, "Read throttleFS:\n"+throttleFS); // Guesstimates. Hopefully well over the reality. localChkFetchBytesSentAverage = new TimeDecayingRunningAverage(500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalChkFetchBytesSentAverage")); localSskFetchBytesSentAverage = new TimeDecayingRunningAverage(500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalSskFetchBytesSentAverage")); localChkInsertBytesSentAverage = new TimeDecayingRunningAverage(32768, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalChkInsertBytesSentAverage")); localSskInsertBytesSentAverage = new TimeDecayingRunningAverage(2048, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalSskInsertBytesSentAverage")); localChkFetchBytesReceivedAverage = new TimeDecayingRunningAverage(32768, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalChkFetchBytesReceivedAverage")); localSskFetchBytesReceivedAverage = new TimeDecayingRunningAverage(2048, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalSskFetchBytesReceivedAverage")); localChkInsertBytesReceivedAverage = new TimeDecayingRunningAverage(1024, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalChkInsertBytesReceivedAverage")); localSskInsertBytesReceivedAverage = new TimeDecayingRunningAverage(500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("LocalChkInsertBytesReceivedAverage")); remoteChkFetchBytesSentAverage = new TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteChkFetchBytesSentAverage")); remoteSskFetchBytesSentAverage = new TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteSskFetchBytesSentAverage")); remoteChkInsertBytesSentAverage = new TimeDecayingRunningAverage(32768+32768+1024, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteChkInsertBytesSentAverage")); remoteSskInsertBytesSentAverage = new TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteSskInsertBytesSentAverage")); remoteChkFetchBytesReceivedAverage = new TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteChkFetchBytesReceivedAverage")); remoteSskFetchBytesReceivedAverage = new TimeDecayingRunningAverage(2048+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteSskFetchBytesReceivedAverage")); remoteChkInsertBytesReceivedAverage = new TimeDecayingRunningAverage(32768+1024+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteChkInsertBytesReceivedAverage")); remoteSskInsertBytesReceivedAverage = new TimeDecayingRunningAverage(1024+1024+500, 180000, 0.0, Integer.MAX_VALUE, throttleFS == null ? null : throttleFS.subset("RemoteSskInsertBytesReceivedAverage")); clientCore = new NodeClientCore(this, config, nodeConfig, nodeDir, portNumber, sortOrder, throttleFS == null ? null : throttleFS.subset("RequestStarters")); nodeConfig.finishedInitialization(); writeNodeFile(); // And finally, Initialize the plugin manager Logger.normal(this, "Initializing Plugin Manager"); System.out.println("Initializing Plugin Manager"); pluginManager = new PluginManager(this); pluginManager2 = new freenet.plugin.PluginManager(this); FetcherContext ctx = clientCore.makeClient((short)0, true).getFetcherContext(); ctx.allowSplitfiles = false; ctx.dontEnterImplicitArchives = true; ctx.maxArchiveRestarts = 0; ctx.maxMetadataSize = 256; ctx.maxNonSplitfileRetries = 10; ctx.maxOutputLength = 4096; ctx.maxRecursionLevel = 2; ctx.maxTempLength = 4096; this.arkFetcherContext = ctx; Logger.normal(this, "Node constructor completed"); System.out.println("Node constructor completed"); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Node.java/clean/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 2029, 12, 42, 2842, 278, 812, 11906, 809, 642, 16, 8072, 1830, 2744, 16, 10253, 809, 1503, 9109, 16, 2029, 510, 14153, 3153, 13, 1216, 2029, 2570, 503, 288, 202, 202, 759, 29442, 10769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3196, 2029, 12, 42, 2842, 278, 812, 11906, 809, 642, 16, 8072, 1830, 2744, 16, 10253, 809, 1503, 9109, 16, 2029, 510, 14153, 3153, 13, 1216, 2029, 2570, 503, 288, 202, 202, 759, 29442, 10769, ...
marginBottom = null;
backgroundColor = null;
public void release() { height = null; width = null; visible = null; hiddenMode = null; mouseOutListeners = null; mouseOverListeners = null; helpMessage = null; helpURL = null; toolTipText = null; y = null; x = null; lookId = null; marginRight = null; marginLeft = null; marginTop = null; marginBottom = null; foregroundColor = null; backgroundColor = null; styleClass = null; userEventListeners = null; propertyChangeListeners = null; initListeners = null; globalOnly = null; showSummary = null; margins = null; showDetail = null; super.release(); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/AbstractMessagesTag.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/taglib/AbstractMessagesTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3992, 1435, 288, 202, 202, 4210, 273, 446, 31, 202, 202, 2819, 273, 446, 31, 202, 202, 8613, 273, 446, 31, 202, 202, 6345, 2309, 273, 446, 31, 202, 202, 11697, 1182, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 3992, 1435, 288, 202, 202, 4210, 273, 446, 31, 202, 202, 2819, 273, 446, 31, 202, 202, 8613, 273, 446, 31, 202, 202, 6345, 2309, 273, 446, 31, 202, 202, 11697, 1182, 55...
return new MarginInfo(top, right, bottom, left, justification);
String ln = e.getLocalName(); boolean rgnBr = ln.equals(BATIK_EXT_FLOW_REGION_BREAK_TAG); return new MarginInfo(top, right, bottom, left, justification, rgnBr);
public MarginInfo makeMarginInfo(Element e) { String s; float top=0, right=0, bottom=0, left=0; s = e.getAttributeNS(null, BATIK_EXT_MARGIN_ATTRIBUTE); try { if (s.length() != 0) { float f = Float.parseFloat(s); top=right=bottom=left=f; } } catch(NumberFormatException nfe) { /* nothing */ } s = e.getAttributeNS(null, BATIK_EXT_TOP_MARGIN_ATTRIBUTE); try { if (s.length() != 0) { float f = Float.parseFloat(s); top = f; } } catch(NumberFormatException nfe) { /* nothing */ } s = e.getAttributeNS(null, BATIK_EXT_RIGHT_MARGIN_ATTRIBUTE); try { if (s.length() != 0) { float f = Float.parseFloat(s); right = f; } } catch(NumberFormatException nfe) { /* nothing */ } s = e.getAttributeNS(null, BATIK_EXT_BOTTOM_MARGIN_ATTRIBUTE); try { if (s.length() != 0) { float f = Float.parseFloat(s); bottom = f; } } catch(NumberFormatException nfe) { /* nothing */ } s = e.getAttributeNS(null, BATIK_EXT_LEFT_MARGIN_ATTRIBUTE); try { if (s.length() != 0) { float f = Float.parseFloat(s); left = f; } } catch(NumberFormatException nfe) { /* nothing */ } int justification = MarginInfo.JUSTIFY_START; s = e.getAttributeNS(null, BATIK_EXT_JUSTIFICATION_ATTRIBUTE); try { if (s.length() != 0) { if (s.equals("start")) { justification = MarginInfo.JUSTIFY_START; } else if (s.equals("middle")) { justification = MarginInfo.JUSTIFY_MIDDLE; } else if (s.equals("end")) { justification = MarginInfo.JUSTIFY_END; } else if (s.equals("full")) { justification = MarginInfo.JUSTIFY_FULL; } } } catch(NumberFormatException nfe) { /* nothing */ } return new MarginInfo(top, right, bottom, left, justification); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/7e91d52bf0a0a956940323d667f833ec5b7f056b/SVGFlowTextElementBridge.java/clean/sources/org/apache/batik/extension/svg/SVGFlowTextElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 5243, 966, 1221, 9524, 966, 12, 1046, 425, 13, 288, 3639, 514, 272, 31, 3639, 1431, 1760, 33, 20, 16, 2145, 33, 20, 16, 5469, 33, 20, 16, 2002, 33, 20, 31, 3639, 272, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 5243, 966, 1221, 9524, 966, 12, 1046, 425, 13, 288, 3639, 514, 272, 31, 3639, 1431, 1760, 33, 20, 16, 2145, 33, 20, 16, 5469, 33, 20, 16, 2002, 33, 20, 31, 3639, 272, 273...
_t = __t1068;
_t = __t1053;
public final void recordphrase(AST _t) throws RecognitionException { AST recordphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: case FIELDS: { record_fields(_t); _t = _retTree; break; } case 3: case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LEFT: case LITTLEENDIAN: case NO: case NOERROR_KW: case NOLOCK: case NOPREFETCH: case NOWAIT: case NULL_KW: case OF: case OUTERJOIN: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TODAY: case TRUE_KW: case USEINDEX: case USING: case WHERE: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; if ((_t.getType()==TODAY)) { AST tmp760_AST_in = (AST)_t; match(_t,TODAY); _t = _t.getNextSibling(); } else if ((_tokenSet_7.member(_t.getType()))) { constant(_t); _t = _retTree; } else if ((_tokenSet_8.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } { _loop1071: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFT: { AST __t1063 = _t; AST tmp761_AST_in = (AST)_t; match(_t,LEFT); _t = _t.getFirstChild(); AST tmp762_AST_in = (AST)_t; match(_t,OUTERJOIN); _t = _t.getNextSibling(); _t = __t1063; _t = _t.getNextSibling(); break; } case OUTERJOIN: { AST tmp763_AST_in = (AST)_t; match(_t,OUTERJOIN); _t = _t.getNextSibling(); break; } case OF: { AST __t1064 = _t; AST tmp764_AST_in = (AST)_t; match(_t,OF); _t = _t.getFirstChild(); tbl(_t,CQ.REF); _t = _retTree; _t = __t1064; _t = _t.getNextSibling(); break; } case WHERE: { AST __t1065 = _t; AST tmp765_AST_in = (AST)_t; match(_t,WHERE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t1065; _t = _t.getNextSibling(); break; } case USEINDEX: { AST __t1067 = _t; AST tmp766_AST_in = (AST)_t; match(_t,USEINDEX); _t = _t.getFirstChild(); AST tmp767_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t1067; _t = _t.getNextSibling(); break; } case USING: { AST __t1068 = _t; AST tmp768_AST_in = (AST)_t; match(_t,USING); _t = _t.getFirstChild(); fld1(_t,CQ.SYMBOL); _t = _retTree; { _loop1070: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==AND)) { AST tmp769_AST_in = (AST)_t; match(_t,AND); _t = _t.getNextSibling(); fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop1070; } } while (true); } _t = __t1068; _t = _t.getNextSibling(); break; } case EXCLUSIVELOCK: case NOLOCK: case SHARELOCK: { lockhow(_t); _t = _retTree; break; } case NOWAIT: { AST tmp770_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOPREFETCH: { AST tmp771_AST_in = (AST)_t; match(_t,NOPREFETCH); _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp772_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop1071; } } } while (true); } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1409, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1409, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 727, 918, 1409, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1409, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
ov[i] = DBusConnection.deSerializeParameter(this.values[i], ts[0]);
ov[i] = Marshalling.deSerializeParameter(this.values[i], ts[0]);
public List getList(Type t) throws Exception { if (null != list) return list; Type[] ts; if (t instanceof ParameterizedType) ts = ((ParameterizedType) t).getActualTypeArguments(); else if (t instanceof GenericArrayType) { ts = new Type[1]; ts[0] = ((GenericArrayType) t).getGenericComponentType(); } else if (t instanceof Class && ((Class) t).isArray()) { ts = new Type[1]; ts[0] = ((Class) t).getComponentType(); } else { return null; } Object[] ov = new Object[values.length]; for (int i = 0; i < values.length; i++) ov[i] = DBusConnection.deSerializeParameter(this.values[i], ts[0]); this.list = Arrays.asList(ov); return list; }
5401 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5401/240a97de81bb20836f039ffa99239daaf34291aa/ListContainer.java/clean/org/freedesktop/dbus/ListContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 987, 10033, 12, 559, 268, 13, 1216, 1185, 282, 288, 4202, 309, 261, 2011, 480, 666, 13, 327, 666, 31, 1377, 1412, 8526, 3742, 31, 1377, 309, 261, 88, 1276, 17141, 13, 540, 3742, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 1071, 987, 10033, 12, 559, 268, 13, 1216, 1185, 282, 288, 4202, 309, 261, 2011, 480, 666, 13, 327, 666, 31, 1377, 1412, 8526, 3742, 31, 1377, 309, 261, 88, 1276, 17141, 13, 540, 3742, ...
String sectionName = (String)e.nextElement();
String sectionName = (String) e.nextElement();
public void write(PrintWriter writer) throws IOException { writer.print(ATTRIBUTE_MANIFEST_VERSION + ": " + manifestVersion + EOL); String signatureVersion = mainSection.getAttributeValue(ATTRIBUTE_SIGNATURE_VERSION); if (signatureVersion != null) { writer.print(ATTRIBUTE_SIGNATURE_VERSION + ": " + signatureVersion + EOL); mainSection.removeAttribute(ATTRIBUTE_SIGNATURE_VERSION); } mainSection.write(writer); // add it back if (signatureVersion != null) { try { Attribute svAttr = new Attribute(ATTRIBUTE_SIGNATURE_VERSION, signatureVersion); mainSection.addConfiguredAttribute(svAttr); } catch (ManifestException e) { // shouldn't happen - ignore } } Enumeration e = sectionIndex.elements(); while (e.hasMoreElements()) { String sectionName = (String)e.nextElement(); Section section = getSection(sectionName); section.write(writer); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6154080061f869b4e425d608da3bd61fad967564/Manifest.java/clean/src/main/org/apache/tools/ant/taskdefs/Manifest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 12, 5108, 2289, 2633, 13, 1216, 1860, 288, 3639, 2633, 18, 1188, 12, 11616, 67, 9560, 30050, 67, 5757, 397, 6398, 315, 397, 5643, 1444, 397, 19995, 1769, 3639, 514, 3372,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1045, 12, 5108, 2289, 2633, 13, 1216, 1860, 288, 3639, 2633, 18, 1188, 12, 11616, 67, 9560, 30050, 67, 5757, 397, 6398, 315, 397, 5643, 1444, 397, 19995, 1769, 3639, 514, 3372,...
java.sql.ResultSet r = connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner and relname like '"+table.toLowerCase()+"' ORDER BY relname");
java.sql.ResultSet r = connection.ExecSQL(null, "SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner and relname like '"+table.toLowerCase()+"' ORDER BY relname");
public java.sql.ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { Field f[] = new Field[8]; Vector v = new Vector(); if(table==null) table="%"; if(columnNamePattern==null) columnNamePattern="%"; else columnNamePattern=columnNamePattern.toLowerCase(); f[0] = new Field(connection,"TABLE_CAT",iVarcharOid,32); f[1] = new Field(connection,"TABLE_SCHEM",iVarcharOid,32); f[2] = new Field(connection,"TABLE_NAME",iVarcharOid,32); f[3] = new Field(connection,"COLUMN_NAME",iVarcharOid,32); f[4] = new Field(connection,"GRANTOR",iVarcharOid,32); f[5] = new Field(connection,"GRANTEE",iVarcharOid,32); f[6] = new Field(connection,"PRIVILEGE",iVarcharOid,32); f[7] = new Field(connection,"IS_GRANTABLE",iVarcharOid,32); // This is taken direct from the psql source java.sql.ResultSet r = connection.ExecSQL("SELECT relname, relacl FROM pg_class, pg_user WHERE ( relkind = 'r' OR relkind = 'i') and relname !~ '^pg_' and relname !~ '^xin[vx][0-9]+' and usesysid = relowner and relname like '"+table.toLowerCase()+"' ORDER BY relname"); while(r.next()) { byte[][] tuple = new byte[8][0]; tuple[0] = tuple[1]= "".getBytes(); DriverManager.println("relname=\""+r.getString(1)+"\" relacl=\""+r.getString(2)+"\""); // For now, don't add to the result as relacl needs to be processed. //v.addElement(tuple); } return new ResultSet(connection,f,v,"OK",1); }
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 2286, 284, 8526, 273, 394, 2286, 63, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 2286, 284, 8526, 273, 394, 2286, 63, 28, ...
IProject simpleProject = Utils.getPredefinedProject("Simple AJ Project", true); simpleProject.build(IncrementalProjectBuilder.FULL_BUILD, null);
IProject simpleProject = Utils.getPredefinedProject("AnotherSimpleAJProject", true); BlockingProgressMonitor monitor = new BlockingProgressMonitor(); monitor.reset(); simpleProject.build(IncrementalProjectBuilder.FULL_BUILD, monitor); monitor.waitForCompletion();
public void testCreateAndDeleteNewPackage() throws Exception { IProject simpleProject = Utils.getPredefinedProject("Simple AJ Project", true); simpleProject.build(IncrementalProjectBuilder.FULL_BUILD, null); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); IJavaProject javaProject = JavaCore.create(simpleProject); String srcPath = javaProject.getUnderlyingResource().getLocation().toOSString() + File.separator + "src" + File.separator + "newPackage"; String binPath = javaProject.getUnderlyingResource().getLocation().toOSString() + File.separator + "bin" + File.separator + "newPackage"; BlockingProgressMonitor monitor = new BlockingProgressMonitor(); IFolder src = simpleProject.getFolder("src"); if (!src.exists()){ monitor.reset(); src.create(true, true, monitor); monitor.waitForCompletion(); } ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); IFolder newPackage = src.getFolder("newPackage"); assertFalse("newPackage should not exist under src tree! (path=" + srcPath + ")",newPackage.exists()); IFolder bin = simpleProject.getFolder("bin"); if (!bin.exists()){ monitor.reset(); bin.create(true, true, monitor); monitor.waitForCompletion(); } ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); IFolder newBinPackage = bin.getFolder("newPackage"); assertFalse("newPackage should not exist under bin tree! (path=" + binPath + ")",newBinPackage.exists()); IStructuredSelection selectedFolder = new StructuredSelection(src); // need to set this because otherwise a full build is // forced (which isn't how it behaves when run this test // manually) ProjectBuildConfigurator pbc = BuildConfigurator.getBuildConfigurator() .getProjectBuildConfigurator(simpleProject); pbc.requestFullBuild(false); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject);// try {// BlockingProgressMonitor bpm = new BlockingProgressMonitor();// bpm.reset();// makeNewPackage("newPackage",selectedFolder,bpm);// bpm.waitForCompletion();// } catch (SWTException e) {// // don't care about this exception because it's down// // in SWT and nothing to do with the test// System.err.println(">>> caught swt exception - don't care");// }// // try {// Thread.sleep(5000);// } catch (InterruptedException e) {// System.err.println("interrupted sleep - don't care");// } String str= "Simple AJ Project" + File.separator + "src"; IPath path= new Path(str); IResource res= ResourcesPlugin.getWorkspace().getRoot().findMember(path); IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(res); monitor.reset(); root.createPackageFragment("newPackage", true, monitor); monitor.waitForCompletion();// IFolder p = src.getFolder("newPackage");// if (!p.exists()) {// monitor.reset();// p.create(true, true, monitor);// monitor.waitForCompletion();// } monitor.reset(); simpleProject.refreshLocal(IResource.DEPTH_INFINITE,monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); // If either of these fail, then it's more likely than not to be // down to the timings of driving this programatically (this is // why there is a sleep above. IFolder newPackage2 = src.getFolder("newPackage"); assertTrue("newPackage should exist under src tree! (path=" + srcPath + ")",newPackage2.exists()); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); monitor.reset(); simpleProject.refreshLocal(IResource.DEPTH_INFINITE,monitor); monitor.waitForCompletion(); BlockingProgressMonitor m2 = new BlockingProgressMonitor(); m2.reset(); simpleProject.refreshLocal(IResource.DEPTH_INFINITE,m2); m2.waitForCompletion(); IFolder newBinPackage2 = bin.getFolder("newPackage"); assertTrue("newPackage should exist under bin tree! (path=" + binPath + ")",newBinPackage2.exists()); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); monitor.reset(); newPackage.delete(true,monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); try { Thread.sleep(2000); } catch (InterruptedException e) { System.err.println("interrupted sleep - don't care"); } // If either of these fail, then it's more likely than not to be // down to the timings of driving this programatically (this is // why there is a sleep above. IFolder newPackage3 = src.getFolder("newPackage"); assertFalse("newPackage should not exist under src tree! (path=" + srcPath + ")",newPackage3.exists()); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); monitor.reset(); simpleProject.refreshLocal(IResource.DEPTH_INFINITE,monitor); monitor.waitForCompletion(); IFolder newBinPackage3 = bin.getFolder("newPackage"); assertFalse("newPackage should not exist under bin tree! (path=" + binPath + ")",newBinPackage3.exists()); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/beb2a1e24d9882ac29b57e656b5382eaf0bf3b3d/BuilderTest.java/clean/org.eclipse.ajdt.ui.tests/src/org/eclipse/ajdt/internal/builder/BuilderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1684, 1876, 2613, 1908, 2261, 1435, 1216, 1185, 288, 202, 202, 45, 4109, 4143, 4109, 273, 6091, 18, 588, 1386, 2178, 4109, 2932, 5784, 432, 46, 5420, 3113, 638, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 1842, 1684, 1876, 2613, 1908, 2261, 1435, 1216, 1185, 288, 202, 202, 45, 4109, 4143, 4109, 273, 6091, 18, 588, 1386, 2178, 4109, 2932, 5784, 432, 46, 5420, 3113, 638, 1769,...
protected ChangeListener createChangeListener() { return null; }
protected ChangeListener createChangeListener() { return new ChangeListener() { public void stateChanged(ChangeEvent ce) { fireStateChanged(); } }; }
protected ChangeListener createChangeListener() { return null; // TODO } // createChangeListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/JProgressBar.java/clean/core/src/classpath/javax/javax/swing/JProgressBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 7576, 2223, 752, 15744, 1435, 288, 202, 202, 2463, 446, 31, 368, 2660, 202, 97, 368, 752, 15744, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 7576, 2223, 752, 15744, 1435, 288, 202, 202, 2463, 446, 31, 368, 2660, 202, 97, 368, 752, 15744, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
replaceMethod,null,replaceNS);
replaceMethod,view,replaceNS);
private static String regexpBeanShellReplace(SearchMatcher.Match occur) throws Exception { for(int i = 0; i < occur.substitutions.length; i++) { replaceNS.setVariable("_" + i, occur.substitutions[i]); } Object obj = BeanShell.runCachedBlock( replaceMethod,null,replaceNS); if(obj == null) return ""; else return obj.toString(); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/206e26dffebd880d4ca1dcddcaf3da921f0c35a1/SearchAndReplace.java/clean/org/gjt/sp/jedit/search/SearchAndReplace.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 7195, 3381, 13220, 5729, 12, 2979, 6286, 18, 2060, 3334, 13, 202, 202, 15069, 1185, 202, 95, 202, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 3334, 18, 1717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 760, 514, 7195, 3381, 13220, 5729, 12, 2979, 6286, 18, 2060, 3334, 13, 202, 202, 15069, 1185, 202, 95, 202, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 3334, 18, 1717, ...
screenHeight = getHeight(); screenWidth = getWidth();
screenHeight = PConstants.BROWSER_SIDE; screenWidth = PConstants.BROWSER_SIDE;
private void arrangeDisplay(Collection datasets) { // initialize and find clear out the layer layer.removeAllChildren(); if (datasets == null) { return; } // calculate the total area, adding nodes to the layer // as we go. totalArea = 0; Iterator iter = datasets.iterator(); while (iter.hasNext()) { BrowserDatasetSummary d = (BrowserDatasetSummary) iter.next(); double area = getArea(d); totalArea += area; } screenHeight = getHeight(); screenWidth = getWidth(); screenArea = screenHeight*screenWidth; // scale the width and height by the total area scaleFactor = Math.sqrt(screenArea/totalArea); screenHeight /= scaleFactor; screenWidth /= scaleFactor; // build the treemap. strips = doTreeMap(datasets); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/083c0615f5688f7fef55d651a2f420a1fb703456/DatasetBrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/DatasetBrowserCanvas.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2454, 726, 4236, 12, 2532, 11109, 13, 288, 202, 202, 759, 4046, 471, 1104, 2424, 596, 326, 3018, 202, 202, 6363, 18, 4479, 1595, 4212, 5621, 202, 202, 430, 261, 21125, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2454, 726, 4236, 12, 2532, 11109, 13, 288, 202, 202, 759, 4046, 471, 1104, 2424, 596, 326, 3018, 202, 202, 6363, 18, 4479, 1595, 4212, 5621, 202, 202, 430, 261, 21125, 4...
private String getString(Object proposal) {
private String getString(IContentProposal proposal) {
private String getString(Object proposal) { if (proposal == null) return EMPTY; if (labelProvider == null) return proposal.toString(); return labelProvider.getText(proposal); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/54f5816382677a87ac1d149868af2370808e4f06/ContentProposalPopup.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalPopup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 4997, 12, 921, 14708, 13, 288, 202, 202, 430, 261, 685, 8016, 422, 446, 13, 1082, 202, 2463, 8984, 31, 202, 202, 430, 261, 1925, 2249, 422, 446, 13, 1082, 202, 2463, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 4997, 12, 921, 14708, 13, 288, 202, 202, 430, 261, 685, 8016, 422, 446, 13, 1082, 202, 2463, 8984, 31, 202, 202, 430, 261, 1925, 2249, 422, 446, 13, 1082, 202, 2463, 1...
trackerStatus.getHost(), trackerName);
trackerStatus.getHost(), trackerName, myMetrics);
public void run() { try { while (shouldRun) { // Every 3 minutes check for any tasks that are overdue Thread.sleep(TASKTRACKER_EXPIRY_INTERVAL/3); long now = System.currentTimeMillis(); LOG.debug("Starting launching task sweep"); synchronized (JobTracker.this) { synchronized (launchingTasks) { Iterator itr = launchingTasks.entrySet().iterator(); while (itr.hasNext()) { Map.Entry pair = (Map.Entry) itr.next(); String taskId = (String) pair.getKey(); long age = now - ((Long) pair.getValue()).longValue(); LOG.info(taskId + " is " + age + " ms debug."); if (age > TASKTRACKER_EXPIRY_INTERVAL) { LOG.info("Launching task " + taskId + " timed out."); TaskInProgress tip = null; tip = (TaskInProgress) taskidToTIPMap.get(taskId); if (tip != null) { JobInProgress job = tip.getJob(); String trackerName = getAssignedTracker(taskId); TaskTrackerStatus trackerStatus = getTaskTracker(trackerName); job.failedTask(tip, taskId, "Error launching task", trackerStatus.getHost(), trackerName); } itr.remove(); } else { // the tasks are sorted by start time, so once we find // one that we want to keep, we are done for this cycle. break; } } } } } } catch (InterruptedException ie) { // all done } }
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/4189fcaa4fd604a9a0bde17e216d475a1329703d/JobTracker.java/buggy/src/java/org/apache/hadoop/mapred/JobTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 1850, 1323, 261, 13139, 1997, 13, 288, 5411, 368, 16420, 890, 6824, 866, 364, 1281, 4592, 716, 854, 1879, 24334, 5411, 4884, 18, 19607, 12, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4202, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 1850, 1323, 261, 13139, 1997, 13, 288, 5411, 368, 16420, 890, 6824, 866, 364, 1281, 4592, 716, 854, 1879, 24334, 5411, 4884, 18, 19607, 12, 15...
public void conjugateGradientMinimization(GVector initialCoordinates, PotentialFunction forceField) { //System.out.println(""); //System.out.println("FORCEFIELDTESTS ConjugatedGradientTest"); initializeMinimizationParameters(initialCoordinates); forceField.setEnergyGradient(kCoordinates); gradientk.set(forceField.getEnergyGradient()); //System.out.println("gradient at iteration 1 : g1 = " + gradientk); conjugateGradientMinimum = new GVector(kCoordinates); LineSearch ls = new LineSearch(); ConjugateGradientMethod cgm = new ConjugateGradientMethod(kCoordinates); while ((iterationNumberkplus1 < CGMaximumIteration) & (convergence == false)) { iterationNumberkplus1 += 1; iterationNumberk += 1; //System.out.println(""); //System.out.println(""); //System.out.println("CG Iteration number: " + iterationNumberkplus1); if (iterationNumberkplus1 != 1) { cgm.setuk(gradientk, gradientkplus1); kCoordinates.set(kplus1Coordinates); gradientk.set(gradientkplus1); } //System.out.println("Search direction: "); cgm.setvk(gradientk, iterationNumberkplus1); ls.setLineSearchLambda(kCoordinates, cgm.vk, forceField, iterationNumberk); setkplus1Coordinates(cgm.vk, ls.lineSearchLambda); //System.out.print("x" + iterationNumberkplus1 + " = " + kplus1Coordinates + " "); //System.out.println("f(x" + iterationNumberkplus1 + ") = " + forceField.energyFunction(kplus1Coordinates)); forceField.setEnergyGradient(kplus1Coordinates); gradientkplus1.set(forceField.getEnergyGradient()); checkConvergence(CGconvergenceCriterion); //System.out.println(""); //System.out.println("f(x" + iterationNumberk + ") = " + forceField.energyFunction(kCoordinates)); //System.out.println("f(x" + iterationNumberkplus1 + ") = " + forceField.energyFunction(kplus1Coordinates)); //System.out.println("gradientkplus1 = " + gradientkplus1); if (iterationNumberkplus1 != 1) { //System.out.println("gk+1.gk = " + gradientkplus1.dot(gradientk)); } if (molecule !=null){ //System.out.println("CGM: kplus1Coordinates:"+kplus1Coordinates); ffTools.assignCoordinatesToMolecule(kplus1Coordinates, molecule); } } conjugateGradientMinimum.set(kplus1Coordinates); forceField.setEnergyGradient(conjugateGradientMinimum); //System.out.println("The CG minimum energy is at: " + conjugateGradientMinimum); return; }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/9adcbd5769512fe518277f87ee5cc7c84de1ccb0/GeometricMinimizer.java/buggy/src/org/openscience/cdk/modeling/forcefield/GeometricMinimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10550, 31529, 15651, 2930, 381, 1588, 12, 43, 5018, 2172, 13431, 16, 225, 23435, 2001, 2083, 2944, 974, 13, 288, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 8863, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 10550, 31529, 15651, 2930, 381, 1588, 12, 43, 5018, 2172, 13431, 16, 225, 23435, 2001, 2083, 2944, 974, 13, 288, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 8863, 202, ...
evalTest("for $n in <a>xx<b/>yy</a>/node() return $n instance of element(b,*)",
evalTest("for $n in <a>xx<b/>yy</a>/node() return $n instance of element(b)",
public static void main(String[] args) { // gnu.expr.ModuleExp.dumpZipPrefix = "kawa-zip-dump-"; // Compilation.debugPrintExpr = true; // Compilation.debugPrintFinalExpr = true; evalTest("3.5+1", "4.5"); evalTest("3.5+1 ,4*2.5", "4.5 10"); evalTest("3<5", "true"); evalTest("let $x:=3+4 return $x", "7"); evalTest("let $x:=3+4 return <a>{$x}</a>", "<a>7</a>"); // We resolve $request and $response to servlet request/response, // but only when they're not lexially bound. evalTest("let $request:=2, $response:=3 return ($request+$response)", "5"); evalTest("some $x in (1, 2, 3), $y in (2, 3, 4)" + " satisfies $x + $y = 4", "true"); evalTest("every $x in (1, 2, 3), $y in (2, 3, 4)" + " satisfies $x + $y = 4", "false"); evalTest("every $x in (11, 12, 13), $y in (2, 3, 4)" + " satisfies $x > $y", "true"); evalTest("for $y in (4,5,2+4) return <b>{10+$y}</b>", "<b>14</b><b>15</b><b>16</b>"); evalTest("for $i in (1 to 10) where ($i mod 2)=1 return 20+$i", "21 23 25 27 29"); evalTest("for $car at $i in ('Ford', 'Chevy')," + "$pet at $j in ('Cat', 'Dog') " + "return ($i, '/', $car, '/', $j, '/', $pet, ';')", "1/Ford/1/Cat;1/Ford/2/Dog;2/Chevy/1/Cat;2/Chevy/2/Dog;"); evalTest("(3,4,5)[3]", "5"); evalTest("1,((2,3)[false()]),5", "1 5"); evalTest("1,((2 to 4)[true()]),5", "1 2 3 4 5"); evalTest("(for $y in (5,4) return <b>{10+$y}</b>)[2]", "<b>14</b>"); evalTest("for $a in (<a><b c='1' d='3'/><b c='2' d='6'/></a>)/b/@c" + " return concat('c: ', $a, ' d: ', $a/../@d, ';')", "c: 1 d: 3;c: 2 d: 6;"); String tabNsNodes = " xmlns:h=\"H\" xmlns:j=\"J\" xmlns:k=\"J\""; evalTest("doc('tab.xml')/result", "<result"+tabNsNodes+">\n" + "<row>\n" + "<fld1>a1</fld1>\n" + "<fld2 align=\"right\"><!--ignore-this-comment-->12</fld2>\n" + "</row>\n" + "<row>\n" + "<fld1 align=\"left\">b1</fld1>\n" + "<fld2 align=\"right\">22</fld2>\n" + "</row>\n" + "<h:row>\n" + "<j:fld1><![CDATA[c]]><![CDATA[1]]></j:fld1>\n" + "<h:fld2><![CDATA[33]]></h:fld2>\n" + "<j:fld3>44</j:fld3>\n" + "<k:fld1>c2</k:fld1>\n" + "</h:row>\n" + "</result>"); evalTest("doc('tab.xml')/result/row/fld2", "<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>" +"<fld2"+tabNsNodes+" align=\"right\">22</fld2>"); evalTest("doc('tab.xml')/result/row[fld2]", "<row"+tabNsNodes+">\n" + "<fld1>a1</fld1>\n" + "<fld2 align=\"right\"><!--ignore-this-comment-->12</fld2>\n</row>" + "<row"+tabNsNodes+">\n" + "<fld1 align=\"left\">b1</fld1>\n" + "<fld2 align=\"right\">22</fld2>\n" + "</row>"); evalTest("doc('tab.xml')/result/row/*", "<fld1"+tabNsNodes+">a1</fld1><fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2><fld1"+tabNsNodes+" align=\"left\">b1</fld1><fld2"+tabNsNodes+" align=\"right\">22</fld2>"); evalTest("doc('tab.xml')/result/row[2]", "<row"+tabNsNodes+">\n" + "<fld1 align=\"left\">b1</fld1>\n" + "<fld2 align=\"right\">22</fld2>\n" + "</row>"); evalTest("for $x in doc('tab.xml')/result/row[2]/node()" + " return ('[',$x,']')", "[\n][<fld1"+tabNsNodes+" align=\"left\">b1</fld1>][\n" + "][<fld2"+tabNsNodes+" align=\"right\">22</fld2>][\n]"); evalTest("for $x in doc('tab.xml')/result/row[2]/text()" + " return ('[',$x,']')", "[\n][\n][\n]"); evalTest("for $x in doc('tab.xml')/result/row[2]//text()" + " return ('[',$x,']')", "[\n][b1][\n][22][\n]"); evalTest("doc('tab.xml')/result/row/*[2]", "<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>" + "<fld2"+tabNsNodes+" align=\"right\">22</fld2>"); evalTest("for $x in <T>r1<fld1>a1</fld1><fld3/>r2<fld2>12</fld2></T>" + " /node()" + " return ('[',$x,']')", "[r1][<fld1>a1</fld1>][<fld3 />][r2][<fld2>12</fld2>]"); evalTest("(doc('tab.xml')/result/row/*)[2]", "<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>"); evalTest("(doc('tab.xml')/result/row/*)[position()>1]", "<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>" +"<fld1"+tabNsNodes+" align=\"left\">b1</fld1>" +"<fld2"+tabNsNodes+" align=\"right\">22</fld2>"); evalTest("(doc('tab.xml')/result/row/*)[position()>1][2]", "<fld1"+tabNsNodes+" align=\"left\">b1</fld1>"); evalTest("doc('tab.xml')/result/row/(fld2,fld1)", "<fld1"+tabNsNodes+">a1</fld1>" +"<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>" +"<fld1"+tabNsNodes+" align=\"left\">b1</fld1>" +"<fld2"+tabNsNodes+" align=\"right\">22</fld2>"); evalTest("string(doc('tab.xml'))", "\n\na1\n12\n\n\nb1\n22\n\n\nc1\n33\n44\nc2\n\n\n"); evalTest("string(doc('tab.xml'))", "\n\na1\n12\n\n\nb1\n22\n\n\nc1\n33\n44\nc2\n\n\n"); evalTest("string(doc('tab.xml')/result/row/fld1/@align)", "left"); evalTest("string(doc('tab.xml')/result/row/fld2/@align)", "rightright"); evalTest("for $x in children(<a>xy{3+4}kl<c>def</c>{9}{11}</a>)" + " return ('[',$x,']')", "[xy 7 kl][<c>def</c>][9 11]"); evalTest("children(<a>xy{3+4}kl<c>def</c>{9}{11}</a>)", "xy 7 kl<c>def</c>9 11"); evalTest("<a>aab</a> ='aab'", "true"); evalTest("<a>abc</a>='abb'", "false"); evalTest("string(<a>{'aa''bb&#88;cc&#x5a;dd'}</a>)", "aa'bbXccZdd"); evalTest("doc('tab.xml')/result/row[fld1]", "<row"+tabNsNodes+">\n" + "<fld1>a1</fld1>\n" + "<fld2 align=\"right\"><!--ignore-this-comment-->12</fld2>\n</row>" + "<row"+tabNsNodes+">\n" + "<fld1 align=\"left\">b1</fld1>\n" + "<fld2 align=\"right\">22</fld2>\n" + "</row>"); evalTest("doc('tab.xml')/result/row[fld3]", ""); evalTest("doc('tab.xml')/result/row/fld1[@align]", "<fld1"+tabNsNodes+" align=\"left\">b1</fld1>"); evalTest("doc('tab.xml')/result/row/fld2[@align]", "<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>" +"<fld2"+tabNsNodes+" align=\"right\">22</fld2>"); evalTest("'a',doc('tab.xml')/result/row/fld1[@align='left']", "a<fld1"+tabNsNodes+" align=\"left\">b1</fld1>"); evalTest("'a',doc('tab.xml')/result/row/fld1[@align='right']", "a"); evalTest("let $x:=12,\n" + " $y:=<a>{$x+$x}</a>\n" + " return <b atr1='11' atr2=\"{$x}\">{($y,99,$y)}</b>", "<b atr1=\"11\" atr2=\"12\"><a>24</a>99<a>24</a></b>"); evalTest("let $el := 'elm' return " + "document{element {$el} {attribute at{\"abc\"}, \"data\"}}/elm", "<elm at=\"abc\">data</elm>"); evalTest("let $a := <a at1='val1'><b/><c/></a>," + " $b0 := <b/>," + " $b := $a/b return" + " ($a is $a, $a << $b, $b >> $b," + " $a isnot $b, $b, $b0, $b is $b0)", "true true false true <b /> <b /> false"); evalTest("let $a := <a at1='val1'><b/><c/></a>," + " $b := $a/b, $c := $a/c return" + " for $n in distinct-nodes(($c, $a/@at1, $a, $c, $b, $b, $c))" + " return ('[', $n, ']')", "[<a at1=\"val1\"><b /><c /></a>][ at1=\"val1\"][<b />][<c />]"); // Boundary whitsapce (boundary-space) tests: evalTest("declare boundary-space preserve;\n" + "for $n in (<a> <b/> {' x '} </a>)/node() return ($n,';')", " ;<b/>; x ;"); evalTest("declare boundary-space strip;\n" + "for $n in (<a> <b/> {' x '} </a>)/node() return ($n,';')", "<b/>; x ;"); evalTest("declare boundary-space strip;\n" + "for $n in (<a> x <b/> y<c/>&#x20;</a>)/node() return ($n,';')", " x ;<b/>; y;<c/>; ;"); evalTest("for $n in (<a> <b/> </a>)/node() return ($n,';')", "<b/>;"); evalTest("<a> {3} {4} </a>", "<a>34</a>"); // This actually succeeds because evalTest ignores spaces. // failureExpectedNext = "fix space handling in constructors"; evalTest("<a>{3,4}{5,6}</a>", "<a>3 45 6</a>"); failureExpectedNext = "fix space handling in constructors"; evalTest("let $x := <a>{3,4}{5,6}</a> return <b>{$x, $x}</b>", "<ba><a>3 45 6</a><a>3 45 6</a></b>"); evalTest("for $n in <a><?xq doit?>abc<![CDATA[<X>]]>d<!--a comment--></a>/node()" + " return ($n,';')", "<?xq doit?>;abc<![CDATA[<X>]]>d;<!--a comment-->;"); evalTest("for $n in <a><?xq doit?>abc<![CDATA[<X>]]>d<!--a comment--></a>/node()" + " return (string($n),';')", "doit;abc&lt;X&gt;d;a comment;"); evalTest("string(<a><?xq doit?>abc<![CDATA[<X>]]>d<!--a comment--></a>)", "abc&lt;X&gt;d"); // Simple namespace tests. evalTest("declare namespace xx='XXX';\n <xx:a>XX</xx:a>", "<xx:a xmlns:xx=\"XXX\">XX</xx:a>"); evalTest("declare namespace x1='XXX';\n declare namespace x2='XXX';\n" + "string((<top><x1:ab>X1</x1:ab><x2:ab>X2</x2:ab></top>)/x2:ab)", "X1X2"); evalTest("declare namespace x1='XXX';\n declare namespace x2='YYY';\n" + "string((<top><x1:ab>X1</x1:ab><x2:ab>X2</x2:ab></top>)/x2:ab)", "X2"); evalTest("declare namespace x1='XXX';\n declare namespace x2='YYY';\n" + "string((<top><x1:ab>X1</x1:ab><x2:ab>X2</x2:ab></top>)/*)", "X1X2"); evalTest("declare namespace x1='XXX';\n declare namespace x2='YYY';\n" + "string((<top><x1:ab>X1</x1:ab><x2:ab>X2</x2:ab></top>)/*:*)", "X1X2"); evalTest("declare namespace x1='XXX';\n declare namespace x2='YYY';\n" + "string((<top><x1:ab>X1</x1:ab><x2:ab>X2</x2:ab></top>)/x1:*)", "X1"); evalTest("declare namespace x1='XXX';\n declare namespace x2='YYY';\n" + "string((<top><x1:ab>X1</x1:ab><x2:ab>X2</x2:ab></top>)/*:ab)", "X1X2"); evalTest("declare namespace x1='XXX';\n declare namespace x2='YYY';\n" + "string((<top><x1:ab>X1</x1:ab><x2:cd>X2</x2:cd></top>)/*:cd)", "X2"); evalTest("declare namespace h='H';\n" + "string(doc('tab.xml')/result/h:row)", "\nc1\n33\n44\nc2\n"); evalTest("declare namespace xx='H';\n" + "string(doc('tab.xml')/result/xx:row)", "\nc1\n33\n44\nc2\n"); evalTest("string(doc('tab.xml')/result/*:row)", "\na1\n12\n\nb1\n22\n\nc1\n33\n44\nc2\n"); evalTest("string(doc('tab.xml')/result/*:row/*:fld1)", "a1b1c1c2"); evalTest("declare namespace k='J';\n" + "string(doc('tab.xml')/result/*:row/k:fld1)", "c1c2"); evalTest("declare namespace k='J';\n" + "string(doc('tab.xml')/result/*:row[k:fld1])", "\nc1\n33\n44\nc2\n"); evalTest("declare namespace m1 = 'bb'; declare namespace m2 = 'cc';" + "let $m1:x := 3 return let $m2:x := 4 return" + " <m2:a a:c='{$a:x}' xmlns:a='bb'>{ count($a:x) }</m2:a>", "<m2:a xmlns:a=\"bb\" xmlns:m2=\"cc\" a:c=\"3\">1</m2:a>"); evalTest("doc('tab.xml')/result/row[1]/descendant::*", "<fld1"+tabNsNodes+">a1</fld1>" +"<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>"); evalTest("for $x in doc('tab.xml')/result/row[1]/descendant::node() return ($x,';')", "\n;<fld1"+tabNsNodes+">a1</fld1>;a1;\n;" + "<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>;<!--ignore-this-comment-->;12;\n;"); evalTest("doc('tab.xml')/result/row[1]/descendant::text()", "a112"); evalTest("doc('tab.xml')/result/row[1]/descendant-or-self::*", "<row"+tabNsNodes+"><fld1>a1</fld1>" + "<fld2 align=\"right\"><!--ignore-this-comment-->12</fld2></row>" + "<fld1"+tabNsNodes+">a1</fld1>" + "<fld2"+tabNsNodes+" align=\"right\"><!--ignore-this-comment-->12</fld2>"); evalTest("for $n in doc('tab.xml')/result/* return node-name($n)", "row row h:row"); evalTest("for $n in doc('tab.xml')/result/row/* " + "return local-name-from-QName(node-name($n))", "fld1 fld2 fld1 fld2"); evalTest("declare namespace h='H';\n" +" for $n in doc('tab.xml')/result/*:row/* " + "return (prefix-from-QName(node-name($n)),';')", " ; ; ; ; j ; h ; j ; k ;"); evalTest("for $n in doc('tab.xml')/result/*:row/*:fld1 " + "return <n>{namespace-uri-from-QName(node-name($n))}</n>", "<n></n><n></n><n>J</n><n>J</n>"); evalTest("for $n in doc('tab.xml')/result/*:row/*:fld1 return " + "('[', for $p in ('', 'k', 'h') return" + " (namespace-uri-for-prefix($p,$n),';'), ']')", "[;J;H;][;J;H;][;J;H;][;J;H;]"); // Based on bugs reported by Francois Leygues <vizawalou@wanadoo.fr>: evalTest("let $bx := <b x='xx'></b> return" + " let $x := <a>{for $y in $bx return $y}</a>" + " return $x/b", "<b x=\"xx\" />"); evalTest("element r {let $y := <b x='1'/>" + " let $x:=<a>{$y}</a> return $x/b/@x}", "<r x=\"1\" />"); evalTest("declare function local:x(){<a><b x='1'/><b x='2'/></a>};" + " let $i := <a>{for $a in local:x()/b return $a}</a> return $i/b/@x", " x=\"1\" x=\"2\""); evalTest("declare function local:s(){ <a x='10'>{for $n in (<b x='2'/>) return ($n) }</a>};" + " let $st := local:s()/b return (" + " '[',$st/@x ,'] [',$st ,']')", "[ x=\"2\"] [<b x=\"2\" />]"); // Testcase from <Seshukumar_Adiraju@infosys.com>: evalTest("let $books := " + "<books><book id='book1'/><book id='book2'/></books> " + "for $book in $books/book return <p>{string($book/@id)}</p>", "<p>book1</p><p>book2</p>"); evalTest("for $n in children(<a>xx<b/>yy</a>) return $n instance of node()", "true true true"); evalTest("for $n in children(<a>xx<b/>yy</a>) return $n instance of text ( )", "true false true"); evalTest("for $n in children(<a>xx<b/>yy</a>) return $n instance of element(a,*)", "false false false"); evalTest("for $n in <a>xx<b/>yy</a>/node() return $n instance of element(b,*)", "false true false"); // FIXME: evalTest("<a>xx<b/>yy</a>/node() instance of node()", "false"); evalTest("<a>xx<b/>yy</a>/node() instance of node()?", "false"); evalTest("<a>xx<b/>yy</a>/node() instance of node()+", "true"); evalTest("<a>xx<b/>yy</a>/node() instance of node()*", "true"); evalTest("<a>xx<b/>yy</a>/node() instance of item()+", "true"); evalTest("(3,4,5) instance of item()+", "true"); evalTest("('a','b') instance of string+", "true"); evalTest("(2,3) instance of string?", "false"); evalTest("(2,3) instance of string+", "false"); evalTest("() instance of string?", "true"); evalTest("() instance of string+", "false"); evalTest("() instance of string*", "true"); evalTest("('2') instance of string?", "true"); evalTest("('2') instance of string+", "true"); evalTest("('2') instance of string*", "true"); evalTest("('2','3') instance of string?", "false"); evalTest("('2','3') instance of string+", "true"); evalTest("('2','3') instance of string*", "true"); evalTest("declare namespace Int='class:java.lang.Integer';\n" + "Int:toHexString(266)", "10a"); evalTest("declare namespace File='class:java.io.File';\n" + "declare function local:make-file ($x as string) {File:new($x)};\n" + "declare function local:parent ($x) {java.io.File:getParent($x)};\n" + "local:parent(local:make-file('dir/mine.txt'))", "dir"); evalTest("java.lang.Integer:toHexString(255)", "ff"); // String functions evalTest("substring('motor car', 6)", "car"); evalTest("substring('metadata', 4, 3)", "ada"); // evalTest("substring('metadata', -INF, 3)", "met"); evalTest("(1 to 20)[. mod 5 = 0]", "5 10 15 20"); evalTest("(1 to 20)[. mod 5 ge 3]", "3 4 8 9 13 14 18 19"); evalTest("1,(99 to 0),3", "1 3"); evalTest("-10 to -2", "-10 -9 -8 -7 -6 -5 -4 -3 -2"); String some_elements = "let $top := <top><a/><b/><c/><d/></top>," + " $a:=$top/a, $b:=$top/b, $c:=$top/c, $d:=$top/d return "; evalNodeNames(some_elements+"($b, $a) union ($a, $b)", "a;b;"); evalNodeNames(some_elements+"($b, $a) union ($b, $c)", "a;b;c;"); evalNodeNames(some_elements+"($b, $a) intersect ($a, $b)", "a;b;"); evalNodeNames(some_elements+"($b, $a) intersect ($b, $c)", "b;"); evalNodeNames(some_elements+"($b, $a) except ($a, $b)", ""); evalNodeNames(some_elements+"($b, $a) except ($b, $c)", "a;"); evalNodeNames(some_elements+"($b, $a, $b, $d) intersect ($b, $d)", "b;d;"); evalNodeNames(some_elements+"($b, $a, $b, $d) except ($b, $d)", "a;"); evalNodeNames(some_elements+"($b, $a, $b, $d) except ()", "a;b;d;"); // Check for catching errors: evalTest("+ +", "*** syntax error - <string>:1:4: missing expression [XPST0003]"); evalTest("declare namespace x1='XXX", "*** caught SyntaxException - <string>:1:22: " + "unexpected end-of-file in string starting here [XPST0003]"); evalTest("unescaped-data('<?--->'),let $x:=unescaped-data('an &amp;oslash;') return <b>{unescaped-data('<![CDATA[saw]]>')} {$x}</b>", "<?---><b><![CDATA[saw]]> an &oslash;</b>"); evalTestIdAttrs("doc('outline.xml')/book/part/chapter/ancestor::*", "b1;P1;"); evalTestIdAttrs("doc('outline.xml')/book/part/" +"chapter/ancestor-or-self::node()", ";b1;P1;c1;c2;"); evalTestIdAttrs("doc('outline.xml')//" +"section[@id='s1']/following-sibling::*", "s2;s3;"); evalTestIdAttrs("doc('outline.xml')//chapter/self::*", "c1;c2;"); evalTestIdAttrs("doc('outline.xml')//" +"para[@id='p31']/preceding::*", "s1;s11;s2;"); evalTestIdAttrs("doc('outline.xml')//" +"section[@id='s5']/preceding-sibling::*", "s4;"); evalTestIdAttrs("doc('outline.xml')//" +"chapter[@id='c1']/following::*", "c2;s4;s5;"); evalTestIdAttrs("doc('outline.xml')//" +"section[@id='s1']/(/book)", "b1;"); evalTestIdAttrs("doc('outline.xml')//" +"section[@id='s1']/(//chapter)", "c1;c2;"); evalTest("declare namespace XQuery = 'class:gnu.xquery.lang.XQuery';" + "XQuery:eval-with-focus(XQuery:getInstance()," + " '<r pos=\"{position()}\">{.}</r>', (<b/>, 3))", "<r pos=\"1\"><b /></r><r pos=\"2\">3</r>"); evalTest("declare namespace XQuery = 'class:gnu.xquery.lang.XQuery';" + "XQuery:eval-with-focus(XQuery:getInstance()," + " '<r pos=\"{position()}\">{.}</r>', <b/>, 3, 4)", "<r pos=\"3\"><b /></r>"); Object r; String e = "<r pos='{position()}' size='{last()}'>{.}</r>"; try { r = toString(interp.evalWithFocus(e, interp.eval("2,3,4"))); } catch (Throwable ex) { r = ex; } matchTest(e, r, "<r pos=\"1\" size=\"3\">2</r>" + "<r pos=\"2\" size=\"3\">3</r>" + "<r pos=\"3\" size=\"3\">4</r>"); try { r = toString(interp.evalWithFocus(e, interp.eval("<b/>"), 4, 10)); } catch (Throwable ex) { r = ex; } matchTest(e, r, "<r pos=\"4\" size=\"10\"><b/></r>"); printSummary(); }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/e4167b38f13f879f3fa246e919d8b0b244024306/TestMisc.java/buggy/gnu/xquery/testsuite/TestMisc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 225, 288, 565, 368, 314, 13053, 18, 8638, 18, 3120, 2966, 18, 8481, 9141, 2244, 273, 315, 79, 2219, 69, 17, 4450, 17, 8481, 10951, 31, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 225, 288, 565, 368, 314, 13053, 18, 8638, 18, 3120, 2966, 18, 8481, 9141, 2244, 273, 315, 79, 2219, 69, 17, 4450, 17, 8481, 10951, 31, 56...
case 56: if (curChar == 95)
case 57: if ((0x7fffffe07fffffeL & l) != 0L)
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 73; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x3ff000000000000L & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 1: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 2: case 39: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(2, 3); break; case 3: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: case 48: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 10: case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: case 61: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(14); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 17: case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(20); break; case 20: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if ((0x600000000000L & l) != 0L) jjCheckNAdd(25); break; case 25: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(27, 29); break; case 27: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(27, 28); break; case 28: if ((0x600000000000L & l) != 0L) jjCheckNAdd(29); break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 46) jjCheckNAdd(32); break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(33, 34); break; case 34: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: case 37: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 41: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: case 44: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 45: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(46); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 50: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(55); break; case 55: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 57: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: case 59: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(60, 61); break; case 64: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 65; break; case 67: if (curChar == 46) jjCheckNAdd(68); break; case 69: if (curChar != 46) break; if (kind > 3) kind = 3; jjCheckNAdd(68); break; case 71: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 72; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 35); if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(36, 37); break; case 3: if (curChar == 95) jjCheckNAdd(4); break; case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 95) jjCheckNAdd(7); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if (curChar == 95) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(38, 39); break; case 13: if (curChar == 95) jjCheckNAdd(14); break; case 14: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if (curChar == 95) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(40, 41); break; case 19: if (curChar == 95) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if (curChar == 95) jjCheckNAdd(25); break; case 25: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(27, 29); break; case 26: if (curChar == 64) jjCheckNAdd(27); break; case 27: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(27, 28); break; case 29: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(33, 34); break; case 34: if (curChar == 95) jjCheckNAddTwoStates(35, 36); break; case 35: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 37: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 37; break; case 38: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 41: if (curChar == 95) jjCheckNAddTwoStates(42, 43); break; case 42: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 44: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(42, 43); break; case 45: if (curChar == 95) jjCheckNAdd(46); break; case 46: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 50: if (curChar == 95) jjCheckNAddTwoStates(51, 52); break; case 51: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 53: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: if (curChar == 95) jjCheckNAdd(55); break; case 55: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if (curChar == 95) jjCheckNAddTwoStates(57, 58); break; case 57: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 59: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(60, 61); break; case 62: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 35); break; case 63: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(63, 64); break; case 65: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(64, 65); break; case 66: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(44, 45); break; case 70: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(70, 71); break; case 71: if (curChar == 64) jjCheckNAdd(72); break; case 72: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAdd(72); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) { if (kind > 12) kind = 12; } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); if (jjCanMove_2(hiByte, i1, i2, l1, l2)) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 35); break; case 1: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); break; case 2: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 4: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 4; break; case 5: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 7: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(46, 47); break; case 9: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(48, 49); break; case 10: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 11: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 14: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(14, 15); break; case 16: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(50, 51); break; case 17: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 18: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 20: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(24, 26); break; case 25: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(27, 29); break; case 27: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(27, 28); break; case 29: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(30, 31); break; case 32: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(33, 34); break; case 35: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(52, 53); break; case 36: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 37: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 38: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(38, 39); break; case 39: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 40: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(40, 41); break; case 42: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(54, 55); break; case 43: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(44, 45); break; case 44: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(44, 45); break; case 46: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(47, 48); break; case 48: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 49: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(49, 50); break; case 51: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(56, 57); break; case 52: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(53, 54); break; case 53: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(53, 54); break; case 55: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(58, 59); break; case 57: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(60, 61); break; case 58: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 59: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(60, 61); break; case 61: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 62: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 35); break; case 63: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(63, 64); break; case 65: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(64, 65); break; case 66: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(66, 67); break; case 68: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(44, 45); break; case 70: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(70, 71); break; case 72: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 4) kind = 4; jjstateSet[jjnewStateCnt++] = 72; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 73 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/f00afeee7aba8e1024c6f792c6bb469b7a16def9/StandardTokenizerTokenManager.java/buggy/src/java/org/apache/lucene/analysis/standard/StandardTokenizerTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
newPel = (((pel0<<15) + (pel1-pel0)*yFrac)&0x7F800000)<< 1;
newPel = (((pel0<<15) + (pel1-pel0)*yFrac + 0x00400000) &0x7F800000)<< 1;
public void filterBL(Raster off, WritableRaster dst, int [] xTile, int [] xOff, int [] yTile, int [] yOff) { final int w = dst.getWidth(); final int h = dst.getHeight(); final int xStart = maxOffX; final int yStart = maxOffY; final int xEnd = xStart+w; final int yEnd = yStart+h; // Access the integer buffer for each image. DataBufferInt dstDB = (DataBufferInt)dst.getDataBuffer(); DataBufferInt offDB = (DataBufferInt)off.getDataBuffer(); // Offset defines where in the stack the real data begin SinglePixelPackedSampleModel dstSPPSM, offSPPSM; dstSPPSM = (SinglePixelPackedSampleModel)dst.getSampleModel(); final int dstOff = dstDB.getOffset() + dstSPPSM.getOffset(dst.getMinX() - dst.getSampleModelTranslateX(), dst.getMinY() - dst.getSampleModelTranslateY()); offSPPSM = (SinglePixelPackedSampleModel)off.getSampleModel(); final int offOff = offDB.getOffset() + offSPPSM.getOffset(dst.getMinX() - off.getSampleModelTranslateX(), dst.getMinY() - off.getSampleModelTranslateY()); // Stride is the distance between two consecutive column elements, // in the one-dimention dataBuffer final int dstScanStride = dstSPPSM.getScanlineStride(); final int offScanStride = offSPPSM.getScanlineStride(); final int dstAdjust = dstScanStride - w; final int offAdjust = offScanStride - w; // Access the pixel value array final int dstPixels[] = dstDB.getBankData()[0]; final int offPixels[] = offDB.getBankData()[0]; // Below is the number of shifts for each axis // e.g when xChannel is ALPHA, the pixel needs // to be shifted 24, RED 16, GREEN 8 and BLUE 0 final int xShift = xChannel.toInt()*8; final int yShift = yChannel.toInt()*8; // The pointer of img and dst indicating where the pixel values are int dp = dstOff, ip = offOff; // Fixed point representation of scale factor. final int fpScaleX = (int)((scaleX/255.0)*(1<<15)); final int fpScaleY = (int)((scaleY/255.0)*(1<<15)); final int maxDx = maxOffX; final int dangerZoneX = w-maxDx; final int maxDy = maxOffY; final int dangerZoneY = h-maxDy; long start = System.currentTimeMillis(); int sdp, pel00, pel01, pel10, pel11, xFrac, yFrac, newPel; int sp0, sp1, pel0, pel1; int x, y, x0, y0, xDisplace, yDisplace, dPel; int xt=xTile[0]-1, yt=yTile[0]-1, xt1, yt1; int [] imgPix = null; for (y=yStart; y<yEnd; y++) { for (x=xStart; x<xEnd; x++, dp++, ip++) { dPel = offPixels[ip]; xDisplace = fpScaleX*(((dPel>>xShift)&0xff) - 127); yDisplace = fpScaleY*(((dPel>>yShift)&0xff) - 127); x0 = x+(xDisplace>>15); y0 = y+(yDisplace>>15); if ((xt != xTile[x0]) || (yt != yTile[y0])) { xt = xTile[x0]; yt = yTile[y0]; imgPix = ((DataBufferInt)image.getTile(xt, yt) .getDataBuffer()).getBankData()[0]; } pel00 = imgPix[xOff[x0]+yOff[y0]]; xt1 = xTile[x0+1]; yt1 = yTile[y0+1]; if ((yt == yt1)) { // Same tile vertically, check across... if ((xt == xt1)) { // All from same tile.. pel10 = imgPix[xOff[x0+1]+yOff[y0]]; pel01 = imgPix[xOff[x0] +yOff[y0+1]]; pel11 = imgPix[xOff[x0+1]+yOff[y0+1]]; } else { // Different tile horizontally... pel01 = imgPix[xOff[x0]+yOff[y0+1]]; imgPix = ((DataBufferInt)image.getTile(xt1, yt) .getDataBuffer()).getBankData()[0]; pel10 = imgPix[xOff[x0+1]+yOff[y0]]; pel11 = imgPix[xOff[x0+1]+yOff[y0+1]]; xt = xt1; } } else { // Steped into next tile down, check across... if ((xt == xt1)) { // Different tile horizontally. pel10 = imgPix[xOff[x0+1]+yOff[y0]]; imgPix = ((DataBufferInt)image.getTile(xt, yt1) .getDataBuffer()).getBankData()[0]; pel01 = imgPix[xOff[x0] +yOff[y0+1]]; pel11 = imgPix[xOff[x0+1]+yOff[y0+1]]; yt = yt1; } else { // Ugg we are at the 4way intersection of tiles... imgPix = ((DataBufferInt)image.getTile(xt, yt1) .getDataBuffer()).getBankData()[0]; pel01 = imgPix[xOff[x0]+yOff[y0+1]]; imgPix = ((DataBufferInt)image.getTile(xt1, yt1) .getDataBuffer()).getBankData()[0]; pel11 = imgPix[xOff[x0+1]+yOff[y0+1]]; imgPix = ((DataBufferInt)image.getTile(xt1, yt) .getDataBuffer()).getBankData()[0]; pel10 = imgPix[xOff[x0+1]+yOff[y0]]; xt = xt1; } } xFrac = xDisplace&0x7FFF; yFrac = yDisplace&0x7FFF; // Combine the alpha channels. sp0 = (pel00>>>16) & 0xFF00; sp1 = (pel10>>>16) & 0xFF00; pel0 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; sp0 = (pel01>>>16) & 0xFF00; sp1 = (pel11>>>16) & 0xFF00; pel1 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; newPel = (((pel0<<15) + (pel1-pel0)*yFrac)&0x7F800000)<< 1; // Combine the red channels. sp0 = (pel00>> 8) & 0xFF00; sp1 = (pel10>> 8) & 0xFF00; pel0 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; sp0 = (pel01>> 8) & 0xFF00; sp1 = (pel11>> 8) & 0xFF00; pel1 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; newPel |= (((pel0<<15) + (pel1-pel0)*yFrac)&0x7F800000)>>> 7; // Combine the green channels. sp0 = (pel00 ) & 0xFF00; sp1 = (pel10 ) & 0xFF00; pel0 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; sp0 = (pel01 ) & 0xFF00; sp1 = (pel11 ) & 0xFF00; pel1 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; newPel |= (((pel0<<15) + (pel1-pel0)*yFrac)&0x7F800000)>>>15; // Combine the blue channels. sp0 = (pel00<< 8) & 0xFF00; sp1 = (pel10<< 8) & 0xFF00; pel0 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; sp0 = (pel01<< 8) & 0xFF00; sp1 = (pel11<< 8) & 0xFF00; pel1 = (sp0 + (((sp1-sp0)*xFrac)>>15)) & 0xFFFF; newPel |= (((pel0<<15) + (pel1-pel0)*yFrac)&0x7F800000)>>>23; dstPixels[dp] = newPel; } dp += dstAdjust; ip += offAdjust; } if (TIME) { long end = System.currentTimeMillis(); System.out.println("Time: " + (end-start)); } }// end of the filter() method for Raster
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/7361ec3e8bedd2c4f69d05d36bbeef2871ae7a4e/DisplacementMapRed.java/clean/sources/org/apache/batik/ext/awt/image/rendered/DisplacementMapRed.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1034, 14618, 12, 18637, 3397, 16, 14505, 18637, 3046, 16, 7682, 509, 5378, 619, 9337, 16, 509, 5378, 619, 7210, 16, 7682, 509, 5378, 677, 9337, 16, 509, 5378, 677, 7210, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1034, 14618, 12, 18637, 3397, 16, 14505, 18637, 3046, 16, 7682, 509, 5378, 619, 9337, 16, 509, 5378, 619, 7210, 16, 7682, 509, 5378, 677, 9337, 16, 509, 5378, 677, 7210, 13, ...
public void setMaximum(int maximum) { this.maximum = maximum; }
public void setMaximum(int maximum) { max = maximum; }
public void setMaximum(int maximum) { this.maximum = maximum; // TODO } // setMaximum()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/ProgressMonitor.java/buggy/core/src/classpath/javax/javax/swing/ProgressMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10851, 2422, 12, 474, 4207, 13, 288, 202, 202, 2211, 18, 15724, 273, 4207, 31, 202, 202, 759, 2660, 202, 97, 368, 10851, 2422, 1435, 2, 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, 0, 0, 0, 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, 225, 202, 482, 918, 10851, 2422, 12, 474, 4207, 13, 288, 202, 202, 2211, 18, 15724, 273, 4207, 31, 202, 202, 759, 2660, 202, 97, 368, 10851, 2422, 1435, 2, -100, -100, -100, -100, -100, -100...
EventCallback callback = new EventCallback() {
EventCallback callback = new EventCallback() {
public void testSendNotTransacted() throws Exception { UMODescriptor descriptor = getDescriptor("testComponent", FunctionalTestComponent.class.getName()); final CountDown countDown = new CountDown(2); EventCallback callback = new EventCallback() { public void eventReceived(UMOEventContext context, Object Component) { callbackCalled = true; assertNull(context.getCurrentTransaction()); countDown.release(); } }; initialiseComponent(descriptor, UMOTransactionConfig.ACTION_NONE, callback); addResultListener(getOutDest().getAddress(), countDown); MuleManager.getInstance().start(); afterInitialise(); send(DEFAULT_MESSAGE, false, Session.AUTO_ACKNOWLEDGE); countDown.attempt(LOCK_WAIT); assertTrue("Only " + (countDown.initialCount() - countDown.currentCount()) + " of " + countDown.initialCount() + " checkpoints hit", countDown.attempt(0)); assertNotNull(currentMsg); assertTrue(currentMsg instanceof TextMessage); assertEquals(DEFAULT_MESSAGE + " Received", ((TextMessage) currentMsg).getText()); assertTrue(callbackCalled); assertNull(currentTx); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/AbstractJmsTransactionFunctionalTest.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/jms/AbstractJmsTransactionFunctionalTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3826, 1248, 1429, 25487, 1435, 1216, 1185, 565, 288, 3639, 587, 6720, 2263, 4950, 273, 22161, 2932, 3813, 1841, 3113, 4284, 287, 4709, 1841, 18, 1106, 18, 17994, 10663, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1842, 3826, 1248, 1429, 25487, 1435, 1216, 1185, 565, 288, 3639, 587, 6720, 2263, 4950, 273, 22161, 2932, 3813, 1841, 3113, 4284, 287, 4709, 1841, 18, 1106, 18, 17994, 10663, 363...
return plainHeight; }
return plainHeight; }
public float plainHeight() { return plainHeight; }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/7db9e738a62cae021d8a52915e84389f881d0f9e/Image.java/buggy/itext/src/com/lowagie/text/Image.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 7351, 2686, 1435, 288, 3639, 327, 7351, 2686, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 7351, 2686, 1435, 288, 3639, 327, 7351, 2686, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
g.endFrame();
g.endDraw();
synchronized public void handleDisplay() { if (PApplet.THREAD_DEBUG) println(Thread.currentThread().getName() + " formerly nextFrame()"); if (looping || redraw) { /* if (frameCount == 0) { // needed here for the sync //createGraphics(); // set up a dummy graphics in case size() is never // called inside setup size(INITIAL_WIDTH, INITIAL_HEIGHT); } */ // g may be rebuilt inside here, so turning of the sync //synchronized (g) { // use a different sync object //synchronized (glock) { if (THREAD_DEBUG) println(Thread.currentThread().getName() + " 1a beginFrame"); g.beginFrame(); if (THREAD_DEBUG) println(Thread.currentThread().getName() + " 1b draw"); //boolean recorderNull = true; //boolean recorderRawNull = true; if (frameCount == 0) { try { //System.out.println("attempting setup"); //System.out.println("into try"); setup(); //g.defaults(); //System.out.println("done attempting setup"); //System.out.println("out of try"); //g.postSetup(); // FIXME } catch (RuntimeException e) { //System.out.println("runtime extends " + e); //System.out.println("catching a cold " + e.getMessage()); String msg = e.getMessage(); if ((msg != null) && (e.getMessage().indexOf(NEW_RENDERER) != -1)) { //System.out.println("got new renderer"); return; //continue; // will this work? } else { //e.printStackTrace(System.out); //System.out.println("re-throwing"); throw e; } } // if depth() is called inside setup, pixels/width/height // will be ok by the time it's back out again //this.pixels = g.pixels; // make em call loadPixels // now for certain that we've got a valid size this.width = g.width; this.height = g.height; this.defaultSize = false; } else { // frameCount > 0, meaning an actual draw() // update the current framerate if (framerateLastMillis != 0) { float elapsed = (float) (System.currentTimeMillis() - framerateLastMillis); if (elapsed != 0) { framerate = (framerate * 0.9f) + ((1.0f / (elapsed / 1000.0f)) * 0.1f); } } framerateLastMillis = System.currentTimeMillis(); if (framerateTarget != 0) { //System.out.println("delaying"); if (framerateLastDelayTime == 0) { framerateLastDelayTime = System.currentTimeMillis(); } else { long timeToLeave = framerateLastDelayTime + (long)(1000.0f / framerateTarget); int napTime = (int) (timeToLeave - System.currentTimeMillis()); framerateLastDelayTime = timeToLeave; delay(napTime); } } preMethods.handle(); pmouseX = dmouseX; pmouseY = dmouseY; //synchronized (glock) { //synchronized (this) { //try { draw(); /* // seems to catch, but then blanks out } catch (Exception e) { if (e instanceof InvocationTargetException) { System.out.println("found poo"); ((InvocationTargetException)e).getTargetException().printStackTrace(System.out); } } */ //} //} // set a flag regarding whether the recorders were non-null // as of draw().. this will prevent the recorder from being // reset if recordShape() is called in an event method, such // as mousePressed() //recorderNull = (recorder == null); //recorderRawNull = (g.recorderRaw == null); // dmouseX/Y is updated only once per frame dmouseX = mouseX; dmouseY = mouseY; // these are called *after* loop so that valid // drawing commands can be run inside them. it can't // be before, since a call to background() would wipe // out anything that had been drawn so far. dequeueMouseEvents(); dequeueKeyEvents(); if (THREAD_DEBUG) println(Thread.currentThread().getName() + " 2b endFrame"); drawMethods.handle(); //for (int i = 0; i < libraryCount; i++) { //if (libraryCalls[i][PLibrary.DRAW]) libraries[i].draw(); //} redraw = false; // unset 'redraw' flag in case it was set // (only do this once draw() has run, not just setup()) } g.endFrame(); /* if (!recorderNull) { if (recorder != null) { recorder.endFrame(); recorder = null; } } if (!recorderRawNull) { if (g.recorderRaw != null) { g.recorderRaw.endFrame(); g.recorderRaw = null; } } */ //} // older end sync //update(); // formerly 'update' //if (firstFrame) firstFrame = false; // internal frame counter frameCount++; if (THREAD_DEBUG) println(Thread.currentThread().getName() + " 3a calling repaint() " + frameCount); repaint(); if (THREAD_DEBUG) println(Thread.currentThread().getName() + " 3b calling Toolkit.sync " + frameCount); getToolkit().sync(); // force repaint now (proper method) if (THREAD_DEBUG) println(Thread.currentThread().getName() + " 3c done " + frameCount); //if (THREAD_DEBUG) println(" 3d waiting"); //wait(); //if (THREAD_DEBUG) println(" 3d out of wait"); //frameCount++; postMethods.handle(); //for (int i = 0; i < libraryCount; i++) { //if (libraryCalls[i][PLibrary.POST]) libraries[i].post(); //} //} // end of synchronize } }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/5df56185b4e2093122a4ad1e9e5f8e1fb6f9eff5/PApplet.java/clean/core/PApplet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3852, 1071, 918, 1640, 4236, 1435, 288, 565, 309, 261, 52, 23696, 18, 21730, 67, 9394, 13, 3785, 12, 3830, 18, 2972, 3830, 7675, 17994, 1435, 397, 4766, 1377, 315, 27313, 715, 1024, 3219,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3852, 1071, 918, 1640, 4236, 1435, 288, 565, 309, 261, 52, 23696, 18, 21730, 67, 9394, 13, 3785, 12, 3830, 18, 2972, 3830, 7675, 17994, 1435, 397, 4766, 1377, 315, 27313, 715, 1024, 3219,...
new Thread(new EPClientThread(srcIDCounter++,newSock));
new Thread(new EPClientThread(srcIDCounter++,newSock)).start();
public void run() { /* Set up server socket */ try { listeningSocket = new ServerSocket(listeningPort); } catch(Exception e) { gcRef.Log(roleName, "Failed in setting up serverSocket"); listeningSocket = null; } /* Listen for connection */ while(true) { try { Socket newSock = listeningSocket.accept(); /* Hand the hot potato off! */ new Thread(new EPClientThread(srcIDCounter++,newSock)); } catch(Exception e) { gcRef.Log(roleName, "Failed in accept from serverSocket"); } } }
14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/23b45b820d327feddc967989732f48dbf6b03146/EventPackager.java/clean/EventPackager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 1435, 288, 565, 1748, 1000, 731, 1438, 2987, 1195, 565, 775, 288, 1377, 13895, 4534, 273, 394, 3224, 4534, 12, 18085, 310, 2617, 1769, 565, 289, 1044, 12, 503, 425, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 1435, 288, 565, 1748, 1000, 731, 1438, 2987, 1195, 565, 775, 288, 1377, 13895, 4534, 273, 394, 3224, 4534, 12, 18085, 310, 2617, 1769, 565, 289, 1044, 12, 503, 425, 13, ...
if (!(part instanceof CEditor)) return;
public void createPartControl(Composite parent) { if (part == null) { part = getActiveEditor(); if (!(part instanceof CEditor)) return; } viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); drillDownAdapter = new DrillDownAdapter(viewer); if (part instanceof CEditor) { viewer.setContentProvider(new ViewContentProvider(((CEditor) part).getInputFile())); setFile(((CEditor) part).getInputFile()); } else { viewer.setContentProvider(new ViewContentProvider(null)); // don't attempt to create a view based on old file info } viewer.setLabelProvider(new ViewLabelProvider()); viewer.setInput(getViewSite()); makeActions(); hookContextMenu(); hookSingleClickAction(); customFiltersActionGroup = new CustomFiltersActionGroup(DOMAST_FILTER_GROUP_ID, viewer); contributeToActionBars(); viewer.addSelectionChangedListener(new UpdatePropertiesListener()); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4650694d814b5632c30fb5545e14227ea9d4588d/DOMAST.java/clean/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 1377, 309, 261, 2680, 422, 446, 13, 288, 540, 1087, 273, 11960, 6946, 5621, 8227, 289, 1377, 14157, 273, 394, 4902, 18415, 12, 2938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 1071, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 1377, 309, 261, 2680, 422, 446, 13, 288, 540, 1087, 273, 11960, 6946, 5621, 8227, 289, 1377, 14157, 273, 394, 4902, 18415, 12, 2938, ...
m_lwrRem = m_entries[i];
m_lwrRem = (String)m_entries[i];
String entriesToString(int maxBufSize) { StringBuffer buf = new StringBuffer(maxBufSize); m_lwrRem = null; m_uprRem = null; for(int i= 0; i< m_entries.length; i++) { // if the length of this entry < max buffer byte[] cur_bytes = m_props.encodeString(buf.toString()); byte[] entry_bytes = m_props.encodeString(m_entries[i]); if(cur_bytes.length + entry_bytes.length < maxBufSize) { buf.append(m_entries[i]); buf.append("\n"); } else { // we need to set RERemaining and break m_lwrRem = m_entries[i]; m_uprRem = m_uprBound; break; } } return buf.toString(); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/17548253490463b322a039c830daff7f4d93a9ff/LcapMessage.java/buggy/src/org/lockss/protocol/LcapMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 514, 3222, 5808, 12, 474, 943, 5503, 1225, 13, 288, 565, 6674, 1681, 273, 394, 6674, 12, 1896, 5503, 1225, 1769, 565, 312, 67, 80, 91, 86, 1933, 273, 446, 31, 565, 312, 67, 416, 86, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 514, 3222, 5808, 12, 474, 943, 5503, 1225, 13, 288, 565, 6674, 1681, 273, 394, 6674, 12, 1896, 5503, 1225, 1769, 565, 312, 67, 80, 91, 86, 1933, 273, 446, 31, 565, 312, 67, 416, 86, ...
tmp_state=msg_listener.getState(); } catch(Throwable t) {
tmp_state = msg_listener.getState(); } catch (Throwable t) {
public void passUp(Event evt) { byte[] tmp_state=null; switch(evt.getType()) { case Event.MSG: if(msg_listener != null) msg_listener.receive((Message)evt.getArg()); break; case Event.GET_APPLSTATE: // reply with GET_APPLSTATE_OK if(msg_listener != null) { try { tmp_state=msg_listener.getState(); } catch(Throwable t) { log.error("failed getting state from message listener (" + msg_listener + ")", t); } } channel.returnState(tmp_state); break; case Event.GET_STATE_OK: if(msg_listener != null) { try { msg_listener.setState((byte[])evt.getArg()); } catch(ClassCastException cast_ex) { if(log.isErrorEnabled()) log.error("received SetStateEvent, but argument " + evt.getArg() + " is not serializable. Discarding message."); } } break; case Event.VIEW_CHANGE: View v=(View)evt.getArg(); Vector new_mbrs=v.getMembers(); if(new_mbrs != null) { members.removeAllElements(); for(int i=0; i < new_mbrs.size(); i++) members.addElement(new_mbrs.elementAt(i)); } if(membership_listener != null) membership_listener.viewAccepted(v); break;//// case Event.SET_LOCAL_ADDRESS:// local_addr=(Address)evt.getArg();// break; case Event.SUSPECT: if(membership_listener != null) membership_listener.suspect((Address)evt.getArg()); break; case Event.BLOCK: if(membership_listener != null) membership_listener.block(); break; } }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/146a9f744cbe901c4fe56f6ceb2100ee15e7e898/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1342, 1211, 12, 1133, 6324, 13, 288, 5411, 1160, 8526, 1853, 67, 2019, 33, 2011, 31, 5411, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 7734, 648, 2587, 18, 11210, 30, 1079...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 540, 1071, 918, 1342, 1211, 12, 1133, 6324, 13, 288, 5411, 1160, 8526, 1853, 67, 2019, 33, 2011, 31, 5411, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 7734, 648, 2587, 18, 11210, 30, 1079...
if (boundNode1 != null && xformsControl1.isRelevant() && boundNode2 == null) { foundControlId = xformsControl2.getEffectiveId(); eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; } else if (boundNode1 == null && boundNode2 != null && xformsControl2.isRelevant()) { foundControlId = xformsControl2.getEffectiveId(); eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; }
if (boundNode1 != null && xformsControl1.isRelevant() && boundNode2 == null) { foundControlId = xformsControl2.getEffectiveId(); eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; } else if (boundNode1 == null && boundNode2 != null && xformsControl2.isRelevant()) { foundControlId = xformsControl2.getEffectiveId(); eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; } else if (boundNode1 != null && boundNode2 != null && !boundNode1.isSameNodeInfo(boundNode2)) {
private void findSpecialRelevanceChanges(PipelineContext pipelineContext, List state1, List state2, Map[] eventsToDispatch) { // Trivial case if (state1 == null && state2 == null) return; // Both lists must have the same size if present; state1 can be null if (state1 != null && state2 != null && state1.size() != state2.size()) { throw new IllegalStateException("Illegal state when comparing controls."); } final Iterator j = (state1 == null) ? null : state1.iterator(); final Iterator i = (state2 == null) ? null : state2.iterator(); final Iterator leadingIterator = (i != null) ? i : j; while (leadingIterator.hasNext()) { final XFormsControl xformsControl1 = (state1 == null) ? null : (XFormsControl) j.next(); final XFormsControl xformsControl2 = (state2 == null) ? null : (XFormsControl) i.next(); final XFormsControl leadingControl = (xformsControl2 != null) ? xformsControl2 : xformsControl1; // never null final XFormsControl otherControl = (xformsControl2 != null) ? xformsControl1 : xformsControl2; // possibly null // 1: Check current control if (!(leadingControl instanceof XFormsRepeatControl)) { // xforms:repeat doesn't need to be handled independently, iterations do it// if (!leadingControl.equals(otherControl)) { String foundControlId = null; XFormsControl targetControl = null; int eventType = 0; if (xformsControl1 != null && xformsControl2 != null) { final NodeInfo boundNode1 = xformsControl1.getBoundNode(); final NodeInfo boundNode2 = xformsControl2.getBoundNode(); if (boundNode1 != null && xformsControl1.isRelevant() && boundNode2 == null) { // A control was bound to a node and relevant, but has become no longer bound to a node foundControlId = xformsControl2.getEffectiveId(); eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; } else if (boundNode1 == null && boundNode2 != null && xformsControl2.isRelevant()) { // A control was not bound to a node, but has now become bound and relevant foundControlId = xformsControl2.getEffectiveId(); eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; } // TODO// if (boundNode2 != null && boundNode1 != boundNode2) {// // The control is now bound to a different node// // In this case, we schedule the control to dispatch all the events// foundControlId = xformsControl2.getEffectiveId();// eventType = XFormsModel.EventSchedule.RELEVANT_BINDING;// TODO: or use other event type?// xxx// } } else if (xformsControl2 != null) { final NodeInfo boundNode2 = xformsControl2.getBoundNode(); if (boundNode2 != null && xformsControl2.isRelevant()) { // A control was not bound to a node, but has now become bound and relevant foundControlId = xformsControl2.getEffectiveId(); eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; } } else if (xformsControl1 != null) { final NodeInfo boundNode1 = xformsControl1.getBoundNode(); if (boundNode1 != null && xformsControl1.isRelevant()) { // A control was bound to a node and relevant, but has become no longer bound to a node foundControlId = xformsControl1.getEffectiveId(); targetControl = xformsControl1; eventType = XFormsModel.EventSchedule.RELEVANT_BINDING; } } // Remember that we need to dispatch information about this control if (foundControlId != null) { if (eventsToDispatch[0] == null) eventsToDispatch[0] = new HashMap(); eventsToDispatch[0].put(foundControlId, new XFormsModel.EventSchedule(foundControlId, eventType, targetControl)); }// } } // 2: Check children if any if (XFormsControls.isGroupingControl(leadingControl.getName()) || leadingControl instanceof RepeatIterationControl) { final List children1 = (xformsControl1 == null) ? null : xformsControl1.getChildren(); final List children2 = (xformsControl2 == null) ? null : xformsControl2.getChildren(); final int size1 = children1 == null ? 0 : children1.size(); final int size2 = children2 == null ? 0 : children2.size(); if (leadingControl instanceof XFormsRepeatControl) { // Special case of repeat update if (size1 == size2) { // No add or remove of children findSpecialRelevanceChanges(pipelineContext, children1, children2, eventsToDispatch); } else if (size2 > size1) { // Size has grown // Diff the common subset findSpecialRelevanceChanges(pipelineContext, children1, children2.subList(0, size1), eventsToDispatch); // Issue new values for new iterations findSpecialRelevanceChanges(pipelineContext, null, children2.subList(size1, size2), eventsToDispatch); } else if (size2 < size1) { // Size has shrunk // Diff the common subset findSpecialRelevanceChanges(pipelineContext, children1.subList(0, size2), children2, eventsToDispatch); // Issue new values for new iterations findSpecialRelevanceChanges(pipelineContext, children1.subList(size2, size1), null, eventsToDispatch); } } else { // Other grouping controls findSpecialRelevanceChanges(pipelineContext, size1 == 0 ? null : children1, size2 == 0 ? null : children2, eventsToDispatch); } } } }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/4cd7db800ba83b2a352c943661bffaef4d36aa86/XFormsControls.java/clean/src/java/org/orbeon/oxf/xforms/XFormsControls.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1104, 12193, 17018, 5882, 7173, 12, 8798, 1042, 5873, 1042, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 8526, 2641, 774, 5325, 13, 288, 3639, 368, 840, 20109, 648, 3639, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1104, 12193, 17018, 5882, 7173, 12, 8798, 1042, 5873, 1042, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 8526, 2641, 774, 5325, 13, 288, 3639, 368, 840, 20109, 648, 3639, 30...
ColumnTag.class, null, "setParamId"));
ColumnTag.class, null, "setParamId"));
public PropertyDescriptor[] getPropertyDescriptors() { List proplist = new ArrayList(); try { proplist.add(new PropertyDescriptor("autolink", //$NON-NLS-1$ ColumnTag.class, null, "setAutolink")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("class", //$NON-NLS-1$ ColumnTag.class, null, "setClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("decorator", //$NON-NLS-1$ ColumnTag.class, null, "setDecorator")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("group", //$NON-NLS-1$ ColumnTag.class, null, "setGroup")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("headerClass", //$NON-NLS-1$ ColumnTag.class, null, "setHeaderClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("href", //$NON-NLS-1$ ColumnTag.class, null, "setHref")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("maxLength", //$NON-NLS-1$ ColumnTag.class, null, "setMaxLength")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("maxWords", //$NON-NLS-1$ ColumnTag.class, null, "setMaxWords")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("media", //$NON-NLS-1$ ColumnTag.class, null, "setMedia")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("nulls", //$NON-NLS-1$ ColumnTag.class, null, "setNulls")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramId", //$NON-NLS-1$ ColumnTag.class, null, "setParamId")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramName", //$NON-NLS-1$ ColumnTag.class, null, "setParamName")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramProperty", //$NON-NLS-1$ ColumnTag.class, null, "setParamProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("paramScope", //$NON-NLS-1$ ColumnTag.class, null, "setParamScope")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("property", //$NON-NLS-1$ ColumnTag.class, null, "setProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sortable", //$NON-NLS-1$ ColumnTag.class, null, "setSortable")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sortName", //$NON-NLS-1$ ColumnTag.class, null, "setSortName")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("style", //$NON-NLS-1$ ColumnTag.class, null, "setStyle")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("title", //$NON-NLS-1$ ColumnTag.class, null, "setTitle")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("titleKey", //$NON-NLS-1$ ColumnTag.class, null, "setTitleKey")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("url", //$NON-NLS-1$ ColumnTag.class, null, "setUrl")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sortProperty", //$NON-NLS-1$ ColumnTag.class, null, "setSortProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("total", //$NON-NLS-1$ ColumnTag.class, null, "setTotal")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("width", //$NON-NLS-1$ ColumnTag.class, null, "setWidth")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("width", //$NON-NLS-1$ ColumnTag.class, null, "setWidth")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("align", //$NON-NLS-1$ ColumnTag.class, null, "setAlign")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("comparator", //$NON-NLS-1$ ColumnTag.class, null, "setComparator")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("valueClass", //$NON-NLS-1$ ColumnTag.class, null, "setValueClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("defaultorder", //$NON-NLS-1$ ColumnTag.class, null, "setDefaultorder")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("headerScope", //$NON-NLS-1$ ColumnTag.class, null, "setHeaderScope")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("scope", //$NON-NLS-1$ ColumnTag.class, null, "setScope")); //$NON-NLS-1$ // deprecated attribute proplist.add(new PropertyDescriptor("sort", //$NON-NLS-1$ ColumnTag.class, null, "setSortable")); // map //$NON-NLS-1$ // make ATG Dynamo happy: proplist.add(new PropertyDescriptor("className", //$NON-NLS-1$ ColumnTag.class, null, "setClass")); // map //$NON-NLS-1$ } catch (IntrospectionException ex) { throw new RuntimeException("You got an introspection exception - maybe defining a property that is not" + " defined in the ColumnTag?: " + ex.getMessage(), ex); } PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()]; return ((PropertyDescriptor[]) proplist.toArray(result)); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/ea5857c4cef1cb29975e7fa24489265ce454d3f3/ColumnTagBeanInfo.java/clean/displaytag/src/main/java/org/displaytag/tags/ColumnTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 987, 450, 17842, 273, 394, 2407, 5621, 3639, 775, 3639, 288, 5411, 450, 17842, 18, 1289, 12, 2704, 26761, 2932, 5854, 355, 754, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 987, 450, 17842, 273, 394, 2407, 5621, 3639, 775, 3639, 288, 5411, 450, 17842, 18, 1289, 12, 2704, 26761, 2932, 5854, 355, 754, 3113, ...
this.target = orb._getObject( piorOriginal );
this.target = orb._getObject( pior );
public ClientRequestInfoImpl ( org.jacorb.orb.ORB orb, org.jacorb.orb.giop.RequestOutputStream ros, org.omg.CORBA.Object self, org.jacorb.orb.Delegate delegate, org.jacorb.orb.ParsedIOR piorOriginal, org.jacorb.orb.giop.ClientConnection connection ) { this.orb = orb; logger = orb.getConfiguration().getNamedLogger("jacorb.orb.interceptors"); this.operation = ros.operation(); this.response_expected = ros.response_expected(); this.received_exception = orb.create_any(); if ( ros.getRequest() != null ) this.setRequest( ros.getRequest() ); this.effective_target = self; org.jacorb.orb.ParsedIOR pior = delegate.getParsedIOR(); if ( piorOriginal != null ) this.target = orb._getObject( piorOriginal ); else this.target = self; Profile profile = pior.getEffectiveProfile(); if (profile instanceof org.jacorb.orb.etf.ProfileBase) { this.effective_profile = ((org.jacorb.orb.etf.ProfileBase)profile).asTaggedProfile(); this.effective_components = ((org.jacorb.orb.etf.ProfileBase)profile).getComponents().asArray(); } if ( this.effective_components == null ) { this.effective_components = new org.omg.IOP.TaggedComponent[ 0 ]; } this.delegate = delegate; this.request_id = ros.requestId(); InterceptorManager manager = orb.getInterceptorManager(); this.current = manager.getCurrent(); //allow interceptors access to request output stream this.request_os = ros; //allow (BiDir) interceptor to inspect the connection this.connection = connection; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/3b44419ff4e544e645cdea426e9a7a2b9bd531ce/ClientRequestInfoImpl.java/clean/src/org/jacorb/orb/portableInterceptor/ClientRequestInfoImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 23113, 2828, 8227, 261, 2358, 18, 31390, 16640, 18, 16640, 18, 916, 38, 16823, 16, 13491, 2358, 18, 31390, 16640, 18, 16640, 18, 10052, 556, 18, 691, 4632, 721, 87, 16, 13491,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 2445, 23113, 2828, 8227, 261, 2358, 18, 31390, 16640, 18, 16640, 18, 916, 38, 16823, 16, 13491, 2358, 18, 31390, 16640, 18, 16640, 18, 10052, 556, 18, 691, 4632, 721, 87, 16, 13491,...
if (changed && MarkerUtilities.getLineNumber(marker) != -1) {
if (!offsetsInitialized || (offsetsChanged && MarkerUtilities.getLineNumber(marker) != -1)) {
public boolean updateMarker(IMarker marker, IDocument document, Position position) { if (position == null) return true; if (position.isDeleted()) return false; boolean changed= false; int markerStart= MarkerUtilities.getCharStart(marker); int markerEnd= MarkerUtilities.getCharEnd(marker); if (markerStart != -1 && markerEnd != -1) { int offset= position.getOffset(); if (markerStart != offset) { MarkerUtilities.setCharStart(marker, offset); changed= true; } offset += position.getLength(); if (markerEnd != offset) { MarkerUtilities.setCharEnd(marker, offset); changed= true; } } if (changed && MarkerUtilities.getLineNumber(marker) != -1) { try { // marker line numbers are 1-based MarkerUtilities.setLineNumber(marker, document.getLineOfOffset(position.getOffset()) + 1); } catch (BadLocationException x) { } } return true; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d93c396e967ccc4bc1c4a484810017c0785dfd49/BasicMarkerUpdater.java/buggy/bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/BasicMarkerUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1089, 7078, 12, 3445, 1313, 264, 5373, 16, 1599, 504, 650, 1668, 16, 11010, 1754, 13, 288, 9506, 202, 430, 261, 3276, 422, 446, 13, 1082, 202, 2463, 638, 31, 6862, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 1250, 1089, 7078, 12, 3445, 1313, 264, 5373, 16, 1599, 504, 650, 1668, 16, 11010, 1754, 13, 288, 9506, 202, 430, 261, 3276, 422, 446, 13, 1082, 202, 2463, 638, 31, 6862, 202, ...
ammo.mtfName = "CLPRMLRM3 Ammo"; ammo.mepName = "CLPRMLRM3 Ammo"; ammo.tdbName = "CLPRMLRM3 Ammo";
ammo.mtfName = "CLLRM3 Ammo"; ammo.mepName = "CLLRM3 Ammo"; ammo.tdbName = "CLLRM3 Ammo";
public static AmmoType createCLPROLRM3Ammo() { AmmoType ammo = new AmmoType(); ammo.name = "LRM 3 Ammo"; ammo.internalName ="Clan Ammo Protomech LRM-3"; ammo.mtfName = "CLPRMLRM3 Ammo"; ammo.mepName = "CLPRMLRM3 Ammo"; ammo.tdbName = "CLPRMLRM3 Ammo"; ammo.damagePerShot = 1; ammo.rackSize = 3; ammo.ammoType = AmmoType.T_LRM; ammo.shots = 100; ammo.bv = 4; ammo.flags |=F_PROTOMECH; ammo.techType = TechConstants.T_CLAN_LEVEL_2; return ammo; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/8eea5b22a5dea77598b05927c961935c69071762/AmmoType.java/clean/megamek/src/megamek/common/AmmoType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3986, 8683, 559, 752, 5017, 3373, 48, 8717, 23, 37, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 529, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3986, 8683, 559, 752, 5017, 3373, 48, 8717, 23, 37, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 529, 273, 3...
public static void installColors(JComponent c, String defaultBgName, String defaultFgName)
public static void installColors(JComponent c, String defaultBgName, String defaultFgName)
public static void installColors(JComponent c, String defaultBgName, String defaultFgName) { }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ae9ec43c5570a0f69e3d8c8b733283719f52a770/LookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/LookAndFeel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3799, 12570, 12, 46, 1841, 276, 16, 514, 805, 24923, 461, 16, 514, 805, 42, 75, 461, 13, 565, 288, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3799, 12570, 12, 46, 1841, 276, 16, 514, 805, 24923, 461, 16, 514, 805, 42, 75, 461, 13, 565, 288, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (ret == con.length) return ret;
if (ret >= 0) return ret;
private int matchCharacterIterator (Context con, Op op, int offset, int dx, int opts) { CharacterIterator target = con.ciTarget; while (true) { if (op == null) return offset; if (offset > con.limit || offset < con.start) return -1; switch (op.type) { case Op.CHAR: if (isSet(opts, IGNORE_CASE)) { int ch = op.getData(); if (dx > 0) { if (offset >= con.limit || !matchIgnoreCase(ch, target .setIndex( offset ) )) return -1; offset ++; } else { int o1 = offset-1; if (o1 >= con.limit || o1 < 0 || !matchIgnoreCase(ch, target .setIndex( o1 ) )) return -1; offset = o1; } } else { int ch = op.getData(); if (dx > 0) { if (offset >= con.limit || ch != target .setIndex( offset ) ) return -1; offset ++; } else { int o1 = offset-1; if (o1 >= con.limit || o1 < 0 || ch != target .setIndex( o1 ) ) return -1; offset = o1; } } op = op.next; break; case Op.DOT: if (dx > 0) { if (offset >= con.limit) return -1; int ch = target .setIndex( offset ) ; if (isSet(opts, SINGLE_LINE)) { if (REUtil.isHighSurrogate(ch) && offset+1 < con.limit) offset ++; } else { if (REUtil.isHighSurrogate(ch) && offset+1 < con.limit) ch = REUtil.composeFromSurrogates(ch, target .setIndex( ++offset ) ); if (isEOLChar(ch)) return -1; } offset ++; } else { int o1 = offset-1; if (o1 >= con.limit || o1 < 0) return -1; int ch = target .setIndex( o1 ) ; if (isSet(opts, SINGLE_LINE)) { if (REUtil.isLowSurrogate(ch) && o1-1 >= 0) o1 --; } else { if (REUtil.isLowSurrogate(ch) && o1-1 >= 0) ch = REUtil.composeFromSurrogates( target .setIndex( --o1 ) , ch); if (!isEOLChar(ch)) return -1; } offset = o1; } op = op.next; break; case Op.RANGE: case Op.NRANGE: if (dx > 0) { if (offset >= con.limit) return -1; int ch = target .setIndex( offset ) ; if (REUtil.isHighSurrogate(ch) && offset+1 < con.limit) ch = REUtil.composeFromSurrogates(ch, target .setIndex( ++offset ) ); RangeToken tok = op.getToken(); if (isSet(opts, IGNORE_CASE)) { tok = tok.getCaseInsensitiveToken(); if (!tok.match(ch)) { if (ch >= 0x10000) return -1; char uch; if (!tok.match(uch = Character.toUpperCase((char)ch)) && !tok.match(Character.toLowerCase(uch))) return -1; } } else { if (!tok.match(ch)) return -1; } offset ++; } else { int o1 = offset-1; if (o1 >= con.limit || o1 < 0) return -1; int ch = target .setIndex( o1 ) ; if (REUtil.isLowSurrogate(ch) && o1-1 >= 0) ch = REUtil.composeFromSurrogates( target .setIndex( --o1 ) , ch); RangeToken tok = op.getToken(); if (isSet(opts, IGNORE_CASE)) { tok = tok.getCaseInsensitiveToken(); if (!tok.match(ch)) { if (ch >= 0x10000) return -1; char uch; if (!tok.match(uch = Character.toUpperCase((char)ch)) && !tok.match(Character.toLowerCase(uch))) return -1; } } else { if (!tok.match(ch)) return -1; } offset = o1; } op = op.next; break; case Op.ANCHOR: boolean go = false; switch (op.getData()) { case '^': if (isSet(opts, MULTIPLE_LINES)) { if (!(offset == con.start || offset > con.start && isEOLChar( target .setIndex( offset-1 ) ))) return -1; } else { if (offset != con.start) return -1; } break; case '@': // Internal use only. // The @ always matches line beginnings. if (!(offset == con.start || offset > con.start && isEOLChar( target .setIndex( offset-1 ) ))) return -1; break; case '$': if (isSet(opts, MULTIPLE_LINES)) { if (!(offset == con.limit || offset < con.limit && isEOLChar( target .setIndex( offset ) ))) return -1; } else { if (!(offset == con.limit || offset+1 == con.limit && isEOLChar( target .setIndex( offset ) ) || offset+2 == con.limit && target .setIndex( offset ) == CARRIAGE_RETURN && target .setIndex( offset+1 ) == LINE_FEED)) return -1; } break; case 'A': if (offset != con.start) return -1; break; case 'Z': if (!(offset == con.limit || offset+1 == con.limit && isEOLChar( target .setIndex( offset ) ) || offset+2 == con.limit && target .setIndex( offset ) == CARRIAGE_RETURN && target .setIndex( offset+1 ) == LINE_FEED)) return -1; break; case 'z': if (offset != con.limit) return -1; break; case 'b': if (con.length == 0) return -1; { int after = getWordType(target, con.start, con.limit, offset, opts); if (after == WT_IGNORE) return -1; int before = getPreviousWordType(target, con.start, con.limit, offset, opts); if (after == before) return -1; } break; case 'B': if (con.length == 0) go = true; else { int after = getWordType(target, con.start, con.limit, offset, opts); go = after == WT_IGNORE || after == getPreviousWordType(target, con.start, con.limit, offset, opts); } if (!go) return -1; break; case '<': if (con.length == 0 || offset == con.limit) return -1; if (getWordType(target, con.start, con.limit, offset, opts) != WT_LETTER || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_OTHER) return -1; break; case '>': if (con.length == 0 || offset == con.start) return -1; if (getWordType(target, con.start, con.limit, offset, opts) != WT_OTHER || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_LETTER) return -1; break; } // switch anchor type op = op.next; break; case Op.BACKREFERENCE: { int refno = op.getData(); if (refno <= 0 || refno >= this.nofparen) throw new RuntimeException("Internal Error: Reference number must be more than zero: "+refno); if (con.match.getBeginning(refno) < 0 || con.match.getEnd(refno) < 0) return -1; // ******** int o2 = con.match.getBeginning(refno); int literallen = con.match.getEnd(refno)-o2; if (!isSet(opts, IGNORE_CASE)) { if (dx > 0) { if (!regionMatches(target, offset, con.limit, o2, literallen)) return -1; offset += literallen; } else { if (!regionMatches(target, offset-literallen, con.limit, o2, literallen)) return -1; offset -= literallen; } } else { if (dx > 0) { if (!regionMatchesIgnoreCase(target, offset, con.limit, o2, literallen)) return -1; offset += literallen; } else { if (!regionMatchesIgnoreCase(target, offset-literallen, con.limit, o2, literallen)) return -1; offset -= literallen; } } } op = op.next; break; case Op.STRING: { String literal = op.getString(); int literallen = literal.length(); if (!isSet(opts, IGNORE_CASE)) { if (dx > 0) { if (!regionMatches(target, offset, con.limit, literal, literallen)) return -1; offset += literallen; } else { if (!regionMatches(target, offset-literallen, con.limit, literal, literallen)) return -1; offset -= literallen; } } else { if (dx > 0) { if (!regionMatchesIgnoreCase(target, offset, con.limit, literal, literallen)) return -1; offset += literallen; } else { if (!regionMatchesIgnoreCase(target, offset-literallen, con.limit, literal, literallen)) return -1; offset -= literallen; } } } op = op.next; break; case Op.CLOSURE: { /* * Saves current position to avoid * zero-width repeats. */ int id = op.getData(); if (id >= 0) { int previousOffset = con.offsets[id]; if (previousOffset < 0 || previousOffset != offset) { con.offsets[id] = offset; } else { con.offsets[id] = -1; op = op.next; break; } } int ret = this. matchCharacterIterator (con, op.getChild(), offset, dx, opts); if (id >= 0) con.offsets[id] = -1; if (ret >= 0) return ret; op = op.next; } break; case Op.QUESTION: { int ret = this. matchCharacterIterator (con, op.getChild(), offset, dx, opts); if (ret >= 0) return ret; op = op.next; } break; case Op.NONGREEDYCLOSURE: case Op.NONGREEDYQUESTION: { int ret = this. matchCharacterIterator (con, op.next, offset, dx, opts); if (ret >= 0) return ret; op = op.getChild(); } break; case Op.UNION: for (int i = 0; i < op.size(); i ++) { int ret = this. matchCharacterIterator (con, op.elementAt(i), offset, dx, opts); if (DEBUG) { System.err.println("UNION: "+i+", ret="+ret); } if (ret == con.length) return ret; } return -1; case Op.CAPTURE: int refno = op.getData(); if (con.match != null && refno > 0) { int save = con.match.getBeginning(refno); con.match.setBeginning(refno, offset); int ret = this. matchCharacterIterator (con, op.next, offset, dx, opts); if (ret < 0) con.match.setBeginning(refno, save); return ret; } else if (con.match != null && refno < 0) { int index = -refno; int save = con.match.getEnd(index); con.match.setEnd(index, offset); int ret = this. matchCharacterIterator (con, op.next, offset, dx, opts); if (ret < 0) con.match.setEnd(index, save); return ret; } op = op.next; break; case Op.LOOKAHEAD: if (0 > this. matchCharacterIterator (con, op.getChild(), offset, 1, opts)) return -1; op = op.next; break; case Op.NEGATIVELOOKAHEAD: if (0 <= this. matchCharacterIterator (con, op.getChild(), offset, 1, opts)) return -1; op = op.next; break; case Op.LOOKBEHIND: if (0 > this. matchCharacterIterator (con, op.getChild(), offset, -1, opts)) return -1; op = op.next; break; case Op.NEGATIVELOOKBEHIND: if (0 <= this. matchCharacterIterator (con, op.getChild(), offset, -1, opts)) return -1; op = op.next; break; case Op.INDEPENDENT: { int ret = this. matchCharacterIterator (con, op.getChild(), offset, dx, opts); if (ret < 0) return ret; offset = ret; op = op.next; } break; case Op.MODIFIER: { int localopts = opts; localopts |= op.getData(); localopts &= ~op.getData2(); //System.err.println("MODIFIER: "+Integer.toString(opts, 16)+" -> "+Integer.toString(localopts, 16)); int ret = this. matchCharacterIterator (con, op.getChild(), offset, dx, localopts); if (ret < 0) return ret; offset = ret; op = op.next; } break; case Op.CONDITION: { Op.ConditionOp cop = (Op.ConditionOp)op; boolean matchp = false; if (cop.refNumber > 0) { if (cop.refNumber >= this.nofparen) throw new RuntimeException("Internal Error: Reference number must be more than zero: "+cop.refNumber); matchp = con.match.getBeginning(cop.refNumber) >= 0 && con.match.getEnd(cop.refNumber) >= 0; } else { matchp = 0 <= this. matchCharacterIterator (con, cop.condition, offset, dx, opts); } if (matchp) { op = cop.yes; } else if (cop.no != null) { op = cop.no; } else { op = cop.next; } } break; default: throw new RuntimeException("Unknown operation type: "+op.type); } // switch (op.type) } // while }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/70b7b24feecf18d8ac4f51eb39acdd929dea5021/RegularExpression.java/clean/src/org/apache/xerces/impl/xpath/regex/RegularExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 845, 7069, 3198, 261, 1042, 356, 16, 6066, 1061, 16, 509, 1384, 16, 509, 6633, 16, 509, 1500, 13, 288, 3639, 6577, 3198, 1018, 273, 356, 18, 8450, 2326, 31, 3639, 1323, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 845, 7069, 3198, 261, 1042, 356, 16, 6066, 1061, 16, 509, 1384, 16, 509, 6633, 16, 509, 1500, 13, 288, 3639, 6577, 3198, 1018, 273, 356, 18, 8450, 2326, 31, 3639, 1323, 261, ...
buffer.append("overlay: 0x");
buffer.append("overlay: 0x");
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("EXE HEADER VALUES").append(NL); buffer.append("signature "); buffer.append((char)e_signature[0] + " " + (char)e_signature[1]); buffer.append(NL); buffer.append("lastsize: 0x"); buffer.append(Long.toHexString(new Short(e_lastsize).longValue())); buffer.append(NL); buffer.append("nblocks: 0x"); buffer.append(Long.toHexString(new Short(e_nblocks).longValue())); buffer.append(NL); buffer.append("nreloc: 0x"); buffer.append(Long.toHexString(new Short(e_nreloc).longValue())); buffer.append(NL); buffer.append("hdrsize: 0x"); buffer.append(Long.toHexString(new Short(e_hdrsize).longValue())); buffer.append(NL); buffer.append("minalloc: 0x"); buffer.append(Long.toHexString(new Short(e_minalloc).longValue())); buffer.append(NL); buffer.append("maxalloc: 0x"); buffer.append(Long.toHexString(new Short(e_maxalloc).longValue())); buffer.append(NL); buffer.append("ss: 0x"); buffer.append(Long.toHexString(new Short(e_ss).longValue())); buffer.append(NL); buffer.append("sp: 0x"); buffer.append(Long.toHexString(new Short(e_sp).longValue())); buffer.append(NL); buffer.append("checksum: 0x"); buffer.append(Long.toHexString(new Short(e_checksum).longValue())); buffer.append(NL); buffer.append("ip: 0x"); buffer.append(Long.toHexString(new Short(e_ip).longValue())); buffer.append(NL); buffer.append("cs: 0x"); buffer.append(Long.toHexString(new Short(e_cs).longValue())); buffer.append(NL); buffer.append("relocoffs: 0x"); buffer.append(Long.toHexString(new Short(e_relocoffs).longValue())); buffer.append(NL); buffer.append("overlay: 0x"); buffer.append(Long.toHexString(new Short(e_noverlay).longValue())); buffer.append(NL); return buffer.toString(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/95f42aeb9e7f38db093795981bd7c7300a3eeeb6/Exe.java/clean/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/Exe.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 1762, 1435, 288, 1082, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 1082, 202, 4106, 18, 6923, 2932, 2294, 41, 11659, 13477, 20387, 6923, 12, 24924, 1769, 1082, 202, 4106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3196, 202, 482, 514, 1762, 1435, 288, 1082, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 1082, 202, 4106, 18, 6923, 2932, 2294, 41, 11659, 13477, 20387, 6923, 12, 24924, 1769, 1082, 202, 4106, ...
THREADS_PER_HOST_COUNT.remove(addr); BLOCKED_ADDR_QUEUE.addFirst(addr);
THREADS_PER_HOST_COUNT.remove(host); BLOCKED_ADDR_QUEUE.addFirst(host);
private void unblockAddr(InetAddress addr) { synchronized (BLOCKED_ADDR_TO_TIME) { int addrCount = ((Integer)THREADS_PER_HOST_COUNT.get(addr)).intValue(); if (addrCount == 1) { THREADS_PER_HOST_COUNT.remove(addr); BLOCKED_ADDR_QUEUE.addFirst(addr); BLOCKED_ADDR_TO_TIME.put (addr, new Long(System.currentTimeMillis() + serverDelay)); } else { THREADS_PER_HOST_COUNT.put(addr, new Integer(addrCount - 1)); } } }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/4f58ab092af786ea27a3c87c942ce625c9408bd3/HttpBase.java/clean/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 640, 2629, 3178, 12, 382, 278, 1887, 3091, 13, 288, 565, 3852, 261, 11403, 2056, 67, 14142, 67, 4296, 67, 4684, 13, 288, 1377, 509, 3091, 1380, 273, 14015, 4522, 13, 21730, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 640, 2629, 3178, 12, 382, 278, 1887, 3091, 13, 288, 565, 3852, 261, 11403, 2056, 67, 14142, 67, 4296, 67, 4684, 13, 288, 1377, 509, 3091, 1380, 273, 14015, 4522, 13, 21730, 5...
double rowh = 1 / (double)(tablelay[1].length - 2); tablelay[1][0] = border;
double rowh = 1 / (double)(tablelay[1].length - 1);
private JPanel getPanelMisc() { if (panelMisc == null) { double[][] tablelay = { {border, TableLayout.FILL, border}, new double[5] }; double rowh = 1 / (double)(tablelay[1].length - 2); tablelay[1][0] = border; tablelay[1][tablelay[1].length - 1] = border; Arrays.fill(tablelay[1], 1, tablelay[1].length - 2, rowh); tablelay[1][tablelay[1].length - 2] = TableLayout.FILL; panelMisc = new JPanel(new TableLayout(tablelay)); panelMisc.setBorder(BorderFactory.createTitledBorder(_("Miscellaneous settings"))); comboNewFaxAction = new JComboBox(utils.newFaxActions); checkPCLBug = new JCheckBox("<html>" + _("Use PCL file type bugfix") + "</html>"); addWithLabel(panelMisc, comboNewFaxAction, "<html>" + _("When a new fax is received:") + "</html>", "1, 2, 1, 2, f, c"); panelMisc.add(checkPCLBug, "1, 3"); } return panelMisc; }
9845 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9845/07f3da60b6632260205633b7121b9df8b29069d2/OptionsWin.java/clean/yajhfc/yajhfc/OptionsWin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 24048, 1689, 30427, 11729, 71, 1435, 288, 3639, 309, 261, 13916, 11729, 71, 422, 446, 13, 288, 5411, 1645, 63, 6362, 65, 3246, 80, 292, 528, 273, 288, 10792, 288, 8815, 16, 3555, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 24048, 1689, 30427, 11729, 71, 1435, 288, 3639, 309, 261, 13916, 11729, 71, 422, 446, 13, 288, 5411, 1645, 63, 6362, 65, 3246, 80, 292, 528, 273, 288, 10792, 288, 8815, 16, 3555, ...
return new DataSet (m_pssn, m_signature, makeExpr()).size();
if (m_cursor == null) { return new DataSet (m_pssn, m_signature, makeExpr()).size(); } else { return m_cursor.getDataSet().size(); }
public long size() { try { return new DataSet (m_pssn, m_signature, makeExpr()).size(); } catch (ProtoException e) { throw PersistenceException.newInstance(e); } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/f4e268981575a60399b9094f10361d0e2f25927b/DataQueryImpl.java/buggy/archive/qgen/src/com/arsdigita/persistence/DataQueryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 963, 1435, 288, 202, 698, 288, 202, 565, 327, 394, 14065, 7734, 261, 81, 67, 84, 1049, 82, 16, 312, 67, 8195, 16, 1221, 4742, 1435, 2934, 1467, 5621, 202, 97, 1044, 261, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 963, 1435, 288, 202, 698, 288, 202, 565, 327, 394, 14065, 7734, 261, 81, 67, 84, 1049, 82, 16, 312, 67, 8195, 16, 1221, 4742, 1435, 2934, 1467, 5621, 202, 97, 1044, 261, 6...
toolSession.setAttribute(ResourceToolAction.RESOURCE_CONTENT, content); toolSession.setAttribute(ResourceToolAction.ACTION_SUCCEEDED, Boolean.TRUE);
public void doContinue(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); ParameterParser params = data.getParameters (); String content = params.getString("content"); if(content == null) { addAlert(state, "Please enter the contents of the text document"); return; } ToolSession toolSession = SessionManager.getCurrentToolSession(); toolSession.setAttribute(ResourceToolAction.RESOURCE_CONTENT, content); toolSession.setAttribute(ResourceToolAction.ACTION_SUCCEEDED, Boolean.TRUE); Tool tool = ToolManager.getCurrentTool(); String url = (String) toolSession.getAttribute(tool.getId() + Tool.HELPER_DONE_URL); toolSession.removeAttribute(tool.getId() + Tool.HELPER_DONE_URL); }
48934 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48934/e05dd31903c0f04dd00e7100a5602fab83480354/ResourcesHelperAction.java/clean/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesHelperAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 12378, 12, 1997, 751, 501, 13, 202, 95, 202, 202, 2157, 1119, 919, 273, 14015, 46, 2413, 5868, 1997, 751, 13, 892, 2934, 588, 18566, 2157, 1119, 261, 12443, 46, 2413...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 741, 12378, 12, 1997, 751, 501, 13, 202, 95, 202, 202, 2157, 1119, 919, 273, 14015, 46, 2413, 5868, 1997, 751, 13, 892, 2934, 588, 18566, 2157, 1119, 261, 12443, 46, 2413...
testCompatibiltyAll(axisBinding);
public void emitSkeleton() throws CodeGenerationException { try { //get the binding WSDLDescription wom = this.configuration.getWom(); Map bindings = wom.getBindings(); WSDLBinding axisBinding = null; if (bindings==null){ throw new CodeGenerationException("Binding needs to be present!"); } Collection bindingCollection = bindings.values(); for (Iterator iterator = bindingCollection.iterator(); iterator.hasNext();) { axisBinding = (WSDLBinding)iterator.next(); //test the compatibility testCompatibiltyAll(axisBinding); //write interfaces writeSkeleton(axisBinding); //write interface implementations writeServiceXml(axisBinding); //write the local test classes// writeLocalTestClasses(axisBinding); //write a dummy implementation call for the tests to run. writeTestSkeletonImpl(axisBinding); //write a testservice.xml that will load the dummy skeleton impl for testing writeTestServiceXML(axisBinding); //write a MessageReceiver for this particular service. writeMessageReceiver(axisBinding); } // Call the emit stub method to generate the client side too // Do we need to enforce this here ????? // Perhaps we can introduce a flag to determine this! emitStub(); } catch (Exception e) { e.printStackTrace(); throw new CodeGenerationException(e); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/4e7de4896fbad2b20e6077ed43be758711bcaef5/MultiLanguageClientEmitter.java/buggy/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3626, 28070, 1435, 1216, 3356, 13842, 503, 288, 3639, 775, 288, 5411, 368, 588, 326, 5085, 5411, 30567, 3291, 341, 362, 273, 333, 18, 7025, 18, 588, 59, 362, 5621, 5411, 1635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 3626, 28070, 1435, 1216, 3356, 13842, 503, 288, 3639, 775, 288, 5411, 368, 588, 326, 5085, 5411, 30567, 3291, 341, 362, 273, 333, 18, 7025, 18, 588, 59, 362, 5621, 5411, 1635, ...
worldmapRect = new Rectangle(visRect.x, visRect.y+visRect.height-worldmap.getHeight(), worldmap.getWidth(), worldmap.getHeight());
wmInteriorRect.x = visRect.x + (worldmap.getWidth() - wmInteriorRect.width); wmInteriorRect.y = visRect.y+visRect.height-worldmap.getHeight() + (worldmap.getHeight() - wmInteriorRect.height);
public void paintComponent(Graphics g){ PairwiseLinkage[][] dPrimeTable = theData.filteredDPrimeTable; Vector blocks = theData.blocks; Rectangle visRect = getVisibleRect(); //deal with zooming if (chartSize.getWidth() > (3*visRect.width)){ showWM = true; }else{ showWM = false; } if (zoomLevel == 0){ printDetails = true; } else{ printDetails = false; } Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); //okay so this dumb if block is to prevent the ugly repainting //bug when loading markers after the data are already being displayed, //results in a little off-centering for small datasets, but not too bad. if (!forExport){ if (!theData.infoKnown){ g2.translate((size.width - pref.width) / 2, (size.height - pref.height) / 2); } else { g2.translate((size.width - pref.width) / 2, 0); } } //System.out.println(size + " " + pref); FontMetrics boxFontMetrics = g2.getFontMetrics(boxFont); int diamondX[] = new int[4]; int diamondY[] = new int[4]; Polygon diamond; left = H_BORDER; top = V_BORDER; FontMetrics metrics; int ascent; g2.setColor(this.getBackground()); g2.fillRect(0,0,pref.width,pref.height); g2.setColor(Color.black); g2.setFont(boldMarkerNameFont); metrics = g2.getFontMetrics(); ascent = metrics.getAscent(); //TODO: finish implementing scaling gizmo /*//deal with adding some space to better display data with large gaps int cumulativeGap[] = new int[Chromosome.getFilteredSize()]; for (int i = 0; i < cumulativeGap.length; i++){ cumulativeGap[i] = 0; } if (theData.infoKnown){ double mean = (((SNP)Chromosome.markers[Chromosome.markers.length-1]).getPosition() - ((SNP)Chromosome.markers[0]).getPosition())/Chromosome.markers.length-1; for (int i = 1; i < cumulativeGap.length; i++){ double sep = Chromosome.getMarker(i).getPosition() - Chromosome.getMarker(i-1).getPosition(); if (sep > mean*10){ cumulativeGap[i] = cumulativeGap[i-1] + (int)(sep/mean)*4; }else{ cumulativeGap[i] = cumulativeGap[i-1]; } } } */ if (theData.infoKnown) { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); //// draw the marker locations int wide = (dPrimeTable.length-1) * boxSize; int lineLeft = wide/20; int lineSpan = (wide/10)*9; long minpos = Chromosome.getMarker(0).getPosition(); long maxpos = Chromosome.getMarker(Chromosome.getSize()-1).getPosition(); double spanpos = maxpos - minpos; g2.setStroke(thinnerStroke); g2.setColor(Color.white); g2.fillRect(left + lineLeft+1, top+1, lineSpan-1, TICK_HEIGHT-1); g2.setColor(Color.black); g2.drawRect(left + lineLeft, top, lineSpan, TICK_HEIGHT); for (int i = 0; i < Chromosome.getFilteredSize(); i++) { double pos = (Chromosome.getFilteredMarker(i).getPosition() - minpos) / spanpos; int xx = (int) (left + lineLeft + lineSpan*pos); g2.setStroke(thickerStroke); g2.drawLine(xx, top, xx, top + TICK_HEIGHT); g2.setStroke(thinnerStroke); g2.drawLine(xx, top + TICK_HEIGHT, left + i*boxSize, top+TICK_BOTTOM); } top += TICK_BOTTOM + TICK_HEIGHT; //// draw the marker names if (printDetails){ widestMarkerName = metrics.stringWidth(Chromosome.getFilteredMarker(0).getName()); for (int x = 1; x < dPrimeTable.length; x++) { int thiswide = metrics.stringWidth(Chromosome.getFilteredMarker(x).getName()); if (thiswide > widestMarkerName) widestMarkerName = thiswide; } g2.translate(left, top + widestMarkerName); g2.rotate(-Math.PI / 2.0); for (int x = 0; x < dPrimeTable.length; x++) { if (theData.isInBlock[x]){ g2.setFont(boldMarkerNameFont); }else{ g2.setFont(markerNameFont); } g2.drawString(Chromosome.getFilteredMarker(x).getName(),TEXT_GAP, x*boxSize + ascent/3); } g2.rotate(Math.PI / 2.0); g2.translate(-left, -(top + widestMarkerName)); // move everybody down top += widestMarkerName + TEXT_GAP; } g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); } top += blockDispHeight; //// draw the marker numbers if (printDetails){ g2.setFont(markerNumFont); metrics = g2.getFontMetrics(); ascent = metrics.getAscent(); for (int x = 0; x < dPrimeTable.length; x++) { String mark = String.valueOf(Chromosome.realIndex[x] + 1); g2.drawString(mark, left + x*boxSize - metrics.stringWidth(mark)/2, top + ascent); } top += boxRadius/2; // give a little space between numbers and boxes } //clickxshift and clickyshift are used later to translate from x,y coords //to the pair of markers comparison at those coords if (!(theData.infoKnown)){ clickXShift = left + (size.width-pref.width)/2; clickYShift = top + (size.height - pref.height)/2; } else { clickXShift = left + (size.width-pref.width)/2; clickYShift = top; } //the following values are the bounds on the boxes we want to //display given that the current window is 'visRect' lowX = (visRect.x-clickXShift-(visRect.y + visRect.height-clickYShift))/boxSize; if (lowX < 0) { lowX = 0; } highX = ((visRect.x + visRect.width)/boxSize)+1; if (highX > dPrimeTable.length-1){ highX = dPrimeTable.length-1; } lowY = ((visRect.x-clickXShift)+(visRect.y-clickYShift))/boxSize; if (lowY < lowX+1){ lowY = lowX+1; } highY = (((visRect.x-clickXShift+visRect.width) + (visRect.y-clickYShift+visRect.height))/boxSize)+1; if (highY > dPrimeTable.length){ highY = dPrimeTable.length; } if (forExport){ lowX = 0; lowY = 0; highX = dPrimeTable.length; highY = dPrimeTable.length; } // draw table column by column for (int x = lowX; x < highX; x++) { //always draw the fewest possible boxes if (lowY < x+1){ lowY = x+1; } for (int y = lowY; y < highY; y++) { if (dPrimeTable[x][y] == null){ continue; } double d = dPrimeTable[x][y].getDPrime(); //double l = dPrimeTable[x][y].getLOD(); Color boxColor = dPrimeTable[x][y].getColor(); // draw markers above int xx = left + (x + y) * boxSize / 2; int yy = top + (y - x) * boxSize / 2; diamondX[0] = xx; diamondY[0] = yy - boxRadius; diamondX[1] = xx + boxRadius; diamondY[1] = yy; diamondX[2] = xx; diamondY[2] = yy + boxRadius; diamondX[3] = xx - boxRadius; diamondY[3] = yy; diamond = new Polygon(diamondX, diamondY, 4); g2.setColor(boxColor); g2.fillPolygon(diamond); if(printDetails){ g2.setFont(boxFont); ascent = boxFontMetrics.getAscent(); int val = (int) (d * 100); g2.setColor((val < 50) ? Color.gray : Color.black); if (boxColor == Color.darkGray){ g2.setColor(Color.white); } if (val != 100) { String valu = String.valueOf(val); int widf = boxFontMetrics.stringWidth(valu); g.drawString(valu, xx - widf/2, yy + ascent/2); } } } } boolean even = true; //highlight blocks g2.setFont(markerNameFont); ascent = g2.getFontMetrics().getAscent(); //g.setColor(new Color(153,255,153)); g2.setColor(Color.black); //g.setColor(new Color(51,153,51)); for (int i = 0; i < blocks.size(); i++){ int[] theBlock = (int[])blocks.elementAt(i); int first = theBlock[0]; int last = theBlock[theBlock.length-1]; //big vee around whole thing g2.setStroke(fatStroke); g2.drawLine(left + (2*first) * boxSize/2 - boxRadius, top, left + (first + last) * boxSize/2, top + (last - first) * boxSize/2 + boxRadius); g2.drawLine(left + (first + last) * boxSize/2, top + (last - first) * boxSize/2 + boxRadius, left + (2*last) * boxSize/2+boxRadius, top); for (int j = first; j <= last; j++){ if (theData.isInBlock[j]){ g2.setStroke(fatStroke); }else{ g2.setStroke(dashedFatStroke); } g2.drawLine(left+j*boxSize-boxSize/2, top-blockDispHeight, left+j*boxSize+boxSize/2, top-blockDispHeight); } //lines to connect to block display g2.setStroke(fatStroke); g2.drawLine(left + first*boxSize-boxSize/2, top-1, left+first*boxSize-boxSize/2, top-blockDispHeight); g2.drawLine(left+last*boxSize+boxSize/2, top-1, left+last*boxSize+boxSize/2, top-blockDispHeight); if (printDetails){ String labelString = new String ("Block " + (i+1)); g2.drawString(labelString, left+first*boxSize-boxSize/2+TEXT_GAP, top-boxSize/3); } } g2.setStroke(thickerStroke); //see if the user has right-clicked to popup some marker info if(popupExists){ int smallDatasetSlopH = 0; int smallDatasetSlopV = 0; if (pref.getWidth() < visRect.width){ //dumb bug where little datasets popup the box in the wrong place smallDatasetSlopH = (int)(visRect.width - pref.getWidth())/2; smallDatasetSlopV = (int)(visRect.height - pref.getHeight())/2; } g2.setColor(Color.white); g2.fillRect(popupDrawRect.x+1-smallDatasetSlopH, popupDrawRect.y+1-smallDatasetSlopV, popupDrawRect.width-1, popupDrawRect.height-1); g2.setColor(Color.black); g2.drawRect(popupDrawRect.x-smallDatasetSlopH, popupDrawRect.y-smallDatasetSlopV, popupDrawRect.width, popupDrawRect.height); for (int x = 0; x < displayStrings.length; x++){ g.drawString(displayStrings[x],popupDrawRect.x + popupLeftMargin-smallDatasetSlopH, popupDrawRect.y+((x+1)*metrics.getHeight())-smallDatasetSlopV); } } if (showWM && !forExport){ //dataset is big enough to require worldmap if (noImage){ //first time through draw a worldmap if dataset is big: final int WM_BD_GAP = 1; final int WM_BD_HEIGHT = 2; final int WM_BD_TOTAL = WM_BD_HEIGHT + 2*WM_BD_GAP; if (wmMaxWidth == 0){ wmMaxWidth = visRect.width/3; } double scalefactor; scalefactor = (double)(chartSize.width)/wmMaxWidth; CompoundBorder wmBorder = new CompoundBorder(BorderFactory.createRaisedBevelBorder(), BorderFactory.createLoweredBevelBorder()); worldmap = new BufferedImage((int)(chartSize.width/scalefactor)+wmBorder.getBorderInsets(this).left*2, (int)(chartSize.height/scalefactor)+wmBorder.getBorderInsets(this).top*2+WM_BD_TOTAL, BufferedImage.TYPE_3BYTE_BGR); Graphics gw = worldmap.getGraphics(); Graphics2D gw2 = (Graphics2D)(gw); gw2.setColor(this.getBackground()); gw2.fillRect(1,1,worldmap.getWidth()-1,worldmap.getHeight()-1); //make a pretty border gw2.setColor(Color.black); wmBorder.paintBorder(this,gw2,0,0,worldmap.getWidth(),worldmap.getHeight()); ir = wmBorder.getInteriorRectangle(this,0,0,worldmap.getWidth(), worldmap.getHeight()); double prefBoxSize = boxSize/(scalefactor*((double)wmMaxWidth/(double)(wmMaxWidth-WM_BD_TOTAL))); float[] smallDiamondX = new float[4]; float[] smallDiamondY = new float[4]; GeneralPath gp; for (int x = 0; x < dPrimeTable.length-1; x++){ for (int y = x+1; y < dPrimeTable.length; y++){ if (dPrimeTable[x][y] == null){ continue; } double xx = (x + y)*prefBoxSize/2+wmBorder.getBorderInsets(this).left; double yy = (y - x)*prefBoxSize/2+wmBorder.getBorderInsets(this).top + WM_BD_TOTAL; smallDiamondX[0] = (float)xx; smallDiamondY[0] = (float)(yy - prefBoxSize/2); smallDiamondX[1] = (float)(xx + prefBoxSize/2); smallDiamondY[1] = (float)yy; smallDiamondX[2] = (float)xx; smallDiamondY[2] = (float)(yy + prefBoxSize/2); smallDiamondX[3] = (float)(xx - prefBoxSize/2); smallDiamondY[3] = (float)yy; gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD, smallDiamondX.length); gp.moveTo(smallDiamondX[0],smallDiamondY[0]); for (int i = 1; i < smallDiamondX.length; i++){ gp.lineTo(smallDiamondX[i], smallDiamondY[i]); } gp.closePath(); gw2.setColor(dPrimeTable[x][y].getColor()); gw2.fill(gp); } } //draw block display in worldmap gw2.setColor(this.getBackground()); gw2.fillRect(wmBorder.getBorderInsets(this).left, wmBorder.getBorderInsets(this).top+WM_BD_GAP, ir.width, WM_BD_HEIGHT); gw2.setColor(Color.black); even = true; for (int i = 0; i < blocks.size(); i++){ int first = ((int[])blocks.elementAt(i))[0]; int last = ((int[])blocks.elementAt(i))[((int[])blocks.elementAt(i)).length-1]; int voffset; if (even){ voffset = 0; }else{ voffset = WM_BD_HEIGHT/2; } gw2.fillRect(wmBorder.getBorderInsets(this).left+(int)(prefBoxSize*first), wmBorder.getBorderInsets(this).top+voffset+WM_BD_GAP, (int)((last-first+1)*prefBoxSize), WM_BD_HEIGHT/2); even = !even; } noImage = false; } wmResizeCorner = new Rectangle(visRect.x + worldmap.getWidth() - (worldmap.getWidth()-ir.width)/2, visRect.y + visRect.height - worldmap.getHeight(), (worldmap.getWidth()-ir.width)/2, (worldmap.getHeight() -ir.height)/2); g2.drawImage(worldmap,visRect.x, visRect.y + visRect.height - worldmap.getHeight(), this); worldmapRect = new Rectangle(visRect.x, visRect.y+visRect.height-worldmap.getHeight(), worldmap.getWidth(), worldmap.getHeight()); //draw the outline of the viewport g2.setColor(Color.black); double hRatio = ir.getWidth()/pref.getWidth(); double vRatio = ir.getHeight()/pref.getHeight(); int hBump = worldmap.getWidth()-ir.width; int vBump = worldmap.getHeight()-ir.height; //bump a few pixels to avoid drawing on the border g2.drawRect((int)(visRect.x*hRatio)+hBump/2+visRect.x, (int)(visRect.y*vRatio)+vBump/2+(visRect.y + visRect.height - worldmap.getHeight()), (int)(visRect.width*hRatio), (int)(visRect.height*vRatio)); } //see if we're drawing a worldmap resize rect if (resizeRectExists){ g2.setColor(Color.black); g2.drawRect(resizeWMRect.x, resizeWMRect.y, resizeWMRect.width, resizeWMRect.height); } //see if we're drawing a block selector rect if (blockRectExists){ g2.setColor(Color.black); g2.setStroke(dashedThinStroke); g2.drawRect(blockRect.x, blockRect.y, blockRect.width, blockRect.height); } }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/fc4088206bc1970df75807a50225df7384f8e6db/DPrimeDisplay.java/clean/edu/mit/wi/haploview/DPrimeDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 1841, 12, 17558, 314, 15329, 3639, 8599, 2460, 2098, 410, 63, 6362, 65, 302, 23327, 1388, 273, 326, 751, 18, 12071, 40, 23327, 1388, 31, 3639, 5589, 4398, 273, 326, 751,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 12574, 1841, 12, 17558, 314, 15329, 3639, 8599, 2460, 2098, 410, 63, 6362, 65, 302, 23327, 1388, 273, 326, 751, 18, 12071, 40, 23327, 1388, 31, 3639, 5589, 4398, 273, 326, 751,...
if (!this.fsList.delete()) { log("Failed to delete " + this.fsList.getAbsolutePath());
if (!this.getDebugPCT()) { if (!this.fsList.delete()) { log("Failed to delete " + this.fsList.getAbsolutePath()); } if (!this.params.delete()) { log("Failed to delete " + this.params.getAbsolutePath()); }
public void execute() throws BuildException { File xRefDir = null; // Where to store XREF files if (this.destDir == null) { throw new BuildException("destDir attribute not defined"); } // Test output directory if (this.destDir.exists()) { if (!this.destDir.isDirectory()) { throw new BuildException("destDir is not a directory"); } } else { if (!this.destDir.mkdir()) { throw new BuildException("Unable to create destDir"); } } // Test xRef directory if (this.xRefDir == null) { this.xRefDir = new File(this.destDir, ".pct"); } if (this.xRefDir.exists()) { if (!this.xRefDir.isDirectory()) { throw new BuildException("xRefDir is not a directory"); } } else { if (!this.xRefDir.mkdir()) { throw new BuildException("Unable to create xRefDir"); } } log("PCTCompile - Progress Code Compiler", Project.MSG_INFO); try { writeFileList(); writeParams(); this.setProcedure("pct/pctCompile.p"); this.setParameter(params.getAbsolutePath()); super.execute(); if (!this.fsList.delete()) { log("Failed to delete " + this.fsList.getAbsolutePath()); } if (!this.params.delete()) { log("Failed to delete " + this.params.getAbsolutePath()); } } catch (BuildException be) { if (!this.fsList.delete()) { log("Failed to delete " + this.fsList.getAbsolutePath()); } if (!this.params.delete()) { log("Failed to delete " + this.params.getAbsolutePath()); } throw be; } }
47244 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47244/8a96b84f62c505fee9028b5cc89bad638a9875ba/PCTCompile.java/clean/src/java/com/phenix/pct/PCTCompile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 1387, 619, 1957, 1621, 273, 446, 31, 368, 12177, 358, 1707, 1139, 10771, 1390, 3639, 309, 261, 2211, 18, 10488, 1621, 422, 446, 13, 288, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 1387, 619, 1957, 1621, 273, 446, 31, 368, 12177, 358, 1707, 1139, 10771, 1390, 3639, 309, 261, 2211, 18, 10488, 1621, 422, 446, 13, 288, 541...
return ( file.getName().endsWith(".xmi") || file.getName().indexOf('.') == -1); }
return (file.getName().endsWith(".xmi") || file.getName().indexOf('.') == -1); }
public boolean accept(File file) { return ( file.getName().endsWith(".xmi") || file.getName().indexOf('.') == -1); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ActionExportXMI.java/buggy/src_new/org/argouml/ui/ActionExportXMI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1250, 2791, 12, 812, 585, 13, 288, 7734, 327, 261, 10792, 585, 18, 17994, 7675, 5839, 1190, 2932, 18, 92, 9197, 7923, 13491, 747, 585, 18, 17994, 7675, 31806, 2668, 1093, 13, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1250, 2791, 12, 812, 585, 13, 288, 7734, 327, 261, 10792, 585, 18, 17994, 7675, 5839, 1190, 2932, 18, 92, 9197, 7923, 13491, 747, 585, 18, 17994, 7675, 31806, 2668, 1093, 13, 422, ...
public void menuSelectionChanged(boolean changed) { }
public void menuSelectionChanged(boolean changed) { }
public void menuSelectionChanged(boolean changed) { // TODO } // menuSelectionChanged()
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JMenuItem.java/buggy/libjava/javax/swing/JMenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3824, 6233, 5033, 12, 6494, 3550, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 3824, 6233, 5033, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 202, 482, 918, 3824, 6233, 5033, 12, 6494, 3550, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 3824, 6233, 5033, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return BoundVariableDescr.class;
return VariableDescr.class;
public Class generateNodeFor() { return BoundVariableDescr.class; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/cd4caf6f5d68f03498aabedb8d6ba2cb81fe456d/BoundVariableHandler.java/clean/drools-compiler/src/main/java/org/drools/xml/BoundVariableHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 2103, 907, 1290, 1435, 288, 3639, 327, 7110, 16198, 18, 1106, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1659, 2103, 907, 1290, 1435, 288, 3639, 327, 7110, 16198, 18, 1106, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...