rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
Bookmark(String k, String d) { this.key = k;
Bookmark(String k, String d) throws MalformedURLException { this.key = new FreenetURI(k);
Bookmark(String k, String d) { this.key = k; this.desc = d; }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/c11196f22dbc1de496c2c4193fb1d957391dc364/WelcomeToadlet.java/clean/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 22966, 12, 780, 417, 16, 514, 302, 13, 288, 1082, 202, 2211, 18, 856, 273, 417, 31, 1082, 202, 2211, 18, 5569, 273, 302, 31, 202, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 22966, 12, 780, 417, 16, 514, 302, 13, 288, 1082, 202, 2211, 18, 856, 273, 417, 31, 1082, 202, 2211, 18, 5569, 273, 302, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100,...
if (psiFile == null) return false;
public boolean isSubIdSelectable(String subId, VirtualFile file) { NamedScopesHolder scopesHolder = DependencyValidationManager.getInstance(myProject); NamedScope scope = scopesHolder.getScope(subId); PackageSet packageSet = scope.getValue(); PsiFile psiFile = PsiManager.getInstance(myProject).findFile(file); return packageSet.contains(psiFile, scopesHolder); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/8154cd266adb07dd708a46f396b0d8a09a4e7625/ScopePaneSelectInTarget.java/buggy/source/com/intellij/ide/scopeView/ScopePaneSelectInTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 24275, 812, 422, 446, 13, 327, 629, 31, 309, 261, 24275, 812, 422, 446, 13, 327, 629, 31, 1071, 430, 261, 24275, 812, 422, 446, 13, 327, 629, 31, 1250, 430, 261, 24275, 812, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 24275, 812, 422, 446, 13, 327, 629, 31, 309, 261, 24275, 812, 422, 446, 13, 327, 629, 31, 1071, 430, 261, 24275, 812, 422, 446, 13, 327, 629, 31, 1250, 430, 261, 24275, 812, 422,...
return new org.openxava.hibernate.impl.FastSizeList(query, sizeQuery);
return new org.openxava.hibernate.impl.FastSizeList(query, sizeQuery);
public static Collection findAll() { org.hibernate.Query query = org.openxava.hibernate.XHibernate.getSession().createQuery("from TransportCharge2 as o"); org.hibernate.Query sizeQuery = org.openxava.hibernate.XHibernate.getSession().createQuery("select count(*) from TransportCharge2 as o"); return new org.openxava.hibernate.impl.FastSizeList(query, sizeQuery); }
14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/f8d74ba52a21f9e134e64cebc707f9717ed23876/TransportCharge2.java/clean/OpenXavaTest/gen-src-xava/org/openxava/test/model/TransportCharge2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 482, 760, 2200, 11135, 1435, 288, 3196, 202, 3341, 18, 15769, 22828, 18, 1138, 843, 273, 2358, 18, 3190, 92, 1629, 18, 15769, 22828, 18, 60, 44, 24360, 18, 588, 2157, 7675, 2640, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 482, 760, 2200, 11135, 1435, 288, 3196, 202, 3341, 18, 15769, 22828, 18, 1138, 843, 273, 2358, 18, 3190, 92, 1629, 18, 15769, 22828, 18, 60, 44, 24360, 18, 588, 2157, 7675, 2640, 1...
StringTokenizer tok = new StringTokenizer(list, " "); while (tok.hasMoreElements()) { String user = tok.nextToken(); int access; if (user.startsWith("@")) { access = IRCServer.ACCESS_OP; } else if (user.startsWith("%")) { access = IRCServer.ACCESS_HALFOP; } else if (user.startsWith("+")) { access = IRCServer.ACCESS_VOICE; } else { access = IRCServer.ACCESS_NONE; } if (access > 0) { user = user.substring(1); } server.channels[channum].addUser(user, access); }
StringTokenizer tok = new StringTokenizer(list, " "); while (tok.hasMoreElements()) { String user = tok.nextToken(); int access; if (user.startsWith("@")) { access = IRCServer.ACCESS_OP; } else if (user.startsWith("%")) { access = IRCServer.ACCESS_HALFOP; } else if (user.startsWith("+")) { access = IRCServer.ACCESS_VOICE; } else { access = IRCServer.ACCESS_NONE; } if (access > 0) { user = user.substring(1); } server.channels[channum].addUser(user, access); }
public void messageChanList(String channel, String list) { int channum = channelNumber(channel); StringTokenizer tok = new StringTokenizer(list, " "); while (tok.hasMoreElements()) { String user = tok.nextToken(); int access; if (user.startsWith("@")) { access = IRCServer.ACCESS_OP; } else if (user.startsWith("%")) { access = IRCServer.ACCESS_HALFOP; } else if (user.startsWith("+")) { access = IRCServer.ACCESS_VOICE; } else { access = IRCServer.ACCESS_NONE; } if (access > 0) { user = user.substring(1); } server.channels[channum].addUser(user, access); } }
4867 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4867/13a5492f5df8208250f437a98b833f050ed86976/SephiaBot.java/clean/SephiaBot.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 883, 6255, 682, 12, 780, 1904, 16, 514, 666, 13, 288, 565, 509, 27251, 379, 273, 1904, 1854, 12, 4327, 1769, 565, 16370, 946, 273, 394, 16370, 12, 1098, 16, 315, 315, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 883, 6255, 682, 12, 780, 1904, 16, 514, 666, 13, 288, 565, 509, 27251, 379, 273, 1904, 1854, 12, 4327, 1769, 565, 16370, 946, 273, 394, 16370, 12, 1098, 16, 315, 315, 1769, ...
if(listener == null)
if(listener == null) {
public void execute(JobExecutionContext context) throws JobExecutionException { JobDataMap data = context.getJobDetail().getJobDataMap(); SchedulerContext schedCtxt = null; try { schedCtxt = context.getScheduler().getContext(); } catch (SchedulerException e) { throw new JobExecutionException("Error obtaining scheduler context.", e, false); } String fileName = data.getString(FILE_NAME); String listenerName = data.getString(FILE_SCAN_LISTENER_NAME); if(fileName == null) throw new JobExecutionException("Required parameter '" + FILE_NAME + "' not found in JobDataMap"); if(listenerName == null) throw new JobExecutionException("Required parameter '" + FILE_SCAN_LISTENER_NAME + "' not found in JobDataMap"); FileScanListener listener = (FileScanListener)schedCtxt.get(listenerName); if(listener == null) throw new JobExecutionException("FileScanListener named '" + listenerName + "' not found in SchedulerContext"); long lastDate = -1; if(data.containsKey(LAST_MODIFIED_TIME)) lastDate = data.getLong(LAST_MODIFIED_TIME); long newDate = getLastModifiedDate(fileName); if(newDate < 0) { log.warn("File '"+fileName+"' does not exist."); return; } if(lastDate > 0 && (newDate != lastDate)) { // notify call back... log.info("File '"+fileName+"' updated, notifying listener."); listener.fileUpdated(fileName); } else if (log.isDebugEnabled()) { log.debug("File '"+fileName+"' unchanged."); } data.put(LAST_MODIFIED_TIME, newDate); }
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/cf7f5f77ce5bb6364145230d302b86f1cdadea88/FileScanJob.java/buggy/src/java/org/quartz/jobs/FileScanJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 31498, 1042, 819, 13, 1216, 3956, 14576, 288, 3639, 3956, 31982, 501, 273, 819, 18, 588, 2278, 6109, 7675, 588, 2278, 31982, 5621, 3639, 12620, 1042, 23964, 28866, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 31498, 1042, 819, 13, 1216, 3956, 14576, 288, 3639, 3956, 31982, 501, 273, 819, 18, 588, 2278, 6109, 7675, 588, 2278, 31982, 5621, 3639, 12620, 1042, 23964, 28866, 273,...
public void acceptEnumerationSpecifier(IASTEnumerationSpecifier enumeration){
public void acceptEnumerationSpecifier(IASTEnumerationSpecifier enumeration){ lastDeclaration = enumeration;
public void acceptEnumerationSpecifier(IASTEnumerationSpecifier enumeration){ check( DECLARATIONS, enumeration ); Iterator iter = enumeration.getEnumerators(); while( iter.hasNext() ){ check ( DECLARATIONS, (ISourceElementCallbackDelegate) iter.next() ); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ceca2f6558f0b31f31ddb1c7b7bc36bef7f161a8/MatchLocator.java/clean/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2791, 21847, 21416, 12, 45, 9053, 21847, 21416, 16836, 15329, 1142, 6094, 273, 16836, 31, 3196, 202, 1893, 12, 2030, 5017, 985, 15297, 16, 16836, 11272, 202, 202, 3198, 1400,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2791, 21847, 21416, 12, 45, 9053, 21847, 21416, 16836, 15329, 1142, 6094, 273, 16836, 31, 3196, 202, 1893, 12, 2030, 5017, 985, 15297, 16, 16836, 11272, 202, 202, 3198, 1400,...
declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT + "prj_obj.gif", true); declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT + "cprj_obj.gif", true); declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OPEN_MARKER, PATH_ELOCALTOOL + "gotoobj_tsk.gif", true);
private void declareWorkbenchImages() { final String ICONS_PATH = "$nl$/icons/full/";//$NON-NLS-1$ final String PATH_ELOCALTOOL = ICONS_PATH + "elcl16/"; //Enabled toolbar icons.//$NON-NLS-1$ final String PATH_ETOOL = ICONS_PATH + "etool16/"; //Enabled toolbar icons.//$NON-NLS-1$ final String PATH_DTOOL = ICONS_PATH + "dtool16/"; //Disabled toolbar icons.//$NON-NLS-1$ final String PATH_OBJECT = ICONS_PATH + "obj16/"; //Model object icons//$NON-NLS-1$ final String PATH_WIZBAN = ICONS_PATH + "wizban/"; //Wizard icons//$NON-NLS-1$ Bundle ideBundle = Platform.getBundle(IDEWorkbenchPlugin.IDE_WORKBENCH); declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC, PATH_ETOOL + "build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_HOVER, PATH_ETOOL + "build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_DISABLED, PATH_DTOOL + "build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC, PATH_ETOOL + "search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_HOVER, PATH_ETOOL + "search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_DISABLED, PATH_DTOOL + "search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV, PATH_ETOOL + "next_nav.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV, PATH_ETOOL + "prev_nav.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWPRJ_WIZ, PATH_WIZBAN + "newprj_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFOLDER_WIZ, PATH_WIZBAN + "newfolder_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFILE_WIZ, PATH_WIZBAN + "newfile_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTDIR_WIZ, PATH_WIZBAN + "importdir_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTZIP_WIZ, PATH_WIZBAN + "importzip_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTDIR_WIZ, PATH_WIZBAN + "exportdir_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTZIP_WIZ, PATH_WIZBAN + "exportzip_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ, PATH_WIZBAN + "workset_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG, PATH_WIZBAN + "saveas_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT + "prj_obj.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT + "cprj_obj.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OPEN_MARKER, PATH_ELOCALTOOL + "gotoobj_tsk.gif", true); //$NON-NLS-1$ // task objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_HPRIO_TSK, PATH_OBJECT+"hprio_tsk.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_MPRIO_TSK, PATH_OBJECT+"mprio_tsk.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_LPRIO_TSK, PATH_OBJECT+"lprio_tsk.gif"); declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_TASK_TSK, PATH_OBJECT + "taskmrk_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_BKMRK_TSK, PATH_OBJECT + "bkmrk_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_COMPLETE_TSK, PATH_OBJECT + "complete_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_INCOMPLETE_TSK, PATH_OBJECT + "incomplete_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_ITEM, PATH_OBJECT + "welcome_item.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_BANNER, PATH_OBJECT + "welcome_banner.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_LCL_FLAT_LAYOUT, PATH_ELOCALTOOL + "flatLayout.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_LCL_HIERARCHICAL_LAYOUT, PATH_ELOCALTOOL + "hierarchicalLayout.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PROBLEM_CATEGORY, PATH_ETOOL + "problem_category.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_LCL_LINKTO_HELP, PATH_ELOCALTOOL + "linkto_help.gif", false); //$NON-NLS-1$ // synchronization indicator objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_WBET_STAT, PATH_OVERLAY+"wbet_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_SBET_STAT, PATH_OVERLAY+"sbet_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_CONFLICT_STAT, PATH_OVERLAY+"conflict_stat.gif"); // content locality indicator objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_NOTLOCAL_STAT, PATH_STAT+"notlocal_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_LOCAL_STAT, PATH_STAT+"local_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_FILLLOCAL_STAT, PATH_STAT+"filllocal_stat.gif"); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fdc0bfc5b2792369a886e670b7c019c9a9664acb/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 14196, 2421, 22144, 2040, 12, 831, 3405, 16, 1599, 41, 18, 7887, 8946, 18, 3445, 43, 67, 24547, 67, 17147, 16, 7767, 67, 9422, 397, 315, 683, 78, 67, 2603, 18, 13905, 3113, 638, 1769, 14196,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 14196, 2421, 22144, 2040, 12, 831, 3405, 16, 1599, 41, 18, 7887, 8946, 18, 3445, 43, 67, 24547, 67, 17147, 16, 7767, 67, 9422, 397, 315, 683, 78, 67, 2603, 18, 13905, 3113, 638, 1769, 14196,...
return SimpleDateFormat.getDateTimeInstance().format(myDate);
return DateFormat.getDateTimeInstance().format(myDate);
public String toString() { if (myRevision >= 0) { return Long.toString(myRevision); } else if (myName != null) { return myName; } else if (myDate != null) { return SimpleDateFormat.getDateTimeInstance().format(myDate); } return "{invalid revision}"; }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/28a541543b4a2184525742e00c36858319d85c0c/SVNRevision.java/clean/javasvn/src/org/tmatesoft/svn/core/wc/SVNRevision.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 261, 4811, 7939, 1545, 374, 13, 288, 5411, 327, 3407, 18, 10492, 12, 4811, 7939, 1769, 3639, 289, 469, 309, 261, 4811, 461, 480, 446, 13, 288, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 261, 4811, 7939, 1545, 374, 13, 288, 5411, 327, 3407, 18, 10492, 12, 4811, 7939, 1769, 3639, 289, 469, 309, 261, 4811, 461, 480, 446, 13, 288, 541...
TestSuite suite = new TestSuite(DOMLocationInclusionTests.class); suite.addTest(new DOMLocationInclusionTests("cleanupProject")); return suite; }
TestSuite suite = new TestSuite(DOMLocationInclusionTests.class); suite.addTest(new DOMLocationInclusionTests("cleanupProject")); return suite; }
public static Test suite() { TestSuite suite = new TestSuite(DOMLocationInclusionTests.class); suite.addTest(new DOMLocationInclusionTests("cleanupProject")); //$NON-NLS-1$ return suite; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/736de0128dd403e1d3a2ae30753e758ba2e78cfa/DOMLocationInclusionTests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMLocationInclusionTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 760, 7766, 11371, 1435, 288, 1377, 7766, 13587, 11371, 273, 394, 7766, 13587, 12, 8168, 2735, 382, 15335, 14650, 18, 1106, 1769, 1377, 11371, 18, 1289, 4709, 12, 2704, 4703, 2735, 382...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 760, 7766, 11371, 1435, 288, 1377, 7766, 13587, 11371, 273, 394, 7766, 13587, 12, 8168, 2735, 382, 15335, 14650, 18, 1106, 1769, 1377, 11371, 18, 1289, 4709, 12, 2704, 4703, 2735, 382...
return false;
return true;
public boolean doomedInVacuum() { for (Enumeration e = getEquipment(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement(); if (m.getType() instanceof MiscType && m.getType().hasFlag(MiscType.F_VACUUM_PROTECTION)) { return true; } } return false; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/7f62c3fdcc820042812427c9cba7d168625ba806/Tank.java/clean/megamek/src/megamek/common/Tank.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 741, 362, 329, 382, 58, 1077, 89, 379, 1435, 288, 3639, 364, 261, 21847, 425, 273, 4774, 372, 11568, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 5411, 13076, 329, 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, 377, 1071, 1250, 741, 362, 329, 382, 58, 1077, 89, 379, 1435, 288, 3639, 364, 261, 21847, 425, 273, 4774, 372, 11568, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 5411, 13076, 329, 312, ...
xsl = JournalUtil.formatXML(xsl);
if (JournalTemplate.LANG_TYPE_VM.equals(langType)) { xsl = JournalUtil.formatVM(xsl); } else { xsl = JournalUtil.formatXML(xsl); }
public JournalTemplate updateTemplate( String companyId, String templateId, String structureId, String name, String description, String xsl, boolean formatXsl, String langType, boolean smallImage, String smallImageURL, File smallFile) throws PortalException, SystemException { // Template templateId = templateId.trim().toUpperCase(); try { if (formatXsl) { xsl = JournalUtil.formatXML(xsl); } } catch (DocumentException de) { throw new TemplateXslException(); } catch (IOException ioe) { throw new TemplateXslException(); } byte[] smallBytes = null; try { smallBytes = FileUtil.getBytes(smallFile); } catch (IOException ioe) { } validate( name, description, xsl, smallImage, smallImageURL, smallFile, smallBytes); JournalTemplate template = JournalTemplateUtil.findByPrimaryKey( new JournalTemplatePK(companyId, templateId)); template.setModifiedDate(new Date()); if (Validator.isNull(template.getStructureId()) && Validator.isNotNull(structureId)) { // Allow users to set the structure if and only if it currently // does not have one. Otherwise, you can have bad data because there // may be an existing article that has chosen to use a structure and // template combination that no longer exists. template.setStructureId(structureId); } template.setName(name); template.setDescription(description); template.setXsl(xsl); template.setLangType(langType); template.setSmallImage(smallImage); template.setSmallImageURL(smallImageURL); JournalTemplateUtil.update(template); // Small image saveImages( smallImage, template.getSmallImageId(), smallFile, smallBytes); return template; }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/80b05efde87980eee0e0d14776598775626bf337/JournalTemplateLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portlet/journal/service/impl/JournalTemplateLocalServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16567, 2283, 1089, 2283, 12, 1082, 202, 780, 14346, 16, 514, 1542, 548, 16, 514, 30621, 16, 1082, 202, 780, 508, 16, 514, 2477, 16, 514, 20791, 16, 1250, 740, 60, 2069, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16567, 2283, 1089, 2283, 12, 1082, 202, 780, 14346, 16, 514, 1542, 548, 16, 514, 30621, 16, 1082, 202, 780, 508, 16, 514, 2477, 16, 514, 20791, 16, 1250, 740, 60, 2069, 16, ...
endTime = new TimePoint();
public java.util.Map execute(java.util.Map inputMap) throws TaskExecutionException { try{ startTime = new TimePoint(); //want to siffle through the input ports and get input parts //GraphNode[] inputs = getParents(); //want to create suitable input parts Input input = new Input(); if(logLevel.getLevel()>=LogLevel.HIGH) inputForLog = input; Iterator iterator = inputMap.keySet().iterator(); while(iterator.hasNext()) { input.addPart((Part) inputMap.get(iterator.next())); } WSDLServiceInvocation serviceInvocation = new WSDLServiceInvocation(this,input,WSDLServiceInvocation.OPERATION_TYPE_REQUEST_RESPONSE); //have to configure invocation for the output parts List outParts = new ArrayList(); GraphNode[] children = getChildren(); for (int i = 0; i < children.length; i++) { if (children[i] instanceof PortTask) { PortTask pT = (PortTask) children[i]; Port pt = pT.getScuflPort(); Part prt = new Part(-1,pt.getName(),"org.w3c.dom.Element",null); //not worried that type and value unknown at present since will be filled in by invocation api pT.setData(prt); outParts.add(prt); } } serviceInvocation.setResponseMessageParts(outParts); //execute the call serviceInvocation.executeOperation(); //group together the output parts and write to child partchecks Output output = serviceInvocation.getServiceOutput(); if(logLevel.getLevel()>=LogLevel.HIGH) outputForLog = output; List outputParts = output.getPartList(); Map outputMap = new HashMap(); iterator = outputParts.iterator(); while (iterator.hasNext()) { //match with child part by name and set the part value Part part = (Part) iterator.next(); String partName = part.getName(); outputMap.put(partName,part); } endTime = new TimePoint(); //success return outputMap; } catch(Exception ex) { ex.printStackTrace(); logger.error("Error invoking soaplab service for task " +getID() ,ex); throw new TaskExecutionException("Task " + getID() + " failed due to problem invoking WSDL-based service"); } }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/ef27643ffd197e94670f0d1f447011b22d5ef47e/WSDLInvocationTask.java/buggy/trunk/taverna1.0/src/uk/ac/soton/itinnovation/taverna/enactor/entities/WSDLInvocationTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 1367, 18, 863, 1836, 12, 6290, 18, 1367, 18, 863, 810, 863, 13, 1216, 3837, 14576, 288, 9506, 202, 698, 95, 1082, 202, 1937, 950, 273, 225, 394, 2647, 2148, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 1367, 18, 863, 1836, 12, 6290, 18, 1367, 18, 863, 810, 863, 13, 1216, 3837, 14576, 288, 9506, 202, 698, 95, 1082, 202, 1937, 950, 273, 225, 394, 2647, 2148, 5621, ...
public DataflowAnalysis<LockCount> createAnalysis(MethodGen methodGen, CFG cfg) throws DataflowAnalysisException {
public AbstractDataflowAnalysis<LockCount> createAnalysis(MethodGen methodGen, CFG cfg) throws DataflowAnalysisException {
public DataflowAnalysis<LockCount> createAnalysis(MethodGen methodGen, CFG cfg) throws DataflowAnalysisException { // Perform the analysis to propagate "this" value references, // since ThisLockCountAnalysis depends on it. Dataflow<ThisValueFrame> tvaDataflow = new Dataflow<ThisValueFrame>(cfg, new ThisValueAnalysis(methodGen)); tvaDataflow.execute(); // Now we can create ThisLockCountAnalysis. return new OtherLockCountAnalysis(methodGen, tvaDataflow); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/021e956405f3b108e67905145bef49e0134c89ea/OtherLockCountAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/OtherLockCountAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1910, 2426, 9418, 32, 2531, 1380, 34, 752, 9418, 12, 1305, 7642, 707, 7642, 16, 7577, 2776, 13, 1216, 1910, 2426, 9418, 503, 288, 6862, 202, 759, 11217, 326, 6285, 358, 13551, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1910, 2426, 9418, 32, 2531, 1380, 34, 752, 9418, 12, 1305, 7642, 707, 7642, 16, 7577, 2776, 13, 1216, 1910, 2426, 9418, 503, 288, 6862, 202, 759, 11217, 326, 6285, 358, 13551, ...
ctx.bf.freeBucket(bestCompressedData);
bestCompressedData.free();
private void tryCompress() throws InserterException { // First, determine how small it needs to be Bucket origData = block.getData(); Bucket data = origData; int blockSize; int oneBlockCompressedSize; boolean dontCompress = ctx.dontCompress; long origSize = data.size(); String type = block.desiredURI.getKeyType().toUpperCase(); if(type.equals("SSK") || type.equals("KSK") || type.equals("USK")) { blockSize = SSKBlock.DATA_LENGTH; oneBlockCompressedSize = SSKBlock.MAX_COMPRESSED_DATA_LENGTH; } else if(type.equals("CHK")) { blockSize = CHKBlock.DATA_LENGTH; oneBlockCompressedSize = CHKBlock.MAX_COMPRESSED_DATA_LENGTH; } else { throw new InserterException(InserterException.INVALID_URI, "Unknown key type: "+type, null); } Compressor bestCodec = null; Bucket bestCompressedData = null; boolean tryCompress = (origSize > blockSize) && (!ctx.dontCompress) && (!dontCompress); if(tryCompress) { // Try to compress the data. // Try each algorithm, starting with the fastest and weakest. // Stop when run out of algorithms, or the compressed data fits in a single block. int algos = Compressor.countCompressAlgorithms(); try { for(int i=0;i<algos;i++) { // Only produce if we are compressing *the original data* if(parent == cb) ctx.eventProducer.produceEvent(new StartedCompressionEvent(i)); Compressor comp = Compressor.getCompressionAlgorithmByDifficulty(i); Bucket result; result = comp.compress(origData, ctx.persistentBucketFactory, origData.size()); if(result.size() < oneBlockCompressedSize) { bestCodec = comp; data = result; if(bestCompressedData != null) ctx.bf.freeBucket(bestCompressedData); bestCompressedData = data; break; } if((bestCompressedData != null) && (result.size() < bestCompressedData.size())) { ctx.bf.freeBucket(bestCompressedData); bestCompressedData = result; data = result; bestCodec = comp; } else if((bestCompressedData == null) && (result.size() < data.size())) { bestCompressedData = result; bestCodec = comp; data = result; } } } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (CompressionOutputSizeException e) { // Impossible throw new Error(e); } } if(parent == cb) { if(tryCompress) ctx.eventProducer.produceEvent(new FinishedCompressionEvent(bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(), origSize, data.size())); if(logMINOR) Logger.minor(this, "Compressed "+origSize+" to "+data.size()+" on "+this); } // Compressed data // Insert it... short codecNumber = bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(); long compressedDataSize = data.size(); boolean fitsInOneBlockAsIs = bestCodec == null ? compressedDataSize < blockSize : compressedDataSize < oneBlockCompressedSize; boolean fitsInOneCHK = bestCodec == null ? compressedDataSize < CHKBlock.DATA_LENGTH : compressedDataSize < CHKBlock.MAX_COMPRESSED_DATA_LENGTH; if(block.getData().size() > Integer.MAX_VALUE) throw new InserterException(InserterException.INTERNAL_ERROR, "2GB+ should not encode to one block!", null); boolean noMetadata = ((block.clientMetadata == null) || block.clientMetadata.isTrivial()) && targetFilename == null; if(noMetadata && !insertAsArchiveManifest) { if(fitsInOneBlockAsIs) { // Just insert it ClientPutState bi = createInserter(parent, data, codecNumber, block.desiredURI, ctx, cb, metadata, (int)block.getData().size(), -1, getCHKOnly, true, true); cb.onTransition(this, bi); bi.schedule(); cb.onBlockSetFinished(this); return; } } if (fitsInOneCHK) { // Insert single block, then insert pointer to it if(reportMetadataOnly) { SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, cb, metadata, (int)origSize, -1, getCHKOnly, true, true, token); Metadata meta = makeMetadata(dataPutter.getURI()); cb.onMetadata(meta, this); cb.onTransition(this, dataPutter); dataPutter.schedule(); cb.onBlockSetFinished(this); } else { MultiPutCompletionCallback mcb = new MultiPutCompletionCallback(cb, parent, token); SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, mcb, metadata, (int)origSize, -1, getCHKOnly, true, false, token); Metadata meta = makeMetadata(dataPutter.getURI()); Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e) { Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (MetadataUnresolvedException e) { // Impossible, we're not inserting a manifest. Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.INTERNAL_ERROR, "Got MetadataUnresolvedException in SingleFileInserter: "+e.toString(), null); } ClientPutState metaPutter = createInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true, false); mcb.addURIGenerator(metaPutter); mcb.add(dataPutter); cb.onTransition(this, mcb); Logger.minor(this, ""+mcb+" : data "+dataPutter+" meta "+metaPutter); mcb.arm(); dataPutter.schedule(); if(metaPutter instanceof SingleBlockInserter) ((SingleBlockInserter)metaPutter).encode(); metaPutter.schedule(); cb.onBlockSetFinished(this); } return; } // Otherwise the file is too big to fit into one block // We therefore must make a splitfile // Job of SplitHandler: when the splitinserter has the metadata, // insert it. Then when the splitinserter has finished, and the // metadata insert has finished too, tell the master callback. if(reportMetadataOnly) { SplitFileInserter sfi = new SplitFileInserter(parent, cb, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest, false); cb.onTransition(this, sfi); sfi.start(); if(earlyEncode) sfi.forceEncode(); } else { SplitHandler sh = new SplitHandler(); SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest, false); sh.sfi = sfi; cb.onTransition(this, sh); sfi.start(); if(earlyEncode) sfi.forceEncode(); } }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/87283290aa494832b974adec87a0fb667dee1899/SingleFileInserter.java/clean/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621...
return absolute(current_row+rows);
return absolute(current_row+1+rows);
public boolean relative(int rows) throws SQLException { return absolute(current_row+rows); }
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/d3ef753686384256c0a1439b3afb023bd96589ff/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3632, 12, 474, 2595, 13, 1216, 6483, 565, 288, 202, 327, 4967, 12, 2972, 67, 492, 15, 21, 15, 3870, 1769, 565, 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, 377, 1071, 1250, 3632, 12, 474, 2595, 13, 1216, 6483, 565, 288, 202, 327, 4967, 12, 2972, 67, 492, 15, 21, 15, 3870, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
addOptionPane(pane, pluginsGroup);
addOptionPane(pane, getDefaultGroup());
public void addOptionPane(OptionPane pane) { addOptionPane(pane, pluginsGroup); }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/50dba43c034792706c94f0d701351f497e2ce540/OptionsDialog.java/buggy/org/gjt/sp/jedit/gui/OptionsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12966, 8485, 12, 1895, 8485, 13618, 13, 202, 95, 202, 202, 1289, 1895, 8485, 12, 29009, 16, 4799, 1114, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12966, 8485, 12, 1895, 8485, 13618, 13, 202, 95, 202, 202, 1289, 1895, 8485, 12, 29009, 16, 4799, 1114, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
buildAgent = new BuildAgent();
buildAgent = new BuildAgent(isSkipUI);
public static void main(String[] args) { String message = "Starting agent..."; System.out.println(message); LOG.info(message); final BuildAgent buildAgent; if (args.length > 0) { if (args.length > 1) { buildAgent = new BuildAgent(args[0], args[1]); } else { buildAgent = new BuildAgent(args[0], BuildAgentServiceImpl.DEFAULT_USER_DEFINED_PROPERTIES_FILE); } } else { buildAgent = new BuildAgent(); } // stay around forever synchronized (KEEP_ALIVE) { try { KEEP_ALIVE.wait(); } catch (InterruptedException e) { LOG.error("Keep Alive wait interrupted", e); } } buildAgent.terminate(); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0e3b303687ee2c38a1baf9187b401c67768adca4/BuildAgent.java/clean/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/BuildAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 514, 883, 273, 315, 11715, 4040, 7070, 31, 3639, 2332, 18, 659, 18, 8222, 12, 2150, 1769, 3639, 2018, 18, 1376, 12, 2150, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 514, 883, 273, 315, 11715, 4040, 7070, 31, 3639, 2332, 18, 659, 18, 8222, 12, 2150, 1769, 3639, 2018, 18, 1376, 12, 2150, 1769, ...
cms.doTouch(bodyFolder, timestamp, user);
cms.doTouch(bodyFolder, timestamp, releasedate, expiredate, user);
public void touch(CmsObject cms, String resourceName, long timestamp, boolean touchRecursive, CmsUUID user) throws CmsException { List allFolders = new ArrayList(); List allFiles = new ArrayList(); // create a valid resource CmsFolder currentFolder = cms.readFolder(resourceName); CmsFile currentFile; // check the access rights // TODO: normally, only resources with write access should be collected here // in order to prevent exceptions while touching if (!cms.hasPermissions(currentFolder, I_CmsConstants.C_WRITE_ACCESS)) { return; } if (touchRecursive) { getAllResources(cms, resourceName, allFiles, allFolders); } allFolders.add(currentFolder); // touch the folders that we collected before Iterator touchFolders = allFolders.iterator(); while (touchFolders.hasNext()) { currentFolder = (CmsFolder)touchFolders.next(); if (DEBUG > 0) { System.err.println("touching: " + cms.readAbsolutePath(currentFolder)); } // touch the folder itself cms.doTouch(cms.readAbsolutePath(currentFolder), timestamp, user); if (C_BODY_MIRROR) { // touch its counterpart under content/bodies String bodyFolder = I_CmsWpConstants.C_VFS_PATH_BODIES.substring(0, I_CmsWpConstants.C_VFS_PATH_BODIES.lastIndexOf("/")) + cms.readAbsolutePath(currentFolder); try { cms.readFolder(bodyFolder); cms.doTouch(bodyFolder, timestamp, user); } catch (CmsException e) { // ignore } } } // touch the files/resources that we collected before Iterator touchFiles = allFiles.iterator(); while (touchFiles.hasNext()) { currentFile = (CmsFile)touchFiles.next(); if (DEBUG > 0) { System.err.println("touching: " + cms.readAbsolutePath(currentFile)); } if (currentFile.getState() != I_CmsConstants.C_STATE_DELETED) { // touch the file itself cms.touch(cms.readAbsolutePath(currentFile), timestamp, false); } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/19c532da85d34e6a2c2ba2c29aa9b4cd73213c33/CmsResourceTypeFolder.java/buggy/src/org/opencms/file/CmsResourceTypeFolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6920, 12, 4747, 921, 6166, 16, 514, 9546, 16, 1525, 2858, 16, 1250, 6920, 10483, 16, 15792, 729, 13, 1216, 11228, 288, 3639, 987, 777, 14885, 273, 394, 2407, 5621, 3639, 987, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6920, 12, 4747, 921, 6166, 16, 514, 9546, 16, 1525, 2858, 16, 1250, 6920, 10483, 16, 15792, 729, 13, 1216, 11228, 288, 3639, 987, 777, 14885, 273, 394, 2407, 5621, 3639, 987, ...
public void stop() {// panel.removeAll(); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/701adb53ebc028dc703c1074d472d19dec2ab46e/ZipView.java/clean/java/plugins/examples/zip/ZipView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 5681, 1435, 95, 759, 202, 13916, 18, 4479, 1595, 5621, 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, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 5681, 1435, 95, 759, 202, 13916, 18, 4479, 1595, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public org.quickfix.field.MDReqID getMDReqID() throws FieldNotFound { org.quickfix.field.MDReqID value = new org.quickfix.field.MDReqID();
public quickfix.field.MDReqID getMDReqID() throws FieldNotFound { quickfix.field.MDReqID value = new quickfix.field.MDReqID();
public org.quickfix.field.MDReqID getMDReqID() throws FieldNotFound { org.quickfix.field.MDReqID value = new org.quickfix.field.MDReqID(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataSnapshotFullRefresh.java/buggy/src/java/src/quickfix/fix42/MarketDataSnapshotFullRefresh.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 6188, 6113, 734, 2108, 40, 6113, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 6188, 6113, 734, 460, 273, 394, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 6188, 6113, 734, 2108, 40, 6113, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 6188, 6113, 734, 460, 273, 394, 235...
peers.add(localhost);
peers.add(new Peer(localhost, p.getPort()));
public void maybeUpdateHandshakeIPs(boolean ignoreHostnames) { long now = System.currentTimeMillis(); if((now - lastAttemptedHandshakeIPUpdateTime) < (5*60*1000)) { //Logger.minor(this, "Looked up recently (detectedPeer = "+detectedPeer + " : "+((detectedPeer == null) ? "" : detectedPeer.getAddress(false).toString())); return; // 5 minutes FIXME } // We want to come back right away for DNS requesting if this is our first time through if(!ignoreHostnames) lastAttemptedHandshakeIPUpdateTime = now; Logger.minor(this, "Updating handshake IPs for peer '"+getPeer()+"' named '"+myName+"' ("+ignoreHostnames+")"); Peer[] localHandshakeIPs; Peer[] myNominalPeer; // Don't synchronize while doing lookups which may take a long time! synchronized(this) { myNominalPeer = (Peer[]) nominalPeer.toArray(new Peer[nominalPeer.size()]); } if(myNominalPeer.length == 0) { if(detectedPeer == null) { localHandshakeIPs = null; synchronized(this) { handshakeIPs = localHandshakeIPs; } Logger.minor(this, "1: maybeUpdateHandshakeIPs got a result of: "+handshakeIPsToString()); return; } localHandshakeIPs = new Peer[] { detectedPeer }; localHandshakeIPs = updateHandshakeIPs(localHandshakeIPs, ignoreHostnames); synchronized(this) { handshakeIPs = localHandshakeIPs; } Logger.minor(this, "2: maybeUpdateHandshakeIPs got a result of: "+handshakeIPsToString()); return; } // Hack for two nodes on the same IP that can't talk over inet for routing reasons FreenetInetAddress localhost = node.fLocalhostAddress; FreenetInetAddress nodeAddr = node.getPrimaryIPAddress(); Vector peers = new Vector(nominalPeer); boolean addedLocalhost = false; Peer detectedDuplicate = null; for(int i=0;i<nominalPeer.size();i++) { Peer p = (Peer) nominalPeer.get(i); if(p == null) continue; if(detectedPeer != null) { if(p != detectedPeer && p.equals(detectedPeer)) { // Equal but not the same object; need to update the copy. detectedDuplicate = p; } } FreenetInetAddress addr = p.getFreenetAddress(); if(addr.equals(localhost)) { if(addedLocalhost) continue; addedLocalhost = true; } if(addr.equals(nodeAddr)) { if(!addedLocalhost) peers.add(localhost); } if(peers.contains(p)) continue; peers.add(p); } localHandshakeIPs = (Peer[]) peers.toArray(new Peer[peers.size()]); localHandshakeIPs = updateHandshakeIPs(localHandshakeIPs, ignoreHostnames); synchronized(this) { handshakeIPs = localHandshakeIPs; if(detectedDuplicate != null && detectedDuplicate.equals(detectedPeer)) { detectedPeer = detectedDuplicate; } } Logger.minor(this, "3: detectedPeer = "+detectedPeer+" ("+detectedPeer.getAddress(false)); Logger.minor(this, "3: maybeUpdateHandshakeIPs got a result of: "+handshakeIPsToString()); return; }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/fe29518362ee6204caba7fb4456094e2fd484b13/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6944, 1891, 14545, 18246, 12, 6494, 2305, 2594, 1973, 13, 288, 377, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 377, 202, 430, 12443, 3338, 300, 1142, 28788, 14545, 2579, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6944, 1891, 14545, 18246, 12, 6494, 2305, 2594, 1973, 13, 288, 377, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 377, 202, 430, 12443, 3338, 300, 1142, 28788, 14545, 2579, ...
public void setData(final String name, final AccountDA.AccountType type)
public void setData(final String name, final AccountDA.AccountType type)
private void loadData() { AccountDA.getInstance().loadAccount(id, new AccountDA.AccountHandler() { public void setData(final String name, final AccountDA.AccountType type) { Account.this.name = name; isLoaded = true; } }); }
11042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11042/42f15ce06e127523723133285c793cb25214f02b/Account.java/buggy/trunk/JPAS/src/org/jpas/model/Account.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 29422, 1435, 565, 288, 3639, 6590, 9793, 18, 588, 1442, 7675, 945, 3032, 12, 350, 16, 394, 6590, 9793, 18, 3032, 1503, 1435, 3639, 288, 5411, 1071, 918, 7929, 12, 6385, 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, 29422, 1435, 565, 288, 3639, 6590, 9793, 18, 588, 1442, 7675, 945, 3032, 12, 350, 16, 394, 6590, 9793, 18, 3032, 1503, 1435, 3639, 288, 5411, 1071, 918, 7929, 12, 6385, 514, ...
out.print("<tr><td class=\"standard\">");
out.print("<tr><td headers=\"t1\" class=\"standard\">");
private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext .getRequest(); out.print("<table align=center class=\"miscTable\"><tr>"); out.println("<td class=evenRowEvenCol><P><strong>" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files") + "</strong></P>"); Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length == 0) { out.println("<P>" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files.no") + "</P>"); } else { boolean html = false; String handle = item.getHandle(); Bitstream primaryBitstream = null; Bundle[] bunds = item.getBundles("ORIGINAL"); Bundle[] thumbs = item.getBundles("THUMBNAIL"); // if item contains multiple bitstreams, display bitstream // description boolean multiFile = false; Bundle[] allBundles = item.getBundles(); for (int i = 0, filecount = 0; (i < allBundles.length) && !multiFile; i++) { filecount += allBundles[i].getBitstreams().length; multiFile = (filecount > 1); } // check if primary bitstream is html if (bunds[0] != null) { Bitstream[] bits = bunds[0].getBitstreams(); for (int i = 0; (i < bits.length) && !html; i++) { if (bits[i].getID() == bunds[0].getPrimaryBitstreamID()) { html = bits[i].getFormat().getMIMEType().equals( "text/html"); primaryBitstream = bits[i]; } } } out.println("<table cellpadding=6><tr><th class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.file") + "</th>"); if (multiFile) { out.println("<th class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.description") + "</th>"); } out.println("<th class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.filesize") + "</th><th class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.fileformat") + "</th></tr>"); // if primary bitstream is html, display a link for only that one to // HTMLServlet if (html) { // If no real Handle yet (e.g. because Item is in workflow) // we use the 'fake' Handle db-id/1234 where 1234 is the // database ID of the item. if (handle == null) { handle = "db-id/" + item.getID(); } out.print("<tr><td class=\"standard\">"); out.print(primaryBitstream.getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = primaryBitstream.getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(primaryBitstream.getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(primaryBitstream.getFormatDescription()); out.print("</td><td class=\"standard\"><A TARGET=_blank HREF=\""); out.print(request.getContextPath()); out.print("/html/"); out.print(handle + "/"); out.print(UIUtil.encodeBitstreamName(primaryBitstream.getName(), Constants.DEFAULT_ENCODING)); out.print("\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</A></td></tr>"); } else { for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<tr><td class=\"standard\">"); out.print(bitstreams[k].getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = bitstreams[k].getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(bitstreams[k].getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(bitstreams[k].getFormatDescription()); out .print("</td><td class=\"standard\" align=\"center\">"); // Work out what the bitstream link should be // (persistent // ID if item has Handle) String bsLink = "<A TARGET=_blank HREF=\"" + request.getContextPath(); if ((handle != null) && (bitstreams[k].getSequenceID() > 0)) { bsLink = bsLink + "/bitstream/" + item.getHandle() + "/" + bitstreams[k].getSequenceID() + "/"; } else { bsLink = bsLink + "/retrieve/" + bitstreams[k].getID() + "/"; } bsLink = bsLink + UIUtil.encodeBitstreamName( bitstreams[k].getName(), Constants.DEFAULT_ENCODING) + "\">"; // is there a thumbnail bundle? if ((thumbs.length > 0) && showThumbs) { String tName = bitstreams[k].getName() + ".jpg"; Bitstream tb = thumbs[0] .getBitstreamByName(tName); if (tb != null) { String myPath = request.getContextPath() + "/retrieve/" + tb.getID() + "/" + UIUtil.encodeBitstreamName(tb.getName(), Constants.DEFAULT_ENCODING); out.print(bsLink); out.print("<img src=\"" + myPath + "\" "); out.print("alt=\"" + tName + "\"></A><BR>"); } } out.print(bsLink + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</A></td></tr>"); } } } } out.println("</table>"); } out.println("</td></tr></table>"); }
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/7246c4d1de39cbc642fdd3020918ab51e8c815bd/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5...
for( Iterator i=n.getFromEdges().iterator(); i.hasNext(); ) { Edge ei = (Edge)(i.next()); for( Iterator j=n.getToEdges().iterator(); j.hasNext(); ) { Edge ej = (Edge)(j.next()); Edge newEdge = addEdge( ei.getFromNode(), ej.getToNode(), ei.getAcousticScore(), ei.getLMScore() );
for (Iterator i = n.getFromEdges().iterator(); i.hasNext();) { Edge ei = (Edge) (i.next()); for (Iterator j = n.getToEdges().iterator(); j.hasNext();) { Edge ej = (Edge) (j.next()); addEdge(ei.getFromNode(), ej.getToNode(), ei.getAcousticScore(), ei.getLMScore());
protected void removeNodeAndCrossConnectEdges(Node n) { System.err.println("Removing node " + n + " and cross connecting edges"); for( Iterator i=n.getFromEdges().iterator(); i.hasNext(); ) { Edge ei = (Edge)(i.next()); for( Iterator j=n.getToEdges().iterator(); j.hasNext(); ) { Edge ej = (Edge)(j.next()); Edge newEdge = addEdge( ei.getFromNode(), ej.getToNode(), ei.getAcousticScore(), ei.getLMScore() ); } } removeNodeAndEdges(n); }
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/6cb43cf2b5ed0235953b349c1be69d991c56547a/Lattice.java/clean/sphinx4/edu/cmu/sphinx/result/Lattice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1206, 907, 1876, 13941, 5215, 10697, 12, 907, 290, 13, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 18939, 756, 315, 397, 290, 397, 315, 471, 6828, 14244, 5231, 8863, 3639, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1206, 907, 1876, 13941, 5215, 10697, 12, 907, 290, 13, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 18939, 756, 315, 397, 290, 397, 315, 471, 6828, 14244, 5231, 8863, 3639, 364, ...
return null;
throw new AmbiguousNameException();
public Object resolveFoundObject(Context context, Match match) { String[] flagLabels = context.getFlagLabels(); String flagName = match.getMatchedString(); int imatch = -1; int top = flagLabels.length; for(int idx = 0; idx < top; ++idx) { if(flagLabels[idx] != null && NameUtils.match(flagName, flagLabels[idx])) { // Ambigous? // if(imatch != -1) { // FIXME:Ihse: We should resolve the ambiguity instead! return null;// throw new AmbiguousNameException(flagName); } imatch = idx; } } if(imatch == -1) { context.getOut().println(context.getMessageFormatter().format("manipulate.flag.nonexistent", flagName)); return null; } return new Integer(imatch); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/bf795a979d2411fc6490ee76dc554e8276db6139/FlagParameter.java/buggy/kom/java/nu/rydin/kom/frontend/text/parser/FlagParameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2245, 2043, 921, 12, 1042, 819, 16, 4639, 845, 13, 288, 202, 202, 780, 8526, 2982, 5888, 273, 819, 18, 588, 4678, 5888, 5621, 202, 202, 780, 2982, 461, 273, 845, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2245, 2043, 921, 12, 1042, 819, 16, 4639, 845, 13, 288, 202, 202, 780, 8526, 2982, 5888, 273, 819, 18, 588, 4678, 5888, 5621, 202, 202, 780, 2982, 461, 273, 845, 18, 588, ...
{ byte[] bytes = getBytes(columnIndex); if (bytes == null) return null; return new String(bytes); }
{ byte[] bytes = getBytes(columnIndex); if (bytes == null) return null; return new String(bytes); }
public String getString(int columnIndex) throws SQLException { byte[] bytes = getBytes(columnIndex); if (bytes == null) return null; return new String(bytes); }
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 4997, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 7229, 8526, 1731, 273, 8425, 12, 2827, 1016, 1769, 202, 202, 430, 261, 3890, 422, 446, 13, 1082, 202, 2463, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 4997, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 7229, 8526, 1731, 273, 8425, 12, 2827, 1016, 1769, 202, 202, 430, 261, 3890, 422, 446, 13, 1082, 202, 2463, 446, ...
temp = "";
temp = new StringBuffer();
public void tokenise(Reader reader) throws IOException { char[] nextChar = new char[1]; String temp = ""; this.state = TOKENISER_STATE_READY; this.groupLevel = 0; while(reader.read(nextChar) != -1) { if(this.state == TOKENISER_STATE_READY) { // No influence from previous characters. if(nextChar[0] == '{') { // Open a group this.rtfParser.handleOpenGroup(this.groupLevel); groupLevel++; } else if(nextChar[0] == '}') { // Close a group this.rtfParser.handleCloseGroup(this.groupLevel); groupLevel--; } else if(nextChar[0] == '\\') { this.state = TOKENISER_STATE_SLASH; temp = ""; } else { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + nextChar[0]; } } else if((this.state & TOKENISER_STATE_SLASH) == TOKENISER_STATE_SLASH) { // A slash signals a control character or word or an escaped character if(nextChar[0] == '{') { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + "\\{"; } else if(nextChar[0] == '}') { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + "\\}"; } else if(nextChar[0] == '\\') { this.state = TOKENISER_STATE_IN_TEXT; temp = temp + "\\\\"; } else { if((this.state & TOKENISER_STATE_IN_TEXT) == TOKENISER_STATE_IN_TEXT) { // A control word or character closes previous text token this.rtfParser.handleText(temp, this.groupLevel); temp = ""; } if(nextChar[0] == '|') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\|", this.groupLevel); } else if(nextChar[0] == '~') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\~", this.groupLevel); } else if(nextChar[0] == '-') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\-", this.groupLevel); } else if(nextChar[0] == '_') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\_", this.groupLevel); } else if(nextChar[0] == ':') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\:", this.groupLevel); } else if(nextChar[0] == '*') { this.state = TOKENISER_STATE_READY; this.rtfParser.handleCtrlCharacter("\\*", this.groupLevel); } else { this.state = TOKENISER_STATE_IN_CTRL_WORD; temp = "\\" + nextChar[0]; } } } else if(this.state == TOKENISER_STATE_IN_CTRL_WORD) { // Control words run until a space, close or open group or another control word is found. if(nextChar[0] == '\n' || nextChar[0] == '\r') { nextChar[0] = ' '; } if(nextChar[0] == '{') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleOpenGroup(this.groupLevel); groupLevel++; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '}') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleCloseGroup(this.groupLevel); groupLevel--; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '\\') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.state = TOKENISER_STATE_SLASH; temp = ""; } else if(nextChar[0] == ' ') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleText(" ", this.groupLevel); this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == ';') { this.rtfParser.handleCtrlWord(temp, this.groupLevel); this.rtfParser.handleText(";", this.groupLevel); this.state = TOKENISER_STATE_READY; temp = ""; } else { temp = temp + nextChar[0]; } } else if(this.state == TOKENISER_STATE_IN_TEXT) { // Text tokens are closed by control characters or words or open and close groups if(nextChar[0] == '{') { this.rtfParser.handleText(temp, this.groupLevel); this.rtfParser.handleOpenGroup(this.groupLevel); groupLevel++; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '}') { this.rtfParser.handleText(temp, this.groupLevel); this.rtfParser.handleCloseGroup(this.groupLevel); groupLevel--; this.state = TOKENISER_STATE_READY; temp = ""; } else if(nextChar[0] == '\\') { this.state = TOKENISER_STATE_IN_TEXT | TOKENISER_STATE_SLASH; } else { temp = temp + nextChar[0]; } } } if((this.state & TOKENISER_STATE_IN_TEXT) == TOKENISER_STATE_IN_TEXT && !temp.equals("")) { // If at the end a text token was being parsed, emmit that token. Required for RTF fragments this.rtfParser.handleText(temp, this.groupLevel); } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/3b7dc772f3ba22e8cab032a59ba61c90535e99ac/RtfTokeniser.java/buggy/src/com/lowagie/text/rtf/direct/RtfTokeniser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1147, 784, 12, 2514, 2949, 13, 1216, 1860, 288, 202, 202, 3001, 8526, 21865, 273, 394, 1149, 63, 21, 15533, 202, 202, 780, 1906, 273, 1408, 31, 202, 202, 2211, 18, 2019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1147, 784, 12, 2514, 2949, 13, 1216, 1860, 288, 202, 202, 3001, 8526, 21865, 273, 394, 1149, 63, 21, 15533, 202, 202, 780, 1906, 273, 1408, 31, 202, 202, 2211, 18, 2019, ...
contextListeners = ListenerArray.add(contextListeners, listener);
contextListeners = Kit.addListener(contextListeners, listener);
public static void addContextListener(ContextListener listener) { synchronized (contextListenersLock) { contextListeners = ListenerArray.add(contextListeners, listener); } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/a9460118c00164250fcfb45ff9c9358f8c28f86e/Context.java/clean/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 527, 1042, 2223, 12, 1042, 2223, 2991, 13, 288, 3639, 3852, 261, 2472, 5583, 2531, 13, 288, 5411, 819, 5583, 273, 1475, 305, 18, 1289, 2223, 12, 2472, 5583, 16, 2991, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 527, 1042, 2223, 12, 1042, 2223, 2991, 13, 288, 3639, 3852, 261, 2472, 5583, 2531, 13, 288, 5411, 819, 5583, 273, 1475, 305, 18, 1289, 2223, 12, 2472, 5583, 16, 2991, 17...
printCellContents(crosstab, cells[rowIndex][i].getContents(), grx, x, 0, false, false);
printCellContents(cells[rowIndex][i].getContents(), grx, x, 0, false, false);
private void printCrosstabDataCellsRow(JRCrosstab crosstab, Graphics2D grx, int rowOffsetX, int rowOffsetY, int rowIndex) { grx.translate(rowOffsetX, rowOffsetY); JRCrosstabColumnGroup[] colGroups = crosstab.getColumnGroups(); JRCrosstabCell[][] cells = crosstab.getCells(); for (int i = 0, x = 0; i < colGroups.length; i++) { JRCrosstabColumnGroup group = colGroups[i]; if (group.getTotalPosition() == BucketDefinition.TOTAL_POSITION_START) { printCellContents(crosstab, cells[rowIndex][i].getContents(), grx, x, 0, false, false); x += cells[rowIndex][i].getContents().getWidth(); } if (i == colGroups.length - 1) { printCellContents(crosstab, cells[rowIndex][colGroups.length].getContents(), grx, x, 0, false, false); } if (group.getTotalPosition() == BucketDefinition.TOTAL_POSITION_END) { printCellContents(crosstab, cells[rowIndex][i].getContents(), grx, x + group.getHeader().getWidth(), 0, false, false); } } grx.translate(-rowOffsetX, -rowOffsetY); }
9031 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9031/199132b357dfd806a918766349632b1a08fa5ab7/JRDesignViewer.java/clean/jasperreports/src/net/sf/jasperreports/view/JRDesignViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1172, 39, 6973, 334, 378, 751, 10505, 1999, 12, 46, 11529, 6973, 334, 378, 30783, 334, 378, 16, 16830, 22, 40, 3821, 92, 16, 509, 1027, 2335, 60, 16, 509, 1027, 2335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 39, 6973, 334, 378, 751, 10505, 1999, 12, 46, 11529, 6973, 334, 378, 30783, 334, 378, 16, 16830, 22, 40, 3821, 92, 16, 509, 1027, 2335, 60, 16, 509, 1027, 2335, ...
Context cx, Scriptable scope,
Context cx, Scriptable scope,
public abstract Object execMethod(int methodId, IdFunction function, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException;
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/b631b3e8574543a4d24a0048cc710f305deb8ff5/IdScriptable.java/buggy/org/mozilla/javascript/IdScriptable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1033, 1196, 1305, 12, 474, 707, 548, 16, 3124, 2083, 445, 16, 11794, 1772, 9494, 16, 22780, 2146, 16, 17311, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 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, 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, 1033, 1196, 1305, 12, 474, 707, 548, 16, 3124, 2083, 445, 16, 11794, 1772, 9494, 16, 22780, 2146, 16, 17311, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 31,...
JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); configurator.doConfigure(args[0]);
try { JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); configurator.doConfigure(args[0]); } catch (JoranException je) { StatusPrinter.print(lc); }
public static void main(String[] args) throws InterruptedException { Logger logger = (Logger) LoggerFactory.getLogger(ExceptionEvaluatorExample.class); LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory(); JoranConfigurator configurator = new JoranConfigurator(); configurator.setContext(lc); configurator.doConfigure(args[0]); for (int i = 0; i < 5; i++) { if (i == 3) { Marker ignoreMarker = MarkerFactory.getMarker("IGNORE"); logger.debug(ignoreMarker, "logging statement" + i, new Exception("test")); } else { logger.debug("logging statement" + i, new Exception("test")); } } StatusPrinter.print(lc); }
50877 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50877/7177ff8f31734f293185997e0a81156f64bc26a6/ExceptionEvaluatorExample.java/clean/logback-classic/examples/src/chapter5/ExceptionEvaluatorExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 7558, 288, 565, 4242, 1194, 273, 261, 3328, 13, 4242, 1733, 18, 588, 3328, 12, 503, 15876, 10908, 18, 1106, 1769, 565, 4242, 1042, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 7558, 288, 565, 4242, 1194, 273, 261, 3328, 13, 4242, 1733, 18, 588, 3328, 12, 503, 15876, 10908, 18, 1106, 1769, 565, 4242, 1042, 91...
}
}
public static Map getDefaultValuesFromMessages(CmsMessages messages) { HashMap result = new HashMap(); List resTypes = OpenCms.getResourceManager().getResourceTypes(); for (int i=0; i<resTypes.size(); i++) { I_CmsResourceType type = (I_CmsResourceType)resTypes.get(i); if (type.isAdditionalModuleResourceType()) { // only look for keys if the resource type is an additional one for (int k=0; k< DISPLAYAREAS.length; k++) { // loop over the possible display areas String area = DISPLAYAREAS[k]; String typeName = type.getTypeName(); StringBuffer keyPrefix = new StringBuffer(8); keyPrefix.append("layout.").append(typeName).append('.').append(area).append('.'); // get collector default String key = keyPrefix + PARAM_COLLECTOR; String value = messages.key(key); if (CmsStringUtil.isEmptyOrWhitespaceOnly(value) || value.startsWith(CmsMessages.C_UNKNOWN_KEY_EXTENSION)) { // no default collector found, this indicates no list specifications for this type are present continue; } result.put(key, value); // get the default count key = keyPrefix + PARAM_COUNT; result.put(key, messages.key(key)); // get the default folder key = keyPrefix + PARAM_FOLDER; result.put(key, messages.key(key)); // get the possible list element JSPs for (int m=0; m<LISTVARIATIONS.length; m++) { key = keyPrefix + PARAM_LISTELEMENT + LISTVARIATIONS[m]; value = messages.key(key); if (! value.startsWith(CmsMessages.C_UNKNOWN_KEY_EXTENSION)) { result.put(key, value); } } } } } return result; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/98f698d905eee245c2e39e11531b99a5f27e0d0f/CmsTemplateContentListItem.java/buggy/src/org/opencms/jsp/util/CmsTemplateContentListItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 4829, 1972, 1265, 5058, 12, 4747, 5058, 2743, 13, 288, 3639, 4317, 563, 273, 394, 4317, 5621, 3639, 987, 400, 2016, 273, 10319, 18, 588, 1420, 1318, 7675, 588, 1420, 2016...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1635, 4829, 1972, 1265, 5058, 12, 4747, 5058, 2743, 13, 288, 3639, 4317, 563, 273, 394, 4317, 5621, 3639, 987, 400, 2016, 273, 10319, 18, 588, 1420, 1318, 7675, 588, 1420, 2016...
public final void processPoint(final DoubleArrayArray data, int index,DataList vertexColors,DataList vertexRadii) { DoubleArray da = data.item(index).toDoubleArray(); double w = 1; if (da.size() == 4) w = da.getValueAt(3); DataList vertexColorsOld; if (vertexColors!=null) { DoubleArray color = vertexColors.item(index).toDoubleArray(); for (int i = 0; i < 16; i++) { pointColors[i][0] = color.getValueAt(0); pointColors[i][1] = color.getValueAt(1); pointColors[i][2] = color.getValueAt(2); pointColors[i][3] = (color.size() > 3) ? color.getValueAt(3) : 1.; } } double r; if(vertexRadii != null) r = vertexRadii.toDoubleArray().getValueAt(index); else r = pointShader.getPointRadius(); processPoint(da.getValueAt(0), da.getValueAt(1), da.getValueAt(2), w,r,vertexColors!=null?pointColorsDataList:null);
public final void processPoint(final double[] data, int index, int length) { if (pointShader == null) return; double r = pointShader.getPointRadius(); if (length == 4) processPoint(data[index], data[index + 1], data[index + 2], data[index + 3],r,null); else processPoint(data[index], data[index + 1], data[index + 2], 1,r,null);
public final void processPoint(final DoubleArrayArray data, int index,DataList vertexColors,DataList vertexRadii) { DoubleArray da = data.item(index).toDoubleArray(); double w = 1; if (da.size() == 4) w = da.getValueAt(3); DataList vertexColorsOld; if (vertexColors!=null) { DoubleArray color = vertexColors.item(index).toDoubleArray(); for (int i = 0; i < 16; i++) { pointColors[i][0] = color.getValueAt(0); pointColors[i][1] = color.getValueAt(1); pointColors[i][2] = color.getValueAt(2); pointColors[i][3] = (color.size() > 3) ? color.getValueAt(3) : 1.; } } double r; if(vertexRadii != null) r = vertexRadii.toDoubleArray().getValueAt(index); else r = pointShader.getPointRadius(); //vertexColorsOld = vertexColors; //vertexColors = pointColorsDataList; processPoint(da.getValueAt(0), da.getValueAt(1), da.getValueAt(2), w,r,vertexColors!=null?pointColorsDataList:null); //vertexColors = vertexColorsOld; }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/cadaa870e9d6fe299fee0aa91e15091b25c25532/TrianglePipeline.java/buggy/src-soft-new/de/jreality/softviewer/TrianglePipeline.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1207, 2148, 12, 6385, 3698, 1076, 1076, 501, 16, 509, 770, 16, 24274, 5253, 12570, 16, 24274, 5253, 6621, 2835, 13, 288, 3639, 3698, 1076, 5248, 273, 501, 18, 1726, 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, 727, 918, 1207, 2148, 12, 6385, 3698, 1076, 1076, 501, 16, 509, 770, 16, 24274, 5253, 12570, 16, 24274, 5253, 6621, 2835, 13, 288, 3639, 3698, 1076, 5248, 273, 501, 18, 1726, 12, ...
return values;
return Arrays.asList(values);
public List getValues() { return values; }
49294 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49294/3492dea51f409d981523863eeb976b1010f08e06/ScanningResult.java/buggy/src/net/azib/ipscan/core/ScanningResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 13500, 1435, 288, 202, 202, 2463, 924, 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, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 13500, 1435, 288, 202, 202, 2463, 924, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
static ContextData get(Context cx) { return (ContextData)cx.getDebuggerContextData();
public static ContextData get(Context cx) { return (ContextData) cx.getDebuggerContextData();
static ContextData get(Context cx) { return (ContextData)cx.getDebuggerContextData(); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 760, 1772, 751, 336, 12, 1042, 9494, 13, 288, 5411, 327, 261, 1042, 751, 13, 71, 92, 18, 588, 24113, 1042, 751, 5621, 3639, 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, 540, 760, 1772, 751, 336, 12, 1042, 9494, 13, 288, 5411, 327, 261, 1042, 751, 13, 71, 92, 18, 588, 24113, 1042, 751, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
fTestResult= createTestResult(); fTestResult.addListener(TestRunner.this); aboutToStart(testSuite);
private void doRunTest(final Test testSuite, final boolean reload) { setButtonLabel(fRun, "Stop"); fRunner= new Thread("TestRunner-Thread") { public void run() { fTestResult= createTestResult(); fTestResult.addListener(TestRunner.this); aboutToStart(testSuite); TestRunner.this.start(testSuite); postInfo("Running..."); long startTime= System.currentTimeMillis(); testSuite.run(fTestResult); if (fTestResult.shouldStop()) { postStatus("Stopped"); } else { long endTime= System.currentTimeMillis(); long runTime= endTime-startTime; postInfo("Finished: " + elapsedTimeAsString(runTime) + " seconds"); } runFinished(testSuite); setButtonLabel(fRun, "Run"); fRunner= null; System.gc(); } }; fRunner.start(); }
32006 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32006/bfc94ee739d62127c7477300b26127bd560765a1/TestRunner.java/clean/junit/swingui/TestRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 1997, 4709, 12, 6385, 7766, 1842, 13587, 16, 727, 1250, 7749, 13, 288, 202, 202, 542, 3616, 2224, 12, 74, 1997, 16, 315, 4947, 8863, 202, 202, 74, 9709, 33, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 1997, 4709, 12, 6385, 7766, 1842, 13587, 16, 727, 1250, 7749, 13, 288, 202, 202, 542, 3616, 2224, 12, 74, 1997, 16, 315, 4947, 8863, 202, 202, 74, 9709, 33, 394, ...
double maxWrappingSize = lg.getWrappingSize( ); double dItemHeight = itm.getFullHeight( );
final double maxWrappingSize = lg.getWrappingSize( ); final double dItemHeight = itm.getFullHeight( );
public void renderLegend( IPrimitiveRenderer ipr, Legend lg, Map htRenderers ) throws ChartException { if ( !lg.isVisible( ) ) // CHECK VISIBILITY { return; } renderBlock( ipr, lg, StructureSource.createLegend( lg ) ); final IDisplayServer xs = getDevice( ).getDisplayServer( ); final double dScale = xs.getDpiResolution( ) / 72d; Bounds bo = lg.getBounds( ).scaledInstance( dScale ); Size sz = null; double dX, dY; if ( lg.getPosition( ) != Position.INSIDE_LITERAL ) { try { sz = lg.getPreferredSize( xs, cm, rtc ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } sz.scale( dScale ); // USE ANCHOR IN POSITIONING THE LEGEND CLIENT AREA WITHIN THE BLOCK // SLACK SPACE dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = 0; if ( lg.isSetAnchor( ) ) { final int iAnchor = lg.getAnchor( ).getValue( ); switch ( iAnchor ) { case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : dY = bo.getTop( ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : dY = bo.getTop( ) + bo.getHeight( ) - sz.getHeight( ); break; default : // CENTERED dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; break; } switch ( iAnchor ) { case Anchor.WEST : case Anchor.NORTH_WEST : dX = bo.getLeft( ); break; case Anchor.EAST : case Anchor.SOUTH_EAST : dX = bo.getLeft( ) + bo.getWidth( ) - sz.getWidth( ); break; default : // CENTERED dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; break; } } else { dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; } } else // USE PREVIOUSLY COMPUTED POSITION IN THE GENERATOR FOR LEGEND 'INSIDE' // PLOT { dX = bo.getLeft( ); dY = bo.getTop( ); sz = SizeImpl.create( bo.getWidth( ), bo.getHeight( ) ); // 'bo' // ALREADY // SCALED } // consider legend title size. Label lgTitle = lg.getTitle( ); double lgTitleWidth = 0, lgTitleHeight = 0; double yOffset = 0, xOffset = 0, wOffset = 0, hOffset = 0; if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { lgTitle = (Label) EcoreUtil.copy( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } lgTitleWidth = bb.getWidth( ); lgTitleHeight = bb.getHeight( ); switch ( lg.getTitlePosition( ).getValue( ) ) { case Position.ABOVE : yOffset = lgTitleHeight; hOffset = -yOffset; break; case Position.BELOW : hOffset = -lgTitleHeight; break; case Position.LEFT : xOffset = lgTitleWidth; wOffset = -xOffset; break; case Position.RIGHT : wOffset = -lgTitleWidth; break; } } // RENDER THE LEGEND CLIENT AREA final ClientArea ca = lg.getClientArea( ); final Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); LineAttributes lia = ca.getOutline( ); bo = BoundsImpl.create( dX, dY, sz.getWidth( ), sz.getHeight( ) ); bo = bo.adjustedInstance( lgIns ); // SHRINK // BY // INSETS dX = bo.getLeft( ); dY = bo.getTop( ); // Adjust bounds. bo.delta( xOffset, yOffset, wOffset, hOffset ); dX = bo.getLeft( ); dY = bo.getTop( ); final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), RectangleRenderEvent.class ); // render client area shadow. if ( ca.getShadowColor( ) != null ) { rre.setBounds( bo.translateInstance( 3, 3 ) ); rre.setBackground( ca.getShadowColor( ) ); ipr.fillRectangle( rre ); } // render client area rre.setBounds( bo ); rre.setOutline( lia ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); ipr.drawRectangle( rre ); lia = (LineAttributes) EcoreUtil.copy( lia ); lia.setVisible( true ); // SEPARATOR LINES MUST BE VISIBLE final SeriesDefinition[] seda = cm.getSeriesForLegend( ); // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation o = lg.getOrientation( ); final Direction d = lg.getDirection( ); final Label la = LabelImpl.create( ); la.setCaption( (Text) EcoreUtil.copy( lg.getText( ) ) ); la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); double maxWrappingSize = lg.getWrappingSize( ); double dItemHeight = itm.getFullHeight( ); final double dHorizontalSpacing = 4; final double dVerticalSpacing = 4; double dSeparatorThickness = lia.getThickness( ); Insets insCA = ca.getInsets( ).scaledInstance( dScale ); Series seBase; ArrayList al; LegendItemRenderingHints lirh; Palette pa; int iPaletteCount; EList elPaletteEntries; Fill fPaletteEntry; final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); // Calculate if minSlice applicable. boolean bMinSliceDefined = false; double dMinSlice = 0; boolean bPercentageMinSlice = false; String sMinSliceLabel = null; boolean bMinSliceApplied = false; // Get available maximum block width/height. Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); double dMaxX = boFull.getLeft( ) + boFull.getWidth( ) - ins.getRight( ) - lgIns.getRight( ); double dMaxY = boFull.getTop( ) + boFull.getHeight( ) - ins.getBottom( ) - lgIns.getBottom( ); if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); dMinSlice = ( (ChartWithoutAxes) cm ).getMinSlice( ); bPercentageMinSlice = ( (ChartWithoutAxes) cm ).isMinSlicePercent( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { if ( !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ).isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( ); DataSetIterator dsiOrtho = null; double dCurrentMinSlice = 0; for ( int i = 0; i < sdOrtho.length && !bMinSliceApplied; i++ ) { try { dsiOrtho = new DataSetIterator( ( (Series) sdOrtho[i].getRunTimeSeries( ) .get( 0 ) ).getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } // TODO Check dataset type, throw exception or ignore?. if ( bPercentageMinSlice ) { double total = 0; while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { total += ( (Number) obj ).doubleValue( ); } } dsiOrtho.reset( ); dCurrentMinSlice = total * dMinSlice / 100d; } else { dCurrentMinSlice = dMinSlice; } while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { double val = ( (Number) obj ).doubleValue( ); if ( val < dCurrentMinSlice ) { bMinSliceApplied = true; break; } } } } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( o.getValue( ) == Orientation.VERTICAL ) { double dXOffset = 0, dMaxW = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. // render legend item. dY += insCA.getTop( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceDefined && bMinSliceApplied ) { dY += insCA.getTop( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ) - 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX, dY + dSeparatorThickness / 2, dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxW = 0; al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ) - 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + // MAX ITEM WIDTH + RIGHT INSETS dXOffset += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dX += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dY = bo.getTop( ); // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX + dSeparatorThickness / 2, dY, bo.getHeight( ), Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); } } else if ( o.getValue( ) == Orientation.HORIZONTAL ) { double dYOffset = 0, dMaxH = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; // ONLY // SUPPORT // 1 // BASE // AXIS // FOR // NOW if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return; // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; dY += insCA.getTop( ); while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. dX += insCA.getLeft( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dX + itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dX += itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceDefined && bMinSliceApplied ) { dX += insCA.getLeft( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dX + itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, 0, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); dX += itm.getFullWidth( ) + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxH = 0; dY += insCA.getTop( ); dX = bo.getLeft( ) + insCA.getLeft( ); al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ); } dYOffset += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dY += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dX = bo.getLeft( ) + insCA.getLeft( ); // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX, dY + dSeparatorThickness / 2, bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { dSeparatorThickness += dHorizontalSpacing; dX += insCA.getLeft( ); dY += insCA.getTop( ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getLocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, Locale.getDefault( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = (Label) EcoreUtil.copy( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dFWidth + insCA.getRight( ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, lia, dX + dSeparatorThickness / 2, dY, dMaxH, Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.orientation", //$NON-NLS-1$ new Object[]{ o.getName( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED } // Render legend title if defined. if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { double lX = bo.getLeft( ); double lY = bo.getTop( ); switch ( lg.getTitlePosition( ).getValue( ) ) { case Position.ABOVE : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) - lgTitleHeight; break; case Position.BELOW : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) + bo.getHeight( ); break; case Position.LEFT : lX = bo.getLeft( ) - lgTitleWidth; lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; case Position.RIGHT : lX = bo.getLeft( ) + bo.getWidth( ); lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; } final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( WrappedStructureSource.createLegendTitle( lg, lgTitle ), TextRenderEvent.class ); tre.setBlockBounds( BoundsImpl.create( lX, lY, lgTitleWidth, lgTitleHeight ) ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setLabel( lgTitle ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } itm.dispose( ); // DISPOSE RESOURCES AFTER USE }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/536b54a46b25aa99e427a2fbd8217e09108c905a/BaseRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1743, 16812, 12, 467, 9840, 6747, 277, 683, 16, 17167, 409, 15266, 16, 1635, 14049, 3420, 414, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 23623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 16812, 12, 467, 9840, 6747, 277, 683, 16, 17167, 409, 15266, 16, 1635, 14049, 3420, 414, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 23623, ...
public boolean registerListener( SocketQueueListener l ) { return sq.registerListener( l ); }
public boolean registerListener( SocketQueueListener l ) { return this.listeners.add( l ); }
public boolean registerListener( SocketQueueListener l ) { return sq.registerListener( l ); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/a76e19cb89dfb1966f34f7b6340d9dfccae070fc/IncomingSocketQueue.java/buggy/jvector/src/com/metavize/jvector/IncomingSocketQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1744, 2223, 12, 8758, 3183, 2223, 328, 262, 288, 327, 4744, 18, 4861, 2223, 12, 328, 11272, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1744, 2223, 12, 8758, 3183, 2223, 328, 262, 288, 327, 4744, 18, 4861, 2223, 12, 328, 11272, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
args[i] = (String) dbs.next(); i++;
parameters.add( "-d" );
private void mergeCloverDatabases() throws MojoExecutionException { List dbFiles = getChildrenCloverDatabases(); String[] args = new String[dbFiles.size() + 2]; args[0] = "-i"; args[1] = this.cloverMergeDatabase; int i = 2; for ( Iterator dbs = dbFiles.iterator(); dbs.hasNext(); ) { args[i] = (String) dbs.next(); i++; } int mergeResult = CloverMerge.mainImpl( args ); if ( mergeResult != 0 ) { throw new MojoExecutionException( "Clover has failed to merge the children module databases" ); } }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/8fc04abecc10fd9e31b4b6a6c6b48cf93b118d2e/CloverAggregateMojo.java/clean/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverAggregateMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2691, 4082, 502, 31635, 1435, 1216, 18780, 565, 288, 3639, 987, 1319, 2697, 273, 10268, 4082, 502, 31635, 5621, 3639, 514, 8526, 833, 273, 394, 514, 63, 1966, 2697, 18, 1467, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4082, 502, 31635, 1435, 1216, 18780, 565, 288, 3639, 987, 1319, 2697, 273, 10268, 4082, 502, 31635, 5621, 3639, 514, 8526, 833, 273, 394, 514, 63, 1966, 2697, 18, 1467, 1...
synchronized void doUnfloat() {
synchronized public void doUnfloat() {
synchronized void doUnfloat() { if(frame != null) { frame.getContentPane().remove(main); frame.setVisible(false); frame = null; } buttonFloat.setToolTipText("Float window"); add(main, BorderLayout.CENTER); remove(buttonInfo); revalidate(); invalidate(); doLayout(); repaint(); }
13251 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13251/2d340468f3b09cefe28c71ca408995e083558e56/JFloatable.java/buggy/osgi/bundles/desktop/src/org/knopflerfish/bundle/desktop/swing/JFloatable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3852, 1071, 918, 741, 984, 5659, 1435, 288, 565, 309, 12, 3789, 480, 446, 13, 288, 1377, 2623, 18, 588, 1350, 8485, 7675, 4479, 12, 5254, 1769, 1377, 2623, 18, 542, 6207, 12, 5743, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3852, 1071, 918, 741, 984, 5659, 1435, 288, 565, 309, 12, 3789, 480, 446, 13, 288, 1377, 2623, 18, 588, 1350, 8485, 7675, 4479, 12, 5254, 1769, 1377, 2623, 18, 542, 6207, 12, 5743, 1769...
errln("Normalizer error: quickCheck(NFKD(s), NewNormalizer.FCD) is NewNormalizer.NO");
errln("Normalizer error: quickCheck(NFKD(s), Normalizer.FCD) is Normalizer.NO");
private boolean checkConformance(String[] field, String line, int options) throws Exception{ boolean pass = true; StringBuffer buf = new StringBuffer(); // scratch String out,fcd; int i=0; for (i=0; i<5; ++i) { if (i<3) { out = Normalizer.normalize(field[i], Normalizer.NFC, options); pass &= assertEqual("C", field[i], out, field[1], "c2!=C(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFC, buf, +1,options); pass &= assertEqual("C(+1)", field[i], out, field[1], "c2!=C(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFC, buf, -1,options); pass &= assertEqual("C(-1)", field[i], out, field[1], "c2!=C(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFC, buf, +1,options); pass &= assertEqual("C(+1)", field[i], out, field[1], "c2!=C(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFC, buf, -1,options); pass &= assertEqual("C(-1)", field[i], out, field[1], "c2!=C(c" + (i+1)); out = Normalizer.normalize(field[i], Normalizer.NFD); pass &= assertEqual("D", field[i], out, field[2], "c3!=D(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFD, buf, +1,options); pass &= assertEqual("D(+1)", field[i], out, field[2], "c3!=D(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFD, buf, -1,options); pass &= assertEqual("D(-1)", field[i], out, field[2], "c3!=D(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFD, buf, +1,options); pass &= assertEqual("D(+1)", field[i], out, field[2], "c3!=D(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFD, buf, -1,options); pass &= assertEqual("D(-1)", field[i], out, field[2], "c3!=D(c" + (i+1)); cross(field[2] /*NFD String*/, field[1]/*NFC String*/, Normalizer.NFC); cross(field[1] /*NFC String*/, field[2]/*NFD String*/, Normalizer.NFD); } out = Normalizer.normalize(field[i], Normalizer.NFKC,options); pass &= assertEqual("KC", field[i], out, field[3], "c4!=KC(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFKC, buf, +1,options); pass &= assertEqual("KD(+1)", field[i], out, field[3], "c4!=KC(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFKC, buf, -1,options); pass &= assertEqual("KD(-1)", field[i], out, field[3], "c4!=KC(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFKC, buf, +1,options); pass &= assertEqual("KD(+1)", field[i], out, field[3], "c4!=KC(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFKC, buf, -1,options); pass &= assertEqual("KD(-1)", field[i], out, field[3], "c4!=KC(c" + (i+1)); out = Normalizer.normalize(field[i], Normalizer.NFKD,options); pass &= assertEqual("KD", field[i], out, field[4], "c5!=KD(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFKD, buf, +1,options); pass &= assertEqual("KD(+1)", field[i], out, field[4], "c5!=KD(c" + (i+1)); out = iterativeNorm(field[i], Normalizer.NFKD, buf, -1,options); pass &= assertEqual("KD(-1)", field[i], out, field[4], "c5!=KD(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFKD, buf, +1,options); pass &= assertEqual("KD(+1)", field[i], out, field[4], "c5!=KD(c" + (i+1)); out = iterativeNorm(new StringCharacterIterator(field[i]), Normalizer.NFKD, buf, -1,options); pass &= assertEqual("KD(-1)", field[i], out, field[4], "c5!=KD(c" + (i+1)); cross(field[4] /*NFKD String*/, field[3]/*NFKC String*/, Normalizer.NFKC); cross(field[3] /*NFKC String*/, field[4]/*NFKD String*/, Normalizer.NFKD); } compare(field[1],field[2]); compare(field[0],field[1]); compare(field[0],field[2]); // test quick checks if(Normalizer.NO == Normalizer.quickCheck(field[1], Normalizer.NFC,options)) { errln("Normalizer error: quickCheck(NFC(s), NewNormalizer.NFC) is NewNormalizer.NO"); pass = false; } if(Normalizer.NO == Normalizer.quickCheck(field[2], Normalizer.NFD,options)) { errln("Normalizer error: quickCheck(NFD(s), NewNormalizer.NFD) is NewNormalizer.NO"); pass = false; } if(Normalizer.NO == Normalizer.quickCheck(field[3], Normalizer.NFKC,options)) { errln("Normalizer error: quickCheck(NFKC(s), NewNormalizer.NFKC) is NewNormalizer.NO"); pass = false; } if(Normalizer.NO == Normalizer.quickCheck(field[4], Normalizer.NFKD,options)) { errln("Normalizer error: quickCheck(NFKD(s), NewNormalizer.NFKD) is NewNormalizer.NO"); pass = false; } if(!Normalizer.isNormalized(field[1], Normalizer.NFC, options)) { errln("Normalizer error: isNormalized(NFC(s), NewNormalizer.NFC) is false"); pass = false; } if(!field[0].equals(field[1]) && Normalizer.isNormalized(field[0], Normalizer.NFC, options)) { errln("Normalizer error: isNormalized(s, NewNormalizer.NFC) is TRUE"); pass = false; } if(!Normalizer.isNormalized(field[3], Normalizer.NFKC, options)) { errln("Normalizer error: isNormalized(NFKC(s), NewNormalizer.NFKC) is false"); pass = false; } if(!field[0].equals(field[3]) && Normalizer.isNormalized(field[0], Normalizer.NFKC, options)) { errln("Normalizer error: isNormalized(s, NewNormalizer.NFKC) is TRUE"); pass = false; } // test api that takes a char[] if(!Normalizer.isNormalized(field[1].toCharArray(),0,field[1].length(), Normalizer.NFC,options)) { errln("Normalizer error: isNormalized(NFC(s), NewNormalizer.NFC) is false"); pass = false; } // test api that takes a codepoint if(!Normalizer.isNormalized(UTF16.charAt(field[1],0), Normalizer.NFC,options)) { errln("Normalizer error: isNormalized(NFC(s), NewNormalizer.NFC) is false"); pass = false; } // test FCD quick check and "makeFCD" fcd=Normalizer.normalize(field[0], Normalizer.FCD); if(Normalizer.NO == Normalizer.quickCheck(fcd, Normalizer.FCD,options)) { errln("Normalizer error: quickCheck(FCD(s), NewNormalizer.FCD) is NewNormalizer.NO"); pass = false; } if(Normalizer.NO == Normalizer.quickCheck(fcd, Normalizer.FCD, options)) { errln("Normalizer error: quickCheck(FCD(s), NewNormalizer.FCD) is NewNormalizer.NO"); pass = false; } if(Normalizer.NO == Normalizer.quickCheck(field[2], Normalizer.FCD, options)) { errln("Normalizer error: quickCheck(NFD(s), NewNormalizer.FCD) is NewNormalizer.NO"); pass = false; } if(Normalizer.NO == Normalizer.quickCheck(field[4], Normalizer.FCD, options)) { errln("Normalizer error: quickCheck(NFKD(s), NewNormalizer.FCD) is NewNormalizer.NO"); pass = false; } out = iterativeNorm(new StringCharacterIterator(field[0]), Normalizer.FCD, buf, +1,options); out = iterativeNorm(new StringCharacterIterator(field[0]), Normalizer.FCD, buf, -1,options); out = iterativeNorm(new StringCharacterIterator(field[2]), Normalizer.FCD, buf, +1,options); out = iterativeNorm(new StringCharacterIterator(field[2]), Normalizer.FCD, buf, -1,options); out = iterativeNorm(new StringCharacterIterator(field[4]), Normalizer.FCD, buf, +1,options); out = iterativeNorm(new StringCharacterIterator(field[4]), Normalizer.FCD, buf, -1,options); out=Normalizer.normalize(fcd, Normalizer.NFD); if(!out.equals(field[2])) { errln("Normalizer error: NFD(FCD(s))!=NFD(s)"); pass = false; } if (!pass) { errln("FAIL: " + line); } if(field[0]!=field[2]) { // two strings that are canonically equivalent must test // equal under a canonical caseless match // see UAX #21 Case Mappings and Jitterbug 2021 and // Unicode Technical Committee meeting consensus 92-C31 int rc; if((rc = Normalizer.compare(field[0], field[2], (options<<Normalizer.COMPARE_NORM_OPTIONS_SHIFT)|Normalizer.COMPARE_IGNORE_CASE))!=0){ errln("Normalizer.compare(original, NFD, case-insensitive) returned "+rc+" instead of 0 for equal"); pass=false; } } return pass; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/8eda2a2927df7c9fb008630877248928611b5ffd/ConformanceTest.java/buggy/icu4j/src/com/ibm/icu/dev/test/normalizer/ConformanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 866, 442, 687, 1359, 12, 780, 8526, 652, 16, 514, 980, 16, 509, 702, 13, 1216, 1185, 95, 3639, 1250, 1342, 273, 638, 31, 3639, 6674, 1681, 273, 394, 6674, 5621, 368, 15289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 866, 442, 687, 1359, 12, 780, 8526, 652, 16, 514, 980, 16, 509, 702, 13, 1216, 1185, 95, 3639, 1250, 1342, 273, 638, 31, 3639, 6674, 1681, 273, 394, 6674, 5621, 368, 15289, ...
props.remove(new Integer(propType));
props.remove(propType);
public void putProp(int propType, Object prop) { if (props == null) props = new Hashtable(2); if (prop == null) props.remove(new Integer(propType)); else props.put(new Integer(propType), prop); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/332f58b128a89469f3312dfd70f2b99b7211caf4/Node.java/buggy/js/rhino/src/org/mozilla/javascript/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 4658, 12, 474, 2270, 559, 16, 1033, 2270, 13, 288, 3639, 309, 261, 9693, 422, 446, 13, 5411, 3458, 273, 394, 18559, 12, 22, 1769, 3639, 309, 261, 5986, 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, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 4658, 12, 474, 2270, 559, 16, 1033, 2270, 13, 288, 3639, 309, 261, 9693, 422, 446, 13, 5411, 3458, 273, 394, 18559, 12, 22, 1769, 3639, 309, 261, 5986, 422, 446, 13, ...
append(message, date[h], 2);
append(message, date.hour, 2);
protected String dateToString(int[] date) { StringBuffer message = new StringBuffer(16); append(message, date[h], 2); message.append(':'); append(message, date[m], 2); message.append(':'); append(message, date[s], 2); message.append('.'); message.append(date[ms]); append(message, (char)date[utc], 0); return message.toString(); }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/7569f1e56b929395f70c2717a33b9ea5e6583d7a/TimeDV.java/buggy/src/org/apache/xerces/impl/dv/xs/TimeDV.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 1509, 5808, 12, 474, 8526, 1509, 13, 288, 3639, 6674, 883, 273, 394, 6674, 12, 2313, 1769, 3639, 714, 12, 2150, 16, 1509, 18, 12091, 16, 576, 1769, 3639, 883, 18, 6923, 2668,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 1509, 5808, 12, 474, 8526, 1509, 13, 288, 3639, 6674, 883, 273, 394, 6674, 12, 2313, 1769, 3639, 714, 12, 2150, 16, 1509, 18, 12091, 16, 576, 1769, 3639, 883, 18, 6923, 2668,...
jMenuItemPrintActionPerformed(evt);
jMenuItemInsertFileActionPerformed(evt);
public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPrintActionPerformed(evt); }
7731 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7731/1353d26b3e581366864bd35e0c02968df79ae56b/jFrame.java/clean/Project/jFrame.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, 525, 12958, 4600, 812, 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, 525, 12958, 4600, 812, 19449, 12, 73, 11734, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, ...
this.mipmapData = (Buffer[]) mipmapData.clone();
this.buffer = buffer;
public TextureData(int internalFormat, int width, int height, int border, int pixelFormat, int pixelType, boolean dataIsCompressed, boolean mustFlipVertically, Buffer[] mipmapData, Flusher flusher) throws IllegalArgumentException { this.width = width; this.height = height; this.border = border; this.pixelFormat = pixelFormat; this.pixelType = pixelType; this.internalFormat = internalFormat; this.dataIsCompressed = dataIsCompressed; this.mustFlipVertically = mustFlipVertically; this.mipmapData = (Buffer[]) mipmapData.clone(); this.flusher = flusher; alignment = 1; // FIXME: is this correct enough in all situations? }
48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/173a96d2a2a492190b054ede8713d86d651e5426/TextureData.java/buggy/src/classes/com/sun/opengl/utils/TextureData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 28582, 751, 12, 474, 2713, 1630, 16, 5397, 509, 1835, 16, 5397, 509, 2072, 16, 5397, 509, 5795, 16, 5397, 509, 4957, 1630, 16, 5397, 509, 4957, 559, 16, 5397, 1250, 501, 2520, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28582, 751, 12, 474, 2713, 1630, 16, 5397, 509, 1835, 16, 5397, 509, 2072, 16, 5397, 509, 5795, 16, 5397, 509, 4957, 1630, 16, 5397, 509, 4957, 559, 16, 5397, 1250, 501, 2520, 168...
public org.quickfix.field.OrderQty getOrderQty() throws FieldNotFound { org.quickfix.field.OrderQty value = new org.quickfix.field.OrderQty();
public quickfix.field.OrderQty getOrderQty() throws FieldNotFound { quickfix.field.OrderQty value = new quickfix.field.OrderQty();
public org.quickfix.field.OrderQty getOrderQty() throws FieldNotFound { org.quickfix.field.OrderQty value = new org.quickfix.field.OrderQty(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusReport.java/clean/src/java/src/quickfix/fix44/QuoteStatusReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 11973, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 460, 273, 394, 2358, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 11973, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2448, 53, 4098, 460, 273, 394, 2358, 18,...
}
}
private static void encodeString(StringBuffer sb, String s) { if (SimpleSLTokenizer.isAWord(s)) { sb.append(s); } else { sb.append(SimpleSLTokenizer.quoteString(s)); } }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/99fa5ab389f54f8148b9da379aa03457d6dbe08a/DFService.java/clean/src/jade/domain/DFService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 2017, 780, 12, 780, 1892, 2393, 16, 514, 272, 13, 288, 202, 202, 430, 261, 5784, 4559, 10524, 18, 291, 37, 3944, 12, 87, 3719, 288, 1082, 202, 18366, 18, 6923, 12, 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, 282, 3238, 760, 918, 2017, 780, 12, 780, 1892, 2393, 16, 514, 272, 13, 288, 202, 202, 430, 261, 5784, 4559, 10524, 18, 291, 37, 3944, 12, 87, 3719, 288, 1082, 202, 18366, 18, 6923, 12, 87,...
if (action == "suchen") {
if (action == "suchen") { System.out.println(this.getTab().getTfSuche().getText()); System.out.println(getSelectedItemJComboBoxSucheNach());
public void actionPerformed(ActionEvent e) { String action = e.getActionCommand(); if (action == "download") { try{ new SerMovieGuide2Xml(null, this.getMainView()).start(); }catch (Exception ex){System.out.println(ex);} } if (action == "neuEinlesen") { // } if (action == "select2Timer") { if (this.getJTableTimer().getSelectedRow()>=0) { getTimerTableSelectToTimer(); } else { SerAlertDialog.alert("Kein Timer ausgewhlt!", this.getMainView()); } } if (action == "suchen") { setSelectedItemJComboBox(this.getTab().getTfSuche().getText()); if(getSelectedItemJComboBoxSucheNach()==0) { reInitFilmTable(11); }else{ reInitFilmTable(getSelectedItemJComboBoxSucheNach()); } } if (action == "allDates") { reInitFilmTable(13); } if (action == "movieGuidePath") { this.openFileChooser(); } }
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/5830d13423ed38f9afdcd51ecd36bd65eb03c74c/ControlMovieGuideTab.java/clean/jtg/control/ControlMovieGuideTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 430, 261, 1128, 422, 315, 7813, 7923, 288, 1082, 202, 698, 95, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 780, 1301, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 430, 261, 1128, 422, 315, 7813, 7923, 288, 1082, 202, 698, 95, ...
getTriggers().addAll((Collection)newValue);
getTriggers().addAll((Collection) newValue);
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.BAR_SERIES__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case TypePackage.BAR_SERIES__LABEL: setLabel((Label)newValue); return; case TypePackage.BAR_SERIES__DATA_DEFINITION: getDataDefinition().clear(); getDataDefinition().addAll((Collection)newValue); return; case TypePackage.BAR_SERIES__SERIES_IDENTIFIER: setSeriesIdentifier((Object)newValue); return; case TypePackage.BAR_SERIES__DATA_POINT: setDataPoint((DataPoint)newValue); return; case TypePackage.BAR_SERIES__DATA_SET: setDataSet((DataSet)newValue); return; case TypePackage.BAR_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)newValue); return; case TypePackage.BAR_SERIES__LABEL_POSITION: setLabelPosition((Position)newValue); return; case TypePackage.BAR_SERIES__STACKED: setStacked(((Boolean)newValue).booleanValue()); return; case TypePackage.BAR_SERIES__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case TypePackage.BAR_SERIES__TRANSLUCENT: setTranslucent(((Boolean)newValue).booleanValue()); return; case TypePackage.BAR_SERIES__RISER: setRiser((RiserType)newValue); return; case TypePackage.BAR_SERIES__RISER_OUTLINE: setRiserOutline((ColorDefinition)newValue); return; } eDynamicSet(eFeature, newValue); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/BarSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/BarSeriesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 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, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 1412, 2261, 18, 2...
return this.ppm.getProperty(name);
return _ppm.getProperty(name);
public String getProperty(String name) { return this.ppm.getProperty(name); }
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/e8f1a944c2d9d72f8917a879444c29db47b22d63/ProductPluginDeployer.java/clean/src/org/hyperic/hq/product/server/mbean/ProductPluginDeployer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3911, 12, 780, 508, 13, 288, 4202, 327, 389, 84, 7755, 18, 588, 1396, 12, 529, 1769, 377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3911, 12, 780, 508, 13, 288, 4202, 327, 389, 84, 7755, 18, 588, 1396, 12, 529, 1769, 377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ByteArrayOutputStream out = new ByteArrayOutputStream( 8096 ); stats.reportSummary( out ); transformSummary( out.toString() ); out.close();
StringWriter html = new StringWriter(); try { stats.transformSummaryToHTML(html); summary = html.toString(); } catch (Exception e) { logger.logMessage(ConsoleLogger.WARNING, "Failed to transform summary: " + e.toString()); summary = MISSING_SUMMARY_MESSAGE; }
private void createSummary(ProjectStats stats) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream( 8096 ); stats.reportSummary( out ); transformSummary( out.toString() ); out.close(); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/62518f5475a93089f9695fceb4316710c2f5979b/AnalysisRun.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/AnalysisRun.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 4733, 12, 4109, 4195, 3177, 13, 1216, 1860, 288, 3639, 11559, 596, 273, 394, 11559, 12, 1725, 5908, 26, 11272, 202, 5296, 18, 6006, 4733, 12, 596, 11272, 3639, 2510, 4733,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 918, 752, 4733, 12, 4109, 4195, 3177, 13, 1216, 1860, 288, 3639, 11559, 596, 273, 394, 11559, 12, 1725, 5908, 26, 11272, 202, 5296, 18, 6006, 4733, 12, 596, 11272, 3639, 2510, 4733,...
return jjMoveStringLiteralDfa1_0(0x40000000L, 0x0L, 0x0L); case 38: jjmatchedKind = 42; return jjMoveStringLiteralDfa1_0(0x8800000000L, 0x0L, 0x0L); case 40: return jjStopAtPos(0, 19); case 41: return jjStopAtPos(0, 20); case 42: jjmatchedKind = 53; return jjMoveStringLiteralDfa1_0(0x10000000L, 0x0L, 0x0L); case 43: jjmatchedKind = 51; return jjMoveStringLiteralDfa1_0(0x100000080000000L, 0x0L, 0x0L); case 44:
return jjMoveStringLiteralDfa1_0(0x40000060L, 0x0L, 0x0L); case 58: jjmatchedKind = 23; return jjMoveStringLiteralDfa1_0(0x400000L, 0x0L, 0x0L); case 59:
static private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 13: return jjMoveStringLiteralDfa1_0(0x8L, 0x0L, 0x0L); case 33: jjmatchedKind = 59; return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x0L, 0x0L); case 35: return jjStopAtPos(0, 7); case 37: jjmatchedKind = 55; return jjMoveStringLiteralDfa1_0(0x40000000L, 0x0L, 0x0L); case 38: jjmatchedKind = 42; return jjMoveStringLiteralDfa1_0(0x8800000000L, 0x0L, 0x0L); case 40: return jjStopAtPos(0, 19); case 41: return jjStopAtPos(0, 20); case 42: jjmatchedKind = 53; return jjMoveStringLiteralDfa1_0(0x10000000L, 0x0L, 0x0L); case 43: jjmatchedKind = 51; return jjMoveStringLiteralDfa1_0(0x100000080000000L, 0x0L, 0x0L); case 44: return jjStopAtPos(0, 24); case 45: jjmatchedKind = 52; return jjMoveStringLiteralDfa1_0(0xa200000100000000L, 0x0L, 0x0L); case 46: jjmatchedKind = 60; return jjMoveStringLiteralDfa1_0(0x4000000004000000L, 0x0L, 0x0L); case 47: jjmatchedKind = 54; return jjMoveStringLiteralDfa1_0(0x20000060L, 0x0L, 0x0L); case 58: jjmatchedKind = 22; return jjMoveStringLiteralDfa1_0(0x200000L, 0x0L, 0x0L); case 59: return jjStopAtPos(0, 23); case 60: jjmatchedKind = 45; return jjMoveStringLiteralDfa1_0(0x2800200000000L, 0x0L, 0x0L); case 61: jjmatchedKind = 27; return jjMoveStringLiteralDfa1_0(0x80000000000L, 0x0L, 0x0L); case 62: jjmatchedKind = 46; return jjMoveStringLiteralDfa1_0(0x5000400000000L, 0x0L, 0x0L); case 63: return jjStopAtPos(0, 25); case 91: return jjStopAtPos(0, 17); case 93: return jjStopAtPos(0, 18); case 94: jjmatchedKind = 41; return jjMoveStringLiteralDfa1_0(0x1000000000L, 0x0L, 0x0L); case 97: return jjMoveStringLiteralDfa1_0(0x0L, 0x1L, 0x0L); case 98: return jjMoveStringLiteralDfa1_0(0x0L, 0x2L, 0x0L); case 99: return jjMoveStringLiteralDfa1_0(0x0L, 0x40000007cL, 0x0L); case 100: return jjMoveStringLiteralDfa1_0(0x0L, 0x780L, 0x0L); case 101: return jjMoveStringLiteralDfa1_0(0x0L, 0x3800L, 0x0L); case 102: return jjMoveStringLiteralDfa1_0(0x0L, 0x100000001c000L, 0x4L); case 103: return jjMoveStringLiteralDfa1_0(0x0L, 0x20000L, 0x0L); case 105: return jjMoveStringLiteralDfa1_0(0x0L, 0x1c0000L, 0x0L); case 108: return jjMoveStringLiteralDfa1_0(0x0L, 0x200000L, 0x0L); case 110: return jjMoveStringLiteralDfa1_0(0x0L, 0x400000L, 0x0L); case 111: return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000000L, 0x0L); case 112: return jjMoveStringLiteralDfa1_0(0x0L, 0x3800000L, 0x0L); case 114: return jjMoveStringLiteralDfa1_0(0x0L, 0x1c000000L, 0x0L); case 115: return jjMoveStringLiteralDfa1_0(0x0L, 0xbe0000000L, 0x0L); case 116: return jjMoveStringLiteralDfa1_0(0x0L, 0x280f000000000L, 0x0L); case 117: return jjMoveStringLiteralDfa1_0(0x0L, 0x30000000000L, 0x0L); case 118: return jjMoveStringLiteralDfa1_0(0x0L, 0x1c0000000000L, 0x0L); case 119: return jjMoveStringLiteralDfa1_0(0x0L, 0x200000000000L, 0x0L); case 123: return jjStopAtPos(0, 15); case 124: jjmatchedKind = 40; return jjMoveStringLiteralDfa1_0(0x6000000000L, 0x0L, 0x0L); case 125: return jjStopAtPos(0, 16); case 126: return jjStopAtPos(0, 58); default : return jjMoveNfa_0(32, 0); }}
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/380243817238f20dded6aa323a249c33dbaceae3/CPPParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 5958, 30, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 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, 760, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 20, 67, 20, 1435, 95, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 5958, 30, 540, 327, 10684, 7607, 28565, 40, 507, 21, 67, 20, 12,...
public NonLocalUndoUserApprover(IUndoContext context, IEditorPart part) {
public NonLocalUndoUserApprover(IUndoContext context, IEditorPart part, Object[] affectedObjects, Class preferredComparisonClass) {
public NonLocalUndoUserApprover(IUndoContext context, IEditorPart part) { super(); this.context = context; this.part = part; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/cd33c6a3238d6f19561ea322096c7822ae3f556c/NonLocalUndoUserApprover.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/NonLocalUndoUserApprover.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3858, 2042, 31224, 1299, 12053, 502, 12, 45, 31224, 1042, 819, 16, 467, 6946, 1988, 1087, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 2472, 273, 819, 31, 202, 202, 2211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3858, 2042, 31224, 1299, 12053, 502, 12, 45, 31224, 1042, 819, 16, 467, 6946, 1988, 1087, 13, 288, 202, 202, 9565, 5621, 202, 202, 2211, 18, 2472, 273, 819, 31, 202, 202, 2211...
public List<Member.Method> getMethods() { List<Member.Method> methods = getMethods(buffer.getText(0, buffer.getLength()), textArea.getCaretPosition());
public List<Method> getMethods() { List<Method> methods = getMethods(buffer.getText(0, buffer.getLength()), textArea.getCaretPosition());
public List<Member.Method> getMethods() { List<Member.Method> methods = getMethods(buffer.getText(0, buffer.getLength()), textArea.getCaretPosition()); return methods; }
13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/78910396db526f1a2c23d8031643a45e6343ce79/CodeCompletor.java/buggy/src/org/jedit/ruby/CodeCompletor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 32, 4419, 18, 1305, 34, 15429, 1435, 288, 3639, 987, 32, 4419, 18, 1305, 34, 2590, 273, 15429, 12, 4106, 18, 588, 1528, 12, 20, 16, 1613, 18, 588, 1782, 1435, 3631, 977, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 32, 4419, 18, 1305, 34, 15429, 1435, 288, 3639, 987, 32, 4419, 18, 1305, 34, 2590, 273, 15429, 12, 4106, 18, 588, 1528, 12, 20, 16, 1613, 18, 588, 1782, 1435, 3631, 977, 54...
ENotificationImpl notification = new ENotificationImpl( this, Notification.SET, TypePackage.STOCK_SERIES__LINE_ATTRIBUTES, oldLineAttributes, newLineAttributes ); if ( msgs == null ) msgs = notification; else msgs.add( notification );
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TypePackage.STOCK_SERIES__LINE_ATTRIBUTES, oldLineAttributes, newLineAttributes); if (msgs == null) msgs = notification; else msgs.add(notification);
public NotificationChain basicSetLineAttributes( LineAttributes newLineAttributes, NotificationChain msgs ) { LineAttributes oldLineAttributes = lineAttributes; lineAttributes = newLineAttributes; if ( eNotificationRequired( ) ) { ENotificationImpl notification = new ENotificationImpl( this, Notification.SET, TypePackage.STOCK_SERIES__LINE_ATTRIBUTES, oldLineAttributes, newLineAttributes ); if ( msgs == null ) msgs = notification; else msgs.add( notification ); } return msgs; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/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, 27050, 5337, 694, 1670, 2498, 12, 1082, 202, 1670, 2498, 8093, 2498, 16, 27050, 8733, 262, 202, 95, 202, 202, 1670, 2498, 1592, 1670, 2498, 273, 980, 2498, 31, 202, 202, 1369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27050, 5337, 694, 1670, 2498, 12, 1082, 202, 1670, 2498, 8093, 2498, 16, 27050, 8733, 262, 202, 95, 202, 202, 1670, 2498, 1592, 1670, 2498, 273, 980, 2498, 31, 202, 202, 1369, ...
int tabWidth= CodeFormatterUtil.getTabWidth(); String constSource= format(fType.getElementName() + '(' + createDeclarationForEnclosingInstance() + "){" + createEnclosingInstanceInitialization() + '}', 0); String[] constLines= Strings.convertIntoLines(constSource); MemberEdit constEdit= new MemberEdit(fType, MemberEdit.ADD_AT_BEGINNING, constLines, tabWidth);
String[] constLines= Strings.convertIntoLines(format(getNewConstructorSource(), 0)); MemberEdit constEdit= new MemberEdit(fType, MemberEdit.ADD_AT_BEGINNING, constLines, CodeFormatterUtil.getTabWidth());
private void addConstructor(TextChangeManager manager) throws CoreException { int tabWidth= CodeFormatterUtil.getTabWidth(); String constSource= format(fType.getElementName() + '(' + createDeclarationForEnclosingInstance() + "){" + //$NON-NLS-1$ createEnclosingInstanceInitialization() + '}', 0); String[] constLines= Strings.convertIntoLines(constSource); MemberEdit constEdit= new MemberEdit(fType, MemberEdit.ADD_AT_BEGINNING, constLines, tabWidth); manager.get(getInputTypeCu()).addTextEdit(RefactoringCoreMessages.getString("MoveInnerToTopRefactoring.add_constructor"), constEdit); //$NON-NLS-1$ }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/bce534a8d8f7bc70706ee725f7ea6b7724989ac4/MoveInnerToTopRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 6293, 12, 1528, 3043, 1318, 3301, 13, 1216, 30015, 288, 202, 202, 474, 3246, 2384, 33, 3356, 5074, 1304, 18, 588, 5661, 2384, 5621, 202, 202, 780, 1866, 1830, 33, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 6293, 12, 1528, 3043, 1318, 3301, 13, 1216, 30015, 288, 202, 202, 474, 3246, 2384, 33, 3356, 5074, 1304, 18, 588, 5661, 2384, 5621, 202, 202, 780, 1866, 1830, 33, 7...
private void init() { this.setSize(getParent().getClientArea().width, getParent().getClientArea().height); this.vListeners = new Vector(); }
private void init( ) { this.setSize( getParent( ).getClientArea( ).width, getParent( ).getClientArea( ).height ); this.vListeners = new Vector( ); }
private void init() { this.setSize(getParent().getClientArea().width, getParent().getClientArea().height); this.vListeners = new Vector(); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5083d99ac2739e195f14f571726ed9b3981275ff/InsetsComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/InsetsComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 1435, 565, 288, 3639, 333, 18, 542, 1225, 12, 588, 3054, 7675, 588, 1227, 5484, 7675, 2819, 16, 5089, 7675, 588, 1227, 5484, 7675, 4210, 1769, 3639, 333, 18, 90, 5583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 1435, 565, 288, 3639, 333, 18, 542, 1225, 12, 588, 3054, 7675, 588, 1227, 5484, 7675, 2819, 16, 5089, 7675, 588, 1227, 5484, 7675, 4210, 1769, 3639, 333, 18, 90, 5583, ...
outstr.write( buffer, 0, nread ); nread = instr.read( buffer );
outstr = new ByteArrayOutputStream(); final byte[] buffer = new byte[ 256 ]; int nread = 0; while( nread >= 0 ) { outstr.write( buffer, 0, nread ); nread = instr.read( buffer ); } } finally { instr.close();
public void assertSameContent( String expected, FileContent content ) throws Exception { // Get file content as a binary stream byte[] expectedBin = expected.getBytes( "utf-8" ); // Check lengths assertEquals( "same content length", expectedBin.length, content.getSize() ); // Read content into byte array InputStream instr = content.getInputStream(); ByteArrayOutputStream outstr = new ByteArrayOutputStream(); byte[] buffer = new byte[ 256 ]; int nread = 0; while( nread >= 0 ) { outstr.write( buffer, 0, nread ); nread = instr.read( buffer ); } // Compare assertTrue( "same binary content", Arrays.equals( expectedBin, outstr.toByteArray() ) ); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/5b48abc10df6339a4114a4135fdab2b38b9252bd/AbstractFileSystemTest.java/clean/proposal/myrmidon/src/test/org/apache/aut/vfs/AbstractFileSystemTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1815, 8650, 1350, 12, 514, 2665, 16, 1387, 1350, 913, 262, 1216, 1185, 565, 288, 3639, 368, 968, 585, 913, 487, 279, 3112, 1407, 3639, 1160, 8526, 2665, 9913, 273, 2665, 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, 1815, 8650, 1350, 12, 514, 2665, 16, 1387, 1350, 913, 262, 1216, 1185, 565, 288, 3639, 368, 968, 585, 913, 487, 279, 3112, 1407, 3639, 1160, 8526, 2665, 9913, 273, 2665, 18, ...
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
public CmsLock getLock(CmsRequestContext context, CmsResource resource) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); CmsLock result = null; try { result = m_driverManager.getLock(dbc, resource); } catch (Exception e) { dbc.report(null, null, e); } finally { dbc.clear(); } return result; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a7ffa3c192d7068f584b0a3a844b88bdb2d3145a/CmsSecurityManager.java/clean/src/org/opencms/db/CmsSecurityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2149, 2531, 22206, 12, 4747, 21426, 819, 16, 7630, 1058, 13, 1216, 11228, 288, 3639, 30670, 9881, 273, 312, 67, 1966, 29871, 18, 588, 4331, 1042, 12, 2472, 1769, 6647, 2149, 2531, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2149, 2531, 22206, 12, 4747, 21426, 819, 16, 7630, 1058, 13, 1216, 11228, 288, 3639, 30670, 9881, 273, 312, 67, 1966, 29871, 18, 588, 4331, 1042, 12, 2472, 1769, 6647, 2149, 2531, 5...
this.type = new ReferenceType(this.getLocation(), this.scope, this.identifiers);
String[] sa; if (this.identifiers.length == this.n) { sa = this.identifiers; } else { sa = new String[this.n]; System.arraycopy(this.identifiers, 0, sa, 0, this.n); } this.type = new ReferenceType(this.getLocation(), this.scope, sa);
public Type toType() { if (this.type == null) { this.type = new ReferenceType(this.getLocation(), this.scope, this.identifiers); } return this.type; }
9453 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9453/1a3d709d2ad20f2209f8b649638aa489acbe25b0/Java.java/clean/janino/src/org/codehaus/janino/Java.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1412, 28234, 1435, 288, 5411, 309, 261, 2211, 18, 723, 422, 446, 13, 288, 7734, 514, 8526, 7864, 31, 309, 261, 2211, 18, 20218, 18, 2469, 422, 333, 18, 82, 13, 288, 7864, 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, 540, 1071, 1412, 28234, 1435, 288, 5411, 309, 261, 2211, 18, 723, 422, 446, 13, 288, 7734, 514, 8526, 7864, 31, 309, 261, 2211, 18, 20218, 18, 2469, 422, 333, 18, 82, 13, 288, 7864, 273, 3...
return "<"+host+", "+index+", "+index+">";
return "<"+host+", "+port+", "+index+", "+time+">";
public String toString() { return "<"+host+", "+index+", "+index+">"; }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/8f273d52641de839271b4876c5cbb95eff0e99c7/HTTPUploader.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/uploader/HTTPUploader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 5411, 327, 18165, 15, 2564, 15, 3113, 13773, 655, 15, 3113, 13773, 1615, 15, 3113, 225, 13773, 957, 9078, 2984, 31, 3639, 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, 540, 1071, 514, 1762, 1435, 288, 5411, 327, 18165, 15, 2564, 15, 3113, 13773, 655, 15, 3113, 13773, 1615, 15, 3113, 225, 13773, 957, 9078, 2984, 31, 3639, 289, 2, -100, -100, -100, -100, -100,...
currBinding= astRoot.getAST().resolveWellKnownType("java.lang.Object");
currBinding= ast.resolveWellKnownType("java.lang.Object"); } if (currBinding.isWildcardType()) { currBinding= ASTResolving.normalizeWildcardType(currBinding, true, ast);
public static void addTypeMismatchProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) throws CoreException { String[] args= problem.getProblemArguments(); if (args.length != 2) { return; } ICompilationUnit cu= context.getCompilationUnit(); String castTypeName= args[1]; CompilationUnit astRoot= context.getASTRoot(); ASTNode selectedNode= problem.getCoveredNode(astRoot); if (!(selectedNode instanceof Expression)) { return; } Expression nodeToCast= (Expression) selectedNode; Name receiverNode= null; ITypeBinding castTypeBinding= null; int parentNodeType= selectedNode.getParent().getNodeType(); if (parentNodeType == ASTNode.ASSIGNMENT) { Assignment assign= (Assignment) selectedNode.getParent(); Expression leftHandSide= assign.getLeftHandSide(); if (selectedNode.equals(leftHandSide)) { nodeToCast= assign.getRightHandSide(); } castTypeBinding= assign.getLeftHandSide().resolveTypeBinding(); if (leftHandSide instanceof Name) { receiverNode= (Name) leftHandSide; } else if (leftHandSide instanceof FieldAccess) { receiverNode= ((FieldAccess) leftHandSide).getName(); } } else if (parentNodeType == ASTNode.VARIABLE_DECLARATION_FRAGMENT) { VariableDeclarationFragment frag= (VariableDeclarationFragment) selectedNode.getParent(); if (selectedNode.equals(frag.getName())) { nodeToCast= frag.getInitializer(); IVariableBinding varBinding= frag.resolveBinding(); if (varBinding != null) { castTypeBinding= varBinding.getType(); } receiverNode= frag.getName(); } } else { // try to find the binding corresponding to 'castTypeName' ITypeBinding guessedCastTypeBinding= ASTResolving.guessBindingForReference(nodeToCast); if (guessedCastTypeBinding != null && castTypeName.equals(guessedCastTypeBinding.getQualifiedName())) { castTypeBinding= guessedCastTypeBinding; } } ITypeBinding binding= nodeToCast.resolveTypeBinding(); if (binding == null || canCast(castTypeName, castTypeBinding, binding)) { proposals.add(createCastProposal(context, castTypeName, castTypeBinding, nodeToCast, 7)); } ITypeBinding currBinding= nodeToCast.resolveTypeBinding(); boolean nullOrVoid= currBinding == null || "void".equals(currBinding.getName()); //$NON-NLS-1$ // change method return statement to actual type if (!nullOrVoid && parentNodeType == ASTNode.RETURN_STATEMENT) { BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(selectedNode); if (decl instanceof MethodDeclaration) { MethodDeclaration methodDeclaration= (MethodDeclaration) decl; currBinding= Bindings.normalizeTypeBinding(currBinding); if (currBinding == null) { currBinding= astRoot.getAST().resolveWellKnownType("java.lang.Object"); //$NON-NLS-1$ } ASTRewrite rewrite= ASTRewrite.create(methodDeclaration.getAST()); ImportRewrite imports= new ImportRewrite(cu); String returnTypeName= imports.addImport(currBinding); Type newReturnType= ASTNodeFactory.newType(astRoot.getAST(), returnTypeName); rewrite.replace(methodDeclaration.getReturnType2(), newReturnType, null); String label= Messages.format(CorrectionMessages.TypeMismatchSubProcessor_changereturntype_description, currBinding.getName()); Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE); LinkedCorrectionProposal proposal= new LinkedCorrectionProposal(label, cu, rewrite, 6, image); proposal.setImportRewrite(imports); String returnKey= "return"; //$NON-NLS-1$ proposal.addLinkedPosition(rewrite.track(newReturnType), true, returnKey); ITypeBinding[] typeSuggestions= ASTResolving.getRelaxingTypes(astRoot.getAST(), currBinding); for (int i= 0; i < typeSuggestions.length; i++) { proposal.addLinkedPositionProposal(returnKey, typeSuggestions[i]); } proposals.add(proposal); } } if (!nullOrVoid && receiverNode != null) { currBinding= Bindings.normalizeTypeBinding(currBinding); if (currBinding == null) { currBinding= astRoot.getAST().resolveWellKnownType("java.lang.Object"); //$NON-NLS-1$ } addChangeSenderTypeProposals(context, receiverNode, currBinding, true, 6, proposals); } if (castTypeBinding != null) { addChangeSenderTypeProposals(context, nodeToCast, castTypeBinding, false, 5, proposals); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/252890c833afb17771c2fcff9c4eaf90e9aef94e/TypeMismatchSubProcessor.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeMismatchSubProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 29337, 16901, 626, 22536, 12, 45, 9267, 1042, 819, 16, 467, 13719, 2735, 6199, 16, 2200, 450, 22536, 13, 1216, 30015, 288, 202, 202, 780, 8526, 833, 33, 6199, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 29337, 16901, 626, 22536, 12, 45, 9267, 1042, 819, 16, 467, 13719, 2735, 6199, 16, 2200, 450, 22536, 13, 1216, 30015, 288, 202, 202, 780, 8526, 833, 33, 6199, 18, 58...
public String getName() {
public final String getName() {
public String getName() { return name; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5e4aca51f306973ce7482e5a812bf069c3e2d4a4/Parameter.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/Parameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1723, 1435, 288, 202, 202, 2463, 508, 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, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1723, 1435, 288, 202, 202, 2463, 508, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
private void _setUpTabs() { _compilerErrorPanel = new CompilerErrorPanel(_model, this); _consoleController = new ConsoleController(_model.getConsoleDocument(), _model.getSwingConsoleDocument()); _consolePane = _consoleController.getPane(); // Interactions _interactionsController = new InteractionsController(_model.getInteractionsModel(), _model.getSwingInteractionsDocument()); _interactionsController.setPrevPaneAction(_switchToPreviousPaneAction); _interactionsController.setNextPaneAction(_switchToNextPaneAction); _interactionsPane = _interactionsController.getPane();// _model.setInputListener(_consoleController.getInputListener());// _model.getInteractionsModel().setInputListener(_interactionsController.getInputListener()); // Moved to the interactions controller. _findReplace = new FindReplaceDialog(this, _model); _consoleScroll = new BorderlessScrollPane(_consolePane) { public boolean requestFocusInWindow() { return _consolePane.requestFocusInWindow(); } }; JScrollPane interactionsScroll = new BorderlessScrollPane(_interactionsPane); _interactionsContainer = new JPanel(new BorderLayout()) { public boolean requestFocusInWindow() { return _interactionsPane.requestFocusInWindow(); } }; _interactionsContainer.add(interactionsScroll, BorderLayout.CENTER); _junitErrorPanel = new JUnitPanel(_model, this); _javadocErrorPanel = new JavadocErrorPanel(_model, this); _tabbedPane = new JTabbedPane(); _tabbedPane.addChangeListener(new ChangeListener () { public void stateChanged(ChangeEvent e) {// Utilities.showDebug("MainFrame.stateChanged called with event"); clearStatusMessage(); if (_tabbedPane.getSelectedComponent() == _interactionsContainer) { /** * This was probably a bad design decision but I couldn't think * of any other way around it. When the interactions tab gains * focus we want the interactions pane (editor pane) to receive * the focus. But focus is given to the tab itself *AFTER* this * listener is called on. This code waits for a bit for Swing * to give the tab focus, then steals the focus back to the * interactions pane. */ } else if (_tabbedPane.getSelectedComponent() == _consoleScroll) _consolePane.requestFocusInWindow(); // Update error highlights? if (_currentDefPane != null) { int pos = _currentDefPane.getCaretPosition(); _currentDefPane.removeErrorHighlight(); //this line removes the highlighting whenever the current tabbed pane is switched _currentDefPane.getErrorCaretListener().updateHighlight(pos); } } }); //_interactionsWithSyncPanel = new JPanel(new BorderLayout()); //_syncStatus = new JLabel("Testing"); //_interactionsWithSyncPanel.add(new BorderlessScrollPane(_interactionsPane), // BorderLayout.CENTER); //_interactionsWithSyncPanel.add(_syncStatus, BorderLayout.SOUTH); _tabbedPane.add("Interactions", _interactionsContainer); _tabbedPane.add("Console", _consoleScroll); _tabs = new LinkedList<TabbedPanel>(); _tabs.addLast(_compilerErrorPanel); _tabs.addLast(_junitErrorPanel); _tabs.addLast(_javadocErrorPanel); _tabs.addLast(_findReplace); _interactionsPane.addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { _lastFocusOwner = _interactionsContainer; } }); _consolePane.addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { _lastFocusOwner = _consoleScroll; } }); _compilerErrorPanel.getMainPanel().addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { _lastFocusOwner = _compilerErrorPanel; } }); _junitErrorPanel.getMainPanel().addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { _lastFocusOwner = _junitErrorPanel; } }); _javadocErrorPanel.getMainPanel().addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { _lastFocusOwner = _javadocErrorPanel; } }); _findReplace.getFindField().addFocusListener(new FocusAdapter() { public void focusGained(FocusEvent e) { _lastFocusOwner = _findReplace; } }); // Show compiler output pane by default showTab(_compilerErrorPanel); _tabbedPane.setSelectedIndex(0); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/2de653a0c121f420695cbc85c38fd5c41317e81a/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 542, 1211, 17348, 1435, 288, 565, 389, 9576, 668, 5537, 273, 394, 12972, 668, 5537, 24899, 2284, 16, 333, 1769, 565, 389, 8698, 2933, 273, 394, 9657, 2933, 24899, 2284, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 542, 1211, 17348, 1435, 288, 565, 389, 9576, 668, 5537, 273, 394, 12972, 668, 5537, 24899, 2284, 16, 333, 1769, 565, 389, 8698, 2933, 273, 394, 9657, 2933, 24899, 2284, 18...
public org.quickfix.field.SecurityAltID getSecurityAltID() throws FieldNotFound { org.quickfix.field.SecurityAltID value = new org.quickfix.field.SecurityAltID();
public quickfix.field.SecurityAltID getSecurityAltID() throws FieldNotFound { quickfix.field.SecurityAltID value = new quickfix.field.SecurityAltID();
public org.quickfix.field.SecurityAltID getSecurityAltID() throws FieldNotFound { org.quickfix.field.SecurityAltID value = new org.quickfix.field.SecurityAltID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/clean/src/java/src/quickfix/fix44/MassQuote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 10655, 734, 19288, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 10655, 734, 460, 273, 394, 2358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 10655, 734, 19288, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 10655, 734, 460, 273, 394, 2358,...
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat df = null; if (s.length()>21 && s.indexOf('.') != -1) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSzzz"); } else if (s.length()>19 && s.indexOf('.') == -1) { df = new SimpleDateFormat("yyyy-MM-dd HH:MM:sszzz"); } else if (s.length()>19 && s.indexOf('.') != -1) { df = new SimpleDateFormat("yyyy-MM-dd HH:MM:ss.SS"); } else if (s.length()>10 && s.length()<=18) { df = new SimpleDateFormat("yyyy-MM-dd HH:MM:ss"); } else { df = new SimpleDateFormat("yyyy-MM-dd"); }
public Timestamp getTimestamp(int columnIndex) throws SQLException { String s = getString(columnIndex); if(s==null) return null; SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { return new Timestamp(df.parse(s).getTime()); } catch(ParseException e) { throw new PSQLException("postgresql.res.badtimestamp",new Integer(e.getErrorOffset()),s); } }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/9a5090b3d9657a6ab7da4eb4cfb864d390f6d06c/ResultSet.java/buggy/org/postgresql/jdbc2/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8159, 11940, 12, 474, 14882, 13, 1216, 6483, 225, 288, 565, 514, 272, 273, 4997, 12, 2827, 1016, 1769, 565, 309, 12, 87, 631, 2011, 13, 202, 2463, 446, 31, 2398, 17005, 3013, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8159, 11940, 12, 474, 14882, 13, 1216, 6483, 225, 288, 565, 514, 272, 273, 4997, 12, 2827, 1016, 1769, 565, 309, 12, 87, 631, 2011, 13, 202, 2463, 446, 31, 2398, 17005, 3013, 273,...
void handleStateRsp(Object sender, Digest digest, byte[] state) { if(digest == null) { if(warn) log.warn("digest received from " + sender + " is null, skipping setting digest !"); } else passDown(new Event(Event.SET_DIGEST, digest)); // set the digest (e.g. in NAKACK) stop=System.currentTimeMillis(); // resume sending and handling of mesage garbage collection gossip messages, // fixes bugs #943480 and #938584). Wakes up a previously suspended message garbage // collection protocol (e.g. STABLE) if(log.isDebugEnabled()) log.debug("passing down a RESUME_STABLE event"); passDown(new Event(Event.RESUME_STABLE)); if(state == null) { if(warn) log.warn("state received from " + sender + " is null, will return null state to application"); } else log.debug("received state, size=" + state.length + " bytes. Time=" + (stop-start) + " milliseconds"); passUp(new Event(Event.GET_STATE_OK, state)); }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/6c035acf36692b8a4df789da5aa06edea4073215/STATE_TRANSFER.java/buggy/src/org/jgroups/protocols/pbcast/STATE_TRANSFER.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 1119, 54, 1752, 12, 921, 5793, 16, 15864, 5403, 16, 1160, 8526, 919, 13, 288, 3639, 309, 12, 10171, 422, 446, 13, 288, 5411, 309, 12, 8935, 13, 7734, 613, 18, 8935, 2932, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 1119, 54, 1752, 12, 921, 5793, 16, 15864, 5403, 16, 1160, 8526, 919, 13, 288, 3639, 309, 12, 10171, 422, 446, 13, 288, 5411, 309, 12, 8935, 13, 7734, 613, 18, 8935, 2932, 1...
Path path = node.getPrimaryPath();
Path path = getPath(node.getId());
public Lock getLock(NodeImpl node) throws LockException, RepositoryException { synchronized (lockMap) { Path path = node.getPrimaryPath(); PathMap.Element element = lockMap.map(path, false); LockInfo info = (LockInfo) element.get(); if (info == null) { throw new LockException("Node not locked: " + node.safeGetJCRPath()); } if (element.hasPath(path) || info.deep) { SessionImpl session = (SessionImpl) node.getSession(); Node lockHolder = (Node) session.getItemManager().getItem( new NodeId(info.getUUID())); return new LockImpl(info, lockHolder); } else { throw new LockException("Node not locked: " + node.safeGetJCRPath()); } } }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/97a8713ddc7180384672a8d994c1b724d3f0f4c1/LockManagerImpl.java/clean/core/src/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3488, 22206, 12, 907, 2828, 756, 13, 5411, 1216, 3488, 503, 16, 13367, 288, 3639, 3852, 261, 739, 863, 13, 288, 5411, 2666, 589, 273, 4339, 12, 2159, 18, 26321, 10663, 5411, 2666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3488, 22206, 12, 907, 2828, 756, 13, 5411, 1216, 3488, 503, 16, 13367, 288, 3639, 3852, 261, 739, 863, 13, 288, 5411, 2666, 589, 273, 4339, 12, 2159, 18, 26321, 10663, 5411, 2666, ...
if (_disk) { File _f = new File(_deviceName); if (!_f.exists() || !_f.isDirectory() || !_f.canWrite() || !_f.canRead()) {
if( _disk ){ File f = new File(_deviceName); if( ! f.exists() || ! f.isDirectory() || ! f.canWrite() || ! f.canRead() ) {
public MoverEagle( String name , String args ){ super( name , args , false ) ; _nucleus = getNucleus() ; _args = getArgs() ; if( _args.argc() < 2 ){ start() ; kill() ; throw new IllegalArgumentException( "Usage : ... <pvlPath> <deviceName>" ) ; } _pvlPath = _args.argv(0); _deviceName = _args.argv(1); if (_args.argc() > 2) { _disk = _args.argv(2).compareTo("disk") == 0; if (_disk) { File _f = new File(_deviceName); if (!_f.exists() || !_f.isDirectory() || !_f.canWrite() || !_f.canRead()) { throw new IllegalArgumentException( "<deviceName> is not a directory or accessible"); } } } // _info = new StateInfo( getCellName() , true ) ; // _spray = new StateInfoUpdater( _nucleus , 20 ) ; // _spray.addTarget( _pvlPath ) ; // _spray.setInfo( _info ) ; _weAreOnline = true ; _weAreBusy = false ; export(); start() ; pin( "Started " + version) ; }
3665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3665/2ad0afde3e361e09401748a6dda69209a11bc306/MoverEagle.java/clean/mover/MoverEagle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 490, 1643, 41, 346, 298, 12, 514, 508, 269, 514, 833, 262, 95, 1377, 2240, 12, 508, 269, 833, 269, 629, 262, 274, 1377, 389, 13053, 2131, 407, 273, 11069, 89, 2131, 407, 1435, 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, 565, 1071, 490, 1643, 41, 346, 298, 12, 514, 508, 269, 514, 833, 262, 95, 1377, 2240, 12, 508, 269, 833, 269, 629, 262, 274, 1377, 389, 13053, 2131, 407, 273, 11069, 89, 2131, 407, 1435, 2...
for ( int i = 0; i < namesOfColumns.length; i++ )
String currentRootPath = this.cachedRootRows.size( )==0?null:this.cachedRootRows.get( this.cachedRootRows.size( )-1 ).toString( ); if ( this.cachedRootRows.size( ) > 0 )
public void manipulateData( String path, String value ) { //get the table column names. for ( int i = 0; i < namesOfColumns.length; i++ ) { //If the given path is same to the path of certain column if ( SaxParserUtil.isSamePath( relationInfo.getTableColumnPath( tableName, namesOfColumns[i] ), path ) ) { if ( isSimpleNestedColumn( namesOfColumns[i] )) { this.nestedColumnUtil.update(namesOfColumns[i], path, value); continue; } //If the column in certain row has never been assigned the value, //then populate the column value. if ( cachedResultSet[cachedResultSetRowNo][i] == null ) { //populate the column value. cachedResultSet[cachedResultSetRowNo][i] = value; } } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/857f08d2976a6c670029ef1e5217acb85d868190/SaxParserConsumer.java/clean/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/SaxParserConsumer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 28286, 751, 12, 514, 589, 16, 514, 460, 262, 202, 95, 202, 202, 759, 588, 326, 1014, 1057, 1257, 18, 9944, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1257, 951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28286, 751, 12, 514, 589, 16, 514, 460, 262, 202, 95, 202, 202, 759, 588, 326, 1014, 1057, 1257, 18, 9944, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1257, 951, ...
if (obj instanceof IPerspectiveDescriptor) perspDesc = (IPerspectiveDescriptor) obj;
if (obj instanceof IPerspectiveDescriptor) { perspDesc = (IPerspectiveDescriptor) obj; }
protected void updateSelection(SelectionChangedEvent event) { perspDesc = null; IStructuredSelection sel = (IStructuredSelection) event.getSelection(); if (!sel.isEmpty()) { Object obj = sel.getFirstElement(); if (obj instanceof IPerspectiveDescriptor) perspDesc = (IPerspectiveDescriptor) obj; } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/SelectPerspectiveDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/SelectPerspectiveDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1089, 6233, 12, 6233, 27553, 871, 13, 288, 3639, 13508, 84, 4217, 273, 446, 31, 3639, 467, 30733, 6233, 357, 273, 261, 45, 30733, 6233, 13, 871, 18, 588, 6233, 5621, 3639, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1089, 6233, 12, 6233, 27553, 871, 13, 288, 3639, 13508, 84, 4217, 273, 446, 31, 3639, 467, 30733, 6233, 357, 273, 261, 45, 30733, 6233, 13, 871, 18, 588, 6233, 5621, 3639, 30...
protected void dispatchMouseEvent(MouseEvent evt) { GraphicsNodeMouseEvent gvtevt; Point2D p = new Point2D.Float(evt.getX(), evt.getY()); if (baseTransform != null) { p = baseTransform.transform(p, null); } GraphicsNode node = root.nodeHitAt(p); GraphicsNode relatedNode = null; if (isModalEvent(evt, node) && (lastHit != null)) { // modal if either button release on null node, or // if button is down on a non-press relatedNode = node; node = lastHit; } // If the receiving node has changed, send a notification // check if we enter a new node if (lastHit != node) { // post an MOUSE_EXITED if (lastHit != null) { gvtevt = new GraphicsNodeMouseEvent(lastHit, MouseEvent. MOUSE_EXITED, evt.getWhen(), evt.getModifiers(), (float)p.getX(), (float)p.getY(), evt.getClickCount(), node); processMouseEvent(gvtevt); // lastHit.processMouseEvent(gvtevt); } // post an MOUSE_ENTERED if (node != null) { gvtevt = new GraphicsNodeMouseEvent(node, MouseEvent. MOUSE_ENTERED, evt.getWhen(), evt. getModifiers(), (float)p.getX(), (float)p.getY(), evt. getClickCount(), lastHit); processMouseEvent(gvtevt); // node.processMouseEvent(gvtevt); } } // In all cases, dispatch the original event if (node != null) { gvtevt = new GraphicsNodeMouseEvent(node, evt.getID(), evt.getWhen(), evt.getModifiers(), (float)p.getX(), (float)p.getY(), evt.getClickCount(), relatedNode); // node.processMouseEvent(gvtevt); processMouseEvent(gvtevt); } else if (node == null && evt.getID() == evt.MOUSE_CLICKED && evt.getClickCount() == 1) { // this is a deselect event, dispatch it to dummy node gvtevt = new GraphicsNodeMouseEvent(dummyNode, evt.getID(), evt.getWhen(), evt.getModifiers(), (float)p.getX(), (float)p.getY(), evt.getClickCount(), relatedNode); processMouseEvent(gvtevt); } lastHit = node; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/2039989fa12da1588e96ce5c8b70864f3a003d83/AWTEventDispatcher.java/buggy/sources/org/apache/batik/gvt/event/AWTEventDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 10739, 9186, 1133, 12, 9186, 1133, 73, 11734, 15329, 17558, 907, 9186, 1133, 75, 90, 736, 11734, 31, 2148, 22, 40, 84, 33, 2704, 2148, 22, 40, 18, 4723, 12, 73, 11734, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 10739, 9186, 1133, 12, 9186, 1133, 73, 11734, 15329, 17558, 907, 9186, 1133, 75, 90, 736, 11734, 31, 2148, 22, 40, 84, 33, 2704, 2148, 22, 40, 18, 4723, 12, 73, 11734, 18, 588, ...
if (m_Seed > 0) { getInputFormat().randomize(new Random(m_Seed));
Instances instances; if (!isFirstBatchDone()) { if (m_Seed > 0) { getInputFormat().randomize(new Random(m_Seed)); } getInputFormat().stratify(m_NumFolds); if (!m_Inverse) { instances = getInputFormat().testCV(m_NumFolds, m_Fold - 1); } else { instances = getInputFormat().trainCV(m_NumFolds, m_Fold - 1); }
public boolean batchFinished() { if (getInputFormat() == null) { throw new IllegalStateException("No input instance format defined"); } if (m_Seed > 0) { // User has provided a random number seed. getInputFormat().randomize(new Random(m_Seed)); } // Select out a fold getInputFormat().stratify(m_NumFolds); Instances instances; if (!m_Inverse) { instances = getInputFormat().testCV(m_NumFolds, m_Fold - 1); } else { instances = getInputFormat().trainCV(m_NumFolds, m_Fold - 1); } for (int i = 0; i < instances.numInstances(); i++) { push(instances.instance(i)); } m_NewBatch = true; return (numPendingOutput() != 0); }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/1ccddfb0c82a796b688043740a659c5cb9e684cb/StratifiedRemoveFolds.java/buggy/weka/filters/supervised/instance/StratifiedRemoveFolds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2581, 10577, 1435, 288, 565, 309, 261, 588, 1210, 1630, 1435, 422, 446, 13, 288, 1377, 604, 394, 5477, 2932, 2279, 810, 791, 740, 2553, 8863, 565, 289, 565, 309, 261, 81, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2581, 10577, 1435, 288, 565, 309, 261, 588, 1210, 1630, 1435, 422, 446, 13, 288, 1377, 604, 394, 5477, 2932, 2279, 810, 791, 740, 2553, 8863, 565, 289, 565, 309, 261, 81, 67...
* try to remove all the occurence.
* try to remove all the occurrence.
public static Vector resolve( MappingLoader loader, LockEngine lock, PersistenceFactory factory, LogInterceptor logInterceptor ) throws MappingException, ClassNotFoundException { Vector result = new Vector(); Enumeration enum; ClassMolder mold; ClassMapping map; Persistence persist; ClassDescriptor desc; DatingService ds = new DatingService( loader.getClassLoader() ); enum = loader.listJavaClasses(); while ( enum.hasMoreElements() ) { desc = (ClassDescriptor) loader.getDescriptor((Class)enum.nextElement()); persist = factory.getPersistence( desc, logInterceptor ); mold = new ClassMolder( ds, loader, lock, desc, persist ); result.add( mold ); } ds.close(); return result; } /** * Remove the reference of a related object from an object of. * the base class. <p> * * If the related object is PersistanceCapable, the field will * be set null. If the related object is a Collection, then * the related object will be removed from the Collection. <p> * * If any changed occured, transactionContext.markModified * will be called, to indicate the object is modified. <p> * * It method will iterate thur all of the object's field and * try to remove all the occurence. * * @param tx the TransactionContext of the transaction in action * @param object the target object of the base type of this ClassMolder * @param relatedMolder the ClassMolder of the related object to be * removed from the object * @param related the object to be removed */ private boolean removeRelation( TransactionContext tx, Object object, ClassMolder relatedMolder, Object relatedObject ) { boolean removed = false; boolean updateCache = false; boolean updatePersist = false; ClassMolder relatedBaseMolder = null; for ( int i=0; i < _fhs.length; i++ ) { int fieldType = _fhs[i].getFieldType(); ClassMolder fieldClassMolder; switch (fieldType) { case FieldMolder.PERSISTANCECAPABLE: // de-reference the object fieldClassMolder = _fhs[i].getFieldClassMolder(); relatedBaseMolder = relatedMolder; while ( fieldClassMolder != relatedBaseMolder && relatedBaseMolder != null ) { relatedBaseMolder = relatedBaseMolder._extends; } if ( fieldClassMolder == relatedBaseMolder ) { Object related = _fhs[i].getValue( object, tx.getClassLoader() ); if ( related == relatedObject ) { _fhs[i].setValue( object, null, tx.getClassLoader() ); updateCache = true; updatePersist = true; removed = true; } // | } break; case FieldMolder.ONE_TO_MANY: case FieldMolder.MANY_TO_MANY: // remove the object from the collection fieldClassMolder = _fhs[i].getFieldClassMolder(); relatedBaseMolder = relatedMolder; while ( fieldClassMolder != relatedBaseMolder && relatedBaseMolder != null ) { relatedBaseMolder = relatedBaseMolder._extends; } if ( fieldClassMolder == relatedBaseMolder ) { // same action to be taken for lazy and non lazy collection boolean changed = false; Object related = _fhs[i].getValue( object, tx.getClassLoader() ); Iterator itor = getIterator( related ); while ( itor.hasNext() ) { Object o = itor.next(); if ( o == relatedObject ) { changed = true; itor.remove(); } } if ( changed ) { updateCache = true; updatePersist = false; removed = true; } } break; } }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/009901d8ece6ce0ac31424ea8e732151eff64b83/ClassMolder.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/persist/ClassMolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5589, 2245, 12, 9408, 2886, 4088, 16, 3488, 4410, 2176, 16, 5411, 13381, 1733, 3272, 16, 1827, 10281, 613, 10281, 262, 5411, 1216, 30896, 16, 10403, 288, 3639, 5589, 563, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5589, 2245, 12, 9408, 2886, 4088, 16, 3488, 4410, 2176, 16, 5411, 13381, 1733, 3272, 16, 1827, 10281, 613, 10281, 262, 5411, 1216, 30896, 16, 10403, 288, 3639, 5589, 563, 273, ...
} catch (XMLStreamException e) { e.printStackTrace();
} catch (Exception ex) { ex.printStackTrace();
protected void skipHeader(XMLStreamReader reader) { XMLStreamReaderUtil.verifyReaderState(reader, START_ELEMENT); if (!SOAPNamespaceConstants.TAG_HEADER.equals(reader.getLocalName())) { return; } XMLStreamReaderUtil.verifyTag(reader, getHeaderTag()); XMLStreamReaderUtil.skipElement(reader); // Moves to </Header> try { reader.next(); //while (reader.getEventType() != START_ELEMENT) // reader.next(); } catch (XMLStreamException e) { e.printStackTrace(); } //XMLStreamReaderUtil.nextElementContent(reader); // try { //reader.next(); // } catch (Exception ex){ // ex.printStackTrace(); //} // System.out.println("Skip header " + reader.getLocalName() ); }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/6b1e9fb30c3c9335d85d17ecd2a14ebc4a9fc911/SOAPDecoder.java/clean/jaxws-ri/rt/src/com/sun/xml/ws/encoding/soap/SOAPDecoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 2488, 1864, 12, 4201, 31495, 2949, 13, 288, 3639, 15595, 2514, 1304, 18, 8705, 2514, 1119, 12, 10530, 16, 10485, 67, 10976, 1769, 3639, 309, 16051, 27952, 3402, 2918, 18, 7927, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 2488, 1864, 12, 4201, 31495, 2949, 13, 288, 3639, 15595, 2514, 1304, 18, 8705, 2514, 1119, 12, 10530, 16, 10485, 67, 10976, 1769, 3639, 309, 16051, 27952, 3402, 2918, 18, 7927, ...
if (!(cl instanceof NativeJavaClass)) throw new EvaluatorException("not a class");
if (!(cl instanceof NativeJavaClass)) { String[] args = { Context.toString(cl) }; throw Context.reportRuntimeError( Context.getMessage("msg.not.class", args)); }
public void importClass(Object cl) { if (!(cl instanceof NativeJavaClass)) throw new EvaluatorException("not a class");// TODO: better msg String s = ((NativeJavaClass) cl).getClassObject().getName(); String n = s.substring(s.lastIndexOf('.')+1); if (this.has(n, this)) throw new EvaluatorException("property " + n + " is already defined"); this.defineProperty(n, cl, DONTENUM); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/6b84d958f412657c5e0efa0cb352e05775ffafdc/ImporterTopLevel.java/clean/js/rhino/src/org/mozilla/javascript/ImporterTopLevel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1930, 797, 12, 921, 927, 13, 288, 3639, 309, 16051, 12, 830, 1276, 16717, 5852, 797, 3719, 5411, 604, 394, 31956, 503, 2932, 902, 279, 667, 8863, 759, 2660, 30, 7844, 1234, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1930, 797, 12, 921, 927, 13, 288, 3639, 309, 16051, 12, 830, 1276, 16717, 5852, 797, 3719, 5411, 604, 394, 31956, 503, 2932, 902, 279, 667, 8863, 759, 2660, 30, 7844, 1234, 3...
/*@bgen(jjtree) PrimitiveType */ ASTPrimitiveType jjtn000 = new ASTPrimitiveType(this, JJTPRIMITIVETYPE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case BOOLEAN: jj_consume_token(BOOLEAN); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("boolean"); break; case CHAR: jj_consume_token(CHAR); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("char"); break; case BYTE: jj_consume_token(BYTE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("byte"); break; case SHORT: jj_consume_token(SHORT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("short"); break; case INT: jj_consume_token(INT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("int"); break; case LONG: jj_consume_token(LONG); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("long"); break; case FLOAT: jj_consume_token(FLOAT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("float"); break; case DOUBLE: jj_consume_token(DOUBLE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("double"); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } }
/*@bgen(jjtree) PrimitiveType */ ASTPrimitiveType jjtn000 = new ASTPrimitiveType(this, JJTPRIMITIVETYPE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BOOLEAN: jj_consume_token(BOOLEAN); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("boolean"); break; case CHAR: jj_consume_token(CHAR); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("char"); break; case BYTE: jj_consume_token(BYTE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("byte"); break; case SHORT: jj_consume_token(SHORT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("short"); break; case INT: jj_consume_token(INT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("int"); break; case LONG: jj_consume_token(LONG); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("long"); break; case FLOAT: jj_consume_token(FLOAT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("float"); break; case DOUBLE: jj_consume_token(DOUBLE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("double"); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true);
final public void PrimitiveType() throws ParseException { /*@bgen(jjtree) PrimitiveType */ ASTPrimitiveType jjtn000 = new ASTPrimitiveType(this, JJTPRIMITIVETYPE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case BOOLEAN: jj_consume_token(BOOLEAN); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("boolean"); break; case CHAR: jj_consume_token(CHAR); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("char"); break; case BYTE: jj_consume_token(BYTE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("byte"); break; case SHORT: jj_consume_token(SHORT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("short"); break; case INT: jj_consume_token(INT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("int"); break; case LONG: jj_consume_token(LONG); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("long"); break; case FLOAT: jj_consume_token(FLOAT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("float"); break; case DOUBLE: jj_consume_token(DOUBLE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("double"); break; default: jj_la1[51] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 1071, 918, 14488, 559, 1435, 1216, 10616, 288, 3639, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 14488, 559, 1195, 3639, 9183, 9840, 559, 10684, 5088, 3784, 273, 394, 9183, 9840, 559, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1071, 918, 14488, 559, 1435, 1216, 10616, 288, 3639, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 14488, 559, 1195, 3639, 9183, 9840, 559, 10684, 5088, 3784, 273, 394, 9183, 9840, 559, ...
add( builtinType, IDREFType.theIDREFSinstance );
add( builtinType, createOneOrMoreList("IDREFS",IDREFType.theInstance) );
public static XSDatatype getTypeByName( String dataTypeName ) throws DatatypeException { XSDatatype dt = (XSDatatype)builtinType.get(dataTypeName); if(dt!=null) return dt; try { // types may be not added to the map. if( dataTypeName.equals("float") ) add( builtinType, FloatType.theInstance ); else if( dataTypeName.equals("double") ) add( builtinType, DoubleType.theInstance ); else if( dataTypeName.equals("duration") ) add( builtinType, DurationType.theInstance ); else if( dataTypeName.equals("dateTime") ) add( builtinType, DateTimeType.theInstance ); else if( dataTypeName.equals("time") ) add( builtinType, TimeType.theInstance ); else if( dataTypeName.equals("date") ) add( builtinType, DateType.theInstance ); else if( dataTypeName.equals("gYearMonth") ) add( builtinType, GYearMonthType.theInstance ); else if( dataTypeName.equals("gYear") ) add( builtinType, GYearType.theInstance ); else if( dataTypeName.equals("gMonthDay") ) add( builtinType, GMonthDayType.theInstance ); else if( dataTypeName.equals("gDay") ) add( builtinType, GDayType.theInstance ); else if( dataTypeName.equals("gMonth") ) add( builtinType, GMonthType.theInstance ); else if( dataTypeName.equals("hexBinary") ) add( builtinType, HexBinaryType.theInstance ); else if( dataTypeName.equals("base64Binary") ) add( builtinType, Base64BinaryType.theInstance ); else if( dataTypeName.equals("anyURI") ) add( builtinType, AnyURIType.theInstance ); else if( dataTypeName.equals("ENTITY") ) add( builtinType, EntityType.theInstance ); else if( dataTypeName.equals("language") ) add( builtinType, LanguageType.theInstance ); else if( dataTypeName.equals("ID") ) add( builtinType, IDType.theInstance ); else if( dataTypeName.equals("IDREF") ) add( builtinType, IDREFType.theInstance ); else if( dataTypeName.equals("IDREFS") ) add( builtinType, IDREFType.theIDREFSinstance ); else if( dataTypeName.equals("ENTITIES") ) add( builtinType, createOneOrMoreList("ENTITIES",EntityType.theInstance) ); else if( dataTypeName.equals("NMTOKENS") ) add( builtinType, createOneOrMoreList("NMTOKENS",NmtokenType.theInstance) ); else if( dataTypeName.equals("NOTATION") ) add( builtinType, new StringType("NOTATION", WhiteSpaceProcessor.theCollapse) ); else if( dataTypeName.equals("nonPositiveInteger") ) add( builtinType, NonPositiveIntegerType.theInstance ); else if( dataTypeName.equals("unsignedLong") ) add( builtinType, UnsignedLongType.theInstance ); else if( dataTypeName.equals("unsignedInt") ) add( builtinType, UnsignedIntType.theInstance ); else if( dataTypeName.equals("unsignedShort") ) add( builtinType, UnsignedShortType.theInstance ); else if( dataTypeName.equals("unsignedByte") ) add( builtinType, UnsignedByteType.theInstance ); } catch( DatatypeException dte ) { // assertion failed throw new Error(); } dt = (XSDatatype)builtinType.get(dataTypeName); if(dt!=null) return dt; throw new DatatypeException("undefined type name:"+dataTypeName); }
45720 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45720/3e22fabd9450d63f3a0071da59afcb0cd886a0ef/DatatypeFactory.java/buggy/xsdlib/src/com/sun/msv/datatype/xsd/DatatypeFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1139, 55, 20228, 3130, 5911, 12, 514, 501, 7947, 262, 1216, 21168, 503, 288, 202, 202, 60, 55, 20228, 3681, 273, 261, 60, 55, 20228, 13, 24553, 559, 18, 588, 12, 892, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1139, 55, 20228, 3130, 5911, 12, 514, 501, 7947, 262, 1216, 21168, 503, 288, 202, 202, 60, 55, 20228, 3681, 273, 261, 60, 55, 20228, 13, 24553, 559, 18, 588, 12, 892, 7...
ged = new GradientEditorDialog( this.getShell( ), null );
ged = new GradientEditorDialog( this.getShell( ), wizardContext, null );
public void widgetSelected( SelectionEvent e ) { Object oSource = e.getSource( ); if ( oSource.equals( btnDown ) ) { fireHandleEvent( MOUSE_CLICKED_EVENT ); toggleDropDown( ); } else if ( oSource.equals( this.btnImage ) ) { ImageDialog idlg = new ImageDialog( this.getShell( ), fCurrent ); cmpDropDown.getParent( ).dispose( ); if ( idlg.open( ) == Window.OK ) { Fill imgFill = idlg.getResult( ); if ( imgFill != null ) { addAdapters( imgFill ); this.setFill( imgFill ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } } else if ( oSource.equals( this.btnReset ) ) { this.setFill( null ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); cmpDropDown.getShell( ).dispose( ); } else if ( oSource.equals( this.btnAuto ) ) { if ( fCurrent == null ) { fCurrent = ColorDefinitionImpl.TRANSPARENT( ); } if ( fCurrent instanceof ColorDefinition ) { ColorDefinition color = (ColorDefinition) fCurrent; color.unsetBlue( ); color.unsetGreen( ); color.unsetRed( ); color.unsetTransparency( ); } setFill( fCurrent ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); cmpDropDown.getShell( ).dispose( ); } else if ( oSource.equals( this.btnCustom ) ) { ColorDialog cDlg = new ColorDialog( this.getShell( ), SWT.NONE ); cmpDropDown.getParent( ).dispose( ); int iTrans = 255; if ( fCurrent instanceof ColorDefinition ) { if ( !fCurrent.equals( ColorDefinitionImpl.TRANSPARENT( ) ) ) { iTransparency = ( (ColorDefinition) fCurrent ).getTransparency( ); } cDlg.setRGB( new RGB( ( (ColorDefinition) this.fCurrent ).getRed( ), ( (ColorDefinition) this.fCurrent ).getGreen( ), ( (ColorDefinition) this.fCurrent ).getBlue( ) ) ); } RGB rgb = cDlg.open( ); if ( rgb != null ) { ColorDefinition cdNew = AttributeFactory.eINSTANCE.createColorDefinition( ); cdNew.set( rgb.red, rgb.green, rgb.blue ); cdNew.setTransparency( ( bTransparencyChanged ) ? this.iTransparency : iTrans ); addAdapters( cdNew ); this.setFill( cdNew ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } else if ( oSource.equals( this.btnGradient ) ) { GradientEditorDialog ged = null; cmpDropDown.getParent( ).dispose( ); if ( fCurrent instanceof Gradient ) { ged = new GradientEditorDialog( this.getShell( ), (Gradient) fCurrent ); } else if ( fCurrent instanceof ColorDefinition ) { ColorDefinition newCD = (ColorDefinition) EcoreUtil.copy( fCurrent ); newCD.eAdapters( ).addAll( fCurrent.eAdapters( ) ); ged = new GradientEditorDialog( this.getShell( ), null, newCD ); } else { ged = new GradientEditorDialog( this.getShell( ), null ); } if ( ged.getGradient( ) != null ) { Fill fTmp = ged.getGradient( ); addAdapters( fTmp ); if ( fCurrent == null || !( fCurrent.equals( fTmp ) ) ) { this.setFill( fTmp ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } } else if ( oSource.equals( srTransparency ) ) { iTransparency = srTransparency.getSelection( ); lblTransparency.setText( new MessageFormat( Messages.getString( "FillChooserComposite.Lbl.Opacity" ) ) //$NON-NLS-1$ .format( new Object[]{ new Integer( iTransparency ) } ) ); srTransparency.setToolTipText( String.valueOf( srTransparency.getSelection( ) ) ); if ( fCurrent instanceof ColorDefinition ) { ( (ColorDefinition) fCurrent ).setTransparency( iTransparency ); } setFill( fCurrent ); bTransparencyChanged = true; } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/c60a4815037b62e9358af2625eb6236e7c979d0f/FillChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 921, 320, 1830, 273, 425, 18, 588, 1830, 12, 11272, 202, 202, 430, 261, 320, 1830, 18, 14963, 12, 10638, 4164, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 921, 320, 1830, 273, 425, 18, 588, 1830, 12, 11272, 202, 202, 430, 261, 320, 1830, 18, 14963, 12, 10638, 4164, ...
DropTarget dropTarget = new DropTarget(this, new ArgoDropTargetListener());
DropTarget dropTarget = new DropTarget(this, new ArgoDropTargetListener());
public DnDNavigatorTree() { super(); this.addTreeSelectionListener(new DnDTreeSelectionListener()); _dragSource = DragSource.getDefaultDragSource(); DragGestureRecognizer dgr = _dragSource.createDefaultDragGestureRecognizer( this, DnDConstants.ACTION_COPY_OR_MOVE, //specifies valid actions this); // Eliminates right mouse clicks as valid actions dgr.setSourceActions(dgr.getSourceActions() & ~InputEvent.BUTTON3_MASK); // First argument: Component to associate the target with // Second argument: DropTargetListener DropTarget dropTarget = new DropTarget(this, new ArgoDropTargetListener()); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/DnDNavigatorTree.java/buggy/src_new/org/argouml/ui/DnDNavigatorTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 463, 82, 8609, 13061, 2471, 1435, 288, 7734, 2240, 5621, 7734, 333, 18, 1289, 2471, 6233, 2223, 12, 2704, 463, 82, 40, 2471, 6233, 2223, 10663, 7734, 389, 15997, 1830, 273, 28425, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 463, 82, 8609, 13061, 2471, 1435, 288, 7734, 2240, 5621, 7734, 333, 18, 1289, 2471, 6233, 2223, 12, 2704, 463, 82, 40, 2471, 6233, 2223, 10663, 7734, 389, 15997, 1830, 273, 28425, 1...
if (name == moduleroot.name && owner == moduleroot.owner()) {
if (moduleroot != null && name == moduleroot.name && owner == moduleroot.owner()) {
Symbol getSymbol(int n) { if (entries[n] == null) { int savedBp = bp; bp = index[n]; int tag = bytes[bp++]; int end = readNat() + bp; Symbol sym; Symbol owner; switch (tag) { case NONEsym: entries[n] = sym = Symbol.NONE; break; case EXTref: case EXTMODCLASSref: Name name = readNameRef(); if (bp == end) { owner = global.definitions.ROOT_CLASS; } else { assert bp < end; owner = readSymbolRef(); } if (name == Names.ROOT && owner == Symbol.NONE) { sym = global.definitions.ROOT_CLASS; if (tag == EXTref) sym = sym; // !!! line above is usefull for the transition // !!! after some time, replace it by the following line: // !!! assert tag != EXTref; } else { sym = owner.info().lookup(name); if (tag == EXTMODCLASSref) { /* if (sym.kind == VAL) switch (sym.type()) { case OverloadedType(Symbol[] alts, _): for (int i = 0; i < alts.length; i++) if (alts[i].isModule()) sym = alts[i]; } */ assert sym.isModule(); sym = sym.moduleClass(); } } entries[n] = sym; if (sym.kind == NONE) { if (global.debug) global.log(owner.info().members().toString()); throw new BadSignature(this, "reference " + decode(name) + " of " + owner + " refers to nonexisting symbol."); } break; default: assert isSymbolEntry(n) : n; Name name = readNameRef(); if (global.debug) global.log("reading " + name + " at " + n); owner = readSymbolRef(); if (entries[n] == null) { int flags = readNat(); int inforef = readNat(); switch (tag) { case TYPEsym: entries[n] = sym = owner.newAbstractType( Position.NOPOS, flags, name); if ((flags & VIEWBOUND) != 0) { sym.setInfo(global.definitions.ANY_TYPE()); sym.setVuBound(getType(inforef, sym)); } else { sym.setInfo(getType(inforef, sym)); } sym.setLoBound(readTypeRef(sym)); break; case ALIASsym: entries[n] = sym = owner.newTypeAlias( Position.NOPOS, flags, name); sym.setInfo(getType(inforef, sym)); Symbol constr = readSymbolRef(); break; case CLASSsym: if ((flags & MODUL) != 0) { Symbol modulesym = readSymbolRef(); entries[n] = sym = modulesym.moduleClass(); sym.flags = flags; } else if (name == classroot.name && owner == classroot.owner()) { if (global.debug) global.log("overwriting " + classroot); entries[n] = sym = classroot; sym.flags = flags; } else { entries[n] = sym = owner.newClass( Position.NOPOS, flags, name); } sym.setInfo(getType(inforef, sym)); sym.setTypeOfThis(readTypeRef(sym)); Symbol constr = readSymbolRef(); assert constr == sym.allConstructors(); break; case VALsym: if (name == moduleroot.name && owner == moduleroot.owner()) { if (global.debug) global.log("overwriting " + moduleroot); entries[n] = sym = moduleroot; sym.flags = flags; } else if ((flags & MODUL) != 0) { entries[n] = sym = owner.newModule( Position.NOPOS, flags, name); } else if (name == Names.CONSTRUCTOR) { Symbol tsym = bp < end ? readSymbolRef() : null; if (tsym == null) { entries[n] = sym = owner.newConstructor( Position.NOPOS, flags); } else { entries[n] = sym = tsym.allConstructors(); sym.flags = flags; } } else { entries[n] = sym = owner.newTerm( Position.NOPOS, flags, name); } if (sym.isModule()) { Symbol clasz = readSymbolRef(); assert clasz == sym.moduleClass(): Debug.show(sym); } sym.setInfo(getType(inforef, sym)); break; default: throw new BadSignature(this); } enterSymbol(sym); } } bp = savedBp; } return (Symbol) entries[n]; }
49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/3ec2af254866c60389b3fd304c14d1137b9cf4c8/UnPickle.java/clean/sources/scalac/symtab/classfile/UnPickle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 8565, 18712, 12, 474, 290, 13, 288, 202, 430, 261, 8219, 63, 82, 65, 422, 446, 13, 288, 202, 565, 509, 5198, 38, 84, 273, 9107, 31, 202, 565, 9107, 273, 770, 63, 82, 15533, 202, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 8565, 18712, 12, 474, 290, 13, 288, 202, 430, 261, 8219, 63, 82, 65, 422, 446, 13, 288, 202, 565, 509, 5198, 38, 84, 273, 9107, 31, 202, 565, 9107, 273, 770, 63, 82, 15533, 202, 565...
"lprio", createImageDescriptor(OBJ + "lprio_tsk.gif"));
"lprio", IDEWorkbenchPlugin.getIDEImageDescriptor("obj16/lprio_tsk.gif"));
static void createImageDescriptors() { String LOCAL = "elcl16/";//$NON-NLS-1$ String LOCAL_DISABLED = "dlcl16/";//$NON-NLS-1$ String OBJ = "obj16/";//$NON-NLS-1$ imageDescriptors = new HashMap(51); imageDescriptors .put( "header_complete", createImageDescriptor("obj16/header_complete.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "header_priority", createImageDescriptor("obj16/header_priority.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "task", createImageDescriptor(OBJ + "taskmrk_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "error", createImageDescriptor(OBJ + "error_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "warn", createImageDescriptor(OBJ + "warn_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "info", createImageDescriptor(OBJ + "info_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "hprio", createImageDescriptor(OBJ + "hprio_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "lprio", createImageDescriptor(OBJ + "lprio_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "complete_tsk", createImageDescriptor(OBJ + "complete_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "incomplete_tsk", createImageDescriptor(OBJ + "incomplete_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "gotoobj", createImageDescriptor(LOCAL + "gotoobj_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "addtsk", createImageDescriptor(LOCAL + "addtsk_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "addtsk_disabled", createImageDescriptor(LOCAL_DISABLED + "addtsk_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "showcomplete", createImageDescriptor(LOCAL + "showcomplete_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "selected_mode", createImageDescriptor(LOCAL + "selected_mode.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "selected_mode_disabled", createImageDescriptor(LOCAL_DISABLED + "selected_mode.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "showchild_mode", createImageDescriptor(LOCAL + "showchild_mode.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "showchild_mode_disabled", createImageDescriptor(LOCAL_DISABLED + "showchild_mode.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "showerr_disabled", createImageDescriptor(LOCAL_DISABLED + "showerr_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "showwarn_disabled", createImageDescriptor(LOCAL_DISABLED + "showwarn_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors .put( "showtsk_disabled", createImageDescriptor(LOCAL_DISABLED + "showtsk_tsk.gif"));//$NON-NLS-2$//$NON-NLS-1$ imageDescriptors.put( "filter", createImageDescriptor(LOCAL + "filter_ps.gif"));//$NON-NLS-2$//$NON-NLS-1$ }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c67b11f8cbea2950c016fc00cf62dc5d8d538b36/MarkerUtil.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/MarkerUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 28301, 12705, 1435, 288, 3639, 514, 15234, 273, 315, 292, 830, 2313, 4898, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 3639, 514, 15234, 67, 24493, 273, 315, 5761, 830, 2313, 4898,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 28301, 12705, 1435, 288, 3639, 514, 15234, 273, 315, 292, 830, 2313, 4898, 31, 759, 8, 3993, 17, 5106, 17, 21, 8, 3639, 514, 15234, 67, 24493, 273, 315, 5761, 830, 2313, 4898,...
if(ma.count() != count())
if(ma.count() != count() || ma.hashCode() != hashCode())
public boolean equals(Object obj) { if(obj instanceof IPersistentArray) { IPersistentArray ma = (IPersistentArray) obj; if(ma.count() != count()) return false; for(int i=0;i<count();i++) { if(!RT.equal(nth(i),ma.nth(i))) return false; } } else { if(!(obj instanceof Sequential)) return false; for(ISeq s = seq(), ms = ((IPersistentCollection)obj).seq();s!=null;s = s.rest(), ms = ms.rest()) { if(ms == null || !RT.equal(s.first(),ms.first())) return false; } } return true;}
46364 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46364/be12a746746c53c1f00758df7daa1fa5edc03935/APersistentArray.java/buggy/src/jvm/clojure/lang/APersistentArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 565, 309, 12, 2603, 1276, 2971, 6572, 1076, 13, 3639, 288, 3639, 2971, 6572, 1076, 10843, 273, 261, 2579, 6572, 1076, 13, 1081, 31, 3639, 309, 12, 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, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 565, 309, 12, 2603, 1276, 2971, 6572, 1076, 13, 3639, 288, 3639, 2971, 6572, 1076, 10843, 273, 261, 2579, 6572, 1076, 13, 1081, 31, 3639, 309, 12, 2...
.getAttribute(ActionDescriptor.ATT_DEFINITION_ID);
.getAttribute(IWorkbenchRegistryConstants.ATT_DEFINITION_ID);
public PluginAction(IConfigurationElement actionElement, String id, int style) { super(null, style); this.configElement = actionElement; if (id != null) { setId(id); } else { // Create unique action id. setId("PluginAction." + Integer.toString(actionCount)); //$NON-NLS-1$ ++actionCount; } String defId = actionElement .getAttribute(ActionDescriptor.ATT_DEFINITION_ID); setActionDefinitionId(defId); pluginId = configElement.getDeclaringExtension().getNamespace(); // Read enablement declaration. if (configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ENABLES_FOR) != null) { enabler = new SelectionEnabler(configElement); } else { IConfigurationElement[] kids = configElement .getChildren(IWorkbenchRegistryConstants.TAG_ENABLEMENT); if (kids.length > 0) enabler = new SelectionEnabler(configElement); } // Give enabler or delegate a chance to adjust enable state selectionChanged(new StructuredSelection()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b97ada8a49178173d33f907e1eb89e1b33e5ddcd/PluginAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6258, 1803, 12, 45, 1750, 1046, 1301, 1046, 16, 514, 612, 16, 5411, 509, 2154, 13, 288, 3639, 2240, 12, 2011, 16, 2154, 1769, 3639, 333, 18, 1425, 1046, 273, 1301, 1046, 31, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6258, 1803, 12, 45, 1750, 1046, 1301, 1046, 16, 514, 612, 16, 5411, 509, 2154, 13, 288, 3639, 2240, 12, 2011, 16, 2154, 1769, 3639, 333, 18, 1425, 1046, 273, 1301, 1046, 31, 3639,...
writeCalendarCode((ServerStoredDetails.CalendarDetail)detail, result);
writeCalendarCode((ServerStoredDetails.CalendarDetail)detail, result);break;
private DetailTlv getTlvForChange(ServerStoredDetails.GenericDetail detail) { int typeOfDetail = ((int[])supportedTypes.get(detail.getClass()))[1]; DetailTlv result = new DetailTlv(((int[])supportedTypes.get(detail.getClass()))[1]); switch(typeOfDetail) { case 0x01A4 : //CountryDetail case 0x0334 : //OriginCountryDetail case 0x02B2 : //WorkCountryDetail result.writeUShort(getCountryCode(((ServerStoredDetails.LocaleDetail)detail).getLocale()));break; case 0x0186 : //SpokenLanguageDetail writeLanguageCode((ServerStoredDetails.LocaleDetail)detail, result); case 0x017C : //GenderDetail writeGenderCode((ServerStoredDetails.GenderDetail)detail, result); case 0x023A : //BirthDateDetail writeCalendarCode((ServerStoredDetails.CalendarDetail)detail, result); case 0x01CC : //WorkOcupationDetail writeOccupationCode((WorkOcupationDetail)detail, result); case 0x01EA : //InterestDetail writeInterestCode((InterestDetail)detail, result); default : writeGenericDetail(detail, result); } return result; }
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/9205c119794128e79735468c88ba0af4d62d6396/FullInfoCmd.java/clean/src/net/java/sip/communicator/impl/protocol/icq/message/usrinfo/FullInfoCmd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 27931, 56, 3070, 3181, 3070, 1290, 3043, 12, 2081, 18005, 3790, 18, 7014, 6109, 7664, 13, 565, 288, 3639, 509, 23170, 6109, 273, 14015, 474, 63, 5717, 4127, 2016, 18, 588, 12, 8992,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27931, 56, 3070, 3181, 3070, 1290, 3043, 12, 2081, 18005, 3790, 18, 7014, 6109, 7664, 13, 565, 288, 3639, 509, 23170, 6109, 273, 14015, 474, 63, 5717, 4127, 2016, 18, 588, 12, 8992,...
resize (d);
resize (width, height);
public void setSize(Dimension d) { resize (d); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/566e4ab93ebc97794094572536829e581d565b11/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 19106, 12, 8611, 302, 13, 225, 288, 565, 7041, 261, 72, 1769, 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, 282, 1071, 918, 19106, 12, 8611, 302, 13, 225, 288, 565, 7041, 261, 72, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (map.containsKey(EXECUTION_DELAY)) delay = map.getLong(EXECUTION_DELAY);
if (map.containsKey(EXECUTION_DELAY)) { delay = map.getLong(EXECUTION_DELAY); }
public void execute(JobExecutionContext context) throws JobExecutionException { System.err.println("---" + context.getJobDetail().getFullName() + " executing.[" + new Date() + "]"); JobDataMap map = context.getJobDetail().getJobDataMap(); int executeCount = 0; if (map.containsKey(NUM_EXECUTIONS)) executeCount = map.getInt(NUM_EXECUTIONS); executeCount++; map.put(NUM_EXECUTIONS, executeCount); long delay = 5000l; if (map.containsKey(EXECUTION_DELAY)) delay = map.getLong(EXECUTION_DELAY); try { Thread.sleep(delay); } catch (Exception ignore) { } System.err.println(" -" + context.getJobDetail().getFullName() + " complete (" + executeCount + ")."); }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/34b91f92fb2ac260d1f46e86f47625d41081621b/StatefulDumbJob.java/clean/examples/src/java/org/quartz/examples/example5/StatefulDumbJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 31498, 1042, 819, 13, 5411, 1216, 3956, 14576, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 6062, 6, 397, 819, 18, 588, 2278, 6109, 7675, 588, 19223, 1435, 7734, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 31498, 1042, 819, 13, 5411, 1216, 3956, 14576, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 6062, 6, 397, 819, 18, 588, 2278, 6109, 7675, 588, 19223, 1435, 7734, 397, ...
for (String name : depends.split(",")) {
for (final String name : depends.split(",")) {
public AntTarget[] getDependsTargets() { if (myDependsTargets == null) { final String depends = getSourceElement().getAttributeValue("depends"); if (depends == null || depends.length() == 0) { myDependsTargets = EMPTY_TARGETS; } else { AntProject project = (AntProject)getAntParent(); final List<AntTarget> targets = new ArrayList<AntTarget>(); for (String name : depends.split(",")) { final AntTarget antTarget = project.getTarget(name); if (antTarget != null) { targets.add(antTarget); } } myDependsTargets = targets.toArray(new AntTarget[targets.size()]); } } return myDependsTargets; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/25082ee6b81b8f880ab2ad27c0c209fdc0e1952e/AntTargetImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntTargetImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18830, 2326, 8526, 336, 4584, 87, 9432, 1435, 288, 565, 309, 261, 4811, 4584, 87, 9432, 422, 446, 13, 288, 1377, 727, 514, 10935, 273, 7889, 1046, 7675, 588, 14942, 2932, 27360, 886...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18830, 2326, 8526, 336, 4584, 87, 9432, 1435, 288, 565, 309, 261, 4811, 4584, 87, 9432, 422, 446, 13, 288, 1377, 727, 514, 10935, 273, 7889, 1046, 7675, 588, 14942, 2932, 27360, 886...
} else if (element instanceof IWorkingCopy && parent != null && parent.equals(fInput))
} else if (element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy() && parent != null && parent.equals(fInput))
protected void processDelta(IJavaElementDelta delta) throws JavaModelException { int kind= delta.getKind(); int flags= delta.getFlags(); IJavaElement element= delta.getElement(); if (!getProvideWorkingCopy() && element instanceof IWorkingCopy && ((IWorkingCopy)element).isWorkingCopy()) { return; } // handle open and closing of a solution or project if (((flags & IJavaElementDelta.F_CLOSED) != 0) || ((flags & IJavaElementDelta.F_OPENED) != 0)) { postRefresh(element); return; } if (kind == IJavaElementDelta.REMOVED) { Object parent= internalGetParent(element); if (fBrowsingPart.isValidElement(element)) { if (element instanceof IClassFile) { postRemove(((IClassFile)element).getType()); } else if (element instanceof ICompilationUnit && !((ICompilationUnit)element).isWorkingCopy()) { if (!getProvideWorkingCopy()) postRefresh(null); } else if (element instanceof ICompilationUnit && ((ICompilationUnit)element).isWorkingCopy()) { if (getProvideWorkingCopy()) postRefresh(null); } else if (parent instanceof ICompilationUnit && getProvideWorkingCopy() && !((ICompilationUnit)parent).isWorkingCopy()) { if (element instanceof IWorkingCopy) { // working copy removed from system - refresh postRefresh(null); } } else if (element instanceof IWorkingCopy && parent != null && parent.equals(fInput)) // closed editor - removing working copy postRefresh(null); else postRemove(element); } if (fBrowsingPart.isAncestorOf(element, fInput)) { if (element instanceof IWorkingCopy) { postAdjustInputAndSetSelection(((IWorkingCopy)element).getOriginal((IJavaElement)fInput)); } else postAdjustInputAndSetSelection(null); } return; } if (kind == IJavaElementDelta.ADDED && delta.getMovedFromElement() != null && element instanceof ICompilationUnit) return; if (kind == IJavaElementDelta.ADDED) { if (fBrowsingPart.isValidElement(element)) { Object parent= internalGetParent(element); if (element instanceof IClassFile) { postAdd(parent, ((IClassFile)element).getType()); } else if (element instanceof ICompilationUnit && !((ICompilationUnit)element).isWorkingCopy()) { if (!getProvideWorkingCopy()) postAdd(parent, ((ICompilationUnit)element).getAllTypes()); } else if (parent instanceof ICompilationUnit && getProvideWorkingCopy() && !((ICompilationUnit)parent).isWorkingCopy()) { // do nothing } else if (element instanceof IWorkingCopy) { // new working copy comes to live postRefresh(null); } else postAdd(parent, element); } else if (fInput == null) { IJavaElement newInput= fBrowsingPart.findInputForJavaElement(element); if (newInput != null) postAdjustInputAndSetSelection(element); } else if (element instanceof IType && fBrowsingPart.isValidInput(element)) { IJavaElement cu1= element.getAncestor(IJavaElement.COMPILATION_UNIT); IJavaElement cu2= ((IJavaElement)fInput).getAncestor(IJavaElement.COMPILATION_UNIT); if (cu1 != null && cu2 != null && cu1.equals(cu2)) postAdjustInputAndSetSelection(element); } return; } if (kind == IJavaElementDelta.CHANGED) { if (fBrowsingPart.isValidElement(element)) { postRefresh(element); } } if (isClassPathChange(delta)) // throw the towel and do a full refresh postRefresh(null); IJavaElementDelta[] affectedChildren= delta.getAffectedChildren(); if (affectedChildren.length > 1) { // a package fragment might become non empty refresh from the parent if (element instanceof IPackageFragment) { IJavaElement parent= (IJavaElement)internalGetParent(element); // avoid posting a refresh to an unvisible parent if (element.equals(fInput)) { postRefresh(element); } else { postRefresh(parent); } } // more than one child changed, refresh from here downwards if (element instanceof IPackageFragmentRoot && fBrowsingPart.isValidElement(element)) { postRefresh(skipProjectPackageFragmentRoot((IPackageFragmentRoot)element)); return; } } for (int i= 0; i < affectedChildren.length; i++) { processDelta(affectedChildren[i]); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/8459680bfa3e1418f733dd7fb67e51d7f128778a/JavaElementContentProvider.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaElementContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 9242, 12, 45, 5852, 1046, 9242, 3622, 13, 1216, 5110, 1488, 503, 288, 202, 202, 474, 3846, 33, 3622, 18, 588, 5677, 5621, 202, 202, 474, 2943, 33, 3622, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 9242, 12, 45, 5852, 1046, 9242, 3622, 13, 1216, 5110, 1488, 503, 288, 202, 202, 474, 3846, 33, 3622, 18, 588, 5677, 5621, 202, 202, 474, 2943, 33, 3622, 18, 588, ...
request.setAttribute("_AUTO_LOGIN_LOGOUT_", new Boolean(true));
request.setAttribute("_AUTO_LOGIN_LOGOUT_", Boolean.TRUE);
public static String autoLoginRemove(HttpServletRequest request, HttpServletResponse response) { HttpSession session = request.getSession(); GenericValue userLogin = (GenericValue) session.getAttribute("autoUserLogin"); // remove the cookie if (userLogin != null) { Cookie autoLoginCookie = new Cookie(getAutoLoginCookieName(request), userLogin.getString("userLoginId")); autoLoginCookie.setMaxAge(0); autoLoginCookie.setPath("/"); response.addCookie(autoLoginCookie); } // remove the session attributes session.removeAttribute("autoUserLogin"); session.removeAttribute("autoName"); // logout the user if logged in. if (session.getAttribute("userLogin") != null) { request.setAttribute("_AUTO_LOGIN_LOGOUT_", new Boolean(true)); return logout(request, response); } return "success"; }
22229 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22229/4adaa061c0ea82fe49397c1a7bdbe032dcf80d90/LoginWorker.java/buggy/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3656, 5358, 3288, 12, 2940, 18572, 590, 16, 12446, 766, 13, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 7928, 620, 729, 5358, 273, 261, 7014, 620, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3656, 5358, 3288, 12, 2940, 18572, 590, 16, 12446, 766, 13, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 7928, 620, 729, 5358, 273, 261, 7014, 620, 13, 1...
}
}
protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/TextField.java/buggy/core/src/classpath/java/java/awt/TextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 1803, 1133, 12, 1803, 1133, 871, 13, 288, 202, 202, 430, 261, 1128, 67, 16072, 480, 446, 13, 1082, 202, 1128, 67, 16072, 18, 1128, 13889, 12, 2575, 1769, 202, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1207, 1803, 1133, 12, 1803, 1133, 871, 13, 288, 202, 202, 430, 261, 1128, 67, 16072, 480, 446, 13, 1082, 202, 1128, 67, 16072, 18, 1128, 13889, 12, 2575, 1769, 202, 97, ...
Elem(Object e) {
Elem( Object e ) {
Elem(Object e) { x = e; }
47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/f63e1142cae73862c9c4f7b6ce46225b40f3ef86/BinaryHeap.java/buggy/src/org/_3pq/jgrapht/experimental/heap/BinaryHeap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 10223, 12, 1033, 425, 262, 288, 5411, 619, 273, 425, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 10223, 12, 1033, 425, 262, 288, 5411, 619, 273, 425, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public ObjectServiceFactory getServiceFactory()
public ServiceFactory getServiceFactory()
public ObjectServiceFactory getServiceFactory() { return serviceFactory; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/eb3c1ae2e36b577383b2bec0b4c607756ff4922d/XFireConnector.java/buggy/providers/xfire/src/main/java/org/mule/providers/soap/xfire/XFireConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1956, 1733, 6373, 1733, 1435, 565, 288, 3639, 327, 1156, 1733, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1956, 1733, 6373, 1733, 1435, 565, 288, 3639, 327, 1156, 1733, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
{ return 0; }
{ return 0; }
public int getDebugGraphicsOptions() { return 0; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 29264, 17558, 1320, 1435, 202, 95, 202, 202, 2463, 374, 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, 509, 29264, 17558, 1320, 1435, 202, 95, 202, 202, 2463, 374, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c));
nextChar(); if (current != -1 && ScannerUtilities.isCSSNameCharacter((char)current)) { do { nextChar(); } while (current != -1 && ScannerUtilities.isCSSNameCharacter((char)current));
protected int numberUnit(int c, boolean integer) throws IOException { switch (c) { case '%': inputBuffer.next(); return LexicalUnits.PERCENTAGE; case 'c': case 'C': c = inputBuffer.next(); switch(c) { case 'm': case 'M': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.CM; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'd': case 'D': c = inputBuffer.next(); switch(c) { case 'e': case 'E': c = inputBuffer.next(); switch(c) { case 'g': case 'G': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.DEG; } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'e': case 'E': c = inputBuffer.next(); switch(c) { case 'm': case 'M': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.EM; case 'x': case 'X': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.EX; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'g': case 'G': c = inputBuffer.next(); switch(c) { case 'r': case 'R': c = inputBuffer.next(); switch(c) { case 'a': case 'A': c = inputBuffer.next(); switch(c) { case 'd': case 'D': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.GRAD; } } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'h': case 'H': c = inputBuffer.next(); switch(c) { case 'z': case 'Z': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.HZ; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'i': case 'I': c = inputBuffer.next(); switch(c) { case 'n': case 'N': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.IN; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'k': case 'K': c = inputBuffer.next(); switch(c) { case 'h': case 'H': c = inputBuffer.next(); switch(c) { case 'z': case 'Z': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.KHZ; } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'm': case 'M': c = inputBuffer.next(); switch(c) { case 'm': case 'M': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.MM; case 's': case 'S': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.MS; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'p': case 'P': c = inputBuffer.next(); switch(c) { case 'c': case 'C': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.PC; case 't': case 'T': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.PT; case 'x': case 'X': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.PX; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'r': case 'R': c = inputBuffer.next(); switch(c) { case 'a': case 'A': c = inputBuffer.next(); switch(c) { case 'd': case 'D': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.RAD; } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 's': case 'S': inputBuffer.next(); return LexicalUnits.S; default: if (c != -1 && ScannerUtilities.isCSSIdentifierStartCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return (integer) ? LexicalUnits.INTEGER : LexicalUnits.REAL; } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/9275bbcced0ae3e1d23dc6e4de73913cf9ca452f/Scanner.java/buggy/sources/org/apache/batik/css/parser/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1300, 2802, 12, 474, 276, 16, 1250, 3571, 13, 1216, 1860, 288, 3639, 1620, 261, 71, 13, 288, 3639, 648, 1995, 4278, 5411, 810, 1892, 18, 4285, 5621, 5411, 327, 15123, 1706, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1300, 2802, 12, 474, 276, 16, 1250, 3571, 13, 1216, 1860, 288, 3639, 1620, 261, 71, 13, 288, 3639, 648, 1995, 4278, 5411, 810, 1892, 18, 4285, 5621, 5411, 327, 15123, 1706, 7...
togo.selection = new UIInput();
togo.selection = new UIOutput();
public static UISelect make(UIContainer tofill, String ID, String[] values, String[] labels, String value) { UISelect togo = new UISelect(); togo.optionlist = new UIOutputMany(); togo.ID = ID; togo.optionlist.setValue(values); togo.optionnames = new UIBoundList(); togo.optionnames.setValue(labels); togo.selection = new UIInput(); if (value != null) { ((UIOutput) togo.selection).setValue(value); } tofill.addComponent(togo); return togo; }
45809 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45809/49f10f83256e9404883e3d0c56e4a999b0185d72/UISelect.java/clean/src/uk/org/ponder/rsf/components/UISelect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 6484, 3391, 1221, 12, 5370, 2170, 358, 5935, 16, 514, 1599, 16, 514, 8526, 924, 16, 1377, 514, 8526, 3249, 16, 514, 460, 13, 288, 565, 6484, 3391, 358, 3240, 273, 394, 6484, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6484, 3391, 1221, 12, 5370, 2170, 358, 5935, 16, 514, 1599, 16, 514, 8526, 924, 16, 1377, 514, 8526, 3249, 16, 514, 460, 13, 288, 565, 6484, 3391, 358, 3240, 273, 394, 6484, ...
processTemplate( outputDirectory, context, ARCHETYPE_POM, null );
processTemplate( outputDirectory, context, ARCHETYPE_POM, false, null );
public void createArchetype( String archetypeGroupId, String archetypeArtifactId, String archetypeVersion, ArtifactRepository localRepository, Set remoteRepositories, Map parameters ) throws ArchetypeNotFoundException, ArchetypeDescriptorException, ArchetypeTemplateProcessingException { // ---------------------------------------------------------------------- // Download the archetype // ---------------------------------------------------------------------- Artifact archetypeJar = wagonManager.createArtifact( archetypeGroupId, archetypeArtifactId, archetypeVersion, "jar" ); try { artifactResolver.resolve( archetypeJar, remoteRepositories, localRepository ); } catch ( ArtifactResolutionException e ) { throw new ArchetypeNotFoundException( "Cannot download archetype.", e ); } // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- String outputDirectory = (String) parameters.get( "outputDirectory" ); String packageName = (String) parameters.get( "package" ); createProjectDirectoryStructure( outputDirectory ); ArchetypeDescriptorBuilder builder = new ArchetypeDescriptorBuilder(); ArchetypeDescriptor descriptor = null; URLClassLoader archetypeJarLoader; try { URL[] urls = new URL[1]; urls[0] = archetypeJar.getFile().toURL(); archetypeJarLoader = new URLClassLoader( urls ); InputStream is = getStream( ARCHETYPE_DESCRIPTOR, archetypeJarLoader ); if ( is == null ) { throw new ArchetypeDescriptorException( "The " + ARCHETYPE_DESCRIPTOR + " descriptor cannot be found." ); } descriptor = (ArchetypeDescriptor) builder.build( new InputStreamReader( is ) ); } catch ( Exception e ) { throw new ArchetypeDescriptorException( "Error reading the " + ARCHETYPE_DESCRIPTOR + " descriptor.", e ); } Context context = new VelocityContext(); context.put( "package", packageName ); for ( Iterator iterator = parameters.keySet().iterator(); iterator.hasNext(); ) { String key = (String) iterator.next(); Object value = parameters.get( key ); context.put( key, value ); } ClassLoader old = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader( archetypeJarLoader ); try { processTemplate( outputDirectory, context, ARCHETYPE_POM, null ); processSources( outputDirectory, context, descriptor.getSources(), packageName ); processSources( outputDirectory, context, descriptor.getTestSources(), packageName ); } catch ( Exception e ) { throw new ArchetypeTemplateProcessingException( "Error processing templates.", e ); } finally { Thread.currentThread().setContextClassLoader( old ); } }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/244f6070e8f4a4ec0a89899b97e5a47b5a0eee3e/DefaultArchetype.java/clean/maven-archetype/maven-archetype-core/src/main/java/org/apache/maven/archetype/DefaultArchetype.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 12269, 5872, 12, 514, 6637, 5872, 8722, 16, 514, 6637, 5872, 7581, 548, 16, 514, 6637, 5872, 1444, 16, 4766, 14022, 3305, 1191, 3305, 16, 1000, 2632, 18429, 16, 1635, 1472...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12269, 5872, 12, 514, 6637, 5872, 8722, 16, 514, 6637, 5872, 7581, 548, 16, 514, 6637, 5872, 1444, 16, 4766, 14022, 3305, 1191, 3305, 16, 1000, 2632, 18429, 16, 1635, 1472...
session.setLong(3, publishedToUser.getLocalId()); if (1 != session.executeUpdate()) throw new HypersonicException("Could not create published to entry.");
createPublishedTo(session, containerId, versionId, publishedToUser);
public void createPublishedTo(final Long containerId, final Long versionId, final List<User> publishedTo) { final Session session = openSession(); try { session.prepareStatement(SQL_CREATE_PUBLISHED_TO); session.setLong(1, containerId); session.setLong(2, versionId); for (final User publishedToUser : publishedTo) { session.setLong(3, publishedToUser.getLocalId()); if (1 != session.executeUpdate()) throw new HypersonicException("Could not create published to entry."); } session.commit(); } catch (final HypersonicException hx) { session.rollback(); throw hx; } finally { session.close(); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/a7f4dd62ae2eb5c2571de57da38087411863933d/ContainerIOHandler.java/buggy/local/model/src/main/java/com/thinkparity/ophelia/model/io/db/hsqldb/handler/ContainerIOHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 16451, 774, 12, 6385, 3407, 27142, 16, 727, 3407, 15287, 16, 5411, 727, 987, 32, 1299, 34, 9487, 774, 13, 288, 3639, 727, 3877, 1339, 273, 29151, 5621, 3639, 775, 288, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 16451, 774, 12, 6385, 3407, 27142, 16, 727, 3407, 15287, 16, 5411, 727, 987, 32, 1299, 34, 9487, 774, 13, 288, 3639, 727, 3877, 1339, 273, 29151, 5621, 3639, 775, 288, 5...
byte[] tempGenotype = new byte[pos.length];
byte[] tempGenotype = new byte[sortHelpers.size()];
void prepareMarkerInput(File infile, String[][] hapmapGoodies) throws IOException, HaploViewException{ //this method is called to gather data about the markers used. //It is assumed that the input file is two columns, the first being //the name and the second the absolute position. the maxdist is //used to determine beyond what distance comparisons will not be //made. if the infile param is null, loads up "dummy info" for //situation where no info file exists //An optional third column is supported which is designed to hold //association study data. If there is a third column there will be //a visual indicator in the D' display that there is additional data //and the detailed data can be viewed with a mouse press. Vector names = new Vector(); HashSet dupCheck = new HashSet(); Vector positions = new Vector(); Vector extras = new Vector(); dupsToBeFlagged = false; dupNames = false; try{ if (infile != null){ if (infile.length() < 1){ throw new HaploViewException("Info file is empty or does not exist: " + infile.getName()); } String currentLine; long prevloc = -1000000000; //read the input file: BufferedReader in = new BufferedReader(new FileReader(infile)); int lineCount = 0; while ((currentLine = in.readLine()) != null){ StringTokenizer st = new StringTokenizer(currentLine); if (st.countTokens() > 1){ lineCount++; }else if (st.countTokens() == 1){ //complain if only one field found throw new HaploViewException("Info file format error on line "+lineCount+ ":\n Info file must be of format: <markername> <markerposition>"); }else{ //skip blank lines continue; } String name = st.nextToken(); String l = st.nextToken(); String extra = null; if (st.hasMoreTokens()) extra = st.nextToken(); long loc; try{ loc = Long.parseLong(l); }catch (NumberFormatException nfe){ throw new HaploViewException("Info file format error on line "+lineCount+ ":\n\"" + l + "\" should be of type long." + "\n Info file must be of format: <markername> <markerposition>"); } //basically if anyone is crazy enough to load a dataset, then go back and load //an out-of-order info file we tell them to bugger off and start over. if (loc < prevloc && Chromosome.markers != null){ throw new HaploViewException("Info file out of order with preloaded dataset:\n"+ name + "\nPlease reload data file and info file together."); } prevloc = loc; if (names.contains(name)){ dupCheck.add(name); } names.add(name); positions.add(l); extras.add(extra); } //check for duplicate names Iterator ditr = dupCheck.iterator(); while (ditr.hasNext()){ String n = (String) ditr.next(); int numdups = 1; for (int i = 0; i < names.size(); i++){ if (names.get(i).equals(n)){ //leave the first instance of the duplicate name the same if (numdups > 1){ String newName = n + "." + numdups; while (names.contains(newName)){ numdups++; newName = n + "." + numdups; } names.setElementAt(newName,i); dupNames = true; } numdups++; } } } if (lineCount > Chromosome.getUnfilteredSize()){ throw(new HaploViewException("Info file error:\nMarker number mismatch: too many\nmarkers in info file compared to data file.")); } if (lineCount < Chromosome.getUnfilteredSize()){ throw(new HaploViewException("Info file error:\nMarker number mismatch: too few\nmarkers in info file compared to data file.")); } infoKnown=true; } if (hapmapGoodies != null){ //we know some stuff from the hapmap so we'll add it here for (int x=0; x < hapmapGoodies.length; x++){ names.add(hapmapGoodies[x][0]); positions.add(hapmapGoodies[x][1]); extras.add(null); } infoKnown = true; } else if (infile != null){ //we only sort if we read the info from an info file. if //it is from a hapmap file, then the markers were already sorted //when they were read in (in class Pedfile). int numLines = names.size(); Hashtable sortHelp = new Hashtable(numLines-1,1.0f); long[] pos = new long[numLines]; boolean needSort = false; //this loop stores the positions of each marker in an array (pos[]) in the order they appear in the file. //it also creates a hashtable with the positions as keys and their index in the pos[] array as the value for (int k = 0; k < (numLines); k++){ pos[k] = new Long((String)(positions.get(k))).longValue(); sortHelp.put(new Long(pos[k]),new Integer(k)); } //loop through and check if any markers are out of order for (int k = 1; k < (numLines); k++){ if(pos[k] < pos[k-1]) { needSort = true; break; } } //if any were out of order, then we need to put them in order if(needSort) { //sort the positions Arrays.sort(pos); Vector newNames = new Vector(); Vector newExtras = new Vector(); Vector newPositions = new Vector(); int[] realPos = new int[numLines]; //reorder the vectors names and extras so that they have the same order as the sorted markers for (int i = 0; i < pos.length; i++){ realPos[i] = ((Integer)(sortHelp.get(new Long(pos[i])))).intValue(); newNames.add(names.get(realPos[i])); newPositions.add(positions.get(realPos[i])); newExtras.add(extras.get(realPos[i])); } names = newNames; extras = newExtras; positions = newPositions; byte[] tempGenotype = new byte[pos.length]; //now we reorder all the individuals genotypes according to the sorted marker order for(int j=0;j<chromosomes.size();j++){ Chromosome tempChrom = (Chromosome)chromosomes.elementAt(j); for(int i =0;i<pos.length;i++){ tempGenotype[i] = tempChrom.getUnfilteredGenotype(realPos[i]); } for(int i=0;i<pos.length;i++) { tempChrom.setGenotype(tempGenotype[i],i); } } //sort pedfile objects //todo: this should really be done before pedfile is subjected to any processing. //todo: that would require altering some order of operations in dealing with inputs Vector unsortedRes = pedFile.getResults(); Vector sortedRes = new Vector(); for (int i = 0; i < realPos.length; i++){ sortedRes.add(unsortedRes.elementAt(realPos[i])); } pedFile.setResults(sortedRes); Vector o = pedFile.getAllIndividuals(); for (int i = 0; i < o.size(); i++){ Individual ind = (Individual) o.get(i); Vector unsortedMarkers = ind.getMarkers(); Vector sortedMarkers = new Vector(); for (int j = 0; j < unsortedMarkers.size(); j++){ sortedMarkers.add(unsortedMarkers.elementAt(realPos[j])); } ind.setMarkers(sortedMarkers); } } } }catch (HaploViewException e){ throw(e); }finally{ double numChroms = chromosomes.size(); Vector markerInfo = new Vector(); double[] numBadGenotypes = new double[Chromosome.getUnfilteredSize()]; percentBadGenotypes = new double[Chromosome.getUnfilteredSize()]; Vector results = null; if (pedFile != null){ results = pedFile.getResults(); } long prevPosition = Long.MIN_VALUE; SNP prevMarker = null; MarkerResult pmr = null; for (int i = 0; i < Chromosome.getUnfilteredSize(); i++){ MarkerResult mr = null; if (results != null){ mr = (MarkerResult)results.elementAt(i); } //to compute minor/major alleles, browse chrom list and count instances of each allele byte a1 = 0; byte a2 = 0; double numa1 = 0; double numa2 = 0; for (int j = 0; j < chromosomes.size(); j++){ //if there is a data point for this marker on this chromosome byte thisAllele = ((Chromosome)chromosomes.elementAt(j)).getUnfilteredGenotype(i); if (!(thisAllele == 0)){ if (thisAllele >= 5){ numa1+=0.5; numa2+=0.5; if (thisAllele < 9){ if (a1==0){ a1 = (byte)(thisAllele-4); }else if (a2 == 0){ if (!(thisAllele-4 == a1)){ a2 = (byte)(thisAllele-4); } } } }else if (a1 == 0){ a1 = thisAllele; numa1++; }else if (thisAllele == a1){ numa1++; }else{ numa2++; a2 = thisAllele; } } else { numBadGenotypes[i]++; } } if (numa2 > numa1){ byte temp = a1; double tempnum = numa1; numa1 = numa2; a1 = a2; numa2 = tempnum; a2 = temp; } double maf; if (mr != null){ maf = Math.rint(mr.getMAF()*100.0)/100.0; }else{ maf = Math.rint(100.0*(numa2/(numa1+numa2)))/100.0; } if (infoKnown){ long pos = Long.parseLong((String)positions.elementAt(i)); SNP thisMarker = (new SNP((String)names.elementAt(i), pos, maf, a1, a2, (String)extras.elementAt(i))); markerInfo.add(thisMarker); if (mr != null){ double genoPC = mr.getGenoPercent(); //check to make sure adjacent SNPs do not have identical positions if (prevPosition != Long.MIN_VALUE){ //only do this for markers 2..N, since we're comparing to the previous location if (pos == prevPosition){ dupsToBeFlagged = true; if (genoPC >= pmr.getGenoPercent()){ //use this one because it has more genotypes thisMarker.setDup(1); prevMarker.setDup(2); }else{ //use the other one because it has more genotypes thisMarker.setDup(2); prevMarker.setDup(1); } } } prevPosition = pos; prevMarker = thisMarker; pmr = mr; } }else{ markerInfo.add(new SNP("Marker " + String.valueOf(i+1), (i*4000), maf,a1,a2)); } percentBadGenotypes[i] = numBadGenotypes[i]/numChroms; } Chromosome.markers = markerInfo; } }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/9c640e0f897d69833434f8cbf19bd8728d69ec6e/HaploData.java/clean/edu/mit/wi/haploview/HaploData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2911, 7078, 1210, 12, 812, 14568, 16, 514, 63, 6362, 65, 5622, 1458, 18195, 606, 13, 1216, 1860, 16, 670, 438, 383, 1767, 503, 95, 3639, 368, 2211, 707, 353, 2566, 358, 11090, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 7078, 1210, 12, 812, 14568, 16, 514, 63, 6362, 65, 5622, 1458, 18195, 606, 13, 1216, 1860, 16, 670, 438, 383, 1767, 503, 95, 3639, 368, 2211, 707, 353, 2566, 358, 11090, 501,...
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 44) ) { return ; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=37; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '=': alt1=32; break; case '-': alt1=27; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '=': alt1=30; break; case '+': alt1=26; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '/': alt1=37; break; case '=': alt1=29; break; case '+': alt1=31; break; case '-': alt1=33; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': alt1=28; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("916:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:17: '!' { match('!'); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:23: '@' { match('@'); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:29: '$' { match('$'); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:35: '%' { match('%'); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:41: '^' { match('^'); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:47: '&' { match('&'); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:53: '*' { match('*'); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:59: '_' { match('_'); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:65: '-' { match('-'); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:71: '+' { match('+'); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:19: '|' { match('|'); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:25: ',' { match(','); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:31: '{' { match('{'); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:37: '}' { match('}'); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:43: '[' { match('['); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:49: ']' { match(']'); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:55: '=' { match('='); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:61: '/' { match('/'); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:67: '(' { match('('); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:73: ')' { match(')'); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:19: '||' { match("||"); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:41: '++' { match("++"); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:48: '--' { match("--"); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:63: '==' { match("=="); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:920:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:920:26: '=/' { match("=/"); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 44, MISC_StartIndex); } } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, ...