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 |
|---|---|---|---|---|---|---|
writeStringOrNull(actualCe.getNamespaceOwnerId(), currentOutput); | writeStringOrNull(actualCe.getContributorId(), currentOutput); | private void saveConfigurationElement(ConfigurationElementHandle element, DataOutputStream outputStream, DataOutputStream extraOutputStream, int depth) throws IOException { if (!element.shouldPersist()) return; DataOutputStream currentOutput = outputStream; if (depth > 2) currentOutput = extraOutputStream; offsets.put(element.getId(), currentOutput.size()); currentOutput.writeInt(element.getId()); ConfigurationElement actualCe = (ConfigurationElement) element.getObject(); writeStringOrNull(actualCe.getNamespaceOwnerId(), currentOutput); writeStringOrNull(actualCe.getName(), currentOutput); currentOutput.writeInt(actualCe.parentId); currentOutput.writeByte(actualCe.parentType); currentOutput.writeInt(depth > 1 ? extraOutputStream.size() : -1); writeStringArray(actualCe.getPropertiesAndValue(), currentOutput); //save the children saveArray(filter(actualCe.getRawChildren()), currentOutput); ConfigurationElementHandle[] childrenCEs = (ConfigurationElementHandle[]) element.getChildren(); for (int i = 0; i < childrenCEs.length; i++) { saveConfigurationElement(childrenCEs[i], outputStream, extraOutputStream, depth + 1); } } | 13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/83dc53593d83b80e40b8a874184772cc554f1324/TableWriter.java/buggy/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/TableWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
1750,
1046,
12,
1750,
1046,
3259,
930,
16,
28680,
14956,
16,
28680,
2870,
4632,
16,
509,
3598,
13,
1216,
1860,
288,
202,
202,
430,
16051,
2956,
18,
13139,
12771,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
1750,
1046,
12,
1750,
1046,
3259,
930,
16,
28680,
14956,
16,
28680,
2870,
4632,
16,
509,
3598,
13,
1216,
1860,
288,
202,
202,
430,
16051,
2956,
18,
13139,
12771,
107... |
private float flushLines() throws DocumentException { // checks if the ArrayList with the lines is not null if (lines == null) { return 0; } //add by Jin-Hsia Yang boolean newline=false; //end add by Jin-Hsia Yang // checks if a new Line has to be made. if (line != null && line.size() > 0) { lines.add(line); line = new PdfLine(indentLeft(), indentRight(), alignment, leading); //add by Jin-Hsia Yang newline=true; //end add by Jin-Hsia Yang } // checks if the ArrayList with the lines is empty if (lines.size() == 0) { return 0; } // initialisation of some parameters Object currentValues[] = new Object[2]; PdfFont currentFont = null; float displacement = 0; PdfLine l; PdfChunk chunk; Float lastBaseFactor = new Float(0); currentValues[1] = lastBaseFactor; // looping over all the lines for (Iterator i = lines.iterator(); i.hasNext(); ) { // this is a line in the loop l = (PdfLine) i.next(); if(isParagraphE && isNewpage && newline) { newline=false; text.moveText(l.indentLeft() - indentLeft() + listIndentLeft + paraIndent,-l.height()); } else { text.moveText(l.indentLeft() - indentLeft() + listIndentLeft, -l.height()); } // is the line preceeded by a symbol? if (l.listSymbol() != null) { chunk = l.listSymbol(); text.moveText(- l.listIndent(), 0); if (chunk.font().compareTo(currentFont) != 0) { currentFont = chunk.font(); text.setFontAndSize(currentFont.getFont(), currentFont.size()); } if (chunk.color() != null) { Color color = chunk.color(); text.setColorFill(color); text.showText(chunk.toString()); text.resetRGBColorFill(); } else if (chunk.isImage()) { Image image = chunk.getImage(); float matrix[] = image.matrix(); float xMarker = text.getXTLM(); float yMarker = text.getYTLM(); matrix[Image.CX] = xMarker + chunk.getImageOffsetX() - matrix[Image.CX]; matrix[Image.CY] = yMarker + chunk.getImageOffsetY() - matrix[Image.CY]; addImage(graphics, image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); } else { text.showText(chunk.toString()); } text.moveText(l.listIndent(), 0); } currentValues[0] = currentFont; writeLineToContent(l, text, graphics, currentValues, writer.getSpaceCharRatio()); currentFont = (PdfFont)currentValues[0]; displacement += l.height(); if (indentLeft() - listIndentLeft != l.indentLeft()) { text.moveText(indentLeft() - l.indentLeft() - listIndentLeft, 0); } } lines = new ArrayList(); return displacement; } | 6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/94aedb45fc0fd34b63a0ade9d98f3989c2774b24/PdfDocument.java/buggy/src/com/lowagie/text/pdf/PdfDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1431,
3663,
5763,
1435,
1216,
4319,
503,
288,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
486,
446,
3639,
309,
261,
3548,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1431,
3663,
5763,
1435,
1216,
4319,
503,
288,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
486,
446,
3639,
309,
261,
3548,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
28... | ||
public Werkz getProject() { | public Project getProject() { | public Werkz getProject() { return project; } | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/6cd4f395e51bd0462b4fe80ac6f1c370ef7c8d9f/ProjectTag.java/buggy/src/java/org/apache/commons/jelly/tags/werkz/ProjectTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5420,
11080,
1435,
288,
3639,
327,
1984,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5420,
11080,
1435,
288,
3639,
327,
1984,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public AttributeDescr rule_attribute() throws RecognitionException { AttributeDescr d; AttributeDescr a = null; d = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:422:25: (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus ) int alt29=6; switch ( input.LA(1) ) { case 33: alt29=1; break; case 34: alt29=2; break; case 37: alt29=3; break; case 38: alt29=4; break; case 36: alt29=5; break; case 35: alt29=6; break; default: NoViableAltException nvae = new NoViableAltException("417:1: rule_attribute returns [AttributeDescr d] : (a= salience | a= no_loop | a= agenda_group | a= duration | a= xor_group | a= auto_focus );", 29, 0, input); throw nvae; } switch (alt29) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:422:25: a= salience { following.push(FOLLOW_salience_in_rule_attribute808); a=salience(); following.pop(); d = a; } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:423:25: a= no_loop { following.push(FOLLOW_no_loop_in_rule_attribute818); a=no_loop(); following.pop(); d = a; } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:424:25: a= agenda_group { following.push(FOLLOW_agenda_group_in_rule_attribute829); a=agenda_group(); following.pop(); d = a; } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:425:25: a= duration { following.push(FOLLOW_duration_in_rule_attribute842); a=duration(); following.pop(); d = a; } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:426:25: a= xor_group { following.push(FOLLOW_xor_group_in_rule_attribute856); a=xor_group(); following.pop(); d = a; } break; case 6 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:427:25: a= auto_focus { following.push(FOLLOW_auto_focus_in_rule_attribute867); a=auto_focus(); following.pop(); d = a; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
1720,
67,
4589,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3601,
16198,
279,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
54... | ||
"", null); | null, "", null); | protected IASTExpression equalityExpression( IASTScope scope ) throws Backtrack { IASTExpression firstExpression = relationalExpression(scope); for (;;) { switch (LT(1)) { case IToken.tEQUAL : case IToken.tNOTEQUAL : IToken t = consume(); IASTExpression secondExpression = relationalExpression(scope); try { firstExpression = astFactory.createExpression( scope, (t.getType() == IToken.tEQUAL) ? IASTExpression.Kind.EQUALITY_EQUALS : IASTExpression.Kind.EQUALITY_NOTEQUALS, firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e) { failParse(); throw backtrack; } break; default : return firstExpression; } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/02c194aaf46b86d6f7a904d6f531e535d47002ba/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
2300,
14958,
2300,
12,
467,
9053,
3876,
2146,
262,
3639,
1216,
4297,
4101,
565,
288,
3639,
467,
9053,
2300,
1122,
2300,
273,
25302,
2300,
12,
4887,
1769,
3639,
364,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
2300,
14958,
2300,
12,
467,
9053,
3876,
2146,
262,
3639,
1216,
4297,
4101,
565,
288,
3639,
467,
9053,
2300,
1122,
2300,
273,
25302,
2300,
12,
4887,
1769,
3639,
364,
261,
... |
OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_PROPERTY_MODIFIED, data)); | OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_PROPERTY_MODIFIED, data)); | public void deleteProperty(CmsRequestContext context, String resource, String property) throws CmsException { // read the resource CmsResource res = readFileHeader(context, resource); // check if the user has write access to the resource checkPermissions(context, res, I_CmsConstants.C_WRITE_ACCESS); // read the metadefinition I_CmsResourceType resType = getResourceType(res.getType()); // get the property definition CmsPropertydefinition metadef = readPropertydefinition(context, property, resType.getResourceType()); if ((metadef != null)) { m_vfsDriver.deleteProperty(property, context.currentProject().getId(), res, res.getType()); // set the file-state to changed if (res.isFile()) { m_vfsDriver.writeFileHeader(context.currentProject(), (CmsFile) res, C_UPDATE_STRUCTURE_STATE, context.currentUser().getId()); } else { m_vfsDriver.writeFolder(context.currentProject(), readFolder(context, resource), C_UPDATE_STRUCTURE_STATE, context.currentUser().getId()); } if (res.getState() == I_CmsConstants.C_STATE_UNCHANGED) { res.setState(I_CmsConstants.C_STATE_CHANGED); } // update the cache //clearResourceCache(resource, context.currentProject(), context.currentUser()); clearResourceCache(); m_propertyCache.clear(); Map data = (Map) new HashMap(); data.put("resource", res); data.put("property", property); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_PROPERTY_MODIFIED, data)); } else { // yes - throw exception throw new CmsException("[" + this.getClass().getName() + "] " + resource, CmsException.C_UNKNOWN_EXCEPTION); } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/d8608fec2baa999d66e14e04cc11363ba207f04a/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
1396,
12,
4747,
21426,
819,
16,
514,
1058,
16,
514,
1272,
13,
1216,
11228,
288,
3639,
368,
855,
326,
1058,
3639,
7630,
400,
273,
10413,
1864,
12,
2472,
16,
1058,
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,
1430,
1396,
12,
4747,
21426,
819,
16,
514,
1058,
16,
514,
1272,
13,
1216,
11228,
288,
3639,
368,
855,
326,
1058,
3639,
7630,
400,
273,
10413,
1864,
12,
2472,
16,
1058,
1769,
... |
public static ImageDescriptor[] getWindowImages(IProduct product) { String property = product.getProperty(WINDOW_IMAGES); if (property == null) { property = product.getProperty(WINDOW_IMAGE); | public ImageDescriptor[] getWindowImages() { if (windowImageDescriptors == null) { windowImageDescriptors = getWindowImages(product); | public static ImageDescriptor[] getWindowImages(IProduct product) { String property = product.getProperty(WINDOW_IMAGES); // for compatibility with pre-3.0 plugins that may still use WINDOW_IMAGE if (property == null) { property = product.getProperty(WINDOW_IMAGE); } return getImages(property, product.getDefiningBundle()); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/ProductProperties.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3421,
3187,
8526,
26156,
8946,
12,
45,
4133,
3017,
13,
288,
3639,
514,
1272,
273,
3017,
18,
588,
1396,
12,
23407,
67,
13603,
55,
1769,
3639,
368,
364,
8926,
598,
675,
17,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3421,
3187,
8526,
26156,
8946,
12,
45,
4133,
3017,
13,
288,
3639,
514,
1272,
273,
3017,
18,
588,
1396,
12,
23407,
67,
13603,
55,
1769,
3639,
368,
364,
8926,
598,
675,
17,
23,... |
int displayLimit = state.getDisplayOptions().getNumberOfAnnouncements(); if (!(displayLimit == AnnouncementActionState.DEFAULT_DISPLAY_NUMBER_OPTION) && isOkToShowOptionsButton(state.getStatus())) { context.put("displayLimit", new Integer(displayLimit)); } | public String buildMainPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState sstate) { // retrieve the state from state object AnnouncementActionState state = (AnnouncementActionState) getState(portlet, rundata, AnnouncementActionState.class); // load the saved option data Placement placement = ToolManager.getCurrentPlacement(); if (placement != null) { Properties props = placement.getPlacementConfig(); if(props.isEmpty()) props = placement.getConfig(); AnnouncementActionState.DisplayOptions disOptions = state.getDisplayOptions(); disOptions.loadProperties(props); context.put(VELOCITY_DISPLAY_OPTIONS, disOptions); } else { // Put our display options in the context so // that we can modify our list display accordingly context.put(VELOCITY_DISPLAY_OPTIONS, state.getDisplayOptions()); } String template = (String) getContext(rundata).get("template"); // group realted variables context.put("channelAccess", MessageHeader.MessageAccess.CHANNEL); context.put("groupAccess", MessageHeader.MessageAccess.GROUPED); // ********* for site column display ******** Site site = null; try { site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); context.put("site", site); } catch (IdUnusedException e) { // No site available. } catch (NullPointerException e) { } // get the current channel ID from state object or prolet initial parameter String channelId = state.getChannelId(); if (channelId == null) { // try the portlet parameter channelId = StringUtil.trimToNull(portlet.getPortletConfig().getInitParameter("channel")); if (channelId == null) { // form based on the request's site's "main" channel channelId = AnnouncementService.channelReference(ToolManager.getCurrentPlacement().getContext(), SiteService.MAIN_CONTAINER); } // let the state object have the current channel id state.setChannelId(channelId); state.setIsListVM(true); } // context.put("channel_id", ((channelId == null) ? "Now null" : channelId)); context.put("channel_id", ((channelId == null) ? rb.getString("java.nownull") : channelId)); // set if we have notification enabled context.put("notification", Boolean.valueOf(notificationEnabled(state))); // find the channel and channel information through the service AnnouncementChannel channel = null; boolean menu_new = true; boolean menu_delete = true; boolean menu_revise = true; try { if (AnnouncementService.allowGetChannel(channelId) && isOkayToDisplayMessageMenu(state)) { // get the channel name throught announcement service API channel = AnnouncementService.getAnnouncementChannel(channelId); if (channel.allowGetMessages() && !state.getCurrentSortedBy().equals(SORT_GROUPTITLE) && !state.getCurrentSortedBy().equals(SORT_GROUPDESCRIPTION)) { // this checks for any possibility of an add, channel or any site group menu_new = channel.allowAddMessage(); List messages = null; String view = (String) sstate.getAttribute(STATE_SELECTED_VIEW); if (view != null) { if (view.equals(VIEW_MODE_ALL)) { messages = getMessages(channel, null, true, state, portlet); } else if (view.equals(VIEW_MODE_BYGROUP)) { messages = getMessagesByGroups(site, channel, null, true, state, portlet); } else if (view.equals(VIEW_MODE_PUBLIC)) { messages = getMessagesPublic(site, channel, null, true, state, portlet); } } else { messages = getMessages(channel, null, true, state, portlet); } sstate.setAttribute("messages", messages); messages = prepPage(sstate); sstate.setAttribute(STATE_MESSAGES, messages); menu_delete = false; for (int i = 0; i < messages.size(); i++) { AnnouncementWrapper message = (AnnouncementWrapper) messages.get(i); // If any message is allowed to be removed // Also check to see if the AnnouncementWrapper object thinks // that this message is editable from the default site. if (message.editable && channel.allowRemoveMessage(message)) { menu_delete = true; break; } } menu_revise = false; for (int i = 0; i < messages.size(); i++) { // if any message is allowed to be edited if (channel.allowEditMessage(((Message) messages.get(i)).getId())) { menu_revise = true; break; } } } else // if the messages in this channel are not allow to be accessed { menu_new = channel.allowAddMessage(); menu_revise = false; menu_delete = false; } // if-else } else // if the channel is not allowed to access { menu_new = false; menu_revise = false; menu_delete = false; } } catch (PermissionException error) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "inside .buildNormalContext(): " + error); } catch (IdUnusedException error) { if (AnnouncementService.allowAddChannel(channelId)) { try { AnnouncementChannelEdit edit = AnnouncementService.addAnnouncementChannel(channelId); AnnouncementService.commitChannel(edit); channel = edit; } catch (IdUsedException err) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "inside .buildNormalContext(): " + err); } catch (IdInvalidException err) { } catch (PermissionException err) { } menu_new = channel.allowAddMessage(); menu_revise = false; menu_delete = false; } else { menu_new = false; menu_revise = false; menu_delete = false; } // if-else } // try-catch // check the state status to decide which vm to render String statusName = state.getStatus(); AnnouncementActionState.DisplayOptions displayOptions = state.getDisplayOptions(); buildMenu(portlet, context, rundata, state, menu_new, menu_delete, menu_revise, this.isOkToShowMergeButton(statusName), this.isOkToShowPermissionsButton(statusName), this.isOkToShowOptionsButton(statusName), displayOptions); // added by zqian for toolbar context.put("allow_new", Boolean.valueOf(menu_new)); context.put("allow_delete", Boolean.valueOf(menu_delete)); context.put("allow_revise", Boolean.valueOf(menu_revise)); if (statusName != null) { template = getTemplate(portlet, context, rundata, sstate, state, template); } if (channel != null) { // ********* for sorting ********* if (channel.allowGetMessages() && isOkayToDisplayMessageMenu(state)) { String currentSortedBy = state.getCurrentSortedBy(); context.put("currentSortedBy", currentSortedBy); if (state.getCurrentSortAsc()) context.put("currentSortAsc", "true"); else context.put("currentSortAsc", "false"); if (currentSortedBy != null && !currentSortedBy.equals(SORT_GROUPTITLE) && !currentSortedBy.equals(SORT_GROUPDESCRIPTION)) { // sort in announcement list view buildSortedContext(portlet, context, rundata, sstate); } } // if allowGetMessages() } context.put ("service", AnnouncementService.getInstance()); context.put ("entityManager", EntityManager.getInstance()); // ********* for site column display ******** context.put("isOnWorkspaceTab", (isOnWorkspaceTab() ? "true" : "false")); context.put("channel", channel); Tool tool = ToolManager.getCurrentTool(); String toolId = tool.getId(); context.put("toolId", toolId); if (channel != null) { // show all the groups in this channal that user has get message in Collection groups = channel.getGroupsAllowGetMessage(); if (groups != null && groups.size() > 0) { context.put("groups", groups); } } // if there is a display limit on the number of announcement message, and the user can set option choice int displayLimit = state.getDisplayOptions().getNumberOfAnnouncements(); if (!(displayLimit == AnnouncementActionState.DEFAULT_DISPLAY_NUMBER_OPTION) && isOkToShowOptionsButton(state.getStatus())) { context.put("displayLimit", new Integer(displayLimit)); } if (sstate.getAttribute(STATE_SELECTED_VIEW) != null) { context.put("view", sstate.getAttribute(STATE_SELECTED_VIEW)); } // inform the observing courier that we just updated the page... // if there are pending requests to do so they can be cleared justDelivered(sstate); return template; } // buildMainPanelContext | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/785f4853bd524e845d5fab3eeeb74fa70e2dee88/AnnouncementAction.java/clean/announcement/announcement-tool/tool/src/java/org/sakaiproject/announcement/tool/AnnouncementAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1361,
6376,
5537,
1042,
12,
27522,
18566,
13114,
16,
1772,
819,
16,
1939,
751,
1086,
892,
16,
3877,
1119,
272,
2019,
13,
202,
95,
202,
202,
759,
4614,
326,
919,
628,
919,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
6376,
5537,
1042,
12,
27522,
18566,
13114,
16,
1772,
819,
16,
1939,
751,
1086,
892,
16,
3877,
1119,
272,
2019,
13,
202,
95,
202,
202,
759,
4614,
326,
919,
628,
919,... | |
private int getPort() { | int getPort() { | private int getPort() { if ( (_myAddress != null) && (_myAddress.getPort() > 0) ) return _myAddress.getPort(); String port = _context.getProperty(LISTEN_PORT); if (port != null) { try { int portNum = Integer.parseInt(port); if ( (portNum >= 1) && (portNum < 65535) ) return portNum; } catch (NumberFormatException nfe) { // fallthrough } } return -1; } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/cf780e296e9ebff92d27a6e4cc836e8615faf38f/TCPTransport.java/clean/router/java/src/net/i2p/router/transport/tcp/TCPTransport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
11036,
1435,
288,
3639,
309,
261,
261,
67,
4811,
1887,
480,
446,
13,
597,
261,
67,
4811,
1887,
18,
588,
2617,
1435,
405,
374,
13,
262,
5411,
327,
389,
4811,
1887,
18,
588,
2617,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11036,
1435,
288,
3639,
309,
261,
261,
67,
4811,
1887,
480,
446,
13,
597,
261,
67,
4811,
1887,
18,
588,
2617,
1435,
405,
374,
13,
262,
5411,
327,
389,
4811,
1887,
18,
588,
2617,
... |
legacyusers.add(new TransportBuddy(user.getId(), user.getId(), group.getName())); | PseudoRosterItem rosterItem = pseudoRoster.getItem(user.getId()); String nickname = null; if (rosterItem != null) { nickname = rosterItem.getNickname(); } if (nickname == null) { nickname = user.getId(); } legacyusers.add(new TransportBuddy(user.getId(), nickname, group.getName())); | public void syncUsers() { List<TransportBuddy> legacyusers = new ArrayList<TransportBuddy>(); for (YahooGroup group : yahooSession.getGroups()) { for (Enumeration e = group.getMembers().elements(); e.hasMoreElements();) { YahooUser user = (YahooUser)e.nextElement(); legacyusers.add(new TransportBuddy(user.getId(), user.getId(), group.getName())); } } try { getTransport().syncLegacyRoster(getJID(), legacyusers); } catch (UserNotFoundException e) { Log.error("Unable to sync yahoo contact list for " + getJID()); } // Ok, now lets check presence for (Object userObj : yahooSession.getUsers().values()) { YahooUser user = (YahooUser)userObj; Presence p = new Presence(); p.setTo(getJID()); p.setFrom(getTransport().convertIDToJID(user.getId())); String custommsg = user.getCustomStatusMessage(); if (custommsg != null) { p.setStatus(custommsg); } ((YahooTransport)getTransport()).setUpPresencePacket(p, user.getStatus()); getTransport().sendPacket(p); } } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/db2d09776e89376bbda5277cdf53fefb0493e445/YahooSession.java/clean/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/protocols/yahoo/YahooSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3792,
6588,
1435,
288,
3639,
987,
32,
6568,
38,
29017,
34,
8866,
5577,
273,
394,
2407,
32,
6568,
38,
29017,
34,
5621,
3639,
364,
261,
61,
9795,
5161,
1114,
1041,
294,
677,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3792,
6588,
1435,
288,
3639,
987,
32,
6568,
38,
29017,
34,
8866,
5577,
273,
394,
2407,
32,
6568,
38,
29017,
34,
5621,
3639,
364,
261,
61,
9795,
5161,
1114,
1041,
294,
677,
97... |
case 157: case 158: | case 159: case 160: | public final void xpath() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST xpath_AST = null; { switch ( LA(1)) { case LPAREN: case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case STRING_LITERAL: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case DOLLAR: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case PLUS: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LT: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 139: case 140: case LITERAL_document: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_collection: case LITERAL_preceding: { module(); astFactory.addASTChild(currentAST, returnAST); break; } case EOF: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } org.exist.xquery.parser.XQueryAST tmp47_AST = null; tmp47_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp47_AST); match(Token.EOF_TYPE); xpath_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = xpath_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
6748,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
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,
727,
918,
6748,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
2... |
m_views = new ArrayList(viewFolders.size()); for (int i=0; i<viewFolders.size(); i++) { | m_views = new ArrayList(viewFolders.size()); for (int i = 0; i < viewFolders.size(); i++) { | private List initWorkplaceViews(CmsObject cms) { List viewFolders = new ArrayList(); try { // get the subfolders of the "views" folder viewFolders = cms.getSubFolders(I_CmsWpConstants.C_VFS_PATH_VIEWS); } catch (CmsException e) { OpenCms.getLog(this).error("Workplace init: Unable to read views folder '" + I_CmsWpConstants.C_VFS_PATH_VIEWS + "', no views available!"); // can not throw exception here since then OpenCms would not even start in shell mode (runlevel 2) viewFolders = new ArrayList(); } m_views = new ArrayList(viewFolders.size()); for (int i=0; i<viewFolders.size(); i++) { // loop through all view folders CmsFolder folder = (CmsFolder)viewFolders.get(i); String folderPath = cms.getSitePath(folder); try { // get view information from folder properties String order = cms.readPropertyObject(folderPath, I_CmsConstants.C_PROPERTY_NAVPOS, false).getValue(); String key = cms.readPropertyObject(folderPath, I_CmsConstants.C_PROPERTY_NAVTEXT, false).getValue(); String viewUri = cms.readPropertyObject(folderPath, I_CmsConstants.C_PROPERTY_DEFAULT_FILE, false).getValue(); if (viewUri == null) { // no view URI found viewUri = folderPath; } else if (!viewUri.startsWith("/")) { // default file is in current view folder, create absolute path to view URI viewUri = folderPath + viewUri; } if (order == null) { // no valid NavPos property value found, use loop count as order value order = "" + i; } Float orderValue; try { // create Float order object orderValue = Float.valueOf(order); } catch (NumberFormatException e) { // String was not formatted correctly, use loop counter orderValue = Float.valueOf("" + i); } if (key == null) { // no language key found, use default String to avoid NullPointerException key = "View " + i; } // create new view object CmsWorkplaceView view = new CmsWorkplaceView(key, viewUri, orderValue); m_views.add(view); // log the view if (OpenCms.getLog(CmsLog.CHANNEL_INIT).isInfoEnabled()) { OpenCms.getLog(CmsLog.CHANNEL_INIT).info (". Workplace view : " + view.getUri()); } } catch (CmsException e) { // should usually never happen if (OpenCms.getLog(this).isErrorEnabled()) { OpenCms.getLog(this).error("Error reading view folder: " + folderPath); } } } // sort the views by their order number Collections.sort(m_views); return m_views; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/09bcb6a947e23be7c0069d1828218e012fe628ab/CmsWorkplaceManager.java/buggy/src/org/opencms/workplace/CmsWorkplaceManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
1208,
16514,
9959,
12,
4747,
921,
6166,
13,
288,
3639,
987,
1476,
14885,
273,
394,
2407,
5621,
3639,
775,
288,
5411,
368,
336,
326,
720,
16064,
434,
326,
315,
7061,
6,
3009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
1208,
16514,
9959,
12,
4747,
921,
6166,
13,
288,
3639,
987,
1476,
14885,
273,
394,
2407,
5621,
3639,
775,
288,
5411,
368,
336,
326,
720,
16064,
434,
326,
315,
7061,
6,
3009,
... |
} else { | } else { | Object executeRegExp(Scriptable scopeObj, String str, int indexp[], boolean test) { NativeRegExp re = this; Context cx = Context.getCurrentContext(); RegExpImpl res = getImpl(cx); /* * Initialize a CompilerState to minimize recursive argument traffic. */ MatchState state = new MatchState(); state.anchoring = false; state.flags = re.flags; state.scope = scopeObj; char[] charArray = str.toCharArray(); int start = indexp[0]; if (start > charArray.length) start = charArray.length; int index = start; state.cpbegin = 0; state.cpend = charArray.length; state.start = start; state.skipped = 0; state.input = charArray; state.parenCount = 0; state.maybeParens = new SubString[re.parenCount]; state.parens = new SubString[re.parenCount]; // We allocate the elements of "parens" and "maybeParens" lazily in // the Java port since we don't have arenas. /* * Call the recursive matcher to do the real work. Return null on mismatch * whether testing or not. On match, return an extended Array object. */ index = matchRegExp(state, ren, index); if (index == -1) { return null; } int i = index - state.cpbegin; indexp[0] = i; int matchlen = i - (start + state.skipped); int ep = index; index -= matchlen; Object result; Scriptable obj; if (test) { /* * Testing for a match and updating cx.regExpImpl: don't allocate * an array object, do return true. */ result = Boolean.TRUE; obj = null; } else { /* * The array returned on match has element 0 bound to the matched * string, elements 1 through state.parenCount bound to the paren * matches, an index property telling the length of the left context, * and an input property referring to the input string. */ Scriptable scope = getTopLevelScope(scopeObj); result = ScriptRuntime.newObject(cx, scope, "Array", null); obj = (Scriptable) result; String matchstr = new String(charArray, index, matchlen); obj.put(0, obj, matchstr); } if (state.parenCount > re.parenCount) throw new RuntimeException(); if (state.parenCount == 0) { res.parens.setSize(0); res.lastParen = SubString.emptySubString; } else { SubString parsub = null; int num; res.parens.setSize(state.parenCount); for (num = 0; num < state.parenCount; num++) { parsub = state.parens[num]; res.parens.setElementAt(parsub, num); if (test) continue; String parstr = parsub == null ? "": parsub.toString(); obj.put(num+1, obj, parstr); } res.lastParen = parsub; } if (!test) { /* * Define the index and input properties last for better for/in loop * order (so they come after the elements). */ obj.put("index", obj, new Integer(start + state.skipped)); obj.put("input", obj, str); } if (res.lastMatch == null) { res.lastMatch = new SubString(); res.leftContext = new SubString(); res.rightContext = new SubString(); } res.lastMatch.charArray = charArray; res.lastMatch.index = index; res.lastMatch.length = matchlen; res.leftContext.charArray = charArray; if (cx.getLanguageVersion() == Context.VERSION_1_2) { /* * JS1.2 emulated Perl4.0.1.8 (patch level 36) for global regexps used * in scalar contexts, and unintentionally for the string.match "list" * psuedo-context. On "hi there bye", the following would result: * * Language while(/ /g){print("$`");} s/ /$`/g * perl4.036 "hi", "there" "hihitherehi therebye" * perl5 "hi", "hi there" "hihitherehi therebye" * js1.2 "hi", "there" "hihitheretherebye" * * Insofar as JS1.2 always defined $` as "left context from the last * match" for global regexps, it was more consistent than perl4. */ res.leftContext.index = start; res.leftContext.length = state.skipped; } else { /* * For JS1.3 and ECMAv2, emulate Perl5 exactly: * * js1.3 "hi", "hi there" "hihitherehi therebye" */ res.leftContext.index = 0; res.leftContext.length = start + state.skipped; } res.rightContext.charArray = charArray; res.rightContext.index = ep; res.rightContext.length = state.cpend - ep; return result; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/9d8af8e17d97d2f8879112efae076088793bcb6f/NativeRegExp.java/clean/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
1836,
13673,
12,
3651,
429,
2146,
2675,
16,
514,
609,
16,
509,
770,
84,
63,
6487,
12900,
1250,
1842,
13,
288,
3639,
16717,
13673,
283,
273,
333,
31,
3639,
1772,
9494,
273,
1772,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1836,
13673,
12,
3651,
429,
2146,
2675,
16,
514,
609,
16,
509,
770,
84,
63,
6487,
12900,
1250,
1842,
13,
288,
3639,
16717,
13673,
283,
273,
333,
31,
3639,
1772,
9494,
273,
1772,
1... |
if (persp == null) return; | if (persp == null) { return; } | public void setState(IWorkbenchPartReference ref, int newState) { Perspective persp = getActivePerspective(); if (persp == null) return; PartPane pane = ((WorkbenchPartReference) ref).getPane(); // If target part is detached fire the zoom event. Note this doesn't // actually cause any changes in size and is required to support // intro state changes. We may want to introduce the notion of a zoomed // (fullscreen) detached view at a later time. if (!pane.isDocked()) { pane.setZoomed(newState == IStackPresentationSite.STATE_MAXIMIZED); return; } if (ref instanceof IViewReference && persp.isFastView((IViewReference) ref)) { persp.setFastViewState(newState); return; } boolean wasZoomed = isZoomed(); boolean isZoomed = newState == IStackPresentationSite.STATE_MAXIMIZED; // Update zoom status. if (wasZoomed && !isZoomed) { zoomOut(); } else if (!wasZoomed && isZoomed) { persp.getPresentation().zoomIn(ref); activate(ref.getPart(true)); } PartStack parent = ((PartStack)pane.getContainer()); if (parent != null) { parent.setMinimized(newState == IStackPresentationSite.STATE_MINIMIZED); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12947,
12,
45,
2421,
22144,
1988,
2404,
1278,
16,
509,
15907,
13,
288,
3639,
453,
414,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
3639,
309,
261,
10422,
84,
422,
446,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12947,
12,
45,
2421,
22144,
1988,
2404,
1278,
16,
509,
15907,
13,
288,
3639,
453,
414,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
3639,
309,
261,
10422,
84,
422,
446,
13... |
public RubyObject call( RubyObject recv, RubyId mid, RubyPointer args, int scope) { RubyMethodCacheEntry ent = RubyMethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } klass = ent.getOrigin(); id = ent.getMid0(); noex = ent.getNoex(); body = ent.getMethod(); } else { GetMethodBodyResult gmbr = getMethodBody(id, 0); klass = gmbr.getRecvClass(); id = gmbr.getId(); noex = gmbr.getNoex(); body = gmbr.getBody(); if (body == null) { if (scope == 3) { throw new RubyNameException( getRuby(), "super: no superclass method '" + mid.toName() + "'"); } throw new RuntimeException("undefined method " + mid.toName() + " for " + recv + ":" + recv.getRubyClass().toName()); } } // if (mid != missing) { // /* receiver specified form for private method */ // if ((noex & NOEX_PRIVATE) && scope == 0) // return rb_undefined(recv, mid, argc, argv, CSTAT_PRIV); // /* self must be kind of a specified form for private method */ // if ((noex & NOEX_PROTECTED)) { // VALUE defined_class = klass; // while (TYPE(defined_class) == T_ICLASS) // defined_class = RBASIC(defined_class)->klass; // if (!rb_obj_is_kind_of(ruby_frame->self, defined_class)) // return rb_undefined(recv, mid, argc, argv, CSTAT_PROT); // } // } // ... return klass.call0(recv, id, args, body, false); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
12,
202,
202,
54,
10340,
921,
10665,
16,
202,
202,
54,
10340,
548,
7501,
16,
202,
202,
54,
10340,
4926,
833,
16,
202,
202,
474,
2146,
13,
288,
202,
202,
54,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
12,
202,
202,
54,
10340,
921,
10665,
16,
202,
202,
54,
10340,
548,
7501,
16,
202,
202,
54,
10340,
4926,
833,
16,
202,
202,
474,
2146,
13,
288,
202,
202,
54,... | ||
public void visitDataItem( DataItem obj ) { // provide bound column compatibility boundColumnsMgr.dealData( obj, getModule( ) ); writer.startElement( DesignSchemaConstants.DATA_TAG ); super.visitDataItem( obj ); property( obj, DataItem.RESULT_SET_COLUMN_PROP ); resourceKey( obj, DataItem.HELP_TEXT_KEY_PROP, DataItem.HELP_TEXT_PROP ); writeAction( obj, DataItem.ACTION_PROP ); writer.endElement( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/95bb3d97e97d6a59a7342a427b482ee2addba674/ModuleWriter.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
29903,
12,
1910,
1180,
1081,
262,
202,
95,
202,
202,
759,
5615,
2489,
1057,
8926,
202,
202,
3653,
3380,
9455,
18,
323,
287,
751,
12,
1081,
16,
11251,
12,
262,
11272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
29903,
12,
1910,
1180,
1081,
262,
202,
95,
202,
202,
759,
5615,
2489,
1057,
8926,
202,
202,
3653,
3380,
9455,
18,
323,
287,
751,
12,
1081,
16,
11251,
12,
262,
11272... | ||
super(d); } | super(d); } | public ArgoEditor(Diagram d) { super(d); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/TabDiagram.java/clean/src_new/org/argouml/uml/diagram/ui/TabDiagram.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1201,
3240,
6946,
12,
14058,
1940,
302,
13,
288,
5411,
2240,
12,
72,
1769,
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,... | [
1,
1,
1,
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,
540,
1071,
1201,
3240,
6946,
12,
14058,
1940,
302,
13,
288,
5411,
2240,
12,
72,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
int magic = in.readShort(); | short magic = DataTools.bytesToShort(block, 2, littleEndian); | public static Boolean checkHeader(RandomAccessStream in, long globalOffset) throws IOException { if (DEBUG) debug("getIFDs: reading IFD entries"); // start at the beginning of the file in.seek((int) globalOffset); // determine byte order (II = little-endian, MM = big-endian) byte[] order = new byte[2]; in.read(order); boolean littleEndian = order[0] == LITTLE && order[1] == LITTLE; // II boolean bigEndian = order[0] == BIG && order[1] == BIG; // MM if (!littleEndian && !bigEndian) return null; // check magic number (42) int magic = in.readShort(); if (magic != MAGIC_NUMBER) return null; return new Boolean(littleEndian); } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/633cdee0f10a4ab62a193ee7318d35e90e645db1/TiffTools.java/buggy/loci/formats/TiffTools.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3411,
866,
1864,
12,
8529,
1862,
1228,
316,
16,
1525,
2552,
2335,
13,
565,
1216,
1860,
225,
288,
565,
309,
261,
9394,
13,
1198,
2932,
588,
5501,
22831,
30,
6453,
11083,
40,
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,
760,
3411,
866,
1864,
12,
8529,
1862,
1228,
316,
16,
1525,
2552,
2335,
13,
565,
1216,
1860,
225,
288,
565,
309,
261,
9394,
13,
1198,
2932,
588,
5501,
22831,
30,
6453,
11083,
40,
3... |
} else if (list == null && i < ((RubyArray)val).getLength()) { ((AssignableNode)getArgsNode()).assign(ruby, self, ((RubyArray)val).subseq(((RubyArray)val).getLength() - i, i), check); | } else if (list == null && i < ((RubyArray) val).getLength()) { ((AssignableNode) getArgsNode()).assign( ruby, self, ((RubyArray) val).subseq(((RubyArray) val).getLength() - i, i), check); | public RubyObject massign(Ruby ruby, RubyObject self, RubyObject val, boolean check) { if (val == null) { val = RubyArray.newArray(ruby); } else if (!(val instanceof RubyArray)) { // if ( rb_respond_to( val, to_ary ) ) { // val.funcall(getRuby().intern("to_a")); // } else { val = RubyArray.newArray(ruby, val); // } } Node list = getHeadNode(); int i = 0; for (; list != null && i < ((RubyArray)val).getLength(); i++) { ((AssignableNode)list.getHeadNode()).assign(ruby, self, ((RubyArray)val).entry(i), check); list = list.getNextNode(); } if (check && list != null) { // error } if (getArgsNode() != null) { if (getArgsNode() == MINUS_ONE) { } else if (list == null && i < ((RubyArray)val).getLength()) { ((AssignableNode)getArgsNode()).assign(ruby, self, ((RubyArray)val).subseq(((RubyArray)val).getLength() - i, i), check); } else { ((AssignableNode)getArgsNode()).assign(ruby, self, RubyArray.newArray(ruby), check); } } else if (check && i < ((RubyArray)val).getLength()) { // error } while (list != null) { i++; ((AssignableNode)list.getHeadNode()).assign(ruby, self, ruby.getNil(), check); list = list.getNextNode(); } return val; } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/8140cac1b7c2375c549787852e38fa6c52b199df/MAsgnNode.java/buggy/org/jruby/nodes/MAsgnNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
312,
6145,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
19817,
921,
1244,
16,
1250,
866,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
288,
5411,
1244,
273,
19817,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
312,
6145,
12,
54,
10340,
22155,
16,
19817,
921,
365,
16,
19817,
921,
1244,
16,
1250,
866,
13,
288,
3639,
309,
261,
1125,
422,
446,
13,
288,
5411,
1244,
273,
19817,
10... |
} | } | public void mouseExited(MouseEvent e) { } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b5dc7d13b99a7a38104a2c98155f9f4f33a7f679/NoUpdatesDialog.java/buggy/source/com/intellij/openapi/updateSettings/impl/NoUpdatesDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
7644,
6767,
329,
12,
9186,
1133,
425,
13,
288,
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,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
7644,
6767,
329,
12,
9186,
1133,
425,
13,
288,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} else if (child2 instanceof SynteticCodeBlock) { return ((SynteticCodeBlock)child2).getFirstTreeNode(); | protected static ASTNode getTreeNode(final Block child2) { if (child2 instanceof JavaBlock) { return ((JavaBlock)child2).getFirstTreeNode(); } else if (child2 instanceof LeafBlock) { return ((LeafBlock)child2).getTreeNode(); } else if (child2 instanceof SynteticCodeBlock) { return ((SynteticCodeBlock)child2).getFirstTreeNode(); } else { return null; } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/8a76be9d20764a0075ff7e2857b311f7248671d6/AbstractJavaBlock.java/clean/source/com/intellij/psi/formatter/java/AbstractJavaBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
9183,
907,
336,
12513,
12,
6385,
3914,
1151,
22,
13,
288,
565,
309,
261,
3624,
22,
1276,
5110,
1768,
13,
288,
1377,
327,
14015,
5852,
1768,
13,
3624,
22,
2934,
588,
3759,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
9183,
907,
336,
12513,
12,
6385,
3914,
1151,
22,
13,
288,
565,
309,
261,
3624,
22,
1276,
5110,
1768,
13,
288,
1377,
327,
14015,
5852,
1768,
13,
3624,
22,
2934,
588,
3759,
125... | |
createControl(parent,false); | createControl(parent,true); | public void createControl(Composite parent){ createControl(parent,false); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1756dc67a278448f980cd6acc7b7c29766a58e19/PreferencePage.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
15329,
377,
202,
2640,
3367,
12,
2938,
16,
3767,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
15329,
377,
202,
2640,
3367,
12,
2938,
16,
3767,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
txtInnerRadius.setValue( range.getInnerRadius( ) ); txtOuterRadius.setValue( range.getOuterRadius( ) ); | if ( range.isSetInnerRadius( ) ) { txtInnerRadius.setValue( range.getInnerRadius( ) ); } else { txtInnerRadius.unsetValue( ); } if ( range.isSetOuterRadius( ) ) { txtOuterRadius.setValue( range.getOuterRadius( ) ); } else { txtOuterRadius.unsetValue( ); } | private void updateUIForSelection( ) { grpGeneral.layout( ); int iRangeIndex = getMarkerIndex( ); DialRegion range = (DialRegion) getDialForProcessing( ).getDialRegions( ) .get( iRangeIndex ); // Update the value fields txtStartValue.setText( getValueAsString( range.getStartValue( ) ) ); txtEndValue.setText( getValueAsString( range.getEndValue( ) ) ); // Update the radius fields txtInnerRadius.setValue( range.getInnerRadius( ) ); txtOuterRadius.setValue( range.getOuterRadius( ) ); // Update the fill fccRange.setFill( range.getFill( ) ); // Update the Line attribute fields liacMarkerRange.setLineAttributes( range.getOutline( ) ); // // Update the Label attribute fields // lacLabel.setLabel( range.getLabel( ), chart.getUnits( ) ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/aa94a89d6310c0760a41ff1b37dbe38a9fafc9c9/SeriesRegionSheet.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/SeriesRegionSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
5370,
1290,
6233,
12,
262,
202,
95,
202,
202,
17532,
12580,
18,
6741,
12,
11272,
202,
202,
474,
277,
2655,
1016,
273,
23232,
264,
1016,
12,
11272,
202,
202,
11885,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
5370,
1290,
6233,
12,
262,
202,
95,
202,
202,
17532,
12580,
18,
6741,
12,
11272,
202,
202,
474,
277,
2655,
1016,
273,
23232,
264,
1016,
12,
11272,
202,
202,
11885,
... |
if(parserType != MSXML) { PrintWriter out = new PrintWriter(sWriter); out.println("<?xml version=\"1.0\" ?>"); if(modelDocType != null) out.println("<!DOCTYPE " + modelDocType + " SYSTEM \"" + dtdUrl + "\">"); out.flush(); } readerToWriter(reader, sWriter); reader.close(); xmlString = sWriter.toString(); } catch (IOException ex) { throw new XOMException("Unable to read input test " + testFile + ": " + ex.getMessage()); } | if(parserType != MSXML) { PrintWriter out = new PrintWriter(sWriter); out.println("<?xml version=\"1.0\" ?>"); if(modelDocType != null) out.println("<!DOCTYPE " + modelDocType + " SYSTEM \"" + dtdUrl + "\">"); out.flush(); } | public void testFile(String testFile) throws XOMException { // parsing directly from an input stream (rather than a reader). String xmlString = null; try { StringWriter sWriter = new StringWriter(); FileReader reader = new FileReader(testFile); if(parserType != MSXML) { PrintWriter out = new PrintWriter(sWriter); out.println("<?xml version=\"1.0\" ?>"); if(modelDocType != null) out.println("<!DOCTYPE " + modelDocType + " SYSTEM \"" + dtdUrl + "\">"); out.flush(); } readerToWriter(reader, sWriter); reader.close(); xmlString = sWriter.toString(); } catch (IOException ex) { throw new XOMException("Unable to read input test " + testFile + ": " + ex.getMessage()); } parser.parse(xmlString); System.out.println("Parsing document succeeded."); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/ParserTester.java/buggy/src/main/mondrian/xom/ParserTester.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
812,
12,
780,
1842,
812,
13,
202,
202,
15069,
1139,
1872,
503,
202,
95,
202,
202,
759,
5811,
5122,
628,
392,
810,
1407,
261,
86,
4806,
2353,
279,
2949,
2934,
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,
1842,
812,
12,
780,
1842,
812,
13,
202,
202,
15069,
1139,
1872,
503,
202,
95,
202,
202,
759,
5811,
5122,
628,
392,
810,
1407,
261,
86,
4806,
2353,
279,
2949,
2934,
202,
... |
String dirlist = new DirectoryLister().list(file); | String dirlist = DirectoryLister.list(file); | public InputStream getInputStream(String uri) { InputStream is = null; uri = resolveURI(uri); if (uri.startsWith("file://")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } if (file.isDirectory()) { String dirlist = new DirectoryLister().list(file); try { is = new ByteArrayInputStream(dirlist.getBytes("UTF-8")); } catch (UnsupportedEncodingException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } return is; } } try { is = new URL(uri).openStream(); } catch (java.net.MalformedURLException e) { XRLog.exception("bad URL given: " + uri, e); } catch (java.io.IOException e) { XRLog.exception("IO problem for " + uri, e); } return is; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/PanelManager.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/PanelManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5037,
14424,
12,
780,
2003,
13,
288,
3639,
5037,
353,
273,
446,
31,
3639,
2003,
273,
2245,
3098,
12,
1650,
1769,
3639,
309,
261,
1650,
18,
17514,
1190,
2932,
768,
14334,
3719,
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,
5037,
14424,
12,
780,
2003,
13,
288,
3639,
5037,
353,
273,
446,
31,
3639,
2003,
273,
2245,
3098,
12,
1650,
1769,
3639,
309,
261,
1650,
18,
17514,
1190,
2932,
768,
14334,
3719,
288,
... |
JLabel label1 = new JLabel("Cardinality for "+centralTableName+"."+referencedTables[i].PK +" => "+ referencedTables[i].getName()+"."+referencedTables[i].FK | JLabel label1 = new JLabel("Cardinality for "+centralTableName+"."+referencedTables[i].FK +" => "+ referencedTables[i].getName()+"."+referencedTables[i].PK | private Transformation generateTransformation( String centralTableName, String tableType, String datasetName, String chosenTable, int manualChoose, int leftJoin, Transformation transformation) { String externalSchema = ""; int unitCount = 0; checkboxs = new JCheckBox[referencedTables.length+1];//incase user defined table added comboBoxs = new JComboBox[referencedTables.length+1]; columnOptions = new JComboBox[referencedTables.length+1]; operatorOptions = new JComboBox[referencedTables.length+1]; textFields = new JTextField[referencedTables.length+1]; cenColumnOptions = new JComboBox[referencedTables.length+1]; cenOperatorOptions = new JComboBox[referencedTables.length+1]; cenTextFields = new JTextField[referencedTables.length+1]; keepCheckBoxs = new JCheckBox[referencedTables.length+1]; if (manualChoose != 0) { if (tableType.equals("m")) tableList = new HashMap(); //create a new list of candidates for next central table selection Box cardinalitySettings = new Box(BoxLayout.Y_AXIS); boolean seenTable = false; // GENERATE THE GUI BOX for (int i = 0; i < referencedTables.length; i++) { // we need to see central table for recursive transformations if (referencedTables[i].getName().equals(centralTableName) && seenTable) continue; if (referencedTables[i].getName().equals(centralTableName)) seenTable = true; Box box1 = new Box(BoxLayout.X_AXIS); Box box2 = new Box(BoxLayout.X_AXIS); Box box3 = new Box(BoxLayout.X_AXIS); Box box4 = new Box(BoxLayout.X_AXIS); Box box5 = new Box(BoxLayout.X_AXIS); checkboxs[i] = new JCheckBox( "Include " + referencedTables[i].getName().toUpperCase()); checkboxs[i].setSelected(true); JLabel label1 = new JLabel("Cardinality for "+centralTableName+"."+referencedTables[i].PK +" => "+ referencedTables[i].getName()+"."+referencedTables[i].FK +" ("+ referencedTables[i].status+ ")"); comboBoxs[i] = new JComboBox(cardinalityOptions); HashMap cards = (HashMap) cardinalityFirst.get( referencedTables[i].getName()); if (cards != null && cards.get(centralTableName) != null) { String cardSetting = (String) cards.get(centralTableName); if (cardSetting.equals("1n")) cardSetting = "n1"; else if (cardSetting.equals("n1")) cardSetting = "1n"; comboBoxs[i].setSelectedItem(cardSetting); } else { cards = (HashMap) cardinalityFirst.get(centralTableName); if (cards != null) { comboBoxs[i].setSelectedItem( cards.get(referencedTables[i].getName())); } } JLabel label2 = new JLabel("Referenced projection/restriction (optional)"); String[] columnNames = { "%" }; Column[] refTableCols = resolver.getReferencedColumns( referencedTables[i].getName(), columnNames); String[] colNames = new String[refTableCols.length]; for (int j = 0; j < refTableCols.length; j++) { colNames[j] = refTableCols[j].getName(); } columnOptions[i] = new JComboBox(colNames); operatorOptions[i] = new JComboBox(opOptions); textFields[i] = new JTextField(); JLabel label3 = new JLabel("Central projection/restriction (optional)"); Column[] centralTableCols = resolver.getCentralTable(centralTableName).getColumns(); String[] cenColNames = new String[centralTableCols.length]; for (int j = 0; j < centralTableCols.length; j++) { cenColNames[j] = centralTableCols[j].getName(); } cenColumnOptions[i] = new JComboBox(cenColNames); cenOperatorOptions[i] = new JComboBox(opOptions); cenTextFields[i] = new JTextField(); if (!centralExtensionColumn.equals("")) cenColumnOptions[i].setSelectedItem(centralExtensionColumn); if (!centralExtensionOperator.equals("")) cenOperatorOptions[i].setSelectedItem(centralExtensionOperator); if (!centralExtensionValue.equals("")) cenTextFields[i].setText(centralExtensionValue); keepCheckBoxs[i] = new JCheckBox("Always keep for subsequent transformations"); box1.add(checkboxs[i]); box1.add(new JLabel("")); cardinalitySettings.add(box1); box2.add(label1); box2.add(comboBoxs[i]); box2.setMaximumSize(new Dimension(750, 30)); cardinalitySettings.add(box2); box3.add(label2); box3.add(columnOptions[i]); box3.add(operatorOptions[i]); box3.add(textFields[i]); box3.setMaximumSize(new Dimension(750, 30)); if (partitionExtension.equals("")) cardinalitySettings.add(box3); box4.add(label3); box4.add(cenColumnOptions[i]); box4.add(cenOperatorOptions[i]); box4.add(cenTextFields[i]); box4.setMaximumSize(new Dimension(750, 30)); cardinalitySettings.add(box4); box5.add(keepCheckBoxs[i]); cardinalitySettings.add(box5); cardinalitySettings.add(Box.createVerticalStrut(20)); }// new code start Box box6 = new Box(BoxLayout.X_AXIS); Box box7 = new Box(BoxLayout.X_AXIS); Box box8 = new Box(BoxLayout.X_AXIS); Box box9 = new Box(BoxLayout.X_AXIS); Box box10 = new Box(BoxLayout.X_AXIS); Box box11 = new Box(BoxLayout.X_AXIS); Box box12 = new Box(BoxLayout.X_AXIS); Box box13 = new Box(BoxLayout.X_AXIS); Box box14 = new Box(BoxLayout.X_AXIS); includeUserDefined = new JCheckBox("Include user defined table"); cardinalitySettings.add(includeUserDefined); includeUserDefined.addItemListener(this); JLabel label1 = new JLabel("External schema"); extSchema = new JComboBox(resolver.getAllSchemas()); extSchema.setSelectedItem(adaptor.getSchema()); extSchema.addItemListener(this); box6.add(label1); box6.add(extSchema); JLabel label2 = new JLabel("Table"); String[] tableNames = resolver.getAllTableNames(); tableOptions = new JComboBox(tableNames); tableOptions.addItemListener(this); box7.add(label2); box7.add(tableOptions); JLabel label3 = new JLabel("Primary Key"); String addedTableName = (String) tableOptions.getSelectedItem(); Column[] tableCols = resolver.getCentralTable(addedTableName).getColumns(); String[] userColNames = new String[tableCols.length]; for (int j = 0; j < tableCols.length; j++) { userColNames[j] = tableCols[j].getName(); } pK = new JComboBox(userColNames); box8.add(label3); box8.add(pK); JLabel label4 = new JLabel("Foreign Key"); fK = new JComboBox(userColNames); box9.add(label4); box9.add(fK); JLabel label5 = new JLabel("Status"); String[] statusOptions = new String[] {"exported","imported"}; status = new JComboBox(statusOptions); box10.add(label5); box10.add(status); label1 = new JLabel("Cardinality"); userCardinality = new JComboBox(cardinalityOptions); box11.add(label1); box11.add(userCardinality); label2 = new JLabel("Referenced projection/restriction (optional)"); userRefCol = new JComboBox(userColNames); userRefOperator = new JComboBox(opOptions); userRefText = new JTextField(); box12.add(label2); box12.add(userRefCol); box12.add(userRefOperator); box12.add(userRefText); label3 = new JLabel("Central projection/restriction (optional)"); Column[] centralTableCols = resolver.getCentralTable(centralTableName).getColumns(); String[] cenColNames = new String[centralTableCols.length]; for (int j = 0; j < centralTableCols.length; j++) { cenColNames[j] = centralTableCols[j].getName(); } userCenCol = new JComboBox(cenColNames); userCenOperator = new JComboBox(opOptions); userCenText = new JTextField(); if (!centralExtensionColumn.equals("")) userCenCol.setSelectedItem(centralExtensionColumn); if (!centralExtensionOperator.equals("")) userCenOperator.setSelectedItem(centralExtensionOperator); if (!centralExtensionValue.equals("")) userCenText.setText(centralExtensionValue); box13.add(label3); box13.add(userCenCol); box13.add(userCenOperator); box13.add(userCenText); userKeep = new JCheckBox("Always keep for subsequent transformations"); box14.add(userKeep); cardinalitySettings.add(box6); cardinalitySettings.add(box7); cardinalitySettings.add(box8); cardinalitySettings.add(box9); cardinalitySettings.add(box10); cardinalitySettings.add(box11); cardinalitySettings.add(box12); cardinalitySettings.add(box13); cardinalitySettings.add(box14); // end of new code JScrollPane scrollPane = new JScrollPane(cardinalitySettings); Dimension minimumSize = new Dimension(750, 500); scrollPane.setPreferredSize(minimumSize); String[] dialogOptions = new String[] { "Continue", "Select columns", "Cancel"}; int option = JOptionPane.showOptionDialog( null, scrollPane, "Cardinality settings for tables referenced from " + centralTableName + "(" + partitionExtension + ")", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, dialogOptions, null); if (option == 2) return transformation; else if (option == 1) { // REFERENCE TABLE - CHOOSE COLS Box columnsBox = new Box(BoxLayout.Y_AXIS); ArrayList colChecks = new ArrayList(); ArrayList colAliases = new ArrayList(); ArrayList colNames = new ArrayList(); ArrayList colTable = new ArrayList(); for (int i = 0; i < referencedTables.length; i++) { Table refTab = referencedTables[i]; if (refTab.getName().equals(centralTableName)) continue; String cardinality = comboBoxs[i].getSelectedItem().toString(); if (checkboxs[i].getSelectedObjects() == null || cardinality.equals("1n")) continue; label1 = new JLabel(refTab.getName()); columnsBox.add(label1); Column[] cols = refTab.getColumns(); for (int j = 0; j < cols.length; j++) { Box horizBox = new Box(BoxLayout.X_AXIS); JCheckBox check1 = new JCheckBox(cols[j].getName()); check1.setSelected(true); horizBox.add(check1); colChecks.add(check1); JTextField field1 = new JTextField(cols[j].getName()); horizBox.add(field1); colNames.add(cols[j].getName()); colAliases.add(field1); colTable.add(refTab.getName()); columnsBox.add(horizBox); } } dialogOptions = new String[] { "Ok", "Cancel" }; int colsOption = JOptionPane.showOptionDialog( null, columnsBox, "Select columns for the final dataset ", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, dialogOptions, null); if (colsOption == 0) { // recover the aliases and names for (int i = 0; i < colChecks.size(); i++) { if (((JCheckBox) colChecks.get(i)).getSelectedObjects() == null) continue; if (refColNames.get(colTable.get(i)) == null) refColNames.put(colTable.get(i), colNames.get(i)); else refColNames.put( colTable.get(i), refColNames.get(colTable.get(i)) + "," + colNames.get(i)); if (refColAliases.get(colTable.get(i)) == null) refColAliases.put( colTable.get(i), ((JTextField) colAliases.get(i)).getText()); else refColAliases.put( colTable.get(i), refColAliases.get(colTable.get(i)) + "," + ((JTextField) colAliases.get(i)).getText()); } } } } // end of GUI BOX generation // deal with user defined table if (includeUserDefined.getSelectedObjects() != null){ // create table and add to referencedTables Table addedTable = new Table(); addedTable.setName(((String) tableOptions.getSelectedItem())); addedTable.PK = (String) pK.getSelectedItem(); addedTable.FK = (String) fK.getSelectedItem(); addedTable.status = (String) status.getSelectedItem(); Table[] newReferencedTables = new Table[referencedTables.length+1]; for (int i = 0; i < referencedTables.length; i++){ newReferencedTables[i] = referencedTables[i]; } newReferencedTables[newReferencedTables.length-1] = addedTable; referencedTables = newReferencedTables; if (!((String) extSchema.getSelectedItem()).equals(adaptor.getSchema())) externalSchema = (String) extSchema.getSelectedItem(); // need to add checkbox and cardinality settings etc for processing of tables checkboxs[referencedTables.length-1] = new JCheckBox(); checkboxs[referencedTables.length-1].setSelected(true); comboBoxs[referencedTables.length-1] = userCardinality; columnOptions[referencedTables.length-1] = userRefCol; operatorOptions[referencedTables.length-1] = userRefOperator; cenColumnOptions[referencedTables.length-1] = userCenCol; cenOperatorOptions[referencedTables.length-1] = userCenOperator; textFields[referencedTables.length-1] = userRefText; cenTextFields[referencedTables.length-1] = userCenText; keepCheckBoxs[referencedTables.length-1] = userKeep; } // loop through all the referenced tables to create the Transformation for the central table boolean seenCentralTable = false; for (int i = 0; i < referencedTables.length; i++) { int a = referencedTables.length - 1; Table refTab = referencedTables[i]; // we need to keep central table for recursive transformations if (refTab.getName().equals(centralTableName) && seenCentralTable) continue; if (refTab.getName().equals(centralTableName)) seenCentralTable = true; if (manualChoose != 0 && checkboxs[i].getSelectedObjects() == null){ tableList.remove(refTab.getName());// remove from the candidate list if present HashMap cards = (HashMap) cardinalityFirst.get(centralTableName); if (cards != null) cards.remove(referencedTables[i].getName()); continue; } String cardinality; if (manualChoose != 0) { cardinality = comboBoxs[i].getSelectedItem().toString(); } else { HashMap cards = (HashMap) cardinalityFirst.get(centralTableName); cardinality = (String) cards.get(referencedTables[i].getName()); // if cardinality null means this table was not checked - hence skip if (cardinality == null) continue; } String referencedExtension = ""; if (refTab.getName().equals(chosenTable)) referencedExtension = partitionExtension; else if (manualChoose != 0 && !textFields[i].getText().equals("")) referencedExtension = ((String) columnOptions[i].getSelectedItem()) + ((String) operatorOptions[i].getSelectedItem()) + "'" + textFields[i].getText() + "'"; String centralExtension = ""; if (cenTextFields[i] != null && !cenTextFields[i].getText().equals("")) centralExtension = ((String) cenColumnOptions[i].getSelectedItem()) + ((String) cenOperatorOptions[i].getSelectedItem()) + "'"+cenTextFields[i].getText()+"'"; cardinalitySecond.put(refTab.getName(), cardinality); cardinalityFirst.put(centralTableName, cardinalitySecond); if (manualChoose != 0 && keepCheckBoxs[i].getSelectedObjects() != null) tableList.put(refTab.getName(), "reference"); if (cardinality.equals("1n")){ if (tableType.equals("m")) { tableList.put(refTab.getName(), "reference"); } continue; } if (manualChoose != 0 && refTab.getName().equals(centralTableName) && keepCheckBoxs[i].getSelectedObjects() == null) tableList.remove(centralTableName); Integer tunitCount = new Integer(unitCount + 1); String refColName = ""; String refColAlias = ""; if (refColNames.get(refTab.getName()) != null) refColName = (String) refColNames.get(refTab.getName()); if (refColAliases.get(refTab.getName()) != null) refColAlias = (String) refColAliases.get(refTab.getName()); if (i != 0){// externalSchema only applies for user defined tables which are always first in the array externalSchema= ""; } TransformationUnit transformationUnit = new TransformationUnit( tunitCount.toString(), refTab.status, refTab.PK, refTab.getName(), cardinality, centralExtension, referencedExtension, refTab.FK, refColName, refColAlias, cenColName, cenColAlias, externalSchema); transformation.insertChildObject(unitCount, transformationUnit); unitCount++; } if (leftJoin == 1) { Integer tunitCount = new Integer(unitCount + 1); TransformationUnit extraUnit = new TransformationUnit( tunitCount.toString(), "exported", resolver.getCentralTable(centralTableName).PK, "main_interim", "n1r", "", "", resolver.getCentralTable(centralTableName).PK, resolver.getCentralTable(centralTableName).PK, "", "", "", ""); transformation.insertChildObject(unitCount, extraUnit); } if (transformation.getChildObjects().length == 0) { // no ref tables for this transformation TransformationUnit transformationUnit = new TransformationUnit( "1", "", "", "", "", centralExtensionColumn+centralExtensionOperator+"'"+centralExtensionValue+"'", "", "", "", "", cenColName, cenColAlias, ""); transformation.insertChildObject(unitCount, transformationUnit); } return transformation; } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/82ac96c3eccca4eacfd3a3b25eb1198f78ff3862/ConfigurationGenerator.java/buggy/src/java/org/ensembl/mart/builder/ConfigurationGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
21274,
2103,
15292,
12,
202,
202,
780,
18291,
7147,
16,
202,
202,
780,
1014,
559,
16,
202,
202,
780,
3709,
461,
16,
202,
202,
780,
10447,
1388,
16,
202,
202,
474,
11297,
2452... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21274,
2103,
15292,
12,
202,
202,
780,
18291,
7147,
16,
202,
202,
780,
1014,
559,
16,
202,
202,
780,
3709,
461,
16,
202,
202,
780,
10447,
1388,
16,
202,
202,
474,
11297,
2452... |
Object value = loader.load(key); TimestampedValue timestampedValue = new TimestampedValue(value, clock.getCurrentTime()); | Object value = loader.load(key); TimestampedValue timestampedValue = new TimestampedValue(value, clock.getCurrentTime()); | private TimestampedValue loadObject( Object key ) { Object value = loader.load(key); TimestampedValue timestampedValue = new TimestampedValue(value, clock.getCurrentTime()); cachedValues.put(key, timestampedValue); return timestampedValue; } | 54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/TimedCache.java/clean/jmock/examples/timed-cache/src/org/jmock/examples/timedcache/TimedCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
8159,
329,
620,
31768,
12,
1033,
498,
262,
288,
202,
202,
921,
460,
273,
4088,
18,
945,
12,
856,
1769,
202,
202,
4921,
329,
620,
2858,
329,
620,
273,
394,
8159,
329,
620,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8159,
329,
620,
31768,
12,
1033,
498,
262,
288,
202,
202,
921,
460,
273,
4088,
18,
945,
12,
856,
1769,
202,
202,
4921,
329,
620,
2858,
329,
620,
273,
394,
8159,
329,
620,
1... |
obj.funcall(getRuby().intern("initialize"), args); | obj.callInit( args); | public RubyObject m_new(RubyObject[] args) { if (isSingleton()) { throw new RubyTypeException("can't create instance of virtual class"); } RubyObject obj = new RubyObject(getRuby(), this); // PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT); obj.funcall(getRuby().intern("initialize"), args); // POP_ITER(); return obj; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyClass.java/buggy/org/jruby/RubyClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
312,
67,
2704,
12,
54,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
291,
19571,
10756,
288,
5411,
604,
394,
19817,
14144,
2932,
4169,
1404,
752,
791,
434,
5024,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
312,
67,
2704,
12,
54,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
291,
19571,
10756,
288,
5411,
604,
394,
19817,
14144,
2932,
4169,
1404,
752,
791,
434,
5024,
667,
... |
+ "an SQL statement", e); | + "an SQL statement", e); | private void getSnmpInfoForInterfaces() { { PreparedStatement stmt = null; try { stmt = m_dsConn.prepareStatement(SnmpCollector.SQL_GET_SNMP_INFO); stmt.setInt(1, m_nodeID); ResultSet rs = stmt.executeQuery(); addIfaceToSnmpPrimaryMap(); while (rs.next()) { // Extract retrieved database values from the result set int index = rs.getInt(1); int type = rs.getInt(2); String name = rs.getString(3); String descr = rs.getString(4); String physAddr = rs.getString(5); if (m_collector.log().isDebugEnabled()) { m_collector.log() .debug( "initialize: snmpifindex = " + index + ", snmpifname = " + name + ", snmpifdescr = " + descr + ", snmpphysaddr = -" + physAddr + "-"); } /* * Determine the label for this interface. The label will be * used to create the RRD file name which holds SNMP data * retreived from the remote agent. If available ifName is * used to generate the label since it is guaranteed to be * unique. Otherwise ifDescr is used. In either case, all * non alpha numeric characters are converted to underscores * to ensure that the resuling string will make a decent * file name and that RRD won't have any problems using it */ String label = null; if (name != null) { label = AlphaNumeric.parseAndReplace(name, SnmpCollector.nonAnRepl); } else if (descr != null) { label = AlphaNumeric.parseAndReplace(descr, SnmpCollector.nonAnRepl); } else { m_collector.log() .warn( "Interface (ifIndex/nodeId=" + index + "/" + m_nodeID + ") has no ifName and no " + "ifDescr...setting to label to 'no_ifLabel'."); label = "no_ifLabel"; } /* * In order to assure the uniqueness of the RRD file names * we now append the MAC/physical address to the end of * label if it is available. */ if (physAddr != null) { physAddr = AlphaNumeric.parseAndTrim(physAddr); if (physAddr.length() == 12) { label = label + "-" + physAddr; } else { if (m_collector.log().isDebugEnabled()) { m_collector.log().debug( "initialize: physical address len " + "is NOT 12, physAddr=" + physAddr); } } } if (m_collector.log().isDebugEnabled()) { m_collector.log().debug("initialize: ifLabel = '" + label + "'"); } // Create new IfInfo object String collType = (String) m_snmppriMap.get(rs.getString(1)); IfInfo ifInfo = new IfInfo(index, type, label, collType); if (index == m_primaryIfIndex) { ifInfo.setIsPrimary(true); } else { ifInfo.setIsPrimary(false); } /* * Retrieve list of mib objects to be collected from the * remote agent for this interface. */ m_oidList = DataCollectionConfigFactory.getInstance() .getMibObjectList(m_collectionName, m_sysoid, m_ipAddr.getHostAddress(), type); /* * Now build a list of RRD data source objects from the list * of mib objects */ m_dsList = m_collector.buildDataSourceList(m_collectionName, m_oidList); // Set MIB object and data source lists in IfInfo object ifInfo.setOidList(m_oidList); ifInfo.setDsList(m_dsList); /* * Add the new IfInfo object to the interface map keyed by * interface index */ m_ifMap.put(new Integer(index), ifInfo); } rs.close(); } catch (SQLException e) { m_collector.log().debug("initialize: SQL exception!!", e); throw new RuntimeException("SQL exception while attempting " + "to retrieve snmp interface info", e); } catch (NullPointerException e) { /* * Thrown by ResultSet.getString() if database query did not * return anything */ m_collector.log().debug("initialize: NullPointerException", e); throw new RuntimeException("NullPointerException while " + "attempting to retrieve snmp interface info", e); } finally { try { stmt.close(); } catch (Exception e) { m_collector.log().info( "initialize: an error occured trying to close " + "an SQL statement", e); } } } /* * Verify that we did find at least one eligible interface for the * node. */ if (m_ifMap.size() < 1) { throw new RuntimeException("Failed to retrieve any eligible " + "interfaces for node " + m_nodeID + " from the database."); } // Add the ifMap object as an attribute of the interface m_iface.setAttribute(SnmpCollector.IF_MAP_KEY, m_ifMap); } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/cc54dfb75188d14438ebe4380c4700c499516431/Initializer.java/buggy/src/services/org/opennms/netmgt/collectd/Initializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1322,
82,
1291,
966,
1290,
10273,
1435,
288,
202,
202,
95,
25083,
202,
29325,
3480,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
10589,
273,
312,
67,
2377,
3543,
18,
936... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1322,
82,
1291,
966,
1290,
10273,
1435,
288,
202,
202,
95,
25083,
202,
29325,
3480,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
10589,
273,
312,
67,
2377,
3543,
18,
936... |
case ts.LB: | case TokenStream.LB: | private Object primaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; Object pn; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case ts.FUNCTION: return function(ts, source, true); case ts.LB: { source.append((char)ts.LB); pn = nf.createLeaf(ts.ARRAYLIT); ts.flags |= ts.TSF_REGEXP; boolean matched = ts.matchToken(ts.RB); ts.flags &= ~ts.TSF_REGEXP; if (!matched) { boolean first = true; do { ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (!first) source.append((char)ts.COMMA); else first = false; if (tt == ts.RB) { // to fix [,,,].length behavior... break; } if (tt == ts.COMMA) { nf.addChildToBack(pn, nf.createLeaf(ts.PRIMARY, ts.UNDEFINED)); } else { nf.addChildToBack(pn, assignExpr(ts, source, false)); } } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RB, "msg.no.bracket.arg"); } source.append((char)ts.RB); return nf.createArrayLiteral(pn); } case ts.LC: { pn = nf.createLeaf(ts.OBJLIT); source.append((char)ts.LC); if (!ts.matchToken(ts.RC)) { boolean first = true; commaloop: do { Object property; if (!first) source.append((char)ts.COMMA); else first = false; tt = ts.getToken(); switch(tt) { // map NAMEs to STRINGs in object literal context. case ts.NAME: case ts.STRING: String s = ts.getString(); source.addString(ts.NAME, s); property = nf.createString(ts.getString()); break; case ts.NUMBER: Number n = ts.getNumber(); source.addNumber(n); property = nf.createNumber(n); break; case ts.RC: // trailing comma is OK. ts.ungetToken(tt); break commaloop; default: reportError(ts, "msg.bad.prop"); break commaloop; } mustMatchToken(ts, ts.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. source.append((char)ts.OBJLIT); nf.addChildToBack(pn, property); nf.addChildToBack(pn, assignExpr(ts, source, false)); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RC, "msg.no.brace.prop"); } source.append((char)ts.RC); return nf.createObjectLiteral(pn); } case ts.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ source.append((char)ts.LP); pn = expr(ts, source, false); source.append((char)ts.RP); mustMatchToken(ts, ts.RP, "msg.no.paren"); return pn; case ts.NAME: String name = ts.getString(); source.addString(ts.NAME, name); return nf.createName(name); case ts.NUMBER: Number n = ts.getNumber(); source.addNumber(n); return nf.createNumber(n); case ts.STRING: String s = ts.getString(); source.addString(ts.STRING, s); return nf.createString(s); case ts.OBJECT: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); source.addString(ts.OBJECT, '/' + re + '/' + flags); return nf.createRegExp(re, flags); } case ts.PRIMARY: source.append((char)ts.PRIMARY); source.append((char)ts.getOp()); return nf.createLeaf(ts.PRIMARY, ts.getOp()); case ts.RESERVED: reportError(ts, "msg.reserved.id"); break; case ts.ERROR: /* the scanner or one of its subroutines reported the error. */ break; default: reportError(ts, "msg.syntax"); break; } return null; // should never reach here } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/8024efa9963a32d478db0d09899ffa61e921aa3e/Parser.java/clean/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3354,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3354,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,... |
this.minimum = minimum; if (!bIsDefault) bfSet |= MINSET; | this.minimum = minimum; if (!bIsDefault) bfSet |= MINSET; | protected void setMinimum(Property minimum, boolean bIsDefault) { this.minimum = minimum; if (!bIsDefault) bfSet |= MINSET; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cd264ba6a67a155375a4ba85cdb6dc35503ef593/LengthRange.java/buggy/src/org/apache/fop/datatypes/LengthRange.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
31973,
12,
1396,
5224,
16,
1250,
24236,
1868,
13,
288,
1377,
333,
18,
15903,
273,
5224,
31,
202,
430,
16051,
70,
2520,
1868,
13,
16222,
694,
5626,
6989,
4043,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
31973,
12,
1396,
5224,
16,
1250,
24236,
1868,
13,
288,
1377,
333,
18,
15903,
273,
5224,
31,
202,
430,
16051,
70,
2520,
1868,
13,
16222,
694,
5626,
6989,
4043,
31,
565,
289,
2... |
Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from store"); | public DSAPublicKey getKey(byte[] hash) { ImmutableByteArrayWrapper w = new ImmutableByteArrayWrapper(hash); Logger.minor(this, "Getting pubkey: "+HexUtil.bytesToHex(hash)); synchronized(cachedPubKeys) { DSAPublicKey key = (DSAPublicKey) cachedPubKeys.get(w); if(key != null) { cachedPubKeys.push(w, key); Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from cache"); return key; } } try { DSAPublicKey key = pubKeyDatastore.fetchPubKey(hash, false); if(key != null) { cacheKey(hash, key); } Logger.minor(this, "Got "+HexUtil.bytesToHex(hash)+" from store"); return key; } catch (IOException e) { // FIXME deal with disk full, access perms etc; tell user about it. Logger.error(this, "Error accessing pubkey store: "+e, e); return null; } } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/f37d5241ab74bd86528272ae1ccb3c53346cdea6/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8678,
2203,
24312,
3579,
12,
7229,
8526,
1651,
13,
288,
202,
202,
16014,
8826,
3611,
341,
273,
394,
7252,
8826,
3611,
12,
2816,
1769,
202,
202,
3328,
18,
17364,
12,
2211,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8678,
2203,
24312,
3579,
12,
7229,
8526,
1651,
13,
288,
202,
202,
16014,
8826,
3611,
341,
273,
394,
7252,
8826,
3611,
12,
2816,
1769,
202,
202,
3328,
18,
17364,
12,
2211,
16,
... | |
return new DirectByteBufferImpl | if (isReadOnly()) return new DirectByteBufferImpl.ReadOnly | public ByteBuffer slice() { int rem = remaining(); return new DirectByteBufferImpl (owner, VMDirectByteBuffer.adjustAddress(address, position()), rem, rem, 0, isReadOnly()); } | 5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/21b083dc05539f8f6730b5e5d961c31c78c9f00f/DirectByteBufferImpl.java/buggy/libjava/java/nio/DirectByteBufferImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
7400,
2788,
1435,
225,
288,
565,
509,
849,
273,
4463,
5621,
565,
309,
261,
291,
12066,
10756,
327,
394,
9908,
12242,
2828,
18,
12066,
1377,
261,
8443,
16,
8251,
5368,
12242,
18,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
7400,
2788,
1435,
225,
288,
565,
509,
849,
273,
4463,
5621,
565,
309,
261,
291,
12066,
10756,
327,
394,
9908,
12242,
2828,
18,
12066,
1377,
261,
8443,
16,
8251,
5368,
12242,
18,
133... |
try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(), this, pageContext)) != null) setOnmousedown(string); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } // The "align" attribute is deprecated. This needs to be removed when // the "align" attribute is finally removed. try { setAlign((String) evalAttr("align", getAlignExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBorder((String) evalAttr("border", getBorderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPage((String) evalAttr("page", getPageExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPageKey((String) evalAttr("pageKey", getPageKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrc((String) evalAttr("src", getSrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrcKey((String) evalAttr("srcKey", getSrcKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/022bd23c954cf673e53731849d562b3c295473f1/ELImageTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImageTag.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,
4742,
9334,
4766,
6647,
514,
18,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4742,
9334,
4766,
6647,
514,
18,
1106,
... |
case TOTAL_REQUEST: type = "TOTAL_REQUEST"; break; | case TOTAL_REQUEST: type="TOTAL_REQUEST"; break; | public String toString() { String type = ""; switch( total_header_type ) { case TOTAL_UNICAST: type = "TOTAL_UNICAST"; break; case TOTAL_BCAST: type = "TOTAL_BCAST"; break; case TOTAL_REQUEST: type = "TOTAL_REQUEST"; break; case TOTAL_NEW_VIEW: type = "NEW_VIEW"; break; case TOTAL_NEW_VIEW_ACK: type = "NEW_VIEW_ACK"; break; case TOTAL_CUM_SEQ_ACK: type = "TOTAL_CUM_SEQ_ACK"; break; case TOTAL_SEQ_ACK: type = "TOTAL_SEQ_ACK"; break; case TOTAL_RESEND: type = "TOTAL_RESEND"; break; default: type = "UNKNOWN TYPE (" + total_header_type + ')'; break; } return "[ TOTAL_OLD: type=" + type + ", seq=" + seq_id + " ]"; } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
565,
514,
618,
273,
1408,
31,
202,
565,
1620,
12,
2078,
67,
3374,
67,
723,
262,
288,
202,
565,
648,
399,
19851,
67,
2124,
2871,
9053,
30,
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,
514,
1762,
1435,
288,
202,
565,
514,
618,
273,
1408,
31,
202,
565,
1620,
12,
2078,
67,
3374,
67,
723,
262,
288,
202,
565,
648,
399,
19851,
67,
2124,
2871,
9053,
30,
202,
202... |
fg = new Color(0xFF000000 | rfb.is.readInt()); | rfb.is.readFully(buf, 0, 4); fg = new Color((buf[2] & 0xFF) << 16 | (buf[1] & 0xFF) << 8 | (buf[0] & 0xFF)); | public void processNormalProtocol() throws IOException { zlibInflater = new Inflater(); tightInflaters = new Inflater[4]; // Main dispatch loop. while (true) { while (player.getMode() != player.MODE_PLAYBACK) { synchronized(this) { try { wait(); } catch (InterruptedException e) { } } if (player.getMode() == player.MODE_STOPPED) { throw new EOFException("Playback stopped"); } if (player.getMode() == player.MODE_PLAYBACK) { player.fbsStream.resumeReading(); } } int msgType = rfb.readServerMessageType(); switch (msgType) { case RfbProto.FramebufferUpdate: rfb.readFramebufferUpdate(); for (int i = 0; i < rfb.updateNRects; i++) { rfb.readFramebufferUpdateRectHdr(); if (rfb.updateRectEncoding == rfb.EncodingLastRect) break; if (rfb.updateRectEncoding == rfb.EncodingNewFBSize) { rfb.setFramebufferSize(rfb.updateRectW, rfb.updateRectH); updateFramebufferSize(); break; } if (rfb.updateRectEncoding == rfb.EncodingXCursor || rfb.updateRectEncoding == rfb.EncodingRichCursor) { throw new IOException("Sorry, no support for" + " cursor shape updates yet"); } switch (rfb.updateRectEncoding) { case RfbProto.EncodingRaw: { handleRawRect(rfb.updateRectX, rfb.updateRectY, rfb.updateRectW, rfb.updateRectH); break; } case RfbProto.EncodingCopyRect: { rfb.readCopyRect(); int sx = rfb.copyRectSrcX, sy = rfb.copyRectSrcY; int rx = rfb.updateRectX, ry = rfb.updateRectY; int rw = rfb.updateRectW, rh = rfb.updateRectH; memGraphics.copyArea(sx, sy, rw, rh, rx - sx, ry - sy); scheduleRepaint(rx, ry, rw, rh); break; } case RfbProto.EncodingRRE: { int rx = rfb.updateRectX, ry = rfb.updateRectY; int rw = rfb.updateRectW, rh = rfb.updateRectH; int nSubrects = rfb.is.readInt(); int x, y, w, h; Color pixel; pixel = new Color(0xFF000000 | rfb.is.readInt()); memGraphics.setColor(pixel); memGraphics.fillRect(rx, ry, rw, rh); for (int j = 0; j < nSubrects; j++) { pixel = new Color(0xFF000000 | rfb.is.readInt()); x = rx + rfb.is.readUnsignedShort(); y = ry + rfb.is.readUnsignedShort(); w = rfb.is.readUnsignedShort(); h = rfb.is.readUnsignedShort(); memGraphics.setColor(pixel); memGraphics.fillRect(x, y, w, h); } scheduleRepaint(rx, ry, rw, rh); break; } case RfbProto.EncodingCoRRE: { int rx = rfb.updateRectX, ry = rfb.updateRectY; int rw = rfb.updateRectW, rh = rfb.updateRectH; int nSubrects = rfb.is.readInt(); int x, y, w, h; Color pixel; pixel = new Color(0xFF000000 | rfb.is.readInt()); memGraphics.setColor(pixel); memGraphics.fillRect(rx, ry, rw, rh); for (int j = 0; j < nSubrects; j++) { pixel = new Color(0xFF000000 | rfb.is.readInt()); x = rx + rfb.is.readUnsignedByte(); y = ry + rfb.is.readUnsignedByte(); w = rfb.is.readUnsignedByte(); h = rfb.is.readUnsignedByte(); memGraphics.setColor(pixel); memGraphics.fillRect(x, y, w, h); } scheduleRepaint(rx, ry, rw, rh); break; } case RfbProto.EncodingHextile: { int rx = rfb.updateRectX, ry = rfb.updateRectY; int rw = rfb.updateRectW, rh = rfb.updateRectH; Color bg = new Color(0), fg = new Color(0); for (int ty = ry; ty < ry + rh; ty += 16) { int th = 16; if (ry + rh - ty < 16) th = ry + rh - ty; for (int tx = rx; tx < rx + rw; tx += 16) { int tw = 16; if (rx + rw - tx < 16) tw = rx + rw - tx; int subencoding = rfb.is.readUnsignedByte(); // Is it a raw-encoded sub-rectangle? if ((subencoding & rfb.HextileRaw) != 0) { byte[] buf = new byte[tw * 4]; int count, offset; for (int j = ty; j < ty + th; j++) { rfb.is.readFully(buf); offset = j * rfb.framebufferWidth + tx; for (count = 0; count < tw; count++) { pixels24[offset + count] = (buf[count * 4 + 1] & 0xFF) << 16 | (buf[count * 4 + 2] & 0xFF) << 8 | (buf[count * 4 + 3] & 0xFF); } } handleUpdatedPixels(tx, ty, tw, th); continue; } // Read and draw the background if specified. if ((subencoding & rfb.HextileBackgroundSpecified) != 0) { bg = new Color(0xFF000000 | rfb.is.readInt()); } memGraphics.setColor(bg); memGraphics.fillRect(tx, ty, tw, th); // Read the foreground color if specified. if ((subencoding & rfb.HextileForegroundSpecified) != 0) { fg = new Color(0xFF000000 | rfb.is.readInt()); } // Done with this tile if there is no sub-rectangles. if ((subencoding & rfb.HextileAnySubrects) == 0) continue; int nSubrects = rfb.is.readUnsignedByte(); int b1, b2, sx, sy, sw, sh; if ((subencoding & rfb.HextileSubrectsColoured) != 0) { for (int j = 0; j < nSubrects; j++) { fg = new Color(0xFF000000 | rfb.is.readInt()); b1 = rfb.is.readUnsignedByte(); b2 = rfb.is.readUnsignedByte(); sx = tx + (b1 >> 4); sy = ty + (b1 & 0xf); sw = (b2 >> 4) + 1; sh = (b2 & 0xf) + 1; memGraphics.setColor(fg); memGraphics.fillRect(sx, sy, sw, sh); } } else { memGraphics.setColor(fg); for (int j = 0; j < nSubrects; j++) { b1 = rfb.is.readUnsignedByte(); b2 = rfb.is.readUnsignedByte(); sx = tx + (b1 >> 4); sy = ty + (b1 & 0xf); sw = (b2 >> 4) + 1; sh = (b2 & 0xf) + 1; memGraphics.fillRect(sx, sy, sw, sh); } } } // Finished with a row of tiles, now let's show it. scheduleRepaint(rx, ty, rw, th); } break; } case RfbProto.EncodingZlib: { int nBytes = rfb.is.readInt(); if (zlibBuf == null || zlibBufLen < nBytes) { zlibBufLen = nBytes * 2; zlibBuf = new byte[zlibBufLen]; } rfb.is.readFully(zlibBuf, 0, nBytes); zlibInflater.setInput(zlibBuf, 0, nBytes); handleZlibRect(rfb.updateRectX, rfb.updateRectY, rfb.updateRectW, rfb.updateRectH); break; } case RfbProto.EncodingTight: { handleTightRect(rfb.updateRectX, rfb.updateRectY, rfb.updateRectW, rfb.updateRectH); break; } default: throw new IOException("Unknown RFB rectangle encoding " + rfb.updateRectEncoding); } } break; case RfbProto.SetColourMapEntries: throw new IOException("Can't handle SetColourMapEntries message"); case RfbProto.Bell: Toolkit.getDefaultToolkit().beep(); break; case RfbProto.ServerCutText: String s = rfb.readServerCutText(); break; default: throw new IOException("Unknown RFB message type " + msgType); } if (player.getMode() == player.MODE_STOPPED) { throw new EOFException("Playback stopped"); } } } | 5301 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5301/a5fcd984ef3eb3b9b79482ac1f34ddc7286cd433/VncCanvas.java/buggy/java/src/com/tightvnc/rfbplayer/VncCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
5506,
5752,
1435,
1216,
1860,
288,
565,
24220,
27040,
2045,
273,
394,
657,
2242,
2045,
5621,
565,
26066,
382,
15401,
414,
273,
394,
657,
2242,
2045,
63,
24,
15533,
565,
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,
918,
1207,
5506,
5752,
1435,
1216,
1860,
288,
565,
24220,
27040,
2045,
273,
394,
657,
2242,
2045,
5621,
565,
26066,
382,
15401,
414,
273,
394,
657,
2242,
2045,
63,
24,
15533,
565,
3... |
return SearchUtil.getProjectScopeDescription(element); | return JavaSearchScopeFactory.getInstance().getProjectScopeDescription(element); | String getScopeDescription(IJavaElement element) { return SearchUtil.getProjectScopeDescription(element); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/69379d7d8d0b3f8b2cb276bdfd2456abf9a59fba/FindImplementorsInProjectAction.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FindImplementorsInProjectAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
19203,
3291,
12,
45,
5852,
1046,
930,
13,
288,
202,
202,
2463,
5167,
1304,
18,
588,
4109,
3876,
3291,
12,
2956,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
19203,
3291,
12,
45,
5852,
1046,
930,
13,
288,
202,
202,
2463,
5167,
1304,
18,
588,
4109,
3876,
3291,
12,
2956,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
DocletTag tag; | mojoDescriptor.setDescription( javaClass.getComment() ); | private MojoDescriptor createMojoDescriptor( JavaSource javaSource, PluginDescriptor pluginDescriptor ) { MojoDescriptor mojoDescriptor = new MojoDescriptor(); mojoDescriptor.setPluginDescriptor( pluginDescriptor ); JavaClass javaClass = getJavaClass( javaSource ); mojoDescriptor.setLanguage( "java" ); mojoDescriptor.setImplementation( javaClass.getFullyQualifiedName() ); DocletTag tag; tag = findInClassHierarchy( javaClass, MAVEN_PLUGIN_DESCRIPTION ); if ( tag != null ) { mojoDescriptor.setDescription( tag.getValue() ); } tag = findInClassHierarchy( javaClass, MAVEN_PLUGIN_INSTANTIATION ); if ( tag != null ) { mojoDescriptor.setInstantiationStrategy( tag.getValue() ); } tag = findInClassHierarchy( javaClass, GOAL_MULTI_EXECUTION_STRATEGY ); if ( tag != null ) { mojoDescriptor.setExecutionStrategy( MojoDescriptor.MULTI_PASS_EXEC_STRATEGY ); } else { mojoDescriptor.setExecutionStrategy( MojoDescriptor.SINGLE_PASS_EXEC_STRATEGY ); } // ---------------------------------------------------------------------- // Goal name // ---------------------------------------------------------------------- DocletTag goal = findInClassHierarchy( javaClass, GOAL ); if ( goal != null ) { mojoDescriptor.setGoal( goal.getValue() ); } // ---------------------------------------------------------------------- // Phase name // ---------------------------------------------------------------------- DocletTag phase = findInClassHierarchy( javaClass, PHASE ); if ( phase != null ) { mojoDescriptor.setPhase( phase.getValue() ); } // ---------------------------------------------------------------------- // Additional phase to execute first // ---------------------------------------------------------------------- DocletTag executePhase = findInClassHierarchy( javaClass, EXECUTE_PHASE ); if ( executePhase != null ) { mojoDescriptor.setExecutePhase( executePhase.getValue() ); } // ---------------------------------------------------------------------- // Dependency resolution flag // ---------------------------------------------------------------------- DocletTag requiresDependencyResolution = findInClassHierarchy( javaClass, GOAL_REQUIRES_DEPENDENCY_RESOLUTION ); if ( requiresDependencyResolution != null ) { String value = requiresDependencyResolution.getValue(); if ( value == null || value.length() == 0 ) { value = "runtime"; } mojoDescriptor.setRequiresDependencyResolution( value ); } extractParameters( mojoDescriptor, javaClass ); return mojoDescriptor; } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/e095874576ce8ee75817338aded5a47525020277/JavaMojoDescriptorExtractor.java/buggy/maven-plugin-tools/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15931,
3187,
752,
49,
10007,
3187,
12,
5110,
1830,
2252,
1830,
16,
6258,
3187,
1909,
3187,
262,
565,
288,
3639,
15931,
3187,
312,
10007,
3187,
273,
394,
15931,
3187,
5621,
3639,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15931,
3187,
752,
49,
10007,
3187,
12,
5110,
1830,
2252,
1830,
16,
6258,
3187,
1909,
3187,
262,
565,
288,
3639,
15931,
3187,
312,
10007,
3187,
273,
394,
15931,
3187,
5621,
3639,
312,
... |
_messages = (List) new ArrayList(); | _messages = (List) new LinkedList(); | public SmcSyntaxChecker(String fsm, int targetLanguage) { super (); _fsmName = fsm; _targetLanguage = targetLanguage; _messages = (List) new ArrayList(); _checkFlag = true; } | 50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/ee7af7eea328696bd431fa971c9710eba5f5223f/SmcSyntaxChecker.java/buggy/net/sf/smc/SmcSyntaxChecker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9425,
71,
8070,
8847,
12,
780,
26957,
16,
509,
1018,
3779,
13,
565,
288,
3639,
2240,
261,
1769,
3639,
389,
2556,
81,
461,
273,
26957,
31,
3639,
389,
3299,
3779,
273,
1018,
3779,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9425,
71,
8070,
8847,
12,
780,
26957,
16,
509,
1018,
3779,
13,
565,
288,
3639,
2240,
261,
1769,
3639,
389,
2556,
81,
461,
273,
26957,
31,
3639,
389,
3299,
3779,
273,
1018,
3779,
3... |
op_descrip.setWsamappingList(wsamapping); | Iterator mappingIterator = operation.getChildrenWithName(new QName(Constants.WSA_ACTION)); if (mappingIterator != null) { ArrayList wsamappings = processWsaMapping(mappingIterator); op_descrip.setWsamappingList(wsamappings); } | private ArrayList processOperations(Iterator operationsIterator) throws DeploymentException { ArrayList operations = new ArrayList(); while (operationsIterator.hasNext()) { OMElement operation = (OMElement) operationsIterator.next(); // /getting operation name OMAttribute op_name_att = operation.getAttribute(new QName(ATTRIBUTE_NAME)); if (op_name_att == null) { throw new DeploymentException( Messages.getMessage( Messages.getMessage( DeploymentErrorMsgs.INVALID_OP, "operation name missing"))); } OMAttribute op_mep_att = operation.getAttribute(new QName(TAG_MEP)); String mepURL = null; AxisOperation op_descrip; if (op_mep_att != null) { mepURL = op_mep_att.getAttributeValue(); } if (mepURL == null) { // assuming in-out mep op_descrip = new InOnlyAxisOperation(); } else { try { op_descrip = AxisOperationFactory.getOperationDescription(mepURL); } catch (AxisFault axisFault) { throw new DeploymentException( Messages.getMessage( Messages.getMessage( DeploymentErrorMsgs.OPERATION_PROCESS_ERROR, axisFault.getMessage()))); } } String opname = op_name_att.getAttributeValue(); op_descrip.setName(new QName(opname)); // Operation Parameters Iterator parameters = operation.getChildrenWithName(new QName(TAG_PARAMETER)); ArrayList wsamapping = processParameters(parameters, op_descrip, module); op_descrip.setWsamappingList(wsamapping); // setting the mep of the operation // loading the message recivers OMElement receiverElement = operation.getFirstChildWithName(new QName(TAG_MESSAGE_RECEIVER)); if (receiverElement != null) { MessageReceiver messageReceiver = loadMessageReceiver(module.getModuleClassLoader(), receiverElement); op_descrip.setMessageReceiver(messageReceiver); } else { // setting default message receiver MessageReceiver msgReceiver = loadDefaultMessageReceiver(mepURL, null); op_descrip.setMessageReceiver(msgReceiver); } // Process Module Refs Iterator modules = operation.getChildrenWithName(new QName(TAG_MODULE)); processOperationModuleRefs(modules, op_descrip); // setting Operation phase PhasesInfo info = axisConfig.getPhasesInfo(); try { info.setOperationPhases(op_descrip); } catch (AxisFault axisFault) { throw new DeploymentException(axisFault); } // adding the operation operations.add(op_descrip); } return operations; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/3ca06a3466da62bcd5aa4d7086d66cb96663de53/ModuleBuilder.java/buggy/modules/core/src/org/apache/axis2/deployment/ModuleBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2407,
1207,
9343,
12,
3198,
5295,
3198,
13,
1216,
8587,
503,
288,
3639,
2407,
5295,
273,
394,
2407,
5621,
3639,
1323,
261,
17542,
3198,
18,
5332,
2134,
10756,
288,
5411,
531,
12310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2407,
1207,
9343,
12,
3198,
5295,
3198,
13,
1216,
8587,
503,
288,
3639,
2407,
5295,
273,
394,
2407,
5621,
3639,
1323,
261,
17542,
3198,
18,
5332,
2134,
10756,
288,
5411,
531,
12310,
... |
String safeId = id.replace('\\', '_').replace('/', '_'); | protected final XmlFile getConfigFile() { String safeId = id.replace('\\', '_').replace('/', '_'); return new XmlFile(XSTREAM,new File(Hudson.getInstance().getRootDir(),"users/"+ safeId +"/config.xml")); } | 56266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56266/0c76c7f01fdad3c557fbedcf2bfe36c1b67c9b3b/User.java/buggy/hudson/main/core/src/main/java/hudson/model/User.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
5714,
812,
4367,
812,
1435,
288,
9079,
327,
394,
5714,
812,
12,
60,
13693,
16,
2704,
1387,
12,
44,
1100,
816,
18,
588,
1442,
7675,
588,
27322,
9334,
6,
5577,
4898,
15,
4183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
5714,
812,
4367,
812,
1435,
288,
9079,
327,
394,
5714,
812,
12,
60,
13693,
16,
2704,
1387,
12,
44,
1100,
816,
18,
588,
1442,
7675,
588,
27322,
9334,
6,
5577,
4898,
15,
4183,
... | |
synchronized( members ) { if ( members.size() == 0 ) { log.error( "TOTAL_OLD.getSequencer() - no members" ); return null; } else { Object temp_obj = members.elementAt(0); if ( temp_obj instanceof Address ) { return (Address) temp_obj; } else { log.error( "Error: TOTAL_OLD.getSequencer() - could not cast first element of \"members\" to an Address" ); return null; } } } | synchronized(members) { if(members.size() == 0) { log.error("TOTAL_OLD.getSequencer() - no members"); return null; } else { Object temp_obj=members.elementAt(0); if(temp_obj instanceof Address) { return (Address)temp_obj; } else { log.error("Error: TOTAL_OLD.getSequencer() - could not cast first element of \"members\" to an Address"); return null; } } } | protected Address getSequencer() { synchronized( members ) { if ( members.size() == 0 ) { log.error( "TOTAL_OLD.getSequencer() - no members" ); return null; } else { Object temp_obj = members.elementAt(0); if ( temp_obj instanceof Address ) { return (Address) temp_obj; } else { log.error( "Error: TOTAL_OLD.getSequencer() - could not cast first element of \"members\" to an Address" ); return null; } } } } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/13de68466e3cf7fde6ee0bde0cee09a33e837e89/TOTAL_OLD.java/buggy/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5267,
11979,
372,
23568,
1435,
288,
202,
22043,
12,
4833,
262,
288,
202,
565,
309,
261,
4833,
18,
1467,
1435,
422,
374,
262,
288,
202,
202,
1330,
18,
1636,
12,
315,
28624,
67,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5267,
11979,
372,
23568,
1435,
288,
202,
22043,
12,
4833,
262,
288,
202,
565,
309,
261,
4833,
18,
1467,
1435,
422,
374,
262,
288,
202,
202,
1330,
18,
1636,
12,
315,
28624,
67,
118... |
log.warn("exception in teardown of " + getName() + ": ", e); | if (log!=null) log.warn("exception in teardown of " + getName() + ": ", e); | protected void tearDown() throws Exception { try { fbManager.dropDatabase(DB_NAME, DB_USER, DB_PASSWORD); fbManager.stop(); } catch (Exception e) { log.warn("exception in teardown of " + getName() + ": ", e); } // end of try-catch } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/d551c5302d9d5f52860ad5a47b9cbab3e036a621/BaseFBTest.java/clean/src/org/firebirdsql/jdbc/BaseFBTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
268,
2091,
4164,
1435,
1216,
1185,
282,
288,
1377,
775,
4202,
288,
540,
12754,
1318,
18,
7285,
4254,
12,
2290,
67,
1985,
16,
2383,
67,
4714,
16,
2383,
67,
13784,
1769,
540,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
268,
2091,
4164,
1435,
1216,
1185,
282,
288,
1377,
775,
4202,
288,
540,
12754,
1318,
18,
7285,
4254,
12,
2290,
67,
1985,
16,
2383,
67,
4714,
16,
2383,
67,
13784,
1769,
540,
1... |
Logger.log("UtilisateurServeur", 1, LogType.INF, "[login] login " + type + " accepté : login " + u.getLogin()); | Logger.log("UtilisateurServeur", 1, LogType.INF, "[login] login " + type + " accepté : login " + login); | public void doLogin(SessionServeur sess, String mdp) { // modif p.r. au design : on rattache la Session // à l'Utilisateur, sinon ce dernier ne pourra // pas recevoir de messages du Serveur! // ici, on le fait uniquement si le login est valide. // tout ce qui est utile à la généralisation de la méthode est ici. StatutLogin reponse_login_correct = StatutLogin.Connecte_Utilisateur; String type = "Utilisateur"; //ls : le but du parametre who, ce n'es psa de faire joli dans la console, // si ton message part toujours d'ici, qu'il l'affiche en tant que tel, pas // un pseudo fake. if(this instanceof ModerateurServeur) { Logger.log("UtilisateurServeur", 2, LogType.DBG, u.getLogin() + " est un Modérateur."); reponse_login_correct = StatutLogin.Connecte_Moderateur; type = "Modérateur"; } Logger.log("UtilisateurServeur", 1, LogType.INF, "[login] vérification statut/pass pour " + u.getLogin()); String mot_de_passe = u.getMotDePasse(); StatutLogin statut = u.getStatut(); if(mdp.equals(mot_de_passe) && statut != StatutLogin.Connecte_Utilisateur && statut != StatutLogin.Banni) { Logger.log("UtilisateurServeur", 1, LogType.INF, "[login] login " + type + " accepté : login " + u.getLogin()); sess.resultatLogin(reponse_login_correct); // la session est valide, on la fixe pour l'Utilisateur this.session = sess; u.setStatut(reponse_login_correct); Logger.log("UtilisateurServeur", 2, LogType.INF, "[login] envoi de la liste des Participants connectés"); //ls : pourquoi refaire le travail, alors qu'il est fait par une opération? Serveur.participantmanager.obtenirListeParticipants(this.getLogin()); Logger.log("UtilisateurServeur", 2, LogType.INF, "[login] broadcast du login"); Serveur.broadcaster.etatParticipant((Participant) u); } else if (!mdp.equals(mot_de_passe)) { Logger.log("UtilisateurServeur", 1, LogType.WRN, "[login] login " + type + " refusé, mauvais mot de passe : login " + u.getLogin()); sess.resultatLogin(StatutLogin.Invalide); u.setStatut(StatutLogin.Deconnecte); sess.kaboom(); } else if (statut == StatutLogin.Banni) { Logger.log("UtilisateurServeur", 1, LogType.WRN, "[login] login " + type + " banni refusé : login " + u.getLogin()); sess.resultatLogin(StatutLogin.Banni); sess.kaboom(); } else if (statut == reponse_login_correct) { // t'es déjà connecté gaillard, va voir ailleurs Logger.log("UtilisateurServeur", 1, LogType.WRN, "[login] login refusé pour " + u.getLogin() + " : déjà connecté !"); sess.resultatLogin(StatutLogin.Deja_Connecte); sess.kaboom(); } else { // pas sensé arriver. on ignore... Logger.log("UtilisateurServeur", 0, LogType.ERR, "[login] cas non-traité de login " + type + " : login " + u.getLogin()); sess.kaboom(); } } | 57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/a42f3836799b36db6530f98f3771defa8a9228b0/UtilisateurServeur.java/clean/src/serveur/trollhammer/UtilisateurServeur.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
5358,
12,
2157,
14350,
295,
8451,
16,
514,
3481,
84,
13,
288,
3639,
368,
681,
430,
293,
18,
86,
18,
20309,
8281,
294,
603,
436,
4558,
807,
7125,
3877,
3639,
368,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
5358,
12,
2157,
14350,
295,
8451,
16,
514,
3481,
84,
13,
288,
3639,
368,
681,
430,
293,
18,
86,
18,
20309,
8281,
294,
603,
436,
4558,
807,
7125,
3877,
3639,
368,
225,
... |
public void configureInterfaceStyle() { Runnable runMe = new Runnable() { public void run() { try { Pooka.getUIFactory().getPookaThemeManager().updateUI(MessageInternalFrame.this, MessageInternalFrame.this); getMessageDisplay().setDefaultFont(); getMessageDisplay().sizeToDefault(); MessageInternalFrame.this.setSize(MessageInternalFrame.this.getPreferredSize()); if (getUI() instanceof BasicInternalFrameUI) { ((BasicInternalFrameUI) getUI()).getNorthPane().addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getButton() == MouseEvent.BUTTON2) { try { Object messagePanel = SwingUtilities.getAncestorOfClass(Class.forName("net.suberic.pooka.gui.MessagePanel"), MessageInternalFrame.this); if (messagePanel != null) { ((MessagePanel) messagePanel).unselectAndMoveToBack(MessageInternalFrame.this); evt.consume(); } } catch (Exception e) { getLogger().log(java.util.logging.Level.FINE, "exception lowering MessageInternalFrame", e); } } } }); } } catch (Exception e) { } } }; if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(runMe); } else { runMe.run(); } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/538edc8a94ad8ef2062ef68f8ea643b251c1a947/MessageInternalFrame.java/clean/src/net/suberic/pooka/gui/MessageInternalFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5068,
1358,
2885,
1435,
288,
565,
10254,
1086,
4667,
273,
394,
10254,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
775,
288,
202,
565,
453,
1184,
69,
18,
588,
5370,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5068,
1358,
2885,
1435,
288,
565,
10254,
1086,
4667,
273,
394,
10254,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
775,
288,
202,
565,
453,
1184,
69,
18,
588,
5370,
1... | ||
public org.quickfix.field.NoNestedPartyIDs getNoNestedPartyIDs() throws FieldNotFound { org.quickfix.field.NoNestedPartyIDs value = new org.quickfix.field.NoNestedPartyIDs(); | public quickfix.field.NoNestedPartyIDs getNoNestedPartyIDs() throws FieldNotFound { quickfix.field.NoNestedPartyIDs value = new quickfix.field.NoNestedPartyIDs(); | public org.quickfix.field.NoNestedPartyIDs getNoNestedPartyIDs() throws FieldNotFound { org.quickfix.field.NoNestedPartyIDs value = new org.quickfix.field.NoNestedPartyIDs(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/clean/src/java/src/quickfix/fix44/NewOrderList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
336,
2279,
8649,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5103,
336,
2279,
8649,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
8649,
17619,
5... |
if (mname.startsWith("set") && !mname.equals("set") | if (mname.startsWith(SET) && !mname.equals(SET) | private static PropertyDescriptor[] getProperties(Class startClass, Class stopClass) throws IntrospectionException { Hashtable setMethods = new Hashtable(); Hashtable getMethods = new Hashtable(); Hashtable setIdxMethods = new Hashtable(); Hashtable getIdxMethods = new Hashtable(); Hashtable keys = new Hashtable(); for (Class cls = startClass; cls != stopClass; cls = cls.getSuperclass()) { Method[] meths = cls.getDeclaredMethods(); for (int i = 0; i < meths.length; i++) { Method meth = meths[i]; // We should only consider public non-statics. int mod = meth.getModifiers(); if (!Modifier.isPublic(mod) || Modifier.isStatic(mod)) { continue; } String mname = meth.getName(); Class[] mclasses = meth.getParameterTypes(); switch (mclasses.length) { case 0: if (mname.startsWith("get") && !mname.equals("get")) { mname = mname.substring(3); keys.put(mname, mname); if (getMethods.get(mname) == null) { getMethods.put(mname, meth); } } else if (mname.startsWith("is") && !mname.equals("is")) { mname = mname.substring(2); keys.put(mname, mname); if (getMethods.get(mname) == null) { getMethods.put(mname, meth); } } break; case 1: if (mname.startsWith("set") && !mname.equals("set") && meth.getReturnType().equals(Void.TYPE)) { mname = mname.substring(3); keys.put(mname, mname); if (setMethods.get(mname) == null) { setMethods.put(mname, meth); } } else if (mname.startsWith("get") && !mname.equals("get") && mclasses[0] == Integer.TYPE) { mname = mname.substring(3); keys.put(mname, mname); if (getIdxMethods.get(mname) == null) { getIdxMethods.put(mname, meth); } } break; case 2: if (mname.startsWith("set") && !mname.equals("set") && meth.getReturnType().equals(Void.TYPE) && mclasses[0] == Integer.TYPE) { mname = mname.substring(3); keys.put(mname, mname); if (setIdxMethods.get(mname) == null) { setIdxMethods.put(mname, meth); } } break; } } } // Now look through set/get methods and create desciptors. // Eliminate any methods that don't make sense. PropertyDescriptor props[] = new PropertyDescriptor[keys.size()]; Enumeration k = keys.elements(); for (int i = 0; i < props.length; i++) { String key = (String)k.nextElement(); Method set = (Method)setMethods.get(key); Method get = (Method)getMethods.get(key); Method setidx = (Method)setIdxMethods.get(key); Method getidx = (Method)getIdxMethods.get(key); if (setidx == null && getidx == null) { if (get != null && set != null) { if (!set.getReturnType().equals(Void.TYPE)) set = null; else if (!get.getReturnType().equals( set.getParameterTypes()[0])) get = null; } props[i] = new PropertyDescriptor( decapitalize(key), get, set); } else { if (getidx != null && setidx != null) { if (!setidx.getReturnType().equals(Void.TYPE)) setidx = null; else if (!getidx.getReturnType().equals( setidx.getParameterTypes()[1])) getidx = null; } props[i] = new IndexedPropertyDescriptor( decapitalize(key), get, set, getidx, setidx); } } return (props);} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/60c94257b5056c22f458653cfe35d33182368638/Introspector.java/clean/libraries/javalib/java/beans/Introspector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
760,
26761,
8526,
9392,
12,
797,
787,
797,
16,
1659,
2132,
797,
13,
1216,
3094,
26362,
503,
288,
202,
5582,
14544,
444,
4712,
273,
394,
18559,
5621,
202,
5582,
14544,
15429,
273,
394,
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,
3238,
760,
26761,
8526,
9392,
12,
797,
787,
797,
16,
1659,
2132,
797,
13,
1216,
3094,
26362,
503,
288,
202,
5582,
14544,
444,
4712,
273,
394,
18559,
5621,
202,
5582,
14544,
15429,
273,
394,
18... |
if (id == 0) | if ( (id&0xFF) == 0) | public void mouseUp(MouseEvent e) { control = (e.stateMask & SWT.CONTROL) != 0; shift = (e.stateMask & SWT.SHIFT) != 0; if (iconoffset == null) iconoffset = new Point(0, 0); Point real = screen2real(e.x, e.y); Point icon = new Point(real.x - iconoffset.x, real.y - iconoffset.y); // Quick new hop option? (drag from one step to another) // if (candidate != null) { if (spoon.getTransMeta().findTransHop(candidate) == null) { spoon.getTransMeta().addTransHop(candidate); spoon.refreshTree(); if (spoon.getTransMeta().hasLoop(candidate.getFromStep())) { MessageBox mb = new MessageBox(shell, SWT.YES | SWT.ICON_WARNING); mb.setMessage(Messages.getString("SpoonGraph.Dialog.HopCausesLoop.Message")); //$NON-NLS-1$ mb.setText(Messages.getString("SpoonGraph.Dialog.HopCausesLoop.Title")); //$NON-NLS-1$ mb.open(); int idx = spoon.getTransMeta().indexOfTransHop(candidate); spoon.getTransMeta().removeTransHop(idx); spoon.refreshTree(); } else { spoon.addUndoNew(new TransHopMeta[] { candidate }, new int[] { spoon.getTransMeta().indexOfTransHop(candidate) }); } } candidate = null; selected_steps = null; last_button = 0; redraw(); } // Did we select a region on the screen? Mark steps in region as // selected // else if (selrect != null) { selrect.width = real.x - selrect.x; selrect.height = real.y - selrect.y; spoon.getTransMeta().unselectAll(); spoon.getTransMeta().selectInRect(selrect); selrect = null; redraw(); } // Clicked on an icon? // else if (selected_step != null) { if (e.button == 1) { Point realclick = screen2real(e.x, e.y); if (lastclick.x == realclick.x && lastclick.y == realclick.y) { // Flip selection when control is pressed! if (control) { selected_step.flipSelected(); } else { // Otherwise, select only the icon clicked on! spoon.getTransMeta().unselectAll(); selected_step.setSelected(true); } } else { // Find out which Steps & Notes are selected selected_steps = spoon.getTransMeta().getSelectedSteps(); selected_notes = spoon.getTransMeta().getSelectedNotes(); // We moved around some items: store undo info... boolean also = false; if (selected_notes != null && previous_note_locations != null) { int indexes[] = spoon.getTransMeta().getNoteIndexes(selected_notes); spoon.addUndoPosition(selected_notes, indexes, previous_note_locations, spoon.getTransMeta() .getSelectedNoteLocations(), also); also = selected_steps != null && selected_steps.length > 0; } if (selected_steps != null && previous_step_locations != null) { int indexes[] = spoon.getTransMeta().getStepIndexes(selected_steps); spoon.addUndoPosition(selected_steps, indexes, previous_step_locations, spoon.getTransMeta() .getSelectedStepLocations(), also); } } } // OK, we moved the step, did we move it across a hop? // If so, ask to split the hop! if (split_hop) { TransHopMeta hi = findHop(icon.x + iconsize / 2, icon.y + iconsize / 2); if (hi != null) { int id = 0; if (!spoon.props.getAutoSplit()) { MessageDialogWithToggle md = new MessageDialogWithToggle(shell, Messages.getString("SpoonGraph.Dialog.SplitHop.Title"), null, //$NON-NLS-1$ Messages.getString("SpoonGraph.Dialog.SplitHop.Message") + Const.CR + hi.toString(), MessageDialog.QUESTION, new String[] { //$NON-NLS-1$ Messages.getString("System.Button.Yes"), Messages.getString("System.Button.No") }, 0, Messages.getString("SpoonGraph.Dialog.Option.SplitHop.DoNotAskAgain"), spoon.props.getAutoSplit()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ id = md.open(); spoon.props.setAutoSplit(md.getToggleState()); } if (id == 0) // Means: "Yes" button clicked! { TransHopMeta newhop1 = new TransHopMeta(hi.getFromStep(), selected_step); spoon.getTransMeta().addTransHop(newhop1); spoon .addUndoNew(new TransHopMeta[] { newhop1 }, new int[] { spoon.getTransMeta().indexOfTransHop(newhop1) }, true); TransHopMeta newhop2 = new TransHopMeta(selected_step, hi.getToStep()); spoon.getTransMeta().addTransHop(newhop2); spoon .addUndoNew(new TransHopMeta[] { newhop2 }, new int[] { spoon.getTransMeta().indexOfTransHop(newhop2) }, true); int idx = spoon.getTransMeta().indexOfTransHop(hi); spoon.addUndoDelete(new TransHopMeta[] { hi }, new int[] { idx }, true); spoon.getTransMeta().removeTransHop(idx); spoon.refreshTree(); } } split_hop = false; } selected_steps = null; selected_notes = null; selected_step = null; selected_note = null; redraw(); } // Notes? else if (selected_note != null) { if (e.button == 1) { if (lastclick.x == e.x && lastclick.y == e.y) { // Flip selection when control is pressed! if (control) { selected_note.flipSelected(); } else { // Otherwise, select only the note clicked on! spoon.getTransMeta().unselectAll(); selected_note.setSelected(true); } } else { // Find out which Steps & Notes are selected selected_steps = spoon.getTransMeta().getSelectedSteps(); selected_notes = spoon.getTransMeta().getSelectedNotes(); // We moved around some items: store undo info... boolean also = false; if (selected_notes != null && previous_note_locations != null) { int indexes[] = spoon.getTransMeta().getNoteIndexes(selected_notes); spoon.addUndoPosition(selected_notes, indexes, previous_note_locations, spoon.getTransMeta() .getSelectedNoteLocations(), also); also = selected_steps != null && selected_steps.length > 0; } if (selected_steps != null && previous_step_locations != null) { int indexes[] = spoon.getTransMeta().getStepIndexes(selected_steps); spoon.addUndoPosition(selected_steps, indexes, previous_step_locations, spoon.getTransMeta() .getSelectedStepLocations(), also); } } } selected_notes = null; selected_steps = null; selected_step = null; selected_note = null; } } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/4be5a645c3cc8446cc8e0791566ea0a6357ad41e/SpoonGraph.java/buggy/src/be/ibridge/kettle/spoon/SpoonGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
7644,
1211,
12,
9186,
1133,
425,
13,
5411,
288,
7734,
3325,
273,
261,
73,
18,
2019,
5796,
473,
348,
8588,
18,
18248,
13,
480,
374,
31,
7734,
4654,
273,
261,
73,
18,
2019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
7644,
1211,
12,
9186,
1133,
425,
13,
5411,
288,
7734,
3325,
273,
261,
73,
18,
2019,
5796,
473,
348,
8588,
18,
18248,
13,
480,
374,
31,
7734,
4654,
273,
261,
73,
18,
2019,
... |
void set( final int type, final String strVal1, final String strVal2, final String strVal3) { this.type = type; this.strVal1 = strVal1; this.strVal2 = strVal2; this.strVal3 = strVal3; switch (type) { case ClassWriter.UTF8: case ClassWriter.STR: case ClassWriter.CLASS: case ClassWriter.TYPE_NORMAL: hashCode = 0x7FFFFFFF & (type + strVal1.hashCode()); return; case ClassWriter.NAME_TYPE: hashCode = 0x7FFFFFFF & (type + strVal1.hashCode() * strVal2.hashCode()); return; default: hashCode = 0x7FFFFFFF & (type + strVal1.hashCode() * strVal2.hashCode() * strVal3.hashCode()); } | void set(final int intVal) { this.type = ClassWriter.INT; this.intVal = intVal; this.hashCode = 0x7FFFFFFF & (type + intVal); | void set( final int type, final String strVal1, final String strVal2, final String strVal3) { this.type = type; this.strVal1 = strVal1; this.strVal2 = strVal2; this.strVal3 = strVal3; switch (type) { case ClassWriter.UTF8: case ClassWriter.STR: case ClassWriter.CLASS: case ClassWriter.TYPE_NORMAL: hashCode = 0x7FFFFFFF & (type + strVal1.hashCode()); return; case ClassWriter.NAME_TYPE: hashCode = 0x7FFFFFFF & (type + strVal1.hashCode() * strVal2.hashCode()); return; // ClassWriter.FIELD: // ClassWriter.METH: // ClassWriter.IMETH: default: hashCode = 0x7FFFFFFF & (type + strVal1.hashCode() * strVal2.hashCode() * strVal3.hashCode()); } } | 392 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/392/f599e55842d618133310b7fc80693104f4ce84aa/Item.java/buggy/src/org/objectweb/asm/Item.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
444,
12,
3639,
727,
509,
618,
16,
3639,
727,
514,
609,
3053,
21,
16,
3639,
727,
514,
609,
3053,
22,
16,
3639,
727,
514,
609,
3053,
23,
13,
565,
288,
3639,
333,
18,
723,
273,
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,
377,
918,
444,
12,
3639,
727,
509,
618,
16,
3639,
727,
514,
609,
3053,
21,
16,
3639,
727,
514,
609,
3053,
22,
16,
3639,
727,
514,
609,
3053,
23,
13,
565,
288,
3639,
333,
18,
723,
273,
61... |
void setRootPane(JRootPane root) | public void setRootPane(JRootPane root) | void setRootPane(JRootPane root) { if (rootPane != null) remove(rootPane); rootPane = root; add(rootPane, BorderLayout.CENTER); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/JFrame.java/clean/core/src/classpath/javax/javax/swing/JFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
31706,
8485,
12,
46,
2375,
8485,
1365,
13,
565,
288,
202,
430,
261,
3085,
8485,
480,
446,
13,
202,
565,
1206,
12,
3085,
8485,
1769,
202,
377,
202,
3085,
8485,
273,
1365,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
31706,
8485,
12,
46,
2375,
8485,
1365,
13,
565,
288,
202,
430,
261,
3085,
8485,
480,
446,
13,
202,
565,
1206,
12,
3085,
8485,
1769,
202,
377,
202,
3085,
8485,
273,
1365,
31,
... |
public final static void endCallArgs( final Ruby ruby, final Block actBlock) { if (actBlock != null) { ruby.getBlockStack().push(actBlock); | public final static void endCallArgs(Ruby ruby, Block currentBlock) { if (currentBlock != null) { ruby.getBlockStack().push(currentBlock); | public final static void endCallArgs( final Ruby ruby, final Block actBlock) { if (actBlock != null) { // XXX ruby.getBlockStack().push(actBlock); // Refresh the next attribute. } ruby.getIterStack().pop(); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/385e3f4e7eba5184dfea0a1e9d23b8ab7d46b1a5/ArgsUtil.java/buggy/org/jruby/ast/util/ArgsUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
760,
918,
679,
1477,
2615,
12,
3639,
727,
19817,
22155,
16,
3639,
727,
3914,
1328,
1768,
13,
288,
3639,
309,
261,
621,
1768,
480,
446,
13,
288,
5411,
368,
11329,
5411,
22155,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
679,
1477,
2615,
12,
3639,
727,
19817,
22155,
16,
3639,
727,
3914,
1328,
1768,
13,
288,
3639,
309,
261,
621,
1768,
480,
446,
13,
288,
5411,
368,
11329,
5411,
22155,
... |
final InputStream in2 = inputStreamForClassName(classname.getType()); | final InputStream in2 = inputStreamForClassName(classloader,classname.getType()); | public AbstractClassClosure(final List/* <Class> */classes, final boolean includeJDK) { final Set visited = new HashSet(); final ArrayListStack stack = new ArrayListStack(); for (final Iterator iterator = classes.iterator(); iterator.hasNext();) { final Class c = (Class)iterator.next(); final ClassName classname = ClassName.getClassName(c.getName().replace('.', '/')); stack.push(classname); visited.add(classname.getExternalName()); } while (!stack.empty()) { // Add class to closure. final ClassName classname = (ClassName)stack.pop(); final InputStream in = inputStreamForClassName(classname.getType()); try { final ClassFile classfile = new ClassFile(in); closure.add(classfile.getName().getExternalName()); final ConstantPool pool = classfile.getConstantPool(); final Iterator references = pool.getAllClassNames().iterator(); while (references.hasNext()) { final ClassName classnameReference = (ClassName)references.next(); final String name = classnameReference.getExternalName(); if (name.indexOf('[') != -1) { // skip arrays } else if (!includeJDK && (name.startsWith("java.") || name.startsWith("javax.") || name.startsWith("sun.") || name.startsWith("com.sun.corba") || name.startsWith("com.sun.image") || name.startsWith("com.sun.java.swing") || name.startsWith("com.sun.naming") || name .startsWith("com.sun.security"))) { // if directed, skip JDK references } else { final boolean isNew = visited.add(name); if (isNew) { stack.push(classnameReference); } } } // Get the input stream a second time to add to JAR final InputStream in2 = inputStreamForClassName(classname.getType()); try { addClass(classfile.getName().getInternalName(), in2); } finally { in2.close(); } } catch (IOException e) { throw new WicketRuntimeException(e); } finally { try { in.close(); } catch (IOException e) { throw new RuntimeException(e); } } } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/63d8ed9961a9ef3aae39c5f13be4b5fec031d416/AbstractClassClosure.java/buggy/wicket-sandbox/src/jonathan/java/wicket/util/lang/AbstractClassClosure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
797,
10573,
12,
6385,
987,
20308,
411,
797,
34,
1195,
4701,
16,
727,
1250,
2341,
46,
3398,
13,
202,
95,
202,
202,
6385,
1000,
9711,
273,
394,
6847,
5621,
202,
202,
6385,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
797,
10573,
12,
6385,
987,
20308,
411,
797,
34,
1195,
4701,
16,
727,
1250,
2341,
46,
3398,
13,
202,
95,
202,
202,
6385,
1000,
9711,
273,
394,
6847,
5621,
202,
202,
6385,... |
logger.error(message.toString()); | logger.error(String.valueOf(message)); | public void fatal(Object message) { logger.error(message.toString()); } | 49526 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49526/20ccb7e664910ee2066f364bc6ef007f40ccf10f/SLF4JLog.java/buggy/src/java/org/apache/commons/logging/impl/SLF4JLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10081,
12,
921,
883,
13,
288,
565,
1194,
18,
1636,
12,
780,
18,
1132,
951,
12,
2150,
10019,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
10081,
12,
921,
883,
13,
288,
565,
1194,
18,
1636,
12,
780,
18,
1132,
951,
12,
2150,
10019,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if ( config.supportsResume() ) { | if (config.supportsResume()) { | public void run( IProgressMonitor m ) throws CoreException { target[0] = new CDebugTarget( launch, cdiTarget, name, debuggeeProcess, debuggerProcess, file, allowTerminate, allowDisconnect ); ICDIConfiguration config = cdiTarget.getSession().getConfiguration(); if ( config.supportsBreakpoints() && stopInMain ) { stopInMain( (CDebugTarget)target[0] ); } if ( config.supportsResume() ) { target[0].resume(); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a192c2f172621fd921dbaebb14ee66fcee4f8f12/CDIDebugModel.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
467,
5491,
7187,
312,
262,
1216,
30015,
288,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
276,
3211,
2326,
16,
508,
16,
1198,
908,
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,
1875,
202,
482,
918,
1086,
12,
467,
5491,
7187,
312,
262,
1216,
30015,
288,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
276,
3211,
2326,
16,
508,
16,
1198,
908,
7... |
public InputStream newInputStream ( ) { if (preCheck()) { _cur._locale.enter(); try { return _newInputStream(); } finally { _cur._locale.exit(); } } else synchronized ( _cur._locale ) { _cur._locale.enter(); try { return _newInputStream(); } finally { _cur._locale.exit(); } } } | public InputStream newInputStream() { if (preCheck()) { _cur._locale.enter(); try { return _newInputStream(); } finally { _cur._locale.exit(); } } else synchronized (_cur._locale) { _cur._locale.enter(); try { return _newInputStream(); } finally { _cur._locale.exit(); } } } | public InputStream newInputStream ( ) { if (preCheck()) { _cur._locale.enter(); try { return _newInputStream(); } finally { _cur._locale.exit(); } } else synchronized ( _cur._locale ) { _cur._locale.enter(); try { return _newInputStream(); } finally { _cur._locale.exit(); } } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/8883179236b87db476131da6fa70580fac43da83/Cursor.java/clean/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cursor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5037,
394,
4348,
261,
262,
288,
309,
261,
1484,
1564,
10756,
288,
389,
1397,
6315,
6339,
18,
2328,
5621,
775,
288,
327,
389,
2704,
4348,
5621,
289,
3095,
288,
389,
1397,
6315,
6339,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
394,
4348,
261,
262,
288,
309,
261,
1484,
1564,
10756,
288,
389,
1397,
6315,
6339,
18,
2328,
5621,
775,
288,
327,
389,
2704,
4348,
5621,
289,
3095,
288,
389,
1397,
6315,
6339,... |
} catch ( Exception except ) { | } catch (Exception except) { | public Database getDatabase() throws DatabaseNotFoundException, PersistenceException { if ( _dbName == null ) throw new IllegalStateException( "Called 'getDatabase' without first setting database name" ); if ( DatabaseRegistry.getDatabaseRegistry( _dbName ) == null ) { if ( _jdoConf == null ) throw new DatabaseNotFoundException( Messages.format( "jdo.dbNoMapping", _dbName ) ); try { DatabaseRegistry.loadDatabase( new InputSource( _jdoConf ), _entityResolver, _classLoader ); } catch ( MappingException except ) { throw new DatabaseNotFoundException( except ); } } // load transaction manager factory registry configuration try { TransactionManagerFactoryRegistry.load (new InputSource (_jdoConf), _entityResolver); } catch (TransactionManagerAcquireException e) { throw new PersistenceException (Messages.message ("jdo.transaction.problemToInitializeTransactionManagerFactory"), e); } if (_transactionManagerFactory == null) { String transactionMode = null; try { TransactionDemarcation demarcation = JDOConfLoader.getTransactionDemarcation(new InputSource (_jdoConf), _entityResolver); String demarcationMode =demarcation.getMode(); org.exolab.castor.jdo.conf.TransactionManager transactionManager = demarcation.getTransactionManager(); if (transactionManager != null) transactionMode = transactionManager.getName(); else { if (demarcationMode.equals(LocalTransactionManagerFactory.NAME)) transactionMode= LocalTransactionManagerFactory.NAME; else throw new PersistenceException (Messages.message ("jdo.transaction.missingTransactionManagerConfiguration")); } } catch (MappingException e) { throw new PersistenceException ("jdo.transaction.noValidTransactionMode", e); } /* * Try to obtain the specified<code>TransactionManagerFactory</code> instance from the * registry. * * If the returned TransactionManagerFactory instance is null, * return an exception to indicate that we cannot live without a * valid TransactionManagerFactory instance and that the user should * change her configuration. */ _transactionManagerFactory = TransactionManagerFactoryRegistry.getTransactionManagerFactory (transactionMode); if (_transactionManagerFactory == null) { throw new DatabaseNotFoundException( Messages.format( "jdo.transaction.missingTransactionManagerFactory", transactionMode)); } /* * Try to obtain a <code>javax.jta.TransactionManager>/code> from the factory. */ try { tm = _transactionManagerFactory.getTransactionManager(); } catch (TransactionManagerAcquireException e) { throw new DatabaseNotFoundException( Messages.format( "jdo.transaction.unableToAcquireTransactionManager", _transactionManagerFactory.getName(), e ) ); } } /* At this point, we MUST have a valid instance of TransactionManagerFactory, and * dependent on its type (LOCAL or not), we MIGHT have a * valid<code>javax. jta.TransactionManager</code> instance. * * Scenario 1: If the user uses Castor in standalone mode (outside of an * J2EE container), we have a TransactionManagerFactory instance only, * but no TransactionManager instance. * * Scenario 2: If the user uses Castor in J2EE mode (inside of an J2EE * container), and wants the container to control transaction * demarcation, we have both a TransactionManagerFactory and a * TransactionManager instance. */ if ( (_transactionManagerFactory.getName().equals (LocalTransactionManagerFactory.NAME ) ) && ( tm != null) ) { Transaction tx; DatabaseImpl dbImpl; try { tx = tm.getTransaction(); if ( _txDbPool != null && _txDbPool.containsTx( tx ) ) return _txDbPool.get( tx ); if ( tx != null && tx.getStatus() == Status.STATUS_ACTIVE ) { dbImpl = new DatabaseImpl( _dbName, _lockTimeout, _callback, _instanceFactory, tx, _classLoader, _autoStore ); if ( _txDbPool != null ) _txDbPool.put( tx, dbImpl ); tx.registerSynchronization( dbImpl ); return dbImpl; } } catch ( Exception except ) { // NamingException, SystemException, RollbackException if ( _logInterceptor != null ) _logInterceptor.exception( except ); } } return new DatabaseImpl( _dbName, _lockTimeout, _callback, _instanceFactory, null, _classLoader, _autoStore ); } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/763e48d3206f656fefd945f40f608f400a41ba4d/JDO.java/buggy/trunk/castor/src/main/org/exolab/castor/jdo/JDO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5130,
11263,
1435,
3639,
1216,
5130,
3990,
16,
13381,
503,
565,
288,
3639,
309,
261,
389,
1966,
461,
422,
446,
262,
5411,
604,
394,
5477,
12,
315,
8185,
296,
588,
4254,
11,
2887,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5130,
11263,
1435,
3639,
1216,
5130,
3990,
16,
13381,
503,
565,
288,
3639,
309,
261,
389,
1966,
461,
422,
446,
262,
5411,
604,
394,
5477,
12,
315,
8185,
296,
588,
4254,
11,
2887,
... |
clauses.addElement(new BooleanClause(query, required, prohibited)); | add(new BooleanClause(query, required, prohibited)); | public void add(Query query, boolean required, boolean prohibited) { clauses.addElement(new BooleanClause(query, required, prohibited)); } | 1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/b39cecc5851389b05d8400da46eb96ca530a02d9/BooleanQuery.java/buggy/src/java/org/apache/lucene/search/BooleanQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
12,
1138,
843,
16,
1250,
1931,
16,
1250,
450,
29993,
13,
288,
565,
527,
12,
2704,
3411,
7044,
12,
2271,
16,
1931,
16,
450,
29993,
10019,
225,
289,
2,
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,
282,
1071,
918,
527,
12,
1138,
843,
16,
1250,
1931,
16,
1250,
450,
29993,
13,
288,
565,
527,
12,
2704,
3411,
7044,
12,
2271,
16,
1931,
16,
450,
29993,
10019,
225,
289,
2,
-100,
-100,
-100,
... |
element instanceof PsiCodeBlock || element instanceof PsiIfStatement){ | element instanceof PsiCodeBlock || element instanceof PsiIfStatement){ | private static void appendElement(StringBuffer switchStatementString, PsiElement element, boolean renameBreakElements, String breakLabelString){ final String text = element.getText(); if(!renameBreakElements){ switchStatementString.append(text); } else if(element instanceof PsiBreakStatement){ final PsiIdentifier identifier = ((PsiBreakStatement) element).getLabelIdentifier(); if(identifier == null){ switchStatementString.append("break " + breakLabelString + ';'); } else{ final String identifierText = identifier.getText(); if("".equals(identifierText)){ switchStatementString.append("break " + breakLabelString + ';'); } else{ switchStatementString.append(text); } } } else if(element instanceof PsiBlockStatement || element instanceof PsiCodeBlock || element instanceof PsiIfStatement){ final PsiElement[] children = element.getChildren(); for(int i = 0; i < children.length; i++){ final PsiElement child = children[i]; appendElement(switchStatementString, child, renameBreakElements, breakLabelString); } } else{ switchStatementString.append(text); } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/ReplaceIfWithSwitchIntention.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/switchtoif/ReplaceIfWithSwitchIntention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
714,
1046,
12,
780,
1892,
1620,
3406,
780,
16,
4766,
1377,
453,
7722,
1046,
930,
16,
4766,
1377,
1250,
6472,
7634,
3471,
16,
4766,
1377,
514,
898,
2224,
780,
15329,
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,
760,
918,
714,
1046,
12,
780,
1892,
1620,
3406,
780,
16,
4766,
1377,
453,
7722,
1046,
930,
16,
4766,
1377,
1250,
6472,
7634,
3471,
16,
4766,
1377,
514,
898,
2224,
780,
15329,
3639,
... |
listener.proxyDetached(this, value); | listener.proxyDetached(this, value, parent); | public void fireDetached(Object value) { for (DataProxyStateChangeListener listener: listeners) { listener.proxyDetached(this, value); } } | 51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/66c9dbbf8f8e85cbb73c99a01903807d85ce09e3/DataProxy.java/buggy/yawl/src/au/edu/qut/yawl/persistence/managed/DataProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4452,
4986,
2004,
12,
921,
460,
13,
288,
202,
202,
1884,
261,
751,
3886,
1119,
15744,
2991,
30,
4679,
13,
288,
1082,
202,
12757,
18,
5656,
4986,
2004,
12,
2211,
16,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4452,
4986,
2004,
12,
921,
460,
13,
288,
202,
202,
1884,
261,
751,
3886,
1119,
15744,
2991,
30,
4679,
13,
288,
1082,
202,
12757,
18,
5656,
4986,
2004,
12,
2211,
16,
460,
... |
AST tmp2086_AST_in = (AST)_t; | AST tmp2089_AST_in = (AST)_t; | public final void atphrase(AST _t) throws RecognitionException { AST atphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t600 = _t; AST tmp2085_AST_in = (AST)_t; match(_t,AT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_37.member(_t.getType()))) { atphraseab(_t); _t = _retTree; atphraseab(_t); _t = _retTree; } else if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLONALIGNED: { AST tmp2086_AST_in = (AST)_t; match(_t,COLONALIGNED); _t = _t.getNextSibling(); break; } case LEFTALIGNED: { AST tmp2087_AST_in = (AST)_t; match(_t,LEFTALIGNED); _t = _t.getNextSibling(); break; } case RIGHTALIGNED: { AST tmp2088_AST_in = (AST)_t; match(_t,RIGHTALIGNED); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t600; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
622,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
622,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
622,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
622,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
protected Properties getProperties() { | public Properties getProperties() { | protected Properties getProperties() { return this.properties; } | 9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/9e24da9e7a8e10552c37884d711ca4ca4ce322f8/ExTeX.java/clean/ExTeX/src/java/de/dante/extex/ExTeX.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6183,
9392,
1435,
288,
3639,
327,
333,
18,
4738,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6183,
9392,
1435,
288,
3639,
327,
333,
18,
4738,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for (Iterator iter= fDelete.iterator(); iter.hasNext();) { Object element= iter.next(); if (element instanceof IResource) { deltaFactory.delete((IResource)element); } } | public void buildDelta(IResourceChangeDescriptionFactory deltaFactory) { for (Iterator iter= fDelete.iterator(); iter.hasNext();) { Object element= iter.next(); if (element instanceof IResource) { deltaFactory.delete((IResource)element); } } getResourceModifications().buildDelta(deltaFactory); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/90d0914c88a45fb75857f0993c95026d75f98358/DeleteModifications.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/DeleteModifications.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
9242,
12,
45,
1420,
3043,
3291,
1733,
3622,
1733,
13,
288,
202,
202,
1884,
261,
3198,
1400,
33,
284,
2613,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
1082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
9242,
12,
45,
1420,
3043,
3291,
1733,
3622,
1733,
13,
288,
202,
202,
1884,
261,
3198,
1400,
33,
284,
2613,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
1082... | |
public CHKBlock fetch(NodeCHK chk) throws IOException, CHKVerifyException { | public CHKBlock fetch(NodeCHK chk) throws IOException { | public CHKBlock fetch(NodeCHK chk) throws IOException, CHKVerifyException { byte[] data = dataStore.getDataForBlock(chk); if(data == null) { if(headersStore.getDataForBlock(chk) != null) { Logger.normal(this, "Deleting: "+chk+" headers, no data"); headersStore.delete(chk); } return null; } byte[] headers = headersStore.getDataForBlock(chk); if(headers == null) { // No headers, delete Logger.normal(this, "Deleting: "+chk+" data, no headers"); dataStore.delete(chk); } // Decode int headerLen = ((headers[0] & 0xff) << 8) + (headers[1] & 0xff); if(headerLen > HEADER_BLOCK_SIZE-2 || headerLen < 0) { Logger.normal(this, "Invalid header data on "+chk+", deleting"); dataStore.delete(chk); headersStore.delete(chk); return null; } byte[] buf = new byte[headerLen]; System.arraycopy(headers, 2, buf, 0, headerLen);// Logger.minor(this, "Raw headers: "+headers.length+" bytes, hash "+Fields.hashCode(headers));// Logger.minor(this, "Headers: "+headerLen+" bytes, hash "+Fields.hashCode(headers));// Logger.minor(this, "Data: "+data.length+" bytes, hash "+Fields.hashCode(data)); return new CHKBlock(data, buf, chk); } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/03d1c3dfc05a19bebb9ca5ebd9b78a6299dcf977/FreenetStore.java/buggy/src/freenet/store/FreenetStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6469,
47,
1768,
2158,
12,
907,
1792,
47,
15000,
13,
1216,
1860,
288,
3639,
1160,
8526,
501,
273,
31927,
18,
588,
751,
1290,
1768,
12,
27038,
1769,
3639,
309,
12,
892,
422,
446,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6469,
47,
1768,
2158,
12,
907,
1792,
47,
15000,
13,
1216,
1860,
288,
3639,
1160,
8526,
501,
273,
31927,
18,
588,
751,
1290,
1768,
12,
27038,
1769,
3639,
309,
12,
892,
422,
446,
13... |
Date newActionDate = DateUtils.getDateWithoutTimeStamp(accountBO.getAccountActionDate(Short.valueOf("1")).getActionDate().getTime()); assertEquals("Didn't generate new repayment schedule, so first installment date should be same as before ",oldActionDate,newActionDate); | Date newActionDate = DateUtils.getDateWithoutTimeStamp(accountBO .getAccountActionDate(Short.valueOf("1")).getActionDate() .getTime()); assertEquals( "Didn't generate new repayment schedule, so first installment date should be same as before ", oldActionDate, newActionDate); | public void testUpdateLoanWithoutRegeneratingNewRepaymentSchedule() throws ApplicationException, SystemException { Date startDate = new Date(System.currentTimeMillis()); Date newDate = incrementCurrentDate(14); accountBO = getLoanAccount(); Date oldActionDate = DateUtils.getDateWithoutTimeStamp(accountBO.getAccountActionDate(Short.valueOf("1")).getActionDate().getTime()); ((LoanBO)accountBO).setDisbursementDate(newDate); ((LoanBO)accountBO).updateLoan(); HibernateUtil.commitTransaction(); HibernateUtil.getSessionTL().flush(); HibernateUtil.closeSession(); group = (CustomerBO) TestObjectFactory.getObject(CustomerBO.class, group.getCustomerId()); accountBO = (AccountBO) HibernateUtil.getSessionTL().get( AccountBO.class, accountBO.getAccountId()); Date newActionDate = DateUtils.getDateWithoutTimeStamp(accountBO.getAccountActionDate(Short.valueOf("1")).getActionDate().getTime()); assertEquals("Didn't generate new repayment schedule, so first installment date should be same as before ",oldActionDate,newActionDate); } | 45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/8b7a0cdb79f363f8ac3f82d8f06e16d5166a08ed/TestLoanBO.java/clean/mifos/test/org/mifos/application/accounts/loan/business/TestLoanBO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1891,
1504,
304,
8073,
1617,
708,
1776,
1908,
426,
9261,
6061,
1435,
1216,
28816,
16,
26731,
288,
202,
202,
1626,
12572,
273,
394,
2167,
12,
3163,
18,
2972,
28512,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1891,
1504,
304,
8073,
1617,
708,
1776,
1908,
426,
9261,
6061,
1435,
1216,
28816,
16,
26731,
288,
202,
202,
1626,
12572,
273,
394,
2167,
12,
3163,
18,
2972,
28512,
10... |
assertTrue(publisher instanceof Publisher); | public void testSimpleUpload() throws IOException, CruiseControlException { SfeeFrsPublisher publisher = new SfeeFrsPublisher(); assertTrue(publisher instanceof Publisher); publisher.setServerURL(SERVER_URL); publisher.setUsername(USERNAME); publisher.setPassword(PASSWORD); publisher.setReleaseID(RELEASE_ID); final File tempFile = File.createTempFile(SFEEFrsPublisherTest.class.getName(), "temp"); tempFile.deleteOnExit(); publisher.setFile(tempFile); publisher.validate(); //The cruise log information isn't used by this task. publisher.publish(null); assertFileExistsInRelease(tempFile.getName(), SERVER_URL, USERNAME, PASSWORD, RELEASE_ID); } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/97a69c49f964a7e872648d66952c8b0356195310/SFEEFrsPublisherTest.java/clean/main/test/net/sourceforge/cruisecontrol/publishers/sfee/SFEEFrsPublisherTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
4777,
1435,
1216,
1860,
16,
385,
8653,
784,
3367,
503,
288,
3639,
348,
21386,
42,
5453,
15960,
12855,
273,
394,
348,
21386,
42,
5453,
15960,
5621,
9079,
12855,
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,
1842,
5784,
4777,
1435,
1216,
1860,
16,
385,
8653,
784,
3367,
503,
288,
3639,
348,
21386,
42,
5453,
15960,
12855,
273,
394,
348,
21386,
42,
5453,
15960,
5621,
9079,
12855,
18,
... | |
this(mimeType, null); | mimeType = null; representationClass = null; humanPresentableName = null; | DataFlavor(String mimeType) throws ClassNotFoundException{ this(mimeType, null);} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/4a4bea250b4a133aa098e15b134e2958bdd32aeb/DataFlavor.java/buggy/libraries/javalib/java/awt/datatransfer/DataFlavor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1910,
2340,
9444,
12,
780,
10707,
13,
1216,
10403,
95,
225,
333,
12,
19176,
16,
446,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1910,
2340,
9444,
12,
780,
10707,
13,
1216,
10403,
95,
225,
333,
12,
19176,
16,
446,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
new Composite(sashForm, SWT.NONE); | new Composite(templateSashForm, SWT.NONE); | public void createControl(Composite parent) { // top level group Composite outerContainer = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 3; layout.makeColumnsEqualWidth = false; outerContainer.setLayout(layout); outerContainer.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL)); fFilterCheck = new Button(outerContainer, SWT.CHECK); fFilterCheck.setText(PDEPlugin.getResourceString("NewExtensionWizard.PointSelectionPage.filterCheck")); GridData gd = new GridData(); gd.horizontalSpan = 3; fFilterCheck.setLayoutData(gd); fFilterCheck.setSelection(true); fFilterCheck.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { fPointListViewer.refresh(); } }); fPointListViewer = new TableViewer( outerContainer, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER); fPointListViewer.setContentProvider(new PointContentProvider()); fPointListViewer.setLabelProvider(new PointLabelProvider()); fPointListViewer.addSelectionChangedListener(this); fPointListViewer.addDoubleClickListener(new IDoubleClickListener(){ public void doubleClick(DoubleClickEvent event) { if (canFinish()){ finish(); wizard.getShell().close(); wizard.dispose(); wizard.setContainer(null); } } }); fPointListViewer.setSorter(ListUtil.NAME_SORTER); gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 300; gd.horizontalSpan = 3; fPointListViewer.getTable().setLayoutData(gd); Composite templateComposite = new Composite(outerContainer, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.numColumns = 1; templateComposite.setLayout(layout); gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan=3; templateComposite.setLayoutData(gd); Label templateLabel = new Label(templateComposite, SWT.NONE); templateLabel.setText(PDEPlugin.getResourceString("NewExtensionWizard.PointSelectionPage.contributedTemplates.title")); gd = new GridData(GridData.FILL_BOTH); templateLabel.setLayoutData(gd); sashForm = new SashForm(templateComposite, SWT.HORIZONTAL); sashForm.setLayout(new GridLayout()); gd = new GridData(GridData.FILL_BOTH); gd.heightHint = 100; sashForm.setLayoutData(gd); Composite wizardComposite = new Composite(sashForm, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; wizardComposite.setLayout(layout); gd = new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); wizardComposite.setLayoutData(gd); fTemplateViewer = new TableViewer(wizardComposite, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER); fTemplateViewer.setContentProvider(new TemplateContentProvider()); fTemplateViewer.setLabelProvider(ElementLabelProvider.INSTANCE); fTemplateViewer.setSorter(ListUtil.NAME_SORTER); fTemplateViewer.addSelectionChangedListener(this); gd = new GridData( GridData.FILL_BOTH); fTemplateViewer.getTable().setLayoutData(gd); TableItem[] selection = fPointListViewer.getTable().getSelection(); if (selection != null && selection.length > 0) fTemplateViewer.setInput((IPluginExtensionPoint)selection[0]); fTemplateViewer.addDoubleClickListener(new IDoubleClickListener(){ public void doubleClick(DoubleClickEvent event) { if (canFlipToNextPage()){ advanceToNextPage(); } } }); Composite descriptionComposite = new Composite(sashForm, SWT.NONE); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; descriptionComposite.setLayout(layout); gd = new GridData( GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); descriptionComposite.setLayoutData(gd); createDescriptionIn(descriptionComposite); createMenuManager(); initialize(); setControl(outerContainer); Dialog.applyDialogFont(outerContainer); WorkbenchHelp.setHelp( outerContainer, IHelpContextIds.ADD_EXTENSIONS_SCHEMA_BASED); } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/fff8f9ac1afd7109554dc585ec89d65be0d98d3c/PointSelectionPage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/extension/PointSelectionPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
759,
1760,
1801,
1041,
202,
202,
9400,
6390,
2170,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
759,
1760,
1801,
1041,
202,
202,
9400,
6390,
2170,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
... |
return new SubMap(nil, toKey); | return new SubMap((K)(Object)nil, toKey); | public SortedMap<K, V> headMap(K toKey) { return new SubMap(nil, toKey); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1cf74b959ea4ccaa8f99c39c3123ffea83ef9a26/TreeMap.java/clean/core/src/classpath/5.0/java/util/TreeMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
31205,
32,
47,
16,
776,
34,
910,
863,
12,
47,
358,
653,
13,
225,
288,
565,
327,
394,
2592,
863,
12443,
47,
21433,
921,
13,
20154,
16,
358,
653,
1769,
225,
289,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
31205,
32,
47,
16,
776,
34,
910,
863,
12,
47,
358,
653,
13,
225,
288,
565,
327,
394,
2592,
863,
12443,
47,
21433,
921,
13,
20154,
16,
358,
653,
1769,
225,
289,
2,
-100,
-100,
... |
StyleDeclaration style = (StyleDeclaration) parent .getComputedStyle(); | IStyle style = parent.getComputedStyle(); | public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) { CSSContext ctx = engine.getCSSContext(); float fs = ctx.getMediumFontSize(); // absolute size if (value == CSSValueConstants.XX_SMALL_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f / 1.2f / 1.2f); } if (value == CSSValueConstants.X_SMALL_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f / 1.2f); } if (value == CSSValueConstants.SMALL_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs / 1.2f); } if (value == CSSValueConstants.MEDIUM_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs); } if (value == CSSValueConstants.LARGE_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs * 1.2f); } if (value == CSSValueConstants.X_LARGE_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs * 1.2f * 1.2f); } if (value == CSSValueConstants.XX_LARGE_VALUE) { return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs * 1.2f * 1.2f * 1.2f); } float scale = 1.0f; boolean doParentRelative = false; // relative size if (value == CSSValueConstants.SMALLER_VALUE) { doParentRelative = true; scale = 1.0f / 1.2f; } else if (value == CSSValueConstants.LARGER_VALUE) { doParentRelative = true; scale = 1.2f; } else if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) { // relative length && percentage switch (value.getPrimitiveType()) { case CSSPrimitiveValue.CSS_EMS: doParentRelative = true; scale = value.getFloatValue(); break; case CSSPrimitiveValue.CSS_EXS: doParentRelative = true; scale = value.getFloatValue() * 0.5f; break; case CSSPrimitiveValue.CSS_PERCENTAGE: doParentRelative = true; scale = value.getFloatValue() * 0.01f; break; } } if (doParentRelative) { CSSStylableElement parent = (CSSStylableElement) elt.getParent(); if (parent != null) { StyleDeclaration style = (StyleDeclaration) parent .getComputedStyle(); if (style != null) { Value fontSize = (Value)style.getProperty(IStyle.STYLE_FONT_SIZE); if (fontSize != null) { fs = fontSize.getFloatValue(); } } } return new FloatValue(CSSPrimitiveValue.CSS_NUMBER, fs * scale); } return super.computeValue(elt, engine, idx, value); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b7f64dc7225960a2d897bca179376d5da9b66b40/FontSizeManager.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/css/FontSizeManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1445,
3671,
620,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
6765,
4410,
4073,
16,
1082,
202,
474,
2067,
16,
1445,
460,
13,
288,
202,
202,
10276,
1042,
1103,
273,
4073,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1445,
3671,
620,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
6765,
4410,
4073,
16,
1082,
202,
474,
2067,
16,
1445,
460,
13,
288,
202,
202,
10276,
1042,
1103,
273,
4073,
18,
58... |
} if(errors==null){ errors = new ActionErrors(); errors.add(super.validate(mapping,request)); } | } errors.add(super.validate(mapping,request)); | public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { String method = request.getParameter("method"); ActionErrors errors = new ActionErrors(); if (null == request.getAttribute(Constants.CURRENTFLOWKEY)) request.setAttribute(Constants.CURRENTFLOWKEY, request.getParameter(Constants.CURRENTFLOWKEY)); try{ if(method!=null && method.equals("load")|| method.equals("previous")|| method.equals("validate")|| method.equals("adjustLastUserAction")|| method.equals("cancel")){ }else{ if(method.equals("preview")){ SavingsBO savings = (SavingsBO)SessionUtils.getAttribute(Constants.BUSINESS_KEY,request); AccountPaymentEntity payment = savings.getLastPmnt(); if(payment==null || savings.getLastPmntAmnt()==0 || !(new SavingsHelper().getPaymentActionType(payment).equals(AccountConstants.ACTION_SAVINGS_WITHDRAWAL) || new SavingsHelper().getPaymentActionType(payment).equals(AccountConstants.ACTION_SAVINGS_DEPOSIT))){ errors.add(SavingsConstants.INVALID_LAST_PAYMENT,new ActionMessage(SavingsConstants.INVALID_LAST_PAYMENT)); } if (StringUtils.isNullAndEmptySafe(getNote())&& getNote().length() > CustomerConstants.COMMENT_LENGTH) { errors.add(AccountConstants.MAX_NOTE_LENGTH, new ActionMessage( AccountConstants.MAX_NOTE_LENGTH, AccountConstants.COMMENT_LENGTH)); } } if(errors==null){ errors = new ActionErrors(); errors.add(super.validate(mapping,request)); } } }catch(ApplicationException ae){ errors = new ActionErrors(); errors.add(ae.getKey(), new ActionMessage(ae.getKey(), ae .getValues())); } if (null != errors && !errors.isEmpty()) { request.setAttribute(Globals.ERROR_KEY, errors); request.setAttribute("methodCalled", method); } return errors; } | 45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/4ce236ea8a5b43bc308243afe0fb5ca220387b4d/SavingsApplyAdjustmentActionForm.java/buggy/mifos/src/org/mifos/application/accounts/savings/struts/actionforms/SavingsApplyAdjustmentActionForm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
4229,
1954,
12,
1803,
3233,
2874,
16,
9984,
590,
13,
288,
202,
202,
780,
707,
273,
590,
18,
588,
1662,
2932,
2039,
8863,
202,
202,
1803,
4229,
1334,
273,
394,
4382,
4229... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
4229,
1954,
12,
1803,
3233,
2874,
16,
9984,
590,
13,
288,
202,
202,
780,
707,
273,
590,
18,
588,
1662,
2932,
2039,
8863,
202,
202,
1803,
4229,
1334,
273,
394,
4382,
4229... |
if (jj_2_25(2)) { | if (jj_2_26(2)) { | final public Expression primaryExpression() throws ParseException { Expression pp; ExpressionSuffix es; List<ExpressionSuffix> list = new LinkedList<ExpressionSuffix>(); pp = primaryPrefix(); label_36: while (true) { if (jj_2_25(2)) { ; } else { break label_36; } es = primarySuffix(); // Build the list of suffixes in reverse order list.add(0, es); } {if (true) return createPrimaryExpression(pp, list);} throw new Error("Missing return statement in function"); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9aa0c6bec51662a685ea4b86bc02a52c9e593d8a/Parser.java/clean/dynamicjava/src/koala/dynamicjava/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
5371,
3354,
2300,
1435,
1216,
10616,
288,
565,
5371,
4202,
8228,
31,
565,
5371,
5791,
5001,
31,
565,
987,
32,
2300,
5791,
34,
666,
273,
394,
10688,
32,
2300,
5791,
34,
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,
282,
727,
1071,
5371,
3354,
2300,
1435,
1216,
10616,
288,
565,
5371,
4202,
8228,
31,
565,
5371,
5791,
5001,
31,
565,
987,
32,
2300,
5791,
34,
666,
273,
394,
10688,
32,
2300,
5791,
34,
5621,
... |
getRuntime().yield(RubyString.newString(getRuntime(), contents[i])); | getRuntime().yield(getRuntime().newString(contents[i])); | public IRubyObject each() { String[] contents = snapshot; for (int i=0; i<contents.length; i++) { getRuntime().yield(RubyString.newString(getRuntime(), contents[i])); } return this; } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1517,
1435,
288,
3639,
514,
8526,
2939,
273,
4439,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3980,
18,
2469,
31,
277,
27245,
288,
5411,
18814,
7675,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1517,
1435,
288,
3639,
514,
8526,
2939,
273,
4439,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
3980,
18,
2469,
31,
277,
27245,
288,
5411,
18814,
7675,
23... |
JFileChooser saveChooser; String currentDirectoryPath = Pooka.getProperty("Pooka.tmp.currentDirectory", ""); if (currentDirectoryPath == "") saveChooser = new JFileChooser(); else saveChooser = new JFileChooser(currentDirectoryPath); saveChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int saveConfirm = saveChooser.showSaveDialog(fComponent); File selectedDir = saveChooser.getSelectedFile(); Pooka.getResources().setProperty("Pooka.tmp.currentDirectory", saveChooser.getCurrentDirectory().getPath(), true); if (saveConfirm == JFileChooser.APPROVE_OPTION) { for (int i = 0; i < fAttachmentList.size(); i++) { Attachment currentAttachment = (Attachment) fAttachmentList.get(i); String filename = currentAttachment.getName(); if (filename == null || filename.equals("")) { filename = "savedFile_" + i; } File currentFile = new File(selectedDir, filename); try { saveFileAs(currentAttachment, currentFile); } catch (IOException exc) { showError(Pooka.getProperty("error.SaveFile", "Error saving file") + ":\n", Pooka.getProperty("error.SaveFile", "Error saving file"), exc); } } } } | JFileChooser saveChooser; String currentDirectoryPath = Pooka.getProperty("Pooka.tmp.currentDirectory", ""); if (currentDirectoryPath == "") saveChooser = new JFileChooser(); else saveChooser = new JFileChooser(currentDirectoryPath); saveChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int saveConfirm = saveChooser.showSaveDialog(fComponent); File selectedDir = saveChooser.getSelectedFile(); Pooka.getResources().setProperty("Pooka.tmp.currentDirectory", saveChooser.getCurrentDirectory().getPath(), true); if (saveConfirm == JFileChooser.APPROVE_OPTION) { for (int i = 0; i < fAttachmentList.size(); i++) { Attachment currentAttachment = (Attachment) fAttachmentList.get(i); String filename = currentAttachment.getName(); if (filename == null || filename.equals("")) { filename = "savedFile_" + i; } File currentFile = new File(selectedDir, filename); try { saveFileAs(currentAttachment, currentFile); } catch (IOException exc) { showError(Pooka.getProperty("error.SaveFile", "Error saving file") + ":\n", Pooka.getProperty("error.SaveFile", "Error saving file"), exc); } } } } | public void run() { JFileChooser saveChooser; String currentDirectoryPath = Pooka.getProperty("Pooka.tmp.currentDirectory", ""); if (currentDirectoryPath == "") saveChooser = new JFileChooser(); else saveChooser = new JFileChooser(currentDirectoryPath); saveChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int saveConfirm = saveChooser.showSaveDialog(fComponent); File selectedDir = saveChooser.getSelectedFile(); Pooka.getResources().setProperty("Pooka.tmp.currentDirectory", saveChooser.getCurrentDirectory().getPath(), true); if (saveConfirm == JFileChooser.APPROVE_OPTION) { for (int i = 0; i < fAttachmentList.size(); i++) { Attachment currentAttachment = (Attachment) fAttachmentList.get(i); String filename = currentAttachment.getName(); if (filename == null || filename.equals("")) { filename = "savedFile_" + i; } File currentFile = new File(selectedDir, filename); try { // saveFileAs creates a new thread, so don't bother // dispatching this somewhere else. saveFileAs(currentAttachment, currentFile); } catch (IOException exc) { showError(Pooka.getProperty("error.SaveFile", "Error saving file") + ":\n", Pooka.getProperty("error.SaveFile", "Error saving file"), exc); } } } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/AttachmentHandler.java/buggy/src/net/suberic/pooka/gui/AttachmentHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
1071,
918,
1086,
1435,
288,
202,
565,
804,
812,
17324,
1923,
17324,
31,
202,
565,
514,
783,
31995,
273,
453,
1184,
69,
18,
588,
1396,
2932,
52,
1184,
69,
18,
5645,
18,
2972,
2853,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
1071,
918,
1086,
1435,
288,
202,
565,
804,
812,
17324,
1923,
17324,
31,
202,
565,
514,
783,
31995,
273,
453,
1184,
69,
18,
588,
1396,
2932,
52,
1184,
69,
18,
5645,
18,
2972,
2853,... |
public void writeDataTo(DataOutputStream out) throws IOException { | public synchronized void writeDataTo(DataOutputStream out) throws IOException { | public void writeDataTo(DataOutputStream out) throws IOException { out.writeInt(MAGIC); out.writeInt(1); out.writeDouble(weightedTotal); out.writeDouble(totalWeights); out.writeBoolean(started); out.writeLong(totalReports); out.writeLong(System.currentTimeMillis() - createdTime); } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/d69dceaa72feee5ece14b8de951841aa9b614188/TimeDecayingRunningAverage.java/clean/src/freenet/support/math/TimeDecayingRunningAverage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1045,
751,
774,
12,
751,
4632,
596,
13,
1216,
1860,
288,
3639,
596,
18,
2626,
1702,
12,
49,
22247,
1769,
3639,
596,
18,
2626,
1702,
12,
21,
1769,
3639,
596,
18,
2626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
751,
774,
12,
751,
4632,
596,
13,
1216,
1860,
288,
3639,
596,
18,
2626,
1702,
12,
49,
22247,
1769,
3639,
596,
18,
2626,
1702,
12,
21,
1769,
3639,
596,
18,
2626,
... |
public U64Vector(Sequence seq) | public U64Vector () | public U64Vector(Sequence seq) { data = new long[seq.size()]; addAll(seq); } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/a6832beb1c7e39094e94e80c395d319bdbacd189/U64Vector.java/buggy/gnu/lists/U64Vector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
587,
1105,
5018,
1832,
225,
288,
565,
501,
273,
394,
1525,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
587,
1105,
5018,
1832,
225,
288,
565,
501,
273,
394,
1525,
63,
5436,
18,
1467,
1435,
15533,
565,
5428,
12,
5436,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
setTopColor(topColorChooser.getColor()); | setBackgroundColor(backgroundColorChooser.getColor()); | private void makeEnvTab() { topColorChooser = new SimpleColorChooser(); topColorChooser.setBorder(new EmptyBorder(8,8,8,8)); topColorChooser.addChangeListener( new ChangeListener() { public void stateChanged(ChangeEvent e) { setTopColor(topColorChooser.getColor()); } }); topColorChooser.addActionListener(closeListener); bottomColorChooser = new SimpleColorChooser(); bottomColorChooser.setBorder(new EmptyBorder(8,8,8,8)); bottomColorChooser.addChangeListener( new ChangeListener() { public void stateChanged(ChangeEvent e) { setBottomColor(bottomColorChooser.getColor()); } }); bottomColorChooser.addActionListener(closeListener); landscape.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent arg0) { getViewerVR().setEnvironment(landscape.getCubeMap()); updateEnv(); } }); Insets insets = new Insets(0,2,0,2); envPanel = new JPanel(new BorderLayout()); envPanel.setBorder(new EmptyBorder(0,0,0,0)); JPanel selectionPanel = new JPanel(new BorderLayout()); selectionPanel.setBorder(new EmptyBorder(0,5,0,5)); selectionPanel.add(landscape.getSelectionComponent(), BorderLayout.CENTER); envPanel.add(selectionPanel, BorderLayout.CENTER); Box envControlBox = new Box(BoxLayout.Y_AXIS); skyBoxHidden = new JCheckBox("no sky"); skyBoxHidden.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { updateEnv(); } }); envControlBox.add(skyBoxHidden); JPanel backgroundColorPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); JLabel backgroundLabel = new JLabel("background:"); backgroundLabel.setBorder(new EmptyBorder(0,5,0,10)); backgroundColorPanel.add(backgroundLabel); JButton topColorButton = new JButton("top"); topColorButton.setMargin(insets); topColorButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { switchToTopColorChooser(); } }); backgroundColorPanel.add(topColorButton); bottomColorButton = new JButton("bottom"); bottomColorButton.setMargin(insets); bottomColorButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { switchToBottomColorChooser(); } }); backgroundColorPanel.add(bottomColorButton); backgroundFlat = new JCheckBox("flat"); backgroundFlat.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { setBackgroundFlat(backgroundFlat.isSelected()); } }); backgroundColorPanel.add(backgroundFlat); envControlBox.add(backgroundColorPanel); envPanel.add(envControlBox, BorderLayout.SOUTH); } | 25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/0dc65996290e830fc91f21c4395b7f5058fc1628/EnvironmentPluginVR.java/clean/src-vr/de/jreality/vr/EnvironmentPluginVR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1221,
3491,
5661,
1435,
288,
202,
202,
3669,
2957,
17324,
273,
394,
4477,
2957,
17324,
5621,
202,
202,
3669,
2957,
17324,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
28,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1221,
3491,
5661,
1435,
288,
202,
202,
3669,
2957,
17324,
273,
394,
4477,
2957,
17324,
5621,
202,
202,
3669,
2957,
17324,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
28,
16,
... |
btnATopLeft = new Button( cmpAlignment, SWT.RADIO ); GridData gdBATopLeft = new GridData( GridData.FILL_BOTH ); | btnATopLeft = createAlighmentButton( cmpAlignment ); | private void createAlignmentPanel( ) { GridLayout glAlignment = new GridLayout( ); glAlignment.verticalSpacing = 30; glAlignment.horizontalSpacing = 20; glAlignment.marginHeight = 15; glAlignment.marginWidth = 5; glAlignment.numColumns = 3; Group cmpAlignment = new Group( cmpContent, SWT.NONE ); GridData gdCMPAlignment = new GridData( GridData.FILL_BOTH ); gdCMPAlignment.horizontalSpan = 3; gdCMPAlignment.verticalSpan = 3; cmpAlignment.setText( Messages.getString( "FontDefinitionDialog.Lbl.Alignment" ) ); //$NON-NLS-1$ cmpAlignment.setLayoutData( gdCMPAlignment ); cmpAlignment.setLayout( glAlignment ); btnATopLeft = new Button( cmpAlignment, SWT.RADIO ); GridData gdBATopLeft = new GridData( GridData.FILL_BOTH ); btnATopLeft.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignTopLeft" ) ); //$NON-NLS-1$ btnATopLeft.setImage( UIHelper.getImage( "icons/obj28/alignmenttopleft.gif" ) ); //$NON-NLS-1$ btnATopLeft.setLayoutData( gdBATopLeft ); btnATopLeft.addSelectionListener( this ); btnATopLeft.getImage( ).setBackground( btnATopLeft.getBackground( ) ); btnATopCenter = new Button( cmpAlignment, SWT.RADIO ); GridData gdBATopCenter = new GridData( GridData.FILL_BOTH ); btnATopCenter.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignTopCenter" ) ); //$NON-NLS-1$ btnATopCenter.setImage( UIHelper.getImage( "icons/obj28/alignmenttopcenter.gif" ) ); //$NON-NLS-1$ btnATopCenter.setLayoutData( gdBATopCenter ); btnATopCenter.addSelectionListener( this ); btnATopCenter.getImage( ) .setBackground( btnATopCenter.getBackground( ) ); btnATopRight = new Button( cmpAlignment, SWT.RADIO ); GridData gdBATopRight = new GridData( GridData.FILL_BOTH ); btnATopRight.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignTopRight" ) ); //$NON-NLS-1$ btnATopRight.setImage( UIHelper.getImage( "icons/obj28/alignmenttopright.gif" ) ); //$NON-NLS-1$ btnATopRight.setLayoutData( gdBATopRight ); btnATopRight.addSelectionListener( this ); btnATopRight.getImage( ).setBackground( btnATopRight.getBackground( ) ); btnACenterLeft = new Button( cmpAlignment, SWT.RADIO ); GridData gdBACenterLeft = new GridData( GridData.FILL_BOTH ); btnACenterLeft.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignCenterLeft" ) ); //$NON-NLS-1$ btnACenterLeft.setImage( UIHelper.getImage( "icons/obj28/alignmentcenterleft.gif" ) ); //$NON-NLS-1$ btnACenterLeft.setLayoutData( gdBACenterLeft ); btnACenterLeft.addSelectionListener( this ); btnACenterLeft.getImage( ) .setBackground( btnACenterLeft.getBackground( ) ); btnACenter = new Button( cmpAlignment, SWT.RADIO ); GridData gdBACenter = new GridData( GridData.FILL_BOTH ); btnACenter.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignCenter" ) ); //$NON-NLS-1$ btnACenter.setImage( UIHelper.getImage( "icons/obj28/alignmentcenter.gif" ) ); //$NON-NLS-1$ btnACenter.setLayoutData( gdBACenter ); btnACenter.addSelectionListener( this ); btnACenter.getImage( ).setBackground( btnACenter.getBackground( ) ); btnACenterRight = new Button( cmpAlignment, SWT.RADIO ); GridData gdBACenterRight = new GridData( GridData.FILL_BOTH ); btnACenterRight.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignCenterRight" ) ); //$NON-NLS-1$ btnACenterRight.setImage( UIHelper.getImage( "icons/obj28/alignmentcenterright.gif" ) ); //$NON-NLS-1$ btnACenterRight.setLayoutData( gdBACenterRight ); btnACenterRight.addSelectionListener( this ); btnACenterRight.getImage( ) .setBackground( btnACenterRight.getBackground( ) ); btnABottomLeft = new Button( cmpAlignment, SWT.RADIO ); GridData gdBABottomLeft = new GridData( GridData.FILL_BOTH ); btnABottomLeft.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignBottomLeft" ) ); //$NON-NLS-1$ btnABottomLeft.setImage( UIHelper.getImage( "icons/obj28/alignmentbottomleft.gif" ) ); //$NON-NLS-1$ btnABottomLeft.setLayoutData( gdBABottomLeft ); btnABottomLeft.addSelectionListener( this ); btnABottomLeft.getImage( ) .setBackground( btnABottomLeft.getBackground( ) ); btnABottomCenter = new Button( cmpAlignment, SWT.RADIO ); GridData gdBABottomCenter = new GridData( GridData.FILL_BOTH ); btnABottomCenter.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignBottomCenter" ) ); //$NON-NLS-1$ btnABottomCenter.setImage( UIHelper.getImage( "icons/obj28/alignmentbottomcenter.gif" ) ); //$NON-NLS-1$ btnABottomCenter.setLayoutData( gdBABottomCenter ); btnABottomCenter.addSelectionListener( this ); btnABottomCenter.getImage( ) .setBackground( btnABottomCenter.getBackground( ) ); btnABottomRight = new Button( cmpAlignment, SWT.RADIO ); GridData gdBABottomRight = new GridData( GridData.FILL_BOTH ); btnABottomRight.setToolTipText( Messages.getString( "FontDefinitionDialog.Tooltip.AlignBottomRight" ) ); //$NON-NLS-1$ btnABottomRight.setImage( UIHelper.getImage( "icons/obj28/alignmentbottomright.gif" ) ); //$NON-NLS-1$ btnABottomRight.setLayoutData( gdBABottomRight ); btnABottomRight.addSelectionListener( this ); btnABottomRight.getImage( ) .setBackground( btnABottomRight.getBackground( ) ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a769c95667dd11c0218d8ea7d48a98220acf6dd8/FontDefinitionDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
11535,
5537,
12,
262,
202,
95,
202,
202,
6313,
3744,
5118,
11535,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
11535,
18,
17824,
18006,
273,
5196,
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,
1152,
918,
752,
11535,
5537,
12,
262,
202,
95,
202,
202,
6313,
3744,
5118,
11535,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
11535,
18,
17824,
18006,
273,
5196,
31,
202,
202,
... |
return myIsNamedEnum ? ((NamedEnum)anEnum).getValue() : anEnum.name(); | return NamedEnumUtil.getEnumValueByElement(anEnum); | private String getStringValue(final T anEnum) { return myIsNamedEnum ? ((NamedEnum)anEnum).getValue() : anEnum.name(); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/aa1a30b2adfbaf92a01cba834585780831ec9dbb/EnumConverter.java/buggy/source/com/intellij/util/xml/EnumConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
27509,
12,
6385,
399,
392,
3572,
13,
288,
565,
327,
9796,
3572,
1304,
18,
588,
3572,
620,
858,
1046,
12,
304,
3572,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
3238,
514,
27509,
12,
6385,
399,
392,
3572,
13,
288,
565,
327,
9796,
3572,
1304,
18,
588,
3572,
620,
858,
1046,
12,
304,
3572,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
org.exist.xquery.parser.XQueryAST tmp196_AST = null; tmp196_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp196_AST); | org.exist.xquery.parser.XQueryAST tmp197_AST = null; tmp197_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp197_AST); | public final void relativePathExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST relativePathExpr_AST = null; stepExpr(); astFactory.addASTChild(currentAST, returnAST); { _loop181: do { if ((LA(1)==SLASH||LA(1)==DSLASH)) { { switch ( LA(1)) { case SLASH: { org.exist.xquery.parser.XQueryAST tmp195_AST = null; tmp195_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp195_AST); match(SLASH); break; } case DSLASH: { org.exist.xquery.parser.XQueryAST tmp196_AST = null; tmp196_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp196_AST); match(DSLASH); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } stepExpr(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop181; } } while (true); } relativePathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = relativePathExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b1f955b7f1cec4172ad3be7bd2855bd3cca3e6f2/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
12820,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
12820,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
... |
return REVIEW_SUBMISSION; | return -1; | public static int getStepReached(SubmissionInfo subInfo) { if (isWorkflow(subInfo)) { return REVIEW_SUBMISSION; } else { WorkspaceItem wi = (WorkspaceItem) subInfo.submission; int i = wi.getStageReached(); // Uninitialised workspace items give "-1" as the stage reached // this is a special value used by the progress bar, so we change // it to "INITIAL_QUESTIONS" if (i == -1) { i = INITIAL_QUESTIONS; } return i; } } | 47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/76bf8c1bcf448b3435e65f56e50cb0a8a7e6eb4f/SubmitServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
30909,
23646,
12,
17865,
966,
720,
966,
13,
565,
288,
3639,
309,
261,
291,
8484,
12,
1717,
966,
3719,
3639,
288,
5411,
327,
300,
21,
31,
3639,
289,
3639,
469,
3639,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
30909,
23646,
12,
17865,
966,
720,
966,
13,
565,
288,
3639,
309,
261,
291,
8484,
12,
1717,
966,
3719,
3639,
288,
5411,
327,
300,
21,
31,
3639,
289,
3639,
469,
3639,
288,... |
Display.getCurrent().asyncExec(new Runnable() { | PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { | public void applyLayout() { this.addRevealListener(new RevealListener() { public void revealed(Control c) { Display.getCurrent().asyncExec(new Runnable() { public void run() { applyLayoutInternal(); } }); } }); } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/d4ce2dced94f2ca6fbc633477334ac083dde30be/StaticGraphViewerImpl.java/clean/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/graphviewer/StaticGraphViewerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2230,
3744,
1435,
288,
202,
202,
2211,
18,
1289,
426,
24293,
2223,
12,
2704,
868,
24293,
2223,
1435,
288,
1082,
202,
482,
918,
283,
537,
18931,
12,
3367,
276,
13,
288,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2230,
3744,
1435,
288,
202,
202,
2211,
18,
1289,
426,
24293,
2223,
12,
2704,
868,
24293,
2223,
1435,
288,
1082,
202,
482,
918,
283,
537,
18931,
12,
3367,
276,
13,
288,
95... |
return sym.isClass() ? sym.nameString() + "-class" : sym.nameString(); | return sym.isClass() ? sym.nameString() + CLASS_SUFFIX : sym.nameString(); | static public String getName(Symbol sym) { return sym.isClass() ? sym.nameString() + "-class" : sym.nameString(); } | 49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/8f126982806efc1c68ac717c7fd9dba70d85e787/Location.java/clean/sources/scala/tools/scaladoc/Location.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
514,
1723,
12,
5335,
5382,
13,
288,
202,
2463,
5382,
18,
291,
797,
1435,
692,
5382,
18,
529,
780,
1435,
397,
7383,
67,
14964,
294,
5382,
18,
529,
780,
5621,
565,
289,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
514,
1723,
12,
5335,
5382,
13,
288,
202,
2463,
5382,
18,
291,
797,
1435,
692,
5382,
18,
529,
780,
1435,
397,
7383,
67,
14964,
294,
5382,
18,
529,
780,
5621,
565,
289,
2,
-1... |
IGetParameterDefinitionTask task = getParameterDefinitionTask( design, runOptions ); return convertEngineParameters( task.getParameterDefns( true ), task, includeGroups ); | IGetParameterDefinitionTask task = null; try { task = getParameterDefinitionTask( design, runOptions ); if ( task != null ) { Collection params = task.getParameterDefns( true ); return convertEngineParameters( params, includeGroups ); } } finally { if ( task != null ) task.close( ); } return null; | public Collection getParameterDefinitions( IViewerReportDesignHandle design, InputOptions runOptions, boolean includeGroups ) throws ReportServiceException { IGetParameterDefinitionTask task = getParameterDefinitionTask( design, runOptions ); return convertEngineParameters( task.getParameterDefns( true ), task, includeGroups ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d835cdf138e9d6d6ae54363d70ba647041cf4669/BirtViewerReportService.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
5575,
7130,
12,
1082,
202,
45,
18415,
4820,
15478,
3259,
8281,
16,
2741,
1320,
1086,
1320,
16,
1082,
202,
6494,
2341,
3621,
262,
1216,
8706,
15133,
202,
95,
202,
202,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
5575,
7130,
12,
1082,
202,
45,
18415,
4820,
15478,
3259,
8281,
16,
2741,
1320,
1086,
1320,
16,
1082,
202,
6494,
2341,
3621,
262,
1216,
8706,
15133,
202,
95,
202,
202,
45,
... |
uri = appConfig.getPrefix() + input; | internalModuleRelativeForward(input, request, response); | protected boolean processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws IOException, ServletException { if (form == null) { return (true); } // Was this submit cancelled? if ((request.getParameter(Constants.CANCEL_PROPERTY) != null) || (request.getParameter(Constants.CANCEL_PROPERTY_X) != null)) { if (log.isDebugEnabled()) { log.debug(" Cancelled transaction, skipping validation"); } return (true); } // Has validation been turned off for this mapping? if (!mapping.getValidate()) { return (true); } // Call the form bean's validation method if (log.isDebugEnabled()) { log.debug(" Validating input form properties"); } ActionErrors errors = form.validate(mapping, request); if ((errors == null) || errors.empty()) { if (log.isTraceEnabled()) { log.trace(" No errors detected, accepting input"); } return (true); } // Special handling for multipart request if (form.getMultipartRequestHandler() != null) { if (log.isTraceEnabled()) { log.trace(" Rolling back multipart request"); } form.getMultipartRequestHandler().rollback(); } // Has an input form been specified for this mapping? String input = mapping.getInput(); if (input == null) { if (log.isTraceEnabled()) { log.trace(" Validation failed but no input form available"); } response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, getInternal().getMessage("noInput", mapping.getPath())); return (false); } // Save our error messages and return to the input form if possible if (log.isDebugEnabled()) { log.debug(" Validation failed, returning to '" + input + "'"); } request.setAttribute(Action.ERROR_KEY, errors); String uri = null; if (appConfig.getControllerConfig().getInputForward()) { ForwardConfig forward = mapping.findForward(input); uri = RequestUtils.forwardURL(request, forward); } else { uri = appConfig.getPrefix() + input; } doForward(uri, request, response); return (false); } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/3354131e5a3cb0af775e62aa645be3ad327313ce/RequestProcessor.java/buggy/src/share/org/apache/struts/action/RequestProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1207,
4270,
12,
2940,
18572,
590,
16,
4766,
1377,
12446,
766,
16,
4766,
1377,
4382,
1204,
646,
16,
4766,
1377,
4382,
3233,
2874,
13,
3639,
1216,
1860,
16,
16517,
288,
3639,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1207,
4270,
12,
2940,
18572,
590,
16,
4766,
1377,
12446,
766,
16,
4766,
1377,
4382,
1204,
646,
16,
4766,
1377,
4382,
3233,
2874,
13,
3639,
1216,
1860,
16,
16517,
288,
3639,
30... |
return new Split(runtime, this.getValue(), args).results(); | return new Split(getRuntime(), this.getValue(), args).results(); | public RubyArray split(IRubyObject[] args) { return new Split(runtime, this.getValue(), args).results(); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/buggy/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
1076,
1416,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
327,
394,
5385,
12,
9448,
16,
333,
18,
24805,
9334,
833,
2934,
4717,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
1076,
1416,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
327,
394,
5385,
12,
9448,
16,
333,
18,
24805,
9334,
833,
2934,
4717,
5621,
202,
97,
2,
-100,
-100,
-100,
-10... |
for (Enumeration e = allTargets.elements(); e.hasMoreElements(); ) { File fileToRemove = (File)e.nextElement(); | for (Enumeration e = allTargets.elements(); e.hasMoreElements();) { File fileToRemove = (File) e.nextElement(); | public void execute() throws BuildException { if ( (sourceFileSets.size() == 0) && (sourceFileLists.size() == 0) ) { throw new BuildException("At least one <srcfileset> or <srcfilelist>" + " element must be set"); } if ( (targetFileSets.size() == 0) && (targetFileLists.size() == 0) ) { throw new BuildException("At least one <targetfileset> or" + " <targetfilelist> element must be set"); } long now = (new Date()).getTime(); /* If we're on Windows, we have to munge the time up to 2 secs to be able to check file modification times. (Windows has a max resolution of two secs for modification times) */ if (Os.isFamily("windows")) { now += 2000; } // // Grab all the target files specified via filesets // Vector allTargets = new Vector(); long oldestTargetTime = 0; File oldestTarget = null; Enumeration enumTargetSets = targetFileSets.elements(); while (enumTargetSets.hasMoreElements()) { FileSet targetFS = (FileSet) enumTargetSets.nextElement(); DirectoryScanner targetDS = targetFS.getDirectoryScanner(project); String[] targetFiles = targetDS.getIncludedFiles(); for (int i = 0; i < targetFiles.length; i++) { File dest = new File(targetFS.getDir(project), targetFiles[i]); allTargets.addElement(dest); if (dest.lastModified() > now) { log("Warning: "+targetFiles[i]+" modified in the future.", Project.MSG_WARN); } if (oldestTarget == null || dest.lastModified() < oldestTargetTime) { oldestTargetTime = dest.lastModified(); oldestTarget = dest; } } } // // Grab all the target files specified via filelists // boolean upToDate = true; Enumeration enumTargetLists = targetFileLists.elements(); while (enumTargetLists.hasMoreElements()) { FileList targetFL = (FileList) enumTargetLists.nextElement(); String[] targetFiles = targetFL.getFiles(project); for (int i = 0; i < targetFiles.length; i++) { File dest = new File(targetFL.getDir(project), targetFiles[i]); if (!dest.exists()) { log(targetFiles[i]+ " does not exist.", Project.MSG_VERBOSE); upToDate = false; continue; } else { allTargets.addElement(dest); } if (dest.lastModified() > now) { log("Warning: "+targetFiles[i]+" modified in the future.", Project.MSG_WARN); } if (oldestTarget == null || dest.lastModified() < oldestTargetTime) { oldestTargetTime = dest.lastModified(); oldestTarget = dest; } } } if (oldestTarget != null) { log(oldestTarget + " is oldest target file", Project.MSG_VERBOSE); } else { // no target files, then we cannot remove any target files and // skip the following tests right away upToDate = false; } // // Check targets vs source files specified via filelists // if (upToDate) { Enumeration enumSourceLists = sourceFileLists.elements(); while (upToDate && enumSourceLists.hasMoreElements()) { FileList sourceFL = (FileList) enumSourceLists.nextElement(); String[] sourceFiles = sourceFL.getFiles(project); for (int i=0; upToDate && i < sourceFiles.length; i++) { File src = new File(sourceFL.getDir(project), sourceFiles[i]); if (src.lastModified() > now) { log("Warning: "+sourceFiles[i]+" modified in the future.", Project.MSG_WARN); } if (!src.exists()) { log(sourceFiles[i]+ " does not exist.", Project.MSG_VERBOSE); upToDate = false; break; } if (src.lastModified() > oldestTargetTime) { upToDate = false; log(oldestTarget + " is out of date with respect to " + sourceFiles[i], Project.MSG_VERBOSE); } } } } // // Check targets vs source files specified via filesets // if (upToDate) { Enumeration enumSourceSets = sourceFileSets.elements(); while (upToDate && enumSourceSets.hasMoreElements()) { FileSet sourceFS = (FileSet) enumSourceSets.nextElement(); DirectoryScanner sourceDS = sourceFS.getDirectoryScanner(project); String[] sourceFiles = sourceDS.getIncludedFiles(); for (int i=0; upToDate && i < sourceFiles.length; i++) { File src = new File(sourceFS.getDir(project), sourceFiles[i]); if (src.lastModified() > now) { log("Warning: "+sourceFiles[i]+" modified in the future.", Project.MSG_WARN); } if (src.lastModified() > oldestTargetTime) { upToDate = false; log(oldestTarget + " is out of date with respect to " + sourceFiles[i], Project.MSG_VERBOSE); } } } } if (!upToDate) { log("Deleting all target files. ", Project.MSG_VERBOSE); for (Enumeration e = allTargets.elements(); e.hasMoreElements(); ) { File fileToRemove = (File)e.nextElement(); log("Deleting file " + fileToRemove.getAbsolutePath(), Project.MSG_VERBOSE); fileToRemove.delete(); } } } //-- execute | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c7b5b643b25b20f5c96097b2c54e2e26a054f212/DependSet.java/buggy/src/main/org/apache/tools/ant/taskdefs/DependSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
261,
3168,
812,
2785,
18,
1467,
1435,
422,
374,
13,
597,
261,
3168,
812,
7432,
18,
1467,
1435,
422,
374,
13,
262,
288,
6647,
604... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
261,
3168,
812,
2785,
18,
1467,
1435,
422,
374,
13,
597,
261,
3168,
812,
7432,
18,
1467,
1435,
422,
374,
13,
262,
288,
6647,
604... |
case ts.BREAK: { | case TokenStream.BREAK: { | private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case ts.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case ts.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case ts.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case ts.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case ts.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case ts.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case ts.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case ts.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case ts.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case ts.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case ts.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case ts.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case ts.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case ts.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case ts.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case ts.ERROR: // Fall thru, to have a node for error recovery to work on case ts.EOL: case ts.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/40ff06028a06e98171197c83b9b067a0c12f72ae/Parser.java/buggy/js/rhino/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... |
return (find(x) >= 0); } | return (find(x) >= 0); } | public boolean contains(int x) { return (find(x) >= 0); } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/113fdf7bac10aba7f608549e2a888798eaf22afd/IntVec.java/clean/src/escjava/trunk/ESCTools/Javafe/java/decsrc/container/IntVec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
12,
474,
619,
13,
288,
565,
327,
261,
4720,
12,
92,
13,
1545,
374,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
12,
474,
619,
13,
288,
565,
327,
261,
4720,
12,
92,
13,
1545,
374,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
{ mT60(); if (failed) return ; | { mT63(); if (failed) return ; | public void mTokens() throws RecognitionException { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | MISC ) int alt21=64; alt21 = dfa21.predict(input); switch (alt21) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T26 { mT26(); if (failed) return ; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T27 { mT27(); if (failed) return ; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T28 { mT28(); if (failed) return ; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T29 { mT29(); if (failed) return ; } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T30 { mT30(); if (failed) return ; } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T31 { mT31(); if (failed) return ; } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T32 { mT32(); if (failed) return ; } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T33 { mT33(); if (failed) return ; } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T34 { mT34(); if (failed) return ; } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T35 { mT35(); if (failed) return ; } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T36 { mT36(); if (failed) return ; } break; case 12 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T37 { mT37(); if (failed) return ; } break; case 13 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T38 { mT38(); if (failed) return ; } break; case 14 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T39 { mT39(); if (failed) return ; } break; case 15 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T40 { mT40(); if (failed) return ; } break; case 16 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T41 { mT41(); if (failed) return ; } break; case 17 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T42 { mT42(); if (failed) return ; } break; case 18 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T43 { mT43(); if (failed) return ; } break; case 19 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T44 { mT44(); if (failed) return ; } break; case 20 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T45 { mT45(); if (failed) return ; } break; case 21 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T46 { mT46(); if (failed) return ; } break; case 22 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T47 { mT47(); if (failed) return ; } break; case 23 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T48 { mT48(); if (failed) return ; } break; case 24 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T49 { mT49(); if (failed) return ; } break; case 25 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T50 { mT50(); if (failed) return ; } break; case 26 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T51 { mT51(); if (failed) return ; } break; case 27 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T52 { mT52(); if (failed) return ; } break; case 28 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T53 { mT53(); if (failed) return ; } break; case 29 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T54 { mT54(); if (failed) return ; } break; case 30 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T55 { mT55(); if (failed) return ; } break; case 31 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T56 { mT56(); if (failed) return ; } break; case 32 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T57 { mT57(); if (failed) return ; } break; case 33 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T58 { mT58(); if (failed) return ; } break; case 34 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T59 { mT59(); if (failed) return ; } break; case 35 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T60 { mT60(); if (failed) return ; } break; case 36 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T61 { mT61(); if (failed) return ; } break; case 37 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T62 { mT62(); if (failed) return ; } break; case 38 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T63 { mT63(); if (failed) return ; } break; case 39 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T64 { mT64(); if (failed) return ; } break; case 40 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T65 { mT65(); if (failed) return ; } break; case 41 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T66 { mT66(); if (failed) return ; } break; case 42 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T67 { mT67(); if (failed) return ; } break; case 43 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T68 { mT68(); if (failed) return ; } break; case 44 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T69 { mT69(); if (failed) return ; } break; case 45 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T70 { mT70(); if (failed) return ; } break; case 46 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T71 { mT71(); if (failed) return ; } break; case 47 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T72 { mT72(); if (failed) return ; } break; case 48 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T73 { mT73(); if (failed) return ; } break; case 49 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: RHS { mRHS(); if (failed) return ; } break; case 50 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: WS { mWS(); if (failed) return ; } break; case 51 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:209: INT { mINT(); if (failed) return ; } break; case 52 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:213: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:219: STRING { mSTRING(); if (failed) return ; } break; case 54 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:226: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:231: ID { mID(); if (failed) return ; } break; case 56 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:263: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:291: CURLY_CHUNK { mCURLY_CHUNK(); if (failed) return ; } break; case 59 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:303: LEFT_PAREN { mLEFT_PAREN(); if (failed) return ; } break; case 60 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:314: RIGHT_PAREN { mRIGHT_PAREN(); if (failed) return ; } break; case 61 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:326: LEFT_SQUARE { mLEFT_SQUARE(); if (failed) return ; } break; case 62 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:338: RIGHT_SQUARE { mRIGHT_SQUARE(); if (failed) return ; } break; case 63 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:351: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; case 64 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:370: MISC { mMISC(); if (failed) return ; } break; } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
... |
} | } | public void run() { Set changes = new HashSet(); while (true) { synchronized (this) { if (changedCommunities.size() == 0) { try { wait(10000L); } catch (InterruptedException ie) { } } if (changedCommunities.size() == 0) { thread = null; return; } try { Thread.sleep(1000L); } catch (InterruptedException ie) { } changes.addAll(changedCommunities); changedCommunities.clear(); } myDistributor.invokeABAChangeLPs(changes); changes.clear(); } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/3e16a09c554b520420a8947f3de69957ea32b023/Blackboard.java/buggy/core/src/org/cougaar/core/blackboard/Blackboard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
1377,
1000,
3478,
273,
394,
6847,
5621,
1377,
1323,
261,
3767,
13,
288,
3639,
3852,
261,
2211,
13,
288,
1850,
309,
261,
6703,
12136,
318,
1961,
18,
1467,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1377,
1000,
3478,
273,
394,
6847,
5621,
1377,
1323,
261,
3767,
13,
288,
3639,
3852,
261,
2211,
13,
288,
1850,
309,
261,
6703,
12136,
318,
1961,
18,
1467,
1435,... |
public SLocation(final LocationElement path, final SOrder ordering, final char mnemonic, String imageStyle) { if ((imageStyle != null) && (imageStyle.length() == 0)) { imageStyle = null; } if (path == null) { throw new NullPointerException( "The path for a location must not be null"); } this.mnemonic = mnemonic; this.imageStyle = imageStyle; this.ordering = ordering; this.path = path; | public SLocation() { this(new SBar()); | public SLocation(final LocationElement path, final SOrder ordering, final char mnemonic, String imageStyle) { if ((imageStyle != null) && (imageStyle.length() == 0)) { imageStyle = null; } if (path == null) { throw new NullPointerException( "The path for a location must not be null"); //$NON-NLS-1$ } this.mnemonic = mnemonic; this.imageStyle = imageStyle; this.ordering = ordering; this.path = path; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/SLocation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/SLocation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
348,
2735,
12,
6385,
7050,
1046,
589,
16,
727,
348,
2448,
9543,
16,
1082,
202,
6385,
1149,
12883,
20918,
16,
514,
1316,
2885,
13,
288,
202,
202,
430,
14015,
2730,
2885,
480,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
348,
2735,
12,
6385,
7050,
1046,
589,
16,
727,
348,
2448,
9543,
16,
1082,
202,
6385,
1149,
12883,
20918,
16,
514,
1316,
2885,
13,
288,
202,
202,
430,
14015,
2730,
2885,
480,
4... |
logTasks(tasks,aCycleStamp,true,isCountedTask); } | logTasks(tasks,aCycleStamp,true,isCountedTask); } | protected void excelLogProjections(ArrayList tasks,boolean isCountedTask,long aCycleStamp) { writeNoCycleLn("CYCLE,PARENT UID,UID,VERB,FOR(ORG),START TIME,END TIME,DAILY RATE"); logTasks(tasks,aCycleStamp,true,isCountedTask); } | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/3c5da4a17db473b8f1094089e88e37b446b21e3b/LogisticsInventoryFormatter.java/buggy/bbn/src/org/cougaar/logistics/plugin/inventory/LogisticsInventoryFormatter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
22011,
1343,
14789,
87,
12,
19558,
4592,
16,
6494,
353,
1380,
329,
2174,
16,
5748,
279,
13279,
8860,
13,
288,
202,
2626,
2279,
13279,
13780,
2932,
16068,
23181,
16,
14943,
10034,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22011,
1343,
14789,
87,
12,
19558,
4592,
16,
6494,
353,
1380,
329,
2174,
16,
5748,
279,
13279,
8860,
13,
288,
202,
2626,
2279,
13279,
13780,
2932,
16068,
23181,
16,
14943,
10034,... |
fDeselectButton.setText( DebugUtil .getResourceString( "AdvancedLauncherTab.deselectAll" ) ); | fDeselectButton.setText( DebugUtil.getResourceString( "Deselect All" ) ); | private void createButtonContainer( Composite parent ) { Composite composite = new Composite( parent, 0 ); GridLayout layout = new GridLayout( ); layout.marginHeight = layout.marginWidth = 0; composite.setLayout( layout ); composite.setLayoutData( new GridData( 1040 ) ); fSelectAllButton = new Button( composite, 8 ); fSelectAllButton.setText( DebugUtil .getResourceString( "AdvancedLauncherTab.selectAll" ) ); fSelectAllButton.setLayoutData( new GridData( 770 ) ); SWTUtil.setButtonDimensionHint( fSelectAllButton ); fDeselectButton = new Button( composite, 8 ); fDeselectButton.setText( DebugUtil .getResourceString( "AdvancedLauncherTab.deselectAll" ) ); fDeselectButton.setLayoutData( new GridData( 768 ) ); SWTUtil.setButtonDimensionHint( fDeselectButton ); fDefaultsButton = new Button( composite, 8 ); fDefaultsButton.setText( DebugUtil .getResourceString( "AdvancedLauncherTab.defaults" ) ); fDefaultsButton.setLayoutData( new GridData( 768 ) ); SWTUtil.setButtonDimensionHint( fDefaultsButton ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/0efae300d200eaf8984682b032d5bf43f05f01cb/ReportAdvancedLauncherTab.java/buggy/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launching/ReportAdvancedLauncherTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3616,
2170,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9635,
273,
394,
14728,
12,
982,
16,
374,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
1127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3616,
2170,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9635,
273,
394,
14728,
12,
982,
16,
374,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
1127... |
BranchElement paragraph = (BranchElement) elementStack.peek(); | private void insertContentTag(ElementSpec tag) { BranchElement paragraph = (BranchElement) elementStack.peek(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinNextDirection) { int index = paragraph.getElementIndex(pos); Element target = paragraph.getElement(index); Edit edit = getEditForParagraphAndIndex(paragraph, index); if (paragraph.getStartOffset() > pos) { Element first = paragraph.getElement(0); Element newEl = createLeafElement(paragraph, first.getAttributes(), pos, first.getEndOffset()); edit.addAddedElement(newEl); edit.addRemovedElement(first); } else if (paragraph.getElementCount() > (index + 1) && (pos == target.getStartOffset() && !target.equals(lastFractured))) { Element next = paragraph.getElement(index + 1); Element newEl = createLeafElement(paragraph, next.getAttributes(), pos, next.getEndOffset()); edit.addAddedElement(newEl); edit.addRemovedElement(next); edit.addRemovedElement(target); } else { BranchElement parent = (BranchElement) paragraph.getParentElement(); int i = parent.getElementIndex(pos); BranchElement next = (BranchElement) parent.getElement(i + 1); AttributeSet atts = tag.getAttributes(); if (next != null) { Element nextLeaf = next.getElement(0); Edit e = getEditForParagraphAndIndex(next, 0); Element newEl2 = createLeafElement(next, atts, pos, nextLeaf.getEndOffset()); e.addAddedElement(newEl2); e.addRemovedElement(nextLeaf); } } } else { int end = pos + len; Element leaf = createLeafElement(paragraph, tag.getAttributes(), pos, end); // Check for overlap with other leaves/branches if (paragraph.getElementCount() > 0) { int index = paragraph.getElementIndex(pos); Element target = paragraph.getElement(index); boolean onlyContent = target.isLeaf(); BranchElement toRec = paragraph; if (!onlyContent) toRec = (BranchElement) target; // Check if we should place the leaf before or after target if (pos > target.getStartOffset()) index++; Edit edit = getEditForParagraphAndIndex(paragraph, index); edit.addAddedElement(leaf); } else paragraph.replace(0, 0, new Element[] { leaf }); } pos += len; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/ecc89d2a010afc7291de73939f9fd2884e27504c/DefaultStyledDocument.java/clean/javax/swing/text/DefaultStyledDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2243,
1350,
1805,
12,
1046,
1990,
1047,
13,
565,
288,
6647,
509,
562,
273,
1047,
18,
588,
1782,
5621,
1377,
509,
1577,
273,
1047,
18,
588,
8212,
5621,
1377,
3601,
694,
1047,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2243,
1350,
1805,
12,
1046,
1990,
1047,
13,
565,
288,
6647,
509,
562,
273,
1047,
18,
588,
1782,
5621,
1377,
509,
1577,
273,
1047,
18,
588,
8212,
5621,
1377,
3601,
694,
1047,
... | |
super.renderHead(container); | super.renderHead(response); | public void renderHead(HeaderContainer container) { ((WebPage) getPage()).getBodyContainer().addOnLoadModifier( "init" + javaScriptId + "();", null); super.renderHead(container); } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/2094e7465ee44a4eb8e665a901d87781763b8a92/Calendar.java/buggy/wicket-contrib-yui/src/main/java/wicket/contrib/markup/html/yui/calendar/Calendar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
1414,
12,
1864,
2170,
1478,
13,
288,
202,
202,
12443,
4079,
1964,
13,
8957,
1435,
2934,
588,
2250,
2170,
7675,
1289,
1398,
2563,
9829,
12,
9506,
202,
6,
2738,
6,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
1414,
12,
1864,
2170,
1478,
13,
288,
202,
202,
12443,
4079,
1964,
13,
8957,
1435,
2934,
588,
2250,
2170,
7675,
1289,
1398,
2563,
9829,
12,
9506,
202,
6,
2738,
6,
39... |
if( (c=='\n') || (c=='\t') ) { | if( (c=='\n') || (c=='\t') || (c=='\r') ) { | private String cleanHeader(String field) { if ( field == null ) field = ""; StringBuffer sb = new StringBuffer(field); for( int i=0 ; i<sb.length() ; i++ ) { char c = sb.charAt(i); if( (c=='\n') || (c=='\t') ) { sb.setCharAt(i, ' '); } } return sb.toString(); } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/19dac0223f36e284bd9277f6e80e2e9e075c5baa/NNTPArticleImpl.java/buggy/trunk/src/java/org/apache/james/nntpserver/repository/NNTPArticleImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2721,
1864,
12,
780,
652,
13,
288,
3639,
309,
261,
652,
422,
446,
262,
5411,
652,
273,
1408,
31,
3639,
6674,
2393,
273,
394,
6674,
12,
1518,
1769,
3639,
364,
12,
509,
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,
377,
3238,
514,
2721,
1864,
12,
780,
652,
13,
288,
3639,
309,
261,
652,
422,
446,
262,
5411,
652,
273,
1408,
31,
3639,
6674,
2393,
273,
394,
6674,
12,
1518,
1769,
3639,
364,
12,
509,
277,
... |
public void mousePressed(EditorMouseEvent e) { //To change body of implemented methods use Options | File Templates. } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d98f1a1bb2922af30679bef73e6c6cea7fc5bc3b/ValueLookupManager.java/buggy/debugger/impl/com/intellij/debugger/ui/ValueLookupManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
11697,
24624,
12,
6946,
9186,
1133,
73,
15329,
759,
774,
3427,
3432,
792,
21099,
5163,
1202,
1320,
96,
812,
8218,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
11697,
24624,
12,
6946,
9186,
1133,
73,
15329,
759,
774,
3427,
3432,
792,
21099,
5163,
1202,
1320,
96,
812,
8218,
18,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | ||
throw new NotYetImplementedException(); | if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); | public void setShortProperty(String name, short value) throws JMSException { throw new NotYetImplementedException(); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c02fe0abfa86eceacf6101f304bc185026342c82/JBossMessage.java/clean/src/main/org/jboss/jms/message/JBossMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
444,
4897,
1396,
12,
780,
508,
16,
3025,
460,
13,
1216,
20343,
282,
288,
1377,
309,
16051,
2150,
1994,
3067,
13,
604,
394,
2350,
1248,
3067,
429,
503,
2932,
2297,
854,
855,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
444,
4897,
1396,
12,
780,
508,
16,
3025,
460,
13,
1216,
20343,
282,
288,
1377,
309,
16051,
2150,
1994,
3067,
13,
604,
394,
2350,
1248,
3067,
429,
503,
2932,
2297,
854,
855,
1... |
if (type == null) this.type = ""; else this.type = type; | this.type = type; | public void setType(String type) { if (type == null) this.type = ""; else this.type = type; } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/5002cc6805483be5a82e6da1a3854638a8b13eea/SubscriptionForm.java/clean/src/example/org/apache/struts/example/SubscriptionForm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8811,
12,
780,
618,
13,
288,
202,
430,
261,
723,
422,
446,
13,
202,
565,
333,
18,
723,
273,
1408,
31,
202,
12107,
202,
565,
333,
18,
723,
273,
618,
31,
565,
289,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8811,
12,
780,
618,
13,
288,
202,
430,
261,
723,
422,
446,
13,
202,
565,
333,
18,
723,
273,
1408,
31,
202,
12107,
202,
565,
333,
18,
723,
273,
618,
31,
565,
289,
2,
-100,... |
iscRotation = new IntegerSpinControl(grpRotation, SWT.NONE, (int) fdCurrent.getRotation()); GridData gdISCRotation = new GridData(GridData.FILL_HORIZONTAL); gdISCRotation.horizontalSpan = 2; iscRotation.setLayoutData(gdISCRotation); iscRotation.setMinimum(-90); iscRotation.setMaximum(90); iscRotation.setIncrement(1); iscRotation.addListener(this); } | iscRotation = new IntegerSpinControl( grpRotation, SWT.NONE, ChartUIUtil.getFontRotation( fdCurrent ) ); GridData gdISCRotation = new GridData( GridData.FILL_HORIZONTAL ); gdISCRotation.horizontalSpan = 2; iscRotation.setLayoutData( gdISCRotation ); iscRotation.setMinimum( -90 ); iscRotation.setMaximum( 90 ); iscRotation.setIncrement( 1 ); iscRotation.addListener( this ); } | private void createRotationPanel() { GridLayout glRotation = new GridLayout(); glRotation.verticalSpacing = 2; glRotation.marginHeight = 2; glRotation.marginWidth = 2; glRotation.numColumns = 3; grpRotation = new Group(cmpContent, SWT.NONE); GridData gdGRPRotation = new GridData(GridData.FILL_BOTH); gdGRPRotation.horizontalSpan = 6; gdGRPRotation.verticalSpan = 3; gdGRPRotation.heightHint = 180; grpRotation.setLayoutData(gdGRPRotation); grpRotation.setLayout(glRotation); grpRotation.setText(Messages.getString("FontDefinitionDialog.Lbl.Rotation")); //$NON-NLS-1$ ascRotation = new AngleSelectorComposite(grpRotation, SWT.BORDER, (int) fdCurrent.getRotation(), Display .getCurrent().getSystemColor(SWT.COLOR_WHITE)); GridData gdASCRotation = new GridData(GridData.FILL_BOTH); gdASCRotation.horizontalSpan = 1; gdASCRotation.verticalSpan = 3; ascRotation.setLayoutData(gdASCRotation); ascRotation.setAngleChangeListener(this); iscRotation = new IntegerSpinControl(grpRotation, SWT.NONE, (int) fdCurrent.getRotation()); GridData gdISCRotation = new GridData(GridData.FILL_HORIZONTAL); gdISCRotation.horizontalSpan = 2; iscRotation.setLayoutData(gdISCRotation); iscRotation.setMinimum(-90); iscRotation.setMaximum(90); iscRotation.setIncrement(1); iscRotation.addListener(this); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/24a5facd06b9834d9092d18b6e634919abd5a8d1/FontDefinitionDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
14032,
5537,
1435,
565,
288,
3639,
7145,
3744,
5118,
14032,
273,
394,
7145,
3744,
5621,
3639,
5118,
14032,
18,
17824,
18006,
273,
576,
31,
3639,
5118,
14032,
18,
10107,
2686... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
14032,
5537,
1435,
565,
288,
3639,
7145,
3744,
5118,
14032,
273,
394,
7145,
3744,
5621,
3639,
5118,
14032,
18,
17824,
18006,
273,
576,
31,
3639,
5118,
14032,
18,
10107,
2686... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.