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
style.setDateFormatObject( dateFormat ); } else { formatStr = dateFormat.getPattern( );
protected boolean formatValue( Object value, String formatStr, StyleDesign style, StringBuffer formattedStr ) { if ( value == null ) { return false; } assert style != null && formattedStr != null; assert context.getLocale( ) != null; if ( ( value instanceof Number ) ) { NumberFormatter numberFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { numberFormat = style.getNumberFormatObject( ); //initial number-format for the first time if ( numberFormat == null ) { numberFormat = new NumberFormatter( context.getLocale( ) ); formatStr = style.getNumberFormat( ); if ( formatStr != null ) { numberFormat.applyPattern( formatStr ); } style.setNumberFormatObject( numberFormat ); } else { formatStr = numberFormat.getPattern( ); } } else //deal with value-of for text item { numberFormat = new NumberFormatter( context.getLocale( ) ); numberFormat.applyPattern( formatStr ); } formattedStr.append( numberFormat.format( ( (Number) value ) .doubleValue( ) ) ); } else if ( value instanceof Date ) { DateFormatter dateFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { dateFormat = style.getDateFormatObject( ); //initial date-format for the first time if ( dateFormat == null ) { dateFormat = new DateFormatter( context.getLocale( ) ); formatStr = style.getDateTimeFormat( ); if ( formatStr != null ) { dateFormat.applyPattern( formatStr ); } style.setDateFormatObject( dateFormat ); } else { formatStr = dateFormat.getPattern( ); } } else //deal with value-of for text item { dateFormat = new DateFormatter( context.getLocale( ) ); dateFormat.applyPattern( formatStr ); } formattedStr.append( dateFormat.format( (Date) value ) ); } else if ( value instanceof String ) { StringFormatter stringFormat; if ( formatStr == null || formatStr.length( ) == 0 ) { stringFormat = style.getStringFormatObject( ); //initial string-format for the first time if ( stringFormat == null ) { stringFormat = new StringFormatter( ); //use default stringFormat stringFormat.setLocale( context.getLocale( ) ); //get format pattern from style formatStr = style.getStringFormat( ); if ( formatStr != null ) { stringFormat.applyPattern( formatStr ); } style.setStringFormatObject( stringFormat ); } else { formatStr = stringFormat.getPattern( ); } } else //deal with value-of for text item { stringFormat = new StringFormatter( ); stringFormat.setLocale( context.getLocale( ) ); stringFormat.applyPattern( formatStr ); } formattedStr.append( stringFormat.format( value.toString( ) ) ); } else { formattedStr.append( value.toString( ) ); return false; } if ( formatStr == null || formatStr.length( ) == 0 ) { return false; } return true; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5e9b56cf7b8135282c03b97d8af0909f1c511509/StyledItemExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/StyledItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 740, 620, 12, 1033, 460, 16, 514, 740, 1585, 16, 1082, 202, 2885, 15478, 2154, 16, 6674, 4955, 1585, 262, 202, 95, 202, 202, 430, 261, 460, 422, 446, 262, 202, 202, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 740, 620, 12, 1033, 460, 16, 514, 740, 1585, 16, 1082, 202, 2885, 15478, 2154, 16, 6674, 4955, 1585, 262, 202, 95, 202, 202, 430, 261, 460, 422, 446, 262, 202, 202, 9...
if (streamingAudio) { audioPlayer = new JavaStreamingAudioPlayer();
if (!streamingAudio) { audioPlayer = new JavaClipAudioPlayer();
public void startup() { voice.allocate(); if (!getSilentMode()) { if (streamingAudio) { audioPlayer = new JavaStreamingAudioPlayer(); } else if (audioFile != null) { AudioFileFormat.Type type = getAudioType(audioFile); if (type != null) { if (multiAudio) { audioPlayer = new MultiFileAudioPlayer(getBasename(audioFile), type); } else audioPlayer = new SingleFileAudioPlayer(getBasename(audioFile), type); } else { try { audioPlayer = new RawFileAudioPlayer(audioFile); } catch (IOException ioe) { System.out.println("Can't open " + audioFile + " " + ioe); } } } else { try { audioPlayer = voice.getDefaultAudioPlayer(); } catch (InstantiationException e) { e.printStackTrace(); } } } if (audioPlayer == null) { audioPlayer = new NullAudioPlayer(); } voice.setAudioPlayer(audioPlayer); }
5078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5078/f0c0b212915ae31e2addd62704b174ca5b21ba7a/FreeTTS.java/clean/com/sun/speech/freetts/FreeTTS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11850, 1435, 288, 202, 25993, 18, 16247, 5621, 202, 430, 16051, 588, 55, 8125, 2309, 10756, 288, 202, 565, 309, 261, 3256, 310, 12719, 13, 288, 202, 202, 11509, 12148, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11850, 1435, 288, 202, 25993, 18, 16247, 5621, 202, 430, 16051, 588, 55, 8125, 2309, 10756, 288, 202, 565, 309, 261, 3256, 310, 12719, 13, 288, 202, 202, 11509, 12148, 273, 394...
public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(TaskListPreferenceConstants.MULTIPLE_ACTIVE_TASKS)) { TaskListView.getFromActivePerspective().togglePreviousAction( !getPreferenceStore().getBoolean(TaskListPreferenceConstants.MULTIPLE_ACTIVE_TASKS)); // TaskListView.getFromActivePerspective().toggleNextAction( // !getPreferenceStore().getBoolean(TaskListPreferenceConstants.MULTIPLE_ACTIVE_TASKS)); // TaskListView.getFromActivePerspective().clearTaskHistory(); getTaskListManager().getTaskActivationHistory().clear(); } // TODO: do we ever get here? if (event.getProperty().equals(MylarPreferenceContstants.PREF_DATA_DIR)) { if (event.getOldValue() instanceof String) { String newDirPath = getDefault().getDataDirectory(); String taskListFilePath = newDirPath + File.separator + DEFAULT_TASK_LIST_FILE; reloadFromNewFolder(taskListFilePath); // if (TaskListView.getFromActivePerspective() != null) { // TaskListView.getFromActivePerspective().clearTaskHistory(); // } } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/4a7b81ac676cbb08499b6fb585026e2cb59f35a9/TasksUiPlugin.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 1082, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 2174, 682, 9624, 2918, 18, 24683, 900, 67, 13301, 67, 15580, 55, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 1082, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 2174, 682, 9624, 2918, 18, 24683, 900, 67, 13301, 67, 15580, 55, 37...
SelectionDoubleBox sdb = new SelectionDoubleBox(GroupGroupSetter.FIELDNAME_SELECTION_DOUBLE_BOX,iwrb.getLocalizedString("groupgroupsetter.in","Not in"),iwrb.getLocalizedString("groupgroupsetter.not_in","In"));
SelectionDoubleBox sdb = new SelectionDoubleBox(GroupGroupSetter.FIELDNAME_SELECTION_DOUBLE_BOX,iwrb.getLocalizedString("groupgroupsetter.not_in","Not in"),iwrb.getLocalizedString("groupgroupsetter.in","In"));
private void LineUpElements(IWContext iwc)throws Exception{ Form form = new Form(); Table frameTable = new Table(3,3); frameTable.setWidth(490); frameTable.setHeight(320); frameTable.setStyleClass(mainStyleClass); frameTable.setVerticalAlignment(1,1,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(1,2,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(1,3,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(2,1,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(2,2,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(2,3,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(3,1,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(3,2,Table.VERTICAL_ALIGN_TOP); frameTable.setVerticalAlignment(3,3,Table.VERTICAL_ALIGN_TOP); //frameTable.setBorder(1); SelectionDoubleBox sdb = new SelectionDoubleBox(GroupGroupSetter.FIELDNAME_SELECTION_DOUBLE_BOX,iwrb.getLocalizedString("groupgroupsetter.in","Not in"),iwrb.getLocalizedString("groupgroupsetter.not_in","In")); SelectionBox left = sdb.getLeftBox(); left.setHeight(15); left.setWidth("200"); left.selectAllOnSubmit(); SelectionBox right = sdb.getRightBox(); right.setHeight(15); right.setWidth("200"); right.selectAllOnSubmit(); String stringGroupId = iwc.getParameter(GeneralGroupInfoTab.PARAMETER_GROUP_ID); String stringParentGroupId = iwc.getParameter(GeneralGroupInfoTab.PARENT_GROUP_ID); int groupId = Integer.parseInt(stringGroupId); int parentGroupId = Integer.parseInt(stringParentGroupId); form.addParameter(GeneralGroupInfoTab.PARAMETER_GROUP_ID,stringGroupId); GroupBusiness groupBusiness = getGroupBusiness(iwc); Collection allowedGroupTypes = groupBusiness.getAllAllowedGroupTypesForChildren(parentGroupId, iwc); Iterator iterator = allowedGroupTypes.iterator(); HashMap map = new HashMap(); while (iterator.hasNext()) { String value = ((GroupType) iterator.next()).getType(); map.put(value, value); } // usually the following group type should be already contained Group group = groupBusiness.getGroupByGroupID(groupId); String value = group.getGroupType(); map.put(value, value); Collection directGroups = groupBusiness.getParentGroups(groupId); Iterator iter = null; if(directGroups!=null && !directGroups.isEmpty()){ iter = directGroups.iterator(); while (iter.hasNext()) { Group item = (Group) iter.next(); right.addElement(item.getPrimaryKey().toString(),groupBusiness.getNameOfGroupWithParentName(item)); } } // former: Collection notDirectGroups = getGroupBusiness(iwc).getNonParentGroups(groupId); User user = iwc.getCurrentUser(); UserBusiness userBusiness = getUserBusiness(iwc); Collection notDirectGroups = userBusiness.getUsersTopGroupNodesByViewAndOwnerPermissions(user, iwc); if(notDirectGroups!=null && !notDirectGroups.isEmpty()){ Iterator topGroupsIterator = notDirectGroups.iterator(); List allGroups = new ArrayList(); while (topGroupsIterator.hasNext()) { Group parentGroup = (Group) topGroupsIterator.next(); allGroups.add(parentGroup); Collection coll = groupBusiness.getChildGroupsRecursive(parentGroup); if (coll != null) allGroups.addAll(coll); } if(allGroups != null){ iter = allGroups.iterator(); while (iter.hasNext()) { Group item = (Group) iter.next(); // filter if (map.containsKey(group.getGroupType())) // can not add a text left.addElement(item.getPrimaryKey().toString(), groupBusiness.getNameOfGroupWithParentName(item)); } } } //left.addSeparator(); //right.addSeparator(); Help help = getHelp(HELP_TEXT_KEY); frameTable.setAlignment(2,2,"center"); //frameTable.add("GroupId: "+groupId,2,1); System.out.println("GroupId: "+groupId); frameTable.add(sdb,2,2); SubmitButton save = new SubmitButton(iwrb.getLocalizedString("groupgroupsetter.save","save"),"save","true"); save.setAsImageButton(true); CloseButton close = new CloseButton(iwrb.getLocalizedString("groupgroupsetter.close","close")); close.setAsImageButton(true); frameTable.add(help,1,3); frameTable.add(save,2,3); frameTable.add(Text.NON_BREAKING_SPACE,2,3); frameTable.add(close,2,3); frameTable.setAlignment(2,3,"right"); form.add(frameTable); this.add(form,iwc); }
53236 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53236/cccbe5c63b78113c2c9a921d81401b3be9f883d7/GroupGroupSetter.java/buggy/src/java/com/idega/user/presentation/GroupGroupSetter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5377, 1211, 3471, 12, 45, 59, 1042, 25522, 71, 13, 15069, 1185, 95, 1377, 2748, 646, 273, 394, 2748, 5621, 1377, 3555, 2623, 1388, 273, 394, 3555, 12, 23, 16, 23, 1769, 1377,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5377, 1211, 3471, 12, 45, 59, 1042, 25522, 71, 13, 15069, 1185, 95, 1377, 2748, 646, 273, 394, 2748, 5621, 1377, 3555, 2623, 1388, 273, 394, 3555, 12, 23, 16, 23, 1769, 1377,...
public String getHandleIdentifier(Object object) { // we can only create handles for PluginObjectNodes and plugin.xml files if (object instanceof XmlNodeHelper) { return ((XmlNodeHelper) object).getHandle(); } else if (object instanceof PluginObjectNode) { PluginObjectNode node = (PluginObjectNode) object; try { // get the handle for the PluginObjectNode if (node.getModel() == null || node.getModel().getUnderlyingResource() == null || node.getModel().getUnderlyingResource().getFullPath() == null) { // MylarPlugin.log("PDE xml node's resource or model is // null: " + node.getName(), this); return null; } IPath path = new Path(node.getModel().getUnderlyingResource().getFullPath().toString()); IFile file = (IFile) ((Workspace) ResourcesPlugin.getWorkspace()).newResource(path, IResource.FILE); String handle = new XmlNodeHelper(file.getFullPath().toString(), PdeEditingMonitor .getStringOfNode(node).hashCode()).getHandle(); return handle; } catch (Exception e) { MylarStatusHandler.log(e, "pde handle failed"); } } else if (object instanceof File) { // get the handle for the file if it is plugin.xml File file = (File) object; if (file.getFullPath().toString().endsWith("plugin.xml")) return file.getFullPath().toString(); } return null; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b23efbfef800ff6f85224f036d6a11e9fab7acba/PdeStructureBridge.java/clean/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/xml/pde/PdeStructureBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 26298, 3004, 12, 921, 733, 13, 288, 202, 202, 759, 732, 848, 1338, 752, 7372, 364, 6258, 921, 3205, 471, 1909, 18, 2902, 1390, 202, 202, 430, 261, 1612, 1276, 5714, 907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 26298, 3004, 12, 921, 733, 13, 288, 202, 202, 759, 732, 848, 1338, 752, 7372, 364, 6258, 921, 3205, 471, 1909, 18, 2902, 1390, 202, 202, 430, 261, 1612, 1276, 5714, 907, ...
return getName() + ": " + myField.typeName();
final ClassRenderer classRenderer = NodeRendererSettings.getInstance().getClassRenderer(); StringBuilder buf = StringBuilderSpinAllocator.alloc(); try { buf.append(getName()); if (classRenderer.SHOW_DECLARED_TYPE) { buf.append(": "); buf.append(myField.typeName()); } return buf.toString(); } finally { StringBuilderSpinAllocator.dispose(buf); }
public String calcValueName() { return getName() + ": " + myField.typeName(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/32a454acfd3319bcbe7e1ae0578930d4301cf9aa/FieldDescriptorImpl.java/buggy/debugger/impl/com/intellij/debugger/ui/impl/watch/FieldDescriptorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 7029, 620, 461, 1435, 288, 565, 727, 1659, 6747, 667, 6747, 273, 2029, 6747, 2628, 18, 588, 1442, 7675, 588, 797, 6747, 5621, 3225, 1681, 273, 3225, 3389, 267, 21156, 18, 9853,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 7029, 620, 461, 1435, 288, 565, 727, 1659, 6747, 667, 6747, 273, 2029, 6747, 2628, 18, 588, 1442, 7675, 588, 797, 6747, 5621, 3225, 1681, 273, 3225, 3389, 267, 21156, 18, 9853,...
public String getBundleIdentifier(){ return IW_BUNDLE_IDENTIFIER;
public String getBundleIdentifier() { return IW_BUNDLE_IDENTIFIER;
public String getBundleIdentifier(){ return IW_BUNDLE_IDENTIFIER; }
11359 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11359/cb6dcd77171cd67bc19b093aca767b8c240dff8c/ConfirmDeleteWindow.java/clean/src/java/com/idega/block/cal/presentation/ConfirmDeleteWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 10946, 3004, 1435, 95, 565, 327, 467, 59, 67, 30245, 67, 16606, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 10946, 3004, 1435, 95, 565, 327, 467, 59, 67, 30245, 67, 16606, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
new ColData(TdsData.readData(in, currentToken.dynamParamInfo[i], false), tdsVersion);
new ColData(TdsData.readData(connection, in, currentToken.dynamParamInfo[i], false), tdsVersion);
private void tds5ParamsToken() throws IOException, ProtocolException { if (currentToken.dynamParamInfo == null) { throw new ProtocolException( "TDS 5 Param results token (0xD7) not preceded by param format (0xEC)."); } for (int i = 0; i < currentToken.dynamParamData.length; i++) { currentToken.dynamParamData[i] = new ColData(TdsData.readData(in, currentToken.dynamParamInfo[i], false), tdsVersion); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/f4ca02561623734f948ac817af46e63b233d7b9b/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 268, 2377, 25, 1370, 1345, 1435, 1216, 1860, 16, 4547, 503, 288, 3639, 309, 261, 2972, 1345, 18, 31129, 786, 966, 422, 446, 13, 288, 5411, 604, 394, 4547, 503, 12, 2868, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 268, 2377, 25, 1370, 1345, 1435, 1216, 1860, 16, 4547, 503, 288, 3639, 309, 261, 2972, 1345, 18, 31129, 786, 966, 422, 446, 13, 288, 5411, 604, 394, 4547, 503, 12, 2868, 315,...
private boolean internalBuildChain(X509Certificate x509certificate, Vector vector, boolean signedByAtLeastOneCA, CertDirectoryServiceClient certFinder,
private boolean internalBuildChain(X509Certificate x509certificate, Vector vector, boolean signedByAtLeastOneCA, CertDirectoryServiceClient certFinder,
private boolean internalBuildChain(X509Certificate x509certificate, Vector vector, boolean signedByAtLeastOneCA, CertDirectoryServiceClient certFinder, boolean checkValidity) { Principal principal = x509certificate.getSubjectDN(); Principal principalSigner = x509certificate.getIssuerDN(); if (log.isDebugEnabled()) { log.debug("Build chain: " + principal.getName()); } X500Name x500NameSigner = null; try { x500NameSigner = new X500Name(principalSigner.getName()); } catch(Exception e) { if (log.isWarnEnabled()) { log.warn("Unable to get X500 name - " + e); } } List listSigner = certCache.getCertificates(x500NameSigner); if(principal.equals(principalSigner)) { // Self-signed certificate vector.addElement(x509certificate); CertificateStatus cs = null; if (listSigner != null && listSigner.size() > 0) { cs = (CertificateStatus) listSigner.get(0); } if (cs != null && cs.getCertificateType() == CertificateType.CERT_TYPE_CA) { // This is a trusted certificate authority. signedByAtLeastOneCA = true; } if (log.isDebugEnabled()) { log.debug("Certificate is self issued"); } if (param.isCertAuth && cryptoClientPolicy.isRootCA()) { // If DirectoryKeyStore is used in the context of a Certificate // Authority, then a self-signed certificate is OK. // Self-signed certificate should only be valid if it is type CA String title = CertificateUtility.findAttribute(principalSigner.getName(), "t"); if (title != null && !title.equals(CERT_TITLE_CA)) return false; return true; } else { return signedByAtLeastOneCA; } } //Vector vector1 = (Vector)hashtable.get(principalSigner); if(listSigner == null) { if (log.isDebugEnabled()) { log.debug("No Signer certificate in cache"); } // One intermediate CA may not be in the local keystore. // We need to go to the LDAP server to get the key if we haven't found // a trusted CA yet. if (!signedByAtLeastOneCA) { if (log.isDebugEnabled()) { log.debug("Looking up certificate in directory service"); } String filter = parseDN(principalSigner.toString()); lookupCertInLDAP(filter, certFinder); // Now, seach again. if (checkValidity) { listSigner = certCache.getValidCertificates(x500NameSigner); } else { listSigner = certCache.getCertificates(x500NameSigner); } if (listSigner == null) { // It's OK not to have the full chain if at least one certificate in the // chain is trusted. return signedByAtLeastOneCA; } } else { // It's OK not to have the full chain if at least one certificate in the // chain is trusted. return signedByAtLeastOneCA; } } //Enumeration enumeration = vector1.elements(); Iterator it = listSigner.listIterator(); // Loop through all the issuer keys and check to see if there is at least // one trusted key. while(it.hasNext()) { CertificateStatus cs = (CertificateStatus) it.next(); // no need to check this if it is revoked if (cs.getCertificateTrust().equals(CertificateTrust.CERT_TRUST_REVOKED_CERT) && checkValidity) { continue; } X509Certificate x509certificate1 = (X509Certificate)cs.getCertificate(); java.security.PublicKey publickey = x509certificate1.getPublicKey(); try { x509certificate.verify(publickey); } catch(Exception exception) { if (log.isInfoEnabled()) { log.info("Unable to verify signature: " + exception + " - " + x509certificate1 + " - " + cs.getCertificateAlias()); } continue; } if (cs.getCertificateType() == CertificateType.CERT_TYPE_CA) { // The signing certificate is a CA. Therefore the certificate // can be trusted. signedByAtLeastOneCA = true; } if (log.isDebugEnabled()) { log.debug("Found signing key: " + x509certificate1.getSubjectDN().toString()); } // Recursively build a certificate chain. if(internalBuildChain(x509certificate1, vector, signedByAtLeastOneCA, certFinder, checkValidity)) { vector.addElement(x509certificate); return true; } } if (log.isDebugEnabled()) { log.debug("No valid signer key"); } //return false; return signedByAtLeastOneCA; }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/abf8ec84b0ce55acd9b190682064774cfa509d0d/DirectoryKeyStore.java/buggy/securityservices/src/org/cougaar/core/security/crypto/DirectoryKeyStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 2713, 3116, 3893, 12, 60, 5995, 4719, 619, 5995, 14108, 16, 5589, 3806, 16, 565, 1250, 6726, 858, 25070, 3335, 3587, 16, 11921, 2853, 1179, 1227, 3320, 8441, 16, 6862, 377, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 2713, 3116, 3893, 12, 60, 5995, 4719, 619, 5995, 14108, 16, 5589, 3806, 16, 565, 1250, 6726, 858, 25070, 3335, 3587, 16, 11921, 2853, 1179, 1227, 3320, 8441, 16, 6862, 377, 12...
project,
file,
public void run( IProgressMonitor m ) { target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_CORE_DUMP, cdiTarget, name, null, debuggerProcess, project, true, false ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f58a8c96eeca7b481e9d58f6aed095487298863c/CDebugModel.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 467, 5491, 7187, 312, 262, 1082, 202, 95, 9506, 202, 3299, 63, 20, 65, 273, 394, 385, 2829, 2326, 12, 8037, 16, 17322, 9506, 225, 26899, 2829, 2326, 559, 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, 1875, 202, 482, 918, 1086, 12, 467, 5491, 7187, 312, 262, 1082, 202, 95, 9506, 202, 3299, 63, 20, 65, 273, 394, 385, 2829, 2326, 12, 8037, 16, 17322, 9506, 225, 26899, 2829, 2326, 559, 18, ...
localFile.setText(filter.setExtension(file));
localFile.setText(filter.setExtension(file));
private void getPCFile() { String workingDir = System.getProperty("user.dir"); TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir); // set the file filters for the file chooser filter = getFilterByDescription(); pcFileChooser.addChoosableFileFilter(filter); int ret = pcFileChooser.showSaveDialog(this); // check to see if something was actually chosen if (ret == JFileChooser.APPROVE_OPTION) { File file = pcFileChooser.getSelectedFile(); filter = null; if (pcFileChooser.getFileFilter() instanceof XTFRFileFilter ) filter = (XTFRFileFilter)pcFileChooser.getFileFilter(); else filter = htmlFilter; localFile.setText(filter.setExtension(file)); } }
4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/aadd2bf647f858917240790dfcecc8f004d87fa5/XTFRFile.java/buggy/src/org/tn5250j/tools/XTFRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1689, 39, 812, 1435, 288, 1377, 514, 5960, 1621, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 1214, 8863, 1377, 399, 50, 25, 26520, 78, 812, 17324, 6125, 812, 17324, 273, 394, 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, 565, 3238, 918, 1689, 39, 812, 1435, 288, 1377, 514, 5960, 1621, 273, 2332, 18, 588, 1396, 2932, 1355, 18, 1214, 8863, 1377, 399, 50, 25, 26520, 78, 812, 17324, 6125, 812, 17324, 273, 394, 3...
String useTrustedStr = _context.router().getConfigSetting(PROP_USE_TRUSTED_LINKS);
String useTrustedStr = getContext().router().getConfigSetting(PROP_USE_TRUSTED_LINKS);
public void runJob() { // start up the network comm system _context.commSystem().startup(); _context.tunnelManager().startup(); _context.peerManager().startup(); Job bootDb = new BootNetworkDbJob(_context); boolean useTrusted = false; String useTrustedStr = _context.router().getConfigSetting(PROP_USE_TRUSTED_LINKS); if (useTrustedStr != null) { useTrusted = Boolean.TRUE.toString().equalsIgnoreCase(useTrustedStr); } if (useTrusted) { _log.debug("Using trusted links..."); _context.jobQueue().addJob(new BuildTrustedLinksJob(_context, bootDb)); return; } else { _log.debug("Not using trusted links - boot db"); _context.jobQueue().addJob(bootDb); } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/e737e5c9507ed0d463dc9e45a8f63657f466b177/BootCommSystemJob.java/clean/router/java/src/net/i2p/router/startup/BootCommSystemJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 2278, 1435, 288, 3639, 368, 787, 731, 326, 2483, 1543, 2619, 7734, 389, 2472, 18, 5702, 3163, 7675, 23939, 5621, 3639, 389, 2472, 18, 19878, 1318, 7675, 23939, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 2278, 1435, 288, 3639, 368, 787, 731, 326, 2483, 1543, 2619, 7734, 389, 2472, 18, 5702, 3163, 7675, 23939, 5621, 3639, 389, 2472, 18, 19878, 1318, 7675, 23939, 5621, 3639, ...
char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent t = getTextComponent(event); if (t != null && t.isEnabled() && t.isEditable()) t.replaceSelection(event.getActionCommand());
JTextComponent target = getTextComponent(event); if ((target != null) && (event != null)) { if ((target.isEditable()) && (target.isEnabled())) { String content = event.getActionCommand(); int mod = event.getModifiers(); if ((content != null) && (content.length() > 0) && (mod & ActionEvent.ALT_MASK) == 0 && (mod & ActionEvent.CTRL_MASK) == 0) { char c = content.charAt(0); if ((c >= 0x20) && (c != 0x7F)) { target.replaceSelection(content); } } } }
public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent t = getTextComponent(event); if (t != null && t.isEnabled() && t.isEditable()) t.replaceSelection(event.getActionCommand()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 26100, 12, 1803, 1133, 871, 13, 1377, 288, 1377, 368, 1122, 732, 1034, 326, 3751, 2641, 30, 1377, 368, 300, 3325, 3949, 1377, 368, 300, 498, 2641, 598, 326, 30939, 9606, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 26100, 12, 1803, 1133, 871, 13, 1377, 288, 1377, 368, 1122, 732, 1034, 326, 3751, 2641, 30, 1377, 368, 300, 3325, 3949, 1377, 368, 300, 498, 2641, 598, 326, 30939, 9606, 261, ...
getVirtualMachineProxy().logThreads();
virtualMachineProxy.logThreads();
private E invokeMethodAndFork(final SuspendContextImpl context) throws InvocationException, ClassNotLoadedException, IncompatibleThreadStateException, InvalidTypeException { final int invokePolicy = getInvokePolicy(context); final Exception[] exception = new Exception[1]; final Value[] result = new Value[1]; DebugProcessImpl.this.getManagerThread().startLongProcessAndFork(new Runnable() { public void run() { ThreadReferenceProxyImpl thread = context.getThread(); try { try { if (LOG.isDebugEnabled()) { getVirtualMachineProxy().logThreads(); LOG.debug("Invoke in " + thread.name()); LOG.assertTrue(thread.isSuspended(), thread.toString()); LOG.assertTrue(context.isEvaluating()); } result[0] = invokeMethod(invokePolicy); if(result[0] instanceof ObjectReference) { context.keep(((ObjectReference)result[0])); } } finally { LOG.assertTrue(thread.isSuspended(), thread.toString()); LOG.assertTrue(context.isEvaluating()); } } catch (Exception e) { exception[0] = e; } } }); if (exception[0] != null) { if (exception[0] instanceof InvocationException) { throw (InvocationException)exception[0]; } else if (exception[0] instanceof ClassNotLoadedException) { throw (ClassNotLoadedException)exception[0]; } else if (exception[0] instanceof IncompatibleThreadStateException) { throw (IncompatibleThreadStateException)exception[0]; } else if (exception[0] instanceof InvalidTypeException) { throw (InvalidTypeException)exception[0]; } else if (exception[0] instanceof RuntimeException) { throw (RuntimeException)exception[0]; } else { LOG.assertTrue(false); } } return (E)result[0]; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/153769f68e9bcb7188e6e0289d821933d4d9a7df/DebugProcessImpl.java/clean/source/com/intellij/debugger/engine/DebugProcessImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 512, 27632, 1876, 22662, 12, 6385, 348, 18815, 1042, 2828, 819, 13, 1216, 11298, 503, 16, 28524, 1659, 1248, 8835, 503, 16, 28524, 657, 10943, 3830, 5060, 16, 28524, 1962, 14144, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 512, 27632, 1876, 22662, 12, 6385, 348, 18815, 1042, 2828, 819, 13, 1216, 11298, 503, 16, 28524, 1659, 1248, 8835, 503, 16, 28524, 657, 10943, 3830, 5060, 16, 28524, 1962, 14144, 288,...
_name = type;
_type = type;
public void setType(String type) { _name = type; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/3eb19a6e20118fea47b992e0d40df8a2e6433f1a/ACSDocumentType.java/buggy/src/antidote/org/apache/tools/ant/gui/acs/ACSDocumentType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 8811, 12, 780, 618, 13, 288, 5411, 389, 723, 273, 618, 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, ...
[ 1, 1, 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, 540, 1071, 918, 8811, 12, 780, 618, 13, 288, 5411, 389, 723, 273, 618, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
shapeFileName = props.getProperty(realPrefix + shapeFileProperty); spatialIndexFileName = props.getProperty(realPrefix + spatialIndexProperty);
shapeFileName = props.getProperty(realPrefix + shapeFileProperty); spatialIndexFileName = props.getProperty(realPrefix + spatialIndexProperty);
public void setProperties(String prefix, Properties props) { super.setProperties(prefix, props); String realPrefix = PropUtils.getScopedPropertyPrefix(this); shapeFileName = props.getProperty(realPrefix + shapeFileProperty); spatialIndexFileName = props.getProperty(realPrefix + spatialIndexProperty); if (shapeFileName != null && !shapeFileName.equals("")) { if (spatialIndexFileName != null && !spatialIndexFileName.equals("")) { spatialIndex = SpatialIndex.locateAndSetShapeData(shapeFileName, spatialIndexFileName); } else { spatialIndex = SpatialIndex.locateAndSetShapeData(shapeFileName); } imageURLString = props.getProperty(realPrefix + pointImageURLProperty); try { if (imageURLString != null && !imageURLString.equals("")) { URL imageURL = LayerUtils.getResourceOrFileOrURL(this, imageURLString); ImageIcon imageIcon = new ImageIcon(imageURL); spatialIndex.setPointIcon(imageIcon); } } catch (MalformedURLException murle) { Debug.error("ShapeLayer.setProperties: point image URL not so good: \n\t" + imageURLString); } catch (NullPointerException npe) { // May happen if not connected to the internet. fireRequestMessage("Can't access icon image: \n" + imageURLString); } } else { Debug.error("One of the following properties was null or empty:"); Debug.error("\t" + realPrefix + shapeFileProperty); Debug.error("\t" + realPrefix + spatialIndexProperty); } drawingAttributes = new DrawingAttributes(prefix, props); shadowX = LayerUtils.intFromProperties(props, realPrefix + shadowXProperty, 0); shadowY = LayerUtils.intFromProperties(props, realPrefix + shadowYProperty, 0); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/edbeffa6fb72058fbd5312d50c86c88fa8d47f6b/ShapeLayer.java/buggy/src/openmap/com/bbn/openmap/layer/shape/ShapeLayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23126, 12, 780, 1633, 16, 6183, 3458, 13, 288, 202, 9565, 18, 542, 2297, 12, 3239, 16, 3458, 1769, 202, 780, 2863, 2244, 273, 10484, 1989, 18, 588, 25470, 1396, 2244, 12, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23126, 12, 780, 1633, 16, 6183, 3458, 13, 288, 202, 9565, 18, 542, 2297, 12, 3239, 16, 3458, 1769, 202, 780, 2863, 2244, 273, 10484, 1989, 18, 588, 25470, 1396, 2244, 12, 221...
cdOffset = new ZipLong(written);
cdOffset = written;
public void finish() throws IOException { closeEntry(); cdOffset = new ZipLong(written); for (int i = 0; i < entries.size(); i++) { writeCentralFileHeader((ZipEntry) entries.elementAt(i)); } cdLength = new ZipLong(written - cdOffset.getValue()); writeCentralDirectoryEnd(); offsets.clear(); entries.removeAllElements(); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/a05d1f12196d34b23d4ab80c3598f6fb63410ac5/ZipOutputStream.java/buggy/src/main/org/apache/tools/zip/ZipOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4076, 1435, 1216, 1860, 288, 3639, 1746, 1622, 5621, 3639, 7976, 2335, 273, 5941, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3222, 18, 1467, 5621, 277, 27245, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4076, 1435, 1216, 1860, 288, 3639, 1746, 1622, 5621, 3639, 7976, 2335, 273, 5941, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3222, 18, 1467, 5621, 277, 27245, 288, ...
return TextProcessor.process(sb.toString(), TextProcessor.getDefaultDelimiters() + "]");
return TextProcessor.process(sb.toString(), TextProcessor.getDefaultDelimiters() + "[]");
private String calcText(int index, EditorHistoryItem item) { StringBuffer sb = new StringBuffer(); int mnemonic = index + 1; sb.append(mnemonic); if (mnemonic <= MAX_MNEMONIC_SIZE) { sb.insert(sb.length() - (mnemonic + "").length(), '&'); //$NON-NLS-1$ } sb.append(" "); //$NON-NLS-1$ // IMPORTANT: avoid accessing the item's input since // this can require activating plugins. // Instead, ask the item for the info, which can // consult its memento if it is not restored yet. String fileName = item.getName(); String pathName = item.getToolTipText(); if (pathName.equals(fileName)) { // tool tip text isn't necessarily a path; // sometimes it's the same as name, so it shouldn't be treated as a path then pathName = ""; //$NON-NLS-1$ } IPath path = new Path(pathName); // if last segment in path is the fileName, remove it if (path.segmentCount() > 1 && path.segment(path.segmentCount() - 1).equals(fileName)) { path = path.removeLastSegments(1); pathName = path.toString(); } if ((fileName.length() + pathName.length()) <= (MAX_TEXT_LENGTH - 4)) { // entire item name fits within maximum length sb.append(fileName); if (pathName.length() > 0) { sb.append(" ["); //$NON-NLS-1$ sb.append(pathName); sb.append("]"); //$NON-NLS-1$ } } else { // need to shorten the item name int length = fileName.length(); if (length > MAX_TEXT_LENGTH) { // file name does not fit within length, truncate it sb.append(fileName.substring(0, MAX_TEXT_LENGTH - 3)); sb.append("..."); //$NON-NLS-1$ } else if (length > MAX_TEXT_LENGTH - 7) { sb.append(fileName); } else { sb.append(fileName); int segmentCount = path.segmentCount(); if (segmentCount > 0) { length += 7; // 7 chars are taken for " [...]" sb.append(" ["); //$NON-NLS-1$ // Add first n segments that fit int i = 0; while (i < segmentCount && length < MAX_TEXT_LENGTH) { String segment = path.segment(i); if (length + segment.length() < MAX_TEXT_LENGTH) { sb.append(segment); sb.append(IPath.SEPARATOR); length += segment.length() + 1; i++; } else if (i == 0) { // append at least part of the first segment sb.append(segment.substring(0, MAX_TEXT_LENGTH - length)); length = MAX_TEXT_LENGTH; break; } else { break; } } sb.append("..."); //$NON-NLS-1$ i = segmentCount - 1; // Add last n segments that fit while (i > 0 && length < MAX_TEXT_LENGTH) { String segment = path.segment(i); if (length + segment.length() < MAX_TEXT_LENGTH) { sb.append(IPath.SEPARATOR); sb.append(segment); length += segment.length() + 1; i--; } else { break; } } sb.append("]"); //$NON-NLS-1$ } } } return TextProcessor.process(sb.toString(), TextProcessor.getDefaultDelimiters() + "]");//$NON-NLS-1$ }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/123c862651acfce2aefe5c0405159c5b5b35ac9e/ReopenEditorMenu.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ReopenEditorMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7029, 1528, 12, 474, 770, 16, 18451, 5623, 1180, 761, 13, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 509, 12883, 20918, 273, 770, 397, 404, 31, 3639, 2393, 18, 6923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 7029, 1528, 12, 474, 770, 16, 18451, 5623, 1180, 761, 13, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 509, 12883, 20918, 273, 770, 397, 404, 31, 3639, 2393, 18, 6923, ...
ze.setSize(bitstreams[k].getSize());
ze.setTime(lmTime); ze.setSize(auth ? bitstreams[k].getSize() : 0);
public void disseminate(Context context, DSpaceObject dso, PackageParameters params, OutputStream pkg) throws PackageValidationException, CrosswalkException, AuthorizeException, SQLException, IOException { if (dso.getType() == Constants.ITEM) { Item item = (Item)dso; if (params != null && params.getProperty("manifestOnly") != null) { extraFiles = null; writeManifest(context, item, params, pkg); } else { extraFiles = new HashMap(); ZipOutputStream zip = new ZipOutputStream(pkg); zip.setComment("METS archive created by DSpace MetsDissemination"); // write manifest first. ZipEntry me = new ZipEntry(MANIFEST_FILE); zip.putNextEntry(me); writeManifest(context, item, params, zip); zip.closeEntry(); // copy extra (meta?) bitstreams into zip Iterator fi = extraFiles.keySet().iterator(); while (fi.hasNext()) { String fname = (String)fi.next(); ZipEntry ze = new ZipEntry(fname); zip.putNextEntry(ze); Utils.copy((InputStream)extraFiles.get(fname), zip); zip.closeEntry(); } // copy all non-meta bitstreams into zip Bundle bundles[] = item.getBundles(); for (int i = 0; i < bundles.length; i++) { if (!PackageUtils.isMetaInfoBundle(bundles[i])) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length; k++) { if (AuthorizeManager.authorizeActionBoolean(context, bitstreams[k], Constants.READ)) { ZipEntry ze = new ZipEntry( makeBitstreamName(bitstreams[k])); ze.setSize(bitstreams[k].getSize()); zip.putNextEntry(ze); Utils.copy(bitstreams[k].retrieve(), zip); zip.closeEntry(); } } } } zip.close(); extraFiles = null; } } else throw new PackageValidationException("Can only disseminate an Item now."); }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/748804adc26317566de95cc497aca1def22e5f87/AbstractMetsDissemination.java/buggy/dspace/src/org/dspace/content/packager/AbstractMetsDissemination.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1015, 307, 1154, 340, 12, 1042, 819, 16, 463, 3819, 921, 302, 2048, 16, 18701, 7508, 2402, 859, 16, 8962, 3475, 13, 3639, 1216, 7508, 18146, 16, 19742, 11348, 503, 16, 23859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1015, 307, 1154, 340, 12, 1042, 819, 16, 463, 3819, 921, 302, 2048, 16, 18701, 7508, 2402, 859, 16, 8962, 3475, 13, 3639, 1216, 7508, 18146, 16, 19742, 11348, 503, 16, 23859, ...
final AboutInfo[] infoArray = getFeaturesInfo();
final AboutInfo[] infoArray = getFeaturesWithImages();
protected Control createDialogArea(Composite parent) { setHandCursor(new Cursor(parent.getDisplay(), SWT.CURSOR_HAND)); setBusyCursor(new Cursor(parent.getDisplay(), SWT.CURSOR_WAIT)); getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (getHandCursor() != null) getHandCursor().dispose(); if (getBusyCursor() != null) getBusyCursor().dispose(); } }); ImageDescriptor imageDescriptor = null; if (primaryInfo != null) { imageDescriptor = primaryInfo.getAboutImage(); // may be null } if (imageDescriptor != null) { image = imageDescriptor.createImage(); } if (image == null || image.getBounds().width <= MAX_IMAGE_WIDTH_FOR_TEXT) { // show text String aboutText = null; if (primaryInfo != null) { aboutText = primaryInfo.getAboutText(); // may be null } if (aboutText != null) { // get an about item setItem(scan(aboutText)); } } // page group Composite outer = (Composite) super.createDialogArea(parent); outer.setSize(outer.computeSize(SWT.DEFAULT, SWT.DEFAULT)); GridLayout layout = new GridLayout(); outer.setLayout(layout); outer.setLayoutData(new GridData(GridData.FILL_BOTH)); // the image & text Composite topContainer = new Composite(outer, SWT.NONE); layout = new GridLayout(); layout.numColumns = (image == null || getItem() == null ? 1 : 2); layout.marginWidth = 0; topContainer.setLayout(layout); GridData data = new GridData(); data.horizontalAlignment = GridData.FILL; data.grabExcessHorizontalSpace = true; topContainer.setLayoutData(data); //image on left side of dialog if (image != null) { Label imageLabel = new Label(topContainer, SWT.NONE); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = false; imageLabel.setLayoutData(data); imageLabel.setImage(image); } if (getItem() != null) { // text on the right text = new StyledText(topContainer, SWT.MULTI | SWT.READ_ONLY); text.setCaret(null); text.setFont(parent.getFont()); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = true; text.setText(getItem().getText()); text.setLayoutData(data); text.setCursor(null); text.setBackground(topContainer.getBackground()); setLinkRanges(text, getItem().getLinkRanges()); addListeners(text); } // horizontal bar Label bar = new Label(outer, SWT.HORIZONTAL | SWT.SEPARATOR); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); // feature images Composite featureContainer = new Composite(outer, SWT.NONE); RowLayout rowLayout = new RowLayout(); rowLayout.wrap = true; featureContainer.setLayout(rowLayout); data = new GridData(); data.horizontalAlignment = GridData.FILL; featureContainer.setLayoutData(data); final AboutInfo[] infoArray = getFeaturesInfo(); for (int i = 0; i < infoArray.length; i++) { ImageDescriptor desc = infoArray[i].getFeatureImage(); Image image = null; if (desc != null) { Button button = new Button(featureContainer, SWT.FLAT | SWT.PUSH); button.setData(infoArray[i]); image = desc.createImage(); images.add(image); button.setImage(image); String name = infoArray[i].getProviderName(); if (name == null) name = ""; //$NON-NLS-1$ button.setToolTipText(name); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { AboutFeaturesDialog d = new AboutFeaturesDialog(getShell(), primaryInfo, featureInfos); d.setInitialSelection((AboutInfo) event.widget.getData()); d.open(); } }); } } // spacer bar = new Label(outer, SWT.NONE); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); return outer; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5c11908886291f25042ef1f3737171d1d18c38c5/AboutDialog.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 542, 1144, 6688, 12, 2704, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 10019, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 202, 542, 1144, 6688, 12, 2704, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 10019, 202,...
msg.setDest( null );
msg.setDest(null);
private synchronized void handleRequestMessage( Message msg ) { if ( next_seq_id_to_assign < 0 ) { // we cannot assign a valid sequence id log.error( "Error: TOTAL_OLD.handleRequestMessage() - cannot handle request... do not know what sequence id to assign" ); return; } // make the message a broadcast message to the group msg.setDest( null ); // set the source of the message to be me msg.setSrc( local_addr ); // add the sequence id to the message msg.putHeader(getName(), new TotalHeader( TotalHeader.TOTAL_BCAST, next_seq_id_to_assign ) ); // store a copy of this message is the history Message msg_copy = msg.copy(); ack_history.addMessage( msg_copy, next_seq_id_to_assign ); // begin debug { Object header = msg_copy.getHeader(getName()); if ( !(header instanceof TotalHeader) ) { log.error( "Error: TOTAL_OLD.handleRequestMessage() - BAD: stored message that did not contain a TotalHeader - " + next_seq_id_to_assign ); } } // // end debug // increment the next sequence id to use next_seq_id_to_assign++; // pass this new Message (wrapped in an Event) down the Protocol Stack passDown( new Event( Event.MSG, msg ) ); }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 15713, 1079, 12, 2350, 1234, 262, 288, 202, 430, 261, 1024, 67, 5436, 67, 350, 67, 869, 67, 6145, 411, 374, 262, 288, 202, 565, 368, 732, 2780, 2683, 279, 923, 3102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 15713, 1079, 12, 2350, 1234, 262, 288, 202, 430, 261, 1024, 67, 5436, 67, 350, 67, 869, 67, 6145, 411, 374, 262, 288, 202, 565, 368, 732, 2780, 2683, 279, 923, 3102, ...
if (eah != null) eah.displayEditorList();
if (eah != null) { eah.displayEditorList(); }
public void run() { if (workbenchWindow == null) { // action has been disposed return; } IWorkbenchPage page = workbenchWindow.getActivePage(); if (page != null) { WorkbenchPage wbp = (WorkbenchPage) page; EditorAreaHelper eah = wbp.getEditorPresentation(); if (eah != null) eah.displayEditorList(); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbookEditorsAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbookEditorsAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 309, 261, 1252, 22144, 3829, 422, 446, 13, 288, 5411, 368, 1301, 711, 2118, 1015, 7423, 5411, 327, 31, 3639, 289, 3639, 467, 2421, 22144, 1964, 1363, 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, 1086, 1435, 288, 3639, 309, 261, 1252, 22144, 3829, 422, 446, 13, 288, 5411, 368, 1301, 711, 2118, 1015, 7423, 5411, 327, 31, 3639, 289, 3639, 467, 2421, 22144, 1964, 1363, 273...
public CSourceViewerConfiguration(CTextTools tools, CEditor editor) { super(CUIPlugin.getDefault().getCombinedPreferenceStore()); fTextTools= tools; fEditor= editor;
public CSourceViewerConfiguration(IColorManager colorManager, IPreferenceStore preferenceStore, ITextEditor editor, String partitioning) { super(preferenceStore); fColorManager= colorManager; fTextEditor= editor; fDocumentPartitioning= partitioning; initializeScanners();
public CSourceViewerConfiguration(CTextTools tools, CEditor editor) { super(CUIPlugin.getDefault().getCombinedPreferenceStore()); fTextTools= tools; fEditor= editor; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0482b3954404fd528d629e737114a70d018a10db/CSourceViewerConfiguration.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CSourceViewerConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 1830, 18415, 1750, 12, 1268, 408, 10348, 8513, 16, 385, 6946, 4858, 13, 288, 202, 202, 9565, 12, 39, 5370, 3773, 18, 588, 1868, 7675, 588, 27994, 9624, 2257, 10663, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 1830, 18415, 1750, 12, 1268, 408, 10348, 8513, 16, 385, 6946, 4858, 13, 288, 202, 202, 9565, 12, 39, 5370, 3773, 18, 588, 1868, 7675, 588, 27994, 9624, 2257, 10663, 202, ...
int nWeight = (int)getWeight(); if (nWeight <= WEIGHT_LIGHT) { return WEIGHT_LIGHT; } else if (nWeight <= WEIGHT_MEDIUM) { return WEIGHT_MEDIUM; } else if (nWeight <= WEIGHT_HEAVY) { return WEIGHT_HEAVY; } else { return WEIGHT_ASSAULT; }
return EntityWeightClass.getWeightClass((int)getWeight());
public int getWeightClass() { int nWeight = (int)getWeight(); if (nWeight <= WEIGHT_LIGHT) { return WEIGHT_LIGHT; } else if (nWeight <= WEIGHT_MEDIUM) { return WEIGHT_MEDIUM; } else if (nWeight <= WEIGHT_HEAVY) { return WEIGHT_HEAVY; } else { return WEIGHT_ASSAULT; } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/067e0cc45c0757e4164da5a8a2e295c624f8339b/Entity.java/buggy/megamek/src/megamek/common/Entity.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 30535, 797, 1435, 288, 3639, 509, 290, 6544, 273, 261, 474, 13, 588, 6544, 5621, 540, 309, 261, 82, 6544, 1648, 13880, 7700, 67, 23516, 13, 288, 5411, 327, 13880, 7700, 67, 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, 509, 30535, 797, 1435, 288, 3639, 509, 290, 6544, 273, 261, 474, 13, 588, 6544, 5621, 540, 309, 261, 82, 6544, 1648, 13880, 7700, 67, 23516, 13, 288, 5411, 327, 13880, 7700, 67, 2...
"Mismatched lengths!", expectedCommand.length, actualCommand.length);
"Mismatched lengths!", expectedCommand.length, actualCommand.length);
public void testHistoryCommandNullLocal() throws CruiseControlException { Date lastBuildTime = new Date(); CVS element = new CVS(); element.setCvsRoot("cvsroot"); element.setLocalWorkingCopy(null); String[] expectedCommand = new String[] { "cvs", "-d", "cvsroot", "-q", "log", "-d>" + CVS.formatCVSDate(lastBuildTime), "-b" }; String[] actualCommand = element.buildHistoryCommand(lastBuildTime).getCommandline(); assertEquals( "Mismatched lengths!", expectedCommand.length, actualCommand.length); for (int i = 0; i < expectedCommand.length; i++) { assertEquals(expectedCommand[i], actualCommand[i]); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/cc8d12515d217c4869991501dda487dca6f6add8/CVSTest.java/clean/main/test/net/sourceforge/cruisecontrol/sourcecontrols/CVSTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5623, 2189, 2041, 2042, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 2167, 1142, 3116, 950, 273, 394, 2167, 5621, 3639, 385, 14640, 930, 273, 394, 385, 14640, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5623, 2189, 2041, 2042, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 2167, 1142, 3116, 950, 273, 394, 2167, 5621, 3639, 385, 14640, 930, 273, 394, 385, 14640, 5621, ...
DateTime dt1 = new DateTime(2005, 7, 17, 1, 1, 1, 1);
DateTime dt1 = null;
public void testConstructor_RI_RI4() throws Throwable { DateTime dt1 = new DateTime(2005, 7, 17, 1, 1, 1, 1); DateTime dt2 = null; // 2002-06-09T01:00+01:00 MillisDuration test = new MillisDuration(dt1, dt2); assertEquals(PeriodType.getPreciseAllType(), test.getPeriodType()); assertEquals(-3, test.getYears()); assertEquals(-1, test.getMonths()); assertEquals(-1, test.getWeeks()); assertEquals(-2, test.getDays()); // one more due to 2004 leap year and fixed 365 day years assertEquals(0, test.getHours()); assertEquals(-1, test.getMinutes()); assertEquals(-1, test.getSeconds()); assertEquals(-1, test.getMillis()); assertEquals(true, test.isPrecise()); assertEquals(TEST_TIME_NOW - dt1.getMillis(), test.getTotalMillis()); }
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/3f62b3a3ef59f954a14f09aeee97053618da1c74/TestDuration_Constructors.java/clean/JodaTime/src/test/org/joda/time/TestDuration_Constructors.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6293, 67, 2259, 67, 2259, 24, 1435, 1216, 4206, 288, 3639, 3716, 3681, 21, 273, 446, 31, 3639, 3716, 3681, 22, 273, 446, 31, 225, 368, 4044, 22, 17, 7677, 17, 5908, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6293, 67, 2259, 67, 2259, 24, 1435, 1216, 4206, 288, 3639, 3716, 3681, 21, 273, 446, 31, 3639, 3716, 3681, 22, 273, 446, 31, 225, 368, 4044, 22, 17, 7677, 17, 5908, 5...
if(ASS)ER.T(null!=_controlTyrant,"emperor init order problem", this);
if(AS.S)ER.T(null!=_controlTyrant,"emperor init order problem", this);
public BreakpointTyrant(Emperor emperor) { super(); _emperor = emperor; _controlTyrant = emperor.getControlTyrant(); if(ASS)ER.T(null!=_controlTyrant,"emperor init order problem", this); PrivilegeManager.enablePrivilege("Debugger"); _dc = _emperor.getDebugController(); // set script hook _scriptHook = new BPTyrantScriptHook(this); _scriptHook.setNextHook(_dc.setScriptHook(_scriptHook)); _breakpoints = new Hashtable(); _scripts = new Vector(); _controlTyrant.addObserver(this); if(ASS) { _uiThreadForAssertCheck = Thread.currentThread(); } _enabled = true; // process the scripts currently known by the controller _dc.iterateScripts(_scriptHook); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/2de73cf99dce60cce549e7757f841284b68d1220/BreakpointTyrant.java/buggy/js/jsdj/classes/com/netscape/jsdebugging/ifcui/BreakpointTyrant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17030, 1153, 56, 93, 6890, 12, 1514, 457, 280, 801, 457, 280, 13, 565, 288, 3639, 2240, 5621, 3639, 389, 351, 457, 280, 273, 801, 457, 280, 31, 3639, 389, 7098, 56, 93, 6890, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17030, 1153, 56, 93, 6890, 12, 1514, 457, 280, 801, 457, 280, 13, 565, 288, 3639, 2240, 5621, 3639, 389, 351, 457, 280, 273, 801, 457, 280, 31, 3639, 389, 7098, 56, 93, 6890, 22...
public InputStream getInputStream(Project project) throws BuildException, IOException, XmlException { String newLoc = location; if (newLoc.startsWith("jar:")) { JarFile jarFile; newLoc = newLoc.substring("jar:".length()); if (newLoc.startsWith("jar:")) { String name = newLoc.substring("jar:".length(), newLoc.indexOf("!/")); jarFile = new JarFile(project.resolveFile(name)); name = newLoc.substring(newLoc.indexOf("!/") + 2); jarFile = new NestedJarFile(jarFile, name); } else { jarFile = new JarFile(project.resolveFile(newLoc)); } ZipEntry ejbJarEntry = jarFile.getEntry(OPENEJB_JAR); if (null == ejbJarEntry) { throw new BuildException(OPENEJB_JAR + " not found"); } return jarFile.getInputStream(ejbJarEntry); } else if (newLoc.startsWith("nested:")) { JarFile jarFile = null; newLoc = newLoc.substring("nested:".length()); InputStream in = null; if (newLoc.startsWith("jar:")) { String name = newLoc.substring("jar:".length(), newLoc.indexOf("!/")); jarFile = new JarFile(project.resolveFile(name)); ZipEntry entry = jarFile.getEntry(GERONIMO_APP); if (null == entry) { throw new BuildException(GERONIMO_APP + " not found"); } in = jarFile.getInputStream(entry); } else { String name = newLoc.substring(0, newLoc.indexOf("!/")); in = new FileInputStream(project.resolveFile(name)); } XmlObject xmlObject = SchemaConversionUtils.parse(in); int index = Integer.parseInt(newLoc.substring(newLoc.indexOf("!/") + 2)); int found = 0; XmlCursor cursor = xmlObject.newCursor(); try { while (cursor.hasNextToken()) { if (cursor.isStart()) { String localName = cursor.getName().getLocalPart(); if (localName.equals("openejb-jar")) { if (found == index) { if (false == cursor.toParent()) { throw new AssertionError("No parent found."); } return cursor.getObject().newInputStream(); } found++; } } cursor.toNextToken(); } } finally { cursor.dispose(); } throw new BuildException("Only " + found + " openejb-jar DD are nested."); } return new FileInputStream(project.resolveFile(newLoc)); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/5272947f39db9303eaf4475305e50776bf8e540d/OpenejbJarLocation.java/buggy/openejb2/modules/openejb-builder/src/java/org/openejb/deployment/ant/OpenejbJarLocation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5037, 14424, 12, 4109, 1984, 13, 1216, 18463, 16, 1860, 16, 5714, 503, 288, 3639, 514, 394, 1333, 273, 2117, 31, 3639, 309, 261, 2704, 1333, 18, 17514, 1190, 2932, 11930, 2773, 3719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5037, 14424, 12, 4109, 1984, 13, 1216, 18463, 16, 1860, 16, 5714, 503, 288, 3639, 514, 394, 1333, 273, 2117, 31, 3639, 309, 261, 2704, 1333, 18, 17514, 1190, 2932, 11930, 2773, 3719...
else if (type == Long.TYPE) {
else if (valtype == Long.TYPE) {
public void set(Object obj, Object value) throws IllegalArgumentException, IllegalAccessException { if (type == Boolean.TYPE) { setBoolean0(obj, ((Boolean)value).booleanValue()); } else if (type == Byte.TYPE) { setByte0(obj, ((Byte)value).byteValue()); } else if (type == Short.TYPE) { setShort0(obj, ((Short)value).shortValue()); } else if (type == Character.TYPE) { setChar0(obj, ((Character)value).charValue()); } else if (type == Integer.TYPE) { setInt0(obj, ((Integer)value).intValue()); } else if (type == Long.TYPE) { setLong0(obj, ((Long)value).longValue()); } else if (type == Float.TYPE) { setFloat0(obj, ((Float)value).floatValue()); } else if (type == Double.TYPE) { setDouble0(obj, ((Double)value).doubleValue()); } else { setObject0(obj, value); }}
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/7b84a6330dc1427a0f11753f53c35dd58b462168/Field.java/clean/libraries/javalib/java/lang/reflect/Field.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 12, 921, 1081, 16, 1033, 460, 13, 1216, 2754, 16, 11900, 288, 202, 430, 261, 723, 422, 3411, 18, 2399, 13, 288, 202, 202, 542, 5507, 20, 12, 2603, 16, 14015, 5507, 13, 1132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 12, 921, 1081, 16, 1033, 460, 13, 1216, 2754, 16, 11900, 288, 202, 430, 261, 723, 422, 3411, 18, 2399, 13, 288, 202, 202, 542, 5507, 20, 12, 2603, 16, 14015, 5507, 13, 1132...
final Attributes mainAttrs = manifest.getMainAttributes(); result = mainAttrs.getValue("Class-Path");
if (manifest != null) { final Attributes mainAttrs = manifest.getMainAttributes(); result = mainAttrs.getValue("Class-Path"); }
private static String getClassPath(final File jarFile) { String result = null; if (jarFile.isFile()) { try { final JarFile jar = new JarFile(jarFile); final Manifest manifest = jar.getManifest(); final Attributes mainAttrs = manifest.getMainAttributes(); result = mainAttrs.getValue("Class-Path"); } catch (IOException ioExc) { System.err.println("Unable to access Jar file: " + jarFile + ", exc = " + ioExc); } } else { System.err.println("Missing Jar file: " + jarFile); } return result; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/56e0c512ba7875bc9165142ff5affd317fb8a06b/Project.java/clean/findbugs/src/java/edu/umd/cs/findbugs/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 2900, 743, 12, 6385, 1387, 22588, 13, 288, 202, 202, 780, 563, 273, 446, 31, 202, 202, 430, 261, 11930, 812, 18, 291, 812, 10756, 288, 1082, 202, 698, 288, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 2900, 743, 12, 6385, 1387, 22588, 13, 288, 202, 202, 780, 563, 273, 446, 31, 202, 202, 430, 261, 11930, 812, 18, 291, 812, 10756, 288, 1082, 202, 698, 288, 9506, ...
mojo.setArtifactItems(list);
mojo.setArtifactItems( list );
public void testMissingVersionFromDependencyMgt() throws MojoExecutionException { ArtifactItem item = new ArtifactItem(); item.setArtifactId( "artifactId" ); item.setClassifier( "" ); item.setGroupId( "groupId" ); item.setType( "type" ); MavenProject project = mojo.getProject(); project.setDependencies( getDependencyList( item ) ); item = new ArtifactItem(); item.setArtifactId( "artifactId-2" ); item.setClassifier( "" ); item.setGroupId( "groupId" ); item.setType( "type" ); ArrayList list = new ArrayList(); list.add( item ); mojo.setArtifactItems(list); project.getDependencyManagement().setDependencies( getDependencyMgtList( item ) ); mojo.execute(); this.assertFileExists( item, true ); assertEquals( "3.0-SNAPSHOT", item.getVersion() ); }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/1f209e4fef3efb2350634ef8c679a5acd5c29ec3/TestCopyMojo.java/clean/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestCopyMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4841, 1444, 1265, 7787, 49, 4521, 1435, 3639, 1216, 18780, 565, 288, 3639, 14022, 1180, 761, 273, 394, 14022, 1180, 5621, 3639, 761, 18, 542, 7581, 548, 12, 315, 17706, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4841, 1444, 1265, 7787, 49, 4521, 1435, 3639, 1216, 18780, 565, 288, 3639, 14022, 1180, 761, 273, 394, 14022, 1180, 5621, 3639, 761, 18, 542, 7581, 548, 12, 315, 17706, 5...
addTest(new TreeTest("testAddHundred", BasicPerformanceTest.GLOBAL)); addTest(new TreeTest("testAddThousandPreSort", BasicPerformanceTest.LOCAL));
addTest(new TreeTest("testAddHundred", BasicPerformanceTest.LOCAL)); addTest(new TreeTest("testAddThousandPreSort", BasicPerformanceTest.GLOBAL));
public JFacePerformanceSuite() { super(); addTest(new ListViewerRefreshTest("testRefresh")); addTest(new ComboViewerRefreshTest("testRefresh",BasicPerformanceTest.LOCAL)); addTest(new TableViewerRefreshTest("testRefresh")); addTest(new TableViewerRefreshTest("testUpdate")); addTest(new TreeTest("testAddTen")); addTest(new TreeTest("testAddFifty")); addTest(new TreeTest("testAddThousand")); addTest(new TreeTest("testAddHundred", BasicPerformanceTest.GLOBAL)); addTest(new TreeTest("testAddThousandPreSort", BasicPerformanceTest.LOCAL)); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9e747ced58e16f96a84930b6104b53f056089cf0/JFacePerformanceSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/performance/JFacePerformanceSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 11824, 25024, 13587, 1435, 288, 202, 202, 9565, 5621, 202, 202, 1289, 4709, 12, 2704, 987, 18415, 8323, 4709, 2932, 3813, 8323, 7923, 1769, 202, 202, 1289, 4709, 12, 2704, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 804, 11824, 25024, 13587, 1435, 288, 202, 202, 9565, 5621, 202, 202, 1289, 4709, 12, 2704, 987, 18415, 8323, 4709, 2932, 3813, 8323, 7923, 1769, 202, 202, 1289, 4709, 12, 2704, ...
return runtime.getFalse();
return getRuntime().getFalse();
public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyHash)) { return runtime.getFalse(); } else if (length() != ((RubyHash)other).length()) { return runtime.getFalse(); } for (Iterator iter = modifiableEntryIterator(); iter.hasNext();) { checkRehashing(); Map.Entry entry = (Map.Entry) iter.next(); Object value = ((RubyHash)other).valueMap.get(entry.getKey()); if (value == null || !entry.getValue().equals(value)) { return runtime.getFalse(); } } return runtime.getTrue(); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyHash.java/buggy/src/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 3959, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 261, 2211, 422, 1308, 13, 288, 5411, 327, 3099, 18, 588, 5510, 5621, 3639, 289, 469, 309, 16051, 12, 3011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 3959, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 261, 2211, 422, 1308, 13, 288, 5411, 327, 3099, 18, 588, 5510, 5621, 3639, 289, 469, 309, 16051, 12, 3011, ...
setNull(parameterIndex, Types.OTHER);
setNull(parameterIndex, Types.VARBINARY);
public void setBytes(int parameterIndex, byte x[]) throws SQLException { if (connection.haveMinimumCompatibleVersion("7.2")) { //Version 7.2 supports the bytea datatype for byte arrays if (null == x) { setNull(parameterIndex, Types.OTHER); } else { setString(parameterIndex, PGbytea.toPGString(x), PG_TEXT); } } else { //Version 7.1 and earlier support done as LargeObjects LargeObjectManager lom = connection.getLargeObjectAPI(); int oid = lom.create(); LargeObject lob = lom.open(oid); lob.write(x); lob.close(); setInt(parameterIndex, oid); } }
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/cfae07331ccad4f28ea00dc7e8f1ba01ec979ec5/AbstractJdbc1Statement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 2160, 12, 474, 25412, 16, 1160, 619, 63, 5717, 1216, 6483, 202, 95, 202, 202, 430, 261, 4071, 18, 21516, 13042, 14599, 1444, 2932, 27, 18, 22, 6, 3719, 202, 202, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 2160, 12, 474, 25412, 16, 1160, 619, 63, 5717, 1216, 6483, 202, 95, 202, 202, 430, 261, 4071, 18, 21516, 13042, 14599, 1444, 2932, 27, 18, 22, 6, 3719, 202, 202, 9...
public org.quickfix.field.AccruedInterestAmt getAccruedInterestAmt() throws FieldNotFound { org.quickfix.field.AccruedInterestAmt value = new org.quickfix.field.AccruedInterestAmt();
public quickfix.field.AccruedInterestAmt getAccruedInterestAmt() throws FieldNotFound { quickfix.field.AccruedInterestAmt value = new quickfix.field.AccruedInterestAmt();
public org.quickfix.field.AccruedInterestAmt getAccruedInterestAmt() throws FieldNotFound { org.quickfix.field.AccruedInterestAmt value = new org.quickfix.field.AccruedInterestAmt(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8973, 86, 5957, 29281, 31787, 4506, 952, 86, 5957, 29281, 31787, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8973, 86, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8973, 86, 5957, 29281, 31787, 4506, 952, 86, 5957, 29281, 31787, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8973, 86, ...
public org.quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { org.quickfix.field.ContractMultiplier value = new org.quickfix.field.ContractMultiplier();
public quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { quickfix.field.ContractMultiplier value = new quickfix.field.ContractMultiplier();
public org.quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { org.quickfix.field.ContractMultiplier value = new org.quickfix.field.ContractMultiplier(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositions.java/buggy/src/java/src/quickfix/fix44/RequestForPositions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 23365, 336, 8924, 23365, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 23365, 460, 273, 394, 2358, 18, 19525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 23365, 336, 8924, 23365, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8924, 23365, 460, 273, 394, 2358, 18, 19525,...
if (u==0) { if (v>=0) return 90; else return -90; } else if (u>0) { return Math.atan(v/u)*180/Math.PI; } else if (v>=0) { return 180 + Math.atan(v/u)*180/Math.PI; } else { return Math.atan(v/u)*180/Math.PI-180;
if (u==0) { if (v>=0) return 90; else return -90; } if (u>0) return Math.atan(v/u)*180/Math.PI; if (v>=0) return 180 + Math.atan(v/u)*180/Math.PI; return Math.atan(v/u)*180/Math.PI-180;
private double atan2(double v, double u) { if (u==0) { if (v>=0) return 90; else return -90; } else if (u>0) { return Math.atan(v/u)*180/Math.PI; } else if (v>=0) { return 180 + Math.atan(v/u)*180/Math.PI; } else { return Math.atan(v/u)*180/Math.PI-180; } }
7659 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7659/23e8c9696fabf00623b3f7cb5a915d458eabb308/Leaf.java/clean/arbaro/tree/Leaf.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 19646, 22, 12, 9056, 331, 16, 1645, 582, 13, 225, 288, 202, 430, 261, 89, 631, 20, 13, 288, 202, 565, 309, 261, 90, 34, 33, 20, 13, 327, 8566, 31, 202, 565, 469, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 19646, 22, 12, 9056, 331, 16, 1645, 582, 13, 225, 288, 202, 430, 261, 89, 631, 20, 13, 288, 202, 565, 309, 261, 90, 34, 33, 20, 13, 327, 8566, 31, 202, 565, 469, 327, ...
setProperty((String) evalAttr("property", getProperty(),
setProperty((String) evalAttr("property", getPropertyExpr(),
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELMultiboxTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELMultiboxTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, ...
data.widthHint = convertWidthInCharsToPixels(ABOUT_TEXT_WIDTH); data.heightHint = convertHeightInCharsToPixels(ABOUT_TEXT_HEIGHT);
protected Control createDialogArea(Composite parent) { setHandCursor(new Cursor(parent.getDisplay(), SWT.CURSOR_HAND)); setBusyCursor(new Cursor(parent.getDisplay(), SWT.CURSOR_WAIT)); getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (getHandCursor() != null) getHandCursor().dispose(); if (getBusyCursor() != null) getBusyCursor().dispose(); } }); ImageDescriptor imageDescriptor = aboutInfo.getAboutImage(); // may be null if (imageDescriptor != null) image = imageDescriptor.createImage(); if (image == null || image.getBounds().width <= MAX_IMAGE_WIDTH_FOR_TEXT) { // show text String aboutText = aboutInfo.getAboutText(); if (aboutText != null) { // get an about item setItem(scan(aboutText)); } } // page group Composite outer = (Composite)super.createDialogArea(parent); outer.setSize(outer.computeSize(SWT.DEFAULT, SWT.DEFAULT)); GridLayout layout = new GridLayout(); outer.setLayout(layout); outer.setLayoutData(new GridData(GridData.FILL_BOTH)); // the image & text Composite topContainer = new Composite(outer, SWT.NONE); layout = new GridLayout(); layout.numColumns = (image == null || getItem() == null ? 1 : 2); layout.marginWidth = 0; topContainer.setLayout(layout); GridData data = new GridData(); data.horizontalAlignment = GridData.FILL; data.grabExcessHorizontalSpace = true; topContainer.setLayoutData(data); //image on left side of dialog if (image != null) { Label imageLabel = new Label(topContainer, SWT.NONE); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = false; imageLabel.setLayoutData(data); imageLabel.setImage(image); } if (getItem() != null) { // text on the right text = new StyledText(topContainer, SWT.MULTI | SWT.READ_ONLY); text.setCaret(null); text.setFont(parent.getFont()); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = true; data.widthHint = convertWidthInCharsToPixels(ABOUT_TEXT_WIDTH); data.heightHint = convertHeightInCharsToPixels(ABOUT_TEXT_HEIGHT); text.setText(getItem().getText()); text.setLayoutData(data); text.setCursor(null); text.setBackground(topContainer.getBackground()); setLinkRanges(text, getItem().getLinkRanges()); addListeners(text); } // horizontal bar Label bar = new Label(outer, SWT.HORIZONTAL | SWT.SEPARATOR); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); // feature images Composite featureContainer = new Composite(outer, SWT.NONE); RowLayout rowLayout = new RowLayout(); rowLayout.wrap = true; featureContainer.setLayout(rowLayout); data = new GridData(); data.horizontalAlignment = GridData.FILL; featureContainer.setLayoutData(data); Workbench workbench = (Workbench)PlatformUI.getWorkbench(); final AboutInfo[] infoArray = getFeaturesInfo(); for (int i = 0; i < infoArray.length; i++) { ImageDescriptor desc = infoArray[i].getFeatureImage(); Image image = null; if (desc != null) { Button button = new Button(featureContainer, SWT.FLAT | SWT.PUSH); button.setData(infoArray[i]); image = desc.createImage(); images.add(image); button.setImage(image); String name = infoArray[i].getProviderName(); if (name == null) name = ""; button.setToolTipText(name); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { AboutFeaturesDialog d = new AboutFeaturesDialog(getShell()); d.setInitialSelection((AboutInfo)event.widget.getData()); d.open(); } }); } } // spacer bar = new Label(outer, SWT.NONE); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); return outer;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7a4cd13b7c8a4f25f12bce9d5af219c2c3ed1660/AboutDialog.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 542, 1144, 6688, 12, 2704, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 10019, 202, 542, 29289, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 202, 542, 1144, 6688, 12, 2704, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 12346, 10019, 202, 542, 29289, 66...
return (getUuid() + getName() + getIndex()).compareTo(right.getUuid() + right.getName() + right.getIndex());
return (getChildrenIndex() + getUuid() + getName() + getSameNameIndex()).compareTo(right.getChildrenIndex() + right.getUuid() + right.getName() + right.getSameNameIndex());
public int compareTo(Object obj) { if (equals(obj)) { return 0; } ORMChildNodeEntry right = (ORMChildNodeEntry) obj; return (getUuid() + getName() + getIndex()).compareTo(right.getUuid() + right.getName() + right.getIndex()); }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/ce0917f3bbf7b653a22e99486aa09e43ae268056/ORMChildNodeEntry.java/buggy/contrib/orm-persistence/src/java/org/apache/jackrabbit/core/state/orm/ORMChildNodeEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9292, 12, 921, 1081, 13, 288, 3639, 309, 261, 14963, 12, 2603, 3719, 288, 5411, 327, 374, 31, 3639, 289, 3639, 17441, 25550, 1622, 2145, 273, 261, 3466, 25550, 1622, 13, 1081, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9292, 12, 921, 1081, 13, 288, 3639, 309, 261, 14963, 12, 2603, 3719, 288, 5411, 327, 374, 31, 3639, 289, 3639, 17441, 25550, 1622, 2145, 273, 261, 3466, 25550, 1622, 13, 1081, ...
eltQName.uri,
eltQName.uri,
int traverseChoice (Element choiceDecl) throws Exception { // REVISIT: traverseChoice, traverseSequence can be combined Element child = checkContent(choiceDecl, XUtil.getFirstChildElement(choiceDecl), true); int contentSpecType = 0; int csnType = 0; csnType = XMLContentSpec.CONTENTSPECNODE_CHOICE; contentSpecType = XMLElementDecl.TYPE_CHILDREN; int left = -2; int right = -2; boolean hadContent = false; for (; child != null; child = XUtil.getNextSiblingElement(child)) { int index = -2; hadContent = true; boolean seeParticle = false; String childName = child.getLocalName(); if (childName.equals(SchemaSymbols.ELT_ELEMENT)) { QName eltQName = traverseElementDecl(child); index = fSchemaGrammar.addContentSpecNode( XMLContentSpec.CONTENTSPECNODE_LEAF, eltQName.localpart, eltQName.uri, false); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_GROUP)) { index = traverseGroupDecl(child); if (index == -1) continue; seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { index = traverseChoice(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { index = traverseSequence(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_ANY)) { index = traverseAny(child); seeParticle = true; } else { reportSchemaError(SchemaMessageProvider.GroupContentRestricted, new Object [] { "group", childName }); } if (seeParticle) { index = expandContentModel( index, child); } if (left == -2) { left = index; } else if (right == -2) { right = index; } else { left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); right = index; } } if (hadContent && right != -2) left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); return left; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 10080, 10538, 261, 1046, 6023, 3456, 13, 1216, 1185, 288, 10792, 368, 2438, 26780, 1285, 30, 10080, 10538, 16, 10080, 4021, 848, 506, 8224, 3639, 3010, 1151, 273, 866, 1350, 12, 11569,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 10080, 10538, 261, 1046, 6023, 3456, 13, 1216, 1185, 288, 10792, 368, 2438, 26780, 1285, 30, 10080, 10538, 16, 10080, 4021, 848, 506, 8224, 3639, 3010, 1151, 273, 866, 1350, 12, 11569,...
x = r.x; y = r.y; width = r.width; height = r.height;
setBounds (r.x, r.y, r.width, r.height);
public void setBounds(Rectangle r) { x = r.x; y = r.y; width = r.width; height = r.height; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/3fe1c14284ce32b79d0e66441aec6a45a77ff684/Rectangle.java/buggy/libjava/java/awt/Rectangle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5694, 12, 19463, 436, 13, 225, 288, 565, 619, 273, 436, 18, 92, 31, 565, 677, 273, 436, 18, 93, 31, 565, 1835, 273, 436, 18, 2819, 31, 565, 2072, 273, 436, 18, 4210,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 444, 5694, 12, 19463, 436, 13, 225, 288, 565, 619, 273, 436, 18, 92, 31, 565, 677, 273, 436, 18, 93, 31, 565, 1835, 273, 436, 18, 2819, 31, 565, 2072, 273, 436, 18, 4210,...
IProjectAdapter projectAdapter = (IProjectAdapter) project .getAdapter(IProjectAdapter.class); IPBDotProjectOwner pbDotProjectOwner = projectAdapter .getPBDotProjectOwner(resource);
IProjectAdapter projectAdapter = (IProjectAdapter) project.getAdapter(IProjectAdapter.class); IPBDotProjectOwner pbDotProjectOwner = projectAdapter.getPBDotProjectOwner(resource);
private IPBDotProjectOwner getIPBDotProjectOwner(IResource resource) { IProject project = resource.getProject(); IProjectAdapter projectAdapter = (IProjectAdapter) project .getAdapter(IProjectAdapter.class); IPBDotProjectOwner pbDotProjectOwner = projectAdapter .getPBDotProjectOwner(resource); return pbDotProjectOwner; }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/5644f6506a8f17f2b8311774090206457f13a78d/PBDotProjectBuilder.java/clean/wolips/plugins/org.objectstyle.wolips.builder/java/org/objectstyle/wolips/builder/internal/PBDotProjectBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2971, 38, 10412, 4109, 5541, 336, 2579, 38, 10412, 4109, 5541, 12, 45, 1420, 1058, 13, 288, 202, 202, 45, 4109, 1984, 273, 1058, 18, 588, 4109, 5621, 202, 202, 45, 4109, 4216...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2971, 38, 10412, 4109, 5541, 336, 2579, 38, 10412, 4109, 5541, 12, 45, 1420, 1058, 13, 288, 202, 202, 45, 4109, 1984, 273, 1058, 18, 588, 4109, 5621, 202, 202, 45, 4109, 4216...
String key = sb.toString().trim(); int value = in.readInt(); if (!key.trim().equals("") && key.trim().length() > 3 && key.trim().indexOf("?") == -1) { metadata.put(key, new Integer(value)); } }
metadata.put("Extra data", sb.toString().trim());
protected void initStandardMetadata() throws FormatException { super.initStandardMetadata(); try { // Now that the base TIFF standard metadata has been parsed, we need to // parse out the STK metadata from the UIC4TAG. TiffIFDEntry uic4tagEntry = TiffTools.getFirstIFDEntry(in, UIC4TAG); in.seek(uic4tagEntry.getValueOffset()); int planes = uic4tagEntry.getValueCount(); parseTags(planes); // no idea how this tag is organized - this is just a guess long[] uic1 = TiffTools.getIFDLongArray(ifds[0], METAMORPH_ID, true); try { for (int i=1; i<uic1.length; i+=2) { if (uic1[i] >= in.length() / 2) { in.seek(uic1[i] + 12); while (in.getFilePointer() < in.length()) { // read a null-terminated string (key), followed by an int value StringBuffer sb = new StringBuffer(); char c = (char) in.read(); while (c != 0 || sb.length() < 128) { sb = sb.append(c); c = (char) in.read(); } String key = sb.toString().trim(); int value = in.readInt(); if (!key.trim().equals("") && key.trim().length() > 3 && key.trim().indexOf("?") == -1) { metadata.put(key, new Integer(value)); } } } } } catch (Exception e) { } // copy ifds into a new array of Hashtables that will accomodate the // additional image planes long[] uic2 = TiffTools.getIFDLongArray(ifds[0], UIC2TAG, true); numImages = uic2.length; long[] uic3 = TiffTools.getIFDLongArray(ifds[0], UIC3TAG, true); for (int i=0; i<uic3.length; i++) { in.seek(uic3[i]); put("Wavelength [" + i + "]", in.readLong() / in.readLong()); } Hashtable[] tempIFDs = new Hashtable[numImages]; long[] oldOffsets = TiffTools.getIFDLongArray(ifds[0], TiffTools.STRIP_OFFSETS, true); long[] stripByteCounts = TiffTools.getIFDLongArray(ifds[0], TiffTools.STRIP_BYTE_COUNTS, true); int stripsPerImage = oldOffsets.length; int check = TiffTools.getIFDIntValue(ifds[0], TiffTools.PHOTOMETRIC_INTERPRETATION); if (check == TiffTools.RGB_PALETTE) { TiffTools.putIFDValue(ifds[0], TiffTools.PHOTOMETRIC_INTERPRETATION, TiffTools.BLACK_IS_ZERO); } emWavelength = TiffTools.getIFDLongArray(ifds[0], UIC3TAG, true); // for each image plane, construct an IFD hashtable int pointer = 0; Hashtable temp; for(int i=0; i<numImages; i++) { temp = new Hashtable(); // copy most of the data from 1st IFD temp.put(new Integer(TiffTools.LITTLE_ENDIAN), ifds[0].get( new Integer(TiffTools.LITTLE_ENDIAN))); temp.put(new Integer(TiffTools.IMAGE_WIDTH), ifds[0].get( new Integer(TiffTools.IMAGE_WIDTH))); temp.put(new Integer(TiffTools.IMAGE_LENGTH), ifds[0].get(new Integer(TiffTools.IMAGE_LENGTH))); temp.put(new Integer(TiffTools.BITS_PER_SAMPLE), ifds[0].get( new Integer(TiffTools.BITS_PER_SAMPLE))); temp.put(new Integer(TiffTools.COMPRESSION), ifds[0].get( new Integer(TiffTools.COMPRESSION))); temp.put(new Integer(TiffTools.PHOTOMETRIC_INTERPRETATION), ifds[0].get(new Integer(TiffTools.PHOTOMETRIC_INTERPRETATION))); temp.put(new Integer(TiffTools.STRIP_BYTE_COUNTS), ifds[0].get( new Integer(TiffTools.STRIP_BYTE_COUNTS))); temp.put(new Integer(TiffTools.ROWS_PER_STRIP), ifds[0].get( new Integer(TiffTools.ROWS_PER_STRIP))); temp.put(new Integer(TiffTools.X_RESOLUTION), ifds[0].get( new Integer(TiffTools.X_RESOLUTION))); temp.put(new Integer(TiffTools.Y_RESOLUTION), ifds[0].get( new Integer(TiffTools.Y_RESOLUTION))); temp.put(new Integer(TiffTools.RESOLUTION_UNIT), ifds[0].get( new Integer(TiffTools.RESOLUTION_UNIT))); temp.put(new Integer(TiffTools.PREDICTOR), ifds[0].get( new Integer(TiffTools.PREDICTOR))); // now we need a StripOffsets entry long planeOffset = i*(oldOffsets[stripsPerImage - 1] + stripByteCounts[stripsPerImage - 1] - oldOffsets[0]); long[] newOffsets = new long[oldOffsets.length]; newOffsets[0] = planeOffset + oldOffsets[0]; for(int j=1; j<newOffsets.length; j++) { newOffsets[j] = newOffsets[j-1] + stripByteCounts[0]; } temp.put(new Integer(TiffTools.STRIP_OFFSETS), newOffsets); tempIFDs[pointer] = temp; pointer++; } ifds = tempIFDs; } catch (NullPointerException n) { n.printStackTrace(); } catch (IOException io) { io.printStackTrace(); } catch (FormatException e) { e.printStackTrace(); } try { super.initStandardMetadata(); } catch (Throwable t) { t.printStackTrace(); } // parse (mangle) TIFF comment String descr = (String) metadata.get("Comment"); if (descr != null) { StringTokenizer st = new StringTokenizer(descr, "\n"); StringBuffer sb = new StringBuffer(); boolean first = true; while (st.hasMoreTokens()) { String line = st.nextToken(); int colon = line.indexOf(": "); if (colon < 0) { // normal line (not a key/value pair) if (line.trim().length() > 0) { // not a blank line sb.append(line); if (!line.endsWith(".")) sb.append("."); sb.append(" "); } first = false; continue; } if (first) { // first line could be mangled; make a reasonable guess int dot = line.lastIndexOf(".", colon); if (dot >= 0) { String s = line.substring(0, dot + 1); sb.append(s); if (!s.endsWith(".")) sb.append("."); sb.append(" "); } line = line.substring(dot + 1); colon -= dot + 1; first = false; } // add key/value pair embedded in comment as separate metadata String key = line.substring(0, colon); String value = line.substring(colon + 2); put(key, value); } // replace comment with trimmed version descr = sb.toString().trim(); if (descr.equals("")) metadata.remove("Comment"); else put("Comment", descr); } try { sizeZ[0] = TiffTools.getIFDLongArray(ifds[0], UIC2TAG, true).length; sizeT[0] = getImageCount(currentId) / sizeZ[0]; } catch (Exception e) { } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/a9bd8c249dbfebba58914b297ee02f183985253a/MetamorphReader.java/clean/loci/formats/in/MetamorphReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 1216, 4077, 503, 288, 565, 2240, 18, 2738, 8336, 2277, 5621, 565, 775, 288, 1377, 368, 4494, 716, 326, 1026, 27491, 4529, 1982, 711, 2118, 2707, 16, 732...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 1216, 4077, 503, 288, 565, 2240, 18, 2738, 8336, 2277, 5621, 565, 775, 288, 1377, 368, 4494, 716, 326, 1026, 27491, 4529, 1982, 711, 2118, 2707, 16, 732...
while (! alreadyRead(newMessages[lastRead], f)) {
while (lastRead >=0 && ! alreadyRead(newMessages[lastRead], f)) {
public Message[] getNewMessages(Folder f) throws MessagingException { if (Pooka.isDebug()) System.out.println("getting new messages."); Message[] newMessages = f.getMessages(); if (newMessages.length > 0) { int lastRead = newMessages.length - 1; while (! alreadyRead(newMessages[lastRead], f)) { lastRead--; } if (Pooka.isDebug()) System.out.println("final lastRead is " + lastRead + "; for reference, newMessages.length = " + newMessages.length); if (newMessages.length - lastRead < 2) { // no new messages if (Pooka.isDebug()) System.out.println("no new messages."); return new Message[0]; } else { if (Pooka.isDebug()) System.out.println("returning " + (newMessages.length - lastRead - 1) + " new messages."); Message[] returnValue = new Message[newMessages.length - lastRead - 1]; System.arraycopy(newMessages, lastRead + 1, returnValue, 0, newMessages.length - lastRead - 1); return returnValue; } } else { if (Pooka.isDebug()) System.out.println("no messages in folder."); // no messages. return newMessages; } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/d10a3fdd9905852f1c352d50c83635d4005e83f1/PopInboxFolderInfo.java/clean/net/suberic/pooka/PopInboxFolderInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2350, 8526, 12654, 5058, 12, 3899, 284, 13, 1216, 23794, 503, 288, 565, 309, 261, 52, 1184, 69, 18, 291, 2829, 10756, 1377, 2332, 18, 659, 18, 8222, 2932, 588, 1787, 394, 2743, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2350, 8526, 12654, 5058, 12, 3899, 284, 13, 1216, 23794, 503, 288, 565, 309, 261, 52, 1184, 69, 18, 291, 2829, 10756, 1377, 2332, 18, 659, 18, 8222, 2932, 588, 1787, 394, 2743, 11...
config = null; config = new MuleConfiguration(); instance = null;
public synchronized void dispose() { if (disposed.get()) { return; } try { if (started.get()) { stop(); } } catch (UMOException e) { logger.error("Failed to stop manager: " + e.getMessage(), e); } disposed.set(true); disposeConnectors(); if (model != null) { model.dispose(); } disposeAgents(); transformers.clear(); endpoints.clear(); endpointIdentifiers.clear(); containerContext.dispose(); containerContext = null; // props.clear(); fireSystemEvent(new ManagerEvent(this, ManagerEvent.MANAGER_DISPOSED)); transformers = null; endpoints = null; endpointIdentifiers = null; // props = null; initialised.set(false); if (eventManager != null) { eventManager.dispose(); } if (workManager != null) { workManager.dispose(); } config = null; config = new MuleConfiguration(); instance = null; if(!config.isEmbedded()) { if (logger.isInfoEnabled()) { logger.info(getEndSplash()); } else { System.out.println(getEndSplash()); } } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/52017c1e601c5799605acbc0ccb383996a153288/MuleManager.java/clean/mule/src/java/org/mule/MuleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 15825, 1435, 565, 288, 3639, 309, 261, 2251, 7423, 18, 588, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 309, 261, 14561, 18, 588, 10756, 288, 7734, 2132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 15825, 1435, 565, 288, 3639, 309, 261, 2251, 7423, 18, 588, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 309, 261, 14561, 18, 588, 10756, 288, 7734, 2132, ...
m_statusTable = new HashMap();
public void init() { }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/ee925e8a9e5362a082e45c6bfbc995a731465000/PassiveStatusKeeper.java/clean/src/services/org/opennms/netmgt/passive/PassiveStatusKeeper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 1071, 81, 67, 2327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 312, 67, 2327, 1388, 273, 394, 4317, 5621, 1071, 81, 67, 2327...
throw new RuntimeException(t); }
throw new RuntimeException(t); }
public void run() { throw new RuntimeException(t); }
12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/f81cc1b11b3a883dbd75a30387d76b77b5babfa6/ExceptionDisplayDialog.java/buggy/dupratcated/src/fr/umlv/symphonie/util/ExceptionDisplayDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 604, 394, 3235, 12, 88, 1769, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 604, 394, 3235, 12, 88, 1769, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
StringBuffer errorMessage = null;
qe.connection = (AbstractJdbc1Connection)((AbstractJdbc1Statement)statement).getPGConnection(); qe.pg_stream = qe.connection.getPGStream();
public java.sql.ResultSet execute() throws SQLException { StringBuffer errorMessage = null; if (pg_stream == null) { throw new PSQLException("postgresql.con.closed"); } synchronized (pg_stream) { sendQuery(); int c; boolean l_endQuery = false; while (!l_endQuery) { c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pg_stream.ReceiveInteger(4); String msg = pg_stream.ReceiveString(connection.getEncoding()); connection.addNotification(new org.postgresql.core.Notification(msg, pid)); break; case 'B': // Binary Data Transfer receiveTuple(true); break; case 'C': // Command Status receiveCommandStatus(); break; case 'D': // Text Data Transfer receiveTuple(false); break; case 'E': // Error Message // it's possible to get more than one error message for a query // see libpq comments wrt backend closing a connection // so, append messages to a string buffer and keep processing // check at the bottom to see if we need to throw an exception if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(pg_stream.ReceiveString(connection.getEncoding())); // keep processing break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); break; case 'N': // Error Notification connection.addWarning(pg_stream.ReceiveString(connection.getEncoding())); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(connection.getEncoding()); break; case 'T': // MetaData Field Description receiveFields(); break; case 'Z': l_endQuery = true; break; default: throw new PSQLException("postgresql.con.type", new Character((char) c)); } } // did we get an error during this query? if ( errorMessage != null ) throw new SQLException( errorMessage.toString() ); return connection.getResultSet(statement, fields, tuples, status, update_count, insert_oid, binaryCursor); } }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/16a30346c86590fbdcd83cacd2a0a9dbd2cd00dc/QueryExecutor.java/clean/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 1836, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1892, 9324, 273, 446, 31, 202, 202, 430, 261, 8365, 67, 3256, 422, 446, 13, 3196, 202, 95, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 1836, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1892, 9324, 273, 446, 31, 202, 202, 430, 261, 8365, 67, 3256, 422, 446, 13, 3196, 202, 95, 1082, 2...
RubyArray array = RubyArray.newArray(runtime, args.length - expectedArgsCount);
RubyArray array = runtime.newArray(args.length - expectedArgsCount);
private void prepareArguments(Ruby runtime, IRubyObject receiver, IRubyObject[] args) { if (args == null) { args = IRubyObject.NULL_ARRAY; } int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw new ArgumentError(runtime, "Wrong # of arguments(" + args.length + " for " + expectedArgsCount + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = expectedArgsCount + argsNode.getOptArgs().size(); if (opt < args.length) { throw new ArgumentError(runtime, "wrong # of arguments(" + args.length + " for " + opt + ")"); } runtime.getCurrentFrame().setArgs(args); } if (runtime.getScope().hasLocalVariables()) { if (expectedArgsCount > 0) { for (int i = 0; i < expectedArgsCount; i++) { runtime.getScope().setValue(i + 2, args[i]); } } if (argsNode.getOptArgs() != null) { ListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int i = expectedArgsCount; i < args.length && iter.hasNext(); i++) { new AssignmentVisitor(runtime, receiver).assign((Node)iter.next(), args[i], true); expectedArgsCount++; } // assign the default values. while (iter.hasNext()) { EvaluateVisitor.createVisitor(receiver).eval((Node)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = RubyArray.newArray(runtime, args.length - expectedArgsCount); for (int i = expectedArgsCount; i < args.length; i++) { array.append(args[i]); } runtime.getScope().setValue(argsNode.getRestArg(), array); } } }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2911, 4628, 12, 54, 10340, 3099, 16, 15908, 10340, 921, 5971, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 422, 446, 13, 288, 5411, 833, 273, 15908, 10340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 4628, 12, 54, 10340, 3099, 16, 15908, 10340, 921, 5971, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 422, 446, 13, 288, 5411, 833, 273, 15908, 10340, ...
int status = rs.status;
int status = rs.getStatus();
public void run() { long uid = req.getLong(DMT.UID); short htl = req.getShort(DMT.HTL); NodePeer source = (NodePeer) req.getSource(); htl = source.decrementHTL(htl); // FIXME should be more generic when implement SSKs NodeCHK key = (NodeCHK) req.getObject(DMT.FREENET_ROUTING_KEY); Message accepted = DMT.createFNPAccepted(uid); source.send(accepted); Object o = node.makeRequestSender(key, htl, uid, source); if(o instanceof CHKBlock) { CHKBlock block = (CHKBlock) o; PartiallyReceivedBlock prb = new PartiallyReceivedBlock(Node.PACKETS_IN_BLOCK, Node.PACKET_SIZE, block.getData()); BlockTransmitter bt = new BlockTransmitter(node.usm, source, uid, prb); bt.send(); return; } RequestSender rs = (RequestSender) o; if(rs == null) { // ran out of htl? Message dnf = DMT.createFNPDataNotFound(uid); source.send(dnf); return; } boolean shouldHaveStartedTransfer = false; while(true) { rs.waitUntilStatusChange(); if(rs.transferStarted()) { PartiallyReceivedBlock prb = rs.getPRB(); BlockTransmitter bt = new BlockTransmitter(node.usm, source, uid, prb); bt.send(); // either fails or succeeds; other side will see, we don't care return; } int status = rs.status; switch(status) { case RequestSender.NOT_FINISHED: continue; case RequestSender.DATA_NOT_FOUND: Message dnf = DMT.createFNPDataNotFound(uid); source.sendAsync(dnf); return; case RequestSender.REJECTED_OVERLOAD: // Propagate back to source who needs to reduce send rate Message reject = DMT.createFNPRejectOverload(uid); source.sendAsync(reject); return; case RequestSender.ROUTE_NOT_FOUND: // Tell source Message rnf = DMT.createFNPRouteNotFound(uid, rs.htl); source.sendAsync(rnf); return; case RequestSender.SUCCESS: case RequestSender.TRANSFER_FAILED: case RequestSender.VERIFY_FAILURE: if(shouldHaveStartedTransfer) throw new IllegalStateException("Got status code "+status+" but transfer not started"); shouldHaveStartedTransfer = true; continue; // should have started transfer default: throw new IllegalStateException("Unknown status code "+status); } } }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/d6f2b27b0068d0738bbd2f1afae8c1cc0bef24f4/RequestHandler.java/buggy/src/freenet/node/RequestHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1525, 4555, 273, 1111, 18, 588, 3708, 12, 40, 6152, 18, 3060, 1769, 3639, 3025, 366, 6172, 273, 1111, 18, 588, 4897, 12, 40, 6152, 18, 5062, 48, 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, 918, 1086, 1435, 288, 3639, 1525, 4555, 273, 1111, 18, 588, 3708, 12, 40, 6152, 18, 3060, 1769, 3639, 3025, 366, 6172, 273, 1111, 18, 588, 4897, 12, 40, 6152, 18, 5062, 48, 1769, ...
optIterator = new VM_OptGCMapIterator(registerLocations);
if (VM.BuildForOptCompiler) { optIterator = new VM_OptGCMapIterator(registerLocations); } else { optIterator = null; }
public VM_GCMapIteratorGroup() { registerLocations = WordArray.create(VM_Constants.NUM_GPRS); baselineIterator = new VM_BaselineGCMapIterator(registerLocations); //-#if RVM_WITH_OPT_COMPILER optIterator = new VM_OptGCMapIterator(registerLocations); //-#endif jniIterator = new VM_JNIGCMapIterator(registerLocations); hardwareTrapIterator = new VM_HardwareTrapGCMapIterator(registerLocations); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3244bbe4a4a879b815f1721d3b48595e84349cc5/VM_GCMapIteratorGroup.java/buggy/rvm/src/com/ibm/jikesrvm/memorymanagers/mminterface/VM_GCMapIteratorGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8251, 67, 15396, 863, 3198, 1114, 1435, 288, 377, 1744, 10985, 540, 273, 9926, 1076, 18, 2640, 12, 7397, 67, 2918, 18, 6069, 67, 43, 8025, 55, 1769, 3639, 14243, 3198, 273, 394, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8251, 67, 15396, 863, 3198, 1114, 1435, 288, 377, 1744, 10985, 540, 273, 9926, 1076, 18, 2640, 12, 7397, 67, 2918, 18, 6069, 67, 43, 8025, 55, 1769, 3639, 14243, 3198, 273, 394, 8...
printError("Cannot get initial context for JNDI: " + e+"<br>"); return ;
printError("Cannot get initial context for JNDI: " + e + "<br>"); return;
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Integer toId; // to user id Integer fromId; // from user id Integer itemId; // item id String comment; // user comment Integer rating; // user rating sp = new ServletPrinter(response, "StoreComment"); /* Get and check all parameters */ String value = request.getParameter("to"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide a 'to user' identifier !<br></h3>"); return ; } else toId = new Integer(value); value = request.getParameter("from"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide a 'from user' identifier !<br></h3>"); return ; } else fromId = new Integer(value); value = request.getParameter("itemId"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide an item identifier !<br></h3>"); return ; } else itemId = new Integer(value); value = request.getParameter("rating"); if ((value == null) || (value.equals(""))) { printError("<h3>You must provide a rating !<br></h3>"); return ; } else rating = new Integer(value); comment = request.getParameter("comment"); if ((comment == null) || (comment.equals(""))) { printError("<h3>You must provide a comment !<br></h3>"); return ; } try { initialContext = new InitialContext(); } catch (Exception e) { printError("Cannot get initial context for JNDI: " + e+"<br>"); return ; } // Try to find the user corresponding to the 'to' ID User to; try { UserHome uHome = (UserHome)PortableRemoteObject.narrow(initialContext.lookup("UserHome"), UserHome.class); to = uHome.findByPrimaryKey(new UserPK(toId)); } catch (Exception e) { printError("Cannot lookup User or Item: " +e+"<br>"); return ; } CommentHome cHome; try { cHome = (CommentHome)PortableRemoteObject.narrow(initialContext.lookup("CommentHome"), CommentHome.class); } catch (Exception e) { printError("Cannot lookup Comment: " +e+"<br>"); return ; } // We want to start transactions from client UserTransaction utx = null; try { utx = (javax.transaction.UserTransaction)initialContext.lookup(Config.UserTransaction); utx.begin(); } catch (Exception e) { printError("Cannot lookup UserTransaction: "+e+"<br>"); return ; } try { Comment c = cHome.create(fromId, toId, itemId, rating.intValue(), comment); to.updateRating(rating.intValue()); utx.commit(); sp.printHTMLheader("RUBiS: Comment posting"); sp.printHTML("<center><h2>Your comment has been successfully posted.</h2></center>\n"); } catch (Exception e) { printError("Error while storing the comment (got exception: " +e+")<br>"); try { utx.rollback(); } catch (Exception se) { printError("Transaction rollback failed: " + e +"<br>"); } return ; } sp.printHTMLfooter(); }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/StoreComment.java/clean/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/StoreComment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 741, 3349, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 1860, 16, 16517, 225, 288, 565, 2144, 358, 548, 31, 565, 368, 358, 729, 612, 565, 2144, 628, 548, 31, 225, 368, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3349, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 1860, 16, 16517, 225, 288, 565, 2144, 358, 548, 31, 565, 368, 358, 729, 612, 565, 2144, 628, 548, 31, 225, 368, 6...
SchemaGrammar grammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri);
SchemaGrammar grammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri);
private void resolveSchemaGrammar( String loc, String uri) throws Exception { SchemaGrammar grammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); if (grammar == null) { DOMParser parser = new DOMParser(); parser.setEntityResolver( new Resolver(fEntityHandler) ); parser.setErrorHandler( new ErrorHandler() ); try { parser.setFeature("http://xml.org/sax/features/validation", false); parser.setFeature("http://xml.org/sax/features/namespaces", true); parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); } catch ( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); } catch ( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } // expand it before passing it to the parser InputSource source = null; EntityResolver currentER = parser.getEntityResolver(); if (currentER != null) { source = currentER.resolveEntity("", loc); } if (source == null) { loc = fEntityHandler.expandSystemId(loc); source = new InputSource(loc); } try { parser.parse( source ); } catch ( IOException e ) { e.printStackTrace(); } catch ( SAXException e ) { //System.out.println("loc = "+loc); //e.printStackTrace(); reportRecoverableXMLError( XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, e.getMessage() ); } Document document = parser.getDocument(); //Our Grammar TraverseSchema tst = null; try { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("I am geting the Schema Document"); } Element root = document.getDocumentElement();// This is what we pass to TraverserSchema if (root == null) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Can't get back Schema document's root element :" + loc); } else { if (uri == null || !uri.equals(root.getAttribute(SchemaSymbols.ATT_TARGETNAMESPACE)) ) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Schema in " + loc + " has a different target namespace " + "from the one specified in the instance document :" + uri); } grammar = new SchemaGrammar(); grammar.setGrammarDocument(document); tst = new TraverseSchema( root, fStringPool, (SchemaGrammar)grammar, fGrammarResolver, fErrorReporter, source.getSystemId()); fGrammarResolver.putGrammar(document.getDocumentElement().getAttribute("targetNamespace"), grammar); } } catch (Exception e) { e.printStackTrace(System.err); } } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/f2b9ad84920b2015a53c9a67b4dfb5460fa0465e/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 3078, 18576, 12, 514, 1515, 16, 514, 2003, 13, 1216, 1185, 288, 3639, 4611, 18576, 6473, 273, 261, 3078, 18576, 13, 284, 18576, 4301, 18, 588, 18576, 12, 1650, 1769, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 3078, 18576, 12, 514, 1515, 16, 514, 2003, 13, 1216, 1185, 288, 3639, 4611, 18576, 6473, 273, 261, 3078, 18576, 13, 284, 18576, 4301, 18, 588, 18576, 12, 1650, 1769, 3639...
public int countItems() throws SQLException { /** item count in a collection */ int collitems = 0; /** item count in a community */ int commitems = 0;
public int countItems() throws SQLException { int total = 0;
public int countItems() throws SQLException { /** item count in a collection */ int collitems = 0; /** item count in a community */ int commitems = 0; Collection[] cols = getCollections(); if ( cols.length > 0 ) { for (int j = 0; j < cols.length; j++) { // Get total items of a collection collitems = cols[j].countItems(); commitems += collitems; } } return commitems; }
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/e86896fffd711ca9e37236cf17968e3a812783fa/Community.java/clean/dspace/src/org/dspace/content/Community.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1056, 3126, 1435, 3639, 1216, 6483, 565, 288, 3639, 1783, 761, 1056, 316, 279, 1849, 1195, 3639, 509, 4508, 3319, 273, 374, 31, 3639, 1783, 761, 1056, 316, 279, 19833, 1195, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1056, 3126, 1435, 3639, 1216, 6483, 565, 288, 3639, 1783, 761, 1056, 316, 279, 1849, 1195, 3639, 509, 4508, 3319, 273, 374, 31, 3639, 1783, 761, 1056, 316, 279, 19833, 1195, 36...
public void setComment()
public void setComment(String text)
public void setComment() { m_isTag = true; setTypeChar('!'); m_isComment = true; m_isClose = false; m_isEmpty = false; }
8797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8797/92f9fdc0d111e35d8624dd89523537f2f059c86c/XMLBlock.java/buggy/XMLBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 4469, 1435, 202, 95, 202, 202, 81, 67, 291, 1805, 273, 638, 31, 202, 202, 542, 559, 2156, 2668, 5124, 1769, 202, 202, 81, 67, 291, 4469, 273, 638, 31, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 4469, 1435, 202, 95, 202, 202, 81, 67, 291, 1805, 273, 638, 31, 202, 202, 542, 559, 2156, 2668, 5124, 1769, 202, 202, 81, 67, 291, 4469, 273, 638, 31, 202, 202, ...
in.skipBytes(4);
in.readInt();
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessStream(id); byte[] fourBytes = new byte[4]; in.read(fourBytes); littleEndian = new String(fourBytes).equals("iiii"); // populate standard metadata hashtable and OME root node in.skipBytes(12); dataSize = (int) DataTools.read4UnsignedBytes(in, littleEndian); dataSize -= 28; // size of raw image data, in bytes width = (int) DataTools.read4UnsignedBytes(in, littleEndian); height = (int) DataTools.read4UnsignedBytes(in, littleEndian); c = (int) DataTools.read4UnsignedBytes(in, littleEndian); long zDepth = DataTools.read4UnsignedBytes(in, littleEndian); long tDepth = DataTools.read4UnsignedBytes(in, littleEndian); pixelType = (int) DataTools.read4UnsignedBytes(in, littleEndian); numImages = (int) (zDepth * tDepth); metadata.put("Width", new Long(width)); metadata.put("Height", new Long(height)); metadata.put("Channels", new Long(c)); metadata.put("ZDepth", new Long(zDepth)); metadata.put("TDepth", new Long(tDepth)); String ptype; bps = 1; switch ((int) pixelType) { case 0: ptype = "8 bit unsigned"; bps = 1; break; case 1: ptype = "16 bit signed short"; bps = 2; break; case 2: ptype = "16 bit unsigned short"; bps = 2; break; case 3: ptype = "32 bit signed long"; bps = 4; break; case 4: ptype = "32 bit single-precision float"; bps = 4; break; case 5: ptype = "Color24"; bps = 1; break; case 6: ptype = "Color48"; bps = 2; break; case 10: ptype = "64 bit double-precision float"; bps = 8; break; default: ptype = "reserved"; // for values 7-9 } metadata.put("PixelType", ptype); in.skipBytes((int) dataSize); String typeAsString; switch ((int) pixelType) { case 0: typeAsString = "Uint8"; break; case 1: typeAsString = "int16"; break; case 2: typeAsString = "Uint16"; break; case 3: typeAsString = "Uint32"; break; case 4: typeAsString = "float"; break; case 5: typeAsString = "Uint32"; break; case 6: typeAsString = "Uint32"; break; case 10: typeAsString = "float"; break; default: typeAsString = "Uint8"; } order = "XY"; if (c > 1) order += "CZT"; else order += "ZTC"; // The metadata store we're working with. MetadataStore store = getMetadataStore(); store.setPixels( new Integer((int) width), // SizeX new Integer((int) height), // SizeY new Integer((int) zDepth), // SizeZ new Integer((int) c), // SizeC new Integer((int) tDepth), // SizeT typeAsString, // PixelType new Boolean(!littleEndian), // BigEndian order, // DimensionOrder null); // Use index 0 in.read(fourBytes); String tag = new String(fourBytes); while (!tag.equals("fini")) { if (tag.equals("clut")) { // read in Color Lookup Table long size = DataTools.read4UnsignedBytes(in, littleEndian); if (size == 8) { // indexed lookup table in.skipBytes(4); long type=DataTools.read4UnsignedBytes(in, littleEndian); String clutType; switch ((int) type) { case 0: clutType = "monochrome"; break; case 1: clutType = "reverse monochrome"; break; case 2: clutType = "BGR"; break; case 3: clutType = "classify"; break; case 4: clutType = "rainbow"; break; case 5: clutType = "red"; break; case 6: clutType = "green"; break; case 7: clutType = "blue"; break; case 8: clutType = "cyan"; break; case 9: clutType = "magenta"; break; case 10: clutType = "yellow"; break; case 11: clutType = "saturated pixels"; break; } } else { // explicitly defined lookup table // length is 772 in.skipBytes(4); byte[] colorTable = new byte[256*3]; in.read(colorTable); } } else if (tag.equals("norm")) { // read in normalization information long size = DataTools.read4UnsignedBytes(in, littleEndian); // error checking if (size != (44 * c)) { throw new FormatException("Bad normalization settings"); } for (int i=0; i<c; i++) { long source = DataTools.read4UnsignedBytes(in, littleEndian); String sourceType; switch ((int) source) { case 0: sourceType = "user"; break; case 1: sourceType = "plane"; break; case 2: sourceType = "sequence"; break; case 3: sourceType = "saturated plane"; break; case 4: sourceType = "saturated sequence"; break; case 5: sourceType = "ROI"; break; default: sourceType = "user"; } metadata.put("NormalizationSource" + i, sourceType); double min=DataTools.read8SignedBytes(in, littleEndian); double max=DataTools.read8SignedBytes(in, littleEndian); double gamma=DataTools.read8SignedBytes(in, littleEndian); double black=DataTools.read8SignedBytes(in, littleEndian); double white=DataTools.read8SignedBytes(in, littleEndian); metadata.put("NormalizationMin" + i, new Double(min)); metadata.put("NormalizationMax" + i, new Double(max)); metadata.put("NormalizationGamma" + i, new Double(gamma)); metadata.put("NormalizationBlack" + i, new Double(black)); metadata.put("NormalizationWhite" + i, new Double(white)); } } else if (tag.equals("head")) { // read in header labels in.skipBytes(4); // size is defined to 2200 for (int i=0; i<100; i++) { int num = DataTools.read2UnsignedBytes(in, littleEndian); in.read(fourBytes); String name = new String(fourBytes); metadata.put("Header" + num, name); } } else if (tag.equals("roi ")) { // read in ROI information long size = DataTools.read4UnsignedBytes(in, littleEndian); long roiType = DataTools.read4UnsignedBytes(in, littleEndian); long roiLeft = DataTools.read4UnsignedBytes(in, littleEndian); long roiTop = DataTools.read4UnsignedBytes(in, littleEndian); long roiRight = DataTools.read4UnsignedBytes(in, littleEndian); long roiBottom = DataTools.read4UnsignedBytes(in, littleEndian); long numRoiPts = DataTools.read4UnsignedBytes(in, littleEndian); Integer x0 = new Integer((int) roiLeft); Integer x1 = new Integer((int) roiRight); Integer y0 = new Integer((int) roiBottom); Integer y1 = new Integer((int) roiTop); store.setDisplayROI( x0, y0, null, x1, y1, null, null, null, null, null); for (int i=0; i<numRoiPts; i++) { long ptX = DataTools.read4UnsignedBytes(in, littleEndian); long ptY = DataTools.read4UnsignedBytes(in, littleEndian); } } else if (tag.equals("mask")) { // read in Segmentation Mask } else if (tag.equals("unit")) { // read in units in.skipBytes(4); // size is 48 for (int i=0; i<4; i++) { long xResStyle = DataTools.read4UnsignedBytes(in, littleEndian); long unitsPerPixel = DataTools.read4UnsignedBytes(in, littleEndian); long xUnitName = DataTools.read4UnsignedBytes(in, littleEndian); metadata.put("ResolutionStyle" + i, new Long(xResStyle)); metadata.put("UnitsPerPixel" + i, new Long(unitsPerPixel)); if (i == 0) { Float pixelSize = new Float(unitsPerPixel); store.setDimensions(pixelSize, pixelSize, null, null, null, null); } metadata.put("UnitName" + i, new Long(xUnitName)); } } else if (tag.equals("view")) { // read in view in.skipBytes(4); } else if (tag.equals("plot")) { // read in plot // skipping this field for the moment in.skipBytes(4); // size is 2508 in.skipBytes(2508); } else if (tag.equals("notes")) { // read in notes (image info) in.skipBytes(4); // size is 576 byte[] temp = new byte[64]; in.read(temp); String descriptor = new String(temp); temp = new byte[512]; in.read(temp); String notes = new String(temp); metadata.put("Descriptor", descriptor); metadata.put("Notes", notes); store.setImage(id, null, notes, null); } int r = in.read(fourBytes); if (r > 0) { tag = new String(fourBytes); } else { // eof tag = "fini"; } } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/2df09d33bfdc966378aae0cc09cb503afb983bc2/IPLabReader.java/buggy/loci/formats/in/IPLabReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 1160, 8526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 1862, 1228, 12, 350, 1769, 565, 1160, 8526, ...
} else if(cmd.equals("Paste")) {
} else if (cmd.equals("Paste")) {
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if(cmd.equals("Cut")) { consoleTextArea.cut(); } else if(cmd.equals("Copy")) { consoleTextArea.copy(); } else if(cmd.equals("Paste")) { consoleTextArea.paste(); } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 15812, 6, 3719, 288, 5411, 2983, 1528, 5484, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 15812, 6, 3719, 288, 5411, 2983, 1528, 5484, ...
if (task != null && !browse.isDisposed() && deactiveTask.getHandle().equals(task.getHandle())) {
if (task != null && !browse.isDisposed() && deactiveTask.getHandleIdentifier().equals(task.getHandleIdentifier())) {
public void taskDeactivated(ITask deactiveTask) { if (task != null && !browse.isDisposed() && deactiveTask.getHandle().equals(task.getHandle())) { browse.setEnabled(true); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/8bb2562e67033f820cbda60f5cf69d21ebe18834/TaskSummaryEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskSummaryEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1562, 758, 18836, 12, 1285, 835, 443, 3535, 2174, 13, 288, 540, 202, 430, 261, 4146, 480, 446, 597, 401, 25731, 18, 291, 1669, 7423, 1435, 597, 443, 3535, 2174, 18, 588, 3259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1562, 758, 18836, 12, 1285, 835, 443, 3535, 2174, 13, 288, 540, 202, 430, 261, 4146, 480, 446, 597, 401, 25731, 18, 291, 1669, 7423, 1435, 597, 443, 3535, 2174, 18, 588, 3259...
if ( callback != null ) callback.removeConnection( c );
if ( callback != null ) callback.removeConnection( c );
public void failedToConnect(Connection c) { // Remove this connection if ( callback != null ) callback.removeConnection( c ); // Maintain a count of attempted outgoing connections activeAttempts--; }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/41422245404c0fad8a30437d75fc29381b02be42/ConnectionManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/ConnectionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2535, 774, 5215, 12, 1952, 276, 13, 288, 202, 759, 3581, 333, 1459, 202, 430, 261, 1348, 480, 446, 262, 202, 565, 1348, 18, 4479, 1952, 12, 276, 11272, 202, 759, 490, 1598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2535, 774, 5215, 12, 1952, 276, 13, 288, 202, 759, 3581, 333, 1459, 202, 430, 261, 1348, 480, 446, 262, 202, 565, 1348, 18, 4479, 1952, 12, 276, 11272, 202, 759, 490, 1598, ...
if (aAST.getType() == TokenTypes.CLASS_DEF) {
if (aAST.getType() == TokenTypes.CLASS_DEF || aAST.getType() == TokenTypes.ENUM_DEF) {
public final void leaveToken(DetailAST aAST) { if (aAST.getType() == TokenTypes.CLASS_DEF) { // perhaps it was inner class int dotIdx = mCurrentClass.lastIndexOf("$"); if (dotIdx == -1) { // perhaps just a class dotIdx = mCurrentClass.lastIndexOf("."); } if (dotIdx == -1) { // looks like a topmost class mCurrentClass = ""; } else { mCurrentClass = mCurrentClass.substring(0, dotIdx); } } }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/fcbd40f3ce04fe3011bf0e1b2642ac1fd049f5de/AbstractTypeAwareCheck.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/AbstractTypeAwareCheck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 8851, 1345, 12, 6109, 9053, 279, 9053, 13, 565, 288, 3639, 309, 261, 69, 9053, 18, 588, 559, 1435, 422, 3155, 2016, 18, 5237, 67, 12904, 747, 279, 9053, 18, 588, 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, 1071, 727, 918, 8851, 1345, 12, 6109, 9053, 279, 9053, 13, 565, 288, 3639, 309, 261, 69, 9053, 18, 588, 559, 1435, 422, 3155, 2016, 18, 5237, 67, 12904, 747, 279, 9053, 18, 588, 559, ...
if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null;
if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null;
public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCref = ruby.getCRef(); // s.a. ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } if (getTable() != null) { valueList = new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil())); ruby.getScope().setLocalValues(valueList); ruby.getScope().setLocalNames(getTable()); } else { valueList = null; //ruby.getScope().getLocalValues(); ruby.getScope().setLocalValues(null); ruby.getScope().setLocalNames(null); } Node callBody = getNextNode(); Node callNode = null; if (callBody.getType() == Constants.NODE_ARGS) { callNode = callBody; callBody = null; } else if (callBody.getType() == Constants.NODE_BLOCK) { callNode = callBody.getHeadNode(); callBody = callBody.getNextNode(); } RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); try { if (callNode != null) { //if (call_node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); //} int i = callNode.getCount(); if (i > (args != null ? args.size() : 0)) { int size = 0; if (args != null) size = args.size(); throw new RubyArgumentException(ruby, getFile() + ":" + getLine() +"wrong # of arguments(" + size + " for " + i + ")"); } if (callNode.getRest() == -1) { int opt = i; Node optNode = callNode.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException(ruby, "wrong # of arguments(" + args.size() + " for " + opt + ")"); } // +++ ruby.getRubyFrame().setArgs(valueList != null ? new DelegateList(valueList, 2, valueList.size()) : null); // --- } if (valueList != null) { if (i > 0) { for (int j = 0; j < i; j++) { valueList.set(j + 2, args.get(j)); } } args.inc(i); if (callNode.getOptNode() != null) { Node optNode = callNode.getOptNode(); while (optNode != null && args.size() != 0) { ((AssignableNode) optNode.getHeadNode()).assign(ruby, recv, args.getRuby(0), true); args.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (callNode.getRest() >= 0) { RubyArray array = null; if (args.size() > 0) { array = RubyArray.newArray(ruby, args); } else { array = RubyArray.newArray(ruby, 0); } valueList.set(callNode.getRest(), array); } } } return recv.eval(callBody); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } finally { RubyVarmap.pop(ruby); ruby.getScope().pop(); if (savedCref != null) { ruby.setCRef(savedCref); } } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 514, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 202, 202, 430, 261, 1968, 422, 446, 13, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 514, 612, 16, 19817, 4926, 833, 16, 1250, 1158, 8051, 13, 288, 202, 202, 430, 261, 1968, 422, 446, 13, 288, ...
IEditorPart editor = UIUtil.getActiveEditor( true ); if ( editor != null ) { return ( editor.getEditorInput( ).getName( ).endsWith( ".rptlibrary" ) ); } return false;
return ( selectLibrary( ) || editLibrary( ) );
private boolean isEnable( ) { IEditorPart editor = UIUtil.getActiveEditor( true ); if ( editor != null ) { return ( editor.getEditorInput( ).getName( ).endsWith( ".rptlibrary" ) ); //$NON-NLS-1$ } return false; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/fb6513c80373d4051a54d769ef954b2fdb7aebbd/PublishLibraryAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/PublishLibraryAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 353, 8317, 12, 262, 202, 95, 202, 202, 45, 6946, 1988, 4858, 273, 6484, 1304, 18, 588, 3896, 6946, 12, 638, 11272, 202, 202, 430, 261, 4858, 480, 446, 262, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 353, 8317, 12, 262, 202, 95, 202, 202, 45, 6946, 1988, 4858, 273, 6484, 1304, 18, 588, 3896, 6946, 12, 638, 11272, 202, 202, 430, 261, 4858, 480, 446, 262, 202, 202, ...
return formattedString.charAt(charIndex);
return formattedString.charAt (charIndex);
public char setIndex(int position) { if (position < 0 || position > formattedString.length()) throw new IllegalArgumentException("position is out of range"); charIndex = position; if (attributes != null) { for (attributeIndex=0;attributeIndex<attributes.length; attributeIndex++) if (ranges[attributeIndex] > charIndex) break; attributeIndex--; } if (charIndex == formattedString.length()) return DONE; else return formattedString.charAt(charIndex); }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/905252cb2827a39c9de9ec6f60a2dd0fb655254d/FormatCharacterIterator.java/clean/libjava/java/text/FormatCharacterIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1149, 24860, 12, 474, 1754, 13, 225, 288, 565, 309, 261, 3276, 411, 374, 747, 1754, 405, 4955, 780, 18, 2469, 10756, 1377, 604, 394, 2754, 2932, 3276, 353, 596, 434, 1048, 8863, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1149, 24860, 12, 474, 1754, 13, 225, 288, 565, 309, 261, 3276, 411, 374, 747, 1754, 405, 4955, 780, 18, 2469, 10756, 1377, 604, 394, 2754, 2932, 3276, 353, 596, 434, 1048, 8863, 3...
triggereditor = new TriggerEditorComposite(cmpContent, SWT.NONE, triggers); GridData gdTriggerEditor = new GridData(GridData.FILL_HORIZONTAL); triggereditor.setLayoutData(gdTriggerEditor);
triggereditor = new TriggerEditorComposite( cmpContent, SWT.NONE, triggers, wizardContext, bEnableURLParameters, bEnableShowTooltipValue ); GridData gdTriggerEditor = new GridData( GridData.FILL_HORIZONTAL ); triggereditor.setLayoutData( gdTriggerEditor );
private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.marginHeight = 7; glContent.marginWidth = 7; glContent.verticalSpacing = 5; Composite cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); triggereditor = new TriggerEditorComposite(cmpContent, SWT.NONE, triggers); GridData gdTriggerEditor = new GridData(GridData.FILL_HORIZONTAL); triggereditor.setLayoutData(gdTriggerEditor); GridLayout glButtons = new GridLayout(); glButtons.numColumns = 2; glButtons.horizontalSpacing = 5; Composite cmpButtons = new Composite(cmpContent, SWT.NONE); GridData gdButtons = new GridData(GridData.FILL_HORIZONTAL); cmpButtons.setLayoutData(gdButtons); cmpButtons.setLayout(glButtons); btnAccept = new Button(cmpButtons, SWT.PUSH); GridData gdBTNAccept = new GridData(GridData.HORIZONTAL_ALIGN_END); gdBTNAccept.grabExcessHorizontalSpace = true; btnAccept.setLayoutData(gdBTNAccept); btnAccept.setText(Messages.getString("Shared.Lbl.OK")); //$NON-NLS-1$ btnAccept.addSelectionListener(this); btnCancel = new Button(cmpButtons, SWT.PUSH); GridData gdBTNCancel = new GridData(GridData.HORIZONTAL_ALIGN_END); gdBTNCancel.grabExcessHorizontalSpace = false; btnCancel.setLayoutData(gdBTNCancel); btnCancel.setText(Messages.getString("Shared.Lbl.Cancel")); //$NON-NLS-1$ btnCancel.addSelectionListener(this); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a769c95667dd11c0218d8ea7d48a98220acf6dd8/TriggerEditorDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/TriggerEditorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 7145, 3744, 5118, 1350, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 10107, 2686, 273, 2371, 31, 3639, 5118, 1350, 18, 10107, 2384, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 7145, 3744, 5118, 1350, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 10107, 2686, 273, 2371, 31, 3639, 5118, 1350, 18, 10107, 2384, 273, ...
public void testGetStereotypes() { Object cls = Model.getCoreFactory().buildClass(); Model.getCoreHelper().setNamespace(cls, Model.getModelManagementFactory().createPackage()); Collection coll1 = Model.getFacade().getStereotypes(cls); assertEquals(0, coll1.size()); Object stereotype = Model.getExtensionMechanismsFactory().buildStereotype( "TestStereotype", Model.getFacade().getNamespace(cls)); Model.getCoreHelper().addStereotype(cls, stereotype); Collection coll2 = Model.getFacade().getStereotypes(cls); assertEquals(1, coll2.size()); assertTrue(coll2.contains(stereotype)); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/340bff8632e5ecad8484aa211c71fdb3fb853238/TestModelFacade2.java/clean/tests/org/argouml/model/TestModelFacade2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 55, 387, 73, 20297, 1435, 288, 3639, 1033, 2028, 273, 3164, 18, 588, 4670, 1733, 7675, 3510, 797, 5621, 3639, 3164, 18, 588, 4670, 2276, 7675, 542, 3402, 12, 6429, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 55, 387, 73, 20297, 1435, 288, 3639, 1033, 2028, 273, 3164, 18, 588, 4670, 1733, 7675, 3510, 797, 5621, 3639, 3164, 18, 588, 4670, 2276, 7675, 542, 3402, 12, 6429, ...
newname.append(suffix.name, suffix.labels);
newname.append(suffix.name, suffix.offset(0), suffix.labels);
concatenate(Name prefix, Name suffix) throws NameTooLongException { if (prefix.isAbsolute()) return (prefix); Name newname = new Name(); copy(prefix, newname); newname.append(suffix.name, suffix.labels); return newname;}
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/7e1e3e31d95a2c7c87eee6939a0d9e99b4864664/Name.java/clean/org/xbill/DNS/Name.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11361, 12, 461, 1633, 16, 1770, 3758, 13, 1216, 1770, 10703, 3708, 503, 288, 202, 430, 261, 3239, 18, 291, 10368, 10756, 202, 202, 2463, 261, 3239, 1769, 202, 461, 26722, 273, 394, 1770, 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, 11361, 12, 461, 1633, 16, 1770, 3758, 13, 1216, 1770, 10703, 3708, 503, 288, 202, 430, 261, 3239, 18, 291, 10368, 10756, 202, 202, 2463, 261, 3239, 1769, 202, 461, 26722, 273, 394, 1770, 5621,...
if (file.getName().equals(IProjectDescription.DESCRIPTION_FILE_NAME))
if (file.getName().equals( IProjectDescription.DESCRIPTION_FILE_NAME))
private void collectProjectFiles(Collection files, File directory) { File[] contents = directory.listFiles(); for (int i = 0; i < contents.length; i++) { File file = contents[i]; if (file.isDirectory()) collectProjectFiles(files, file); else { if (file.getName().equals(IProjectDescription.DESCRIPTION_FILE_NAME)) files.add(file); } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/320f342281f01d0eab3a23189cdf15882a2124b5/WizardProjectsImportPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3274, 4109, 2697, 12, 2532, 1390, 16, 1387, 1867, 13, 288, 202, 202, 812, 8526, 2939, 273, 1867, 18, 1098, 2697, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3274, 4109, 2697, 12, 2532, 1390, 16, 1387, 1867, 13, 288, 202, 202, 812, 8526, 2939, 273, 1867, 18, 1098, 2697, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, ...
toOmit.put(track, track); playList.add(track); }
toOmit.add(track); playList.add(track);
public synchronized Track chooseTrack() { int playListLength = trackDatabase.getPlayListLength(); int unratedPlayListRatio = trackDatabase.getUnratedPlayListRatio();//Added by EBD - 11.09.2003//Maybe use ceiling instead of round? int unratedPlayListCount = (int)Math.round(((double)playListLength) * (((double)unratedPlayListRatio) / 100.0)); // Remove the track we've just played if necessary. if (playListIndex < playList.size()) { Track track = (Track) playList.get(playListIndex); if (!track.isOnPlayList()) { playList.remove(playListIndex); // Subtract one from the index because it'll get incremented later. playListIndex--; } } // Remove extra unwanted items. while (playList.size() > playListLength) playList.remove(playList.size() - 1); // Maintain a 'toOmit' hash table, which is used to make the choosing // of tracks not choose ones we have already got on the list. Hashtable toOmit = new Hashtable(); int noOfUnrated = 0; for (int i = 0; i < playList.size(); i++) { Track track = (Track) playList.get(i); if (!track.isOnPlayList()) { if (track.getRating() == 0) { playList.remove(i); if (i < playListIndex) --playListIndex; } } else { toOmit.put(track, track); if (!track.isRated()) noOfUnrated++; } } // Loop around one time for each track which needs to be added to the // play list. Don't worry too much if we don't exactly that number of // tracks because it will likely get one next time around. for (int i = playListLength - playList.size(); i > 0; i--) { synchronized (trackDatabase) { Track track = null;/** * Modified by Eric Dalquist - 11.09.2003 * * Now multiple unrated tracks can be selected. */ if (noOfUnrated <= unratedPlayListCount && playList.size() != 0) track = trackDatabase.chooseUnratedTrack(random, toOmit); if (track == null) track = trackDatabase.chooseTrack(random, toOmit); if (track != null) { if (!track.isRated()) noOfUnrated++; toOmit.put(track, track); playList.add(track); } } } int size = playList.size(); if (size < 1) return null; if (playListIndex >= size) playListIndex = 0; // // Make sure the track you select isn't the same as the track // that was previously played // Track selectedTrack; if (size == 1) { selectedTrack = (Track) playList.get(0); } else { int currentIndex = playListIndex; do { if (++playListIndex >= size) playListIndex = 0; selectedTrack = (Track) playList.get(playListIndex); if (selectedTrack != lastPlayedTrack) break; } while (playListIndex != currentIndex); } lastPlayedTrack = selectedTrack; System.out.println("---Play list---"); for (int i = 0; i < playList.size(); i++) { Track track = (Track) playList.get(i); if (i == playListIndex) System.out.print("* "); System.out.println(track.toString()); } return selectedTrack; }
11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/81ff79b34cf34b3c59d32a6d086c23c59ca830c5/PlayListManager.java/clean/trunk/irate/irate/client/PlayListManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 11065, 9876, 4402, 1435, 288, 565, 509, 6599, 682, 1782, 273, 3298, 4254, 18, 588, 11765, 682, 1782, 5621, 565, 509, 640, 86, 690, 11765, 682, 8541, 273, 3298, 4254, 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, 282, 1071, 3852, 11065, 9876, 4402, 1435, 288, 565, 509, 6599, 682, 1782, 273, 3298, 4254, 18, 588, 11765, 682, 1782, 5621, 565, 509, 640, 86, 690, 11765, 682, 8541, 273, 3298, 4254, 18, 588, ...
response.setContentLength(length);
response.setContentLength(bytes.length);
public static void streamContentToBrowser(HttpServletResponse response, InputStream in, int length, String contentType) throws IOException { // tell the browser not the cache setResponseBrowserProxyNoCache(response); // set the response info response.setContentLength(length); if (contentType != null) { response.setContentType(contentType); } // stream the content OutputStream out = response.getOutputStream(); try { streamContent(out, in, length); } catch (IOException e) { out.close(); throw e; } // close the servlet output stream out.flush(); out.close(); }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/137ab48677dd551defb2a479e3477daa90bea93e/UtilHttp.java/buggy/framework/base/src/base/org/ofbiz/base/util/UtilHttp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1407, 1350, 774, 9132, 12, 2940, 29910, 766, 16, 5037, 316, 16, 509, 769, 16, 514, 5064, 13, 1216, 1860, 288, 3639, 368, 9276, 326, 4748, 486, 326, 1247, 3639, 16044, 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, 377, 1071, 760, 918, 1407, 1350, 774, 9132, 12, 2940, 29910, 766, 16, 5037, 316, 16, 509, 769, 16, 514, 5064, 13, 1216, 1860, 288, 3639, 368, 9276, 326, 4748, 486, 326, 1247, 3639, 16044, 91...
public void removeRow(int row) {
public void removeRow(int row) {
public void removeRow(int row) { dataVector.remove(row); fireTableRowsDeleted(row,row); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTableModel.java/clean/core/src/classpath/javax/javax/swing/table/DefaultTableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 1999, 12, 474, 1027, 13, 288, 202, 202, 892, 5018, 18, 4479, 12, 492, 1769, 565, 4452, 1388, 4300, 7977, 12, 492, 16, 492, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 1999, 12, 474, 1027, 13, 288, 202, 202, 892, 5018, 18, 4479, 12, 492, 1769, 565, 4452, 1388, 4300, 7977, 12, 492, 16, 492, 1769, 225, 289, 2, -100, -100, -100, -1...
this.autoCommit = autoCommit;
throw new UnsupportedOperationException();
public void setAutoCommit (boolean autoCommit) { this.autoCommit = autoCommit; }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/6c301d16144a33fc9826448eb21601e47a876c47/AggregatedLayoutManager.java/buggy/source/org/jasig/portal/layout/alm/AggregatedLayoutManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21780, 5580, 261, 6494, 225, 3656, 5580, 13, 288, 202, 202, 2211, 18, 6079, 5580, 273, 3656, 5580, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 21780, 5580, 261, 6494, 225, 3656, 5580, 13, 288, 202, 202, 2211, 18, 6079, 5580, 273, 3656, 5580, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
final void pushOuterMethodStack(VirtualStack vstack) { vstack.pushAll(outerMethodStack);
final void pushOuterMethodStack(ItemFactory ifac, VirtualStack vstack) { vstack.pushAll(ifac, outerMethodStack);
final void pushOuterMethodStack(VirtualStack vstack) { vstack.pushAll(outerMethodStack); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e304bedac9ab86f88bdb27ffd782a9777505c449/InlinedMethodInfo.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/InlinedMethodInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 918, 1817, 15040, 1305, 2624, 12, 6466, 2624, 19510, 13, 288, 202, 202, 90, 3772, 18, 6206, 1595, 12, 14068, 1305, 2624, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 6385, 918, 1817, 15040, 1305, 2624, 12, 6466, 2624, 19510, 13, 288, 202, 202, 90, 3772, 18, 6206, 1595, 12, 14068, 1305, 2624, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, ...
JComboBox box = createNewComboBox(); box.setModel(model); return box; }
JComboBox box = createNewComboBox(); box.setModel(model); return box; }
protected JComboBox createNewComboBox(ComboBoxModel model) { JComboBox box = createNewComboBox(); box.setModel(model); return box; }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/1ca92818155f3e0a4aed29e15c396b3c749e2b10/SwingFormModel.java/buggy/src/org/springframework/richclient/forms/SwingFormModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 22199, 15291, 22199, 12, 22199, 1488, 938, 13, 288, 3639, 804, 22199, 3919, 273, 15291, 22199, 5621, 3639, 3919, 18, 542, 1488, 12, 2284, 1769, 3639, 327, 3919, 31, 565, 289, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 22199, 15291, 22199, 12, 22199, 1488, 938, 13, 288, 3639, 804, 22199, 3919, 273, 15291, 22199, 5621, 3639, 3919, 18, 542, 1488, 12, 2284, 1769, 3639, 327, 3919, 31, 565, 289, 2...
if ((_uriType != Type.NodeSetDTM) && (_uriType != Type.String)) {
if ((_uriType != Type.NodeSet) && (_uriType != Type.String)) {
public Type typeCheck(SymbolTable stable) throws TypeCheckError { // At least one argument - two at most final int ac = argumentCount(); if ((ac < 1) || (ac > 2)) { ErrorMsg msg = new ErrorMsg("Illegal number of arguments "+ "to document() function"); throw new TypeCheckError(msg); } // Parse the first argument - the document URI _uri = argument(0); if (_uri instanceof LiteralExpr) { LiteralExpr expr = (LiteralExpr)_uri; if (expr.getValue().equals(Constants.EMPTYSTRING)) { Stylesheet stylesheet = getStylesheet(); if (stylesheet == null) { ErrorMsg msg = new ErrorMsg("Illegal argument "+ "to document() function"); throw new TypeCheckError(msg); } _uri = new LiteralExpr(stylesheet.getURL().toString(), Constants.EMPTYSTRING); } } _uriType = _uri.typeCheck(stable); if ((_uriType != Type.NodeSetDTM) && (_uriType != Type.String)) { _uri = new CastExpr(_uri, Type.String); } // Parse the second argument - the document URI base if (ac == 2) { _base = argument(1); if (!_base.typeCheck(stable).identicalTo(Type.NodeSetDTM)) { ErrorMsg msg = new ErrorMsg("Second argument to document() "+ "function must be a node-set."); throw new TypeCheckError(msg); } } return _type = Type.NodeSetDTM; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/f0eadbdddedfdd79ebf4f6c6de8e4fc82241e61f/DocumentCall.java/clean/src/org/apache/xalan/xsltc/compiler/DocumentCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1412, 618, 1564, 12, 5335, 1388, 14114, 13, 1216, 1412, 1564, 668, 288, 202, 759, 2380, 4520, 1245, 1237, 300, 2795, 622, 4486, 202, 6385, 509, 1721, 273, 1237, 1380, 5621, 202, 430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1412, 618, 1564, 12, 5335, 1388, 14114, 13, 1216, 1412, 1564, 668, 288, 202, 759, 2380, 4520, 1245, 1237, 300, 2795, 622, 4486, 202, 6385, 509, 1721, 273, 1237, 1380, 5621, 202, 430...
String[] uses = exports[j].getUses();
String[] uses = (String[]) exports[j].getExportPackageDescription().getDirective(Constants.USES_DIRECTIVE);
void addInitialGroupingConstraints(ResolverBundle[] bundles) { for (int i = 0; i < bundles.length; i++) { ResolverExport[] exports = bundles[i].getExportPackages(); for (int j = 0; j < exports.length; j++) { String[] uses = exports[j].getUses(); if (uses == null) continue; for (int k = 0; k < uses.length; k++) { ResolverExport exp = bundles[i].getExport(uses[k]); if (exp == null) continue; addConstraint(exports[j], exp); addTransitiveGroupingConstraints(exports[j], exp); } } } }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/cba4c973afe037bfd2ac93a0c8877d76f9a85f0a/GroupingChecker.java/buggy/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/GroupingChecker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 527, 4435, 21014, 4878, 12, 4301, 3405, 8526, 11408, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 11408, 18, 2469, 31, 277, 27245, 288, 1082, 202, 4301, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 527, 4435, 21014, 4878, 12, 4301, 3405, 8526, 11408, 13, 288, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 11408, 18, 2469, 31, 277, 27245, 288, 1082, 202, 4301, 61...
User newUser = userDatabase.createUser(newUserName); newUser.setPassword("pass1"); newUser.setFromAddress("fromAddress1"); newUser.setReplyToAddress("replyToAddress1"); User newUser2 = userDatabase.findUser(newUserName); assertTrue("Check username", newUserName.equals(newUser2.getUsername())); assertTrue("Check fromAddress", "fromAddress1".equals(newUser2.getFromAddress())); assertTrue("Check replyToAddress", "replyToAddress1".equals(newUser2.getReplyToAddress())); assertTrue("Check password", "pass1".equals(newUser2.getPassword())); assertNull("Check fullName", newUser2.getFullName()); generateUsers(3, subs, "08"); User newUser3 = userDatabase.findUser("08user1"); Subscription[] subscriptions = newUser3.getSubscriptions(); assertTrue ("Testing subscriptions length", subscriptions.length == subs); User newUser4 = userDatabase.findUser("08user1"); Subscription[] subscriptions2 = newUser4.getSubscriptions(); assertTrue ("Testing subscriptions length", subscriptions2.length == subs);
User newUser = userDatabase.createUser(newUserName); newUser.setPassword("pass1"); newUser.setFromAddress("fromAddress1"); newUser.setReplyToAddress("replyToAddress1"); User newUser2 = userDatabase.findUser(newUserName); assertTrue("Check username", newUserName.equals(newUser2.getUsername())); assertTrue("Check fromAddress", "fromAddress1".equals(newUser2.getFromAddress())); assertTrue("Check replyToAddress", "replyToAddress1".equals(newUser2.getReplyToAddress())); assertTrue("Check password", "pass1".equals(newUser2.getPassword())); assertNull("Check fullName", newUser2.getFullName()); generateUsers(3, subs, "08"); User newUser3 = userDatabase.findUser("08user1"); Subscription[] subscriptions = newUser3.getSubscriptions(); assertTrue ("Testing subscriptions length", subscriptions.length == subs); User newUser4 = userDatabase.findUser("08user1"); Subscription[] subscriptions2 = newUser4.getSubscriptions(); assertTrue ("Testing subscriptions length", subscriptions2.length == subs);
public void testCase08() throws Exception{ String newUserName = "newUser08"; int subs = 5; User newUser = userDatabase.createUser(newUserName); newUser.setPassword("pass1"); newUser.setFromAddress("fromAddress1"); newUser.setReplyToAddress("replyToAddress1"); // TODO fix me, this is not releasing the internal state on close // userDatabase.save(); // userDatabase.close(); // userDatabase.open(); User newUser2 = userDatabase.findUser(newUserName); assertTrue("Check username", newUserName.equals(newUser2.getUsername())); assertTrue("Check fromAddress", "fromAddress1".equals(newUser2.getFromAddress())); assertTrue("Check replyToAddress", "replyToAddress1".equals(newUser2.getReplyToAddress())); assertTrue("Check password", "pass1".equals(newUser2.getPassword())); assertNull("Check fullName", newUser2.getFullName()); generateUsers(3, subs, "08"); User newUser3 = userDatabase.findUser("08user1"); Subscription[] subscriptions = newUser3.getSubscriptions(); assertTrue ("Testing subscriptions length", subscriptions.length == subs); // userDatabase.save(); // userDatabase.close(); // userDatabase.open(); User newUser4 = userDatabase.findUser("08user1"); Subscription[] subscriptions2 = newUser4.getSubscriptions(); assertTrue ("Testing subscriptions length", subscriptions2.length == subs); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/1c9701ef0df49c47648fb6bcf65f7575186571d3/BaseTestUserDatabase.java/buggy/mailreader-dao/src/test/java/org/apache/struts/apps/mailreader/dao/BaseTestUserDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2449, 6840, 1435, 1216, 1185, 95, 3639, 514, 394, 15296, 273, 315, 2704, 1299, 6840, 14432, 3639, 509, 11630, 273, 1381, 31, 2398, 202, 565, 2177, 394, 1299, 273, 729, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2449, 6840, 1435, 1216, 1185, 95, 3639, 514, 394, 15296, 273, 315, 2704, 1299, 6840, 14432, 3639, 509, 11630, 273, 1381, 31, 2398, 202, 565, 2177, 394, 1299, 273, 729, 42...
} else if ( end < exonEnd ) { overlap = end - start;
} else if ( enda < endb ) { overlap = enda - starta;
private static int computeOverlap( int start, int end, int exonStart, int exonEnd ) { if ( exonStart > exonEnd ) throw new IllegalArgumentException( "Exon start must be before end" ); if ( start > end ) throw new IllegalArgumentException( "Start must be before end" ); log.debug( "Comparing query length " + ( end - start ) + ", location: " + start + "-->" + end + " to exon length " + ( exonEnd - exonStart ) + ", location: " + exonStart + "--->" + exonEnd ); int overlap = 0; if ( exonEnd < start || end < exonStart ) { log.debug( "Exon doesn't overlap" ); overlap = 0; } else if ( start <= exonStart ) { if ( end < exonEnd ) { overlap = end - exonStart; // overhang on the left } else { overlap = exonEnd - exonStart; // includes entire exon } } else if ( end < exonEnd ) { // entirely contained within exon. overlap = end - start; // length of our test sequence. } else { overlap = exonEnd - start; // overhang on the right } assert overlap >= 0 : "Negative overlap"; assert ( double ) overlap / ( double ) ( end - start ) <= 1.0 : "Overlap longer than sequence"; log.debug( "Overlap=" + overlap ); return overlap; }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/f95984592ab6cae0a89b2e6264c7a318aad6a040/SequenceManipulation.java/buggy/gemma-core/src/main/java/ubic/gemma/analysis/sequence/SequenceManipulation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 3671, 17411, 12, 509, 787, 16, 509, 679, 16, 509, 25668, 1685, 16, 509, 25668, 1638, 262, 288, 3639, 309, 261, 25668, 1685, 405, 25668, 1638, 262, 604, 394, 2754, 12, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 3671, 17411, 12, 509, 787, 16, 509, 679, 16, 509, 25668, 1685, 16, 509, 25668, 1638, 262, 288, 3639, 309, 261, 25668, 1685, 405, 25668, 1638, 262, 604, 394, 2754, 12, 31...
setToolTipText("Mark Complete"); setId(ID); setImageDescriptor(TaskListImages.TASK_COMPLETE);
setToolTipText("Mark Complete"); setId(ID); setImageDescriptor(TaskListImages.TASK_COMPLETE);
public MarkTaskCompleteAction(TaskListView view) { this.view = view; setText("Mark Complete"); setToolTipText("Mark Complete"); setId(ID); setImageDescriptor(TaskListImages.TASK_COMPLETE); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1abdb20ca0cde925cfb80d10d584d2fd323bcfb0/MarkTaskCompleteAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/MarkTaskCompleteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6622, 2174, 6322, 1803, 12, 2174, 682, 1767, 1476, 13, 288, 202, 202, 2211, 18, 1945, 273, 1476, 31, 202, 202, 542, 1528, 2932, 3882, 14575, 8863, 3639, 444, 29250, 1528, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6622, 2174, 6322, 1803, 12, 2174, 682, 1767, 1476, 13, 288, 202, 202, 2211, 18, 1945, 273, 1476, 31, 202, 202, 542, 1528, 2932, 3882, 14575, 8863, 3639, 444, 29250, 1528, 2932, ...
public void performDefaultAction(PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XFORMS_SUBMIT.equals(eventName) || XFormsEvents.XXFORMS_SUBMIT.equals(eventName)) { // 11.1 The xforms-submit Event // Bubbles: Yes / Cancelable: Yes / Context Info: None containingDocument.setGotSubmission(true); boolean isDeferredSubmissionSecondPass = false; XFormsSubmitErrorEvent submitErrorEvent = null; boolean submitDone = false; final long submissionStartTime = XFormsServer.logger.isDebugEnabled() ? System.currentTimeMillis() : 0; try { // Make sure submission element info is extracted extractSubmissionElement(); final boolean isReplaceAll = replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isReplaceInstance = replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_INSTANCE); final boolean isHandlingOptimizedGet = XFormsUtils.isOptimizeGetAllSubmission() && XFormsSubmissionUtils.isGet(method) && isReplaceAll; //noinspection UnnecessaryLocalVariable final boolean isDeferredSubmission = (isReplaceAll || isReplaceInstance && containingDocument.getXFormsControls().getCurrentControlsState().isHasUpload()) && !isHandlingOptimizedGet; final boolean isDeferredSubmissionFirstPass = isDeferredSubmission && XFormsEvents.XFORMS_SUBMIT.equals(eventName); isDeferredSubmissionSecondPass = isDeferredSubmission && !isDeferredSubmissionFirstPass; // here we get XXFORMS_SUBMIT final XFormsControls xformsControls = containingDocument.getXFormsControls(); // Get node to submit final Node currentNode; { // TODO FIXME: the submission element is not a control, so we shouldn't use XFormsControls. // "The default value is '/'." final String refAttribute = (submissionElement.attributeValue("ref") != null) ? submissionElement.attributeValue("ref") : "/"; xformsControls.resetBindingContext(); xformsControls.pushBinding(pipelineContext, refAttribute, null, null, model.getEffectiveId(), null, submissionElement, Dom4jUtils.getNamespaceContextNoDefault(submissionElement)); // Check that we have a current node and that it is pointing to a document or an element final NodeInfo currentNodeInfo = xformsControls.getCurrentSingleNode(); if (currentNodeInfo == null) throw new OXFException("Empty single-node binding on xforms:submission for submission id: " + id); if (!(currentNodeInfo instanceof DocumentInfo || currentNodeInfo.getNodeKind() == org.w3c.dom.Document.ELEMENT_NODE)) { throw new OXFException("xforms:submission: single-node binding must refer to a document node or an element."); } // For now, we can't submit a read-only instance (but we could in the future) if (!(currentNodeInfo instanceof NodeWrapper)) throw new OXFException("xforms:submission: submitting a read-only instance is not yet implemented."); currentNode = (Node) ((NodeWrapper) currentNodeInfo).getUnderlyingNode(); } // Evaluate AVTs // TODO FIXME: the submission element is not a control, so we shouldn't use XFormsControls. resolvedAction = XFormsUtils.resolveAttributeValueTemplates(pipelineContext, xformsControls.getCurrentSingleNode(), null, xformsControls.getFunctionLibrary(), submissionElement, avtAction); resolvedXXFormsUsername = XFormsUtils.resolveAttributeValueTemplates(pipelineContext, xformsControls.getCurrentSingleNode(), null, xformsControls.getFunctionLibrary(), submissionElement, avtXXFormsUsername); resolvedXXFormsPassword = XFormsUtils.resolveAttributeValueTemplates(pipelineContext, xformsControls.getCurrentSingleNode(), null, xformsControls.getFunctionLibrary(), submissionElement, avtXXFormsPassword); final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); // TODO: Somewhere around here, check flags and doRecalculate() if needed final Document initialDocumentToSubmit; if (serialize && !isDeferredSubmissionSecondPass) { // Create document to submit final Document backupInstanceDocument = currentInstance.getInstanceDocument(); try { initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); currentInstance.setInstanceDocument(initialDocumentToSubmit, false); // Revalidate instance model.doRevalidate(pipelineContext); // TODO: Check if the validation state can really change. If so, find a solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) {// {// currentInstance.readOut();// } if (logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); } throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } finally { currentInstance.setInstanceDocument(backupInstanceDocument, false); } } else { initialDocumentToSubmit = null; } // Deferred submission: end of the first pass if (isDeferredSubmissionFirstPass) { // When replace="all", we wait for the submission of an XXFormsSubmissionEvent from the client containingDocument.setClientActiveSubmission(this); return; } final Document documentToSubmit; if (serialize && isDeferredSubmissionSecondPass) { // Handle uploaded files if any final Element filesElement = (event instanceof XXFormsSubmitEvent) ? ((XXFormsSubmitEvent) event).getFilesElement() : null; if (filesElement != null) { for (Iterator i = filesElement.elements().iterator(); i.hasNext();) { final Element parameterElement = (Element) i.next(); final String name = parameterElement.element("name").getTextTrim(); final Element valueElement = parameterElement.element("value"); final String value = valueElement.getTextTrim(); // An empty value likely means that the user did not select a file. In this case, we don't // want to override an existing value in the instance. Clearing the value in the instance // will have to be done by other means, like a "clear file" button. if (value.length() == 0) continue; final XFormsUploadControl uploadControl = (XFormsUploadControl) containingDocument.getObjectById(pipelineContext, name); if (uploadControl != null) { // in case of xforms:repeat, the name of the template will not match an existing control final String paramValueType = Dom4jUtils.qNameToexplodedQName(Dom4jUtils.extractAttributeValueQName(valueElement, XMLConstants.XSI_TYPE_QNAME)); final String filename = parameterElement.element("filename").getTextTrim(); final String mediatype = parameterElement.element("content-type").getTextTrim(); final String size = parameterElement.element("content-length").getTextTrim(); // Set value of uploaded file into the instance (will be xs:anyURI or xs:base64Binary) uploadControl.setExternalValue(pipelineContext, value, paramValueType, !isReplaceAll); // Handle filename, mediatype and size if necessary uploadControl.setFilename(pipelineContext, filename); uploadControl.setMediatype(pipelineContext, mediatype); uploadControl.setSize(pipelineContext, size); } } } // Create document to submit final Document backupInstanceDocument = currentInstance.getInstanceDocument(); try { documentToSubmit = createDocumentToSubmit(currentNode, currentInstance); currentInstance.setInstanceDocument(documentToSubmit, false); // Revalidate instance model.doRevalidate(pipelineContext); // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(documentToSubmit); if (!instanceSatisfiesValidRequired) { // currentInstance.readOut();// FIXME: DEBUG throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } finally { currentInstance.setInstanceDocument(backupInstanceDocument, false); } } else { // Don't recreate document documentToSubmit = initialDocumentToSubmit; } // Fire xforms-submit-serialize containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitSerializeEvent(XFormsModelSubmission.this)); // TODO: what follows must be executed as the default action of xforms-submit-serialize // Serialize // To support: application/xml, application/x-www-form-urlencoded, multipart/related, multipart/form-data final byte[] messageBody; final String queryString; final String defaultMediatype; { if (method.equals("multipart-post")) { if (!serialize) throw new OXFException("xforms:submission: method is incompatible with serialize=\"false\": " + method); // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { if (!serialize) throw new OXFException("xforms:submission: method is incompatible with serialize=\"false\": " + method); // TODO// final MultipartFormDataBuilder builder = new MultipartFormDataBuilder(, , null); throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { if (!serialize) throw new OXFException("xforms:submission: method is incompatible with serialize=\"false\": " + method); // Perform "application/x-www-form-urlencoded" serialization queryString = null; messageBody = createWwwFormUrlEncoded(documentToSubmit).getBytes("UTF-8");// the resulting string is already ASCII defaultMediatype = "application/x-www-form-urlencoded"; } else if (XFormsSubmissionUtils.isPost(method) || XFormsSubmissionUtils.isPut(method)) { if (!serialize) throw new OXFException("xforms:submission: method is incompatible with serialize=\"false\": " + method); // Serialize XML to a stream of bytes try { final Transformer identity = TransformerUtils.getIdentityTransformer(); TransformerUtils.applyOutputProperties(identity, "xml", version, null, null, encoding, omitxmldeclaration, standalone, indent, 4); // TODO: use cdata-section-elements final ByteArrayOutputStream os = new ByteArrayOutputStream(); identity.transform(new DocumentSource(documentToSubmit), new StreamResult(os)); messageBody = os.toByteArray(); } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing instance to XML.", e); } queryString = null; defaultMediatype = "application/xml"; } else if (XFormsSubmissionUtils.isGet(method) || XFormsSubmissionUtils.isDelete(method)) { // Perform "application/x-www-form-urlencoded" serialization queryString = serialize ? createWwwFormUrlEncoded(documentToSubmit) : null; messageBody = null; defaultMediatype = null; } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); // Get URL type final String urlType = submissionElement.attributeValue(new QName("url-type", new Namespace("f", XMLConstants.OPS_FORMATTING_URI))); final ExternalContext.Request request = externalContext.getRequest(); // Result information ConnectionResult connectionResult = null; final long externalSubmissionStartTime = XFormsServer.logger.isDebugEnabled() ? System.currentTimeMillis() : 0; try { if (isReplaceInstance && resolvedAction.startsWith("test:")) { // Test action if (messageBody == null) throw new OXFException("Action 'test:' can only be used with POST method."); connectionResult = new ConnectionResult(null); connectionResult.resultCode = 200; connectionResult.resultHeaders = new HashMap(); connectionResult.lastModified = 0; connectionResult.resultMediaType = "application/xml"; connectionResult.dontHandleResponse = false; connectionResult.setResultInputStream(new ByteArrayInputStream(messageBody)); } else if (isHandlingOptimizedGet) { // GET with replace="all": we can optimize and tell the client to just load the URL connectionResult = doOptimizedGet(pipelineContext, queryString, xxfShowProgress); } else if (!NetUtils.urlHasProtocol(resolvedAction) && ((request.getContainerType().equals("portlet") && !"resource".equals(urlType)) || (request.getContainerType().equals("servlet") && (XFormsUtils.isOptimizeLocalSubmission() || isMethodOptimizedLocalSubmission()) && isReplaceAll))) { // This is an "optimized" submission, i.e. one that does not use an actual // protocol handler to access the resource // NOTE: Optimizing with include() for servlets doesn't allow detecting // errors caused by the included resource, so we don't allow this for now. // NOTE: For portlets, paths are served directly by the portlet, NOT as // resources. // Current limitations: // o Portlets cannot access resources outside the portlet except by using absolute URLs (unless f:url-type="resource") // o Servlets cannot access resources on the same server but not in the current application // except by using absolute URLs final URI resolvedURI = XFormsUtils.resolveXMLBase(submissionElement, resolvedAction); connectionResult = XFormsSubmissionUtils.doOptimized(pipelineContext, externalContext, this, method, resolvedURI.toString(), (mediatype == null) ? defaultMediatype : mediatype, isReplaceAll, messageBody, queryString); } else { // This is a regular remote submission going through a protocol handler // Absolute URLs or absolute paths are allowed to a local servlet String resolvedURL = XFormsUtils.resolveURL(containingDocument, pipelineContext, submissionElement, false, resolvedAction); if (request.getContainerType().equals("portlet") && "resource".equals(urlType) && !NetUtils.urlHasProtocol(resolvedURL)) { // In this case, we have to prepend the complete server path resolvedURL = request.getScheme() + "://" + request.getServerName() + (request.getServerPort() > 0 ? ":" + request.getServerPort() : "") + resolvedURL; } connectionResult = XFormsSubmissionUtils.doRegular(externalContext, method, resolvedURL, resolvedXXFormsUsername, resolvedXXFormsPassword, (mediatype == null) ? defaultMediatype : mediatype, messageBody, queryString); } if (!connectionResult.dontHandleResponse) { // Handle response if (connectionResult.resultCode >= 200 && connectionResult.resultCode < 300) {// accept any success code (in particular "201 Resource Created") // Sucessful response if (connectionResult.hasContent()) { // There is a body if (isReplaceAll) { // When we get here, we are in a mode where we need to send the reply // directly to an external context, if any. // "the event xforms-submit-done is dispatched" containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response if (connectionResult.resultHeaders != null) { for (Iterator i = connectionResult.resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final String headerValue = (String) currentEntry.getValue(); // NOTE: We only get one header value per name if (headerName != null && headerValue != null) { response.addHeader(headerName, headerValue); } } } // Forward content to response NetUtils.copyStream(connectionResult.getResultInputStream(), response.getOutputStream()); } else if (isReplaceInstance) { if (ProcessorUtils.isXMLContentType(connectionResult.resultMediaType)) { // Handling of XML media type try { // Read stream into Document final Document resultingInstanceDocument = Dom4jUtils.read(connectionResult.getResultInputStream()); // Set new instance document to replace the one submitted final XFormsInstance replaceInstance; { if (xxfReplaceInstanceId != null) replaceInstance = containingDocument.findInstance(xxfReplaceInstanceId); else if (replaceInstanceId != null) replaceInstance = model.getInstance(replaceInstanceId); else replaceInstance = currentInstance; } if (replaceInstance == null) { // Replacement instance was specified but not found // TODO: XForms 1.1 won't dispatch xforms-binding-exception here containingDocument.dispatchEvent(pipelineContext, new XFormsBindingExceptionEvent(XFormsModelSubmission.this)); } else { // Set new instance replaceInstance.setInstanceDocument(resultingInstanceDocument, true); // Mark all values as changed so that refresh sends appropriate events XFormsUtils.markAllValuesChanged(replaceInstance); // Handle new instance and associated events replaceInstance.getModel().handleNewInstanceDocuments(pipelineContext); // Notify that submission is done submitDone = true; } } catch (Exception e) { submitErrorEvent = createErrorEvent(connectionResult); throw new OXFException("xforms:submission: exception while serializing XML to instance.", e); } } else { // Other media type submitErrorEvent = createErrorEvent(connectionResult); throw new OXFException("Body received with non-XML media type for replace=\"instance\": " + connectionResult.resultMediaType); } } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_NONE)) { // Just notify that processing is terminated submitDone = true; } else { submitErrorEvent = createErrorEvent(connectionResult); throw new OXFException("xforms:submission: invalid replace attribute: " + replace); } } else { // There is no body, notify that processing is terminated submitDone = true; } } else if (connectionResult.resultCode == 302 || connectionResult.resultCode == 301) { // Got a redirect final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response // TODO: this is duplicated from above if (connectionResult.resultHeaders != null) { for (Iterator i = connectionResult.resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward redirect response.setStatus(connectionResult.resultCode); } else { // Error code received submitErrorEvent = createErrorEvent(connectionResult); throw new OXFException("Error code received when submitting instance: " + connectionResult.resultCode); } } } finally { // Clean-up if (connectionResult != null) { connectionResult.close(); } // Log time spent in submission if needed if (XFormsServer.logger.isDebugEnabled()) { final long submissionTime = System.currentTimeMillis() - externalSubmissionStartTime; XFormsServer.logger.debug("XForms - external submission time (including handling returned body): " + submissionTime); } } } catch (Throwable e) { if (isDeferredSubmissionSecondPass && XFormsUtils.isOptimizePostAllSubmission()) { // It doesn't serve any purpose here to dispatch an event, so we just propagate the exception throw new OXFException(e); } else { // Any exception will cause an error event to be dispatched if (submitErrorEvent == null) submitErrorEvent = new XFormsSubmitErrorEvent(XFormsModelSubmission.this, resolvedAction); submitErrorEvent.setThrowable(e); containingDocument.dispatchEvent(pipelineContext, submitErrorEvent); } } finally { // If submission succeeded, dispatch success event if (submitDone) { containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } // Log total time spent in submission if needed if (XFormsServer.logger.isDebugEnabled()) { final long submissionTime = System.currentTimeMillis() - submissionStartTime; XFormsServer.logger.debug("XForms - total submission time: " + Long.toString(submissionTime)); } } } else if (XFormsEvents.XFORMS_BINDING_EXCEPTION.equals(eventName)) { // The default action for this event results in the following: Fatal error. throw new OXFException("Binding exception."); } }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/a7d2dd5143b78ea5734dbca96f53819d679e98d7/XFormsModelSubmission.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3073, 1868, 1803, 12, 8798, 1042, 5873, 1042, 16, 1139, 18529, 1133, 871, 13, 288, 3639, 727, 514, 7933, 273, 871, 18, 588, 24320, 5621, 3639, 309, 261, 60, 18529, 3783, 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, 3073, 1868, 1803, 12, 8798, 1042, 5873, 1042, 16, 1139, 18529, 1133, 871, 13, 288, 3639, 727, 514, 7933, 273, 871, 18, 588, 24320, 5621, 3639, 309, 261, 60, 18529, 3783, 18, ...
{ logger.info("Reading config file from " + configFile); System.out.println("readConfiguration:" + configFile); AtomTypeConfigurator atc = null;
{ logger.info("Reading config file from " + configFile); AtomTypeConfigurator atc = null;
private void readConfiguration(String configFile) { logger.info("Reading config file from " + configFile); System.out.println("readConfiguration:" + configFile); AtomTypeConfigurator atc = null; InputStream ins = null; { /* * mth 2003 05 05 * Egon, I'm leaving these comments in here so that you can * clean them up. * The code that was here was breaking the applet. * In addition, I do not understand the purpose of some * of the tests ... let's talk */ // try to see if this configFile is an actual file System.out.println("make a file"); File f = new File(configFile); System.out.println("made a file"); try { /* * mth 2003 05 05 * You cannot do this f.exists() test in an applet * ... security violation */ if (f.exists()) { System.out.println("it exists"); logger.debug("configFile is a File"); // what's next? try { System.out.println("trying as a FileInputStream"); ins = new FileInputStream(f); } catch (Exception exc) { logger.error(exc.toString()); } } } catch (Exception e) { System.out.println("exception raised testing file existence"); } if (ins == null) { System.out.println("it does not exist"); logger.debug("configFile must be a stream"); // assume it is a default config file in distro /* * this has to be this.getClass.getClassLoader.getResource, * getClass.getResource fails, elw * * mth 2003 05 05 * not sure in what context it is failing * If you want to look for files which are in the same * directory as this file, then you don't want to * put in the call to getClassLoader */ System.out.println("made it to getResourceAsStream:" + configFile); ins = getClass().getResourceAsStream(configFile); } if (ins == null) { logger.error("There was a problem getting a stream for " + configFile); System.out.println("failed getResourceAsStream"); } } try { /* * This class loading mechanism is used to not depend on JSX, * which is needed for old JVM's like in older browsers. */ if (configFile.endsWith("txt")) { atc = (AtomTypeConfigurator) this.getClass().getClassLoader(). loadClass("org.openscience.cdk.tools.TXTBasedAtomTypeConfigurator"). newInstance(); } else if (configFile.endsWith("xml")) { atc = (AtomTypeConfigurator) this.getClass().getClassLoader(). loadClass("org.openscience.cdk.tools.JSXBasedAtomTypeConfigurator"). newInstance(); } logger.debug("Instantiated a AtomTypeConfigurator of class: " + atc.getClass().getName()); } catch (Exception exc) { logger.error("Could not get instance of AtomTypeConfigurator for " + configFile); } if (atc != null) { atc.setInputStream(ins); try { atomTypes = atc.readAtomTypes(); } catch (Exception exc) { logger.error("Could not read AtomType's from file due to: " + exc.toString()); } } else { logger.debug("AtomTypeConfigurator was null!"); atomTypes = new Vector(); } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/ce72e272e817113dbe1977ae4e03ff8d50b3763a/AtomTypeFactory.java/buggy/src/org/openscience/cdk/tools/AtomTypeFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 855, 1750, 12, 780, 12247, 13, 225, 288, 565, 1194, 18, 1376, 2932, 15714, 642, 585, 628, 315, 397, 12247, 1769, 565, 2332, 18, 659, 18, 8222, 2932, 896, 1750, 2773, 397, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 1750, 12, 780, 12247, 13, 225, 288, 565, 1194, 18, 1376, 2932, 15714, 642, 585, 628, 315, 397, 12247, 1769, 565, 2332, 18, 659, 18, 8222, 2932, 896, 1750, 2773, 397, 122...
return new Float(1000);
return new Float(10000000);
protected Float getMaximumInternal() { return new Float(1000); }
10874 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10874/d333542e47655e57de9288e2cc6e9f20ebf01bb6/NcAlgorithm.java/buggy/uk/ac/sanger/artemis/plot/NcAlgorithm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5450, 25194, 3061, 1435, 282, 288, 565, 327, 394, 5450, 12, 21, 17877, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5450, 25194, 3061, 1435, 282, 288, 565, 327, 394, 5450, 12, 21, 17877, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public ITypeInfo getEnclosingType(int[] kinds);
public ITypeInfo getEnclosingType();
public ITypeInfo getEnclosingType(int[] kinds);
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/ITypeInfo.java/clean/core/org.eclipse.cdt.core/browser/org/eclipse/cdt/core/browser/ITypeInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 17305, 336, 21594, 559, 12, 474, 8526, 21961, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 17305, 336, 21594, 559, 12, 474, 8526, 21961, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
rc = (RequestCompanion)_requests.remove( args.argv(1) ) ;
rc = (RequestCompanion)_requests.get( args.argv(1) ) ;
private synchronized void processServerReply( Args args ){ if( args.argc() < 2 ){ if(_debug)System.err.println( "Zero answer from server" ) ; return ; } RequestCompanion rc = null ; if( args.argv(0).equals( "ok" ) ){ rc = (RequestCompanion)_requests.remove( args.argv(1) ) ; if( rc instanceof QueryCompanion ){ QueryCompanion qc = (QueryCompanion)rc ; if( args.argc() < 3 ){ if(_debug)System.err.println( "Incomplet answer from server" ) ; return ; } qc.setReturnCode( 0 , args.argv(2) ) ; }else if( rc instanceof ListCompanion ){ ListCompanion lc = (ListCompanion)rc ; if( args.argc() < 2 ){ if(_debug)System.err.println( "Incomplet answer from server" ) ; return ; } if( args.argv(0).equals("ok") ){ lc.setReturnCode( 0 , "" ) ; }else{ int rcd = 33 ; if( args.argc() > 2 ){ try{ rcd = Integer.parseInt( args.argv(2) ) ; }catch(Exception e){} } String msg = "Error="+rcd ; if( args.argc() > 3 )msg = args.argv(3) ; lc.setReturnCode( rcd , msg ) ; } }else{ rc.setReturnCode( 99 , "PANIC : Unknown companion found" ) ; } synchronized( _pendingLock ){ _pending-- ; _pendingLock.notifyAll() ; } return ; }else if( args.argv(0).equals( "failed" ) ){ rc = (RequestCompanion)_requests.remove( args.argv(1) ) ; if( args.argc() < 4 ){ if(_debug)System.err.println( "Incomplet negative answer from server" ) ; return ; } rc.setReturnCode( Integer.parseInt(args.argv(2)) , args.argv(3) ) ; synchronized( _pendingLock ){ _pending-- ; _pendingLock.notifyAll() ; } return ; }else if( args.argv(0).equals( "OK" ) ){ if( args.argc() < 4 ){ // // REMOVEX request // if( args.argc() != 2 ){ System.err.println( "invalid OK from server (noId)" ) ; return ; } rc = (RequestCompanion)_requests.remove( args.argv(1) ) ; if( rc == null ){ System.err.println( "we were not waiting for this request : "+args.argv(1) ) ; return ; } synchronized( _pendingLock ){ rc.setReturnCode( 0 , "o.k." ); _pending-- ; _pendingLock.notifyAll() ; } return ; } rc = (RequestCompanion)_requests.get( args.argv(3) ) ; if( rc == null ){ System.err.println( "we were not waiting for this request : "+args.argv(3) ) ; return ; } rc.setServerId( args.argv(1) ) ; _requests.put( args.argv(1) , rc ) ; if( rc instanceof PutCompanion ){ PutCompanion pc = (PutCompanion)rc ; pc.setBfid( args.argv(2) ) ; }else if( rc instanceof GetCompanion ){ GetCompanion gc = (GetCompanion)rc ; gc.setSize( Long.parseLong( args.argv(2) ) ) ; } }else if( args.argv(0).equals( "BBACK" ) ){ String serverId = args.argv(1) ; String bfid = args.argv(2) ; String rcode = args.argv(3) ; String rmsg = args.argv(4) ; rc = (RequestCompanion)_requests.remove( serverId ) ; if( rc == null ){ System.err.println( "server id not found : "+serverId ) ; return ; } if( _requests.remove( rc.getId() ) == null ){ System.err.println( "client id not found : "+rc.getId() ) ; return ; } synchronized( _pendingLock ){ rc.setReturnCode( Integer.parseInt(rcode) , rmsg ); _pending-- ; _pendingLock.notifyAll() ; } }else if( args.argv(0).equals( "NOK" ) ){ Enumeration e = _requests.elements() ; if( ! e.hasMoreElements() ){ System.err.println( "NOK arrived for non request" ) ; System.exit(66); } rc = (RequestCompanion)e.nextElement() ; rc.setReturnCode( Integer.parseInt(args.argv(1)) , args.argv(2) ); synchronized( _pendingLock ){ _pending-- ; _pendingLock.notifyAll() ; } return ; }else if( args.argv(0).equals( "CANCEL" )){ Enumeration e = _requests.elements() ; if( ! e.hasMoreElements() ){ System.err.println( "CANCEL arrived for non request" ) ; System.exit(66); } rc = (RequestCompanion)e.nextElement() ; rc.setReturnCode( Integer.parseInt(args.argv(2)) , args.argv(3) ); synchronized( _pendingLock ){ _pending-- ; _pendingLock.notifyAll() ; } return ; }else{ System.err.print( "Nok from server : " ) ; for( int i = 0 ; i < args.argc() ; i++ ) System.err.print( args.argv(i)+" ") ; System.err.println(""); synchronized( _pendingLock ){ _pending-- ; _pendingLock.notifyAll() ; } return ; } }
3665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3665/2fc49aea7c7c02676c48d15c769c436b4a9b1814/EuroSyncClient.java/buggy/gate/EuroSyncClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 3852, 918, 1207, 2081, 7817, 12, 6634, 833, 262, 95, 9079, 309, 12, 833, 18, 3175, 71, 1435, 411, 576, 262, 95, 540, 309, 24899, 4148, 13, 3163, 18, 370, 18, 8222, 12, 315, 7170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 3852, 918, 1207, 2081, 7817, 12, 6634, 833, 262, 95, 9079, 309, 12, 833, 18, 3175, 71, 1435, 411, 576, 262, 95, 540, 309, 24899, 4148, 13, 3163, 18, 370, 18, 8222, 12, 315, 7170...
public SubActionBars(final IActionBars parent, final IServiceLocator serviceLocator) { if (parent == null) { throw new NullPointerException("The parent cannot be null"); } this.parent = parent; this.serviceLocator = serviceLocator;
public SubActionBars(final IActionBars parent) { this(parent, null);
public SubActionBars(final IActionBars parent, final IServiceLocator serviceLocator) { if (parent == null) { throw new NullPointerException("The parent cannot be null"); //$NON-NLS-1$ } this.parent = parent; this.serviceLocator = serviceLocator; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b35e17885e49e88a0f1c7d1ccd08dda44663c277/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2592, 1803, 5190, 87, 12, 6385, 467, 1803, 5190, 87, 982, 16, 1082, 202, 6385, 467, 1179, 5786, 13580, 13, 288, 202, 202, 430, 261, 2938, 422, 446, 13, 288, 1082, 202, 12849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2592, 1803, 5190, 87, 12, 6385, 467, 1803, 5190, 87, 982, 16, 1082, 202, 6385, 467, 1179, 5786, 13580, 13, 288, 202, 202, 430, 261, 2938, 422, 446, 13, 288, 1082, 202, 12849, ...
public long getLastValidated(File jar){ long validated = 0L; try{ conn = getConnection(); String jarFileURL = jar.toURL().toExternalForm(); //System.out.println("[] getLastValidated "+jarFileURL); PreparedStatement stmt = conn.prepareStatement(_selectValidated); stmt.setString(1, jarFileURL); ResultSet results = stmt.executeQuery(); if (results.next()) { String version = results.getString(2); //System.out.println("[] version "+version); if (version == null || version.equals(getVersion())) { validated = results.getLong(1); //System.out.println("[] validated "+validated); } } } catch (Exception e){ // TODO:1: Log something... //e.printStackTrace(); } finally { try{conn.close();} catch (Exception e){} } return validated; }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/4f52760bc3704be4f698b6ed3a2b5ae33ca1fa83/ValidationTable.java/buggy/openejb1/modules/core/src/java/org/openejb/alt/config/ValidationTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 7595, 24258, 12, 812, 7334, 15329, 3639, 1525, 10266, 273, 374, 48, 31, 3639, 775, 95, 5411, 1487, 273, 6742, 5621, 5411, 514, 22588, 1785, 273, 7334, 18, 869, 1785, 7675, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 7595, 24258, 12, 812, 7334, 15329, 3639, 1525, 10266, 273, 374, 48, 31, 3639, 775, 95, 5411, 1487, 273, 6742, 5621, 5411, 514, 22588, 1785, 273, 7334, 18, 869, 1785, 7675, 869...
execute(next, nextContent);
executeHeader(next, nextContent);
public boolean hasNextChild( ) { if(!needUpdate) { return hasNext; } if(currentRunIn!=null) { if(currentRunIn.hasNextChild( )) { hasNext = true; needUpdate = false; return hasNext; } else { currentRunIn.close( ); } } currentRunIn = null; while(executor.hasNextChild( )) { IReportItemExecutor next = executor.getNextChild( ); IContent nextContent = next.execute( ); if(nextContent instanceof IListBandContent) { IListBandContent band = (IListBandContent)nextContent; if(repeat && (band.getBandType( )==IBandContent.BAND_HEADER || band.getBandType( )==IBandContent.BAND_GROUP_HEADER)) { execute(next, nextContent); next.close( ); next = new DOMReportItemExecutor(nextContent); next.execute( ); nextContent.getParent( ).getChildren( ).add( nextContent ); } if(next.hasNextChild( )) { currentRunIn = next; break; } } else { childExecutor = next; childContent = nextContent; break; } } if(currentRunIn!=null || childContent!=null) { hasNext = true; } else { hasNext = false; } needUpdate = false; return hasNext; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/b859db429494e9aee3f7db11c712b8daba034365/ListContainerExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/content/ListContainerExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 4564, 1763, 12, 262, 202, 202, 95, 1082, 202, 430, 12, 5, 14891, 1891, 13, 1082, 202, 95, 9506, 202, 2463, 4564, 31, 1082, 202, 97, 1082, 202, 430, 12, 2972, 1997, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 4564, 1763, 12, 262, 202, 202, 95, 1082, 202, 430, 12, 5, 14891, 1891, 13, 1082, 202, 95, 9506, 202, 2463, 4564, 31, 1082, 202, 97, 1082, 202, 430, 12, 2972, 1997, 38...
"<LocalElt>2</LocalElt></foo:LocalStrict>");
"<NoNSElt>2</NoNSElt></foo:LocalStrict>");
public void testLocalStrictLegal() throws Throwable { LocalStrictDocument doc = LocalStrictDocument.Factory .parse("<foo:LocalStrict " + " xmlns:foo=\"http://xbean/scomp/namespace/ElementWC\">" + "<LocalElt>2</LocalElt></foo:LocalStrict>"); if (!doc.validate(validateOptions)) { showErrors(); fail("test failed"); } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/6fb2092dc42215a3e86cd61e15efb4d667b2282e/ElementWC.java/buggy/v2/test/src/scomp/namespace/detailed/ElementWC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2042, 14809, 30697, 1435, 1216, 4206, 288, 3639, 3566, 14809, 2519, 997, 273, 3566, 14809, 2519, 18, 1733, 7734, 263, 2670, 2932, 32, 11351, 30, 2042, 14809, 315, 397, 7734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2042, 14809, 30697, 1435, 1216, 4206, 288, 3639, 3566, 14809, 2519, 997, 273, 3566, 14809, 2519, 18, 1733, 7734, 263, 2670, 2932, 32, 11351, 30, 2042, 14809, 315, 397, 7734...
{ List props = element.getStyleProperties( ); if ( props.isEmpty( ) ) return; writeSectionHeader( "Style Properties" ); writeln( "<p class=\"section-text\">" ); Iterator iter = props.iterator( ); while ( iter.hasNext( ) ) { PropertyDefn prop = (PropertyDefn) iter.next( ); write( makeMemberReference( null, prop.definedBy( ).getName( ), PROPERTY_NAME, prop.getName( ) ) ); if ( iter.hasNext( ) ) writeln( ", " ); } writeln( "\n</p>" ); }
{ List props = element.getStyleProperties( ); if ( props.isEmpty( ) ) return; writeSectionHeader( "Style Properties" ); writeln( "<p class=\"section-text\">" ); Iterator iter = props.iterator( ); while ( iter.hasNext( ) ) { PropertyDefn prop = (PropertyDefn) iter.next( ); write( makeMemberReference( null, prop.definedBy( ).getName( ), PROPERTY_NAME, prop.getName( ) ) ); if ( iter.hasNext( ) ) writeln( ", " ); } writeln( "\n</p>" ); }
private void writeStyleProperties( DocElement element ) { List props = element.getStyleProperties( ); if ( props.isEmpty( ) ) return; writeSectionHeader( "Style Properties" ); writeln( "<p class=\"section-text\">" ); Iterator iter = props.iterator( ); while ( iter.hasNext( ) ) { PropertyDefn prop = (PropertyDefn) iter.next( ); write( makeMemberReference( null, prop.definedBy( ).getName( ), PROPERTY_NAME, prop.getName( ) ) ); if ( iter.hasNext( ) ) writeln( ", " ); } writeln( "\n</p>" ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/2012a7e6d8d91844c6c396ee5b7b69a4345dea99/Generator.java/buggy/model/org.eclipse.birt.report.model/romdoc/src/org/eclipse/birt/doc/romdoc/Generator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 2885, 2297, 12, 3521, 1046, 930, 262, 202, 95, 202, 202, 682, 3458, 273, 930, 18, 588, 2885, 2297, 12, 11272, 202, 202, 430, 261, 3458, 18, 291, 1921, 12, 262, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 2885, 2297, 12, 3521, 1046, 930, 262, 202, 95, 202, 202, 682, 3458, 273, 930, 18, 588, 2885, 2297, 12, 11272, 202, 202, 430, 261, 3458, 18, 291, 1921, 12, 262, 2...
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException { File test = new File(path); if (test.isDirectory()) { DirectoryScanner ds = new DirectoryScanner(); ds.setIncludes(includes); ds.setExcludes(excludes); ds.setBasedir(new File(path)); ds.setCaseSensitive(casesensitive); ds.scan(); String[] files = ds.getIncludedFiles(); String[] dirs = ds.getIncludedDirectories(); /* Old buggy code String newRelativePath = null; String absolutBasePath = test.getParentFile().getAbsolutePath(); String absolutPath = test.getAbsolutePath(); String absolutFilePath = null; int copyPathFrom = absolutBasePath.length() + 1; for (int i = 0; i < files.length; i++) { File file = new File(absolutPath + File.separator + files[i]); absolutFilePath = file.getParentFile().getAbsolutePath(); newRelativePath = relPath + File.separator + absolutFilePath.substring(copyPathFrom); //FIX ME: the override for fileset is by default true, needs to be changed addFile(file, newRelativePath, targetOs, true, list); } */ // New working code (for files) String filePath, instPath, expPath; int pathLimit; File file; for (int i = 0; i < files.length; ++i) { filePath = path + File.separator + files[i]; expPath = relPath + File.separator + files[i]; file = new File(filePath); pathLimit = expPath.indexOf(file.getName()); if (pathLimit > 0) instPath = expPath.substring(0, pathLimit); else instPath = relPath; addFile(file, instPath, osList, override, list); } // Empty directories are left by the previous code section, so we need to // take care of them for (int i = 0; i < dirs.length; ++i) { expPath = path + File.separator + dirs[i]; File dir = new File(expPath); if (dir.list().length == 0) { instPath = relPath + File.separator + dirs[i]; pathLimit = instPath.indexOf(dir.getName()); instPath = instPath.substring(0, pathLimit); addFile(dir, instPath, osList, override, list); } } } else throw new CompilerException("\"dir\" attribute of fileset is not valid: " + path); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 18671, 694, 12, 780, 589, 16, 514, 8526, 6104, 16, 514, 8526, 13644, 16, 18701, 514, 20282, 16, 987, 1140, 682, 16, 2407, 666, 16, 11794, 1250, 6088, 6536, 16, 509, 3849, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 18671, 694, 12, 780, 589, 16, 514, 8526, 6104, 16, 514, 8526, 13644, 16, 18701, 514, 20282, 16, 987, 1140, 682, 16, 2407, 666, 16, 11794, 1250, 6088, 6536, 16, 509, 3849, 13,...
} else if (type.equals("selectFromChemObject")) {
} else if (type.equals("selectMolecule")) { ChemObject object = getSource(event); if (object instanceof Atom) { renderModel.setSelectedPart(ChemModelManipulator.getRelevantAtomContainer(jcpModel.getChemModel(),(Atom)object)); } else if (object instanceof Bond) { renderModel.setSelectedPart(ChemModelManipulator.getRelevantAtomContainer(jcpModel.getChemModel(),(Bond)object)); } else { logger.warn("selectMolecule not defined for the calling object ", object); } jcpModel.fireChange(); } else if (type.equals("selectFromChemObject")) {
public void actionPerformed(ActionEvent event) { // learn some stuff about event logger.debug("Event source: ", event.getSource().getClass().getName()); logger.debug(" ChemObject: ", getSource(event)); JChemPaintModel jcpModel = jcpPanel.getJChemPaintModel(); Renderer2DModel renderModel = jcpModel.getRendererModel(); ChemModel chemModel = jcpModel.getChemModel(); if (type.equals("cut")) { Atom atomInRange = null; ChemObject object = getSource(event); logger.debug("Source of call: ", object); if (object instanceof Atom) { atomInRange = (Atom) object; } else { atomInRange = renderModel.getHighlightedAtom(); } if (atomInRange != null) { ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, atomInRange); } else { Bond bond = renderModel.getHighlightedBond(); if (bond != null) { ChemModelManipulator.removeElectronContainer(chemModel, bond); } } jcpModel.fireChange(); } else if (type.equals("cutSelected")) { logger.debug("Deleting all selected atoms..."); if (renderModel.getSelectedPart() == null || renderModel.getSelectedPart().getAtoms().length == 0) { JOptionPane.showMessageDialog(jcpPanel, "No selection made. Please select some atoms first!", "Error warning", JOptionPane.WARNING_MESSAGE); } else { Atom[] selected = renderModel.getSelectedPart().getAtoms(); logger.debug("Found # atoms to delete: ", selected.length); for (int i = 0; i < selected.length; i++) { ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, selected[i]); } } renderModel.setSelectedPart(new AtomContainer()); jcpModel.fireChange(); } else if (type.equals("selectAll")) { renderModel.setSelectedPart(ChemModelManipulator.getAllInOneContainer(jcpModel.getChemModel())); jcpModel.fireChange(); } else if (type.equals("selectFromChemObject")) { // FIXME: implement for others than Reaction, Atom, Bond ChemObject object = getSource(event); if (object instanceof Atom) { AtomContainer container = new AtomContainer(); container.addAtom((Atom) object); renderModel.setSelectedPart(container); jcpModel.fireChange(); } else if (object instanceof Bond) { AtomContainer container = new AtomContainer(); container.addBond((Bond) object); renderModel.setSelectedPart(container); jcpModel.fireChange(); } else if (object instanceof Reaction) { renderModel.setSelectedPart(ReactionManipulator.getAllInOneContainer((Reaction) object)); jcpModel.fireChange(); } else { logger.warn("Cannot select everything in : ", object); } } else if (type.equals("selectReactionReactants")) { ChemObject object = getSource(event); if (object instanceof Reaction) { Reaction reaction = (Reaction) object; renderModel.setSelectedPart(SetOfMoleculesManipulator.getAllInOneContainer(reaction.getReactants())); jcpModel.fireChange(); } else { logger.warn("Cannot select reactants from : ", object); } } else if (type.equals("selectReactionProducts")) { ChemObject object = getSource(event); if (object instanceof Reaction) { Reaction reaction = (Reaction) object; renderModel.setSelectedPart(SetOfMoleculesManipulator.getAllInOneContainer(reaction.getProducts())); jcpModel.fireChange(); } else { logger.warn("Cannot select reactants from : ", object); } } else { logger.warn("Unsupported EditAction: " + type); } }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/4aa85b612d05d155adadf78e20d6034079c18106/EditAction.java/buggy/src/org/openscience/cdk/applications/jchempaint/action/EditAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 871, 13, 288, 202, 202, 759, 16094, 2690, 10769, 2973, 871, 202, 202, 4901, 18, 4148, 2932, 1133, 1084, 30, 3104, 871, 18, 588, 1830, 7675, 588, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 871, 13, 288, 202, 202, 759, 16094, 2690, 10769, 2973, 871, 202, 202, 4901, 18, 4148, 2932, 1133, 1084, 30, 3104, 871, 18, 588, 1830, 7675, 588, 79...
assertEquals(new String(((Message)tempEvt.getArg()).getBuffer()),"hello2");
assertEquals("hello2", new String(((Message)tempEvt.getArg()).getBuffer()));
public void testViewChangeNewKeyServer() throws Exception{ // create peer and server ENCRYPT peer = new ENCRYPT(); try { peer.init(); } catch (Exception e){ fail(e.getMessage()); } ENCRYPT server = new ENCRYPT(); try { server.init(); } catch (Exception e){ fail(e.getMessage()); } // set up server server.keyServer = true; MockObserver serverObserver = new MockObserver(); server.setObserver(serverObserver); Address serverAddress =new MockAddress("server"); server.setLocal_addr(serverAddress); //set the server up as keyserver Vector serverVector = new Vector(); serverVector.add(serverAddress); View tempView = new View(new ViewId(serverAddress,1),serverVector); Event serverEvent = new Event(Event.VIEW_CHANGE,tempView); server.up(serverEvent); // set up peer Address peerAddress =new MockAddress("peer"); peer.setLocal_addr(peerAddress); MockObserver peerObserver = new MockObserver(); peer.setObserver(peerObserver); peer.keyServer = false; MessageDigest digest = MessageDigest.getInstance("MD5"); digest.reset(); digest.update(server.getDesKey().getEncoded()); String symVersion = new String(digest.digest(), "UTF-8"); // encrypt and send an initial message to peer Cipher cipher = server.getSymEncodingCipher(); Message msg = new Message(); msg.setBuffer(cipher.doFinal("hello".getBytes())); msg.putHeader(EncryptHeader.KEY, new EncryptHeader( EncryptHeader.ENCRYPT, symVersion)); Event evt = new Event(Event.MSG,msg); peer.up(evt); //assert that message is queued as we have no key from server assertTrue(peerObserver.getUpMessages().isEmpty()); // send a view change where we are not the controller // send to peer - which should have peer2 as its key server peer.up(serverEvent); // assert that peer\ keyserver address is now set assertTrue(serverAddress == peer.getKeyServerAddr()); // get the resulting message from the peer - should be a key request Event sent = (Event)peerObserver.getDownMessages().get("message0"); assertTrue(((EncryptHeader)((Message)sent.getArg()).getHeader(ENCRYPT.EncryptHeader.KEY)).getType() == ENCRYPT.EncryptHeader.KEY_REQUEST); assertEquals(new String(((Message)sent.getArg()).getBuffer()),new String(peer.getKpair().getPublic().getEncoded())); // send this event to server server.up(sent); Event reply = (Event)serverObserver.getDownMessages().get("message1"); //assert that reply is the session key encrypted with peer's public key assertTrue(((EncryptHeader)((Message)reply.getArg()).getHeader(ENCRYPT.EncryptHeader.KEY)).getType() == ENCRYPT.EncryptHeader.SECRETKEY); assertNotSame(peer.getDesKey(),server.getDesKey()); // now send back to peer peer.up(reply); // assert that both now have same key assertEquals(peer.getDesKey(),server.getDesKey()); // send another encrypted message to peer to test queue Message msg2 = new Message(); msg2.setBuffer(cipher.doFinal("hello2".getBytes())); msg2.putHeader(EncryptHeader.KEY, new EncryptHeader( EncryptHeader.ENCRYPT, symVersion)); Event evt2 = new Event(Event.MSG,msg2); peer.up(evt2); // make sure we have the events now in the up layers assertEquals(3,peerObserver.getUpMessages().size()); Event tempEvt = (Event)peerObserver.getUpMessages().get("message2"); assertEquals(new String(((Message)tempEvt.getArg()).getBuffer()),"hello"); tempEvt = (Event)peerObserver.getUpMessages().get("message3"); assertEquals(new String(((Message)tempEvt.getArg()).getBuffer()),"hello2"); }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/6cf135ab0aec1dba727f94146eb1d03ec797779c/ENCRYPTAsymmetricTest.java/clean/tests/junit/org/jgroups/protocols/ENCRYPTAsymmetricTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1767, 3043, 1908, 653, 2081, 1435, 1216, 1185, 95, 202, 202, 759, 752, 4261, 471, 1438, 202, 202, 1157, 14306, 4261, 273, 394, 6693, 14306, 5621, 202, 202, 698, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1767, 3043, 1908, 653, 2081, 1435, 1216, 1185, 95, 202, 202, 759, 752, 4261, 471, 1438, 202, 202, 1157, 14306, 4261, 273, 394, 6693, 14306, 5621, 202, 202, 698, 288, ...
fElementQNamePartsStack[fElementDepth].setValues(fCurrentElement);
fElementEntityStack[fElementDepth] = fCurrentElementEntity; fElementIndexStack[fElementDepth] = fCurrentElementIndex; fContentSpecTypeStack[fElementDepth] = fCurrentContentSpecType;
public void callStartElement(QName element) throws Exception { if ( DEBUG_SCHEMA_VALIDATION ) System.out.println("\n=======StartElement : " + fStringPool.toString(element.localpart)); // // Check after all specified attrs are scanned // (1) report error for REQUIRED attrs that are missing (V_TAGc) // (2) add default attrs (FIXED and NOT_FIXED) // if (!fSeenRootElement) { fSeenRootElement = true; rootElementSpecified(element); fStringPool.resetShuffleCount(); } if (fGrammar != null && fGrammarIsDTDGrammar) { fAttrListHandle = addDTDDefaultAttributes(element, fAttrList, fAttrListHandle, fValidating, fStandaloneReader != -1); } fCheckedForSchema = true; if (fNamespacesEnabled) { bindNamespacesToElementAndAttributes(element, fAttrList); } validateElementAndAttributes(element, fAttrList); if (fAttrListHandle != -1) { fAttrList.endAttrList(); } fDocumentHandler.startElement(element, fAttrList, fAttrListHandle); fAttrListHandle = -1; //before we increment the element depth, add this element's QName to its enclosing element 's children list fElementDepth++; //if (fElementDepth >= 0) { if (fValidating) { // push current length onto stack if (fElementChildrenOffsetStack.length < fElementDepth) { int newarray[] = new int[fElementChildrenOffsetStack.length * 2]; System.arraycopy(fElementChildrenOffsetStack, 0, newarray, 0, fElementChildrenOffsetStack.length); fElementChildrenOffsetStack = newarray; } fElementChildrenOffsetStack[fElementDepth] = fElementChildrenLength; // add this element to children if (fElementChildren.length <= fElementChildrenLength) { QName[] newarray = new QName[fElementChildrenLength * 2]; System.arraycopy(fElementChildren, 0, newarray, 0, fElementChildren.length); fElementChildren = newarray; } QName qname = fElementChildren[fElementChildrenLength]; if (qname == null) { for (int i = fElementChildrenLength; i < fElementChildren.length; i++) { fElementChildren[i] = new QName(); } qname = fElementChildren[fElementChildrenLength]; } qname.setValues(element); fElementChildrenLength++; if (DEBUG_ELEMENT_CHILDREN) { printChildren(); printStack(); } } // One more level of depth //fElementDepth++; ensureStackCapacity(fElementDepth); fCurrentElement.setValues(element); fCurrentElementEntity = fEntityHandler.getReaderId(); fElementQNamePartsStack[fElementDepth].setValues(fCurrentElement); fElementEntityStack[fElementDepth] = fCurrentElementEntity; fElementIndexStack[fElementDepth] = fCurrentElementIndex; fContentSpecTypeStack[fElementDepth] = fCurrentContentSpecType; if (fNeedValidationOff) { fValidating = false; fNeedValidationOff = false; } if (fValidating && fGrammarIsSchemaGrammar) { pushContentLeafStack(); } fValidationFlagStack[fElementDepth] = fValidating ? 0 : -1; fScopeStack[fElementDepth] = fCurrentScope; fGrammarNameSpaceIndexStack[fElementDepth] = fGrammarNameSpaceIndex; } // callStartElement(QName)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 745, 1685, 1046, 12, 13688, 930, 13, 1216, 1185, 288, 3639, 309, 261, 6369, 67, 14233, 67, 5063, 2689, 262, 5411, 2332, 18, 659, 18, 8222, 31458, 82, 894, 12275, 1685, 1046, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 745, 1685, 1046, 12, 13688, 930, 13, 1216, 1185, 288, 3639, 309, 261, 6369, 67, 14233, 67, 5063, 2689, 262, 5411, 2332, 18, 659, 18, 8222, 31458, 82, 894, 12275, 1685, 1046, ...
else if ( CModuleProperties.BASE_ADDRESS.equals( entry.getKey() ) ) {
else if ( CModuleProperties.BASE_ADDRESS.equals( property.getKey() ) ) {
public String getColumnText( Object element, int columnIndex ) { if ( element instanceof Map.Entry ) { Map.Entry entry = (Map.Entry)element; if ( CModuleProperties.TYPE.equals( entry.getKey() ) ) { if ( columnIndex == 0 ) { return "Type"; } else { Integer type = (Integer)entry.getValue(); if ( type.intValue() == ICModule.EXECUTABLE ) { return "executable"; } if ( type.intValue() == ICModule.SHARED_LIBRARY ) { return "shared library"; } if ( type.intValue() == ICModule.CORE ) { return "core file"; } } } else if ( CModuleProperties.CPU.equals( entry.getKey() ) ) { if ( columnIndex == 0 ) { return "CPU"; } String cpu = (String)entry.getValue(); return ( cpu != null ) ? cpu : "not available"; } else if ( CModuleProperties.BASE_ADDRESS.equals( entry.getKey() ) ) { if ( columnIndex == 0 ) { return "Base address"; } IAddress address = (IAddress)entry.getValue(); return ( address != null && !address.isZero() ) ? address.toHexAddressString() : "not available"; } else if ( CModuleProperties.SIZE.equals( entry.getKey() ) ) { if ( columnIndex == 0 ) { return "Size"; } Long size = (Long)entry.getValue(); return ( size != null && size.longValue() > 0 ) ? size.toString() : "not available"; } else if ( CModuleProperties.SYMBOLS_LOADED.equals( entry.getKey() ) ) { if ( columnIndex == 0 ) { return "Symbols"; } Boolean loaded = (Boolean)entry.getValue(); return ( loaded != null && loaded.booleanValue() ) ? "loaded" : "not loaded"; } else if ( CModuleProperties.SYMBOLS_FILE.equals( entry.getKey() ) ) { if ( columnIndex == 0 ) { return "Symbols file"; } IPath path = (IPath)entry.getValue(); return ( path != null ) ? path.toOSString() : "not found"; } } return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0db65d300fd055308f3a9471af7d2ae5d2e7f159/ModulePropertyPage.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModulePropertyPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 6716, 1528, 12, 1033, 930, 16, 509, 14882, 262, 288, 1082, 202, 430, 261, 930, 1276, 1635, 18, 1622, 262, 288, 9506, 202, 863, 18, 1622, 1241, 273, 261, 863, 18, 1622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 6716, 1528, 12, 1033, 930, 16, 509, 14882, 262, 288, 1082, 202, 430, 261, 930, 1276, 1635, 18, 1622, 262, 288, 9506, 202, 863, 18, 1622, 1241, 273, 261, 863, 18, 1622, ...
consumer.setMessageListener(messageList);
messageList[i] = new MessageList(); consumer.setMessageListener(messageList[i]);
protected void setUp() throws Exception { messageList.setVerbose(true); connections = new Connection[NUMBER_IN_CLUSTER]; producers = new MessageProducer[NUMBER_IN_CLUSTER]; Destination destination = createDestination(); String root = System.getProperty("activemq.store.dir"); for (int i = 0;i < NUMBER_IN_CLUSTER;i++) { System.setProperty("activemq.store.dir", root + "_broker_" + i); connections[i] = createConnection(); connections[i].setClientID("ClusterTest" + i); connections[i].start(); Session session = connections[i].createSession(false, Session.AUTO_ACKNOWLEDGE); producers[i] = session.createProducer(destination); producers[i].setDeliveryMode(deliveryMode); MessageConsumer consumer = createMessageConsumer(session, destination); consumer.setMessageListener(messageList); } System.out.println("Sleeping to ensure cluster is fully connected"); Thread.sleep(10000); System.out.println("Finished sleeping"); }
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/8032ef40bea6bb08d0f8151866beadd7cafb9eb1/PeerTransportTest.java/buggy/activemq-core/src/test/java/org/activemq/transport/peer/PeerTransportTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 883, 682, 18, 542, 14489, 12, 3767, 1769, 7734, 5921, 273, 394, 4050, 63, 9931, 67, 706, 67, 5017, 23069, 15533, 3639, 4810, 13062, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 883, 682, 18, 542, 14489, 12, 3767, 1769, 7734, 5921, 273, 394, 4050, 63, 9931, 67, 706, 67, 5017, 23069, 15533, 3639, 4810, 13062, 273, 394...
queues[6] = new LocalClusteredQueue(office1, "node1", "sub7", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr);
queues[6] = new LocalClusteredQueue(office1, 1, "sub7", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr);
protected void clusteredTransactionalRoute(boolean persistent) throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { //Start two offices office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "testgroup"); LocalClusteredQueue[] queues = new LocalClusteredQueue[16]; Binding[] bindings = new Binding[16]; queues[0] = new LocalClusteredQueue(office1, "node1", "sub1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[0] = office1.bindClusteredQueue("topic1", queues[0]); queues[1] = new LocalClusteredQueue(office1, "node1", "sub2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[1] = office1.bindClusteredQueue("topic1", queues[1]); queues[2] = new LocalClusteredQueue(office2, "node2", "sub3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[2] = office2.bindClusteredQueue("topic1", queues[2]); queues[3] = new LocalClusteredQueue(office2, "node2", "sub4", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[3] = office2.bindClusteredQueue("topic1", queues[3]); queues[4] = new LocalClusteredQueue(office2, "node2", "sub5", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); bindings[4] = office2.bindClusteredQueue("topic1", queues[4]); queues[5] = new LocalClusteredQueue(office1, "node1", "sub6", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[5] = office1.bindClusteredQueue("topic1", queues[5]); queues[6] = new LocalClusteredQueue(office1, "node1", "sub7", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); bindings[6] = office1.bindClusteredQueue("topic1", queues[6]); queues[7] = new LocalClusteredQueue(office1, "node1", "sub8", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); bindings[7] = office1.bindClusteredQueue("topic1", queues[7]); queues[8] = new LocalClusteredQueue(office1, "node1", "sub9", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[8] = office1.bindClusteredQueue("topic2", queues[8]); queues[9] = new LocalClusteredQueue(office1, "node1", "sub10", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[9] = office1.bindClusteredQueue("topic2", queues[9]); queues[10] = new LocalClusteredQueue(office2, "node2", "sub11", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[10] = office2.bindClusteredQueue("topic2", queues[10]); queues[11] = new LocalClusteredQueue(office2, "node2", "sub12", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[11] = office2.bindClusteredQueue("topic2", queues[11]); queues[12] = new LocalClusteredQueue(office2, "node2", "sub13", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); bindings[12] = office2.bindClusteredQueue("topic2", queues[12]); queues[13] = new LocalClusteredQueue(office1, "node1", "sub14", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); bindings[13] = office1.bindClusteredQueue("topic2", queues[13]); queues[14] = new LocalClusteredQueue(office1, "node1", "sub15", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); bindings[14] = office1.bindClusteredQueue("topic2", queues[14]); queues[15] = new LocalClusteredQueue(office1, "node1", "sub16", im.getId(), ms, pm, true, true, (QueuedExecutor)pool.get(), null, tr); bindings[15] = office1.bindClusteredQueue("topic2", queues[15]); SimpleReceiver[] receivers = new SimpleReceiver[16]; for (int i = 0; i < 16; i++) { receivers[i] = new SimpleReceiver("blah", SimpleReceiver.ACCEPTING); queues[i].add(receivers[i]); } //First for topic 1 Message msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null);; MessageReference ref1 = ms.reference(msg1); Message msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null);; MessageReference ref2 = ms.reference(msg2); Transaction tx = tr.createTransaction(); boolean routed = office1.route(ref1, "topic1", tx); assertTrue(routed); routed = office1.route(ref2, "topic1", tx); assertTrue(routed); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } tx.commit(); //Messages are sent asych so may take some finite time to arrive Thread.sleep(1000); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, null); receivers[i].acknowledge(msgRec2, null); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); receivers[i].clear(); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null);; ref1 = ms.reference(msg1); msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null);; ref2 = ms.reference(msg2); tx = tr.createTransaction(); routed = office1.route(ref1, "topic1", tx); assertTrue(routed); routed = office1.route(ref2, "topic1", tx); assertTrue(routed); //Messages are sent asych so may take some finite time to arrive Thread.sleep(1000); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } tx.rollback(); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } //Now send some non transactionally msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null); ref1 = ms.reference(msg1); msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null); ref2 = ms.reference(msg2); routed = office1.route(ref1, "topic1", null); assertTrue(routed); routed = office1.route(ref2, "topic1", null); assertTrue(routed); //Messages are sent asych so may take some finite time to arrive Thread.sleep(1000); //And acknowledge transactionally tx = tr.createTransaction(); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, tx); receivers[i].acknowledge(msgRec2, tx); msgs = queues[i].browse(); assertNotNull(msgs); assertEquals(2, msgs.size()); msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].clear(); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } tx.commit(); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } // and the rollback msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null);; ref1 = ms.reference(msg1); msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null);; ref2 = ms.reference(msg2); routed = office1.route(ref1, "topic1", null); assertTrue(routed); routed = office1.route(ref2, "topic1", null); assertTrue(routed); Thread.sleep(1000); tx = tr.createTransaction(); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, tx); receivers[i].acknowledge(msgRec2, tx); msgs = queues[i].browse(); assertNotNull(msgs); assertEquals(2, msgs.size()); msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } tx.rollback(); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); msgs = queues[i].browse(); assertNotNull(msgs); assertEquals(2, msgs.size()); msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, null); receivers[i].acknowledge(msgRec2, null); receivers[i].clear(); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } // Now for topic 2 msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null); ref1 = ms.reference(msg1); msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null); ref2 = ms.reference(msg2); tx = tr.createTransaction(); routed = office1.route(ref1, "topic2", tx); assertTrue(routed); routed = office1.route(ref2, "topic2", tx); assertTrue(routed); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } tx.commit(); //Messages are sent asych so may take some finite time to arrive Thread.sleep(1000); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, null); receivers[i].acknowledge(msgRec2, null); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); receivers[i].clear(); } msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null);; ref1 = ms.reference(msg1); msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null);; ref2 = ms.reference(msg2); tx = tr.createTransaction(); routed = office1.route(ref1, "topic1", tx); assertTrue(routed); routed = office1.route(ref2, "topic1", tx); assertTrue(routed); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } tx.rollback(); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } //Now send some non transactionally msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null); ref1 = ms.reference(msg1); msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null); ref2 = ms.reference(msg2); routed = office1.route(ref1, "topic2", null); assertTrue(routed); routed = office1.route(ref2, "topic2", null); assertTrue(routed); Thread.sleep(1000); //And acknowledge transactionally tx = tr.createTransaction(); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, tx); receivers[i].acknowledge(msgRec2, tx); msgs = queues[i].browse(); assertNotNull(msgs); assertEquals(2, msgs.size()); msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].clear(); } tx.commit(); for (int i = 0; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } // and the rollback msg1 = CoreMessageFactory.createCoreMessage(1, persistent, null);; ref1 = ms.reference(msg1); msg2 = CoreMessageFactory.createCoreMessage(2, persistent, null);; ref2 = ms.reference(msg2); routed = office1.route(ref1, "topic2", null); assertTrue(routed); routed = office1.route(ref2, "topic2", null); assertTrue(routed); Thread.sleep(1000); tx = tr.createTransaction(); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, tx); receivers[i].acknowledge(msgRec2, tx); msgs = queues[i].browse(); assertNotNull(msgs); assertEquals(2, msgs.size()); msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); } tx.rollback(); for (int i = 0; i < 8; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); msgs = queues[i].browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); } for (int i = 8; i < 16; i++) { List msgs = receivers[i].getMessages(); assertNotNull(msgs); assertEquals(2, msgs.size()); Message msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); Message msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); msgs = queues[i].browse(); assertNotNull(msgs); assertEquals(2, msgs.size()); msgRec1 = (Message)msgs.get(0); assertEquals(msg1.getMessageID(), msgRec1.getMessageID()); msgRec2 = (Message)msgs.get(1); assertEquals(msg2.getMessageID(), msgRec2.getMessageID()); receivers[i].acknowledge(msgRec1, null); receivers[i].acknowledge(msgRec2, null); receivers[i].clear(); } } finally { if (office1 != null) { try { office1.unbindClusteredQueue("sub7"); office1.unbindClusteredQueue("sub8"); office1.unbindClusteredQueue("sub15"); office1.unbindClusteredQueue("sub16"); } catch (Exception ignore) { ignore.printStackTrace(); } office1.stop(); } if (office2 != null) { try { office2.unbindClusteredQueue("sub5"); office2.unbindClusteredQueue("sub13"); } catch (Exception ignore) { ignore.printStackTrace(); } office2.stop(); } checkNoMessageData(); } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/f54f55cea0aabacd10797be5e0ff1d3bd3f8db88/DefaultClusteredPostOfficeTest.java/buggy/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/DefaultClusteredPostOfficeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 2855, 329, 3342, 287, 3255, 12, 6494, 9195, 13, 1216, 4206, 282, 288, 1377, 5584, 329, 3349, 30126, 3397, 1812, 21, 273, 446, 31, 5411, 5584, 329, 3349, 30126, 3397, 1812, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 2855, 329, 3342, 287, 3255, 12, 6494, 9195, 13, 1216, 4206, 282, 288, 1377, 5584, 329, 3349, 30126, 3397, 1812, 21, 273, 446, 31, 5411, 5584, 329, 3349, 30126, 3397, 1812, 22, ...
throw new RuntimeException( "Result already set to "+result+ ", won't replace with "+r);
return false;
public final void setResult(Object r, long ttl) { if (r == null) { r = getDefaultResult(); } Set s; synchronized (lock) { if (result != null) { if (r == TIMEOUT || result == TIMEOUT) { // okay, ignored timeout return; } throw new RuntimeException( "Result already set to "+result+ ", won't replace with "+r); } this.result = r; this.ttl = ttl; lock.notifyAll(); if (callbacks == null) { return; } s = callbacks; callbacks = null; } for (Iterator iter = s.iterator(); iter.hasNext(); ) { Callback c = (Callback) iter.next(); c.execute(this); } }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/4c10453b9ea9a7f21fdd670b1ff4848b2adf96dd/Response.java/buggy/core/src/org/cougaar/core/service/wp/Response.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 21582, 12, 921, 436, 16, 1525, 6337, 13, 288, 565, 309, 261, 86, 422, 446, 13, 288, 1377, 436, 273, 4829, 1253, 5621, 565, 289, 565, 1000, 272, 31, 565, 3852, 261, 739...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 21582, 12, 921, 436, 16, 1525, 6337, 13, 288, 565, 309, 261, 86, 422, 446, 13, 288, 1377, 436, 273, 4829, 1253, 5621, 565, 289, 565, 1000, 272, 31, 565, 3852, 261, 739...
ProjectBrowser.TheInstance.setTarget(newOper);
ProjectBrowser.getInstance().setTarget(newOper);
public void addOperation() { Object target = getTarget(); if (target instanceof MClassifier) { MOperation newOper = UmlFactory.getFactory().getCore().buildOperation( (MClassifier) target); ProjectBrowser.TheInstance.setTarget(newOper); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1ebb17ac06205415cc8d51f57abdfb1e5ec54d76/PropPanelClassifier.java/buggy/src_new/org/argouml/uml/ui/foundation/core/PropPanelClassifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2988, 1435, 288, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 261, 3299, 1276, 490, 13860, 13, 288, 5411, 490, 2988, 394, 3542, 273, 7734, 587, 781, 1733, 18, 588, 1733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2988, 1435, 288, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 261, 3299, 1276, 490, 13860, 13, 288, 5411, 490, 2988, 394, 3542, 273, 7734, 587, 781, 1733, 18, 588, 1733, ...
new String[]{"" + meta_id, "" + keywordId} );
new String[]{"" + meta_id, "" + keywordId} );
private void addExistingKeywordToDocument( int meta_id, String keyword ) { int keywordId = Integer.parseInt( database.sqlQueryStr( "SELECT class_id FROM classification WHERE code = ?", new String[]{ keyword } ) ); database.sqlUpdateQuery( "INSERT INTO meta_classification (meta_id, class_id) VALUES(?,?)", new String[]{"" + meta_id, "" + keywordId} ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ef706636437631ae134b63e6e75c73e2593037e6/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 9895, 8736, 774, 2519, 12, 509, 2191, 67, 350, 16, 514, 4932, 262, 288, 3639, 509, 4932, 548, 273, 2144, 18, 2670, 1702, 12, 2063, 18, 4669, 1138, 1585, 12, 315, 4803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 9895, 8736, 774, 2519, 12, 509, 2191, 67, 350, 16, 514, 4932, 262, 288, 3639, 509, 4932, 548, 273, 2144, 18, 2670, 1702, 12, 2063, 18, 4669, 1138, 1585, 12, 315, 4803, ...
debug = PrefUtil.getAPIPreferenceStore(). getBoolean(IWorkbenchPreferenceConstants.SHOW_SYSTEM_JOBS);
private ProgressViewUpdater() { createUpdateJob(); collectors = new IProgressUpdateCollector[0]; ProgressManager.getInstance().addListener(this); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5227d0f0929c20b7aa7fd58b712e727c4f08ba91/ProgressViewUpdater.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1198, 273, 28184, 1304, 18, 588, 2557, 9624, 2257, 7675, 12835, 12, 45, 2421, 22144, 9624, 2918, 18, 16677, 67, 14318, 67, 18321, 55, 1769, 1198, 273, 28184, 1304, 18, 588, 2557, 9624, 2257, 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, 1198, 273, 28184, 1304, 18, 588, 2557, 9624, 2257, 7675, 12835, 12, 45, 2421, 22144, 9624, 2918, 18, 16677, 67, 14318, 67, 18321, 55, 1769, 1198, 273, 28184, 1304, 18, 588, 2557, 9624, 2257, 7...