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
if ( "solid".equalsIgnoreCase(borders[i].borderStyle) ) { if (null == solid) { solid = new ArrayList(); } solid.add(borders[i]); } if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) )
else if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) )
private void drawBorder(BorderInfo[] borders) { //double>solid>dashed>dotted>none ArrayList dbl = null; ArrayList solid = null; ArrayList dashed = null; ArrayList dotted = null; for(int i=0; i<borders.length; i++) { if ( "double".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dbl) { dbl = new ArrayList(); } dbl.add(borders[i]); } if ( "solid".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == solid) { solid = new ArrayList(); } solid.add(borders[i]); } if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dashed) { dashed = new ArrayList(); } dashed.add(borders[i]); } if ( "dotted".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dotted) { dotted = new ArrayList(); } dotted.add(borders[i]); } } if ( null != dotted ) { for (Iterator it=dotted.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "dotted", cb ); //$NON-NLS-1$ } } if ( null != dashed ) { for (Iterator it=dashed.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "dashed", cb ); //$NON-NLS-1$ } } if ( null != solid ) { for (Iterator it=solid.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ } } if ( null != dbl ) { for (Iterator it=dbl.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); int outerBorderWidth=bi.borderWidth/3, innerBorderWidth=bi.borderWidth/3; switch (bi.borderType) { case BorderInfo.TOP_BORDER: drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY-bi.borderWidth/2+outerBorderWidth/2 ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+2*borders[BorderInfo.LEFT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.startY+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointX2PDF( bi.endX-2*borders[BorderInfo.RIGHT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.endY+bi.borderWidth/2-innerBorderWidth/2 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.RIGHT_BORDER: drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointY2PDF( bi.startY+2*borders[BorderInfo.TOP_BORDER].borderWidth/3 ), layoutPointX2PDF( bi.endX-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointY2PDF( bi.endY-2*borders[BorderInfo.BOTTOM_BORDER].borderWidth/3 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.BOTTOM_BORDER: drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY+bi.borderWidth/2-outerBorderWidth/2 ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+2*borders[BorderInfo.LEFT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.startY-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointX2PDF( bi.endX-2*borders[BorderInfo.RIGHT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.endY-bi.borderWidth/2+innerBorderWidth/2 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.LEFT_BORDER: drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointY2PDF( bi.startY+2*borders[BorderInfo.TOP_BORDER].borderWidth/3 ), layoutPointX2PDF( bi.endX+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointY2PDF( bi.endY-2*borders[BorderInfo.BOTTOM_BORDER].borderWidth/3 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; } } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e18d58fe2fd81052ce23c4a1d562fba26e7d1aaf/PDFEmitter.java/buggy/engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 3724, 8107, 12, 8107, 966, 8526, 24028, 13, 202, 202, 95, 1082, 202, 759, 9056, 34, 30205, 34, 72, 13912, 34, 9811, 2344, 34, 6102, 1082, 202, 19558, 1319, 80, 273, 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, 3196, 202, 1152, 918, 3724, 8107, 12, 8107, 966, 8526, 24028, 13, 202, 202, 95, 1082, 202, 759, 9056, 34, 30205, 34, 72, 13912, 34, 9811, 2344, 34, 6102, 1082, 202, 19558, 1319, 80, 273, 446...
public DefinitionsPane(MainFrame mf, GlobalModel model, OpenDefinitionsDocument doc) { _mainFrame = mf; _model = model; _doc = doc; setDocument(_doc); setContentType("text/java"); //setFont(new Font("Courier", 0, 12)); Font mainFont = DrJava.getConfig().getSetting(FONT_MAIN); setFont(mainFont); //setSize(new Dimension(1024, 1000)); setEditable(true); // add actions for indent key Keymap ourMap = addKeymap("INDENT_KEYMAP", getKeymap()); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), _indentKeyActionLine); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), _indentKeyActionTab); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke('}'), _indentKeyActionSquiggly); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke('{'), _indentKeyActionOpenSquiggly); ourMap.addActionForKeyStroke(KeyStroke.getKeyStroke(':'), _indentKeyActionColon); setKeymap(ourMap); //this.setEditorKit(new StyledEditorKit()); // Add listener that checks if position in the document has changed. // If it has changed, check and see if we should be highlighting matching braces. this.addCaretListener(_matchListener); if (CodeStatus.DEVELOPMENT) { _antiAliasText = DrJava.getConfig().getSetting(TEXT_ANTIALIAS).booleanValue(); } // Setup the color listeners. new ForegroundColorListener(this); new BackgroundColorListener(this); DrJava.getConfig().addOptionListener( OptionConstants.DEFINITIONS_MATCH_COLOR, new MatchColorOptionListener()); DrJava.getConfig().addOptionListener( OptionConstants.COMPILER_ERROR_COLOR, new ErrorColorOptionListener()); DrJava.getConfig().addOptionListener( OptionConstants.DEBUG_BREAKPOINT_COLOR, new BreakpointColorOptionListener()); DrJava.getConfig().addOptionListener( OptionConstants.DEBUG_THREAD_COLOR, new ThreadColorOptionListener()); if (CodeStatus.DEVELOPMENT) { DrJava.getConfig().addOptionListener( OptionConstants.TEXT_ANTIALIAS, new AntiAliasOptionListener()); } createPopupMenu(); //Add listener to components that can bring up popup menus. _popupMenuMA = new PopupMenuMouseAdapter(); this.addMouseListener( _popupMenuMA ); _highlightManager = new HighlightManager(this); int rate = this.getCaret().getBlinkRate(); // Change the caret to one that doesn't remove selection highlighting when focus is lost. // Fixes bug #788295 "No highlight when find/replace switches docs". this.setCaret(new DefaultCaret() { public void focusLost(FocusEvent e) { setVisible(false); } }); this.getCaret().setBlinkRate(rate); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/310ad6d573c9d5b05b96345b8e88424e666118bd/DefinitionsPane.java/clean/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10849, 87, 8485, 12, 6376, 3219, 14749, 16, 7682, 8510, 1488, 938, 16, 7682, 3502, 7130, 2519, 997, 13, 225, 288, 565, 389, 5254, 3219, 273, 14749, 31, 565, 389, 2284, 273, 938, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10849, 87, 8485, 12, 6376, 3219, 14749, 16, 7682, 8510, 1488, 938, 16, 7682, 3502, 7130, 2519, 997, 13, 225, 288, 565, 389, 5254, 3219, 273, 14749, 31, 565, 389, 2284, 273, 938, 3...
case COMPLEX :
case COMPLEX:
protected void control(IWContext iwc)throws RemoteException,FinderException { service =getBuildingService(iwc); outerTable = new Table(1, 2); outerTable.setCellpadding(0); outerTable.setCellspacing(0); outerTable.setWidth("100%"); outerTable.setHeight("100%"); outerTable.setHeight(2, "100%"); // outerTable.setColor(1,1,"#0E2456"); int iAction = BUILDING; if (iwc.getParameter(sAction) != null) { iAction = Integer.parseInt(iwc.getParameter(sAction)); } if (iwc.getParameter("dr_id") != null) { eId = Integer.valueOf(iwc.getParameter("dr_id")); } else if ((String) iwc.getSessionAttribute("dr_id") != null) { eId = Integer.valueOf((String) iwc.getSessionAttribute("dr_id")); iwc.removeSessionAttribute("dr_id"); } //System.err.println("Entity id " + eId); if (iwc.getParameter(prmSave) != null || iwc.getParameter(prmSave + ".x") != null) { if (iwc.getParameter("bm_choice") != null) { int i = Integer.parseInt(iwc.getParameter("bm_choice")); if (iwc.isParameterSet("delete_text")) { textId = null; } else if (iwc.isParameterSet("txt_id")) { try { textId = Integer.valueOf(iwc.getParameter("txt_id")); } catch (Exception ex) { textId = null; } } switch (i) { case COMPLEX : storeComplex(iwc); break; case BUILDING : storeBuilding(iwc); break; case FLOOR : storeFloor(iwc); break; case APARTMENT : storeApartment(iwc); break; case CATEGORY : storeApartmentCategory(iwc); break; case TYPE : storeApartmentType(iwc); break; } } } else if (iwc.getParameter(prmDelete) != null || iwc.getParameter(prmDelete + ".x") != null) { if (iwc.getParameter("bm_choice") != null && eId.intValue() > 0) { int i = Integer.parseInt(iwc.getParameter("bm_choice")); switch (i) { case COMPLEX : service.removeComplex(eId); break; case BUILDING : service.removeBuilding(eId); break; case FLOOR : service.removeFloor(eId); break; case APARTMENT : service.removeApartment(eId); break; case CATEGORY : service.removeApartmentCategory(eId); break; case TYPE : service.removeApartmentType(eId); break; } eId = null; //BuildingCacher.setToReloadNextTimeReferenced(); } } if (includeLinks) outerTable.add(makeLinkTable(iAction), 1, 1); switch (iAction) { case COMPLEX : doComplex(iwc); break; case BUILDING : doBuilding(iwc); break; case FLOOR : doFloor(iwc); break; case APARTMENT : doApartment(iwc); break; case CATEGORY : doCategory(iwc); break; case TYPE : doType(iwc); break; } add(outerTable); }
57352 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57352/f4ed842fa82d9ac1ea871a201abfe3132c20e560/BuildingEditor.java/buggy/src/java/com/idega/block/building/presentation/BuildingEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3325, 12, 45, 59, 1042, 25522, 71, 13, 15069, 18361, 16, 8441, 503, 288, 202, 202, 3278, 273, 588, 16713, 1179, 12, 22315, 71, 1769, 202, 202, 14068, 1388, 273, 394, 355...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3325, 12, 45, 59, 1042, 25522, 71, 13, 15069, 18361, 16, 8441, 503, 288, 202, 202, 3278, 273, 588, 16713, 1179, 12, 22315, 71, 1769, 202, 202, 14068, 1388, 273, 394, 355...
IEditorPart editor = commonNavigator.getSite().getPage() .getActiveEditor(); if(editor != null) { IEditorInput input = editor.getEditorInput(); ILinkHelper[] helpers = linkService.getLinkHelpersFor(input); IStructuredSelection selection = StructuredSelection.EMPTY; IStructuredSelection newSelection = StructuredSelection.EMPTY; for (int i = 0; i < helpers.length; i++) { selection = helpers[i].findSelection(input); if (selection != null && !selection.isEmpty()) { newSelection = mergeSelection(newSelection, selection);
IWorkbenchPage page = commonNavigator.getSite().getPage(); if(page != null) { IEditorPart editor = page.getActiveEditor(); if(editor != null) { IEditorInput input = editor.getEditorInput(); ILinkHelper[] helpers = linkService.getLinkHelpersFor(input); IStructuredSelection selection = StructuredSelection.EMPTY; IStructuredSelection newSelection = StructuredSelection.EMPTY; for (int i = 0; i < helpers.length; i++) { selection = helpers[i].findSelection(input); if (selection != null && !selection.isEmpty()) { newSelection = mergeSelection(newSelection, selection); }
public IStatus runInUIThread(IProgressMonitor monitor) { try { IEditorPart editor = commonNavigator.getSite().getPage() .getActiveEditor(); if(editor != null) { IEditorInput input = editor.getEditorInput(); ILinkHelper[] helpers = linkService.getLinkHelpersFor(input); IStructuredSelection selection = StructuredSelection.EMPTY; IStructuredSelection newSelection = StructuredSelection.EMPTY; for (int i = 0; i < helpers.length; i++) { selection = helpers[i].findSelection(input); if (selection != null && !selection.isEmpty()) { newSelection = mergeSelection(newSelection, selection); } } if(!newSelection.isEmpty()) { commonNavigator.selectReveal(newSelection); } } } catch (Throwable e) { String msg = e.getMessage() != null ? e.getMessage() : e.toString(); NavigatorPlugin.logError(0, msg, e); } return Status.OK_STATUS; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/00fec3adb998199d572c723bc756e3be36370b66/LinkEditorAction.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/actions/LinkEditorAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 698, 288, 4697, 202, 45, 6946, 1988, 4858, 273, 2975, 22817, 18, 588, 4956, 7675, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 698, 288, 4697, 202, 45, 6946, 1988, 4858, 273, 2975, 22817, 18, 588, 4956, 7675, 588, ...
final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager styleManager = psiManager.getCodeStyleManager();
public void applyFix(Project project, ProblemDescriptor descriptor) { final PsiElement leftBrace = descriptor.getPsiElement(); final PsiCodeBlock block = (PsiCodeBlock) leftBrace.getParent(); final PsiBlockStatement blockStatement = (PsiBlockStatement) block.getParent(); final PsiElement containingElement = blockStatement.getParent(); try { final PsiManager psiManager = PsiManager.getInstance(project); final CodeStyleManager styleManager = psiManager.getCodeStyleManager(); final PsiElement[] children = block.getChildren(); for (int i = 1; i < children.length - 1; i++) { final PsiElement child = children[i]; final PsiElement childCopy = child.copy(); final PsiElement copiedElement = containingElement.addBefore(childCopy, blockStatement); styleManager.reformat(copiedElement); } blockStatement.delete(); styleManager.reformat(containingElement); } catch (IncorrectOperationException e) { final Class aClass = getClass(); final String className = aClass.getName(); final Logger logger = Logger.getInstance(className); logger.error(e); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3d1f98a3c250af05c4778fcb4219487181e75099/UnnecessaryBlockStatementInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/UnnecessaryBlockStatementInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2230, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 288, 5411, 727, 453, 7722, 1046, 2002, 21965, 273, 4950, 18, 588, 52, 7722, 1046, 5621, 5411, 727, 453, 7722, 1085, 1768,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 288, 5411, 727, 453, 7722, 1046, 2002, 21965, 273, 4950, 18, 588, 52, 7722, 1046, 5621, 5411, 727, 453, 7722, 1085, 1768,...
SelectionChoiceDialog dialog = new SelectionChoiceDialog( Messages.getString("ParameterDialog.SelectionDialog.Edit") );
SelectionChoiceDialog dialog = new SelectionChoiceDialog( Messages.getString( "ParameterDialog.SelectionDialog.Edit" ) );
public boolean editItem( final Object element ) { final SelectionChoice choice = (SelectionChoice) element; boolean isDefault = isDefaultChoice( choice ); SelectionChoiceDialog dialog = new SelectionChoiceDialog( Messages.getString("ParameterDialog.SelectionDialog.Edit") ); //$NON-NLS-1$ dialog.setInput( choice ); dialog.setValidator( new SelectionChoiceDialog.ISelectionChoiceValidator( ) { public String validate( String displayLabel, String value ) { return validateChoice( choice, displayLabel, value ); } } ); if ( dialog.open( ) == Dialog.OK ) { choice.setValue( convertToStandardFormat( choice.getValue( ) ) ); if ( isDefault ) { defaultValue = choice.getValue( ); } return true; } return false; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/05eaa07ecbd0b690fd917d050b42db71034caf5d/ParameterDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 3874, 1180, 12, 727, 1033, 930, 262, 202, 202, 95, 1082, 202, 6385, 12977, 10538, 6023, 273, 261, 6233, 10538, 13, 930, 31, 1082, 202, 6494, 20652, 273, 20652, 10538, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 3874, 1180, 12, 727, 1033, 930, 262, 202, 202, 95, 1082, 202, 6385, 12977, 10538, 6023, 273, 261, 6233, 10538, 13, 930, 31, 1082, 202, 6494, 20652, 273, 20652, 10538, 12,...
String name = identifier.getText(); if (name != null) { name = variableNameToPropertyName(name, VariableKind.PARAMETER); String[] names = getSuggestionsByName(name, variableKind, false); return new NamesByExprInfo(names, name);
if (identifier != null) { String name = identifier.getText(); if (name != null) { name = variableNameToPropertyName(name, VariableKind.PARAMETER); String[] names = getSuggestionsByName(name, variableKind, false); return new NamesByExprInfo(names, name); }
private NamesByExprInfo suggestVariableNameByExpressionPlace(PsiExpression expr, final VariableKind variableKind) { if (expr.getParent() instanceof PsiExpressionList) { PsiExpressionList list = (PsiExpressionList)expr.getParent(); PsiElement listParent = list.getParent(); PsiMethod method = null; if (listParent instanceof PsiMethodCallExpression) { method = (PsiMethod)((PsiMethodCallExpression)listParent).getMethodExpression().resolve(); } else { if (listParent instanceof PsiAnonymousClass) { listParent = listParent.getParent(); } if (listParent instanceof PsiNewExpression) { method = ((PsiNewExpression)listParent).resolveConstructor(); } } if (method != null) { method = (PsiMethod)method.getNavigationElement(); PsiExpression[] expressions = list.getExpressions(); int index = -1; for (int i = 0; i < expressions.length; i++) { if (expressions[i] == expr) { index = i; break; } } PsiParameter[] parms = method.getParameterList().getParameters(); if (index < parms.length) { PsiIdentifier identifier = parms[index].getNameIdentifier(); String name = identifier.getText(); if (name != null) { name = variableNameToPropertyName(name, VariableKind.PARAMETER); String[] names = getSuggestionsByName(name, variableKind, false); return new NamesByExprInfo(names, name); } } } } return new NamesByExprInfo(ArrayUtil.EMPTY_STRING_ARRAY, null); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6d40cf12d74af780a66ff70596bdbc90b632d82c/CodeStyleManagerImpl.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5276, 858, 4742, 966, 19816, 21519, 858, 2300, 6029, 12, 52, 7722, 2300, 3065, 16, 727, 7110, 5677, 2190, 5677, 13, 288, 565, 309, 261, 8638, 18, 588, 3054, 1435, 1276, 453, 7722, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5276, 858, 4742, 966, 19816, 21519, 858, 2300, 6029, 12, 52, 7722, 2300, 3065, 16, 727, 7110, 5677, 2190, 5677, 13, 288, 565, 309, 261, 8638, 18, 588, 3054, 1435, 1276, 453, 7722, ...
this.systemId = systemId; parse( new BufferedReader ( new AnselInputStreamReader ( (new URL(systemId)).openStream() ) ) ); }
this.systemId = systemId; parse(new BufferedReader( new AnselInputStreamReader( (new URL(systemId)).openStream()))); }
public void parse(String systemId) throws SAXException, IOException { this.systemId = systemId; parse( new BufferedReader ( new AnselInputStreamReader ( (new URL(systemId)).openStream() ) ) ); }
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/7b30da2f47cbda6e16406770c133332adb1b4079/GedcomParser.java/buggy/MacPAF/src/gedml/GedcomParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 12, 780, 30083, 13, 1216, 14366, 16, 1860, 288, 3639, 333, 18, 4299, 548, 273, 30083, 31, 3639, 1109, 12, 394, 10633, 261, 10792, 394, 1922, 1786, 4348, 2514, 261, 13491,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 12, 780, 30083, 13, 1216, 14366, 16, 1860, 288, 3639, 333, 18, 4299, 548, 273, 30083, 31, 3639, 1109, 12, 394, 10633, 261, 10792, 394, 1922, 1786, 4348, 2514, 261, 13491,...
if (isLeader(thisAgent)) {
if (thisAgent.equals(preferredLeader())) {
public void execute() { if ((wakeAlarm != null) && ((wakeAlarm.hasExpired()))) { if (isLeader(thisAgent)) { logger.info(statusSummary()); checkCommunityReady(); checkLoadBalance(); } wakeAlarm = new WakeAlarm((new Date()).getTime() + STATUS_INTERVAL); alarmService.addRealTimeAlarm(wakeAlarm); } }
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/da81c74aab1eaf4f1866c47f89194a08ab5ab145/DefaultRobustnessController.java/buggy/mgmt_agent/src/org/cougaar/tools/robustness/ma/controllers/DefaultRobustnessController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 1435, 288, 565, 309, 14015, 91, 911, 16779, 480, 446, 13, 597, 3639, 14015, 91, 911, 16779, 18, 5332, 10556, 1435, 20349, 288, 1377, 309, 261, 2211, 3630, 18, 14963, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 1435, 288, 565, 309, 14015, 91, 911, 16779, 480, 446, 13, 597, 3639, 14015, 91, 911, 16779, 18, 5332, 10556, 1435, 20349, 288, 1377, 309, 261, 2211, 3630, 18, 14963, 12, ...
this.padding = " ";
this.padding = GrouperConfig.EMPTY_STRING;
protected XmlWriter(Writer w) { this.newLine = GrouperConfig.NL; this.padding = " "; this.w = w; } // protected XmlWriter(w)
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/8ecf60cad0e72d2183ff0185a8b3e6484b3c60c5/XmlWriter.java/buggy/grouper/src/grouper/edu/internet2/middleware/grouper/XmlWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5714, 2289, 12, 2289, 341, 13, 288, 565, 333, 18, 2704, 1670, 225, 273, 3756, 264, 809, 18, 24924, 31, 565, 333, 18, 9598, 225, 273, 3756, 264, 809, 18, 13625, 67, 5804, 31, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5714, 2289, 12, 2289, 341, 13, 288, 565, 333, 18, 2704, 1670, 225, 273, 3756, 264, 809, 18, 24924, 31, 565, 333, 18, 9598, 225, 273, 3756, 264, 809, 18, 13625, 67, 5804, 31, 565...
exportElement( contentHandle, false );
exportElement( contentHandle, canOverride );
void exportDesign( ReportDesignHandle designToExport ) throws SemanticException { ModelUtil.duplicateProperties( designToExport, targetLibraryHandle, false ); // Copy the contents in design file. int slotCount = designToExport.getDefn( ).getSlotCount( ); for ( int i = 0; i < slotCount; i++ ) { SlotHandle sourceSlotHandle = designToExport.getSlot( i ); Iterator iter = sourceSlotHandle.iterator( ); while ( iter.hasNext( ) ) { DesignElementHandle contentHandle = (DesignElementHandle) iter .next( ); if ( !StringUtil.isBlank( contentHandle.getName( ) ) ) exportElement( contentHandle, false ); } } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/52e6185e9c5e6224a528b3b882b626f8cc757c6a/ElementExporter.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/ElementExporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3359, 15478, 12, 8706, 15478, 3259, 8281, 774, 6144, 262, 1082, 202, 15069, 24747, 503, 202, 95, 202, 202, 1488, 1304, 18, 17342, 2297, 12, 8281, 774, 6144, 16, 1018, 9313, 325...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3359, 15478, 12, 8706, 15478, 3259, 8281, 774, 6144, 262, 1082, 202, 15069, 24747, 503, 202, 95, 202, 202, 1488, 1304, 18, 17342, 2297, 12, 8281, 774, 6144, 16, 1018, 9313, 325...
if(A_OpenCms.isLogging()) {
if((A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) {
public CmsLauncherManager() throws CmsException { String launcherPackage = getLauncherPackage(); Class launcherClass = null; I_CmsLauncher launcherInstance = null; Integer launcherId = null; // Initialize Hashtable launchers = new Hashtable(); A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INIT, "[CmsLauncherManager] launcher package is:" + launcherPackage); // try to load launcher classes. for(int i = 0;i < C_KNOWN_LAUNCHERS.length;i++) { try { launcherClass = Class.forName(launcherPackage + "." + C_KNOWN_LAUNCHERS[i]); launcherInstance = (I_CmsLauncher)launcherClass.newInstance(); } catch(Throwable e) { if(e instanceof ClassNotFoundException) { // The launcher class could not be loaded. // This is no critical error. // We assume the launcher should not be integrated into the OpenCms system. if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] OpenCms launcher \"" + C_KNOWN_LAUNCHERS[i] + "\" not found. Ignoring."); } continue; } else { if(e instanceof ClassCastException) { // The launcher could be loaded but doesn't implement the interface // I_CmsLauncher. // So this class is anything, but NOT a OpenCms launcher. // We have to stop the system. String errorMessage = "Loaded launcher class \"" + C_KNOWN_LAUNCHERS[i] + "\" is no OpenCms launcher (does not implement I_CmsLauncher). Ignoring"; if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + errorMessage); } continue; } else { String errorMessage = "Unknown error while initializing launcher \"" + C_KNOWN_LAUNCHERS[i] + "\". Ignoring."; if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + errorMessage); A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + e); } continue; } } } // Now the launcher class was loaded successfully. // Let's check the launcher ID launcherId = new Integer(launcherInstance.getLauncherId()); if(launchers.containsKey(launcherId)) { String errorMessage = "Duplicate launcher ID " + launcherId + " in launcher \"" + C_KNOWN_LAUNCHERS[i] + "\"."; if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] " + errorMessage); } throw new CmsException(errorMessage, CmsException.C_LAUNCH_ERROR); } // Now everything is fine. // We can store the launcher in our Hashtable. launchers.put(launcherId, launcherInstance); if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INIT, "[CmsLauncherManager] OpenCms launcher \"" + C_KNOWN_LAUNCHERS[i] + "\" with launcher ID " + launcherId + " loaded successfully."); } } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/CmsLauncherManager.java/buggy/src/com/opencms/launcher/CmsLauncherManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2149, 28820, 1318, 1435, 1216, 11228, 288, 3639, 514, 26618, 2261, 273, 9014, 4760, 264, 2261, 5621, 3639, 1659, 26618, 797, 273, 446, 31, 3639, 467, 67, 4747, 28820, 26618, 1442, 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, 2149, 28820, 1318, 1435, 1216, 11228, 288, 3639, 514, 26618, 2261, 273, 9014, 4760, 264, 2261, 5621, 3639, 1659, 26618, 797, 273, 446, 31, 3639, 467, 67, 4747, 28820, 26618, 1442, 273...
public org.quickfix.field.SignatureLength get(org.quickfix.field.SignatureLength value)
public quickfix.field.SignatureLength get(quickfix.field.SignatureLength value)
public org.quickfix.field.SignatureLength get(org.quickfix.field.SignatureLength value) throws FieldNotFound { getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Message.java/buggy/src/java/src/quickfix/fix43/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9549, 904, 18, 1518, 18, 5374, 1782, 336, 12, 19525, 904, 18, 1518, 18, 5374, 1782, 225, 460, 13, 1377, 1216, 2286, 2768, 565, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9549, 904, 18, 1518, 18, 5374, 1782, 336, 12, 19525, 904, 18, 1518, 18, 5374, 1782, 225, 460, 13, 1377, 1216, 2286, 2768, 565, 288, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -...
return s47;
return s49;
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 25: return s34; case 24: return s47; case EOL: case 15: return s99; default: NoViableAltException nvae = new NoViableAltException("", 4, 99, input); throw nvae; } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/8c3be0baa8712893e2dea6fbb679cbb7e80de372/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 6969, 30, 10792, 327, 272, 5026, 31, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 6969, 30, 10792, 327, 272, 5026, 31, 7734, ...
int graphConnectionStyle= getCastedModel().getGraphModel().getConnectionStyle();
private boolean isDirected() { int graphConnectionStyle= getCastedModel().getGraphModel().getConnectionStyle(); int connectionStyle = getCastedModel().getConnectionStyle(); if (ZestStyles.checkStyle(connectionStyle, ZestStyles.CONNECTIONS_DIRECTED)) { return true; } else if (ZestStyles.checkStyle(graphConnectionStyle, ZestStyles.CONNECTIONS_DIRECTED)) { return true; } return false; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4d8505f94ad9a568ae6ca572f130b5b217a63299/GraphConnectionEditPart.java/clean/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/graphviewer/parts/GraphConnectionEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 353, 5368, 329, 1435, 288, 202, 202, 474, 2667, 1952, 2885, 33, 1927, 689, 329, 1488, 7675, 588, 4137, 1488, 7675, 588, 1952, 2885, 5621, 202, 202, 474, 1459, 2885, 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, 225, 202, 1152, 1250, 353, 5368, 329, 1435, 288, 202, 202, 474, 2667, 1952, 2885, 33, 1927, 689, 329, 1488, 7675, 588, 4137, 1488, 7675, 588, 1952, 2885, 5621, 202, 202, 474, 1459, 2885, 273, ...
private static final String propToString(int propType) {
private static final String propToString(int propType) {
private static final String propToString(int propType) { if (Token.printTrees) { // If Context.printTrees is false, the compiler // can remove all these strings. switch (propType) { case FUNCTION_PROP: return "function"; case LOCAL_PROP: return "local"; case LOCAL_BLOCK_PROP: return "local_block"; case REGEXP_PROP: return "regexp"; case CASES_PROP: return "cases"; case DEFAULT_PROP: return "default"; case CASEARRAY_PROP: return "casearray"; case SPECIAL_PROP_PROP: return "special_prop"; case TARGETBLOCK_PROP: return "targetblock"; case VARIABLE_PROP: return "variable"; case ISNUMBER_PROP: return "isnumber"; case DIRECTCALL_PROP: return "directcall"; case SPECIALCALL_PROP: return "specialcall"; default: Kit.codeBug(); } } return null; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/6d458931ee3299fbfab0e9840614ad9b93413dd4/Node.java/buggy/src/org/mozilla/javascript/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 2270, 5808, 12, 474, 2270, 559, 13, 288, 3639, 309, 261, 1345, 18, 1188, 26590, 13, 288, 5411, 368, 971, 1772, 18, 1188, 26590, 353, 629, 16, 326, 5274, 5411, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 2270, 5808, 12, 474, 2270, 559, 13, 288, 3639, 309, 261, 1345, 18, 1188, 26590, 13, 288, 5411, 368, 971, 1772, 18, 1188, 26590, 353, 629, 16, 326, 5274, 5411, 368, ...
List subTasks = launcher.getMigrationProcess().getMigrationTasks();
List subTasks = subLauncher.getMigrationProcess().getMigrationTasks();
public LinkedHashMap getMigrationTasksWithLaunchers() throws MigrationException { LinkedHashMap tasks = new LinkedHashMap(); for (Iterator controlledSystemIter = getControlledSystems().keySet().iterator(); controlledSystemIter.hasNext();) { String controlledSystemName = (String)controlledSystemIter.next(); JdbcMigrationLauncher launcher = (JdbcMigrationLauncher)getControlledSystems().get(controlledSystemName); List subTasks = launcher.getMigrationProcess().getMigrationTasks(); log.info("Found " + subTasks.size() + " for system " + controlledSystemName); if (log.isDebugEnabled()) { for (Iterator subTaskIter = subTasks.iterator(); subTaskIter.hasNext();) { MigrationTask task = (MigrationTask)subTaskIter.next(); log.debug("\tFound subtask " + task.getName()); tasks.put(task, launcher); } } } // Its difficult to tell what's going on when you don't see any patches. // This will help people realize they don't have patches, and perhaps // help them discover why. if (tasks.size() == 0) { log.info("No patches were discovered in your classpath. " + "Run with DEBUG logging enabled for patch search details."); } return tasks; }
49460 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49460/592a37bfb2de892342bf37e9df66da289b3d5087/DistributedMigrationProcess.java/buggy/migrate/src/java/com/tacitknowledge/util/migration/DistributedMigrationProcess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13589, 2108, 6574, 6685, 1190, 9569, 414, 1435, 1216, 15309, 503, 565, 288, 3639, 13589, 4592, 273, 394, 13589, 5621, 7734, 364, 261, 3198, 25934, 3163, 2360, 273, 27174, 1259, 31072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13589, 2108, 6574, 6685, 1190, 9569, 414, 1435, 1216, 15309, 503, 565, 288, 3639, 13589, 4592, 273, 394, 13589, 5621, 7734, 364, 261, 3198, 25934, 3163, 2360, 273, 27174, 1259, 31072, ...
}
} if (!mURLString.startsWith("http: { mURLString = "http: }
public void setURLString (String val) { mURLString = val; //-- needs to have a trailing slash --- if (!mURLString.endsWith("/")) { mURLString = mURLString + "/"; } mLoggedIn = false; }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/5eac56f05beec621669e245a56940ea16a1fe900/GalleryComm.java/buggy/com/gallery/GalleryRemote/GalleryComm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1785, 780, 261, 780, 1244, 13, 288, 202, 202, 81, 1785, 780, 273, 1244, 31, 9506, 202, 759, 413, 4260, 358, 1240, 279, 7341, 9026, 9948, 202, 202, 430, 16051, 81, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1785, 780, 261, 780, 1244, 13, 288, 202, 202, 81, 1785, 780, 273, 1244, 31, 9506, 202, 759, 413, 4260, 358, 1240, 279, 7341, 9026, 9948, 202, 202, 430, 16051, 81, ...
throws Exception {
throws Exception {
private double estimateAccuracy(BitSet feature_set, int num_atts) throws Exception { int i; Instances newInstances; int [] fs = new int [num_atts]; double acc = 0.0; double [][] evalArray; double [] instA = new double [num_atts]; int classI = m_theInstances.classIndex(); int index = 0; for (i=0;i<m_numAttributes;i++) if (feature_set.get(i)) fs[index++] = i; // create new hash table m_entries = new Hashtable((int)(m_theInstances.numInstances() * 1.5)); // insert instances into the hash table for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); insertIntoTable(inst, instA); } if (m_CVFolds == 1) { // calculate leave one out error for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); double t = classifyInstanceLeaveOneOut(inst, instA); if (m_classIsNominal) { if (t == inst.classValue()) acc+=inst.weight(); } else acc += ((inst.weight() * (t - inst.classValue())) * (inst.weight() * (t - inst.classValue()))); // weight_sum += inst.weight(); } } else { m_theInstances.randomize(m_rr); m_theInstances.stratify(m_CVFolds); // calculate 10 fold cross validation error for (i=0;i<m_CVFolds;i++) { Instances insts = m_theInstances.testCV(m_CVFolds,i); acc += classifyFoldCV(insts, fs); } } if (m_classIsNominal) return (acc / m_theInstances.sumOfWeights()); else return -(Math.sqrt(acc / m_theInstances.sumOfWeights())); }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/9e72041e2204a61830b9cccfa8173a6ed2c39eb5/DecisionTable.java/clean/weka/classifiers/rules/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1645, 11108, 37, 10988, 12, 5775, 694, 2572, 67, 542, 16, 509, 818, 67, 270, 3428, 13, 565, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 18357, 394, 5361, 31, 565, 509, 5378, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1645, 11108, 37, 10988, 12, 5775, 694, 2572, 67, 542, 16, 509, 818, 67, 270, 3428, 13, 565, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 18357, 394, 5361, 31, 565, 509, 5378, 2...
public void set(org.quickfix.field.TradeReportID value)
public void set(quickfix.field.TradeReportID value)
public void set(org.quickfix.field.TradeReportID value) { setField(value); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralAssignment.java/buggy/src/java/src/quickfix/fix44/CollateralAssignment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 22583, 4820, 734, 460, 13, 225, 288, 16331, 12, 1132, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 22583, 4820, 734, 460, 13, 225, 288, 16331, 12, 1132, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
String content = getLocalizedString( textItem.getTextKey( ), textItem.getText( ) ); textItem.setDomTree( new TextParser( ).parse( content, textItem .getTextType( ) ) ); textContent.setDomTree( textItem.getDomTree( ) );
logger.log( Level.SEVERE, "Error:", t );
public void execute( ReportItemDesign item, IReportEmitter emitter ) { TextItemDesign textItem = (TextItemDesign) item; IReportItemEmitter textEmitter = emitter.getEmitter( "text" ); //$NON-NLS-1$ if ( textEmitter == null ) { return; } IResultSet rs = openResultSet( item ); if ( rs != null ) { rs.next( ); } TextItemContent textContent = (TextItemContent)ContentFactory.createTextContent( textItem, context.getContentObject( ) ); setStyles( textContent, item ); setVisibility( item, textContent ); //Checks if the content has been parsed before. If so, use the DOM tree // directly to improve performance. In addition to the DOM tree, the CSS // style is also a part of the parsed content. Or else, parse the // content and save the DOM tree and CSS style in the Text item design. HTMLProcessor htmlProcessor = new HTMLProcessor( context ); if ( textItem.getDomTree( ) == null ) { //Only when the Text is in the master page. //Because ExpressionBuilder has parsed the content. And the style // has not been extracted yet. String content = getLocalizedString( textItem.getTextKey( ), textItem.getText( ) ); textItem.setDomTree( new TextParser( ).parse( content, textItem .getTextType( ) ) ); textContent.setDomTree( textItem.getDomTree( ) ); } Document doc = textItem.getDomTree( ); Element body = null; if ( doc != null ) { Node node = doc.getFirstChild( ); //The following must be true if ( node instanceof Element ) { body = (Element) node; } } if ( body != null ) { //Checks if the DOM can be reused here. If no, then convert the DOM // tree. if ( !textItem.isReused( ) ) { htmlProcessor.execute( body, textContent ); //Saves the CSS style associated with the original text content textItem.setCssStyleSet( textContent.getCssStyleSet( ) ); textItem.setReused( true ); } evaluateEmbeddedExpression( body, textItem, textContent, htmlProcessor ); } String bookmarkStr = evalBookmark( textItem ); if ( bookmarkStr != null ) { textContent.setBookmarkValue( bookmarkStr ); } textEmitter.start( textContent ); textEmitter.end( ); closeResultSet( rs ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/46b3013f64d73accec44cdf5a1a0af7dcd5513b7/TextItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TextItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 1528, 1180, 15478, 977, 1180, 273, 261, 1528, 1180, 15478, 13, 761, 31, 202, 202, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 1528, 1180, 15478, 977, 1180, 273, 261, 1528, 1180, 15478, 13, 761, 31, 202, 202, 4...
} else if (b != bbound[offset] && offset > 0) {
} else if ((b != bbound[offset]) && (offset > 0)) {
private void parseMultiPartData() throws IOException { String ctype = (String) this.headers.get("content-type"); if (ctype == null) return; String[] ctypeparts = ctype.split(";"); if(ctypeparts[0].equalsIgnoreCase("application/x-www-form-urlencoded")) { // Completely different encoding, but easy to handle if(data.size() > 1024*1024) throw new IOException("Too big"); byte[] buf = BucketTools.toByteArray(data); String s = new String(buf, "us-ascii"); parseRequestParameters(s, true); } if (!ctypeparts[0].trim().equalsIgnoreCase("multipart/form-data") || ctypeparts.length < 2) { return; } String boundary = null; for (int i = 0; i < ctypeparts.length; i++) { String[] subparts = ctypeparts[i].split("="); if (subparts.length == 2 && subparts[0].trim().equalsIgnoreCase("boundary")) { boundary = subparts[1]; } } if (boundary == null || boundary.length() == 0) return; if (boundary.charAt(0) == '"') boundary = boundary.substring(1); if (boundary.charAt(boundary.length() - 1) == '"') boundary = boundary.substring(0, boundary.length() - 1); boundary = "--"+boundary; InputStream is = this.data.getInputStream(); LineReadingInputStream lis = new LineReadingInputStream(is); String line; line = lis.readLine(100, 100, false); // really it's US-ASCII, but ISO-8859-1 is close enough. while (is.available() > 0 && !line.equals(boundary)) { line = lis.readLine(100, 100, false); } boundary = "\r\n"+boundary; Bucket filedata = null; String name = null; while(is.available() > 0) { name = null; // chomp headers while( (line = lis.readLine(100, 100, false)) /* see above */ != null) { if (line.length() == 0) break; String[] lineparts = line.split(":"); if (lineparts == null) continue; String hdrname = lineparts[0].trim(); if (lineparts.length < 2) continue; String[] valueparts = lineparts[1].split(";"); for (int i = 0; i < valueparts.length; i++) { String[] subparts = valueparts[i].split("="); if (subparts.length != 2) { continue; } if (hdrname.equalsIgnoreCase("Content-Disposition")) { if (subparts[0].trim().equalsIgnoreCase("name")) { name = subparts[1].trim(); if (name.charAt(0) == '"') name = name.substring(1); if (name.charAt(name.length() - 1) == '"') name = name.substring(0, name.length() - 1); } } } } if (name == null) continue; // we should be at the data now. Start reading it in, checking for the // boundary string // we can only give an upper bound for the size of the bucket filedata = this.bucketfactory.makeBucket(is.available()); OutputStream bucketos = filedata.getOutputStream(); // buffer characters that match the boundary so far byte[] buf = new byte[boundary.length()]; byte[] bbound = boundary.getBytes("UTF-8"); int offset = 0; while (is.available() > 0 && !boundary.equals(new String(buf))) { byte b = (byte)is.read(); if (b == bbound[offset]) { buf[offset] = b; offset++; } else if (b != bbound[offset] && offset > 0) { // empty the buffer out bucketos.write(buf, 0, offset); bucketos.write(b); offset = 0; } else { bucketos.write(b); } } bucketos.close(); this.parts.put(name, filedata); } }
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/HTTPRequest.java/clean/src/freenet/clients/http/HTTPRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1109, 5002, 1988, 751, 1435, 1216, 1860, 288, 202, 202, 780, 11920, 273, 261, 780, 13, 333, 18, 2485, 18, 588, 2932, 1745, 17, 723, 8863, 202, 202, 430, 261, 12387, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 5002, 1988, 751, 1435, 1216, 1860, 288, 202, 202, 780, 11920, 273, 261, 780, 13, 333, 18, 2485, 18, 588, 2932, 1745, 17, 723, 8863, 202, 202, 430, 261, 12387, 422,...
IJavaProject project = this.createJavaProject("P", new String[] {"nested/src"}, new String[] {getExternalJCLPath()}, "bin");
IJavaProject project = this.createJavaProject("P", new String[] {"nested/src"}, new String[] {getExternalJCLPathString()}, "bin");
public void testClasspathDeleteNestedRoot() throws CoreException { IJavaProject project = this.createJavaProject("P", new String[] {"nested/src"}, new String[] {getExternalJCLPath()}, "bin"); IPackageFragmentRoot root= getPackageFragmentRoot("P", "nested/src"); IClasspathEntry[] originalCP= project.getRawClasspath(); // delete the root root.getUnderlyingResource().delete(false, null); IClasspathEntry[] newCP= project.getRawClasspath(); try { // should still be an entry for the "src" folder assertTrue("classpath should not have been updated", newCP.length == 2 && newCP[0].equals(originalCP[0]) && newCP[1].equals(originalCP[1])); } finally { this.deleteProject("P"); }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0fb012af3c6557520ab00415c58833602b027192/ClasspathTests.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1842, 17461, 2613, 8649, 2375, 1435, 1216, 30015, 288, 202, 45, 5852, 4109, 1984, 273, 333, 18, 2640, 5852, 4109, 2932, 52, 3113, 394, 514, 8526, 12528, 12985, 19, 4816, 6, 5779, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1842, 17461, 2613, 8649, 2375, 1435, 1216, 30015, 288, 202, 45, 5852, 4109, 1984, 273, 333, 18, 2640, 5852, 4109, 2932, 52, 3113, 394, 514, 8526, 12528, 12985, 19, 4816, 6, 5779, 39...
public String generateClassifier(MClassifier cls) { /* * 2002-07-11 * Jaap Branderhorst * To prevent generation of not requested whitespace etc. the method is reorganized. * First the start of the classifier is generated. * Next the body (method). * Then the end of the classifier. * The last step is to concatenate everything. * Done this because if the body was empty there were still linefeeds. * Start old code: StringBuffer sb = generateClassifierStart(cls); if (sb == null) return ""; // not a class or interface String tv = null; // helper for tagged values // add attributes Collection strs = MMUtil.SINGLETON.getAttributes(cls); // // 2002-06-08 // Jaap Branderhorst // Bugfix: strs is never null. Should check for isEmpty instead // old code: // if (strs != null) // new code: // if (!strs.isEmpty()) { sb.append('\n'); if (_verboseDocs && cls instanceof MClass) { sb.append(INDENT).append("// Attributes\n"); } Iterator strEnum = strs.iterator(); while (strEnum.hasNext()) { MStructuralFeature sf = (MStructuralFeature) strEnum.next(); sb.append(generate(sf)); tv = generateTaggedValues(sf); if (tv != null && tv.length() > 0) { sb.append(INDENT).append(tv); } } } // add attributes implementing associations Collection ends = cls.getAssociationEnds(); if (ends != null) { sb.append('\n'); if (_verboseDocs && cls instanceof MClass) { sb.append(INDENT).append("// Associations\n"); } Iterator endEnum = ends.iterator(); while (endEnum.hasNext()) { MAssociationEnd ae = (MAssociationEnd) endEnum.next(); MAssociation a = ae.getAssociation(); sb.append(generateAssociationFrom(a, ae)); tv = generateTaggedValues(a); if (tv != null && tv.length() > 0) { sb.append(INDENT).append(tv); } } } // add operations // TODO: constructors Collection behs = MMUtil.SINGLETON.getOperations(cls); // // 2002-06-08 // Jaap Branderhorst // Bugfix: behs is never null. Should check for isEmpty instead // old code: // if (behs != null) // new code: // if (!behs.isEmpty()) { sb.append('\n'); if (_verboseDocs) { sb.append(INDENT).append("// Operations\n"); } Iterator behEnum = behs.iterator(); while (behEnum.hasNext()) { MBehavioralFeature bf = (MBehavioralFeature) behEnum.next(); sb.append(generate(bf)); tv = generateTaggedValues((MModelElement) bf); if ((cls instanceof MClass) && (bf instanceof MOperation) && (!((MOperation) bf).isAbstract())) { if (_lfBeforeCurly) sb.append('\n').append(INDENT); else sb.append(' '); sb.append('{'); if (tv.length() > 0) { sb.append('\n').append(INDENT).append(tv); } // there is no ReturnType in behavioral feature (nsuml) sb.append('\n').append(generateMethodBody((MOperation) bf)).append( INDENT).append( "}\n"); } else { sb.append(";\n"); if (tv.length() > 0) { sb.append(INDENT).append(tv).append('\n'); } } } } sb = appendClassifierEnd(sb, cls, false); return sb.toString(); start new code: */ StringBuffer returnValue = new StringBuffer(); StringBuffer start = generateClassifierStart(cls); if ((start != null) && (start.length() > 0)) { StringBuffer body = generateClassifierBody(cls); StringBuffer end = generateClassifierEnd(cls); returnValue.append(start); if ((body != null) && (body.length() > 0)) { returnValue.append(LINE_SEPARATOR); returnValue.append(body); if (_lfBeforeCurly) { returnValue.append(LINE_SEPARATOR); } } returnValue.append((end != null) ? end.toString() : ""); } return returnValue.toString(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8b93d53259027848aaa50e2d9d130b9175fa9357/GeneratorJava.java/buggy/src_new/org/argouml/language/java/generator/GeneratorJava.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2103, 13860, 12, 49, 13860, 2028, 13, 288, 3639, 1748, 540, 380, 4044, 22, 17, 8642, 17, 2499, 540, 380, 804, 69, 438, 605, 7884, 264, 76, 280, 334, 540, 380, 2974, 5309, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2103, 13860, 12, 49, 13860, 2028, 13, 288, 3639, 1748, 540, 380, 4044, 22, 17, 8642, 17, 2499, 540, 380, 804, 69, 438, 605, 7884, 264, 76, 280, 334, 540, 380, 2974, 5309, 9...
RubyArray backtrace = RubyArray.newArray(runtime);
RubyArray backtrace = runtime.newArray();
public static IRubyObject createBacktrace(Ruby runtime, int level, boolean nativeException) { RubyArray backtrace = RubyArray.newArray(runtime); FrameStack stack = runtime.getFrameStack(); int traceSize = stack.size() - level - 1; if (traceSize <= 0) { return backtrace; } if (nativeException) { // assert level == 0; addBackTraceElement(backtrace, (Frame) stack.elementAt(stack.size() - 1), null); } for (int i = traceSize; i > 0; i--) { addBackTraceElement(backtrace, (Frame) stack.elementAt(i), (Frame) stack.elementAt(i-1)); } return backtrace; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RaiseException.java/buggy/src/org/jruby/exceptions/RaiseException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 752, 2711, 5129, 12, 54, 10340, 3099, 16, 509, 1801, 16, 1250, 6448, 503, 13, 288, 3639, 19817, 1076, 13902, 273, 3099, 18, 2704, 1076, 5621, 3639, 8058, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 752, 2711, 5129, 12, 54, 10340, 3099, 16, 509, 1801, 16, 1250, 6448, 503, 13, 288, 3639, 19817, 1076, 13902, 273, 3099, 18, 2704, 1076, 5621, 3639, 8058, 262...
public void testXmlPageReadOldVersion() throws Exception { // create a XML entity resolver CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; String content; // validate "old" xmlpage 1 content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-old-1.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); assertTrue(page.hasValue("body", Locale.ENGLISH)); CmsLinkTable table = page.getLinkTable("body", Locale.ENGLISH); assertTrue(table.getLink("link0").isInternal()); assertEquals("English! Image <img src=\"/sites/default/folder1/image2.gif\" />", page.getStringValue(null, "body", Locale.ENGLISH)); // validate "old" xmlpage 2 content = CmsFileUtil.readFile("org/opencms/xml/page/xmlpage-old-2.xml", UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); assertTrue(page.hasValue("body", Locale.ENGLISH)); assertTrue(page.hasValue("body", Locale.GERMAN)); assertTrue(page.hasValue("body2", Locale.ENGLISH)); assertEquals("English! Image <img src=\"/sites/default/folder1/image2.gif\" />", page.getStringValue(null, "body", Locale.ENGLISH)); assertEquals("English 2!", page.getStringValue(null, "body2", Locale.ENGLISH)); assertEquals("Deutsch! Image <img src=\"/sites/default/folder1/image2.gif\" />", page.getStringValue(null, "body", Locale.GERMAN)); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsXmlPage.java/buggy/test/org/opencms/xml/page/TestCmsXmlPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4432, 1964, 1994, 7617, 1444, 1435, 1216, 1185, 288, 13491, 368, 752, 279, 3167, 1522, 5039, 3639, 16084, 1943, 4301, 5039, 273, 394, 16084, 1943, 4301, 12, 2011, 1769, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4432, 1964, 1994, 7617, 1444, 1435, 1216, 1185, 288, 13491, 368, 752, 279, 3167, 1522, 5039, 3639, 16084, 1943, 4301, 5039, 273, 394, 16084, 1943, 4301, 12, 2011, 1769, 773...
public ProblemDescriptor[] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly) {
public ProblemDescriptor[] checkMethod(@NotNull PsiMethod method, @NotNull InspectionManager manager, boolean isOnTheFly) {
public ProblemDescriptor[] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly) { if (CHECK_ACTIONS && CHECK_JAVA_CODE && method.isConstructor() && method.getNameIdentifier() != null && method.getContainingFile().getVirtualFile() != null) { if (method.getParameterList().getParametersCount() == 0 && !isPublic(method)) { final PsiClass checkedClass = method.getContainingClass(); if (ActionType.ACTION.isOfType(checkedClass)) { if (isActionRegistered(checkedClass)) { return new ProblemDescriptor[]{ manager.createProblemDescriptor(method.getNameIdentifier(), DevKitBundle.message("inspections.registration.problems.ctor.not.public"), new MakePublicFix(method, isOnTheFly), ProblemHighlightType.GENERIC_ERROR_OR_WARNING) }; } } } } return null; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8775ec08b2d41eea27d599b9310e86a6e1f62261/RegistrationProblemsInspection.java/clean/plugins/devkit/src/inspections/RegistrationProblemsInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 21685, 3187, 8526, 866, 1305, 26964, 5962, 453, 7722, 1305, 707, 16, 632, 5962, 22085, 7017, 1318, 3301, 16, 1250, 28181, 1986, 42, 715, 13, 288, 565, 309, 261, 10687, 67, 12249, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 21685, 3187, 8526, 866, 1305, 26964, 5962, 453, 7722, 1305, 707, 16, 632, 5962, 22085, 7017, 1318, 3301, 16, 1250, 28181, 1986, 42, 715, 13, 288, 565, 309, 261, 10687, 67, 12249, 55...
stringBuffer.append(TEXT_31);
stringBuffer.append(TEXT_32);
public String generate(Object argument) { StringBuffer stringBuffer = new StringBuffer(); final GenDiagram genDiagram = (GenDiagram) argument;final GenModel genModel = genDiagram.getEMFGenModel(); stringBuffer.append(TEXT_1); stringBuffer.append(genDiagram.getPreferenceInitializerQualifiedClassName()); stringBuffer.append(TEXT_2); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_3); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_4); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_5); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_6); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_7); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_8); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_9); stringBuffer.append(genDiagram.getMatchingStrategyQualifiedClassName()); stringBuffer.append(TEXT_10); stringBuffer.append(genDiagram.getActionBarContributorQualifiedClassName()); stringBuffer.append(TEXT_11); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_12); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_13); stringBuffer.append(genDiagram.getCreationWizardQualifiedClassName()); stringBuffer.append(TEXT_14); stringBuffer.append(genDiagram.getCreationWizardQualifiedClassName()); stringBuffer.append(TEXT_15); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_16); stringBuffer.append(genDiagram.getPluginID()); stringBuffer.append(TEXT_17); stringBuffer.append(genDiagram.getDomainDiagramElement().getGenPackage().getPrefix().toLowerCase()); stringBuffer.append(TEXT_18); stringBuffer.append(genDiagram.getDiagramFileExtension()); stringBuffer.append(TEXT_19); stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName()); stringBuffer.append(TEXT_20); stringBuffer.append(genDiagram.getInitDiagramFileActionQualifiedClassName()); stringBuffer.append(TEXT_21); if (genDiagram.generateCreateShortcutAction()) { stringBuffer.append(TEXT_22); stringBuffer.append(genDiagram.getPluginID()); stringBuffer.append(TEXT_23); stringBuffer.append(genDiagram.getCreateShortcutActionQualifiedClassName()); stringBuffer.append(TEXT_24); stringBuffer.append(genDiagram.getCreateShortcutActionQualifiedClassName()); stringBuffer.append(TEXT_25); } stringBuffer.append(TEXT_26); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_27); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_28); if (genDiagram.isPrintingEnabled()) { stringBuffer.append(TEXT_29); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_30); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_31); } stringBuffer.append(TEXT_32); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_33); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_34); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_35); stringBuffer.append(genDiagram.getEditorQualifiedClassName()); stringBuffer.append(TEXT_36); stringBuffer.append(genDiagram.getNotationViewProviderQualifiedClassName()); stringBuffer.append(TEXT_37); stringBuffer.append(genModel.getModelName()); stringBuffer.append(TEXT_38); stringBuffer.append(genDiagram.getEditPartProviderQualifiedClassName()); stringBuffer.append(TEXT_39); stringBuffer.append(genDiagram.getMetamodelSupportProviderQualifiedClassName()); stringBuffer.append(TEXT_40); stringBuffer.append(genDiagram.getModelingAssistantProviderQualifiedClassName()); stringBuffer.append(TEXT_41); stringBuffer.append(genDiagram.getPropertyProviderQualifiedClassName()); stringBuffer.append(TEXT_42); stringBuffer.append(genDiagram.getIconProviderQualifiedClassName()); stringBuffer.append(TEXT_43); stringBuffer.append(TEXT_44); GenAuditContainer rootContainer = genDiagram.getAudits();if(rootContainer != null) { java.util.List containers = rootContainer != null ? rootContainer.getAllAuditContainers() : java.util.Collections.EMPTY_LIST; stringBuffer.append(TEXT_45); java.util.HashMap idMap = new java.util.HashMap(); for(int i = 0; i < containers.size(); i++) { GenAuditContainer container = (GenAuditContainer)containers.get(i); idMap.put(container, container.getId() != null ? container.getId() : "category" + Integer.toString(i + 1)); } java.util.HashMap pathMap = new java.util.HashMap(); for(int i = 0; i < containers.size(); i++) { GenAuditContainer category = (GenAuditContainer)containers.get(i); java.util.List path = category.getPath(); StringBuffer id = new StringBuffer(); for(int pathPos = 0; pathPos < path.size(); pathPos++) { if(pathPos > 0) id.append('/'); id.append(idMap.get(path.get(pathPos))); } pathMap.put(category, id.toString()); stringBuffer.append(TEXT_46); stringBuffer.append(id.toString()); stringBuffer.append(TEXT_47); stringBuffer.append(category.getName() != null ? category.getName() : id.toString()); stringBuffer.append(TEXT_48); stringBuffer.append(category.getDescription() != null ? category.getDescription():""); stringBuffer.append(TEXT_49); } // end of categories loop String rootCategoryId = (String)pathMap.get(rootContainer); stringBuffer.append(TEXT_50); stringBuffer.append(genDiagram.getDomainMetaModel().getNSURI()); stringBuffer.append(TEXT_51); int rulePos = 0; for(java.util.Iterator catIt = containers.iterator(); catIt.hasNext(); rulePos++) { GenAuditContainer category = (GenAuditContainer)catIt.next(); for(java.util.Iterator it = category.getAudits().iterator(); it.hasNext();) { GenAuditRule audit = (GenAuditRule)it.next(); GenClass targetClass = audit.getTarget(); String targetClassName = (targetClass != null) ? targetClass.getGenPackage().getNSName() + "." + targetClass.getInterfaceName() : "null"; String modeAttr = audit.isUseInLiveMode() ? "" : "mode=\"Batch\""; String name = audit.getName() != null ? audit.getName() : audit.getId(); String message = audit.getMessage() != null ? audit.getMessage() : name + " audit violated"; stringBuffer.append(TEXT_52); stringBuffer.append(pathMap.get(category)); stringBuffer.append(TEXT_53); stringBuffer.append(audit.getId()); stringBuffer.append(TEXT_54); stringBuffer.append(modeAttr); stringBuffer.append(TEXT_55); stringBuffer.append(name); stringBuffer.append(TEXT_56); stringBuffer.append(audit.getSeverity().getName()); stringBuffer.append(TEXT_57); stringBuffer.append(Integer.toString(200 + rulePos)); stringBuffer.append(TEXT_58); stringBuffer.append(audit.getRule() != null ? audit.getRule().getBody() : ""); stringBuffer.append(TEXT_59); stringBuffer.append(audit.getDescription() != null ? audit.getDescription():""); stringBuffer.append(TEXT_60); stringBuffer.append(message); stringBuffer.append(TEXT_61); stringBuffer.append(targetClassName); stringBuffer.append(TEXT_62); } // end of audits in category } // end of category loop stringBuffer.append(TEXT_63); stringBuffer.append(rootCategoryId); stringBuffer.append(TEXT_64); stringBuffer.append(rootCategoryId); stringBuffer.append(TEXT_65); stringBuffer.append(rootCategoryId); stringBuffer.append(TEXT_66); } stringBuffer.append(TEXT_67); stringBuffer.append(TEXT_68); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/0bf1a833628aff43b1383f77062929555c4d1879/PluginXML.java/buggy/plugins/org.eclipse.gmf.codegen/src-templates/org/eclipse/gmf/codegen/templates/editor/PluginXML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 6385,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 12, 921, 1237, 13, 225, 288, 565, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 14058, 1940, 3157, 14058, 1940, 273, 261, 7642, 14058, 1940, 13, 1237, 31, 6385,...
return standardError; }
return standardError; }
public RubyClass getStandardError() { return standardError; }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyExceptions.java/clean/org/jruby/runtime/RubyExceptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 336, 8336, 668, 1435, 288, 202, 202, 2463, 4529, 668, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 336, 8336, 668, 1435, 288, 202, 202, 2463, 4529, 668, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) {
if (headerIFDs == null) headerIFDs = ifds; for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) {
protected void initMetadata() { for (int i=0; i<headerIFDs.length; i++) { byte[] temp = (byte[]) headerIFDs[i].get(new Integer(10)); if (temp != null) { // the series data // ID_SERIES metadata.put("Version", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Number of Series", new Integer(DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Length of filename", new Integer(DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Length of file extension", new Integer(DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Image file extension", DataTools.stripString(new String(temp, 16, ((Integer) metadata.get("Length of file extension")).intValue()))); } temp = (byte[]) headerIFDs[i].get(new Integer(15)); if (temp != null) { // the image data // ID_IMAGES metadata.put("Number of images", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); metadata.put("Image width", new Integer( DataTools.bytesToInt(temp, 4, 4, littleEndian))); metadata.put("Image height", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Bits per Sample", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); metadata.put("Samples per pixel", new Integer( DataTools.bytesToInt(temp, 16, 4, littleEndian))); } temp = (byte[]) headerIFDs[i].get(new Integer(20)); if (temp != null) { // dimension description // ID_DIMDESCR int pt = 0; metadata.put("Voxel Version", new Integer( DataTools.bytesToInt(temp, 0, 4, littleEndian))); int voxelType = DataTools.bytesToInt(temp, 4, 4, littleEndian); String type = ""; switch (voxelType) { case 0: type = "undefined"; break; case 10: type = "gray normal"; break; case 20: type = "RGB"; break; } metadata.put("VoxelType", type); metadata.put("Bytes per pixel", new Integer( DataTools.bytesToInt(temp, 8, 4, littleEndian))); metadata.put("Real world resolution", new Integer( DataTools.bytesToInt(temp, 12, 4, littleEndian))); int length = DataTools.bytesToInt(temp, 16, 4, littleEndian); metadata.put("Maximum voxel intensity", DataTools.stripString(new String(temp, 20, length))); pt = 20 + length; pt += 4; metadata.put("Minimum voxel intensity", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4 + length + 4; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); for (int j=0; j<length; j++) { int dimId = DataTools.bytesToInt(temp, pt, 4, littleEndian); String dimType = ""; switch (dimId) { case 0: dimType = "undefined"; break; case 120: dimType = "x"; break; case 121: dimType = "y"; break; case 122: dimType = "z"; break; case 116: dimType = "t"; break; case 6815843: dimType = "channel"; break; case 6357100: dimType = "wave length"; break; case 7602290: dimType = "rotation"; break; case 7798904: dimType = "x-wide for the motorized xy-stage"; break; case 7798905: dimType = "y-wide for the motorized xy-stage"; break; case 7798906: dimType = "z-wide for the z-stage-drive"; break; case 4259957: dimType = "user1 - unspecified"; break; case 4325493: dimType = "user2 - unspecified"; break; case 4391029: dimType = "user3 - unspecified"; break; case 6357095: dimType = "graylevel"; break; case 6422631: dimType = "graylevel1"; break; case 6488167: dimType = "graylevel2"; break; case 6553703: dimType = "graylevel3"; break; case 7864398: dimType = "logical x"; break; case 7929934: dimType = "logical y"; break; case 7995470: dimType = "logical z"; break; case 7602254: dimType = "logical t"; break; case 7077966: dimType = "logical lambda"; break; case 7471182: dimType = "logical rotation"; break; case 5767246: dimType = "logical x-wide"; break; case 5832782: dimType = "logical y-wide"; break; case 5898318: dimType = "logical z-wide"; break; } metadata.put("Dim" + j + " type", dimType); pt += 4; metadata.put("Dim" + j + " size", new Integer( DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dim" + j + " distance between sub-dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical length", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " physical origin", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " name", DataTools.stripString(new String(temp, pt, len))); pt += len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Dim" + j + " description", DataTools.stripString(new String(temp, pt, len))); } } temp = (byte[]) headerIFDs[i].get(new Integer(30)); if (temp != null) { // filter data // ID_FILTERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(40)); if (temp != null) { // time data // ID_TIMEINFO try { metadata.put("Number of time-stamped dimensions", new Integer(DataTools.bytesToInt(temp, 0, 4, littleEndian))); int nDims = DataTools.bytesToInt(temp, 4, 4, littleEndian); metadata.put("Time-stamped dimension", new Integer(nDims)); int pt = 8; for (int j=0; j < nDims; j++) { metadata.put("Dimension " + j + " ID", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " size", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; metadata.put("Dimension " + j + " distance between dimensions", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } int numStamps = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-stamps", new Integer(numStamps)); for (int j=0; j<numStamps; j++) { metadata.put("Timestamp " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } int numTMs = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of time-markers", new Integer(numTMs)); for (int j=0; j<numTMs; j++) { int numDims = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; for (int k=0; k<numDims; k++) { metadata.put("Time-marker " + j + " Dimension " + k + " coordinate", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; } metadata.put("Time-marker " + j, DataTools.stripString(new String(temp, pt, 64))); pt += 64; } } catch (Throwable t) { } } temp = (byte[]) headerIFDs[i].get(new Integer(50)); if (temp != null) { // scanner data // ID_SCANNERSET // not currently used } temp = (byte[]) headerIFDs[i].get(new Integer(60)); if (temp != null) { // experiment data // ID_EXPERIMENT int pt = 8; int len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Image Description", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Main file extension", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image format identifier", DataTools.stripString(new String(temp, pt, 2*len))); pt += 2*len; len = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Single image extension", DataTools.stripString(new String(temp, pt, 2*len))); } temp = (byte[]) headerIFDs[i].get(new Integer(70)); if (temp != null) { // LUT data // ID_LUTDESC int pt = 0; int numChannels = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("Number of LUT channels", new Integer(numChannels)); metadata.put("ID of colored dimension", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; for (int j=0; j<numChannels; j++) { metadata.put("LUT Channel " + j + " version", new Integer(DataTools.bytesToInt(temp, pt, 4, littleEndian))); pt += 4; int invert = DataTools.bytesToInt(temp, pt, 1, littleEndian); pt += 1; boolean inverted = invert == 1; metadata.put("LUT Channel " + j + " inverted?", new Boolean(inverted).toString()); int length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " description", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " filename", DataTools.stripString(new String(temp, pt, length))); pt += length; length = DataTools.bytesToInt(temp, pt, 4, littleEndian); pt += 4; metadata.put("LUT Channel " + j + " name", DataTools.stripString(new String(temp, pt, length))); pt += length; pt += 8; } } } if (ome != null) { Integer sizeX = (Integer) metadata.get("Image width"); Integer sizeY = (Integer) metadata.get("Image height"); Integer sizeZ = (Integer) metadata.get("Number of images"); OMETools.setPixels(ome, sizeX, sizeY, sizeZ, new Integer(1), // SizeC new Integer(1), // SizeT null, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC"); // DimensionOrder OMETools.setCreationDate(ome, metadata.get("Timestamp 1").toString().substring(3)); OMETools.setDescription(ome, metadata.get("Image Description").toString());// String voxel = metadata.get("VoxelType").toString();// String photoInterp;// if (voxel.equals("gray normal")) photoInterp = "monochrome";// else if (voxel.equals("RGB")) photoInterp = "RGB";// else photoInterp = "monochrome";//// OMETools.setAttribute(ome, "ChannelInfo",// "PhotometricInterpretation", photoInterp);//// OMETools.setAttribute(ome, "ChannelInfo", "SamplesPerPixel",// metadata.get("Samples per pixel").toString()); } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/41d9e586fbb5488ebcea41db97b26e9af0b7e6fe/LeicaReader.java/clean/loci/formats/LeicaReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 2277, 1435, 288, 282, 364, 261, 474, 277, 33, 20, 31, 277, 32, 3374, 5501, 22831, 18, 2469, 31, 277, 27245, 288, 377, 1160, 8526, 1906, 273, 261, 7229, 63, 5717, 1446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 2277, 1435, 288, 282, 364, 261, 474, 277, 33, 20, 31, 277, 32, 3374, 5501, 22831, 18, 2469, 31, 277, 27245, 288, 377, 1160, 8526, 1906, 273, 261, 7229, 63, 5717, 1446, ...
RubyArray argArray = RubyArray.newArray(recv.getRuntime(), args); return argArray.join(RubyString.newString(recv.getRuntime(), separator()));
RubyArray argArray = recv.getRuntime().newArray(args); return argArray.join(recv.getRuntime().newString(separator()));
public static RubyString join(IRubyObject recv, IRubyObject[] args) { RubyArray argArray = RubyArray.newArray(recv.getRuntime(), args); return argArray.join(RubyString.newString(recv.getRuntime(), separator())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFile.java/clean/src/org/jruby/RubyFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 780, 1233, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 202, 202, 54, 10340, 1076, 1501, 1076, 273, 19817, 1076, 18, 2704, 1076, 12, 18334, 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, 760, 19817, 780, 1233, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 202, 202, 54, 10340, 1076, 1501, 1076, 273, 19817, 1076, 18, 2704, 1076, 12, 18334, 18...
c.gridx = 1; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; JPanel pane = new JPanel(); pane.setLayout(new FlowLayout(FlowLayout.LEFT)); pane.add(_attrCheckBox); pane.add(_operCheckBox); gb.setConstraints(pane, c); add(pane);
c.gridx = 1; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; JPanel pane = new JPanel(); pane.setLayout(new FlowLayout(FlowLayout.LEFT)); pane.add(_attrCheckBox); pane.add(_operCheckBox); gb.setConstraints(pane, c); add(pane);
public StylePanelFigClass() { super(); GridBagLayout gb = (GridBagLayout) getLayout(); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.ipadx = 0; c.ipady = 0; c.gridx = 0; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; gb.setConstraints(_displayLabel, c); add(_displayLabel); c.gridx = 1; c.gridwidth = 1; c.gridy = 0; c.weightx = 0.0; JPanel pane = new JPanel(); pane.setLayout(new FlowLayout(FlowLayout.LEFT)); pane.add(_attrCheckBox); pane.add(_operCheckBox); gb.setConstraints(pane, c); add(pane); _attrCheckBox.setSelected(false); _operCheckBox.setSelected(false); _attrCheckBox.addItemListener(this); _operCheckBox.addItemListener(this); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/StylePanelFigClass.java/buggy/src_new/org/argouml/uml/diagram/static_structure/ui/StylePanelFigClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9767, 5537, 42, 360, 797, 1435, 288, 565, 2240, 5621, 565, 7145, 5013, 3744, 21649, 273, 261, 6313, 5013, 3744, 13, 17670, 5621, 565, 13075, 276, 273, 394, 13075, 5621, 565, 276, 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, 9767, 5537, 42, 360, 797, 1435, 288, 565, 2240, 5621, 565, 7145, 5013, 3744, 21649, 273, 261, 6313, 5013, 3744, 13, 17670, 5621, 565, 13075, 276, 273, 394, 13075, 5621, 565, 276, 18...
public BpelProcess(QName pid, OProcess oprocess, Map<OPartnerLink, Endpoint> myRoleEndpointNames, Map<OPartnerLink, Endpoint> initialPartners, BpelEventListener debugger, ExpressionLanguageRuntimeRegistry expLangRuntimeRegistry, List<MessageExchangeInterceptor> localMexInterceptors, ProcessStore store) { _pid = pid;
public BpelProcess(ProcessConf conf, OProcess oprocess, BpelEventListener debugger, ExpressionLanguageRuntimeRegistry expLangRuntimeRegistry) { _pid = conf.getProcessId(); _pconf = conf;
public BpelProcess(QName pid, OProcess oprocess, Map<OPartnerLink, Endpoint> myRoleEndpointNames, Map<OPartnerLink, Endpoint> initialPartners, BpelEventListener debugger, ExpressionLanguageRuntimeRegistry expLangRuntimeRegistry, List<MessageExchangeInterceptor> localMexInterceptors, ProcessStore store) { _pid = pid; _replacementMap = new ReplacementMapImpl(oprocess); _oprocess = oprocess; _expLangRuntimeRegistry = expLangRuntimeRegistry; _mexInterceptors.addAll(localMexInterceptors); _store = store; _inMemory = store.getProcessConfiguration(_pid).isInMemory(); for (OPartnerLink pl : _oprocess.getAllPartnerLinks()) { if (pl.hasMyRole()) { Endpoint endpoint = myRoleEndpointNames.get(pl); if (endpoint == null) throw new IllegalArgumentException("No service name for myRole plink " + pl.getName()); PartnerLinkMyRoleImpl myRole = new PartnerLinkMyRoleImpl(pl, endpoint); _myRoles.put(pl, myRole); _endpointToMyRoleMap.put(endpoint, myRole); } if (pl.hasPartnerRole()) { PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(pl, initialPartners.get(pl)); _partnerRoles.put(pl, partnerRole); } } }
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/5f138028c4f2f9da31f4670375dc15a4f70fbe3a/BpelProcess.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 605, 84, 292, 2227, 12, 13688, 4231, 16, 531, 2227, 320, 2567, 16, 1635, 32, 51, 1988, 1224, 2098, 16, 6961, 34, 3399, 2996, 3293, 1557, 16, 15604, 1635, 32, 51, 1988, 1224, 2098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 84, 292, 2227, 12, 13688, 4231, 16, 531, 2227, 320, 2567, 16, 1635, 32, 51, 1988, 1224, 2098, 16, 6961, 34, 3399, 2996, 3293, 1557, 16, 15604, 1635, 32, 51, 1988, 1224, 2098,...
public LoanOfferingBO getLoanOffering(Short loanOfferingId, Short localeId)
public LoanOfferingBO getLoanOffering(Short prdofferingId)
public LoanOfferingBO getLoanOffering(Short loanOfferingId, Short localeId) throws ServiceException { try { return new LoanPrdPersistence().getLoanOffering(loanOfferingId, localeId); } catch (PersistenceException e) { throw new ServiceException(e); } }
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/8c29345f77fcd6c9ad0f4c44eb113bfd9feda957/LoanPrdBusinessService.java/buggy/mifos/src/org/mifos/application/productdefinition/business/service/LoanPrdBusinessService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3176, 304, 17800, 5315, 336, 1504, 304, 17800, 12, 4897, 28183, 17800, 548, 16, 7925, 2573, 548, 13, 1082, 202, 15069, 16489, 288, 202, 202, 698, 288, 1082, 202, 2463, 394, 3176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3176, 304, 17800, 5315, 336, 1504, 304, 17800, 12, 4897, 28183, 17800, 548, 16, 7925, 2573, 548, 13, 1082, 202, 15069, 16489, 288, 202, 202, 698, 288, 1082, 202, 2463, 394, 3176...
return getPropertyGroups().getProperties(PROPGROUP_OUTPUTS); }
return getPropertyGroups().getProperties(PROPGROUP_OUTPUTS); }
public IProperties getOutputs() { return getPropertyGroups().getProperties(PROPGROUP_OUTPUTS); }
9195 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9195/5e9c556e14fa1ac9f905114d06241620c97370af/ZebraProcessDefinition.java/buggy/zebra/src/java/zebra-hivemind/src/main/java/com/anite/zebra/hivemind/om/defs/ZebraProcessDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 2297, 11062, 87, 1435, 288, 202, 202, 2463, 3911, 3621, 7675, 588, 2297, 12, 15811, 8468, 67, 15527, 55, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 467, 2297, 11062, 87, 1435, 288, 202, 202, 2463, 3911, 3621, 7675, 588, 2297, 12, 15811, 8468, 67, 15527, 55, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
protected boolean debug(final String msg) {
protected boolean debug(final char[] msg) {
protected boolean debug(final String msg) { if (msg != null) { System.out.print(msg); // log.finest(msg); } return true; }
51933 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51933/27e1ebcad1ef97cc586e26ad972eaad05291f006/IOService.java/buggy/src/tigase/net/IOService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 1198, 12, 6385, 1149, 8526, 1234, 13, 288, 565, 309, 261, 3576, 480, 446, 13, 288, 1082, 202, 3163, 18, 659, 18, 1188, 12, 3576, 1769, 1082, 202, 759, 1377, 613, 18, 926, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 1198, 12, 6385, 1149, 8526, 1234, 13, 288, 565, 309, 261, 3576, 480, 446, 13, 288, 1082, 202, 3163, 18, 659, 18, 1188, 12, 3576, 1769, 1082, 202, 759, 1377, 613, 18, 926, ...
int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1;
NodeRecord best = null; NodeRecord r; Enumeration en = nodes.elements();
public TreePath getPathClosestTo(int x, int y) { if (dirty) update(); // We do not need to iterate because all rows have the same height. int row = y / rowHeight; if (row < 0) row = 0; if (row > getRowCount()) row = getRowCount() - 1; if (row < 0) return null; // Empty tree - nothing to return. Object node = row2node.get(new Integer(row)); NodeRecord nr = (NodeRecord) nodes.get(node); return nr.getPath(); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/0d84414b1037035df02aea8cd7252c51091c5663/FixedHeightLayoutCache.java/clean/javax/swing/tree/FixedHeightLayoutCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4902, 743, 4339, 4082, 7781, 774, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 261, 18013, 13, 1377, 1089, 5621, 565, 368, 1660, 741, 486, 1608, 358, 7401, 2724, 777, 2595,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4902, 743, 4339, 4082, 7781, 774, 12, 474, 619, 16, 509, 677, 13, 225, 288, 565, 309, 261, 18013, 13, 1377, 1089, 5621, 565, 368, 1660, 741, 486, 1608, 358, 7401, 2724, 777, 2595,...
LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(): " + insertPref); insertPrefPstmt.setString(5, value); insertPrefPstmt.executeUpdate();
LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(PREF_ID=" + prefId + "): " + deletePrefValues); deletePrefValuesPstmt.setInt(1, prefId); deletePrefValuesPstmt.executeUpdate();
public void setEntityPreferences(final int userId, final int layoutId, final String chanDescId, final PreferenceSet prefs) throws Exception { final Connection con = RDBMServices.getConnection(); final String deleteCurrentPrefs = "DELETE FROM UP_PORTLET_ENTITY_PREFS " + "WHERE USER_ID=? AND LAYOUT_ID=? AND CHAN_DESC_ID=?"; final String insertPref = "INSERT INTO UP_PORTLET_ENTITY_PREFS " + "(USER_ID, LAYOUT_ID, CHAN_DESC_ID, PORTLET_PREF_NAME, PORTLET_PREF_VALUE) " + "VALUES (?, ?, ?, ?, ?)"; LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(userId=" + userId + ", layoutId=" + layoutId + ", chanDescId=" + chanDescId + ")"); try { // Set autocommit false for the connection RDBMServices.setAutoCommit(con, false); PreparedStatement deleteCurrentPrefsPstmt = null; PreparedStatement insertPrefPstmt = null; try { deleteCurrentPrefsPstmt = con.prepareStatement(deleteCurrentPrefs); insertPrefPstmt = con.prepareStatement(insertPref); LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(): " + deleteCurrentPrefs); deleteCurrentPrefsPstmt.setInt(1, userId); deleteCurrentPrefsPstmt.setInt(2, layoutId); deleteCurrentPrefsPstmt.setString(3, chanDescId); deleteCurrentPrefsPstmt.execute(); for (final Iterator prefItr = prefs.iterator(); prefItr.hasNext();) { final Preference pref = (Preference)prefItr.next(); insertPrefPstmt.setInt(1, userId); insertPrefPstmt.setInt(2, layoutId); insertPrefPstmt.setString(3, chanDescId); insertPrefPstmt.setString(4, pref.getName()); for (final Iterator valueItr = pref.getValues(); valueItr.hasNext();) { final String value = (String)valueItr.next(); LogService.log(LogService.DEBUG, "RDBMPortletPreferencesStore::setEntityPreferences(): " + insertPref); insertPrefPstmt.setString(5, value); insertPrefPstmt.executeUpdate(); } } RDBMServices.commit(con); } catch (Exception e) { // Roll back the transaction RDBMServices.rollback(con); throw e; } finally { try { deleteCurrentPrefsPstmt.close(); } catch (Exception e) { } try { insertPrefPstmt.close(); } catch (Exception e) { } } } finally { RDBMServices.releaseConnection(con); } }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/8dc073ef3a5946c6e14fbb8c4ef1466b04e15302/RDBMPortletPreferencesStore.java/buggy/source/org/jasig/portal/RDBMPortletPreferencesStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20739, 12377, 12, 6385, 509, 6249, 16, 727, 509, 3511, 548, 16, 727, 514, 3861, 4217, 548, 16, 727, 29125, 694, 15503, 13, 1216, 1185, 288, 3639, 727, 4050, 356, 273, 534, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20739, 12377, 12, 6385, 509, 6249, 16, 727, 509, 3511, 548, 16, 727, 514, 3861, 4217, 548, 16, 727, 29125, 694, 15503, 13, 1216, 1185, 288, 3639, 727, 4050, 356, 273, 534, 22...
result = ScriptRuntime.setObjectElem(lhs, id, rhs, cx, scope);
result = ScriptRuntime.setObjectElem(lhs, id, rhs, cx, state.scope);
private static int do_setElem(Object[] stack, double[] sDbl, int stackTop, Context cx, Scriptable scope) { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); Object lhs = stack[stackTop - 2]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop - 2]); Object result; Object id = stack[stackTop - 1]; if (id != DBL_MRK) { result = ScriptRuntime.setObjectElem(lhs, id, rhs, cx, scope); } else { double val = sDbl[stackTop - 1]; if (lhs == null || lhs == Undefined.instance) { throw ScriptRuntime.undefWriteError( lhs, ScriptRuntime.toString(val), rhs); } Scriptable obj = (lhs instanceof Scriptable) ? (Scriptable)lhs : ScriptRuntime.toObject(cx, scope, lhs); int index = (int)val; if (index == val) { result = ScriptRuntime.setObjectIndex(obj, index, rhs, cx); } else { String s = ScriptRuntime.toString(val); result = ScriptRuntime.setObjectProp(obj, s, rhs, cx); } } stackTop -= 2; stack[stackTop] = result; return stackTop; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 741, 67, 542, 7498, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 21394, 1772, 9494, 16, 22780, 2146, 13, 565, 288, 3639, 1033, 7711, 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, 3238, 760, 509, 741, 67, 542, 7498, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 21394, 1772, 9494, 16, 22780, 2146, 13, 565, 288, 3639, 1033, 7711, 273,...
if (jj_3R_67()) return true;
if (jj_scan_token(TRUE)) return true;
final private boolean jj_3R_47() { if (jj_3R_67()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/f5ebf1fa86f338484c8f14f11ac1fbcc329367a3/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9462, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 18724, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9462, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 18724, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
setModified(true);
public void setResourceId(String resourceId) { if (((resourceId == null) && (_resourceId != null)) || ((resourceId != null) && (_resourceId == null)) || ((resourceId != null) && (_resourceId != null) && !resourceId.equals(_resourceId))) { if (!XSS_ALLOW_RESOURCEID) { resourceId = XSSUtil.strip(resourceId); } _resourceId = resourceId; setModified(true); } }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/f4d6afc6707f57fd84bf6b624f0c119657b0a766/PermissionModel.java/clean/portal-ejb/src/com/liferay/portal/model/PermissionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 17790, 12, 780, 15035, 13, 288, 202, 202, 430, 261, 12443, 3146, 548, 422, 446, 13, 597, 261, 67, 3146, 548, 480, 446, 3719, 747, 9506, 202, 12443, 3146, 548, 480, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 17790, 12, 780, 15035, 13, 288, 202, 202, 430, 261, 12443, 3146, 548, 422, 446, 13, 597, 261, 67, 3146, 548, 480, 446, 3719, 747, 9506, 202, 12443, 3146, 548, 480, ...
String className = i == -1 ? fqName : fqName.substring(i + 1); return className;
return i == -1 ? fqName : fqName.substring(i + 1);
public static String extractClassName(String fqName) { int i = fqName.lastIndexOf('.'); String className = i == -1 ? fqName : fqName.substring(i + 1); return className; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/649d9a65411ea451539361398ec9a18af83c404e/ClassUtil.java/clean/openapi/src/com/intellij/psi/util/ClassUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 2608, 3834, 12, 780, 8508, 461, 13, 288, 565, 509, 277, 273, 8508, 461, 18, 2722, 31985, 2668, 1093, 1769, 565, 514, 2658, 273, 277, 422, 300, 21, 692, 8508, 461, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 514, 2608, 3834, 12, 780, 8508, 461, 13, 288, 565, 509, 277, 273, 8508, 461, 18, 2722, 31985, 2668, 1093, 1769, 565, 514, 2658, 273, 277, 422, 300, 21, 692, 8508, 461, 294, ...
synchronized (_syncherMonitor) { while (true) { SyncBatch currentBatch = _nextBatchToSync; _nextBatchToSync = new SyncBatch(); syncToFile(); currentBatch.setSynched(); Cool.wait(_syncherMonitor); } }
syncher();
public void run() { synchronized (_syncherMonitor) { while (true) { SyncBatch currentBatch = _nextBatchToSync; _nextBatchToSync = new SyncBatch(); syncToFile(); currentBatch.setSynched(); Cool.wait(_syncherMonitor); } } }
5929 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5929/18cf06002cd779977fd55c13e0a58abcebb04ca4/DurableOutputStream.java/buggy/src/main/org/prevayler/foundation/DurableOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 22043, 261, 67, 87, 2515, 264, 7187, 13, 288, 6862, 202, 17523, 261, 3767, 13, 288, 25083, 202, 4047, 4497, 783, 4497, 273, 389, 4285, 4497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 22043, 261, 67, 87, 2515, 264, 7187, 13, 288, 6862, 202, 17523, 261, 3767, 13, 288, 25083, 202, 4047, 4497, 783, 4497, 273, 389, 4285, 4497, ...
ByteBuffer toReturn = (ByteBuffer) SLICED.remove(new Integer(System.identityHashCode(buf)));
ByteBuffer toReturn = (ByteBuffer) SLICED.remove(buf);
public synchronized void put(ByteBuffer buf) { // see if this buffer was sliced off of a bigger one ByteBuffer toReturn = (ByteBuffer) SLICED.remove(new Integer(System.identityHashCode(buf))); if (toReturn == null) toReturn = buf; toReturn.clear(); Integer size = new Integer(toReturn.capacity()); List l = (List) CACHE.get(size); if (l == null) { l = new ArrayList(1); CACHE.put(size, l); } l.add(toReturn); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/165ab242f1a68153585cd302d189616864967e50/HeapByteBufferCache.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/io/HeapByteBufferCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1378, 12, 12242, 1681, 13, 288, 7734, 368, 2621, 309, 333, 1613, 1703, 27353, 3397, 434, 279, 18983, 1245, 3639, 7400, 24029, 273, 261, 12242, 13, 2398, 348, 2053, 23552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1378, 12, 12242, 1681, 13, 288, 7734, 368, 2621, 309, 333, 1613, 1703, 27353, 3397, 434, 279, 18983, 1245, 3639, 7400, 24029, 273, 261, 12242, 13, 2398, 348, 2053, 23552, ...
getScmRewriter().rewriteScmInfo( project, getTagLabel() ); }
getScmRewriter().rewriteScmInfo( project, getTagLabel() ); }
protected void executeTask() throws MojoExecutionException { try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_INITIALIZED ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_PREPARED_RELEASE ) ) { checkForLocalModifications(); for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); getVersionResolver().resolveVersion( project ); getScmRewriter().rewriteScmInfo( project, getTagLabel() ); } for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); checkForPresenceOfSnapshots( project ); transformPomToReleaseVersionPom( project ); } generateReleasePoms(); checkInRelease(); tagRelease(); for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); getVersionResolver().incrementVersion( project ); getScmRewriter().restoreScmInfo( project ); } for ( Iterator it = reactorProjects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); transformPomToSnapshotVersionPom( project ); } removeReleasePoms(); checkInNextSnapshot(); try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_PREPARED_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/625596d32f1138e016cf983748dd893bd640133a/PrepareReleaseMojo.java/clean/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1836, 2174, 1435, 3639, 1216, 18780, 565, 288, 3639, 775, 3639, 288, 5411, 336, 7391, 5491, 7675, 25414, 12, 15573, 16, 10819, 5491, 8135, 18, 4258, 67, 12919, 25991, 11272, 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, 4750, 918, 1836, 2174, 1435, 3639, 1216, 18780, 565, 288, 3639, 775, 3639, 288, 5411, 336, 7391, 5491, 7675, 25414, 12, 15573, 16, 10819, 5491, 8135, 18, 4258, 67, 12919, 25991, 11272, 3639...
double m1 = 0; double m2 = 0;
public DescriptorResult calculate(AtomContainer container) { IsotopeFactory factory = null; double m1 = 0; double m2 = 0; try { factory = IsotopeFactory.getInstance(); } catch (Exception e) { System.out.println(e); } DoubleArrayResult retval = new DoubleArrayResult(7); double ccf = 1.000138; double eps = 1e-5; double[][] imat = new double[3][3]; Point3d cm = GeometryTools.get3DCentreOfMass(container); // make the MI tensor for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { double sum = 0.0; int delta; if (i == j) delta = 1; else delta = 0; for (int k = 0; k < container.getAtomCount(); k++) { double[] xyz = new double[3]; double mass = 0.0; double r = 0.0; mass = factory.getMajorIsotope( container.getAtomAt(k).getSymbol() ).getMassNumber(); r = cm.distance( container.getAtomAt(k).getPoint3d() ); xyz[0] = container.getAtomAt(k).getPoint3d().x - cm.x; xyz[1] = container.getAtomAt(k).getPoint3d().y - cm.y; xyz[2] = container.getAtomAt(k).getPoint3d().z - cm.z; sum = sum + mass * (r*r*delta - xyz[i]*xyz[j]); } imat[i][j] = sum; } } // diagonalize the MI tensor Matrix tmp = new Matrix(imat); EigenvalueDecomposition ed = tmp.eig(); double[] eval = ed.getRealEigenvalues(); retval.add( eval[0] ); retval.add( eval[1] ); retval.add( eval[2] ); if (Math.abs(eval[1]) > 1e-3) retval.add( eval[0]/eval[1] ); else retval.add( 1000 ); if (Math.abs(eval[2]) > 1e-3) { retval.add( eval[0]/eval[2] ); retval.add( eval[1]/eval[2] ); } else { retval.add( 1000 ); retval.add( 1000 ); } // finally get the radius of gyration double pri = 0.0; MFAnalyser mfa = new MFAnalyser(container); if (Math.abs(eval[2]) > eps) pri = Math.pow( eval[0]*eval[1]*eval[2], 1.0/3.0 ) ; else pri = Math.sqrt( eval[0] * ccf / mfa.getMass() ); retval.add( Math.sqrt(Math.PI * 2 * pri * ccf / mfa.getMass()) ); return retval; }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/0a7f0ac7459a9f9ba3f69e907ae5192937b6f0bd/MomentOfInertiaDescriptor.java/buggy/src/org/openscience/cdk/qsar/MomentOfInertiaDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12823, 1253, 4604, 12, 3641, 2170, 1478, 13, 288, 3639, 2585, 18946, 1733, 3272, 273, 446, 31, 3639, 1645, 312, 21, 273, 374, 31, 3639, 1645, 312, 22, 273, 374, 31, 3639, 775, 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, 12823, 1253, 4604, 12, 3641, 2170, 1478, 13, 288, 3639, 2585, 18946, 1733, 3272, 273, 446, 31, 3639, 1645, 312, 21, 273, 374, 31, 3639, 1645, 312, 22, 273, 374, 31, 3639, 775, 288...
reportSchemaError(list ? "src-simple-type.3" : "src-simple-type.2", null, content);
reportSchemaError(list ? "src-simple-type.3.a" : "src-simple-type.2.a", null, content);
private XSSimpleType traverseSimpleTypeDecl(Element simpleTypeDecl, Object[] attrValues, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // get name and final values String name = (String)attrValues[XSAttributeChecker.ATTIDX_NAME]; XInt finalAttr = (XInt)attrValues[XSAttributeChecker.ATTIDX_FINAL]; int finalProperty = finalAttr == null ? schemaDoc.fFinalDefault : finalAttr.intValue(); // annotation?,(list|restriction|union) Element child = DOMUtil.getFirstChildElement(simpleTypeDecl); if (child != null) { // traverse annotation if any if (DOMUtil.getLocalName(child).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child, attrValues, false, schemaDoc); child = DOMUtil.getNextSiblingElement(child); } } // (list|restriction|union) if (child == null) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, "(annotation?, (restriction | list | union))"}, simpleTypeDecl); return errorType(name, schemaDoc.fTargetNamespace, XSConstants.DERIVATION_RESTRICTION); } // derivation type: restriction/list/union String varietyProperty = DOMUtil.getLocalName(child); short refType = XSConstants.DERIVATION_RESTRICTION; boolean restriction = false, list = false, union = false; if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { refType = XSConstants.DERIVATION_RESTRICTION; restriction = true; } else if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { refType = XSConstants.DERIVATION_LIST; list = true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { refType = XSConstants.DERIVATION_UNION; union = true; } else { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, "(annotation?, (restriction | list | union))"}, simpleTypeDecl); return errorType(name, schemaDoc.fTargetNamespace, XSConstants.DERIVATION_RESTRICTION); } // nothing should follow this element Element nextChild = DOMUtil.getNextSiblingElement(child); if (nextChild != null) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, "(annotation?, (restriction | list | union))"}, nextChild); } // General Attribute Checking: get base/item/member types Object[] contentAttrs = fAttrChecker.checkAttributes(child, false, schemaDoc); QName baseTypeName = (QName)contentAttrs[restriction ? XSAttributeChecker.ATTIDX_BASE : XSAttributeChecker.ATTIDX_ITEMTYPE]; Vector memberTypes = (Vector)contentAttrs[XSAttributeChecker.ATTIDX_MEMBERTYPES]; //content = {annotation?,simpleType?...} Element content = DOMUtil.getFirstChildElement(child); //check content (annotation?, ...) if (content != null) { // traverse annotation if any if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(content, contentAttrs, false, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } } // get base type from "base" attribute XSSimpleType baseValidator = null; if ((restriction || list) && baseTypeName != null) { baseValidator = findDTValidator(child, name, baseTypeName, refType, schemaDoc); // if its the built-in type, return null from here if (baseValidator == null && fIsBuiltIn) { fIsBuiltIn = false; return null; } } // get types from "memberTypes" attribute Vector dTValidators = null; XSSimpleType dv = null; XSObjectList dvs; if (union && memberTypes != null && memberTypes.size() > 0) { int size = memberTypes.size(); dTValidators = new Vector(size, 2); // for each qname in the list for (int i = 0; i < size; i++) { // get the type decl dv = findDTValidator(child, name, (QName)memberTypes.elementAt(i), XSConstants.DERIVATION_UNION, schemaDoc); if (dv != null) { // if it's a union, expand it if (dv.getVariety() == XSSimpleType.VARIETY_UNION) { dvs = dv.getMemberTypes(); for (int j = 0; j < dvs.getLength(); j++) dTValidators.addElement(dvs.item(j)); } else { dTValidators.addElement(dv); } } } } // when there is an error finding the base type of a restriciton // we use anySimpleType as the base, then we should skip the facets, // because anySimpleType doesn't recognize any facet. boolean skipFacets = false; // check if there is a child "simpleType" if (content != null && DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_SIMPLETYPE)) { if (restriction || list) { // it's an error for both "base" and "simpleType" to appear if (baseTypeName != null) { reportSchemaError(list ? "src-simple-type.3" : "src-simple-type.2", null, content); } else { // traver this child to get the base type baseValidator = traverseLocal(content, schemaDoc, grammar); } // get the next element content = DOMUtil.getNextSiblingElement(content); } else if (union) { if (dTValidators == null) { dTValidators = new Vector(2, 2); } do { // traver this child to get the member type dv = traverseLocal(content, schemaDoc, grammar); if (dv != null) { // if it's a union, expand it if (dv.getVariety() == XSSimpleType.VARIETY_UNION) { dvs = dv.getMemberTypes(); for (int j = 0; j < dvs.getLength(); j++) dTValidators.addElement(dvs.item(j)); } else { dTValidators.addElement(dv); } } // get the next element content = DOMUtil.getNextSiblingElement(content); } while (content != null && DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_SIMPLETYPE)); } } else if ((restriction || list) && baseTypeName == null) { // it's an error if neither "base" nor "simpleType" appears reportSchemaError("src-simple-type.2", null, child); // base can't be found, skip the facets. skipFacets = true; baseValidator = SchemaGrammar.fAnySimpleType; } else if (union && (memberTypes == null || memberTypes.size() == 0)) { // it's an error if "memberTypes" is empty and no "simpleType" appears reportSchemaError("src-union-memberTypes-or-simpleTypes", null, child); dTValidators = new Vector(1); dTValidators.addElement(SchemaGrammar.fAnySimpleType); } // error finding "base" or error traversing "simpleType". // don't need to report an error, since some error has been reported. if ((restriction || list) && baseValidator == null) { baseValidator = SchemaGrammar.fAnySimpleType; } // error finding "memberTypes" or error traversing "simpleType". // don't need to report an error, since some error has been reported. if (union && (dTValidators == null || dTValidators.size() == 0)) { dTValidators = new Vector(1); dTValidators.addElement(SchemaGrammar.fAnySimpleType); } // item type of list types can't have list content if (list && isListDatatype(baseValidator)) { reportSchemaError("cos-list-of-atomic", new Object[]{name}, child); } // create the simple type based on the "base" type XSSimpleType newDecl = null; if (restriction) { newDecl = schemaFactory.createTypeRestriction(name, schemaDoc.fTargetNamespace, (short)finalProperty, baseValidator); } else if (list) { newDecl = schemaFactory.createTypeList(name, schemaDoc.fTargetNamespace, (short)finalProperty, baseValidator); } else if (union) { XSSimpleType[] memberDecls = new XSSimpleType[dTValidators.size()]; for (int i = 0; i < dTValidators.size(); i++) memberDecls[i] = (XSSimpleType)dTValidators.elementAt(i); newDecl = schemaFactory.createTypeUnion(name, schemaDoc.fTargetNamespace, (short)finalProperty, memberDecls); } // now traverse facets, if it's derived by restriction if (restriction && content != null) { FacetInfo fi = traverseFacets(content, baseValidator, schemaDoc); content = fi.nodeAfterFacets; if (!skipFacets) { try { fValidationState.setNamespaceSupport(schemaDoc.fNamespaceSupport); newDecl.applyFacets(fi.facetdata, fi.fPresentFacets, fi.fFixedFacets, fValidationState); } catch (InvalidDatatypeFacetException ex) { reportSchemaError(ex.getKey(), ex.getArgs(), child); } } } // now element should appear after this point if (content != null) { if (restriction) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_RESTRICTION, "(annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern)*))"}, content); } else if (list) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_LIST, "(annotation?, (simpleType?))"}, content); } else if (union) { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_UNION, "(annotation?, (simpleType*))"}, content); } } fAttrChecker.returnAttrArray(contentAttrs, schemaDoc); // return the new type return newDecl; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b8632d1162b8572ec5348c474617947ba89f7bff/XSDSimpleTypeTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDSimpleTypeTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1139, 1260, 2052, 559, 10080, 5784, 559, 3456, 12, 1046, 4143, 559, 3456, 16, 4766, 7734, 1033, 8526, 1604, 1972, 16, 4766, 7734, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 7734, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1139, 1260, 2052, 559, 10080, 5784, 559, 3456, 12, 1046, 4143, 559, 3456, 16, 4766, 7734, 1033, 8526, 1604, 1972, 16, 4766, 7734, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 7734, 46...
boolean matchName, noMatch; String tagName = null; short matchNodeType;
boolean matchOnElement, matchFound; short findNodeType;
protected void compareNodeList(NodeList control, NodeList test, int numNodes, DifferenceListener listener) throws DifferenceFoundException { Node nextControl, nextTest = null; int j = 0; int lastTestNode = test.getLength() - 1; boolean matchName, noMatch; String tagName = null; short matchNodeType; testTracker.preloadNodeList(test); for (int i=0; i < numNodes; ++i) { nextControl = control.item(i); if (nextControl instanceof Element) { matchName = true; tagName = nextControl.getNodeName(); } else { matchName = false; } matchNodeType = nextControl.getNodeType(); int startAt = ( i > lastTestNode ? lastTestNode : i); j = startAt; noMatch = true; while (noMatch) { if (matchName && test.item(j) instanceof Element && test.item(j).getNodeName().equals(tagName)) { noMatch = false; } else if (!matchName && matchNodeType == test.item(j).getNodeType()) { noMatch = false; } else { ++j; if (j > lastTestNode) { j = 0; } if (j == startAt) { // been through all children noMatch = false; } } } nextTest = test.item(j); compare(new Integer(i), new Integer(j), nextControl, nextTest, listener, CHILD_NODELIST_SEQUENCE); compareNode(nextControl, nextTest, listener); } }
52340 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52340/906437557af2ec7b095a0e2d73ef01fe2ff53ecc/DifferenceEngine.java/clean/src/java/org/custommonkey/xmlunit/DifferenceEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3400, 19914, 12, 19914, 3325, 16, 16781, 1842, 16, 565, 509, 818, 3205, 16, 29474, 2223, 2991, 13, 1216, 29474, 2043, 503, 288, 3639, 2029, 1024, 3367, 16, 1024, 4709, 273, 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, 377, 4750, 918, 3400, 19914, 12, 19914, 3325, 16, 16781, 1842, 16, 565, 509, 818, 3205, 16, 29474, 2223, 2991, 13, 1216, 29474, 2043, 503, 288, 3639, 2029, 1024, 3367, 16, 1024, 4709, 273, 446...
firePropertyChange(LIGHTWEIGHT_POPUP_ENABLED_PROPERTY_CHANGED, !isEnabled, isEnabled);
firePropertyChange(StringConstants.LIGHTWEIGHT_POPUP_ENABLED_PROPERTY_CHANGED, !isEnabled, isEnabled);
public void setLightWeightPopupEnabled(final boolean isEnabled) { if (lightWeightPopupEnabled != isEnabled) { lightWeightPopupEnabled = isEnabled; firePropertyChange(LIGHTWEIGHT_POPUP_ENABLED_PROPERTY_CHANGED, !isEnabled, isEnabled); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9b00f971bab2256d913aec1b141462a929f6e182/JComboBox.java/clean/modules/swing/src/main/java/common/javax/swing/JComboBox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 12128, 6544, 13770, 1526, 12, 6385, 1250, 12047, 13, 288, 3639, 309, 261, 5099, 6544, 13770, 1526, 480, 12047, 13, 288, 5411, 9052, 6544, 13770, 1526, 273, 12047, 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, 444, 12128, 6544, 13770, 1526, 12, 6385, 1250, 12047, 13, 288, 3639, 309, 261, 5099, 6544, 13770, 1526, 480, 12047, 13, 288, 5411, 9052, 6544, 13770, 1526, 273, 12047, 31, 5411, ...
public static RubyNumeric rand(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { double result = ruby.random.nextDouble(); return RubyFloat.newFloat(ruby, result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError("Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(ruby, ruby.random.nextInt((int) ceil)); } else { throw new ArgumentError(ruby, "wrong # of arguments(" + args.length + " for 1)"); } }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 54, 10340, 9902, 7884, 12, 54, 10340, 27768, 16, 54, 10340, 921, 18334, 16, 54, 10340, 921, 1968, 63, 5717, 95, 430, 12, 1968, 18, 2469, 631, 20, 15329, 2896, 440, 11737, 406, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 54, 10340, 9902, 7884, 12, 54, 10340, 27768, 16, 54, 10340, 921, 18334, 16, 54, 10340, 921, 1968, 63, 5717, 95, 430, 12, 1968, 18, 2469, 631, 20, 15329, 2896, 440, 11737, 406, 33...
} finally {
} catch (LockException e) { throw new RemoteException(e.getMessage(), e); } finally {
public int xupdateResource( String sessionId, String documentName, String xupdate) throws RemoteException { DBBroker broker = null; Session session = getSession(sessionId); try { broker = pool.get(session.getUser()); Document doc = broker.getDocument(documentName); if (doc == null) throw new RemoteException( "document " + documentName + " not found"); DocumentSet docs = new DocumentSet(); docs.add(doc); XUpdateProcessor processor = new XUpdateProcessor(broker, docs); Modification modifications[] = processor.parse(new InputSource(new StringReader(xupdate))); long mods = 0; for (int i = 0; i < modifications.length; i++) { mods += modifications[i].process(); broker.flush(); } return (int) mods; } catch (ParserConfigurationException e) { throw new RemoteException(e.getMessage(), e); } catch (IOException e) { throw new RemoteException(e.getMessage(), e); } catch (EXistException e) { throw new RemoteException(e.getMessage(), e); } catch (SAXException e) { throw new RemoteException(e.getMessage(), e); } catch (PermissionDeniedException e) { throw new RemoteException(e.getMessage(), e); } catch (XPathException e) { throw new RemoteException(e.getMessage(), e); } finally { pool.release(broker); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/036ccdd3fe4cdde6cf0f24f284e57caec99eaa4a/AdminSoapBindingImpl.java/buggy/src/org/exist/soap/AdminSoapBindingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 619, 2725, 1420, 12, 202, 202, 780, 10338, 16, 202, 202, 780, 1668, 461, 16, 202, 202, 780, 619, 2725, 13, 202, 202, 15069, 18361, 288, 202, 202, 2290, 11194, 8625, 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, 225, 202, 482, 509, 619, 2725, 1420, 12, 202, 202, 780, 10338, 16, 202, 202, 780, 1668, 461, 16, 202, 202, 780, 619, 2725, 13, 202, 202, 15069, 18361, 288, 202, 202, 2290, 11194, 8625, 273, ...
out.println(" &nbsp;<br>"); out.println(" </td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td>&nbsp;</td>"); out.println(" <td background=\"" + _imageDir + "/bluestripesbottom.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println("</table>");
out.println(" &nbsp;<br>"); out.println(" </td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td>&nbsp;</td>"); out.println(" <td background=\"" + _imageDir + "/bluestripesbottom.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println("</table>");
public void doGet(HttpServletRequest req, HttpServletResponse res) { try { _logFile = req.getQueryString(); if(_logFile == null || _logFile.equals("")) _logFile = getLastBuildLogFilename(); else _logFile += ".xml"; _logFile = _logDir + "\\" + _logFile; PrintWriter out = res.getWriter(); res.setContentType("text/html"); out.println("<html>"); out.println("<head><title>" + _title + "</title></head>"); out.println("<body link=\"#FFFFFF\" vlink=\"#FFFFFF\" background=\"" + _imageDir + "/bluebg.gif\" topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">"); out.println("<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"98%\">"); out.println(" <tr>"); out.println(" <td>&nbsp;</td>"); out.println(" <td background=\"" + _imageDir + "/bluestripestop.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td width=\"180\" valign=\"top\"><img src=\"" + _imageDir + "/" + _logo + "\" border=\"0\"><br><table border=\"0\" align=\"center\" width=\"98%\"><tr><td>"); out.println("<font face=\"arial\" size=\"2\" color=\"#FFFFFF\">"); // ***** print current build info (when did we start the running build?) ***** printCurrentBuildStatus(out); out.println("<br>&nbsp;<br><b>Previous Builds:</b><br>"); // ***** all logs for navigation ***** printLogsAsLinks(out); out.println(" </td></tr></table></td>"); out.println(" <td valign=\"top\" bgcolor=\"#FFFFFF\" width=\"640\">"); out.println(" &nbsp;<br>"); // ***** transform build xml to html ***** transformBuildLogToHTML(out); out.println(" &nbsp;<br>"); out.println(" </td>"); out.println(" </tr>"); out.println(" <tr>"); out.println(" <td>&nbsp;</td>"); out.println(" <td background=\"" + _imageDir + "/bluestripesbottom.gif\"><img src=\"" + _imageDir + "/blank20.gif\" border=\"0\"></td>"); out.println(" </tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } catch(Exception e) { e.printStackTrace(); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/2c86e3f0342c9427eb227ca6a95b4dc4c20cf077/BuildServlet.java/clean/main/src/net/sourceforge/cruisecontrol/BuildServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 288, 1377, 775, 288, 540, 389, 1330, 812, 273, 1111, 18, 588, 15276, 5621, 540, 309, 24899, 1330, 812, 422, 446, 747, 389, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 288, 1377, 775, 288, 540, 389, 1330, 812, 273, 1111, 18, 588, 15276, 5621, 540, 309, 24899, 1330, 812, 422, 446, 747, 389, 1...
if(_pos > -1) { setCaretPosition(_pos); }
if (_pos > -1) setCaretPosition(_pos);
public void redo() { _undo.redo(); if(_pos > -1) { setCaretPosition(_pos); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/03fcb19e2e455531cf9f2f73094d7f9c8d5e6255/DefinitionsPane.java/buggy/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24524, 1435, 288, 1377, 389, 31226, 18, 1118, 83, 5621, 1377, 309, 24899, 917, 405, 300, 21, 13, 288, 3639, 11440, 20731, 2555, 24899, 917, 1769, 1377, 289, 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, 918, 24524, 1435, 288, 1377, 389, 31226, 18, 1118, 83, 5621, 1377, 309, 24899, 917, 405, 300, 21, 13, 288, 3639, 11440, 20731, 2555, 24899, 917, 1769, 1377, 289, 565, 289, 2, -100, ...
void handleListChange(IObservableList source, ListDiff diff);
void handleListChange(ListChangeEvent event);
void handleListChange(IObservableList source, ListDiff diff);
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6aecdb31231a8602dbf72944625703c440949c78/IListChangeListener.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/list/IListChangeListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1640, 682, 3043, 12, 4294, 3745, 682, 1084, 16, 987, 5938, 3122, 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...
[ 1, 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, 225, 202, 6459, 1640, 682, 3043, 12, 4294, 3745, 682, 1084, 16, 987, 5938, 3122, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist );
querystring = checkEmptyQuery ( querystring ); querystring = workAroundLuceneBug( querystring ); querystring = stripHandles ( querystring );
public static synchronized HashMap doQuery(Context c, String querystring) throws IOException { querystring = checkEmptyQuery( querystring ); querystring = workAroundLuceneBug( querystring ); querystring = stripHandles( querystring ); ArrayList resultlist= new ArrayList(); ArrayList itemlist = new ArrayList(); ArrayList commlist = new ArrayList(); ArrayList colllist = new ArrayList(); HashMap metahash = new HashMap(); // initial results are empty metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); try { IndexSearcher searcher = new IndexSearcher( ConfigurationManager.getProperty("search.dir")); QueryParser qp = new QueryParser("default", new DSAnalyzer()); Query myquery = qp.parse(querystring); Hits hits = searcher.search(myquery); for (int i = 0; i < hits.length(); i++) { Document d = hits.doc(i); String handletext = d.get("handle"); String handletype = d.get("type"); resultlist.add(handletext); if (handletype.equals(ITEM)) { itemlist.add(handletext); } else if (handletype.equals(COLLECTION)) { colllist.add(handletext); } else if (handletype.equals(COMMUNITY)) { commlist.add(handletext); break; } } // close the IndexSearcher - and all its filehandles searcher.close(); // store all of the different types of hits in the hash metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); } catch (NumberFormatException e) { // a bad parse means that there are no results // doing nothing with the exception gets you // throw new SQLException( "Error parsing search results: " + e ); // ?? quit? } catch (ParseException e) { // a parse exception - log and return null results log.warn(LogManager.getHeader(c, "Lucene Parse Exception", "" + e)); } return metahash; }
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/8f858d84dc2fcea79f7852722d5a8a3ed610ba7d/DSQuery.java/clean/dspace/src/org/dspace/search/DSQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3852, 4317, 741, 1138, 12, 1042, 276, 16, 514, 20741, 13, 3639, 1216, 1860, 565, 288, 3639, 20741, 273, 866, 1921, 1138, 12, 20741, 11272, 3639, 20741, 273, 1440, 30022, 19763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 4317, 741, 1138, 12, 1042, 276, 16, 514, 20741, 13, 3639, 1216, 1860, 565, 288, 3639, 20741, 273, 866, 1921, 1138, 12, 20741, 11272, 3639, 20741, 273, 1440, 30022, 19763, ...
List misc1Rows = testDoc.selectNodes(" List misc2Rows = testDoc.selectNodes("
misc1Rows = testDoc.selectNodes(" misc2Rows = testDoc.selectNodes("
public void testIdentityOverrideOn() throws Exception { if (!getPlatformInfo().isIdentityOverrideAllowed()) { // TODO: for testing these platforms, we need deleteRows return; } final String modelXml = "<?xml version='1.0' encoding='ISO-8859-1'?>\n"+ "<database name='roundtriptest'>\n"+ " <table name='misc1'>\n"+ " <column name='pk' type='INTEGER' primaryKey='true' required='true' autoIncrement='true'/>\n"+ " <column name='avalue' type='INTEGER' required='false'/>\n"+ " </table>\n"+ " <table name='misc2'>\n"+ " <column name='pk' type='INTEGER' primaryKey='true' required='true'/>\n"+ " <column name='fk' type='INTEGER' required='false'/>\n"+ " <foreign-key name='test' foreignTable='misc1'>\n"+ " <reference local='fk' foreign='pk'/>\n"+ " </foreign-key>\n"+ " </table>\n"+ "</database>"; createDatabase(modelXml); getPlatform().setIdentityOverrideOn(true); insertRow("misc1", new Object[] { new Integer(10), new Integer(1) }); insertRow("misc1", new Object[] { new Integer(12), new Integer(2) }); insertRow("misc1", new Object[] { new Integer(13), new Integer(3) }); insertRow("misc2", new Object[] { new Integer(1), new Integer(10) }); insertRow("misc2", new Object[] { new Integer(2), new Integer(13) }); StringWriter stringWriter = new StringWriter(); DatabaseDataIO dataIO = new DatabaseDataIO(); dataIO.writeDataToXML(getPlatform(), stringWriter, "UTF-8"); String dataAsXml = stringWriter.toString(); SAXReader reader = new SAXReader(); Document testDoc = reader.read(new InputSource(new StringReader(dataAsXml))); if (getPlatform().isDelimitedIdentifierModeOn()) { List misc1Rows = testDoc.selectNodes("//misc1"); List misc2Rows = testDoc.selectNodes("//misc2"); assertEquals(3, misc1Rows.size()); assertEquals("10", ((Element)misc1Rows.get(0)).attributeValue("pk")); assertEquals("1", ((Element)misc1Rows.get(0)).attributeValue("avalue")); assertEquals("12", ((Element)misc1Rows.get(1)).attributeValue("pk")); assertEquals("2", ((Element)misc1Rows.get(1)).attributeValue("avalue")); assertEquals("13", ((Element)misc1Rows.get(2)).attributeValue("pk")); assertEquals("3", ((Element)misc1Rows.get(2)).attributeValue("avalue")); assertEquals(2, misc2Rows.size()); assertEquals("1", ((Element)misc2Rows.get(0)).attributeValue("pk")); assertEquals("10", ((Element)misc2Rows.get(0)).attributeValue("fk")); assertEquals("2", ((Element)misc2Rows.get(1)).attributeValue("pk")); assertEquals("13", ((Element)misc2Rows.get(1)).attributeValue("fk")); } else { List misc1Rows = testDoc.selectNodes("//MISC1"); List misc2Rows = testDoc.selectNodes("//MISC2"); assertEquals(3, misc1Rows.size()); assertEquals("10", ((Element)misc1Rows.get(0)).attributeValue("PK")); assertEquals("1", ((Element)misc1Rows.get(0)).attributeValue("AVALUE")); assertEquals("12", ((Element)misc1Rows.get(1)).attributeValue("PK")); assertEquals("2", ((Element)misc1Rows.get(1)).attributeValue("AVALUE")); assertEquals("13", ((Element)misc1Rows.get(2)).attributeValue("PK")); assertEquals("3", ((Element)misc1Rows.get(2)).attributeValue("AVALUE")); assertEquals(2, misc2Rows.size()); assertEquals("1", ((Element)misc2Rows.get(0)).attributeValue("PK")); assertEquals("10", ((Element)misc2Rows.get(0)).attributeValue("FK")); assertEquals("2", ((Element)misc2Rows.get(1)).attributeValue("PK")); assertEquals("13", ((Element)misc2Rows.get(1)).attributeValue("FK")); } dropDatabase(); createDatabase(modelXml); StringReader stringReader = new StringReader(dataAsXml); dataIO.writeDataToDatabase(getPlatform(), new Reader[] { stringReader }); List beans = getRows("misc1"); assertEquals(new Integer(10), beans.get(0), "pk"); assertEquals(new Integer(1), beans.get(0), "avalue"); assertEquals(new Integer(12), beans.get(1), "pk"); assertEquals(new Integer(2), beans.get(1), "avalue"); assertEquals(new Integer(13), beans.get(2), "pk"); assertEquals(new Integer(3), beans.get(2), "avalue"); beans = getRows("misc2"); assertEquals(new Integer(1), beans.get(0), "pk"); assertEquals(new Integer(10), beans.get(0), "fk"); assertEquals(new Integer(2), beans.get(1), "pk"); assertEquals(new Integer(13), beans.get(1), "fk"); }
3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/43e4e6491ae42e1ee673c87561f79d87183263e6/TestMisc.java/clean/src/test/org/apache/ddlutils/io/TestMisc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4334, 6618, 1398, 1435, 1216, 1185, 565, 288, 3639, 309, 16051, 588, 8201, 966, 7675, 291, 4334, 6618, 5042, 10756, 3639, 288, 5411, 368, 2660, 30, 364, 7769, 4259, 17422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4334, 6618, 1398, 1435, 1216, 1185, 565, 288, 3639, 309, 16051, 588, 8201, 966, 7675, 291, 4334, 6618, 5042, 10756, 3639, 288, 5411, 368, 2660, 30, 364, 7769, 4259, 17422, ...
log.error("Must submit 'done' (press 'd') before mcasting new message");
System.err.println("Must submit 'done' (press 'd') before mcasting new message");
public void mcast(int num) throws IOException { if(!done_submitted) { log.error("Must submit 'done' (press 'd') before mcasting new message"); return; } for(int i=0; i < num; i++) { Util.sleep(100); System.out.println("Casting message #" + i); disp.castMessage(null, i, new Message(null, null, "Number #" + i), coll); } done_submitted=false; }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/13de68466e3cf7fde6ee0bde0cee09a33e837e89/MessageDispatcherTestAsync.java/buggy/tests/other/org/jgroups/tests/MessageDispatcherTestAsync.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 4155, 12, 474, 818, 13, 1216, 1860, 288, 3639, 309, 12, 5, 8734, 67, 31575, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 10136, 4879, 296, 8734, 11, 261, 1028, 296, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 4155, 12, 474, 818, 13, 1216, 1860, 288, 3639, 309, 12, 5, 8734, 67, 31575, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 10136, 4879, 296, 8734, 11, 261, 1028, 296, 7...
public void serverMessage(boolean reliable, ByteBuffer databuff);
public void serverMessage(boolean reliable, UserID userID, ByteBuffer databuff);
public void serverMessage(boolean reliable, ByteBuffer databuff);
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/96b8c34a552c4fde1dbf307285233759afb44ea3/Router.java/clean/src/com/sun/gi/comm/routing/Router.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1438, 1079, 12, 6494, 31024, 16, 7400, 10481, 3809, 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, ...
[ 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, 225, 202, 482, 918, 1438, 1079, 12, 6494, 31024, 16, 7400, 10481, 3809, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
handleSelect( (TableTreeItem) e.item );
handleSelect( (TreeItem) e.item );
public void widgetDefaultSelected( SelectionEvent e ) { handleSelect( (TableTreeItem) e.item ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/97ec512e11440a7aef4cabaf9a1d56dca5de4b0b/ReportPropertySheetPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/views/property/ReportPropertySheetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 1868, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 4110, 3391, 12, 261, 1388, 2471, 1180, 13, 425, 18, 1726, 11272, 1082, 202, 97, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1875, 202, 482, 918, 3604, 1868, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 4110, 3391, 12, 261, 1388, 2471, 1180, 13, 425, 18, 1726, 11272, 1082, 202, 97, 2, -100, -100, -10...
protected Iterator getSetSpecs(Object nativeItem)
public Iterator getSetSpecs(Object nativeItem)
protected Iterator getSetSpecs(Object nativeItem) { HarvestedItemInfo hii = (HarvestedItemInfo) nativeItem; Iterator i = hii.collectionHandles.iterator(); List setSpecs = new LinkedList(); // Convert the DB Handle string 123.456/789 to the OAI-friendly // hdl_123.456/789 while (i.hasNext()) { String handle = "hdl_" + (String) i.next(); setSpecs.add(handle.replace('/', '_')); } return setSpecs.iterator(); }
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/9a9b0307b93afcc19694d4cb51db0f653b91a0be/DSpaceRecordFactory.java/clean/dspace/src/org/dspace/app/oai/DSpaceRecordFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 336, 694, 15999, 12, 921, 6448, 1180, 13, 565, 288, 3639, 670, 297, 90, 3149, 1180, 966, 366, 2835, 273, 261, 44, 297, 90, 3149, 1180, 966, 13, 6448, 1180, 31, 3639, 4498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 336, 694, 15999, 12, 921, 6448, 1180, 13, 565, 288, 3639, 670, 297, 90, 3149, 1180, 966, 366, 2835, 273, 261, 44, 297, 90, 3149, 1180, 966, 13, 6448, 1180, 31, 3639, 4498, ...
sharedDataRootDir = new File(MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + "SharedDataDir");
sharedDataRootDir = new File(MylarPlugin.getDefault().getDataDirectory() + File.separator + "SharedDataDir");
protected void setUp() throws Exception { super.setUp(); //Get the original main data directory so that it can be reset later originalMainDataDir = MylarPlugin.getDefault().getMylarDataDirectory(); //Create a task to make sure there is some data in the main directory createAndSaveTask("Task1"); //Create the shared data directory structure sharedDataRootDir = new File(MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + "SharedDataDir"); sharedDataRootDir.mkdir(); assertTrue(sharedDataRootDir.exists()); bobsDataDir = new File(sharedDataRootDir.getPath() + File.separator + "Bob"); bobsDataDir.mkdir(); assertTrue(bobsDataDir.exists()); jillsDataDir = new File(sharedDataRootDir.getPath() + File.separator + "Jill"); jillsDataDir.mkdir(); assertTrue(jillsDataDir.exists()); //Start the shared data dirs off with copies of the main data File mainDataDir = new File(originalMainDataDir); for ( File currFile : mainDataDir.listFiles()) { File destFile = new File(bobsDataDir.getPath() + File.separator + currFile.getName()); copy(currFile, destFile); destFile = new File(jillsDataDir.getPath() + File.separator + currFile.getName()); copy(currFile, destFile); } //Set the shared data dir originalSharedDataDir = MylarPlugin.getDefault().getSharedDataDirectory(); MylarReportsPlugin.getDefault().getPreferenceStore().setValue(MylarReportsPlugin.SHARED_TASK_DATA_ROOT_DIR, sharedDataRootDir.getPath()); MylarPlugin.getDefault().setSharedDataDirectory(sharedDataRootDir.getPath()); assertFalse(MylarPlugin.getDefault().getMylarDataDirectory().equals(sharedDataRootDir.getPath())); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e4d7d68e3083b7aa240fce198b4196a7b47eade8/SharedTaskFolderTest.java/buggy/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/SharedTaskFolderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 9506, 202, 759, 967, 326, 2282, 2774, 501, 1867, 1427, 716, 518, 848, 506, 2715, 5137, 202, 202, 8830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 9506, 202, 759, 967, 326, 2282, 2774, 501, 1867, 1427, 716, 518, 848, 506, 2715, 5137, 202, 202, 8830, ...
if (filename.indexOf(C_VFS_PATH_OLD_BODIES) != -1 || filename.indexOf(I_CmsWpConstants.C_VFS_PATH_BODIES) != -1) {
if (filename.indexOf(C_VFS_PATH_OLD_BODIES) != -1 || filename.indexOf(I_CmsWpConstants.C_VFS_PATH_BODIES) != -1) {
private byte[] convertFile(String filename, byte[] byteContent, String type){ byte[] returnValue = byteContent; if (!filename.startsWith("/")) { filename = "/" + filename; } // get content of the file and store it in String String fileContent = new String(byteContent); // check the frametemplates if (filename.indexOf("frametemplates")!=-1) { fileContent = scanFrameTemplate(fileContent); } // set encoding of xml files fileContent = setEncoding(fileContent, OpenCms.getDefaultEncoding()); // translate OpenCms 4.x paths to new directory structure fileContent = setDirectories(fileContent,type); // scan content/bodys if (filename.indexOf(C_VFS_PATH_OLD_BODIES) != -1 || filename.indexOf(I_CmsWpConstants.C_VFS_PATH_BODIES) != -1) { fileContent = convertPageBody(fileContent, filename); } // create output file returnValue = fileContent.getBytes(); return returnValue; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/f18005a4cbd8db6bd62da8693efef61642588e25/CmsImport.java/clean/src/com/opencms/file/CmsImport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1160, 8526, 1765, 812, 12, 780, 1544, 16, 1160, 8526, 1160, 1350, 16, 514, 618, 15329, 377, 202, 7229, 8526, 7750, 273, 1160, 1350, 31, 3639, 309, 16051, 3459, 18, 17514, 1190,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 1765, 812, 12, 780, 1544, 16, 1160, 8526, 1160, 1350, 16, 514, 618, 15329, 377, 202, 7229, 8526, 7750, 273, 1160, 1350, 31, 3639, 309, 16051, 3459, 18, 17514, 1190,...
if( index >= 0 ) { return new ViewerCell(this,index); }
public ViewerCell getCell(Point point) { int index = getColumnIndex(point); if( index >= 0 ) { return new ViewerCell(this,index); } return null; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/993eb3b2892341609501c5d74117b5ae4bbf9b50/ViewerRow.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerRow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4441, 264, 4020, 16458, 12, 2148, 1634, 13, 288, 202, 202, 474, 770, 273, 6716, 1016, 12, 1153, 1769, 9506, 202, 430, 12, 770, 1545, 374, 262, 288, 1082, 202, 2463, 394, 4441,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4441, 264, 4020, 16458, 12, 2148, 1634, 13, 288, 202, 202, 474, 770, 273, 6716, 1016, 12, 1153, 1769, 9506, 202, 430, 12, 770, 1545, 374, 262, 288, 1082, 202, 2463, 394, 4441,...
assertSaveBeforeProceedingCount(0);
assertSaveAllBeforeProceedingCount(0);
public void testCompileUnsavedButSaveWhenAsked() throws BadLocationException, IOException { final OpenDefinitionsDocument doc = setupDocument(FOO_TEXT); final File file = tempFile(); CompileShouldSucceedListener listener = new CompileShouldSucceedListener() { public void saveBeforeProceeding(GlobalModelListener.SaveReason reason) { assertEquals(_name() + "save reason", COMPILE_REASON, reason); assertModified(true, doc); assertSaveCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); try { doc.saveFile(new FileSelector(file)); } catch (IOException ioe) { fail("Save produced exception: " + ioe); } saveBeforeProceedingCount++; } public void fileSaved(OpenDefinitionsDocument doc) { assertModified(false, doc); assertSaveBeforeProceedingCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); File f = null; try { f = doc.getFile(); } catch (IllegalStateException ise) { // We know file should exist throw new UnexpectedException(ise); } assertEquals(_name() + "file saved", file, f); saveCount++; } }; _model.addListener(listener); doc.startCompile(); // Check events fired listener.assertSaveBeforeProceedingCount(1); listener.assertSaveCount(1); assertCompileErrorsPresent(_name(), false); listener.checkCompileOccurred(); // Make sure .class exists File compiled = classForJava(file, "Foo"); assertTrue(_name() + "Class file doesn't exist after compile", compiled.exists()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/963348ced7921c9036c4d0267a79aecf5dc0da09/GlobalModelCompileTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/GlobalModelCompileTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9937, 984, 14077, 31167, 4755, 9434, 23663, 329, 1435, 565, 1216, 6107, 2735, 503, 16, 1860, 225, 288, 565, 727, 3502, 7130, 2519, 997, 273, 3875, 2519, 12, 3313, 51, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9937, 984, 14077, 31167, 4755, 9434, 23663, 329, 1435, 565, 1216, 6107, 2735, 503, 16, 1860, 225, 288, 565, 727, 3502, 7130, 2519, 997, 273, 3875, 2519, 12, 3313, 51, 67,...
printDocArg("arg","an ASCII character"); printDocReturn("An ATerm representing the ASCII value of |arg|");
printDocArg("ch","an ASCII character"); printDocReturn("An ATerm representing the ASCII value of #arg");
private void genStaticByteToChar() { printDocHead("Converts an ASCII char to an ATermInt",""); printDocArg("arg","an ASCII character"); printDocReturn("An ATerm representing the ASCII value of |arg|"); printDocTail(); println("ATerm " + prefix + "byteToChar(char ch) {"); // println("{"); println(" return (ATerm) ATmakeInt(ch);"); println("}"); println(); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/e7feae01bef1a9952eb7351226f23ef515adcef3/APIGenerator.java/buggy/apigen/src/apigen/gen/c/APIGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3157, 5788, 3216, 774, 2156, 1435, 288, 202, 202, 1188, 1759, 1414, 2932, 5692, 392, 11768, 1149, 358, 392, 432, 4065, 1702, 3113, 3660, 1769, 202, 202, 1188, 1759, 4117, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3157, 5788, 3216, 774, 2156, 1435, 288, 202, 202, 1188, 1759, 1414, 2932, 5692, 392, 11768, 1149, 358, 392, 432, 4065, 1702, 3113, 3660, 1769, 202, 202, 1188, 1759, 4117, ...
public void maybeUpdate(){ synchronized(this) { try{ if(isFetching || (!isRunning) || (!isUpdatable())) return; }catch (PrivkeyHasBeenBlownException e){ // Handled in blow(). isRunning=false; return; } } alert.set(availableVersion,false); alert.isValid(true); Logger.normal(this,"Starting the update process"); System.err.println("Starting the update process: found the update, now fetching it.");// We fetch it try{ if((cg==null)||cg.isCancelled()){ cg = new ClientGetter(this, node.chkFetchScheduler, node.sskFetchScheduler, URI.setSuggestedEdition(availableVersion), ctx, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, this, new ArrayBucket()); } cg.start(); isFetching = true; queueFetchRevocation(0); }catch (Exception e) { Logger.error(this, "Error while starting the fetching: "+e, e); isFetching=false; } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/0ce52e9ff1e0048c34e8d11f2ad596bc8936f6e9/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 225, 6944, 1891, 1435, 95, 202, 202, 22043, 12, 2211, 13, 225, 288, 1082, 202, 698, 95, 9506, 202, 430, 12, 291, 30806, 225, 747, 225, 16051, 291, 7051, 13, 225, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 225, 6944, 1891, 1435, 95, 202, 202, 22043, 12, 2211, 13, 225, 288, 1082, 202, 698, 95, 9506, 202, 430, 12, 291, 30806, 225, 747, 225, 16051, 291, 7051, 13, 225, 7...
if(fs.get("N2NType") == null) { fs.removeValue("N2NType");
if(fs.get("type") != null) { fs.removeValue("type");
public void receivedNodeToNodeMessage(Message m) { PeerNode source = (PeerNode)m.getSource(); int type = ((Integer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_TYPE)).intValue(); if(type == Node.N2N_MESSAGE_TYPE_FPROXY_USERALERT) { ShortBuffer messageData = (ShortBuffer) m.getObject(DMT.NODE_TO_NODE_MESSAGE_DATA); Logger.normal(this, "Received N2NM from '"+source.getPeer()); SimpleFieldSet fs = null; try { fs = new SimpleFieldSet(messageData.toString()); } catch (IOException e) { Logger.error(this, "IOException while parsing node to node message data", e); return; } if(fs.get("N2NType") == null) { fs.removeValue("N2NType"); } fs.put("N2NType", Integer.toString(type)); int fileNumber = source.writeNewExtraPeerDataFile( fs, EXTRA_PEER_DATA_TYPE_N2NTM); if( fileNumber == -1 ) { Logger.error( this, "Failed to write N2NTM to extra peer data file for peer "+source.getPeer()); } // Keep track of the fileNumber so we can potentially delete the extra peer data file later, the file is authoritative try { handleNodeToNodeTextMessageSimpleFieldSet(fs, source, fileNumber); } catch (FSParseException e) { // Shouldn't happen throw new Error(e); } } else { Logger.error(this, "Received unknown node to node message type '"+type+"' from "+source.getPeer()); } }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/c7c45a3acb0353b0f2b42261fafcca645ebaed62/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5079, 907, 31403, 1079, 12, 1079, 312, 13, 288, 202, 225, 10669, 907, 1084, 273, 261, 6813, 907, 13, 81, 18, 588, 1830, 5621, 202, 225, 509, 618, 273, 14015, 4522, 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, 918, 5079, 907, 31403, 1079, 12, 1079, 312, 13, 288, 202, 225, 10669, 907, 1084, 273, 261, 6813, 907, 13, 81, 18, 588, 1830, 5621, 202, 225, 509, 618, 273, 14015, 4522, 13, ...
__db_close_reply result$ = __DB_db_close_4001(args$); call.reply(result$); break; } case 20: {
__db_close_reply result$ = __DB_db_close_4002(args$); call.reply(result$); break; } case 26: {
public void dispatchOncRpcCall(OncRpcCallInformation call, int program, int version, int procedure) throws OncRpcException, IOException { if ( version == 4001 ) { switch ( procedure ) { case 1: { __env_cachesize_msg args$ = new __env_cachesize_msg(); call.retrieveCall(args$); __env_cachesize_reply result$ = __DB_env_cachesize_4001(args$); call.reply(result$); break; } case 2: { __env_close_msg args$ = new __env_close_msg(); call.retrieveCall(args$); __env_close_reply result$ = __DB_env_close_4001(args$); call.reply(result$); break; } case 3: { __env_create_msg args$ = new __env_create_msg(); call.retrieveCall(args$); __env_create_reply result$ = __DB_env_create_4001(args$); call.reply(result$); break; } case 4: { __env_dbremove_msg args$ = new __env_dbremove_msg(); call.retrieveCall(args$); __env_dbremove_reply result$ = __DB_env_dbremove_4001(args$); call.reply(result$); break; } case 5: { __env_dbrename_msg args$ = new __env_dbrename_msg(); call.retrieveCall(args$); __env_dbrename_reply result$ = __DB_env_dbrename_4001(args$); call.reply(result$); break; } case 6: { __env_encrypt_msg args$ = new __env_encrypt_msg(); call.retrieveCall(args$); __env_encrypt_reply result$ = __DB_env_encrypt_4001(args$); call.reply(result$); break; } case 7: { __env_flags_msg args$ = new __env_flags_msg(); call.retrieveCall(args$); __env_flags_reply result$ = __DB_env_flags_4001(args$); call.reply(result$); break; } case 8: { __env_open_msg args$ = new __env_open_msg(); call.retrieveCall(args$); __env_open_reply result$ = __DB_env_open_4001(args$); call.reply(result$); break; } case 9: { __env_remove_msg args$ = new __env_remove_msg(); call.retrieveCall(args$); __env_remove_reply result$ = __DB_env_remove_4001(args$); call.reply(result$); break; } case 10: { __txn_abort_msg args$ = new __txn_abort_msg(); call.retrieveCall(args$); __txn_abort_reply result$ = __DB_txn_abort_4001(args$); call.reply(result$); break; } case 11: { __txn_begin_msg args$ = new __txn_begin_msg(); call.retrieveCall(args$); __txn_begin_reply result$ = __DB_txn_begin_4001(args$); call.reply(result$); break; } case 12: { __txn_commit_msg args$ = new __txn_commit_msg(); call.retrieveCall(args$); __txn_commit_reply result$ = __DB_txn_commit_4001(args$); call.reply(result$); break; } case 13: { __txn_discard_msg args$ = new __txn_discard_msg(); call.retrieveCall(args$); __txn_discard_reply result$ = __DB_txn_discard_4001(args$); call.reply(result$); break; } case 14: { __txn_prepare_msg args$ = new __txn_prepare_msg(); call.retrieveCall(args$); __txn_prepare_reply result$ = __DB_txn_prepare_4001(args$); call.reply(result$); break; } case 15: { __txn_recover_msg args$ = new __txn_recover_msg(); call.retrieveCall(args$); __txn_recover_reply result$ = __DB_txn_recover_4001(args$); call.reply(result$); break; } case 16: { __db_associate_msg args$ = new __db_associate_msg(); call.retrieveCall(args$); __db_associate_reply result$ = __DB_db_associate_4001(args$); call.reply(result$); break; } case 17: { __db_bt_maxkey_msg args$ = new __db_bt_maxkey_msg(); call.retrieveCall(args$); __db_bt_maxkey_reply result$ = __DB_db_bt_maxkey_4001(args$); call.reply(result$); break; } case 18: { __db_bt_minkey_msg args$ = new __db_bt_minkey_msg(); call.retrieveCall(args$); __db_bt_minkey_reply result$ = __DB_db_bt_minkey_4001(args$); call.reply(result$); break; } case 19: { __db_close_msg args$ = new __db_close_msg(); call.retrieveCall(args$); __db_close_reply result$ = __DB_db_close_4001(args$); call.reply(result$); break; } case 20: { __db_create_msg args$ = new __db_create_msg(); call.retrieveCall(args$); __db_create_reply result$ = __DB_db_create_4001(args$); call.reply(result$); break; } case 21: { __db_del_msg args$ = new __db_del_msg(); call.retrieveCall(args$); __db_del_reply result$ = __DB_db_del_4001(args$); call.reply(result$); break; } case 22: { __db_encrypt_msg args$ = new __db_encrypt_msg(); call.retrieveCall(args$); __db_encrypt_reply result$ = __DB_db_encrypt_4001(args$); call.reply(result$); break; } case 23: { __db_extentsize_msg args$ = new __db_extentsize_msg(); call.retrieveCall(args$); __db_extentsize_reply result$ = __DB_db_extentsize_4001(args$); call.reply(result$); break; } case 24: { __db_flags_msg args$ = new __db_flags_msg(); call.retrieveCall(args$); __db_flags_reply result$ = __DB_db_flags_4001(args$); call.reply(result$); break; } case 25: { __db_get_msg args$ = new __db_get_msg(); call.retrieveCall(args$); __db_get_reply result$ = __DB_db_get_4001(args$); call.reply(result$); break; } case 26: { __db_h_ffactor_msg args$ = new __db_h_ffactor_msg(); call.retrieveCall(args$); __db_h_ffactor_reply result$ = __DB_db_h_ffactor_4001(args$); call.reply(result$); break; } case 27: { __db_h_nelem_msg args$ = new __db_h_nelem_msg(); call.retrieveCall(args$); __db_h_nelem_reply result$ = __DB_db_h_nelem_4001(args$); call.reply(result$); break; } case 28: { __db_key_range_msg args$ = new __db_key_range_msg(); call.retrieveCall(args$); __db_key_range_reply result$ = __DB_db_key_range_4001(args$); call.reply(result$); break; } case 29: { __db_lorder_msg args$ = new __db_lorder_msg(); call.retrieveCall(args$); __db_lorder_reply result$ = __DB_db_lorder_4001(args$); call.reply(result$); break; } case 30: { __db_open_msg args$ = new __db_open_msg(); call.retrieveCall(args$); __db_open_reply result$ = __DB_db_open_4001(args$); call.reply(result$); break; } case 31: { __db_pagesize_msg args$ = new __db_pagesize_msg(); call.retrieveCall(args$); __db_pagesize_reply result$ = __DB_db_pagesize_4001(args$); call.reply(result$); break; } case 32: { __db_pget_msg args$ = new __db_pget_msg(); call.retrieveCall(args$); __db_pget_reply result$ = __DB_db_pget_4001(args$); call.reply(result$); break; } case 33: { __db_put_msg args$ = new __db_put_msg(); call.retrieveCall(args$); __db_put_reply result$ = __DB_db_put_4001(args$); call.reply(result$); break; } case 34: { __db_re_delim_msg args$ = new __db_re_delim_msg(); call.retrieveCall(args$); __db_re_delim_reply result$ = __DB_db_re_delim_4001(args$); call.reply(result$); break; } case 35: { __db_re_len_msg args$ = new __db_re_len_msg(); call.retrieveCall(args$); __db_re_len_reply result$ = __DB_db_re_len_4001(args$); call.reply(result$); break; } case 36: { __db_re_pad_msg args$ = new __db_re_pad_msg(); call.retrieveCall(args$); __db_re_pad_reply result$ = __DB_db_re_pad_4001(args$); call.reply(result$); break; } case 37: { __db_remove_msg args$ = new __db_remove_msg(); call.retrieveCall(args$); __db_remove_reply result$ = __DB_db_remove_4001(args$); call.reply(result$); break; } case 38: { __db_rename_msg args$ = new __db_rename_msg(); call.retrieveCall(args$); __db_rename_reply result$ = __DB_db_rename_4001(args$); call.reply(result$); break; } case 39: { __db_stat_msg args$ = new __db_stat_msg(); call.retrieveCall(args$); __db_stat_reply result$ = __DB_db_stat_4001(args$); call.reply(result$); break; } case 40: { __db_sync_msg args$ = new __db_sync_msg(); call.retrieveCall(args$); __db_sync_reply result$ = __DB_db_sync_4001(args$); call.reply(result$); break; } case 41: { __db_truncate_msg args$ = new __db_truncate_msg(); call.retrieveCall(args$); __db_truncate_reply result$ = __DB_db_truncate_4001(args$); call.reply(result$); break; } case 42: { __db_cursor_msg args$ = new __db_cursor_msg(); call.retrieveCall(args$); __db_cursor_reply result$ = __DB_db_cursor_4001(args$); call.reply(result$); break; } case 43: { __db_join_msg args$ = new __db_join_msg(); call.retrieveCall(args$); __db_join_reply result$ = __DB_db_join_4001(args$); call.reply(result$); break; } case 44: { __dbc_close_msg args$ = new __dbc_close_msg(); call.retrieveCall(args$); __dbc_close_reply result$ = __DB_dbc_close_4001(args$); call.reply(result$); break; } case 45: { __dbc_count_msg args$ = new __dbc_count_msg(); call.retrieveCall(args$); __dbc_count_reply result$ = __DB_dbc_count_4001(args$); call.reply(result$); break; } case 46: { __dbc_del_msg args$ = new __dbc_del_msg(); call.retrieveCall(args$); __dbc_del_reply result$ = __DB_dbc_del_4001(args$); call.reply(result$); break; } case 47: { __dbc_dup_msg args$ = new __dbc_dup_msg(); call.retrieveCall(args$); __dbc_dup_reply result$ = __DB_dbc_dup_4001(args$); call.reply(result$); break; } case 48: { __dbc_get_msg args$ = new __dbc_get_msg(); call.retrieveCall(args$); __dbc_get_reply result$ = __DB_dbc_get_4001(args$); call.reply(result$); break; } case 49: { __dbc_pget_msg args$ = new __dbc_pget_msg(); call.retrieveCall(args$); __dbc_pget_reply result$ = __DB_dbc_pget_4001(args$); call.reply(result$); break; } case 50: { __dbc_put_msg args$ = new __dbc_put_msg(); call.retrieveCall(args$); __dbc_put_reply result$ = __DB_dbc_put_4001(args$); call.reply(result$); break; } default: call.failProcedureUnavailable(); } } else { call.failProcedureUnavailable(); } }
2921 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2921/8960e3895f7af91126465368dff8fbb36ab4e853/DbServerStub.java/buggy/db/rpc_server/java/gen/DbServerStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 1398, 71, 11647, 1477, 12, 1398, 71, 11647, 1477, 5369, 745, 16, 509, 5402, 16, 509, 1177, 16, 509, 12131, 13, 6647, 1216, 2755, 71, 11647, 503, 16, 1860, 288, 3639, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 1398, 71, 11647, 1477, 12, 1398, 71, 11647, 1477, 5369, 745, 16, 509, 5402, 16, 509, 1177, 16, 509, 12131, 13, 6647, 1216, 2755, 71, 11647, 503, 16, 1860, 288, 3639, 30...
DteResultSet resultSet = (DteResultSet) getResultSet( );
protected IResultSet doExecuteQuery( IBaseQueryDefinition query ) { assert query instanceof IQueryDefinition; IPreparedQuery pQuery = (IPreparedQuery) queryMap.get( query ); if ( pQuery == null ) { return null; } try { String queryID = (String) queryIDMap.get( query ); Scriptable scope = context.getSharedScope( ); DteResultSet resultSet = (DteResultSet) getResultSet( ); String pRsetId = null; // id of the parent query restuls long rowId = -1; // row id of the parent query results IQueryResults dteResults; // the dteResults of this query if ( resultSet == null ) { // this is the root query dteResults = pQuery.execute( scope ); } else { pRsetId = resultSet.getQueryResults( ).getID( ); rowId = resultSet.getCurrentPosition( ); // this is the nest query, execute the query in the // parent results dteResults = pQuery.execute( resultSet.getQueryResults( ), scope ); } resultSet = new DteResultSet( dteResults.getID( ), dteResults.getResultIterator( ), this, context ); rsets.addFirst( resultSet ); // save the storeDteMetaInfo( pRsetId, rowId, queryID, dteResults.getID( ) ); return resultSet; } catch ( BirtException be ) { logger.log( Level.SEVERE, be.getMessage( ) ); context.addException( be ); } return null; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5386013be68d2724b24f8a2bad7013b66e7b2ae/DataGenerationEngine.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DataGenerationEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 13198, 741, 5289, 1138, 12, 467, 2171, 1138, 1852, 843, 262, 202, 95, 202, 202, 11231, 843, 1276, 467, 1138, 1852, 31, 202, 202, 45, 15464, 1138, 293, 1138, 273, 261, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 13198, 741, 5289, 1138, 12, 467, 2171, 1138, 1852, 843, 262, 202, 95, 202, 202, 11231, 843, 1276, 467, 1138, 1852, 31, 202, 202, 45, 15464, 1138, 293, 1138, 273, 261, 45...
final PsiBinaryExpression condition = (PsiBinaryExpression) forStatement.getCondition();
final PsiBinaryExpression condition = (PsiBinaryExpression) forStatement.getCondition();
private String createArrayIterationText(PsiForStatement forStatement, Project project) { final int length = forStatement.getText().length(); final StringBuffer out = new StringBuffer(length); final PsiBinaryExpression condition = (PsiBinaryExpression) forStatement.getCondition(); final PsiExpression lhs = condition.getLOperand(); final String indexName = lhs.getText(); final PsiReferenceExpression arrayLengthExpression = (PsiReferenceExpression) condition.getROperand(); final PsiReferenceExpression arrayReference = (PsiReferenceExpression) arrayLengthExpression.getQualifierExpression(); final PsiArrayType arrayType = (PsiArrayType) arrayReference.getType(); final PsiType componentType = arrayType.getComponentType(); final String type = componentType.getPresentableText(); final String arrayName = arrayReference.getText(); final PsiStatement body = forStatement.getBody(); final PsiStatement firstStatement = getFirstStatement(body); final String contentVariableName; final String finalString; final PsiStatement statementToSkip; final boolean isDeclaration = isArrayElementDeclaration(firstStatement, arrayName, indexName); if (isDeclaration) { final PsiDeclarationStatement decl = (PsiDeclarationStatement) firstStatement; final PsiElement[] declaredElements = decl.getDeclaredElements(); final PsiLocalVariable localVar = (PsiLocalVariable) declaredElements[0]; contentVariableName = localVar.getName(); statementToSkip = decl; if (localVar.hasModifierProperty(PsiModifier.FINAL)) { finalString = "final "; } else { finalString = ""; } } else { contentVariableName = createNewVarName(project, forStatement, componentType); finalString = ""; statementToSkip = null; } out.append("for(" + finalString + type + ' ' + contentVariableName + ": " + arrayName + ')'); replaceArrayAccess(body, contentVariableName, arrayName, indexName, statementToSkip, out); return out.toString(); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 514, 752, 1076, 10795, 1528, 12, 52, 7722, 1290, 3406, 364, 3406, 16, 5420, 1984, 13, 288, 5411, 727, 509, 769, 273, 364, 3406, 18, 588, 1528, 7675, 2469, 5621, 5411, 727, 6674, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 514, 752, 1076, 10795, 1528, 12, 52, 7722, 1290, 3406, 364, 3406, 16, 5420, 1984, 13, 288, 5411, 727, 509, 769, 273, 364, 3406, 18, 588, 1528, 7675, 2469, 5621, 5411, 727, 6674, 5...
public void setElemFloat(int bank, int i, float val)
public void setElemFloat(int i, float val)
public void setElemFloat(int bank, int i, float val) { setElem(bank, i, (int) val); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f344432292580534f5ac8c558c5b0ed0bafeb3cc/DataBuffer.java/buggy/java/awt/image/DataBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 7498, 4723, 12, 474, 277, 16, 1431, 1244, 13, 225, 288, 565, 444, 7498, 12, 10546, 16, 277, 16, 261, 474, 13, 1244, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 7498, 4723, 12, 474, 277, 16, 1431, 1244, 13, 225, 288, 565, 444, 7498, 12, 10546, 16, 277, 16, 261, 474, 13, 1244, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -1...
String message = "Zip error unzipping entry: " + entry.getName();
final String message = "Zip error unzipping entry: " + entry.getName();
private static void saveItem(ZipFile zipFile, String rootDirName, ZipEntry entry) throws ZipException, IOException { InputStream is = null; BufferedInputStream inStream = null; FileOutputStream outStream = null; BufferedOutputStream bufferedOutStream = null; try { File file = new File(rootDirName, entry.getName()); if (entry.isDirectory()) { file.mkdirs(); } else { is = zipFile.getInputStream(entry); inStream = new BufferedInputStream(is); File dir = new File(file.getParent()); dir.mkdirs(); outStream = new FileOutputStream(file); bufferedOutStream = new BufferedOutputStream(outStream); int c; while ((c = inStream.read()) != -1) { bufferedOutStream.write((byte) c); } } } catch (ZipException ze) { String message = "Zip error unzipping entry: " + entry.getName(); LOG.error(message, ze); System.err.println(message + " - " + ze.getMessage()); throw new RuntimeException(message, ze); } catch (IOException ioe) { String message = "I/O error unzipping entry: " + entry.getName(); LOG.error(message, ioe); System.err.println(message + " - " + ioe.getMessage()); throw new RuntimeException(message, ioe); } finally { if (bufferedOutStream != null) { bufferedOutStream.close(); } if (inStream != null) { inStream.close(); } } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0e3b303687ee2c38a1baf9187b401c67768adca4/ZipUtil.java/clean/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/util/ZipUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1923, 1180, 12, 29394, 19450, 16, 514, 15393, 461, 16, 23652, 1241, 13, 1216, 8603, 503, 16, 1860, 288, 3639, 5037, 353, 273, 446, 31, 3639, 24742, 28987, 273, 446, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1923, 1180, 12, 29394, 19450, 16, 514, 15393, 461, 16, 23652, 1241, 13, 1216, 8603, 503, 16, 1860, 288, 3639, 5037, 353, 273, 446, 31, 3639, 24742, 28987, 273, 446, 31, ...
Map permissionMap = getPermissionMapFromSession(iwc,permissionTypeOwner);
public void main(IWContext iwc) throws Exception { iwrb = this.getResourceBundle(iwc); parseAction(iwc); if(saveChanges){ AccessController access = iwc.getAccessController(); try { String[] values = iwc.getParameterValues(permissionTypeOwner); Map permissions = getPermissionMapFromSession(iwc,permissionTypeOwner); if(values!=null && values.length>0){ for (int i = 0; i < values.length; i++) {//different from groupPermissionWindow selectedGroupId and vaules[i] are swapped access.setPermission(AccessController.CATEGORY_GROUP_ID,iwc,values[i],selectedGroupId,permissionTypeOwner,Boolean.TRUE); } } Iterator entries = permissions.values().iterator(); while (entries.hasNext()) { ICPermission permission = (ICPermission) entries.next(); permission.setPermissionValue(false); permission.store(); } permissions.clear(); } catch (Exception e) { e.printStackTrace(); } } //get users, define converter to check is user is an owner Collection users = this.getUserBusiness(iwc).getUsersInGroup(Integer.parseInt(selectedGroupId)); EntityBrowser browser = new EntityBrowser(); browser.setEntities("gpow_"+selectedGroupId,users); browser.setDefaultNumberOfRows(users.size()); browser.setAcceptUserSettingsShowUserSettingsButton(false, false); browser.setWidth(browser.HUNDRED_PERCENT); browser.setUseExternalForm(true); // fonts Text columnText = new Text(); columnText.setBold(); browser.setColumnTextProxy(columnText); // set color of rows browser.setColorForEvenRows("#FFFFFF"); browser.setColorForOddRows(IWColor.getHexColorString(246, 246, 247)); int column = 1; String nameKey = "com.idega.user.data.User.FIRST_NAME:" + "com.idega.user.data.User.LAST_NAME:" + "com.idega.user.data.User.MIDDLE_NAME"; //browser.setLeadingEntity("com.idega.core.accesscontrol.data.ICPermission"); //browser.setMandatoryColumn(column,"com.idega.core.accesscontrol.data.ICPermission.GROUP_ID"); // define link converter class EntityToPresentationObjectConverter converterLink = new EntityToPresentationObjectConverter() { private com.idega.core.user.data.User administrator = null; private boolean loggedInUserIsAdmin; public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { User user = (User) entity; if (administrator == null) { try { administrator = iwc.getAccessController().getAdministratorUser(); } catch (Exception ex) { System.err.println("[BasicUserOverview] access controller failed " + ex.getMessage()); ex.printStackTrace(System.err); administrator = null; } loggedInUserIsAdmin = iwc.isSuperAdmin(); } PresentationObject text = browser.getDefaultConverter().getPresentationObject(entity, path, browser, iwc); Link aLink = new Link(text); if (!user.equals(administrator)) { aLink.setWindowToOpen(UserPropertyWindow.class); aLink.addParameter(UserPropertyWindow.PARAMETERSTRING_USER_ID, user.getPrimaryKey().toString()); } else if (loggedInUserIsAdmin) { aLink.setWindowToOpen(AdministratorPropertyWindow.class); aLink.addParameter(AdministratorPropertyWindow.PARAMETERSTRING_USER_ID, user.getPrimaryKey().toString()); } return aLink; } }; browser.setMandatoryColumn(column++,nameKey); browser.setEntityToPresentationConverter(nameKey,converterLink); //converter ends // define checkbox button converter class EntityToPresentationObjectConverter permissionTypeConverter = new EntityToPresentationObjectConverter() { private com.idega.core.user.data.User administrator = null; private boolean loggedInUserIsAdmin; public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object userEntity, EntityPath path,EntityBrowser browser, IWContext iwc) { User user = (User) userEntity; Collection col = getAllPermissionOwnedByUser(user,iwc); Iterator iterator = col.iterator(); boolean isOwner = false; final String ownerType = permissionTypeOwner; String groupId = null; String permissionType = null; while (iterator.hasNext() && !isOwner) { ICPermission perm = (ICPermission) iterator.next(); groupId = perm.getContextValue(); permissionType = perm.getPermissionString(); System.out.println("Context value: "+groupId+" permissionType "+permissionType); isOwner = (ownerType.equals(permissionType)) && groupId.equals(selectedGroupId) && perm.getPermissionValue() ; if( isOwner ){ Map permissionMap = getPermissionMapFromSession(iwc,permissionTypeOwner); permissionMap.put(groupId, perm); } } CheckBox returnObj = new CheckBox(ownerType,user.getPrimaryKey().toString()); returnObj.setChecked(isOwner); return returnObj; } private Collection getAllPermissionOwnedByUser(User user, IWContext iwc){ Collection allPermissions = null; try { allPermissions = AccessControl.getAllGroupPermissionsOwnedByGroup( user.getGroup() ); } catch (Exception e) { e.printStackTrace(); } return allPermissions; } }; browser.setMandatoryColumn(column++,permissionTypeOwner); browser.setEntityToPresentationConverter( permissionTypeOwner, permissionTypeConverter); //converter ends Form form = getGroupPermissionForm(browser); form.add(new HiddenInput(PARAM_SELECTED_GROUP_ID,selectedGroupId)); form.add(new HiddenInput(PARAM_SAVING,"TRUE")); add(form); }
52002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52002/3403e660a3d36f9462d4d473fa471ba94f2ccf74/GroupOwnersWindow.java/clean/src/java/com/idega/user/presentation/GroupOwnersWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2774, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 22315, 6731, 273, 333, 18, 588, 18731, 12, 22315, 71, 1769, 9506, 202, 2670, 1803, 12, 22315, 71, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2774, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 22315, 6731, 273, 333, 18, 588, 18731, 12, 22315, 71, 1769, 9506, 202, 2670, 1803, 12, 22315, 71, 1769, ...
public static boolean gcInProgressProper () {
public static boolean gcInProgressProper() {
public static boolean gcInProgressProper () { return gcStatus == GC_PROPER; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/Plan.java/buggy/MMTk/src/org/mmtk/plan/Plan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 8859, 13434, 626, 457, 1435, 288, 565, 327, 8859, 1482, 422, 15085, 67, 3373, 3194, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1250, 8859, 13434, 626, 457, 1435, 288, 565, 327, 8859, 1482, 422, 15085, 67, 3373, 3194, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (VM.VerifyAssertions) VM._assert(false);
if (VM.VerifyAssertions) VM._assert(false);
public static VM_TypeReference findCommonSuperclass (VM_TypeReference t1, VM_TypeReference t2) { if (t1 == t2) return t1; if (t1.isPrimitiveType() || t2.isPrimitiveType()) { if (t1.isIntLikeType() && t2.isIntLikeType()) { if (t1.isIntType() || t2.isIntType()) return VM_TypeReference.Int; if (t1.isCharType() || t2.isCharType()) return VM_TypeReference.Char; if (t1.isShortType() || t2.isShortType()) return VM_TypeReference.Short; if (t1.isByteType() || t2.isByteType()) return VM_TypeReference.Byte; } else if (t1.isWordType() && t2.isWordType()) { return VM_TypeReference.Word; } return null; } // can these next two cases happen? if (t1 == VM_TypeReference.NULL_TYPE) return t2; if (t2 == VM_TypeReference.NULL_TYPE) return t1; if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("finding common supertype of " + t1 + " and " + t2); // Strip off all array junk. int arrayDimensions = 0; while (t1.isArrayType() && t2.isArrayType()) { ++arrayDimensions; t1 = t1.getArrayElementType(); t2 = t2.getArrayElementType(); } // at this point, they are not both array types. // if one is a primitive, then we want an object array of one less // dimensionality if (t1.isPrimitiveType() || t2.isPrimitiveType()) { VM_TypeReference type = VM_TypeReference.JavaLangObject; if (t1 == t2) { // Kludge around the fact that we have two names for AddressArray if (t1.isWordType()) { arrayDimensions++; type = t1; } else { if (VM.VerifyAssertions) VM._assert(false); } } --arrayDimensions; while (arrayDimensions-- > 0) type = type.getArrayTypeForElementType(); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("one is a primitive array, so supertype is " + type); return type; } // neither is a primitive, and they are not both array types. if (!t1.isClassType() || !t2.isClassType()) { // one is a class type, while the other isn't. VM_TypeReference type = VM_TypeReference.JavaLangObject; while (arrayDimensions-- > 0) type = type.getArrayTypeForElementType(); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("differing dimensionalities for arrays, so supertype is " + type); return type; } // they both must be class types. // technique: push heritage of each type on a separate stack, // then find the highest point in the stack where they differ. VM_Class c1 = (VM_Class)t1.peekResolvedType(); VM_Class c2 = (VM_Class)t2.peekResolvedType(); if (c1 != null && c2 != null) { // The ancestor hierarchy is available, so do this exactly OPT_Stack s1 = new OPT_Stack(); do { s1.push(c1); c1 = c1.getSuperClass(); } while (c1 != null); OPT_Stack s2 = new OPT_Stack(); do { s2.push(c2); c2 = c2.getSuperClass(); } while (c2 != null); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("stack 1: " + s1); if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("stack 2: " + s2); VM_TypeReference best = VM_TypeReference.JavaLangObject; while (!s1.empty() && !s2.empty()) { VM_Class temp = (VM_Class)s1.pop(); if (temp == s2.pop()) best = temp.getTypeRef(); else break; } if (OPT_IRGenOptions.DBG_TYPE) VM.sysWrite("common supertype of the two classes is " + best); while (arrayDimensions-- > 0) best = best.getArrayTypeForElementType(); return best; } else { if (OPT_IRGenOptions.DBG_TYPE && c1 == null) VM.sysWrite(c1 + " is not loaded, using Object as common supertype"); if (OPT_IRGenOptions.DBG_TYPE && c2 == null) VM.sysWrite(c2 + " is not loaded, using Object as common supertype"); VM_TypeReference common = VM_TypeReference.JavaLangObject; while (arrayDimensions-- > 0) common = common.getArrayTypeForElementType(); return common; } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/8a0bbdf2bc80121b16a5381e72e5d2ea72d1a6a0/OPT_ClassLoaderProxy.java/clean/rvm/src/vm/compilers/optimizing/vmInterface/classLoader/OPT_ClassLoaderProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 8251, 67, 7534, 1104, 6517, 28471, 261, 7397, 67, 7534, 268, 21, 16, 8251, 67, 7534, 268, 22, 13, 288, 565, 309, 261, 88, 21, 422, 268, 22, 13, 1377, 327, 268, 21, 31, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 8251, 67, 7534, 1104, 6517, 28471, 261, 7397, 67, 7534, 268, 21, 16, 8251, 67, 7534, 268, 22, 13, 288, 565, 309, 261, 88, 21, 422, 268, 22, 13, 1377, 327, 268, 21, 31, 56...
List lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons);
List lessons; try { lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons); } catch (FenixServiceException e) { throw new FenixActionException(e); }
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaActionForm indexForm = (DynaActionForm) form; HttpSession session = request.getSession(); session.removeAttribute(SessionConstants.INFO_SECTION); if (session != null) { List infoRooms = (List) session.getAttribute("publico.infoRooms"); InfoRoom infoRoom = (InfoRoom) infoRooms.get(((Integer) indexForm.get("index")).intValue()); session.removeAttribute("publico.infoRoom"); session.setAttribute("publico.infoRoom", infoRoom); InfoExecutionPeriod infoExecutionPeriod = (InfoExecutionPeriod) this.servlet.getServletContext().getAttribute( SessionConstants.INFO_EXECUTION_PERIOD_KEY); Object argsReadLessons[] = { infoExecutionPeriod, infoRoom }; List lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons); if (lessons != null) { session.setAttribute(SessionConstants.LESSON_LIST_ATT, lessons); } return mapping.findForward("Sucess"); } else throw new Exception(); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/15c854d77812c45c36846ad617a990cbc575b564/ViewRoomFormAction.java/clean/src/ServidorApresentacao/Action/publico/ViewRoomFormAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 8514, 1836, 12, 202, 202, 1803, 3233, 2874, 16, 202, 202, 1803, 1204, 646, 16, 202, 202, 2940, 18572, 590, 16, 202, 202, 2940, 29910, 766, 13, 202, 202, 15069, 1185, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 8514, 1836, 12, 202, 202, 1803, 3233, 2874, 16, 202, 202, 1803, 1204, 646, 16, 202, 202, 2940, 18572, 590, 16, 202, 202, 2940, 29910, 766, 13, 202, 202, 15069, 1185, 288...
+ HTTP_BINDING, null);
+ HTTP_BINDING, null);
private void generatePostBinding(OMFactory fac, OMElement defintions) throws Exception { OMElement binding = fac.createOMElement(BINDING_LOCAL_NAME, wsdl); defintions.addChild(binding); binding.addAttribute(ATTRIBUTE_NAME, axisService.getName() + HTTP_BINDING, null); binding.addAttribute("type", tns.getPrefix() + ":" + axisService.getName() + PORT_TYPE_SUFFIX, null); // Adding ext elements OMElement httpBinding = fac.createOMElement("binding", http); binding.addChild(httpBinding); httpBinding.addAttribute("verb", "POST", null); for (Iterator operations = axisService.getOperations(); operations.hasNext();) { AxisOperation axisOperation = (AxisOperation) operations.next(); if (axisOperation.isControlOperation() || axisOperation.getName() == null) { continue; } String opeartionName = axisOperation.getName().getLocalPart(); OMElement operation = fac.createOMElement(OPERATION_LOCAL_NAME, wsdl); binding.addChild(operation); OMElement httpOperation = fac.createOMElement("operation", http); operation.addChild(httpOperation); httpOperation.addAttribute("location", axisOperation.getName() .getLocalPart(), null); String MEP = axisOperation.getMessageExchangePattern(); if (WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_ONLY.equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OPTIONAL_OUT .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_OUT_OPTIONAL_IN .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_ROBUST_OUT_ONLY .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_ROBUST_IN_ONLY .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OUT .equals(MEP)) { AxisMessage inaxisMessage = axisOperation .getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE); if (inaxisMessage != null) { operation.addAttribute(ATTRIBUTE_NAME, opeartionName, null); OMElement input = fac.createOMElement(IN_PUT_LOCAL_NAME, wsdl); OMElement inputelement = fac.createOMElement("content", mime); input.addChild(inputelement); inputelement.addAttribute("type", "text/xml", null); operation.addChild(input); } } if (WSDLConstants.WSDL20_2004Constants.MEP_URI_OUT_ONLY.equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_OUT_OPTIONAL_IN .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OPTIONAL_OUT .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_ROBUST_OUT_ONLY .equals(MEP) || WSDLConstants.WSDL20_2004Constants.MEP_URI_IN_OUT .equals(MEP)) { AxisMessage outAxisMessage = axisOperation .getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE); if (outAxisMessage != null) { OMElement output = fac.createOMElement(OUT_PUT_LOCAL_NAME, wsdl); OMElement outElement = fac.createOMElement("content", mime); outElement.addChild(outElement); outElement.addAttribute("type", "text/xml", null); output.addChild(outElement); operation.addChild(output); } } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6faf728c869b62d91149ee32b541bf550c61ba22/AxisService2OM.java/clean/modules/kernel/src/org/apache/axis2/description/AxisService2OM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 3349, 5250, 12, 1872, 1733, 5853, 16, 531, 12310, 1652, 474, 1115, 13, 5411, 1216, 1185, 288, 3639, 531, 12310, 5085, 273, 5853, 18, 2640, 51, 12310, 12, 2739, 67, 14922,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 3349, 5250, 12, 1872, 1733, 5853, 16, 531, 12310, 1652, 474, 1115, 13, 5411, 1216, 1185, 288, 3639, 531, 12310, 5085, 273, 5853, 18, 2640, 51, 12310, 12, 2739, 67, 14922,...
throw new RuntimeException("Not implemented");
return Remote.class.isAssignableFrom (representationClass);
isRepresentationClassRemote(){ // FIXME: Implement throw new RuntimeException("Not implemented");}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1e7aa2954f7fa9e45a7b68da25c13d3846158a39/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 353, 13742, 797, 5169, 1435, 95, 225, 368, 9852, 30, 10886, 225, 604, 394, 3235, 2932, 1248, 8249, 8863, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 353, 13742, 797, 5169, 1435, 95, 225, 368, 9852, 30, 10886, 225, 604, 394, 3235, 2932, 1248, 8249, 8863, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
m_out .println("<tr><th>Class</th>"
m_out.println("<tr><th>Class</th>"
private void startResultSummaryTable(String style) { tableStart(style); m_out .println("<tr><th>Class</th>" + "<th>Method</th><th># of<br/>Scenarios</th><th>Time<br/>(Msecs)</th></tr>"); m_row = 0; }
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/7e6c56df3951862560345666d65c96d7ecb27707/EmailableReporter.java/clean/src/main/org/testng/reporters/EmailableReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 787, 1253, 4733, 1388, 12, 780, 2154, 13, 288, 565, 1014, 1685, 12, 4060, 1769, 565, 312, 67, 659, 3639, 263, 8222, 2932, 32, 313, 4438, 451, 34, 797, 1757, 451, 2984, 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, 282, 3238, 918, 787, 1253, 4733, 1388, 12, 780, 2154, 13, 288, 565, 1014, 1685, 12, 4060, 1769, 565, 312, 67, 659, 3639, 263, 8222, 2932, 32, 313, 4438, 451, 34, 797, 1757, 451, 2984, 5411, ...
this.zone = zone; lenient = true; ResourceBundle rb = ResourceBundle.getBundle(bundleName, locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue();
this(TimeZone.getDefault(), Locale.getDefault());
protected Calendar(TimeZone zone, Locale locale) { this.zone = zone; lenient = true; ResourceBundle rb = ResourceBundle.getBundle(bundleName, locale); firstDayOfWeek = ((Integer) rb.getObject("firstDayOfWeek")).intValue(); minimalDaysInFirstWeek = ((Integer) rb.getObject("minimalDaysInFirstWeek")).intValue(); }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/956ed13ee30b6f0a3e898c51f4e953e28f78df00/Calendar.java/buggy/libjava/java/util/Calendar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5542, 12, 16760, 4157, 16, 6458, 2573, 13, 225, 288, 565, 333, 18, 3486, 273, 4157, 31, 565, 29444, 273, 638, 31, 565, 19198, 7138, 273, 19198, 18, 588, 3405, 12, 9991, 461, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5542, 12, 16760, 4157, 16, 6458, 2573, 13, 225, 288, 565, 333, 18, 3486, 273, 4157, 31, 565, 29444, 273, 638, 31, 565, 19198, 7138, 273, 19198, 18, 588, 3405, 12, 9991, 461, 16, ...
PropertyPageNode node = new PropertyPageNode(this, element,keywordReferences);
PropertyPageNode node = new PropertyPageNode(this, element);
public boolean contributePropertyPages(PropertyPageManager mng, IAdaptable element) { PropertyPageNode node = new PropertyPageNode(this, element,keywordReferences); if(getCategory() == null){ mng.addToRoot(node); return true; } if(!mng.addToDeep(getCategory(),node)) mng.addToRoot(node); return true; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ae3e100ae6878a705a77e44dd4224a8c8afb3d99/RegistryPageContributor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/RegistryPageContributor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 356, 887, 1396, 5716, 12, 1396, 1964, 1318, 312, 3368, 16, 5411, 467, 13716, 429, 930, 13, 288, 3639, 4276, 1964, 907, 756, 273, 394, 4276, 1964, 907, 12, 2211, 16, 930, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 356, 887, 1396, 5716, 12, 1396, 1964, 1318, 312, 3368, 16, 5411, 467, 13716, 429, 930, 13, 288, 3639, 4276, 1964, 907, 756, 273, 394, 4276, 1964, 907, 12, 2211, 16, 930, 176...
cancelController.doCancel(comm);
synchronized (cancelActive) { if (!cancelActive.booleanValue()) { comm.startPacket(TdsComm.CANCEL); comm.sendPacket(); cancelActive = Boolean.TRUE; } }
public void cancel() throws java.io.IOException, TdsException { // This is synched by the CancelController and, respectively, TdsComm, // so there is no need to synchronize it here especially since it has // to be asynchronous anyway. ;) cancelController.doCancel(comm); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/209992e94df47f36845f9a0bbe112b76e9b5c0b5/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3755, 1435, 2398, 1216, 2252, 18, 1594, 18, 14106, 16, 399, 2377, 503, 288, 3639, 368, 1220, 353, 6194, 2049, 635, 326, 10347, 2933, 471, 16, 19629, 16, 399, 2377, 12136, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3755, 1435, 2398, 1216, 2252, 18, 1594, 18, 14106, 16, 399, 2377, 503, 288, 3639, 368, 1220, 353, 6194, 2049, 635, 326, 10347, 2933, 471, 16, 19629, 16, 399, 2377, 12136, 16, ...
}
}
public HTTPUploader(Socket s, String file, int index, ActivityCallback callback, int begin, int end) { _state = CONNECTED; _isServer = true; _callback = callback; _fmanager = FileManager.instance(); _host = s.getInetAddress().getHostAddress(); _port = s.getPort(); _index = index; _uploadBegin = begin; _uploadEnd = end; _amountRead = 0; _priorAmountRead = 0; _socket = s; try { _ostream = s.getOutputStream(); } catch (IOException e) { _state = ERROR; } _filename = file; }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/9710cd81149dac2e1a403b9d3cb6dda04808a08a/HTTPUploader.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/HTTPUploader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2239, 28161, 12, 4534, 272, 16, 514, 585, 16, 5411, 509, 770, 16, 9621, 2428, 1348, 16, 5411, 509, 2376, 16, 509, 679, 13, 288, 3639, 389, 2019, 273, 21593, 2056, 31, 3639, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2239, 28161, 12, 4534, 272, 16, 514, 585, 16, 5411, 509, 770, 16, 9621, 2428, 1348, 16, 5411, 509, 2376, 16, 509, 679, 13, 288, 3639, 389, 2019, 273, 21593, 2056, 31, 3639, 389, ...
this.dimension = dimension; this.subName = subName;
super(dimension, subName);
RolapHierarchy(RolapDimension dimension, String subName, boolean hasAll) { this.dimension = dimension; this.subName = subName; this.hasAll = hasAll; this.levels = new RolapLevel[0]; this.name = dimension.getName(); setCaption(dimension.getCaption()); this.uniqueName = dimension.getUniqueName(); if (this.subName != null) { this.name += "." + subName; // e.g. "Time.Weekly" this.uniqueName = Util.makeFqName(name); // e.g. "[Time.Weekly]" } if (hasAll) { Util.discard(newLevel("(All)", RolapLevel.ALL | RolapLevel.UNIQUE)); this.allMemberName = "All " + name + "s"; } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapHierarchy.java/buggy/src/main/mondrian/rolap/RolapHierarchy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 11714, 438, 12074, 12, 4984, 438, 8611, 4968, 16, 514, 720, 461, 16, 1250, 711, 1595, 13, 565, 288, 3639, 333, 18, 11808, 273, 4968, 31, 3639, 333, 18, 1717, 461, 273, 720, 461, 31, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 11714, 438, 12074, 12, 4984, 438, 8611, 4968, 16, 514, 720, 461, 16, 1250, 711, 1595, 13, 565, 288, 3639, 333, 18, 11808, 273, 4968, 31, 3639, 333, 18, 1717, 461, 273, 720, 461, 31, 3...
return RubyBoolean.newBoolean(recv.getRuntime(), obj.isTrue());
return recv.getRuntime().newBoolean(obj.isTrue());
public static RubyBoolean op_xor(IRubyObject recv, IRubyObject obj) { return RubyBoolean.newBoolean(recv.getRuntime(), obj.isTrue()); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNil.java/buggy/src/org/jruby/RubyNil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5507, 1061, 67, 31346, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 1081, 13, 288, 3639, 327, 10665, 18, 588, 5576, 7675, 2704, 5507, 12, 2603, 18, 291, 5510, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5507, 1061, 67, 31346, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 1081, 13, 288, 3639, 327, 10665, 18, 588, 5576, 7675, 2704, 5507, 12, 2603, 18, 291, 5510, 106...
filter = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPSwapComplete).setTimeout(TIMEOUT);
public void run() { long uid = r.nextLong(); Long luid = new Long(uid); if(!lock()) return; try { startedSwaps++; // We can't lock friends_locations, so lets just // pretend that they're locked long random = r.nextLong(); double myLoc = loc.getValue(); double[] friendLocs = node.peers.getPeerLocationDoubles(); long[] myValueLong = new long[1+1+friendLocs.length]; myValueLong[0] = random; myValueLong[1] = Double.doubleToLongBits(myLoc); for(int i=0;i<friendLocs.length;i++) myValueLong[i+2] = Double.doubleToLongBits(friendLocs[i]); byte[] myValue = Fields.longsToBytes(myValueLong); MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } byte[] myHash = md.digest(myValue); Message m = DMT.createFNPSwapRequest(uid, myHash, 6); NodePeer pn = node.peers.getRandomPeer(); if(pn == null) { // Nowhere to send return; } // Only 1 ID because we are sending; we won't receive addForwardedItem(uid, uid, null, pn); Logger.minor(this, "Sending SwapRequest "+uid+" to "+pn); MessageFilter filter1 = MessageFilter.create().setType(DMT.FNPSwapRejected).setField(DMT.UID, uid); MessageFilter filter2 = MessageFilter.create().setType(DMT.FNPSwapReply).setField(DMT.UID, uid); MessageFilter filter = filter1.or(filter2); // 60 seconds filter.setTimeout(TIMEOUT); node.usm.send(pn, m); Logger.minor(this, "Waiting for SwapReply/SwapRejected on "+uid); Message reply = node.usm.waitFor(filter); if(reply == null) { // Timed out! Abort... Logger.error(this, "Timed out waiting for SwapRejected/SwapReply on "+uid); return; } if(reply.getSpec() == DMT.FNPSwapRejected) { // Failed. Abort. Logger.minor(this, "Swap rejected on "+uid); return; } // We have an FNPSwapReply, yay // FNPSwapReply is exactly the same format as FNPSwapRequest byte[] hisHash = ((ShortBuffer)reply.getObject(DMT.HASH)).getData(); Message confirm = DMT.createFNPSwapCommit(uid, myValue); node.usm.send(pn, confirm); filter = MessageFilter.create().setField(DMT.UID, uid).setType(DMT.FNPSwapComplete).setTimeout(TIMEOUT); Logger.minor(this, "Waiting for SwapComplete: uid = "+uid); reply = node.usm.waitFor(filter); if(reply == null) { // Hrrrm! Logger.error(this, "Timed out waiting for SwapComplete - malicious node?? on "+uid); return; } byte[] hisBuf = ((ShortBuffer)reply.getObject(DMT.DATA)).getData(); if(hisBuf.length % 8 != 0 || hisBuf.length < 16) { Logger.error(this, "Bad content length in SwapComplete - malicious node? on "+uid); return; } // First does it verify? byte[] rehash = md.digest(hisBuf); if(!java.util.Arrays.equals(rehash, hisHash)) { Logger.error(this, "Bad hash in SwapComplete - malicious node? on "+uid); return; } // Now decode it long[] hisBufLong = Fields.bytesToLongs(hisBuf); long hisRandom = hisBufLong[0]; double hisLoc = Double.longBitsToDouble(hisBufLong[1]); if(hisLoc < 0.0 || hisLoc > 1.0) { Logger.error(this, "Bad loc: "+hisLoc+" on "+uid); return; } double[] hisFriendLocs = new double[hisBufLong.length-2]; for(int i=0;i<hisFriendLocs.length;i++) { hisFriendLocs[i] = Double.longBitsToDouble(hisBufLong[i+2]); if(hisFriendLocs[i] < 0.0 || hisFriendLocs[i] > 1.0) { Logger.error(this, "Bad friend loc: "+hisFriendLocs[i]+" on "+uid); return; } } if(shouldSwap(myLoc, friendLocs, hisLoc, hisFriendLocs, random ^ hisRandom)) { // Swap loc.setValue(hisLoc); Logger.minor(this, "Swapped: "+myLoc+" <-> "+hisLoc+" - "+uid); swaps++; announceLocChange(); } else { Logger.minor(this, "Didn't swap: "+myLoc+" <-> "+hisLoc+" - "+uid); noSwaps++; } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); } finally { unlock(); recentlyForwardedIDs.remove(luid); } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/d6f2b27b0068d0738bbd2f1afae8c1cc0bef24f4/LocationManager.java/clean/src/freenet/node/LocationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 1525, 4555, 273, 436, 18, 4285, 3708, 5621, 5411, 3407, 328, 1911, 273, 394, 3407, 12, 1911, 1769, 5411, 309, 12, 5, 739, 10756, 327, 31, 5411, 775, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 1525, 4555, 273, 436, 18, 4285, 3708, 5621, 5411, 3407, 328, 1911, 273, 394, 3407, 12, 1911, 1769, 5411, 309, 12, 5, 739, 10756, 327, 31, 5411, 775, 28...
Parser getParser() { log.entering(this.getClass().getName(), "getParser"); //$NON-NLS-1$ Parser result = new ClasspathToolParser(Main.IDENTITYDB_CMD, true); result.setHeader(Messages.getString("IdentityDBCmd.7")); //$NON-NLS-1$ result.setFooter(Messages.getString("IdentityDBCmd.8")); //$NON-NLS-1$ OptionGroup options = new OptionGroup(Messages.getString("IdentityDBCmd.9")); //$NON-NLS-1$ options.add(new Option(Main.FILE_OPT, Messages.getString("IdentityDBCmd.10"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.11")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _idbFileName = argument; } }); options.add(new Option(Main.STORETYPE_OPT, Messages.getString("IdentityDBCmd.12"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.13")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _ksType = argument; } }); options.add(new Option(Main.KEYSTORE_OPT, Messages.getString("IdentityDBCmd.14"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.15")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _ksURL = argument; } }); options.add(new Option(Main.STOREPASS_OPT, Messages.getString("IdentityDBCmd.16"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.17")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _ksPassword = argument; } }); options.add(new Option(Main.PROVIDER_OPT, Messages.getString("IdentityDBCmd.18"), //$NON-NLS-1$ Messages.getString("IdentityDBCmd.19")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { _providerClassName = argument; } }); options.add(new Option(Main.VERBOSE_OPT, Messages.getString("IdentityDBCmd.20")) //$NON-NLS-1$ { public void parsed(String argument) throws OptionException { verbose = true; } }); result.add(options); log.exiting(this.getClass().getName(), "getParser", result); //$NON-NLS-1$ return result; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/6e10879cd4d1df8b463898498b99e01d9ae63f24/IdentityDBCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/IdentityDBCmd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6783, 588, 2678, 1435, 95, 1330, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 6, 588, 2678, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 2678, 2088, 33, 2704, 17461, 6364, 2678, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6783, 588, 2678, 1435, 95, 1330, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 6, 588, 2678, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 2678, 2088, 33, 2704, 17461, 6364, 2678, 1...
return new DataDefinitionComposite(parent, SWT.NONE, query, null, builder, oContext);
return new DataDefinitionComposite(parent, SWT.NONE, query, seriesdefinition, builder, oContext);
public Composite getSeriesDataSheet(Composite parent, Series series, IExpressionBuilder builder, Object oContext) { Query query = null; if (series.getDataDefinition().size() > 0) { query = ((Query) series.getDataDefinition().get(0)); } else { query = QueryImpl.create(""); series.getDataDefinition().add(query); } return new DataDefinitionComposite(parent, SWT.NONE, query, null, builder, oContext); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/258bad0d502f0759055374875005f9978172c4d7/BarSeriesUIProvider.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/BarSeriesUIProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14728, 336, 6485, 751, 8229, 12, 9400, 982, 16, 9225, 4166, 16, 467, 2300, 1263, 2089, 16, 1033, 320, 1042, 13, 565, 288, 3639, 2770, 843, 273, 446, 31, 3639, 309, 261, 10222, 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, 14728, 336, 6485, 751, 8229, 12, 9400, 982, 16, 9225, 4166, 16, 467, 2300, 1263, 2089, 16, 1033, 320, 1042, 13, 565, 288, 3639, 2770, 843, 273, 446, 31, 3639, 309, 261, 10222, 18,...
}
}
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; } else if (patternObj instanceof StringBuffer) { pattern = new char [((StringBuffer) patternObj).length()]; ((StringBuffer) patternObj).getChars(0,pattern.length,pattern,0); } else { pattern = patternObj.toString().toCharArray(); } int pLength = pattern.length; numSubs = 0; // Number of subexpressions in this token. Vector branches = null; // linked list of tokens (sort of -- some closed loops can exist) firstToken = lastToken = null; // Precalculate these so we don't pay for the math every time we // need to access them. boolean insens = ((cflags & REG_ICASE) > 0); // Parse pattern into tokens. Does anyone know if it's more efficient // to use char[] than a String.charAt()? I'm assuming so. // index tracks the position in the char array int index = 0; // this will be the current parse character (pattern[index]) CharUnit unit = new CharUnit(); // This is used for {x,y} calculations IntPair minMax = new IntPair(); // Buffer a token so we can create a TokenRepeated, etc. REToken currentToken = null; char ch; boolean quot = false; while (index < pLength) { // read the next character unit (including backslash escapes) index = getCharUnit(pattern,index,unit,quot); if (unit.bk) if (unit.ch == 'Q') { quot = true; continue; } else if (unit.ch == 'E') { quot = false; continue; } if (quot) unit.bk = false; // ALTERNATION OPERATOR // \| or | (if RE_NO_BK_VBAR) or newline (if RE_NEWLINE_ALT) // not available if RE_LIMITED_OPS is set // TODO: the '\n' literal here should be a test against REToken.newline, // which unfortunately may be more than a single character. if ( ( (unit.ch == '|' && (syntax.get(RESyntax.RE_NO_BK_VBAR) ^ (unit.bk || quot))) || (syntax.get(RESyntax.RE_NEWLINE_ALT) && (unit.ch == '\n') && !(unit.bk || quot)) ) && !syntax.get(RESyntax.RE_LIMITED_OPS)) { // make everything up to here be a branch. create vector if nec. addToken(currentToken); RE theBranch = new RE(firstToken, lastToken, numSubs, subIndex, minimumLength); minimumLength = 0; if (branches == null) { branches = new Vector(); } branches.addElement(theBranch); firstToken = lastToken = currentToken = null; } // INTERVAL OPERATOR: // {x} | {x,} | {x,y} (RE_INTERVALS && RE_NO_BK_BRACES) // \{x\} | \{x,\} | \{x,y\} (RE_INTERVALS && !RE_NO_BK_BRACES) // // OPEN QUESTION: // what is proper interpretation of '{' at start of string? else if ((unit.ch == '{') && syntax.get(RESyntax.RE_INTERVALS) && (syntax.get(RESyntax.RE_NO_BK_BRACES) ^ (unit.bk || quot))) { int newIndex = getMinMax(pattern,index,minMax,syntax); if (newIndex > index) { if (minMax.first > minMax.second) throw new REException(getLocalizedMessage("interval.order"),REException.REG_BADRPT,newIndex); if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,newIndex); if (currentToken instanceof RETokenRepeated) throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,newIndex); if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,newIndex); if ((currentToken.getMinimumLength() == 0) && (minMax.second == Integer.MAX_VALUE)) throw new REException(getLocalizedMessage("repeat.empty.token"),REException.REG_BADRPT,newIndex); index = newIndex; currentToken = setRepeated(currentToken,minMax.first,minMax.second,index); } else { addToken(currentToken); currentToken = new RETokenChar(subIndex,unit.ch,insens); } } // LIST OPERATOR: // [...] | [^...] else if ((unit.ch == '[') && !(unit.bk || quot)) { Vector options = new Vector(); boolean negative = false; char lastChar = 0; if (index == pLength) throw new REException(getLocalizedMessage("unmatched.bracket"),REException.REG_EBRACK,index); // Check for initial caret, negation if ((ch = pattern[index]) == '^') { negative = true; if (++index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); ch = pattern[index]; } // Check for leading right bracket literal if (ch == ']') { lastChar = ch; if (++index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); } while ((ch = pattern[index++]) != ']') { if ((ch == '-') && (lastChar != 0)) { if (index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); if ((ch = pattern[index]) == ']') { options.addElement(new RETokenChar(subIndex,lastChar,insens)); lastChar = '-'; } else { options.addElement(new RETokenRange(subIndex,lastChar,ch,insens)); lastChar = 0; index++; } } else if ((ch == '\\') && syntax.get(RESyntax.RE_BACKSLASH_ESCAPE_IN_LISTS)) { if (index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); int posixID = -1; boolean negate = false; char asciiEsc = 0; if (("dswDSW".indexOf(pattern[index]) != -1) && syntax.get(RESyntax.RE_CHAR_CLASS_ESC_IN_LISTS)) { switch (pattern[index]) { case 'D': negate = true; case 'd': posixID = RETokenPOSIX.DIGIT; break; case 'S': negate = true; case 's': posixID = RETokenPOSIX.SPACE; break; case 'W': negate = true; case 'w': posixID = RETokenPOSIX.ALNUM; break; } } else if ("nrt".indexOf(pattern[index]) != -1) { switch (pattern[index]) { case 'n': asciiEsc = '\n'; break; case 't': asciiEsc = '\t'; break; case 'r': asciiEsc = '\r'; break; } } if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens)); if (posixID != -1) { options.addElement(new RETokenPOSIX(subIndex,posixID,insens,negate)); } else if (asciiEsc != 0) { lastChar = asciiEsc; } else { lastChar = pattern[index]; } ++index; } else if ((ch == '[') && (syntax.get(RESyntax.RE_CHAR_CLASSES)) && (index < pLength) && (pattern[index] == ':')) { StringBuffer posixSet = new StringBuffer(); index = getPosixSet(pattern,index+1,posixSet); int posixId = RETokenPOSIX.intValue(posixSet.toString()); if (posixId != -1) options.addElement(new RETokenPOSIX(subIndex,posixId,insens,false)); } else { if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens)); lastChar = ch; } if (index == pLength) throw new REException(getLocalizedMessage("class.no.end"),REException.REG_EBRACK,index); } // while in list // Out of list, index is one past ']' if (lastChar != 0) options.addElement(new RETokenChar(subIndex,lastChar,insens)); // Create a new RETokenOneOf addToken(currentToken); options.trimToSize(); currentToken = new RETokenOneOf(subIndex,options,negative); } // SUBEXPRESSIONS // (...) | \(...\) depending on RE_NO_BK_PARENS else if ((unit.ch == '(') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) { boolean pure = false; boolean comment = false; boolean lookAhead = false; boolean negativelh = false; if ((index+1 < pLength) && (pattern[index] == '?')) { switch (pattern[index+1]) { case '!': if (syntax.get(RESyntax.RE_LOOKAHEAD)) { pure = true; negativelh = true; lookAhead = true; index += 2; } break; case '=': if (syntax.get(RESyntax.RE_LOOKAHEAD)) { pure = true; lookAhead = true; index += 2; } break; case ':': if (syntax.get(RESyntax.RE_PURE_GROUPING)) { pure = true; index += 2; } break; case '#': if (syntax.get(RESyntax.RE_COMMENTS)) { comment = true; } break; default: throw new REException(getLocalizedMessage("repeat.no.token"), REException.REG_BADRPT, index); } } if (index >= pLength) { throw new REException(getLocalizedMessage("unmatched.paren"), REException.REG_ESUBREG,index); } // find end of subexpression int endIndex = index; int nextIndex = index; int nested = 0; while ( ((nextIndex = getCharUnit(pattern,endIndex,unit,false)) > 0) && !(nested == 0 && (unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) ) if ((endIndex = nextIndex) >= pLength) throw new REException(getLocalizedMessage("subexpr.no.end"),REException.REG_ESUBREG,nextIndex); else if (unit.ch == '(' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) nested++; else if (unit.ch == ')' && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot))) nested--; // endIndex is now position at a ')','\)' // nextIndex is end of string or position after ')' or '\)' if (comment) index = nextIndex; else { // not a comment // create RE subexpression as token. addToken(currentToken); if (!pure) { numSubs++; } int useIndex = (pure || lookAhead) ? 0 : nextSub + numSubs; currentToken = new RE(String.valueOf(pattern,index,endIndex-index).toCharArray(),cflags,syntax,useIndex,nextSub + numSubs); numSubs += ((RE) currentToken).getNumSubs(); if (lookAhead) { currentToken = new RETokenLookAhead(currentToken,negativelh); } index = nextIndex; } // not a comment } // subexpression // UNMATCHED RIGHT PAREN // ) or \) throw exception if // !syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) else if (!syntax.get(RESyntax.RE_UNMATCHED_RIGHT_PAREN_ORD) && ((unit.ch == ')') && (syntax.get(RESyntax.RE_NO_BK_PARENS) ^ (unit.bk || quot)))) { throw new REException(getLocalizedMessage("unmatched.paren"),REException.REG_EPAREN,index); } // START OF LINE OPERATOR // ^ else if ((unit.ch == '^') && !(unit.bk || quot)) { addToken(currentToken); currentToken = null; addToken(new RETokenStart(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null)); } // END OF LINE OPERATOR // $ else if ((unit.ch == '$') && !(unit.bk || quot)) { addToken(currentToken); currentToken = null; addToken(new RETokenEnd(subIndex,((cflags & REG_MULTILINE) > 0) ? syntax.getLineSeparator() : null)); } // MATCH-ANY-CHARACTER OPERATOR (except possibly newline and null) // . else if ((unit.ch == '.') && !(unit.bk || quot)) { addToken(currentToken); currentToken = new RETokenAny(subIndex,syntax.get(RESyntax.RE_DOT_NEWLINE) || ((cflags & REG_DOT_NEWLINE) > 0),syntax.get(RESyntax.RE_DOT_NOT_NULL)); } // ZERO-OR-MORE REPEAT OPERATOR // * else if ((unit.ch == '*') && !(unit.bk || quot)) { if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,index); if (currentToken instanceof RETokenRepeated) throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,index); if (currentToken.getMinimumLength() == 0) throw new REException(getLocalizedMessage("repeat.empty.token"),REException.REG_BADRPT,index); currentToken = setRepeated(currentToken,0,Integer.MAX_VALUE,index); } // ONE-OR-MORE REPEAT OPERATOR / POSSESSIVE MATCHING OPERATOR // + | \+ depending on RE_BK_PLUS_QM // not available if RE_LIMITED_OPS is set else if ((unit.ch == '+') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) { if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,index); // Check for possessive matching on RETokenRepeated if (currentToken instanceof RETokenRepeated) { RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_POSSESSIVE_OPS) && !tokenRep.isPossessive() && !tokenRep.isStingy()) tokenRep.makePossessive(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,index); else if (currentToken.getMinimumLength() == 0) throw new REException(getLocalizedMessage("repeat.empty.token"),REException.REG_BADRPT,index); else currentToken = setRepeated(currentToken,1,Integer.MAX_VALUE,index); } // ZERO-OR-ONE REPEAT OPERATOR / STINGY MATCHING OPERATOR // ? | \? depending on RE_BK_PLUS_QM // not available if RE_LIMITED_OPS is set // stingy matching if RE_STINGY_OPS is set and it follows a quantifier else if ((unit.ch == '?') && !syntax.get(RESyntax.RE_LIMITED_OPS) && (!syntax.get(RESyntax.RE_BK_PLUS_QM) ^ (unit.bk || quot))) { if (currentToken == null) throw new REException(getLocalizedMessage("repeat.no.token"),REException.REG_BADRPT,index); // Check for stingy matching on RETokenRepeated if (currentToken instanceof RETokenRepeated) { RETokenRepeated tokenRep = (RETokenRepeated)currentToken; if (syntax.get(RESyntax.RE_STINGY_OPS) && !tokenRep.isStingy() && !tokenRep.isPossessive()) tokenRep.makeStingy(); else throw new REException(getLocalizedMessage("repeat.chained"),REException.REG_BADRPT,index); } else if (currentToken instanceof RETokenWordBoundary || currentToken instanceof RETokenWordBoundary) throw new REException(getLocalizedMessage("repeat.assertion"),REException.REG_BADRPT,index); else currentToken = setRepeated(currentToken,0,1,index); } // BACKREFERENCE OPERATOR // \1 \2 ... \9 // not available if RE_NO_BK_REFS is set else if (unit.bk && Character.isDigit(unit.ch) && !syntax.get(RESyntax.RE_NO_BK_REFS)) { addToken(currentToken); currentToken = new RETokenBackRef(subIndex,Character.digit(unit.ch,10),insens); } // START OF STRING OPERATOR // \A if RE_STRING_ANCHORS is set else if (unit.bk && (unit.ch == 'A') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenStart(subIndex,null); } // WORD BREAK OPERATOR // \b if ???? else if (unit.bk && (unit.ch == 'b') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, false); } // WORD BEGIN OPERATOR // \< if ???? else if (unit.bk && (unit.ch == '<')) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN, false); } // WORD END OPERATOR // \> if ???? else if (unit.bk && (unit.ch == '>')) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.END, false); } // NON-WORD BREAK OPERATOR // \B if ???? else if (unit.bk && (unit.ch == 'B') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenWordBoundary(subIndex, RETokenWordBoundary.BEGIN | RETokenWordBoundary.END, true); } // DIGIT OPERATOR // \d if RE_CHAR_CLASS_ESCAPES is set else if (unit.bk && (unit.ch == 'd') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,false); } // NON-DIGIT OPERATOR // \D else if (unit.bk && (unit.ch == 'D') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.DIGIT,insens,true); } // NEWLINE ESCAPE // \n else if (unit.bk && (unit.ch == 'n')) { addToken(currentToken); currentToken = new RETokenChar(subIndex,'\n',false); } // RETURN ESCAPE // \r else if (unit.bk && (unit.ch == 'r')) { addToken(currentToken); currentToken = new RETokenChar(subIndex,'\r',false); } // WHITESPACE OPERATOR // \s if RE_CHAR_CLASS_ESCAPES is set else if (unit.bk && (unit.ch == 's') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,false); } // NON-WHITESPACE OPERATOR // \S else if (unit.bk && (unit.ch == 'S') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.SPACE,insens,true); } // TAB ESCAPE // \t else if (unit.bk && (unit.ch == 't')) { addToken(currentToken); currentToken = new RETokenChar(subIndex,'\t',false); } // ALPHANUMERIC OPERATOR // \w else if (unit.bk && (unit.ch == 'w') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,false); } // NON-ALPHANUMERIC OPERATOR // \W else if (unit.bk && (unit.ch == 'W') && syntax.get(RESyntax.RE_CHAR_CLASS_ESCAPES)) { addToken(currentToken); currentToken = new RETokenPOSIX(subIndex,RETokenPOSIX.ALNUM,insens,true); } // END OF STRING OPERATOR // \Z else if (unit.bk && (unit.ch == 'Z') && syntax.get(RESyntax.RE_STRING_ANCHORS)) { addToken(currentToken); currentToken = new RETokenEnd(subIndex,null); } // NON-SPECIAL CHARACTER (or escape to make literal) // c | \* for example else { // not a special character addToken(currentToken); currentToken = new RETokenChar(subIndex,unit.ch,insens); } } // end while // Add final buffered token and an EndSub marker addToken(currentToken); if (branches != null) { branches.addElement(new RE(firstToken,lastToken,numSubs,subIndex,minimumLength)); branches.trimToSize(); // compact the Vector minimumLength = 0; firstToken = lastToken = null; addToken(new RETokenOneOf(subIndex,branches,false)); } else addToken(new RETokenEndSub(subIndex)); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8f1176391e1d000d946793693906d6dc8af29e19/RE.java/buggy/core/src/classpath/gnu/gnu/regexp/RE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 4046, 12, 921, 1936, 2675, 16, 509, 276, 7133, 16, 2438, 8070, 6279, 16, 509, 3399, 1016, 16, 509, 1024, 1676, 13, 1216, 2438, 503, 288, 1377, 1149, 8526, 1936, 31, 565, 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, 282, 4750, 918, 4046, 12, 921, 1936, 2675, 16, 509, 276, 7133, 16, 2438, 8070, 6279, 16, 509, 3399, 1016, 16, 509, 1024, 1676, 13, 1216, 2438, 503, 288, 1377, 1149, 8526, 1936, 31, 565, 309,...
return unlockCheck(EVENT_READ_CALENDAR, getReference());
return unlockCheck(AUTH_READ_CALENDAR, getReference());
public boolean allowGetEvents() { return unlockCheck(EVENT_READ_CALENDAR, getReference()); } // allowGetEvents
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/85b4f81a2e9787b98cf9b90fd36802cc55519989/BaseCalendarService.java/clean/calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/BaseCalendarService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 1699, 967, 3783, 1435, 202, 202, 95, 1082, 202, 2463, 7186, 1564, 12, 10454, 67, 6949, 67, 12983, 29154, 16, 13223, 10663, 202, 202, 97, 368, 1699, 967, 3783, 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, 3196, 202, 482, 1250, 1699, 967, 3783, 1435, 202, 202, 95, 1082, 202, 2463, 7186, 1564, 12, 10454, 67, 6949, 67, 12983, 29154, 16, 13223, 10663, 202, 202, 97, 368, 1699, 967, 3783, 2, -100, ...
buf.append(" <log4j:data name=\"" + propName);
buf.append(" <log4j:data name=\""); buf.append(propName);
public String format(LoggingEvent event) { StringBuffer buf = new StringBuffer(); // We yield to the \r\n heresy. buf.append("<log4j:event logger=\""); buf.append(event.getLoggerName()); buf.append("\" timestamp=\""); buf.append(Long.toString(event.getTimeStamp())); buf.append("\" sequenceNumber=\""); buf.append(Long.toString(event.getSequenceNumber())); buf.append("\" level=\""); buf.append(event.getLevel().toString()); buf.append("\" thread=\""); buf.append(event.getThreadName()); buf.append("\">\r\n"); buf.append("<log4j:message><![CDATA["); // Append the rendered message. Also make sure to escape any // existing CDATA sections. Transform.appendEscapingCDATA(buf, event.getRenderedMessage()); buf.append("]]></log4j:message>\r\n"); String ndc = event.getNDC(); if (ndc != null) { buf.append("<log4j:NDC><![CDATA["); buf.append(ndc); buf.append("]]></log4j:NDC>\r\n"); } // Set mdcKeySet = event.getMDCKeySet(); // // if ((mdcKeySet != null) && (mdcKeySet.size() > 0)) { // /** // * Normally a sort isn't required, but for Test Case purposes // * we need to guarantee a particular order. // * // * Besides which, from a human readable point of view, the sorting // * of the keys is kinda nice.. // */ // List sortedList = new ArrayList(mdcKeySet); // Collections.sort(sortedList); // // buf.append("<log4j:MDC>\r\n"); // // Iterator iter = sortedList.iterator(); // // while (iter.hasNext()) { // String propName = iter.next().toString(); // output.write(" <log4j:data name=\"" + propName); // // String propValue = event.getMDC(propName).toString(); // output.write("\" value=\"" + propValue); // output.write("\"/>\r\n"); // } // // output.write("</log4j:MDC>\r\n"); // } if (!ignoresThrowable) { String[] s = event.getThrowableStrRep(); if (s != null) { buf.append("<log4j:throwable><![CDATA["); for (int i = 0; i < s.length; i++) { buf.append(s[i]); buf.append("\r\n"); } buf.append("]]></log4j:throwable>\r\n"); } } if (locationInfo) { LocationInfo locationInfo = event.getLocationInformation(); buf.append("<log4j:locationInfo class=\""); buf.append(Transform.escapeTags(locationInfo.getClassName())); buf.append("\" method=\""); buf.append(Transform.escapeTags(locationInfo.getMethodName())); buf.append("\" file=\""); buf.append(locationInfo.getFileName()); buf.append("\" line=\""); buf.append(locationInfo.getLineNumber()); buf.append("\"/>\r\n"); } Set propertySet = event.getPropertyKeySet(); if ((propertySet != null) && (propertySet.size() > 0)) { buf.append("<log4j:properties>\r\n"); Iterator propIter = propertySet.iterator(); while (propIter.hasNext()) { String propName = propIter.next().toString(); buf.append(" <log4j:data name=\"" + propName); String propValue = event.getProperty(propName).toString(); buf.append("\" value=\"" + propValue); buf.append("\"/>\r\n"); } buf.append("</log4j:properties>\r\n"); } buf.append("</log4j:event>\r\n\r\n"); return buf.toString(); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/887bcc64c1a2854652bd7a140750b039ae9251d7/XMLLayout.java/clean/src/java/org/apache/log4j/xml/XMLLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 740, 12, 7735, 1133, 871, 13, 288, 565, 6674, 1681, 273, 394, 6674, 5621, 565, 368, 1660, 2824, 358, 326, 521, 86, 64, 82, 366, 11737, 93, 18, 565, 1681, 18, 6923, 2932, 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, 282, 1071, 514, 740, 12, 7735, 1133, 871, 13, 288, 565, 6674, 1681, 273, 394, 6674, 5621, 565, 368, 1660, 2824, 358, 326, 521, 86, 64, 82, 366, 11737, 93, 18, 565, 1681, 18, 6923, 2932, 32...
case 13:
case 8:
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 19; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 17; else if (curChar == 34) jjCheckNAddTwoStates(12, 13); else if (curChar == 35) { if (kind > 19) kind = 19; } else if (curChar == 36) { if (kind > 14) kind = 14; } else if (curChar == 41) { if (kind > 5) kind = 5; jjCheckNAddStates(0, 2); } if (curChar == 35) jjstateSet[jjnewStateCnt++] = 8; break; case 1: if (curChar != 32) break; if (kind > 5) kind = 5; jjCheckNAddStates(0, 2); break; case 2: if ((0x2400L & l) != 0L && kind > 5) kind = 5; break; case 3: if (curChar == 10 && kind > 5) kind = 5; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 5: if (curChar == 36 && kind > 14) kind = 14; break; case 6: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 7; break; case 7: if ((0xfffffff7ffffffffL & l) != 0L && kind > 17) kind = 17; break; case 8: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 6; break; case 9: if (curChar == 35) jjstateSet[jjnewStateCnt++] = 8; break; case 10: if (curChar == 35 && kind > 19) kind = 19; break; case 11: if (curChar == 34) jjCheckNAddTwoStates(12, 13); break; case 12: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if (curChar == 34 && kind > 28) kind = 28; break; case 15: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 61) kind = 61; jjstateSet[jjnewStateCnt++] = 15; break; case 16: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 17; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 61) kind = 61; jjCheckNAdd(15); } else if (curChar == 92) jjAddStates(3, 4); break; case 7: if (kind > 17) kind = 17; break; case 12: jjAddStates(5, 6); break; case 14: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 61) kind = 61; jjCheckNAdd(15); break; case 15: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 61) kind = 61; jjCheckNAdd(15); break; case 17: if ((0x7fffffe07fffffeL & l) != 0L && kind > 62) kind = 62; break; case 18: if (curChar == 92) jjAddStates(3, 4); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L && kind > 17) kind = 17; break; case 12: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(5, 6); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 19 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/65bb22ee318c85d66cafbb1a948ac2aa22008ee7/ParserTokenManager.java/buggy/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 21, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 21, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
suite.addTest(new TestSuite(CheckerTest.class)); suite.addTest(new TestSuite(DetailASTTest.class));
public static Test suite() { TestSuite suite = new TestSuite("Test for com.puppycrawl.tools.checkstyle"); //$JUnit-BEGIN$ suite.addTest(new TestSuite(CheckerTest.class)); suite.addTest(new TestSuite(DetailASTTest.class)); suite.addTest(new TestSuite(AbstractClassNameCheckTest.class)); suite.addTest(new TestSuite(AbstractViolationReporterTest.class)); suite.addTest(new TestSuite(AnonInnerLengthCheckTest.class)); suite.addTest(new TestSuite(ArrayTypeStyleCheckTest.class)); suite.addTest(new TestSuite(AvoidInlineConditionalsCheckTest.class)); suite.addTest(new TestSuite(AvoidNestedBlocksCheckTest.class)); suite.addTest(new TestSuite(AvoidStarImportTest.class)); suite.addTest(new TestSuite(ArrayTrailingCommaCheckTest.class)); suite.addTest(new TestSuite(ConfigurationLoaderTest.class)); suite.addTest(new TestSuite(ConstantNameCheckTest.class)); suite.addTest(new TestSuite(CovariantEqualsCheckTest.class)); suite.addTest(new TestSuite(CyclomaticComplexityCheckTest.class)); suite.addTest(new TestSuite(DescendantTokenCheckTest.class)); suite.addTest(new TestSuite(DesignForExtensionCheckTest.class)); suite.addTest(new TestSuite(DoubleCheckedLockingCheckTest.class)); suite.addTest(new TestSuite(EmptyBlockCheckTest.class)); suite.addTest(new TestSuite(EmptyForIteratorPadCheckTest.class)); suite.addTest(new TestSuite(EmptyStatementCheckTest.class)); suite.addTest(new TestSuite(EqualsHashCodeCheckTest.class)); suite.addTest(new TestSuite(FileLengthCheckTest.class)); suite.addTest(new TestSuite(FileSetCheckLifecycleTest.class)); suite.addTest(new TestSuite(FinalParametersCheckTest.class)); suite.addTest(new TestSuite(GenericIllegalRegexpCheckTest.class)); suite.addTest(new TestSuite(HeaderCheckTest.class)); suite.addTest(new TestSuite(HiddenFieldCheckTest.class)); suite.addTest(new TestSuite(HideUtilityClassConstructorCheckTest.class)); suite.addTest(new TestSuite(IllegalCatchCheckTest.class)); suite.addTest(new TestSuite(IllegalImportCheckTest.class)); suite.addTest(new TestSuite(IllegalInstantiationCheckTest.class)); suite.addTest(new TestSuite(IllegalTokenCheckTest.class)); suite.addTest(new TestSuite(IllegalTokenTextCheckTest.class)); suite.addTest(new TestSuite(IndentationCheckTest.class)); suite.addTest(new TestSuite(InnerAssignmentCheckTest.class)); suite.addTest(new TestSuite(InterfaceIsTypeCheckTest.class)); suite.addTest(new TestSuite(JavadocMethodCheckTest.class)); suite.addTest(new TestSuite(JavadocStyleCheckTest.class)); suite.addTest(new TestSuite(JavadocTypeCheckTest.class)); suite.addTest(new TestSuite(JavadocVariableCheckTest.class)); suite.addTest(new TestSuite(JUnitTestCaseCheckTest.class)); suite.addTest(new TestSuite(LineLengthCheckTest.class)); suite.addTest(new TestSuite(LocalFinalVariableNameCheckTest.class)); suite.addTest(new TestSuite(LocalVariableNameCheckTest.class)); suite.addTest(new TestSuite(MagicNumberCheckTest.class)); suite.addTest(new TestSuite(MemberNameCheckTest.class)); suite.addTest(new TestSuite(MethodLengthCheckTest.class)); suite.addTest(new TestSuite(MethodNameCheckTest.class)); suite.addTest(new TestSuite(ModifierOrderCheckTest.class)); suite.addTest(new TestSuite(MutableExceptionCheckTest.class)); suite.addTest(new TestSuite(NeedBracesCheckTest.class)); suite.addTest(new TestSuite(NestedIfDepthCheckTest.class)); suite.addTest(new TestSuite(NestedTryDepthCheckTest.class)); suite.addTest(new TestSuite(NewlineAtEndOfFileCheckTest.class)); suite.addTest(new TestSuite(NoWhitespaceAfterCheckTest.class)); suite.addTest(new TestSuite(NoWhitespaceBeforeCheckTest.class)); suite.addTest(new TestSuite(OperatorWrapCheckTest.class)); suite.addTest(new TestSuite(OptionTest.class)); suite.addTest(new TestSuite(PackageDeclarationCheckTest.class)); suite.addTest(new TestSuite(PackageHtmlCheckTest.class)); suite.addTest(new TestSuite(PackageNameCheckTest.class)); suite.addTest(new TestSuite(PackageNamesLoaderTest.class)); suite.addTest(new TestSuite(PackageObjectFactoryTest.class)); suite.addTest(new TestSuite(ParameterNameCheckTest.class)); suite.addTest(new TestSuite(ParameterNumberCheckTest.class)); suite.addTest(new TestSuite(ParenPadCheckTest.class)); suite.addTest(new TestSuite(RedundantImportCheckTest.class)); suite.addTest(new TestSuite(RedundantModifierTest.class)); suite.addTest(new TestSuite(RedundantThrowsCheckTest.class)); suite.addTest(new TestSuite(RightCurlyCheckTest.class)); suite.addTest(new TestSuite(SimplifyBooleanExpressionCheckTest.class)); suite.addTest(new TestSuite(SimplifyBooleanReturnCheckTest.class)); suite.addTest(new TestSuite(StaticVariableNameCheckTest.class)); suite.addTest(new TestSuite(StringArrayReaderTest.class)); suite.addTest(new TestSuite(StringLiteralEqualityCheckTest.class)); suite.addTest(new TestSuite(SuperCloneCheckTest.class)); suite.addTest(new TestSuite(SuperFinalizeCheckTest.class)); suite.addTest(new TestSuite(TabCharacterCheckTest.class)); suite.addTest(new TestSuite(TodoCommentCheckTest.class)); suite.addTest(new TestSuite(TranslationCheckTest.class)); suite.addTest(new TestSuite(TypecastParenPadCheckTest.class)); suite.addTest(new TestSuite(LeftCurlyCheckTest.class)); suite.addTest(new TestSuite(TypeNameCheckTest.class)); suite.addTest(new TestSuite(UncommentedMainCheckTest.class)); suite.addTest(new TestSuite(UnusedImportsCheckTest.class)); suite.addTest(new TestSuite(UpperEllCheckTest.class)); suite.addTest(new TestSuite(UtilsTest.class)); suite.addTest(new TestSuite(VisibilityModifierCheckTest.class)); suite.addTest(new TestSuite(WhitespaceAfterCheckTest.class)); suite.addTest(new TestSuite(WhitespaceAroundTest.class)); suite.addTest(new TestSuite(XMLLoggerTest.class)); suite.addTest(new TestSuite(FinalClassCheckTest.class)); suite.addTest(new TestSuite(MissingSwitchDefaultCheckTest.class)); // j2ee tests-BEGIN suite.addTest(new TestSuite(EntityBeanCheckTest.class)); suite.addTest(new TestSuite(FinalStaticCheckTest.class)); suite.addTest(new TestSuite(LocalHomeInterfaceCheckTest.class)); suite.addTest(new TestSuite(LocalInterfaceCheckTest.class)); suite.addTest(new TestSuite(MessageBeanCheckTest.class)); suite.addTest(new TestSuite(RemoteHomeInterfaceCheckTest.class)); suite.addTest(new TestSuite(RemoteInterfaceCheckTest.class)); suite.addTest(new TestSuite(SessionBeanCheckTest.class)); suite.addTest(new TestSuite(ThisParameterCheckTest.class)); suite.addTest(new TestSuite(ThisReturnCheckTest.class)); // j2ee tests-END // usage tests-BEGIN suite.addTest(new TestSuite(OneMethodPrivateFieldCheckTest.class)); suite.addTest(new TestSuite(UnusedLocalVariableCheckTest.class)); suite.addTest(new TestSuite(UnusedParameterCheckTest.class)); suite.addTest(new TestSuite(UnusedPrivateFieldCheckTest.class)); suite.addTest(new TestSuite(UnusedPrivateMethodCheckTest.class)); // usage tests-END //$JUnit-END$ return suite; }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/9bc9f418278ed8782e473b2dbf4d7669e886bfcb/AllTests.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/AllTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 7766, 11371, 1435, 288, 3639, 7766, 13587, 11371, 273, 5411, 394, 7766, 13587, 2932, 4709, 364, 532, 18, 84, 416, 2074, 71, 15161, 18, 6642, 18, 31540, 8863, 3639, 4329, 46, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 7766, 11371, 1435, 288, 3639, 7766, 13587, 11371, 273, 5411, 394, 7766, 13587, 2932, 4709, 364, 532, 18, 84, 416, 2074, 71, 15161, 18, 6642, 18, 31540, 8863, 3639, 4329, 46, 28...
public abstract void setFilenameFilter(FilenameFilter ff);
void setFilenameFilter (FilenameFilter ff);
public abstract void setFilenameFilter(FilenameFilter ff);
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/FileDialogPeer.java/clean/core/src/classpath/java/java/awt/peer/FileDialogPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 8770, 918, 444, 5359, 1586, 12, 5359, 1586, 6875, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 8770, 918, 444, 5359, 1586, 12, 5359, 1586, 6875, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (jj_scan_token(STARASSIGN)) return true;
if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
final private boolean jj_3R_203() { if (jj_scan_token(STARASSIGN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3462, 23, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 15640, 1360, 67, 8941, 67, 23225, 3719, 327, 638, 31, 565, 309, 261, 78, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3462, 23, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 15640, 1360, 67, 8941, 67, 23225, 3719, 327, 638, 31, 565, 309, 261, 78, ...
getLogger().info( " ***** connection " + entry.getId() + " is way too old: " + age + " > " + ACTIVE_CONN_TIME_LIMIT);
StringBuffer logBuffer = new StringBuffer(128) .append(" ***** connection ") .append(entry.getId()) .append(" is way too old: ") .append(age) .append(" > ") .append(ACTIVE_CONN_TIME_LIMIT); getLogger().info(logBuffer.toString());
public void run() { while(reaperActive) { for(int i = 0; i < pool.size(); i++) { PoolConnEntry entry = (PoolConnEntry)pool.elementAt(i); long age = System.currentTimeMillis() - entry.getLastActivity(); synchronized(entry) { if((entry.getStatus() == PoolConnEntry.ACTIVE) && (age > ACTIVE_CONN_TIME_LIMIT)) { getLogger().info( " ***** connection " + entry.getId() + " is way too old: " + age + " > " + ACTIVE_CONN_TIME_LIMIT); // This connection is way too old... // kill it no matter what finalizeEntry(entry); continue; } if((entry.getStatus() == PoolConnEntry.AVAILABLE) && (age > CONN_IDLE_LIMIT)) { //We've got a connection that's too old... kill it finalizeEntry(entry); continue; } } } try { // Check for activity every 5 seconds Thread.sleep(5000L); } catch(InterruptedException ex) { } } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/2557fc80c334a8bf037aa78d48c3d733651ee9a9/JdbcDataSource.java/buggy/trunk/src/java/org/apache/james/util/mordred/JdbcDataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1323, 12, 266, 7294, 3896, 13, 288, 5411, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2845, 18, 1467, 5621, 277, 27245, 288, 7734, 8828, 3543, 1622, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1323, 12, 266, 7294, 3896, 13, 288, 5411, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2845, 18, 1467, 5621, 277, 27245, 288, 7734, 8828, 3543, 1622, 124...
synchronized void removeActiveWorker(DownloadWorker worker) {
synchronized boolean removeActiveWorker(DownloadWorker worker) {
synchronized void removeActiveWorker(DownloadWorker worker) { currentRFDs.remove(worker.getRFD()); List l = new ArrayList(getActiveWorkers()); l.remove(worker); _activeWorkers = Collections.unmodifiableList(l); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/c87a6c0b85a903f73426aac467b85c287af79be6/ManagedDownloader.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/downloader/ManagedDownloader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1250, 1206, 3896, 6671, 12, 7109, 6671, 4322, 13, 288, 3639, 783, 12918, 22831, 18, 4479, 12, 10124, 18, 588, 12918, 40, 10663, 3639, 987, 328, 273, 394, 2407, 12, 588, 3896, 15252,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 1250, 1206, 3896, 6671, 12, 7109, 6671, 4322, 13, 288, 3639, 783, 12918, 22831, 18, 4479, 12, 10124, 18, 588, 12918, 40, 10663, 3639, 987, 328, 273, 394, 2407, 12, 588, 3896, 15252,...
comprator = 9; int return_int=-1;
setComprator(9); int return_int = -1;
public int getMaxGrID() { comprator = 9; int return_int=-1; try { registerParameters(); rs = cstm.executeQuery(); while(rs.next()) { return_int = rs.getInt(1); } } catch(java.sql.SQLException sqle) {sqle.printStackTrace();} return return_int; }
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/187dcf7bb9ada58dc1a0ed5b75fd4fd60a6e613f/dbNumDoc.java/buggy/src/imakante/sales/dbNumDoc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 7288, 20799, 734, 1435, 288, 3639, 532, 683, 639, 273, 2468, 31, 3639, 509, 327, 67, 474, 29711, 21, 31, 3639, 775, 288, 5411, 1744, 2402, 5621, 5411, 3597, 273, 276, 334, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 7288, 20799, 734, 1435, 288, 3639, 532, 683, 639, 273, 2468, 31, 3639, 509, 327, 67, 474, 29711, 21, 31, 3639, 775, 288, 5411, 1744, 2402, 5621, 5411, 3597, 273, 276, 334, 81...
if ( extensionID != null ) { String newExtensionID = ( (OdaExtensibilityProvider) provider )
String newExtensionID = provider
private void parseODADataSourceExtensionID( Attributes attrs, boolean extensionNameRequired ) { String extensionID = getAttrib( attrs, DesignSchemaConstants.EXTENSION_ID_ATTRIB ); if ( StringUtil.isBlank( extensionID ) ) { if ( !extensionNameRequired ) return; SemanticError e = new SemanticError( element, SemanticError.DESIGN_EXCEPTION_MISSING_EXTENSION ); RecoverableError.dealMissingInvalidExtension( handler, e ); return; } if ( handler.versionNumber < VersionUtil.VERSION_3_0_0 ) { if ( OBSOLETE_FLAT_FILE_ID.equalsIgnoreCase( extensionID ) ) extensionID = NEW_FLAT_FILE_ID; } setProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP, extensionID ); // get the provider to check whether this is a valid oda extension provider = ( (OdaDataSource) element ).getProvider( ); if ( provider == null ) return; if ( provider instanceof OdaDummyProvider ) { SemanticError e = new SemanticError( element, new String[]{extensionID}, SemanticError.DESIGN_EXCEPTION_EXTENSION_NOT_FOUND ); RecoverableError.dealMissingInvalidExtension( handler, e ); isValidExtensionId = false; } else if ( provider instanceof OdaExtensibilityProvider ) { // After version 3.2.7 , add convert fuction. if ( extensionID != null ) { String newExtensionID = ( (OdaExtensibilityProvider) provider ) .convertDataSourceExtensionID( extensionID ); if ( !extensionID.equals( newExtensionID ) ) { setProperty( IOdaExtendableElementModel.EXTENSION_ID_PROP, newExtensionID ); } } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b7cf16118dbf8403e875e1824d65359fbf5295a8/OdaDataSourceState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/OdaDataSourceState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1109, 1212, 37, 8597, 3625, 734, 12, 9055, 3422, 16, 1082, 202, 6494, 2710, 461, 3705, 262, 202, 95, 202, 202, 780, 2710, 734, 273, 336, 12399, 12, 3422, 16, 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, 1152, 918, 1109, 1212, 37, 8597, 3625, 734, 12, 9055, 3422, 16, 1082, 202, 6494, 2710, 461, 3705, 262, 202, 95, 202, 202, 780, 2710, 734, 273, 336, 12399, 12, 3422, 16, 9506, 202, ...
data.setPresentableText(getValue().getName());
final PsiClass value = getValue(); if (value != null) { data.setPresentableText(value.getName()); }
public void updateImpl(PresentationData data) { data.setPresentableText(getValue().getName()); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/a94b3583562cbf1323c0dc591d00518b68e1bd87/ClassTreeNode.java/clean/source/com/intellij/ide/projectView/impl/nodes/ClassTreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 2828, 12, 6351, 367, 751, 501, 13, 288, 565, 727, 453, 7722, 797, 460, 273, 2366, 5621, 309, 261, 1132, 480, 446, 13, 288, 501, 18, 542, 6351, 429, 1528, 12, 1132, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 2828, 12, 6351, 367, 751, 501, 13, 288, 565, 727, 453, 7722, 797, 460, 273, 2366, 5621, 309, 261, 1132, 480, 446, 13, 288, 501, 18, 542, 6351, 429, 1528, 12, 1132, 18...