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 |
|---|---|---|---|---|---|---|
Item[] items = getChildren(widget); for (int i = 0; i < items.length; i++) { if (items[i].getData().equals(element)) { refresh(element); return; } | if (getSorter () == null) { Item[] items = getChildren(widget); for (int i = 0; i < items.length; i++) { if (items[i].getData().equals(element)) { refresh(element); return; } } | private void createAddedElement(Widget widget, Object element) { if (equals(element, widget.getData())) return; Item[] items = getChildren(widget); for (int i = 0; i < items.length; i++) { if (items[i].getData().equals(element)) { //refresh the element in case it has new children refresh(element); return; } } int index = indexForElement(widget, element); createTreeItem(widget, element, index); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d94e309c616b79ca7e205fa94a5f9687ffcbe4f8/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
8602,
1046,
12,
4609,
3604,
16,
1033,
930,
13,
288,
3639,
309,
261,
14963,
12,
2956,
16,
3604,
18,
588,
751,
1435,
3719,
5411,
327,
31,
3639,
4342,
8526,
1516,
273,
1026... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
8602,
1046,
12,
4609,
3604,
16,
1033,
930,
13,
288,
3639,
309,
261,
14963,
12,
2956,
16,
3604,
18,
588,
751,
1435,
3719,
5411,
327,
31,
3639,
4342,
8526,
1516,
273,
1026... |
public void DeleteSelectedPatch() { if (table.getSelectedRowCount()==0) { ErrorMsg.reportError("Error", "No Patch Selected."); return; } myModel.PatchList.remove(table.getSelectedRow()); myModel.fireTableDataChanged();// statusBar.setText(myModel.PatchList.size()+" Patches"); } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/c8c2f2d41919d6587858edc131d215f4eebaeb4b/LibraryFrame.java/buggy/JSynthLib/core/LibraryFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2504,
7416,
7332,
1435,
565,
288,
3639,
309,
261,
2121,
18,
588,
7416,
26359,
1435,
631,
20,
13,
3639,
288,
3639,
1068,
3332,
18,
6006,
668,
2932,
668,
3113,
315,
2279,
12042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2504,
7416,
7332,
1435,
565,
288,
3639,
309,
261,
2121,
18,
588,
7416,
26359,
1435,
631,
20,
13,
3639,
288,
3639,
1068,
3332,
18,
6006,
668,
2932,
668,
3113,
315,
2279,
12042,
... | ||
this.setElementLabelInsideUpdate(task, decomposition.getLabel()); | if (task.getLabel() == null) { setElementLabelInsideUpdate(task, decomposition.getLabel()); } | public void setTaskDecomposition(YAWLTask task, Decomposition decomposition) { Decomposition oldDecomposition = task.getDecomposition(); if (decomposition.equals(oldDecomposition)) { return; } task.setDecomposition(decomposition); task.getParameterLists().reset(); getNetModel().beginUpdate(); this.setElementLabelInsideUpdate(task, decomposition.getLabel()); getNetModel().postEdit( new UndoableTaskDecompositionChange( task, oldDecomposition, task.getDecomposition() ) ); getNetModel().endUpdate(); } | 53104 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53104/9fb291ac97d25f3b64217739db9efc0e4c82bf38/NetGraph.java/buggy/trunk/source/au/edu/qut/yawl/editor/net/NetGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2174,
17731,
3276,
12,
61,
12999,
48,
2174,
1562,
16,
26824,
3276,
26288,
13,
288,
565,
26824,
3276,
1592,
17731,
3276,
273,
1562,
18,
588,
17731,
3276,
5621,
565,
309,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
2174,
17731,
3276,
12,
61,
12999,
48,
2174,
1562,
16,
26824,
3276,
26288,
13,
288,
565,
26824,
3276,
1592,
17731,
3276,
273,
1562,
18,
588,
17731,
3276,
5621,
565,
309,
26... |
public static String jsFunction_concat(Context cx, Scriptable thisObj, Object[] args, Function funObj) { | private static String jsFunction_concat(String target, Object[] args) { int N = args.length; if (N == 0) { return target; } | public static String jsFunction_concat(Context cx, Scriptable thisObj, Object[] args, Function funObj) { StringBuffer result = new StringBuffer(); result.append(ScriptRuntime.toString(thisObj)); for (int i = 0; i < args.length; i++) result.append(ScriptRuntime.toString(args[i])); return result.toString(); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/b631b3e8574543a4d24a0048cc710f305deb8ff5/NativeString.java/buggy/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
16426,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
6647,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
16426,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
6647,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
... |
public TabbedPaneUI getUI() { return (TabbedPaneUI)ui; } | public TabbedPaneUI getUI() { return (TabbedPaneUI) ui; } | public TabbedPaneUI getUI() { return (TabbedPaneUI)ui; } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JTabbedPane.java/clean/libjava/javax/swing/JTabbedPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9483,
2992,
8485,
5370,
336,
5370,
1435,
288,
3639,
327,
261,
5661,
2992,
8485,
5370,
13,
4881,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9483,
2992,
8485,
5370,
336,
5370,
1435,
288,
3639,
327,
261,
5661,
2992,
8485,
5370,
13,
4881,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
exception.reject(null, ex.getMessage()); | errors.reject(null, ex.getMessage()); | public ModelAndView handle(final HttpServletRequest request, final HttpServletResponse response, Object command, final BindException exception) { final SVNBaseCommand svnCommand = (SVNBaseCommand) command; // If application config is not ok - redirect to config.jsp if (!configuration.isConfigured()) { logger.debug("sventon not configured, redirecting to 'config.svn'"); return new ModelAndView(new RedirectView("config.svn")); } if (!configuration.getInstanceNames().contains(svnCommand.getName())) { logger.debug("InstanceName [" + svnCommand.getName() + "] does not exist, redirecting to 'listinstances.svn'"); return new ModelAndView(new RedirectView("listinstances.svn")); } if (exception.hasErrors()) { return prepareExceptionModelAndView(exception, svnCommand); } try { final InstanceConfiguration instanceConfiguration = configuration.getInstanceConfiguration(svnCommand.getName()); final SVNRepository repository = RepositoryFactory.INSTANCE.getRepository(instanceConfiguration); final boolean showLatestRevInfo = ServletRequestUtils.getBooleanParameter(request, "showlatestrevinfo", false); final SVNRevision requestedRevision = convertAndUpdateRevision(svnCommand); final long headRevision = repositoryService.getLatestRevision(repository); final UserContext userContext = getUserContext(request); parseAndUpdateSortParameters(request, userContext); parseAndUpdateLatestRevisionsDisplayCount(request, userContext); parseAndUpdateCharsetParameter(request, userContext); final ModelAndView modelAndView = svnHandle(repository, svnCommand, requestedRevision, userContext, request, response, exception); // It's ok for svnHandle to return null in cases like GetController. // If the view is a RedirectView it's model has already been populated if (modelAndView != null && !(modelAndView.getView() instanceof RedirectView)) { final Map<String, Object> model = new HashMap<String, Object>(); logger.debug("'command' set to: " + svnCommand); model.put("command", svnCommand); // This is for the form to work model.put("url", instanceConfiguration.getUrl()); model.put("numrevision", (requestedRevision == HEAD ? Long.toString(headRevision) : null)); model.put("isHead", requestedRevision == HEAD); model.put("isUpdating", revisionObservable.isUpdating()); model.put("useCache", instanceConfiguration.isCacheUsed()); model.put("isZipDownloadsAllowed", instanceConfiguration.isZippedDownloadsAllowed()); model.put("instanceNames", configuration.getInstanceNames()); model.put("maxRevisionsCount", getMaxRevisionsCount()); model.put("headRevision", headRevision); model.put("charsets", availableCharsets.getCharsets()); if (showLatestRevInfo) { logger.debug("Fetching [" + userContext.getLatestRevisionsDisplayCount() + "] latest revisions for display"); model.put("revisions", repositoryService.getLatestRevisions(repository, userContext.getLatestRevisionsDisplayCount())); } modelAndView.addAllObjects(model); } return modelAndView; } catch (SVNAuthenticationException svnae) { return forwardToAuthenticationFailureView(svnae); } catch (Exception ex) { logger.error("Exception", ex); Throwable cause = ex.getCause(); if (cause instanceof NoRouteToHostException || cause instanceof ConnectException) { exception.reject("error.message.no-route-to-host"); } else { exception.reject(null, ex.getMessage()); } return prepareExceptionModelAndView(exception, svnCommand); } } | 50734 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50734/33ec330f69d36699fc489c44227e80f827077f42/AbstractSVNTemplateController.java/buggy/sventon/dev/java/src/de/berlios/sventon/web/ctrl/AbstractSVNTemplateController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3164,
1876,
1767,
1640,
12,
6385,
9984,
590,
16,
727,
12446,
766,
16,
1033,
1296,
16,
11794,
727,
6936,
503,
1520,
13,
288,
565,
727,
29537,
50,
2171,
2189,
5893,
82,
2189,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3164,
1876,
1767,
1640,
12,
6385,
9984,
590,
16,
727,
12446,
766,
16,
1033,
1296,
16,
11794,
727,
6936,
503,
1520,
13,
288,
565,
727,
29537,
50,
2171,
2189,
5893,
82,
2189,
273,
2... |
paths.put(key, idSet); | ids.put(key, idSet); | private void put(String subscriptionId, SubscriptionImpl subscription) { subscriptions.put(subscriptionId, subscription); DavResourceLocator key = subscription.getLocator(); Set idSet; if (paths.containsKey(key)) { idSet = (Set) paths.get(key); } else { idSet = new HashSet(); paths.put(key, idSet); } if (!idSet.contains(subscriptionId)) { idSet.add(subscriptionId); } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/4fdade8a8a0ca260371a4274ff24ee70c758a80e/SubscriptionManagerImpl.java/buggy/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/observation/SubscriptionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
1378,
12,
780,
15107,
16,
12132,
2828,
4915,
13,
288,
5411,
11912,
18,
458,
12,
25218,
16,
4915,
1769,
5411,
463,
842,
1420,
5786,
498,
273,
4915,
18,
588,
5786,
5621,
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,
540,
3238,
918,
1378,
12,
780,
15107,
16,
12132,
2828,
4915,
13,
288,
5411,
11912,
18,
458,
12,
25218,
16,
4915,
1769,
5411,
463,
842,
1420,
5786,
498,
273,
4915,
18,
588,
5786,
5621,
5411,
... |
int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue(); if (offsetType==IIndex.LINE){ match.setLocatable(new LineLocatable(Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(),0)); }else if (offsetType==IIndex.OFFSET){ int startOffset=Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(); int endOffset= startOffset + offsetLengths[i][j]; match.setLocatable(new OffsetLocatable(startOffset, endOffset)); } | match.setLocatable(getMatchLocatable(offsets[i][j],offsetLengths[i][j])); | public void feedIndexRequestor(IIndexSearchRequestor requestor, int detailLevel, int[] fileRefs, int[][] offsets, int[][] offsetLengths, IndexInput input, ICSearchScope scope) throws IOException { for (int i = 0, max = fileRefs.length; i < max; i++) { IndexedFileEntry file = input.getIndexedFile(fileRefs[i]); String path=null; if (file != null && scope.encloses(path =file.getPath())) { for (int j=0; j<offsets[i].length; j++){ BasicSearchMatch match = new BasicSearchMatch(); match.setName(new String(this.decodedSimpleName)); //Don't forget that offsets are encoded ICIndexStorageConstants //Offsets can either be LINE or OFFSET int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue(); if (offsetType==IIndex.LINE){ match.setLocatable(new LineLocatable(Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(),0)); }else if (offsetType==IIndex.OFFSET){ int startOffset=Integer.valueOf(String.valueOf(offsets[i][j]).substring(1)).intValue(); int endOffset= startOffset + offsetLengths[i][j]; match.setLocatable(new OffsetLocatable(startOffset, endOffset)); } match.setParentName(""); //$NON-NLS-1$ match.setType(ICElement.C_NAMESPACE); IFile tempFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(path)); if (tempFile != null && tempFile.exists()) match.setResource(tempFile); else { IPath tempPath = PathUtil.getWorkspaceRelativePath(file.getPath()); match.setPath(tempPath); match.setReferringElement(tempPath); } requestor.acceptSearchMatch(match); } } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/08eb1c00e5d68fec992c04778388ad6b957a62ee/NamespaceDeclarationPattern.java/clean/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/NamespaceDeclarationPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4746,
1016,
691,
280,
12,
45,
1016,
2979,
691,
280,
590,
280,
16,
509,
7664,
2355,
16,
509,
8526,
585,
9837,
16,
509,
63,
6362,
65,
8738,
16,
509,
63,
6362,
65,
1384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4746,
1016,
691,
280,
12,
45,
1016,
2979,
691,
280,
590,
280,
16,
509,
7664,
2355,
16,
509,
8526,
585,
9837,
16,
509,
63,
6362,
65,
8738,
16,
509,
63,
6362,
65,
1384,
... |
super.mousePressed(me); Editor ce = Globals.curEditor(); Selection sel = ce.getSelectionManager().findSelectionFor(this); if (sel instanceof SelectionSeqObject) ((SelectionSeqObject)sel).hideButtons(); | super.mousePressed(me); Editor ce = Globals.curEditor(); Selection sel = ce.getSelectionManager().findSelectionFor(this); if (sel instanceof SelectionSeqObject) ((SelectionSeqObject) sel).hideButtons(); | public void mousePressed(MouseEvent me) { super.mousePressed(me); Editor ce = Globals.curEditor(); Selection sel = ce.getSelectionManager().findSelectionFor(this); if (sel instanceof SelectionSeqObject) ((SelectionSeqObject)sel).hideButtons(); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigSeqObject.java/buggy/src_new/org/argouml/uml/diagram/sequence/ui/FigSeqObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7644,
24624,
12,
9186,
1133,
1791,
13,
288,
3639,
2240,
18,
11697,
24624,
12,
3501,
1769,
565,
18451,
5898,
273,
18901,
1031,
18,
1397,
6946,
5621,
565,
12977,
357,
273,
5898,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7644,
24624,
12,
9186,
1133,
1791,
13,
288,
3639,
2240,
18,
11697,
24624,
12,
3501,
1769,
565,
18451,
5898,
273,
18901,
1031,
18,
1397,
6946,
5621,
565,
12977,
357,
273,
5898,
... |
if ( part instanceof IEditorPart ) { IEditorPart editorPart = (IEditorPart)part; IEditorInput input = editorPart.getEditorInput(); | if ( part instanceof ITextEditor ) { ITextEditor textEditor = (ITextEditor)part; IEditorInput input = textEditor.getEditorInput(); | public void toggleLineBreakpoints( IWorkbenchPart part, ISelection selection ) throws CoreException { String errorMessage = null; if ( part instanceof IEditorPart ) { IEditorPart editorPart = (IEditorPart)part; IEditorInput input = editorPart.getEditorInput(); if ( input == null ) { errorMessage = ActionMessages.getString( "ToggleBreakpointAdapter.Empty_editor_1" ); //$NON-NLS-1$ } else { ITextEditor textEditor = (ITextEditor)editorPart; IDocument document = textEditor.getDocumentProvider().getDocument( input ); if ( document == null ) { errorMessage = ActionMessages.getString( "ToggleBreakpointAdapter.Missing_document_1" ); //$NON-NLS-1$ } else { IResource resource = getResource( textEditor ); if ( resource == null ) { errorMessage = ActionMessages.getString( "ToggleBreakpointAdapter.Missing_resource_1" ); //$NON-NLS-1$ } else { BreakpointLocationVerifier bv = new BreakpointLocationVerifier(); int lineNumber = bv.getValidLineBreakpointLocation( document, ((ITextSelection)selection).getStartLine() ); if ( lineNumber == -1 ) { errorMessage = ActionMessages.getString( "ToggleBreakpointAdapter.Invalid_line_1" ); //$NON-NLS-1$ } else { String sourceHandle = getSourceHandle( input ); ICLineBreakpoint breakpoint = CDIDebugModel.lineBreakpointExists( sourceHandle, resource, lineNumber ); if ( breakpoint != null ) { DebugPlugin.getDefault().getBreakpointManager().removeBreakpoint( breakpoint, true ); } else { CDIDebugModel.createLineBreakpoint( sourceHandle, resource, lineNumber, true, 0, "", //$NON-NLS-1$ true ); } return; } } } } } else if ( part instanceof DisassemblyView ) { IEditorInput input = ((DisassemblyView)part).getInput(); if ( !(input instanceof DisassemblyEditorInput) ) { errorMessage = ActionMessages.getString( "ToggleBreakpointAdapter.Empty_editor_1" ); //$NON-NLS-1$ } else { BreakpointLocationVerifier bv = new BreakpointLocationVerifier(); int lineNumber = bv.getValidAddressBreakpointLocation( null, ((ITextSelection)selection).getStartLine() ); if ( lineNumber == -1 ) { errorMessage = ActionMessages.getString( "ToggleBreakpointAdapter.Invalid_line_1" ); //$NON-NLS-1$ } else { IAddress address = ((DisassemblyEditorInput)input).getAddress( lineNumber ); if ( address == null ) { errorMessage = ActionMessages.getString( "ToggleBreakpointAdapter.Invalid_line_1" ); //$NON-NLS-1$ } else { ICLineBreakpoint breakpoint = ((DisassemblyEditorInput)input).breakpointExists( address ); if ( breakpoint != null ) { DebugPlugin.getDefault().getBreakpointManager().removeBreakpoint( breakpoint, true ); } else { IResource resource = ResourcesPlugin.getWorkspace().getRoot(); String sourceHandle = getSourceHandle( input ); CDIDebugModel.createAddressBreakpoint( sourceHandle, resource, address, true, 0, "", //$NON-NLS-1$ true ); } return; } } } } else { errorMessage = ActionMessages.getString( "RunToLineAdapter.Operation_is_not_supported_1" ); //$NON-NLS-1$ } throw new CoreException( new Status( IStatus.ERROR, CDebugUIPlugin.getUniqueIdentifier(), ICDebugUIConstants.INTERNAL_ERROR, errorMessage, null ) ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f172ffa642921cde09cb44774551020ec862943b/ToggleBreakpointAdapter.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10486,
1670,
7634,
4139,
12,
467,
2421,
22144,
1988,
1087,
16,
467,
6233,
4421,
262,
1216,
30015,
288,
202,
202,
780,
9324,
273,
446,
31,
202,
202,
430,
261,
1087,
1276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10486,
1670,
7634,
4139,
12,
467,
2421,
22144,
1988,
1087,
16,
467,
6233,
4421,
262,
1216,
30015,
288,
202,
202,
780,
9324,
273,
446,
31,
202,
202,
430,
261,
1087,
1276,
... |
/* * The execution for this node is not done until all the child nodes * are done. Use the tracker to wait for all children to complete. */ final DoneCollector doneCollector = new DoneCollector(getExecutor()) { public void run() { if (propagateError(getExecutor(), done, "Failed to generate child deltas.")) return; done.setData(rootDelta); getExecutor().execute(done); } }; for (final IVMLayoutNode childNode : childNodes) { childNode.buildDelta(event, rootDelta, doneCollector.addNoActionDone()); } | callChildNodesToBuildDelta( childNodeDeltas, rootDelta, event, new Done() { public void run() { if (isDisposed()) return; if (propagateError(getExecutor(), done, "Failed to create delta.")); done.setData(rootDelta); getExecutor().execute(done); } }); | public void createDelta(Object event, final GetDataDone<IModelDelta> done) { final VMDelta rootDelta = new VMDelta(getRootVMC().getInputObject(), getRootVMC()); final IVMLayoutNode[] childNodes = getChildNodesWithDeltas(event); if (childNodes.length == 0) { done.setData(rootDelta); getExecutor().execute(done); return; } /* * The execution for this node is not done until all the child nodes * are done. Use the tracker to wait for all children to complete. */ final DoneCollector doneCollector = new DoneCollector(getExecutor()) { public void run() { if (propagateError(getExecutor(), done, "Failed to generate child deltas.")) return; //$NON-NLS-1$ done.setData(rootDelta); getExecutor().execute(done); } }; for (final IVMLayoutNode childNode : childNodes) { childNode.buildDelta(event, rootDelta, doneCollector.addNoActionDone()); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b191075ec4d85f4cc588e7556be42d8f15e4745e/AbstractVMRootLayoutNode.java/buggy/plugins/org.eclipse.dd.dsf.ui/src/org/eclipse/dd/dsf/ui/viewmodel/AbstractVMRootLayoutNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
9242,
12,
921,
871,
16,
727,
30837,
7387,
32,
45,
1488,
9242,
34,
2731,
13,
288,
3639,
727,
8251,
9242,
1365,
9242,
273,
394,
8251,
9242,
12,
588,
2375,
7397,
39,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
9242,
12,
921,
871,
16,
727,
30837,
7387,
32,
45,
1488,
9242,
34,
2731,
13,
288,
3639,
727,
8251,
9242,
1365,
9242,
273,
394,
8251,
9242,
12,
588,
2375,
7397,
39,
7675,
... |
if (fUndo.contains(operation)) { fUndo.remove(operation); | if (undoList.contains(operation)) { undoList.remove(operation); | public void remove(IUndoableOperation operation) { if (fUndo.contains(operation)) { fUndo.remove(operation); internalRemove(operation); } else if (fRedo.contains(operation)) { fRedo.remove(operation); internalRemove(operation); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c24712ce346ce29a0831c2b0fa927c9b540a7987/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
12,
45,
31224,
429,
2988,
1674,
13,
288,
202,
202,
430,
261,
74,
31224,
18,
12298,
12,
7624,
3719,
288,
1082,
202,
74,
31224,
18,
4479,
12,
7624,
1769,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
12,
45,
31224,
429,
2988,
1674,
13,
288,
202,
202,
430,
261,
74,
31224,
18,
12298,
12,
7624,
3719,
288,
1082,
202,
74,
31224,
18,
4479,
12,
7624,
1769,
1082,
202,
... |
ExecuteStatement(statement); | executeStatement(statement); | private void executeSql(String databaseKey, String sqlScript, Map replacers) { String statement = ""; LineNumberReader reader = null; String filename = null; String line = null; /* get and parse the setup script */ try { filename = m_basePath + "setup" + File.separator + "database" + File.separator + databaseKey + File.separator + sqlScript; reader = new LineNumberReader(new FileReader(filename)); line = null; while (true) { line = reader.readLine(); if (line == null) { break; } StringTokenizer st = new StringTokenizer(line); while (st.hasMoreTokens()) { String currentToken = st.nextToken(); /* comment! Skip rest of the line */ if (currentToken.startsWith("#")) { break; } /* not to be executed */ if (currentToken.startsWith("prompt")) { break; } /* add token to query */ statement += " " + currentToken; /* query complete (terminated by ';') */ if (currentToken.endsWith(";")) { /* cut of ';' at the end */ statement = statement.substring(0, (statement.length() - 1)); /* normal statement. Execute it */ if (replacers != null) { ExecuteStatement(replaceValues(statement, replacers)); } else { ExecuteStatement(statement); } //reset statement = ""; } } statement += " \n"; } } catch (FileNotFoundException e) { if (m_errorLogging) { m_errors.addElement("Database setup SQL script not found: " + filename); m_errors.addElement(e.toString()); } } catch (SQLException e) { if (m_errorLogging) { m_errors.addElement("Error executing SQL statement: " + statement); m_errors.addElement(e.toString()); } } catch (Exception e) { if (m_errorLogging) { m_errors.addElement("Error parsing database setup SQL script in line: " + line); m_errors.addElement(e.toString()); } } finally { try { if (reader != null) { reader.close(); } } catch (Exception e) { // noop } } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/1ffe3a976759e95ac588bdcb0f090e687122056f/CmsSetupDb.java/clean/src/org/opencms/setup/CmsSetupDb.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1836,
5101,
12,
780,
2063,
653,
16,
514,
1847,
3651,
16,
1635,
6831,
1077,
414,
13,
288,
3639,
514,
3021,
273,
1408,
31,
3639,
5377,
1854,
2514,
2949,
273,
446,
31,
3639,
514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
5101,
12,
780,
2063,
653,
16,
514,
1847,
3651,
16,
1635,
6831,
1077,
414,
13,
288,
3639,
514,
3021,
273,
1408,
31,
3639,
5377,
1854,
2514,
2949,
273,
446,
31,
3639,
514... |
IDialogSettings filtersSection = mainSettings.getSection(OLD_FILTER_SECTION); if(filtersSection != null){ | IDialogSettings filtersSection = mainSettings .getSection(OLD_FILTER_SECTION); if (filtersSection != null) { | private void restoreFilters() { IDialogSettings settings = getFiltersSection(false); if (settings == null){ //Check if we have an old filter setting around IDialogSettings mainSettings = getDialogSettings(); IDialogSettings filtersSection = mainSettings.getSection(OLD_FILTER_SECTION); if(filtersSection != null){ MarkerFilter markerFilter = createFilter(MarkerMessages.MarkerFilter_defaultFilterName); markerFilter.restoreState(filtersSection); setFilters(new MarkerFilter[] {markerFilter}); } } else{ IDialogSettings[] sections = settings.getSections(); MarkerFilter[] newFilters = new MarkerFilter[sections.length]; for (int i = 0; i < sections.length; i++) { newFilters[i] = createFilter(sections[i].getName()); newFilters[i].restoreState(sections[i]); } setFilters(newFilters); } if (markerFilters.length == 0){// Make sure there is at least a default MarkerFilter filter = createFilter( MarkerMessages.MarkerFilter_defaultFilterName); filter.resetState(); setFilters(new MarkerFilter[] { filter }); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/09a4c864bb83fb62a685d497a2df9ce5451376bd/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5217,
5422,
1435,
288,
202,
202,
734,
3529,
2628,
1947,
273,
25175,
5285,
12,
5743,
1769,
202,
202,
430,
261,
4272,
422,
446,
15329,
1082,
202,
759,
1564,
309,
732,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5217,
5422,
1435,
288,
202,
202,
734,
3529,
2628,
1947,
273,
25175,
5285,
12,
5743,
1769,
202,
202,
430,
261,
4272,
422,
446,
15329,
1082,
202,
759,
1564,
309,
732,
1240,
... |
void parseABNUOWRM(ConnectionCallbackInterface connection) throws DisconnectException { | void parseABNUOWRM() throws DisconnectException { | void parseABNUOWRM(ConnectionCallbackInterface connection) throws DisconnectException { boolean svrcodReceived = false; int svrcod = CodePoint.SVRCOD_INFO; boolean rdbnamReceived = false; String rdbnam = null; parseLengthAndMatchCodePoint(CodePoint.ABNUOWRM); pushLengthOnCollectionStack(); int peekCP = peekCodePoint(); while (peekCP != Reply.END_OF_COLLECTION) { boolean foundInPass = false; if (peekCP == CodePoint.SVRCOD) { foundInPass = true; svrcodReceived = checkAndGetReceivedFlag(svrcodReceived); svrcod = parseSVRCOD(CodePoint.SVRCOD_ERROR, CodePoint.SVRCOD_ERROR); peekCP = peekCodePoint(); } if (peekCP == CodePoint.RDBNAM) { // skip the rbbnam since it doesn't tell us anything new. // there is no way to return it to the application anyway. // not having to convert this to a string is a time saver also. foundInPass = true; rdbnamReceived = checkAndGetReceivedFlag(rdbnamReceived); rdbnam = parseRDBNAM(true); peekCP = peekCodePoint(); } if (!foundInPass) { doPrmnsprmSemantics(peekCP); } } popCollectionStack(); checkRequiredObjects(svrcodReceived, rdbnamReceived); // the abnuowrm has been received, do whatever state changes are necessary netAgent_.setSvrcod(svrcod); connection.completeAbnormalUnitOfWork(); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/ad94e28dc0acce4d52718138ead8f8f56f454cf3/NetConnectionReply.java/buggy/java/client/org/apache/derby/client/net/NetConnectionReply.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1109,
2090,
50,
57,
51,
7181,
49,
1435,
1216,
23957,
503,
288,
3639,
1250,
5893,
1310,
369,
8872,
273,
629,
31,
3639,
509,
5893,
1310,
369,
273,
3356,
2148,
18,
55,
10986,
9086,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1109,
2090,
50,
57,
51,
7181,
49,
1435,
1216,
23957,
503,
288,
3639,
1250,
5893,
1310,
369,
8872,
273,
629,
31,
3639,
509,
5893,
1310,
369,
273,
3356,
2148,
18,
55,
10986,
9086,
67... |
if (disallowLocalCommitRollback_()) { | if (! allowLocalCommitRollback_()) { | public boolean getAutoCommit() throws SqlException { checkForClosedConnection(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getAutoCommit", autoCommit_); } if (disallowLocalCommitRollback_()) { // autoCommit is always false between xars.start() and xars.end() return false; } return autoCommit_; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/38083d6823d48f5b6cc5a8590edf922b06737042/Connection.java/clean/java/client/org/apache/derby/client/am/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
26707,
5580,
1435,
1216,
8855,
503,
288,
3639,
13855,
7395,
1952,
5621,
3639,
309,
261,
5629,
27799,
11167,
1526,
10756,
288,
5411,
4040,
27799,
1330,
2289,
27799,
5129,
6767,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
26707,
5580,
1435,
1216,
8855,
503,
288,
3639,
13855,
7395,
1952,
5621,
3639,
309,
261,
5629,
27799,
11167,
1526,
10756,
288,
5411,
4040,
27799,
1330,
2289,
27799,
5129,
6767,
12,... |
Messages.getString( "PublishLibraryAction.wizard.notvalidfolder" ) ); | Messages.getString( "PublishLibraryAction.wizard.notvalidfolder" ) ); | private boolean publishiLibrary() { // copy to library folder File targetFolder = new File( folderName ); if ( !targetFolder.isDirectory( ) ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "PublishLibraryAction.wizard.errorTitle" ), //$NON-NLS-1$ Messages.getString( "PublishLibraryAction.wizard.notvalidfolder" ) ); //$NON-NLS-1$ return true; } if ( !targetFolder.exists( ) ) { targetFolder.mkdirs( ); } File targetFile = new File( targetFolder, fileName ); if ( new File( filePath ).compareTo( targetFile ) == 0 ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "PublishLibraryAction.wizard.errorTitle" ), //$NON-NLS-1$ Messages.getString( "PublishLibraryAction.wizard.message" ) ); //$NON-NLS-1$ return false; } int overwrite = Window.OK; try { if ( targetFile.exists( ) ) { String[] buttons = new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }; String question = Messages.getFormattedString( "SaveAsDialog.overwriteQuestion", //$NON-NLS-1$ new Object[]{ targetFile.getAbsolutePath( ) } ); MessageDialog d = new MessageDialog(UIUtil.getDefaultShell( ), Messages.getString( "SaveAsDialog.Question" ), //$NON-NLS-1$ null, question, MessageDialog.QUESTION, buttons, 0 ); overwrite = d.open( ); } if ( overwrite == Window.OK && ( targetFile.exists( ) || ( !targetFile.exists( ) && targetFile.createNewFile( ) ) ) ) { copyFile( filePath, targetFile ); } } catch ( IOException e ) { ExceptionHandler.handle( e ); } return overwrite != 1; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4c119a1050d684d55ed1b33be4933a9564966b7c/PublishLibraryWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/PublishLibraryWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
3808,
77,
9313,
1435,
202,
95,
202,
202,
759,
1610,
358,
5313,
3009,
9506,
202,
812,
1018,
3899,
273,
394,
1387,
12,
31814,
11272,
202,
202,
430,
261,
401,
3299,
3899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3808,
77,
9313,
1435,
202,
95,
202,
202,
759,
1610,
358,
5313,
3009,
9506,
202,
812,
1018,
3899,
273,
394,
1387,
12,
31814,
11272,
202,
202,
430,
261,
401,
3299,
3899,
... |
localModel().setDistribution(new Distribution((Instances)data, localModel())); | localModel().resetDistribution(data); | private void newDistribution(Instances data) throws Exception { Instances [] localInstances; int i; localModel().setDistribution(new Distribution((Instances)data, localModel())); m_train = data; if (!m_isLeaf){ localInstances = (Instances [])localModel().split(data); for (i=0;i<m_sons.length;i++) son(i).newDistribution(localInstances[i]); } } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/d7580c34a8aa6e5e81e2045e66c2aa35debdbaaf/C45PruneableClassifierTree.java/clean/trunk/weka/classifiers/trees/j48/C45PruneableClassifierTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
394,
9003,
12,
5361,
501,
13,
1216,
1185,
288,
565,
18357,
5378,
1191,
5361,
31,
565,
509,
277,
31,
565,
1191,
1488,
7675,
542,
9003,
12,
2704,
17547,
12443,
5361,
13,
892,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
394,
9003,
12,
5361,
501,
13,
1216,
1185,
288,
565,
18357,
5378,
1191,
5361,
31,
565,
509,
277,
31,
565,
1191,
1488,
7675,
542,
9003,
12,
2704,
17547,
12443,
5361,
13,
892,
1... |
getXPath(node, xpath); if(current==null){ current = table.first = new ICUResourceWriter.ResourceString(); }else{ current.next = new ICUResourceWriter.ResourceString(); current = current.next; | if(prohibit==true && deprecatedTerritories.get(res.name)!=null){ res = null; | private ICUResourceWriter.Resource parseList(Node root, StringBuffer xpath){ ICUResourceWriter.ResourceTable table = new ICUResourceWriter.ResourceTable(); table.name=(String) keyNameMap.get(root.getNodeName()); ICUResourceWriter.Resource current = null; int savedLength = xpath.length(); // if the whole list is marked draft // then donot output it. if(isDraft(root, xpath)&& !writeDraft){ return null; } if(isAlternate(root)){ return null; } getXPath(root, xpath); int oldLength = xpath.length(); Node alias = LDMLUtilities.getNode(root,"alias", null, null); if(alias!=null){ ICUResourceWriter.Resource res = parseAliasResource(alias,xpath); res.name = table.name; return res; } for(Node node = root.getFirstChild(); node!=null; node=node.getNextSibling()){ if(node.getNodeType()!=Node.ELEMENT_NODE){ continue; } // a ceratain element of the list // is marked draft .. just dont // output that item if(isDraft(node, xpath)&& !writeDraft){ continue; } //the alt atrribute is set .. so ignore the resource if(isAlternate(node)){ continue; } getXPath(node, xpath); if(current==null){ current = table.first = new ICUResourceWriter.ResourceString(); }else{ current.next = new ICUResourceWriter.ResourceString(); current = current.next; } current.name = LDMLUtilities.getAttributeValue(node, LDMLConstants.TYPE); ((ICUResourceWriter.ResourceString)current).val = LDMLUtilities.getNodeValue(node); xpath.delete(oldLength, xpath.length()); } xpath.delete(savedLength, xpath.length()); if(table.first!=null){ return table; } return null; } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/c0724f8f81bb0a92281ae55fd3d8078ff52ea1b3/LDML2ICUConverter.java/buggy/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
28009,
1420,
2289,
18,
1420,
1109,
682,
12,
907,
1365,
16,
6674,
6748,
15329,
3639,
28009,
1420,
2289,
18,
1420,
1388,
1014,
273,
394,
28009,
1420,
2289,
18,
1420,
1388,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
28009,
1420,
2289,
18,
1420,
1109,
682,
12,
907,
1365,
16,
6674,
6748,
15329,
3639,
28009,
1420,
2289,
18,
1420,
1388,
1014,
273,
394,
28009,
1420,
2289,
18,
1420,
1388,
5621,
3639,
... |
throw new IndexError(getRuntime(), "index " + (index - getLength()) + " out of array"); | throw getRuntime().newIndexError("index " + (index - getLength()) + " out of array"); | private void store(long index, IRubyObject value) { modify(); if (index < 0) { index += getLength(); if (index < 0) { throw new IndexError(getRuntime(), "index " + (index - getLength()) + " out of array"); } } autoExpand(index + 1); list.set((int) index, value); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArray.java/buggy/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1707,
12,
5748,
770,
16,
15908,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
1615,
411,
374,
13,
288,
5411,
770,
1011,
9888,
5621,
5411,
309,
261,
1615,
411,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1707,
12,
5748,
770,
16,
15908,
10340,
921,
460,
13,
288,
3639,
5612,
5621,
3639,
309,
261,
1615,
411,
374,
13,
288,
5411,
770,
1011,
9888,
5621,
5411,
309,
261,
1615,
411,
3... |
IToken token= (IToken) fWords.get(":"); | IToken token= (IToken) fWords.get(":"); | public IToken evaluate(ICharacterScanner scanner) { int c= scanner.read(); if (fDetector.isWordStart((char) c)) { if (fColumn == UNDEFINED || (fColumn == scanner.getColumn() - 1)) { fBuffer.setLength(0); do { fBuffer.append((char) c); c= scanner.read(); } while (fDetector.isWordPart((char) c)); if(c != ':') { unreadBuffer(scanner); return fDefaultToken; } else { fBuffer.append((char) c); IToken token= (IToken) fWords.get(":"); if (token != null) return token; } return fDefaultToken; } } scanner.unread(); return Token.UNDEFINED; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/AsmCodeScanner.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/asm/AsmCodeScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
467,
1345,
5956,
12,
45,
7069,
11338,
7683,
13,
288,
9506,
202,
474,
276,
33,
7683,
18,
896,
5621,
9506,
202,
430,
261,
74,
12594,
18,
291,
3944,
1685,
12443,
3001,
13,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1345,
5956,
12,
45,
7069,
11338,
7683,
13,
288,
9506,
202,
474,
276,
33,
7683,
18,
896,
5621,
9506,
202,
430,
261,
74,
12594,
18,
291,
3944,
1685,
12443,
3001,
13,
276,
... |
public static void setProgressReporter(ProgressReporter reporter) { | public void setProgressReporter(ProgressReporter reporter) { | public static void setProgressReporter(ProgressReporter reporter) { REPORTERS.set(reporter); } | 50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/329ff64e9d7295aff108f85e9a8103f5e5f8f398/MapOutputFile.java/buggy/src/java/org/apache/nutch/mapred/MapOutputFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5491,
13289,
12,
5491,
13289,
11528,
13,
288,
565,
2438,
52,
916,
2560,
55,
18,
542,
12,
266,
7988,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5491,
13289,
12,
5491,
13289,
11528,
13,
288,
565,
2438,
52,
916,
2560,
55,
18,
542,
12,
266,
7988,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (file.endsWith(".jar")) { return false; } else { if (!file.endsWith(".rb")) { file += ".rb"; } runtime.getRuntime().loadFile(findFile(file), false); | if (!file.endsWith(".rb")) { file += ".rb"; | public boolean load(String file) { if (file.endsWith(".jar")) { // FIXME return false; } else { if (!file.endsWith(".rb")) { file += ".rb"; } runtime.getRuntime().loadFile(findFile(file), false); } return true; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/ba3690bf7000d9d0f7aa1e0a81b4fd959794da8f/LoadService.java/clean/org/jruby/internal/runtime/load/LoadService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1262,
12,
780,
585,
13,
288,
3639,
309,
261,
768,
18,
5839,
1190,
2932,
18,
11930,
6,
3719,
288,
5411,
368,
9852,
5411,
327,
629,
31,
3639,
289,
469,
288,
5411,
309,
16051,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
12,
780,
585,
13,
288,
3639,
309,
261,
768,
18,
5839,
1190,
2932,
18,
11930,
6,
3719,
288,
5411,
368,
9852,
5411,
327,
629,
31,
3639,
289,
469,
288,
5411,
309,
16051,
... |
if((!dontCompress) || alreadyCompressedCodec >= 0) { | if((!dontCompress) || (alreadyCompressedCodec >= 0)) { | static Compressed compress(Bucket sourceData, boolean dontCompress, short alreadyCompressedCodec, long sourceLength, long MAX_LENGTH_BEFORE_COMPRESSION, long MAX_COMPRESSED_DATA_LENGTH, boolean shortLength) throws KeyEncodeException, IOException { byte[] finalData = null; short compressionAlgorithm = -1; // Try to compress it - even if it fits into the block, // because compressing it improves its entropy. if(sourceData.size() > MAX_LENGTH_BEFORE_COMPRESSION) throw new KeyEncodeException("Too big"); if((!dontCompress) || alreadyCompressedCodec >= 0) { byte[] cbuf = null; if(alreadyCompressedCodec >= 0) { if(sourceData.size() > MAX_COMPRESSED_DATA_LENGTH) throw new KeyEncodeException("Too big (precompressed)"); compressionAlgorithm = alreadyCompressedCodec; cbuf = BucketTools.toByteArray(sourceData); if(sourceLength > MAX_LENGTH_BEFORE_COMPRESSION) throw new CHKEncodeException("Too big"); } else { if (sourceData.size() > NodeCHK.BLOCK_SIZE) { // Determine the best algorithm for (int i = 0; i < Compressor.countCompressAlgorithms(); i++) { Compressor comp = Compressor .getCompressionAlgorithmByDifficulty(i); ArrayBucket compressedData; try { compressedData = (ArrayBucket) comp.compress( sourceData, new ArrayBucketFactory(), NodeCHK.BLOCK_SIZE); } catch (IOException e) { throw new Error(e); } catch (CompressionOutputSizeException e) { continue; } if (compressedData.size() <= MAX_COMPRESSED_DATA_LENGTH) { compressionAlgorithm = comp .codecNumberForMetadata(); sourceLength = sourceData.size(); try { cbuf = BucketTools.toByteArray(compressedData); // FIXME provide a method in ArrayBucket } catch (IOException e) { throw new Error(e); } break; } } } } if(cbuf != null) { // Use it int compressedLength = cbuf.length; finalData = new byte[compressedLength+(shortLength?2:4)]; System.arraycopy(cbuf, 0, finalData, shortLength?2:4, compressedLength); if(!shortLength) { finalData[0] = (byte) ((sourceLength >> 24) & 0xff); finalData[1] = (byte) ((sourceLength >> 16) & 0xff); finalData[2] = (byte) ((sourceLength >> 8) & 0xff); finalData[3] = (byte) ((sourceLength) & 0xff); } else { finalData[0] = (byte) ((sourceLength >> 8) & 0xff); finalData[1] = (byte) ((sourceLength) & 0xff); } } } if(finalData == null) { if(sourceData.size() > NodeCHK.BLOCK_SIZE) { throw new CHKEncodeException("Too big"); } finalData = BucketTools.toByteArray(sourceData); } return new Compressed(finalData, compressionAlgorithm); } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Key.java/clean/src/freenet/keys/Key.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
5427,
4638,
8099,
12,
4103,
1084,
751,
16,
1250,
14046,
16552,
16,
3025,
1818,
16841,
11008,
16,
1525,
27406,
16,
1525,
4552,
67,
7096,
67,
19152,
67,
4208,
14227,
16,
1525,
4552,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
5427,
4638,
8099,
12,
4103,
1084,
751,
16,
1250,
14046,
16552,
16,
3025,
1818,
16841,
11008,
16,
1525,
27406,
16,
1525,
4552,
67,
7096,
67,
19152,
67,
4208,
14227,
16,
1525,
4552,
67... |
aload(contextLocal); | cfw.addALoad(contextLocal); | private void visitRegularCall(Node node, int type, Node child, boolean firstArgDone) { /* * Generate code for call. * * push <arity> * anewarray Ljava/lang/Object; * // "initCount" instances of code from here... * dup * push <i> * <gen code for child> * aastore * //...to here * invokestatic call */ OptFunctionNode target = (OptFunctionNode)node.getProp(Node.DIRECTCALL_PROP); Node chelsea = child; int childCount = 0; int argSkipCount = (type == Token.NEW) ? 1 : 2; while (child != null) { childCount++; child = child.getNext(); } child = chelsea; // re-start the iterator from the first child, // REMIND - too bad we couldn't just back-patch the count ? int argIndex = -argSkipCount; if (firstArgDone && (child != null)) { child = child.getNext(); argIndex++; aload(contextLocal); addByteCode(ByteCode.SWAP); } else aload(contextLocal); if (firstArgDone && (type == Token.NEW)) constructArgArray(childCount - argSkipCount); int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); boolean isSimpleCall = false; if (!firstArgDone && type != Token.NEW) { String simpleCallName = getSimpleCallName(node); if (simpleCallName != null && callType == Node.NON_SPECIALCALL) { isSimpleCall = true; push(simpleCallName); aload(variableObjectLocal); child = child.getNext().getNext(); argIndex = 0; constructArgArray(childCount - argSkipCount); } } while (child != null) { if (argIndex < 0) // not moving these arguments to the array generateCodeFromNode(child, node); else { addByteCode(ByteCode.DUP); push(argIndex); if (target != null) {/* If this has also been a directCall sequence, the Number flag will have remained set for any parameter so that the values could be copied directly into the outgoing args. Here we want to force it to be treated as not in a Number context, so we set the flag off.*/ boolean handled = false; if ((child.getType() == Token.GETVAR) && inDirectCallFunction) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar != null && lVar.isParameter()) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node); handled = true; } } if (!handled) { int childNumberFlag = child.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addDoubleConstructor(); } else generateCodeFromNode(child, node); } } else generateCodeFromNode(child, node); addByteCode(ByteCode.AASTORE); } argIndex++; if (argIndex == 0) { constructArgArray(childCount - argSkipCount); } child = child.getNext(); } String className; String methodName; String callSignature; if (callType != Node.NON_SPECIALCALL) { className = "org/mozilla/javascript/optimizer/OptRuntime"; if (type == Token.NEW) { methodName = "newObjectSpecial"; callSignature = "(Lorg/mozilla/javascript/Context;" +"Ljava/lang/Object;" +"[Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"I" // call type +")Ljava/lang/Object;"; aload(variableObjectLocal); aload(thisObjLocal); push(callType); } else { methodName = "callSpecial"; callSignature = "(Lorg/mozilla/javascript/Context;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"[Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"I" // call type +"Ljava/lang/String;I" // filename, linenumber +")Ljava/lang/Object;"; aload(variableObjectLocal); aload(thisObjLocal); push(callType); push(itsSourceFile == null ? "" : itsSourceFile); push(itsLineNumber); } } else if (isSimpleCall) { className = "org/mozilla/javascript/optimizer/OptRuntime"; methodName = "callSimple"; callSignature = "(Lorg/mozilla/javascript/Context;" +"Ljava/lang/String;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Ljava/lang/Object;"; } else { className = "org/mozilla/javascript/ScriptRuntime"; aload(variableObjectLocal); if (type == Token.NEW) { methodName = "newObject"; callSignature = "(Lorg/mozilla/javascript/Context;" +"Ljava/lang/Object;" +"[Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"; } else { methodName = "call"; callSignature = "(Lorg/mozilla/javascript/Context;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"[Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"; } } addStaticInvoke(className, methodName, callSignature); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
17974,
1477,
12,
907,
756,
16,
509,
618,
16,
21394,
2029,
1151,
16,
1250,
1122,
4117,
7387,
13,
565,
288,
3639,
1748,
540,
380,
6654,
981,
364,
745,
18,
540,
380,
540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
17974,
1477,
12,
907,
756,
16,
509,
618,
16,
21394,
2029,
1151,
16,
1250,
1122,
4117,
7387,
13,
565,
288,
3639,
1748,
540,
380,
6654,
981,
364,
745,
18,
540,
380,
540,
... |
} else if (accessibility == ProgramElementNode.Accessibility.PRIVATE) { | } else if (accessibility == IProgramElement.Accessibility.PRIVATE) { | public Icon getAccessibilitySwingIcon(ProgramElementNode.Accessibility accessibility) { if (accessibility == ProgramElementNode.Accessibility.PUBLIC) { return ACCESSIBILITY_PUBLIC; } else if (accessibility == ProgramElementNode.Accessibility.PACKAGE) { return ACCESSIBILITY_PACKAGE; } else if (accessibility == ProgramElementNode.Accessibility.PROTECTED) { return ACCESSIBILITY_PROTECTED; } else if (accessibility == ProgramElementNode.Accessibility.PRIVATE) { return ACCESSIBILITY_PRIVATE; } else if (accessibility == ProgramElementNode.Accessibility.PRIVILEGED) { return ACCESSIBILITY_PRIVILEGED; } else { return null; } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/f1deb9c11024ecebab2e0aa17a260821375c25bd/IconRegistry.java/buggy/ajde/src/org/aspectj/ajde/ui/swing/IconRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16011,
21909,
3628,
6050,
310,
5554,
12,
9459,
1046,
907,
18,
1862,
3628,
2006,
3628,
13,
288,
202,
202,
430,
261,
3860,
3628,
422,
13586,
1046,
907,
18,
1862,
3628,
18,
14939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16011,
21909,
3628,
6050,
310,
5554,
12,
9459,
1046,
907,
18,
1862,
3628,
2006,
3628,
13,
288,
202,
202,
430,
261,
3860,
3628,
422,
13586,
1046,
907,
18,
1862,
3628,
18,
14939,
... |
panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); | panelRootNo = ((Integer) this.panelInstanceCount.get(panelClassName)).intValue(); | private void doInstall(AutomatedInstallData installdata) throws Exception { // TODO: i18n System.out.println("[ Starting automated installation ]"); // walk the panels in order Iterator panelsIterator = installdata.panelsOrder.iterator(); while(panelsIterator.hasNext()) { Panel p = (Panel)panelsIterator.next(); if (!OsConstraint.oneMatchesCurrentSystem(p.osConstraints)) continue; String panelClassName = p.className; String automationHelperClassName = "com.izforge.izpack.panels."+panelClassName+"AutomationHelper"; Class automationHelperClass = null; // determine if the panel supports automated install try { automationHelperClass = Class.forName(automationHelperClassName); } catch(ClassNotFoundException e) { // this is OK - not all panels have/need automation support. continue; } // instantiate the automation logic for the panel PanelAutomation automationHelperInstance = null; if(automationHelperClass != null) { try { automationHelperInstance = (PanelAutomation)automationHelperClass.newInstance(); } catch(Exception e) { System.err.println("ERROR: no default constructor for "+automationHelperClassName+", skipping..."); continue; } } // We get the panels root xml markup Vector panelRoots = installdata.xmlData.getChildrenNamed (panelClassName); int panelRootNo = 0; if (this.panelInstanceCount.containsKey (panelClassName)) { // get number of panel instance to process panelRootNo = ((Integer)this.panelInstanceCount.get (panelClassName)).intValue (); } XMLElement panelRoot = (XMLElement)panelRoots.elementAt (panelRootNo); this.panelInstanceCount.put (panelClassName, new Integer (panelRootNo+1)); // execute the installation logic for the current panel, if it has any: if(automationHelperInstance != null) { try { automationHelperInstance.runAutomated(installdata, panelRoot); } catch(Exception e) { System.err.println ("ERROR: automated installation failed for panel " + panelClassName); e.printStackTrace (); continue; } } } System.out.println("[ Automated installation done ]"); // Bye Housekeeper.getInstance().shutDown(0); } | 46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6629f6e7b4d88c756f0670c257942fdabc2ec0f1/AutomatedInstaller.java/buggy/src/lib/com/izforge/izpack/installer/AutomatedInstaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
741,
6410,
12,
22932,
690,
6410,
751,
3799,
892,
13,
377,
1216,
1185,
225,
288,
565,
368,
2660,
30,
277,
2643,
82,
565,
2332,
18,
659,
18,
8222,
2932,
63,
24591,
18472,
690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
6410,
12,
22932,
690,
6410,
751,
3799,
892,
13,
377,
1216,
1185,
225,
288,
565,
368,
2660,
30,
277,
2643,
82,
565,
2332,
18,
659,
18,
8222,
2932,
63,
24591,
18472,
690,
... |
passDown( new Event( Event.MSG, resend_msg ) ); log.error( "TOTAL_OLD.handleResendRequest() - responded to resend request for message " + seq ); | passDown(new Event(Event.MSG, resend_msg)); log.error("TOTAL_OLD.handleResendRequest() - responded to resend request for message " + seq); | private synchronized void handleResendRequest( Message msg, long seq ) { log.error( "TOTAL_OLD.handleRequestMessage() - received resend request for message " + seq ); /* just rebroadcast for now because i can't get the source - this is bad (TODO: fix this) Object requester = msg.makeReply().getSrc(); // Address? of requester - test (debug) /* Object temp_obj = msg.getSrc(); if ( temp_obj instanceof Address ) { Address requester = (Address) temp_obj; } else { log.error( "Error: TOTAL_OLD.handleResendRequest() - could not cast source of message to an Address" ); return; } * / if ( requester == null ) { // don't know who to send this back to log.error( "TOTAL_OLD.handleResendRequest() - do not know who requested this resend request for sequence " + seq ); return; } */ Address requester = null;// log.error( "TOTAL_OLD: got here - 1" ); Message resend_msg = ack_history.getMessage( seq );// log.error( "TOTAL_OLD: got here - 2" ); if ( resend_msg == null ) { // couldn't find this message in the history log.error( "TOTAL_OLD.handleResendRequest() - could not find the message " + seq + " in the history to resend" ); return; } resend_msg.setDest( requester ); // note: do not need to add a TotalHeader because it should already be a // TOTAL_BCAST message // begin debug { Object header = resend_msg.getHeader(getName()); if ( header instanceof TotalHeader ) { //log.error( "TOTAL_OLD: resend msg GOOD (header is TotalHeader) - " + seq ); } else { log.error( "TOTAL_OLD: resend msg BAD (header is NOT a TotalHeader) - " + seq ); } } // // end debug passDown( new Event( Event.MSG, resend_msg ) ); log.error( "TOTAL_OLD.handleResendRequest() - responded to resend request for message " + seq ); } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
1640,
607,
409,
691,
12,
2350,
1234,
16,
1525,
3833,
262,
288,
202,
613,
18,
1636,
12,
315,
28624,
67,
11846,
18,
4110,
691,
1079,
1435,
300,
5079,
31972,
590,
364,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
1640,
607,
409,
691,
12,
2350,
1234,
16,
1525,
3833,
262,
288,
202,
613,
18,
1636,
12,
315,
28624,
67,
11846,
18,
4110,
691,
1079,
1435,
300,
5079,
31972,
590,
364,
883... |
} else { | } else if (tr.isDataFlavorSupported(PictureSelection.flavors[0])) { | public synchronized void drop(DropTargetDropEvent dropTargetDropEvent) { Log.log(Log.LEVEL_TRACE, MODULE, "drop - dtde"); if (!isDragOK(dropTargetDropEvent)) { Log.log(Log.LEVEL_TRACE, MODULE, "Refusing drop"); dropTargetDropEvent.rejectDrop(); return; } Log.log(Log.LEVEL_TRACE, MODULE, "Accepting drop"); try { Transferable tr = dropTargetDropEvent.getTransferable(); dropTargetDropEvent.acceptDrop( DnDConstants.ACTION_COPY_OR_MOVE | DnDConstants.ACTION_REFERENCE); //thanks John Zukowski Point dropLocation = dropTargetDropEvent.getLocation(); int listIndex = snapIndex((int) dropLocation.getY()); //Log.log(Log.LEVEL_TRACE, MODULE, "listIndex: " + listIndex + " size: " + getModel().getSize()); boolean endOfList = (listIndex >= getModel().getSize()); if (tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { List fileList = (List) tr.getTransferData(DataFlavor.javaFileListFlavor); /* recursively add contents of directories */ try { fileList = ImageUtils.expandDirectories(fileList); } catch (IOException ioe) { Log.log(Log.LEVEL_ERROR, MODULE, "i/o exception listing dirs in a drop"); Log.logStack(Log.LEVEL_ERROR, MODULE); JOptionPane.showMessageDialog( null, GRI18n.getString(MODULE, "imgError"), GRI18n.getString(MODULE, "dragError"), JOptionPane.ERROR_MESSAGE); } Log.log(Log.LEVEL_TRACE, MODULE, "Adding " + fileList.size() + " new files(s) to list at index " + listIndex); GalleryRemote._().getCore().addPictures((File[]) fileList.toArray(new File[0]), listIndex, false); } else { List pictureList = (List) tr.getTransferData(PictureSelection.flavors[0]); Log.log(Log.LEVEL_TRACE, MODULE, "Adding " + pictureList.size() + " new pictures(s) to list at index " + listIndex); GalleryRemote._().getCore().addPictures((Picture[]) pictureList.toArray(new Picture[0]), listIndex, true); } dropTargetDropEvent.getDropTargetContext().dropComplete(true); if (endOfList && getModel().getSize() > 0) { ensureIndexIsVisible(getModel().getSize() - 1); } } catch (IOException io) { Log.logException(Log.LEVEL_ERROR, MODULE, io); dropTargetDropEvent.getDropTargetContext().dropComplete(false); } catch (UnsupportedFlavorException ufe) { Log.logException(Log.LEVEL_ERROR, MODULE, ufe); dropTargetDropEvent.getDropTargetContext().dropComplete(false); } } | 5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/259bfa9094f56f9f28d3d1555843f095d826d880/DroppableList.java/clean/gallery_remote/com/gallery/GalleryRemote/DroppableList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
3640,
12,
7544,
2326,
7544,
1133,
3640,
2326,
7544,
1133,
13,
288,
202,
202,
1343,
18,
1330,
12,
1343,
18,
10398,
67,
23827,
16,
14057,
16,
315,
7285,
300,
3681,
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,
225,
202,
482,
3852,
918,
3640,
12,
7544,
2326,
7544,
1133,
3640,
2326,
7544,
1133,
13,
288,
202,
202,
1343,
18,
1330,
12,
1343,
18,
10398,
67,
23827,
16,
14057,
16,
315,
7285,
300,
3681,
32... |
if(order.getOriginalID() != null) | if (order.getOriginalID() != null) | private void cancelReject(Message message, SessionID sessionID) throws FieldNotFound { String id = message.getField(new ClOrdID()).getValue(); Order order = orderTableModel.getOrder(id); if(order == null) return; if(order.getOriginalID() != null) order = orderTableModel.getOrder(order.getOriginalID()); try { order.setMessage(message.getField(new Text()).getValue()); } catch(FieldNotFound e) {} orderTableModel.updateOrder(order, order.getID()); } | 6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/b1369a27979caf97c3e3b66213e8103f210c0b86/BanzaiApplication.java/buggy/examples/quickfix/examples/banzai/BanzaiApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3755,
21705,
12,
1079,
883,
16,
3877,
734,
13737,
13,
565,
1216,
2286,
2768,
288,
3639,
514,
612,
273,
883,
18,
588,
974,
12,
2704,
3905,
15383,
734,
1435,
2934,
24805,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3755,
21705,
12,
1079,
883,
16,
3877,
734,
13737,
13,
565,
1216,
2286,
2768,
288,
3639,
514,
612,
273,
883,
18,
588,
974,
12,
2704,
3905,
15383,
734,
1435,
2934,
24805,
5621,
... |
this.blockStream = null; this.blockReplyStream = null; this.blockStreamWorking = false; | public DFSOutputStream(UTF8 src, boolean overwrite) throws IOException { this.src = src; this.overwrite = overwrite; this.blockStream = null; this.blockReplyStream = null; this.blockStreamWorking = false; this.backupFile = newBackupFile(); this.backupStream = new BufferedOutputStream(new FileOutputStream(backupFile)); nextBlockOutputStream(true); } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/68dd484efed41e0eb2b418a5b6303af6701c6fdd/DFSClient.java/clean/src/java/org/apache/hadoop/dfs/DFSClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
23872,
4632,
12,
5159,
28,
1705,
16,
1250,
6156,
13,
1216,
1860,
288,
5411,
333,
18,
4816,
273,
1705,
31,
5411,
333,
18,
19274,
273,
6156,
31,
5411,
333,
18,
2629,
1228,
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,
540,
1071,
23872,
4632,
12,
5159,
28,
1705,
16,
1250,
6156,
13,
1216,
1860,
288,
5411,
333,
18,
4816,
273,
1705,
31,
5411,
333,
18,
19274,
273,
6156,
31,
5411,
333,
18,
2629,
1228,
273,
446,... | |
if (session != null) { config.setProperty("emailTo", getToTokens(config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"),toAddress); } } } catch (IOException ioe) { System.out.println(ioe.getMessage()); } catch (Exception ex) { System.out.println(ex.getMessage()); } } | if (session != null) { config.setProperty( "emailTo", getToTokens( config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"), toAddress); } } } catch (IOException ioe) { System.out.println(ioe.getMessage()); } catch (Exception ex) { System.out.println(ex.getMessage()); } } | private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { if (sem.send()) { JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " " + (String)toAddress.getSelectedItem(), LangTool.getString("em.titleConfirmation"), JOptionPane.INFORMATION_MESSAGE); if (session != null) { config.setProperty("emailTo", getToTokens(config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"),toAddress); } } } catch (IOException ioe) { System.out.println(ioe.getMessage()); } catch (Exception ex) { System.out.println(ex.getMessage()); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SendEMailDialog.java/clean/tn5250j/src/org/tn5250j/mailtools/SendEMailDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1366,
7193,
261,
3219,
982,
16,
2479,
3375,
671,
6111,
13,
288,
1377,
309,
261,
2938,
422,
446,
13,
540,
982,
273,
394,
804,
3219,
5621,
1377,
775,
288,
540,
309,
261,
12000,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1366,
7193,
261,
3219,
982,
16,
2479,
3375,
671,
6111,
13,
288,
1377,
309,
261,
2938,
422,
446,
13,
540,
982,
273,
394,
804,
3219,
5621,
1377,
775,
288,
540,
309,
261,
12000,... |
throw new UnsupportedOperationException("This method is not " + "supported by this ColorModel"); | throw new UnsupportedOperationException("This method is not " + "supported by this ColorModel"); | public WritableRaster createCompatibleWritableRaster(int w, int h) { throw new UnsupportedOperationException("This method is not " + "supported by this ColorModel"); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/1380f0b7d7529273757b8c60cba9603d41c15f4d/ColorModel.java/buggy/modules/awt/src/main/java/common/java/awt/image/ColorModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14505,
18637,
752,
14599,
12061,
18637,
12,
474,
341,
16,
509,
366,
13,
288,
3639,
604,
394,
13172,
2932,
2503,
707,
353,
486,
315,
397,
7734,
315,
4127,
635,
333,
5563,
1488,
8863,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14505,
18637,
752,
14599,
12061,
18637,
12,
474,
341,
16,
509,
366,
13,
288,
3639,
604,
394,
13172,
2932,
2503,
707,
353,
486,
315,
397,
7734,
315,
4127,
635,
333,
5563,
1488,
8863,... |
throw new IOException( message ); | throw new IOException(message); | public static void copyFile( final File source, final File destination ) throws IOException { //check source exists if( !source.exists() ) { final String message = "File " + source + " does not exist"; throw new IOException( message ); } //does destinations directory exist ? if( destination.getParentFile() != null && !destination.getParentFile().exists() ) { destination.getParentFile().mkdirs(); } //make sure we can write to destination if( destination.exists() && !destination.canWrite() ) { final String message = "Unable to open file " + destination + " for writing."; throw new IOException( message ); } final FileInputStream input = new FileInputStream( source ); final FileOutputStream output = new FileOutputStream( destination ); IOUtils.copy( input, output ); IOUtils.shutdownStream( input ); IOUtils.shutdownStream( output ); if( source.length() != destination.length() ) { final String message = "Failed to copy full contents from " + source + " to " + destination; throw new IOException( message ); } } | 49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/6a1bb4d53562a50bbaad48ee2c94971649e24cf5/FileUtils.java/clean/src/java/org/apache/commons/io/FileUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
26955,
12,
727,
1387,
1084,
16,
727,
1387,
2929,
262,
3639,
1216,
1860,
565,
288,
3639,
368,
1893,
1084,
1704,
3639,
309,
12,
401,
3168,
18,
1808,
1435,
262,
3639,
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,
760,
918,
26955,
12,
727,
1387,
1084,
16,
727,
1387,
2929,
262,
3639,
1216,
1860,
565,
288,
3639,
368,
1893,
1084,
1704,
3639,
309,
12,
401,
3168,
18,
1808,
1435,
262,
3639,
288,
... |
public LengthViolationException(final StringAttribute stringAttribute, final Item item, final String value, final boolean isTooShort) | public LengthViolationException(final StringAttribute stringAttribute, final Item item, final String value, final boolean isTooShort, final int border) | public LengthViolationException(final StringAttribute stringAttribute, final Item item, final String value, final boolean isTooShort) { super(stringAttribute, item, null); this.stringAttribute = stringAttribute; this.value = value; this.isTooShort = isTooShort; } | 50290 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50290/c0f10f3ce191620c3bf188c7762aee538326905d/LengthViolationException.java/buggy/runtime/src/com/exedio/cope/LengthViolationException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11311,
27052,
12,
6385,
514,
1499,
533,
1499,
16,
727,
4342,
761,
16,
727,
514,
460,
16,
727,
1250,
353,
10703,
4897,
13,
202,
95,
202,
202,
9565,
12,
1080,
1499,
16,
761,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11311,
27052,
12,
6385,
514,
1499,
533,
1499,
16,
727,
4342,
761,
16,
727,
514,
460,
16,
727,
1250,
353,
10703,
4897,
13,
202,
95,
202,
202,
9565,
12,
1080,
1499,
16,
761,
1... |
m_timeControl = new TimeControl(); m_board = new Board(m_boardSize); m_board.setListener(this); | GoGui(String program, Preferences prefs, String file, int move, boolean gtpShell, String time, boolean verbose, boolean fillPasses, boolean computerNone, boolean autoplay, String gtpFile) throws Gtp.Error, AnalyzeCommand.Error { m_prefs = prefs; m_boardSize = prefs.getBoardSize(); m_file = file; m_fillPasses = fillPasses; m_gtpFile = gtpFile; m_move = move; m_computerNoneOption = computerNone; m_autoplay = autoplay; m_verbose = verbose; Container contentPane = getContentPane(); m_toolBar = new ToolBar(this, prefs, this); contentPane.add(m_toolBar, BorderLayout.NORTH); m_timeControl = new TimeControl(); m_board = new Board(m_boardSize); m_board.setListener(this); if (program != null && ! program.equals("")) { // Must be created after board (initAnalyzeCommand uses m_board) m_gtpShell = new GtpShell(null, "GoGui", this, prefs); Gtp gtp = new Gtp(program, verbose, m_gtpShell); m_gtpShell.setProgramCommand(gtp.getProgramCommand()); m_commandThread = new CommandThread(gtp, m_gtpShell); m_commandThread.start(); } JPanel boardPanel = new JPanel(); boardPanel.setLayout(new SquareLayout()); boardPanel.setBorder(BorderFactory.createLoweredBevelBorder()); boardPanel.add(m_board); contentPane.add(boardPanel, BorderLayout.CENTER); JPanel infoPanel = new JPanel(); infoPanel.setLayout(new BoxLayout(infoPanel, BoxLayout.Y_AXIS)); infoPanel.setBorder(utils.GuiUtils.createSmallEmptyBorder()); Dimension pad = new Dimension(0, utils.GuiUtils.PAD); m_gameInfo = new GameInfo(m_board, m_timeControl); infoPanel.add(m_gameInfo); infoPanel.add(Box.createRigidArea(pad)); infoPanel.add(createStatusBar()); contentPane.add(infoPanel, BorderLayout.SOUTH); addWindowListener(this); setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); setIconImage(new GoIcon()); m_menuBars = new MenuBars(this); m_menuBars.selectBoardSizeItem(m_boardSize); setJMenuBar(m_menuBars.getNormalMenu()); if (program == null || program.equals("")) m_toolBar.disableComputerButtons(); pack(); setVisible(true); ++m_instanceCount; if (m_gtpShell != null) DialogUtils.center(m_gtpShell, this); if (gtpShell && m_gtpShell != null) { m_gtpShell.toTop(); } try { if (time != null) m_timeControl.setTime(time); } catch (TimeControl.Error e) { showWarning(e.getMessage()); } Runnable callback = new Runnable() { public void run() { initialize(); } }; SwingUtilities.invokeLater(callback); } | 48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/6c6873b13243136d4869c86bd8328c322c2fe36f/GoGui.java/buggy/src/gui/GoGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4220,
18070,
12,
780,
5402,
16,
28310,
15503,
16,
514,
585,
16,
509,
3635,
16,
1850,
1250,
314,
6834,
13220,
16,
514,
813,
16,
1250,
3988,
16,
1250,
3636,
6433,
281,
16,
1850,
1250,
265... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4220,
18070,
12,
780,
5402,
16,
28310,
15503,
16,
514,
585,
16,
509,
3635,
16,
1850,
1250,
314,
6834,
13220,
16,
514,
813,
16,
1250,
3988,
16,
1250,
3636,
6433,
281,
16,
1850,
1250,
265... | |
reportGenericSchemaError("ComplexType " + typeName + ": " + | reportGenericSchemaError("ComplexType " + typeName + ": " + | private void mergeAttributes(XSAttributeGroupDecl fromAttrGrp, XSAttributeGroupDecl toAttrGrp, String typeName, boolean extension) throws ComplexTypeRecoverableError { XSAttributeUse[] attrUseS = fromAttrGrp.getAttributeUses(); XSAttributeUse existingAttrUse, duplicateAttrUse = null; for (int i=0; i<attrUseS.length; i++) { existingAttrUse = toAttrGrp.getAttributeUse(attrUseS[i].fAttrDecl.fTargetNamespace, attrUseS[i].fAttrDecl.fName); if (existingAttrUse == null) { toAttrGrp.addAttributeUse(attrUseS[i]); } else { if (extension) { //REVISIT - should create a msg in properties file reportGenericSchemaError("ComplexType " + typeName + ": " + "Duplicate attribute use " + existingAttrUse.fAttrDecl.fName ); throw new ComplexTypeRecoverableError(); } } } // For extension, the wildcard must be formed by doing a union of the wildcards if (extension) { if (toAttrGrp.fAttributeWC==null) { toAttrGrp.fAttributeWC = fromAttrGrp.fAttributeWC; } else { toAttrGrp.fAttributeWC.performUnionWith(fromAttrGrp.fAttributeWC); } } } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/7d23b0f822620b832b611e0946e73bb880886a98/XSDComplexTypeTraverser.java/buggy/src/org/apache/xerces/impl/v2/XSDComplexTypeTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2691,
2498,
12,
60,
55,
1499,
1114,
3456,
628,
3843,
43,
13832,
16,
21394,
1139,
55,
1499,
1114,
3456,
358,
3843,
43,
13832,
16,
4766,
514,
8173,
16,
4766,
1250,
2710,
13,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
2498,
12,
60,
55,
1499,
1114,
3456,
628,
3843,
43,
13832,
16,
21394,
1139,
55,
1499,
1114,
3456,
358,
3843,
43,
13832,
16,
4766,
514,
8173,
16,
4766,
1250,
2710,
13,
47... |
if ( resource != null && resource.getProject( ) != null | if ( resource != null && resource.getProject( ) != null | public static IProject getDefaultProject( ) { IWorkbenchWindow benchWindow = PlatformUI.getWorkbench( ) .getActiveWorkbenchWindow( ); IWorkbenchPart part = benchWindow.getPartService( ).getActivePart( ); Object selection = null; if ( part instanceof IEditorPart ) { selection = ( (IEditorPart) part ).getEditorInput( ); } else { ISelection sel = benchWindow.getSelectionService( ).getSelection( ); if ( ( sel != null ) && ( sel instanceof IStructuredSelection ) ) { selection = ( (IStructuredSelection) sel ).getFirstElement( ); } } if ( selection instanceof IAdaptable ) { IResource resource = (IResource) ( (IAdaptable) selection ) .getAdapter( IResource.class ); if ( resource != null && resource.getProject( ) != null && resource.getProject( ).isAccessible( ) ) { return resource.getProject( ); } } IProject[] pjs = ResourcesPlugin.getWorkspace( ).getRoot( ) .getProjects( ); for ( int i = 0; i < pjs.length; i++ ) { if ( pjs[i].isAccessible( ) ) { return pjs[i]; } } return null; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c01c8a33ec213bfa042060f4786e95042c1d530d/UIUtil.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
4109,
4829,
4109,
12,
262,
202,
95,
202,
202,
45,
2421,
22144,
3829,
22499,
3829,
273,
11810,
5370,
18,
588,
2421,
22144,
12,
262,
9506,
202,
18,
588,
3896,
2421,
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,
225,
202,
482,
760,
467,
4109,
4829,
4109,
12,
262,
202,
95,
202,
202,
45,
2421,
22144,
3829,
22499,
3829,
273,
11810,
5370,
18,
588,
2421,
22144,
12,
262,
9506,
202,
18,
588,
3896,
2421,
22... |
public SoarIdentifierVertex getTopstate() { return (SoarIdentifierVertex)getProperty("TOPSTATE"); } | public SoarIdentifierVertex getTopstate() { return (SoarIdentifierVertex)getProperty("TOPSTATE"); } | public SoarIdentifierVertex getTopstate() { return (SoarIdentifierVertex)getProperty("TOPSTATE"); } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/d9311230f82f4404a6caf7a2cb902c26b0b86646/SoarWorkingMemoryModel.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/SoarWorkingMemoryModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6155,
297,
3004,
6475,
13729,
2019,
1435,
288,
202,
202,
2463,
261,
10225,
297,
3004,
6475,
13,
588,
1396,
2932,
10462,
7998,
8863,
202,
97,
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,
0,
0,
0,
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,
6155,
297,
3004,
6475,
13729,
2019,
1435,
288,
202,
202,
2463,
261,
10225,
297,
3004,
6475,
13,
588,
1396,
2932,
10462,
7998,
8863,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
case TypePackage.STOCK_SERIES__LABEL : setLabel( (Label) null ); | case TypePackage.STOCK_SERIES__LABEL: setLabel((Label)null); | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.STOCK_SERIES__VISIBLE : unsetVisible( ); return; case TypePackage.STOCK_SERIES__LABEL : setLabel( (Label) null ); return; case TypePackage.STOCK_SERIES__DATA_DEFINITION : getDataDefinition( ).clear( ); return; case TypePackage.STOCK_SERIES__SERIES_IDENTIFIER : setSeriesIdentifier( SERIES_IDENTIFIER_EDEFAULT ); return; case TypePackage.STOCK_SERIES__DATA_POINT : setDataPoint( (DataPoint) null ); return; case TypePackage.STOCK_SERIES__DATA_SET : setDataSet( (DataSet) null ); return; case TypePackage.STOCK_SERIES__LABEL_POSITION : unsetLabelPosition( ); return; case TypePackage.STOCK_SERIES__STACKED : unsetStacked( ); return; case TypePackage.STOCK_SERIES__TRIGGERS : getTriggers( ).clear( ); return; case TypePackage.STOCK_SERIES__TRANSLUCENT : unsetTranslucent( ); return; case TypePackage.STOCK_SERIES__FILL : setFill( (Fill) null ); return; case TypePackage.STOCK_SERIES__LINE_ATTRIBUTES : setLineAttributes( (LineAttributes) null ); return; } eDynamicUnset( eFeature ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdab78403751f288b76844a99f50b999c34fb491/StockSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/StockSeriesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
226... |
public String toString() { return String.valueOf(xs); } | public String toString() { return String.valueOf(value); } | public String toString() { return String.valueOf(xs); } | 49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/clean/sources/scala/runtime/RunTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
327,
514,
18,
1132,
951,
12,
13713,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
327,
514,
18,
1132,
951,
12,
13713,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
protected CommandResult executeAsCompositeCommand(String actionName, List commands) { if (true == bIsCommandInProgress) return null; bIsCommandInProgress = true; CompositeCommand command = new CompositeCommand(actionName, commands); IOperationHistory history = OperationHistoryFactory.getOperationHistory(); try { IStatus status = history.execute(command, new NullProgressMonitor(), null); if (status.getCode() == DiagramPropertiesStatusCodes.CANCELLED) { refresh(); } } catch (ExecutionException e) { Trace.catching(DiagramPropertiesPlugin.getDefault(), DiagramPropertiesDebugOptions.EXCEPTIONS_CATCHING, getClass(), "executeAsCompositeCommand", e); //$NON-NLS-1$ Log.error(DiagramPropertiesPlugin.getDefault(), DiagramPropertiesStatusCodes.IGNORED_EXCEPTION_WARNING, e .getLocalizedMessage(), e); } bIsCommandInProgress = false; return command.getCommandResult(); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/b4c938d5d97221f8736d44de85b5ab8ff289c7cc/AbstractModelerPropertySection.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.properties/src/org/eclipse/gmf/runtime/diagram/ui/properties/sections/AbstractModelerPropertySection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3498,
1253,
1836,
1463,
9400,
2189,
12,
780,
15451,
16,
1082,
202,
682,
4364,
13,
288,
9506,
202,
430,
261,
3767,
422,
24236,
2189,
13434,
13,
1082,
202,
2463,
446,
31,
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,
1117,
3498,
1253,
1836,
1463,
9400,
2189,
12,
780,
15451,
16,
1082,
202,
682,
4364,
13,
288,
9506,
202,
430,
261,
3767,
422,
24236,
2189,
13434,
13,
1082,
202,
2463,
446,
31,
202,
... | ||
Map state = new HashMap(10); if (currentPage != null) { state.put("oldPage", ControlEnableState.disable(oldPage.getControl())); } | ControlEnableState state = ControlEnableState.disable(oldPage.getControl()); | private void updateForPage(IWizardPage page) { // ensure this page belongs to the current wizard if (wizard != page.getWizard()) { setWizard(page.getWizard()); } // ensure that page control has been created // (this allows lazy page control creation) if (page.getControl() == null) { page.createControl(pageContainer); // the page is responsible for ensuring the created control is accessable // via getControl. Assert.isNotNull(page.getControl()); // ensure the dialog is large enough for this page updateSize(page); } IWizardPage oldPage = currentPage; currentPage = page; // Disable state of oldPage in case setVisible code has a runnable // which causes a delay in showing the currentPage Map state = new HashMap(10); if (currentPage != null) { state.put("oldPage", ControlEnableState.disable(oldPage.getControl())); //$NON-NLS-1$ } // make the new page visible currentPage.setVisible(true); if (oldPage != null) { oldPage.setVisible(false); } // Now that it is not visible, restore the original state of oldPage Object pageValue = state.get("oldPage"); //$NON-NLS-1$ if (pageValue != null) { ((ControlEnableState) pageValue).restore(); } // update the dialog controls update(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/dd3ae4ebb3c49d826d9780a47973b564e285374b/WizardDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
1290,
1964,
12,
45,
27130,
1964,
1363,
13,
288,
3639,
368,
3387,
333,
1363,
11081,
358,
326,
783,
24204,
3639,
309,
261,
31837,
480,
1363,
18,
588,
27130,
10756,
288,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
1290,
1964,
12,
45,
27130,
1964,
1363,
13,
288,
3639,
368,
3387,
333,
1363,
11081,
358,
326,
783,
24204,
3639,
309,
261,
31837,
480,
1363,
18,
588,
27130,
10756,
288,
108... |
1, 1, 0, 0, 0 | 1, 1, 0, 0, 0,0 | public void testRefreshBorderData( ) { // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: none, 0px, black, x=0, y=0; TableBorderCollisionArbiter.refreshBorderData( data, 0, 0, 0, 0, 0 ); assertEquals( data[0], 1 ); assertEquals( data[1], 1 ); assertEquals( data[2], 0 ); assertEquals( data[3], 0 ); assertEquals( data[4], 0 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: none, 3px, black, x=0, y=0; TableBorderCollisionArbiter.refreshBorderData( data, 0, 3, 0, 0, 0 ); assertEquals( data[0], 1 ); assertEquals( data[1], 1 ); assertEquals( data[2], 0 ); assertEquals( data[3], 0 ); assertEquals( data[4], 0 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: solid, 1px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 1, 1, 255, 1, 1 ); assertEquals( data[0], 1 ); assertEquals( data[1], 1 ); assertEquals( data[2], 0 ); assertEquals( data[3], 0 ); assertEquals( data[4], 0 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: solid, 3px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 1, 3, 255, 1, 1 ); assertEquals( data[0], 1 ); assertEquals( data[1], 3 ); assertEquals( data[2], 255 ); assertEquals( data[3], 1 ); assertEquals( data[4], 1 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: double, 1px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, -2, 1, 255, 1, 1 ); assertEquals( data[0], -2 ); assertEquals( data[1], 1 ); assertEquals( data[2], 255 ); assertEquals( data[3], 1 ); assertEquals( data[4], 1 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: double, 4px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, -2, 4, 255, 1, 1 ); assertEquals( data[0], -2 ); assertEquals( data[1], 4 ); assertEquals( data[2], 255 ); assertEquals( data[3], 1 ); assertEquals( data[4], 1 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: dashed, 1px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 2, 1, 255, 1, 1 ); assertEquals( data[0], 1 ); assertEquals( data[1], 1 ); assertEquals( data[2], 0 ); assertEquals( data[3], 0 ); assertEquals( data[4], 0 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: dashed, 2px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 2, 2, 255, 1, 1 ); assertEquals( data[0], 2 ); assertEquals( data[1], 2 ); assertEquals( data[2], 255 ); assertEquals( data[3], 1 ); assertEquals( data[4], 1 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: dotted, 1px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 3, 1, 255, 1, 1 ); assertEquals( data[0], 1 ); assertEquals( data[1], 1 ); assertEquals( data[2], 0 ); assertEquals( data[3], 0 ); assertEquals( data[4], 0 ); // Source: solid, 1px, black, x=0, y=0. data = new int[]{ 1, 1, 0, 0, 0 }; // New: dotted, 2px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 3, 2, 255, 1, 1 ); assertEquals( data[0], 3 ); assertEquals( data[1], 2 ); assertEquals( data[2], 255 ); assertEquals( data[3], 1 ); assertEquals( data[4], 1 ); // Source: none, 0px, black, x=0, y=0. data = new int[]{ 0, 0, 0, 0, 0 }; // New: dotted, 2px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 3, 2, 255, 1, 1 ); assertEquals( data[0], 3 ); assertEquals( data[1], 2 ); assertEquals( data[2], 255 ); assertEquals( data[3], 1 ); assertEquals( data[4], 1 ); // Source: none, 6px, black, x=0, y=0. data = new int[]{ 0, 6, 0, 0, 0 }; // New: dotted, 2px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 3, 2, 255, 1, 1 ); assertEquals( data[0], 3 ); assertEquals( data[1], 2 ); assertEquals( data[2], 255 ); assertEquals( data[3], 1 ); assertEquals( data[4], 1 ); // Source: none, 0px, black, x=0, y=0. data = new int[]{ 0, 0, 0, 0, 0 }; // New: none, 2px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 0, 2, 255, 1, 1 ); assertEquals( data[0], 0 ); assertEquals( data[1], 1 ); assertEquals( data[2], 0 ); assertEquals( data[3], 0 ); assertEquals( data[4], 0 ); // Source: none, 0px, black, x=0, y=0. data = new int[]{ 0, 0, 0, 0, 0 }; // New: none, 0px, blue, x=1, y=1; TableBorderCollisionArbiter.refreshBorderData( data, 0, 0, 255, 1, 1 ); assertEquals( data[0], 0 ); assertEquals( data[1], 1 ); assertEquals( data[2], 0 ); assertEquals( data[3], 0 ); assertEquals( data[4], 0 ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/1fbc3dcf792d91a6e413f6c639e61d893fac6983/TableBorderCollisionArbiterTest.java/buggy/UI/org.eclipse.birt.report.designer.tests/test/org/eclipse/birt/report/designer/util/TableBorderCollisionArbiterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8323,
8107,
751,
12,
262,
202,
95,
202,
202,
759,
4998,
30,
18035,
16,
404,
4430,
16,
7721,
16,
619,
33,
20,
16,
677,
33,
20,
18,
202,
202,
892,
273,
394,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8323,
8107,
751,
12,
262,
202,
95,
202,
202,
759,
4998,
30,
18035,
16,
404,
4430,
16,
7721,
16,
619,
33,
20,
16,
677,
33,
20,
18,
202,
202,
892,
273,
394,
509,
... |
if (reg == null) reg = PlatformUI.getWorkbench().getPerspectiveRegistry(); | reg = window.getWorkbench().getPerspectiveRegistry(); | public PerspectiveMenu(IWorkbenchWindow window, String id) { super(id); this.window = window; if (reg == null) reg = PlatformUI.getWorkbench().getPerspectiveRegistry(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0b575d3fd8a606ede9fefedd40c7d4e72d4f2a84/PerspectiveMenu.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/PerspectiveMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
414,
16772,
4599,
12,
45,
2421,
22144,
3829,
2742,
16,
514,
612,
13,
288,
3639,
2240,
12,
350,
1769,
3639,
333,
18,
5668,
273,
2742,
31,
3639,
309,
261,
1574,
422,
446,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
414,
16772,
4599,
12,
45,
2421,
22144,
3829,
2742,
16,
514,
612,
13,
288,
3639,
2240,
12,
350,
1769,
3639,
333,
18,
5668,
273,
2742,
31,
3639,
309,
261,
1574,
422,
446,
13,
... |
Iterator itr = xme.getErrors().iterator(); XmlError eacherr = (XmlError) itr.next(); System.out.println("Err:" + eacherr.getMessage() + "," + eacherr.getErrorCode()); assertNotNull(eacherr.getErrorCode()); assertEquals(XmlErrorCodes.COMPLEX_TYPE_EXTENSION$FINAL, eacherr.getErrorCode()); | assertEquals(2, errors.size()); | public void testFinalRestrExt() { String inputXsd = " <xsd:schema xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n" + " <xsd:complexType name=\"BaseProductTypeFinalAll\" final=\"restriction extension\">\n" + " <xsd:sequence>\n" + " <xsd:element name=\"number\" type=\"xsd:integer\" />\n" + " <xsd:element name=\"name\" type=\"xsd:string\" minOccurs=\"0\" />\n" + " </xsd:sequence>\n" + " </xsd:complexType>\n" + "\n" + " <xsd:complexType name=\"ProductTypeExtension\">\n" + " <xsd:complexContent>\n" + " <xsd:extension base=\"BaseProductTypeFinalAll\">\n" + " <xsd:sequence>\n" + " <xsd:element name=\"subcategory\" type=\"xsd:string\"/>\n" + " </xsd:sequence>\n" + " </xsd:extension>\n" + " </xsd:complexContent>\n" + " </xsd:complexType> \n" + "\n" + " <xsd:complexType name=\"ProductTypeRestriction\">\n" + " <xsd:complexContent>\n" + " <xsd:restriction base=\"BaseProductTypeFinalAll\">\n" + " <xsd:sequence>\n" + " <xsd:element name=\"number\" type=\"xsd:integer\"/>\n" + " </xsd:sequence>\n" + " </xsd:restriction>\n" + " </xsd:complexContent>\n" + " </xsd:complexType> \n" + "\n" + " </xsd:schema>"; try { XmlObject xobj = XmlObject.Factory.parse(inputXsd); XmlObject[] compInput = new XmlObject[]{xobj}; XmlBeans.compileXmlBeans(null, null, compInput, null, XmlBeans.getBuiltinTypeSystem(), null, null); } catch (XmlException xme) { assertEquals(2, xme.getErrors().size()); Iterator itr = xme.getErrors().iterator(); XmlError eacherr = (XmlError) itr.next(); System.out.println("Err:" + eacherr.getMessage() + "," + eacherr.getErrorCode()); assertNotNull(eacherr.getErrorCode()); assertEquals(XmlErrorCodes.COMPLEX_TYPE_EXTENSION$FINAL, eacherr.getErrorCode()); eacherr = (XmlError) itr.next(); System.out.println("Err:" + eacherr.getMessage()); assertNotNull(eacherr.getErrorCode()); assertEquals(XmlErrorCodes.COMPLEX_TYPE_RESTRICTION$FINAL, eacherr.getErrorCode()); } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/a6ca321dfee389e004f4284f4c6d23840b50d277/ComplexContentExtensionTest.java/buggy/test/src/scomp/derivation/extension/detailed/ComplexContentExtensionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7951,
607,
313,
2482,
1435,
288,
3639,
514,
810,
60,
6427,
273,
315,
565,
411,
19144,
30,
4821,
12302,
30,
19144,
5189,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
6976... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7951,
607,
313,
2482,
1435,
288,
3639,
514,
810,
60,
6427,
273,
315,
565,
411,
19144,
30,
4821,
12302,
30,
19144,
5189,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
6976... |
for (int i = 0; i < fields.length; i++) { String typeName = pg_stream.ReceiveString(connection.getEncoding()); int typeOid = pg_stream.ReceiveIntegerR(4); int typeLength = pg_stream.ReceiveIntegerR(2); int typeModifier = pg_stream.ReceiveIntegerR(4); fields[i] = new Field(connection, typeName, typeOid, typeLength, typeModifier); } | for (int i = 0; i < fields.length; i++) { String typeName = pg_stream.ReceiveString(connection.getEncoding()); int typeOid = pg_stream.ReceiveIntegerR(4); int typeLength = pg_stream.ReceiveIntegerR(2); int typeModifier = pg_stream.ReceiveIntegerR(4); fields[i] = new Field(connection, typeName, typeOid, typeLength, typeModifier); } | private void receiveFields() throws SQLException { if (fields != null) throw new PSQLException("postgresql.con.multres"); int size = pg_stream.ReceiveIntegerR(2); fields = new Field[size]; for (int i = 0; i < fields.length; i++) { String typeName = pg_stream.ReceiveString(connection.getEncoding()); int typeOid = pg_stream.ReceiveIntegerR(4); int typeLength = pg_stream.ReceiveIntegerR(2); int typeModifier = pg_stream.ReceiveIntegerR(4); fields[i] = new Field(connection, typeName, typeOid, typeLength, typeModifier); } } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/839b9bc0117946afd62ee385a4c8a36c01b3053b/QueryExecutor.java/clean/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6798,
2314,
1435,
1216,
6483,
288,
202,
430,
261,
2821,
480,
446,
13,
202,
565,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
5421,
455,
8863,
202,
474,
963,
273,
718... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6798,
2314,
1435,
1216,
6483,
288,
202,
430,
261,
2821,
480,
446,
13,
202,
565,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
5421,
455,
8863,
202,
474,
963,
273,
718... |
asm.emitLIntoffset (sro0, sri0, fieldOffset); | asm.emitLIntOffset (sro0, sri0, fieldOffset); | protected final void emit_resolved_getfield(VM_FieldReference fieldRef) { if (unreachableBytecode) return; byte javaStackType = VM_BuildBB.getJavaStackType(fieldRef.getFieldContentsType()); Offset fieldOffset = fieldRef.peekResolvedField().getOffset(); assignRegisters(1, javaStackType); switch (javaStackType) { case FLOAT_TYPE: asm.emitLFS (sro0, fieldOffset, sri0); break; case DOUBLE_TYPE: asm.emitLFD (sro0, fieldOffset, sri0); break; case LONG_TYPE: asm.emitLIntoffset(sro0+1, sri0, fieldOffset.add(4)); asm.emitLIntoffset(sro0, sri0, fieldOffset); break; default: asm.emitLIntoffset (sro0, sri0, fieldOffset); break; } cleanupRegisters(); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/166979949c0d3f29af1ee0c37758a68ff618ab74/VM_QuickCompiler.java/buggy/rvm/src/vm/arch/powerPC/compilers/quick/VM_QuickCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
11792,
67,
588,
1518,
12,
7397,
67,
974,
2404,
652,
1957,
13,
288,
565,
309,
261,
318,
17246,
858,
16651,
13,
327,
31,
565,
1160,
2252,
2624,
559,
273,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
11792,
67,
588,
1518,
12,
7397,
67,
974,
2404,
652,
1957,
13,
288,
565,
309,
261,
318,
17246,
858,
16651,
13,
327,
31,
565,
1160,
2252,
2624,
559,
273,
225,
... |
WorkbenchPlugin.log(message, status); | WorkbenchPlugin.log(status); | private static final void readHandlersFromHandlersExtensionPoint( final IConfigurationElement[] configurationElements, final int configurationElementCount, final IHandlerService handlerService) { /* * If necessary, this list of status items will be constructed. It will * only contains instances of <code>IStatus</code>. */ List warningsToLog = null; for (int i = 0; i < configurationElementCount; i++) { final IConfigurationElement configurationElement = configurationElements[i]; // Read out the command identifier. final String commandId = configurationElement .getAttribute(ATTRIBUTE_COMMAND_ID); if ((commandId == null) || (commandId.length() == 0)) { // The id should never be null. This is invalid. final String message = "Handlers need a command id: plug-in='" //$NON-NLS-1$ + configurationElement.getNamespace() + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); continue; } // Check to see if we have a handler class. if ((configurationElement.getAttribute(ATTRIBUTE_CLASS) == null) && (configurationElement.getChildren(ELEMENT_CLASS).length == 0)) { // The id should never be null. This is invalid. final String message = "Handlers need a class: plug-in='" //$NON-NLS-1$ + configurationElement.getNamespace() + "', commandId=" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); continue; } // Check to see if we have an activeWhen expression. final IConfigurationElement[] activeWhenElements = configurationElement .getChildren(ELEMENT_ACTIVE_WHEN); Expression activeWhenExpression = null; if (activeWhenElements.length > 0) { // Check if we have too many active when elements. if (activeWhenElements.length > 1) { // There should only be one activeWhen element final String message = "Handlers should only have one activeWhen element: plug-in='" //$NON-NLS-1$ + configurationElement.getNamespace() + "', commandId=" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); continue; } // Convert the activeWhen element into an expression. final ElementHandler elementHandler = ElementHandler .getDefault(); final ExpressionConverter converter = ExpressionConverter .getDefault(); try { activeWhenExpression = elementHandler.create(converter, activeWhenElements[0]); } catch (final CoreException e) { // There activeWhen expression could not be created. final String message = "Problem creating activeWhen element: plug-in='" //$NON-NLS-1$ + configurationElement.getNamespace() + "', commandId=" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); } } // Check to see if we have an enabledWhen expression. final IConfigurationElement[] enabledWhenElements = configurationElement .getChildren(ELEMENT_ENABLED_WHEN); Expression enabledWhenExpression = null; if (enabledWhenElements.length > 0) { // Check if we have too many enabled when elements. if (enabledWhenElements.length > 1) { // There should only be one enabledWhen element final String message = "Handlers should only have one enabledWhen element: plug-in='" //$NON-NLS-1$ + configurationElement.getNamespace() + "', commandId=" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); continue; } // Convert the enabledWhen element into an expression. final ElementHandler elementHandler = ElementHandler .getDefault(); final ExpressionConverter converter = ExpressionConverter .getDefault(); try { enabledWhenExpression = elementHandler.create(converter, enabledWhenElements[0]); } catch (final CoreException e) { // There enabledWhen expression could not be created. final String message = "Problem creating enabledWhen element: plug-in='" //$NON-NLS-1$ + configurationElement.getNamespace() + "', commandId=" //$NON-NLS-1$ + commandId + "'."; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, message, null); if (warningsToLog == null) { warningsToLog = new ArrayList(); } warningsToLog.add(status); } } if (activeWhenExpression != null) { handlerService .activateHandler(commandId, new HandlerProxy( configurationElement, ATTRIBUTE_CLASS, enabledWhenExpression, handlerService), activeWhenExpression, ISources.ACTIVE_CONTEXT | ISources.ACTIVE_CURRENT_SELECTION | ISources.ACTIVE_EDITOR | ISources.ACTIVE_PART); } else { handlerService.activateHandler(commandId, new HandlerProxy( configurationElement, ATTRIBUTE_CLASS, enabledWhenExpression, handlerService)); } } // If there were any warnings, then log them now. if (warningsToLog != null) { final String message = "Warnings while parsing the handlers from the 'org.eclipse.ui.handlers' extension point."; //$NON-NLS-1$ final IStatus status = new MultiStatus( WorkbenchPlugin.PI_WORKBENCH, 0, (IStatus[]) warningsToLog .toArray(new IStatus[warningsToLog.size()]), message, null); WorkbenchPlugin.log(message, status); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/76138394b5dcce2989ac90e3a09be877d32daa66/HandlerPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/HandlerPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
918,
855,
6919,
1265,
6919,
3625,
2148,
12,
1082,
202,
6385,
467,
1750,
1046,
8526,
1664,
3471,
16,
1082,
202,
6385,
509,
1664,
1046,
1380,
16,
1082,
202,
6385,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
918,
855,
6919,
1265,
6919,
3625,
2148,
12,
1082,
202,
6385,
467,
1750,
1046,
8526,
1664,
3471,
16,
1082,
202,
6385,
509,
1664,
1046,
1380,
16,
1082,
202,
6385,
467,
... |
("Unexpected IllegalAccessException", e); | ("Unexpected IllegalAccessException", e); | protected static ClassLoader getContextClassLoader() throws LogConfigurationException { ClassLoader classLoader = null; try { // Are we running on a JDK 1.2 or later system? Method method = Thread.class.getMethod("getContextClassLoader", null); // Get the thread context class loader (if there is one) try { classLoader = (ClassLoader)method.invoke(Thread.currentThread(), null); } catch (IllegalAccessException e) { throw new LogConfigurationException ("Unexpected IllegalAccessException", e); } catch (InvocationTargetException e) { /** * InvocationTargetException is thrown by 'invoke' when * the method being invoked (getContextClassLoader) throws * an exception. * * getContextClassLoader() throws SecurityException when * the context class loader isn't an ancestor of the * calling class's class loader, or if security * permissions are restricted. * * In the first case (not related), we want to ignore and * keep going. We cannot help but also ignore the second * with the logic below, but other calls elsewhere (to * obtain a class loader) will trigger this exception where * we can make a distinction. */ if (e.getTargetException() instanceof SecurityException) { ; // ignore } else { // Capture 'e.getTargetException()' exception for details // alternate: log 'e.getTargetException()', and pass back 'e'. throw new LogConfigurationException ("Unexpected InvocationTargetException", e.getTargetException()); } } } catch (NoSuchMethodException e) { // Assume we are running on JDK 1.1 classLoader = LogFactory.class.getClassLoader(); } // Return the selected class loader return classLoader; } | 4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/62d71000b6d84642b07f67c825f685d42190715c/LogFactory.java/buggy/src/java/org/logicalcobwebs/logging/LogFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
9403,
23384,
1435,
3639,
1216,
1827,
10737,
565,
288,
3639,
9403,
11138,
273,
446,
31,
3639,
775,
288,
5411,
368,
12520,
732,
3549,
603,
279,
24387,
404,
18,
22,
578,
5137,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
9403,
23384,
1435,
3639,
1216,
1827,
10737,
565,
288,
3639,
9403,
11138,
273,
446,
31,
3639,
775,
288,
5411,
368,
12520,
732,
3549,
603,
279,
24387,
404,
18,
22,
578,
5137,
261... |
if (clazz.getName().equals(type)) | if (clazz.getName().equals(type)) { | private static final boolean isSubtype(final Class clazz, final String type) { if (clazz.getName().equals(type)) return true; final Class superClass = clazz.getSuperclass(); if (superClass != null && isSubtype(superClass, type)) return true; final Class[] interfaces = clazz.getInterfaces(); for (int i = 0; i < interfaces.length; i++) { if (isSubtype(interfaces[i], type)) return true; } return false; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/89b4a849cd34ceb44f4bc6468518cca6c64845a5/ParameterType.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/ParameterType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
1250,
16523,
723,
12,
6385,
1659,
4003,
16,
727,
514,
618,
13,
288,
202,
202,
430,
261,
830,
3638,
18,
17994,
7675,
14963,
12,
723,
3719,
1082,
202,
2463,
638,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
1250,
16523,
723,
12,
6385,
1659,
4003,
16,
727,
514,
618,
13,
288,
202,
202,
430,
261,
830,
3638,
18,
17994,
7675,
14963,
12,
723,
3719,
1082,
202,
2463,
638,
31,
... |
this.status = status; this.errorMessage = errorMessage; this.committed = true; | this.status = newStatus; this.errorMessage = newErrorMessage; committed = true; | public void sendError(int status, String errorMessage) throws IOException { if (this.committed) { throw new IllegalStateException("Cannot set error status - response is already committed"); } this.status = status; this.errorMessage = errorMessage; this.committed = true; } | 45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/7d51110e3a23c7ea6a62853eb41e45568ca1408d/FakeHttpServletResponse.java/buggy/java/org/directwebremoting/util/FakeHttpServletResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17538,
12,
474,
1267,
16,
514,
9324,
13,
1216,
1860,
565,
288,
3639,
309,
261,
2211,
18,
7371,
2344,
13,
3639,
288,
5411,
604,
394,
5477,
2932,
4515,
444,
555,
1267,
300,
766... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17538,
12,
474,
1267,
16,
514,
9324,
13,
1216,
1860,
565,
288,
3639,
309,
261,
2211,
18,
7371,
2344,
13,
3639,
288,
5411,
604,
394,
5477,
2932,
4515,
444,
555,
1267,
300,
766... |
public void testContentEquals() throws Exception { // Non-existent files final File file = new File(getTestDirectory(), getName()); assertTrue(FileUtils.contentEquals(file, file)); // TODO Should comparing 2 directories throw an Exception instead of returning false? // Directories assertTrue( !FileUtils.contentEquals(getTestDirectory(), getTestDirectory())); // Different files final File objFile1 = new File(getTestDirectory(), getName() + ".object"); objFile1.deleteOnExit(); FileUtils.copyURLToFile( getClass().getResource("/java/lang/Object.class"), objFile1); final File objFile2 = new File(getTestDirectory(), getName() + ".collection"); objFile2.deleteOnExit(); FileUtils.copyURLToFile( getClass().getResource("/java/util/Collection.class"), objFile2); assertTrue( "Files should not be equal.", !FileUtils.contentEquals(objFile1, objFile2)); // Equal files file.createNewFile(); assertTrue(FileUtils.contentEquals(file, file)); } | 49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/c594f49b9ee462420e1b26fc8e69f04a60d78f83/FileUtilsTestCase.java/buggy/src/test/org/apache/commons/io/FileUtilsTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
1350,
8867,
1435,
15069,
503,
95,
759,
3989,
17,
19041,
2354,
6385,
812,
768,
33,
2704,
812,
12,
588,
4709,
2853,
9334,
17994,
10663,
11231,
5510,
12,
812,
1989,
18,
1745,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
1350,
8867,
1435,
15069,
503,
95,
759,
3989,
17,
19041,
2354,
6385,
812,
768,
33,
2704,
812,
12,
588,
4709,
2853,
9334,
17994,
10663,
11231,
5510,
12,
812,
1989,
18,
1745,
88... | ||
public boolean isDuplicate(){ | public boolean isDuplicate() { | public boolean isDuplicate(){ return this.duplicate; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f9c466e731a3fcd6b27ded21559cc21bf6d87935/AbstractSearchItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/AbstractSearchItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
11826,
1435,
95,
202,
202,
2463,
333,
18,
17342,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
11826,
1435,
95,
202,
202,
2463,
333,
18,
17342,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
(new com.ibm.math.DiagBigDecimal.Test("cbi001")).ok=((new com.ibm.math.BigDecimal(bip)).toString()).equals(bip.toString()); (new com.ibm.math.DiagBigDecimal.Test("cbi002")).ok=((new com.ibm.math.BigDecimal(biz)).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cbi003")).ok=((new com.ibm.math.BigDecimal(bin)).toString()).equals(bin.toString()); | (new Test("cbi001")).ok=((new com.ibm.math.BigDecimal(bip)).toString()).equals(bip.toString()); (new Test("cbi002")).ok=((new com.ibm.math.BigDecimal(biz)).toString()).equals("0"); (new Test("cbi003")).ok=((new com.ibm.math.BigDecimal(bin)).toString()).equals(bin.toString()); | public void diagconstructors(){ boolean flag=false; java.lang.String num; java.math.BigInteger bip; java.math.BigInteger biz; java.math.BigInteger bin; com.ibm.math.BigDecimal bda; com.ibm.math.BigDecimal bdb; com.ibm.math.BigDecimal bmc; com.ibm.math.BigDecimal bmd; com.ibm.math.BigDecimal bme; java.lang.RuntimeException e=null; char ca[]; double dzer; double dpos; double dneg; double dpos5; double dneg5; double dmin; double dmax; double d; java.lang.String badstrings[]; int i=0; // constants [statically-called constructors] (new com.ibm.math.DiagBigDecimal.Test("con001")).ok=(com.ibm.math.BigDecimal.ZERO.toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("con002")).ok=(com.ibm.math.BigDecimal.ONE.toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("con003")).ok=(com.ibm.math.BigDecimal.TEN.toString()).equals("10"); (new com.ibm.math.DiagBigDecimal.Test("con004")).ok=(com.ibm.math.BigDecimal.ZERO.intValueExact())==0; (new com.ibm.math.DiagBigDecimal.Test("con005")).ok=(com.ibm.math.BigDecimal.ONE.intValueExact())==1; (new com.ibm.math.DiagBigDecimal.Test("con006")).ok=(com.ibm.math.BigDecimal.TEN.intValueExact())==10; // [java.math.] BigDecimal (new com.ibm.math.DiagBigDecimal.Test("cbd001")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("0"))).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cbd002")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("1"))).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("cbd003")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("10"))).toString()).equals("10"); (new com.ibm.math.DiagBigDecimal.Test("cbd004")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("1000"))).toString()).equals("1000"); (new com.ibm.math.DiagBigDecimal.Test("cbd005")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("10.0"))).toString()).equals("10.0"); (new com.ibm.math.DiagBigDecimal.Test("cbd006")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("10.1"))).toString()).equals("10.1"); (new com.ibm.math.DiagBigDecimal.Test("cbd007")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("-1.1"))).toString()).equals("-1.1"); (new com.ibm.math.DiagBigDecimal.Test("cbd008")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("-9.0"))).toString()).equals("-9.0"); (new com.ibm.math.DiagBigDecimal.Test("cbd009")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal("0.9"))).toString()).equals("0.9"); num="123456789.123456789"; (new com.ibm.math.DiagBigDecimal.Test("cbd010")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal(num))).toString()).equals(num); num="123456789.000000000"; (new com.ibm.math.DiagBigDecimal.Test("cbd011")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal(num))).toString()).equals(num); num="123456789000000000"; (new com.ibm.math.DiagBigDecimal.Test("cbd012")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal(num))).toString()).equals(num); num="0.00000123456789"; (new com.ibm.math.DiagBigDecimal.Test("cbd013")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal(num))).toString()).equals(num); num="0.000000123456789"; (new com.ibm.math.DiagBigDecimal.Test("cbd014")).ok=((new com.ibm.math.BigDecimal(new java.math.BigDecimal(num))).toString()).equals(num); try{checknull:do{ new com.ibm.math.BigDecimal((java.math.BigDecimal)null); flag=false; }while(false);} catch (java.lang.NullPointerException $3){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("cbi015")).ok=flag; // BigInteger bip=new BigInteger("987654321987654321987654321"); // biggie +ve biz=new BigInteger("0"); // biggie 0 bin=new BigInteger("-12345678998765432112345678"); // biggie -ve (new com.ibm.math.DiagBigDecimal.Test("cbi001")).ok=((new com.ibm.math.BigDecimal(bip)).toString()).equals(bip.toString()); (new com.ibm.math.DiagBigDecimal.Test("cbi002")).ok=((new com.ibm.math.BigDecimal(biz)).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cbi003")).ok=((new com.ibm.math.BigDecimal(bin)).toString()).equals(bin.toString()); try{checknull:do{ new com.ibm.math.BigDecimal((java.math.BigInteger)null); flag=false; }while(false);} catch (java.lang.NullPointerException $4){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("cbi004")).ok=flag; // BigInteger with scale bip=new BigInteger("123456789"); // bigish bda=new com.ibm.math.BigDecimal(bip); bdb=new com.ibm.math.BigDecimal(bip,5); bmc=new com.ibm.math.BigDecimal(bip,15); (new com.ibm.math.DiagBigDecimal.Test("cbs001")).ok=(bda.toString()).equals("123456789"); (new com.ibm.math.DiagBigDecimal.Test("cbs002")).ok=(bdb.toString()).equals("1234.56789"); (new com.ibm.math.DiagBigDecimal.Test("cbs003")).ok=(bmc.toString()).equals("0.000000123456789"); bip=new BigInteger("123456789123456789123456789"); // biggie bda=new com.ibm.math.BigDecimal(bip); bdb=new com.ibm.math.BigDecimal(bip,7); bmc=new com.ibm.math.BigDecimal(bip,13); bmd=new com.ibm.math.BigDecimal(bip,19); bme=new com.ibm.math.BigDecimal(bip,29); (new com.ibm.math.DiagBigDecimal.Test("cbs011")).ok=(bda.toString()).equals("123456789123456789123456789"); (new com.ibm.math.DiagBigDecimal.Test("cbs012")).ok=(bdb.toString()).equals("12345678912345678912.3456789"); (new com.ibm.math.DiagBigDecimal.Test("cbs013")).ok=(bmc.toString()).equals("12345678912345.6789123456789"); (new com.ibm.math.DiagBigDecimal.Test("cbs014")).ok=(bmd.toString()).equals("12345678.9123456789123456789"); (new com.ibm.math.DiagBigDecimal.Test("cbs015")).ok=(bme.toString()).equals("0.00123456789123456789123456789"); try{checknull:do{ new com.ibm.math.BigDecimal((java.math.BigInteger)null,1); flag=false; }while(false);} catch (java.lang.NullPointerException $5){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("cbs004")).ok=flag; try{checkscale:do{ new com.ibm.math.BigDecimal(bip,-8); flag=false; }while(false);} catch (java.lang.RuntimeException $6){e=$6; flag=(e.getMessage()).equals("Negative scale: -8"); }/*checkscale*/ (new com.ibm.math.DiagBigDecimal.Test("cbs005")).ok=flag; // char[] // We just test it's there // Functionality is tested by BigDecimal(String). ca=("123.45").toCharArray(); (new com.ibm.math.DiagBigDecimal.Test("cca001")).ok=((new com.ibm.math.BigDecimal(ca)).toString()).equals("123.45"); try{checknull:do{ new com.ibm.math.BigDecimal((char[])null); flag=false; }while(false);} catch (java.lang.NullPointerException $7){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("cca010")).ok=flag; // char[],int,int // We just test it's there, and that offsets work. // Functionality is tested by BigDecimal(String). ca=("123.45").toCharArray(); (new com.ibm.math.DiagBigDecimal.Test("cca101")).ok=((new com.ibm.math.BigDecimal(ca,0,6)).toString()).equals("123.45"); (new com.ibm.math.DiagBigDecimal.Test("cca102")).ok=((new com.ibm.math.BigDecimal(ca,1,5)).toString()).equals("23.45"); (new com.ibm.math.DiagBigDecimal.Test("cca103")).ok=((new com.ibm.math.BigDecimal(ca,2,4)).toString()).equals("3.45"); (new com.ibm.math.DiagBigDecimal.Test("cca104")).ok=((new com.ibm.math.BigDecimal(ca,3,3)).toString()).equals("0.45"); (new com.ibm.math.DiagBigDecimal.Test("cca105")).ok=((new com.ibm.math.BigDecimal(ca,4,2)).toString()).equals("45"); (new com.ibm.math.DiagBigDecimal.Test("cca106")).ok=((new com.ibm.math.BigDecimal(ca,5,1)).toString()).equals("5"); (new com.ibm.math.DiagBigDecimal.Test("cca110")).ok=((new com.ibm.math.BigDecimal(ca,0,1)).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("cca111")).ok=((new com.ibm.math.BigDecimal(ca,1,1)).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("cca112")).ok=((new com.ibm.math.BigDecimal(ca,2,1)).toString()).equals("3"); (new com.ibm.math.DiagBigDecimal.Test("cca113")).ok=((new com.ibm.math.BigDecimal(ca,4,1)).toString()).equals("4"); (new com.ibm.math.DiagBigDecimal.Test("cca120")).ok=((new com.ibm.math.BigDecimal(ca,0,2)).toString()).equals("12"); (new com.ibm.math.DiagBigDecimal.Test("cca121")).ok=((new com.ibm.math.BigDecimal(ca,1,2)).toString()).equals("23"); (new com.ibm.math.DiagBigDecimal.Test("cca122")).ok=((new com.ibm.math.BigDecimal(ca,2,2)).toString()).equals("3"); (new com.ibm.math.DiagBigDecimal.Test("cca123")).ok=((new com.ibm.math.BigDecimal(ca,3,2)).toString()).equals("0.4"); (new com.ibm.math.DiagBigDecimal.Test("cca130")).ok=((new com.ibm.math.BigDecimal(ca,0,3)).toString()).equals("123"); (new com.ibm.math.DiagBigDecimal.Test("cca131")).ok=((new com.ibm.math.BigDecimal(ca,1,3)).toString()).equals("23"); (new com.ibm.math.DiagBigDecimal.Test("cca132")).ok=((new com.ibm.math.BigDecimal(ca,2,3)).toString()).equals("3.4"); (new com.ibm.math.DiagBigDecimal.Test("cca140")).ok=((new com.ibm.math.BigDecimal(ca,0,4)).toString()).equals("123"); (new com.ibm.math.DiagBigDecimal.Test("cca141")).ok=((new com.ibm.math.BigDecimal(ca,1,4)).toString()).equals("23.4"); (new com.ibm.math.DiagBigDecimal.Test("cca150")).ok=((new com.ibm.math.BigDecimal(ca,0,5)).toString()).equals("123.4"); // a couple of oddies ca=("x23.4x").toCharArray(); (new com.ibm.math.DiagBigDecimal.Test("cca160")).ok=((new com.ibm.math.BigDecimal(ca,1,4)).toString()).equals("23.4"); (new com.ibm.math.DiagBigDecimal.Test("cca161")).ok=((new com.ibm.math.BigDecimal(ca,1,1)).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("cca162")).ok=((new com.ibm.math.BigDecimal(ca,4,1)).toString()).equals("4"); ca=("0123456789.9876543210").toCharArray(); (new com.ibm.math.DiagBigDecimal.Test("cca163")).ok=((new com.ibm.math.BigDecimal(ca,0,21)).toString()).equals("123456789.9876543210"); (new com.ibm.math.DiagBigDecimal.Test("cca164")).ok=((new com.ibm.math.BigDecimal(ca,1,20)).toString()).equals("123456789.9876543210"); (new com.ibm.math.DiagBigDecimal.Test("cca165")).ok=((new com.ibm.math.BigDecimal(ca,2,19)).toString()).equals("23456789.9876543210"); (new com.ibm.math.DiagBigDecimal.Test("cca166")).ok=((new com.ibm.math.BigDecimal(ca,2,18)).toString()).equals("23456789.987654321"); (new com.ibm.math.DiagBigDecimal.Test("cca167")).ok=((new com.ibm.math.BigDecimal(ca,2,17)).toString()).equals("23456789.98765432"); (new com.ibm.math.DiagBigDecimal.Test("cca168")).ok=((new com.ibm.math.BigDecimal(ca,2,16)).toString()).equals("23456789.9876543"); try{checknull:do{ new com.ibm.math.BigDecimal((char[])null,0,1); flag=false; }while(false);} catch (java.lang.NullPointerException $8){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("cca200")).ok=flag; try{checklen:do{ new com.ibm.math.BigDecimal("123".toCharArray(),0,0); flag=false; }while(false);} catch (java.lang.NumberFormatException $9){ flag=true; }/*checklen*/ (new com.ibm.math.DiagBigDecimal.Test("cca201")).ok=flag; try{checkbound:do{ new com.ibm.math.BigDecimal("123".toCharArray(),2,4); flag=false; }while(false);} catch (java.lang.RuntimeException $10){ // anything OK flag=true; }/*checkbound*/ (new com.ibm.math.DiagBigDecimal.Test("cca202")).ok=flag; try{checkbound2:do{ new com.ibm.math.BigDecimal("123".toCharArray(),-1,2); flag=false; }while(false);} catch (java.lang.RuntimeException $11){ // anything OK flag=true; }/*checkbound2*/ (new com.ibm.math.DiagBigDecimal.Test("cca203")).ok=flag; try{checkbound3:do{ new com.ibm.math.BigDecimal("123".toCharArray(),1,-2); flag=false; }while(false);} catch (java.lang.RuntimeException $12){ // anything OK flag=true; }/*checkbound3*/ (new com.ibm.math.DiagBigDecimal.Test("cca204")).ok=flag; // double [deprecated] // Note that many of these differ from the valueOf(double) results. dzer=(double)0; dpos=(double)1; dpos=dpos/((double)10); dneg=(double)-dpos; (new com.ibm.math.DiagBigDecimal.Test("cdo001")).ok=((new com.ibm.math.BigDecimal(dneg)).toString()).equals("-0.1000000000000000055511151231257827021181583404541015625"); (new com.ibm.math.DiagBigDecimal.Test("cdo002")).ok=((new com.ibm.math.BigDecimal(dzer)).toString()).equals("0"); // NB, not '0.0' (new com.ibm.math.DiagBigDecimal.Test("cdo003")).ok=((new com.ibm.math.BigDecimal(dpos)).toString()).equals("0.1000000000000000055511151231257827021181583404541015625"); dpos5=(double)0.5D; dneg5=(double)-dpos5; (new com.ibm.math.DiagBigDecimal.Test("cdo004")).ok=((new com.ibm.math.BigDecimal(dneg5)).toString()).equals("-0.5"); (new com.ibm.math.DiagBigDecimal.Test("cdo005")).ok=((new com.ibm.math.BigDecimal(dpos5)).toString()).equals("0.5"); dmin=java.lang.Double.MIN_VALUE; dmax=java.lang.Double.MAX_VALUE; (new com.ibm.math.DiagBigDecimal.Test("cdo006")).ok=((new com.ibm.math.BigDecimal(dmin)).toString()).equals("0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004940656458412465441765687928682213723650598026143247644255856825006755072702087518652998363616359923797965646954457177309266567103559397963987747960107818781263007131903114045278458171678489821036887186360569987307230500063874091535649843873124733972731696151400317153853980741262385655911710266585566867681870395603106249319452715914924553293054565444011274801297099995419319894090804165633245247571478690147267801593552386115501348035264934720193790268107107491703332226844753335720832431936092382893458368060106011506169809753078342277318329247904982524730776375927247874656084778203734469699533647017972677717585125660551199131504891101451037862738167250955837389733598993664809941164205702637090279242767544565229087538682506419718265533447265625"); (new com.ibm.math.DiagBigDecimal.Test("cdo007")).ok=((new com.ibm.math.BigDecimal(dmax)).toString()).equals("179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368"); // nasties d=(double)9; d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo010")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.90000000000000002220446049250313080847263336181640625"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo011")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.0899999999999999966693309261245303787291049957275390625"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo012")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.00899999999999999931998839741709161899052560329437255859375"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo013")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.00089999999999999997536692664112933925935067236423492431640625"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo014")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.00008999999999999999211568180168541175589780323207378387451171875"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo015")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.00000899999999999999853394182236510090433512232266366481781005859375"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo016")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.000000899999999999999853394182236510090433512232266366481781005859375"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo017")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.0000000899999999999999853394182236510090433512232266366481781005859375"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("cdo018")).ok=((new com.ibm.math.BigDecimal(d)).toString()).equals("0.000000008999999999999997872197332322678764437995369007694534957408905029296875"); try{checkpin:do{ new com.ibm.math.BigDecimal(java.lang.Double.POSITIVE_INFINITY); flag=false; }while(false);} catch (java.lang.NumberFormatException $13){ flag=true; }/*checkpin*/ (new com.ibm.math.DiagBigDecimal.Test("cdo101")).ok=flag; try{checknin:do{ new com.ibm.math.BigDecimal(java.lang.Double.NEGATIVE_INFINITY); flag=false; }while(false);} catch (java.lang.NumberFormatException $14){ flag=true; }/*checknin*/ (new com.ibm.math.DiagBigDecimal.Test("cdo102")).ok=flag; try{checknan:do{ new com.ibm.math.BigDecimal(java.lang.Double.NaN); flag=false; }while(false);} catch (java.lang.NumberFormatException $15){ flag=true; }/*checknan*/ (new com.ibm.math.DiagBigDecimal.Test("cdo103")).ok=flag; // int (new com.ibm.math.DiagBigDecimal.Test("cin001")).ok=((new com.ibm.math.BigDecimal(imin)).toString()).equals("-2147483648"); (new com.ibm.math.DiagBigDecimal.Test("cin002")).ok=((new com.ibm.math.BigDecimal(imax)).toString()).equals("2147483647"); (new com.ibm.math.DiagBigDecimal.Test("cin003")).ok=((new com.ibm.math.BigDecimal(ineg)).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("cin004")).ok=((new com.ibm.math.BigDecimal(izer)).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cin005")).ok=((new com.ibm.math.BigDecimal(ipos)).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("cin006")).ok=((new com.ibm.math.BigDecimal(10)).toString()).equals("10"); (new com.ibm.math.DiagBigDecimal.Test("cin007")).ok=((new com.ibm.math.BigDecimal(9)).toString()).equals("9"); (new com.ibm.math.DiagBigDecimal.Test("cin008")).ok=((new com.ibm.math.BigDecimal(5)).toString()).equals("5"); (new com.ibm.math.DiagBigDecimal.Test("cin009")).ok=((new com.ibm.math.BigDecimal(2)).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("cin010")).ok=((new com.ibm.math.BigDecimal(-2)).toString()).equals("-2"); (new com.ibm.math.DiagBigDecimal.Test("cin011")).ok=((new com.ibm.math.BigDecimal(-5)).toString()).equals("-5"); (new com.ibm.math.DiagBigDecimal.Test("cin012")).ok=((new com.ibm.math.BigDecimal(-9)).toString()).equals("-9"); (new com.ibm.math.DiagBigDecimal.Test("cin013")).ok=((new com.ibm.math.BigDecimal(-10)).toString()).equals("-10"); (new com.ibm.math.DiagBigDecimal.Test("cin014")).ok=((new com.ibm.math.BigDecimal(-11)).toString()).equals("-11"); (new com.ibm.math.DiagBigDecimal.Test("cin015")).ok=((new com.ibm.math.BigDecimal(-99)).toString()).equals("-99"); (new com.ibm.math.DiagBigDecimal.Test("cin016")).ok=((new com.ibm.math.BigDecimal(-100)).toString()).equals("-100"); (new com.ibm.math.DiagBigDecimal.Test("cin017")).ok=((new com.ibm.math.BigDecimal(-999)).toString()).equals("-999"); (new com.ibm.math.DiagBigDecimal.Test("cin018")).ok=((new com.ibm.math.BigDecimal(-1000)).toString()).equals("-1000"); (new com.ibm.math.DiagBigDecimal.Test("cin019")).ok=((new com.ibm.math.BigDecimal(11)).toString()).equals("11"); (new com.ibm.math.DiagBigDecimal.Test("cin020")).ok=((new com.ibm.math.BigDecimal(99)).toString()).equals("99"); (new com.ibm.math.DiagBigDecimal.Test("cin021")).ok=((new com.ibm.math.BigDecimal(100)).toString()).equals("100"); (new com.ibm.math.DiagBigDecimal.Test("cin022")).ok=((new com.ibm.math.BigDecimal(999)).toString()).equals("999"); (new com.ibm.math.DiagBigDecimal.Test("cin023")).ok=((new com.ibm.math.BigDecimal(1000)).toString()).equals("1000"); // long (new com.ibm.math.DiagBigDecimal.Test("clo001")).ok=((new com.ibm.math.BigDecimal(lmin)).toString()).equals("-9223372036854775808"); (new com.ibm.math.DiagBigDecimal.Test("clo002")).ok=((new com.ibm.math.BigDecimal(lmax)).toString()).equals("9223372036854775807"); (new com.ibm.math.DiagBigDecimal.Test("clo003")).ok=((new com.ibm.math.BigDecimal(lneg)).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("clo004")).ok=((new com.ibm.math.BigDecimal(lzer)).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("clo005")).ok=((new com.ibm.math.BigDecimal(lpos)).toString()).equals("1"); // String [many more examples are elsewhere] // strings without E cannot generate E in result (new com.ibm.math.DiagBigDecimal.Test("cst001")).ok=((new com.ibm.math.BigDecimal("12")).toString()).equals("12"); (new com.ibm.math.DiagBigDecimal.Test("cst002")).ok=((new com.ibm.math.BigDecimal("-76")).toString()).equals("-76"); (new com.ibm.math.DiagBigDecimal.Test("cst003")).ok=((new com.ibm.math.BigDecimal("12.76")).toString()).equals("12.76"); (new com.ibm.math.DiagBigDecimal.Test("cst004")).ok=((new com.ibm.math.BigDecimal("+12.76")).toString()).equals("12.76"); (new com.ibm.math.DiagBigDecimal.Test("cst005")).ok=((new com.ibm.math.BigDecimal("012.76")).toString()).equals("12.76"); (new com.ibm.math.DiagBigDecimal.Test("cst006")).ok=((new com.ibm.math.BigDecimal("+0.003")).toString()).equals("0.003"); (new com.ibm.math.DiagBigDecimal.Test("cst007")).ok=((new com.ibm.math.BigDecimal("17.")).toString()).equals("17"); (new com.ibm.math.DiagBigDecimal.Test("cst008")).ok=((new com.ibm.math.BigDecimal(".5")).toString()).equals("0.5"); (new com.ibm.math.DiagBigDecimal.Test("cst009")).ok=((new com.ibm.math.BigDecimal("044")).toString()).equals("44"); (new com.ibm.math.DiagBigDecimal.Test("cst010")).ok=((new com.ibm.math.BigDecimal("0044")).toString()).equals("44"); (new com.ibm.math.DiagBigDecimal.Test("cst011")).ok=((new com.ibm.math.BigDecimal("0.0005")).toString()).equals("0.0005"); (new com.ibm.math.DiagBigDecimal.Test("cst012")).ok=((new com.ibm.math.BigDecimal("00.00005")).toString()).equals("0.00005"); (new com.ibm.math.DiagBigDecimal.Test("cst013")).ok=((new com.ibm.math.BigDecimal("0.000005")).toString()).equals("0.000005"); (new com.ibm.math.DiagBigDecimal.Test("cst014")).ok=((new com.ibm.math.BigDecimal("0.0000005")).toString()).equals("0.0000005"); // \NR (new com.ibm.math.DiagBigDecimal.Test("cst015")).ok=((new com.ibm.math.BigDecimal("0.00000005")).toString()).equals("0.00000005"); // \NR (new com.ibm.math.DiagBigDecimal.Test("cst016")).ok=((new com.ibm.math.BigDecimal("12345678.876543210")).toString()).equals("12345678.876543210"); (new com.ibm.math.DiagBigDecimal.Test("cst017")).ok=((new com.ibm.math.BigDecimal("2345678.876543210")).toString()).equals("2345678.876543210"); (new com.ibm.math.DiagBigDecimal.Test("cst018")).ok=((new com.ibm.math.BigDecimal("345678.876543210")).toString()).equals("345678.876543210"); (new com.ibm.math.DiagBigDecimal.Test("cst019")).ok=((new com.ibm.math.BigDecimal("0345678.87654321")).toString()).equals("345678.87654321"); (new com.ibm.math.DiagBigDecimal.Test("cst020")).ok=((new com.ibm.math.BigDecimal("345678.8765432")).toString()).equals("345678.8765432"); (new com.ibm.math.DiagBigDecimal.Test("cst021")).ok=((new com.ibm.math.BigDecimal("+345678.8765432")).toString()).equals("345678.8765432"); (new com.ibm.math.DiagBigDecimal.Test("cst022")).ok=((new com.ibm.math.BigDecimal("+0345678.8765432")).toString()).equals("345678.8765432"); (new com.ibm.math.DiagBigDecimal.Test("cst023")).ok=((new com.ibm.math.BigDecimal("+00345678.8765432")).toString()).equals("345678.8765432"); (new com.ibm.math.DiagBigDecimal.Test("cst024")).ok=((new com.ibm.math.BigDecimal("-345678.8765432")).toString()).equals("-345678.8765432"); (new com.ibm.math.DiagBigDecimal.Test("cst025")).ok=((new com.ibm.math.BigDecimal("-0345678.8765432")).toString()).equals("-345678.8765432"); (new com.ibm.math.DiagBigDecimal.Test("cst026")).ok=((new com.ibm.math.BigDecimal("-00345678.8765432")).toString()).equals("-345678.8765432"); // exotics -- (new com.ibm.math.DiagBigDecimal.Test("cst035")).ok=((new com.ibm.math.BigDecimal("\u0e57.\u0e50")).toString()).equals("7.0"); (new com.ibm.math.DiagBigDecimal.Test("cst036")).ok=((new com.ibm.math.BigDecimal("\u0b66.\u0b67")).toString()).equals("0.1"); (new com.ibm.math.DiagBigDecimal.Test("cst037")).ok=((new com.ibm.math.BigDecimal("\u0b66\u0b66")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst038")).ok=((new com.ibm.math.BigDecimal("\u0b6a\u0b66")).toString()).equals("40"); // strings with E (new com.ibm.math.DiagBigDecimal.Test("cst040")).ok=((new com.ibm.math.BigDecimal("1E+9")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst041")).ok=((new com.ibm.math.BigDecimal("1e+09")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst042")).ok=((new com.ibm.math.BigDecimal("1E+90")).toString()).equals("1E+90"); (new com.ibm.math.DiagBigDecimal.Test("cst043")).ok=((new com.ibm.math.BigDecimal("+1E+009")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst044")).ok=((new com.ibm.math.BigDecimal("0E+9")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst045")).ok=((new com.ibm.math.BigDecimal("1E+9")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst046")).ok=((new com.ibm.math.BigDecimal("1E+09")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst047")).ok=((new com.ibm.math.BigDecimal("1e+90")).toString()).equals("1E+90"); (new com.ibm.math.DiagBigDecimal.Test("cst048")).ok=((new com.ibm.math.BigDecimal("1E+009")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst049")).ok=((new com.ibm.math.BigDecimal("0E+9")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst050")).ok=((new com.ibm.math.BigDecimal("1E9")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst051")).ok=((new com.ibm.math.BigDecimal("1e09")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst052")).ok=((new com.ibm.math.BigDecimal("1E90")).toString()).equals("1E+90"); (new com.ibm.math.DiagBigDecimal.Test("cst053")).ok=((new com.ibm.math.BigDecimal("1E009")).toString()).equals("1E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst054")).ok=((new com.ibm.math.BigDecimal("0E9")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst055")).ok=((new com.ibm.math.BigDecimal("0.000e+0")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst056")).ok=((new com.ibm.math.BigDecimal("0.000E-1")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst057")).ok=((new com.ibm.math.BigDecimal("4E+9")).toString()).equals("4E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst058")).ok=((new com.ibm.math.BigDecimal("44E+9")).toString()).equals("4.4E+10"); (new com.ibm.math.DiagBigDecimal.Test("cst059")).ok=((new com.ibm.math.BigDecimal("0.73e-7")).toString()).equals("7.3E-8"); (new com.ibm.math.DiagBigDecimal.Test("cst060")).ok=((new com.ibm.math.BigDecimal("00E+9")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst061")).ok=((new com.ibm.math.BigDecimal("00E-9")).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("cst062")).ok=((new com.ibm.math.BigDecimal("10E+9")).toString()).equals("1.0E+10"); (new com.ibm.math.DiagBigDecimal.Test("cst063")).ok=((new com.ibm.math.BigDecimal("10E+09")).toString()).equals("1.0E+10"); (new com.ibm.math.DiagBigDecimal.Test("cst064")).ok=((new com.ibm.math.BigDecimal("10e+90")).toString()).equals("1.0E+91"); (new com.ibm.math.DiagBigDecimal.Test("cst065")).ok=((new com.ibm.math.BigDecimal("10E+009")).toString()).equals("1.0E+10"); (new com.ibm.math.DiagBigDecimal.Test("cst066")).ok=((new com.ibm.math.BigDecimal("100e+9")).toString()).equals("1.00E+11"); (new com.ibm.math.DiagBigDecimal.Test("cst067")).ok=((new com.ibm.math.BigDecimal("100e+09")).toString()).equals("1.00E+11"); (new com.ibm.math.DiagBigDecimal.Test("cst068")).ok=((new com.ibm.math.BigDecimal("100E+90")).toString()).equals("1.00E+92"); (new com.ibm.math.DiagBigDecimal.Test("cst069")).ok=((new com.ibm.math.BigDecimal("100e+009")).toString()).equals("1.00E+11"); (new com.ibm.math.DiagBigDecimal.Test("cst070")).ok=((new com.ibm.math.BigDecimal("1.265")).toString()).equals("1.265"); (new com.ibm.math.DiagBigDecimal.Test("cst071")).ok=((new com.ibm.math.BigDecimal("1.265E-20")).toString()).equals("1.265E-20"); (new com.ibm.math.DiagBigDecimal.Test("cst072")).ok=((new com.ibm.math.BigDecimal("1.265E-8")).toString()).equals("1.265E-8"); (new com.ibm.math.DiagBigDecimal.Test("cst073")).ok=((new com.ibm.math.BigDecimal("1.265E-4")).toString()).equals("1.265E-4"); (new com.ibm.math.DiagBigDecimal.Test("cst074")).ok=((new com.ibm.math.BigDecimal("1.265E-3")).toString()).equals("1.265E-3"); (new com.ibm.math.DiagBigDecimal.Test("cst075")).ok=((new com.ibm.math.BigDecimal("1.265E-2")).toString()).equals("1.265E-2"); (new com.ibm.math.DiagBigDecimal.Test("cst076")).ok=((new com.ibm.math.BigDecimal("1.265E-1")).toString()).equals("1.265E-1"); (new com.ibm.math.DiagBigDecimal.Test("cst077")).ok=((new com.ibm.math.BigDecimal("1.265E-0")).toString()).equals("1.265"); (new com.ibm.math.DiagBigDecimal.Test("cst078")).ok=((new com.ibm.math.BigDecimal("1.265E+1")).toString()).equals("1.265E+1"); (new com.ibm.math.DiagBigDecimal.Test("cst079")).ok=((new com.ibm.math.BigDecimal("1.265E+2")).toString()).equals("1.265E+2"); (new com.ibm.math.DiagBigDecimal.Test("cst080")).ok=((new com.ibm.math.BigDecimal("1.265E+3")).toString()).equals("1.265E+3"); (new com.ibm.math.DiagBigDecimal.Test("cst081")).ok=((new com.ibm.math.BigDecimal("1.265E+4")).toString()).equals("1.265E+4"); (new com.ibm.math.DiagBigDecimal.Test("cst082")).ok=((new com.ibm.math.BigDecimal("1.265E+8")).toString()).equals("1.265E+8"); (new com.ibm.math.DiagBigDecimal.Test("cst083")).ok=((new com.ibm.math.BigDecimal("1.265E+20")).toString()).equals("1.265E+20"); (new com.ibm.math.DiagBigDecimal.Test("cst090")).ok=((new com.ibm.math.BigDecimal("12.65")).toString()).equals("12.65"); (new com.ibm.math.DiagBigDecimal.Test("cst091")).ok=((new com.ibm.math.BigDecimal("12.65E-20")).toString()).equals("1.265E-19"); (new com.ibm.math.DiagBigDecimal.Test("cst092")).ok=((new com.ibm.math.BigDecimal("12.65E-8")).toString()).equals("1.265E-7"); (new com.ibm.math.DiagBigDecimal.Test("cst093")).ok=((new com.ibm.math.BigDecimal("12.65E-4")).toString()).equals("1.265E-3"); (new com.ibm.math.DiagBigDecimal.Test("cst094")).ok=((new com.ibm.math.BigDecimal("12.65E-3")).toString()).equals("1.265E-2"); (new com.ibm.math.DiagBigDecimal.Test("cst095")).ok=((new com.ibm.math.BigDecimal("12.65E-2")).toString()).equals("1.265E-1"); (new com.ibm.math.DiagBigDecimal.Test("cst096")).ok=((new com.ibm.math.BigDecimal("12.65E-1")).toString()).equals("1.265"); (new com.ibm.math.DiagBigDecimal.Test("cst097")).ok=((new com.ibm.math.BigDecimal("12.65E-0")).toString()).equals("1.265E+1"); (new com.ibm.math.DiagBigDecimal.Test("cst098")).ok=((new com.ibm.math.BigDecimal("12.65E+1")).toString()).equals("1.265E+2"); (new com.ibm.math.DiagBigDecimal.Test("cst099")).ok=((new com.ibm.math.BigDecimal("12.65E+2")).toString()).equals("1.265E+3"); (new com.ibm.math.DiagBigDecimal.Test("cst100")).ok=((new com.ibm.math.BigDecimal("12.65E+3")).toString()).equals("1.265E+4"); (new com.ibm.math.DiagBigDecimal.Test("cst101")).ok=((new com.ibm.math.BigDecimal("12.65E+4")).toString()).equals("1.265E+5"); (new com.ibm.math.DiagBigDecimal.Test("cst102")).ok=((new com.ibm.math.BigDecimal("12.65E+8")).toString()).equals("1.265E+9"); (new com.ibm.math.DiagBigDecimal.Test("cst103")).ok=((new com.ibm.math.BigDecimal("12.65E+20")).toString()).equals("1.265E+21"); (new com.ibm.math.DiagBigDecimal.Test("cst110")).ok=((new com.ibm.math.BigDecimal("126.5")).toString()).equals("126.5"); (new com.ibm.math.DiagBigDecimal.Test("cst111")).ok=((new com.ibm.math.BigDecimal("126.5E-20")).toString()).equals("1.265E-18"); (new com.ibm.math.DiagBigDecimal.Test("cst112")).ok=((new com.ibm.math.BigDecimal("126.5E-8")).toString()).equals("1.265E-6"); (new com.ibm.math.DiagBigDecimal.Test("cst113")).ok=((new com.ibm.math.BigDecimal("126.5E-4")).toString()).equals("1.265E-2"); (new com.ibm.math.DiagBigDecimal.Test("cst114")).ok=((new com.ibm.math.BigDecimal("126.5E-3")).toString()).equals("1.265E-1"); (new com.ibm.math.DiagBigDecimal.Test("cst115")).ok=((new com.ibm.math.BigDecimal("126.5E-2")).toString()).equals("1.265"); (new com.ibm.math.DiagBigDecimal.Test("cst116")).ok=((new com.ibm.math.BigDecimal("126.5E-1")).toString()).equals("1.265E+1"); (new com.ibm.math.DiagBigDecimal.Test("cst117")).ok=((new com.ibm.math.BigDecimal("126.5E-0")).toString()).equals("1.265E+2"); (new com.ibm.math.DiagBigDecimal.Test("cst118")).ok=((new com.ibm.math.BigDecimal("126.5E+1")).toString()).equals("1.265E+3"); (new com.ibm.math.DiagBigDecimal.Test("cst119")).ok=((new com.ibm.math.BigDecimal("126.5E+2")).toString()).equals("1.265E+4"); (new com.ibm.math.DiagBigDecimal.Test("cst120")).ok=((new com.ibm.math.BigDecimal("126.5E+3")).toString()).equals("1.265E+5"); (new com.ibm.math.DiagBigDecimal.Test("cst121")).ok=((new com.ibm.math.BigDecimal("126.5E+4")).toString()).equals("1.265E+6"); (new com.ibm.math.DiagBigDecimal.Test("cst122")).ok=((new com.ibm.math.BigDecimal("126.5E+8")).toString()).equals("1.265E+10"); (new com.ibm.math.DiagBigDecimal.Test("cst123")).ok=((new com.ibm.math.BigDecimal("126.5E+20")).toString()).equals("1.265E+22"); (new com.ibm.math.DiagBigDecimal.Test("cst130")).ok=((new com.ibm.math.BigDecimal("1265")).toString()).equals("1265"); (new com.ibm.math.DiagBigDecimal.Test("cst131")).ok=((new com.ibm.math.BigDecimal("1265E-20")).toString()).equals("1.265E-17"); (new com.ibm.math.DiagBigDecimal.Test("cst132")).ok=((new com.ibm.math.BigDecimal("1265E-8")).toString()).equals("1.265E-5"); (new com.ibm.math.DiagBigDecimal.Test("cst133")).ok=((new com.ibm.math.BigDecimal("1265E-4")).toString()).equals("1.265E-1"); (new com.ibm.math.DiagBigDecimal.Test("cst134")).ok=((new com.ibm.math.BigDecimal("1265E-3")).toString()).equals("1.265"); (new com.ibm.math.DiagBigDecimal.Test("cst135")).ok=((new com.ibm.math.BigDecimal("1265E-2")).toString()).equals("1.265E+1"); (new com.ibm.math.DiagBigDecimal.Test("cst136")).ok=((new com.ibm.math.BigDecimal("1265E-1")).toString()).equals("1.265E+2"); (new com.ibm.math.DiagBigDecimal.Test("cst137")).ok=((new com.ibm.math.BigDecimal("1265E-0")).toString()).equals("1.265E+3"); (new com.ibm.math.DiagBigDecimal.Test("cst138")).ok=((new com.ibm.math.BigDecimal("1265E+1")).toString()).equals("1.265E+4"); (new com.ibm.math.DiagBigDecimal.Test("cst139")).ok=((new com.ibm.math.BigDecimal("1265E+2")).toString()).equals("1.265E+5"); (new com.ibm.math.DiagBigDecimal.Test("cst140")).ok=((new com.ibm.math.BigDecimal("1265E+3")).toString()).equals("1.265E+6"); (new com.ibm.math.DiagBigDecimal.Test("cst141")).ok=((new com.ibm.math.BigDecimal("1265E+4")).toString()).equals("1.265E+7"); (new com.ibm.math.DiagBigDecimal.Test("cst142")).ok=((new com.ibm.math.BigDecimal("1265E+8")).toString()).equals("1.265E+11"); (new com.ibm.math.DiagBigDecimal.Test("cst143")).ok=((new com.ibm.math.BigDecimal("1265E+20")).toString()).equals("1.265E+23"); (new com.ibm.math.DiagBigDecimal.Test("cst150")).ok=((new com.ibm.math.BigDecimal("0.1265")).toString()).equals("0.1265"); (new com.ibm.math.DiagBigDecimal.Test("cst151")).ok=((new com.ibm.math.BigDecimal("0.1265E-20")).toString()).equals("1.265E-21"); (new com.ibm.math.DiagBigDecimal.Test("cst152")).ok=((new com.ibm.math.BigDecimal("0.1265E-8")).toString()).equals("1.265E-9"); (new com.ibm.math.DiagBigDecimal.Test("cst153")).ok=((new com.ibm.math.BigDecimal("0.1265E-4")).toString()).equals("1.265E-5"); (new com.ibm.math.DiagBigDecimal.Test("cst154")).ok=((new com.ibm.math.BigDecimal("0.1265E-3")).toString()).equals("1.265E-4"); (new com.ibm.math.DiagBigDecimal.Test("cst155")).ok=((new com.ibm.math.BigDecimal("0.1265E-2")).toString()).equals("1.265E-3"); (new com.ibm.math.DiagBigDecimal.Test("cst156")).ok=((new com.ibm.math.BigDecimal("0.1265E-1")).toString()).equals("1.265E-2"); (new com.ibm.math.DiagBigDecimal.Test("cst157")).ok=((new com.ibm.math.BigDecimal("0.1265E-0")).toString()).equals("1.265E-1"); (new com.ibm.math.DiagBigDecimal.Test("cst158")).ok=((new com.ibm.math.BigDecimal("0.1265E+1")).toString()).equals("1.265"); (new com.ibm.math.DiagBigDecimal.Test("cst159")).ok=((new com.ibm.math.BigDecimal("0.1265E+2")).toString()).equals("1.265E+1"); (new com.ibm.math.DiagBigDecimal.Test("cst160")).ok=((new com.ibm.math.BigDecimal("0.1265E+3")).toString()).equals("1.265E+2"); (new com.ibm.math.DiagBigDecimal.Test("cst161")).ok=((new com.ibm.math.BigDecimal("0.1265E+4")).toString()).equals("1.265E+3"); (new com.ibm.math.DiagBigDecimal.Test("cst162")).ok=((new com.ibm.math.BigDecimal("0.1265E+8")).toString()).equals("1.265E+7"); (new com.ibm.math.DiagBigDecimal.Test("cst163")).ok=((new com.ibm.math.BigDecimal("0.1265E+20")).toString()).equals("1.265E+19"); (new com.ibm.math.DiagBigDecimal.Test("cst170")).ok=((new com.ibm.math.BigDecimal("0.09e999999999")).toString()).equals("9E+999999997"); (new com.ibm.math.DiagBigDecimal.Test("cst171")).ok=((new com.ibm.math.BigDecimal("0.9e999999999")).toString()).equals("9E+999999998"); (new com.ibm.math.DiagBigDecimal.Test("cst172")).ok=((new com.ibm.math.BigDecimal("9e999999999")).toString()).equals("9E+999999999"); (new com.ibm.math.DiagBigDecimal.Test("cst173")).ok=((new com.ibm.math.BigDecimal("9.9e999999999")).toString()).equals("9.9E+999999999"); (new com.ibm.math.DiagBigDecimal.Test("cst174")).ok=((new com.ibm.math.BigDecimal("9.99e999999999")).toString()).equals("9.99E+999999999"); (new com.ibm.math.DiagBigDecimal.Test("cst175")).ok=((new com.ibm.math.BigDecimal("9.99e-999999999")).toString()).equals("9.99E-999999999"); (new com.ibm.math.DiagBigDecimal.Test("cst176")).ok=((new com.ibm.math.BigDecimal("9.9e-999999999")).toString()).equals("9.9E-999999999"); (new com.ibm.math.DiagBigDecimal.Test("cst177")).ok=((new com.ibm.math.BigDecimal("9e-999999999")).toString()).equals("9E-999999999"); (new com.ibm.math.DiagBigDecimal.Test("cst179")).ok=((new com.ibm.math.BigDecimal("99e-999999999")).toString()).equals("9.9E-999999998"); (new com.ibm.math.DiagBigDecimal.Test("cst180")).ok=((new com.ibm.math.BigDecimal("999e-999999999")).toString()).equals("9.99E-999999997"); // baddies -- badstrings=new java.lang.String[]{"1..2",".","..","++1","--1","-+1","+-1","12e","12e++","12f4"," +1","+ 1","12 "," + 1"," - 1 ","x","-1-","12-","3+","","1e-","7e1000000000","","e100","\u0e5a","\u0b65","99e999999999","999e999999999","0.9e-999999999","0.09e-999999999","0.1e1000000000","10e-1000000000","0.9e9999999999","99e-9999999999","111e9999999999","1111e-9999999999"+" "+"111e*123","111e123-","111e+12+","111e1-3-","111e1*23","111e1e+3","1e1.0","1e123e","ten","ONE","1e.1","1e1.","1ee","e+1"}; // 200-203 // 204-207 // 208-211 // 211-214 // 215-219 // 220-222 // 223-224 // 225-226 // 227-228 // 229-230 // 231-232 // 233-234 // 235-237 // 238-240 // 241-244 // 245-248 // watch out for commas on continuation lines {int $16=badstrings.length;i=0;i:for(;$16>0;$16--,i++){ try{ new com.ibm.math.BigDecimal(badstrings[i]); say(">>> cst"+(200+i)+":"+" "+badstrings[i]+" "+(new com.ibm.math.BigDecimal(badstrings[i])).toString()); flag=false; } catch (java.lang.NumberFormatException $17){ flag=true; } (new com.ibm.math.DiagBigDecimal.Test("cst"+(200+i))).ok=flag; } }/*i*/ try{checknull:do{ new com.ibm.math.BigDecimal((java.lang.String)null); flag=false; }while(false);} catch (java.lang.NullPointerException $18){ flag=true; }/*checknull*/ (new com.ibm.math.DiagBigDecimal.Test("cst301")).ok=flag; summary("Constructors"); return; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/9d7cfece10981dede4d5303274403593abc1a92d/DiagBigDecimal.java/clean/icu4j/src/com/ibm/icu/dev/test/bigdec/DiagBigDecimal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
6643,
10062,
1383,
1435,
95,
225,
1250,
2982,
33,
5743,
31,
225,
2252,
18,
4936,
18,
780,
818,
31,
225,
2252,
18,
15949,
18,
24198,
324,
625,
31,
225,
2252,
18,
15949,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
6643,
10062,
1383,
1435,
95,
225,
1250,
2982,
33,
5743,
31,
225,
2252,
18,
4936,
18,
780,
818,
31,
225,
2252,
18,
15949,
18,
24198,
324,
625,
31,
225,
2252,
18,
15949,
18,
... |
eq.setText("="); | private void applyChanges() { Vector identifiersContainingEqualSigns = new Vector(); Vector identifiersStarred = new Vector(); for (int i = 0; i < tokenStream.size(); i++) { Token t = (Token)tokenStream.elementAt(i); if (canBeIdentifier(t) && !retainAsKeyword[i]) { t.setTerminal(Terminal.T_IDENT); if (endsWithEquals(t)) identifiersContainingEqualSigns.add(new Integer(i)); } else if (isStarredType(t) && !retainAsKeyword[i]) { t.setTerminal(Terminal.T_IDENT); identifiersStarred.add(new Integer(i)); } } // If, say, "len=" was changed into an identifier, split it into // two tokens: the identifier "len" and the equals token for (int j = 0; j < identifiersContainingEqualSigns.size(); j++) { // i is the position of the "xyz=" token in tokenStream int i = ((Integer)identifiersContainingEqualSigns.elementAt(j)).intValue(); // t is the "xyz=" token: split it Token t = (Token)tokenStream.elementAt(i); Token afterT = (i < tokenStream.size()-1 ? (Token)tokenStream.elementAt(i+1) : null); String textWithoutEquals = t.getText().substring(0, t.getText().length()-1); String tokenText = textWithoutEquals.trim(); String whiteAfter = textWithoutEquals.substring(tokenText.length()); //int numCharsRemoved = t.getTokenText().length() - textWithoutEquals.length(); //if (afterT != null && afterT.getTerminal() == Terminal.T_EQUALS && afterT.getStartCol() == t.getEndCol()+1) if (afterT != null && afterT.getTerminal() == Terminal.T_EQUALS && t.getWhiteAfter().equals("") && afterT.getWhiteBefore().equals("")) { // split "xyz=" "=" into "xyz" "==" afterT.setTerminal(Terminal.T_EQEQ); //afterT.setStartCol(afterT.getStartCol()-1); //afterT.setOffset(afterT.getOffset()-1); //afterT.setLength(afterT.getLength()+1); afterT.setText("=="); t.setText(tokenText); t.setWhiteAfter(whiteAfter); //t.setEndCol(t.getEndCol() - numCharsRemoved); //t.setLength(t.getLength() - numCharsRemoved); } else { // split "xyz=" into "xyz" "=" Token eq = new Token(); eq.setTerminal(Terminal.T_EQUALS); //eq.setFilename(t.getFilename()); //eq.setStartLine(t.getEndLine()); //eq.setStartCol(t.getEndCol()); //eq.setEndLine(t.getEndLine()); //eq.setEndCol(t.getEndCol()); //eq.setOffset(t.getOffset() + t.getLength() - 1); //eq.setLength(1); eq.setText("="); t.setText(tokenText); t.setWhiteAfter(whiteAfter); //t.setEndCol(t.getEndCol() - numCharsRemoved); //t.setLength(t.getLength() - numCharsRemoved); lengths.setElementAt(new Integer(tokenText.length()), i+j); // i+j since we might have inserted some equal signs earlier, 1 to insert after tokenStream.insertElementAt(eq, i+j+1); lineNumbers.insertElementAt(lineNumbers.get(i+j), i+j+1); colNumbers.insertElementAt(new Integer(((Integer)colNumbers.get(i+j)).intValue()+textWithoutEquals.length()), i+j+1); offsets.insertElementAt(new Integer(((Integer)offsets.get(i+j)).intValue()+textWithoutEquals.length()), i+j+1); lengths.insertElementAt(new Integer(1), i+j+1); } } // If, say, "integer*3" was changed into an identifier, split it into // three tokens: the identifier "integer", the asterisk, and the number 3 for (int j = 0; j < identifiersStarred.size(); j++) { // i is the position of the "integer*3" token in tokenStream int i = ((Integer)identifiersStarred.elementAt(j)).intValue(); // t is the "integer*3" token: split it Token t = (Token)tokenStream.elementAt(i); int starPos = t.getText().indexOf("*"); String textBeforeStar = t.getText().substring(0, starPos); String textAfterStar = t.getText().substring(starPos+1, t.getText().length()); //int numCharsRemoved = t.getTokenText().length() - textAfterStar.length() - 1; // split "integer*3" into "integer" "*" "3" Token star = new Token(); star.setTerminal(Terminal.T_ASTERISK); //star.setFilename(t.getFilename()); //star.setStartLine(t.getEndLine()); //star.setEndLine(t.getEndLine()); //star.setStartCol(t.getEndCol() - textAfterStar.length()); //star.setEndCol(t.getEndCol() - textAfterStar.length()); //star.setOffset(t.getOffset() + textBeforeStar.length()); //star.setLength(1); star.setText("*"); Token num = new Token(); num.setTerminal(Terminal.T_ICON); //num.setFilename(t.getFilename()); //num.setStartLine(star.getEndLine()); //num.setStartCol(star.getEndCol() + 1); //num.setEndLine(num.getStartLine()); //num.setEndCol(num.getStartCol() + textAfterStar.length() - 1); //num.setOffset(star.getOffset() + 1); //num.setLength(textAfterStar.length()); num.setText(textAfterStar); t.setText(textBeforeStar); //t.setEndCol(t.getEndCol() - numCharsRemoved); //t.setLength(t.getLength() - numCharsRemoved); lengths.setElementAt(new Integer(textBeforeStar.length()), i+(2*j)); // i+(2*j) since we might have inserted some asterisks and integers earlier, 1 to insert after tokenStream.insertElementAt(star, i+(2*j)+1); lineNumbers.insertElementAt(lineNumbers.get(i+(2*j)), i+(2*j)+1); colNumbers.insertElementAt(new Integer(((Integer)colNumbers.get(i+(2*j))).intValue()+textBeforeStar.length()), i+(2*j)+1); offsets.insertElementAt(new Integer(((Integer)offsets.get(i+(2*j))).intValue()+textBeforeStar.length()), i+(2*j)+1); lengths.insertElementAt(new Integer(1), i+(2*j)+1); tokenStream.insertElementAt(num, i+(2*j)+2); lineNumbers.insertElementAt(lineNumbers.get(i+(2*j)+1), i+(2*j)+2); colNumbers.insertElementAt(new Integer(((Integer)colNumbers.get(i+(2*j)+1)).intValue()+textBeforeStar.length()+1), i+(2*j)+2); offsets.insertElementAt(new Integer(((Integer)offsets.get(i+(2*j)+1)).intValue()+textBeforeStar.length()+1), i+(2*j)+2); lengths.insertElementAt(new Integer(1), i+(2*j)+2); } } | 2979 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2979/4418cdf6c5f7778c374fff1dc81b5c223e5d39c4/FreeFormLexerPhase2.java/buggy/org.eclipse.photran.core/parser/org/eclipse/photran/internal/core/lexer/FreeFormLexerPhase2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2230,
7173,
1435,
565,
288,
3639,
5589,
9863,
24344,
5812,
2766,
87,
273,
394,
5589,
5621,
3639,
5589,
9863,
18379,
1118,
273,
394,
5589,
5621,
3639,
364,
261,
474,
277,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2230,
7173,
1435,
565,
288,
3639,
5589,
9863,
24344,
5812,
2766,
87,
273,
394,
5589,
5621,
3639,
5589,
9863,
18379,
1118,
273,
394,
5589,
5621,
3639,
364,
261,
474,
277,
273,
3... | |
public static /*@pure@*/ int[] sort(/*@non_null@*/ double [] array) { | public static /*@pure@*/ int[] sort(int [] array) { | public static /*@pure@*/ int[] sort(/*@non_null@*/ double [] array) { int [] index = new int[array.length]; array = (double [])array.clone(); for (int i = 0; i < index.length; i++) { index[i] = i; if (Double.isNaN(array[i])) { array[i] = Double.MAX_VALUE; } } quickSort(array, index, 0, array.length - 1); return index; } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/2ad1f67baf6f30d300e18ce48f324c56c71c3c37/Utils.java/buggy/core/Utils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1748,
36,
84,
594,
36,
5549,
509,
8526,
1524,
12,
474,
5378,
526,
13,
288,
565,
509,
5378,
770,
273,
394,
509,
63,
1126,
18,
2469,
15533,
565,
526,
273,
261,
9056,
5378,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1748,
36,
84,
594,
36,
5549,
509,
8526,
1524,
12,
474,
5378,
526,
13,
288,
565,
509,
5378,
770,
273,
394,
509,
63,
1126,
18,
2469,
15533,
565,
526,
273,
261,
9056,
5378,
13... |
return this.getSession().createQuery(queryString); | return this.getDelegatedSession().createQuery(queryString); | public Query createQuery(String queryString) throws HibernateException { try { return this.getSession().createQuery(queryString); } catch (HibernateException ex) { this.invalidateSession(); throw this.handleException(ex); } } | 9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/8a6aedd245de4f4ab4eb9c668d2f41d33c4c057a/SessionDelegator.java/buggy/trunk/java/hibernate3/src/java/org/nanocontainer/hibernate3/SessionDelegator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
17698,
12,
780,
11337,
13,
1216,
670,
24360,
503,
288,
3639,
775,
288,
5411,
327,
333,
18,
588,
15608,
690,
2157,
7675,
2640,
1138,
12,
2271,
780,
1769,
3639,
289,
1044,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
17698,
12,
780,
11337,
13,
1216,
670,
24360,
503,
288,
3639,
775,
288,
5411,
327,
333,
18,
588,
15608,
690,
2157,
7675,
2640,
1138,
12,
2271,
780,
1769,
3639,
289,
1044,
261,
... |
} else { | } else if (obj != null) { | public Long getLong(final int _index) { Long ret = null; Object obj = getObject(_index); if (obj instanceof Number) { ret = ((Number) obj).longValue(); } else { ret = Long.parseLong(obj.toString()); } return ret; } | 50266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50266/19d0d01f4076902f3da0b154d63f99ce284cc3e7/CachedResult.java/clean/kernel/src/main/java/org/efaps/db/query/CachedResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3407,
11105,
12,
6385,
509,
389,
1615,
13,
225,
288,
565,
3407,
325,
273,
446,
31,
565,
1033,
1081,
273,
6455,
24899,
1615,
1769,
565,
309,
261,
2603,
1276,
3588,
13,
225,
288,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3407,
11105,
12,
6385,
509,
389,
1615,
13,
225,
288,
565,
3407,
325,
273,
446,
31,
565,
1033,
1081,
273,
6455,
24899,
1615,
1769,
565,
309,
261,
2603,
1276,
3588,
13,
225,
288,
13... |
&& (getBufferCount() == 0 || jEdit.getBooleanProperty("restore.cli")); | && (getBufferCount() == 0 || jEdit.getBooleanProperty("restore.cli")); | private static void finishStartup(final boolean gui, final boolean restore, final String userDir, final String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { Buffer buffer = openFiles(null,userDir,args); View view = null; boolean restoreFiles = restore && jEdit.getBooleanProperty("restore") && (getBufferCount() == 0 || jEdit.getBooleanProperty("restore.cli")); if(gui || getBufferCount() != 0) { view = PerspectiveManager.loadPerspective(restoreFiles); if(getBufferCount() == 0) buffer = newFile(null); if(view == null) view = newView(null,buffer); else if(buffer != null) view.setBuffer(buffer); } // Start I/O threads EditBus.send(new EditorStarted(null)); VFSManager.start(); // Start edit server if(server != null) server.start(); GUIUtilities.hideSplashScreen(); Log.log(Log.MESSAGE,jEdit.class,"Startup " + "complete"); //{{{ Report any plugin errors if(pluginErrors != null) { showPluginErrorDialog(); } //}}} startupDone = true; // in one case not a single AWT class will // have been touched (splash screen off + // -nogui -nobackground switches on command // line) Toolkit.getDefaultToolkit(); } }); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/6028db306a1e52b22690da6fb3892ee9f8dee3ea/jEdit.java/buggy/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
4076,
22178,
12,
6385,
1250,
13238,
16,
727,
1250,
5217,
16,
202,
202,
6385,
514,
729,
1621,
16,
727,
514,
8526,
833,
13,
202,
95,
202,
202,
6050,
310,
11864,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
4076,
22178,
12,
6385,
1250,
13238,
16,
727,
1250,
5217,
16,
202,
202,
6385,
514,
729,
1621,
16,
727,
514,
8526,
833,
13,
202,
95,
202,
202,
6050,
310,
11864,
18,
... |
public abstract void put (String name, int value); | public abstract void put (String name, boolean value); | public abstract void put (String name, int value); | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/02b8175ac4316ed7d6d5043de356955872dd3172/ObjectOutputStream.java/buggy/libraries/javalib/java/io/ObjectOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
918,
1378,
261,
780,
508,
16,
509,
460,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
918,
1378,
261,
780,
508,
16,
509,
460,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return tagify("TT", null, null); | return tagify("tt", null, null); | private String jsFunction_fixed() { return tagify("TT", null, null); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e4c32e2c7bcbcebcd19b29115abbd924e9039485/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3828,
2083,
67,
12429,
1435,
288,
3639,
327,
1047,
1164,
2932,
748,
3113,
446,
16,
446,
1769,
565,
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,
377,
3238,
514,
3828,
2083,
67,
12429,
1435,
288,
3639,
327,
1047,
1164,
2932,
748,
3113,
446,
16,
446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
} | } | public void writeFile(String filename, String exportpoint, byte[] content) { File discFile = new File(absoluteName(filename, exportpoint)); try { OutputStream s = new FileOutputStream(discFile); s.write(content); s.close(); } catch (Exception e) { if (OpenCms.getLog(this).isErrorEnabled()) { OpenCms.getLog(this).error("Couldn't write to export point file " + discFile.getAbsolutePath(), e); } } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/a7ffa3c192d7068f584b0a3a844b88bdb2d3145a/CmsExportPointDriver.java/clean/src/org/opencms/db/CmsExportPointDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13286,
12,
780,
1544,
16,
514,
3359,
1153,
16,
1160,
8526,
913,
13,
288,
3639,
1387,
19169,
812,
273,
394,
1387,
12,
12547,
461,
12,
3459,
16,
3359,
1153,
10019,
3639,
775,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13286,
12,
780,
1544,
16,
514,
3359,
1153,
16,
1160,
8526,
913,
13,
288,
3639,
1387,
19169,
812,
273,
394,
1387,
12,
12547,
461,
12,
3459,
16,
3359,
1153,
10019,
3639,
775,
2... |
if (hasStaticInitializer(field)) { | if(hasStaticInitializer(field)){ | private SerialVersionUIDBuilder(PsiClass clazz) { this.clazz = clazz; nonPrivateMethods = new HashSet(); final PsiMethod[] methods = clazz.getMethods(); for (int i = 0; i < methods.length; i++) { final PsiMethod method = methods[i]; if (!method.isConstructor() && !method.hasModifierProperty(PsiModifier.PRIVATE)) { final MemberSignature methodSignature = new MemberSignature(method); nonPrivateMethods.add(methodSignature); } } nonPrivateFields = new HashSet(); final PsiField[] fields = clazz.getFields(); for (int i = 0; i < fields.length; i++) { final PsiField field = fields[i]; if (!field.hasModifierProperty(PsiModifier.PRIVATE) || !(field.hasModifierProperty(PsiModifier.STATIC) | field.hasModifierProperty(PsiModifier.TRANSIENT))) { final MemberSignature fieldSignature = new MemberSignature(field); nonPrivateFields.add(fieldSignature); } } staticInitializers = new ArrayList(); final PsiClassInitializer[] initializers = clazz.getInitializers(); if (initializers.length > 0) { for (int i = 0; i < initializers.length; i++) { final PsiClassInitializer initializer = initializers[i]; final PsiModifierList modifierList = initializer.getModifierList(); if (modifierList.hasModifierProperty(PsiModifier.STATIC)) { final MemberSignature initializerSignature = MemberSignature.getStaticInitializerMemberSignature(); staticInitializers.add(initializerSignature); break; } } } if (staticInitializers.isEmpty()) { final PsiField[] psiFields = clazz.getFields(); for (int i = 0; i < psiFields.length; i++) { final PsiField field = psiFields[i]; if (hasStaticInitializer(field)) { final MemberSignature initializerSignature = MemberSignature.getStaticInitializerMemberSignature(); staticInitializers.add(initializerSignature); break; } } } nonPrivateConstructors = new HashSet(); final PsiMethod[] constructors = clazz.getConstructors(); if (constructors.length == 0 && !clazz.isInterface()) { // generated empty constructor if no constructor is defined in the source final MemberSignature constructorSignature; if (clazz.hasModifierProperty(PsiModifier.PUBLIC)) { constructorSignature = MemberSignature.getPublicConstructor(); } else { constructorSignature = MemberSignature.getPackagePrivateConstructor(); } nonPrivateConstructors.add(constructorSignature); } for (int i = 0; i < constructors.length; i++) { final PsiMethod constructor = constructors[i]; if (!constructor.hasModifierProperty(PsiModifier.PRIVATE)) { final MemberSignature constructorSignature = new MemberSignature(constructor); nonPrivateConstructors.add(constructorSignature); } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/SerialVersionUIDBuilder.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/SerialVersionUIDBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
7366,
1444,
3060,
1263,
12,
52,
7722,
797,
4003,
13,
565,
288,
3639,
333,
18,
830,
3638,
273,
4003,
31,
3639,
1661,
6014,
4712,
273,
394,
6847,
5621,
3639,
727,
453,
7722,
1305,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
7366,
1444,
3060,
1263,
12,
52,
7722,
797,
4003,
13,
565,
288,
3639,
333,
18,
830,
3638,
273,
4003,
31,
3639,
1661,
6014,
4712,
273,
394,
6847,
5621,
3639,
727,
453,
7722,
1305,
8... |
event.doit= false; | event.doit = false; | public void verifyKey(VerifyEvent event) { // early pruning to slow down normal typing as little as possible if (!event.doit) return; switch (event.character) { case '(': case '{': case '[': case '$': case '"': break; default: return; } IDocument document = sourceViewer.getDocument(); final Point selection = sourceViewer.getSelectedRange(); final int offset = selection.x; final int length = selection.y; final char character = event.character; try { char next = ' '; char last = ' '; try { next = document.getChar(offset); last = document.getChar(offset-1); } catch (BadLocationException e) { } if (last == '\\') return; if (character == '"'){ //Replace quotation marks if (!TexlipsePlugin.getDefault().getPreferenceStore() .getBoolean(TexlipseProperties.TEX_REPLACE_QUOTES)) return; String mark; if (Character.isWhitespace(last)) mark = getQuotes(true); else if (Character.isWhitespace(next)) mark = getQuotes(false); else return; document.replace(offset, length, mark); sourceViewer.setSelectedRange(offset+mark.length(), 0); event.doit = false; return; } if (!TexlipsePlugin.getDefault().getPreferenceStore() .getBoolean(TexlipseProperties.TEX_BRACKET_COMLETION)) return; if (Character.isWhitespace(next) || isBracket(next)){ //For a dollar sign we need a whitespace before and after the letter if (character == '$' && !Character.isWhitespace(last)) return; } else return; final char closingCharacter= getPeerCharacter(character); final StringBuffer buffer= new StringBuffer(); buffer.append(character); buffer.append(closingCharacter); document.replace(offset, length, buffer.toString()); BracketLevel level= new BracketLevel(); fBracketLevelStack.push(level); LinkedPositionGroup group= new LinkedPositionGroup(); group.addPosition(new LinkedPosition(document, offset + 1, 0, LinkedPositionGroup.NO_STOP)); LinkedModeModel model= new LinkedModeModel(); model.addLinkingListener(this); model.addGroup(group); model.forceInstall(); level.fOffset= offset; level.fLength= 2; // set up position tracking for our magic peers if (fBracketLevelStack.size() == 1) { document.addPositionCategory(CATEGORY); document.addPositionUpdater(fUpdater); } level.fFirstPosition= new Position(offset, 1); level.fSecondPosition= new Position(offset + 1, 1); document.addPosition(CATEGORY, level.fFirstPosition); document.addPosition(CATEGORY, level.fSecondPosition); level.fUI= new EditorLinkedModeUI(model, sourceViewer); level.fUI.setSimpleMode(true); level.fUI.setExitPolicy(new ExitPolicy(closingCharacter, (char)0, fBracketLevelStack, sourceViewer)); level.fUI.setExitPosition(sourceViewer, offset + 2, 0, Integer.MAX_VALUE); level.fUI.setCyclingMode(LinkedModeUI.CYCLE_NEVER); level.fUI.enter(); IRegion newSelection= level.fUI.getSelectedRegion(); sourceViewer.setSelectedRange(newSelection.getOffset(), newSelection.getLength()); event.doit= false; } catch (BadLocationException e) { } catch (BadPositionCategoryException e) { } } | 9028 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9028/1c7c79e15150bceef6e3353d6c87c8bc905669be/BracketInserter.java/buggy/source/net/sourceforge/texlipse/editor/BracketInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3929,
653,
12,
8097,
1133,
871,
13,
288,
202,
202,
759,
11646,
846,
13036,
358,
11816,
2588,
2212,
13408,
487,
12720,
487,
3323,
202,
202,
430,
16051,
2575,
18,
2896,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3929,
653,
12,
8097,
1133,
871,
13,
288,
202,
202,
759,
11646,
846,
13036,
358,
11816,
2588,
2212,
13408,
487,
12720,
487,
3323,
202,
202,
430,
16051,
2575,
18,
2896,
305,
... |
new TableLayoutConstraints(0, 8, 0, 8, | new TableLayoutConstraints(0, 9, 0, 9, | private void jbInit() throws Exception { mButtonPanel.setLayout(mButtonPanelLayout); mOkButton.setEnabled(false); mOkButton.setText("OK"); mOkButton.addActionListener(new WallEditorDialog_mOkButton_actionAdapter(this)); mCancelButton.setText("Cancel"); mCancelButton.addActionListener(new WallEditorDialog_mCancelButton_actionAdapter(this)); mHelpButton.setEnabled(false); mHelpButton.setDoubleBuffered(false); mHelpButton.setText("Help"); mHelpButton.addActionListener(new WallEditorDialog_mHelpButton_actionAdapter(this)); mMainPanel.setLayout(mMainPanelLayout); mCornerPanel.setLayout(mCornerPanelLayout); mUnitsLabel.setLabelFor(mUnitsComboBox); mUnitsLabel.setText("Physical Units"); mPlaneLabel.setLabelFor(mPlanePanel); mPlaneLabel.setText("Plane of the Surface"); mCustomPlaneXLabel.setEnabled(false); mCustomPlaneXLabel.setLabelFor(mCustomPlaneXField); mCustomPlaneXLabel.setText("X"); mCustomPlaneXField.setEnabled(false); mCustomPlaneXField.setMinimumSize(new Dimension(40, 19)); mCustomPlaneXField.setPreferredSize(new Dimension(45, 19)); mCustomPlaneXField.setToolTipText("Rotation about the X-axis in degrees"); mCustomPlaneXField.setHorizontalAlignment(SwingConstants.TRAILING); mCustomPlaneYLabel.setEnabled(false); mCustomPlaneYLabel.setLabelFor(mCustomPlaneYField); mCustomPlaneYLabel.setText("Y"); mCustomPlaneYField.setEnabled(false); mCustomPlaneYField.setMinimumSize(new Dimension(40, 19)); mCustomPlaneYField.setPreferredSize(new Dimension(45, 19)); mCustomPlaneYField.setToolTipText("Rotation about the Y-axis in degrees"); mCustomPlaneYField.setHorizontalAlignment(SwingConstants.TRAILING); mCustomPlaneZLabel.setEnabled(false); mCustomPlaneZLabel.setLabelFor(mCustomPlaneZField); mCustomPlaneZLabel.setText("Z"); mCustomPlaneZField.setEnabled(false); mCustomPlaneZField.setMinimumSize(new Dimension(40, 19)); mCustomPlaneZField.setPreferredSize(new Dimension(45, 19)); mCustomPlaneZField.setToolTipText("Rotation about the Z-axis in degrees"); mCustomPlaneZField.setHorizontalAlignment(SwingConstants.TRAILING); jLabel1.setText("("); mCornerXField.setMinimumSize(new Dimension(35, 19)); mCornerXField.setPreferredSize(new Dimension(60, 19)); mCornerXField.setToolTipText("X-coordinate for the surface corner"); mCornerXField.setHorizontalAlignment(SwingConstants.TRAILING); jLabel2.setText(","); mCornerYField.setMinimumSize(new Dimension(35, 19)); mCornerYField.setPreferredSize(new Dimension(60, 19)); mCornerYField.setToolTipText("Y-coordinate for the surface corner"); mCornerYField.setHorizontalAlignment(SwingConstants.TRAILING); jLabel3.setText(","); mCornerZField.setMinimumSize(new Dimension(35, 19)); mCornerZField.setPreferredSize(new Dimension(60, 19)); mCornerZField.setToolTipText("Z-coordinate for the surface corner"); mCornerZField.setHorizontalAlignment(SwingConstants.TRAILING); jLabel4.setText(")"); mDimensionsLabel.setLabelFor(mDimensionsPanel); mDimensionsLabel.setText("Surface Dimensions"); mWallWidthField.setMinimumSize(new Dimension(40, 19)); mWallWidthField.setPreferredSize(new Dimension(60, 19)); mWallWidthField.addPropertyChangeListener(new WallEditorDialog_mWallWidthField_propertyChangeAdapter(this)); mWallWidthField.setHorizontalAlignment(SwingConstants.TRAILING); mDimensionsXLabel.setText("\u00d7"); mWallHeightField.setMinimumSize(new Dimension(40, 19)); mWallHeightField.setPreferredSize(new Dimension(60, 19)); mWallHeightField.addPropertyChangeListener(new WallEditorDialog_mWallHeightField_propertyChangeAdapter(this)); mCornerIconLabel.setText(""); mCornerLabel.setHorizontalAlignment(SwingConstants.CENTER); mCornerLabel.setHorizontalTextPosition(SwingConstants.LEADING); mCornerLabel.setLabelFor(mCornerPanel); mCornerLabel.setText("Set Single Corner"); mCornerLabel.setVerticalAlignment(javax.swing.SwingConstants.TOP); mCornerLabel.setVerticalTextPosition(javax.swing.SwingConstants.CENTER); mUnitsComboBox.addActionListener(new WallEditorDialog_mUnitsComboBox_actionAdapter(this)); mPlaneChooser.addActionListener(new WallEditorDialog_mPlaneChooser_actionAdapter(this)); mUnitsComboBox.setToolTipText("The units of measurement used for physical locations to be entered below"); mPlaneChooser.setToolTipText("The physical plane along which the surface is aligned"); mSurfaceTypeLabel.setLabelFor(mSurfaceTypeChooser); mSurfaceTypeLabel.setText("Surface Type"); mSurfaceTypeChooser.addActionListener(new WallEditorDialog_mSurfaceTypeChooser_actionAdapter(this)); mTrackerProxyLabel.setEnabled(false); mTrackerProxyLabel.setLabelFor(mTrackerProxyEditor); mTrackerProxyLabel.setText("Surface Tracker Proxy"); mTrackerProxyEditor.setEnabled(false); mUserLabel.setLabelFor(mUserEditor); mUserLabel.setText("User"); mCornerChooser.addActionListener(new WallEditorDialog_mCornerChooser_actionAdapter(this)); mMainPanel.add(mSurfaceTypeLabel, new TableLayoutConstraints(0, 0, 0, 0, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mSurfaceTypeChooser, new TableLayoutConstraints(2, 0, 2, 0, TableLayout.FULL, TableLayout.FULL)); mMainPanel.add(mTrackerProxyLabel, new TableLayoutConstraints(0, 2, 0, 2, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mTrackerProxyEditor, new TableLayoutConstraints(2, 2, 2, 2, TableLayout.FULL, TableLayout.FULL)); mMainPanel.add(mUnitsLabel, new TableLayoutConstraints(0, 4, 0, 4, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mUnitsComboBox, new TableLayoutConstraints(2, 4, 2, 4, TableLayout.FULL, TableLayout.FULL)); mMainPanel.add(mPlaneLabel, new TableLayoutConstraints(0, 5, 0, 5, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mPlanePanel, new TableLayoutConstraints(2, 5, 2, 5, TableLayout.FULL, TableLayout.FULL)); mMainPanel.add(mCustomPlanePanel, new TableLayoutConstraints(2, 6, 2, 6, TableLayout.FULL, TableLayout.FULL)); mMainPanel.add(mCornerLabel, new TableLayoutConstraints(0, 7, 0, 7, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mCornerPanel, new TableLayoutConstraints(2, 7, 2, 8, TableLayout.FULL, TableLayout.FULL)); mMainPanel.add(mCornerIconLabel, new TableLayoutConstraints(0, 8, 0, 8, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mDimensionsLabel, new TableLayoutConstraints(0, 9, 0, 9, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mDimensionsPanel, new TableLayoutConstraints(2, 9, 2, 9, TableLayout.FULL, TableLayout.FULL)); mMainPanel.add(mUserLabel, new TableLayoutConstraints(0, 10, 0, 10, TableLayout.LEFT, TableLayout.FULL)); mMainPanel.add(mUserEditor, new TableLayoutConstraints(2, 10, 2, 10, TableLayout.FULL, TableLayout.FULL)); mCornerPanel.add(mCornerChooser, new TableLayoutConstraints(0, 0, 0, 0, TableLayout.FULL, TableLayout.FULL)); mCornerPanel.add(mCustomCornerPanel, new TableLayoutConstraints(0, 2, 0, 2, TableLayout.FULL, TableLayout.FULL)); mPlanePanel.add(mPlaneChooser, null); mCustomPlanePanel.add(mCustomPlaneXLabel, null); mCustomPlanePanel.add(mCustomPlaneXField, null); mCustomPlanePanel.add(mCustomPlaneYLabel, null); mCustomPlanePanel.add(mCustomPlaneYField, null); mCustomPlanePanel.add(mCustomPlaneZLabel, null); mCustomPlanePanel.add(mCustomPlaneZField, null); mCustomCornerPanel.add(jLabel1, null); mCustomCornerPanel.add(mCornerXField, null); mCustomCornerPanel.add(jLabel2, null); mCustomCornerPanel.add(mCornerYField, null); mCustomCornerPanel.add(jLabel3, null); mCustomCornerPanel.add(mCornerZField, null); mCustomCornerPanel.add(jLabel4, null); mDimensionsPanel.add(mWallWidthField, null); mDimensionsPanel.add(mDimensionsXLabel, null); mDimensionsPanel.add(mWallHeightField, null); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/59df81b6824e8fbe5274b992270f96e9797a38fe/WallEditorDialog.java/buggy/modules/vrjuggler/vrjconfig/customeditors/cave/org/vrjuggler/vrjconfig/customeditors/cave/WallEditorDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
20515,
2570,
1435,
1216,
1185,
282,
288,
1377,
312,
3616,
5537,
18,
542,
3744,
12,
81,
3616,
5537,
3744,
1769,
1377,
312,
8809,
3616,
18,
542,
1526,
12,
5743,
1769,
1377,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
20515,
2570,
1435,
1216,
1185,
282,
288,
1377,
312,
3616,
5537,
18,
542,
3744,
12,
81,
3616,
5537,
3744,
1769,
1377,
312,
8809,
3616,
18,
542,
1526,
12,
5743,
1769,
1377,
312,
... |
public void dumpJniRefsStack () { | public void dumpJniRefsStack () throws VM_PragmaUninterruptible { | public void dumpJniRefsStack () { int jniRefOffset = JNIRefsTop; VM.sysWrite("\n* * dump of JNIEnvironment JniRefs Stack * *\n"); VM.sysWrite("* JNIRefs = "); VM.sysWrite(VM_Magic.objectAsAddress(JNIRefs)); VM.sysWrite(" * JNIRefsTop = "); VM.sysWrite(JNIRefsTop,false); VM.sysWrite(" * JNIRefsSavedFP = "); VM.sysWrite(JNIRefsSavedFP); VM.sysWrite(".\n*\n"); while ( jniRefOffset >= 0 ) { VM.sysWrite(jniRefOffset,false); VM.sysWrite(" "); VM.sysWrite(VM_Magic.objectAsAddress(JNIRefs).add(jniRefOffset)); VM.sysWrite(" "); VM_Interface.dumpRef(VM_Address.fromInt(JNIRefs[jniRefOffset >> 2])); jniRefOffset -= 4; } VM.sysWrite("\n* * end of dump * *\n"); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/6868d22dac2624c828acfc4444ba812a9908f598/VM_JNIEnvironment.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNIEnvironment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4657,
46,
15834,
9837,
2624,
1832,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
509,
525,
15834,
1957,
2335,
273,
804,
50,
45,
9837,
3401,
31,
565,
8251,
18,
9499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4657,
46,
15834,
9837,
2624,
1832,
1216,
8251,
67,
2050,
9454,
984,
31847,
1523,
288,
565,
509,
525,
15834,
1957,
2335,
273,
804,
50,
45,
9837,
3401,
31,
565,
8251,
18,
9499,
... |
if (type == null) throw new ParseException("type is missing"); short t = VolumeUtil.getTypeId(type); if (t < 0) throw new IllegalArgumentException("invalid volume type: " + type); | public static void main(String[] args) { Zimbra.toolSetup(); VolumeUtil util = null; try { util = new VolumeUtil(); CommandLine cl = util.getCommandLine(args); if (cl == null) return; String id = cl.getOptionValue(O_ID); String type = cl.getOptionValue(O_T); String name = cl.getOptionValue(O_N); String path = cl.getOptionValue(O_P);// String fileBits = cl.getOptionValue(O_FB);// String fileGroupBits = cl.getOptionValue(O_FGB);// String mailboxBits = cl.getOptionValue(O_MB);// String mailboxGroupBits = cl.getOptionValue(O_MGB); String compress = cl.getOptionValue(O_C); String compressThreshold = cl.getOptionValue(O_CT); if (cl.hasOption(O_A)) { if (id != null) throw new IllegalArgumentException("id cannot be specified when adding a volume");// util.addVolume(name, type, path, fileBits, fileGroupBits, mailboxBits, mailboxGroupBits, compress, compressThreshold); util.addVolume(name, type, path, null, null, null, null, compress, compressThreshold); } else if (cl.hasOption(O_D)) { if (id == null) throw new ParseException("volume id is missing"); util.deleteVolume(id); } else if (cl.hasOption(O_L)) { util.listVolumes(id, true); } else if (cl.hasOption(O_E)) { if (id == null) throw new ParseException("volume id is missing");// util.editVolume(id, name, type, path, fileBits, fileGroupBits, mailboxBits, mailboxGroupBits, compress, compressThreshold); util.editVolume(id, name, type, path, null, null, null, null, compress, compressThreshold); } else if (cl.hasOption(O_DC)) { util.displayCurrentVolumes(); } else if (cl.hasOption(O_SC)) { if (id == null) throw new ParseException("volume id is missing"); if (type == null) throw new ParseException("type is missing"); short t = VolumeUtil.getTypeId(type); if (t < 0) throw new IllegalArgumentException("invalid volume type: " + type); short shortId = Short.parseShort(id); if (shortId < 0) throw new IllegalArgumentException("id cannot be less than 0"); util.setCurrentVolume(shortId, t); } else if (cl.hasOption(O_TS)) { util.setCurrentVolume(Volume.ID_NONE, Volume.TYPE_MESSAGE_SECONDARY); } else { throw new ParseException("No action (-a,-d,-l,-e,-dc,-sc,-ts) is specified"); } System.exit(0); } catch (ParseException e) { util.usage(e); } catch (Exception e) { System.err.println("Error occurred: " + e.getMessage()); } System.exit(1); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/2e348c30ac6acdb6dc5c517a1a9c0ad86e4a4ec4/VolumeUtil.java/clean/ZimbraServer/src/java/com/zimbra/cs/store/VolumeUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
2285,
381,
15397,
18,
6738,
7365,
5621,
3639,
7404,
1304,
1709,
273,
446,
31,
3639,
775,
288,
5411,
1709,
273,
394,
7404,
1304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
2285,
381,
15397,
18,
6738,
7365,
5621,
3639,
7404,
1304,
1709,
273,
446,
31,
3639,
775,
288,
5411,
1709,
273,
394,
7404,
1304,
... | |
} if (adapter.equals(IUndoContext.class)) { return undoContext; } if (adapter.equals(IProgressMonitor.class)) { if (progressDialog != null) return progressDialog.getProgressMonitor(); | IWorkbenchPart part = site.getPart(); if (part != null) return part.getAdapter(adapter); | public Object getAdapter(Class adapter) { if (site != null) { if (adapter.equals(Shell.class)) { return getWorkbenchWindow().getShell(); } if (adapter.equals(IWorkbenchWindow.class)) { return getWorkbenchWindow(); } if (adapter.equals(IWorkbenchPart.class)) { return site.getPart(); } } if (adapter.equals(IUndoContext.class)) { return undoContext; } if (adapter.equals(IProgressMonitor.class)) { if (progressDialog != null) return progressDialog.getProgressMonitor(); } return null; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6e874ed575c444055f39cce002e998fe3b456de4/OperationHistoryActionHandler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/OperationHistoryActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
16679,
12,
797,
4516,
13,
288,
202,
202,
430,
261,
4256,
480,
446,
13,
288,
1082,
202,
430,
261,
10204,
18,
14963,
12,
13220,
18,
1106,
3719,
288,
9506,
202,
2463,
29026... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
16679,
12,
797,
4516,
13,
288,
202,
202,
430,
261,
4256,
480,
446,
13,
288,
1082,
202,
430,
261,
10204,
18,
14963,
12,
13220,
18,
1106,
3719,
288,
9506,
202,
2463,
29026... |
jjCheckNAddTwoStates(12, 13); | jjCheckNAddTwoStates(7, 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,... |
if (checkIfUsernameExists(newUsername, this)) { | if (Login.checkIfUsernameExists(newUsername, this.getLoginIdentification())) { | public void changeUsername(String newUsername) { if (newUsername == null || newUsername.equals("")) { throw new DomainException("error.person.nullOrEmptyUsername"); } if (getUser() == null) { throw new DomainException("error.person.unExistingUser"); } if (checkIfUsernameExists(newUsername, this)) { throw new DomainException("error.person.existingUsername"); } setUsername(newUsername); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/5cf399332d8408f1931065e274acf34fd43b7af8/Person.java/clean/src/net/sourceforge/fenixedu/domain/Person.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2549,
8575,
12,
780,
394,
8575,
13,
288,
3639,
309,
261,
2704,
8575,
422,
446,
747,
394,
8575,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
24569,
2932,
1636,
18,
12479,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2549,
8575,
12,
780,
394,
8575,
13,
288,
3639,
309,
261,
2704,
8575,
422,
446,
747,
394,
8575,
18,
14963,
2932,
6,
3719,
288,
5411,
604,
394,
24569,
2932,
1636,
18,
12479,
18... |
yearToUse = thisYear + (monthToUse / MAX) - 1; | yearToUse = thisYear + (monthToUse / iMax) - 1; | public long add(long instant, int months) { if (months == 0) { return instant; // the easy case } // // Save time part first. // long timePart = iChronology.getMillisOfDay(instant); // // // Get this year and month. // int thisYear = iChronology.getYear(instant); int thisMonth = iChronology.getMonthOfYear(instant, thisYear); // ---------------------------------------------------------- // // Do not refactor without careful consideration. // Order of calculation is important. // int yearToUse; // Initially, monthToUse is zero-based int monthToUse = thisMonth - 1 + months; if (monthToUse >= 0) { yearToUse = thisYear + (monthToUse / MAX); monthToUse = (monthToUse % MAX) + 1; } else { yearToUse = thisYear + (monthToUse / MAX) - 1; monthToUse = Math.abs(monthToUse); int remMonthToUse = monthToUse % MAX; // Take care of the boundary condition if (remMonthToUse == 0) { remMonthToUse = MAX; } monthToUse = MAX - remMonthToUse + 1; // Take care of the boundary condition if (monthToUse == 1) { yearToUse += 1; } } // End of do not refactor. // ---------------------------------------------------------- // // Quietly force DOM to nearest sane value. // int dayToUse = iChronology.getDayOfMonth(instant, thisYear, thisMonth); int maxDay = iChronology.getDaysInYearMonth(yearToUse, monthToUse); if (dayToUse > maxDay) { dayToUse = maxDay; } // // get proper date part, and return result // long datePart = iChronology.getYearMonthDayMillis(yearToUse, monthToUse, dayToUse); return datePart + timePart; } | 52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/638abee397a254ce348b8500f089a781395f3349/BasicMonthOfYearDateTimeField.java/clean/JodaTime/src/java/org/joda/time/chrono/BasicMonthOfYearDateTimeField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
527,
12,
5748,
5934,
16,
509,
8846,
13,
288,
3639,
309,
261,
27584,
422,
374,
13,
288,
5411,
327,
5934,
31,
368,
326,
12779,
648,
3639,
289,
3639,
368,
3639,
368,
7074,
813,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
527,
12,
5748,
5934,
16,
509,
8846,
13,
288,
3639,
309,
261,
27584,
422,
374,
13,
288,
5411,
327,
5934,
31,
368,
326,
12779,
648,
3639,
289,
3639,
368,
3639,
368,
7074,
813,... |
public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); | public quickfix.field.CreditRating getCreditRating() throws FieldNotFound { quickfix.field.CreditRating value = new quickfix.field.CreditRating(); | public org.quickfix.field.CreditRating getCreditRating() throws FieldNotFound { org.quickfix.field.CreditRating value = new org.quickfix.field.CreditRating(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteCancel.java/buggy/src/java/src/quickfix/fix44/QuoteCancel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
1927,
10430,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
16520,
20388,
460,
273,
394,
2358,
18,
19... |
public void setLogicalChannel(int channelIdx, String name, float ndFilter, int emWave, int exWave, String photometricInterpretation, String mode, Integer i) { | public void setLogicalChannel(int channelIdx, String name, Float ndFilter, Integer emWave, Integer exWave, String photometricInterpretation, String mode, Integer i) { | public void setLogicalChannel(int channelIdx, String name, float ndFilter, int emWave, int exWave, String photometricInterpretation, String mode, Integer i) { for (Iterator iter = delegates.iterator(); iter.hasNext();) { MetadataStore s = (MetadataStore) iter.next(); s.setLogicalChannel(channelIdx, name, ndFilter, emWave, exWave, photometricInterpretation, mode, i); } } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/12782552838eb820d49e5e12924a7e8e9046b5ba/AggregateMetadataStore.java/clean/loci/formats/AggregateMetadataStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
17955,
2909,
12,
474,
1904,
4223,
16,
514,
508,
16,
1431,
5346,
1586,
16,
1377,
509,
801,
22368,
16,
509,
431,
22368,
16,
514,
24542,
362,
1591,
2465,
15089,
367,
16,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
17955,
2909,
12,
474,
1904,
4223,
16,
514,
508,
16,
1431,
5346,
1586,
16,
1377,
509,
801,
22368,
16,
509,
431,
22368,
16,
514,
24542,
362,
1591,
2465,
15089,
367,
16,
51... |
public void callInit(IRubyObject[] args) { ThreadContext tc = getRuntime().getCurrentContext(); tc.setIfBlockAvailable(); try { callMethod(getRuntime().getCurrentContext(), "initialize", args); } finally { tc.clearIfBlockAvailable(); } } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/buggy/src/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
745,
2570,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
4884,
1042,
1715,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
1715,
18,
542,
2047,
1768,
5268,
5621,
3639,
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,
377,
1071,
918,
745,
2570,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
4884,
1042,
1715,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
1715,
18,
542,
2047,
1768,
5268,
5621,
3639,
775,
28... | ||
remote_str=remote != null ? Util.shortName(local.getHostName()) : "<null>"; | remote_str=remote != null ? Util.shortName(remote.getHostName()) : "<null>"; | public String toString() { StringBuffer ret=new StringBuffer(); InetAddress local=null, remote=null; String local_str, remote_str; if(sock == null) ret.append("<null socket>"); else { //since the sock variable gets set to null we want to make //make sure we make it through here without a nullpointer exception Socket tmp_sock=sock; local=tmp_sock.getLocalAddress(); remote=tmp_sock.getInetAddress(); local_str=local != null ? Util.shortName(local.getHostName()) : "<null>"; remote_str=remote != null ? Util.shortName(local.getHostName()) : "<null>"; ret.append('<' + local_str + ':' + tmp_sock.getLocalPort() + " --> " + remote_str + ':' + tmp_sock.getPort() + "> (" + ((System.currentTimeMillis() - last_access) / 1000) + " secs old)"); tmp_sock=null; } return ret.toString(); } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/3239d54501a61a05eb6b45df50b0144eb7970a31/ConnectionTable.java/buggy/src/org/jgroups/blocks/ConnectionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1762,
1435,
288,
5411,
6674,
325,
33,
2704,
6674,
5621,
5411,
14218,
1191,
33,
2011,
16,
2632,
33,
2011,
31,
5411,
514,
1191,
67,
701,
16,
2632,
67,
701,
31,
5411,
309,
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,
540,
1071,
514,
1762,
1435,
288,
5411,
6674,
325,
33,
2704,
6674,
5621,
5411,
14218,
1191,
33,
2011,
16,
2632,
33,
2011,
31,
5411,
514,
1191,
67,
701,
16,
2632,
67,
701,
31,
5411,
309,
12,
... |
public void set(org.quickfix.field.SecurityAltID value) | public void set(quickfix.field.SecurityAltID value) | public void set(org.quickfix.field.SecurityAltID value) { setField(value); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelRequest.java/clean/src/java/src/quickfix/fix43/CrossOrderCancelRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
4368,
10655,
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,
4368,
10655,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
IValidator columnValidator = column.getValidator(); if(columnValidator != null){ String errorMessage = columnValidator.isValid(value); if(errorMessage != null){ dataBindingContext.updateValidationError(new IChangeListener(){ public void handleChange(ChangeEvent changeEvent) { } },errorMessage); return; } | else { setterSig = property; target = element; | public void modify(Object element, String property, Object value) { Column column = findColumn(property); if (column == null) { return; } if (element instanceof Item) { element = ((Item) element).getData(); } IValidator columnValidator = column.getValidator(); if(columnValidator != null){ String errorMessage = columnValidator.isValid(value); if(errorMessage != null){ dataBindingContext.updateValidationError(new IChangeListener(){ public void handleChange(ChangeEvent changeEvent) { } },errorMessage); return; } } try { List getters = getNestedPorperties(property); String setterSig; Object target; if (getters.size()>1) { setterSig = (String) getters.get(getters.size()-1); getters.remove(getters.size()-1); target=getGetterValue(element,getters); } else { setterSig = property; target = element; } Method setter = target .getClass() .getMethod( "set" + setterSig.substring(0, 1).toUpperCase(Locale.ENGLISH) + setterSig.substring(1), new Class[] { column.getConverter().getModelType() }); //$NON-NLS-1$ setter.invoke(target, new Object[] { value }); return; } catch (SecurityException e) { // TODO log } catch (NoSuchMethodException e) { // TODO log } catch (IllegalArgumentException e) { // TODO log } catch (IllegalAccessException e) { // TODO log } catch (InvocationTargetException e) { // TODO log } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d8caa98900b185f0cfc43233bd835d291fa0a501/TableViewerUpdatableCollectionExtended.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/internal/viewers/TableViewerUpdatableCollectionExtended.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
5612,
12,
921,
930,
16,
514,
1272,
16,
1033,
460,
13,
288,
6862,
202,
1494,
1057,
273,
1104,
1494,
12,
4468,
1769,
6862,
202,
430,
261,
2827,
422,
446,
13,
288,
25083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
5612,
12,
921,
930,
16,
514,
1272,
16,
1033,
460,
13,
288,
6862,
202,
1494,
1057,
273,
1104,
1494,
12,
4468,
1769,
6862,
202,
430,
261,
2827,
422,
446,
13,
288,
25083,
... |
new MessageSender(messgeCtx.getEngineContext()); | new MessageSender(messgeCtx.getOperationContext().getServiceContext().getEngineContext()); | public void handleResult(MessageContext result)throws AxisFault { MessageSender sender = new MessageSender(messgeCtx.getEngineContext()); sender.send(messgeCtx); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/300f5888904c5abbc97474bfee7c9727b7c7451a/AbstractInOutAsyncMessageReceiver.java/clean/modules/core/src/org/apache/axis/receivers/AbstractInOutAsyncMessageReceiver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1640,
1253,
12,
1079,
1042,
563,
13,
15069,
15509,
7083,
288,
7734,
2350,
12021,
5793,
273,
10792,
394,
2350,
12021,
12,
81,
403,
908,
6442,
18,
588,
2988,
1042,
7675,
588,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1640,
1253,
12,
1079,
1042,
563,
13,
15069,
15509,
7083,
288,
7734,
2350,
12021,
5793,
273,
10792,
394,
2350,
12021,
12,
81,
403,
908,
6442,
18,
588,
2988,
1042,
7675,
588,
11... |
return get(0); | return "B.get_first"; | public String get_first() { return get(0); } | 3989 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3989/4cff0988871fe31f56ac37e866fbd2200ef8758c/director_string_runme.java/clean/Examples/test-suite/java/director_string_runme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
67,
3645,
1435,
288,
1377,
327,
315,
38,
18,
588,
67,
3645,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
67,
3645,
1435,
288,
1377,
327,
315,
38,
18,
588,
67,
3645,
14432,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fireValueChange(Diffs.createValueDiff(new Boolean(oldSelectionValue), new Boolean(selectionValue))); | fireValueChange(Diffs.createValueDiff(oldSelectionValue ? Boolean.TRUE : Boolean.FALSE, selectionValue ? Boolean.TRUE : Boolean.FALSE)); | public void setValue(final Object value) { boolean oldSelectionValue = selectionValue; selectionValue = value == null ? false : ((Boolean) value) .booleanValue(); button.setSelection(selectionValue); fireValueChange(Diffs.createValueDiff(new Boolean(oldSelectionValue), new Boolean(selectionValue))); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/76b7dc48ae1702a3ea63819ba80522fa8d7b9494/ButtonObservableValue.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/internal/swt/ButtonObservableValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5524,
12,
6385,
1033,
460,
13,
288,
202,
202,
6494,
1592,
6233,
620,
273,
4421,
620,
31,
202,
202,
10705,
620,
273,
460,
422,
446,
692,
629,
294,
14015,
5507,
13,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
12,
6385,
1033,
460,
13,
288,
202,
202,
6494,
1592,
6233,
620,
273,
4421,
620,
31,
202,
202,
10705,
620,
273,
460,
422,
446,
692,
629,
294,
14015,
5507,
13,
460,
... |
mainPage = new NewWizardSelectionPage(this.workbench, this.selection, wizards, primary); | mainPage = new NewWizardSelectionPage(workbench, selection, root, primary, projectsOnly); | public void addPages() { NewWizardsRegistryReader rdr = new NewWizardsRegistryReader( projectsOnly); WizardCollectionElement wizards = rdr.getWizardElements(); WorkbenchWizardElement[] primary = rdr.getPrimaryWizards(); if (categoryId != null) { WizardCollectionElement categories = wizards; StringTokenizer familyTokenizer = new StringTokenizer(categoryId, CATEGORY_SEPARATOR); while (familyTokenizer.hasMoreElements()) { categories = getChildWithID(categories, familyTokenizer .nextToken()); if (categories == null) break; } if (categories != null) wizards = categories; } mainPage = new NewWizardSelectionPage(this.workbench, this.selection, wizards, primary); addPage(mainPage); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3d694fa5580f66413fa910c2e54a03aaef1cec34/NewWizard.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
5716,
1435,
288,
3639,
1166,
27130,
87,
4243,
2514,
436,
3069,
273,
394,
1166,
27130,
87,
4243,
2514,
12,
7734,
10137,
3386,
1769,
3639,
678,
13412,
2532,
1046,
24204,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
5716,
1435,
288,
3639,
1166,
27130,
87,
4243,
2514,
436,
3069,
273,
394,
1166,
27130,
87,
4243,
2514,
12,
7734,
10137,
3386,
1769,
3639,
678,
13412,
2532,
1046,
24204,
87,
... |
{ | { | protected JFrame createFloatingFrame(JToolBar toolbar) { // FIXME: Though deprecated, this should still work. return null; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicToolBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolBarUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
804,
3219,
752,
28344,
3219,
12,
46,
6364,
5190,
12748,
13,
565,
288,
565,
368,
9852,
30,
935,
4966,
6849,
16,
333,
1410,
4859,
1440,
18,
1377,
327,
446,
31,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
804,
3219,
752,
28344,
3219,
12,
46,
6364,
5190,
12748,
13,
565,
288,
565,
368,
9852,
30,
935,
4966,
6849,
16,
333,
1410,
4859,
1440,
18,
1377,
327,
446,
31,
565,
289,
2,
-100,
... |
public void reloadData (String aServerName, int aPort, String aSearchString) { mVecVec = queryLDAP (aServerName, aPort, aSearchString); } | public void reloadData (String aServerName, int aPort, String aSearchString) { mVecVec = queryLDAP (aServerName, aPort, aSearchString); } | public void reloadData (String aServerName, int aPort, String aSearchString) { //reload the data from LDAP. mVecVec = queryLDAP (aServerName, aPort, aSearchString); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b0fa2f56cd2dcc90452b768e6b38187cfb8c30eb/AddressBook.java/buggy/grendel/addressbook/AddressBook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7749,
751,
261,
780,
279,
28434,
16,
509,
279,
2617,
16,
514,
279,
2979,
780,
13,
288,
5411,
368,
17517,
326,
501,
628,
11916,
18,
5411,
312,
12991,
12991,
273,
843,
15496,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7749,
751,
261,
780,
279,
28434,
16,
509,
279,
2617,
16,
514,
279,
2979,
780,
13,
288,
5411,
368,
17517,
326,
501,
628,
11916,
18,
5411,
312,
12991,
12991,
273,
843,
15496,
2... |
return (int) b & 0xFF; | return b & 0xFF; | public static int unsignedByteToInt(byte b) { return (int) b & 0xFF; } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/BitArray.java/buggy/src/freenet/support/BitArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
9088,
3216,
17864,
12,
7229,
324,
13,
288,
202,
202,
2463,
261,
474,
13,
324,
473,
374,
6356,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
509,
9088,
3216,
17864,
12,
7229,
324,
13,
288,
202,
202,
2463,
261,
474,
13,
324,
473,
374,
6356,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public ListDataListener[] getListDataListeners () | public ListDataListener[] getListDataListeners() | public ListDataListener[] getListDataListeners () { return (ListDataListener[]) getListeners (ListDataListener.class); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/AbstractListModel.java/clean/core/src/classpath/javax/javax/swing/AbstractListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
987,
751,
2223,
8526,
10033,
751,
5583,
1435,
225,
288,
565,
327,
261,
682,
751,
2223,
63,
5717,
336,
5583,
261,
682,
751,
2223,
18,
1106,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
987,
751,
2223,
8526,
10033,
751,
5583,
1435,
225,
288,
565,
327,
261,
682,
751,
2223,
63,
5717,
336,
5583,
261,
682,
751,
2223,
18,
1106,
1769,
225,
289,
2,
-100,
-100,
-100,
-10... |
List selectedList = new ArrayList(); | List<String> selectedList = new ArrayList<String>(); | int getChoice(final int pool, final Equipment parent, final boolean bAdd) { String choiceString = getChoiceString(); if (choiceString.length() == 0) { return 1; } final boolean forEqBuilder = choiceString.startsWith("EQBUILDER."); if (bAdd && forEqBuilder) { return 1; } List selectedList = new ArrayList(); // selected list of choices final ChooserInterface chooser = ChooserFactory.getChooserInstance(); chooser.setPoolFlag(false); chooser.setVisible(false); addAssociatedTo(selectedList); final EquipmentChoice equipChoice = buildEquipmentChoice( pool, parent, bAdd, forEqBuilder, selectedList.size()); if (!equipChoice.isBAdd()) { chooser.setPool(0); } else { chooser.setPool(equipChoice.getPool()); } chooser.setAllowsDups(equipChoice.isAllowDuplicates()); chooser.setSelectedListTerminator("|"); chooser.setTitle("Select " + equipChoice.getTitle() + " (" + getDisplayName() + ")"); Globals.sortChooserLists(equipChoice.getAvailableList(), selectedList); chooser.setAvailableList(equipChoice.getAvailableList()); chooser.setSelectedList(selectedList); chooser.setVisible(true); selectedList = chooser.getSelectedList(); setChoice(selectedList, equipChoice); return getAssociatedCount(); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/EquipmentModifier.java/clean/code/src/java/pcgen/core/EquipmentModifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
336,
10538,
12,
6385,
509,
2845,
16,
727,
19008,
11568,
982,
16,
727,
1250,
324,
986,
13,
202,
95,
202,
202,
780,
6023,
780,
273,
336,
10538,
780,
5621,
202,
202,
430,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
336,
10538,
12,
6385,
509,
2845,
16,
727,
19008,
11568,
982,
16,
727,
1250,
324,
986,
13,
202,
95,
202,
202,
780,
6023,
780,
273,
336,
10538,
780,
5621,
202,
202,
430,
261,
... |
viewBugDetailsItemActionPerformed(evt); } | viewBugDetailsItemActionPerformed(evt); } | public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugDetailsItemActionPerformed(evt); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/444dcab7d7fab88a099b7d5cc0faacb83ebedc36/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
1476,
19865,
3790,
1180,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
1476,
19865,
3790,
1180,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
... |
public void modifyNotification(ZModifySearchFolderEvent e, ZMailbox mbox) throws ServiceException { mQuery = e.getQuery(mQuery); mTypes = e.getTypes(mTypes); mSortBy = e.getSortBy(mSortBy); super.modifyNotification(e, mbox); | public void modifyNotification(ZModifyEvent e) throws ServiceException { if (e instanceof ZModifySearchFolderEvent) { ZModifySearchFolderEvent sfe = (ZModifySearchFolderEvent) e; mQuery = sfe.getQuery(mQuery); mTypes = sfe.getTypes(mTypes); mSortBy = sfe.getSortBy(mSortBy); super.modifyNotification(e); } | public void modifyNotification(ZModifySearchFolderEvent e, ZMailbox mbox) throws ServiceException { mQuery = e.getQuery(mQuery); mTypes = e.getTypes(mTypes); mSortBy = e.getSortBy(mSortBy); super.modifyNotification(e, mbox); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/48b730f3e08ad2d422ab52e47c895d1a5b1a2344/ZSearchFolder.java/buggy/ZimbraServer/src/java/com/zimbra/cs/zclient/ZSearchFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
4386,
12,
62,
11047,
2979,
3899,
1133,
425,
16,
2285,
30239,
312,
2147,
13,
1216,
16489,
288,
3639,
312,
1138,
273,
425,
18,
588,
1138,
12,
81,
1138,
1769,
3639,
312,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5612,
4386,
12,
62,
11047,
2979,
3899,
1133,
425,
16,
2285,
30239,
312,
2147,
13,
1216,
16489,
288,
3639,
312,
1138,
273,
425,
18,
588,
1138,
12,
81,
1138,
1769,
3639,
312,
2... |
public void testFileName() throws MojoExecutionException | public void testFileName() throws MojoExecutionException | public void testFileName() throws MojoExecutionException { DefaultArtifact artifact = (DefaultArtifact)artifacts.get(0); String name = DependencyUtil.getFormattedFileName(artifact,false); String expectedResult = "1-1.1.jar"; assertTrue(expectedResult.equalsIgnoreCase(name)); name = DependencyUtil.getFormattedFileName(artifact,true); expectedResult = "1.jar"; assertTrue(expectedResult.equalsIgnoreCase(name)); artifact = (DefaultArtifact)artifacts.get(1); name = DependencyUtil.getFormattedFileName(artifact,false); expectedResult = "2-sources-1.1-SNAPSHOT.war"; assertTrue(expectedResult.equalsIgnoreCase(name)); name = DependencyUtil.getFormattedFileName(artifact,true); expectedResult = "2-sources.war"; assertTrue(expectedResult.equalsIgnoreCase(name)); } | 7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/cc3a01ab903ce7a1610784db39e6913daeb39597/TestDependencyUtil.java/buggy/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/TestDependencyUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4771,
1435,
1216,
18780,
565,
288,
3639,
2989,
7581,
6462,
273,
261,
1868,
7581,
13,
30347,
18,
588,
12,
20,
1769,
7734,
514,
508,
273,
11993,
1304,
18,
588,
18298,
4771,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4771,
1435,
1216,
18780,
565,
288,
3639,
2989,
7581,
6462,
273,
261,
1868,
7581,
13,
30347,
18,
588,
12,
20,
1769,
7734,
514,
508,
273,
11993,
1304,
18,
588,
18298,
4771,... |
public int getFetchSize() throws SQLException; | public int getFetchSize(); | public int getFetchSize() throws SQLException; | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/7ecb6ede284fdf9f138028cc9db042c316e2f65e/BaseStatement.java/clean/src/interfaces/jdbc/org/postgresql/core/BaseStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
2812,
1593,
1225,
1435,
1216,
6483,
31,
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,
225,
202,
482,
509,
2812,
1593,
1225,
1435,
1216,
6483,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
} else { | } else { | private int checkContent(int elementIndex, QName[] children, int childOffset, int childCount) throws XNIException { fDTDGrammar.getElementDecl(elementIndex, fTempElementDecl); // Get the element name index from the element final String elementType = fCurrentElement.rawname; // Get out the content spec for this element final int contentType = fCurrentContentSpecType; // // Deal with the possible types of content. We try to optimized here // by dealing specially with content models that don't require the // full DFA treatment. // if (contentType == XMLElementDecl.TYPE_EMPTY) { // // If the child count is greater than zero, then this is // an error right off the bat at index 0. // if (childCount != 0) { return 0; } } else if (contentType == XMLElementDecl.TYPE_ANY) { // // This one is open game so we don't pass any judgement on it // at all. Its assumed to fine since it can hold anything. // } else if (contentType == XMLElementDecl.TYPE_MIXED || contentType == XMLElementDecl.TYPE_CHILDREN) { // Get the content model for this element, faulting it in if needed ContentModelValidator cmElem = null; cmElem = fTempElementDecl.contentModelValidator; int result = cmElem.validate(children, childOffset, childCount); return result; } else if (contentType == -1) { //REVISIT /**** reportRecoverableXMLError(XMLMessages.MSG_ELEMENT_NOT_DECLARED, XMLMessages.VC_ELEMENT_VALID, elementType); /****/ } else if (contentType == XMLElementDecl.TYPE_SIMPLE) { //REVISIT // this should never be reached in the case of DTD validation. } else { //REVISIT /**** fErrorReporter.reportError(fErrorReporter.getLocator(), ImplementationMessages.XERCES_IMPLEMENTATION_DOMAIN, ImplementationMessages.VAL_CST, 0, null, XMLErrorReporter.ERRORTYPE_FATAL_ERROR); /****/ } // We succeeded return -1; } // checkContent(int,int,QName[]):int | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1281996de10d3af1b51f0b4d78cfcd75d8ade6fe/XMLDTDValidator.java/clean/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
866,
1350,
12,
474,
930,
1016,
16,
17311,
16723,
8526,
2325,
16,
11794,
509,
1151,
2335,
16,
17311,
509,
31492,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
25728,
18576,
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,
3238,
509,
866,
1350,
12,
474,
930,
1016,
16,
17311,
16723,
8526,
2325,
16,
11794,
509,
1151,
2335,
16,
17311,
509,
31492,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
25728,
18576,
18,
... |
columnChooser.setEnabled( true ); | ArrayList columnList = new ArrayList( ); | private void refreshColumns( ) { columns = DataSetManager.getCurrentInstance( ) .getColumns( currentDataSetName, false ); columnChooser.removeAll( ); if ( columns.length == 0 ) { columnChooser.setEnabled( false ); columnChooser.setItems( new String[0] ); selectedColumnIndex = -1; } else { columnChooser.setEnabled( true ); for ( int i = 0; i < columns.length; i++ ) { columnChooser.add( columns[i].getDataSetColumnName( ) ); } columnChooser.select( 0 ); selectedColumnIndex = 0; } refreshValues( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a037c90be1076dbd56aea4fca2068d72d718af1c/ImportValueDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/ImportValueDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4460,
3380,
12,
262,
202,
95,
202,
202,
5112,
273,
14065,
1318,
18,
588,
3935,
1442,
12,
262,
9506,
202,
18,
588,
3380,
12,
30685,
11924,
16,
629,
11272,
202,
202,
2827,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
3380,
12,
262,
202,
95,
202,
202,
5112,
273,
14065,
1318,
18,
588,
3935,
1442,
12,
262,
9506,
202,
18,
588,
3380,
12,
30685,
11924,
16,
629,
11272,
202,
202,
2827,... |
&& !opt.matchesHideExpression(tags[i].text())) { | && !opt.matchesHideExpression(tags[i].text())) { | public void print(Options iopt, ClassDoc c) { opt = (Options)iopt.clone(); // Process class-local options (through @opt tags) opt.setOptions(c); String cs = name(c); // Print generalization (through the Java superclass) ClassDoc s = c.superclass(); if (s != null && !s.toString().equals("java.lang.Object")) { if (!opt.matchesHideExpression(c.toString()) && !opt.matchesHideExpression(s.toString()) && !hidden(c) && !hidden(s)) { opt.w.println("\t//" + c + " extends " + s); opt.w.println("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];"); } } // Print generalizations (through @extends tags) Tag tags[] = c.tags("extends"); for (int i = 0; i < tags.length; i++) { if (!opt.matchesHideExpression(c.toString()) && !opt.matchesHideExpression(tags[i].text())) { opt.w.println("\t//" + c + " extends " + tags[i].text()); opt.w.println("\t" + name(tags[i].text()) + " -> " + cs + " [dir=back,arrowtail=empty];"); } } // Print realizations (Java interfaces) ClassDoc ifs[] = c.interfaces(); for (int i = 0; i < ifs.length; i++) { if (!opt.matchesHideExpression(c.toString()) && !opt.matchesHideExpression(ifs[i].toString()) && !hidden(c) && !hidden(ifs[i])) { opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];"); opt.w.println("\t//" + c + " implements " + ifs[i]); } } // Print other associations relation("assoc", c, cs, "arrowhead=none"); relation("navassoc", c, cs, "arrowhead=open"); relation("has", c, cs, "arrowhead=none, arrowtail=ediamond"); relation("composed", c, cs, "arrowhead=none, arrowtail=diamond"); relation("depend", c, cs, "arrowhead=open, style=dashed"); } | 47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/01b5ee673e70f9ae7ebf822a9eb42a9566990d57/Options.java/buggy/src/org/umlgraph/doclet/Options.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
12,
1320,
2527,
337,
16,
27785,
276,
13,
288,
202,
202,
3838,
273,
261,
1320,
13,
1594,
337,
18,
14056,
5621,
202,
202,
759,
4389,
667,
17,
3729,
702,
261,
10064,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
12,
1320,
2527,
337,
16,
27785,
276,
13,
288,
202,
202,
3838,
273,
261,
1320,
13,
1594,
337,
18,
14056,
5621,
202,
202,
759,
4389,
667,
17,
3729,
702,
261,
10064,
... |
logger.debug("image creation thread is finished"); | logger.debug("image total " + imageTotals + " plot total " + plottingTotals); | public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; Graphics2D graphic; Image currentImage = null; BufferedImage buffCurrentImage = null; Dimension size; HashMap plotters; numLeft = requests.size(); while(numLeft > 0){ logger.debug("creating an image with " + numLeft + " in the queue"); synchronized(this){ currentPatron = ((BasicSeismogramDisplay.ImagePainter)requests.getFirst()); currentRequirements = ((PlotInfo)patrons.get(currentPatron)); size = currentRequirements.getSize(); plotters = ((HashMap)currentRequirements.getPlotters().clone()); if(requests.contains(currentPatron) && size.width > 0){ if(bufferedImage){ buffCurrentImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_BYTE_INDEXED); graphic = buffCurrentImage.createGraphics(); }else{ currentImage = currentPatron.createImage(size.width, size.height); graphic = (Graphics2D)currentImage.getGraphics(); } } else{ numLeft = requests.size(); break; } } Iterator e = plotters.keySet().iterator(); LinkedList afterSeismograms = new LinkedList(); if(bufferedImage){ graphic.setColor(Color.white); graphic.fill(new Rectangle(0, 0, size.width, size.height)); } while(e.hasNext()){ Plotter current = ((Plotter)e.next()); if(current instanceof SeismogramPlotter){ graphic.setColor((Color)plotters.get(current)); graphic.draw(current.draw(size)); }else{ afterSeismograms.add(current); } } e = afterSeismograms.iterator(); while(e.hasNext()){ Plotter current = ((Plotter)e.next()); graphic.setColor((Color)plotters.get(current)); graphic.draw(current.draw(size)); } synchronized(this){ if(currentRequirements.getDisplayInterval().getValue() == currentPatron.getTimeConfig().getTimeRange().getInterval().getValue() && requests.contains(currentPatron)){ requests.removeFirst(); if(bufferedImage) currentPatron.setImage(buffCurrentImage); else currentPatron.setImage(currentImage); } numLeft = requests.size(); } } logger.debug("image creation thread is finished"); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/7c5594fda532a974a5c1834ca1fbcca302661955/ImageMaker.java/clean/src/edu/sc/seis/fissuresUtil/display/ImageMaker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
95,
202,
11532,
966,
783,
15465,
31,
202,
8252,
1761,
6228,
5553,
4236,
18,
2040,
15775,
783,
22834,
1949,
31,
202,
474,
818,
3910,
31,
202,
17558,
22,
40,
19548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
95,
202,
11532,
966,
783,
15465,
31,
202,
8252,
1761,
6228,
5553,
4236,
18,
2040,
15775,
783,
22834,
1949,
31,
202,
474,
818,
3910,
31,
202,
17558,
22,
40,
19548,
... |
int LA25_344 = input.LA(1); if ( LA25_344=='r' ) {return s466;} | int LA25_466 = input.LA(1); if ( LA25_466=='n' ) {return s564;} | public DFA.State transition(IntStream input) throws RecognitionException { int LA25_344 = input.LA(1); if ( LA25_344=='r' ) {return s466;} return s45; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.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,
509,
2928,
2947,
67,
5026,
24,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
2947,
67,
5026,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
2928,
2947,
67,
5026,
24,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
2947,
67,
5026,
... |
/* if(currentGrailsProp.isManyToOne() && currentGrailsProp.isBidirectional() ) { GrailsDomainClassProperty otherSide = currentGrailsProp.getOtherSide(); if(otherSide.isOneToMany()) table = null; }*/ | protected static void createClassProperties(GrailsDomainClass domainClass, PersistentClass persistentClass, Mappings mappings) { GrailsDomainClassProperty[] persistantProperties = domainClass.getPersistantProperties(); Table table = persistentClass.getTable(); for(int i = 0; i < persistantProperties.length;i++) { GrailsDomainClassProperty currentGrailsProp = persistantProperties[i]; // if its inherited skip if(currentGrailsProp.isInherited()) continue; /* if(currentGrailsProp.isManyToOne() && currentGrailsProp.isBidirectional() ) { GrailsDomainClassProperty otherSide = currentGrailsProp.getOtherSide(); if(otherSide.isOneToMany()) table = null; }*/ if(LOG.isDebugEnabled()) LOG.debug("[GrailsDomainBinder] Binding persistent property [" + currentGrailsProp.getName() + "]"); Value value = null; // see if its a collection type CollectionType collectionType = CollectionType.collectionTypeForClass( currentGrailsProp.getType() ); if(collectionType != null) { // create collection Collection collection = collectionType.create( currentGrailsProp, persistentClass, mappings ); mappings.addCollection(collection); value = collection; } // work out what type of relationship it is and bind value else if ( currentGrailsProp.isManyToOne() ) { if(LOG.isDebugEnabled()) LOG.debug("[GrailsDomainBinder] Binding property [" + currentGrailsProp.getName() + "] as ManyToOne"); value = new ManyToOne( table ); bindManyToOne( currentGrailsProp, (ManyToOne) value, mappings ); } else if ( currentGrailsProp.isOneToOne()) { if(LOG.isDebugEnabled()) LOG.debug("[GrailsDomainBinder] Binding property [" + currentGrailsProp.getName() + "] as OneToOne"); //value = new OneToOne( table, persistentClass ); //bindOneToOne( currentGrailsProp, (OneToOne)value, mappings ); value = new ManyToOne( table ); bindManyToOne( currentGrailsProp, (ManyToOne) value, mappings ); } else { if(LOG.isDebugEnabled()) LOG.debug("[GrailsDomainBinder] Binding property [" + currentGrailsProp.getName() + "] as SimpleValue"); value = new SimpleValue( table ); bindSimpleValue( persistantProperties[i], (SimpleValue) value, mappings ); } if(value != null) { Property property = createProperty( value, persistentClass, persistantProperties[i], mappings ); persistentClass.addProperty( property ); } } } | 51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/fe351f9f0f376d45dd59d502c6d56321bf14f907/GrailsDomainBinder.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
918,
752,
797,
2297,
12,
14571,
14573,
3748,
797,
2461,
797,
16,
11049,
797,
9195,
797,
16,
1635,
4675,
7990,
13,
288,
9506,
202,
14571,
14573,
3748,
797,
1396,
8526,
3898... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
918,
752,
797,
2297,
12,
14571,
14573,
3748,
797,
2461,
797,
16,
11049,
797,
9195,
797,
16,
1635,
4675,
7990,
13,
288,
9506,
202,
14571,
14573,
3748,
797,
1396,
8526,
3898... | |
opt.w.println("\t | opt.w.println("\t | public void print(Options iopt, ClassDoc c) { opt = (Options)iopt.clone(); // Process class-local options (through @opt tags) opt.setOptions(c); String cs = name(c); // Print generalization (through the Java superclass) ClassDoc s = c.superclass(); if (s != null && !s.toString().equals("java.lang.Object")) { opt.w.println("\t//" + c + " extends " + s); opt.w.println("\t" + name(s) + " -> " + cs + " [dir=back,arrowtail=empty];"); } // Print generalizations (through @extends tags) Tag tags[] = c.tags("extends"); for (int i = 0; i < tags.length; i++) { opt.w.println("\t//" + c + " extends " + tags[i].text()); opt.w.println("\t" + name(tags[i].text()) + " -> " + cs + " [dir=back,arrowtail=empty];"); } // Print realizations (Java interfaces) ClassDoc ifs[] = c.interfaces(); for (int i = 0; i < ifs.length; i++) { opt.w.print("\t" + name(ifs[i]) + " -> " + cs + " [dir=back,arrowtail=empty,style=dashed];"); opt.w.println("\t//" + c + " implements " + s); } // Print other associations relation("assoc", c, cs, "arrowhead=none"); relation("navassoc", c, cs, "arrowhead=open"); relation("has", c, cs, "arrowhead=none, arrowtail=ediamond"); relation("composed", c, cs, "arrowhead=none, arrowtail=diamond"); relation("depend", c, cs, "arrowhead=open, style=dashed"); } | 47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/09aed1fee62778448ed951eba0e36f86d0166df4/UmlGraph.java/buggy/src/gr/spinellis/umlgraph/doclet/UmlGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1172,
12,
1320,
2527,
337,
16,
27785,
276,
13,
288,
202,
202,
3838,
273,
261,
1320,
13,
1594,
337,
18,
14056,
5621,
202,
202,
759,
4389,
667,
17,
3729,
702,
261,
10064,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
12,
1320,
2527,
337,
16,
27785,
276,
13,
288,
202,
202,
3838,
273,
261,
1320,
13,
1594,
337,
18,
14056,
5621,
202,
202,
759,
4389,
667,
17,
3729,
702,
261,
10064,
... |
if (uri != null && uri.equals(XSLT_URI) || prefix != null && prefix.equals(XMLNS_STRING)) { | if (prefix != null && prefix.equals(XMLNS_PREFIX) || prefix == null && qname.getLocalPart().equals("xmlns") || uri != null && uri.equals(XSLT_URI)) { | public void parseContents(Parser parser) { final SymbolTable stable = parser.getSymbolTable(); stable.setCurrentNode(this); // Find the closest literal element ancestor (if there is one) SyntaxTreeNode _literalElemParent = getParent(); while (_literalElemParent != null && !(_literalElemParent instanceof LiteralElement)) { _literalElemParent = _literalElemParent.getParent(); } if (!(_literalElemParent instanceof LiteralElement)) { _literalElemParent = null; } _name = translateQName(_qname, stable); // Process all attributes and register all namespaces they use final int count = _attributes.getLength(); for (int i = 0; i < count; i++) { final QName qname = parser.getQName(_attributes.getQName(i)); final String uri = qname.getNamespace(); final String val = _attributes.getValue(i); // Handle xsl:use-attribute-sets. Attribute sets are placed first // in the vector or attributes to make sure that later local // attributes can override an attributes in the set. if (qname == parser.getUseAttributeSets()) { setFirstAttribute(new UseAttributeSets(val, parser)); } // Handle xsl:extension-element-prefixes else if (qname == parser.getExtensionElementPrefixes()) { stable.excludeNamespaces(val); } // Handle xsl:exclude-result-prefixes else if (qname == parser.getExcludeResultPrefixes()) { stable.excludeNamespaces(val); } else { // Ignore special attributes final String prefix = qname.getPrefix(); if (uri != null && uri.equals(XSLT_URI) || prefix != null && prefix.equals(XMLNS_STRING)) { continue; } // Handle all other literal attributes final String name = translateQName(qname, stable); LiteralAttribute attr = new LiteralAttribute(name, val, parser); addAttribute(attr); attr.setParent(this); attr.parseContents(parser); } } // Register all namespaces that are in scope, except for those that // are listed in the xsl:stylesheet element's *-prefixes attributes final Enumeration include = getNamespaceScope(this); while (include.hasMoreElements()) { final String prefix = (String)include.nextElement(); if (!prefix.equals("xml")) { final String uri = lookupNamespace(prefix); if (uri != null && !stable.isExcludedNamespace(uri)) { registerNamespace(prefix, uri, stable, true); } } } parseChildren(parser); // Process all attributes and register all namespaces they use for (int i = 0; i < count; i++) { final QName qname = parser.getQName(_attributes.getQName(i)); final String val = _attributes.getValue(i); // Handle xsl:extension-element-prefixes if (qname == parser.getExtensionElementPrefixes()) { stable.unExcludeNamespaces(val); } // Handle xsl:exclude-result-prefixes else if (qname == parser.getExcludeResultPrefixes()) { stable.unExcludeNamespaces(val); } } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/c182aaab554bb87686974c81c803a41313917745/LiteralElement.java/buggy/src/org/apache/xalan/xsltc/compiler/LiteralElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
6323,
12,
2678,
2082,
13,
288,
202,
6385,
8565,
1388,
14114,
273,
2082,
18,
588,
5335,
1388,
5621,
202,
15021,
18,
542,
3935,
907,
12,
2211,
1769,
202,
759,
4163,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
6323,
12,
2678,
2082,
13,
288,
202,
6385,
8565,
1388,
14114,
273,
2082,
18,
588,
5335,
1388,
5621,
202,
15021,
18,
542,
3935,
907,
12,
2211,
1769,
202,
759,
4163,
326,
... |
setProperties(props); | setProperties(props, FrontEnd.ACOUSTIC_PROP_PREFIX); | public SpectrumAnalyzer(String name, String context, SphinxProperties props, AudioSource predecessor) throws IOException { super(name, context); setProperties(props); this.predecessor = predecessor; computeLogBase2(this.numberFftPoints); createWeightFft(numberFftPoints, false); initComplexArrays(); weightFftTimesFrom2 = new Complex(); tempComplex = new Complex(); } | 8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/456afc27f898f9c2b17d0db359806b2c07550aad/SpectrumAnalyzer.java/buggy/sphinx4/edu/cmu/sphinx/frontend/SpectrumAnalyzer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
348,
13324,
12803,
12,
780,
508,
16,
514,
819,
16,
4697,
565,
348,
15922,
2297,
3458,
16,
18701,
15045,
1830,
24282,
13,
1216,
1860,
288,
3639,
2240,
12,
529,
16,
819,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
348,
13324,
12803,
12,
780,
508,
16,
514,
819,
16,
4697,
565,
348,
15922,
2297,
3458,
16,
18701,
15045,
1830,
24282,
13,
1216,
1860,
288,
3639,
2240,
12,
529,
16,
819,
1769,
202,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.