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
public org.quickfix.field.NotifyBrokerOfCredit getNotifyBrokerOfCredit() throws FieldNotFound { org.quickfix.field.NotifyBrokerOfCredit value = new org.quickfix.field.NotifyBrokerOfCredit();
public quickfix.field.NotifyBrokerOfCredit getNotifyBrokerOfCredit() throws FieldNotFound { quickfix.field.NotifyBrokerOfCredit value = new quickfix.field.NotifyBrokerOfCredit();
public org.quickfix.field.NotifyBrokerOfCredit getNotifyBrokerOfCredit() throws FieldNotFound { org.quickfix.field.NotifyBrokerOfCredit value = new org.quickfix.field.NotifyBrokerOfCredit(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Allocation.java/clean/src/java/src/quickfix/fix42/Allocation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 9168, 11194, 951, 16520, 336, 9168, 11194, 951, 16520, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 9168, 11194, 951, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 9168, 11194, 951, 16520, 336, 9168, 11194, 951, 16520, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 9168, 11194, 951, 16...
if (rest != null) return getProperty(val, rest);
if (rest != null) return getProperty(val, rest);
private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.b.c. int pos; String rest = null; if ((pos = prop.indexOf('.')) != -1) { rest = prop.substring(pos + 1); prop = prop.substring(0, pos); } // Find a method named getProp. It could be isProp instead. Method getter; try { // Look for boolean property getter isProperty getter = o.getClass().getMethod("is" + capitalize(prop), null); } catch (NoSuchMethodException e) { // Look for regular property getter getProperty getter = o.getClass().getMethod("get" + capitalize(prop), null); } Object val = getter.invoke(o, null); if (rest != null) return getProperty(val, rest); return new Object[] {val, getter.getReturnType()}; }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/4560ec84d1941b7d1dc387ca2fa2087617053271/EventHandler.java/clean/libjava/java/beans/EventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1033, 8526, 3911, 12, 921, 320, 16, 514, 2270, 13, 565, 1216, 15959, 16, 11900, 16, 15342, 225, 288, 565, 368, 2672, 326, 871, 733, 1347, 326, 1272, 508, 358, 2608, 353, 446, 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, 282, 3238, 1033, 8526, 3911, 12, 921, 320, 16, 514, 2270, 13, 565, 1216, 15959, 16, 11900, 16, 15342, 225, 288, 565, 368, 2672, 326, 871, 733, 1347, 326, 1272, 508, 358, 2608, 353, 446, 18, ...
if (here >= doc.getLength()) {
if (here > doc.getLength()) {
public void indentLine(DefinitionsDocument doc) { System.err.println("ActionBracePlus"); int here = doc.getCurrentLocation(); int startLine = doc.getLineStartPos(here); doc.setCurrentLocation(startLine); IndentInfo ii = doc.getReduced().getIndentInformation(); // Check preconditions if ((ii.braceType.equals("")) || (ii.distToBrace < 0)) { // Can't find brace, so do nothing. return; } // Find length to brace int bracePos = startLine - ii.distToBrace; int braceNewLine = 0; if (ii.distToNewline >=0) { braceNewLine = startLine - ii.distToNewline; } int braceLen = bracePos - braceNewLine; // Create tab string StringBuffer tab = new StringBuffer(_suffix.length() + braceLen); for (int i=0; i < braceLen; i++) { tab.append(" "); } tab.append(_suffix); if (here >= doc.getLength()) { here = doc.getLength() - 1; } doc.setCurrentLocation(here); doc.setTab(tab.toString(), here); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e855fbea41f0dcbe20751dbee6936124456f2ccf/ActionBracePlus.java/clean/drjava/src/edu/rice/cs/drjava/model/definitions/indent/ActionBracePlus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3504, 1670, 12, 7130, 2519, 997, 13, 225, 288, 565, 2332, 18, 370, 18, 8222, 2932, 1803, 21965, 13207, 8863, 565, 509, 2674, 273, 997, 18, 588, 3935, 2735, 5621, 565, 509, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3504, 1670, 12, 7130, 2519, 997, 13, 225, 288, 565, 2332, 18, 370, 18, 8222, 2932, 1803, 21965, 13207, 8863, 565, 509, 2674, 273, 997, 18, 588, 3935, 2735, 5621, 565, 509, 24...
charBuffer.clear();
charBuffer.clear();
public String decode(int len) { byteBuffer.limit(len); byteBuffer.position(0); charBuffer.clear(); cd.reset(); CoderResult result = cd.decode(byteBuffer, charBuffer, true); if (result.isError()) return null; charBuffer.flip(); return String.valueOf(cb,0,charBuffer.limit()); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/90d357a7612a0fee1860528005a32007392efc2a/SimpleConverter.java/clean/tools/java/org/unicode/cldr/icu/SimpleConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2495, 12, 474, 562, 13, 288, 3639, 21734, 18, 3595, 12, 1897, 1769, 3639, 21734, 18, 3276, 12, 20, 1769, 3639, 1149, 1892, 18, 8507, 5621, 6647, 7976, 18, 6208, 5621, 3639, 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, 514, 2495, 12, 474, 562, 13, 288, 3639, 21734, 18, 3595, 12, 1897, 1769, 3639, 21734, 18, 3276, 12, 20, 1769, 3639, 1149, 1892, 18, 8507, 5621, 6647, 7976, 18, 6208, 5621, 3639, 3...
byte[] data; int offset = 0; int len = src.remaining(); if (!src.hasArray()) { data = new byte [len]; src.get (data, 0, len); } else { offset = src.arrayOffset() + src.position(); data = src.array(); } OutputStream output = socket.getOutputStream(); boolean completed = false; try { begin(); socket.getPlainSocketImpl().setInChannelOperation(true); output.write (data, offset, len); completed = true; } finally { end (completed); socket.getPlainSocketImpl().setInChannelOperation(false); } if (src.hasArray()) { src.position (src.position() + len); } return len;
return channel.write(src);
public int write (ByteBuffer src) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; int len = src.remaining(); if (!src.hasArray()) { data = new byte [len]; src.get (data, 0, len); } else { offset = src.arrayOffset() + src.position(); data = src.array(); } OutputStream output = socket.getOutputStream(); boolean completed = false; try { begin(); socket.getPlainSocketImpl().setInChannelOperation(true); output.write (data, offset, len); completed = true; } finally { end (completed); socket.getPlainSocketImpl().setInChannelOperation(false); } if (src.hasArray()) { src.position (src.position() + len); } return len; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e1e35eaefa1aba525b353d33b3eb12d61cc74b29/SocketChannelImpl.java/buggy/core/src/classpath/gnu/gnu/java/nio/SocketChannelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1045, 261, 12242, 1705, 13, 565, 1216, 1860, 225, 288, 565, 309, 16051, 291, 8932, 10756, 1377, 604, 394, 2288, 61, 278, 8932, 503, 5621, 565, 1160, 8526, 501, 31, 565, 509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 1045, 261, 12242, 1705, 13, 565, 1216, 1860, 225, 288, 565, 309, 16051, 291, 8932, 10756, 1377, 604, 394, 2288, 61, 278, 8932, 503, 5621, 565, 1160, 8526, 501, 31, 565, 509, ...
if(quoteIndx > 0){
if (quoteIndx > 0) {
private void parseAttribute(String attributeString, String line) throws IOException { StringTokenizer sTok = new StringTokenizer(attributeString, ";", false); while(sTok.hasMoreTokens()) { String attVal = sTok.nextToken().trim(); String attName; List valList = new ArrayList(); int spaceIndx = attVal.indexOf("="); if(spaceIndx == -1) { attName = attVal; } else { attName = attVal.substring(0, spaceIndx); attributeString = attVal.substring(spaceIndx + 1).trim(); while(attributeString.length() > 0) { if(attributeString.startsWith("\"")) { attributeString = attributeString.substring(1); int quoteIndx = attributeString.indexOf("\""); if(quoteIndx > 0){ valList.add(attributeString.substring(0, quoteIndx)); attributeString = attributeString.substring(quoteIndx+1).trim(); if (attributeString.startsWith(",")) { attributeString = attributeString.substring(1).trim(); } } else { throw new IOException("unmatched quote in this line: " + line); } } else { int commaIndx = attributeString.indexOf(","); if(commaIndx == -1) { valList.add(attributeString); attributeString = ""; } else { valList.add(attributeString.substring(0, commaIndx)); attributeString = attributeString.substring(commaIndx+1).trim(); } } } } attributes.put(attName, valList); } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/53585784207cc13f317ffd109ae7ac6ccf818d8c/GFF3Record.java/clean/flymine/src/java/org/flymine/io/gff3/GFF3Record.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 1499, 12, 780, 1566, 780, 16, 514, 980, 13, 1216, 1860, 288, 3639, 16370, 272, 20477, 273, 394, 16370, 12, 4589, 780, 16, 13636, 3113, 629, 1769, 3639, 1323, 12, 87, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 1499, 12, 780, 1566, 780, 16, 514, 980, 13, 1216, 1860, 288, 3639, 16370, 272, 20477, 273, 394, 16370, 12, 4589, 780, 16, 13636, 3113, 629, 1769, 3639, 1323, 12, 87, 20...
public boolean visit(Type component);
boolean visit(Type component);
public boolean visit(Type component);
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4b9b42a89e8b651ac4f35632b101d771f565898e/FormEditingUtil.java/buggy/ui-designer/impl/com/intellij/uiDesigner/FormEditingUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3757, 12, 559, 1794, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3757, 12, 559, 1794, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
tree.setType(definitions.UNIT_TYPE);
tree.setType(Type.NoType);
public AbsTypeDef AbsTypeDef(Symbol sym) { AbsTypeDef tree = make.AbsTypeDef( sym.pos, sym, TypeTerm(sym.pos, sym.nextInfo()), TypeTerm(sym.pos, sym.loBound())); tree.setType(definitions.UNIT_TYPE); return tree; }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/9b2072b0aff697a0ac5cd471ee27e2471d9e968f/TreeGen.java/buggy/sources/scalac/ast/TreeGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15084, 559, 3262, 15084, 559, 3262, 12, 5335, 5382, 13, 288, 202, 9382, 559, 3262, 2151, 273, 1221, 18, 9382, 559, 3262, 12, 202, 565, 5382, 18, 917, 16, 5411, 5382, 16, 5411, 141...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15084, 559, 3262, 15084, 559, 3262, 12, 5335, 5382, 13, 288, 202, 9382, 559, 3262, 2151, 273, 1221, 18, 9382, 559, 3262, 12, 202, 565, 5382, 18, 917, 16, 5411, 5382, 16, 5411, 141...
if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { String fontFamily = this.properties.get("font-family").getString(); String fontStyle = this.properties.get("font-style").getString(); String fontWeight = this.properties.get("font-weight").getString(); int fontSize = this.properties.get("font-size").getLength().mvalue(); this.fs = new FontState(area.getFontInfo(), fontFamily, fontStyle, fontWeight, fontSize); this.spaceBefore = this.properties.get("space-before.optimum").getLength().mvalue(); this.spaceAfter = this.properties.get("space-after.optimum").getLength().mvalue(); this.backgroundColor = this.properties.get("background-color").getColorType(); this.borderColor = this.properties.get("border-color").getColorType(); this.borderWidth = this.properties.get("border-width").getLength().mvalue(); this.borderStyle = this.properties.get("border-style").getEnum(); this.id = this.properties.get("id").getString(); area.getIDReferences().createID(id); if (area instanceof BlockArea) { area.end(); } this.marker = 0; } if ((spaceBefore != 0) && (this.marker ==0)) { area.addDisplaySpace(spaceBefore); } if ( marker==0 ) { area.getIDReferences().configureID(id,area);
if (this.marker == BREAK_AFTER) { return new Status(Status.OK);
public Status layout(Area area) throws FOPException { if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { String fontFamily = this.properties.get("font-family").getString(); String fontStyle = this.properties.get("font-style").getString(); String fontWeight = this.properties.get("font-weight").getString(); int fontSize = this.properties.get("font-size").getLength().mvalue(); this.fs = new FontState(area.getFontInfo(), fontFamily, fontStyle, fontWeight, fontSize); this.spaceBefore = this.properties.get("space-before.optimum").getLength().mvalue(); this.spaceAfter = this.properties.get("space-after.optimum").getLength().mvalue(); this.backgroundColor = this.properties.get("background-color").getColorType(); this.borderColor = this.properties.get("border-color").getColorType(); this.borderWidth = this.properties.get("border-width").getLength().mvalue(); this.borderStyle = this.properties.get("border-style").getEnum(); this.id = this.properties.get("id").getString(); area.getIDReferences().createID(id); if (area instanceof BlockArea) { area.end(); } //if (this.isInListBody) { //startIndent += bodyIndent + distanceBetweenStarts; //} this.marker = 0; } if ((spaceBefore != 0) && (this.marker ==0)) { area.addDisplaySpace(spaceBefore); } if ( marker==0 ) { // configure id area.getIDReferences().configureID(id,area); } this.areaContainer = new AreaContainer(fs, -area.borderWidthLeft, -area.borderWidthTop + area.getHeight(), area.getAllocationWidth(), area.spaceLeft(), Position.RELATIVE); areaContainer.setPage(area.getPage()); areaContainer.setBackgroundColor(backgroundColor); areaContainer.setBorderStyle(borderStyle, borderStyle, borderStyle, borderStyle); areaContainer.setBorderWidth(borderWidth, borderWidth, borderWidth, borderWidth); areaContainer.setBorderColor(borderColor, borderColor, borderColor, borderColor); areaContainer.start(); areaContainer.setAbsoluteHeight(area.getAbsoluteHeight()); areaContainer.setIDReferences(area.getIDReferences()); Vector keepWith = new Vector(); int numChildren = this.children.size(); TableRow lastRow = null; for (int i = this.marker; i < numChildren; i++) { TableRow row = (TableRow) children.elementAt(i); row.setColumns(columns); row.doSetup(areaContainer); if(row.getKeepWithPrevious() != 0 && lastRow != null) { keepWith.addElement(lastRow); } Status status; if ((status = row.layout(areaContainer)).isIncomplete()) { if(keepWith.size() > 0) { // && status.getCode() == Status.AREA_FULL_NONE for(Enumeration e = keepWith.elements(); e.hasMoreElements(); ) { TableRow tr = (TableRow)e.nextElement(); tr.removeLayout(areaContainer); i--; } } this.marker = i; if ((i != 0) && (status.getCode() == Status.AREA_FULL_NONE)) { status = new Status(Status.AREA_FULL_SOME); } if(i < widows && numChildren >= widows) { resetMarker(); return new Status(Status.AREA_FULL_NONE); } if(numChildren <= orphans) { resetMarker(); return new Status(Status.AREA_FULL_NONE); } if(numChildren - i < orphans && numChildren > orphans) { for(int count = numChildren - orphans - i; count > 0; count--) { row = (TableRow) children.elementAt(count); row.removeLayout(areaContainer); i--; } if(i < widows && numChildren >= widows) { resetMarker(); return new Status(Status.AREA_FULL_NONE); } this.marker = i; area.addChild(areaContainer); //areaContainer.end(); area.increaseHeight(areaContainer.getHeight()); area.setAbsoluteHeight(areaContainer.getAbsoluteHeight()); return new Status(Status.AREA_FULL_SOME); } if(!((i == 0) && (areaContainer.getContentHeight() <= 0))) { area.addChild(areaContainer); //areaContainer.end(); area.increaseHeight(areaContainer.getHeight()); area.setAbsoluteHeight(areaContainer.getAbsoluteHeight()); } return status; } else if(status.getCode() == Status.KEEP_WITH_NEXT) { keepWith.addElement(row); } else { if(keepWith.size() > 0 && row.getKeepWithPrevious() != 0) { keepWith = new Vector(); } } lastRow = row; } area.addChild(areaContainer); areaContainer.end(); /* should this be combined into above? */ area.increaseHeight(areaContainer.getHeight()); area.setAbsoluteHeight(areaContainer.getAbsoluteHeight()); if (spaceAfter != 0) { area.addDisplaySpace(spaceAfter); } if (area instanceof BlockArea) { area.start(); } return new Status(Status.OK); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/491efa421d171a292b5044eefe090846b9233b7c/TableBody.java/clean/src/org/apache/fop/fo/flow/TableBody.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2685, 3511, 12, 5484, 5091, 13, 1216, 478, 3665, 503, 288, 202, 430, 261, 2211, 18, 11145, 422, 605, 22176, 67, 18249, 13, 288, 202, 565, 327, 394, 2685, 12, 1482, 18, 3141, 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, 377, 1071, 2685, 3511, 12, 5484, 5091, 13, 1216, 478, 3665, 503, 288, 202, 430, 261, 2211, 18, 11145, 422, 605, 22176, 67, 18249, 13, 288, 202, 565, 327, 394, 2685, 12, 1482, 18, 3141, 1769,...
RequestInputStream in = new RequestInputStream( orb, request );
RequestInputStream inputStream = new RequestInputStream( orb, request );
public void requestReceived( byte[] request, GIOPConnection connection ) { RequestInputStream in = new RequestInputStream( orb, request ); if( require_ssl && ! connection.isSSL() ) { ReplyOutputStream out = new ReplyOutputStream( in.req_hdr.request_id, ReplyStatusType_1_2.SYSTEM_EXCEPTION, in.getGIOPMinor(), false, logger); //no locate reply if (logger.isDebugEnabled()) logger.debug("About to reject request because connection is not SSL."); SystemExceptionHelper.write( out, new NO_PERMISSION( 3, CompletionStatus.COMPLETED_NO )); try { connection.sendReply( out ); } catch( IOException e ) { if (logger.isWarnEnabled()) logger.warn("IOException",e); } return; } //only block timeouts, if a reply needs to be sent if( Messages.responseExpected( in.req_hdr.response_flags )) { connection.incPendingMessages(); } if( ! connection.isTCSNegotiated() ) { //If GIOP 1.0 is used don't check for a codeset context if( in.getGIOPMinor() == 0 ) { connection.markTCSNegotiated(); } else { CodeSetContext ctx = CodeSet.getCodeSetContext( in.req_hdr.service_context ); if( ctx != null ) { connection.setCodeSets( ctx.char_data, ctx.wchar_data ); connection.markTCSNegotiated(); if (logger.isDebugEnabled()) logger.debug("Received CodeSetContext. Using " + CodeSet.csName( ctx.char_data ) + " as TCS and " + CodeSet.csName( ctx.wchar_data ) + " as TCSW" ); } } } in.setCodeSet( connection.getTCS(), connection.getTCSW() ); ServerRequest server_request = null; try { server_request = new ServerRequest( orb, in, connection ); } catch( org.jacorb.poa.except.POAInternalError pie ) { if (logger.isWarnEnabled()) logger.warn("Received a request with a non-jacorb object key" ); if( in.isLocateRequest() ) { LocateReplyOutputStream lr_out = new LocateReplyOutputStream(in.req_hdr.request_id, LocateStatusType_1_2._UNKNOWN_OBJECT, in.getGIOPMinor() ); try { connection.sendReply( lr_out ); } catch( IOException e ) { if (logger.isWarnEnabled()) logger.warn("IOException",e); } } else { ReplyOutputStream out = new ReplyOutputStream( in.req_hdr.request_id, ReplyStatusType_1_2.SYSTEM_EXCEPTION, in.getGIOPMinor(), false, logger );//no locate reply SystemExceptionHelper.write( out, new OBJECT_NOT_EXIST( 0, CompletionStatus.COMPLETED_NO )); try { connection.sendReply( out ); } catch( IOException e ) { if (logger.isWarnEnabled()) logger.warn("IOException",e); } } return; } deliverRequest( server_request ); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7dc258e1d898c133fa8113c1af1594d926e8ccff/ServerRequestListener.java/buggy/src/org/jacorb/orb/giop/ServerRequestListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 590, 8872, 12, 1160, 8526, 590, 16, 4766, 611, 45, 3665, 1952, 1459, 262, 565, 288, 3639, 1567, 4348, 316, 273, 3639, 394, 1567, 4348, 12, 16823, 16, 590, 11272, 3639, 309, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 590, 8872, 12, 1160, 8526, 590, 16, 4766, 611, 45, 3665, 1952, 1459, 262, 565, 288, 3639, 1567, 4348, 316, 273, 3639, 394, 1567, 4348, 12, 16823, 16, 590, 11272, 3639, 309, 1...
public CtBot(Point3f pos, Vector3f head) {
public CtBot() {
public CtBot(Point3f pos, Vector3f head) { super(); world = Controller.getWorld(); createBranchGroup(); Vector3f vec = new Vector3f(pos); vec.z += getHeight()/2 + getGroundClearance(); setPos(vec); setHeading(head); }
49082 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49082/7399452e3297650ad3258d2c04ef0c9123194d83/CtBot.java/buggy/ctSim/ctSim/Model/CtBot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 30714, 6522, 12, 2148, 23, 74, 949, 16, 5589, 23, 74, 910, 13, 288, 202, 202, 9565, 5621, 202, 202, 18179, 273, 6629, 18, 588, 18071, 5621, 202, 202, 2640, 7108, 1114, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30714, 6522, 12, 2148, 23, 74, 949, 16, 5589, 23, 74, 910, 13, 288, 202, 202, 9565, 5621, 202, 202, 18179, 273, 6629, 18, 588, 18071, 5621, 202, 202, 2640, 7108, 1114, 5621, ...
public IASTElaboratedTypeSpecifier createElaboratedTypeSpecifier(IASTScope scope, ASTClassKind kind, ITokenDuple name, int startingOffset, int startingLine, int endOffset, int endingLine, boolean isForewardDecl, boolean isFriend) throws ASTSemanticException { IContainerSymbol currentScopeSymbol = scopeToSymbol(scope); TypeInfo.eType pstType = classKindToTypeInfo(kind); List references = new ArrayList(); IToken nameToken = name.getFirstToken(); String newSymbolName = ""; //$NON-NLS-1$ List templateIdArgList = null; boolean isTemplateId = false; if( name.getSegmentCount() != 1 ) // qualified name { ITokenDuple containerSymbolName = name.getLeadingSegments(); currentScopeSymbol = (IContainerSymbol)lookupQualifiedName( currentScopeSymbol, containerSymbolName, references, true); if( currentScopeSymbol == null ) handleProblem( IProblem.SEMANTIC_NAME_NOT_FOUND, containerSymbolName.toString(), containerSymbolName.getFirstToken().getOffset(), containerSymbolName.getLastToken().getEndOffset(), containerSymbolName.getLastToken().getLineNumber() ); nameToken = name.getLastSegment().getFirstToken(); } //template-id List [] array = name.getTemplateIdArgLists(); if( array != null ){ isTemplateId = true; templateIdArgList = array[ array.length - 1 ]; } newSymbolName = nameToken.getImage(); ISymbol checkSymbol = null; if( !isTemplateId ){ try { if( isFriend ){ checkSymbol = ((IDerivableContainerSymbol)currentScopeSymbol).lookupForFriendship( newSymbolName ); } else { checkSymbol = currentScopeSymbol.elaboratedLookup( pstType, newSymbolName); } } catch (ParserSymbolTableException e) { handleProblem(e.createProblemID(),nameToken.getImage(), nameToken.getOffset(), nameToken.getEndOffset(), nameToken.getLineNumber() ); } } List args = null; if( isTemplateId ){ args = getTemplateArgList( templateIdArgList ); } if( isForewardDecl ) { if( checkSymbol == null ) { checkSymbol = pst.newDerivableContainerSymbol( newSymbolName, pstType ); checkSymbol.setIsForwardDeclaration( true ); try { if( isFriend ){ ((IDerivableContainerSymbol)currentScopeSymbol).addFriend( checkSymbol ); } else { if( !isTemplateId ) currentScopeSymbol.addSymbol( checkSymbol ); else currentScopeSymbol.addTemplateId( checkSymbol, args ); } } catch (ParserSymbolTableException e1) { handleProblem(e1.createProblemID(),nameToken.getImage(), nameToken.getOffset(), nameToken.getEndOffset(), nameToken.getLineNumber() ); } ASTElaboratedTypeSpecifier elab = new ASTElaboratedTypeSpecifier( checkSymbol, kind, startingOffset, startingLine, name.getFirstToken().getOffset(), name.getLastToken().getEndOffset(), name.getLastToken().getLineNumber(), endOffset, endingLine, references, isForewardDecl ); attachSymbolExtension( checkSymbol, elab, isForewardDecl ); } else if( isFriend ){ ((IDerivableContainerSymbol)currentScopeSymbol).addFriend( checkSymbol ); } } if( checkSymbol != null ){ if( checkSymbol.getASTExtension().getPrimaryDeclaration() instanceof IASTClassSpecifier || checkSymbol.getASTExtension().getPrimaryDeclaration() instanceof IASTEnumerationSpecifier ) { ASTElaboratedTypeSpecifier elab = new ASTElaboratedTypeSpecifier( checkSymbol, kind, startingOffset, startingLine, name.getFirstToken().getOffset(), name.getLastToken().getEndOffset(), name.getLastToken().getLineNumber(), endOffset, endingLine, references, isForewardDecl ); attachSymbolExtension( checkSymbol, elab, isForewardDecl ); return elab; } if( checkSymbol.getASTExtension().getPrimaryDeclaration() instanceof IASTElaboratedTypeSpecifier ) return (IASTElaboratedTypeSpecifier)checkSymbol.getASTExtension().getPrimaryDeclaration(); } else { handleProblem(IProblem.SEMANTIC_NAME_NOT_FOUND, newSymbolName, nameToken.getOffset(), nameToken.getEndOffset(), nameToken.getLineNumber() ); } // assert false : this; return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4973e168368082d47017c4ee475dcfa940ef72c7/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 9053, 4958, 378, 280, 690, 559, 21416, 752, 4958, 378, 280, 690, 559, 21416, 12, 45, 9053, 3876, 2146, 16, 9183, 797, 5677, 3846, 16, 467, 1345, 40, 2268, 508, 16, 509, 5023,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 9053, 4958, 378, 280, 690, 559, 21416, 752, 4958, 378, 280, 690, 559, 21416, 12, 45, 9053, 3876, 2146, 16, 9183, 797, 5677, 3846, 16, 467, 1345, 40, 2268, 508, 16, 509, 5023,...
return (null); }
return (null); }
public String[] getParameterNames() { // no param names to return return (null); }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/e88aff6256434fd0d848e9691fb630fc9d73b3e7/WienerNumbersDescriptor.java/buggy/src/org/openscience/cdk/qsar/WienerNumbersDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 5575, 1557, 1435, 288, 202, 202, 759, 1158, 579, 1257, 358, 327, 202, 202, 2463, 261, 2011, 1769, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 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, 514, 8526, 5575, 1557, 1435, 288, 202, 202, 759, 1158, 579, 1257, 358, 327, 202, 202, 2463, 261, 2011, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
}
}
public RubyNumeric newNumeric() { throw new MockException(); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/a1b8fc1d456e3d5c6e01579b88773383068aa85c/BaseMockRuby.java/buggy/test/org/jruby/test/BaseMockRuby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 9902, 394, 9902, 1435, 288, 202, 202, 12849, 394, 7867, 503, 5621, 1082, 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, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 9902, 394, 9902, 1435, 288, 202, 202, 12849, 394, 7867, 503, 5621, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
resp.setStatus(WebdavResponse.SC_MULTI_STATUS); resp.setContentType("text/xml; charset=utf-8"); Document doc = errs.createXML(); writeDocument(resp.getOutputStream(), doc, false, false);
sendMultiStatus(resp, errs, WebdavResponse.SC_MULTI_STATUS);
private void sendMultiStatus(WebdavResponse resp, ErrorReport errs) throws IOException { resp.setStatus(WebdavResponse.SC_MULTI_STATUS); resp.setContentType("text/xml; charset=utf-8"); Document doc = errs.createXML(); writeDocument(resp.getOutputStream(), doc, false, false); }
18466 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18466/0f1530a61410948549357113b366cd435c19a997/WebdavResourceServlet.java/clean/src/java/org/randombits/webdav/resource/WebdavResourceServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 5002, 1482, 12, 4079, 20752, 1064, 1718, 16, 1068, 4820, 6962, 13, 3639, 1216, 1860, 565, 288, 3639, 1718, 18, 542, 1482, 12, 4079, 20752, 1064, 18, 2312, 67, 26588, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1366, 5002, 1482, 12, 4079, 20752, 1064, 1718, 16, 1068, 4820, 6962, 13, 3639, 1216, 1860, 565, 288, 3639, 1718, 18, 542, 1482, 12, 4079, 20752, 1064, 18, 2312, 67, 26588, 67, ...
responseQueueSession = responseQueueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue temporaryQueue = responseQueueSession.createTemporaryQueue();
responseQueueSession = responseQueueConnection.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE); javax.jms.Queue temporaryQueue = responseQueueSession.createTemporaryQueue();
public void readImpl(final org.orbeon.oxf.pipeline.api.PipelineContext context, final ContentHandler contentHandler) { final org.orbeon.oxf.pipeline.api.PipelineContext _context = context; final List services = readServices(readInputAsDOM4J(context, INPUT_INTERFACE)); readInputAsSAX(context, INPUT_CALL, new ForwardingContentHandler(contentHandler) { Locator locator; String operationName; ServiceDefinition service; OperationDefinition operation; SAXStore parameters; public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { if (uri.equals(DELEGATION_NAMESPACE_URI) && localname.equals("execute")) { // Find service service = null; String serviceId = attributes.getValue("service"); for (Iterator i = services.iterator(); i.hasNext();) { ServiceDefinition candidateService = (ServiceDefinition) i.next(); if (candidateService.id.equals(serviceId)) { service = candidateService; break; } } if (service == null) throw new OXFException("Cannot find service with id \"" + serviceId + "\""); operation = null; operationName = attributes.getValue("operation"); // Find operation for Web service if (service.type == ServiceDefinition.WEB_SERVICE_TYPE && operationName != null) { for (Iterator i = service.operations.iterator(); i.hasNext();) { OperationDefinition candidateOperation = (OperationDefinition) i.next(); if (candidateOperation.name.equals(operationName)) { operation = candidateOperation; break; } } if (operation == null) throw new ValidationException("No operation '" + operationName + "' declared", new LocationData(locator)); } parameters = new SAXStore(); } else { // Store values if we are inside a <delegation:execute> if (parameters == null) { super.startElement(uri, localname, qName, attributes); } else { parameters.startElement(uri, localname, qName, attributes); } } } public void endElement(String uri, String localname, String qName) { try { if (uri.equals(DELEGATION_NAMESPACE_URI)) { if (localname.equals("execute")) { if (service.type == ServiceDefinition.WEB_SERVICE_TYPE || service.type == ServiceDefinition.BUS_SERVICE_TYPE) { // Call Web service Service axisService = new Service(); Call call = (Call) axisService.createCall(); // Read all parameters in root node final Node rootNode; { // Read in DOM4j content handler SAXContentHandler dom4jContentHandler = new SAXContentHandler(); dom4jContentHandler.startDocument(); dom4jContentHandler.startElement("", "dummy", "dummy", XMLUtils.EMPTY_ATTRIBUTES); parameters.replay(dom4jContentHandler); dom4jContentHandler.endElement("", "dummy", "dummy"); dom4jContentHandler.endDocument(); // Convert to DOM rootNode = new DOMWriter().write (dom4jContentHandler.getDocument()).getDocumentElement(); } // Populate envelope SOAPEnvelope requestEnvelope = new SOAPEnvelope(); if (service.type == ServiceDefinition.BUS_SERVICE_TYPE || "document".equals(service.style)) { // Add elements to directly to body for (int i = 0; i < rootNode.getChildNodes().getLength(); i++) { Node child = rootNode.getChildNodes().item(i); if (child instanceof org.w3c.dom.Element) requestEnvelope.addBodyElement(new SOAPBodyElement((org.w3c.dom.Element) child)); } } else { // Create body element with operation name, and add elements as children final SOAPBodyElement requestBody = new SOAPBodyElement(new PrefixedQName(operation.nsuri, operation.name, "m")); for (int i = 0; i < rootNode.getChildNodes().getLength(); i++) { Node child = rootNode.getChildNodes().item(i); if (child instanceof org.w3c.dom.Element) { requestBody.addChild(new MessageElement((org.w3c.dom.Element) child)); } else if (child instanceof org.w3c.dom.Text) { requestBody.addTextNode(((org.w3c.dom.Text) child).toString()); requestEnvelope.addBodyElement(new SOAPBodyElement((org.w3c.dom.Element) child)); } else { throw new OXFException("Unsupported node type: " + child.getClass().getName()); } } requestEnvelope.addBodyElement(requestBody); } // Call service SOAPEnvelope resultEnvelope = null; if (service.type == ServiceDefinition.WEB_SERVICE_TYPE) { // Call Web service parameters = null; call.setTargetEndpointAddress(new URL(service.endpoint)); if (operation != null && operation.soapAction != null) { call.setUseSOAPAction(true); call.setSOAPActionURI(operation.soapAction); } call.setReturnClass(javax.xml.soap.SOAPMessage.class); resultEnvelope = call.invoke(requestEnvelope); } else { // Call bus service QueueConnection requestQueueConnection = null; QueueSession requestQueueSession = null; QueueSender queueSender = null; try { requestQueueConnection = JMSUtils.getQueueConnection(); requestQueueSession = requestQueueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); queueSender = requestQueueSession.createSender ((Queue) new InitialContext().lookup(JMSUtils.JNDI_SERVICE_PREFIX + service.name)); ObjectMessage responseMessage = requestQueueSession.createObjectMessage(); responseMessage.setObject(requestEnvelope); // Send message if (ServiceDirectory.instance().getServiceByName(service.name).hasOutputs()) { // Response expected QueueConnection responseQueueConnection = null; QueueSession responseQueueSession = null; QueueReceiver queueReceiver = null; try { responseQueueConnection = JMSUtils.getQueueConnection(); responseQueueSession = responseQueueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue temporaryQueue = responseQueueSession.createTemporaryQueue(); queueReceiver = responseQueueSession.createReceiver(temporaryQueue); responseMessage.setJMSReplyTo(temporaryQueue); responseQueueConnection.start(); queueSender.send(responseMessage); Message message = queueReceiver.receive(); resultEnvelope = (SOAPEnvelope) ((ObjectMessage) message).getObject(); } finally{ if (queueReceiver != null) queueReceiver.close(); if (responseQueueSession != null) responseQueueSession.close(); if (responseQueueConnection != null) responseQueueConnection.close(); } } else { // No response expected queueSender.send(responseMessage); } } finally { if (queueSender != null) queueSender.close(); if (requestQueueSession != null) requestQueueSession.close(); if (requestQueueConnection != null) requestQueueConnection.close(); } } // Handle result if (resultEnvelope != null) { // Throw exception if a fault is returned if (resultEnvelope.getBody().getFault() != null) { throw new OXFException("SOAP Fault. Request:\n" + XMLUtils.domToString(requestEnvelope.getAsDocument()) + "\n\nResponse:\n" + XMLUtils.domToString(resultEnvelope.getAsDocument())); } // Send body from result envelope LocationSAXWriter locationSAXWriter = new LocationSAXWriter(); locationSAXWriter.setContentHandler(contentHandler); Document resultEnvelopeDOM4j = new DOMReader().read(resultEnvelope.getAsDocument()); String xpath = operation != null && operation.select != null ? operation.select : service.type == ServiceDefinition.WEB_SERVICE_TYPE ? DEFAULT_SELECT_WEB_SERVICE : DEFAULT_SELECT_BUS; PooledXPathExpression expr = XPathCache.getXPathExpression(context, new DocumentWrapper(resultEnvelopeDOM4j, null), xpath, operation != null && operation.select != null ? operation.selectNamespaceContext : DEFAULT_SELECT_NAMESPACE_CONTEXT); for (Iterator i = expr.evaluate().iterator(); i.hasNext();) { // Create document with node from SOAP envelope Object result = i.next(); if (result instanceof Element) { locationSAXWriter.write((Element) result); } else if (result instanceof Document) { locationSAXWriter.write(((Document) result).getRootElement()); } else if (result instanceof Text) { locationSAXWriter.write((Text) result); } else { throw new OXFException("Unsupported result from select expression: '" + result.getClass() + "'"); } } } } else if (service.type == ServiceDefinition.STATELESS_EJB_TYPE || service.type == ServiceDefinition.JAVABEAN_TYPE) { // Create SAXStore with "real" document SAXStore parametersWellFormed = new SAXStore(); parametersWellFormed.startDocument(); parametersWellFormed.startElement("", "parameters", "parameters", XMLUtils.EMPTY_ATTRIBUTES); parameters.replay(parametersWellFormed); parametersWellFormed.endElement("", "parameters", "parameters"); parametersWellFormed.endDocument(); // Put parameters in DOM SAXStoreGenerator saxGenerator = new SAXStoreGenerator(parametersWellFormed); DOMSerializer domSerializer = new DOMSerializer(); PipelineUtils.connect(saxGenerator, "data", domSerializer, "data"); org.orbeon.oxf.pipeline.api.PipelineContext context = new org.orbeon.oxf.pipeline.api.PipelineContext(); domSerializer.start(context); org.dom4j.Document parametersDocument = domSerializer.getNode(context); // Get parameter values and types List parameterTypes = new ArrayList(); List parameterValues = new ArrayList(); // Go throught elements for (Iterator i = parametersDocument.selectNodes("/parameters/*").iterator(); i.hasNext();) { org.dom4j.Element parameterElement = (org.dom4j.Element) i.next(); String parameterValue = parameterElement.getText(); String type = parameterElement.attributeValue(xsiType); if (type == null || "xsd:string".equals(type)) { parameterTypes.add(String.class); parameterValues.add(parameterValue); } else if ("xsd:double".equals(type)) { parameterTypes.add(Double.TYPE); parameterValues.add(new Double(parameterValue)); } } if (service.type == ServiceDefinition.STATELESS_EJB_TYPE) { // Call EJB method Context jndiContext = (Context) _context.getAttribute(org.orbeon.oxf.pipeline.api.PipelineContext.JNDI_CONTEXT); Object home = jndiContext.lookup(service.jndiName); Method create = home.getClass().getDeclaredMethod("create", new Class[]{}); Object instance = create.invoke(home, new Object[]{}); String result = callMethod(instance.getClass(), operationName, parameterTypes, instance, parameterValues); super.characters(result.toCharArray(), 0, result.length()); } else if (service.type == ServiceDefinition.JAVABEAN_TYPE) { // Call JavaBean method Class clazz = Class.forName(service.clazz); Object instance = clazz.newInstance(); String result = callMethod(clazz, operationName, parameterTypes, instance, parameterValues); super.characters(result.toCharArray(), 0, result.length()); } } } } else { // Store values if we are inside a <delegation:execute> if (parameters == null) { super.endElement(uri, localname, qName); } else { parameters.endElement(uri, localname, qName); } } } catch (Exception e) { throw new OXFException(e); } } public void characters(char[] chars, int start, int length) throws SAXException { // Store values if we are inside a <delegation:execute> if (parameters == null) { super.characters(chars, start, length); } else { parameters.characters(chars, start, length); } } public void setDocumentLocator(Locator locator) { this.locator = locator; } }); };
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/e04d1965e639f2e71c5618f580993c59d92d0276/DelegationProcessor.java/buggy/src/java/org/orbeon/oxf/processor/DelegationProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 855, 2828, 12, 6385, 2358, 18, 280, 2196, 265, 18, 2409, 74, 18, 14511, 18, 2425, 18, 8798, 1042, 819, 16, 727, 3697, 1503, 913, 1503, 13, 288, 7734, 727, 2358, 18, 280, 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, 2398, 1071, 918, 855, 2828, 12, 6385, 2358, 18, 280, 2196, 265, 18, 2409, 74, 18, 14511, 18, 2425, 18, 8798, 1042, 819, 16, 727, 3697, 1503, 913, 1503, 13, 288, 7734, 727, 2358, 18, 280, 2...
public void startElement(final String namespaceURI, final String sName, final String qName, final Attributes attrs) throws SAXException { // Work out the name of the tag we are being asked to process. String eName = sName; if ("".equals(eName)) eName = qName; // Construct a set of attributes from the tag. final Map attributes = new HashMap(); if (attrs != null) for (int i = 0; i < attrs.getLength(); i++) { // Work out the name of the attribute. String aName = attrs.getLocalName(i); if ("".equals(aName)) aName = attrs.getQName(i); // Store the attribute and value. final String aValue = attrs.getValue(i); attributes.put(aName, aValue.replaceAll("&quot;", "\"") .replaceAll("&lt;", "<").replaceAll("&gt;", ">") .replaceAll("&amp;", "&")); } // Start by assuming the tag is not recognised. Object element = null; // Now, attempt to recognise the tag by checking its name // against a set of names known to us. // Mart (top-level only). if ("mart".equals(eName)) // Start building a new mart. There can only be one mart tag // per file, as if more than one is found, the later tags // will override the earlier ones. element = this.constructedMart = new Mart(); else if ("schemaGroup".equals(eName)) { // Start a new group of schemas. final String name = (String) attributes.get("name"); try { final SchemaGroup schemaGroup = new GenericSchemaGroup(name); this.constructedMart.addSchema(schemaGroup); element = schemaGroup; } catch (final Exception e) { throw new SAXException(e); } } // JDBC schema (anywhere, optionally inside schema group). else if ("jdbcSchema".equals(eName)) { // Start a new JDBC schema. // Does it have a driver class location? (optional) File driverClassLocation = null; if (attributes.containsKey("driverClassLocation")) driverClassLocation = new File((String) attributes .get("driverClassLocation")); // Does it have a password? (optional) String password = null; if (attributes.containsKey("password")) password = (String) attributes.get("password"); // Load the compulsory attributes. final String driverClassName = (String) attributes .get("driverClassName"); final String url = (String) attributes.get("url"); final String schemaName = (String) attributes.get("schemaName"); final String username = (String) attributes.get("username"); final String name = (String) attributes.get("name"); final boolean keyguessing = Boolean.valueOf( (String) attributes.get("keyguessing")).booleanValue(); // Construct the JDBC schema. try { final Schema schema = new JDBCSchema(driverClassLocation, driverClassName, url, schemaName, username, password, name, keyguessing); // Are we inside a schema group? if (!this.objectStack.empty() && this.objectStack.peek() instanceof SchemaGroup) { // Add the schema to the group if we are in a group. final SchemaGroup group = (SchemaGroup) this.objectStack .peek(); group.addSchema(schema); } else // Add the schema directly to the mart if outside a group. this.constructedMart.addSchema(schema); element = schema; } catch (final Exception e) { throw new SAXException(e); } } // Table (inside table provider). else if ("table".equals(eName)) { // Start a new table. // What schema does it belong to? Throw a wobbly if not // currently inside a schema. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof Schema)) throw new SAXException(Resources.get("tableOutsideSchema")); final Schema schema = (Schema) this.objectStack.peek(); // Get the name and id as these are common features. final String id = (String) attributes.get("id"); final String name = (String) attributes.get("name"); final String originalName = (String) attributes.get("originalName"); // DataSet table provider? if (schema instanceof DataSet) { // Work out what type of dataset table it is. final String type = (String) attributes.get("type"); DataSetTableType dsType = null; if (type.equals("MAIN")) dsType = DataSetTableType.MAIN; else if (type.equals("MAIN_SUBCLASS")) dsType = DataSetTableType.MAIN_SUBCLASS; else if (type.equals("DIMENSION")) dsType = DataSetTableType.DIMENSION; else throw new SAXException(Resources.get( "unknownDatasetTableType", type)); // Work out the underlying table (if has one). final String underlyingTableId = (String) attributes .get("underlyingTableId"); Table underlyingTable = null; if (underlyingTableId != null && underlyingTableId.trim().length() != 0) underlyingTable = (Table) this.mappedObjects .get(underlyingTableId); // Work out the source relation (if has one). final String sourceRelationId = (String) attributes .get("sourceRelationId"); Relation sourceRelation = null; if (sourceRelationId != null && sourceRelationId.trim().length() != 0) sourceRelation = (Relation) this.mappedObjects .get(sourceRelationId); try { // Construct the dataset table. final DataSetTable dst = new DataSetTable(name, (DataSet) schema, dsType, underlyingTable, sourceRelation); dst.setOriginalName(originalName); element = dst; // Read and set the underlying relations. final String[] underlyingRelationIds = ((String) attributes .get("underlyingRelationIds")).split("\\s*,\\s*"); final List underRels = new ArrayList(); for (int i = 0; i < underlyingRelationIds.length; i++) underRels.add(this.mappedObjects .get(underlyingRelationIds[i])); dst.setUnderlyingRelations(underRels); // Read and set the underlying keys. final String[] underlyingKeyIds = ((String) attributes .get("underlyingKeyIds")).split("\\s*,\\s*"); final List underKeys = new ArrayList(); for (int i = 0; i < underlyingKeyIds.length; i++) underKeys.add(this.mappedObjects .get(underlyingKeyIds[i])); dst.setUnderlyingKeys(underKeys); } catch (final Exception e) { throw new SAXException(e); } } // Generic schema? else if (schema instanceof GenericSchema) try { final Table table = new GenericTable(name, schema); table.setOriginalName(originalName); element = table; } catch (final Exception e) { throw new SAXException(e); } else throw new SAXException(Resources.get("unknownSchemaType", schema.getClass().getName())); // Store it in the map of IDed objects. this.mappedObjects.put(id, element); } // Column (inside table). else if ("column".equals(eName)) { // What table does it belong to? Throw a wobbly if not inside one. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof Table)) throw new SAXException(Resources.get("columnOutsideTable")); final Table tbl = (Table) this.objectStack.peek(); // Get the id and name as these are common features. final String id = (String) attributes.get("id"); final String name = (String) attributes.get("name"); final String originalName = (String) attributes.get("originalName"); try { // DataSet table column? if (tbl instanceof DataSetTable) { // Work out underlying relation, if any. final String underlyingRelationId = (String) attributes .get("underlyingRelationId"); Relation underlyingRelation = null; if (!"null".equals(underlyingRelationId)) underlyingRelation = (Relation) this.mappedObjects .get(underlyingRelationId); final boolean dependency = Boolean.valueOf( (String) attributes.get("dependency")) .booleanValue(); // Work out type and construct appropriate column. final String type = (String) attributes.get("type"); DataSetColumn column = null; if ("concatRelation".equals(type)) column = new ConcatRelationColumn(name, (DataSetTable) tbl, underlyingRelation); else if ("schemaName".equals(type)) column = new SchemaNameColumn(name, (DataSetTable) tbl); else if ("wrapped".equals(type)) { final Column wrappedCol = (Column) this.mappedObjects .get(attributes.get("wrappedColumnId")); column = new WrappedColumn(wrappedCol, (DataSetTable) tbl, underlyingRelation); // Update name to ensure we have the same name // the file specified. column.setName(name); } else if ("inherited".equals(type)) { final DataSetColumn inheritedCol = (DataSetColumn) this.mappedObjects .get(attributes.get("inheritedColumnId")); column = new InheritedColumn((DataSetTable) tbl, inheritedCol); // Update name to ensure we have the same name // the file specified. column.setName(name); } else if ("expression".equals(type)) { column = new ExpressionColumn(name, (DataSetTable) tbl); // AliasCols, AliasNames - wrapped obj to string map final String[] aliasColumnIds = ((String) attributes .get("aliasColumnIds")).split(","); final String[] aliasNames = ((String) attributes .get("aliasNames")).split(","); for (int i = 0; i < aliasColumnIds.length; i++) { final WrappedColumn wrapped = (WrappedColumn) this.mappedObjects .get(aliasColumnIds[i]); ((ExpressionColumn) column).getAliases().put( wrapped, aliasNames[i]); } // Other properties. ((ExpressionColumn) column) .setExpression((String) attributes .get("expression")); ((ExpressionColumn) column).setGroupBy(Boolean.valueOf( (String) attributes.get("groupBy")) .booleanValue()); } else throw new SAXException(Resources.get( "unknownColumnType", type)); // Update remaining settings. column.setOriginalName(originalName); column.setDependency(dependency); element = column; } // Generic column? else if (tbl instanceof GenericTable) { final String nullable = (String) attributes.get("nullable"); final Column column = new GenericColumn(name, tbl); column.setOriginalName(originalName); column .setNullable(Boolean.valueOf(nullable) .booleanValue()); element = column; } // Others else throw new SAXException(Resources.get("unknownTableType", tbl.getClass().getName())); } catch (final Exception e) { if (e instanceof SAXException) throw (SAXException) e; else throw new SAXException(e); } // Store it in the map of IDed objects. this.mappedObjects.put(id, element); } // Primary key (inside table). else if ("primaryKey".equals(eName)) { // What table does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof Table)) throw new SAXException("pkOutsideTable"); final Table tbl = (Table) this.objectStack.peek(); // Get the ID. final String id = (String) attributes.get("id"); try { // Work out what status the key is. final ComponentStatus status = ComponentStatus .get((String) attributes.get("status")); // Decode the column IDs from the comma-separated list. final String[] pkColIds = ((String) attributes.get("columnIds")) .split("\\s*,\\s*"); final List pkCols = new ArrayList(); for (int i = 0; i < pkColIds.length; i++) pkCols.add(this.mappedObjects.get(pkColIds[i])); // Make the key. final PrimaryKey pk = new GenericPrimaryKey(pkCols); pk.setStatus(status); // Assign it to the table. tbl.setPrimaryKey(pk); element = pk; } catch (final Exception e) { throw new SAXException(e); } // Store it in the map of IDed objects. this.mappedObjects.put(id, element); } // Foreign key (inside table). else if ("foreignKey".equals(eName)) { // What table does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof Table)) throw new SAXException(Resources.get("fkOutsideTable")); final Table tbl = (Table) this.objectStack.peek(); // Get the ID and nullability. final String id = (String) attributes.get("id"); final boolean nullable = Boolean.valueOf( (String) attributes.get("nullable")).booleanValue(); try { // Work out what status it is. final ComponentStatus status = ComponentStatus .get((String) attributes.get("status")); // Decode the column IDs from the comma-separated list. final String[] fkColIds = ((String) attributes.get("columnIds")) .split("\\s*,\\s*"); final List fkCols = new ArrayList(); for (int i = 0; i < fkColIds.length; i++) fkCols.add(this.mappedObjects.get(fkColIds[i])); // Make the key. final ForeignKey fk = new GenericForeignKey(fkCols); fk.setStatus(status); fk.setNullable(nullable); // Add it to the table. tbl.addForeignKey(fk); element = fk; } catch (final Exception e) { throw new SAXException(e); } // Store it in the map of IDed objects. this.mappedObjects.put(id, element); } // Relation (anywhere). else if ("relation".equals(eName)) { // Get the ID. final String id = (String) attributes.get("id"); try { // Work out status, cardinality, and look up the keys // at either end. final ComponentStatus status = ComponentStatus .get((String) attributes.get("status")); final Cardinality card = Cardinality.get((String) attributes .get("cardinality")); final Key firstKey = (Key) this.mappedObjects.get(attributes .get("firstKeyId")); final Key secondKey = (Key) this.mappedObjects.get(attributes .get("secondKeyId")); // Make it final Relation rel = new GenericRelation(firstKey, secondKey, card); // Set its status. rel.setStatus(status); element = rel; } catch (final Exception e) { throw new SAXException(e); } // Store it in the map of IDed objects. this.mappedObjects.put(id, element); } // Masked Relation (inside dataset). else if ("maskedRelation".equals(eName)) { // What dataset does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof DataSet)) throw new SAXException(Resources .get("maskedRelationOutsideDataSet")); final DataSet w = (DataSet) this.objectStack.peek(); try { // Look up the relation. final Relation rel = (Relation) this.mappedObjects .get(attributes.get("relationId")); // Mask it. w.maskRelation(rel); element = rel; } catch (final Exception e) { throw new SAXException(e); } } // Subclass Relation (inside dataset). else if ("subclassRelation".equals(eName)) { // What dataset does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof DataSet)) throw new SAXException(Resources .get("subclassRelationOutsideDataSet")); final DataSet w = (DataSet) this.objectStack.peek(); try { // Look up the relation. final Relation rel = (Relation) this.mappedObjects .get(attributes.get("relationId")); // Subclass it. w.flagSubclassRelation(rel); element = rel; } catch (final Exception e) { throw new SAXException(e); } } // Concat Relation (inside dataset). else if ("concatRelation".equals(eName)) { // What dataset does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof DataSet)) throw new SAXException(Resources .get("concatRelationOutsideDataSet")); final DataSet w = (DataSet) this.objectStack.peek(); try { // Look up the relation. final Relation rel = (Relation) this.mappedObjects .get(attributes.get("relationId")); // Work out what concat-only type to use. final String type = (String) attributes .get("concatRelationType"); ConcatRelationType crType = null; if (type.equals("COMMA_COMMA")) crType = ConcatRelationType.COMMA_COMMA; else if (type.equals("COMMA_SPACE")) crType = ConcatRelationType.COMMA_SPACE; else if (type.equals("COMMA_TAB")) crType = ConcatRelationType.COMMA_TAB; else if (type.equals("SPACE_COMMA")) crType = ConcatRelationType.SPACE_COMMA; else if (type.equals("SPACE_SPACE")) crType = ConcatRelationType.SPACE_SPACE; else if (type.equals("SPACE_TAB")) crType = ConcatRelationType.SPACE_TAB; else if (type.equals("TAB_COMMA")) crType = ConcatRelationType.TAB_COMMA; else if (type.equals("TAB_SPACE")) crType = ConcatRelationType.TAB_SPACE; else if (type.equals("TAB_TAB")) crType = ConcatRelationType.TAB_TAB; else throw new SAXException(Resources.get( "unknownConcatRelationType", type)); // Flag it as concat-only. w.flagConcatOnlyRelation(rel, crType); element = rel; } catch (final Exception e) { if (e instanceof SAXException) throw (SAXException) e; else throw new SAXException(e); } } // Restricted Relation (inside dataset). else if ("restrictedRelation".equals(eName)) { // What dataset does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof DataSet)) throw new SAXException(Resources .get("restrictedRelationOutsideDataSet")); final DataSet w = (DataSet) this.objectStack.peek(); try { // Look up the relation. final Relation rel = (Relation) this.mappedObjects .get(attributes.get("relationId")); // Get the expression to use. final String expr = (String) attributes.get("expression"); // Get the aliases to use for the first table. final Map first = new HashMap(); final String[] firstTableAliasColumnIds = ((String) attributes .get("firstTableAliasColumnIds")).split(","); final String[] firstTableAliasNames = ((String) attributes .get("firstTableAliasNames")).split(","); for (int i = 0; i < firstTableAliasColumnIds.length; i++) { final Column wrapped = (Column) this.mappedObjects .get(firstTableAliasColumnIds[i]); first.put(wrapped, firstTableAliasNames[i]); } // Get the aliases to use for the second table. final Map second = new HashMap(); final String[] secondTableAliasColumnIds = ((String) attributes .get("secondTableAliasColumnIds")).split(","); final String[] secondTableAliasNames = ((String) attributes .get("secondTableAliasNames")).split(","); for (int i = 0; i < secondTableAliasColumnIds.length; i++) { final Column wrapped = (Column) this.mappedObjects .get(secondTableAliasColumnIds[i]); second.put(wrapped, secondTableAliasNames[i]); } // Flag it as restricted final DataSetRelationRestriction restrict = new DataSetRelationRestriction( expr, first, second); w.flagRestrictedRelation(rel, restrict); element = rel; } catch (final Exception e) { if (e instanceof SAXException) throw (SAXException) e; else throw new SAXException(e); } } // Restricted Table (inside dataset). else if ("restrictedTable".equals(eName)) { // What dataset does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof DataSet)) throw new SAXException(Resources .get("restrictedRelationOutsideDataSet")); final DataSet w = (DataSet) this.objectStack.peek(); try { // Look up the relation. final Table tbl = (Table) this.mappedObjects.get(attributes .get("tableId")); // Get the expression to use. final String expr = (String) attributes.get("expression"); // Get the aliases to use for the first table. final Map aliases = new HashMap(); final String[] aliasColumnIds = ((String) attributes .get("aliasColumnIds")).split(","); final String[] aliasNames = ((String) attributes .get("aliasNames")).split(","); for (int i = 0; i < aliasColumnIds.length; i++) { final Column wrapped = (Column) this.mappedObjects .get(aliasColumnIds[i]); aliases.put(wrapped, aliasNames[i]); } // Flag it as restricted final DataSetTableRestriction restrict = new DataSetTableRestriction( expr, aliases); w.flagRestrictedTable(tbl, restrict); element = tbl; } catch (final Exception e) { if (e instanceof SAXException) throw (SAXException) e; else throw new SAXException(e); } } // Masked Column (inside dataset). else if ("maskedColumn".equals(eName)) { // What dataset does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof DataSet)) throw new SAXException(Resources .get("maskedColumnOutsideDataSet")); final DataSet w = (DataSet) this.objectStack.peek(); try { // Look up the column. final DataSetColumn col = (DataSetColumn) this.mappedObjects .get(attributes.get("columnId")); // Mask it. w.maskDataSetColumn(col); element = col; } catch (final Exception e) { throw new SAXException(e); } } // Partition Column (inside dataset). else if ("partitionColumn".equals(eName)) { // What dataset does it belong to? Throw a wobbly if none. if (this.objectStack.empty() || !(this.objectStack.peek() instanceof DataSet)) throw new SAXException(Resources .get("partitionColumnOutsideDataSet")); final DataSet w = (DataSet) this.objectStack.peek(); try { // Look up the column. final DataSetColumn col = (DataSetColumn) this.mappedObjects .get(attributes.get("columnId")); // Work out the partition type. final String type = (String) attributes .get("partitionedColumnType"); PartitionedColumnType resolvedType = null; if ("singleValue".equals(type)) { String value = null; boolean useNull = Boolean.valueOf( (String) attributes.get("useNull")).booleanValue(); if (!useNull) value = (String) attributes.get("value"); resolvedType = new SingleValue(value, useNull); } else if ("valueCollection".equals(type)) { // Values are comma-separated. final List valueList = new ArrayList(); if (attributes.containsKey("values")) valueList.addAll(Arrays.asList(((String) attributes .get("values")).split("\\s*,\\s*"))); final boolean includeNull = Boolean.valueOf( (String) attributes.get("useNull")).booleanValue(); // Make the collection. resolvedType = new ValueCollection(valueList, includeNull); } else if ("uniqueValues".equals(type)) resolvedType = new UniqueValues(); else throw new SAXException(Resources.get( "unknownPartitionColumnType", type)); // Flag the column as partitioned. w.flagPartitionedDataSetColumn(col, resolvedType); element = col; } catch (final Exception e) { if (e instanceof SAXException) throw (SAXException) e; else throw new SAXException(e); } } // DataSet (anywhere). else if ("dataset".equals(eName)) try { // Look up the name, optimiser type, partition on schema flag, // central table reference, and mart constructor reference. // Resolve them all. final String name = (String) attributes.get("name"); final boolean invisible = Boolean.valueOf( (String) attributes.get("invisible")).booleanValue(); final Table centralTable = (Table) this.mappedObjects .get(attributes.get("centralTableId")); final String optType = (String) attributes.get("optimiser"); // Construct the dataset. final DataSet ds = new DataSet(this.constructedMart, centralTable, name); // Work out the optimiser. DataSetOptimiserType opt = null; if ("NONE".equals(optType)) opt = DataSetOptimiserType.NONE; else if ("COLUMN".equals(optType)) opt = DataSetOptimiserType.COLUMN; else if ("TABLE".equals(optType)) opt = DataSetOptimiserType.TABLE; else throw new SAXException(Resources.get( "unknownOptimiserType", optType)); // Assign the mart constructor, optimiser, and partition on // schema settings. ds.setDataSetOptimiserType(opt); ds.setInvisible(invisible); element = ds; } catch (final Exception e) { if (e instanceof SAXException) throw (SAXException) e; else throw new SAXException(e); } else throw new SAXException(Resources.get("unknownTag", eName)); // Stick the element on the stack. if (element != null) this.objectStack.push(element); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/53b7080805ba25a0b1d345968bb19d6657747fb0/MartBuilderXML.java/clean/src/java/org/biomart/builder/controller/MartBuilderXML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13591, 12, 6385, 514, 19421, 16, 727, 514, 14933, 16, 1082, 202, 6385, 514, 22914, 16, 727, 9055, 3422, 13, 1216, 14366, 288, 202, 202, 759, 4147, 596, 326, 508, 434, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13591, 12, 6385, 514, 19421, 16, 727, 514, 14933, 16, 1082, 202, 6385, 514, 22914, 16, 727, 9055, 3422, 13, 1216, 14366, 288, 202, 202, 759, 4147, 596, 326, 508, 434, 326...
db.currentWindow = w;
debugGui.currentWindow = w;
public void run() { String url = sourceInfo.getUrl(); FileWindow w = new FileWindow(db, sourceInfo); db.fileWindows.put(url, w); if (line != -1) { if (db.currentWindow != null) { db.currentWindow.setPosition(-1); } try { w.setPosition(w.textArea.getLineStartOffset(line-1)); } catch (BadLocationException exc) { try { w.setPosition(w.textArea.getLineStartOffset(0)); } catch (BadLocationException ee) { w.setPosition(-1); } } } db.desk.add(w); if (line != -1) { db.currentWindow = w; } db.menubar.addFile(url); w.setVisible(true); if (activate) { try { w.setMaximum(true); w.setSelected(true); w.moveToFront(); } catch (Exception exc) { } } }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 514, 880, 273, 1084, 966, 18, 588, 1489, 5621, 3639, 1387, 3829, 341, 273, 394, 1387, 3829, 12, 1966, 16, 1084, 966, 1769, 3639, 1319, 18, 768, 10399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 3639, 514, 880, 273, 1084, 966, 18, 588, 1489, 5621, 3639, 1387, 3829, 341, 273, 394, 1387, 3829, 12, 1966, 16, 1084, 966, 1769, 3639, 1319, 18, 768, 10399, ...
Object o = exp.evaluateScalar(evaluator); if (o == null || o == Util.nullValue) { retval.nullCount++; } else if (o instanceof Throwable) { retval.errorCount++; } else if (o instanceof Double) { retval.v.add(o); } else if (o instanceof Number) { retval.v.add(new Double(((Number) o).doubleValue())); } else { retval.v.add(o); } } return retval; }
Object o = exp.evaluateScalar(evaluator); if (o == null || o == Util.nullValue) { retval.nullCount++; } else if (o instanceof Throwable) { retval.errorCount++; } else if (o instanceof Double) { retval.v.add(o); } else if (o instanceof Number) { retval.v.add(new Double(((Number) o).doubleValue())); } else { retval.v.add(o); } } return retval; }
static SetWrapper evaluateSet(Evaluator evaluator, List members, ExpBase exp) { Util.assertPrecondition(exp != null, "exp != null"); // todo: treat constant exps as evaluateMembers() does SetWrapper retval = new SetWrapper(); for (Iterator it = members.iterator(); it.hasNext();) { Object obj = it.next(); if (obj instanceof Member[]) { evaluator.setContext((Member[])obj); } else { evaluator.setContext((Member)obj); } Object o = exp.evaluateScalar(evaluator); if (o == null || o == Util.nullValue) { retval.nullCount++; } else if (o instanceof Throwable) { // Carry on summing, so that if we are running in a // BatchingCellReader, we find out all the dependent cells we // need retval.errorCount++; } else if (o instanceof Double) { retval.v.add(o); } else if (o instanceof Number) { retval.v.add(new Double(((Number) o).doubleValue())); } else { retval.v.add(o); } } return retval; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/FunUtil.java/buggy/src/main/mondrian/olap/fun/FunUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 1000, 3611, 5956, 694, 12, 15876, 18256, 16, 987, 4833, 16, 7784, 2171, 1329, 13, 288, 202, 202, 1304, 18, 11231, 1386, 4175, 12, 2749, 480, 446, 16, 315, 2749, 480, 446, 886...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 1000, 3611, 5956, 694, 12, 15876, 18256, 16, 987, 4833, 16, 7784, 2171, 1329, 13, 288, 202, 202, 1304, 18, 11231, 1386, 4175, 12, 2749, 480, 446, 16, 315, 2749, 480, 446, 886...
int offset= selection.x + region.getOffset(); int length= selection.y - selection.x;
offset= selection.x + region.getOffset(); length= selection.y - selection.x;
public void verifyKey(VerifyEvent event) { switch (event.character) { // [SHIFT-]TAB = hop between edit boxes case 0x09: { Point selection= fViewer.getTextWidget().getSelection(); IRegion region= fViewer.getVisibleRegion(); int offset= selection.x + region.getOffset(); int length= selection.y - selection.x; // if tab was treated as a document change, would it exceed variable range? if (!LinkedPositionManager.includes(fFramePosition, offset, length)) { leave(UNINSTALL | COMMIT | UPDATE_CARET); return; } } if (event.stateMask == SWT.SHIFT) previous(); else next(); event.doit= false; break; // ENTER case 0x0D: leave(UNINSTALL | COMMIT | UPDATE_CARET); event.doit= false; break; // ESC case 0x1B: leave(UNINSTALL | COMMIT); event.doit= false; break; } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4ae8242ff673e5e222aea96ddc39c8a8d141254e/LinkedPositionUI.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/link/LinkedPositionUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3929, 653, 12, 8097, 1133, 871, 13, 288, 202, 202, 9610, 261, 2575, 18, 11560, 13, 288, 202, 202, 759, 306, 23191, 17, 65, 28899, 273, 19055, 3086, 3874, 14356, 202, 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, 3929, 653, 12, 8097, 1133, 871, 13, 288, 202, 202, 9610, 261, 2575, 18, 11560, 13, 288, 202, 202, 759, 306, 23191, 17, 65, 28899, 273, 19055, 3086, 3874, 14356, 202, 202,...
weapon.internalName = "CLPRMStreakSRM2"; weapon.mtfName = "CLPRMStreakSRM2"; weapon.mepName = "CLPRMStreakSRM2"; weapon.tdbName = "CLPRMStreakSRM2";
weapon.internalName = "CLStreakSRM2"; weapon.mtfName = "CLStreakSRM2"; weapon.mepName = "CLStreakSRM2"; weapon.tdbName = "CLStreakSRM2";
public static WeaponType createCLPROStreakSRM2() { WeaponType weapon = new WeaponType(); weapon.name = "Streak SRM 2"; weapon.internalName = "CLPRMStreakSRM2"; weapon.mtfName = "CLPRMStreakSRM2"; weapon.mepName = "CLPRMStreakSRM2"; weapon.tdbName = "CLPRMStreakSRM2"; weapon.heat = 0; weapon.damage = DAMAGE_MISSILE; weapon.rackSize = 2; weapon.ammoType = AmmoType.T_SRM_STREAK; weapon.minimumRange = 0; weapon.shortRange = 4; weapon.mediumRange = 8; weapon.longRange = 12; weapon.tonnage = 1f; weapon.criticals = 0; weapon.bv = 40; weapon.flags |= F_PROTOMECH; return weapon; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/b1d0ea6e6c07ca159a081e27be6997b0b2d63d48/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, 510, 870, 55, 8717, 22, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 510, 870, 55, 8717, 22, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315,...
listItem.addAttributeModifier(new ComponentTagAttributeModifier("class",
listItem.add(new ComponentTagAttributeModifier("class",
public void populateItem(final ListItem listItem) { final ListObject value = (ListObject) listItem.getModelObject(); // alternating row styles listItem.addAttributeModifier(new ComponentTagAttributeModifier("class", new Model(listItem.isEvenIndex() ? "even" : "odd"))); ExternalPageLink idLink = new ExternalPageLink("idLink", Page3.class); idLink.setParameter("id", value.getId()); idLink.add(new Label("id", new Integer(value.getId()))); listItem.add(idLink); ExternalPageLink emailLink = new ExternalPageLink("mailLink", Page3.class); emailLink.setParameter("action", "sendamail"); emailLink.add(new Label("email", value.getEmail())); listItem.add(emailLink); ExternalPageLink statusLink = new ExternalPageLink("statusLink", Page3.class); statusLink.setParameter("id", value.getId()); statusLink.add(new Label("status", value.getStatus())); listItem.add(statusLink); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/e6fb7d32d37fa36420123e753dbd273c88d2d77d/ExampleDecoratorLink.java/buggy/wicket-examples/src/java/wicket/examples/displaytag/ExampleDecoratorLink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 6490, 1180, 12, 6385, 987, 1180, 19859, 13, 5411, 288, 7734, 727, 31225, 460, 273, 261, 682, 921, 13, 19859, 18, 588, 1488, 921, 5621, 7734, 368, 6416, 1776, 1027, 5687, 7734,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 6490, 1180, 12, 6385, 987, 1180, 19859, 13, 5411, 288, 7734, 727, 31225, 460, 273, 261, 682, 921, 13, 19859, 18, 588, 1488, 921, 5621, 7734, 368, 6416, 1776, 1027, 5687, 7734,...
diskUsage = new DF( dir.getCanonicalPath(), conf);
diskUsage = new DF( dir, conf);
public FSDataset(File dir, Configuration conf) throws IOException { this.reserved = conf.getLong("dfs.datanode.du.reserved", 0); this.usableDiskPct = conf.getFloat("dfs.datanode.du.pct", (float) USABLE_DISK_PCT_DEFAULT); diskUsage = new DF( dir.getCanonicalPath(), conf); this.data = new File(dir, "data"); if (! data.exists()) { data.mkdirs(); } this.tmp = new File(dir, "tmp"); if (tmp.exists()) { FileUtil.fullyDelete(tmp); } this.tmp.mkdirs(); this.dirTree = new FSDir(data); }
51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/2855c1a1d7fad0c6f71a62a2135df2c6dece1f03/FSDataset.java/buggy/src/java/org/apache/hadoop/dfs/FSDataset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9247, 10656, 12, 812, 1577, 16, 4659, 2195, 13, 1216, 1860, 288, 377, 202, 202, 2211, 18, 18898, 273, 2195, 18, 588, 3708, 2932, 12381, 18, 3404, 14085, 18, 2544, 18, 18898, 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, 9247, 10656, 12, 812, 1577, 16, 4659, 2195, 13, 1216, 1860, 288, 377, 202, 202, 2211, 18, 18898, 273, 2195, 18, 588, 3708, 2932, 12381, 18, 3404, 14085, 18, 2544, 18, 18898, 3113, ...
return null;
return JaxenConstants.EMPTY_ITERATOR;
public Iterator getParentAxisIterator(Object contextNode) { Object parent = null; if ( contextNode instanceof Document ) { return null; } else if ( contextNode instanceof Element ) { parent = ((Element)contextNode).getParent(); if ( parent == null ) { if ( ((Element)contextNode).isRootElement() ) { parent = ((Element)contextNode).getDocument(); } } } else if ( contextNode instanceof Attribute ) { parent = ((Attribute)contextNode).getParent(); } else if ( contextNode instanceof XPathNamespace ) { parent = ((XPathNamespace)contextNode).getJDOMElement(); } else if ( contextNode instanceof ProcessingInstruction ) { parent = ((ProcessingInstruction)contextNode).getParent(); } else if ( contextNode instanceof Comment ) { parent = ((Comment)contextNode).getParent(); } else if ( contextNode instanceof Text ) { parent = ((Text)contextNode).getParent(); } if ( parent != null ) { return new SingleObjectIterator( parent ); } return null; }
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/6408581f63f5f8c1357acf7b22b2bb397155ac4d/DocumentNavigator.java/buggy/jaxen/src/java/main/org/jaxen/jdom/DocumentNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 5089, 6558, 3198, 12, 921, 819, 907, 13, 565, 288, 3639, 1033, 982, 273, 446, 31, 3639, 309, 261, 819, 907, 1276, 4319, 262, 3639, 288, 5411, 327, 25824, 275, 2918, 18, 1362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4498, 5089, 6558, 3198, 12, 921, 819, 907, 13, 565, 288, 3639, 1033, 982, 273, 446, 31, 3639, 309, 261, 819, 907, 1276, 4319, 262, 3639, 288, 5411, 327, 25824, 275, 2918, 18, 1362...
test.assertEquals("263793.22", result);
test.assertEquals("263,793.22", result);
public void testMax(FoodMartTestCase test) { String result = test.executeExpr( "MAX({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("263793.22", result); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/9cdd89dca2920fdda7be6513ed3b73ff3e366a53/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1842, 2747, 12, 42, 4773, 49, 485, 4709, 2449, 1842, 13, 288, 6862, 202, 780, 563, 273, 1842, 18, 8837, 4742, 12, 6862, 1082, 202, 6, 6694, 12590, 63, 2257, 8009, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1842, 2747, 12, 42, 4773, 49, 485, 4709, 2449, 1842, 13, 288, 6862, 202, 780, 563, 273, 1842, 18, 8837, 4742, 12, 6862, 1082, 202, 6, 6694, 12590, 63, 2257, 8009, 63, ...
int user_permission_set_id = Integer.parseInt((String)permissions.elementAt(0)) ; int user_permission_set = Integer.parseInt((String)permissions.elementAt(1)) ;
int user_permission_set_id = Integer.parseInt(permissions[0]) ; int user_permission_set = Integer.parseInt(permissions[1]) ;
public String getMenuButtons(String meta_id, User user) { // Get the users language prefix String lang_prefix = user.getLangPrefix() ; // Find out what permissions the user has String sqlStr = "GetUserPermissionSet (?,?)" ; DBConnect dbc = new DBConnect(m_conPool,sqlStr) ; String[] sqlAry = {String.valueOf(meta_id),String.valueOf(user.getUserId())} ; dbc.setProcedure(sqlStr,sqlAry) ; Vector permissions = (Vector)dbc.executeProcedure() ; dbc.clearResultSet() ; dbc.closeConnection() ; if (permissions.size() == 0) { return "" ; } StringBuffer tempbuffer = null ; StringBuffer templatebuffer = null ; StringBuffer superadmin = null ; int doc_type = getDocType(Integer.parseInt(meta_id)) ; try { String tempbuffer_filename = lang_prefix + "/admin/adminbuttons/adminbuttons"+doc_type+".html" ; String templatebuffer_filename = lang_prefix + "/admin/adminbuttons/adminbuttons.html" ; String superadmin_filename = lang_prefix + "/admin/adminbuttons/superadminbutton.html" ; tempbuffer = new StringBuffer(fileCache.getCachedFileString(new File(m_TemplateHome, tempbuffer_filename))) ; templatebuffer = new StringBuffer(fileCache.getCachedFileString(new File(m_TemplateHome, templatebuffer_filename))) ; superadmin = new StringBuffer(fileCache.getCachedFileString(new File(m_TemplateHome, superadmin_filename))) ; } catch(IOException e) { log.error(e.toString()); return "" ; } int user_permission_set_id = Integer.parseInt((String)permissions.elementAt(0)) ; int user_permission_set = Integer.parseInt((String)permissions.elementAt(1)) ; // Replace #getMetaId# with meta_id String doctype = dbc.sqlQueryStr("select type from doc_types where doc_type = "+doc_type) ; imcode.util.AdminButtonParser doc_tags = new imcode.util.AdminButtonParser(new File(m_TemplateHome, lang_prefix + "/admin/adminbuttons/adminbutton"+doc_type+"_").toString(), ".html",user_permission_set_id,user_permission_set) ; doc_tags.put("getMetaId",meta_id) ; imcode.util.Parser.parseTags(tempbuffer,'#'," <>\n\r\t",(Map)doc_tags,true,1) ; imcode.util.AdminButtonParser tags = new imcode.util.AdminButtonParser( new File(m_TemplateHome, lang_prefix + "/admin/adminbuttons/adminbutton_").toString(), ".html",user_permission_set_id,user_permission_set) ; tags.put("getMetaId",meta_id) ; tags.put("doc_buttons",tempbuffer.toString()) ; tags.put("doc_type",doctype) ; Vector temp = (Vector)dbc.sqlQuery("select user_id from user_roles_crossref where role_id = 0 and user_id = "+user.getUserId()) ; if ( temp.size() > 0 ) { tags.put("superadmin",superadmin.toString()) ; } else { tags.put("superadmin","") ; } imcode.util.Parser.parseTags(templatebuffer,'#'," <>\n\r\t",(Map)tags,true,1) ; return templatebuffer.toString() ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/7b912989d07daa439cc5a28e1a5b8db2bbf2b9c0/IMCService.java/buggy/server/src/imcode/server/IMCService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 25877, 14388, 12, 780, 2191, 67, 350, 16, 2177, 729, 13, 288, 202, 759, 968, 326, 3677, 2653, 1633, 202, 780, 3303, 67, 3239, 273, 729, 18, 588, 7275, 2244, 1435, 274, 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, 377, 1071, 514, 25877, 14388, 12, 780, 2191, 67, 350, 16, 2177, 729, 13, 288, 202, 759, 968, 326, 3677, 2653, 1633, 202, 780, 3303, 67, 3239, 273, 729, 18, 588, 7275, 2244, 1435, 274, 202, ...
if (imageCount != sizeZ * sizeC * sizeT / (rgb ? 3 : 1)) {
if (imageCount != sizeZ * sizeC * sizeT / ((rgb && !separate) ? sizeC : 1)) {
public boolean testRead(String[] args) throws FormatException, IOException { String id = null; boolean pixels = true; boolean stitch = false; boolean separate = false; if (args != null) { for (int i=0; i<args.length; i++) { if (args[i].startsWith("-")) { if (args[i].equals("-nopix")) pixels = false; else if (args[i].equals("-stitch")) stitch = true; else if (args[i].equals("-separate")) separate = true; else System.out.println("Ignoring unknown command flag: " + args[i]); } else { if (id == null) id = args[i]; else System.out.println("Ignoring unknown argument: " + args[i]); } } } if (id == null) { String className = getClass().getName(); System.out.println("To test read a file in " + format + " format, run:"); System.out.println(" java " + className + " [-nopix] [-stitch] [-separate] in_file"); return false; } // check type System.out.print("Checking " + format + " format "); System.out.println(isThisType(id) ? "[yes]" : "[no]"); // read pixels if (pixels) { System.out.print("Reading " + (stitch ? FilePattern.findPattern(new File(id)) : id) + " pixel data "); long s1 = System.currentTimeMillis(); FileStitcher fs = new FileStitcher(this); ChannelMerger cm = new ChannelMerger(stitch ? fs : this); cm.setSeparated(separate); int num = cm.getImageCount(id); System.out.print("(" + num + ") "); long e1 = System.currentTimeMillis(); BufferedImage[] images = new BufferedImage[num]; long s2 = System.currentTimeMillis(); for (int i=0; i<num; i++) { images[i] = cm.openImage(id, i); System.out.print("."); } long e2 = System.currentTimeMillis(); System.out.println(" [done]"); // output timing results float sec = (e2 - s1) / 1000f; float avg = (float) (e2 - s2) / num; long initial = e1 - s1; System.out.println(sec + "s elapsed (" + avg + "ms per image, " + initial + "ms overhead)"); // display pixels in image viewer ImageViewer viewer = new ImageViewer(); viewer.setImages(id, format, images); viewer.show(); } // read metadata System.out.println(); System.out.print("Reading " + id + " metadata "); int imageCount = getImageCount(id); boolean rgb = isRGB(id); int sizeX = getSizeX(id); int sizeY = getSizeY(id); int sizeZ = getSizeZ(id); int sizeC = getSizeC(id); int sizeT = getSizeT(id); boolean little = isLittleEndian(id); String dimOrder = getDimensionOrder(id); Hashtable meta = getMetadata(id); System.out.println("[done]"); // output basic metadata System.out.println("-----"); System.out.println("Image count = " + imageCount); System.out.print("RGB = " + rgb); if (rgb && separate) System.out.print(" (separated)"); else if (!rgb && !separate) System.out.print(" (merged)"); System.out.println(); System.out.println("Width = " + sizeX); System.out.println("Height = " + sizeY); System.out.println("SizeZ = " + sizeZ); System.out.println("SizeC = " + sizeC); System.out.println("SizeT = " + sizeT); if (imageCount != sizeZ * sizeC * sizeT / (rgb ? 3 : 1)) { System.out.println("************ Warning: ZCT mismatch ************"); } System.out.println("Endianness = " + (little ? "intel (little)" : "motorola (big)")); System.out.println("Dimension order = " + dimOrder); System.out.println("-----"); // output metadata table String[] keys = (String[]) meta.keySet().toArray(new String[0]); Arrays.sort(keys); for (int i=0; i<keys.length; i++) { System.out.print(keys[i] + ": "); System.out.println(getMetadataValue(id, keys[i])); } System.out.println(); // output OME-XML MetadataStore ms = getMetadataStore(); if (ms instanceof OMEXMLMetadataStore) { OMEXMLMetadataStore xmlStore = (OMEXMLMetadataStore) ms; System.out.println(xmlStore.dumpXML()); System.out.println(); } return true; }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/bf3ce8d9a45bb838d2e1f9b22503ef743a347466/FormatReader.java/buggy/loci/formats/FormatReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1842, 1994, 12, 780, 8526, 833, 13, 1216, 4077, 503, 16, 1860, 288, 565, 514, 612, 273, 446, 31, 565, 1250, 8948, 273, 638, 31, 565, 1250, 384, 1437, 273, 629, 31, 565, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1842, 1994, 12, 780, 8526, 833, 13, 1216, 4077, 503, 16, 1860, 288, 565, 514, 612, 273, 446, 31, 565, 1250, 8948, 273, 638, 31, 565, 1250, 384, 1437, 273, 629, 31, 565, 12...
if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("consumeExport", new Object[] {"exportId", exportId} ));
if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("consumeExport", new Object[] { "exportId", exportId })); } Integer id = Integer.valueOf(exportId); ChannelFrame cframe = findChannelFrame(id); cframe.refCount--; CommChannel commChannel = new CommChannel(cframe.type); commChannel.setId(id); commChannel.setDescription("EXPORTED CHANNEL"); return commChannel;
public CommChannel consumeExport(String exportId) { if (__log.isTraceEnabled()) { __log.trace(ObjectPrinter.stringifyMethodEnter("consumeExport", new Object[] {"exportId", exportId} )); } Integer id = Integer.valueOf(exportId); ChannelFrame cframe = findChannelFrame(id); cframe.refCount--; CommChannel commChannel = new CommChannel(cframe.type); commChannel.setId(id); commChannel.setDescription("EXPORTED CHANNEL"); return commChannel; }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/9be6cc5ab22ce8d4b2a130072325019353adb38c/ExecutionQueueImpl.java/clean/jacob/src/main/java/org/apache/ode/jacob/vpu/ExecutionQueueImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 16854, 2909, 7865, 6144, 12, 780, 3359, 548, 13, 288, 565, 309, 261, 972, 1330, 18, 291, 3448, 1526, 10756, 288, 1377, 1001, 1330, 18, 5129, 12, 921, 12149, 18, 25650, 1305, 10237, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16854, 2909, 7865, 6144, 12, 780, 3359, 548, 13, 288, 565, 309, 261, 972, 1330, 18, 291, 3448, 1526, 10756, 288, 1377, 1001, 1330, 18, 5129, 12, 921, 12149, 18, 25650, 1305, 10237, ...
private void putActiveBonusMap(final String aKey, final String aVal, Map<String, String> bonusMap)
private void putActiveBonusMap(final String aKey, final String aVal, Map<String, String> bonusMap)
private void putActiveBonusMap(final String aKey, final String aVal, Map<String, String> bonusMap) { // // This is a bad idea...will add whatever the bonus is to ALL skills // if (aKey.equalsIgnoreCase("SKILL.LIST")) { displayUpdate = true; return; } bonusMap.put(aKey, aVal); //setDirty(true); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1378, 3896, 38, 22889, 863, 12, 6385, 514, 279, 653, 16, 727, 514, 279, 3053, 16, 1635, 32, 780, 16, 514, 34, 324, 22889, 863, 13, 202, 95, 202, 202, 759, 202, 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, 1152, 918, 1378, 3896, 38, 22889, 863, 12, 6385, 514, 279, 653, 16, 727, 514, 279, 3053, 16, 1635, 32, 780, 16, 514, 34, 324, 22889, 863, 13, 202, 95, 202, 202, 759, 202, 202, ...
menu.add( refreshAction ); } IAction addLibraryAction = new AddLibraryAction( ); menu.add( addLibraryAction ); } else if ( library != null ) { IAction addAction = new AddSelectedLibToCurrentReportDesignAction( treeViewer ); if ( addAction.isEnabled( ) ) { menu.add( addAction ); } IAction removeLibraryAction = new RemoveLibraryAction( treeViewer ); if ( removeLibraryAction.isEnabled( ) ) { menu.add( removeLibraryAction ); } menu.add( new Separator( ) ); IAction refreshAction = new RefreshLibExplorerAction( treeViewer ); if ( refreshAction.isEnabled( ) ) { menu.add( refreshAction );
if ( ( (File) selected ).isDirectory( ) ) { addLibraryAction.setFolder( (File) selected ); menu.add( addLibraryAction ); } else { addLibraryAction.setFolder( ( (File) selected ).getParentFile( ) ); menu.add( addLibraryAction ); if ( useLibraryAction.isEnabled( ) ) { menu.add( useLibraryAction ); } }
public void buildContextMenu( IMenuManager menu ) { TreeViewer treeViewer = (TreeViewer) getViewer( ); if ( Policy.TRACING_MENU_SHOW ) { System.out.println( "Menu(for Views) >> Shows for library" ); //$NON-NLS-1$ } menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) ); ISelectionProvider struViewer = (ISelectionProvider) getViewer( ); IStructuredSelection selection = (IStructuredSelection) struViewer.getSelection( ); LibraryHandle library = getSelectedLibrary( ); if ( selection == null || selection.getFirstElement( ) == null ) { IAction refreshAction = new RefreshLibExplorerAction( treeViewer ); if ( refreshAction.isEnabled( ) ) { menu.add( refreshAction ); } IAction addLibraryAction = new AddLibraryAction( ); menu.add( addLibraryAction ); } // else if something is selected, but not library else if ( library != null ) { IAction addAction = new AddSelectedLibToCurrentReportDesignAction( treeViewer ); if ( addAction.isEnabled( ) ) { menu.add( addAction ); } IAction removeLibraryAction = new RemoveLibraryAction( treeViewer ); if ( removeLibraryAction.isEnabled( ) ) { menu.add( removeLibraryAction ); } menu.add( new Separator( ) ); IAction refreshAction = new RefreshLibExplorerAction( treeViewer ); if ( refreshAction.isEnabled( ) ) { menu.add( refreshAction ); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/6641c59048786e53d20d8f95fb832cee7bda2ad4/LibraryExplorerContextMenuProvider.java/clean/UI/org.eclipse.birt.report.designer.ui.lib.explorer/src/org/eclipse/birt/report/designer/ui/lib/explorer/LibraryExplorerContextMenuProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1361, 27315, 12, 467, 4599, 1318, 3824, 262, 202, 95, 202, 202, 2471, 18415, 2151, 18415, 273, 261, 2471, 18415, 13, 8893, 264, 12, 11272, 202, 202, 430, 261, 7436, 18, 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, 482, 918, 1361, 27315, 12, 467, 4599, 1318, 3824, 262, 202, 95, 202, 202, 2471, 18415, 2151, 18415, 273, 261, 2471, 18415, 13, 8893, 264, 12, 11272, 202, 202, 430, 261, 7436, 18, 4...
try { fSuperMethod= new IMethod[1]; fSuperMethod[0]= StubUtility.getOverridableConstructors(type)[superIndex]; } catch (CoreException e) { }
fSuperConstructor= superConstructor; fOmitSuper= false;
public AddCustomConstructorOperation(IType type, CodeGenerationSettings settings, IField[] selected, boolean save, IJavaElement insertPosition, int superIndex) { super(); fType= type; fDoSave= save; fConstructorCreated= null; fSettings= settings; fSelected= selected; fInsertPosition= insertPosition; try { fSuperMethod= new IMethod[1]; fSuperMethod[0]= StubUtility.getOverridableConstructors(type)[superIndex]; } catch (CoreException e) { } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/d3af5720e760f3fd3c9a409e01df54e39c90697b/AddCustomConstructorOperation.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/AddCustomConstructorOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1436, 3802, 6293, 2988, 12, 45, 559, 618, 16, 3356, 13842, 2628, 1947, 16, 467, 974, 8526, 3170, 16, 1250, 1923, 16, 467, 5852, 1046, 2243, 2555, 16, 509, 2240, 1016, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1436, 3802, 6293, 2988, 12, 45, 559, 618, 16, 3356, 13842, 2628, 1947, 16, 467, 974, 8526, 3170, 16, 1250, 1923, 16, 467, 5852, 1046, 2243, 2555, 16, 509, 2240, 1016, 13, 288,...
m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_ENTITYREF, name);
{ flushMyWriter(); m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_ENTITYREF, name); }
protected void fireStartEntity(String name) throws org.xml.sax.SAXException { flushMyWriter(); if (m_tracer != null) m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_ENTITYREF, name); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/35e91d491585c4271c328d54fab30a13cc58d011/SerializerBase.java/clean/src/org/apache/xml/serializer/SerializerBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4452, 1685, 1943, 12, 780, 508, 13, 3639, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 565, 288, 3639, 3663, 12062, 2289, 5621, 3639, 309, 261, 81, 67, 313, 10598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 1685, 1943, 12, 780, 508, 13, 3639, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 565, 288, 3639, 3663, 12062, 2289, 5621, 3639, 309, 261, 81, 67, 313, 10598, ...
index +=2;
index += 2;
protected void printCDATAText( String text ) throws IOException { int length = text.length(); char ch; for ( int index = 0 ; index < length; ++index ) { ch = text.charAt( index ); if ( ch ==']' && index + 2 < length && text.charAt (index + 1) == ']' && text.charAt (index + 2) == '>' ) { // check for ']]>' // DOM Level 3 Load and Save // if (fFeatures != null && fDOMErrorHandler != null) { if (!getFeature(Constants.DOM_SPLIT_CDATA)) { // issue fatal error String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.SERIALIZER_DOMAIN, "EndingCDATA", null); modifyDOMError(msg, DOMError.SEVERITY_FATAL_ERROR, fCurrentNode); boolean continueProcess = fDOMErrorHandler.handleError(fDOMError); if (!continueProcess) { throw new IOException(); } } else { // issue warning String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.SERIALIZER_DOMAIN, "SplittingCDATA", null); modifyDOMError(msg, DOMError.SEVERITY_WARNING, fCurrentNode); fDOMErrorHandler.handleError(fDOMError); } } // split CDATA section _printer.printText("]]]]><![CDATA[>"); index +=2; continue; } if (!XMLChar.isValid(ch)) { // check if it is surrogate if (++index <length) { surrogates(ch, text.charAt(index)); } else { fatalError("The character '"+(char)ch+"' is an invalid XML character"); } continue; } else { if ( ( ch >= ' ' && _encodingInfo.isPrintable((char)ch) && ch != 0xF7 ) || ch == '\n' || ch == '\r' || ch == '\t' ) { _printer.printText((char)ch); } else { // The character is not printable -- split CDATA section _printer.printText("]]>&#x"); _printer.printText(Integer.toHexString(ch)); _printer.printText(";<![CDATA["); } } } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/546f416633ed944307d047af867715947693cfc1/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1172, 10160, 789, 789, 408, 12, 514, 977, 262, 1216, 1860, 288, 3639, 509, 769, 273, 977, 18, 2469, 5621, 3639, 1149, 462, 31, 3639, 364, 261, 509, 770, 273, 374, 274, 770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 10160, 789, 789, 408, 12, 514, 977, 262, 1216, 1860, 288, 3639, 509, 769, 273, 977, 18, 2469, 5621, 3639, 1149, 462, 31, 3639, 364, 261, 509, 770, 273, 374, 274, 770, ...
option.self_damage *= .25;
option.self_damage *= .5;
public EntityState[] calculateMove(Entity entity) { Object[] enemy_array = Compute.vectorToArray(game.getValidTargets(entity)); CEntity self = this.enemies.get(entity); EntityState current = self.old; Object[] move_array; if (entity.isSelectable() && !self.moved) { move_array = self.getAllMoves().toArray(); } else { move_array = new Object[] {current}; } Compute.randomize(move_array); //this helps produce a better mix of things to do EntityState.Table pass = new EntityState.Table(); Vector fm = new Vector(); for (Iterator i = this.getEntitiesOwned().iterator(); i.hasNext();){ Entity en = (Entity)i.next(); if (en.getId() != entity.getId()) { fm.add(new EntityState((this.enemies.get(en)).old)); } } Object[] friend_move_array = fm.toArray(); /*************************************************** * first pass, filter moves based upon present case ****************************************************/ for (int i = 0; i < move_array.length + friend_move_array.length; i++) { // for each state (could some prefiltering be done?) EntityState option = null; if (i >= move_array.length) { option = (EntityState)friend_move_array[i - move_array.length]; } else { option = (EntityState)move_array[i]; } option.setState(); if (option.damages == null) option.damages = new double[enemy_array.length]; if (option.threats == null) option.threats = new double[enemy_array.length]; if (option.max_threats == null) option.max_threats = new double[enemy_array.length]; if (option.min_damages == null) option.min_damages = new double[enemy_array.length]; for (int e = 0; e < enemy_array.length; e++) { // for each enemy Entity en = (Entity)enemy_array[e]; CEntity enemy = this.enemies.get(en); int enemy_hit_arc = Compute.getThreatHitArc(enemy.old.curPos, enemy.old.curFacing, option.curPos); int self_hit_arc = Compute.getThreatHitArc(option.curPos, option.curFacing, enemy.old.curPos); int[] modifiers = option.getModifiers(enemy.entity); if (!enemy.entity.isImmobile() && modifiers[EntityState.DEFENCE_MOD] != ToHitData.IMPOSSIBLE) { self.engaged = true; int mod = modifiers[EntityState.DEFENCE_MOD]; double max = option.getMaxModifiedDamage(enemy.old, this.enemies.get(en), mod, modifiers[EntityState.DEFENCE_PC]); if (en.isSelectable()) { // let him turn a little enemy.old.curFacing = (enemy.old.curFacing+1)%6; max = Math.max(option.getMaxModifiedDamage(enemy.old, this.enemies.get(en), mod+1, modifiers[EntityState.DEFENCE_PC]),max); enemy.old.curFacing = (enemy.old.curFacing+4)%6; max = Math.max(option.getMaxModifiedDamage(enemy.old, this.enemies.get(en), mod+1, modifiers[EntityState.DEFENCE_PC]),max); //return to original facing enemy.old.curFacing = (enemy.old.curFacing+1)%6; } max = self.getThreatUtility(max, self_hit_arc); if (enemy.entity.isProne()) max *= .6; option.threats[e] = max; option.max_threats[e] = max; option.threat += max; option.tv.add(max+" Threat "+e+"\n"); } //damage reasoning /* As a first approximation, take the maximum to a single target */ if (!option.isPhysical) { if (modifiers[EntityState.ATTACK_MOD] != ToHitData.IMPOSSIBLE) { self.engaged = true; double max = enemy.old.getMaxModifiedDamage(option, self, modifiers[0], modifiers[EntityState.ATTACK_PC]); max = enemy.getThreatUtility(max, enemy_hit_arc); option.damages[e] = max; option.min_damages[e] = max; option.tv.add(max+" Damage "+e+"\n"); option.damage = Math.max(max, option.damage); } } else { try { if (option.PhysicalTarget.entity.getId() == enemy.entity.getId()) { if (!option.PhysicalTarget.isPhysicalTarget) { ToHitData toHit = null; double self_threat = 0; double damage = 0; if (option.isJumping) { toHit = Compute.toHitDfa(game, option.entity.getId(), option.PhysicalTarget.entity.getId(), option.curPos); damage = 2*Compute.getDfaDamageFor(option.entity); self_threat = option.centity.getThreatUtility(Compute.getDfaDamageTakenBy(option.entity), CEntity.SIDE_REAR)*Compute.oddsAbove(toHit.getValue())/100; self_threat += option.centity.getThreatUtility(.1*self.entity.getWeight(), CEntity.SIDE_REAR); self_threat *= 100/option.centity.entity.getWeight(); } else { self.old.setState(); MovementData md = option.getMovementData(); toHit = Compute.toHitCharge(game, option.entity.getId(), option.PhysicalTarget.entity.getId(), md); damage = Compute.getChargeDamageFor(option.entity, md.getHexesMoved()); self_threat = option.centity.getThreatUtility(Compute.getChargeDamageTakenBy(option.entity, option.PhysicalTarget.entity), CEntity.SIDE_FRONT)*(1-Compute.oddsAbove(toHit.getValue())/100); option.setState(); } damage = option.PhysicalTarget.getThreatUtility(damage, toHit.getSideTable())*Compute.oddsAbove(toHit.getValue())/100; //these are always risky... if (toHit.getValue() > 10) damage = 0; option.damages[e] = damage; option.min_damages[e] = damage; option.damage = damage; option.self_threat += self_threat; } else { option.threat += Integer.MAX_VALUE; } } } catch (Exception e1) { e1.printStackTrace(); option.threat += Integer.MAX_VALUE; } } } //-- end while of each enemy self.old.setState(); } //-- end while of first pass Arrays.sort(move_array); int filter = 50; if (friend_move_array.length > 1) { filter = 100; } //top 100 utility, mostly conservative for (int i = 0; i < filter && i < move_array.length ; i++) { pass.put((EntityState)move_array[i]); } Arrays.sort(move_array, new Comparator() { public int compare(Object obj, Object obj1) { if (((EntityState)obj).damage - .5*((EntityState)obj).getUtility() > ((EntityState)obj1).damage - .5*((EntityState)obj1).getUtility()) { return -1; } return 1; } }); //top 100 damage for (int i = 0; i < filter && i < move_array.length; i++) { pass.put((EntityState)move_array[i]); } //pass now contains 100 ~ 200 moves /********************************************************* * New second pass, combination moves/firing * based only on the present case, since only one mech moves * at a time ********************************************************/ if (friend_move_array.length > 1) { move_array = pass.values().toArray(); pass.clear(); double[] combo = new double[enemy_array.length]; for (int j = 0; j < move_array.length; j++) { EntityState option = (EntityState)move_array[j]; for (int e = 0; e < enemy_array.length; e++) { // for each enemy Entity en = (Entity)enemy_array[e]; CEntity enemy = this.enemies.get(en); if (option.damages[e] > 0) { for (int f = 0; f < friend_move_array.length; f++) { EntityState foption = (EntityState)friend_move_array[f]; double threat_divisor = 1; if (foption.damages[e] > 0) { option.damage += (enemy.canMove()?.1:.2)*option.damages[e] ; threat_divisor += foption.centity.canMove()?.4:.6; } option.threat -= option.threats[e]; //this is most important option.threats[e] /= threat_divisor; option.threat += option.threats[e]; } } } } Arrays.sort(move_array); filter = 50; //top utility, mostly conservative for (int i = 0; i < filter && i < move_array.length ; i++) { pass.put((EntityState)move_array[i]); } Arrays.sort(move_array, new Comparator() { public int compare(Object obj, Object obj1) { if (((EntityState)obj).damage - .5*((EntityState)obj).getUtility() > ((EntityState)obj1).damage - .5*((EntityState)obj1).getUtility()) { return -1; } return 1; } }); //top 50 damage for (int i = 0; i < filter && i < move_array.length; i++) { pass.put((EntityState)move_array[i]); } } /********************************************************** * third pass, (not so bad) oppurtunistic planner * gives preference to good ranges/defensive positions * based upon the mech characterization ***********************************************************/ move_array = pass.values().toArray(); pass.clear(); for (int j = 0; j < move_array.length; j++) { EntityState option = (EntityState)move_array[j]; option.setState(); double adjustment = 0; double temp_adjustment = 0; for (int e = 0; e < enemy_array.length; e++) { // for each enemy Entity en = (Entity)enemy_array[e]; CEntity enemy = this.enemies.get(en); int current_range = self.old.curPos.distance(enemy.old.curPos); int range = option.curPos.distance(enemy.old.curPos); if (range > self.long_range) { temp_adjustment += (!(range < enemy.long_range)?.5:1)*(1+self.RangeDamages[self.Range])*(Math.max(range - self.long_range - .5*Math.max(self.jumpMP, .8*self.runMP),0)); } //this is wrong on larger maps... //a mech must choose which other mechs to be engaged with or stay in the middle if ((self.Range == self.RANGE_SHORT && (current_range > 5 || range > 9)) || (self.RangeDamages[self.RANGE_SHORT] < 4 && current_range > 10)) { temp_adjustment += ((enemy.Range > self.RANGE_SHORT)?.5:1)*(Math.max(1+self.RangeDamages[self.RANGE_SHORT], 5))*Math.max(range -.5*Math.max(self.jumpMP, .8*self.runMP),0); } else if (self.Range == self.RANGE_MEDIUM) { temp_adjustment += ((current_range < 6 || current_range > 12)?1:.25)*((enemy.Range > self.RANGE_SHORT)?.5:1)*(1+self.RangeDamages[self.RANGE_MEDIUM])*Math.abs(range - .5*Math.max(self.jumpMP, .8*self.runMP)); } else if (option.damage < .25*self.RangeDamages[self.RANGE_LONG]) { temp_adjustment += ((range < 10)?.25:1)*(Math.max(1+self.RangeDamages[self.RANGE_LONG],3))*(1/(1+option.threat)); } adjustment += Math.sqrt(temp_adjustment*enemy.bv/self.bv); //I would always like to face the opponent (the most open direction) if (!(enemy.entity.isProne() || enemy.entity.isImmobile()) && Compute.getThreatHitArc(option.curPos, option.curFacing, enemy.entity.getPosition()) != CEntity.SIDE_FRONT) { int fa = Compute.getFiringAngle(option.curPos, option.curFacing, enemy.entity.getPosition()); if (fa > 90 && fa < 270) { int distance = option.curPos.distance(enemy.old.curPos); double mod = 1; if (fa > 130 && fa < 240) mod = 2; mod *= (Math.max(self.jumpMP, .8*self.runMP) < 5)?4:2*Math.sqrt(((double)self.bv)/enemy.bv)/((double)distance/6 + 1); option.self_threat += mod; option.tv.add(mod + " " + fa + " Back to enemy\n"); } } } adjustment *= self.overall_armor_percent*self.strategy.attack/enemy_array.length; //fix for hiding in level 2 water //To a greedy bot, it always seems nice to stay in here... Hex h = game.board.getHex(option.curPos); if (h.contains(Terrain.WATER) && h.surface() > (self.entity.elevation() + ((option.isProne)?0:1))) { double mod = (self.entity.heat + option.getMovementheatBuildup() <= 7)?100:30; adjustment += self.bv/mod; } //add them in now, then re-add them later if (self.Range > self.RANGE_SHORT) { int ele_dif = game.board.getHex(option.curPos).getElevation() - game.board.getHex(self.old.curPos).getElevation(); adjustment -= (Math.max(ele_dif, 0) + 1)*((double)Compute.getTargetTerrainModifier(game, option.entity.getId()).getValue() + 1); } //close the range if nothing else and healthy if (option.damage < .25*self.RangeDamages[self.Range] && adjustment < .25*self.RangeDamages[self.Range] && self.overall_armor_percent > .25) { for (int e = 0; e < enemy_array.length; e++) { // for each enemy Entity en = (Entity)enemy_array[e]; CEntity enemy = this.enemies.get(en); int range = option.curPos.distance(enemy.old.curPos); adjustment += Math.sqrt((double)range*enemy.bv/(double)self.bv)/enemy_array.length; } } if (option.damage < .25*(1+self.RangeDamages[self.Range])) { option.self_damage = -2*adjustment; } else if (option.damage < .5*(1+self.RangeDamages[self.Range])) { option.self_damage = -adjustment; } option.tv.add(option.self_damage+" Initial Damage Adjustment " +"\n"); } Arrays.sort(move_array); //top 30 utility for (int j = 0; j < 30 && j < move_array.length; j++) { pass.put((EntityState)move_array[j]); } Arrays.sort(move_array, new Comparator() { public int compare(Object obj, Object obj1) { if (((EntityState)obj).damage - ((EntityState)obj).getUtility() > ((EntityState)obj1).damage - ((EntityState)obj1).getUtility()) { return -1; } return 1; } }); //top 30 damage for (int i = 0; i < 30 && i < move_array.length ; i++) { pass.put((EntityState)move_array[i]); } //reduce self threat, and add bonus for terrain for (com.sun.java.util.collections.Iterator i = pass.values().iterator(); i.hasNext();) { EntityState option = (EntityState)i.next(); option.setState(); option.self_damage *= .25; option.self_threat *= .5; double terrain = 2*((double)Compute.getTargetTerrainModifier(game, option.entity.getId()).getValue()); option.tv.add(terrain+" Terrain Adjusment " +"\n"); option.self_threat -= terrain; } move_array = pass.values().toArray(); pass.clear(); //pass should contains 30 ~ 60 /****************************************** * fourth pass, speculation on top moves * use averaging to filter ********************************************/ for (int e = 0; e < enemy_array.length; e++) { // for each enemy Entity en = (Entity)enemy_array[e]; CEntity enemy = this.enemies.get(en); //engage in speculation on "best choices" when you have lost the iniative if (enemy.canMove()) { Object[] enemy_move_array = enemy.calculateCounterMoves().toArray(); Vector to_check = new Vector(); //check some enemy moves for (int j = 0; j < move_array.length; j++) { EntityState option = null; to_check.clear(); option = (EntityState)move_array[j]; option.setState(); //check for damning hexes specifically //could also look at intervening defensive Vector coord = new Vector(); Coords back = option.curPos.translated((option.curFacing + 3) % 6); coord.add(back); coord.add(back.translated((option.curFacing + 2) % 6)); coord.add(back.translated((option.curFacing + 4) % 6)); coord.add(option.curPos.translated((option.curFacing))); coord.add(option.curPos.translated((option.curFacing + 1)%6)); coord.add(option.curPos.translated((option.curFacing + 2)%6)); coord.add(option.curPos.translated((option.curFacing + 4)%6)); coord.add(option.curPos.translated((option.curFacing + 5)%6)); Iterator ci = coord.iterator(); while (ci.hasNext()) { Coords test = (Coords)ci.next(); Vector c = enemy.findMoves(test); if (c.size() != 0) to_check.addAll(c); } int range = option.curPos.distance(enemy.old.curPos); int compare=0; if ((enemy.long_range) > range - Math.max(enemy.jumpMP, enemy.runMP)) { compare = 30; } else if (enemy.long_range > range) { compare = 10; } double mod = this.enemies_moved/this.getEnemyEntities().size(); compare *= (1 + mod); for (int k = 0; k <= compare && k < enemy_move_array.length; k++) { if (enemy_move_array.length < compare) { to_check.add(enemy_move_array[k]); } else { int value = Compute.random.nextInt(enemy_move_array.length); if (value%2 == 1) { to_check.add(enemy_move_array[value]); } else { to_check.add(enemy_move_array[k]); } } } Iterator eo = to_check.iterator(); while (eo.hasNext()) { EntityState enemy_option = (EntityState)eo.next(); double max_threat = 0; double max_damage = 0; enemy_option.setState(); int enemy_hit_arc = Compute.getThreatHitArc(enemy_option.curPos, enemy_option.curFacing, option.curPos); int self_hit_arc = Compute.getThreatHitArc(enemy_option.curPos, enemy_option.curFacing, option.curPos); if (enemy_option.isJumping) { enemy_hit_arc = Compute.ARC_FORWARD; //assume they will choose forward, but really should be the strongest } int[] modifiers = option.getModifiers(enemy_option.entity); if (modifiers[1] != ToHitData.IMPOSSIBLE) { self.engaged = true; if (!enemy_option.isJumping) { max_threat = option.getMaxModifiedDamage(enemy_option, this.enemies.get(en), modifiers[1], modifiers[EntityState.DEFENCE_PC]); } else { max_threat = .8*enemy.getModifiedDamage((modifiers[EntityState.DEFENCE_PC]==1)?CEntity.TT:CEntity.SIDE_FRONT, enemy_option.curPos.distance(option.curPos), modifiers[1]); } max_threat = self.getThreatUtility(max_threat, self_hit_arc); } if (modifiers[0] != ToHitData.IMPOSSIBLE) { self.engaged = true; max_damage = enemy_option.getMaxModifiedDamage(option, self, modifiers[0], modifiers[EntityState.ATTACK_PC]); max_damage = enemy.getThreatUtility(max_damage, enemy_hit_arc); if (option.isPhysical) { if (option.PhysicalTarget.entity.getId() == enemy.entity.getId()) { max_damage = option.damages[e]; } else { max_damage = 0; } } } option.max_threats[e] = Math.max(max_threat, option.max_threats[e]); option.min_damages[e] = Math.min(option.min_damages[e], max_damage); if (max_threat - max_damage > option.threats[e] - option.damages[e]) { option.threats[e] = max_threat; option.damages[e] = max_damage; option.tv.add(max_threat+" Spec Threat "+e+"\n"); option.tv.add(max_damage+" Spec Damage "+e+"\n"); } } //update estimates option.damage = 0; option.threat = 0; for (int d = 0; d < option.damages.length; d++) { //my damage is the average of expected and min option.damage += (option.min_damages[e] + option.damages[e])/2; //my threat is average of absolute worst, and expected option.threat = Math.max(option.threat, option.max_threats[e] + option.threats[e])/2; option.threats[e] = (option.max_threats[e] + 2*option.threats[e])/3; } } //restore enemy enemy.old.setState(); } self.old.setState(); } //--end move speculation Arrays.sort(move_array); //top 40 utility for (int i = 0; i < 20 && i < move_array.length ; i++) { pass.put((EntityState)move_array[i]); } /*Arrays.sort(move_array, new Comparator() { public int compare(Object obj, Object obj1) { if (((EntityState)obj).damage*.5 - ((EntityState)obj).getUtility() > ((EntityState)obj1).damage*.5 - ((EntityState)obj1).getUtility()) { return -1; } return 1; } }); //top 20 damage for (int i = 0; i < 20 && i < move_array.length ; i++) { pass.put((EntityState)move_array[i]); }*/ for (com.sun.java.util.collections.Iterator i = pass.values().iterator(); i.hasNext();) { EntityState option = (EntityState)i.next(); option.self_threat *= .5; option.self_damage *= .5; } move_array = pass.values().toArray(); pass.clear(); //pass should now be 20 ~ 40 /************************************************** * fourth pass, final damage and threat approximation * --prevents moves that from the previous pass would * cause the mech to die ************************************************/ if (self.engaged) { int remaining = game.getNoOfEntities() - game.getEntitiesOwnedBy(getLocalPlayer()); for (int j = 0; j < move_array.length; j++) { EntityState option = (EntityState)move_array[j]; option.setState(); //if (this.enemies_moved > 0) { GAAttack temp = this.bestAttack(option); double[] damages = null; if (temp != null) { //will increase the utility of states that all for overheat cooling, etc. option.damage = (option.damage + temp.getFittestChromosomesFitness())/2; } else { option.damage /= 2; } for (int e = 0; e < enemy_array.length; e++) { // for each enemy Entity en = (Entity)enemy_array[e]; CEntity enemy = this.enemies.get(en); if (!enemy.canMove()) { option.threats[e] = (option.threats[e] + this.attackUtility(enemy.old, self))/2; option.tv.add(option.threats[e]+" Revised Threat "+e+" \n"); if (!option.isPhysical) { if (temp != null) { option.damages[e] = (option.damages[e] + temp.getDamageUtility(enemy))/2; option.tv.add(option.damages[e]+" Revised Damage "+e+" \n"); } else { //probably zero, but just in case option.damages[e] = option.min_damages[e]; option.tv.add(option.damages[e]+" Revised Damage "+e+" \n"); } if (option.curPos.distance(enemy.old.curPos) == 1) { PhysicalOption p = this.getBestPhysicalAttack(option.entity.getId(), enemy.entity.getId()); if (p != null) { option.damages[e] += p.expectedDmg; option.tv.add(p.expectedDmg+" Physical Damage "+e+" \n"); } p = this.getBestPhysicalAttack(enemy.entity.getId(),option.entity.getId()); if (p != null) { option.threats[e] += .25*p.expectedDmg; option.tv.add(.5*p.expectedDmg+" Physical Threat "+e+" \n"); } } } } else if (!option.isPhysical) { //enemy can move (not physical check just in case) if (temp != null) { option.damages[e] = (option.damages[e] + temp.getDamageUtility(enemy))/2; } else { option.damages[e] = option.min_damages[e]; } } } option.threat = 0; for (int d = 0; d < option.damages.length; d++) { option.threat += option.threats[d]; } option.tv.add(option.threat+" Revised Threat Utility\n"); option.tv.add(option.damage+" Revised Damage Utility\n"); //} } } Arrays.sort(move_array); self.old.setState(); //just to make sure we are back to where we started /********************************************** * Return top twenty moves to the lance algorithm **********************************************/ EntityState[] result = new EntityState[Math.min(move_array.length,20)]; for (int i = 0; i < Math.min(move_array.length,20); i++) { result[i] = (EntityState)move_array[i]; //if (i < 10) System.out.println(result[i] + " " + result[i].getUtility()); } return result; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/0d8ca4281ef6c96da7291383c67f8d9521b3ad84/TestBot.java/clean/megamek/src/megamek/client/bot/TestBot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3887, 1119, 8526, 4604, 7607, 12, 1943, 1522, 13, 288, 565, 1033, 8526, 570, 351, 93, 67, 1126, 273, 8155, 18, 7737, 11698, 12, 13957, 18, 588, 1556, 9432, 12, 1096, 10019, 565, 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, 282, 1071, 3887, 1119, 8526, 4604, 7607, 12, 1943, 1522, 13, 288, 565, 1033, 8526, 570, 351, 93, 67, 1126, 273, 8155, 18, 7737, 11698, 12, 13957, 18, 588, 1556, 9432, 12, 1096, 10019, 565, 3...
f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32);
f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, NAME_SIZE); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, NAME_SIZE); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, NAME_SIZE);
protected java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, 32); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, 32); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, 32); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, 32); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, 32); f[12] = new Field(connection, "PK_NAME", iVarcharOid, 32); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL( "SELECT distinct " + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + "FROM " + "pg_trigger t, " + "pg_trigger t1, " + "pg_class c, " + "pg_class c2, " + "pg_class ic, " + "pg_proc p1, " + "pg_proc p2, " + "pg_index i, " + "pg_attribute a " + "WHERE " // isolate the update rule + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like '%%upd') " + "and " // isolate the delete rule + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like '%%del') " // if we are looking for exported keys then primary table will be used + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") // if we are looking for imported keys then the foreign table will be used + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + "ORDER BY " // orderby is as follows getExported, orders by FKTABLE, // getImported orders by PKTABLE // getCrossReference orders by FKTABLE, so this should work for both, // since when getting crossreference, primaryTable will be defined + (primaryTable != null ? "frelname" : "prelname") + ",keyseq"); // returns the following columns // and some example data with a table defined as follows // create table people ( id int primary key); // create table policy ( id int primary key); // create table users ( id int primary key, people_id int references people(id), policy_id int references policy(id)) // prelname | frelname | tgconstrname | keyseq | fkeyName | tgdeferrable | tginitdeferred // 1 | 2 | 3 | 4 | 5 | 6 | 7 // people | users | <unnamed> | 1 | people_pkey | f | f // | tgnargs | tgargs | updaterule | deleterule // | 8 | 9 | 10 | 11 // | 6 | <unnamed>\000users\000people\000UNSPECIFIED\000people_id\000id\000 | RI_FKey_noaction_upd | RI_FKey_noaction_del Vector tuples = new Vector(); while ( rs.next() ) { byte tuple[][] = new byte[14][]; tuple[2] = rs.getBytes(1); //PKTABLE_NAME tuple[6] = rs.getBytes(2); //FKTABLE_NAME String fKeyName = rs.getString(3); String updateRule = rs.getString(10); if (updateRule != null ) { // Rules look like this RI_FKey_noaction_del so we want to pull out the part between the 'Key_' and the last '_' s String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ( rule == null || "noaction".equals(rule) ) action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[9] = Integer.toString(action).getBytes(); } String deleteRule = rs.getString(11); if ( deleteRule != null ) { String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; tuple[10] = Integer.toString(action).getBytes(); } // Parse the tgargs data String fkeyColumn = ""; String pkeyColumn = ""; // Note, I am guessing at most of this, but it should be close // if not, please correct // the keys are in pairs and start after the first four arguments // the arguments are seperated by \000 int keySequence = rs.getInt(4); //KEY_SEQ // get the args String targs = rs.getString(9); // args look like this //<unnamed>\000ww\000vv\000UNSPECIFIED\000m\000a\000n\000b\000 // we are primarily interested in the column names which are the last items in the string StringTokenizer st = new StringTokenizer(targs, "\\000"); int advance = 4 + (keySequence - 1) * 2; for ( int i = 0; st.hasMoreTokens() && i < advance ; i++ ) st.nextToken(); // advance to the key column of interest if ( st.hasMoreTokens() ) { fkeyColumn = st.nextToken(); } if ( st.hasMoreTokens() ) { pkeyColumn = st.nextToken(); } tuple[3] = pkeyColumn.getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumn.getBytes(); //FKCOLUMN_NAME tuple[8] = rs.getBytes(4); //KEY_SEQ tuple[11] = targs.getBytes(); //FK_NAME this will give us a unique name for the foreign key tuple[12] = rs.getBytes(5); //PK_NAME // DEFERRABILITY int deferrability = java.sql.DatabaseMetaData.importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(6); boolean initiallyDeferred = rs.getBoolean(7); if (deferrable) { if (initiallyDeferred) deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyDeferred; else deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } return connection.getResultSet(null, f, tuples, "OK", 1); }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/62da2fa0e1cb3cf1df8d633f785e391c35477f7e/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526,...
new Thread(myCurrentAnimatedRunnable, ANIMATED_SCROLLING_THREAD_NAME).start();
ourThreadExecutorsService.submit(myCurrentAnimatedRunnable);
private void scrollToOffsets(int hOffset, int vOffset) { cancelAnimatedScrolling(false); VisibleEditorsTracker editorsTracker = VisibleEditorsTracker.getInstance(); boolean useAnimation; //System.out.println("myCurrentCommandStart - myLastCommandFinish = " + (myCurrentCommandStart - myLastCommandFinish)); if (!myEditor.getSettings().isAnimatedScrolling() || myAnimationDisabled) { useAnimation = false; } else if (CommandProcessor.getInstance().getCurrentCommand() == null) { useAnimation = myEditor.getComponent().isShowing(); } else if (editorsTracker.getCurrentCommandStart() - editorsTracker.getLastCommandFinish() < AnimatedScrollingRunnable.SCROLL_DURATION) { useAnimation = false; } else { useAnimation = editorsTracker.wasEditorVisibleOnCommandStart(myEditor); } if (useAnimation) { //System.out.println("scrollToAnimated: " + endVOffset); int startHOffset = getHorizontalScrollOffset(); int startVOffset = getVerticalScrollOffset(); if (startHOffset == hOffset && startVOffset == vOffset) { return; } //System.out.println("startVOffset = " + startVOffset); try { myCurrentAnimatedRunnable = new AnimatedScrollingRunnable(startHOffset, startVOffset, hOffset, vOffset); new Thread(myCurrentAnimatedRunnable, ANIMATED_SCROLLING_THREAD_NAME).start(); } catch (NoAnimationRequiredException e) { _scrollHorizontally(hOffset); _scrollVertically(vOffset); } } else { _scrollHorizontally(hOffset); _scrollVertically(vOffset); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2eed9c9f0a266a7fee491c7de36c8af4ce032504/ScrollingModelImpl.java/clean/source/com/intellij/openapi/editor/impl/ScrollingModelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 5532, 774, 13830, 12, 474, 366, 2335, 16, 509, 331, 2335, 13, 288, 565, 3755, 979, 17275, 1541, 15742, 12, 5743, 1769, 565, 24132, 4666, 1383, 8135, 29431, 8135, 273, 24132, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5532, 774, 13830, 12, 474, 366, 2335, 16, 509, 331, 2335, 13, 288, 565, 3755, 979, 17275, 1541, 15742, 12, 5743, 1769, 565, 24132, 4666, 1383, 8135, 29431, 8135, 273, 24132, 46...
{
{
public boolean hitClip(int x, int y, int width, int height){ return getClip().intersects(x, y, width, height);}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c0997df57feec0722568b1f1cc390b475c418086/Graphics.java/buggy/core/src/classpath/java/java/awt/Graphics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 6800, 15339, 12, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 15329, 565, 327, 1927, 3169, 7675, 12288, 87, 12, 92, 16, 677, 16, 1835, 16, 2072, 1769, 97, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 6800, 15339, 12, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 15329, 565, 327, 1927, 3169, 7675, 12288, 87, 12, 92, 16, 677, 16, 1835, 16, 2072, 1769, 97, 2, -100...
public Deposit(Account account, long amount) { super(account); _amount = amount; }
private Deposit() {}
public Deposit(Account account, long amount) { super(account); _amount = amount; }
5929 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5929/967e8edd4b20851e3ee818a80b1bc38d076929c7/Deposit.java/clean/src/main/org/prevayler/demos/demo2/business/transactions/Deposit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4019, 538, 305, 12, 3032, 2236, 16, 1525, 3844, 13, 288, 202, 202, 9565, 12, 4631, 1769, 202, 202, 67, 8949, 273, 3844, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4019, 538, 305, 12, 3032, 2236, 16, 1525, 3844, 13, 288, 202, 202, 9565, 12, 4631, 1769, 202, 202, 67, 8949, 273, 3844, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -...
DebugLog.log("importing file: " + file + " to " + filePath);
private boolean importFile(File rootFile, File file, SVNFileType fileType, String filePath, ISVNEditor editor) throws SVNException { if (fileType == null || fileType == SVNFileType.UNKNOWN) { SVNErrorManager.error("svn: unknown or unversionable type for '" + file + "'"); } DebugLog.log("importing file: " + file + " to " + filePath); editor.addFile(filePath, null, -1); String mimeType = null; Map autoProperties = new HashMap(); if (fileType != SVNFileType.SYMLINK) { autoProperties = getOptions().applyAutoProperties(file.getName(), autoProperties); if (!autoProperties.containsKey(SVNProperty.MIME_TYPE)) { mimeType = SVNFileUtil.detectMimeType(file); if (mimeType != null) { autoProperties.put(SVNProperty.MIME_TYPE, mimeType); } } if (!autoProperties.containsKey(SVNProperty.EXECUTABLE) && SVNFileUtil.isExecutable(file)) { autoProperties.put(SVNProperty.EXECUTABLE, ""); } } else { autoProperties.put(SVNProperty.SPECIAL, "*"); } for (Iterator names = autoProperties.keySet().iterator(); names .hasNext();) { String name = (String) names.next(); String value = (String) autoProperties.get(name); editor.changeFileProperty(filePath, name, value); } // send "adding" SVNEvent addedEvent = SVNEventFactory.createCommitEvent(rootFile, file, SVNEventAction.COMMIT_ADDED, SVNNodeKind.FILE, mimeType); handleEvent(addedEvent, ISVNEventHandler.UNKNOWN); editor.applyTextDelta(filePath, null); // translate and send file. String eolStyle = (String) autoProperties.get(SVNProperty.EOL_STYLE); String keywords = (String) autoProperties.get(SVNProperty.KEYWORDS); boolean special = autoProperties.get(SVNProperty.SPECIAL) != null; File tmpFile = null; if (eolStyle != null || keywords != null || special) { byte[] eolBytes = SVNTranslator.getBaseEOL(eolStyle); Map keywordsMap = keywords != null ? SVNTranslator.computeKeywords( keywords, null, null, null, null) : null; tmpFile = SVNFileUtil.createUniqueFile(file.getParentFile(), file .getName(), ".tmp"); SVNTranslator.translate(file, tmpFile, eolBytes, keywordsMap, special, false); } File importedFile = tmpFile != null ? tmpFile : file; String checksum = SVNFileUtil.computeChecksum(importedFile); OutputStream os = editor.textDeltaChunk(filePath, SVNDiffWindowBuilder .createReplacementDiffWindow(importedFile.length())); InputStream is = SVNFileUtil.openFileForReading(importedFile); int r; try { while ((r = is.read()) >= 0) { os.write(r); } } catch (IOException e) { SVNErrorManager.error("svn: IO error while importing file '" + file + "': " + e.getMessage()); } finally { try { os.close(); } catch (IOException e) { SVNErrorManager.error("svn: IO error while importing file '" + file + "': " + e.getMessage()); } if (tmpFile != null) { tmpFile.delete(); } } editor.textDeltaEnd(filePath); editor.closeFile(filePath, checksum); return true; }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/48b673a4eeae723c90a2ec8a9e48e886212b2109/SVNCommitClient.java/buggy/javasvn/src/org/tmatesoft/svn/core/wc/SVNCommitClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1930, 812, 12, 812, 1365, 812, 16, 1387, 585, 16, 29537, 50, 28941, 21939, 16, 5411, 514, 4612, 16, 4437, 58, 50, 6946, 4858, 13, 1216, 29537, 50, 503, 288, 3639, 309, 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, 1250, 1930, 812, 12, 812, 1365, 812, 16, 1387, 585, 16, 29537, 50, 28941, 21939, 16, 5411, 514, 4612, 16, 4437, 58, 50, 6946, 4858, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, ...
if (value != null) { tableBean.setValue(value); tableBean.setCssStyle(style); } return super.doEndTag();
return EVAL_PAGE;
public int doEndTag() throws JspException { if (key != null) { tableBean.setKey(key); Locale locale = pageContext.getRequest().getLocale(); ResourceBundle bundle = ResourceBundle.getBundle("Portlet", locale); tableBean.setValue(bundle.getString(tableBean.getKey())); tableBean.setCssStyle(style); } if (value != null) { tableBean.setValue(value); tableBean.setCssStyle(style); } return super.doEndTag(); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/9863b89cfaff33fe3399474348972a14bc241035/FrameTag.java/clean/src/org/gridlab/gridsphere/tags/portletui/FrameTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 309, 261, 856, 480, 446, 13, 288, 5411, 1014, 3381, 18, 542, 653, 12, 856, 1769, 5411, 6458, 2573, 273, 21442, 18, 588, 691, 7675, 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, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 309, 261, 856, 480, 446, 13, 288, 5411, 1014, 3381, 18, 542, 653, 12, 856, 1769, 5411, 6458, 2573, 273, 21442, 18, 588, 691, 7675, 5...
public IDOQuery appendCommaDelimited(Collection collection) { Iterator iter = collection.iterator(); boolean first = true; while (iter.hasNext()) { Object item = iter.next(); if (!first) {
public IDOQuery appendCommaDelimited(String[] str) { for (int i = 0; i < str.length; i++) { if (i != 0) {
public IDOQuery appendCommaDelimited(Collection collection) { Iterator iter = collection.iterator(); boolean first = true; while (iter.hasNext()) { Object item = iter.next(); if (!first) { this.append(COMMA); } if (item instanceof IDOEntity) { this.append(((IDOEntity)item).getPrimaryKey()); } else { this.append(item); } first = false; } return this; }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/3a42c4072c00e37d52425f02310d47a6b9c7aae1/IDOQuery.java/buggy/src/java/com/idega/data/IDOQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1599, 51, 1138, 714, 15594, 23531, 329, 12, 2532, 1849, 13, 288, 202, 202, 3198, 1400, 273, 1849, 18, 9838, 5621, 202, 202, 6494, 1122, 273, 638, 31, 202, 202, 17523, 261, 216...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1599, 51, 1138, 714, 15594, 23531, 329, 12, 2532, 1849, 13, 288, 202, 202, 3198, 1400, 273, 1849, 18, 9838, 5621, 202, 202, 6494, 1122, 273, 638, 31, 202, 202, 17523, 261, 216...
if(id != null) { NavigatorContentDescriptor contentDescriptor = CONTENT_DESCRIPTOR_MANAGER.getContentDescriptor(id); if(contentDescriptor != null) { IConfigurationElement[] children = element.getChildren(TAG_COMMON_SORTER); if(children.length > 0) { Set localSorters = getCommonSorters(contentDescriptor); for (int i = 0; i < children.length; i++) { localSorters.add(new CommonSorterDescriptor(children[i])); } return true; }
if (id != null) { NavigatorContentDescriptor contentDescriptor = CONTENT_DESCRIPTOR_MANAGER .getContentDescriptor(id); if (contentDescriptor != null) { IConfigurationElement[] children = element .getChildren(TAG_COMMON_SORTER); if (children.length > 0) { Set localSorters = getCommonSorters(contentDescriptor); for (int i = 0; i < children.length; i++) { localSorters.add(new CommonSorterDescriptor( children[i])); } return true; }
protected boolean readElement(IConfigurationElement element) { if(TAG_NAVIGATOR_CONTENT.equals(element.getName())) { String id = element.getAttribute(ATT_ID); if(id != null) { NavigatorContentDescriptor contentDescriptor = CONTENT_DESCRIPTOR_MANAGER.getContentDescriptor(id); if(contentDescriptor != null) { IConfigurationElement[] children = element.getChildren(TAG_COMMON_SORTER); if(children.length > 0) { Set localSorters = getCommonSorters(contentDescriptor); for (int i = 0; i < children.length; i++) { localSorters.add(new CommonSorterDescriptor(children[i])); } return true; } } else { NavigatorPlugin.logError(0, NLS.bind(CommonNavigatorMessages.CommonSorterDescriptorManager_A_navigatorContent_extension_does_n_, new Object[] { id, element.getDeclaringExtension().getNamespace() }), null); } } else { NavigatorPlugin.logError(0, NLS.bind(CommonNavigatorMessages.CommonSorterDescriptorManager_A_navigatorContent_extesnion_in_0_, element.getNamespace()), null); } } return super.readElement(element); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c93d807ed962723d90daba76fc2003e2c1801cbc/CommonSorterDescriptorManager.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/sorters/CommonSorterDescriptorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 1250, 855, 1046, 12, 45, 1750, 1046, 930, 13, 288, 25083, 202, 430, 12, 7927, 67, 50, 5856, 3047, 3575, 67, 9689, 18, 14963, 12, 2956, 18, 17994, 1435, 3719, 288, 9506, 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, 3196, 202, 1117, 1250, 855, 1046, 12, 45, 1750, 1046, 930, 13, 288, 25083, 202, 430, 12, 7927, 67, 50, 5856, 3047, 3575, 67, 9689, 18, 14963, 12, 2956, 18, 17994, 1435, 3719, 288, 9506, 202,...
} break; case Achat: case Vente: Client.session.obtenirListeObjets(quoi); break; case HotelDesVentes: Client.session.obtenirProchaineVente(); Client.session.obtenirListeParticipants(); break;
break; case Achat: case Vente: Client.session.obtenirListeObjets(quoi); break; case HotelDesVentes: Client.session.obtenirProchaineVente(); Client.session.obtenirListeParticipants(); break; }
void voir(Onglet quoi) { switch(quoi) { case Planification: case Validation: case GestionUtilisateurs: boolean modo = Client.session.getModerateur(); if(modo) { switch(quoi) { case Planification: Client.session.obtenirListeVentes(); // fall-through!!! case Validation: Client.session.obtenirListeObjets(quoi); break; case GestionUtilisateurs: Client.session.obtenirListeUtilisateurs(); break; } } break; case Achat: case Vente: Client.session.obtenirListeObjets(quoi); break; case HotelDesVentes: Client.session.obtenirProchaineVente(); Client.session.obtenirListeParticipants(); break; } }
57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/da6099451ef8e9920f1e5873d636a7860d1228f1/HI.java/clean/src/client/HI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 19993, 481, 12, 1398, 75, 1810, 719, 11359, 13, 288, 3639, 1620, 12, 372, 11359, 13, 288, 5411, 648, 12540, 1480, 30, 5411, 648, 5684, 30, 5411, 648, 611, 6868, 1304, 24954, 87, 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, 918, 19993, 481, 12, 1398, 75, 1810, 719, 11359, 13, 288, 3639, 1620, 12, 372, 11359, 13, 288, 5411, 648, 12540, 1480, 30, 5411, 648, 5684, 30, 5411, 648, 611, 6868, 1304, 24954, 87, 30...
List<IntentionAction> options = new ArrayList<IntentionAction>(); QuickFixAction.registerQuickFixAction(info, new ImportClassAction(ref), options); QuickFixAction.registerQuickFixAction(info, SetupJDKFix.getInstnace(), options);
QuickFixAction.registerQuickFixAction(info, new ImportClassAction(ref)); QuickFixAction.registerQuickFixAction(info, SetupJDKFix.getInstnace());
public static HighlightInfo checkReference(PsiJavaCodeReferenceElement ref, JavaResolveResult result, PsiElement resolved) { PsiElement refName = ref.getReferenceNameElement(); if (!(refName instanceof PsiIdentifier) && !(refName instanceof PsiKeyword)) return null; HighlightInfo highlightInfo = checkMemberReferencedBeforeConstructorCalled(ref); if (highlightInfo != null) return highlightInfo; PsiElement refParent = ref.getParent(); if (!(refParent instanceof PsiMethodCallExpression)) { if (resolved == null) { // do not highlight unknown packages - javac does not care about illegal package names if (isInsidePackageStatement(refName)) return null; if (result.isPackagePrefixPackageReference()) return null; String description = JavaErrorMessages.message("cannot.resolve.symbol", refName.getText()); HighlightInfoType type = HighlightInfoType.WRONG_REF; if (PsiTreeUtil.getParentOfType(ref, PsiDocComment.class) != null) { return null; } PsiElement parent = PsiTreeUtil.getParentOfType(ref, PsiNewExpression.class, PsiMethod.class); HighlightInfo info = HighlightInfo.createHighlightInfo(type, refName, description); List<IntentionAction> options = new ArrayList<IntentionAction>(); QuickFixAction.registerQuickFixAction(info, new ImportClassAction(ref), options); QuickFixAction.registerQuickFixAction(info, SetupJDKFix.getInstnace(), options); if (ref instanceof PsiReferenceExpression) { TextRange fixRange = HighlightMethodUtil.getFixRange(ref); PsiReferenceExpression refExpr = (PsiReferenceExpression)ref; QuickFixAction.registerQuickFixAction(info, fixRange, new CreateConstantFieldFromUsageAction(refExpr), options ); QuickFixAction.registerQuickFixAction(info, fixRange, new CreateFieldFromUsageAction(refExpr), options ); QuickFixAction.registerQuickFixAction(info, new RenameWrongRefAction(refExpr), options); if (!ref.isQualified()) { QuickFixAction.registerQuickFixAction(info, fixRange, new BringVariableIntoScopeAction(refExpr), options ); QuickFixAction.registerQuickFixAction(info, fixRange, new CreateLocalFromUsageAction(refExpr), options); QuickFixAction.registerQuickFixAction(info, fixRange, new CreateParameterFromUsageAction(refExpr), options ); } } QuickFixAction.registerQuickFixAction(info, new CreateClassFromUsageAction(ref, true), options); QuickFixAction.registerQuickFixAction(info, new CreateClassFromUsageAction(ref, false), options); if (parent instanceof PsiNewExpression) { QuickFixAction.registerQuickFixAction(info, new CreateClassFromNewAction((PsiNewExpression)parent), options); } return info; } if (!result.isValidResult()) { if (!result.isAccessible()) { String description = buildProblemWithAccessDescription(ref, result); HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.WRONG_REF, ref.getReferenceNameElement(), description); if (result.isStaticsScopeCorrect()) { registerAccessQuickFixAction((PsiMember)resolved, ref, info, result.getCurrentFileResolveScope()); if (ref instanceof PsiReferenceExpression) { QuickFixAction.registerQuickFixAction(info, new RenameWrongRefAction((PsiReferenceExpression)ref), null); } } return info; } if (!result.isStaticsScopeCorrect()) { String description = buildProblemWithStaticDescription(resolved); HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.WRONG_REF, ref.getReferenceNameElement(), description); registerStaticProblemQuickFixAction(resolved, info, ref); if (ref instanceof PsiReferenceExpression) { QuickFixAction.registerQuickFixAction(info, new RenameWrongRefAction((PsiReferenceExpression)ref), null); } return info; } } if ((resolved instanceof PsiLocalVariable || resolved instanceof PsiParameter) && !(resolved instanceof ImplicitVariable)) { highlightInfo = HighlightControlFlowUtil.checkVariableMustBeFinal((PsiVariable)resolved, ref); if (highlightInfo != null) return highlightInfo; } } return highlightInfo; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/HighlightUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 31386, 966, 866, 2404, 12, 52, 7722, 5852, 1085, 2404, 1046, 1278, 16, 5110, 8460, 1253, 563, 16, 453, 7722, 1046, 4640, 13, 288, 565, 453, 7722, 1046, 1278, 461, 273, 1278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31386, 966, 866, 2404, 12, 52, 7722, 5852, 1085, 2404, 1046, 1278, 16, 5110, 8460, 1253, 563, 16, 453, 7722, 1046, 4640, 13, 288, 565, 453, 7722, 1046, 1278, 461, 273, 1278, ...
170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9,
170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9,
private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 565, 374, 16, 565, 374, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11...
Object futureNode = p2pSer.getANode(); Node destNode = null; ProActive.waitFor(futureNode); if (futureNode != null) { if (!ProActive.isException(futureNode)) { P2PNode toto = (P2PNode) ProActive.getFutureValue(futureNode); if (toto != null) { destNode = toto.getNode(); } else { System.err.println("alex null"); return; }
P2PNodeLookup lookup = p2pSer.getNodes(1, "javier","1"); while (! lookup.allArrived()){ try { Thread.sleep(100); } catch (InterruptedException e1) { e1.printStackTrace(); } } Node destNode = (Node) lookup.getAndRemoveNodes().get(0);
public void loadBalance() { System.err.println("*** [" + p2pSer.getAddress() + "] asking for Load Balance"); // P2PService neighbors[] = p2pSer.getAquaintances(); // if (neighbors == null) return; // // for (int i = 0; i < neighbors.length; i++) { // if (neighbors[i].AreYouUnderloaded()) { // // P2PNode p2pDestNode = neighbors[i].giveMeANode(); // while (true) { Object futureNode = p2pSer.getANode(); Node destNode = null; ProActive.waitFor(futureNode); if (futureNode != null) { if (!ProActive.isException(futureNode)) { P2PNode toto = (P2PNode) ProActive.getFutureValue(futureNode); if (toto != null) { destNode = toto.getNode(); } else { System.err.println("alex null"); return; } if (destNode == null) return; destNode.getNodeInformation().setJobID("1"); try { RuntimeFactory.getDefaultRuntime().addAcquaintance( destNode.getProActiveRuntime().getURL()); } catch (ProActiveException e) { // TODO Auto-generated catch block e.printStackTrace(); } P2PloadBalance(destNode); } else { ((Exception) futureNode).printStackTrace(); } // break; // } else { // try { // Thread.sleep(1000); // } catch (InterruptedException e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } } }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/ffd61142d3b2ec331400113e2f435833d8aaab4e/LoadBalancer.java/clean/src/org/objectweb/proactive/p2p/loadbalancer/LoadBalancer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 13937, 1435, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 14465, 8247, 397, 293, 22, 84, 827, 18, 588, 1887, 1435, 9506, 202, 15, 9850, 29288, 364, 4444, 30918, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 13937, 1435, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 14465, 8247, 397, 293, 22, 84, 827, 18, 588, 1887, 1435, 9506, 202, 15, 9850, 29288, 364, 4444, 30918, 88...
compilationLoader.getURLs(), ClassLoader .getSystemClassLoader()
compilationLoader.getURLs(), ClassLoader.getSystemClassLoader()
public void compileClass(File file, String packaging) throws CompileException { InputStream in = null; FileOutputStream fos = null; try { utility.log(" [compile] " + file.getCanonicalPath()); // dump bytecode in byte[] ByteArrayOutputStream bos = new ByteArrayOutputStream(); in = new FileInputStream(file); byte[] buffer = new byte[1024]; while (in.available() > 0) { int length = in.read(buffer); if (length == -1) { break; } bos.write(buffer, 0, length); } // rebuild className String className = file.getName().substring(0, file.getName().length() - 6); if (packaging != null) { className = packaging + '.' + className; } // transform byte[] transformed = null; try { transformed = preprocessor.preProcess(className, bos.toByteArray(), compilationLoader); } catch (Throwable t) { throw new CompileException("weaver failed for class: " + className, t); } // override file fos = new FileOutputStream(file); fos.write(transformed); fos.close(); // verify modified class if (verify) { URLClassLoader verifier = new VerifierClassLoader( compilationLoader.getURLs(), ClassLoader .getSystemClassLoader() ); try { utility.log(" [verify] " + className); Class.forName(className, false, verifier); } catch (Throwable t) { utility.log(" [verify] corrupted class: " + className); throw new CompileException("corrupted class: " + className, t); } } } catch (IOException e) { throw new CompileException("compile " + file.getAbsolutePath() + " failed", e); } finally { try { in.close(); } catch (Throwable e) { ; } try { fos.close(); } catch (Throwable e) { ; } } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a5b42f6b1dca45b7c4c7e0042533d20a0ecfe409/AspectWerkzC.java/buggy/aspectwerkz3/src/main/org/codehaus/aspectwerkz/compiler/AspectWerkzC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4074, 797, 12, 812, 585, 16, 514, 2298, 5755, 13, 1216, 16143, 503, 288, 3639, 5037, 316, 273, 446, 31, 3639, 12942, 17615, 273, 446, 31, 3639, 775, 288, 5411, 12788, 18, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4074, 797, 12, 812, 585, 16, 514, 2298, 5755, 13, 1216, 16143, 503, 288, 3639, 5037, 316, 273, 446, 31, 3639, 12942, 17615, 273, 446, 31, 3639, 775, 288, 5411, 12788, 18, 133...
StringBuffer errorMessage = null;
qe.connection = (AbstractJdbc1Connection)((AbstractJdbc1Statement)statement).getPGConnection(); qe.pg_stream = qe.connection.getPGStream();
public java.sql.ResultSet execute() throws SQLException { StringBuffer errorMessage = null; if (pg_stream == null) { throw new PSQLException("postgresql.con.closed"); } synchronized (pg_stream) { sendQuery(); int c; boolean l_endQuery = false; while (!l_endQuery) { c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pg_stream.ReceiveInteger(4); String msg = pg_stream.ReceiveString(connection.getEncoding()); connection.addNotification(new org.postgresql.core.Notification(msg, pid)); break; case 'B': // Binary Data Transfer receiveTuple(true); break; case 'C': // Command Status receiveCommandStatus(); break; case 'D': // Text Data Transfer receiveTuple(false); break; case 'E': // Error Message // it's possible to get more than one error message for a query // see libpq comments wrt backend closing a connection // so, append messages to a string buffer and keep processing // check at the bottom to see if we need to throw an exception if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(pg_stream.ReceiveString(connection.getEncoding())); // keep processing break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); break; case 'N': // Error Notification connection.addWarning(pg_stream.ReceiveString(connection.getEncoding())); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(connection.getEncoding()); break; case 'T': // MetaData Field Description receiveFields(); break; case 'Z': l_endQuery = true; break; default: throw new PSQLException("postgresql.con.type", new Character((char) c)); } } // did we get an error during this query? if ( errorMessage != null ) throw new SQLException( errorMessage.toString() ); return connection.getResultSet(statement, fields, tuples, status, update_count, insert_oid, binaryCursor); } }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/d631f46e0d981d59b38fb1f46b17c615351e2156/QueryExecutor.java/buggy/org/postgresql/core/QueryExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 1836, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1892, 9324, 273, 446, 31, 202, 202, 430, 261, 8365, 67, 3256, 422, 446, 13, 3196, 202, 95, 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, 482, 2252, 18, 4669, 18, 13198, 1836, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1892, 9324, 273, 446, 31, 202, 202, 430, 261, 8365, 67, 3256, 422, 446, 13, 3196, 202, 95, 1082, 2...
public void resumeJobGroup(SchedulingContext ctxt, String groupName) throws SchedulerException, RemoteException;
void resumeJobGroup(SchedulingContext ctxt, String groupName) throws SchedulerException, RemoteException;
public void resumeJobGroup(SchedulingContext ctxt, String groupName) throws SchedulerException, RemoteException;
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/RemotableQuartzScheduler.java/clean/src/java/org/quartz/core/RemotableQuartzScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10774, 2278, 1114, 12, 25401, 1042, 14286, 16, 514, 11619, 13, 5411, 1216, 12620, 503, 16, 18361, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 10774, 2278, 1114, 12, 25401, 1042, 14286, 16, 514, 11619, 13, 5411, 1216, 12620, 503, 16, 18361, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data);
return cx[i];
public static org.omg.IOP.ServiceContext findContext(int ctx_name, ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data); throw new BAD_PARAM("No context with id " + ctx_name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/ServiceContext.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ServiceContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 2358, 18, 362, 75, 18, 45, 3665, 18, 1179, 1042, 1104, 1042, 12, 474, 1103, 67, 529, 16, 565, 1956, 1042, 8526, 9494, 13, 225, 288, 565, 364, 261, 474, 277, 273, 374, 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, 1071, 760, 2358, 18, 362, 75, 18, 45, 3665, 18, 1179, 1042, 1104, 1042, 12, 474, 1103, 67, 529, 16, 565, 1956, 1042, 8526, 9494, 13, 225, 288, 565, 364, 261, 474, 277, 273, 374, 31, ...
Number numChild = nodeIsConvertToObjectOfNumber(rChild); if (nodeIsDirectCallParameter(child) && (numChild != null)) { OptLocalVariable lVar1 = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); aload(lVar1.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); push(numChild.doubleValue()); addByteCode(ByteCode.DCMPL); if (op == TokenStream.EQ) addByteCode(ByteCode.IFEQ, trueGOTO); else addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); markLabel(notNumbersLabel);
if (nodeIsDirectCallParameter(child)) { Node convertChild = getConvertToObjectOfNumberNode(rChild); if (convertChild != null) { OptLocalVariable lVar1 = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); aload(lVar1.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); push(convertChild.getDouble()); addByteCode(ByteCode.DCMPL); if (op == TokenStream.EQ) addByteCode(ByteCode.IFEQ, trueGOTO); else addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); markLabel(notNumbersLabel); }
private void visitEqOp(Node node, Node child, Node parent, int trueGOTO, int falseGOTO) { int op = node.getInt(); Node rightChild = child.getNextSibling(); if (trueGOTO == -1) { if (rightChild.getType() == TokenStream.PRIMARY && rightChild.getInt() == TokenStream.NULL) { generateCodeFromNode(child, node, -1, -1); addByteCode(ByteCode.DUP); addByteCode(ByteCode.IFNULL, 15); pushUndefined(); addByteCode(ByteCode.IF_ACMPEQ, 10); if ((op == TokenStream.EQ) || (op == TokenStream.SHEQ)) classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); else classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); addByteCode(ByteCode.GOTO, 7); addByteCode(ByteCode.POP); if ((op == TokenStream.EQ) || (op == TokenStream.SHEQ)) classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); else classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); return; } generateCodeFromNode(child, node, -1, -1); generateCodeFromNode(child.getNextSibling(), node, -1, -1); // JavaScript 1.2 uses shallow equality for == and != String name; switch (op) { case TokenStream.EQ: name = version == Context.VERSION_1_2 ? "seqB" : "eqB"; break; case TokenStream.NE: name = version == Context.VERSION_1_2 ? "sneB" : "neB"; break; case TokenStream.SHEQ: name = "seqB"; break; case TokenStream.SHNE: name = "sneB"; break; default: name = null; badTree(); } addScriptRuntimeInvoke(name, "(Ljava/lang/Object;Ljava/lang/Object;)", "Ljava/lang/Boolean;"); } else { if (rightChild.getType() == TokenStream.PRIMARY && rightChild.getInt() == TokenStream.NULL) { generateCodeFromNode(child, node, -1, -1); /* since we have to test for null && undefined we end up having to push the operand twice and so have to GOTO to a pop site if the first test passes. We can avoid that for operands that are 'simple' i.e. don't generate a lot of code and don't have side-effects. For now, 'simple' means GETVAR */ boolean simpleChild = (child.getType() == TokenStream.GETVAR); if (!simpleChild) addByteCode(ByteCode.DUP); int popGOTO = acquireLabel(); if ((op == TokenStream.EQ) || (op == TokenStream.SHEQ)) { addByteCode(ByteCode.IFNULL, (simpleChild) ? trueGOTO : popGOTO); short popStack = classFile.getStackTop(); if (simpleChild) generateCodeFromNode(child, node, -1, -1); pushUndefined(); addByteCode(ByteCode.IF_ACMPEQ, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); if (!simpleChild) { markLabel(popGOTO, popStack); addByteCode(ByteCode.POP); addByteCode(ByteCode.GOTO, trueGOTO); } } else { addByteCode(ByteCode.IFNULL, (simpleChild) ? falseGOTO : popGOTO); short popStack = classFile.getStackTop(); if (simpleChild) generateCodeFromNode(child, node, -1, -1); pushUndefined(); addByteCode(ByteCode.IF_ACMPEQ, falseGOTO); addByteCode(ByteCode.GOTO, trueGOTO); if (!simpleChild) { markLabel(popGOTO, popStack); addByteCode(ByteCode.POP); addByteCode(ByteCode.GOTO, falseGOTO); } } return; } Node rChild = child.getNextSibling(); Number numChild = nodeIsConvertToObjectOfNumber(rChild); if (nodeIsDirectCallParameter(child) && (numChild != null)) { OptLocalVariable lVar1 = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); aload(lVar1.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int notNumbersLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, notNumbersLabel); dload((short)(lVar1.getJRegister() + 1)); push(numChild.doubleValue()); addByteCode(ByteCode.DCMPL); if (op == TokenStream.EQ) addByteCode(ByteCode.IFEQ, trueGOTO); else addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); markLabel(notNumbersLabel); // fall thru into generic handling } generateCodeFromNode(child, node, -1, -1); generateCodeFromNode(rChild, node, -1, -1); String name; switch (op) { case TokenStream.EQ: name = version == Context.VERSION_1_2 ? "shallowEq" : "eq"; addScriptRuntimeInvoke(name, "(Ljava/lang/Object;Ljava/lang/Object;)", "Z"); break; case TokenStream.NE: name = version == Context.VERSION_1_2 ? "shallowNeq" : "neq"; addOptRuntimeInvoke(name, "(Ljava/lang/Object;Ljava/lang/Object;)", "Z"); break; case TokenStream.SHEQ: name = "shallowEq"; addScriptRuntimeInvoke(name, "(Ljava/lang/Object;Ljava/lang/Object;)", "Z"); break; case TokenStream.SHNE: name = "shallowNeq"; addOptRuntimeInvoke(name, "(Ljava/lang/Object;Ljava/lang/Object;)", "Z"); break; default: name = null; badTree(); } addByteCode(ByteCode.IFNE, trueGOTO); addByteCode(ByteCode.GOTO, falseGOTO); } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8bb4a031bf2458fe168832974b20133e459d2b98/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 19508, 3817, 12, 907, 756, 16, 2029, 1151, 16, 2029, 982, 16, 509, 638, 43, 27019, 16, 509, 629, 43, 27019, 13, 288, 3639, 509, 1061, 273, 756, 18, 588, 1702, 5621, 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, 3238, 918, 3757, 19508, 3817, 12, 907, 756, 16, 2029, 1151, 16, 2029, 982, 16, 509, 638, 43, 27019, 16, 509, 629, 43, 27019, 13, 288, 3639, 509, 1061, 273, 756, 18, 588, 1702, 5621, 3...
boolean focusedWindowChangeAllowed, long time) { return true; }
boolean focusedWindowChangeAllowed, long time) { return true; }
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ae9db4fc68ede9647d01b988919ce05ed61bf034/SwingTextFieldPeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingTextFieldPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 590, 9233, 12, 1841, 9052, 4865, 1763, 16, 1250, 6269, 16, 5411, 1250, 22397, 3829, 3043, 5042, 16, 1525, 813, 13, 288, 3639, 327, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 590, 9233, 12, 1841, 9052, 4865, 1763, 16, 1250, 6269, 16, 5411, 1250, 22397, 3829, 3043, 5042, 16, 1525, 813, 13, 288, 3639, 327, 638, 31, 565, 289, 2, -100, -100, -100, -1...
tokfix();
private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c = nextc(); } if (c == '0') { c = nextc(); if (c == 'x' || c == 'X') { // hexadecimal c = nextc(); do { if (c == '_') { seen_uc = true; continue; } if (!ISXDIGIT(c)) { break; } seen_uc = false; tokadd(c); } while ((c = nextc()) != 0); pushback(c); tokfix(); if (toklen() == 0) { yyerror("hexadecimal number without hex-digits"); } else if (seen_uc) { return decode_num(c, is_float, seen_uc, true); } yyVal = rb_cstr2inum(tok(), 16); return Token.tINTEGER; } if (c == 'b' || c == 'B') { // binary c = nextc(); do { if (c == '_') { seen_uc = true; continue; } if (c != '0' && c != '1') { break; } seen_uc = false; tokadd(c); } while ((c = nextc()) != 0); pushback(c); tokfix(); if (toklen() == 0) { yyerror("numeric literal without digits"); } else if (seen_uc) { return decode_num(c, is_float, seen_uc, true); } yyVal = rb_cstr2inum(tok(), 2); return Token.tINTEGER; } if (c >= '0' && c <= '7' || c == '_') { // octal do { if (c == '_') { seen_uc = true; continue; } if (c < '0' || c > '7') { break; } seen_uc = false; tokadd(c); } while ((c = nextc()) != 0); pushback(c); tokfix(); if (seen_uc) { return decode_num(c, is_float, seen_uc, true); } yyVal = rb_cstr2inum(tok(), 8); return Token.tINTEGER; } if (c > '7' && c <= '9') { yyerror("Illegal octal digit"); } else if (c == '.') { tokadd('0'); } else { pushback(c); yyVal = RubyFixnum.zero(ruby); return Token.tINTEGER; } } for (;;) { switch (c) { case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : seen_uc = false; tokadd(c); break; case '.' : if (seen_point || seen_e) { return decode_num(c, is_float, seen_uc); } else { int c0 = nextc(); if (!Character.isDigit((char) c0)) { pushback(c0); return decode_num(c, is_float, seen_uc); } c = c0; } tokadd('.'); tokadd(c); is_float = true; seen_point = true; seen_uc = false; break; case 'e' : case 'E' : if (seen_e) { return decode_num(c, is_float, seen_uc); } tokadd(c); seen_e = true; is_float = true; while ((c = nextc()) == '_') { seen_uc = true; } if (c == '-' || c == '+') { tokadd(c); } else { continue; } break; case '_' : // '_' in number just ignored seen_uc = true; break; default : return decode_num(c, is_float, seen_uc); } c = nextc(); } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 787, 67, 2107, 12, 474, 276, 13, 288, 3639, 1250, 353, 67, 5659, 31, 3639, 1250, 5881, 67, 1153, 31, 3639, 1250, 5881, 67, 73, 31, 3639, 1250, 5881, 67, 5286, 31, 3639, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 787, 67, 2107, 12, 474, 276, 13, 288, 3639, 1250, 353, 67, 5659, 31, 3639, 1250, 5881, 67, 1153, 31, 3639, 1250, 5881, 67, 73, 31, 3639, 1250, 5881, 67, 5286, 31, 3639, 353...
if(variableName == null || "".equals(variableName = variableName.trim()))
if((variableName = EnvVarOperationProcessor.normalizeName(variableName)) == null)
public IBuildEnvironmentVariable getVariable(String variableName, IContextInfo contextInfo, boolean includeParentLevels){ if(contextInfo == null) return null; if(variableName == null || "".equals(variableName = variableName.trim())) //$NON-NLS-1$ return null; IContextInfo infos[] = getAllContextInfos(contextInfo); variableName = adjustName(variableName); if(!includeParentLevels){ IEnvironmentVariableSupplier suppliers[] = infos[0].getSuppliers(); boolean bVarFound = false; for(int i = 0; i < suppliers.length; i++){ if(suppliers[i].getVariable(variableName,infos[0].getContext()) != null){ bVarFound = true; break; } } if(!bVarFound) return null; } IBuildEnvironmentVariable variable = null; for(int i = infos.length-1 ; i >=0 ; i-- ) { IContextInfo info = infos[i]; IEnvironmentVariableSupplier suppliers[] = info.getSuppliers(); for(int j = suppliers.length-1 ; j >= 0 ; j-- ) { IEnvironmentVariableSupplier supplier = suppliers[j]; IBuildEnvironmentVariable var = supplier.getVariable(variableName,info.getContext()); if(var == null) continue; if(variable == null) variable = var; else variable = EnvVarOperationProcessor.performOperation(variable,var); } } if(variable != null && variable.getOperation() == IBuildEnvironmentVariable.ENVVAR_REMOVE) variable = null; return variable; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/fa2c1a50ab37cebc7024ad9bb983e8d53b4f4b1c/EnvironmentVariableProvider.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/envvar/EnvironmentVariableProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3116, 5494, 3092, 13522, 12, 780, 17834, 16, 1082, 202, 45, 1042, 966, 819, 966, 16, 1250, 2341, 3054, 12240, 15329, 202, 202, 430, 12, 2472, 966, 422, 446, 13, 1082, 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, 467, 3116, 5494, 3092, 13522, 12, 780, 17834, 16, 1082, 202, 45, 1042, 966, 819, 966, 16, 1250, 2341, 3054, 12240, 15329, 202, 202, 430, 12, 2472, 966, 422, 446, 13, 1082, 202...
final int type = JvmType.SignatureToType(fieldRef.getSignature());
final int type = JvmType.SignatureToType(fieldRef.getSignature());
public final void visit_getfield(VmConstFieldRef fieldRef) { //TODO: port to orp-style; must probably implement a getfield method // in each Item! fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField) field; final int offset = inf.getOffset(); final int type = JvmType.SignatureToType(fieldRef.getSignature()); final RefItem ref = vstack.popRef(); ref.load(eContext); final Register refr = ref.getRegister(); final X86RegisterPool pool = eContext.getPool(); if (!fieldRef.isWide()) { final WordItem iw = WordItem.createReg(type, refr); os.writeMOV(INTSIZE, refr, refr, offset); pool.transferOwnerTo(refr, iw); vstack.push(iw); } else { final DoubleWordItem idw = requestDoubleWordRegisters(type); os.writeMOV(INTSIZE, idw.getMsbRegister(), refr, offset + 4); // MSB os.writeMOV(INTSIZE, idw.getLsbRegister(), refr, offset); // LSB ref.release(eContext); vstack.push(idw); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 3757, 67, 588, 1518, 12, 22143, 9661, 974, 1957, 652, 1957, 13, 288, 3639, 368, 6241, 30, 1756, 358, 578, 84, 17, 4060, 31, 1297, 8656, 2348, 279, 336, 1518, 707, 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, 727, 918, 3757, 67, 588, 1518, 12, 22143, 9661, 974, 1957, 652, 1957, 13, 288, 3639, 368, 6241, 30, 1756, 358, 578, 84, 17, 4060, 31, 1297, 8656, 2348, 279, 336, 1518, 707, 3639, ...
key = pluginManager.pluginKeyFromId(getPlugin().getPluginId());
key = PluginManager.pluginKeyFromId(getPlugin().getPluginId());
private boolean setPlugin() { PluginManager pluginManager = getLockssDaemon().getPluginManager(); String auId; AuProxy auProxy; String key; auId = getAndVerifyParameter(AP_E_AUID); setPlugin(getAnyAuProxy(auId)); key = pluginManager.pluginKeyFromId(getPlugin().getPluginId()); if (!pluginLoaded(key)) { return error("Plugin is not loaded: " + key); } return true; }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ec8e5a0280b90d913120c32dc3ba7912b376b9c6/EditAuConfigure.java/clean/src/org/lockss/uiapi/commands/EditAuConfigure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 444, 3773, 1435, 288, 565, 6258, 1318, 1909, 1318, 273, 22206, 1049, 12858, 7675, 588, 3773, 1318, 5621, 565, 514, 3639, 20309, 548, 31, 565, 432, 89, 3886, 4202, 20309, 3886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 444, 3773, 1435, 288, 565, 6258, 1318, 1909, 1318, 273, 22206, 1049, 12858, 7675, 588, 3773, 1318, 5621, 565, 514, 3639, 20309, 548, 31, 565, 432, 89, 3886, 4202, 20309, 3886, ...
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 12, Short.MAX_VALUE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
private void initComponents() { convertCoordinatesGroup = new javax.swing.ButtonGroup(); jPanel2 = new javax.swing.JPanel(); townLabel = new javax.swing.JLabel(); //items = new Object[] {"Praha", "Brno", "Turnov", "Trebic"}; townComboBox = new AutoComboBoxNG3(model.getVillages(), true); taxonLabel = new javax.swing.JLabel(); yearLabel = new javax.swing.JLabel(); placeDescriptionLabel = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); descriptionArea = new javax.swing.JTextArea(); jScrollPane3 = new javax.swing.JScrollPane(); Pair<String, Integer>[] plants = model.getPlants(); String[] choices = new String[plants.length]; for (int i = 0; i < plants.length; i++) choices[i] = plants[i].getFirst(); taxonTextArea = new AutoTextArea(choices, this); extendedButton = new javax.swing.JToggleButton(); checklistButton = new javax.swing.JButton(); yearSpinner = new javax.swing.JSpinner(); jScrollPane1 = new javax.swing.JScrollPane(); authorTable = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); monthLabel = new javax.swing.JLabel(); dayLabel = new javax.swing.JLabel(); monthChooser = new com.toedter.calendar.JMonthChooser(); dayChooser = new com.toedter.calendar.JDayChooser(); timeLabel = new javax.swing.JLabel(); timeTextField = new javax.swing.JTextField(); jPanel5 = new javax.swing.JPanel(); quadrantLabel = new javax.swing.JLabel(); countryLabel = new javax.swing.JLabel(); territoryNameLabel = new javax.swing.JLabel(); phytNameLabel = new javax.swing.JLabel(); phytCodeLabel = new javax.swing.JLabel(); territoryNameCombo = new AutoComboBoxNG3(model.getTerritories(), true); phytNameCombo = new AutoComboBoxNG3(model.getPhytNames(), true); phytCodeCombo = new AutoComboBoxNG3(model.getPhytCodes(), true); phytCountryCombo = new AutoComboBoxNG3(model.getCountries(), false); quadrantTextField = new javax.swing.JTextField(); jPanel6 = new javax.swing.JPanel(); publicationLabel = new javax.swing.JLabel(); herbariumLabel = new javax.swing.JLabel(); projectLabel = new javax.swing.JLabel(); herbariumTextField = new javax.swing.JTextField(); sourceLabel = new javax.swing.JLabel(); sourceCombo = new AutoComboBoxNG3(model.getSources(), false); publicationCombo = new AutoComboBoxNG3(model.getPublications(), true); projectCombo = new AutoComboBoxNG3(model.getProjects(), true); jPanel7 = new javax.swing.JPanel(); jScrollPane4 = new javax.swing.JScrollPane(); locationNoteArea = new javax.swing.JTextArea(); jPanel1 = new javax.swing.JPanel(); altitudeLabel = new javax.swing.JLabel(); latitudeLabel = new javax.swing.JLabel(); longitudeLabel = new javax.swing.JLabel(); WGS84Button = new javax.swing.JRadioButton(); S42Button = new javax.swing.JRadioButton(); SJTSKButton = new javax.swing.JRadioButton(); altitudeTextField = new javax.swing.JTextField(); latitudeTextField = new javax.swing.JTextField(); longitudeTextField = new javax.swing.JTextField(); jPanel9 = new javax.swing.JPanel(); jScrollPane5 = new javax.swing.JScrollPane(); occurrenceNoteArea = new javax.swing.JTextArea(); requiredInfoLabel = new javax.swing.JLabel(); jPanel8 = new javax.swing.JPanel(); cancelButton = new javax.swing.JButton(); okButton = new javax.swing.JButton(); helpButton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setResizable(false); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.BasicData"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); jPanel2.setPreferredSize(new java.awt.Dimension(700, 200)); townLabel.setText("Nearest bigger seat:"); townComboBox.setActionCommand("townComboBox"); taxonLabel.setText("Taxon:"); yearLabel.setText("Year:"); placeDescriptionLabel.setText("Place description:"); descriptionArea.setColumns(20); descriptionArea.setRows(5); descriptionArea.setLineWrap(true); new TabTransfersFocus(descriptionArea); jScrollPane2.setViewportView(descriptionArea); taxonTextArea.setColumns(20); taxonTextArea.setRows(5); taxonTextArea.setAutoscrolls(false); jScrollPane3.setViewportView(taxonTextArea); extendedButton.setText("Extended"); extendedButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { extendedButtonActionPerformed(evt); } }); extendedButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { extendedButtonMouseClicked(evt); } }); checklistButton.setText("Checklist"); yearSpinner.setValue(2006); ((SpinnerNumberModel)yearSpinner.getModel()).setMinimum(1); authorTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane1.setViewportView(authorTable); org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .addContainerGap() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(taxonLabel) .add(yearLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .add(yearSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 164, Short.MAX_VALUE) .add(checklistButton)) .add(jScrollPane3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 329, Short.MAX_VALUE) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 329, Short.MAX_VALUE)) .add(85, 85, 85) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(townLabel) .add(placeDescriptionLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(townComboBox, 0, 216, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2Layout.createSequentialGroup() .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(extendedButton) .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)))) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createSequentialGroup() .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(townComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(townLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(placeDescriptionLabel) .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .add(jPanel2Layout.createSequentialGroup() .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 69, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(taxonLabel) .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 53, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(yearSpinner, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(yearLabel)) .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(checklistButton) .add(extendedButton))))) .add(183, 183, 183)) ); getContentPane().add(jPanel2, java.awt.BorderLayout.NORTH); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.ExtendedData"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); jPanel3.setMinimumSize(new java.awt.Dimension(800, 480)); jPanel3.setPreferredSize(new java.awt.Dimension(800, 480)); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.TimePanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); monthLabel.setText("Month:"); dayLabel.setText("Day:"); monthChooser.setNextFocusableComponent(dayChooser); ((JComboBox)monthChooser.getComboBox()).addItem(""); monthChooser.setLocale(L10n.getCurrentLocale()); dayChooser.setNextFocusableComponent(okButton); dayChooser.setLocale(L10n.getCurrentLocale()); timeLabel.setText("Time:"); timeTextField.setNextFocusableComponent(okButton); org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel4Layout.createSequentialGroup() .addContainerGap() .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(monthLabel) .add(timeLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(timeTextField) .add(monthChooser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(dayLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(dayChooser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel4Layout.createSequentialGroup() .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel4Layout.createSequentialGroup() .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(monthLabel) .add(monthChooser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(timeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(timeLabel))) .add(dayLabel) .add(dayChooser, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.LocationPanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); quadrantLabel.setText("Quadrant:"); countryLabel.setText("Country:"); territoryNameLabel.setText("Territory name:"); phytNameLabel.setText("Phytochoria name:"); phytCodeLabel.setText("Phytochoria code:"); territoryNameCombo.setActionCommand("territoryNameCombo"); phytNameCombo.setActionCommand("phytNameCombo"); phytCodeCombo.setActionCommand("phytCodeCombo"); phytCountryCombo.setActionCommand("phytCountryCombo"); phytCountryCombo.insertItemAt(model.EMPTY_STRING,0); quadrantTextField.setActionCommand("quadrantTextField"); org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .addContainerGap() .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(countryLabel) .add(phytNameLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(phytCountryCombo, 0, 206, Short.MAX_VALUE) .add(phytNameCombo, 0, 206, Short.MAX_VALUE))) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel5Layout.createSequentialGroup() .add(territoryNameLabel) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(territoryNameCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 206, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, quadrantLabel) .add(org.jdesktop.layout.GroupLayout.TRAILING, phytCodeLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .add(quadrantTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) .add(phytCodeCombo, 0, 90, Short.MAX_VALUE)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel5Layout.linkSize(new java.awt.Component[] {phytCountryCombo, phytNameCombo, territoryNameCombo}, org.jdesktop.layout.GroupLayout.HORIZONTAL); jPanel5Layout.linkSize(new java.awt.Component[] {phytCodeCombo, quadrantTextField}, org.jdesktop.layout.GroupLayout.HORIZONTAL); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createSequentialGroup() .addContainerGap() .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(territoryNameCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(territoryNameLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(phytNameCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(phytNameLabel)) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(phytCodeLabel) .add(phytCodeCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(phytCountryCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(quadrantLabel) .add(quadrantTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(countryLabel)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.OtherPanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); publicationLabel.setText("Publication:"); herbariumLabel.setText("Herbarium:"); projectLabel.setText("Project:"); herbariumTextField.setActionCommand("herbariumTextField"); sourceLabel.setText("Source:"); sourceCombo.setActionCommand("sourceCombo"); sourceCombo.insertItemAt(model.EMPTY_STRING,0); publicationCombo.setActionCommand("publicationCombo"); publicationCombo.insertItemAt(model.EMPTY_PAIR,0); projectCombo.setActionCommand("projectCombo"); org.jdesktop.layout.GroupLayout jPanel6Layout = new org.jdesktop.layout.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel6Layout.createSequentialGroup() .addContainerGap() .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(projectLabel) .add(herbariumLabel) .add(publicationLabel) .add(sourceLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(projectCombo, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(publicationCombo, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(herbariumTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE) .add(sourceCombo, 0, 171, Short.MAX_VALUE)) .addContainerGap(76, Short.MAX_VALUE)) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel6Layout.createSequentialGroup() .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(sourceLabel) .add(sourceCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 12, Short.MAX_VALUE) .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(publicationLabel) .add(publicationCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(herbariumLabel) .add(herbariumTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(projectLabel) .add(projectCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.LocationNotePanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); locationNoteArea.setColumns(20); locationNoteArea.setRows(5); locationNoteArea.setLineWrap(true); new TabTransfersFocus(locationNoteArea); jScrollPane4.setViewportView(locationNoteArea); org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7Layout.createSequentialGroup() .addContainerGap() .add(jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE) .addContainerGap()) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel7Layout.createSequentialGroup() .add(jScrollPane4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE) .addContainerGap()) ); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.GPSPanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 10))); altitudeLabel.setText("Altitude:"); latitudeLabel.setText("Latitude:"); longitudeLabel.setText("Longitude:"); convertCoordinatesGroup.add(WGS84Button); WGS84Button.setText("WGS84"); WGS84Button.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); WGS84Button.setMargin(new java.awt.Insets(0, 0, 0, 0)); WGS84Button.setNextFocusableComponent(S42Button); WGS84Button.setActionCommand("WGS84"); WGS84Button.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { WGS84ButtonActionPerformed(evt); } }); convertCoordinatesGroup.add(S42Button); S42Button.setText("S-42"); S42Button.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); S42Button.setMargin(new java.awt.Insets(0, 0, 0, 0)); S42Button.setNextFocusableComponent(SJTSKButton); S42Button.setActionCommand("S42"); convertCoordinatesGroup.add(SJTSKButton); SJTSKButton.setText("S-JTSK"); SJTSKButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); SJTSKButton.setMargin(new java.awt.Insets(0, 0, 0, 0)); SJTSKButton.setNextFocusableComponent(sourceCombo); SJTSKButton.setActionCommand("SJTSK"); altitudeTextField.setNextFocusableComponent(latitudeTextField); latitudeTextField.setNextFocusableComponent(longitudeTextField); longitudeTextField.setNextFocusableComponent(WGS84Button); org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createSequentialGroup() .addContainerGap() .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(latitudeLabel) .add(longitudeLabel) .add(altitudeLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(latitudeTextField) .add(altitudeTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 51, Short.MAX_VALUE) .add(longitudeTextField)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(S42Button) .add(WGS84Button) .add(SJTSKButton)) .addContainerGap()) ); jPanel1Layout.linkSize(new java.awt.Component[] {altitudeTextField, latitudeTextField, longitudeTextField}, org.jdesktop.layout.GroupLayout.HORIZONTAL); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel1Layout.createSequentialGroup() .addContainerGap() .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(WGS84Button) .add(altitudeLabel) .add(altitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(6, 6, 6) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(S42Button) .add(latitudeLabel) .add(latitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(SJTSKButton) .add(longitudeLabel) .add(longitudeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addContainerGap(48, Short.MAX_VALUE)) ); jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, L10n.getString("AddEdit.OccurrenceNotePanel"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 0, 12))); occurrenceNoteArea.setColumns(20); occurrenceNoteArea.setRows(5); occurrenceNoteArea.setLineWrap(true); new TabTransfersFocus(occurrenceNoteArea); jScrollPane5.setViewportView(occurrenceNoteArea); org.jdesktop.layout.GroupLayout jPanel9Layout = new org.jdesktop.layout.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup( jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel9Layout.createSequentialGroup() .addContainerGap() .add(jScrollPane5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE) .addContainerGap()) ); jPanel9Layout.setVerticalGroup( jPanel9Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel9Layout.createSequentialGroup() .add(jScrollPane5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE) .addContainerGap()) ); requiredInfoLabel.setText("requiredInfoLabel"); org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel3Layout.createSequentialGroup() .add(12, 12, 12) .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel3Layout.createSequentialGroup() .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(requiredInfoLabel)) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel3Layout.createSequentialGroup() .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) .add(jPanel3Layout.createSequentialGroup() .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(jPanel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(jPanel7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel3Layout.createSequentialGroup() .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(jPanel7, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel9, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(jPanel6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(jPanel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 163, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(requiredInfoLabel)) .add(288, 288, 288)) ); getContentPane().add(jPanel3, java.awt.BorderLayout.CENTER); cancelButton.setText("Cancel"); okButton.setText("Ok"); helpButton.setText("Help"); helpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { helpButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout jPanel8Layout = new org.jdesktop.layout.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel8Layout.createSequentialGroup() .addContainerGap() .add(helpButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 598, Short.MAX_VALUE) .add(okButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(cancelButton) .addContainerGap()) ); jPanel8Layout.linkSize(new java.awt.Component[] {cancelButton, helpButton, okButton}, org.jdesktop.layout.GroupLayout.HORIZONTAL); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jPanel8Layout.createSequentialGroup() .addContainerGap() .add(jPanel8Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(helpButton) .add(cancelButton) .add(okButton)) .addContainerGap(40, Short.MAX_VALUE)) ); jPanel8Layout.linkSize(new java.awt.Component[] {cancelButton, helpButton, okButton}, org.jdesktop.layout.GroupLayout.VERTICAL); getContentPane().add(jPanel8, java.awt.BorderLayout.SOUTH); pack(); }// </editor-fold>//GEN-END:initComponents
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/47c97a9c5d4ea2534776b7e056fa95c483f41164/AddEditView.java/buggy/trunk/src/net/sf/plantlore/client/AddEditView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 1765, 13431, 1114, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 17871, 22, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 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, 3238, 918, 1208, 7171, 1435, 288, 3639, 1765, 13431, 1114, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 17871, 22, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, ...
int n = group.activeCount(); Thread[] list = new Thread[n]; group.enumerate(list); boolean noMoreFetcherThread = true; for (int i = 0; i < n; i++) { if (list[i] == null) continue; String tname = list[i].getName(); if (tname.startsWith(THREAD_GROUP_NAME)) noMoreFetcherThread = false; if (LOG.isLoggable(Level.FINE)) LOG.fine(list[i].toString());
reportStatus(); synchronized (this) { if ((System.currentTimeMillis() - lastRequestStart) > timeout) { LOG.warning("Aborting with "+activeThreads+" hung threads."); return; }
public void run() throws IOException, InterruptedException { start = System.currentTimeMillis(); for (int i = 0; i < threadCount; i++) { // spawn threads FetcherThread thread = new FetcherThread(THREAD_GROUP_NAME+i); thread.start(); } // Quit monitoring if all FetcherThreads are gone. // There could still be other threads, which may well be runaway threads // started by external libs via FetcherThreads and it is generally safe // to ignore them because our main FetcherThreads have finished their jobs. // In fact we are a little more cautious here by making sure // there is no more outstanding page fetches via monitoring // changes of pages, errors and bytes. int pages0 = pages; int errors0 = errors; long bytes0 = bytes; while (true) { Thread.sleep(1000); if (LogFormatter.hasLoggedSevere()) throw new RuntimeException("SEVERE error logged. Exiting fetcher."); int n = group.activeCount(); Thread[] list = new Thread[n]; group.enumerate(list); boolean noMoreFetcherThread = true; // assumption for (int i = 0; i < n; i++) { // this thread may have gone away in the meantime if (list[i] == null) continue; String tname = list[i].getName(); if (tname.startsWith(THREAD_GROUP_NAME)) // prove it noMoreFetcherThread = false; if (LOG.isLoggable(Level.FINE)) LOG.fine(list[i].toString()); } if (noMoreFetcherThread) { if (LOG.isLoggable(Level.FINE)) LOG.fine("number of active threads: "+n); if (pages == pages0 && errors == errors0 && bytes == bytes0) break; status(); pages0 = pages; errors0 = errors; bytes0 = bytes; } } fetchList.close(); // close databases fetcherWriter.close(); contentWriter.close(); if (this.parsing) { parseTextWriter.close(); parseDataWriter.close(); } }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/b8bd3f133b29d794833bdcffc1bfd0d41d421066/Fetcher.java/clean/src/java/org/apache/nutch/fetcher/Fetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 1435, 1216, 1860, 16, 7558, 288, 565, 787, 273, 2332, 18, 2972, 28512, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2650, 1380, 31, 277, 27245, 288, 4202, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1216, 1860, 16, 7558, 288, 565, 787, 273, 2332, 18, 2972, 28512, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2650, 1380, 31, 277, 27245, 288, 4202, 368...
configurer.getWorkbench().showIntro(window); IDEWorkbenchPlugin.getDefault().getPreferenceStore().setValue(IDEInternalPreferences.INTRO, false);
if (configurer.getWorkbench().showIntro(window) != null) { IDEWorkbenchPlugin.getDefault().getPreferenceStore().setValue(IDEInternalPreferences.INTRO, false); return true; }
private boolean openIntro() { if (IDEWorkbenchPlugin.getDefault().getPreferenceStore().getBoolean(IDEInternalPreferences.INTRO)) { IWorkbenchWindow window = configurer.getWorkbench().getActiveWorkbenchWindow(); if (window == null) { if (configurer.getWorkbench().getWorkbenchWindowCount() > 0) { window = configurer.getWorkbench().getWorkbenchWindows()[0]; } } if (window != null) { configurer.getWorkbench().showIntro(window); IDEWorkbenchPlugin.getDefault().getPreferenceStore().setValue(IDEInternalPreferences.INTRO, false); } } return configurer.getWorkbench().getIntroRegistry().getIntroCount() > 0; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/038065d970c9a9fb236e09378c7e23e3d619e009/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1696, 1702, 303, 1435, 288, 202, 202, 430, 261, 10385, 2421, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 7675, 588, 5507, 12, 10385, 3061, 12377, 18, 3217, 1457, 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, 225, 202, 1152, 1250, 1696, 1702, 303, 1435, 288, 202, 202, 430, 261, 10385, 2421, 22144, 3773, 18, 588, 1868, 7675, 588, 9624, 2257, 7675, 588, 5507, 12, 10385, 3061, 12377, 18, 3217, 1457, 3...
Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0042 (s char(5) null, i integer null, j integer not null)");
pstmt.setString(1, "hello"); pstmt.setNull(2, java.sql.Types.INTEGER); pstmt.setInt(3, 1);
public void testPreparedStatement0042() throws Exception { Connection cx = getConnection(); dropTable("#t0042"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0042 (s char(5) null, i integer null, j integer not null)"); PreparedStatement pStmt = cx.prepareStatement("insert into #t0042 (s, i, j) values (?, ?, ?)"); pStmt.setString(1, "hello"); pStmt.setNull(2, java.sql.Types.INTEGER); pStmt.setInt(3, 1); int count = pStmt.executeUpdate(); assertEquals(count, 1); pStmt.setInt(2, 42); pStmt.setInt(3, 2); count = pStmt.executeUpdate(); assertEquals(count, 1); pStmt.close(); pStmt = cx.prepareStatement("select i from #t0042 order by j"); ResultSet rs = pStmt.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); rs.getInt(1); assertTrue(rs.wasNull()); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getInt(1), 42); assertTrue(!rs.wasNull()); assertTrue("Expected no result set", !rs.next()); cx.close(); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/c54f5373d7fcd2b3aa2393d9b738e801d4a2f7b2/TimestampTest.java/buggy/trunk/jtds/src/test/net/sourceforge/jtds/test/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29325, 713, 9452, 1435, 1216, 1185, 288, 3639, 4050, 9494, 273, 6742, 5621, 3639, 3640, 1388, 2932, 7, 88, 713, 9452, 8863, 3639, 8056, 3480, 273, 9494, 18, 2640, 3406, 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, 377, 1071, 918, 1842, 29325, 713, 9452, 1435, 1216, 1185, 288, 3639, 4050, 9494, 273, 6742, 5621, 3639, 3640, 1388, 2932, 7, 88, 713, 9452, 8863, 3639, 8056, 3480, 273, 9494, 18, 2640, 3406, 5...
sameVmNode = TestNodes.getSameVMNode(); if (sameVmNode == null) { new TestNodes().action(); sameVmNode = TestNodes.getSameVMNode(); } localVmNode = TestNodes.getLocalVMNode(); LoadBalancing.activateOn(new Node[]{sameVmNode,localVmNode}, new CurrentTimeMillisMetricFactory()); }
this.pad = ProActive.getProactiveDescriptor(XML_LOCATION); this.pad.activateMappings(); this.vn1 = this.pad.getVirtualNode("VN"); this.vn1.getNumberOfCreatedNodesAfterDeployment(); this.nodeOne = this.vn1.getNode(0); this.nodeTwo = this.vn1.getNode(1); LoadBalancing.activateOn(new Node[] { nodeOne, nodeTwo }, new CurrentTimeMillisMetricFactory()); }
public void initTest() throws Exception { sameVmNode = TestNodes.getSameVMNode(); if (sameVmNode == null) { new TestNodes().action(); sameVmNode = TestNodes.getSameVMNode(); } localVmNode = TestNodes.getLocalVMNode(); LoadBalancing.activateOn(new Node[]{sameVmNode,localVmNode}, new CurrentTimeMillisMetricFactory()); }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/b50c4e5642ea852be0a0b8290c36e6d093e7bfd4/Test.java/clean/src/nonregressiontest/loadbalancing/Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 4709, 1435, 1216, 1185, 288, 202, 202, 14307, 22143, 907, 273, 7766, 3205, 18, 588, 8650, 7397, 907, 5621, 3639, 309, 261, 14307, 22143, 907, 422, 446, 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, 225, 202, 482, 918, 1208, 4709, 1435, 1216, 1185, 288, 202, 202, 14307, 22143, 907, 273, 7766, 3205, 18, 588, 8650, 7397, 907, 5621, 3639, 309, 261, 14307, 22143, 907, 422, 446, 13, 288, 5411,...
IDEContributionItemFactory.BUILD.getId(),
IDEActionFactory.BUILD.getId(),
public void fillActionBars(IActionBars actionBars) { actionBars.setGlobalActionHandler( ActionFactory.REFRESH.getId(), refreshAction); actionBars.setGlobalActionHandler( IDEContributionItemFactory.BUILD.getId(), buildAction); actionBars.setGlobalActionHandler( IDEContributionItemFactory.BUILD_PROJECT.getId(), rebuildAction); actionBars.setGlobalActionHandler( IDEActionFactory.OPEN_PROJECT.getId(), openProjectAction); actionBars.setGlobalActionHandler( IDEActionFactory.CLOSE_PROJECT.getId(), closeProjectAction); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c2b87eea5a66268e7421af579a790a09040896da/WorkspaceActionGroup.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/WorkspaceActionGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3636, 1803, 5190, 87, 12, 45, 1803, 5190, 87, 1301, 5190, 87, 13, 288, 202, 202, 1128, 5190, 87, 18, 542, 5160, 1803, 1503, 12, 1082, 202, 1803, 1733, 18, 10771, 14753, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3636, 1803, 5190, 87, 12, 45, 1803, 5190, 87, 1301, 5190, 87, 13, 288, 202, 202, 1128, 5190, 87, 18, 542, 5160, 1803, 1503, 12, 1082, 202, 1803, 1733, 18, 10771, 14753, ...
sendRequest(methodCall, future, LocalBodyStore.getInstance().getCurrentThreadBody());
try { sendRequest(methodCall, future, LocalBodyStore.getInstance().getCurrentThreadBody()); } catch (java.io.IOException ioe) { ExceptionHandler.addResult((FutureProxy) future); throw ioe; }
protected void sendRequest(MethodCall methodCall, Future future) throws java.io.IOException, RenegotiateSessionException { // Determines the body that is at the root of the subsystem from which the // call was sent. // It is always true that the body that issued the request (and not the body // that is the target of the call) and this BodyProxy are in the same // address space because being a local representative for something remote // is what the proxy is all about. This is why we know that the table that // can be accessed by using a static methode has this information. ExceptionHandler.addRequest(methodCall, (FutureProxy) future); sendRequest(methodCall, future, LocalBodyStore.getInstance().getCurrentThreadBody()); }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/e81082750df1302d0566c4d4a7f02b919b3cdf8c/UniversalBodyProxy.java/buggy/src/org/objectweb/proactive/core/body/proxy/UniversalBodyProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12413, 12, 12592, 707, 1477, 16, 9108, 3563, 13, 3639, 1216, 2252, 18, 1594, 18, 14106, 16, 25921, 27445, 3840, 2157, 503, 288, 3639, 368, 30778, 326, 1417, 716, 353, 622, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12413, 12, 12592, 707, 1477, 16, 9108, 3563, 13, 3639, 1216, 2252, 18, 1594, 18, 14106, 16, 25921, 27445, 3840, 2157, 503, 288, 3639, 368, 30778, 326, 1417, 716, 353, 622, 326,...
public void execute(final DispatchTask task)
public void execute(final HandlerTask[] tasks)
public void execute(final DispatchTask task) { // This will spin-off a new thread using the thread pool and set it up with // the given task. Additionally, the thread is associated with a callback // that will handover (i.e., yet again call this method) and append the // tasks given to to the m_handoverQueue (i.e., the synchronous queue). This // will happen in case that the current asynchronous thread is used to // send a synchronous event. m_pool.execute(task, new DeliverTask() { public void execute(final HandlerTask[] managers) { final BlockTask waitManager = new BlockTask(); final HandlerTask[] newmanagers = new HandlerTask[managers.length + 1]; System.arraycopy(managers, 0, newmanagers, 0, managers.length); newmanagers[managers.length] = waitManager; m_handoverQueue.append(newmanagers); task.handover(); waitManager.block(); } }); }
45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/dbe6486abb303034784172a236dab3338b39c3e4/AsyncDeliverTasks.java/buggy/eventadmin/src/main/java/org/apache/felix/eventadmin/impl/tasks/AsyncDeliverTasks.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 6385, 4663, 2174, 8526, 4592, 13, 565, 288, 3639, 368, 1220, 903, 12490, 17, 3674, 279, 394, 2650, 1450, 326, 2650, 2845, 471, 444, 518, 731, 598, 3639, 368, 326, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 6385, 4663, 2174, 8526, 4592, 13, 565, 288, 3639, 368, 1220, 903, 12490, 17, 3674, 279, 394, 2650, 1450, 326, 2650, 2845, 471, 444, 518, 731, 598, 3639, 368, 326, 8...
boolean debug = log.isDebugEnabled(); while (true) { try { if (debug) log.debug("check for input"); byte msg[] = null; synchronized (this) { msg = (byte[])xmtList.removeFirst(); } try { if (ostream != null) { if (!controller.okToSend()) log.warn("LocoNet port not ready to receive"); if (debug) log.debug("start write to stream"); ostream.write(msg); if (debug) log.debug("end write to stream"); } else { log.warn("sendLocoNetMessage: no connection established"); } } catch (java.io.IOException e) { log.warn("sendLocoNetMessage: IOException: "+e.toString()); } } catch (NoSuchElementException e) { if (debug) log.debug("start wait"); try { synchronized(this) {
boolean debug = log.isDebugEnabled(); while (true) { try { if (debug) log.debug("check for input"); byte msg[] = null; synchronized (this) { msg = (byte[])xmtList.removeFirst(); } try { if (ostream != null) { if (!controller.okToSend()) log.warn("LocoNet port not ready to receive"); if (debug) log.debug("start write to stream"); ostream.write(msg); if (debug) log.debug("end write to stream"); } else { log.warn("sendLocoNetMessage: no connection established"); } } catch (java.io.IOException e) { log.warn("sendLocoNetMessage: IOException: "+e.toString()); } } catch (NoSuchElementException e) { if (debug) log.debug("start wait"); try { synchronized(this) {
public void run() { boolean debug = log.isDebugEnabled(); while (true) { // loop permanently // any input? try { // get content; failure is a NoSuchElementException if (debug) log.debug("check for input"); byte msg[] = null; synchronized (this) { msg = (byte[])xmtList.removeFirst(); } // input - now send try { if (ostream != null) { if (!controller.okToSend()) log.warn("LocoNet port not ready to receive"); if (debug) log.debug("start write to stream"); ostream.write(msg); if (debug) log.debug("end write to stream"); } else { // no stream connected log.warn("sendLocoNetMessage: no connection established"); } } catch (java.io.IOException e) { log.warn("sendLocoNetMessage: IOException: "+e.toString()); } } catch (NoSuchElementException e) { // message queue was empty, wait for input if (debug) log.debug("start wait"); try { synchronized(this) { // Java 1.4 gets confused by "wait()" in the // following line ((Object)this).wait(); } } catch (java.lang.InterruptedException ei) {} if (debug) log.debug("end wait"); } } }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/f5fb849b869cec68d7bbfcbf4cfbea47839c2925/LnPacketizer.java/buggy/jmri/jmrix/loconet/LnPacketizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 6494, 1198, 273, 613, 18, 291, 2829, 1526, 5621, 1082, 202, 17523, 261, 3767, 13, 288, 282, 368, 2798, 16866, 715, 9506, 202, 759, 1281, 810, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1086, 1435, 288, 1082, 202, 6494, 1198, 273, 613, 18, 291, 2829, 1526, 5621, 1082, 202, 17523, 261, 3767, 13, 288, 282, 368, 2798, 16866, 715, 9506, 202, 759, 1281, 810, ...
if (!this.isRuleSetFileExist()) {
if (!isRuleSetFileExist()) {
private void loadRuleSetFromProject() { if (!this.isRuleSetFileExist()) { try { final RuleSetFactory factory = new RuleSetFactory(); final IFile ruleSetFile = this.project.getFile(PMDPluginConstants.PROJECT_RULESET_FILE); this.projectRuleSet = factory.createRuleSet(ruleSetFile.getLocation().toOSString()); } catch (RuleSetNotFoundException e) { PMDPlugin.getDefault().logError("Project RuleSet cannot be loaded for project " + this.project.getName() + ". Using the rules from properties.", e); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/29b72f566e34c55c01e9e2f52bfe9773c4d11c3b/ProjectPropertiesModelImpl.java/clean/pmd-eclipse/src/net/sourceforge/pmd/eclipse/model/ProjectPropertiesModelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 21474, 1265, 4109, 1435, 288, 3639, 309, 16051, 291, 21474, 812, 4786, 10756, 288, 5411, 775, 288, 7734, 727, 6781, 694, 1733, 3272, 273, 394, 6781, 694, 1733, 5621, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 21474, 1265, 4109, 1435, 288, 3639, 309, 16051, 291, 21474, 812, 4786, 10756, 288, 5411, 775, 288, 7734, 727, 6781, 694, 1733, 3272, 273, 394, 6781, 694, 1733, 5621, 7734, ...
result = adaptedDecorators[i].getDecorator().decorateImage(image, adapted);
result = adaptedDecorators[i].getDecorator().decorateImage(result, adapted);
public Image decorateImage(Image image, Object element) { DecoratorDefinition[] decorators = getDecoratorsFor(element); Image result = image; for (int i = 0; i < decorators.length; i++) { result = decorators[i].getDecorator().decorateImage(image, element); } //Get any adaptions to IResource Object adapted = getResourceAdapter(element); if (adapted != null) { DecoratorDefinition[] adaptedDecorators = getDecoratorsFor(adapted); for (int i = 0; i < adaptedDecorators.length; i++) { if (adaptedDecorators[i].isAdaptable()) result = adaptedDecorators[i].getDecorator().decorateImage(image, adapted); } } return result; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ed3e471dfd9f29889a1c74c661b5ca36749c3d5c/DecoratorManager.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/DecoratorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 15752, 2040, 12, 2040, 1316, 16, 1033, 930, 13, 288, 202, 202, 10361, 1852, 8526, 19423, 273, 336, 7859, 3062, 1290, 12, 2956, 1769, 202, 202, 2040, 563, 273, 1316, 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, 3421, 15752, 2040, 12, 2040, 1316, 16, 1033, 930, 13, 288, 202, 202, 10361, 1852, 8526, 19423, 273, 336, 7859, 3062, 1290, 12, 2956, 1769, 202, 202, 2040, 563, 273, 1316, 31, ...
if (appServerType.startsWith("jboss")) { deployDir = jbossPrefix + deployDir; } else if (appServerType.equals("jetty") || appServerType.equals("oc4j") || appServerType.equals("orion") || appServerType.equals("resin") || appServerType.equals("tomcat")) {
if (appServerType.equals("jetty") || appServerType.equals("oc4j") || appServerType.equals("orion") || appServerType.equals("resin") || appServerType.equals("tomcat")) {
protected void deploy() throws Exception { try { File[] files = FileUtil.sortFiles(new File(baseDir).listFiles()); for (int i = 0; i < files.length; i++) { File srcFile = files[i]; boolean deploy = false; if (srcFile.getName().endsWith(".war")) { deploy = true; if ((wars.size() > 0) && (!wars.contains(srcFile.getName()))) { deploy = false; } } if (deploy) { System.out.println("\nDeploying " + srcFile.getName()); String deployDir = srcFile.getName(); if (appServerType.startsWith("jboss")) { deployDir = jbossPrefix + deployDir; } else if (appServerType.equals("jetty") || appServerType.equals("oc4j") || appServerType.equals("orion") || appServerType.equals("resin") || appServerType.equals("tomcat")) { if (unpackWar) { deployDir = deployDir.substring(0, deployDir.length() - 4); } } deployDir = destDir + "/" + deployDir; if (srcFile.isDirectory()) { deployDirectory( srcFile, new File(deployDir), getDisplayName(srcFile)); } else { deployFile(srcFile, new File(deployDir)); } } } } catch (Exception e) { e.printStackTrace(); } }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/c26c278b568cc398e3f9799f5354d071a7fcb4ef/BaseDeployer.java/buggy/portal-ejb/src/com/liferay/portal/tools/BaseDeployer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 7286, 1435, 1216, 1185, 225, 288, 202, 202, 698, 288, 1082, 202, 812, 8526, 1390, 273, 1387, 1304, 18, 3804, 2697, 12, 2704, 1387, 12, 1969, 1621, 2934, 1098, 2697, 10663,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7286, 1435, 1216, 1185, 225, 288, 202, 202, 698, 288, 1082, 202, 812, 8526, 1390, 273, 1387, 1304, 18, 3804, 2697, 12, 2704, 1387, 12, 1969, 1621, 2934, 1098, 2697, 10663,...
public void perspectiveClosed(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
public void perspectiveClosed( IWorkbenchPage page, IPerspectiveDescriptor perspective) {
public void perspectiveClosed(IWorkbenchPage page, IPerspectiveDescriptor perspective) { updateActiveCommandIdsAndActiveContextIds(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c982c620ee74d8f88359cf86b9700d8f8f07c71a/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26651, 7395, 12, 45, 2421, 22144, 1964, 1363, 16, 2971, 414, 16772, 3187, 26651, 13, 288, 1082, 202, 2725, 3896, 2189, 2673, 1876, 3896, 1042, 2673, 5621, 202, 202, 97, 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, 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, 3196, 202, 482, 918, 26651, 7395, 12, 45, 2421, 22144, 1964, 1363, 16, 2971, 414, 16772, 3187, 26651, 13, 288, 1082, 202, 2725, 3896, 2189, 2673, 1876, 3896, 1042, 2673, 5621, 202, 202, 97, 2,...
cols[index++] = lookup(root, colnd);
cols[index++] = lookup(colnd);
public void emit(Root root) { if (m_cols.size() == 0) { m_errors.warn(m_nd, "no metadata"); return; } Column[] cols = new Column[m_ids.size()]; int index = 0; for (Iterator it = m_ids.iterator(); it.hasNext(); ) { String id = (String) it.next(); ColumnNd colnd = (ColumnNd) m_cols.get(id); if (colnd == null) { m_errors.warn(m_nd, "no metadata for " + id); return; } cols[index++] = lookup(root, colnd); } unique(m_nd, cols, m_primary); }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/703319bfd292f40acbfef1124c76ffd5f8e143a3/PDL.java/clean/archive/proto/src/com/arsdigita/persistence/proto/pdl/PDL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3626, 12, 2375, 1365, 13, 288, 5411, 309, 261, 81, 67, 6842, 18, 1467, 1435, 422, 374, 13, 288, 7734, 312, 67, 4324, 18, 8935, 12, 81, 67, 4880, 16, 315, 2135, 1982, 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, 540, 1071, 918, 3626, 12, 2375, 1365, 13, 288, 5411, 309, 261, 81, 67, 6842, 18, 1467, 1435, 422, 374, 13, 288, 7734, 312, 67, 4324, 18, 8935, 12, 81, 67, 4880, 16, 315, 2135, 1982, 8863, ...
context.pushClass(context.getWrapper());
oldParent = context.setRubyClass(context.getWrapper());
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); context.pushDynamicVars(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pushClass(getClasses().getObjectClass()); context.setWrapper(null); } else { /* load in anonymous module as toplevel */ context.setWrapper(RubyModule.newModule(this, null)); context.pushClass(context.getWrapper()); self = getTopSelf().rbClone(); self.extendObject(context.getRubyClass()); } String last_func = getCurrentFrame().getLastFunc(); context.getFrameStack().push(); context.getCurrentFrame().setLastFunc(null); context.getCurrentFrame().setLastClass(null); context.getCurrentFrame().setSelf(self); context.getScopeStack().push(); /* default visibility is private at loading toplevel */ setCurrentVisibility(Visibility.PRIVATE); try { self.eval(node); } finally { context.getCurrentFrame().setLastFunc(last_func); context.getScopeStack().pop(); context.getFrameStack().pop(); context.popClass(); context.popDynamicVars(); context.setWrapper(wrapper); } }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/abfe85d15f992ecf4447b155d177050fe2239c3b/Ruby.java/clean/src/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 907, 12, 780, 31008, 16, 2029, 756, 16, 1250, 2193, 13, 288, 3639, 15908, 10340, 921, 365, 273, 13729, 10084, 5621, 3639, 4884, 1042, 819, 273, 5175, 1042, 5621, 3639, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 907, 12, 780, 31008, 16, 2029, 756, 16, 1250, 2193, 13, 288, 3639, 15908, 10340, 921, 365, 273, 13729, 10084, 5621, 3639, 4884, 1042, 819, 273, 5175, 1042, 5621, 3639, 81...
if (jj_scan_token(RUNSIGNEDSHIFTASSIGN)) return true;
if (jj_scan_token(ORASSIGN)) return true;
final private boolean jj_3R_241() { if (jj_scan_token(RUNSIGNEDSHIFTASSIGN)) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/204bebdbecd44fd7e3376db20b9709780ab79771/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3247, 21, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 916, 23289, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3247, 21, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 916, 23289, 3719, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -10...
if (con.getSendStreamId() == null) {
if (con.getSendStreamId() <= 0) {
private boolean verifyPacket(Packet packet, Connection con) throws I2PException { if (packet.isFlagSet(Packet.FLAG_RESET)) { verifyReset(packet, con); return false; } else { verifySignature(packet, con); if (con.getSendStreamId() == null) { if (packet.isFlagSet(Packet.FLAG_SYNCHRONIZE)) { con.setSendStreamId(packet.getReceiveStreamId()); con.setRemotePeer(packet.getOptionalFrom()); return true; } else { // neither RST nor SYN and we dont have the stream id yet? if (packet.getSequenceNum() < MAX_INITIAL_PACKETS) { return true; } else { if (_log.shouldLog(Log.ERROR)) _log.error("Packet without RST or SYN where we dont know stream ID: " + packet); return false; } } } else { if (!DataHelper.eq(con.getSendStreamId(), packet.getReceiveStreamId())) { if (_log.shouldLog(Log.ERROR)) _log.error("Packet received with the wrong reply stream id: " + con + " / " + packet); return false; } else { return true; } } } }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/aef33548b35848b46991ab14cf8ddde142c982e1/ConnectionPacketHandler.java/clean/apps/streaming/java/src/net/i2p/client/streaming/ConnectionPacketHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3929, 6667, 12, 6667, 4414, 16, 4050, 356, 13, 1216, 467, 22, 52, 503, 288, 3639, 309, 261, 11482, 18, 291, 4678, 694, 12, 6667, 18, 9651, 67, 26665, 3719, 288, 5411, 3929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3929, 6667, 12, 6667, 4414, 16, 4050, 356, 13, 1216, 467, 22, 52, 503, 288, 3639, 309, 261, 11482, 18, 291, 4678, 694, 12, 6667, 18, 9651, 67, 26665, 3719, 288, 5411, 3929, ...
public static boolean arrayContentsAreAccessed(@NotNull PsiVariable variable, @NotNull PsiElement context){
public static boolean arrayContentsAreAccessed( @NotNull PsiVariable variable, @NotNull PsiElement context) {
public static boolean arrayContentsAreAccessed(@NotNull PsiVariable variable, @NotNull PsiElement context){ final ArrayContentsAccessedVisitor visitor = new ArrayContentsAccessedVisitor(variable); context.accept(visitor); return visitor.isAccessed(); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3a38706cda7adfde8de9d23e33827a8df31f8dde/VariableAccessUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/VariableAccessUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 526, 6323, 4704, 27762, 26964, 5962, 453, 7722, 3092, 2190, 16, 4766, 10402, 632, 5962, 453, 7722, 1046, 819, 15329, 3639, 727, 1510, 6323, 27762, 7413, 8000, 273, 7734, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 526, 6323, 4704, 27762, 26964, 5962, 453, 7722, 3092, 2190, 16, 4766, 10402, 632, 5962, 453, 7722, 1046, 819, 15329, 3639, 727, 1510, 6323, 27762, 7413, 8000, 273, 7734, 39...
sqlUpdateProcedure( "SetReadrunnerUserDataForUser", new String[]{"" + userId, "" + rrUserData.getUses(), "" + rrUserData.getMaxUses(), "" + rrUserData.getMaxUsesWarningThreshold(), expiryDateString, "" + rrUserData.getExpiryDateWarningThreshold(), rrUserData.getExpiryDateWarningSent() ? "1" : "0"} ); }
sqlUpdateProcedure( "SetReadrunnerUserDataForUser", new String[]{"" + userId, "" + rrUserData.getUses(), "" + rrUserData.getMaxUses(), "" + rrUserData.getMaxUsesWarningThreshold(), expiryDateString, "" + rrUserData.getExpiryDateWarningThreshold(), rrUserData.getExpiryDateWarningSent() ? "1" : "0"} ); }
public void setReadrunnerUserData( User user, ReadrunnerUserData rrUserData ) { int userId = user.getUserId(); String expiryDateString = null != rrUserData.getExpiryDate() ? new SimpleDateFormat( "yyyy-MM-dd" ).format( rrUserData.getExpiryDate() ) : null; String temp[] = {"" + userId, "" + rrUserData.getUses(), "" + rrUserData.getMaxUses(), "" + rrUserData.getMaxUsesWarningThreshold(), expiryDateString, "" + rrUserData.getExpiryDateWarningThreshold(), "" + rrUserData.getExpiryDateWarningSent()}; for( int i = 0; i < temp.length; i++ ) { System.out.println( "temp[]= " + temp[i] ); } sqlUpdateProcedure( "SetReadrunnerUserDataForUser", new String[]{"" + userId, "" + rrUserData.getUses(), "" + rrUserData.getMaxUses(), "" + rrUserData.getMaxUsesWarningThreshold(), expiryDateString, "" + rrUserData.getExpiryDateWarningThreshold(), rrUserData.getExpiryDateWarningSent() ? "1" : "0"} ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2b8ca505bb7abac1b4914c5928bf113f742f3bbb/IMCService.java/buggy/server/src/imcode/server/IMCService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 29506, 18156, 19265, 12, 2177, 729, 16, 2720, 18156, 19265, 8354, 19265, 262, 288, 1377, 509, 6249, 273, 729, 18, 588, 10502, 5621, 1377, 514, 10839, 1626, 780, 273, 446, 480, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29506, 18156, 19265, 12, 2177, 729, 16, 2720, 18156, 19265, 8354, 19265, 262, 288, 1377, 509, 6249, 273, 729, 18, 588, 10502, 5621, 1377, 514, 10839, 1626, 780, 273, 446, 480, ...
|| decDatas[RIGHT_TOP].data.width < maxWidth) {
|| decDatas[RIGHT_TOP].data.width < newWidth) {
private void updateControlAttachments(int index, FieldDecorationData decData) { FormData formData = (FormData) control.getLayoutData(); int maxWidth = FieldDecorationRegistry.getDefault() .geMaximumDecorationWidth(); switch (index) { case LEFT_TOP: if (decDatas[LEFT_BOTTOM] == null || decDatas[LEFT_BOTTOM].data.width < maxWidth) { formData.left = new FormAttachment(decData.label); } else formData = null; break; case LEFT_BOTTOM: if (decDatas[LEFT_TOP] == null || decDatas[LEFT_TOP].data.width < maxWidth) { formData.left = new FormAttachment(decData.label); } else formData = null; break; case RIGHT_TOP: if (decDatas[RIGHT_BOTTOM] == null || decDatas[RIGHT_BOTTOM].data.width < maxWidth) { formData.right = new FormAttachment(decData.label); } else formData = null; break; case RIGHT_BOTTOM: if (decDatas[RIGHT_TOP] == null || decDatas[RIGHT_TOP].data.width < maxWidth) { formData.right = new FormAttachment(decData.label); } else formData = null; break; default: return; } if (formData != null) { // Form data was updated. control.setLayoutData(formData); form.layout(); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4a358afc8d93c75badf1e31f688464be70e02b8d/DecoratedField.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/DecoratedField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 3367, 12961, 12, 474, 770, 16, 2286, 7859, 367, 751, 2109, 751, 13, 288, 202, 202, 30079, 14224, 273, 261, 30079, 13, 3325, 18, 588, 3744, 751, 5621, 202, 202, 474...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 3367, 12961, 12, 474, 770, 16, 2286, 7859, 367, 751, 2109, 751, 13, 288, 202, 202, 30079, 14224, 273, 261, 30079, 13, 3325, 18, 588, 3744, 751, 5621, 202, 202, 474...
categories.add(manager.getCategory(categoryId));
ICategory category = manager.getCategory(categoryId); if (getCategoryActivities(category).length > 0) categories.add(category);
public Object[] getChildren(Object parentElement) { if (parentElement instanceof IActivityManager) { Set categoryIds = manager.getDefinedCategoryIds(); ArrayList categories = new ArrayList(categoryIds.size()); for (Iterator i = categoryIds.iterator(); i.hasNext();) { String categoryId = (String) i.next(); categories.add(manager.getCategory(categoryId)); } return categories.toArray(); } else if (parentElement instanceof ICategory) { return getCategoryActivities((ICategory) parentElement); } return new Object[0]; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c1bd44df745c084572e5a67cac4ee09814410491/ActivityCategoryContentProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ws/ActivityCategoryContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 8526, 10268, 12, 921, 30363, 13, 288, 3639, 309, 261, 2938, 1046, 1276, 467, 6193, 1318, 13, 288, 5411, 1000, 3150, 2673, 273, 3301, 18, 588, 8116, 4457, 2673, 5621, 5411, 240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8526, 10268, 12, 921, 30363, 13, 288, 3639, 309, 261, 2938, 1046, 1276, 467, 6193, 1318, 13, 288, 5411, 1000, 3150, 2673, 273, 3301, 18, 588, 8116, 4457, 2673, 5621, 5411, 240...
setNextState(req, EDIT_JSP);
setNextState(request, EDIT_JSP);
public void setEditDisplayFile(FormEvent event) throws PortletException { log.debug("in BannerPortlet: setEditDisplayFile"); checkUserRole(event); FrameBean alert = event.getFrameBean("alert"); PortletRequest req = event.getPortletRequest(); ListBoxBean lb = event.getListBoxBean("filelist"); String file = lb.getSelectedValue(); if (file == null) { log.error("did not select a file"); alert.setValue(this.getLocalizedText(req, "BANNER_NOFILE_SELECTED")); alert.setStyle("error"); } User user = event.getPortletRequest().getUser(); String fileURL = userStorage.getLocationPath(user, file); int tmpLoc = fileURL.indexOf("/tempdir"); fileURL = fileURL.substring(tmpLoc); PortletData data = req.getData(); data.setAttribute(FILE, fileURL); TextFieldBean displayTitle = event.getTextFieldBean("displayTitle"); String title = displayTitle.getValue(); data.setAttribute(TITLE, title); try { data.store(); alert.setValue(this.getLocalizedText(req, "BANNER_CONFIGURE")); } catch (IOException e) { log.error("Unable to save portlet data"); alert.setValue(this.getLocalizedText(req, "BANNER_FAILURE")); alert.setStyle("error"); } setNextState(req, EDIT_JSP); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/792b7e584e3281b372e7d4c26bcdef3bc8405fc3/BannerPortlet.java/buggy/src/org/gridlab/gridsphere/portlets/core/file/BannerPortlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4666, 4236, 812, 12, 1204, 1133, 871, 13, 1216, 21305, 503, 288, 3639, 613, 18, 4148, 2932, 267, 31218, 18566, 30, 444, 4666, 4236, 812, 8863, 3639, 866, 1299, 2996, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 4666, 4236, 812, 12, 1204, 1133, 871, 13, 1216, 21305, 503, 288, 3639, 613, 18, 4148, 2932, 267, 31218, 18566, 30, 444, 4666, 4236, 812, 8863, 3639, 866, 1299, 2996, 12, ...
ResultSet rs = stmt.executeQuery(sQuery);
ResultSet rs = pstmt.executeQuery();
private int getUserBrowserMapping (IPerson person, String userAgent) throws Exception { int userId = person.getID(); int profileId = 0; Connection con = RDBMServices.getConnection(); try { Statement stmt = con.createStatement(); try { String sQuery = "SELECT PROFILE_ID, USER_ID FROM UP_USER_UA_MAP WHERE USER_ID=" + userId + " AND USER_AGENT='" + userAgent + "'"; log.debug("RDBMUserLayoutStore::getUserBrowserMapping(): " + sQuery); ResultSet rs = stmt.executeQuery(sQuery); try { if (rs.next()) { profileId = rs.getInt("PROFILE_ID"); if (rs.wasNull()) { profileId = 0; } } else { return 0; } } finally { rs.close(); } } finally { stmt.close(); } } finally { RDBMServices.releaseConnection(con); } return profileId; }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/d1b49edeca7cee7e1eda2cfdc12823c4c3119e1e/RDBMUserLayoutStore.java/clean/source/org/jasig/portal/RDBMUserLayoutStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 4735, 9132, 3233, 261, 2579, 3565, 6175, 16, 514, 7574, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 25903, 273, 374, 31, 565, 4050, 356, 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, 282, 3238, 509, 4735, 9132, 3233, 261, 2579, 3565, 6175, 16, 514, 7574, 13, 1216, 1185, 288, 565, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 25903, 273, 374, 31, 565, 4050, 356, 273...
"left outer join fetch e.group " + "left outer join fetch e.groups " +
"left outer join fetch e.groupExperimenterMap gs " + "left outer join fetch gs.child g " +
public Map getUserDetails(@NotNull @Validate(String.class) Set names, Map options) { List results; Map<String, Experimenter> map = new HashMap<String, Experimenter>(); /* query only if we have some ids */ if (names.size() > 0) { Map<String, Set> params = new HashMap<String, Set>(); params.put("name_list",names); results = iQuery.queryListMap( "select e from Experimenter e " + "left outer join fetch e.group " + "left outer join fetch e.groups " + "where e.omeName in ( :name_list )", params ); for (Object object : results) { Experimenter e = (Experimenter) object; map.put(e.getOmeName(),e); } } /* ensures all ids appear in map */ for (Object object : names) { String name = (String) object; if (! map.containsKey(name)){ map.put(name,null); } } return map; }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 4735, 3790, 26964, 5962, 632, 4270, 12, 780, 18, 1106, 13, 1000, 1257, 16, 2398, 1635, 702, 13, 565, 288, 7734, 987, 1686, 31, 3639, 1635, 32, 780, 16, 1312, 457, 381, 2328,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1635, 4735, 3790, 26964, 5962, 632, 4270, 12, 780, 18, 1106, 13, 1000, 1257, 16, 2398, 1635, 702, 13, 565, 288, 7734, 987, 1686, 31, 3639, 1635, 32, 780, 16, 1312, 457, 381, 2328,...
public ActionForward fileUpload(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW); Integer itemCode = getItemCode(request); DynaActionForm xptoForm = (DynaActionForm) form; FormFile formFile = (FormFile) xptoForm.get("theFile"); FileSuportObject file = null; try { file = new FileSuportObject(); file.setContent(formFile.getFileData()); file.setFileName(new String((formFile.getFileName()).getBytes(), "ISO-8859-1")); file.setContentType(formFile.getContentType()); file.setLinkName((String) xptoForm.get("linkName")); if (file.getLinkName() == null || file.getLinkName() == "") { file.setLinkName(file.getFileName()); } } catch (FileNotFoundException e) { } catch (IOException e) { } ActionErrors actionErrors = new ActionErrors(); if (file.getFileName() == null || file.getFileName().indexOf("&") != -1 || file.getFileName().indexOf("#") != -1 || file.getFileName().indexOf("+") != -1) { actionErrors.add("fileNameInvalid", new ActionError("errors.fileNameInvalid", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } Object[] args = { file, itemCode }; Boolean serviceResult = null; try { serviceResult = (Boolean) ServiceUtils.executeService(userView, "StoreItemFile", args); } catch (FileAlreadyExistsServiceException e1) { actionErrors.add("fileAlreadyExists", new ActionError("errors.fileAlreadyExists", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } catch (FileNameTooLongServiceException e1) { actionErrors.add("fileNameTooLong", new ActionError("errors.fileNameTooLong", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } catch (FenixServiceException e1) { actionErrors.add("unableToStoreFile", new ActionError("errors.unableToStoreFile", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } if (!serviceResult.booleanValue()) { actionErrors.add("fileTooBig", new ActionError("errors.fileTooBig", file.getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } return viewSection(mapping, form, request, response); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/51b6ac2293210675b11702dcd353d11f8f6541bc/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 585, 4777, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 1586, 503, 288, 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, 4382, 8514, 585, 4777, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 1586, 503, 288, 3639,...
softWrap = new JCheckBox(jEdit.getProperty( "options.editing.softWrap")); softWrap.setSelected(buffer.getBooleanProperty("softWrap")); softWrap.addActionListener(actionListener); panel.addComponent(softWrap);
String[] tabSizes = { "2", "4", "8" }; tabSize = new JComboBox(tabSizes); tabSize.setEditable(true); tabSize.setSelectedItem(buffer.getStringProperty("tabSize")); panel.addComponent(jEdit.getProperty("options.editing.tabSize"),tabSize); indentSize = new JComboBox(tabSizes); indentSize.setEditable(true); indentSize.setSelectedItem(buffer.getStringProperty("indentSize")); panel.addComponent(jEdit.getProperty("options.editing.indentSize"), indentSize); noTabs = new JCheckBox(jEdit.getProperty( "options.editing.noTabs")); noTabs.setSelected(buffer.getBooleanProperty("noTabs")); panel.addComponent(noTabs);
public BufferOptions(View view, Buffer buffer) { super(view,jEdit.getProperty("buffer-options.title"),true); this.view = view; this.buffer = buffer; JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); ActionHandler actionListener = new ActionHandler(); AbstractOptionPane panel = new AbstractOptionPane(null) { public void addComponent(Component comp) { super.addComponent(comp); } public void addComponent(String label, Component comp) { super.addComponent(label,comp); } public void addSeparator(String separator) { super.addSeparator(separator); } }; panel.addSeparator("buffer-options.loading-saving"); //{{{ Line separator String[] lineSeps = { jEdit.getProperty("lineSep.unix"), jEdit.getProperty("lineSep.windows"), jEdit.getProperty("lineSep.mac") }; lineSeparator = new JComboBox(lineSeps); String lineSep = buffer.getStringProperty(Buffer.LINESEP); if(lineSep == null) lineSep = System.getProperty("line.separator"); if("\n".equals(lineSep)) lineSeparator.setSelectedIndex(0); else if("\r\n".equals(lineSep)) lineSeparator.setSelectedIndex(1); else if("\r".equals(lineSep)) lineSeparator.setSelectedIndex(2); lineSeparator.addActionListener(actionListener); panel.addComponent(jEdit.getProperty("buffer-options.lineSeparator"), lineSeparator); //}}} //{{{ Encoding DefaultComboBoxModel encodings = new DefaultComboBoxModel(); StringTokenizer st = new StringTokenizer(jEdit.getProperty("encodings")); while(st.hasMoreTokens()) { encodings.addElement(st.nextToken()); } encoding = new JComboBox(encodings); encoding.setEditable(true); encoding.setSelectedItem(buffer.getStringProperty(Buffer.ENCODING)); panel.addComponent(jEdit.getProperty("buffer-options.encoding"), encoding); //}}} //{{{ GZipped setting gzipped = new JCheckBox(jEdit.getProperty( "buffer-options.gzipped")); gzipped.setSelected(buffer.getBooleanProperty(Buffer.GZIPPED)); gzipped.addActionListener(actionListener); panel.addComponent(gzipped); //}}} //{{{ Trailing EOL setting trailingEOL = new JCheckBox(jEdit.getProperty( "buffer-options.trailingEOL")); trailingEOL.setSelected(buffer.getBooleanProperty(Buffer.TRAILING_EOL)); trailingEOL.addActionListener(actionListener); panel.addComponent(trailingEOL); //}}} panel.addSeparator("buffer-options.editing"); //{{{ Edit mode modes = jEdit.getModes(); String bufferMode = buffer.getMode().getName(); int index = 0; String[] modeNames = new String[modes.length]; for(int i = 0; i < modes.length; i++) { Mode mode = modes[i]; modeNames[i] = mode.getName(); if(bufferMode.equals(mode.getName())) index = i; } mode = new JComboBox(modeNames); mode.setSelectedIndex(index); mode.addActionListener(actionListener); panel.addComponent(jEdit.getProperty("buffer-options.mode"),mode); //}}} //{{{ Tab size String[] tabSizes = { "2", "4", "8" }; tabSize = new JComboBox(tabSizes); tabSize.setEditable(true); tabSize.setSelectedItem(buffer.getStringProperty("tabSize")); tabSize.addActionListener(actionListener); panel.addComponent(jEdit.getProperty("options.editing.tabSize"),tabSize); //}}} //{{{ Indent size indentSize = new JComboBox(tabSizes); indentSize.setEditable(true); indentSize.setSelectedItem(buffer.getStringProperty("indentSize")); indentSize.addActionListener(actionListener); panel.addComponent(jEdit.getProperty("options.editing.indentSize"), indentSize); //}}} //{{{ Fold mode String[] foldModes = { "none", "indent", "explicit" }; folding = new JComboBox(foldModes); String foldMode = buffer.getStringProperty("folding"); if("indent".equals(foldMode)) folding.setSelectedIndex(1); else if("explicit".equals(foldMode)) folding.setSelectedIndex(2); else folding.setSelectedIndex(0); folding.addActionListener(actionListener); panel.addComponent(jEdit.getProperty("options.editing.folding"), folding); //}}} //{{{ Max line length String[] lineLengths = { "0", "72", "76", "80" }; maxLineLen = new JComboBox(lineLengths); maxLineLen.setEditable(true); maxLineLen.setSelectedItem(buffer.getStringProperty("maxLineLen")); maxLineLen.addActionListener(actionListener); panel.addComponent(jEdit.getProperty("options.editing.maxLineLen"), maxLineLen); //}}} //{{{ Soft wrap softWrap = new JCheckBox(jEdit.getProperty( "options.editing.softWrap")); softWrap.setSelected(buffer.getBooleanProperty("softWrap")); softWrap.addActionListener(actionListener); panel.addComponent(softWrap); //}}} //{{{ Indent on tab indentOnTab = new JCheckBox(jEdit.getProperty( "options.editing.indentOnTab")); indentOnTab.setSelected(buffer.getBooleanProperty("indentOnTab")); indentOnTab.addActionListener(actionListener); panel.addComponent(indentOnTab); //}}} //{{{ Indent on enter indentOnEnter = new JCheckBox(jEdit.getProperty( "options.editing.indentOnEnter")); indentOnEnter.setSelected(buffer.getBooleanProperty("indentOnEnter")); indentOnEnter.addActionListener(actionListener); panel.addComponent(indentOnEnter); //}}} //{{{ Soft tabs noTabs = new JCheckBox(jEdit.getProperty( "options.editing.noTabs")); noTabs.setSelected(buffer.getBooleanProperty("noTabs")); noTabs.addActionListener(actionListener); panel.addComponent(noTabs); //}}} //{{{ Props label JLabel label = new JLabel(jEdit.getProperty("buffer-options.props")); label.setBorder(new EmptyBorder(6,0,6,0)); panel.addComponent(label); //}}} content.add(BorderLayout.NORTH,panel); //{{{ Properties text area props = new JTextArea(4,4); props.setLineWrap(true); props.setWrapStyleWord(false); content.add(BorderLayout.CENTER,new JScrollPane(props)); updatePropsField(); //}}} //{{{ Buttons JPanel buttons = new JPanel(); buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS)); buttons.setBorder(new EmptyBorder(12,0,0,0)); buttons.add(Box.createGlue()); ok = new JButton(jEdit.getProperty("common.ok")); ok.addActionListener(actionListener); getRootPane().setDefaultButton(ok); buttons.add(ok); buttons.add(Box.createHorizontalStrut(6)); cancel = new JButton(jEdit.getProperty("common.cancel")); cancel.addActionListener(actionListener); buttons.add(cancel); buttons.add(Box.createGlue()); content.add(BorderLayout.SOUTH,buttons); //}}} pack(); setLocationRelativeTo(view); show(); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/20e49dbdbbdbeeed6a1a91bf794250cead615f58/BufferOptions.java/buggy/org/gjt/sp/jedit/gui/BufferOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3525, 1320, 12, 1767, 1476, 16, 3525, 1613, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4106, 17, 2116, 18, 2649, 6, 3631, 3767, 1769, 202, 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, 3525, 1320, 12, 1767, 1476, 16, 3525, 1613, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4106, 17, 2116, 18, 2649, 6, 3631, 3767, 1769, 202, 202...
if (libPaths.size() == 0 && cpString == null) {
if (argList.size() == args.length) {
private void run(String[] args) throws LaunchException, MalformedURLException { String antHomeProperty = System.getProperty(ANTHOME_PROPERTY); File antHome = null; File sourceJar = Locator.getClassSource(getClass()); File jarDir = sourceJar.getParentFile(); if (antHomeProperty != null) { antHome = new File(antHomeProperty); } if (antHome == null || !antHome.exists()) { antHome = jarDir.getParentFile(); System.setProperty(ANTHOME_PROPERTY, antHome.getAbsolutePath()); } if (!antHome.exists()) { throw new LaunchException("Ant home is set incorrectly or " + "ant could not be located"); } List libPaths = new ArrayList(); String cpString = null; List argList = new ArrayList(); String[] newArgs; boolean noUserLib = false; boolean noClassPath = false; for (int i = 0; i < args.length; ++i) { if (args[i].equals("-lib")) { if (i == args.length - 1) { throw new LaunchException("The -lib argument must " + "be followed by a library location"); } libPaths.add(args[++i]); } else if (args[i].equals("-cp")) { if (i == args.length - 1) { throw new LaunchException("The -cp argument must " + "be followed by a classpath expression"); } if (cpString != null) { throw new LaunchException("The -cp argument must " + "not be repeated"); } cpString = args[++i]; } else if (args[i].equals("--nouserlib") || args[i].equals("-nouserlib")) { noUserLib = true; } else if (args[i].equals("--noclasspath") || args[i].equals("-noclasspath")) { noClassPath = true; } else { argList.add(args[i]); } } //decide whether to copy the existing arg set, or //build a new one from the list of all args excluding the special //operations that only we handle if (libPaths.size() == 0 && cpString == null) { newArgs = args; } else { newArgs = (String[]) argList.toArray(new String[argList.size()]); } List libPathURLs = new ArrayList(); if (cpString != null && !noClassPath) { addPath(cpString, false, libPathURLs); } for (Iterator i = libPaths.iterator(); i.hasNext();) { String libPath = (String) i.next(); addPath(libPath, true, libPathURLs); } URL[] libJars = (URL[]) libPathURLs.toArray(new URL[libPathURLs.size()]); // Now try and find JAVA_HOME File toolsJar = Locator.getToolsJar(); // determine ant library directory for system jars: use property // or default using location of ant-launcher.jar File antLibDir = null; String antLibDirProperty = System.getProperty(ANTLIBDIR_PROPERTY); if (antLibDirProperty != null) { antLibDir = new File(antLibDirProperty); } if ((antLibDir == null) || !antLibDir.exists()) { antLibDir = jarDir; System.setProperty(ANTLIBDIR_PROPERTY, antLibDir.getAbsolutePath()); } URL[] systemJars = Locator.getLocationURLs(antLibDir); File userLibDir = new File(System.getProperty(USER_HOMEDIR), USER_LIBDIR); URL[] userJars = noUserLib ? new URL[0] : Locator.getLocationURLs(userLibDir); int numJars = libJars.length + userJars.length + systemJars.length; if (toolsJar != null) { numJars++; } URL[] jars = new URL[numJars]; System.arraycopy(libJars, 0, jars, 0, libJars.length); System.arraycopy(userJars, 0, jars, libJars.length, userJars.length); System.arraycopy(systemJars, 0, jars, userJars.length + libJars.length, systemJars.length); if (toolsJar != null) { jars[jars.length - 1] = toolsJar.toURL(); } // now update the class.path property StringBuffer baseClassPath = new StringBuffer(System.getProperty(JAVA_CLASS_PATH)); if (baseClassPath.charAt(baseClassPath.length() - 1) == File.pathSeparatorChar) { baseClassPath.setLength(baseClassPath.length() - 1); } for (int i = 0; i < jars.length; ++i) { baseClassPath.append(File.pathSeparatorChar); baseClassPath.append(Locator.fromURI(jars[i].toString())); } System.setProperty(JAVA_CLASS_PATH, baseClassPath.toString()); URLClassLoader loader = new URLClassLoader(jars); Thread.currentThread().setContextClassLoader(loader); Class mainClass = null; try { mainClass = loader.loadClass(MAIN_CLASS); AntMain main = (AntMain) mainClass.newInstance(); main.startAnt(newArgs, null, null); } catch (InstantiationException ex) { System.out.println( "Incompatible version of org.apache.tools.ant detected"); File mainJar = Locator.getClassSource(mainClass); System.out.println( "Location of this class " + mainJar); } catch (Throwable t) { t.printStackTrace(); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/c5c26543a4866368cef6895f0e7cc3171d24d77f/Launcher.java/clean/src/main/org/apache/tools/ant/launch/Launcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1086, 12, 780, 8526, 833, 13, 1216, 14643, 503, 16, 20710, 288, 3639, 514, 17841, 8684, 1396, 273, 2332, 18, 588, 1396, 12, 1258, 2455, 51, 958, 67, 9900, 1769, 3639, 1387, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 780, 8526, 833, 13, 1216, 14643, 503, 16, 20710, 288, 3639, 514, 17841, 8684, 1396, 273, 2332, 18, 588, 1396, 12, 1258, 2455, 51, 958, 67, 9900, 1769, 3639, 1387, 1...
public String jsFunction_toLocaleTimeString() {
private String jsFunction_toLocaleTimeString() {
public String jsFunction_toLocaleTimeString() { if (localeTimeFormatter == null) localeTimeFormatter = DateFormat.getTimeInstance(DateFormat.LONG); return toLocale_helper(this.date, localeTimeFormatter); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 869, 3916, 950, 780, 1435, 288, 3639, 309, 261, 6339, 950, 5074, 422, 446, 13, 5411, 2573, 950, 5074, 273, 18371, 18, 588, 950, 1442, 12, 11878, 18, 14639, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 869, 3916, 950, 780, 1435, 288, 3639, 309, 261, 6339, 950, 5074, 422, 446, 13, 5411, 2573, 950, 5074, 273, 18371, 18, 588, 950, 1442, 12, 11878, 18, 14639, 17...
if (refChild == firstChild) { firstChild.isFirstChild(false); newInternal.nextSibling = firstChild; newInternal.previousSibling = firstChild.previousSibling; firstChild.previousSibling = newInternal; value = newInternal; newInternal.isFirstChild(true); } else { ChildNode prev = refInternal.previousSibling; newInternal.nextSibling = refInternal; prev.nextSibling = newInternal; refInternal.previousSibling = newInternal; newInternal.previousSibling = prev; } } } changed(); if(MUTATIONEVENTS && ownerDocument.mutationEvents) { if( (mutationMask&MUTATION_LOCAL) != 0) { LCount lc = LCount.lookup(MutationEventImpl.DOM_NODE_INSERTED); if(lc.captures+lc.bubbles+lc.defaults>0) { MutationEvent me= new MutationEventImpl(); me.initMutationEvent( MutationEventImpl.DOM_NODE_INSERTED, true,false,this,null, null,null,(short)0); newInternal.dispatchEvent(me); } lc=LCount.lookup(
ChildNode prev = refInternal.previousSibling; newInternal.nextSibling = refInternal; prev.nextSibling = newInternal; refInternal.previousSibling = newInternal; newInternal.previousSibling = prev; } } } changed(); if (MUTATIONEVENTS && ownerDocument.mutationEvents) { if ((mutationMask&MUTATION_LOCAL) != 0) { LCount lc = LCount.lookup(MutationEventImpl.DOM_NODE_INSERTED); if (lc.captures+lc.bubbles+lc.defaults>0) { MutationEvent me= new MutationEventImpl(); me.initMutationEvent(MutationEventImpl.DOM_NODE_INSERTED, true,false,this,null, null,null,(short)0); newInternal.dispatchEvent(me); } lc=LCount.lookup(
Node internalInsertBefore(Node newChild, Node refChild,int mutationMask) throws DOMException { if (isReadOnly()) throw new DOMException( DOMException.NO_MODIFICATION_ALLOWED_ERR, "DOM001 Modification not allowed"); DocumentImpl ownerDocument = ownerDocument(); boolean errorChecking = ownerDocument.errorChecking; if (errorChecking && newChild.getOwnerDocument() != ownerDocument) { throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, "DOM005 Wrong document"); } if (needsSyncChildren()) { synchronizeChildren(); } if (errorChecking) { // Prevent cycles in the tree // newChild cannot be ancestor of this Node, // and actually cannot be this boolean treeSafe = true; for (NodeImpl a = this; treeSafe && a != null; a = a.parentNode()) { treeSafe = newChild != a; } if(!treeSafe) { throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } // refChild must in fact be a child of this node (or null) if(refChild != null && refChild.getParentNode() != this) { throw new DOMException(DOMException.NOT_FOUND_ERR, "DOM008 Not found"); } // refChild cannot be same as newChild if(refChild == newChild) { throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } } if (newChild.getNodeType() == Node.DOCUMENT_FRAGMENT_NODE) { // SLOW BUT SAFE: We could insert the whole subtree without // juggling so many next/previous pointers. (Wipe out the // parent's child-list, patch the parent pointers, set the // ends of the list.) But we know some subclasses have special- // case behavior they add to insertBefore(), so we don't risk it. // This approch also takes fewer bytecodes. // NOTE: If one of the children is not a legal child of this // node, throw HIERARCHY_REQUEST_ERR before _any_ of the children // have been transferred. (Alternative behaviors would be to // reparent up to the first failure point or reparent all those // which are acceptable to the target node, neither of which is // as robust. PR-DOM-0818 isn't entirely clear on which it // recommends????? // No need to check kids for right-document; if they weren't, // they wouldn't be kids of that DocFrag. for (Node kid = newChild.getFirstChild(); // Prescan kid != null; kid = kid.getNextSibling()) { if (errorChecking && !ownerDocument.isKidOK(this, kid)) { throw new DOMException( DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } } while (newChild.hasChildNodes()) { insertBefore(newChild.getFirstChild(), refChild); } } else if (errorChecking && (!(newChild instanceof ChildNode) || !ownerDocument.isKidOK(this, newChild))) { throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } else { makeChildNode(); // make sure we have a node and not a string // Convert to internal type, to avoid repeated casting ChildNode newInternal = (ChildNode)newChild; EnclosingAttr enclosingAttr=null; if(MUTATIONEVENTS && ownerDocument.mutationEvents && (mutationMask&MUTATION_AGGREGATE)!=0) { // MUTATION PREPROCESSING // No direct pre-events, but if we're within the scope // of an Attr and DOMAttrModified was requested, // we need to preserve its previous value. LCount lc=LCount.lookup(MutationEventImpl.DOM_ATTR_MODIFIED); if(lc.captures+lc.bubbles+lc.defaults>0) { enclosingAttr=getEnclosingAttr(); } } Node oldparent = newInternal.parentNode(); if (oldparent != null) { oldparent.removeChild(newInternal); } // Convert to internal type, to avoid repeated casting ChildNode refInternal = (ChildNode) refChild; // Attach up newInternal.ownerNode = this; newInternal.isOwned(true); // Attach before and after // Note: firstChild.previousSibling == lastChild!! ChildNode firstChild = (ChildNode) value; if (firstChild == null) { // this our first and only child value = newInternal; // firstchild = newInternal; newInternal.isFirstChild(true); newInternal.previousSibling = newInternal; } else { if (refInternal == null) { // this is an append ChildNode lastChild = firstChild.previousSibling; lastChild.nextSibling = newInternal; newInternal.previousSibling = lastChild; firstChild.previousSibling = newInternal; } else { // this is an insert if (refChild == firstChild) { // at the head of the list firstChild.isFirstChild(false); newInternal.nextSibling = firstChild; newInternal.previousSibling = firstChild.previousSibling; firstChild.previousSibling = newInternal; value = newInternal; // firstChild = newInternal; newInternal.isFirstChild(true); } else { // somewhere in the middle ChildNode prev = refInternal.previousSibling; newInternal.nextSibling = refInternal; prev.nextSibling = newInternal; refInternal.previousSibling = newInternal; newInternal.previousSibling = prev; } } } changed(); if(MUTATIONEVENTS && ownerDocument.mutationEvents) { // MUTATION POST-EVENTS: // "Local" events (non-aggregated) if( (mutationMask&MUTATION_LOCAL) != 0) { // New child is told it was inserted, and where LCount lc = LCount.lookup(MutationEventImpl.DOM_NODE_INSERTED); if(lc.captures+lc.bubbles+lc.defaults>0) { MutationEvent me= new MutationEventImpl(); me.initMutationEvent( MutationEventImpl.DOM_NODE_INSERTED, true,false,this,null, null,null,(short)0); newInternal.dispatchEvent(me); } // If within the Document, tell the subtree it's been added // to the Doc. lc=LCount.lookup( MutationEventImpl.DOM_NODE_INSERTED_INTO_DOCUMENT); if(lc.captures+lc.bubbles+lc.defaults>0) { NodeImpl eventAncestor=this; if(enclosingAttr!=null) eventAncestor= (NodeImpl)(enclosingAttr.node.getOwnerElement()); if(eventAncestor!=null) // Might have been orphan Attr { NodeImpl p=eventAncestor; while(p!=null) { eventAncestor=p; // Last non-null ancestor // In this context, ancestry includes // walking back from Attr to Element if(p.getNodeType()==ATTRIBUTE_NODE) p=(ElementImpl) ((AttrImpl)p).getOwnerElement(); else p=p.parentNode(); } if(eventAncestor.getNodeType()==Node.DOCUMENT_NODE) { MutationEvent me= new MutationEventImpl(); me.initMutationEvent(MutationEventImpl .DOM_NODE_INSERTED_INTO_DOCUMENT, false,false,null,null, null,null,(short)0); dispatchEventToSubtree(newInternal,me); } } } } // Subroutine: Transmit DOMAttrModified and DOMSubtreeModified // (Common to most kinds of mutation) if( (mutationMask&MUTATION_AGGREGATE) != 0) dispatchAggregateEvents(enclosingAttr); } checkNormalizationAfterInsert(newInternal); } return newChild; } // internalInsertBefore(Node,Node,int):Node
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/469f10db0e0c2b04962b59cc8ba8f02541cdb362/AttrImpl.java/buggy/src/org/apache/xerces/dom/AttrImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2029, 2713, 4600, 4649, 12, 907, 19783, 16, 2029, 1278, 1763, 16, 474, 11934, 5796, 13, 540, 1216, 4703, 503, 288, 377, 202, 430, 261, 291, 12066, 10756, 5411, 604, 394, 4703, 503, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 2713, 4600, 4649, 12, 907, 19783, 16, 2029, 1278, 1763, 16, 474, 11934, 5796, 13, 540, 1216, 4703, 503, 288, 377, 202, 430, 261, 291, 12066, 10756, 5411, 604, 394, 4703, 503, 12, ...
return deleteImp(key, pred.node, mode, cmp);
return deleteImp(key, pred.node, mode);
private int deleteImp(int key, int nodeRecord, int mode, IBTreeComparator cmp) throws CoreException, BTreeKeyNotFoundException { BTNode node = new BTNode(nodeRecord); // Determine index of key in current node, or -1 if its not in this node int keyIndexInNode = -1; if(mode==DELMODE_NORMAL) for(int i=0; i<node.keyCount; i++) if(getRecord(node.chunk, node.node, i) == key) { keyIndexInNode = i; break; } if(getChild(node.chunk, node.node, 0)==0) { /* Case 1: leaf node containing the key (by method precondition) */ if(keyIndexInNode!=-1) { nodeContentDelete(node, keyIndexInNode, 1); return key; } else { if(mode==DELMODE_DELETE_MINIMUM) { int subst = getRecord(node.chunk, node.node, 0); nodeContentDelete(node, 0, 1); return subst; } else if(mode==DELMODE_DELETE_MAXIMUM) { int subst = getRecord(node.chunk, node.node, node.keyCount-1); nodeContentDelete(node, node.keyCount-1, 1); return subst; } throw new BTreeKeyNotFoundException( MessageFormat.format(Messages.getString("BTree.DeletionOnAbsentKey"), //$NON-NLS-1$ new Object[]{new Integer(key), new Integer(mode)})); } } else { if(keyIndexInNode != -1) { /* Case 2: non-leaf node which contains the key itself */ BTNode succ = node.getChild(keyIndexInNode+1); if(succ!=null && succ.keyCount > MIN_RECORDS) { /* Case 2a: Delete key by overwriting it with its successor (which occurs in a leaf node) */ int subst = deleteImp(-1, succ.node, DELMODE_DELETE_MINIMUM, cmp); putRecord(node.chunk, node.node, keyIndexInNode, subst); return key; } BTNode pred = node.getChild(keyIndexInNode); if(pred!=null && pred.keyCount > MIN_RECORDS) { /* Case 2b: Delete key by overwriting it with its predecessor (which occurs in a leaf node) */ int subst = deleteImp(-1, pred.node, DELMODE_DELETE_MAXIMUM, cmp); putRecord(node.chunk, node.node, keyIndexInNode, subst); return key; } /* Case 2c: Merge successor and predecessor */ // assert(pred!=null && succ!=null); mergeNodes(succ, node, keyIndexInNode, pred); return deleteImp(key, pred.node, mode, cmp); } else { /* Case 3: non-leaf node which does not itself contain the key */ /* Determine root of subtree that should contain the key */ int subtreeIndex; switch(mode) { case DELMODE_NORMAL: subtreeIndex = node.keyCount; for(int i=0; i<node.keyCount; i++) if(cmp.compare(getRecord(node.chunk, node.node, i), key)>0) { subtreeIndex = i; break; } break; case DELMODE_DELETE_MINIMUM: subtreeIndex = 0; break; case DELMODE_DELETE_MAXIMUM: subtreeIndex = node.keyCount; break; default: throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, IStatus.OK, Messages.getString("BTree.UnknownMode"), null)); //$NON-NLS-1$ } BTNode child = node.getChild(subtreeIndex); if(child==null) { throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, IStatus.OK, Messages.getString("BTree.IntegrityError"), null)); //$NON-NLS-1$ } if(child.keyCount > MIN_RECORDS) { return deleteImp(key, child.node, mode, cmp); } else { BTNode sibR = node.getChild(subtreeIndex+1); if(sibR!=null && sibR.keyCount > MIN_RECORDS) { /* Case 3a (i): child will underflow upon deletion, take a key from rightSibling */ int rightKey = getRecord(node.chunk, node.node, subtreeIndex); int leftmostRightSiblingKey = getRecord(sibR.chunk, sibR.node, 0); append(child, rightKey, getChild(sibR.chunk, sibR.node, 0)); nodeContentDelete(sibR, 0, 1); putRecord(node.chunk, node.node, subtreeIndex, leftmostRightSiblingKey); return deleteImp(key, child.node, mode, cmp); } BTNode sibL = node.getChild(subtreeIndex-1); if(sibL!=null && sibL.keyCount > MIN_RECORDS) { /* Case 3a (ii): child will underflow upon deletion, take a key from leftSibling */ int leftKey = getRecord(node.chunk, node.node, subtreeIndex-1); prepend(child, leftKey, getChild(sibL.chunk, sibL.node, sibL.keyCount)); int rightmostLeftSiblingKey = getRecord(sibL.chunk, sibL.node, sibL.keyCount-1); putRecord(sibL.chunk, sibL.node, sibL.keyCount-1, 0); putChild(sibL.chunk, sibL.node, sibL.keyCount, 0); putRecord(node.chunk, node.node, subtreeIndex-1, rightmostLeftSiblingKey); return deleteImp(key, child.node, mode, cmp); } /* Case 3b (i,ii): leftSibling, child, rightSibling all have minimum number of keys */ if(sibL!=null) { // merge child into leftSibling mergeNodes(child, node, subtreeIndex-1, sibL); return deleteImp(key, sibL.node, mode, cmp); } if(sibR!=null) { // merge rightSibling into child mergeNodes(sibR, node, subtreeIndex, child); return deleteImp(key, child.node, mode, cmp); } throw new BTreeKeyNotFoundException( MessageFormat.format(Messages.getString("BTree.DeletionOnAbsentKey"), //$NON-NLS-1$ new Object[]{new Integer(key), new Integer(mode)})); } } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d54cf4d243d6aeda192e76f691fe9cf9a3ee7c50/BTree.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/BTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1430, 22683, 12, 474, 498, 16, 509, 756, 2115, 16, 509, 1965, 16, 23450, 2471, 5559, 9411, 13, 202, 15069, 30015, 16, 605, 2471, 653, 3990, 288, 202, 202, 38, 56, 907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 1430, 22683, 12, 474, 498, 16, 509, 756, 2115, 16, 509, 1965, 16, 23450, 2471, 5559, 9411, 13, 202, 15069, 30015, 16, 605, 2471, 653, 3990, 288, 202, 202, 38, 56, 907, ...
s.close();
public void testOneConnectionWithPooling() throws Exception { log.info("Testing FBWrapping DataSource Pooling on db: " + DB_DATASOURCE_URL); ds = new FBWrappingDataSource(); ds.setDatabaseName(DB_DATASOURCE_URL); ds.setMinSize(3); ds.setMaxSize(5); ds.setBlockingTimeout(100); ds.setIdleTimeout(1000); ds.setPooling(true); connection = ds.getConnection(DB_USER, DB_PASSWORD); //connection.setAutoCommit(false); assertTrue("Connection is null", connection != null); Statement s = connection.createStatement(); Exception ex = null; try { s.execute("CREATE TABLE T1 ( C1 SMALLINT, C2 SMALLINT)"); s.close(); ResultSet rs = s.executeQuery("select * from T1"); rs.close(); } catch (Exception e) { ex = e; } //connection.commit(); s.execute("DROP TABLE T1"); s.close(); //connection.commit(); connection.close(); if (ex != null) { throw ex; } }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/9cf27406d17b25f7d34d0bda4d11841de282d260/TestFBWrappingDataSource.java/buggy/src/org/firebirdsql/jdbc/TestFBWrappingDataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3335, 1952, 1190, 2864, 310, 1435, 1216, 1185, 288, 3639, 613, 18, 1376, 2932, 22218, 478, 38, 30888, 12806, 8828, 310, 603, 1319, 30, 315, 397, 2383, 67, 11102, 3033, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3335, 1952, 1190, 2864, 310, 1435, 1216, 1185, 288, 3639, 613, 18, 1376, 2932, 22218, 478, 38, 30888, 12806, 8828, 310, 603, 1319, 30, 315, 397, 2383, 67, 11102, 3033, 51...
int thisSize; if (isResizable(next.getControl(), horizontally)) { thisSize = available / remainingResizable; available -= thisSize; remainingResizable--; } else { thisSize = sizes[idx]; idx++; }
int thisSize; if (isResizable(next.getControl(), horizontally)) { thisSize = available / remainingResizable; available -= thisSize; remainingResizable--; } else { thisSize = sizes[idx]; idx++; }
private static void arrange(Rectangle area, List caches, boolean horizontally, int spacing) { Point currentPosition = new Point(area.x, area.y); List resizable = new ArrayList(caches.size()); List nonResizable = new ArrayList(caches.size()); filterResizable(caches, resizable, nonResizable, horizontally); int[] sizes = new int[nonResizable.size()]; int idx = 0; int used = 0; int hint = Geometry.getDimension(area, !horizontally); // Compute the sizes of non-resizable controls Iterator iter = nonResizable.iterator(); while (iter.hasNext()) { SizeCache next = (SizeCache) iter.next(); sizes[idx] = getSize(next, hint, horizontally); used += sizes[idx]; idx++; } int available = Geometry.getDimension(area, horizontally) - used - spacing * (caches.size() - 1); idx = 0; int remainingResizable = resizable.size(); iter = caches.iterator(); while (iter.hasNext()) { SizeCache next = (SizeCache) iter.next(); int thisSize; if (isResizable(next.getControl(), horizontally)) { thisSize = available / remainingResizable; available -= thisSize; remainingResizable--; } else { thisSize = sizes[idx]; idx++; } if (horizontally) { next.getControl().setBounds(currentPosition.x, currentPosition.y, thisSize, hint); currentPosition.x += thisSize + spacing; } else { next.getControl().setBounds(currentPosition.x, currentPosition.y, hint, thisSize); currentPosition.y += thisSize + spacing; } } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0b87a853764ea2b0fc23898be8407b44149c988a/TrimLayout.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2454, 726, 12, 19463, 5091, 16, 987, 12535, 16, 1082, 202, 6494, 366, 6157, 1230, 16, 509, 13259, 13, 288, 202, 202, 2148, 22356, 273, 394, 4686, 12, 5036, 18, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 2454, 726, 12, 19463, 5091, 16, 987, 12535, 16, 1082, 202, 6494, 366, 6157, 1230, 16, 509, 13259, 13, 288, 202, 202, 2148, 22356, 273, 394, 4686, 12, 5036, 18, 92, ...
if (isSimple()){
if (filterInfo.isSimple()){
JBlock generateRateMatchSteadyState(FilterContent filter) { JBlock block = new JBlock(null, new JStatement[0], null); //reset the simple index if (isSimple()){ block.addStatement (new JExpressionStatement(null, (new JAssignmentExpression (null, new JLocalVariableExpression (null, generatedVariables.simpleIndex), new JIntLiteral(-1))), null)); } //should be at least peek - pop items in the buffer, so //just receive pop * filterInfo.steadyMult in the buffer and we can //run for an entire filterInfo.steadyMult state block.addStatement (makeForLoop(receiveCode(filter, filter.getInputType(), generatedVariables), generatedVariables.exeIndex, new JIntLiteral(filterInfo.pop * filterInfo.steadyMult))); //now, run the work function steady times... JBlock workBlock = (JBlock)ObjectDeepCloner. deepCopy(filter.getWork().getBody()); //convert all of the push expressions in the steady state work block into //stores to the output buffer workBlock.accept(new SLIRReplacingVisitor() { /** * Visits a push expression. */ public Object visitPushExpression(SIRPushExpression self, CType tapeType, JExpression arg) { JExpression newExp = (JExpression)arg.accept(this); //the expression is the argument of the call JExpression[] args = new JExpression[1]; args[0] = newExp; JMethodCallExpression ratematchsend = new JMethodCallExpression(null, new JThisExpression(null), rateMatchSendMethod, args); //set the type of the method call ratematchsend.setTapeType(tapeType); return ratematchsend; } }); //if we are in debug mode, print out that the filter is firing if (SpaceTimeBackend.FILTER_DEBUG_MODE) { block.addStatement (new SIRPrintStatement(null, new JStringLiteral(null, filter.getName() + " firing."), null)); } //add the cloned work function to the block block.addStatement (makeForLoop(workBlock, generatedVariables.exeIndex, new JIntLiteral(filterInfo.steadyMult))); //now add the code to push the output buffer onto the static network and //reset the output buffer index // for (steady*push*typesize) // push(__SENDBUFFER__[++ __SENDBUFFERINDEX__]) if (filterInfo.push > 0) { SIRPushExpression pushExp = new SIRPushExpression (new JArrayAccessExpression (null, new JLocalVariableExpression (null, generatedVariables.sendBuffer), new JLocalVariableExpression (null, generatedVariables.exeIndex))); pushExp.setTapeType(Util.getBaseType(filter.getOutputType())); JExpressionStatement send = new JExpressionStatement(null, pushExp, null); block.addStatement (makeForLoop(send, generatedVariables.exeIndex, new JIntLiteral(filterInfo.steadyMult * filterInfo.push * Util.getTypeSize(filter.getOutputType())))); //reset the send buffer index block.addStatement (new JExpressionStatement(null, new JAssignmentExpression(null, new JLocalVariableExpression (null, generatedVariables.sendBufferIndex), new JIntLiteral(-1)), null)); } //if we are in decoupled mode do not put the work function in a for loop //and add the print statements if (KjcOptions.decoupled) { block.addStatementFirst (new SIRPrintStatement(null, new JIntLiteral(0), null)); block.addStatement(block.size(), new SIRPrintStatement(null, new JIntLiteral(1), null)); } return block; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/c1c639cb6875d67c4cf58c6a7300039ca852b536/BufferedCommunication.java/buggy/streams/src/at/dms/kjc/spacetime/BufferedCommunication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 804, 1768, 2103, 4727, 2060, 510, 684, 93, 1119, 12, 1586, 1350, 1034, 13, 6862, 565, 288, 202, 46, 1768, 1203, 273, 394, 804, 1768, 12, 2011, 16, 394, 804, 3406, 63, 20, 6487, 446, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 804, 1768, 2103, 4727, 2060, 510, 684, 93, 1119, 12, 1586, 1350, 1034, 13, 6862, 565, 288, 202, 46, 1768, 1203, 273, 394, 804, 1768, 12, 2011, 16, 394, 804, 3406, 63, 20, 6487, 446, 1...
JPanel modifiersPanel = new JPanel(new FlexiGridLayout(0, 2,
JPanel modifiersPanel = new JPanel(new FlexiGridLayout(0, 3,
public PropPanelStereotype() { super("Stereotype", lookupIcon("Stereotype"), ConfigLoader.getTabPropsOrientation()); addField(Translator.localize("label.name"), getNameTextField()); JComboBox baseClass = new UMLComboBox2(new UMLMetaClassComboBoxModel(), ActionSetMetaClass.SINGLETON, false); addField(Translator.localize("label.base-class"), baseClass); addField(Translator.localize("label.namespace"), getNamespaceComboBox()); JPanel modifiersPanel = new JPanel(new FlexiGridLayout(0, 2, FlexiGridLayout.ROWCOLPREFERRED)); modifiersPanel.setBorder(new TitledBorder( Translator.localize("label.modifiers"))); modifiersPanel.add(new UMLGeneralizableElementAbstractCheckBox()); modifiersPanel.add(new UMLGeneralizableElementLeafCheckBox()); modifiersPanel.add(new UMLGeneralizableElementRootCheckBox()); add(modifiersPanel); addSeperator(); addField(Translator.localize("label.generalizations"), getGeneralizationScroll()); addField(Translator.localize("label.specializations"), getSpecializationScroll()); addButton(new PropPanelButton2(new ActionNavigateNamespace())); addButton(new PropPanelButton2(new ActionNewStereotype(), lookupIcon("Stereotype"))); addButton(new PropPanelButton2(new ActionRemoveFromModel(), lookupIcon("Delete"))); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/580374284686a3c973abd215cae3563982acfd6d/PropPanelStereotype.java/clean/src_new/org/argouml/uml/ui/foundation/extension_mechanisms/PropPanelStereotype.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10484, 5537, 55, 387, 73, 10570, 1435, 288, 3639, 2240, 2932, 55, 387, 73, 10570, 3113, 3689, 5554, 2932, 55, 387, 73, 10570, 6, 3631, 1171, 1903, 2886, 18, 588, 5661, 5047, 14097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10484, 5537, 55, 387, 73, 10570, 1435, 288, 3639, 2240, 2932, 55, 387, 73, 10570, 3113, 3689, 5554, 2932, 55, 387, 73, 10570, 6, 3631, 1171, 1903, 2886, 18, 588, 5661, 5047, 14097, ...
return "delete"; }
return "delete"; }
public String getName() { return "delete"; }
6086 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6086/c9e5232d3bb25a56d2243e9927a9f834c51f687a/ParseVdDelete.java/clean/tools/control/src/org/xenoserver/cmdline/ParseVdDelete.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1723, 1435, 288, 565, 327, 315, 3733, 14432, 225, 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, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1723, 1435, 288, 565, 327, 315, 3733, 14432, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass();
public void handleNativeException(Exception exception) { Class excptnClass = exception.getClass();
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass(); } if (handler != null) { handler.call(new IRubyObject[]{JavaUtil.convertJavaToRuby(ruby, excptn)}); } else { StringWriter stackTrace = new StringWriter(); excptn.printStackTrace(new PrintWriter(stackTrace)); StringBuffer sb = new StringBuffer(); sb.append("Native Exception: '"); sb.append(excptn.getClass()).append("\'; Message: "); sb.append(excptn.getMessage()); sb.append("; StackTrace: "); sb.append(stackTrace.getBuffer().toString()); throw new RaiseException(ruby, "RuntimeError", sb.toString()); } }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/12474ae3e4d78d19edc11ac6e29bd9d6e4c50405/JavaSupport.java/clean/org/jruby/javasupport/JavaSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 9220, 503, 12, 503, 3533, 337, 82, 13, 288, 3639, 1659, 3533, 337, 82, 797, 273, 3533, 337, 82, 18, 588, 797, 5621, 3639, 19817, 15417, 1838, 273, 261, 54, 10340, 15417...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 9220, 503, 12, 503, 3533, 337, 82, 13, 288, 3639, 1659, 3533, 337, 82, 797, 273, 3533, 337, 82, 18, 588, 797, 5621, 3639, 19817, 15417, 1838, 273, 261, 54, 10340, 15417...
return invokeMethod(target, method, EMPTY_OBJECT_ARRAY);
try { return method.invoke(target, params); } catch (IllegalAccessException e) { throw new XmlException(e); } catch (IllegalArgumentException e) { throw new XmlException(e); } catch (InvocationTargetException e) { throw new XmlException(e); }
public static Object invokeMethod(Object target, Method method) throws XmlException { return invokeMethod(target, method, EMPTY_OBJECT_ARRAY); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/0f51e75d71af1f35eee67a1c4657a8683cb670df/ReflectionUtils.java/buggy/v2/src/marshal/org/apache/xmlbeans/impl/marshal/util/ReflectionUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 27632, 12, 921, 1018, 16, 4766, 1377, 2985, 707, 13, 3639, 1216, 5714, 503, 565, 288, 3639, 775, 288, 327, 707, 18, 14407, 12, 3299, 16, 859, 1769, 289, 1044, 261, 1219...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 27632, 12, 921, 1018, 16, 4766, 1377, 2985, 707, 13, 3639, 1216, 5714, 503, 565, 288, 3639, 775, 288, 327, 707, 18, 14407, 12, 3299, 16, 859, 1769, 289, 1044, 261, 1219...
public void ungetc(int c) { if (c >= 0) { ungotc = c; } }
public abstract void ungetc(int c);
public void ungetc(int c) { // Ruby silently ignores negative ints for some reason? if (c >= 0) { ungotc = c; } }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/54e6b8da799629e0b7db879c45149399878f5f84/IOHandler.java/clean/src/org/jruby/util/IOHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 640, 588, 71, 12, 474, 276, 13, 288, 3639, 368, 19817, 22274, 17868, 6092, 15542, 364, 2690, 3971, 35, 3639, 309, 261, 71, 1545, 374, 13, 288, 5411, 640, 13212, 71, 273, 276,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 640, 588, 71, 12, 474, 276, 13, 288, 3639, 368, 19817, 22274, 17868, 6092, 15542, 364, 2690, 3971, 35, 3639, 309, 261, 71, 1545, 374, 13, 288, 5411, 640, 13212, 71, 273, 276,...
connection = c;
super(c);
public Statement (Connection c) { connection = c; }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Statement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8056, 261, 1952, 276, 13, 202, 95, 202, 202, 4071, 273, 276, 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, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8056, 261, 1952, 276, 13, 202, 95, 202, 202, 4071, 273, 276, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
StatusPrinter.print(fruitContext); return fruitContext.getFruitShellList();
return fruitContext.getFruitShellList(); } catch (Exception je) { StatusPrinter.print(fruitContext); throw je; }
public List<FruitShell> doFirstPart(String filename) throws Exception { HashMap<Pattern, Action> rulesMap = new HashMap<Pattern, Action>(); rulesMap.put(new Pattern("group/fruitShell"), new FruitShellAction()); rulesMap.put(new Pattern("group/fruitShell/fruit"), new FruitFactoryAction()); rulesMap.put(new Pattern("group/fruitShell/fruit/*"), new NOPAction()); SimpleConfigurator simpleConfigurator = new SimpleConfigurator(rulesMap); simpleConfigurator.setContext(fruitContext); simpleConfigurator.doConfigure(Constants.TEST_DIR_PREFIX + "input/joran/" + filename); StatusPrinter.print(fruitContext); return fruitContext.getFruitShellList(); }
48525 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48525/b17afdd922fb715ce4d262907d6b474541e9bd32/FruitConfigurationTest.java/clean/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 32, 7167, 14945, 13220, 34, 741, 3759, 1988, 12, 780, 1544, 13, 1216, 1185, 288, 565, 4317, 32, 3234, 16, 4382, 34, 2931, 863, 273, 394, 4317, 32, 3234, 16, 4382, 34, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 32, 7167, 14945, 13220, 34, 741, 3759, 1988, 12, 780, 1544, 13, 1216, 1185, 288, 565, 4317, 32, 3234, 16, 4382, 34, 2931, 863, 273, 394, 4317, 32, 3234, 16, 4382, 34, 5621, ...
break _loop461;
break _loop471;
protected final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = STRING_LITERAL; int _saveIndex; switch ( LA(1)) { case '"': { _saveIndex=text.length(); match('"'); text.setLength(_saveIndex); { _loop461: do { if ((LA(1)=='&') && (LA(2)=='a'||LA(2)=='g'||LA(2)=='l'||LA(2)=='q')) { mPREDEFINED_ENTITY_REF(false); } else if ((LA(1)=='&') && (LA(2)=='#')) { mCHAR_REF(false); } else if ((LA(1)=='"') && (LA(2)=='"')) { { _saveIndex=text.length(); match('"'); text.setLength(_saveIndex); match('"'); } } else if ((_tokenSet_6.member(LA(1)))) { { match(_tokenSet_6); } } else { break _loop461; } } while (true); } _saveIndex=text.length(); match('"'); text.setLength(_saveIndex); break; } case '\'': { _saveIndex=text.length(); match('\''); text.setLength(_saveIndex); { _loop465: do { if ((LA(1)=='&') && (LA(2)=='a'||LA(2)=='g'||LA(2)=='l'||LA(2)=='q')) { mPREDEFINED_ENTITY_REF(false); } else if ((LA(1)=='&') && (LA(2)=='#')) { mCHAR_REF(false); } else if ((LA(1)=='\'') && (LA(2)=='\'')) { { _saveIndex=text.length(); match('\''); text.setLength(_saveIndex); match('\''); } } else if ((_tokenSet_7.member(LA(1)))) { { match(_tokenSet_7); } } else { break _loop465; } } while (true); } _saveIndex=text.length(); match('\''); text.setLength(_saveIndex); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/68bb69fc2bc91cbece43dcdf563e1be3ba003e1b/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 918, 312, 5804, 67, 23225, 12, 6494, 389, 2640, 1345, 13, 1216, 9539, 16, 3703, 1228, 503, 16, 3155, 1228, 503, 288, 202, 202, 474, 389, 88, 723, 31, 3155, 389, 2316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 312, 5804, 67, 23225, 12, 6494, 389, 2640, 1345, 13, 1216, 9539, 16, 3703, 1228, 503, 16, 3155, 1228, 503, 288, 202, 202, 474, 389, 88, 723, 31, 3155, 389, 2316, ...
|| element instanceof ResultSetColumnHandle )
|| element instanceof DataSetParameterHandle )
public String getInsertText( Object element ) { if ( element instanceof ResultSetColumnHandle || element instanceof ResultSetColumnHandle ) { return DEUtil.getExpression( element ); } return super.getInsertText( element ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/44a5f73c752acc61ad17a7dd224ffdca174328dd/BindingExpressionProvider.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/BindingExpressionProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 336, 4600, 1528, 12, 1033, 930, 262, 202, 95, 202, 202, 430, 261, 930, 1276, 10842, 1494, 3259, 9506, 202, 20081, 930, 1276, 10842, 1494, 3259, 262, 202, 202, 95, 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, 482, 514, 336, 4600, 1528, 12, 1033, 930, 262, 202, 95, 202, 202, 430, 261, 930, 1276, 10842, 1494, 3259, 9506, 202, 20081, 930, 1276, 10842, 1494, 3259, 262, 202, 202, 95, 1082, 2...
errors.add(new ErrorInfo(status, jobName)); if (dialogActive) { if (dialog != null) refreshDialog(); } else openErrorDialog(jobName, status);
ErrorInfo errorInfo = new ErrorInfo(status, job); showError(errorInfo);
void addError(IStatus status, String jobName) { //Handle out of memory errors via the workbench final Throwable exception = status.getException(); if (exception != null && exception instanceof OutOfMemoryError) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { /* (non-Javadoc) * @see java.lang.Runnable#run() */ public void run() { ExceptionHandler.getInstance().handleException(exception); } }); return; } errors.add(new ErrorInfo(status, jobName)); if (dialogActive) { if (dialog != null) refreshDialog(); } else openErrorDialog(jobName, status); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/04a47d8f49333d13791700b1fefbb45fb60967f8/ErrorNotificationManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ErrorNotificationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 9501, 12, 45, 1482, 1267, 16, 514, 17833, 13, 288, 3639, 368, 3259, 596, 434, 3778, 1334, 3970, 326, 1440, 22144, 3639, 727, 4206, 1520, 273, 1267, 18, 588, 503, 5621, 3639, 309, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 9501, 12, 45, 1482, 1267, 16, 514, 17833, 13, 288, 3639, 368, 3259, 596, 434, 3778, 1334, 3970, 326, 1440, 22144, 3639, 727, 4206, 1520, 273, 1267, 18, 588, 503, 5621, 3639, 309, 2...
message = "The submission must be checked before inclusion in the archive.";
message = I18N.message("step2", WorkflowManager.class);
private static void notifyGroupOfTask(Context c, WorkflowItem wi, Group mygroup, EPerson[] epa) throws SQLException, IOException { // check to see if notification is turned off // and only do it once - delete key after notification has // been suppressed for the first time Integer myID = new Integer(wi.getItem().getID()); if (noEMail.containsKey(myID)) { // suppress email, and delete key noEMail.remove(myID); } else { try { // Get the item title String title = getItemTitle(wi); // Get the submitter's name String submitter = getSubmitterName(wi); // Get the collection Collection coll = wi.getCollection(); String message = ""; switch (wi.getState()) { case WFSTATE_STEP1POOL: message = "It requires reviewing."; break; case WFSTATE_STEP2POOL: message = "The submission must be checked before inclusion in the archive."; break; case WFSTATE_STEP3POOL: message = "The metadata needs to be checked to ensure compliance with the " + "collection's standards, and edited if necessary."; break; } Email email = ConfigurationManager.getEmail("submit_task"); email.addArgument(title); email.addArgument(coll.getMetadata("name")); email.addArgument(submitter); email.addArgument(message); email.addArgument(getMyDSpaceLink()); emailRecipients(c, epa, email); } catch (MessagingException e) { log.warn(LogManager.getHeader(c, "notifyGroupofTask", "cannot email user" + " group_id" + mygroup.getID() + " workflow_item_id" + wi.getID())); } } }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/7d5e5faf08d2d054ac2dd03660d64aa89bce07a1/WorkflowManager.java/buggy/dspace/src/org/dspace/workflow/WorkflowManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 5066, 1114, 951, 2174, 12, 1042, 276, 16, 11363, 1180, 16138, 16, 5411, 3756, 3399, 1655, 16, 512, 8346, 8526, 5529, 69, 13, 1216, 6483, 16, 1860, 565, 288, 3639, 368, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 5066, 1114, 951, 2174, 12, 1042, 276, 16, 11363, 1180, 16138, 16, 5411, 3756, 3399, 1655, 16, 512, 8346, 8526, 5529, 69, 13, 1216, 6483, 16, 1860, 565, 288, 3639, 368, 8...