rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
System.err.println(getCluster().getMessageAddress() + " LoadAllocator:checkOverruns() the capacity's ScheduleContentPG has no schedule");
System.err.println(getMessageAddress() + " LoadAllocator:checkOverruns() the capacity's ScheduleContentPG has no schedule");
private void checkOverruns(LACapacity mycapacity) { // System.out.println(getCluster().getMessageAddress() + " LoadAllocator in checkOverruns"); Capacity capacity = mycapacity.getCapacity(); if (capacity == null) { // This should never happen System.err.println(getCluster().getMessageAddress() + " LoadAllocator:checkOverruns() no capacity object!"); return; } RoleSchedule rs = capacity.getRoleSchedule(); // System.out.println(getCluster().getMessageAddress() + " LoadAllocator:checkOverruns() Capacity.RoleSchedule:" + rs); if (rs == null) { // This should never happen System.err.println(getCluster().getMessageAddress() + " LoadAllocator:checkOverruns() the capacity has no role schedule"); return; } long currentDate = oplanStartTime; boolean publishChanges = false; boolean publishNew = false; Schedule capacitySchedule = capacity.getScheduledContentPG().getSchedule(); if (capacitySchedule == null) { // This should never happen System.err.println(getCluster().getMessageAddress() + " LoadAllocator:checkOverruns() the capacity's ScheduleContentPG has no schedule"); return; } // Check for overruns on each day while(currentDate < oplanEndTime) { double qtyAsked = 0; double overrun = 0; double qtyAvailable = 0; // Find the elements that have allocations for current day // Assume that oplan started at midnight. Collection allocatedSet = rs.getOverlappingRoleSchedule(currentDate, currentDate + ScheduleUtilities.millisperday); if (allocatedSet.size() > 0) { //Find out how much we have allocated qtyAsked = rs.addAspectValues(allocatedSet, AspectType.QUANTITY); Collection capacitySet = capacitySchedule.getOverlappingScheduleElements( currentDate, currentDate + ScheduleUtilities.millisperday); // Find out how much capacity we actually have qtyAvailable = ScheduleUtilities.sumElements(capacitySet); // Have we allocated more than we have? overrun = qtyAsked - qtyAvailable; // System.out.println(getCluster().getMessageAddress() // + " LoadAllocator:checkOverruns() overrun=" + overrun // + " qtyAsked=" + qtyAsked // + " qtyAvaiable=" + qtyAvailable); } else { // System.out.println(getCluster().getMessageAddress() // + " LoadAllocator:checkOverruns() No schedule for " // + currentDate); } // more capacity allocated than available? if (overrun > 0){ // create a new SupportRequest task there isn't one already if (mycapacity.getSupportRequest() == null) { publishNew = true; Task supportRequest = createSupportRequest(capacity, overrun, currentDate, oplanEndTime); mycapacity.setSupportRequest(supportRequest); // add new qty schedule element to capcity // this is the object that represents the optimistic assumption that the // SupportRequest task is successful NewQuantityScheduleElement cse = new QuantityScheduleElementImpl(); cse.setQuantity(overrun); cse.setStartTime(currentDate); // current date? cse.setEndTime(oplanEndTime); ((NewSchedule)capacitySchedule).addScheduleElement(cse); mycapacity.setQSE((QuantityScheduleElement)cse); // Add the QSE to the annotation on the task ((MyAnnotation)supportRequest.getAnnotation()).setQSE((QuantityScheduleElement)cse); } else { // reset the start date and quantity preferences of the SupportRequest task publishChanges = true; QuantityScheduleElement qse = mycapacity.getQSE(); if (qse == null) { // Don't know why this would happen, but... System.err.println(getCluster().getMessageAddress() + " LoadAllocator QSE missing"); NewQuantityScheduleElement cse = new QuantityScheduleElementImpl(); cse.setQuantity(0d); cse.setStartTime(currentDate); cse.setEndTime(oplanEndTime); ((NewSchedule)capacitySchedule).addScheduleElement(cse); mycapacity.setQSE((QuantityScheduleElement)cse); // Add the QSE to the annotation on the task ((MyAnnotation)mycapacity.getSupportRequest().getAnnotation()).setQSE((QuantityScheduleElement)cse); } // this is null double new_qty = qse.getQuantity() +overrun; long newDate = qse.getStartDate().getTime(); if (newDate > currentDate) { ((NewQuantityScheduleElement)qse).setStartTime(currentDate); newDate = currentDate; } modifySupportRequest(mycapacity.getSupportRequest(), capacity, new_qty, newDate); // new quantity should always be more than old ((NewQuantityScheduleElement)qse).setQuantity(new_qty); } } currentDate += ScheduleUtilities.millisperday; } if (publishNew || publishChanges) { // send SupportRequest task to SupportForceProvider publishSupportRequestAllocation(mycapacity); } if (publishNew) { // System.out.println(getCluster().getMessageAddress() + " LoadAllocator publishing changed capacity and new SupportRequest"); publishChange(capacity); publishAdd(mycapacity.getSupportRequest()); publishNew = false; } else if (publishChanges) { // System.out.println(getCluster().getMessageAddress() + " LoadAllocator publishing changed capacity and SupportRequest"); publishChange(capacity); publishChange(mycapacity.getSupportRequest()); publishChanges = false; } }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/6c245e9a4b46cd0066408cc5ff7f4f953b95f742/LoadAllocatorPlugin.java/buggy/glm/src/org/cougaar/mlm/plugin/sample/LoadAllocatorPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 866, 22042, 27595, 12, 48, 2226, 438, 3683, 3399, 16017, 13, 288, 565, 368, 282, 202, 3163, 18, 659, 18, 8222, 12, 588, 3629, 7675, 24906, 1887, 1435, 397, 315, 4444, 21156, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 22042, 27595, 12, 48, 2226, 438, 3683, 3399, 16017, 13, 288, 565, 368, 282, 202, 3163, 18, 659, 18, 8222, 12, 588, 3629, 7675, 24906, 1887, 1435, 397, 315, 4444, 21156, ...
return mparam[0].toString(); }
return mparam[0].toString(); }
protected static String createObjectID(Object obj) { if (obj instanceof MBase) return null; /* // Want to use the "built in" UID of the MXxx instances // d00mst 2002-10-08 if (obj instanceof MModelElement) { MTaggedValue mtv = ExtensionMechanismsFactory.getFactory().createTaggedValue();; String id = generateID(); mtv.setTag("org.argouml.uid"); mtv.setValue(id); mtv.setModelElement((MModelElement)obj); //cat.debug("Added UID " + id + " to an object"); return id; } */ Class params[] = new Class[1]; Object mparam[]; params[0] = _myclass; try { Method m = obj.getClass().getMethod("setItemUID", params); mparam = new Object[1]; mparam[0] = new ItemUID(); m.invoke(obj, mparam); } catch (NoSuchMethodException nsme) { return null; } catch (SecurityException se) { return null; } catch (InvocationTargetException tie) { cat.error("setItemUID for " + obj.getClass() + " threw", tie); return null; } catch (IllegalAccessException iace) { return null; } catch (IllegalArgumentException iare) { cat.error("setItemUID for " + obj.getClass() + " takes strange parameter", iare); return null; } catch (ExceptionInInitializerError eiie) { return null; } return mparam[0].toString(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ItemUID.java/clean/src_new/org/argouml/cognitive/ItemUID.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 514, 17109, 734, 12, 921, 1081, 13, 202, 95, 202, 202, 430, 261, 2603, 1276, 490, 2171, 13, 1082, 202, 2463, 446, 31, 202, 202, 20308, 202, 202, 759, 678, 970, 358, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 514, 17109, 734, 12, 921, 1081, 13, 202, 95, 202, 202, 430, 261, 2603, 1276, 490, 2171, 13, 1082, 202, 2463, 446, 31, 202, 202, 20308, 202, 202, 759, 678, 970, 358, 99...
public String getOutputPath() { try { IProject currProject = AspectJUIPlugin.getDefault() .getCurrentProject(); IJavaProject jProject = JavaCore.create(currProject); IPath workspaceRelativeOutputPath = jProject.getOutputLocation(); if (workspaceRelativeOutputPath.segmentCount() == 1) { // project // root return jProject.getResource().getLocation().toOSString(); } else { IFolder out = ResourcesPlugin.getWorkspace().getRoot() .getFolder(workspaceRelativeOutputPath); return out.getLocation().toOSString(); } // Bug 37033 - get the path right, stupid! // // Bug21998: Use the project location rather than the workspace // location. // String workspaceLoc = // currProject.getLocation().removeLastSegments(1).toOSString(); // // IJavaProject jProject = JavaCore.create(currProject); // String relativePath = jProject.getOutputLocation().toOSString(); // return workspaceLoc + relativePath; // find the resource that corresponds with this path (if its a // linked folder this will enable us to dereference it). // IResource r = // currProject.findMember(workspaceRelativeOutputPath.removeFirstSegments(1)); // String ret = ""; // if ( r != null ) ret = r.getLocation().toOSString(); // AJDTEventTrace.generalEvent("Output path =" + ret); // // System.err.println(">>>> ret: " + ret + ", r: " + r); // // return ret; } catch (CoreException ce) { Ajde.getDefault().getErrorHandler().handleError( AspectJUIPlugin.getResourceString("noOutputDir"), ce); } return null; }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/550817c76071be000f8667dc97da8c7e46297577/ProjectProperties.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/ajde/ProjectProperties.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11062, 743, 1435, 288, 202, 202, 698, 288, 1082, 202, 45, 4109, 4306, 4109, 273, 2970, 1181, 46, 5370, 3773, 18, 588, 1868, 1435, 6862, 202, 18, 588, 3935, 4109, 5621, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11062, 743, 1435, 288, 202, 202, 698, 288, 1082, 202, 45, 4109, 4306, 4109, 273, 2970, 1181, 46, 5370, 3773, 18, 588, 1868, 1435, 6862, 202, 18, 588, 3935, 4109, 5621, 10...
public void setDigest(String digest) { this.digest = digest;
public void setDigest(String connectionID, String password) { this.digest = StringUtils.hash(connectionID + password);
public void setDigest(String digest) { this.digest = digest; }
1538 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1538/0a62a9059b63b3dea33602cd39d801ca781d5a9e/Authentication.java/buggy/source/org/jivesoftware/smack/packet/Authentication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 9568, 12, 780, 5403, 13, 288, 3639, 333, 18, 10171, 273, 5403, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 377, 1071, 918, 444, 9568, 12, 780, 5403, 13, 288, 3639, 333, 18, 10171, 273, 5403, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public FloatDatatypeValidator () throws InvalidDatatypeFacetException{ this( null, null, false );
public FloatDatatypeValidator () { this( null, null, false, null );
public FloatDatatypeValidator () throws InvalidDatatypeFacetException{ this( null, null, false ); // Native, No Facets defined, Restriction }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/4b01142cc37cb03a4b40a1d07569328af4773755/FloatDatatypeValidator.java/buggy/src/org/apache/xerces/impl/v2/datatypes/FloatDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5450, 20228, 5126, 1832, 1216, 1962, 20228, 11137, 503, 95, 3639, 333, 12, 446, 16, 446, 16, 629, 11272, 368, 16717, 16, 2631, 12618, 2413, 2553, 16, 1124, 6192, 565, 289, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5450, 20228, 5126, 1832, 1216, 1962, 20228, 11137, 503, 95, 3639, 333, 12, 446, 16, 446, 16, 629, 11272, 368, 16717, 16, 2631, 12618, 2413, 2553, 16, 1124, 6192, 565, 289, 2, -100, ...
public void endObjectStyleMacroExpansion(int offset);
public void endObjectStyleMacroExpansion(IMacroDefinition macro, int offset);
public void endObjectStyleMacroExpansion(int offset);
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/dc228062598a33014201f6e29123346c86b43118/IScannerPreprocessorLog.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/IScannerPreprocessorLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 921, 2885, 17392, 2966, 12162, 12, 474, 1384, 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...
[ 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, 377, 1071, 918, 679, 921, 2885, 17392, 2966, 12162, 12, 474, 1384, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos));
} else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { planes.setChar(xPos + x, aid.charAt(x)); } screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER);
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } org.tn5250j.tools.system.OperatingSystem.displayURL(eb .toString()); // take out the log statement when we are sure it is // working log.info("Send to external Browser: " + eb.toString()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x, aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option. // if (gui.rubberband.isAreaSelected()) { // gui.rubberband.reset(); // gui.repaint(); // } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true; // } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/446c691d87b77c1be3b434626845a4988e42aea7/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3635, 6688, 12, 9186, 1133, 425, 16, 509, 949, 13, 288, 202, 202, 430, 16051, 83, 1155, 18, 291, 653, 22233, 8966, 10756, 288, 1082, 202, 430, 261, 917, 411, 374, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3635, 6688, 12, 9186, 1133, 425, 16, 509, 949, 13, 288, 202, 202, 430, 16051, 83, 1155, 18, 291, 653, 22233, 8966, 10756, 288, 1082, 202, 430, 261, 917, 411, 374, 13, ...
return this.sid;
return sid;
public short getSid() { return this.sid; }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/e1e58e515f38ac357130b8e14d9fd377be1ea1a6/SeriesChartGroupIndexRecord.java/buggy/src/java/org/apache/poi/hssf/record/SeriesChartGroupIndexRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3025, 1322, 350, 1435, 565, 288, 3639, 327, 7348, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3025, 1322, 350, 1435, 565, 288, 3639, 327, 7348, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
VM_Address getNextReturnAddressAddress() {
VM_Address getNextReturnAddressAddress() { VM_Address ref_address; if ( !jniSavedReturnAddr.isZero() ) { ref_address = jniSavedReturnAddr; jniSavedReturnAddr = VM_Address.zero(); return ref_address; }
VM_Address getNextReturnAddressAddress() { //- implements VM_GCMapIterator VM_Address ref_address; if ( !jniSavedReturnAddr.isZero() ) { ref_address = jniSavedReturnAddr; jniSavedReturnAddr = VM_Address.zero(); return ref_address; } return VM_Address.zero(); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/adc94596e6496781a4e0763b29a52be3daab1a7a/VM_JNIGCMapIterator.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNIGCMapIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 8251, 67, 1887, 6927, 990, 1887, 1887, 1435, 288, 8251, 67, 1887, 225, 1278, 67, 2867, 31, 309, 261, 401, 78, 15834, 16776, 990, 3178, 18, 291, 7170, 1435, 262, 288, 1278, 67, 2867, 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, 565, 8251, 67, 1887, 6927, 990, 1887, 1887, 1435, 288, 8251, 67, 1887, 225, 1278, 67, 2867, 31, 309, 261, 401, 78, 15834, 16776, 990, 3178, 18, 291, 7170, 1435, 262, 288, 1278, 67, 2867, 273...
if ((capRequest[2] & 0x02) == 0x02) {
if ((capRequest[2] & 0x80) == 0x80) { capMask |= SYB_UNICODE; } if ((capRequest[3] & 0x02) == 0x02) {
private void tdsCapabilityToken() throws IOException, ProtocolException { in.readShort(); // Packet length if (in.read() != 1) { throw new ProtocolException("TDS_CAPABILITY: expected request string"); } int capLen = in.read(); if (capLen != 10 && capLen != 0) { throw new ProtocolException("TDS_CAPABILITY: byte count not 10"); } byte capRequest[] = new byte[10]; if (capLen == 0) { Logger.println("TDS_CAPABILITY: Invalid request length"); } else { in.read(capRequest); } if (in.read() != 2) { throw new ProtocolException("TDS_CAPABILITY: expected response string"); } capLen = in.read(); if (capLen != 10 && capLen != 0) { throw new ProtocolException("TDS_CAPABILITY: byte count not 10"); } byte capResponse[] = new byte[10]; if (capLen == 0) { Logger.println("TDS_CAPABILITY: Invalid response length"); } else { in.read(capResponse); } // // jTDS sends 01 0A 03 84 0E EF 65 7F FF FF FF D6 // Sybase 11.92 01 0A 00 00 00 23 61 41 CF FF FF C6 // Sybase 12.52 01 0A 03 84 0A E3 61 41 FF FF FF C6 // // JTDS sends 02 0A 00 02 00 07 9E 06 48 00 00 00 // Sybase 11.92 02 0A 00 00 00 00 00 06 00 00 00 00 // Sybase 12.52 02 0A 00 00 00 00 00 06 00 00 00 00 // // // Now set the correct attributes for this connection. // See the CT_LIB documentation for details on the bit // positions. // int capMask = 0; if ((capRequest[6] & 0x30) == 0x30) { capMask |= SYB_LONGDATA; } if ((capRequest[0] & 0x03) == 0x03) { capMask |= SYB_DATETIME; } if ((capRequest[2] & 0x02) == 0x02) { capMask |= SYB_EXTCOLINFO; } if ((capRequest[3] & 0x04) == 0x04) { capMask |= SYB_BITNULL; } if ((capRequest[1] & 0x80) == 0x80) { capMask |= SYB_UNICODE; } connection.setSybaseInfo(capMask); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/804982908e9416d23d3d49a7913b33c2def3ee35/TdsCore.java/clean/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 268, 2377, 17035, 1345, 1435, 1216, 1860, 16, 4547, 503, 288, 3639, 316, 18, 896, 4897, 5621, 368, 11114, 769, 3639, 309, 261, 267, 18, 896, 1435, 480, 404, 13, 288, 5411, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 268, 2377, 17035, 1345, 1435, 1216, 1860, 16, 4547, 503, 288, 3639, 316, 18, 896, 4897, 5621, 368, 11114, 769, 3639, 309, 261, 267, 18, 896, 1435, 480, 404, 13, 288, 5411, 60...
deep = false;
public Node importNode(Node source, boolean deep) throws DOMException { Node newnode=null; // Sigh. This doesn't work; too many nodes have private data that // would have to be manually tweaked. May be able to add local // shortcuts to each nodetype. Consider ????? // if(source instanceof NodeImpl && // !(source instanceof DocumentImpl)) // { // // Can't clone DocumentImpl since it invokes us... // newnode=(NodeImpl)source.cloneNode(false); // newnode.ownerDocument=this; //} //else int type = source.getNodeType(); switch (type) { case ELEMENT_NODE: { Element newelement; if (source.getLocalName() == null) { newelement = createElement(source.getNodeName()); } else { newelement = createElementNS(source.getNamespaceURI(), source.getNodeName()); } NamedNodeMap srcattr = source.getAttributes(); if (srcattr != null) { for(int i = 0; i < srcattr.getLength(); i++) { Attr attr = (Attr) importNode(srcattr.item(i), true); newelement.setAttributeNode(attr); } } newnode = newelement; break; } case ATTRIBUTE_NODE: { if (source.getLocalName() == null) { newnode = createAttribute(source.getNodeName()); } else { newnode = createAttributeNS(source.getNamespaceURI(), source.getNodeName()); } // Kids carry value break; } case TEXT_NODE: { newnode = createTextNode(source.getNodeValue()); break; } case CDATA_SECTION_NODE: { newnode = createCDATASection(source.getNodeValue()); break; } case ENTITY_REFERENCE_NODE: { newnode = createEntityReference(source.getNodeName()); deep = false; // Value implied by doctype, so we must not copy it // -- instead, refer to local doctype, if any. break; } case ENTITY_NODE: { Entity srcentity = (Entity)source; EntityImpl newentity = (EntityImpl)createEntity(source.getNodeName()); newentity.setPublicId(srcentity.getPublicId()); newentity.setSystemId(srcentity.getSystemId()); newentity.setNotationName(srcentity.getNotationName()); // Kids carry additional value newnode = newentity; break; } case PROCESSING_INSTRUCTION_NODE: { newnode = createProcessingInstruction(source.getNodeName(), source.getNodeValue()); break; } case COMMENT_NODE: { newnode = createComment(source.getNodeValue()); break; } case DOCUMENT_TYPE_NODE: { DocumentType srcdoctype = (DocumentType)source; DocumentTypeImpl newdoctype = (DocumentTypeImpl) createDocumentType(srcdoctype.getNodeName(), srcdoctype.getPublicId(), srcdoctype.getSystemId()); // Values are on NamedNodeMaps NamedNodeMap smap = srcdoctype.getEntities(); NamedNodeMap tmap = newdoctype.getEntities(); if(smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem(importNode(smap.item(i), true)); } } smap = srcdoctype.getNotations(); tmap = newdoctype.getNotations(); if (smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem(importNode(smap.item(i), true)); } } // NOTE: At this time, the DOM definition of DocumentType // doesn't cover Elements and their Attributes. domimpl's // extentions in that area will not be preserved, even if // copying from domimpl to domimpl. We could special-case // that here. Arguably we should. Consider. ????? newnode = newdoctype; break; } case DOCUMENT_FRAGMENT_NODE: { newnode = createDocumentFragment(); // No name, kids carry value break; } case NOTATION_NODE: { Notation srcnotation = (Notation)source; NotationImpl newnotation = (NotationImpl)createNotation(source.getNodeName()); newnotation.setPublicId(srcnotation.getPublicId()); newnotation.setSystemId(srcnotation.getSystemId()); // Kids carry additional value newnode = newnotation; // No name, no value break; } case DOCUMENT_NODE : // Document can't be child of Document default: { // Unknown node type throw new DOMExceptionImpl(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } } // If deep, replicate and attach the kids. if (deep) { for (Node srckid = source.getFirstChild(); srckid != null; srckid = srckid.getNextSibling()) { newnode.appendChild(importNode(srckid, true)); } } return newnode; } // importNode(Node,boolean):Node
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/6a8035157807dee36c23edeaf25be9ba699c3119/DocumentImpl.java/buggy/src/org/apache/xerces/dom/DocumentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 1930, 907, 12, 907, 1084, 16, 1250, 4608, 13, 3639, 1216, 4703, 503, 288, 377, 202, 907, 29267, 33, 2011, 31, 377, 202, 759, 348, 2031, 18, 1220, 3302, 1404, 1440, 31, 4885,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 1930, 907, 12, 907, 1084, 16, 1250, 4608, 13, 3639, 1216, 4703, 503, 288, 377, 202, 907, 29267, 33, 2011, 31, 377, 202, 759, 348, 2031, 18, 1220, 3302, 1404, 1440, 31, 4885,...
notationModelParam.getContents().add(diagram); modelResource.getContents().add(model); ResourceUtil.save(modelResource); diagram.setName(newDiagramFile.getName());
diagramResource.getContents().add(diagram); diagram.setName(diagramFile.getName());
public Object run() { EObject model = EObjectUtil.create(TaiPanPackage.eINSTANCE.getAquatory()); Diagram diagram = ViewService.createDiagram(model, kindParam, new PreferencesHint(TaiPanDiagramEditorPlugin.EDITOR_ID)); if (diagram != null) { notationModelParam.getContents().add(diagram); modelResource.getContents().add(model); ResourceUtil.save(modelResource); diagram.setName(newDiagramFile.getName()); diagram.setElement(model); ResourceUtil.save(notationModelParam); } return null; }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/79c7b0fc69c2bf26895f5be319f9bd8a536a6311/TaiPanDiagramEditorUtil.java/clean/examples/org.eclipse.gmf.examples.taipan.gmf.editor/src/org/eclipse/gmf/examples/taipan/gmf/editor/part/TaiPanDiagramEditorUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 1086, 1435, 288, 6862, 202, 8029, 938, 273, 8091, 1304, 18, 2640, 12, 56, 10658, 4069, 2261, 18, 73, 13341, 18, 588, 37, 372, 8452, 10663, 6862, 202, 14058, 1940, 19750, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1086, 1435, 288, 6862, 202, 8029, 938, 273, 8091, 1304, 18, 2640, 12, 56, 10658, 4069, 2261, 18, 73, 13341, 18, 588, 37, 372, 8452, 10663, 6862, 202, 14058, 1940, 19750, ...
textArea.updateScrollBars();
textArea.updateScrollBar();
void init() { if(initialized) { if(buffer.isLoaded()) { resetAnchors(); textArea.updateScrollBars(); textArea.recalculateLastPhysicalLine(); } } else { initialized = true; folds = new RangeMap(); if(buffer.isLoaded()) bufferChangeHandler.foldHandlerChanged(buffer); else folds.reset(buffer.getLineCount()); notifyScreenLineChanges(); } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/ac659a2cb4ef2bf0ee0df41b216e2eab89ac410c/DisplayManager.java/buggy/org/gjt/sp/jedit/textarea/DisplayManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1208, 1435, 202, 95, 202, 202, 430, 12, 13227, 13, 202, 202, 95, 1082, 202, 430, 12, 4106, 18, 291, 8835, 10756, 1082, 202, 95, 9506, 202, 6208, 979, 15482, 5621, 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, 225, 202, 6459, 1208, 1435, 202, 95, 202, 202, 430, 12, 13227, 13, 202, 202, 95, 1082, 202, 430, 12, 4106, 18, 291, 8835, 10756, 1082, 202, 95, 9506, 202, 6208, 979, 15482, 5621, 9506, 202, ...
public ActionForward prepareEditProgram(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { Integer objectCode = getObjectCode(request); String curricularCourseCodeString = request.getParameter("curricularCourseCode"); Integer curricularCourseCode = new Integer(curricularCourseCodeString); request.setAttribute("curricularCourseCode", curricularCourseCode); ISiteComponent programComponent = new InfoCurriculum(); try { readSiteView(request, programComponent, null, curricularCourseCode, null); } catch (FenixActionException e1) { throw e1; } HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW); //Filter if the cteacher is responsibles for the execution course Object args[] = { userView.getUtilizador(), objectCode, curricularCourseCode }; Boolean isResponsible = null; try { isResponsible = (Boolean) ServiceManagerServiceFactory.executeService(null, "TeacherResponsibleByExecutionCourse", args); } catch (FenixServiceException e) { e.printStackTrace(); throw new FenixActionException(e); } if (isResponsible.booleanValue() == false) { ActionErrors errors = new ActionErrors(); errors.add("notAuthorized", new ActionError("error.exception.notAuthorized2")); saveErrors(request, errors); return mapping.findForward("notAuthorized"); } TeacherAdministrationSiteView siteView = (TeacherAdministrationSiteView) request .getAttribute("siteView"); if (siteView.getComponent() != null) { DynaActionForm programForm = (DynaActionForm) form; programForm.set("program", ((InfoCurriculum) siteView.getComponent()).getProgram()); programForm.set("programEn", ((InfoCurriculum) siteView.getComponent()).getProgramEn()); } return mapping.findForward("editProgram"); }
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, 2911, 4666, 9459, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 1586, 503, 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, 377, 1071, 4382, 8514, 2911, 4666, 9459, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 1586, 503, 288...
long secs = ((RubyFixnum) args[0]).getValue();
long secs = RubyNumeric.num2long(args[0]);
public static RubyTime s_at(Ruby ruby, RubyObject rubyClass, RubyObject[] args) { long secs = ((RubyFixnum) args[0]).getValue(); RubyTime time = new RubyTime(ruby, (RubyClass) rubyClass.getRubyClass()); GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date(secs)); time.setJavaCalendar(cal); return time; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyTime.java/buggy/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 950, 272, 67, 270, 12, 54, 10340, 22155, 16, 19817, 921, 22155, 797, 16, 19817, 921, 8526, 833, 13, 288, 3639, 1525, 18043, 273, 19817, 9902, 18, 2107, 22, 5748, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 950, 272, 67, 270, 12, 54, 10340, 22155, 16, 19817, 921, 22155, 797, 16, 19817, 921, 8526, 833, 13, 288, 3639, 1525, 18043, 273, 19817, 9902, 18, 2107, 22, 5748, 12, 1...
return java.sql.ResultSet.FETCH_FORWARD;
return fetchdirection;
public int getFetchDirection() throws SQLException { //PostgreSQL normally sends rows first->last return java.sql.ResultSet.FETCH_FORWARD; }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/4042b568fe12b04f3bba81862470f359fddbc2dc/AbstractJdbc2ResultSet.java/buggy/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 2812, 1593, 8212, 1435, 1216, 6483, 202, 95, 202, 202, 759, 3349, 23896, 15849, 9573, 2595, 1122, 2122, 2722, 202, 202, 2463, 2252, 18, 4669, 18, 13198, 18, 20231, 67, 7473...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 2812, 1593, 8212, 1435, 1216, 6483, 202, 95, 202, 202, 759, 3349, 23896, 15849, 9573, 2595, 1122, 2122, 2722, 202, 202, 2463, 2252, 18, 4669, 18, 13198, 18, 20231, 67, 7473...
if(item.requestSender == null) return false; if(item == null) {
if(item.requestSender == null) {
public boolean handleSwapReply(Message m) { long uid = m.getLong(DMT.UID); Long luid = new Long(uid); RecentlyForwardedItem item = (RecentlyForwardedItem) recentlyForwardedIDs.get(luid); if(item == null) { Logger.error(this, "Unrecognized SwapReply: ID "+uid); return false; } if(item.requestSender == null) return false; if(item == null) { Logger.minor(this, "SwapReply from "+m.getSource()+" on chain originated locally "+uid); return false; } if(item.routedTo == null) { Logger.error(this, "Got SwapReply on "+uid+" but routedTo is null!"); return false; } if(m.getSource() != item.routedTo) { Logger.error(this, "Unmatched swapreply "+uid+" from wrong source: From "+m.getSource()+ " should be "+item.routedTo+" to "+item.requestSender); return true; } item.lastMessageTime = System.currentTimeMillis(); // Returning to source - use incomingID m.set(DMT.UID, item.incomingID); Logger.minor(this, "Forwarding SwapReply "+uid+" from "+m.getSource()+" to "+item.requestSender); try { item.requestSender.sendAsync(m, null); } catch (NotConnectedException e) { Logger.minor(this, "Lost connection forwarding SwapReply "+uid+" to "+item.requestSender); } return true; }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/d69dceaa72feee5ece14b8de951841aa9b614188/LocationManager.java/clean/src/freenet/node/LocationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1640, 12521, 7817, 12, 1079, 312, 13, 288, 3639, 1525, 4555, 273, 312, 18, 588, 3708, 12, 40, 6152, 18, 3060, 1769, 3639, 3407, 328, 1911, 273, 394, 3407, 12, 1911, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1640, 12521, 7817, 12, 1079, 312, 13, 288, 3639, 1525, 4555, 273, 312, 18, 588, 3708, 12, 40, 6152, 18, 3060, 1769, 3639, 3407, 328, 1911, 273, 394, 3407, 12, 1911, 1769, 36...
this.taint = taint; }
this.taint = taint; }
public void setTaint(boolean taint) { this.taint = taint; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 29048, 12, 6494, 22664, 13, 288, 3639, 333, 18, 88, 1598, 273, 22664, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 29048, 12, 6494, 22664, 13, 288, 3639, 333, 18, 88, 1598, 273, 22664, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
protected void createViewModeToolbar(Composite parent) { EditorModeManager manager = (EditorModeManager)getAdapter(EditorModeManager.class); ProductCustomizationProvider productCustomizationProvider = (ProductCustomizationProvider)getAdapter(ProductCustomizationProvider.class); EditorMode [] modeList = manager.getModes(); int modeListLength = modeList.length; boolean showToolBar = modeListLength > 1; if (showToolBar) { toolbar = new Composite(parent, SWT.FLAT | SWT.DRAW_TRANSPARENT); toolbar.setBackground(ColorConstants.white); toolbar.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { Rectangle clientArea = toolbar.getClientArea(); e.gc.setForeground(ColorConstants.lightGray); e.gc.drawRectangle(clientArea.x, clientArea.y, clientArea.width - 1, clientArea.height - 1); } }); GridLayout gridLayout = new GridLayout(3, false); toolbar.setLayout(gridLayout); Label label = new Label(toolbar, SWT.FLAT | SWT.HORIZONTAL); label.setBackground(ColorConstants.white); label.setText(Messages._UI_LABEL_VIEW); label.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_CENTER)); modeCombo = new FlatCCombo(toolbar, SWT.FLAT); modeCombo.setEditable(false); modeCombo.setText(getEditModeName(manager.getCurrentMode(), productCustomizationProvider)); GC gc = new GC(modeCombo); int textWidth = 0; maxLength = 0; // populate combo with modes editorModeAndCustomizedNames = new EditorModeAndCustomizedName[modeListLength]; for (int i = 0; i < modeListLength; i++) { EditorModeAndCustomizedName entry = new EditorModeAndCustomizedName(); editorModeAndCustomizedNames[i] = entry; entry.name = getEditModeName(modeList[i], productCustomizationProvider); entry.mode = modeList[i]; } Arrays.sort(editorModeAndCustomizedNames, new Comparator() { public int compare(Object arg0, Object arg1) { EditorModeAndCustomizedName a = (EditorModeAndCustomizedName)arg0; EditorModeAndCustomizedName b = (EditorModeAndCustomizedName)arg1; return Collator.getInstance().compare(a.name, b.name); } }); for (int i = 0; i < editorModeAndCustomizedNames.length; i++ ) { EditorModeAndCustomizedName entry = editorModeAndCustomizedNames[i]; modeCombo.add(entry.name); maxLength = Math.max (gc.stringExtent(entry.name).x, maxLength); int approxWidthOfStrings = Math.max (gc.stringExtent(entry.name).x, textWidth); if (approxWidthOfStrings > maxLength) maxLength = approxWidthOfStrings; } maxLength += gc.stringExtent(Messages._UI_LABEL_VIEW).x; gc.dispose(); modeComboListener = new ModeComboListener(); modeCombo.addSelectionListener(modeComboListener); modeCombo.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_END)); modeCombo.setBackground(toolbar.getBackground()); ImageHyperlink hyperlink = new ImageHyperlink(toolbar, SWT.FLAT); hyperlink.setBackground(ColorConstants.white); // https://bugs.eclipse.org/bugs/show_bug.cgi?id=154457 Image image = XSDEditorPlugin.getDefault().getImage("icons/dtool/help_contents.gif"); hyperlink.setImage(image);// hyperlink.setImage(WorkbenchImages.getImageRegistry().get(IWorkbenchGraphicConstants.IMG_ETOOL_HELP_CONTENTS)); hyperlink.setToolTipText(Messages._UI_HOVER_VIEW_MODE_DESCRIPTION); hyperlink.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_CENTER)); hyperlink.setData(WorkbenchHelpSystem.HELP_KEY, IHelpContextIds.CLEANUP_XML_HELPID); hyperlink.addMouseListener(new MouseAdapter() { public void mouseDown(MouseEvent e) { // This may take a while, so use the busy indicator BusyIndicator.showWhile(null, new Runnable() { public void run() { PlatformUI.getWorkbench().getHelpSystem().displayDynamicHelp(); } }); } }); } }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/5fa302a0766b8e2515e8563b0af05436eeeaed9d/CommonMultiPageEditor.java/clean/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/editor/CommonMultiPageEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 2640, 1767, 2309, 17907, 12, 799, 1724, 881, 817, 15329, 6946, 2309, 49, 940, 1035, 1063, 28657, 6946, 2309, 1318, 13, 588, 4216, 12, 6946, 2309, 1318, 18, 1106, 1769, 4133, 3802, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 2640, 1767, 2309, 17907, 12, 799, 1724, 881, 817, 15329, 6946, 2309, 49, 940, 1035, 1063, 28657, 6946, 2309, 1318, 13, 588, 4216, 12, 6946, 2309, 1318, 18, 1106, 1769, 4133, 3802, ...
assertEquals(response, results.get(i).toString());
assertEquals(response, new String((byte[])results.get(i)));
protected void sendWithResponse(String endpoint, String message, String response, int noOfMessages) throws UMOException { MuleClient client = new MuleClient(); List results = new ArrayList(); for (int i = 0; i < noOfMessages; i++) { results.add(client.send(endpoint, message, null).getPayload()); } assertEquals(noOfMessages, results.size()); for (int i = 0; i < noOfMessages; i++) { assertEquals(response, results.get(i).toString()); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/589f59b15144184ea22999b384d5ea92ddec8bb9/TwoEndpointsSinglePortTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/http/TwoEndpointsSinglePortTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1366, 1190, 1064, 12, 780, 2494, 16, 514, 883, 16, 514, 766, 16, 509, 1158, 951, 5058, 13, 1216, 587, 5980, 503, 288, 3639, 490, 725, 1227, 1004, 273, 394, 490, 725, 1227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 1190, 1064, 12, 780, 2494, 16, 514, 883, 16, 514, 766, 16, 509, 1158, 951, 5058, 13, 1216, 587, 5980, 503, 288, 3639, 490, 725, 1227, 1004, 273, 394, 490, 725, 1227, ...
public PluginValidationOperation(IPluginModelBase[] models) { fState = new MinimalState(TargetPlatform.getTargetEnvironment()); fModels = models;
public PluginValidationOperation(ILaunchConfiguration configuration) { fState = new MinimalState(getTargetEnvironment()); initialize(configuration);
public PluginValidationOperation(IPluginModelBase[] models) { fState = new MinimalState(TargetPlatform.getTargetEnvironment()); fModels = models; }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/c98d65e6f536c44c14f9ef7160d9bc7d01b50ded/PluginValidationOperation.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/PluginValidationOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6258, 4354, 2988, 12, 45, 3773, 1488, 2171, 8526, 3679, 13, 288, 202, 202, 74, 1119, 273, 394, 5444, 2840, 1119, 12, 2326, 8201, 18, 588, 2326, 5494, 10663, 202, 202, 74, 8430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 6258, 4354, 2988, 12, 45, 3773, 1488, 2171, 8526, 3679, 13, 288, 202, 202, 74, 1119, 273, 394, 5444, 2840, 1119, 12, 2326, 8201, 18, 588, 2326, 5494, 10663, 202, 202, 74, 8430...
prefix = t.image.substring(0, i / 2 );
escPrefix = t.image.substring(0, i / 2 );
private String getRoot() { Token t = getFirstToken(); // System.out.println("First token for " + ((Object) this ) + " : " + t ); /* * we have a special case where something like * $(\\)*!, where the user want's to see something * like $!blargh in the output, but the ! prevents it from showing. * I think that at this point, this isn't a reference. */ /* so, see if we have "\\!" */ int slashbang = t.image.indexOf("\\!"); if ( slashbang != -1 ) { /* * lets do all the work here. I would argue that if this occurrs, it's * not a reference at all, so preceeding \ characters in front of the $ * are just schmoo. So we just do the escape processing trick (even | odd) * and move on. This kind of breaks the rule pattern of $ and # but '!' really * tosses a wrench into things. */ /* * count the escapes : even # -> not escaped, odd -> escaped */ int i = 0; int len = t.image.length(); i = t.image.indexOf("$"); if (i == -1) { /* yikes! */ rsvc.error("ASTReference.getRoot() : internal error : no $ found for slashbang."); computableReference = false; nullString = t.image; return nullString; } while( i < len && t.image.charAt(i) != '\\') i++; /* ok, i is the first \ char */ int start = i; int count = 0; while( i < len && t.image.charAt(i++) == '\\' ) count++; /* * now construct the output string. We really don't care about leading * slashes as this is not a reference. It's quasi-schmoo */ nullString = t.image.substring(0,start); // prefix up to the first nullString += t.image.substring(start, start + count-1 ); // get the slashes nullString += t.image.substring(start+count); // and the rest, including the /* * this isn't a valid reference, so lets short circuit the value and set calcs */ computableReference = false; return nullString; } /* * we need to see if this reference is escaped. if so * we will clean off the leading \'s and let the * regular behavior determine if we should output this * as \$foo or $foo later on in render(). Lazyness.. */ escaped = false; if ( t.image.startsWith("\\")) { /* * count the escapes : even # -> not escaped, odd -> escaped */ int i = 0; int len = t.image.length(); while( i < len && t.image.charAt(i) == '\\' ) i++; if ( (i % 2) != 0 ) escaped = true; // System.out.println("Escaped? : " + i + " : " + escaped + " : " + ( (Object) this) ); if (i > 0) prefix = t.image.substring(0, i / 2 ); t.image = t.image.substring(i); } /* * get the literal in case this reference isn't backed by the context at runtime */ nullString = literal(); if (t.image.startsWith("$!")) { referenceType = QUIET_REFERENCE; /* * only if we aren't escaped do we want to null the output */ if (!escaped) nullString = ""; if (t.image.startsWith("$!{")) { /* * ex : $!{provider.Title} */ return t.next.image; } else { /* * ex : $!provider.Title */ return t.image.substring(2); } } else if (t.image.equals("${")) { /* * ex : ${provider.Title} */ referenceType = FORMAL_REFERENCE; return t.next.image; } else { /* * the magic <MORE> can prepend '#' and '$' * on the front of a reference - so lets clean it * and save that info as the prefix */ String img = t.image; int loc = 0; for( loc = 0; loc < img.length(); loc++) { char c = img.charAt(loc); if ( c != '#' && c != '$') { break; } } /* * if we have extra stuff, loc > 0 * ex. '#$foo' so attach that to * the prefix. */ if( loc > 0) { prefix = prefix + img.substring(0, loc-1); } referenceType = NORMAL_REFERENCE; return img.substring(loc); } }
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/456e9f523ee98b14d81e8d53d0e83fa7622b1f48/ASTReference.java/buggy/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7656, 1435, 565, 288, 3639, 3155, 268, 273, 7521, 1345, 5621, 3639, 368, 3639, 2332, 18, 659, 18, 8222, 2932, 3759, 1147, 364, 315, 397, 14015, 921, 13, 333, 262, 397, 315, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7656, 1435, 565, 288, 3639, 3155, 268, 273, 7521, 1345, 5621, 3639, 368, 3639, 2332, 18, 659, 18, 8222, 2932, 3759, 1147, 364, 315, 397, 14015, 921, 13, 333, 262, 397, 315, 2...
return "NBLCS";
return "NBLCS";
public static String type2String(int t) { switch (t) { case N_UNDF : return "UNDF"; case N_GSYM : return "GSYM"; case N_FNAME : return "FNAME"; case N_FUN : return "FUN"; case N_STSYM : return "STSYM"; case N_LCSYM : return "LCSYM"; case N_MAIN : return "MAIN"; case N_ROSYM : return "ROSYM"; case N_PC : return "PC"; case N_NSYMS : return "SSYMS"; case N_NOMAP : return "NOMAP"; case N_OBJ : return "OBJ"; case N_OPT : return "OPT"; case N_RSYM : return "RSYM"; case N_M2C : return "M2C"; case N_SLINE : return "SLINE"; case N_DSLINE : return "DSLINE"; case N_BSLINE : return "BSLINE"; case N_DEFD : return "DEFD"; case N_FLINE : return "FLINE"; case N_EHDECL : return "EHDECL"; case N_CATCH : return "CATCH"; case N_SSYM : return "SSYM"; case N_ENDM : return "ENDM"; case N_SO : return "SO"; case N_LSYM : return "LSYM"; case N_BINCL : return "BINCL"; case N_SOL : return "SOL"; case N_PSYM : return "PSYM"; case N_EINCL : return "EINCL"; case N_ENTRY : return "ENTRY"; case N_LBRAC : return "LBRAC"; case N_EXCL : return "EXCL"; case N_SCOPE: return "SCOPE"; case N_RBRAC : return "RBRAC"; case N_BCOMM : return "COMM"; case N_ECOMM : return "ECOMM"; case N_ECOML : return "ECOML"; case N_WITH : return "WITH"; case N_NBTEXT : return "NBTEXT"; case N_NBDATA : return "NBDATA"; case N_NBBSS : return "NBBSS"; case N_NBSTS : return "NBSTS"; case N_NBLCS : return "NBLCS"; } return "" + t; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/95f42aeb9e7f38db093795981bd7c7300a3eeeb6/StabConstant.java/buggy/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/stabs/StabConstant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 618, 22, 780, 12, 474, 268, 13, 288, 202, 202, 9610, 261, 88, 13, 288, 9506, 202, 3593, 423, 67, 2124, 4577, 294, 6862, 202, 2463, 315, 2124, 4577, 14432, 9506, 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, 225, 202, 482, 760, 514, 618, 22, 780, 12, 474, 268, 13, 288, 202, 202, 9610, 261, 88, 13, 288, 9506, 202, 3593, 423, 67, 2124, 4577, 294, 6862, 202, 2463, 315, 2124, 4577, 14432, 9506, 20...
m_editable = false; m_wasEditable = false;
m_cms = null; m_controller = null; m_editable = false; m_directEditPermissions = null;
public void release() { super.release(); m_file = null; m_filter = null; m_createLink = null; m_filterContentList = null; m_param = null; m_editable = false; m_wasEditable = false; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/247b9f9f8ac6897a562e2ae06f80157d6d8a3ece/CmsJspTagContentLoad.java/clean/src/org/opencms/jsp/CmsJspTagContentLoad.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3992, 1435, 288, 7734, 2240, 18, 9340, 5621, 7734, 312, 67, 768, 273, 446, 31, 3639, 312, 67, 2188, 273, 446, 31, 3639, 312, 67, 2640, 2098, 273, 446, 31, 3639, 312, 67, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3992, 1435, 288, 7734, 2240, 18, 9340, 5621, 7734, 312, 67, 768, 273, 446, 31, 3639, 312, 67, 2188, 273, 446, 31, 3639, 312, 67, 2640, 2098, 273, 446, 31, 3639, 312, 67, 21...
public org.quickfix.field.UnderlyingPx getUnderlyingPx() throws FieldNotFound { org.quickfix.field.UnderlyingPx value = new org.quickfix.field.UnderlyingPx();
public quickfix.field.UnderlyingPx getUnderlyingPx() throws FieldNotFound { quickfix.field.UnderlyingPx value = new quickfix.field.UnderlyingPx();
public org.quickfix.field.UnderlyingPx getUnderlyingPx() throws FieldNotFound { org.quickfix.field.UnderlyingPx value = new org.quickfix.field.UnderlyingPx(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix44/MultilegOrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 21776, 10833, 765, 6291, 21776, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 21776, 460, 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, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 21776, 10833, 765, 6291, 21776, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 21776, 460, 273, ...
msgs = ((InternalEObject)label).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__LABEL, null, msgs);
msgs = ((InternalEObject) label).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__LABEL, null, msgs);
public void setLabel(Label newLabel) { if (newLabel != label) { NotificationChain msgs = null; if (label != null) msgs = ((InternalEObject)label).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__LABEL, null, msgs); if (newLabel != null) msgs = ((InternalEObject)newLabel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.MARKER_LINE__LABEL, null, msgs); msgs = basicSetLabel(newLabel, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.MARKER_LINE__LABEL, newLabel, newLabel)); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/MarkerLineImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/MarkerLineImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 16558, 12, 2224, 394, 2224, 13, 565, 288, 3639, 309, 261, 2704, 2224, 480, 1433, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 1925, 480, 446, 13, 7734, 873...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16558, 12, 2224, 394, 2224, 13, 565, 288, 3639, 309, 261, 2704, 2224, 480, 1433, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 1925, 480, 446, 13, 7734, 873...
TcpEventProxy proxy = new TcpEventProxy();
EventProxy proxy = Util.createEventProxy();
public void importProvisioningGroup(String groupName) { // first we update the import timestamp ModelImport group = getProvisioningGroup(groupName); group.setLastImport(new Date()); saveProvisioningGroup(groupName, group); // then we send an event to the importer TcpEventProxy proxy = new TcpEventProxy(); String url = m_provisioningDao.getUrlForGroup(groupName); Assert.notNull(url, "Could not find url for group "+groupName+". Does it exists?"); EventBuilder bldr = new EventBuilder(EventConstants.RELOAD_IMPORT_UEI, "Web"); bldr.addParam(EventConstants.PARM_URL, url); try { proxy.send(bldr.getEvent()); } catch (EventProxyException e) { throw new DataAccessResourceFailureException("Unable to send event to import group "+groupName, e); } }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/3aa836afb5ae166551d2bad463a796516ea79d7b/DefaultManualProvisioningService.java/buggy/opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultManualProvisioningService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1930, 17485, 1114, 12, 780, 11619, 13, 288, 3639, 368, 1122, 732, 1089, 326, 1930, 2858, 3639, 3164, 5010, 1041, 273, 3570, 2820, 310, 1114, 12, 1655, 461, 1769, 3639, 1041, 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, 377, 1071, 918, 1930, 17485, 1114, 12, 780, 11619, 13, 288, 3639, 368, 1122, 732, 1089, 326, 1930, 2858, 3639, 3164, 5010, 1041, 273, 3570, 2820, 310, 1114, 12, 1655, 461, 1769, 3639, 1041, 18...
try { if (conn != null) { conn.close(); } } catch (SQLException sqle) { }
closeJdbcResultSet(rs); closeJdbcStatement(stmt); closeJdbcConnection(conn);
protected void loadSettings() throws MessagingException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; try { //Load members conn = datasource.getConnection(); stmt = conn.prepareStatement(membersQuery); stmt.setString(1, listservID); rs = stmt.executeQuery(); Collection tmpMembers = new Vector(); while (rs.next()) { String address = rs.getString(1); try { MailAddress mailAddress = new MailAddress(address); tmpMembers.add(mailAddress); } catch (ParseException pe) { //don't stop... just log and continue log("error parsing address '" + address + "' in listserv '" + listservID + "'"); } } members = tmpMembers; rs.close(); stmt.close(); stmt = conn.prepareStatement(listservQuery); stmt.setString(1, listservID); rs = stmt.executeQuery(); if (!rs.next()) { throw new MailetException("Could not find listserv record for '" + listservID + "'"); } membersOnly = rs.getBoolean("members_only"); attachmentsAllowed = rs.getBoolean("attachments_allowed"); replyToList = rs.getBoolean("reply_to_list"); subjectPrefix = rs.getString("subject_prefix"); String address = rs.getString("list_address"); if (address == null) { listservAddress = null; } else { try { listservAddress = new MailAddress(address); } catch (ParseException pe) { //log and ignore log("invalid listserv address '" + listservAddress + "' for listserv '" + listservID + "'"); listservAddress = null; } } rs.close(); stmt.close(); } catch (SQLException sqle) { throw new MailetException("Problem loading settings", sqle); } finally { try { if (conn != null) { conn.close(); } } catch (SQLException sqle) { //ignore } } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/4d09342e0a1bdb6d97c3641c67b6f55b359b2cb7/JDBCListserv.java/buggy/src/java/org/apache/james/transport/mailets/JDBCListserv.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1262, 2628, 1435, 1216, 23794, 503, 288, 3639, 4050, 1487, 273, 446, 31, 3639, 16913, 3480, 273, 446, 31, 3639, 10842, 3597, 273, 446, 31, 3639, 775, 288, 5411, 368, 2563, 4833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 2628, 1435, 1216, 23794, 503, 288, 3639, 4050, 1487, 273, 446, 31, 3639, 16913, 3480, 273, 446, 31, 3639, 10842, 3597, 273, 446, 31, 3639, 775, 288, 5411, 368, 2563, 4833...
"cleartool update -force -log /dev/nul somefile", cbs.buildUpdateCommand().toString());
"cleartool update -force -log /dev/null somefile", cbs.buildUpdateCommand().toString());
public void testBuildUpdateCommand() { MockClearCaseBootstrapper cbs = new MockClearCaseBootstrapper("Linux"); cbs.setFile("somefile"); assertEquals("Update command was not created correctly.", "cleartool update -force -log /dev/nul somefile", cbs.buildUpdateCommand().toString()); cbs.setOsName("Windows NT"); assertEquals("Update command was not created correctly.", "cleartool update -force -log NUL somefile", cbs.buildUpdateCommand().toString()); cbs.setViewpath("someviewpath"); assertEquals("Update command was not created correctly.", "cleartool update -force -log NUL someviewpath/somefile", cbs.buildUpdateCommand().toString()); }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/e7b6046d5af7e4211a54f16b75421dcb2a7af4c2/ClearCaseBootstrapperTest.java/clean/main/test/net/sourceforge/cruisecontrol/bootstrappers/ClearCaseBootstrapperTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3116, 1891, 2189, 1435, 288, 3639, 7867, 9094, 2449, 10445, 457, 276, 2038, 273, 394, 7867, 9094, 2449, 10445, 457, 2932, 19475, 8863, 3639, 276, 2038, 18, 542, 812, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3116, 1891, 2189, 1435, 288, 3639, 7867, 9094, 2449, 10445, 457, 276, 2038, 273, 394, 7867, 9094, 2449, 10445, 457, 2932, 19475, 8863, 3639, 276, 2038, 18, 542, 812, 2932, ...
if (commonDescriptors == null)
if (commonDescriptors == null) {
public String[] getEnabledCommonWizardDescriptorIds(Object anElement, String aType) { Set commonDescriptors = (Set) commonWizardDescriptors.get(aType); if (commonDescriptors == null) return NO_DESCRIPTORS; /* Find other Common Wizard providers which enable for this object */ List descriptorIds = new ArrayList(); for (Iterator commonWizardDescriptorsItr = commonDescriptors.iterator(); commonWizardDescriptorsItr .hasNext();) { CommonWizardDescriptor descriptor = (CommonWizardDescriptor) commonWizardDescriptorsItr .next(); if (descriptor.getWizardId() != null && descriptor.isEnabledFor(anElement)) descriptorIds.add(descriptor.getWizardId()); } String[] wizardIds = new String[descriptorIds.size()]; return (String[]) descriptorIds.toArray(wizardIds); // Collections.unmodifiableList(descriptors); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CommonWizardDescriptorManager.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/wizards/CommonWizardDescriptorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 336, 1526, 6517, 27130, 3187, 2673, 12, 921, 392, 1046, 16, 1082, 202, 780, 279, 559, 13, 288, 202, 202, 694, 2975, 12705, 273, 261, 694, 13, 2975, 27130, 12705, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 336, 1526, 6517, 27130, 3187, 2673, 12, 921, 392, 1046, 16, 1082, 202, 780, 279, 559, 13, 288, 202, 202, 694, 2975, 12705, 273, 261, 694, 13, 2975, 27130, 12705, 18...
if (handler != null) handler.run(); }
if (handler != null) handler.run(); }
public void run() { if (handler != null) handler.run();}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f428849d449c77189175f136641ea354294165e0/RetargetAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/RetargetAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1086, 1435, 288, 202, 430, 261, 4176, 480, 446, 13, 202, 202, 4176, 18, 2681, 5621, 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, ...
[ 1, 1, 1, 1, 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, 1071, 918, 1086, 1435, 288, 202, 430, 261, 4176, 480, 446, 13, 202, 202, 4176, 18, 2681, 5621, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
result = eval("p $h.to_s"); assertEquals("\"foobar\"", result); result = eval("p $h.to_a"); assertEquals("[[\"foo\", \"bar\"]]", result); result = eval("p $h.to_hash"); assertEquals("{\"foo\"=>\"bar\"}", result);
result = eval("p $h.to_s"); assertEquals("\"foobar\"", result); result = eval("p $h.to_a"); assertEquals("[[\"foo\", \"bar\"]]", result); result = eval("p $h.to_hash"); assertEquals("{\"foo\"=>\"bar\"}", result);
public void testConversions() { result = eval("p $h.to_s"); assertEquals("\"foobar\"", result); result = eval("p $h.to_a"); assertEquals("[[\"foo\", \"bar\"]]", result); result = eval("p $h.to_hash"); assertEquals("{\"foo\"=>\"bar\"}", result); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/2f13ba47385b7584839c7f6f6f1abfee251cbe53/TestRubyHash.java/buggy/org/jruby/test/TestRubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29287, 1435, 288, 202, 2088, 273, 5302, 2932, 84, 271, 76, 18, 869, 67, 87, 8863, 202, 11231, 8867, 2932, 2412, 617, 947, 297, 2412, 3113, 563, 1769, 202, 2088, 273, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29287, 1435, 288, 202, 2088, 273, 5302, 2932, 84, 271, 76, 18, 869, 67, 87, 8863, 202, 11231, 8867, 2932, 2412, 617, 947, 297, 2412, 3113, 563, 1769, 202, 2088, 273, 53...
org.omg.CORBA.portable.Delegate replyHandlerDelegate =
org.omg.CORBA.portable.Delegate replyHandlerDelegate =
private void performExceptionCallback (ExceptionHolderImpl holder) { // TODO: Call interceptors. org.omg.CORBA.portable.Delegate replyHandlerDelegate = ( ( org.omg.CORBA.portable.ObjectImpl ) replyHandler ) ._get_delegate(); ServantObject so = replyHandlerDelegate.servant_preinvoke( replyHandler, operation, InvokeHandler.class ); try { org.omg.CORBA_2_3.ORB orb = ( org.omg.CORBA_2_3.ORB )replyHandlerDelegate .orb( null ); orb.register_value_factory ( "IDL:omg.org/Messaging/ExceptionHolder:1.0", new ExceptionHolderFactory() ); CDRInputStream input = new CDRInputStream( orb, holder.marshal() ); ((InvokeHandler)so.servant) ._invoke( operation + "_excep", input, new DummyResponseHandler() ); } catch ( Exception e ) { Debug.output( Debug.IMPORTANT, "Exception during callback: " + e ); } finally { replyHandlerDelegate.servant_postinvoke( replyHandler, so ); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/fbe6210fea044caf7d795ce3f33d04a8c1c51b4a/ReplyReceiver.java/clean/src/org/jacorb/orb/ReplyReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3073, 503, 2428, 261, 503, 6064, 2828, 10438, 13, 565, 288, 3639, 368, 2660, 30, 3049, 18496, 18, 3639, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 9586, 4332, 1503...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 503, 2428, 261, 503, 6064, 2828, 10438, 13, 565, 288, 3639, 368, 2660, 30, 3049, 18496, 18, 3639, 2358, 18, 362, 75, 18, 9428, 12536, 18, 655, 429, 18, 9586, 4332, 1503...
omSOAPEnvelope.addChild(body);
public SOAPBody addBody() throws SOAPException { org.apache.axis2.soap.SOAPBody body = omSOAPEnvelope.getBody(); if (body == null) { body = new SOAP11BodyImpl(omSOAPEnvelope); omSOAPEnvelope.addChild(body); return (new SOAPBodyImpl(body)); } else { throw new SOAPException("Body already present, can't set body again without " + "deleting the existing body."); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/dbc861d4577c67ee7e887bbf8e20a572a02ca3f8/SOAPEnvelopeImpl.java/clean/modules/saaj/src/org/apache/axis2/saaj/SOAPEnvelopeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16434, 2250, 13879, 1435, 1216, 16434, 503, 288, 3639, 2358, 18, 19211, 18, 4890, 22, 18, 19215, 18, 27952, 2250, 1417, 273, 8068, 27952, 10862, 18, 588, 2250, 5621, 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, 1071, 16434, 2250, 13879, 1435, 1216, 16434, 503, 288, 3639, 2358, 18, 19211, 18, 4890, 22, 18, 19215, 18, 27952, 2250, 1417, 273, 8068, 27952, 10862, 18, 588, 2250, 5621, 3639, 309, 261, ...
+ getClass().getResource( "izpack_install_shortcuts_unix.xml" ) );
+ getClass().getResource( UNIX_SHORTCUTS ) );
private void doIzPackFiles() throws MojoFailureException { // ------------------------------------------------------------------- // For windows we include use a different template file than for unix // if the project does not supply one. We also add the windows short- // cuts file template as well in the same fashion. Also a native dll // is deposited outside of the image folder to create windows shortcuts // ------------------------------------------------------------------- if ( target.getOsFamily().equals( "windows" ) ) { // handle the installer file if ( target.getIzPackInstallFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackInstallFile(), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack install file template " + target.getIzPackInstallFile() + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied installer configuration file: " + target.getIzPackInstallFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_windows_template.xml" ), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack windows install file " + getClass().getResource( "izpack_install_windows_template.xml" ) + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled installer configuration file: " + getClass().getResource( "izpack_install_windows_template.xml" ) ); } } // handle the windows shortcuts file if ( target.getIzPackShortcutsWindowsFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackShortcutsWindowsFile(), izPackWindowsShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack windows shortcuts file " + target.getIzPackShortcutsWindowsFile() + " into position " + izPackWindowsShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied windows shortcuts configuration file: " + target.getIzPackShortcutsWindowsFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_shortcuts_windows.xml" ), izPackWindowsShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack windows shortcuts file " + getClass().getResource( "izpack_install_shortcuts_windows.xml" ) + " into position " + izPackWindowsShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled windows shortcuts configuration file: " + getClass().getResource( "izpack_install_shortcuts_windows.xml" ) ); } } // copy the ShellLink creation dll into the images folder try { MojoHelperUtils.copyBinaryFile( getClass().getResourceAsStream( "ShellLink.dll" ), shellLinkDll ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy izpack shellLinkDll file " + getClass().getResource( "ShellLink.dll" ) + " into position " + shellLinkDll, e ); } } else if ( target.getOsFamily().equals( "unix" ) || target.getOsFamily().equals( "mac" ) ) { if ( target.getIzPackInstallFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackInstallFile(), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack input file " + target.getIzPackInstallFile() + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied installer configuration file: " + target.getIzPackInstallFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_unix_template.xml" ), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack input file for unix " + getClass().getResource( "izpack_install_unix_template.xml" ) + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled installer configuration file: " + getClass().getResource( "izpack_install_unix_template.xml" ) ); } } if ( target.getIzPackShortcutsUnixFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackShortcutsUnixFile(), izPackUnixShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack unix shortcuts file " + target.getIzPackShortcutsUnixFile() + " into position " + izPackUnixShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied unix shortcuts configuration file: " + target.getIzPackShortcutsUnixFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_shortcuts_unix.xml" ), izPackUnixShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack unix shortcuts file " + getClass().getResource( "izpack_install_shortcuts_unix.xml" ) + " into position " + izPackUnixShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled unix shortcuts configuration file: " + getClass().getResource( "izpack_install_shortcuts_unix.xml" ) ); } } try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "../template.init" ), layout.getInitScript(), true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy init script " + getClass().getResource( "../template.init" ) + " into position " + layout.getInitScript(), e ); } } if ( target.getIzPackUserInputFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackUserInputFile(), izPackUserInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack input file " + target.getIzPackUserInputFile() + " into position " + izPackUserInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied user input configuration file: " + target.getIzPackUserInputFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_user_input.xml" ), izPackUserInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack input file " + getClass().getResource( "izpack_install_user_input.xml" ) + " into position " + izPackUserInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled user input configuration file: " + target.getIzPackUserInputFile() ); } } }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/8bcee7a23047fc9a2784bdb6a8bda8bf02e4ba60/IzPackInstallerCommand.java/clean/standalone/installers/plugin/src/main/java/org/apache/directory/server/standalone/installers/izpack/IzPackInstallerCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 45, 94, 4420, 2697, 1435, 1216, 15931, 14389, 565, 288, 3639, 368, 8879, 413, 3639, 368, 2457, 9965, 732, 2341, 999, 279, 3775, 1542, 585, 2353, 364, 9753, 3639, 368, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 45, 94, 4420, 2697, 1435, 1216, 15931, 14389, 565, 288, 3639, 368, 8879, 413, 3639, 368, 2457, 9965, 732, 2341, 999, 279, 3775, 1542, 585, 2353, 364, 9753, 3639, 368, 309,...
public String getMethod() { return method; }
public String getMethod() { return method; }
public String getMethod() { return method; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/MockHttpServletRequest.java/buggy/wicket/src/java/wicket/protocol/http/MockHttpServletRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6272, 1435, 288, 3639, 327, 707, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6272, 1435, 288, 3639, 327, 707, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
(XmlSchemaElement) obj, schema);
(XmlSchemaElement) obj, schema);
Element serializeChoice(Document doc, XmlSchemaChoice choiceObj, XmlSchema schema) throws XmlSchemaSerializerException { //todo: handle any non schema attri ? Element choice = createNewElement(doc, "choice", schema.schema_ns_prefix, XmlSchema.SCHEMA_NS); if (choiceObj.id != null) if (choiceObj.id.length() > 0) choice.setAttribute("id", choiceObj.id); if (choiceObj.maxOccurs < Long.MAX_VALUE && choiceObj.maxOccurs > 1) choice.setAttribute("maxOccurs", choiceObj.maxOccurs + ""); else if (choiceObj.maxOccurs == Long.MAX_VALUE) choice.setAttribute("maxOccurs", "unbounded"); //else not serialized if (choiceObj.minOccurs > 1) choice.setAttribute("minOccurs", choiceObj.minOccurs + ""); /* if(choiceObj.maxOccursString != null) choice.setAttribute("maxOccurs", choiceObj.maxOccursString); else if(choiceObj.maxOccurs > 1) choice.setAttribute("maxOccurs", choiceObj.maxOccurs +""); */ if (choiceObj.annotation != null) { Element annotation = serializeAnnotation(doc, choiceObj.annotation, schema); choice.appendChild(annotation); } XmlSchemaObjectCollection itemColl = choiceObj.items; if (itemColl != null) { int itemLength = itemColl.getCount(); for (int i = 0; i < itemLength; i++) { XmlSchemaObject obj = itemColl.getItem(i); if (obj instanceof XmlSchemaElement) { Element el = serializeElement(doc, (XmlSchemaElement) obj, schema); choice.appendChild(el); } else if (obj instanceof XmlSchemaGroupRef) { Element group = serializeGroupRef(doc, (XmlSchemaGroupRef) obj, schema); choice.appendChild(group); } else if (obj instanceof XmlSchemaChoice) { Element inlineChoice = serializeChoice(doc, (XmlSchemaChoice) obj, schema); choice.appendChild(inlineChoice); } else if (obj instanceof XmlSchemaSequence) { Element inlineSequence = serializeSequence(doc, (XmlSchemaSequence) obj, schema); choice.appendChild(inlineSequence); } else if (obj instanceof XmlSchemaAny) { Element any = serializeAny(doc, (XmlSchemaAny) obj, schema); choice.appendChild(any); } } } return choice; }
58536 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58536/583d6c2db5f993d3085942269eca1b2ab8f3bc5f/XmlSchemaSerializer.java/buggy/src/org/apache/ws/commons/schema/XmlSchemaSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3010, 4472, 10538, 12, 2519, 997, 16, 5714, 3078, 10538, 6023, 2675, 16, 18701, 5714, 3078, 1963, 13, 1216, 5714, 3078, 6306, 503, 288, 3639, 368, 9012, 30, 1640, 1281, 1661, 1963, 1604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 4472, 10538, 12, 2519, 997, 16, 5714, 3078, 10538, 6023, 2675, 16, 18701, 5714, 3078, 1963, 13, 1216, 5714, 3078, 6306, 503, 288, 3639, 368, 9012, 30, 1640, 1281, 1661, 1963, 1604, ...
b.setToolTipText(aToolTip); if (aActionListener != null) { b.addActionListener(aActionListener);} aToolBar.add(b); }
b.setToolTipText(aToolTip); if (aActionListener != null) { b.addActionListener(aActionListener);} aToolBar.add(b); }
public void addToolbarButton(GrendelToolBar aToolBar, UIAction aActionListener, String aImageName, String aToolTip) { JButton b = new JButton(); b.setHorizontalTextPosition(JButton.CENTER); b.setVerticalTextPosition(JButton.BOTTOM); b.setToolTipText(aToolTip);// URL iconUrl = getClass().getResource("images/" + gifName + ".gif"); // b.setIcon(new ImageIcon(getClass().getResource(aImageName))); // FIXME - need the toolbar graphics for this sub-app // (Jeff) b.setIcon(new ImageIcon(getClass().getResource("markAllRead.gif")));// iconUrl = getClass().getResource("images/" + gifName + "-disabled.gif");// button.setDisabledIcon(ImageIcon.createImageIcon(iconUrl));// iconUrl = getClass().getResource("images/" + gifName + "-depressed.gif");// button.setPressedIcon(ImageIcon.createImageIcon(iconUrl));// iconUrl = getClass().getResource("images/" + gifName + "-rollover.gif");// button.setRolloverIcon(ImageIcon.createImageIcon(iconUrl));// JButton b = new JButton(new ImageIcon(aImageName)); b.setToolTipText(aToolTip);// b.setPad(new Insets(3,3,3,3)); if (aActionListener != null) { b.addActionListener(aActionListener);} aToolBar.add(b); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/buggy/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 17907, 3616, 12, 43, 1187, 3771, 6364, 5190, 279, 6364, 5190, 16, 6484, 1803, 279, 1803, 2223, 16, 514, 279, 2040, 461, 16, 514, 279, 29250, 13, 288, 3639, 28804, 324, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 17907, 3616, 12, 43, 1187, 3771, 6364, 5190, 279, 6364, 5190, 16, 6484, 1803, 279, 1803, 2223, 16, 514, 279, 2040, 461, 16, 514, 279, 29250, 13, 288, 3639, 28804, 324, 2...
classes = new RubyClasses(this); classes.initCoreClasses(); createFixnumCache();
public Ruby() { initOperatorTable(); originalMethods = new RubyOriginalMethods(this); globalMap = new RubyHashMap(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); classes = new RubyClasses(this); classes.initCoreClasses(); createFixnumCache(); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/cf644c556d410c47305ebeba5728efa25f7756dc/Ruby.java/buggy/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1435, 288, 3639, 1208, 5592, 1388, 5621, 7734, 2282, 4712, 273, 394, 19817, 8176, 4712, 12, 2211, 1769, 7734, 2552, 863, 273, 394, 19817, 8658, 5621, 7734, 515, 921, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 1435, 288, 3639, 1208, 5592, 1388, 5621, 7734, 2282, 4712, 273, 394, 19817, 8176, 4712, 12, 2211, 1769, 7734, 2552, 863, 273, 394, 19817, 8658, 5621, 7734, 515, 921, 273, 394, ...
startX = lensModel.getImageScaledWidth()-lensModel.getScaledWidth();
startX = lensModel.getImageScaledWidth()- lensModel.getScaledWidth();
void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } break; case LensUI.SOUTH: if (y-offsetY > 0) { deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } break; case LensUI.EAST: if (x-offsetX > 0) { deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } break; case LensUI.WEST: if (x-offsetX > 0) { deltaX = (x-offsetX); deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } else { deltaX = -Math.abs(x-offsetX); deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } break; case LensUI.NORTH_EAST: if(y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if(x-offsetX > 0) { deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } break; case LensUI.NORTH_WEST: if(y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if(x-offsetX > 0) { deltaX = (x-offsetX); deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } else { deltaX = -Math.abs(x-offsetX); deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } case LensUI.SOUTH_EAST: if(y-offsetY > 0) { deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } if(x-offsetX > 0) { deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } break; case LensUI.SOUTH_WEST: if(y-offsetY > 0) { deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } if(x-offsetX > 0) { deltaX = (x-offsetX); deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } else { deltaX = -Math.abs(x-offsetX); deltaW = Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startX = startX+(x-offsetX); } break; } setLensBounds(deltaX, deltaY, deltaW, deltaH, isShiftDown); } if(lensDrag) { boolean moveX = true; boolean moveY = true; if(startX+(x-offsetX) < 0 ) { moveX = false; startX = 0; } if((startX+(x-offsetX))/lensModel.getImageZoomFactor()+lensModel.getWidth() > lensModel.getImageWidth()) { moveX = false; startX = lensModel.getImageScaledWidth()-lensModel.getScaledWidth(); } if(startY+(y-offsetY) < 0 ) { moveY = false; startY = 0; } if(startY+(y-offsetY)+lens.getHeight() > lensModel.getImageScaledHeight()) { moveY = false; startY = lensModel.getImageScaledHeight()-lensModel.getScaledHeight(); } if(moveX) startX = startX+(x-offsetX); if(moveY) startY = startY+(y-offsetY); setLensLocation((int)(startX/lensModel.getImageZoomFactor()), (int)(startY/lensModel.getImageZoomFactor())); } }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 26882, 9186, 11728, 12, 474, 619, 16, 509, 677, 16, 1250, 353, 10544, 4164, 13, 202, 95, 202, 202, 430, 261, 8815, 11728, 13, 202, 202, 95, 1082, 202, 474, 31329, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 26882, 9186, 11728, 12, 474, 619, 16, 509, 677, 16, 1250, 353, 10544, 4164, 13, 202, 95, 202, 202, 430, 261, 8815, 11728, 13, 202, 202, 95, 1082, 202, 474, 31329, 273, 374, ...
if ((p=project.getProperty("ant.netrexxc.explicit"))!=null) { this.explicit=Project.toBoolean(p);
if ((p = project.getProperty("ant.netrexxc.explicit")) != null) { this.explicit = Project.toBoolean(p);
public void init() { String p; if ((p=project.getProperty("ant.netrexxc.binary"))!=null) { this.binary=Project.toBoolean(p); } // classpath makes no sense if ((p=project.getProperty("ant.netrexxc.comments"))!=null) { this.comments=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.compact"))!=null) { this.compact=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.compile"))!=null) { this.compile=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.console"))!=null) { this.console=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.crossref"))!=null) { this.crossref=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.decimal"))!=null) { this.decimal=Project.toBoolean(p); // destDir } if ((p=project.getProperty("ant.netrexxc.diag"))!=null) { this.diag=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.explicit"))!=null) { this.explicit=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.format"))!=null) { this.format=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.java"))!=null) { this.java=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.keep"))!=null) { this.keep=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.logo"))!=null) { this.logo=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.replace"))!=null) { this.replace=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.savelog"))!=null) { this.savelog=Project.toBoolean(p); // srcDir } if ((p=project.getProperty("ant.netrexxc.sourcedir"))!=null) { this.sourcedir=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictargs"))!=null) { this.strictargs=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictassign"))!=null) { this.strictassign=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictcase"))!=null) { this.strictcase=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictimport"))!=null) { this.strictimport=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictprops"))!=null) { this.strictprops=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.strictsignal"))!=null) { this.strictsignal=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.symbols"))!=null) { this.symbols=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.time"))!=null) { this.time=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.trace"))!=null) { setTrace(p); } if ((p=project.getProperty("ant.netrexxc.utf8"))!=null) { this.utf8=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.verbose"))!=null) { setVerbose(p); } if ((p=project.getProperty("ant.netrexxc.suppressMethodArgumentNotUsed"))!=null) { this.suppressMethodArgumentNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressPrivatePropertyNotUsed"))!=null) { this.suppressPrivatePropertyNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressVariableNotUsed"))!=null) { this.suppressVariableNotUsed=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressExceptionNotSignalled"))!=null) { this.suppressExceptionNotSignalled=Project.toBoolean(p); } if ((p=project.getProperty("ant.netrexxc.suppressDeprecation"))!=null) { this.suppressDeprecation=Project.toBoolean(p); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/NetRexxC.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 1435, 288, 3639, 514, 293, 31, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 8578, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 1435, 288, 3639, 514, 293, 31, 3639, 309, 14015, 84, 33, 4406, 18, 588, 1396, 2932, 970, 18, 2758, 266, 5279, 71, 18, 8578, 6, 3719, 5, 33, 2011, 13, 288, 5411, 333, ...
public double getMinimumTrailer(SequenceRenderContext src) { return 0.0;
public double getMinimumTrailer(SequenceRenderContext context) { return 0.0;
public double getMinimumTrailer(SequenceRenderContext src) { return 0.0; }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/aefa575eae1a93e3c4aadd790a7f888adf75b07d/SymbolSequenceRenderer.java/buggy/src/org/biojava/bio/gui/sequence/SymbolSequenceRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1645, 30665, 1609, 2895, 12, 4021, 3420, 1042, 1705, 13, 288, 1377, 327, 374, 18, 20, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 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, 1645, 30665, 1609, 2895, 12, 4021, 3420, 1042, 1705, 13, 288, 1377, 327, 374, 18, 20, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public AttributeDescr auto_focus() throws RecognitionException { AttributeDescr d = null; Token loc=null; Token t=null; d = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) ) int alt20=2; int LA20_0 = input.LA(1); if ( (LA20_0==44) ) { int LA20_1 = input.LA(2); if ( (LA20_1==BOOL) ) { alt20=2; } else if ( (LA20_1==RHS||LA20_1==27||LA20_1==34||LA20_1==39||(LA20_1>=42 && LA20_1<=47)) ) { alt20=1; } else { NoViableAltException nvae = new NoViableAltException("558:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 1, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("558:1: auto_focus returns [AttributeDescr d] : ( (loc= 'auto-focus' opt_semicolon ) | (loc= 'auto-focus' t= BOOL opt_semicolon ) );", 20, 0, input); throw nvae; } switch (alt20) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:563:3: (loc= 'auto-focus' opt_semicolon ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:564:4: loc= 'auto-focus' opt_semicolon { loc=(Token)input.LT(1); match(input,44,FOLLOW_44_in_auto_focus1002); pushFollow(FOLLOW_opt_semicolon_in_auto_focus1004); opt_semicolon(); _fsp--; d = new AttributeDescr( "auto-focus", "true" ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:571:3: (loc= 'auto-focus' t= BOOL opt_semicolon ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:572:4: loc= 'auto-focus' t= BOOL opt_semicolon { loc=(Token)input.LT(1); match(input,44,FOLLOW_44_in_auto_focus1029); t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_auto_focus1033); pushFollow(FOLLOW_opt_semicolon_in_auto_focus1035); opt_semicolon(); _fsp--; d = new AttributeDescr( "auto-focus", t.getText() ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 3656, 67, 13923, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 273, 446, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 268, 33, 2011, 31, 1171, 202, 202, 72, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 3656, 67, 13923, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 273, 446, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 268, 33, 2011, 31, 1171, 202, 202, 72, 273, ...
cp = normalLibs + ":" + systemLibs;
cp = normalLibs + File.pathSeparator + systemLibs;
public static void main(String argv[], Class applicationClass) { _wasERXApplicationMainInvoked = true; String cp = System.getProperty("java.class.path"); String parts[] = cp.split(":"); String normalLibs = ""; String systemLibs = ""; allFrameworks = new HashSet(); for (int i = 0; i < parts.length; i++) { String jar = parts[i]; // all patched frameworks here if(jar.matches(".*?Library[/\\\\]Frameworks[/\\\\]Java(Foundation|EOControl|EOAccess|WebObjects).*")) { systemLibs += jar + ":"; } else { normalLibs += jar + ":"; } String bundle = jar.replaceAll(".*?[/\\\\](\\w+)\\.framework.*", "$1"); if (bundle.matches("^\\w+$") && !"JavaVM".equals(bundle)) { allFrameworks.add(bundle); } } if (systemLibs.length() > 1) { systemLibs = systemLibs.substring(0, systemLibs.length() - 1); } if (normalLibs.length() > 1) { normalLibs = normalLibs.substring(0, normalLibs.length() - 1); } cp = normalLibs + ":" + systemLibs; // AK: this is pretty experimental for now. The classpath reordering // should actually be done in a WOLips bootstrap because as this time all // the static inits of WO app have already happened (which include NSMutableArray and _NSThreadSaveSet) if (true) { System.setProperty("java.class.path", cp); ClassLoader loader = AppClassLoader.getAppClassLoader(); Thread.currentThread().setContextClassLoader(loader); } Class arrayClass = NSMutableArray.class; try { Field f = arrayClass.getField("ERX_MARKER"); } catch (NoSuchFieldException e) { System.err.println("No ERX_MARKER field in NSMutableArray found. \nThis means your class path is incorrect. Adjust it so that ERExtensions come before JavaFoundation."); System.exit(1); } catch (Exception e) { e.printStackTrace(); } NSNotificationCenter.defaultCenter().addObserver(ERXApplication.class, new NSSelector("bundleDidLoad", new Class[] { NSNotification.class }), "NSBundleDidLoadNotification", null); ERXConfigurationManager.defaultManager().setCommandLineArguments(argv); ERXFrameworkPrincipal.setUpFrameworkPrincipalClass(ERXExtensions.class); WOApplication.main(argv, applicationClass); }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/43bafa9af636329a0b9a7c722052930979220b55/ERXApplication.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5261, 63, 6487, 1659, 2521, 797, 13, 288, 377, 202, 67, 17416, 654, 60, 3208, 6376, 26215, 273, 638, 31, 377, 202, 780, 3283, 273, 2332, 18, 588, 1396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2774, 12, 780, 5261, 63, 6487, 1659, 2521, 797, 13, 288, 377, 202, 67, 17416, 654, 60, 3208, 6376, 26215, 273, 638, 31, 377, 202, 780, 3283, 273, 2332, 18, 588, 1396, ...
case Code.AIE: { String arrayReference = tokenizer.nextToken(); long cellNumber = Long.parseLong(tokenizer.nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); long literal = Long.parseLong(tokenizer.nextToken()); Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeAIE(arrayReference, cellNumber, expressionReference, value, type, literal, highlight); break; } case Code.AI: {
case Code.AI: {
public void interpret(String line) { beforeInterpretation(line); if (!line.equals("" + Code.END)) { StringTokenizer tokenizer = new StringTokenizer(line, Code.DELIM); if (tokenizer.hasMoreTokens()) { int token = Integer.parseInt(tokenizer.nextToken()); /* * Test whether or not the evaluation area should be cleaned. */ cleanEvaluationArea(token); //checkInstancesForRemoval(); switch (token) { //Gives a reference to the left hand side of the expression case Code.LEFT: { long token1 = Long.parseLong(tokenizer.nextToken()); handleCodeLEFT(token1); break; } //Gives a reference to the right hand side of the expression case Code.RIGHT: { long token1 = Long.parseLong(tokenizer.nextToken()); handleCodeRIGHT(token1); break; } //Begins an expression case Code.BEGIN: { //first token long expressionType = Long.parseLong(tokenizer.nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String location = tokenizer.nextToken(); handleCodeBEGIN(expressionType, expressionReference, location); break; } //Indicates where the value is assigned case Code.TO: { long expressionReference = Long.parseLong(tokenizer .nextToken()); handleCodeTO(expressionReference); break; } //Assignment case Code.A: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long fromExpression = Long.parseLong(tokenizer.nextToken()); long toExpression = Long.parseLong(tokenizer.nextToken()); String value = ""; if (tokenizer.countTokens() > 2) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeA(expressionCounter, fromExpression, toExpression, value, type, h); break; } /* * Unary Expressions */ // Complement case Code.COMP: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long unaryExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeCOMP(expressionCounter, unaryExpressionReference, value, type, h); break; } // Plus operator case Code.PLUS: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long unaryExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodePLUS(expressionCounter, unaryExpressionReference, value, type, h); break; } // Minus operator case Code.MINUS: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long unaryExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeMINUS(expressionCounter, unaryExpressionReference, value, type, h); break; } // Boolean Not case Code.NO: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long unaryExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeNO(expressionCounter, unaryExpressionReference, value, type, h); break; } // Unary Expression // PostIncrement case Code.PIE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodePIE(expressionCounter, expressionReference, value, type, h); break; } // PostDecrement case Code.PDE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodePDE(expressionCounter, expressionReference, value, type, h); break; } // Unary Expression // PreIncrement case Code.PRIE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodePRIE(expressionCounter, expressionReference, value, type, h); break; } // PreDecrement case Code.PRDE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodePRDE(expressionCounter, expressionReference, value, type, h); break; } /* * Binary Expressions */ // Bitwise Or case Code.BITOR: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeBITOR(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Bitwise Xor case Code.BITXOR: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeBITXOR(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Bitwise And case Code.BITAND: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeBITAND(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Bitwise Left Shift case Code.LSHIFT: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeLSHIFT(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Bitwise Right Shift case Code.RSHIFT: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeRSHIFT(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Unsigned Right Shift case Code.URSHIFT: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeURSHIFT(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Xor Expression case Code.XOR: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeXOR(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // And Expression case Code.AND: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeAND(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Or Expression case Code.OR: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeOR(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Equal Expression case Code.EE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeEE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Not Equal Expression case Code.NE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeNE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } case Code.CAST: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeCAST(expressionCounter, expressionReference, value, type, h); break; } // Less Expression case Code.LE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeLE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Less or Equal Expression case Code.LQE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeLQE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Greater Than case Code.GT: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeGT(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Greater or Equal Expression case Code.GQT: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeGQT(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Multiplication Expression case Code.ME: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeME(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Remainder (mod) Expression case Code.RE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeRE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Division Expression case Code.DE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeDE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Substract Expression case Code.SE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeSE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } // Add Expression case Code.AE: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long leftExpressionReference = Long.parseLong(tokenizer .nextToken()); long rightExpressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeAE(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h); break; } //Variable Declaration case Code.VD: { String variableName = tokenizer.nextToken(); long initializerExpression = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 4) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); String modifier = tokenizer.nextToken(); //Make the location information for the location token Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeVD(variableName, initializerExpression, value, type, modifier, highlight); break; } //Qualified Name (variable) case Code.QN: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); String variableName = tokenizer.nextToken(); String value = null; if (tokenizer.countTokens() >= 2) { value = tokenizer.nextToken(); } else { value = ""; } String type = tokenizer.nextToken(); Highlight highlight = null; if (tokenizer.hasMoreElements()) { highlight = MCodeUtilities.makeHighlight(tokenizer .nextToken()); } handleCodeQN(expressionCounter, variableName, value, type, highlight); break; } //Static field access case Code.SFA: { //Second token is the expression counter long expressionCounter = Long.parseLong(tokenizer .nextToken()); String declaringClass = tokenizer.nextToken(); String variableName = tokenizer.nextToken(); String value = null; // fixed by rku: 3 to 4, because added modifier to mcode if (tokenizer.countTokens() >= 4) { //Third token is the value of the literal value = tokenizer.nextToken(); } else { /* * There is no third token because the * literal is an empty string. */ value = ""; } //Fourth token is the type of the literal String type = tokenizer.nextToken(); // fixed by rku, added modifiers int modifiers = Integer.parseInt(tokenizer.nextToken()); //Fifth token is the highlight information. //Not normally used because the whole expression is highlighted. Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeSFA(expressionCounter, declaringClass, variableName, value, type, modifiers, highlight); break; } //Literal case Code.L: { //Second token is the expression counter long expressionCounter = Long.parseLong(tokenizer .nextToken()); String value = null; if (tokenizer.countTokens() >= 3) { //Third token is the value of the literal value = tokenizer.nextToken(); } else { /* * There is no third token because the * literal is an empty string. */ value = ""; } //Fourth token is the type of the literal String type = tokenizer.nextToken(); //Fifth token is the highlight information. //Not normally used because the whole expression is highlighted. Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeL(expressionCounter, value, type, highlight); break; } //Simple Allocation (Object Allocation) case Code.SA: { //simpleAllocationCounter long expressionCounter = Long.parseLong(tokenizer .nextToken()); String declaringClass = tokenizer.nextToken(); String constructorName = tokenizer.nextToken(); int parameterCount = Integer .parseInt(tokenizer.nextToken()); Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeSA(expressionCounter, declaringClass, constructorName, parameterCount, highlight); break; } case Code.CONSCN: { //Normally nothing needs to be done for this! handleCodeCONSCN(Long.parseLong(tokenizer.nextToken())); break; } // Simple class allocation close case Code.SAC: { //simpleAllocationCounter long expressionCounter = Long.parseLong(tokenizer .nextToken()); String hashCode = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeSAC(expressionCounter, hashCode, h); break; } // Object field access case Code.OFA: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long objectCounter = Long.parseLong(tokenizer.nextToken()); String variableName = tokenizer.nextToken(); String value = ""; // fixed rku: used because we added modifiers in Mcode // was 3 if (tokenizer.countTokens() >= 4) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); int modifiers = Integer.parseInt(tokenizer.nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeOFA(expressionCounter, objectCounter, variableName, value, type, modifiers, h); break; } // Object method call case Code.OMC: { String methodName = tokenizer.nextToken(); int parameterCount = Integer .parseInt(tokenizer.nextToken()); long objectCounter = Long.parseLong(tokenizer.nextToken()); String objectValue = ""; if (tokenizer.countTokens() > 1) { objectValue = tokenizer.nextToken(); } Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeOMC(methodName, parameterCount, objectCounter, objectValue, highlight); break; } // Object method call close case Code.OMCC: { handleCodeOMCC(); break; } //Static Method Call case Code.SMC: { String methodName = tokenizer.nextToken(); String className = tokenizer.nextToken(); int parameterCount = Integer .parseInt(tokenizer.nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeSMC(methodName, className, parameterCount, h); break; } //Parameter case Code.P: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String argType = tokenizer.nextToken(); handleCodeP(expressionReference, value, argType); break; } //Method declaration case Code.MD: { Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeMD(h); break; } //Parameters list case Code.PARAMETERS: { String parameters = ""; if (tokenizer.hasMoreTokens()) { parameters = tokenizer.nextToken(); } handleCodePARAMETERS(parameters); break; } // Return Statement case Code.R: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeR(expressionCounter, expressionReference, value, type, h); break; } // Static method call closed case Code.SMCC: { handleCodeSMCC(); break; } //If Then Statement case Code.IFT: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); Highlight h = null; if (tokenizer.hasMoreElements()) { h = MCodeUtilities.makeHighlight(tokenizer.nextToken()); } handleCodeIFT(expressionReference, value, h); break; } //IF Then Else Statement case Code.IFTE: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeIFTE(expressionReference, value, h); break; } //While Statement case Code.WHI: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); int round = Integer.parseInt(tokenizer.nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeWHI(expressionReference, value, round, h); break; } //For Statement case Code.FOR: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); long round = Long.parseLong(tokenizer.nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeFOR(expressionReference, value, round, h); break; } //Do-While Statement case Code.DO: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); long round = Long.parseLong(tokenizer.nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeDO(expressionReference, value, round, h); break; } case Code.SWITCHB: { Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeSWITCHB(h); break; } case Code.SWIBF: { long selectorReference = Long.parseLong(tokenizer .nextToken()); long switchBlockReference = Long.parseLong(tokenizer .nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeSWIBF(selectorReference, switchBlockReference, h); break; } case Code.SWITCH: { Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeSWITCH(h); break; } //Break Statement case Code.BR: { int statementName = Integer.parseInt(tokenizer.nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeBR(statementName, h); break; } //Continue Statement case Code.CONT: { int statementName = Integer.parseInt(tokenizer.nextToken()); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeCONT(statementName, h); break; } //Outputting an expression case Code.OUTPUT: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String className = tokenizer.nextToken(); String methodName = tokenizer.nextToken(); String value = ""; if (tokenizer.countTokens() >= 4) { value = tokenizer.nextToken(); } String type = ""; if (tokenizer.countTokens() >= 3) { type = tokenizer.nextToken(); } boolean breakLine = tokenizer.nextToken().equals("1") ? true : false; Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeOUTPUT(expressionReference, className, methodName, value, type, breakLine, highlight); break; } //Input needs to be read case Code.INPUT: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); String className = tokenizer.nextToken(); String methodName = tokenizer.nextToken(); String type = tokenizer.nextToken(); String prompt = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeINPUT(expressionCounter, className, methodName, type, ((prompt.equals("null")) ? null : prompt), h); break; } //Inputted value is returned case Code.INPUTTED: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeINPUTTED(expressionCounter, value, type, h); break; } //Opening and closing scopes case Code.SCOPE: { int scope = Integer.parseInt(tokenizer.nextToken()); handleCodeSCOPE(scope); break; } //Array Allocation case Code.AA: { long expressionReference = Long.parseLong(tokenizer .nextToken()); String hashCode = tokenizer.nextToken(); String compType = tokenizer.nextToken(); int dims = Integer.parseInt(tokenizer.nextToken()); //References of the dimension values String dimensionReferences = tokenizer.nextToken(); //int values of the dimension sizes String dimensionSizes = tokenizer.nextToken(); //number of real dimensions the array has, even if they are not yet allocated int actualDimension = Integer.parseInt(tokenizer .nextToken()); Highlight h = null; if (tokenizer.hasMoreElements()) { h = MCodeUtilities.makeHighlight(tokenizer.nextToken()); } handleCodeAA(expressionReference, hashCode, compType, dims, dimensionReferences, dimensionSizes, actualDimension, h); break; } //Array Access case Code.AAC: { long expressionCounter = Long.parseLong(tokenizer .nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); int dims = Integer.parseInt(tokenizer.nextToken()); String cellNumberReferences = tokenizer.nextToken(); //int values of the dimension sizes String cellNumbers = tokenizer.nextToken(); String value = ""; if (tokenizer.countTokens() >= 3) { value = tokenizer.nextToken(); } String type = tokenizer.nextToken(); Highlight h = null; if (tokenizer.hasMoreElements()) { h = MCodeUtilities.makeHighlight(tokenizer.nextToken()); } handleCodeAAC(expressionCounter, expressionReference, dims, cellNumberReferences, cellNumbers, value, type, h); break; } //Array Length case Code.AL: { //Second token is the expression counter long expressionCounter = Long.parseLong(tokenizer .nextToken()); long arrayCounter = Long.parseLong(tokenizer.nextToken()); String name = tokenizer.nextToken(); String value = ""; if (tokenizer.countTokens() >= 3) { //Third token is the value of the literal value = tokenizer.nextToken(); } //Fourth token is the type of the literal String type = tokenizer.nextToken(); //Fifth token is the highlight information. //Not used because the whole expression is // highlighted. Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeAL(expressionCounter, arrayCounter, name, value, type, highlight); break; } //Beginning of the Array Initializer case Code.AIBEGIN: { long cells = Long.parseLong(tokenizer.nextToken()); Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeAIBEGIN(cells, highlight); break; } //Array Initializer's element case Code.AIE: { String arrayReference = tokenizer.nextToken(); long cellNumber = Long.parseLong(tokenizer.nextToken()); long expressionReference = Long.parseLong(tokenizer .nextToken()); String value = tokenizer.nextToken(); String type = tokenizer.nextToken(); long literal = Long.parseLong(tokenizer.nextToken()); Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeAIE(arrayReference, cellNumber, expressionReference, value, type, literal, highlight); break; } case Code.AI: { Highlight highlight = MCodeUtilities .makeHighlight(tokenizer.nextToken()); handleCodeAI(highlight); break; } //Class information starts for a class case Code.CLASS: { String name = tokenizer.nextToken(); String extendedClass = ""; if (tokenizer.hasMoreTokens()) { extendedClass = tokenizer.nextToken(); } handleCodeCLASS(name, extendedClass); break; } //Class information ends for a class case Code.END_CLASS: { handleCodeEND_CLASS(); break; } //Class information for constructor case Code.CONSTRUCTOR: { String listOfParameters = ""; if (tokenizer.hasMoreTokens()) { listOfParameters = tokenizer.nextToken(); } handleCodeCONSTRUCTOR(listOfParameters); break; } //Class information for method case Code.METHOD: { String name = tokenizer.nextToken(); String returnType = tokenizer.nextToken(); int modifiers = -1; if (tokenizer.hasMoreTokens()) { modifiers = Integer.parseInt(tokenizer.nextToken()); } String listOfParameters = ""; if (tokenizer.hasMoreTokens()) { listOfParameters = tokenizer.nextToken(); } handleCodeMETHOD(name, returnType, modifiers, listOfParameters); break; } //Class information for field case Code.FIELD: { String name = tokenizer.nextToken(); String type = tokenizer.nextToken(); int modifiers = Integer.parseInt(tokenizer.nextToken()); String value = ""; if (tokenizer.countTokens() > 1) { value = tokenizer.nextToken(); } String h = tokenizer.nextToken(); handleCodeFIELD(name, type, modifiers, value, h); break; } //Error has occured during the execution case Code.ERROR: { String message = tokenizer.nextToken(); Highlight h = MCodeUtilities.makeHighlight(tokenizer .nextToken()); handleCodeERROR(message, h); break; } //There is an error if the execution comes here. default: { //director.showErrorMessage(new InterpreterError(bundle // .getString("notImplemented.exception"), null)); /* * " <H1> Runtime Error </H1><P> The feature is not * yet implemented or " + */ break; } } } } else { running = false; endRunning(); } }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/4c2c9392293b46eb23689613bc6bc09185a3e18b/MCodeInterpreter.java/buggy/src/jeliot/mcode/MCodeInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10634, 12, 780, 980, 13, 288, 3639, 1865, 2465, 15089, 367, 12, 1369, 1769, 3639, 309, 16051, 1369, 18, 14963, 2932, 6, 397, 3356, 18, 4415, 3719, 288, 5411, 16370, 10123, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10634, 12, 780, 980, 13, 288, 3639, 1865, 2465, 15089, 367, 12, 1369, 1769, 3639, 309, 16051, 1369, 18, 14963, 2932, 6, 397, 3356, 18, 4415, 3719, 288, 5411, 16370, 10123, 273,...
setVisible(false);
try {Thread.sleep(500);}catch(java.lang.InterruptedException ie) {} this.dispose();
private void doActionConnect () { int selectedRow = rowSM.getMinSelectionIndex(); connectKey = (String)ctm.getValueAt(selectedRow,0); saveProps(); setVisible(false); }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/93e6a881b5eb94adc18e4cf3d7aba4aeabc5b4c0/Connect.java/clean/src/org/tn5250j/Connect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 741, 1803, 5215, 1832, 288, 1377, 509, 3170, 1999, 273, 1027, 7303, 18, 588, 2930, 6233, 1016, 5621, 1377, 3077, 653, 273, 261, 780, 13, 299, 81, 18, 24805, 861, 12, 8109, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 741, 1803, 5215, 1832, 288, 1377, 509, 3170, 1999, 273, 1027, 7303, 18, 588, 2930, 6233, 1016, 5621, 1377, 3077, 653, 273, 261, 780, 13, 299, 81, 18, 24805, 861, 12, 8109, 19...
Driver.debug("supportsCoreSQLGrammar FALSE ");
if (Driver.logDebug) Driver.debug("supportsCoreSQLGrammar FALSE ");
public boolean supportsCoreSQLGrammar() throws SQLException { Driver.debug("supportsCoreSQLGrammar FALSE "); return false; }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 4670, 3997, 18576, 1435, 1216, 6483, 202, 95, 202, 202, 4668, 18, 4148, 2932, 28064, 4670, 3997, 18576, 4934, 315, 1769, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 6146, 4670, 3997, 18576, 1435, 1216, 6483, 202, 95, 202, 202, 4668, 18, 4148, 2932, 28064, 4670, 3997, 18576, 4934, 315, 1769, 202, 202, 2463, 629, 31, 202, 97, 2, -100, ...
logger.error("AGIException while handling request", e);
logger.error("AgiException while handling request", e);
public void run() { try { AgiReader reader; AgiWriter writer; AgiRequest request; AgiChannel channel; AgiScript script; Thread thread; String threadName; reader = createReader(); writer = createWriter(); request = reader.readRequest(); channel = new AgiChannelImpl(writer, reader); script = mappingStrategy.determineScript(request); thread = Thread.currentThread(); threadName = thread.getName(); AgiConnectionHandler.channel.set(channel); if (script != null) { logger.info("Begin AGIScript " + script.getClass().getName() + " on " + threadName); script.service(request, channel); logger.info("End AGIScript " + script.getClass().getName() + " on " + threadName); } else { String error; error = "No script configured for URL '" + request.getRequestURL() + "' (script '" + request.getScript() + "')"; channel.sendCommand(new VerboseCommand(error, 1)); logger.error(error); } } catch (AgiException e) { logger.error("AGIException while handling request", e); } catch (Exception e) { logger.error("Unexpected Exception while handling request", e); } finally { AgiConnectionHandler.channel.set(null); try { socket.close(); } catch (IOException e) { // swallow } } }
25582 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25582/6a58448acd11ce1d90bc5b271658687304c9c5ec/AgiConnectionHandler.java/buggy/src/main/java/org/asteriskjava/fastagi/AgiConnectionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 5495, 77, 2514, 2949, 31, 5411, 5495, 77, 2289, 2633, 31, 5411, 5495, 77, 691, 590, 31, 5411, 5495, 77, 2909, 1904, 31, 5411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 5495, 77, 2514, 2949, 31, 5411, 5495, 77, 2289, 2633, 31, 5411, 5495, 77, 691, 590, 31, 5411, 5495, 77, 2909, 1904, 31, 5411...
try { otherMA = discoServ.getLocalAdvertisements (DiscoveryService.ADV, "Name", "DIET_MA"); discoServ.getRemoteAdvertisements (null, DiscoveryService.ADV, "Name", "DIET_MA", 10, null); } catch (Exception e) { e.printStackTrace(); }
System.out.print("Searching other MAs DIET..."); int nbTry = 3; while (nbTry > 0) { try { discoServ.getRemoteAdvertisements (null, DiscoveryService.ADV, "Name", "DIET_MA", 10, null); Thread.sleep(1000); otherMA = discoServ.getLocalAdvertisements (DiscoveryService.ADV, "Name", "DIET_MA"); if (otherMA != null && otherMA.hasMoreElements()) break; nbTry--; } catch (Exception e) { e.printStackTrace(); } }
run() { String pID = null; MimeMediaType mimeType = new MimeMediaType("text", "xml"); try { String component = (msg.getMessageElement("origin")).toString(); if (component.compareTo("client") == 0) { /* Call DIET Agent to get a SeD reference */ String pbName = (msg.getMessageElement("pbName")).toString(); String nbRow = (msg.getMessageElement("nbRow")).toString(); String nbCol = (msg.getMessageElement("nbCol")).toString(); String[] resp = mma.callDIETAgent(pbName, nbRow, nbCol); /* if no SeD is found in the own agent's tree, forward to others MA */ if (Array.getLength(resp) == 0) { resp = new String [30]; Enumeration otherMA = null; try { otherMA = discoServ.getLocalAdvertisements (DiscoveryService.ADV, "Name", "DIET_MA"); discoServ.getRemoteAdvertisements (null, DiscoveryService.ADV, "Name", "DIET_MA", 10, null); } catch (Exception e) { e.printStackTrace(); } int ind = 0; while (otherMA.hasMoreElements()) { //String pType = null; String[] rsp = null; PipeAdvertisement otherPipeAdv = (PipeAdvertisement)otherMA.nextElement(); pID = otherPipeAdv.getPipeID().toString(); if (pID.compareTo (mma.getInputPipe().getPipeID().toString()) != 0) { System.out.println("Agent found input pipe uuid: " + pID.toString()); try { outPipe = pipeServ.createOutputPipe(otherPipeAdv, -1); } catch(Exception e) { e.printStackTrace(); } /* Create messages to forward */ String forwardPbName = (msg.getMessageElement("pbName")).toString(); String forwardNbRow = (msg.getMessageElement("nbRow")).toString(); String forwardNbCol = (msg.getMessageElement("nbCol")).toString(); Message forwardMsg = new Message (); InputStream ip; InputStreamMessageElement smeforwardPipeAdv; ip = pipeAdv.getDocument(mimeType).getStream(); smeforwardPipeAdv = new InputStreamMessageElement("pipeAdv", mimeType, ip, null); StringMessageElement smeforwardPbName = new StringMessageElement("pbName", forwardPbName, null); StringMessageElement smeforwardNbRow = new StringMessageElement("nbRow", forwardNbRow, null); StringMessageElement smeforwardNbCol = new StringMessageElement("nbCol", forwardNbCol, null); StringMessageElement smeorigin = new StringMessageElement("origin", "agent", null); forwardMsg.addMessageElement(smeforwardPbName); forwardMsg.addMessageElement(smeforwardNbRow); forwardMsg.addMessageElement(smeforwardNbCol); forwardMsg.addMessageElement(smeorigin); forwardMsg.addMessageElement(smeforwardPipeAdv); /* forward query to agent */ outPipe.send(forwardMsg); System.out.println ("Problem forwarded to agent..."); Message rspMsg = inPipe.waitForMessage(); /* Response received from agent, send back to client */ Message.ElementIterator respIter = rspMsg.getMessageElements("SeDUuid"); /* extracting SeD Uuid(s) from message */ while (respIter.hasNext()) { resp[ind++] = (respIter.next()).toString(); } } } } InputStream ip = null; ip = (msg.getMessageElement("pipeAdv")).getStream(); PipeAdvertisement clientPipeAdv = (PipeAdvertisement) AdvertisementFactory.newAdvertisement(mimeType, ip); outPipe = pipeServ.createOutputPipe(clientPipeAdv, 20000); /* Create the response message */ Message responseMsg = new Message(); /* insert uuids of server found */ int i; for(i = 0; ((i < Array.getLength(resp)) && (resp[i] != null)); i++) { StringMessageElement smeSeDUuid = new StringMessageElement("SeDUuid", resp[i], null); responseMsg.addMessageElement(smeSeDUuid); System.out.println ("JXTA Agent: SeD sent to client : " + resp[i]); } System.out.println(i + " SeD sent to client"); /* Send the response message to client */ outPipe.send (responseMsg); } else /* Query forwarded by an agent */ { String pbName; String nbRow; String nbCol; pbName = (msg.getMessageElement("pbName")).toString(); nbRow = (msg.getMessageElement("nbRow")).toString(); nbCol = (msg.getMessageElement("nbCol")).toString(); /* Call DIET Agent to submit to DIET */ String[] resp = mma.callDIETAgent(pbName, nbRow, nbCol); //String agentUuid = (msg.getMessageElement("agentUuid")).toString(); InputStream ip = null; ip = msg.getMessageElement("pipeAdv").getStream(); PipeAdvertisement agentPipeAdv = (PipeAdvertisement) AdvertisementFactory.newAdvertisement(mimeType, ip); outPipe = pipeServ.createOutputPipe(agentPipeAdv, 20000); /* build an output pipe to connect on the agent input pipe */ outPipe = pipeServ.createOutputPipe(agentPipeAdv, 20000); /* Create the response message */ Message responseMsg = new Message(); /* insert uuids of server found */ System.out.println("JXTA Agent: " + Array.getLength(resp) + " SeD sent to agent."); for(int i = 0; i < Array.getLength(resp); i++) { StringMessageElement smeSeDUuid = new StringMessageElement("SeDUuid", resp[i], null); responseMsg.addMessageElement(smeSeDUuid); System.out.println ("JXTA Agent: SeD sent to agent: " + resp[i]); } /* Send the response message */ outPipe.send (responseMsg); } } catch (Exception e) { e.printStackTrace(); } } // run
2786 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2786/6760f10d7e014fe36fc18179c56e000529c9b5ef/JXTAMultiMA.java/clean/src/agent/JXTAMultiMA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1086, 1435, 225, 288, 565, 514, 293, 734, 273, 446, 31, 565, 22059, 20870, 10707, 273, 394, 22059, 20870, 2932, 955, 3113, 315, 2902, 8863, 565, 775, 288, 1377, 514, 1794, 273, 261, 3576,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 225, 288, 565, 514, 293, 734, 273, 446, 31, 565, 22059, 20870, 10707, 273, 394, 22059, 20870, 2932, 955, 3113, 315, 2902, 8863, 565, 775, 288, 1377, 514, 1794, 273, 261, 3576,...
public org.quickfix.field.QuoteType getQuoteType() throws FieldNotFound { org.quickfix.field.QuoteType value = new org.quickfix.field.QuoteType();
public quickfix.field.QuoteType getQuoteType() throws FieldNotFound { quickfix.field.QuoteType value = new quickfix.field.QuoteType();
public org.quickfix.field.QuoteType getQuoteType() throws FieldNotFound { org.quickfix.field.QuoteType value = new org.quickfix.field.QuoteType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/buggy/src/java/src/quickfix/fix43/Quote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 559, 336, 10257, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 559, 460, 273, 394, 2358, 18, 19525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 559, 336, 10257, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10257, 559, 460, 273, 394, 2358, 18, 19525, ...
public String ReceiveString(int maxsiz) throws SQLException { byte[] rst = new byte[maxsiz]; int s = 0; try { while (s < maxsiz) { int c = pg_input.read(); if (c < 0) throw new PSQLException("postgresql.stream.eof"); else if (c == 0) break; else rst[s++] = (byte)c; } if (s >= maxsiz) throw new PSQLException("postgresql.stream.toomuch"); } catch (IOException e) { throw new PSQLException("postgresql.stream.ioerror",e); } String v = new String(rst, 0, s); return v; }
public String ReceiveString(int maxsize) throws SQLException { return ReceiveString(maxsize, null); }
public String ReceiveString(int maxsiz) throws SQLException { byte[] rst = new byte[maxsiz]; int s = 0; try { while (s < maxsiz) { int c = pg_input.read(); if (c < 0) throw new PSQLException("postgresql.stream.eof"); else if (c == 0) break; else rst[s++] = (byte)c; } if (s >= maxsiz) throw new PSQLException("postgresql.stream.toomuch"); } catch (IOException e) { throw new PSQLException("postgresql.stream.ioerror",e); } String v = new String(rst, 0, s); return v; }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/65edb541865032b5750cfe58cb8f7affbe1fc298/PG_Stream.java/buggy/src/interfaces/jdbc/org/postgresql/PG_Stream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 17046, 780, 12, 474, 943, 87, 452, 13, 1216, 6483, 225, 288, 565, 1160, 8526, 13978, 273, 394, 1160, 63, 1896, 87, 452, 15533, 565, 509, 272, 273, 374, 31, 3639, 775, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 17046, 780, 12, 474, 943, 87, 452, 13, 1216, 6483, 225, 288, 565, 1160, 8526, 13978, 273, 394, 1160, 63, 1896, 87, 452, 15533, 565, 509, 272, 273, 374, 31, 3639, 775, 1377, ...
throw NativeGlobal.constructError(cx, "TypeError", "only one argument may be specified " + "if the first argument is a RegExp object", scope);
throw ScriptRuntime.typeError0("msg.bad.regexp.compile");
Scriptable compile(Context cx, Scriptable scope, Object[] args) { if (args.length > 0 && args[0] instanceof NativeRegExp) { if (args.length > 1 && args[1] != Undefined.instance) { // report error throw NativeGlobal.constructError(cx, "TypeError", "only one argument may be specified " + "if the first argument is a RegExp object", scope); } NativeRegExp thatObj = (NativeRegExp) args[0]; this.re = thatObj.re; this.lastIndex = thatObj.lastIndex; return this; } String s = args.length == 0 ? "" : ScriptRuntime.toString(args[0]); String global = args.length > 1 && args[1] != Undefined.instance ? ScriptRuntime.toString(args[1]) : null; this.re = (RECompiled)compileRE(cx, scope, s, global, false); this.lastIndex = 0; return this; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/40f7554390dea10ea64bd490d09230d2c0814929/NativeRegExp.java/clean/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 22780, 4074, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 565, 288, 3639, 309, 261, 1968, 18, 2469, 405, 374, 597, 833, 63, 20, 65, 1276, 16717, 13673, 13, 288, 5411, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 22780, 4074, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 565, 288, 3639, 309, 261, 1968, 18, 2469, 405, 374, 597, 833, 63, 20, 65, 1276, 16717, 13673, 13, 288, 5411, 309, ...
public boolean isEnabled() { return this.bEnabled; }
public boolean isEnabled( ) { return this.bEnabled; }
public boolean isEnabled() { return this.bEnabled; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/979b4ef9e0ecedfdb172d4326b24c2a6033cbbbd/TextEditorComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/TextEditorComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 12047, 1435, 565, 288, 3639, 327, 333, 18, 70, 1526, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 12047, 1435, 565, 288, 3639, 327, 333, 18, 70, 1526, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public void guiTestUninstall_FixMe() { final JComboBox combo = new JComboBox(); final EventList<Object> items = new BasicEventList<Object>(); items.add("First"); items.add("Second"); final ComboBoxUI originalUI = combo.getUI(); final ComboBoxModel originalModel = combo.getModel(); final boolean originalEditable = combo.isEditable(); final ComboBoxEditor originalEditor = combo.getEditor(); final int originalEditorPropertyChangeListenerCount = originalEditor.getEditorComponent().getPropertyChangeListeners().length; final int originalEditorKeyListenerCount = originalEditor.getEditorComponent().getKeyListeners().length; final AbstractDocument originalEditorDocument = (AbstractDocument) ((JTextField) combo.getEditor().getEditorComponent()).getDocument(); final int originalComboBoxPropertyChangeListenerCount = combo.getPropertyChangeListeners().length; final int originalComboBoxPopupMouseListenerCount = ((ComboPopup) combo.getUI().getAccessibleChild(combo, 0)).getList().getMouseListeners().length; final int originalMaxRowCount = combo.getMaximumRowCount(); final int originalComboBoxPopupMenuListenerCount = ((JPopupMenu) combo.getUI().getAccessibleChild(combo, 0)).getPopupMenuListeners().length; final Action originalSelectNextAction = combo.getActionMap().get("selectNext"); final Action originalSelectPreviousAction = combo.getActionMap().get("selectPrevious"); final Action originalSelectNext2Action = combo.getActionMap().get("selectNext2"); final Action originalSelectPrevious2Action = combo.getActionMap().get("selectPrevious2"); final Action originalAquaSelectNextAction = combo.getActionMap().get("aquaSelectNext"); final Action originalAquaSelectPreviousAction = combo.getActionMap().get("aquaSelectPrevious"); AutoCompleteSupport support = AutoCompleteSupport.install(combo, items); JTextField currentEditor = ((JTextField) combo.getEditor().getEditorComponent()); AbstractDocument currentEditorDocument = (AbstractDocument) currentEditor.getDocument(); assertSame(originalUI, combo.getUI()); assertSame(currentEditorDocument, originalEditorDocument); assertNotSame(originalEditor, combo.getEditor()); assertNotSame(originalModel, combo.getModel()); assertNotSame(originalEditable, combo.isEditable()); assertNotSame(originalSelectNextAction, combo.getActionMap().get("selectNext")); assertNotSame(originalSelectPreviousAction, combo.getActionMap().get("selectPrevious")); assertNotSame(originalSelectNext2Action, combo.getActionMap().get("selectNext2")); assertNotSame(originalSelectPrevious2Action, combo.getActionMap().get("selectPrevious2")); assertNotSame(originalAquaSelectNextAction, combo.getActionMap().get("aquaSelectNext")); assertNotSame(originalAquaSelectPreviousAction, combo.getActionMap().get("aquaSelectPrevious")); assertNotNull(currentEditorDocument.getDocumentFilter()); // two PropertyChangeListeners are added to the JComboBox: // * one to watch for ComboBoxUI changes // * one to watch for Model changes assertEquals(originalComboBoxPropertyChangeListenerCount + 2, combo.getPropertyChangeListeners().length); // one getPopupMenuListener is added to the ComboBoxPopup to size the popup before it is shown on the screen assertEquals(originalComboBoxPopupMenuListenerCount + 1, ((JPopupMenu) combo.getUI().getAccessibleChild(combo, 0)).getPopupMenuListeners().length); // one getPopupMenuListener is added to the JComboBox to size the popup before it is shown on the screen assertEquals(originalComboBoxPopupMouseListenerCount + 1, ((ComboPopup) combo.getUI().getAccessibleChild(combo, 0)).getList().getMouseListeners().length); // one PropertyChangeListener is added to the ComboBoxEditor to watch for Document changes assertEquals(originalEditorPropertyChangeListenerCount + 1, currentEditor.getPropertyChangeListeners().length); // one KeyListener is added to the ComboBoxEditor to watch for Backspace in strict mode assertEquals(originalEditorKeyListenerCount + 1, currentEditor.getKeyListeners().length); support.uninstall(); currentEditor = ((JTextField) combo.getEditor().getEditorComponent()); currentEditorDocument = (AbstractDocument) currentEditor.getDocument(); assertSame(originalUI, combo.getUI()); assertSame(originalModel, combo.getModel()); assertSame(originalEditable, combo.isEditable()); assertSame(originalEditor, combo.getEditor()); assertSame(originalEditorDocument, currentEditorDocument); assertSame(currentEditorDocument.getDocumentFilter(), null); assertSame(originalComboBoxPropertyChangeListenerCount, combo.getPropertyChangeListeners().length); assertSame(originalEditorPropertyChangeListenerCount, currentEditor.getPropertyChangeListeners().length); assertSame(originalEditorKeyListenerCount, currentEditor.getKeyListeners().length); assertSame(originalMaxRowCount, combo.getMaximumRowCount()); assertSame(originalComboBoxPopupMenuListenerCount, ((JPopupMenu) combo.getUI().getAccessibleChild(combo, 0)).getPopupMenuListeners().length); assertSame(originalComboBoxPopupMouseListenerCount, ((ComboPopup) combo.getUI().getAccessibleChild(combo, 0)).getList().getMouseListeners().length); assertSame(originalSelectNextAction, combo.getActionMap().get("selectNext")); assertSame(originalSelectPreviousAction, combo.getActionMap().get("selectPrevious")); assertSame(originalSelectNext2Action, combo.getActionMap().get("selectNext2")); assertSame(originalSelectPrevious2Action, combo.getActionMap().get("selectPrevious2")); assertSame(originalAquaSelectNextAction, combo.getActionMap().get("aquaSelectNext")); assertSame(originalAquaSelectPreviousAction, combo.getActionMap().get("aquaSelectPrevious")); try { support.uninstall(); fail("Double disposing AutoCompleteSupport did not fail as expected"); } catch (IllegalStateException e) { // expected } }
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/9951e4a94b7f15c2fedc7bc2206d48e08cd86d24/AutoCompleteSupportTest.java/buggy/test/ca/odell/glazedlists/swing/AutoCompleteSupportTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13238, 4709, 31103, 67, 8585, 4667, 1435, 288, 3639, 727, 804, 22199, 16778, 273, 394, 804, 22199, 5621, 3639, 727, 2587, 682, 32, 921, 34, 1516, 273, 394, 7651, 1133, 682, 32,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13238, 4709, 31103, 67, 8585, 4667, 1435, 288, 3639, 727, 804, 22199, 16778, 273, 394, 804, 22199, 5621, 3639, 727, 2587, 682, 32, 921, 34, 1516, 273, 394, 7651, 1133, 682, 32,...
} catch ( EndOfFile e ){ list.addLast( param.toCharArray() ); } catch( ScannerException e ){
private static LinkedList scanForParameters(IScanner scanner) { LinkedList list = new LinkedList(); String param = new String(""); boolean lastTokenWasWild = false; try{ IToken token = scanner.nextToken(); tokenConsumption: while( true ){ switch( token.getType() ){ case IToken.tCOMMA : list.addLast( param.toCharArray() ); param = new String(""); break; case IToken.tLPAREN : break; case IToken.tRPAREN : list.addLast( param.toCharArray() ); break tokenConsumption; case IToken.tSTAR: case IToken.tQUESTION: lastTokenWasWild = true; param += token.getImage(); break; default: if( !lastTokenWasWild && param.length() > 0 ) param += " "; param += token.getImage(); break; } token = scanner.nextToken(); } } catch ( EndOfFile e ){ list.addLast( param.toCharArray() ); } catch( ScannerException e ){ } return list; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ceee55836e1155fe2a56b45dafd602f35bf19ce6/CSearchPattern.java/buggy/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 10688, 4135, 1290, 2402, 12, 45, 11338, 7683, 13, 288, 202, 202, 13174, 682, 666, 273, 394, 10688, 5621, 9506, 202, 780, 579, 273, 394, 514, 2932, 8863, 9506, 202, 6494, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10688, 4135, 1290, 2402, 12, 45, 11338, 7683, 13, 288, 202, 202, 13174, 682, 666, 273, 394, 10688, 5621, 9506, 202, 780, 579, 273, 394, 514, 2932, 8863, 9506, 202, 6494, ...
Set cell_set = (Set) line_ref.getData(); if (cell_set == null) return; float[][] samples = cell_set.getSamples();
Set cellSet = (Set) lineRef.getData(); if (cellSet == null) return; float[][] samples = cellSet.getSamples();
public void go(String args[]) throws IOException, VisADException, RemoteException { String dir = ""; String slash = System.getProperty("file.separator"); if (args.length > 0) { dir = args[0]; if (!dir.endsWith(slash)) dir = dir + slash; } RealTupleType domain = null; Unit unit = null; String name = null; Set set = null; RealType[] value_types = new RealType[NFILES]; values = new float[NFILES][]; DefaultFamily loader = new DefaultFamily("loader"); for (int i=0; i<NFILES; i++) { Tuple tuple = (Tuple) loader.open(dir + "SPB" + (i+1) + ".PIC"); FieldImpl field = (FieldImpl) tuple.getComponent(0); FlatField ff = (FlatField) field.getSample(0); set = ff.getDomainSet();/*System.out.println("set = " + set);set = Linear2DSet: Length = 393216 Dimension 1: Length = 768 Range = 0.0 to 767.0 Dimension 2: Length = 512 Range = 0.0 to 511.0*/ if (i == 0) { FunctionType func = (FunctionType) ff.getType(); domain = func.getDomain(); element = (RealType) domain.getComponent(0); line = (RealType) domain.getComponent(1); value = (RealType) func.getRange(); unit = value.getDefaultUnit(); name = value.getName(); } value_types[i] = RealType.getRealType(name + (i+1), unit); float[][] temps = ff.getFloats(false); values[i] = temps[0]; // System.out.println("data " + i + " type: " + value_types[i]); } npixels = values[0].length; RealTupleType range = new RealTupleType(value_types); FunctionType big_func = new FunctionType(domain, range); final FlatField big_data = new FlatField(big_func, set); big_data.setSamples(values, false); // RealType value = RealType.getRealType("value"); RealType hue = RealType.getRealType("hue"); RealType HUE = RealType.getRealType("HUE"); RealTupleType new_range = new RealTupleType(value, hue); FunctionType new_func = new FunctionType(domain, new_range); data = new FlatField(new_func, set); data_values = new float[2][npixels]; DataReferenceImpl ref1 = new DataReferenceImpl("ref1"); ref1.setData(data); text = TextType.getTextType("text"); RealType[] time = {RealType.Time}; RealTupleType time_type = new RealTupleType(time); MathType[] mtypes = {element, line, text}; text_tuple = new TupleType(mtypes); FunctionType text_function = new FunctionType(RealType.Time, text_tuple); Set time_set = new Linear1DSet(time_type, 0.0, 1.0, 2); text_field = new FieldImpl(text_function, time_set); DataReferenceImpl text_ref = new DataReferenceImpl("text_ref"); text_ref.setData(text_field); Linear2DSet wedge_set = new Linear2DSet(domain, 0.0, 767.0, 768, 550.0, 570.0, 21); wedge = new FlatField(new_func, wedge_set); wedge_samples = new float[2][768 * 21]; DataReferenceImpl wedge_ref = new DataReferenceImpl("wedge_ref"); wedge_ref.setData(wedge); final DataReferenceImpl xref = new DataReferenceImpl("xref"); // System.out.println("data type: " + new_func); display1 = new DisplayImplJ3D("display1", new TwoDDisplayRendererJ3D()); ScalarMap xmap = new ScalarMap(element, Display.XAxis); display1.addMap(xmap); huexmap = new ScalarMap(HUE, Display.XAxis); display1.addMap(huexmap); ScalarMap ymap = new ScalarMap(line, Display.YAxis); display1.addMap(ymap); ymap.setRange(0.0, 511.0); vmap = new ScalarMap(value, Display.Value); display1.addMap(vmap); hmap = new ScalarMap(hue, Display.Hue); display1.addMap(hmap); ScalarMap textmap = new ScalarMap(text, Display.Text); display1.addMap(textmap); display1.addMap(new ConstantMap(1.0, Display.Saturation)); Control ctrl = textmap.getControl(); if (ctrl != null && ctrl instanceof TextControl) { TextControl text_control = (TextControl) ctrl; text_control.setSize(1.0); text_control.setJustification(TextControl.Justification.CENTER); text_control.setAutoSize(true); } // display1.getGraphicsModeControl().setScaleEnable(true); display1.addReference(ref1); DefaultRendererJ3D renderer = new DefaultRendererJ3D(); display1.addReferences(renderer, xref); renderer.suppressExceptions(true); DefaultRendererJ3D text_renderer = new DefaultRendererJ3D(); display1.addReferences(text_renderer, text_ref); text_renderer.suppressExceptions(true); DefaultRendererJ3D wedge_renderer = new DefaultRendererJ3D(); display1.addReferences(wedge_renderer, wedge_ref); wedge_renderer.suppressExceptions(true); line_ref = new DataReferenceImpl("line"); Gridded2DSet dummy_set = new Gridded2DSet(domain, null, 1); line_ref.setData(dummy_set); display1.addReferences( new RubberBandLineRendererJ3D(element, line), line_ref); final RealType channel = RealType.getRealType("channel"); final RealType point = RealType.getRealType("point"); RealType intensity = RealType.getRealType("intensity"); final FunctionType spectrum_type = new FunctionType(channel, intensity); final FunctionType spectra_type = new FunctionType(point, spectrum_type); final FunctionType line_type = new FunctionType(point, intensity); final FunctionType lines_type = new FunctionType(channel, line_type); final DataReferenceImpl ref2 = new DataReferenceImpl("ref2"); DisplayImplJ3D display2 = new DisplayImplJ3D("display2"); ScalarMap xmap2 = new ScalarMap(channel, Display.XAxis); display2.addMap(xmap2); ScalarMap ymap2 = new ScalarMap(intensity, Display.YAxis); display2.addMap(ymap2); ScalarMap zmap2 = new ScalarMap(point, Display.ZAxis); display2.addMap(zmap2); display2.getGraphicsModeControl().setScaleEnable(true); DefaultRendererJ3D renderer2 = new DefaultRendererJ3D(); display2.addReferences(renderer2, ref2); renderer2.suppressExceptions(true); final RealTupleType fdomain = domain; CellImpl cell = new CellImpl() { public void doAction() throws VisADException, RemoteException { Set cell_set = (Set) line_ref.getData(); if (cell_set == null) return; float[][] samples = cell_set.getSamples(); if (samples == null) return; // System.out.println("box (" + samples[0][0] + ", " + samples[1][0] + // ") to (" + samples[0][1] + ", " + samples[1][1] + ")"); float x1 = samples[0][0]; float y1 = samples[1][0]; float x2 = samples[0][1]; float y2 = samples[1][1]; double dist = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); int nsamp = (int) (dist + 1.0); if (nsamp < 2) nsamp = 2; float[][] ss = new float[2][nsamp]; for (int i=0; i<nsamp; i++) { float a = ((float) i) / (nsamp - 1.0f); ss[0][i] = x1 + a * (x2 - x1); ss[1][i] = y1 + a * (y2 - y1); } Gridded2DSet line = new Gridded2DSet(fdomain, ss, nsamp); xref.setData(line); FlatField line_field = (FlatField) // big_data.resample(line, Data.WEIGHTED_AVERAGE, Data.NO_ERRORS); big_data.resample(line, Data.NEAREST_NEIGHBOR, Data.NO_ERRORS); float[][] line_samples = line_field.getFloats(false); // [NFILES][nsamp] Linear1DSet point_set = new Linear1DSet(point, 0.0, 1.0, nsamp); Integer1DSet channel_set = new Integer1DSet(channel, NFILES); FieldImpl spectra = new FieldImpl(spectra_type, point_set); for (int i=0; i<nsamp; i++) { FlatField spectrum = new FlatField(spectrum_type, channel_set); float[][] temp = new float[1][NFILES]; for (int j=0; j<NFILES; j++) { temp[0][j] = line_samples[j][i]; } spectrum.setSamples(temp, false); spectra.setSample(i, spectrum); } FieldImpl lines = new FieldImpl(lines_type, channel_set); for (int j=0; j<NFILES; j++) { FlatField linex = new FlatField(line_type, point_set); float[][] temp = new float[1][nsamp]; for (int i=0; i<nsamp; i++) { temp[0][i] = line_samples[j][i]; } linex.setSamples(temp, false); lines.setSample(j, linex); } ref2.setData(new Tuple(new Data[] {spectra, lines})); } }; cell.addReference(line_ref); VisADSlider[] value_sliders = new VisADSlider[NFILES]; VisADSlider[] hue_sliders = new VisADSlider[NFILES]; value_refs = new DataReferenceImpl[NFILES]; hue_refs = new DataReferenceImpl[NFILES]; JFrame frame = new JFrame("VisAD MultiLUT"); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {System.exit(0);} }); // create JPanel in frame JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); panel.setAlignmentY(JPanel.TOP_ALIGNMENT); panel.setAlignmentX(JPanel.LEFT_ALIGNMENT); frame.setContentPane(panel); JPanel left = new JPanel(); left.setLayout(new BoxLayout(left, BoxLayout.Y_AXIS)); left.setAlignmentY(JPanel.TOP_ALIGNMENT); left.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel center = new JPanel(); center.setLayout(new BoxLayout(center, BoxLayout.Y_AXIS)); center.setAlignmentY(JPanel.TOP_ALIGNMENT); center.setAlignmentX(JPanel.LEFT_ALIGNMENT); JPanel right = new JPanel(); right.setLayout(new BoxLayout(right, BoxLayout.Y_AXIS)); right.setAlignmentY(JPanel.TOP_ALIGNMENT); right.setAlignmentX(JPanel.LEFT_ALIGNMENT); panel.add(left); panel.add(center); panel.add(right); Dimension d = new Dimension(300, 1000); left.setMaximumSize(d); center.setMaximumSize(d); for (int i=0; i<NFILES; i++) { value_refs[i] = new DataReferenceImpl("value" + i); value_refs[i].setData(new Real(1.0)); value_sliders[i] = new VisADSlider("value" + i, -100, 100, 100, 0.01, value_refs[i], RealType.Generic); left.add(value_sliders[i]); hue_refs[i] = new DataReferenceImpl("hue" + i); hue_refs[i].setData(new Real(1.0)); hue_sliders[i] = new VisADSlider("hue" + i, -100, 100, 100, 0.01, hue_refs[i], RealType.Generic); center.add(hue_sliders[i]); } // slider button for setting all value sliders to 0 JButton value_clear = new JButton("Zero values"); value_clear.addActionListener(this); value_clear.setActionCommand("value_clear"); left.add(Box.createVerticalStrut(10)); left.add(value_clear); // slider button for setting all value sliders to 1 JButton value_set = new JButton("One values"); value_set.addActionListener(this); value_set.setActionCommand("value_set"); left.add(value_set); // slider button for setting all hue sliders to 0 JButton hue_clear = new JButton("Zero hues"); hue_clear.addActionListener(this); hue_clear.setActionCommand("hue_clear"); center.add(Box.createVerticalStrut(10)); center.add(hue_clear); // slider button for setting all hue sliders to 1 JButton hue_set = new JButton("One hues"); hue_set.addActionListener(this); hue_set.setActionCommand("hue_set"); center.add(hue_set); // slider button for setting all hue sliders to 0 right.add(display1.getComponent()); right.add(display2.getComponent()); // vmin and vmax labels minmax = new JLabel(" "); left.add(Box.createVerticalStrut(30)); left.add(minmax); // "GO" button for applying computation in sliders JButton compute = new JButton("Compute"); compute.addActionListener(this); compute.setActionCommand("compute"); left.add(Box.createVerticalStrut(10)); left.add(compute); int WIDTH = 1200; int HEIGHT = 1000; Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); frame.setLocation(screenSize.width/2 - WIDTH/2, screenSize.height/2 - HEIGHT/2); frame.setSize(WIDTH, HEIGHT); frame.setVisible(true); doit(); }
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/d3560cf43f33592c964cabbb057bed37fea39a07/MultiLUT.java/buggy/loci/MultiLUT.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1960, 12, 780, 833, 63, 5717, 540, 1216, 1860, 16, 8077, 1880, 503, 16, 18361, 288, 565, 514, 1577, 273, 1408, 31, 565, 514, 9026, 273, 2332, 18, 588, 1396, 2932, 768, 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, 1071, 918, 1960, 12, 780, 833, 63, 5717, 540, 1216, 1860, 16, 8077, 1880, 503, 16, 18361, 288, 565, 514, 1577, 273, 1408, 31, 565, 514, 9026, 273, 2332, 18, 588, 1396, 2932, 768, 18, ...
} else {
} else {
private JComponent createTipContent(String tipText) { JToolTip tooltip = new JToolTip(); if(tipText == null) { tooltip.setTipText(tipText); } else { Dimension rootSize = getVisibleRect().getSize(); Insets borderInsets = tooltip.getBorder().getBorderInsets(tooltip); rootSize.width -= (borderInsets.left + borderInsets.right) * 2; rootSize.height -= (borderInsets.top + borderInsets.bottom) * 2; StringBuffer tipBuffer = new StringBuffer(tipText.length()); StringTokenizer tokenizer = new StringTokenizer(tipText, "\n"); while(tokenizer.hasMoreElements()) { String line = tokenizer.nextToken(); for (;;) { int maximumChars = getMaximumChars(line, tooltip.getFontMetrics(tooltip.getFont()), rootSize.width); if(maximumChars == line.length()) { tipBuffer.append(line.substring(0, maximumChars)); tipBuffer.append('\n'); break; } else { int chars; for(chars = maximumChars - 2; chars > 1; chars --) { if(getMaximumChars(line.substring(0, chars), tooltip.getFontMetrics(tooltip.getFont()), rootSize.width) < maximumChars) break; } tipBuffer.append(line.substring(0, chars)); tipBuffer.append('\\'); tipBuffer.append('\n'); line = line.substring(maximumChars - 2); } } } //noinspection HardCodedStringLiteral Element html = new Element("html"); String text = tipBuffer.toString(); //noinspection HardCodedStringLiteral Element p = new Element("pre"); html.addContent(p); p.setText(text); XMLOutputter outputter = JDOMUtil.createOutputter("\n"); Format format = outputter.getFormat().setTextMode(Format.TextMode.PRESERVE); outputter.setFormat(format); tooltip.setTipText(outputter.outputString(html)); } tooltip.setBorder(null); return tooltip; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/f84fc150c2881235d163385f1fcce8af09959ac2/DebuggerTreeBase.java/clean/debugger/impl/com/intellij/debugger/ui/impl/DebuggerTreeBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 29058, 752, 14189, 1350, 12, 780, 9529, 1528, 13, 288, 565, 804, 29250, 11915, 273, 394, 804, 29250, 5621, 565, 309, 12, 14587, 1528, 422, 446, 13, 288, 1377, 11915, 18, 542, 14189,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29058, 752, 14189, 1350, 12, 780, 9529, 1528, 13, 288, 565, 804, 29250, 11915, 273, 394, 804, 29250, 5621, 565, 309, 12, 14587, 1528, 422, 446, 13, 288, 1377, 11915, 18, 542, 14189,...
public final javax.faces.event.FacesListener[] listCheckListeners() { return getFacesListeners(org.rcfaces.core.event.ICheckListener.class); }
public final javax.faces.event.FacesListener [] listCheckListeners() { return getFacesListeners(org.rcfaces.core.event.ICheckListener.class); }
public final javax.faces.event.FacesListener[] listCheckListeners() { return getFacesListeners(org.rcfaces.core.event.ICheckListener.class); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/TreeComponent.java/clean/org.rcfaces.core/src/org/rcfaces/core/component/TreeComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 6863, 18, 4601, 18, 2575, 18, 17268, 2223, 8526, 666, 1564, 5583, 1435, 288, 3639, 327, 2812, 2307, 5583, 12, 3341, 18, 1310, 4601, 18, 3644, 18, 2575, 18, 45, 1564, 2223, 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, 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, 727, 6863, 18, 4601, 18, 2575, 18, 17268, 2223, 8526, 666, 1564, 5583, 1435, 288, 3639, 327, 2812, 2307, 5583, 12, 3341, 18, 1310, 4601, 18, 3644, 18, 2575, 18, 45, 1564, 2223, 18...
private String[] sqlMainProc(String sProc, String args[], Properties prop) throws IOException { String sql; if ( args != null ) sql = sqlConcat(sProc, args); else sql = sProc; return IMCServiceRMI.sqlProcedure(prop.getProperty("imcserver"), sql);
private String[] sqlMainProc(String sProc, String args[]) throws IOException { String sql; if ( args != null ) { sql = sqlConcat(sProc, args); } else { sql = sProc;
private String[] sqlMainProc(String sProc, String args[], Properties prop) throws IOException { String sql; if ( args != null ) sql = sqlConcat(sProc, args); else sql = sProc; return IMCServiceRMI.sqlProcedure(prop.getProperty("imcserver"), sql); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/CalenderDbManager.java/clean/servlets/calender/CalenderDbManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8526, 1847, 6376, 15417, 12, 780, 272, 15417, 16, 514, 833, 63, 6487, 6183, 2270, 13, 1216, 1860, 202, 95, 202, 202, 780, 1847, 31, 202, 202, 430, 261, 833, 480, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8526, 1847, 6376, 15417, 12, 780, 272, 15417, 16, 514, 833, 63, 6487, 6183, 2270, 13, 1216, 1860, 202, 95, 202, 202, 780, 1847, 31, 202, 202, 430, 261, 833, 480, 446, ...
VariableDeclaration decl = new VariableDeclaration(context, qname.getText(), enclosed);
VariableDeclaration decl= new VariableDeclaration(context, qname.getText(), enclosed);
public final void prolog(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST prolog_AST_in = (AST)_t; AST v = null; AST prefix = null; AST uri = null; AST defu = null; AST deff = null; AST qname = null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VERSION_DECL: { AST __t207 = _t; v = _t==ASTNULL ? null :(AST)_t; match(_t,VERSION_DECL); _t = _t.getFirstChild(); if(!v.getText().equals("1.0")) throw new XPathException("Wrong XQuery version: require 1.0"); _t = __t207; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NAMESPACE_DECL: case DEF_NAMESPACE_DECL: case DEF_FUNCTION_NS_DECL: case GLOBAL_VAR: case FUNCTION_DECL: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 100: case 101: case LITERAL_parent: case LITERAL_ancestor: case 104: case 105: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { _loop213: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACE_DECL: { AST __t209 = _t; prefix = _t==ASTNULL ? null :(AST)_t; match(_t,NAMESPACE_DECL); _t = _t.getFirstChild(); uri = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.declareNamespace(prefix.getText(), uri.getText()); _t = __t209; _t = _t.getNextSibling(); break; } case DEF_NAMESPACE_DECL: { AST __t210 = _t; AST tmp22_AST_in = (AST)_t; match(_t,DEF_NAMESPACE_DECL); _t = _t.getFirstChild(); defu = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.declareNamespace("", defu.getText()); _t = __t210; _t = _t.getNextSibling(); break; } case DEF_FUNCTION_NS_DECL: { AST __t211 = _t; AST tmp23_AST_in = (AST)_t; match(_t,DEF_FUNCTION_NS_DECL); _t = _t.getFirstChild(); deff = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.setDefaultFunctionNamespace(deff.getText()); _t = __t211; _t = _t.getNextSibling(); break; } case GLOBAL_VAR: { AST __t212 = _t; qname = _t==ASTNULL ? null :(AST)_t; match(_t,GLOBAL_VAR); _t = _t.getFirstChild(); PathExpr enclosed = new PathExpr(context); expr(_t,enclosed); _t = _retTree; VariableDeclaration decl = new VariableDeclaration(context, qname.getText(), enclosed); path.add(decl); _t = __t212; _t = _t.getNextSibling(); break; } case FUNCTION_DECL: { functionDecl(_t,path); _t = _retTree; break; } default: { break _loop213; } } } while (true); } _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/be23536931f66ed6f552941df1c272ed48eeb933/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 450, 1330, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 450, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 450, 1330, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 450, 13...
EMPTY_STRING, null, null);
EMPTY_STRING, null, (ITokenDuple)la);
protected IASTExpression logicalAndExpression(IASTScope scope, CompletionKind kind, KeywordSetKey key) throws BacktrackException, EndOfFileException { IToken la = LA(1); int startingOffset = la.getOffset(); int line = la.getLineNumber(); char [] fn = la.getFilename(); IASTExpression firstExpression = inclusiveOrExpression(scope, kind, key); while (LT(1) == IToken.tAND) { consume(IToken.tAND); IASTExpression secondExpression = inclusiveOrExpression(scope, kind, key); int endOffset = ( lastToken != null ) ? lastToken.getEndOffset() : 0; try { firstExpression = astFactory.createExpression(scope, IASTExpression.Kind.LOGICALANDEXPRESSION, firstExpression, secondExpression, null, null, null, EMPTY_STRING, null, null); } catch (ASTSemanticException e) { throwBacktrack(e.getProblem()); } catch (Exception e) { logException("logicalAndExpression::createExpression()", e); //$NON-NLS-1$ throwBacktrack(startingOffset, endOffset, line, fn); } } return firstExpression; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0ad6f1bcb025a884d75816294d8f31d01f12da79/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 9053, 2300, 6374, 1876, 2300, 12, 45, 9053, 3876, 2146, 16, 1082, 202, 11238, 5677, 3846, 16, 18317, 30267, 498, 13, 1216, 4297, 4101, 503, 16, 1082, 202, 23358, 812, 503,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 9053, 2300, 6374, 1876, 2300, 12, 45, 9053, 3876, 2146, 16, 1082, 202, 11238, 5677, 3846, 16, 18317, 30267, 498, 13, 1216, 4297, 4101, 503, 16, 1082, 202, 23358, 812, 503,...
public boolean startJob(String arguments, Object condition, CommandRecord commandRec, boolean hiredByName){ loadPreferences(); aceRef = NameReference.getNameReference(AceFile.ACENAMEREF); voucherRef = NameReference.getNameReference("VoucherCode"); if (nameParserManager == null) nameParserManager= (NameParserManager)MesquiteTrunk.mesquiteTrunk.findEmployeeWithName("#ChromFileNameParsManager"); if (nameParserManager == null) return false; logBuffer = new StringBuffer(200); return true; }
55016 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55016/b875651c83b77ae591e2397a808556cd8dbb3644/PhredPhrap.java/buggy/Source/mesquite/chromaseq/PhredPhrap/PhredPhrap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 787, 2278, 12, 780, 1775, 16, 1033, 2269, 16, 3498, 2115, 1296, 5650, 16, 1250, 366, 2921, 5911, 15329, 9506, 202, 945, 12377, 5621, 202, 202, 623, 1957, 273, 1770, 2404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 787, 2278, 12, 780, 1775, 16, 1033, 2269, 16, 3498, 2115, 1296, 5650, 16, 1250, 366, 2921, 5911, 15329, 9506, 202, 945, 12377, 5621, 202, 202, 623, 1957, 273, 1770, 2404, ...
Object[][] ColumnValues = new String [mVecVec.size()][2]; int row; int col;
Object[][] ColumnValues = new String [mVecVec.size()][2]; int row; int col;
public void sortData(int column) { Object[][] ColumnValues = new String [mVecVec.size()][2]; int row; int col; for(row = 0 ; row < mVecVec.size() ; ++row) { ColumnValues[row][0] = (((Vector)mVecVec.elementAt(row)).elementAt(column)); ColumnValues[row][1] = new Integer(row).toString(); } System.out.println("Values before sorting"); for(row = 0; row < ColumnValues.length ; ++row) { System.out.println(ColumnValues[row][0] + " row: " + ColumnValues[row][1]); } QSort sorter = new QSort(new Comparer() { public int compare(Object a, Object b) { int returnValue; try { returnValue = (((String[])a)[0]).compareTo(((String[])b)[0]); } catch (NullPointerException e) { returnValue = 1; } return returnValue; } }); sorter.sort(ColumnValues); System.out.println("Values after sorting"); for(row = 0; row < ColumnValues.length ; ++row) { System.out.println(ColumnValues[row][0] + " row: " + ColumnValues[row][1]); } Vector SortedVector = new Vector(); for(row = 0; row < ColumnValues.length ; ++row) { Vector thisRow = new Vector(6); Integer OriginalPosition = new Integer((String)ColumnValues[row][1]); for(col = 0; col < ((Vector)mVecVec.elementAt(row)).size(); ++col) { thisRow.addElement(((Vector)mVecVec.elementAt(OriginalPosition.intValue())).elementAt(col)); } SortedVector.addElement(thisRow); } mVecVec = SortedVector; System.out.println("Hello"); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/buggy/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1524, 751, 12, 474, 1057, 13, 288, 5411, 1033, 63, 6362, 65, 4753, 1972, 273, 394, 514, 306, 81, 12991, 12991, 18, 1467, 1435, 6362, 22, 15533, 5411, 509, 1027, 31, 5411, 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, 540, 1071, 918, 1524, 751, 12, 474, 1057, 13, 288, 5411, 1033, 63, 6362, 65, 4753, 1972, 273, 394, 514, 306, 81, 12991, 12991, 18, 1467, 1435, 6362, 22, 15533, 5411, 509, 1027, 31, 5411, 509...
(new TaskHandler(this, null)).init(name, attrs);
(new TaskHandler(this, null, null)).init(name, attrs);
private void handleProperty(String name, AttributeList attrs) throws SAXParseException { (new TaskHandler(this, null)).init(name, attrs); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/059ad359164e376960bc91ee4bce1e47abb3ef45/ProjectHelper.java/buggy/src/main/org/apache/tools/ant/ProjectHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1640, 1396, 12, 780, 508, 16, 3601, 682, 3422, 13, 1216, 10168, 13047, 288, 5411, 261, 2704, 3837, 1503, 12, 2211, 16, 446, 16, 446, 13, 2934, 2738, 12, 529, 16, 3422, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 1640, 1396, 12, 780, 508, 16, 3601, 682, 3422, 13, 1216, 10168, 13047, 288, 5411, 261, 2704, 3837, 1503, 12, 2211, 16, 446, 16, 446, 13, 2934, 2738, 12, 529, 16, 3422, 1769, ...
setBackground(Color.blue);
this.setBackground(Color.blue);
public AttributePanel() { setBackground(Color.blue); setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_ALWAYS); //setLayout(null); }
48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/bf889fda0ae771630a90a87d42ed742a79e83641/VisualizePanel.java/clean/weka/gui/explorer/VisualizePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 5537, 1435, 288, 1377, 333, 18, 542, 8199, 12, 2957, 18, 14081, 1769, 1377, 444, 15704, 6806, 5190, 2582, 12, 21654, 10109, 67, 2312, 14555, 21908, 67, 1013, 29295, 1769, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 5537, 1435, 288, 1377, 333, 18, 542, 8199, 12, 2957, 18, 14081, 1769, 1377, 444, 15704, 6806, 5190, 2582, 12, 21654, 10109, 67, 2312, 14555, 21908, 67, 1013, 29295, 1769, 1377, ...
return props; }
return props; }
public Properties getProperties() { return props; }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/cc88a4a6b162f10af320cb7c96196119710527e8/Protocol.java/clean/src/org/jgroups/stack/Protocol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6183, 9392, 1435, 288, 3639, 327, 3458, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6183, 9392, 1435, 288, 3639, 327, 3458, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5dfab9acd886f09a1ca9341cff1d740dc40e3c35/DialogMarkerProperties.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerProperties.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 3639, 752, 3616, 12, 2938, 16, 1599, 3529, 2918, 18, 3141, 67, 734, 16, 1599, 3529, 2918, 18, 3141, 67, 13545, 16, 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, 4750, 918, 752, 14388, 1290, 3616, 5190, 12, 9400, 982, 13, 288, 3639, 752, 3616, 12, 2938, 16, 1599, 3529, 2918, 18, 3141, 67, 734, 16, 1599, 3529, 2918, 18, 3141, 67, 13545, 16, 7734,...
return chooseGuide(mapping, actionForm, request, response);
return chooseGuide(mapping, actionForm, request, response);
public ActionForward addGuideSituation(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { IUserView userView = SessionUtils.getUserView(request); DynaActionForm guideForm = (DynaActionForm) actionForm; /** ***************** */ Integer guideID = (Integer) guideForm.get("guideID"); String newSituationRemarks = (String) guideForm.get("newSituationRemarks"); Integer newSituationDay = (Integer) guideForm.get("newSituationDay"); Integer newSituationMonth = (Integer) guideForm.get("newSituationMonth"); Integer newSituationYear = (Integer) guideForm.get("newSituationYear"); String newSituationType = (String) guideForm.get("newSituationType"); Date date = (new GregorianCalendar(newSituationYear.intValue(), newSituationMonth.intValue(), newSituationDay.intValue())).getTime(); Object[] args = { guideID, newSituationRemarks, GuideState.valueOf(newSituationType), date }; try { ServiceUtils.executeService(userView, "CreateGuideSituation", args); } catch (FenixServiceException e) { // TODO Auto-generated catch block e.printStackTrace(); } guideForm.set("newSituationRemarks", null); guideForm.set("newSituationDay", null); guideForm.set("newSituationMonth", null); guideForm.set("newSituationYear", null); guideForm.set("newSituationType", null); return chooseGuide(mapping, actionForm, request, response); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/1fc9e527c7d951bba92f112af7435cfdac2955ce/GuideManagementDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/manager/guideManagement/GuideManagementDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 527, 17424, 55, 305, 11407, 12, 1803, 3233, 2874, 16, 4382, 1204, 1301, 1204, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 3639, 467, 1299, 1767, 729, 1767,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 17424, 55, 305, 11407, 12, 1803, 3233, 2874, 16, 4382, 1204, 1301, 1204, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 3639, 467, 1299, 1767, 729, 1767,...
buildcommands.add( BUILDER_WST_COMPONENT_STRUCTURAL_DEPENDENCY_RESOLVER );
buildcommands.add( new BuildCommand( BUILDER_WST_COMPONENT_STRUCTURAL_DEPENDENCY_RESOLVER ) );
private void fillDefaultBuilders( String packaging ) { buildcommands = new ArrayList(); if ( wtpVersionFloat == 0.7f ) { buildcommands.add( BUILDER_WST_COMPONENT_STRUCTURAL ); // WTP 0.7 builder } if ( isJavaProject ) { buildcommands.add( BUILDER_JDT_CORE_JAVA ); } if ( wtpVersionFloat >= 1.5f ) { buildcommands.add( BUILDER_WST_FACET ); // WTP 1.5 builder } if ( wtpVersionFloat >= 0.7f ) { buildcommands.add( BUILDER_WST_VALIDATION ); // WTP 0.7/1.0 builder } if ( wtpVersionFloat == 0.7f ) { buildcommands.add( BUILDER_WST_COMPONENT_STRUCTURAL_DEPENDENCY_RESOLVER ); // WTP 0.7 builder } if ( pde ) { buildcommands.add( BUILDER_PDE_MANIFEST ); buildcommands.add( BUILDER_PDE_SCHEMA ); } }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/e90ee2cb8b7659387eaa7555f58aca51c9c31ce6/EclipsePlugin.java/buggy/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipsePlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3636, 1868, 20460, 12, 514, 2298, 5755, 262, 565, 288, 3639, 1361, 7847, 273, 394, 2407, 5621, 3639, 309, 261, 341, 6834, 1444, 4723, 422, 374, 18, 27, 74, 262, 3639, 288, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3636, 1868, 20460, 12, 514, 2298, 5755, 262, 565, 288, 3639, 1361, 7847, 273, 394, 2407, 5621, 3639, 309, 261, 341, 6834, 1444, 4723, 422, 374, 18, 27, 74, 262, 3639, 288, 54...
private void store(long index, IRubyObject value) {
private IRubyObject store(long index, IRubyObject value) {
private void store(long index, IRubyObject value) { modify(); if (index < 0) { index += getLength(); if (index < 0) { throw getRuntime().newIndexError("index " + (index - getLength()) + " out of array"); } } autoExpand(index + 1); list.set((int) index, value); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyArray.java/buggy/src/org/jruby/RubyArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 1707, 12, 5748, 770, 16, 15908, 10340, 921, 460, 13, 288, 3639, 5612, 5621, 3639, 309, 261, 1615, 411, 374, 13, 288, 5411, 770, 1011, 9888, 5621, 5411, 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, 15908, 10340, 921, 1707, 12, 5748, 770, 16, 15908, 10340, 921, 460, 13, 288, 3639, 5612, 5621, 3639, 309, 261, 1615, 411, 374, 13, 288, 5411, 770, 1011, 9888, 5621, 5411, 309, 261, ...
outNbElement.value = outIdx; outBegIdx.value = startIdx;
public TA_RetCode CDLHIGHWAVE(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double BodyPeriodTotal, ShadowPeriodTotal; int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLHIGHWAVE_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } BodyPeriodTotal = 0; BodyTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod); ShadowPeriodTotal = 0; ShadowTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].avgPeriod); i = BodyTrailingIdx; while (i < startIdx) { BodyPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = ShadowTrailingIdx; while (i < startIdx) { ShadowPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } outIdx = 0; do { if ((Math.abs(inClose[i] - inOpen[i])) < ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod) != 0.0 ? BodyPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].avgPeriod) != 0.0 ? ShadowPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].avgPeriod) != 0.0 ? ShadowPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))) outInteger[outIdx++] = (inClose[i] >= inOpen[i] ? 1 : -1) * 100; else outInteger[outIdx++] = 0; BodyPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyTrailingIdx] - inOpen[BodyTrailingIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyTrailingIdx] - inLow[BodyTrailingIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyTrailingIdx] - (inClose[BodyTrailingIdx] >= inOpen[BodyTrailingIdx] ? inClose[BodyTrailingIdx] : inOpen[BodyTrailingIdx])) + ((inClose[BodyTrailingIdx] >= inOpen[BodyTrailingIdx] ? inOpen[BodyTrailingIdx] : inClose[BodyTrailingIdx]) - inLow[BodyTrailingIdx]) : 0))); ShadowPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowTrailingIdx] - inOpen[ShadowTrailingIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowTrailingIdx] - inLow[ShadowTrailingIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowTrailingIdx] - (inClose[ShadowTrailingIdx] >= inOpen[ShadowTrailingIdx] ? inClose[ShadowTrailingIdx] : inOpen[ShadowTrailingIdx])) + ((inClose[ShadowTrailingIdx] >= inOpen[ShadowTrailingIdx] ? inOpen[ShadowTrailingIdx] : inClose[ShadowTrailingIdx]) - inLow[ShadowTrailingIdx]) : 0))); i++; BodyTrailingIdx++; ShadowTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 29996, 59, 26714, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, 316, 10520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 385, 8914, 29996, 59, 26714, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1082, 202, 9056, 316, 8573, 63, 6487, 1645, 316, 10520...
nativeEventThread.addListener(listener);
nativeEventThread.addListener(listenerWrapper);
public void addDocumentLoadListener(DocumentLoadListener listener){ ParameterCheck.nonNull(listener); myFactory.throwExceptionIfNotInitialized(); Assert.assert(-1 != nativeWebShell); Assert.assert(null != nativeEventThread); ParameterCheck.nonNull(listener); synchronized(myBrowserControl) { nativeEventThread.addListener(listener); }}
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/22cf4850d306aa920b59560eda626f0c7759f4c3/EventRegistrationImpl.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 527, 2519, 2563, 2223, 12, 2519, 2563, 2223, 2991, 15329, 565, 5498, 1564, 18, 5836, 2041, 12, 12757, 1769, 565, 3399, 1733, 18, 12849, 503, 10288, 11459, 5621, 565, 5452, 18, 11231, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 527, 2519, 2563, 2223, 12, 2519, 2563, 2223, 2991, 15329, 565, 5498, 1564, 18, 5836, 2041, 12, 12757, 1769, 565, 3399, 1733, 18, 12849, 503, 10288, 11459, 5621, 565, 5452, 18, 11231, ...
private Provider () { // FIXME: We might need to make the name comparison case insensitive. // Verify this with the Sun JDK. canonicalNames = new HashMap (); charsets = new HashMap (); // US-ASCII aka ISO646-US addCharset (new US_ASCII ()); // ISO-8859-1 aka ISO-LATIN-1 addCharset (new ISO_8859_1 ()); // UTF-8 addCharset (new UTF_8 ()); // UTF-16BE addCharset (new UTF_16BE ()); // UTF-16LE addCharset (new UTF_16LE ()); // UTF-16 addCharset (new UTF_16 ()); }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/8b9521b543363733791b0cb3aa8b0aad118ae75e/Provider.java/buggy/libjava/gnu/java/nio/charset/Provider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 7561, 1832, 95, 759, 9852, 30, 1660, 4825, 1608, 358, 1221, 326, 508, 5826, 648, 17904, 18, 759, 8553, 333, 598, 326, 31608, 24387, 18, 18288, 1557, 273, 394, 4317, 261, 1769, 3001, 4424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 7561, 1832, 95, 759, 9852, 30, 1660, 4825, 1608, 358, 1221, 326, 508, 5826, 648, 17904, 18, 759, 8553, 333, 598, 326, 31608, 24387, 18, 18288, 1557, 273, 394, 4317, 261, 1769, 3001, 4424...
String query = wrap(new String[] {
String query = fold(new String[] {
public void _testLinRegAll() { // We have not implemented the LastPeriods function, so we use // [Time].CurrentMember.Lag(9) : [Time].CurrentMember // is equivalent to // LastPeriods(10) String query = wrap(new String[] { "WITH MEMBER ", "[Measures].[Intercept] AS ", " 'LinRegIntercept([Time].CurrentMember.Lag(10) : [Time].CurrentMember, [Measures].[Unit Sales], [Measures].[Store Sales])' ", "MEMBER [Measures].[Regression Slope] AS", " 'LinRegSlope([Time].CurrentMember.Lag(9) : [Time].CurrentMember,[Measures].[Unit Sales],[Measures].[Store Sales]) '", "MEMBER [Measures].[Predict] AS", " 'LinRegPoint([Measures].[Unit Sales],[Time].CurrentMember.Lag(9) : [Time].CurrentMember,[Measures].[Unit Sales],[Measures].[Store Sales])',", " FORMAT_STRING = 'Standard' ", "MEMBER [Measures].[Predict Formula] AS", " '([Measures].[Regression Slope] * [Measures].[Unit Sales]) + [Measures].[Intercept]',", " FORMAT_STRING='Standard'", "MEMBER [Measures].[Good Fit] AS", " 'LinRegR2([Time].CurrentMember.Lag(9) : [Time].CurrentMember, [Measures].[Unit Sales],[Measures].[Store Sales])',", " FORMAT_STRING='#,#.00'", "MEMBER [Measures].[Variance] AS", " 'LinRegVariance([Time].CurrentMember.Lag(9) : [Time].CurrentMember,[Measures].[Unit Sales],[Measures].[Store Sales])'", "SELECT ", " {[Measures].[Store Sales], ", " [Measures].[Intercept], ", " [Measures].[Regression Slope], ", " [Measures].[Predict], ", " [Measures].[Predict Formula], ", " [Measures].[Good Fit], ", " [Measures].[Variance] } ON COLUMNS, ", " Descendants([Time].[1997], [Time].[Month]) ON ROWS", "FROM Sales"}); String expected = wrap(new String[] { "Axis #0:", "{}", "Axis #1:", "{[Measures].[Store Sales]}", "{[Measures].[Intercept]}", "{[Measures].[Regression Slope]}", "{[Measures].[Predict]}", "{[Measures].[Predict Formula]}", "{[Measures].[Good Fit]}", "{[Measures].[Variance]}", "Axis #2:", "{[Time].[1997].[Q1].[1]}", "{[Time].[1997].[Q1].[2]}", "{[Time].[1997].[Q1].[3]}", "{[Time].[1997].[Q2].[4]}", "{[Time].[1997].[Q2].[5]}", "{[Time].[1997].[Q2].[6]}", "{[Time].[1997].[Q3].[7]}", "{[Time].[1997].[Q3].[8]}", "{[Time].[1997].[Q3].[9]}", "{[Time].[1997].[Q4].[10]}", "{[Time].[1997].[Q4].[11]}", "{[Time].[1997].[Q4].[12]}", "Row #0: 45,539.69", "Row #0: 68711.40", "Row #0: -1.033", "Row #0: 46,350.26", "Row #0: 46.350.26", "Row #0: -1.#INF", "Row #0: 5.17E-08", "...", "Row #11: 15343.67" + nl}); assertQueryReturns(query, expected); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/bb703add381acf854e2d5aed1045911b7ab143b4/FunctionTest.java/buggy/testsrc/main/mondrian/olap/fun/FunctionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 389, 3813, 48, 267, 1617, 1595, 1435, 288, 3639, 368, 1660, 1240, 486, 8249, 326, 6825, 30807, 445, 16, 1427, 732, 999, 3639, 368, 282, 306, 950, 8009, 3935, 4419, 18, 26093, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 3813, 48, 267, 1617, 1595, 1435, 288, 3639, 368, 1660, 1240, 486, 8249, 326, 6825, 30807, 445, 16, 1427, 732, 999, 3639, 368, 282, 306, 950, 8009, 3935, 4419, 18, 26093, ...
public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode();
public quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { quickfix.field.UnderlyingCFICode value = new quickfix.field.UnderlyingCFICode();
public org.quickfix.field.UnderlyingCFICode getUnderlyingCFICode() throws FieldNotFound { org.quickfix.field.UnderlyingCFICode value = new org.quickfix.field.UnderlyingCFICode(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinition.java/clean/src/java/src/quickfix/fix44/SecurityDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 39, 1653, 1085, 10833, 765, 6291, 39, 1653, 1085, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14655, 6291, 39, 1653, 1085, 10833, 765, 6291, 39, 1653, 1085, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291,...
public org.quickfix.field.LegStrikePrice getLegStrikePrice() throws FieldNotFound { org.quickfix.field.LegStrikePrice value = new org.quickfix.field.LegStrikePrice();
public quickfix.field.LegStrikePrice getLegStrikePrice() throws FieldNotFound { quickfix.field.LegStrikePrice value = new quickfix.field.LegStrikePrice();
public org.quickfix.field.LegStrikePrice getLegStrikePrice() throws FieldNotFound { org.quickfix.field.LegStrikePrice value = new org.quickfix.field.LegStrikePrice(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiry.java/buggy/src/java/src/quickfix/fix44/CollateralInquiry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 1585, 2547, 5147, 336, 8329, 1585, 2547, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 1585, 2547, 5147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8329, 1585, 2547, 5147, 336, 8329, 1585, 2547, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 1585, 2547, 5147...
public Renderer2DModel getRendererModel() {
public Renderer2DModel getRendererModel() {
public Renderer2DModel getRendererModel() { return this.rendererModel; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/d627f99335efee2e4dca344faa3b13bb3aa73ca3/JChemPaintModel.java/buggy/src/org/openscience/cdk/applications/jchempaint/JChemPaintModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 17589, 22, 40, 1488, 336, 6747, 1488, 1435, 202, 95, 202, 202, 2463, 333, 18, 14374, 1488, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 17589, 22, 40, 1488, 336, 6747, 1488, 1435, 202, 95, 202, 202, 2463, 333, 18, 14374, 1488, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop];
--tryStackTop; pc = catchStack[tryStackTop * 2]; scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop];
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; // stack[0 <= i < VAR_SHFT]: stack data // stack[VAR_SHFT <= i < LOCAL_SHFT]: variables // stack[LOCAL_SHFT <= i]: // used for newtemp/usetemp etc. // id stack[x] == DBL_MRK, real value for stack[x] is in sDbl[x] final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[LOCAL_SHFT + maxLocals]; double[] sDbl = new double[LOCAL_SHFT + maxLocals]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= args.length) stack[VAR_SHFT + i] = undefined; else stack[VAR_SHFT + i] = args[i]; } for ( ; i < maxVars; i++) stack[VAR_SHFT + i] = undefined; } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (theData.itsMaxTryDepth > 0) { // catchStack[2 * i]: catch data // catchStack[2 * i + 1]: finally data catchStack = new int[theData.itsMaxTryDepth * 2]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, ee.getErrorObject()); // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw ee; } } stack[0] = ee.getErrorObject(); } else { if (frame != null) cx.popFrame(); throw ee; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, ScriptRuntime.unwrapJavaScriptException(jsx)); } stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jsx; } stack[0] = jsx; } else { stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } } else { if (frame != null) cx.popFrame(); throw jsx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, jx); cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = catchStack[--tryStackTop * 2 + 1]; scope = scopeStack[tryStackTop]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jx; } } else { if (frame != null) cx.popFrame(); throw jx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); return result; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/5e9bc346cb971907d7a0541bae613e8b43b1238d/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 75...
preview( CorePlugin.RESOURCE_FOLDER + File.separator + removeQuoteString( uriEditor.getText( ) ) );
preview( removeQuoteString( uriEditor.getText( ) ) );
private void swtichToResourceType( ) { Label title = new Label( inputArea, SWT.NONE ); uriEditor = new Text( inputArea, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY ); uriEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); uriEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateButtons( ); } } ); Composite innerComp = new Composite( inputArea, SWT.NONE ); innerComp.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); innerComp.setLayout( new GridLayout( 2, false ) ); title.setText( DLG_ENTER_RESOURCE_FILE_LABEL ); Button inputButton = new Button( innerComp, SWT.PUSH ); inputButton.setText( Messages.getString( "ImageBuilder.ButtonBrowser" ) ); //$NON-NLS-1$ inputButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); inputButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { openResourceBrowser( ); } } ); previewButton = new Button( innerComp, SWT.PUSH ); previewButton.setText( DLG_PREVIEW_LABEL ); previewButton.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); previewButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { uriEditor.setText( uriEditor.getText( ).trim( ) ); preview( CorePlugin.RESOURCE_FOLDER + File.separator + removeQuoteString( uriEditor.getText( ) ) ); } } ); initURIEditor( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f06fb5699fc635c9c62b83fb721c2da353cf68a6/ImageBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ImageBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1352, 88, 1354, 774, 15631, 12, 262, 202, 95, 202, 202, 2224, 2077, 273, 394, 5287, 12, 810, 5484, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1650, 6946, 273, 394, 3867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1352, 88, 1354, 774, 15631, 12, 262, 202, 95, 202, 202, 2224, 2077, 273, 394, 5287, 12, 810, 5484, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1650, 6946, 273, 394, 3867, ...
case 3 :
case 3:
private String printXFormat(int x) { String sx = null; if (x == Integer.MIN_VALUE) { sx = "80000000"; } else if (x < 0) { String t = Integer.toString((~(-x - 1)) ^ Integer.MIN_VALUE, 16); switch (t.length()) { case 1 : sx = "8000000" + t; break; case 2 : sx = "800000" + t; break; case 3 : sx = "80000" + t; break; case 4 : sx = "8000" + t; break; case 5 : sx = "800" + t; break; case 6 : sx = "80" + t; break; case 7 : sx = "8" + t; break; case 8 : switch (t.charAt(0)) { case '1' : sx = "9" + t.substring(1, 8); break; case '2' : sx = "a" + t.substring(1, 8); break; case '3' : sx = "b" + t.substring(1, 8); break; case '4' : sx = "c" + t.substring(1, 8); break; case '5' : sx = "d" + t.substring(1, 8); break; case '6' : sx = "e" + t.substring(1, 8); break; case '7' : sx = "f" + t.substring(1, 8); break; default : // noop } break; default : // noop } } else { sx = Integer.toString(x, 16); } return printXFormat(sx); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/81a0eece47a6b5f01a9201699d7d2364fc0b93c5/PrintfFormat.java/buggy/src/org/opencms/util/PrintfFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 514, 1172, 60, 1630, 12, 474, 619, 13, 288, 5411, 514, 13280, 273, 446, 31, 5411, 309, 261, 92, 422, 2144, 18, 6236, 67, 4051, 13, 288, 7734, 13280, 273, 315, 28, 17877, 14432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 514, 1172, 60, 1630, 12, 474, 619, 13, 288, 5411, 514, 13280, 273, 446, 31, 5411, 309, 261, 92, 422, 2144, 18, 6236, 67, 4051, 13, 288, 7734, 13280, 273, 315, 28, 17877, 14432, ...
public void ackReceived(SIPRequest sipRequest) {
void ackReceived(SIPRequest sipRequest) {
public void ackReceived(SIPRequest sipRequest) { // Suppress retransmission of the final response (in case // retransmission filter is being used). if (this.ackSeen) return; SIPServerTransaction tr = this.getInviteTransaction(); if (tr != null) { if (tr.getCSeq() == sipRequest.getCSeq().getSequenceNumber()) { //st.setState(SIPTransaction.TERMINATED_STATE); this.ackSeen = true; this.lastAck = sipRequest; if (LogWriter.needsLogging) { sipStack.logWriter.logMessage("ackReceived for " + ((SIPTransaction) tr).getMethod()); this.ackLine = sipStack.logWriter.getLineCount(); this.printDebugInfo(); } this.setState(CONFIRMED_STATE); } } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/SIPDialog.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 8479, 8872, 12, 17739, 691, 10341, 691, 13, 288, 3639, 368, 4598, 283, 2338, 3951, 434, 326, 727, 766, 261, 267, 648, 3639, 368, 283, 2338, 3951, 1034, 353, 3832, 1399, 2934, 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, 918, 8479, 8872, 12, 17739, 691, 10341, 691, 13, 288, 3639, 368, 4598, 283, 2338, 3951, 434, 326, 727, 766, 261, 267, 648, 3639, 368, 283, 2338, 3951, 1034, 353, 3832, 1399, 2934, 3639, ...
value = "( 0.1.2.3.4.5.6.7.8.9 )";
value = "( 0.1.2.3.4.5.6.7.8.9 "+required+" )";
public static void testNumericOid( AbstractSchemaParser parser ) throws ParseException { String value = null; AbstractSchemaDescription asd = null; // null test value = null; try { parser.parse( value ); TestCase.fail( "Exception expected, null" ); } catch ( ParseException pe ) { // expected } // no oid value = "( )"; try { parser.parse( value ); TestCase.fail( "Exception expected, no NUMERICOID" ); } catch ( ParseException pe ) { // expected } // simple value = "( 0.1.2.3.4.5.6.7.8.9 )"; asd = parser.parse( value ); TestCase.assertEquals( "0.1.2.3.4.5.6.7.8.9", asd.getNumericOid() ); // simple value = "( 123.4567.890 )"; asd = parser.parse( value ); TestCase.assertEquals( "123.4567.890", asd.getNumericOid() ); // simple with spaces value = "( 0.1.2.3.4.5.6.7.8.9 )"; asd = parser.parse( value ); TestCase.assertEquals( "0.1.2.3.4.5.6.7.8.9", asd.getNumericOid() ); // non-numeric not allowed value = "( test )"; try { parser.parse( value ); TestCase.fail( "Exception expected, invalid NUMERICOID test" ); } catch ( ParseException pe ) { // expected } // to short value = "( 1 )"; try { parser.parse( value ); TestCase.fail( "Exception expected, invalid NUMERICOID 1" ); } catch ( ParseException pe ) { // expected } // dot only value = "( . )"; try { parser.parse( value ); TestCase.fail( "Exception expected, invalid NUMERICOID ." ); } catch ( ParseException pe ) { // expected } // ends with dot value = "( 1.1. )"; try { parser.parse( value ); TestCase.fail( "Exception expected, invalid NUMERICOID 1.1." ); } catch ( ParseException pe ) { // expected } // quotes not allowed value = "( '1.1' )"; try { parser.parse( value ); TestCase.fail( "Exception expected, invalid NUMERICOID '1.1' (quoted)" ); } catch ( ParseException pe ) { // expected } // leading 0 not allowed value = "( 01.1 )"; try { parser.parse( value ); TestCase.fail( "Exception expected, invalid NUMERICOID 01.1 (leading zero)" ); } catch ( ParseException pe ) { // expected } // alpha not allowed value = "( 1.2.a.4 )"; try { parser.parse( value ); TestCase.fail( "Exception expected, invalid NUMERICOID 1.2.a.4 (alpha not allowed)" ); } catch ( ParseException pe ) { // expected } }
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/ff44f37d485d24a3daa2141ea35c2b831557c20a/SchemaParserTestUtils.java/buggy/ldap/src/test/java/org/apache/directory/shared/ldap/schema/syntax/SchemaParserTestUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1842, 9902, 19105, 12, 4115, 3078, 2678, 2082, 262, 1216, 10616, 565, 288, 3639, 514, 460, 273, 446, 31, 3639, 4115, 3078, 3291, 487, 72, 273, 446, 31, 3639, 368, 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, 1071, 760, 918, 1842, 9902, 19105, 12, 4115, 3078, 2678, 2082, 262, 1216, 10616, 565, 288, 3639, 514, 460, 273, 446, 31, 3639, 4115, 3078, 3291, 487, 72, 273, 446, 31, 3639, 368, 446, 1...
strBuffer.append("<a href=\""+path+"/viewSection.do?index="+i+"\""+ " onclick=\"houdini('"+infoSection.getName()+"');\">\n");
strBuffer.append( "<a href=\"" + path + "/viewSection.do?index=" + i + "&amp;exeCode=" + getInfoSection() .getInfoSite() .getInfoExecutionCourse() .getSigla() + "&amp;ePName=" + getInfoSection() .getInfoSite() .getInfoExecutionCourse() .getInfoExecutionPeriod() .getName() + "&amp;eYName=" + getInfoSection() .getInfoSite() .getInfoExecutionCourse() .getInfoExecutionPeriod() .getInfoExecutionYear() .getYear() + "\"" + " onclick=\"houdini('" + infoSection.getName() + "');\">\n");
private StringBuffer renderDepthContent(InfoSection infoSection, int i,String path) { StringBuffer strBuffer = new StringBuffer(); int depth = infoSection.getSectionDepth().intValue(); if (depth == 0){ //adds the info strBuffer.append("<ul><li>\n"); strBuffer.append(renderDepthIdent(getInfoSection())); strBuffer.append("<a href=\""+path+"/viewSection.do?index="+i+"\""+ " onclick=\"houdini('"+infoSection.getName()+"');\">\n"); strBuffer.append(infoSection.getName()); strBuffer.append("</a>"); strBuffer.append("</li></ul>\n");} else { //adds the info strBuffer.append("<dd>"); strBuffer.append(renderDepthIdent(getInfoSection())); strBuffer.append("<a href=\"viewSection.do?index="+i+"\" >"); //falta o index strBuffer.append(infoSection.getName()); strBuffer.append("</a>"); strBuffer.append("</dd>\n");} return strBuffer; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/15c854d77812c45c36846ad617a990cbc575b564/SectionMenuContentRenderer.java/buggy/src/ServidorApresentacao/TagLib/publico/sectionMenu/renderers/SectionMenuContentRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6674, 1743, 6148, 1350, 12, 966, 5285, 1123, 5285, 16, 509, 277, 16, 780, 589, 13, 288, 1082, 202, 780, 1892, 609, 1892, 273, 394, 6674, 5621, 1082, 202, 474, 3598, 273, 1123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6674, 1743, 6148, 1350, 12, 966, 5285, 1123, 5285, 16, 509, 277, 16, 780, 589, 13, 288, 1082, 202, 780, 1892, 609, 1892, 273, 394, 6674, 5621, 1082, 202, 474, 3598, 273, 1123...
}
}
protected void setUp() throws Exception { /*** * Setup the various files, paths and projects that are needed by the * tests */ String pluginRoot = Platform.asLocalURL(Platform.getPlugin("org.eclipse.cdt.core.tests").getDescriptor().getInstallURL()).getFile(); testProject=CProjectHelper.createCProject("filetest", "none"); if (testProject==null) fail("Unable to create project"); cfile = testProject.getProject().getFile("exetest.c"); if (!cfile.exists()) { cfile.create(new FileInputStream(pluginRoot+"resources/exe/main.c"),false, monitor); } cpath=new Path(workspace.getRoot().getLocation()+"/filetest/main.c"); objfile = testProject.getProject().getFile("exetest.o"); if (!objfile.exists()) { objfile.create(new FileInputStream(pluginRoot+"resources/exe/x86/o.g/main.o"),false, monitor); } objpath=new Path(workspace.getRoot().getLocation()+"/filetest/main.o"); exefile = testProject.getProject().getFile("test_g"); if (!exefile.exists()) { exefile.create(new FileInputStream(pluginRoot+"resources/exe/x86/o.g/exe_g"),false, monitor); } exepath=new Path(workspace.getRoot().getLocation()+"/filetest/exe_g"); archfile = testProject.getProject().getFile("libtestlib_g.a"); if (!archfile.exists()) { archfile.create(new FileInputStream(pluginRoot+"resources/testlib/x86/a.g/libtestlib_g.a"),false, monitor); } libpath=new Path(workspace.getRoot().getLocation()+"/filetest/libtestlib_g.so"); libfile = testProject.getProject().getFile("libtestlib_g.so"); if (!libfile.exists()) { libfile.create(new FileInputStream(pluginRoot+"resources/testlib/x86/so.g/libtestlib_g.so"),false, monitor); } archpath=new Path(workspace.getRoot().getLocation()+"/filetest/libtestlib_g.a"); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/7e32d05829ae25bb1d9048b6df48d0d47354d980/ArchiveTests.java/buggy/core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/model/tests/ArchiveTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 10792, 1783, 14, 540, 380, 10939, 326, 11191, 1390, 16, 2953, 471, 10137, 716, 854, 3577, 635, 326, 540, 380, 7434, 540, 1195, 202, 202, 780, 1909...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 1435, 1216, 1185, 288, 10792, 1783, 14, 540, 380, 10939, 326, 11191, 1390, 16, 2953, 471, 10137, 716, 854, 3577, 635, 326, 540, 380, 7434, 540, 1195, 202, 202, 780, 1909...
public Vector ejectEntity(Entity entity, boolean autoEject) { Vector vDesc = new Vector(); Report r; // An entity can only eject it's crew once. if (entity.getCrew().isEjected()) return vDesc; // If the crew are already dead, don't bother if(entity.getCrew().isDead() || entity.getCrew().isDoomed()) return vDesc; // Mek pilots may get hurt during ejection, // and run around the board afterwards. if (entity instanceof Mech) { PilotingRollData rollTarget = new PilotingRollData(entity.getId(), entity.getCrew().getPiloting(), "ejecting"); if (entity.isProne()) { rollTarget.addModifier(5, "Mech is prone"); } if (entity.getCrew().isUnconscious()) { rollTarget.addModifier(3, "pilot unconscious"); } if (autoEject) { rollTarget.addModifier(1, "automatic ejection"); } if (entity.getInternal(Mech.LOC_HEAD) < 3) { rollTarget.addModifier(Math.min(3 - entity.getInternal(Mech.LOC_HEAD),2), "Head Internal Structure Damage"); } int facing = entity.getFacing(); Coords targetCoords = entity.getPosition().translated((facing + 3)%6); IHex targetHex = game.getBoard().getHex(targetCoords); if (targetHex != null) { if (targetHex.terrainLevel(Terrains.WATER) > 0 && !(targetHex.containsTerrain(Terrains.ICE))) { rollTarget.addModifier(-1, "landing in water"); } else if (targetHex.containsTerrain(Terrains.ROUGH)) { rollTarget.addModifier(0, "landing in rough"); } else if (targetHex.containsTerrain(Terrains.RUBBLE)) { rollTarget.addModifier(0, "landing in rubble"); } else if (targetHex.terrainLevel(Terrains.WOODS) == 1) { rollTarget.addModifier(2, "landing in light woods"); } else if (targetHex.terrainLevel(Terrains.WOODS) == 2) { rollTarget.addModifier(3, "landing in heavy woods"); } else if (targetHex.terrainLevel(Terrains.WOODS) == 3) { rollTarget.addModifier(4, "landing in ultra heavy woods"); } else if (targetHex.terrainLevel(Terrains.JUNGLE) == 1) { rollTarget.addModifier(3, "landing in light jungle"); } else if (targetHex.terrainLevel(Terrains.JUNGLE) == 2) { rollTarget.addModifier(5, "landing in heavy jungle"); } else if (targetHex.terrainLevel(Terrains.JUNGLE) == 3) { rollTarget.addModifier(7, "landing in ultra heavy jungle"); } else if (targetHex.terrainLevel(Terrains.BLDG_ELEV) > 0) { rollTarget.addModifier(targetHex.terrainLevel(Terrains.BLDG_ELEV), "landing in a building"); } else rollTarget.addModifier(-2, "landing in clear terrain"); } else { rollTarget.addModifier(-2, "landing off the board"); } if (autoEject) { r = new Report(6395); r.subject = entity.getId(); r.addDesc(entity); r.indent(2); r.newlines = 0; vDesc.addElement(r); } // okay, print the info r = new Report(2180); r.subject = entity.getId(); r.addDesc(entity); r.add(rollTarget.getLastPlainDesc(), true); r.indent(3); vDesc.addElement(r); // roll final int diceRoll = Compute.d6(2); r = new Report(2190); r.subject = entity.getId(); r.add(rollTarget.getValueAsString()); r.add(rollTarget.getDesc()); r.add(diceRoll); r.indent(4); r.newlines = 0; // create the MechWarrior in any case, for campaign tracking MechWarrior pilot = new MechWarrior(entity); pilot.setDeployed(true); pilot.setId(getFreeEntityId()); game.addEntity(pilot.getId(), pilot); send(createAddEntityPacket(pilot.getId())); // make him not get a move this turn pilot.setDone(true); if (diceRoll < rollTarget.getValue()) { r.choose(false); vDesc.addElement(r); Report.addNewline(vDesc); Vector v = damageCrew(pilot, 1); if(v.size() > 0) { r = (Report)v.firstElement(); r.indent(3); vDesc.addElement(r); } } else { r.choose(true); vDesc.addElement(r); } if (entity.getCrew().isDoomed()) { vDesc.addAll( destroyEntity(pilot, "deadly ejection", false, false)); } else { // Add the pilot as an infantry unit on the battlefield. if (game.getBoard().contains(targetCoords)) { pilot.setPosition(targetCoords);/* Can pilots eject into water??? ASSUMPTION : They can (because they get a -1 mod to the PSR. // Did the pilot land in water? if ( game.getBoard().getHex( targetCoords).levelOf ( Terrain.WATER ) > 0 ) { //report missing desc.append("and the pilot ejects, but lands in water!!!\n"); //report missing desc.append(destroyEntity( pilot, "a watery grave", false )); } else { //report missing desc.append("and the pilot ejects safely!\n"); }*/ //report safe ejection r = new Report(6400); r.subject = entity.getId(); r.indent(5); vDesc.addElement(r); if (game.getOptions().booleanOption("vacuum")) { //ended up in a vacuum r = new Report(6405); r.subject = entity.getId(); r.indent(3); vDesc.addElement(r); vDesc.addAll( destroyEntity(pilot, "explosive decompression", false, false)); } // Update the entity this.entityUpdate(pilot.getId()); // check if the pilot lands in a minefield doEntityDisplacementMinefieldCheck( pilot, entity.getPosition(), targetCoords ); } else { //ejects safely r = new Report(6410); r.subject = entity.getId(); r.indent(3); vDesc.addElement(r); if (game.getOptions().booleanOption("vacuum")) { //landed in vacuum r = new Report(6405); r.subject = entity.getId(); r.indent(3); vDesc.addElement(r); vDesc.addAll( destroyEntity(pilot, "explosive decompression", false, false)); } else { game.removeEntity( pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send(createRemoveEntityPacket(pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); } } if (game.getOptions().booleanOption("ejected_pilots_flee")) { game.removeEntity(pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT); send(createRemoveEntityPacket(pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT)); } } // Pilot safely ejects. } // End entity-is-Mek // Mark the entity's crew as "ejected". entity.getCrew().setEjected( true ); vDesc.addAll( destroyEntity(entity, "ejection", true, true)); // only remove the unit that ejected manually if (!autoEject) { game.removeEntity( entity.getId(), IEntityRemovalConditions.REMOVE_EJECTED ); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_EJECTED)); } return vDesc; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c2a90fca192b338ebf5162499c52b535aed6382b/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 425, 937, 1943, 12, 1943, 1522, 16, 1250, 3656, 41, 937, 13, 288, 3639, 5589, 331, 4217, 273, 394, 5589, 5621, 3639, 8706, 436, 31, 3639, 368, 1922, 1522, 848, 1338, 425, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5589, 425, 937, 1943, 12, 1943, 1522, 16, 1250, 3656, 41, 937, 13, 288, 3639, 5589, 331, 4217, 273, 394, 5589, 5621, 3639, 8706, 436, 31, 3639, 368, 1922, 1522, 848, 1338, 425, 93...
error(component, resourceKey(component), messageModel(component, input, e), input);
error(component, resourceKey(component), messageModel(component, input, e));
protected void conversionError(final FormComponent component, final String input, final ConversionException e) { error(component, resourceKey(component), messageModel(component, input, e), input); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/2bf94ed8cd84baa44f8b971c69f97c6fff6d51be/TypeValidator.java/buggy/wicket/src/java/wicket/markup/html/form/validation/TypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4105, 668, 12, 6385, 2748, 1841, 1794, 16, 727, 514, 810, 16, 1082, 202, 6385, 16401, 503, 425, 13, 202, 95, 202, 202, 1636, 12, 4652, 16, 1058, 653, 12, 4652, 3631, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4105, 668, 12, 6385, 2748, 1841, 1794, 16, 727, 514, 810, 16, 1082, 202, 6385, 16401, 503, 425, 13, 202, 95, 202, 202, 1636, 12, 4652, 16, 1058, 653, 12, 4652, 3631, 8...
return false;
if (buffer_code == ONE) { if (index_1 + record_size > OUTPUT_BUFFER_SIZE) { if (! consumer.isActive()) { buffer = buffer_2; index = index_2; buffer_code = TWO; activateConsumer(); return true; } else { if(VM_HardwarePerformanceMonitors.verbose>=3) VM.sysWriteln("***VM_HPM.pickBuffer() missed trace record when buffer_code == ONE!***"); missed_records++; buffer = null; return false; } } else { buffer = buffer_1; index = index_1; buffer_code = ONE; return true; } } else if (buffer_code == TWO) { if (index_2 + record_size > OUTPUT_BUFFER_SIZE) { if (! consumer.isActive()) { buffer = buffer_1; index = index_1; buffer_code = ONE; activateConsumer(); return true; } else { if(VM_HardwarePerformanceMonitors.verbose>=3) VM.sysWriteln("***VM_HPM.pickBuffer() missed trace record when buffer_code == TWO!***"); missed_records++; buffer = null; return false; } } else { buffer = buffer_2; index = index_2; buffer_code = TWO; return true; } } else { VM.sysWriteln("***VM_HPM.pickBuffer() buffer_code ",buffer_code," not 1 or 2!***"); return false; }
private boolean pickBuffer(int record_size) { if (active) { if (buffer_code == ONE) { if (index_1 + record_size > OUTPUT_BUFFER_SIZE) { if (! consumer.isActive()) { // swap buffers and activate consumer to write full buffer to disk buffer = buffer_2; index = index_2; buffer_code = TWO; activateConsumer(); return true; } else { if(VM_HardwarePerformanceMonitors.verbose>=3) VM.sysWriteln("***VM_HPM.pickBuffer() missed trace record when buffer_code == ONE!***"); missed_records++; buffer = null; return false; } } else { buffer = buffer_1; index = index_1; buffer_code = ONE; return true; } } else if (buffer_code == TWO) { if (index_2 + record_size > OUTPUT_BUFFER_SIZE) { if (! consumer.isActive()) { // swap buffers and activate consumer to write full buffer to disk buffer = buffer_1; index = index_1; buffer_code = ONE; activateConsumer(); return true; } else { if(VM_HardwarePerformanceMonitors.verbose>=3) VM.sysWriteln("***VM_HPM.pickBuffer() missed trace record when buffer_code == TWO!***"); missed_records++; buffer = null; return false; } } else { buffer = buffer_2; index = index_2; buffer_code = TWO; return true; } } else { VM.sysWriteln("***VM_HPM.pickBuffer() buffer_code ",buffer_code," not 1 or 2!***"); return false; } } if (notifyExit) { notifyExit = false; ((VM_TraceWriter)consumer).notifyExit = true; activateConsumer(); } return false; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/ad7772b91454763e2da77fa2df0e260b01bd3307/VM_HardwarePerformanceMonitor.java/clean/rvm/src/vm/arch/powerPC/runtime/VM_HardwarePerformanceMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 6002, 1892, 12, 474, 1409, 67, 1467, 13, 282, 288, 565, 309, 261, 3535, 13, 288, 1377, 309, 261, 4106, 67, 710, 422, 15623, 13, 288, 202, 430, 261, 1615, 67, 21, 397, 1409...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6002, 1892, 12, 474, 1409, 67, 1467, 13, 282, 288, 565, 309, 261, 3535, 13, 288, 1377, 309, 261, 4106, 67, 710, 422, 15623, 13, 288, 202, 430, 261, 1615, 67, 21, 397, 1409...
final Map sourceValuesByName) {
final String sourceName, final Object sourceValue) {
protected final void fireSourceChanged(final int sourcePriority, final Map sourceValuesByName) { for (int i = 0; i < listenerCount; i++) { final ISourceProviderListener listener = listeners[i]; listener.sourceChanged(sourcePriority, sourceValuesByName); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/AbstractSourceProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/AbstractSourceProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 727, 918, 4452, 1830, 5033, 12, 6385, 509, 1084, 8183, 16, 1082, 202, 6385, 1635, 1084, 1972, 5911, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2991, 1380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 1830, 5033, 12, 6385, 509, 1084, 8183, 16, 1082, 202, 6385, 1635, 1084, 1972, 5911, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2991, 1380...
_t = __t1999;
_t = __t2000;
public final void skipphrase(AST _t) throws RecognitionException { AST skipphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1999 = _t; AST tmp2268_AST_in = (AST)_t; match(_t,SKIP); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { funargs(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1999; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2488, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2488, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2488, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2488, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
fixProviderUrl(props); String cnnFactoryName = props.getProperty(DEFAULT_JNDI_CONECTION_NAME_PROPERTY); if (cnnFactoryName == null) { throw new IOException("You must set the property " + DEFAULT_JNDI_CONECTION_NAME_PROPERTY + "in the JNDI property file"); } Context ctx = new InitialContext(props); Object obj = lookupObject(ctx, cnnFactoryName); QueueConnectionFactory qcf = (QueueConnectionFactory) obj; QueueConnection cnn; String username = (String) props.get("username"); if (username != null) { String password = (String) props.get("password"); cnn = qcf.createQueueConnection(username, password); } else { cnn = qcf.createQueueConnection(); } cnn.start(); return cnn;
return getQueueConnection(getJmsProperties());
public static QueueConnection getQueueConnection(Properties props) throws IOException, NamingException, JMSException { fixProviderUrl(props); String cnnFactoryName = props.getProperty(DEFAULT_JNDI_CONECTION_NAME_PROPERTY); if (cnnFactoryName == null) { throw new IOException("You must set the property " + DEFAULT_JNDI_CONECTION_NAME_PROPERTY + "in the JNDI property file"); } Context ctx = new InitialContext(props); Object obj = lookupObject(ctx, cnnFactoryName); QueueConnectionFactory qcf = (QueueConnectionFactory) obj; QueueConnection cnn; String username = (String) props.get("username"); if (username != null) { String password = (String) props.get("password"); cnn = qcf.createQueueConnection(username, password); } else { cnn = qcf.createQueueConnection(); } cnn.start(); return cnn; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/622797224852514e7991542b9871c6b523288c49/JmsTestUtils.java/buggy/tests/vendor/shared/src/java/main/java/org/mule/test/integration/providers/jms/tools/JmsTestUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 7530, 1952, 19511, 1952, 12, 2297, 3458, 13, 1216, 1860, 16, 26890, 16, 5411, 20343, 565, 288, 3639, 2917, 2249, 1489, 12, 9693, 1769, 3639, 514, 6227, 82, 1733, 461, 273, 3458...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7530, 1952, 19511, 1952, 12, 2297, 3458, 13, 1216, 1860, 16, 26890, 16, 5411, 20343, 565, 288, 3639, 2917, 2249, 1489, 12, 9693, 1769, 3639, 514, 6227, 82, 1733, 461, 273, 3458...
pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE);
RequestUtils.saveException(pageContext, e);
protected String hyperlink() throws JspException { if (linkName != null) return (null); // We are not generating a hyperlink // Validate the number of href specifiers that were specified int n = 0; if (forward != null) n++; if (href != null) n++; if (page != null) n++; if (n != 1) { JspException e = new JspException (messages.getMessage("linkTag.destination")); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } // Start with an unadorned "href" String href = null; // If "href" was specified, use it as is if (this.href != null) { href = this.href; } // If "forward" was specified, compute the "href" to forward to else if (forward != null) { ActionForwards forwards = (ActionForwards) pageContext.getAttribute(Action.FORWARDS_KEY, PageContext.APPLICATION_SCOPE); if (forwards == null) throw new JspException (messages.getMessage("linkTag.forwards")); ActionForward forward = forwards.findForward(this.forward); if (forward == null) throw new JspException (messages.getMessage("linkTag.forward")); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); href = RequestUtils.absoluteURL(request, forward.getPath()); } // If "page" was specified, compute the "href" to forward to else if (page != null) { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); href = RequestUtils.absoluteURL(request, page); } // Append a single-parameter name and value, if requested if ((paramId != null) && (paramName != null)) { if (href.indexOf('?') < 0) href += '?'; else href += '&'; href += paramId; href += '='; Object bean = RequestUtils.lookup(pageContext, paramName, paramScope); if (bean != null) { if (paramProperty == null) href += bean.toString(); else { try { Object value = PropertyUtils.getProperty(bean, paramProperty); if (value != null) href += value.toString(); } catch (IllegalAccessException e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("getter.access", paramProperty, paramName)); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); pageContext.setAttribute(Action.EXCEPTION_KEY, t, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("getter.result", paramProperty, t.toString())); } catch (NoSuchMethodException e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("getter.method", paramProperty, paramName)); } } } } // Just return the "href" attribute if there is no bean to look up if ((property != null) && (name == null)) { JspException e = new JspException (messages.getMessage("getter.name")); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } if (name == null) return (href); // Look up the map we will be using Object bean = RequestUtils.lookup(pageContext, name, scope); if (bean == null) { JspException e = new JspException (messages.getMessage("getter.bean", name)); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } Map map = null; if (property == null) { try { map = (Map) bean; } catch (ClassCastException e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("linkTag.type")); } } else { try { map = (Map) PropertyUtils.getProperty(bean, property); if (map == null) { JspException e = new JspException (messages.getMessage("getter.property", property)); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } } catch (IllegalAccessException e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("getter.access", property, name)); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); pageContext.setAttribute(Action.EXCEPTION_KEY, t, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("getter.result", property, t.toString())); } catch (ClassCastException e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("linkTag.type")); } catch (NoSuchMethodException e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("getter.method", property, name)); } } // Append the required query parameters StringBuffer sb = new StringBuffer(href); boolean question = (href.indexOf("?") >= 0); Iterator keys = map.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); Object value = map.get(key); if (value == null) { if (question) sb.append('&'); else { sb.append('?'); question = true; } sb.append(key); sb.append('='); // Interpret null as "no value specified" } else if (value instanceof String[]) { String values[] = (String[]) value; for (int i = 0; i < values.length; i++) { if (question) sb.append('&'); else { sb.append('?'); question = true; } sb.append(key); sb.append('='); sb.append(URLEncoder.encode(values[i])); } } else { if (question) sb.append('&'); else { sb.append('?'); question = true; } sb.append(key); sb.append('='); sb.append(URLEncoder.encode(value.toString())); } } // Return the final result return (sb.toString()); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/105fdb9cc2b9e505ce7edf3fc25c29464d54d040/LinkTag.java/buggy/src/share/org/apache/struts/taglib/html/LinkTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 9512, 1232, 1435, 1216, 27485, 288, 3639, 309, 261, 1232, 461, 480, 446, 13, 5411, 327, 261, 2011, 1769, 1377, 368, 1660, 854, 486, 12516, 279, 9512, 1232, 3639, 368, 3554, 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, 514, 9512, 1232, 1435, 1216, 27485, 288, 3639, 309, 261, 1232, 461, 480, 446, 13, 5411, 327, 261, 2011, 1769, 1377, 368, 1660, 854, 486, 12516, 279, 9512, 1232, 3639, 368, 3554, 326...
public Object eGet( EStructuralFeature eFeature, boolean resolve )
public Object eGet( int featureID, boolean resolve, boolean coreType )
public Object eGet( EStructuralFeature eFeature, boolean resolve ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.LINE_SERIES__VISIBLE : return isVisible( ) ? Boolean.TRUE : Boolean.FALSE; case TypePackage.LINE_SERIES__LABEL : return getLabel( ); case TypePackage.LINE_SERIES__DATA_DEFINITION : return getDataDefinition( ); case TypePackage.LINE_SERIES__SERIES_IDENTIFIER : return getSeriesIdentifier( ); case TypePackage.LINE_SERIES__DATA_POINT : return getDataPoint( ); case TypePackage.LINE_SERIES__DATA_SETS : return getDataSets( ); case TypePackage.LINE_SERIES__LABEL_POSITION : return getLabelPosition( ); case TypePackage.LINE_SERIES__STACKED : return isStacked( ) ? Boolean.TRUE : Boolean.FALSE; case TypePackage.LINE_SERIES__TRIGGERS : return getTriggers( ); case TypePackage.LINE_SERIES__TRANSLUCENT : return isTranslucent( ) ? Boolean.TRUE : Boolean.FALSE; case TypePackage.LINE_SERIES__CURVE_FITTING : return getCurveFitting( ); case TypePackage.LINE_SERIES__MARKER : return getMarker( ); case TypePackage.LINE_SERIES__LINE_ATTRIBUTES : return getLineAttributes( ); case TypePackage.LINE_SERIES__PALETTE_LINE_COLOR : return isPaletteLineColor( ) ? Boolean.TRUE : Boolean.FALSE; case TypePackage.LINE_SERIES__CURVE : return isCurve( ) ? Boolean.TRUE : Boolean.FALSE; case TypePackage.LINE_SERIES__SHADOW_COLOR : return getShadowColor( ); } return eDynamicGet( eFeature, resolve ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/LineSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/LineSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 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, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202...
svgViewerFrame.getJSVGCanvas().setSVGDocument((SVGDocument)outDoc);
svgViewerFrame.getJSVGCanvas().setSVGDocument(outDoc);
public void handle(ParsedURL purl, JSVGViewerFrame svgViewerFrame) throws Exception { String uri = purl.toString(); TransformerFactory tFactory = TransformerFactory.newInstance(); // First, load the input XML document into a generic DOM tree DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setValidating(false); dbf.setNamespaceAware(true); DocumentBuilder db = dbf.newDocumentBuilder(); Document inDoc = db.parse(uri); // Now, look for <?xml-stylesheet ...?> processing instructions String xslStyleSheetURI = extractXSLProcessingInstruction(inDoc); if (xslStyleSheetURI == null) { // Assume that the input file is a literal result template xslStyleSheetURI = uri; } ParsedURL parsedXSLStyleSheetURI = new ParsedURL(uri, xslStyleSheetURI); Transformer transformer = tFactory.newTransformer (new StreamSource(parsedXSLStyleSheetURI.toString())); // Set the URIResolver to properly handle document() and xsl:include transformer.setURIResolver (new DocumentURIResolver(parsedXSLStyleSheetURI.toString())); // Now, apply the transformation to the input document. DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; // // <!> Due to issues with namespaces, the transform creates the // result in a stream which is parsed. This is sub-optimal // but this was the only solution found to be able to // generate content in the proper namespaces. // // SVGOMDocument outDoc = // (SVGOMDocument)impl.createDocument(svgNS, "svg", null); // outDoc.setURLObject(new URL(uri)); // transformer.transform // (new DOMSource(inDoc), // new DOMResult(outDoc.getDocumentElement())); // StringWriter sw = new StringWriter(); StreamResult result = new StreamResult(sw); transformer.transform(new DOMSource(inDoc), result); sw.flush(); sw.close(); String parser = XMLResourceDescriptor.getXMLParserClassName(); SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser); SVGDocument outDoc = null; try { outDoc = f.createSVGDocument (uri, new StringReader(sw.toString())); } catch (Exception e) { System.err.println("======================================"); System.err.println(sw.toString()); System.err.println("======================================"); throw new IllegalArgumentException (Resources.getString(ERROR_RESULT_GENERATED_EXCEPTION)); } // Patch the result tree to go under the root node // checkAndPatch(outDoc); svgViewerFrame.getJSVGCanvas().setSVGDocument((SVGDocument)outDoc); svgViewerFrame.setSVGDocument(outDoc, uri, outDoc.getTitle()); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/37794489f7dedd0c74c1b7ae67e92cf8d877b256/XMLInputHandler.java/clean/sources/org/apache/batik/apps/svgbrowser/XMLInputHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 12, 11257, 1785, 293, 718, 16, 6756, 9266, 18415, 3219, 9804, 18415, 3219, 13, 1216, 1185, 288, 3639, 514, 2003, 273, 293, 718, 18, 10492, 5621, 3639, 11519, 1733, 268, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 11257, 1785, 293, 718, 16, 6756, 9266, 18415, 3219, 9804, 18415, 3219, 13, 1216, 1185, 288, 3639, 514, 2003, 273, 293, 718, 18, 10492, 5621, 3639, 11519, 1733, 268, 1...
this.username = username;
this.username = username.toLowerCase();
public void setUsername(String username) { this.username = username; }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/b1c5475a6b80f56a2f01f51bc67762095cfbd308/RequestPasswordForm.java/buggy/intermine/src/java/org/intermine/web/RequestPasswordForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 8575, 12, 780, 2718, 13, 288, 3639, 333, 18, 5053, 273, 2718, 18, 869, 5630, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 8575, 12, 780, 2718, 13, 288, 3639, 333, 18, 5053, 273, 2718, 18, 869, 5630, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Node.Nodes parsedPage = null; isEncodingSpecifiedInProlog = false; isBomPresent = false; isDefaultPageEncoding = false;
Node.Nodes parsedPage = null; isEncodingSpecifiedInProlog = false; isBomPresent = false; isDefaultPageEncoding = false;
private Node.Nodes doParse(String inFileName, Node parent, URL jarFileUrl) throws FileNotFoundException, JasperException, IOException { Node.Nodes parsedPage = null; isEncodingSpecifiedInProlog = false; isBomPresent = false; isDefaultPageEncoding = false; JarFile jarFile = getJarFile(jarFileUrl); String absFileName = resolveFileName(inFileName); String jspConfigPageEnc = getJspConfigPageEncoding(absFileName); // Figure out what type of JSP document and encoding type we are // dealing with determineSyntaxAndEncoding(absFileName, jarFile, jspConfigPageEnc); if (parent != null) { // Included resource, add to dependent list compiler.getPageInfo().addDependant(absFileName); } if ((isXml && isEncodingSpecifiedInProlog) || isBomPresent) { /* * Make sure the encoding explicitly specified in the XML * prolog (if any) matches that in the JSP config element * (if any), treating "UTF-16", "UTF-16BE", and "UTF-16LE" as * identical. */ if (jspConfigPageEnc != null && !jspConfigPageEnc.equals(sourceEnc) && (!jspConfigPageEnc.startsWith("UTF-16") || !sourceEnc.startsWith("UTF-16"))) { err.jspError("jsp.error.prolog_config_encoding_mismatch", sourceEnc, jspConfigPageEnc); } } // Dispatch to the appropriate parser if (isXml) { // JSP document (XML syntax) // InputStream for jspx page is created and properly closed in // JspDocumentParser. parsedPage = JspDocumentParser.parse(this, absFileName, jarFile, parent, isTagFile, directiveOnly, sourceEnc, jspConfigPageEnc, isEncodingSpecifiedInProlog, isBomPresent); } else { // Standard syntax InputStreamReader inStreamReader = null; try { inStreamReader = JspUtil.getReader(absFileName, sourceEnc, jarFile, ctxt, err); JspReader jspReader = new JspReader(ctxt, absFileName, sourceEnc, inStreamReader, err); parsedPage = Parser.parse(this, jspReader, parent, isTagFile, directiveOnly, jarFileUrl, sourceEnc, jspConfigPageEnc, isDefaultPageEncoding, isBomPresent); } finally { if (inStreamReader != null) { try { inStreamReader.close(); } catch (Exception any) { } } } } if (jarFile != null) { try { jarFile.close(); } catch (Throwable t) {} } baseDirStack.pop(); return parsedPage; }
15905 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15905/6742cb8e2facefed0a144762d397571cc17eb04d/ParserController.java/clean/java/org/apache/jasper/compiler/ParserController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 18, 3205, 741, 3201, 12, 780, 316, 4771, 16, 1171, 9079, 2029, 982, 16, 1171, 9079, 1976, 22588, 1489, 13, 202, 3639, 1216, 13707, 16, 804, 345, 457, 503, 16, 1860, 288, 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, 3238, 2029, 18, 3205, 741, 3201, 12, 780, 316, 4771, 16, 1171, 9079, 2029, 982, 16, 1171, 9079, 1976, 22588, 1489, 13, 202, 3639, 1216, 13707, 16, 804, 345, 457, 503, 16, 1860, 288, 202...
m_installer.updatePlPgsql(); m_installer.addStoredProcedures();
public void testTriggerSetSnmpInterfaceIdInIpInterfaceNoSnmpInterfaceEntry() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); m_installer.createTables(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); executeSQL("INSERT INTO node (nodeId, nodeCreateTime) VALUES ( 1, now() )"); ThrowableAnticipator ta = new ThrowableAnticipator(); ta.anticipate(new AssertionFailedError("Could not execute statement: 'INSERT INTO ipInterface (nodeId, ipAddr, ifIndex) VALUES ( 1, '1.2.3.4', 1 )': ERROR: IpInterface Trigger Exception: No SnmpInterface found for... nodeid: 1 ipaddr: 1.2.3.4 ifindex: 1")); try { executeSQL("INSERT INTO ipInterface (nodeId, ipAddr, ifIndex) VALUES ( 1, '1.2.3.4', 1 )"); } catch (Throwable t) { ta.throwableReceived(t); } ta.verifyAnticipated(); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/28ec8d0f53c305460681fe922d064c060141774d/InstallerDBTest.java/clean/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6518, 694, 10461, 1291, 1358, 548, 382, 5273, 1358, 2279, 10461, 1291, 1358, 1622, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 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, 377, 1071, 918, 1842, 6518, 694, 10461, 1291, 1358, 548, 382, 5273, 1358, 2279, 10461, 1291, 1358, 1622, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31...
processContentLockingWorkflow(wi, actionCell);
processContentLockingWorkflow(wi, page);
public void processWorkflow(Id workflowId, Id pageId) { Workflow workflow = getWorkflowManager().getWorkflow(workflowId); Cell cell = getCellFromPage(pageId); Collection items = workflow.getItems(); for (Iterator i = items.iterator(); i.hasNext();) { WorkflowItem wi = (WorkflowItem)i.next(); Cell actionCell = this.getMatrixCellByWizardPageDef(cell.getMatrix(), wi.getActionObjectId()); switch (wi.getActionType()) { case(WorkflowItem.STATUS_CHANGE_WORKFLOW): processStatusChangeWorkflow(wi, actionCell); break; case(WorkflowItem.NOTIFICATION_WORKFLOW): processNotificationWorkflow(wi); break; case(WorkflowItem.CONTENT_LOCKING_WORKFLOW): processContentLockingWorkflow(wi, actionCell); break; } } }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/5354523b3f7874920b17de4e92528f56659ee58a/HibernateMatrixManagerImpl.java/clean/matrix/api-impl/src/java/org/theospi/portfolio/matrix/HibernateMatrixManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1207, 8484, 12, 548, 6095, 548, 16, 3124, 18720, 13, 288, 1377, 11363, 6095, 273, 30995, 1318, 7675, 588, 8484, 12, 13815, 548, 1769, 1377, 8614, 2484, 273, 16458, 1265, 1964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1207, 8484, 12, 548, 6095, 548, 16, 3124, 18720, 13, 288, 1377, 11363, 6095, 273, 30995, 1318, 7675, 588, 8484, 12, 13815, 548, 1769, 1377, 8614, 2484, 273, 16458, 1265, 1964, ...
public void unaryExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:615:17: ( INC unaryExpression | DEC unaryExpression | MINUS unaryExpression | PLUS unaryExpression | unaryExpressionNotPlusMinus ) int alt64=5; switch ( input.LA(1) ) { case INC: alt64=1; break; case DEC: alt64=2; break; case MINUS: alt64=3; break; case PLUS: alt64=4; break; case IDENT: case LPAREN: case BNOT: case LNOT: case NUM_INT: case CHAR_LITERAL: case STRING_LITERAL: case NUM_FLOAT: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 93: case 94: case 112: case 113: case 114: case 115: alt64=5; break; default: NoViableAltException nvae = new NoViableAltException("614:1: unaryExpression : ( INC unaryExpression | DEC unaryExpression | MINUS unaryExpression | PLUS unaryExpression | unaryExpressionNotPlusMinus );", 64, 0, input); throw nvae; } switch (alt64) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:615:17: INC unaryExpression { match(input,INC,FOLLOW_INC_in_unaryExpression2437); following.push(FOLLOW_unaryExpression_in_unaryExpression2439); unaryExpression(); following.pop(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:616:17: DEC unaryExpression { match(input,DEC,FOLLOW_DEC_in_unaryExpression2444); following.push(FOLLOW_unaryExpression_in_unaryExpression2446); unaryExpression(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:617:17: MINUS unaryExpression { match(input,MINUS,FOLLOW_MINUS_in_unaryExpression2451); following.push(FOLLOW_unaryExpression_in_unaryExpression2454); unaryExpression(); following.pop(); } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:618:17: PLUS unaryExpression { match(input,PLUS,FOLLOW_PLUS_in_unaryExpression2459); following.push(FOLLOW_unaryExpression_in_unaryExpression2463); unaryExpression(); following.pop(); } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:619:17: unaryExpressionNotPlusMinus { following.push(FOLLOW_unaryExpressionNotPlusMinus_in_unaryExpression2468); unaryExpressionNotPlusMinus(); following.pop(); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 19017, 2300, 1435, 1216, 9539, 288, 282, 775, 288, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 19017, 2300, 1435, 1216, 9539, 288, 282, 775, 288, 759, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19,...
return ("ContainerEvent[" + child + ";" + super.paramString () + "]");
String r; switch (id) { case COMPONENT_ADDED: r = "COMPONENT_ADDED"; break; case COMPONENT_REMOVED: r = "COMPONENT_REMOVED"; break; default: r = "unknown id"; break; } r += ",child=" + child; return r;
public String paramString () { return ("ContainerEvent[" + child + ";" + super.paramString () + "]"); }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/42de8277e53eabea04a48598c12ed6d488412a7b/ContainerEvent.java/clean/libjava/java/awt/event/ContainerEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 579, 780, 1832, 225, 288, 565, 327, 7566, 2170, 1133, 9614, 397, 1151, 202, 565, 397, 11430, 397, 2240, 18, 891, 780, 1832, 397, 9870, 1769, 225, 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, 282, 1071, 514, 579, 780, 1832, 225, 288, 565, 327, 7566, 2170, 1133, 9614, 397, 1151, 202, 565, 397, 11430, 397, 2240, 18, 891, 780, 1832, 397, 9870, 1769, 225, 289, 2, -100, -100, -100, -1...
public int getWaitingThread() {
public int getWaitingThread() {
public int getWaitingThread() { return _threadPool.getIdleThreads(); }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/9b2e41409583e68ab8b180ec394bc683eae49696/JettyPipeline.java/buggy/trunk/extras/grizzly/src/main/java/org/mortbay/jetty/grizzly/JettyPipeline.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 336, 15946, 3830, 1435, 288, 4202, 327, 225, 389, 5930, 2864, 18, 588, 13834, 13233, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 336, 15946, 3830, 1435, 288, 4202, 327, 225, 389, 5930, 2864, 18, 588, 13834, 13233, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...