rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if (superClass != null) { return superClass.getAnnouncement(); | if (getSuperClass() != null) { return getSuperClass().getAnnouncement(); | public String getAnnouncement() { if (announcement == null) { if (superClass != null) { return superClass.getAnnouncement(); } else { // Generate the default announcement string for the Tool String defaultAnnouncement = ManagedMakeMessages.getResourceString(DEFAULT_ANNOUNCEMENT_PREFIX) + WHITESPACE + getName(); // + "(" + getId() + ")"; return defaultAnnouncement; } } return announcement; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0119b876950a205bdddabaad5e05a45b2a4dc387/Tool.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
23137,
475,
1435,
288,
202,
202,
430,
261,
1072,
8386,
475,
422,
446,
13,
288,
1082,
202,
430,
261,
9565,
797,
480,
446,
13,
288,
9506,
202,
2463,
18846,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
23137,
475,
1435,
288,
202,
202,
430,
261,
1072,
8386,
475,
422,
446,
13,
288,
1082,
202,
430,
261,
9565,
797,
480,
446,
13,
288,
9506,
202,
2463,
18846,
18,
588,
... |
updateAgentAction("In:" + entry[i].getKey(), entry[i].getValue()); | updateAgentAction("In:" + entry[i].getKey(), entry[i].getValue()); | public void receivePolicyMessage(Policy policy, String policyID, String policyName, String policyDescription, String policyScope, String policySubjectID, String policySubjectName, String policyTargetID, String policyTargetName, String policyType) { if(debug) System.out.println("--updating AccessPolicyProxy for:" + agent); if(policy == null) { if (debug) { System.out.println("AccessPolicyProxy: no policy"); } return; } //whom is the policy for? /* if((!policySubjectName.equals(agent)) && (!agent.equals("DEFAULT"))) { if (debug) { System.out.println("policy not for:"+agent + " - Should be for " + policySubjectName); } return; } */ //for each RuleParameter RuleParameter[] ruleParameters = policy.getRuleParameters(); for (int j=0; j < ruleParameters.length; j++) { //for now only process KeyRuleParameter if(!(ruleParameters[j] instanceof KeyRuleParameter)) return; KeyRuleParameter krp = (KeyRuleParameter)ruleParameters[j]; //process rules String name = krp.getName(); String value = (String)krp.getValue(); KeyRuleParameterEntry[] entry = krp.getKeys(); if(name.endsWith("Verb")){ if(name.startsWith("Outgoing")) { if(value!=null && value !="" ) { if(debug) System.out.println("--default out verbs specified for:"+ agent); updateVerb("Out:DEFAULT",value); } for(int i = 0; i < entry.length; i++) { updateVerb("Out:" + entry[i].getKey(), entry[i].getValue()); } } if(name.startsWith("Incoming")) { if(value!=null && value !="" ) { if(debug) System.out.println("--default agentAction specified for:"+ agent); updateVerb("In:DEFAULT", value); } for(int i = 0; i < entry.length; i++) { updateVerb("In:" + entry[i].getKey(), entry[i].getValue()); } } } if(name.endsWith("AgentAction")){ if(name.startsWith("Outgoing")) { if(value!=null && value !="" ) { if(debug) System.out.println("--default agentAction specified for:"+ agent); updateAgentAction("Out:DEFAULT",value); } for(int i = 0; i < entry.length; i++) { updateAgentAction("Out:" + entry[i].getKey(), entry[i].getValue()); } } if(name.startsWith("Incoming")) { if(value!=null && value !="" ) { if(debug) System.out.println("--default agentAction specified for:"+ agent); updateAgentAction("In:DEFAULT", value); } for(int i = 0; i < entry.length; i++) { updateAgentAction("In:" + entry[i].getKey(), entry[i].getValue()); } } } if(name.endsWith("MessageAction")){ if(name.startsWith("Outgoing")) { if(value!=null && value !="" ) if(debug) System.out.println("--default messageAction specified for:"+ agent); for(int i = 0; i < entry.length; i++) { updateAction(":"+entry[i].getKey(), entry[i].getValue()); } } if(name.startsWith("Incoming")) { if(value!=null && value !="" ) if(debug) System.out.println("--default messageAction specified for:"+ agent); for(int i = 0; i < entry.length; i++) { updateAction(entry[i].getKey()+":", entry[i].getValue()); } } } if(name.endsWith("MessageCriticality")){ if(name.startsWith("Outgoing")) { if(value!=null && value !="" ) updateCriticality(":"+"DEFAULT",value); for(int i = 0; i < entry.length; i++) { updateCriticality(":"+entry[i].getKey(), entry[i].getValue()); } } if(name.startsWith("Incoming")) { if(value!=null && value !="" ) updateCriticality("DEFAULT"+":",value); for(int i = 0; i < entry.length; i++) { updateCriticality(entry[i].getKey()+":", entry[i].getValue()); } } } if(name.endsWith("MessageIntegrity")){ if(name.startsWith("Outgoing")) { if(value!=null && value !="" ) updateIntegrity(":"+"DEFAULT",value); for(int i = 0; i < entry.length; i++) { updateIntegrity(":"+entry[i].getKey(), entry[i].getValue()); } } if(name.startsWith("Incoming")) { if(value!=null && value !="" ) updateIntegrity("DEFAULT"+":",value); for(int i = 0; i < entry.length; i++) { updateIntegrity(entry[i].getKey()+":", entry[i].getValue()); } } } } } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/6de90ccc9be8e4226236949d6b963e004e1df9a7/AccessControlPolicyServiceImpl.java/buggy/securityservices/src/com/nai/security/access/AccessControlPolicyServiceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6798,
2582,
1079,
12,
2582,
3329,
16,
6862,
377,
514,
3329,
734,
16,
6862,
377,
514,
3329,
461,
16,
6862,
377,
514,
3329,
3291,
16,
6862,
377,
514,
3329,
3876,
16,
6862,
377,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6798,
2582,
1079,
12,
2582,
3329,
16,
6862,
377,
514,
3329,
734,
16,
6862,
377,
514,
3329,
461,
16,
6862,
377,
514,
3329,
3291,
16,
6862,
377,
514,
3329,
3876,
16,
6862,
377,... |
if (addDummy) newItem(item, SWT.NULL, -1); | if (addDummy) { newItem(item, SWT.NULL, -1); } | protected void updatePlus(Item item, Object element) { boolean hasPlus = getItemCount(item) > 0; boolean needsPlus = isExpandable(item, null, element); boolean removeAll = false; boolean addDummy = false; Object data = item.getData(); if (data != null && equals(element, data)) { // item shows same element if (hasPlus != needsPlus) { if (needsPlus) addDummy = true; else removeAll = true; } } else { // item shows different element removeAll = true; addDummy = needsPlus; // we cannot maintain expand state so collapse it setExpanded(item, false); } if (removeAll) { // remove all children Item[] items = getItems(item); for (int i = 0; i < items.length; i++) { if (items[i].getData() != null) disassociate(items[i]); items[i].dispose(); } } if (addDummy) newItem(item, SWT.NULL, -1); // append a dummy } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/AbstractTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
13207,
12,
1180,
761,
16,
1033,
930,
13,
288,
3639,
1250,
711,
13207,
273,
8143,
1380,
12,
1726,
13,
405,
374,
31,
3639,
1250,
4260,
13207,
273,
353,
12271,
429,
12,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
13207,
12,
1180,
761,
16,
1033,
930,
13,
288,
3639,
1250,
711,
13207,
273,
8143,
1380,
12,
1726,
13,
405,
374,
31,
3639,
1250,
4260,
13207,
273,
353,
12271,
429,
12,
17... |
public OffsetMeanAmpConfig(){ ampRange = new UnitRangeImpl(-500, 500, UnitImpl.COUNT); | public OffsetMeanAmpConfig(LocalSeismogram aSeis, MicroSecondTimeRange range){ LocalSeismogramImpl seis = (LocalSeismogramImpl)aSeis; int beginIndex = SeisPlotUtil.getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), range.getBeginTime()); if (beginIndex < 0) beginIndex = 0; if (beginIndex > seis.getNumPoints()) beginIndex = seis.getNumPoints(); int endIndex = SeisPlotUtil.getPixel(seis.getNumPoints(), seis.getBeginTime(), seis.getEndTime(), range.getEndTime()); if (endIndex < 0) endIndex = 0; if (endIndex > seis.getNumPoints()) endIndex = seis.getNumPoints(); if (endIndex == beginIndex) { ampRange = new UnitRangeImpl(-500, 500, UnitImpl.COUNT); } try { double min = seis.getMinValue(beginIndex, endIndex).getValue(); double max = seis.getMaxValue(beginIndex, endIndex).getValue(); if(min > max) ampRange = new UnitRangeImpl(min, -min, seis.getAmplitudeRange().getUnit()); else ampRange = new UnitRangeImpl(-max, max, seis.getAmplitudeRange().getUnit()); }catch (Exception e) { ampRange = new UnitRangeImpl(-500, 500, UnitImpl.COUNT); } | public OffsetMeanAmpConfig(){ ampRange = new UnitRangeImpl(-500, 500, UnitImpl.COUNT); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/8fa395dde111d49279fbcdad32de6d2b553e5c76/OffsetMeanAmpConfig.java/buggy/src/edu/sc/seis/fissuresUtil/display/OffsetMeanAmpConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9874,
15312,
26895,
809,
1435,
95,
202,
931,
2655,
273,
394,
8380,
2655,
2828,
19236,
12483,
16,
6604,
16,
8380,
2828,
18,
7240,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
9874,
15312,
26895,
809,
1435,
95,
202,
931,
2655,
273,
394,
8380,
2655,
2828,
19236,
12483,
16,
6604,
16,
8380,
2828,
18,
7240,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
"<modification type=\"unknown\"><filename>File\"Name&</filename><project>Folder'Name</project><date>" + formatter.format(modifiedTime) + "</date><user>User<>Name</user><comment><![CDATA[Comment]]></comment>"; | "<modification type=\"unknown\">" + "<file action=\"checkin\"><filename>File\"Name&</filename>" + "<project>Folder'Name</project></file>" + "<date>" + formatter.format(modifiedTime) + "</date>" + "<user>User<>Name</user>" + "<comment><![CDATA[Comment]]></comment>"; | public void testToXml() { Date modifiedTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); Modification mod = new Modification(); mod.fileName = "File\"Name&"; mod.folderName = "Folder'Name"; mod.modifiedTime = modifiedTime; mod.userName = "User<>Name"; mod.comment = "Comment"; String base = "<modification type=\"unknown\"><filename>File\"Name&</filename><project>Folder'Name</project><date>" + formatter.format(modifiedTime) + "</date><user>User<>Name</user><comment><![CDATA[Comment]]></comment>"; String closingTag = "</modification>"; String expected = base + closingTag; assertEquals(expected, mod.toXml(formatter)); String expectedWithEmail = base + "<email>foo.bar@quuuux.quuux.quux.qux</email>" + closingTag; mod.emailAddress = "foo.bar@quuuux.quuux.quux.qux"; assertEquals(expectedWithEmail, mod.toXml(formatter)); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/6c388b514a0547682989734ceba9679338747a3a/ModificationTest.java/buggy/main/test/net/sourceforge/cruisecontrol/ModificationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
4432,
1435,
288,
3639,
2167,
4358,
950,
273,
394,
2167,
5621,
3639,
17005,
4453,
273,
394,
17005,
2932,
8206,
19,
449,
19,
17722,
8863,
3639,
3431,
1480,
681,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
4432,
1435,
288,
3639,
2167,
4358,
950,
273,
394,
2167,
5621,
3639,
17005,
4453,
273,
394,
17005,
2932,
8206,
19,
449,
19,
17722,
8863,
3639,
3431,
1480,
681,
273,
3... |
return new TreeSet<T>(map.subMap(from, to)); | return subSet(from, true, to, false); | public SortedSet<T> subSet(T from, T to) { return new TreeSet<T>(map.subMap(from, to)); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/7959ecb038eadae99e617348ee69bbc2e9d87e2f/TreeSet.java/clean/java/util/TreeSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22123,
32,
56,
34,
720,
694,
12,
56,
628,
16,
399,
358,
13,
225,
288,
565,
327,
720,
694,
12,
2080,
16,
638,
16,
358,
16,
629,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22123,
32,
56,
34,
720,
694,
12,
56,
628,
16,
399,
358,
13,
225,
288,
565,
327,
720,
694,
12,
2080,
16,
638,
16,
358,
16,
629,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,... |
public final void render( Map htRenderers, Bounds bo ) throws ChartException { final boolean bFirstInSequence = ( iSeriesIndex == 0 ); final boolean bLastInSequence = ( iSeriesIndex == iSeriesCount - 1 ); final ILogger il = DefaultLoggerImpl.instance( ); long lTimer = System.currentTimeMillis( ); final Chart cm = getModel( ); final IDeviceRenderer idr = getDevice( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); if ( bFirstInSequence ) // SEQUENCE OF MULTIPLE SERIES RENDERERS // (POSSIBLY PARTICIPATING IN A COMBINATION // CHART) { // SETUP A TIMER lTimer = System.currentTimeMillis( ); htRenderers.put( TIMER, new Long( lTimer ) ); // RENDER THE CHART BY WALKING THROUGH THE RECURSIVE BLOCK STRUCTURE Block bl = cm.getBlock( ); final Enumeration e = bl.children( true ); final BlockGenerationEvent bge = new BlockGenerationEvent( bl ); // ALWAYS RENDER THE OUTERMOST BLOCK FIRST ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); bge.updateBlock( bl ); renderBlock( idr, bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); while ( e.hasMoreElements( ) ) { bl = (Block) e.nextElement( ); bge.updateBlock( bl ); if ( bl instanceof Plot ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderPlot( idr, (Plot) bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); if ( !bLastInSequence ) { break; // STOP AT THE PLOT IF NOT ALSO THE LAST IN THE // SEQUENCE } } else if ( bl instanceof TitleBlock ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderTitle( idr, bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } else if ( bl instanceof LabelBlock ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderLabel( idr, bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } else if ( bl instanceof Legend ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderLegend( idr, (Legend) bl, htRenderers ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } else { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderBlock( idr, bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } } } else if ( bLastInSequence ) { Block bl = cm.getBlock( ); final Enumeration e = bl.children( true ); final BlockGenerationEvent bge = new BlockGenerationEvent( this ); boolean bStarted = false; while ( e.hasMoreElements( ) ) { bl = (Block) e.nextElement( ); if ( !bStarted && !bl.isPlot( ) ) { continue; // IGNORE ALL BLOCKS UNTIL PLOT IS ENCOUNTERED } bStarted = true; bge.updateBlock( bl ); if ( bl instanceof Plot ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderPlot( idr, (Plot) bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } else if ( bl instanceof TitleBlock ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderTitle( idr, bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } else if ( bl instanceof LabelBlock ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderLabel( idr, bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } else if ( bl instanceof Legend ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderLegend( idr, (Legend) bl, htRenderers ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } else { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, bl ); renderBlock( idr, bl ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, bl ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_BLOCK, bl ); } } } else // FOR ALL SERIES IN-BETWEEN, ONLY RENDER THE PLOT { final BlockGenerationEvent bge = new BlockGenerationEvent( this ); Plot p = cm.getPlot( ); bge.updateBlock( p ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_BLOCK, p ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, p ); renderPlot( idr, p ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_BLOCK, p ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_BLOCK, p ); } lTimer = System.currentTimeMillis( ) - lTimer; if ( htRenderers.containsKey( TIMER ) ) { final Long l = (Long) htRenderers.get( TIMER ); htRenderers.put( TIMER, new Long( l.longValue( ) + lTimer ) ); } else { htRenderers.put( TIMER, new Long( lTimer ) ); } if ( bLastInSequence ) { final PlotWith2DAxes pw2da = (PlotWith2DAxes) getComputations( ); pw2da.getStackedSeriesLookup( ).resetSubUnits( ); il.log( ILogger.INFORMATION, Messages.getString( "info.elapsed.time.render", //$NON-NLS-1$ new Object[]{ new Long( lTimer ) }, getRunTimeContext( ).getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED htRenderers.remove( TIMER ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdb7b6c5463f7273d9f1038e97552808a8df1f58/AxesRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
12,
1635,
14049,
3420,
414,
16,
20382,
800,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
6385,
1250,
324,
3759,
382,
4021,
273,
261,
277,
6485,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
1635,
14049,
3420,
414,
16,
20382,
800,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
6385,
1250,
324,
3759,
382,
4021,
273,
261,
277,
6485,
1016,
... | ||
puncString = "" + ANDseparator + ORseparator + getUnassignedSymbol() + getInapplicableSymbol(); | puncString = "" + ANDseparator + ORseparator + getUnassignedSymbol() + getInapplicableSymbol(); | public CategoricalData(CharMatrixManager manager, int numTaxa, int numChars, Taxa taxa){ super(manager, numTaxa, numChars, taxa); symbols = new char[] {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'm', 'n', 'p' , 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}; try { puncString = "" + ANDseparator + ORseparator + getUnassignedSymbol() + getInapplicableSymbol(); if (permitShortMatrices && CategoricalState.compressibleToShort(getDefaultState())) { matrixShort = new short[ numChars][numTaxa]; for (int it=0; it<numTaxa; it++) for (int ic=0; ic<numChars; ic++) matrixShort[ic][it] = CategoricalState.compressToShort(getDefaultState()); } else { matrix = new long[ numChars][numTaxa]; for (int it=0; it<numTaxa; it++) for (int ic=0; ic<numChars; ic++) matrix[ic][it] = getDefaultState(); } } catch (OutOfMemoryError e){ MesquiteMessage.warnProgrammer("Sorry, the Character Matrix could not be created because of lack of memory"); } } | 55939 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55939/f13d81739af31354f83b14c9490772258666d61b/CategoricalData.java/clean/Source/mesquite/categ/lib/CategoricalData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
14341,
751,
12,
2156,
4635,
1318,
3301,
16,
509,
818,
7731,
69,
16,
509,
818,
7803,
16,
18240,
69,
5320,
69,
15329,
202,
202,
9565,
12,
4181,
16,
818,
7731,
69,
16,
818... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
385,
14341,
751,
12,
2156,
4635,
1318,
3301,
16,
509,
818,
7731,
69,
16,
509,
818,
7803,
16,
18240,
69,
5320,
69,
15329,
202,
202,
9565,
12,
4181,
16,
818,
7731,
69,
16,
818... |
testPdbFile = new File(testDirectory, "1crn.pdb"); FileUtilities .copyStreamToFile(getClass() .getResourceAsStream("Test-" + testPdbFile.getName()), testPdbFile); } catch (IOException ex) { fail(ex.toString()); } try { ChemObjectReader reader = new PDBReader(new FileInputStream(testPdbFile)); | ChemObjectReader reader = new PDBReader(new InputStreamReader(ins)); | public void testProtein() { File testPdbFile = null; try { testPdbFile = new File(testDirectory, "1crn.pdb"); FileUtilities .copyStreamToFile(getClass() .getResourceAsStream("Test-" + testPdbFile.getName()), testPdbFile); } catch (IOException ex) { fail(ex.toString()); } try { ChemObjectReader reader = new PDBReader(new FileInputStream(testPdbFile)); assertNotNull(reader); ChemFile chemFile = (ChemFile) reader.read(new ChemFile()); assertNotNull(chemFile); assertEquals(1, chemFile.getChemSequenceCount()); ChemSequence seq = chemFile.getChemSequence(0); assertNotNull(seq); assertEquals(1, seq.getChemModelCount()); ChemModel model = seq.getChemModel(0); assertNotNull(model); assertEquals(1, model.getSetOfMolecules().getMoleculeCount()); BioPolymer mol = (BioPolymer) model.getSetOfMolecules().getMolecule(0); assertNotNull(mol); assertEquals(327, mol.getAtomCount()); assertEquals(46, mol.getMonomerCount()); assertNotNull(mol.getMonomer("THR1")); assertEquals(7, mol.getMonomer("THR1").getAtomCount()); assertNotNull(mol.getMonomer("ILE7")); assertEquals(8, mol.getMonomer("ILE7").getAtomCount()); Atom atom = mol.getAtomAt(94); assertNotNull(atom); assertEquals("C", atom.getSymbol()); assertEquals(new Integer(95), atom.getProperty("pdb.serial")); assertEquals("CZ", atom.getProperty("pdb.name")); assertEquals("", atom.getProperty("pdb.altLoc")); assertEquals("PHE", atom.getProperty("pdb.resName")); assertEquals("", atom.getProperty("pdb.chainID")); assertEquals("13", atom.getProperty("pdb.resSeq")); assertEquals("", atom.getProperty("pdb.iCode")); assertEquals(1.0, ((Double) atom.getProperty("pdb.occupancy")).doubleValue(), 0.001); assertEquals(6.84, ((Double) atom.getProperty("pdb.tempFactor")).doubleValue(), 0.001); assertEquals(null, atom.getProperty("pdb.segID")); assertEquals(null, atom.getProperty("pdb.element")); assertEquals(null, atom.getProperty("pdb.charge")); } catch (Exception ex) { fail(ex.toString()); } } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/2c7c43d2f4308010328c092f9e157e53e6cab8b2/PDBReaderTest.java/buggy/src/org/openscience/cdk/test/io/PDBReaderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
626,
10297,
1435,
288,
565,
1387,
1842,
52,
1966,
812,
273,
446,
31,
565,
775,
288,
1377,
1842,
52,
1966,
812,
273,
394,
1387,
12,
3813,
2853,
16,
315,
21,
3353,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
626,
10297,
1435,
288,
565,
1387,
1842,
52,
1966,
812,
273,
446,
31,
565,
775,
288,
1377,
1842,
52,
1966,
812,
273,
394,
1387,
12,
3813,
2853,
16,
315,
21,
3353,
82,
... |
groupPrimitive(pre, false); | ivRenderer.groupPrimitive(pre, false); | public void fillPolygon(PolygonRenderEvent pre) throws ChartException { groupPrimitive(pre, false); super.fillPolygon(pre); ungroupPrimitive(pre, false); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2d20506054849c42d48678ae5d0e59f9c37d95e8/SVGRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
11787,
12,
11787,
3420,
1133,
675,
13,
1216,
14804,
503,
288,
202,
202,
1655,
9840,
12,
1484,
16,
629,
1769,
202,
202,
9565,
18,
5935,
11787,
12,
1484,
1769,
202,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
11787,
12,
11787,
3420,
1133,
675,
13,
1216,
14804,
503,
288,
202,
202,
1655,
9840,
12,
1484,
16,
629,
1769,
202,
202,
9565,
18,
5935,
11787,
12,
1484,
1769,
202,
2... |
return (modifiers & SYNTHETIC) != 0; | return (modifiers & ACC_SYNTHETIC) != 0; | public boolean isSynthetic() { return (modifiers & SYNTHETIC) != 0; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3d00310d712d5d216f70da39fd52a8ce808e6137/VM_Method.java/buggy/rvm/src/vm/classLoader/VM_Method.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
10503,
16466,
1435,
288,
565,
327,
261,
15432,
473,
18816,
67,
7474,
1784,
44,
1584,
2871,
13,
480,
374,
31,
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,
1250,
353,
10503,
16466,
1435,
288,
565,
327,
261,
15432,
473,
18816,
67,
7474,
1784,
44,
1584,
2871,
13,
480,
374,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
expectation2.needsMoreInvocations = false; | expectation2.isSatisfied = true; | public void testIsSatisfiedWhenAllMembersHaveBeenSatisfied() throws Throwable { expectation1.matches = true; group.invoke(invocation); assertTrue("group is not satisfied", group.needsMoreInvocations()); expectation1.matches = false; expectation1.needsMoreInvocations = false; expectation2.matches = true; group.invoke(invocation); assertTrue("group is not satisfied", group.needsMoreInvocations()); expectation2.matches = false; expectation2.needsMoreInvocations = false; expectation3.matches = true; group.invoke(invocation); assertTrue("group is not satisfied", group.needsMoreInvocations()); expectation3.matches = false; expectation3.needsMoreInvocations = false; expectation4.matches = true; group.invoke(invocation); assertTrue("group is not satisfied", group.needsMoreInvocations()); expectation4.needsMoreInvocations = false; assertTrue("group is satisfied", !group.needsMoreInvocations()); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/010013813a0e057e0715a4d31490eefcfa353062/OrderedExpectationGroupTests.java/clean/jmock2/test/org/jmock/test/unit/lib/OrderedExpectationGroupTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
15163,
21501,
9434,
1595,
6918,
17944,
25931,
15163,
21501,
1435,
1216,
4206,
288,
3639,
17733,
21,
18,
8436,
273,
638,
31,
7734,
1041,
18,
14407,
12,
5768,
4431,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
15163,
21501,
9434,
1595,
6918,
17944,
25931,
15163,
21501,
1435,
1216,
4206,
288,
3639,
17733,
21,
18,
8436,
273,
638,
31,
7734,
1041,
18,
14407,
12,
5768,
4431,
176... |
public void processingInstruction(String target, String data) | public void processingInstruction(final String target, final String data) | public void processingInstruction(String target, String data) throws SAXException { } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/bfbb9e2a2e54bf7040308f5f0b4fd744c80370c8/HTMLParser.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
4929,
11983,
12,
6385,
514,
1018,
16,
727,
514,
501,
13,
7734,
1216,
14366,
288,
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,... | [
1,
1,
1,
1,
1,
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,
540,
1071,
918,
4929,
11983,
12,
6385,
514,
1018,
16,
727,
514,
501,
13,
7734,
1216,
14366,
288,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
SAMLSubject subject = new SAMLSubject(subjectNameId, Arrays.asList(confirmationMethods), null, null); | Element keyInfoElem = null; if(keyInfoContent != null) { keyInfoElem = doc.createElementNS(WSConstants.SIG_NS, "KeyInfo"); ((OMElement)keyInfoContent).declareNamespace(WSConstants.SIG_NS, WSConstants.SIG_PREFIX); ((OMElement)keyInfoContent).declareNamespace(WSConstants.ENC_NS, WSConstants.ENC_PREFIX); keyInfoElem.appendChild(keyInfoContent); } SAMLSubject subject = new SAMLSubject(subjectNameId, Arrays.asList(confirmationMethods), null, keyInfoElem); | private SAMLAssertion createAuthAssertion(String confMethod, SAMLNameIdentifier subjectNameId, SAMLTokenIssuerConfig config, Crypto crypto, Date notBefore, Date notAfter) throws TrustException { try { String[] confirmationMethods = new String[]{confMethod}; SAMLSubject subject = new SAMLSubject(subjectNameId, Arrays.asList(confirmationMethods), null, null); SAMLAuthenticationStatement authStmt = new SAMLAuthenticationStatement( subject, SAMLAuthenticationStatement.AuthenticationMethod_Password, notBefore, null, null, null); SAMLStatement[] statements = {authStmt}; SAMLAssertion assertion = new SAMLAssertion(config.issuerName, notBefore, notAfter, null, null, Arrays.asList(statements)); //sign the assertion X509Certificate[] issuerCerts = crypto.getCertificates(config.issuerKeyAlias); String sigAlgo = XMLSignature.ALGO_ID_SIGNATURE_RSA; String pubKeyAlgo = issuerCerts[0].getPublicKey().getAlgorithm(); if (pubKeyAlgo.equalsIgnoreCase("DSA")) { sigAlgo = XMLSignature.ALGO_ID_SIGNATURE_DSA; } java.security.Key issuerPK = crypto.getPrivateKey(config.issuerKeyAlias, config.issuerKeyPassword); assertion.sign(sigAlgo, issuerPK, Arrays.asList(issuerCerts)); return assertion; } catch (Exception e) { throw new TrustException("samlAssertionCreationError", e); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/5203840ede53c3b77f2e490250f6d0fbc377182d/SAMLTokenIssuer.java/buggy/modules/rahas/src/org/apache/rahas/impl/SAMLTokenIssuer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
21030,
14979,
752,
1730,
14979,
12,
780,
2195,
1305,
16,
5411,
21030,
461,
3004,
3221,
461,
548,
16,
21030,
1345,
16667,
809,
642,
16,
5411,
15629,
8170,
16,
2167,
486,
4649,
16,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21030,
14979,
752,
1730,
14979,
12,
780,
2195,
1305,
16,
5411,
21030,
461,
3004,
3221,
461,
548,
16,
21030,
1345,
16667,
809,
642,
16,
5411,
15629,
8170,
16,
2167,
486,
4649,
16,
21... |
protected ObservableList(Realm realm, List wrappedList, Object elementType) { super(realm); this.wrappedList = wrappedList; this.elementType = elementType; | protected ObservableList(List wrappedList, Object elementType) { this(Realm.getDefault(), wrappedList, elementType); | protected ObservableList(Realm realm, List wrappedList, Object elementType) { super(realm); this.wrappedList = wrappedList; this.elementType = elementType; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8d526c66443a00f1d390d1ba70af697ea08606b2/ObservableList.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/list/ObservableList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4310,
682,
12,
22545,
11319,
16,
987,
5805,
682,
16,
1033,
21427,
13,
288,
202,
202,
9565,
12,
24056,
1769,
202,
202,
2211,
18,
18704,
682,
273,
5805,
682,
31,
202,
202,
2211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4310,
682,
12,
22545,
11319,
16,
987,
5805,
682,
16,
1033,
21427,
13,
288,
202,
202,
9565,
12,
24056,
1769,
202,
202,
2211,
18,
18704,
682,
273,
5805,
682,
31,
202,
202,
2211... |
final TableCellEditor editor = table.getCellEditor(); | final TableCellEditor editor = table.getCellEditor(); | public void actionPerformed(ActionEvent e){ final int listSize; synchronized(lock){ listSize = callsToCheck.size(); callsToCheck.add(new ReturnCheckSpecification()); } model.fireTableStructureChanged(); EventQueue.invokeLater(new Runnable() { public void run() { final Rectangle rect = table.getCellRect(listSize, 0, true); table.scrollRectToVisible(rect); table.editCellAt(listSize, 0); final TableCellEditor editor = table.getCellEditor(); final Component component = editor.getTableCellEditorComponent(table, null, true, listSize, 0); component.requestFocus(); } }); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/0c22d3bce35a1ee7d70c329328f649614cf6f21a/IgnoreResultOfCallInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/IgnoreResultOfCallInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
26100,
12,
1803,
1133,
425,
15329,
10792,
727,
509,
666,
1225,
31,
10792,
3852,
12,
739,
15329,
13491,
666,
1225,
273,
4097,
18126,
18,
1467,
5621,
13491,
4097,
18126,
18,
1289,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
26100,
12,
1803,
1133,
425,
15329,
10792,
727,
509,
666,
1225,
31,
10792,
3852,
12,
739,
15329,
13491,
666,
1225,
273,
4097,
18126,
18,
1467,
5621,
13491,
4097,
18126,
18,
1289,... |
Enumeration paramNames = req.getParameterNames(); while (paramNames != null && paramNames.hasMoreElements()) { String param = paramNames.nextElement().toString(); if (param != null) { String values[] = req.getParameterValues(param); for (int i=0; i < values.length; i++) { String value = URLEncoder.encode(values[i], parameterEncoding); NameValuePair nvp = new NameValuePair(param, value); queryParameters.add(nvp); } } } | protected CGIEnvironment(HttpServletRequest req, ServletContext context) throws IOException { setupFromContext(context); setupFromRequest(req); Enumeration paramNames = req.getParameterNames(); while (paramNames != null && paramNames.hasMoreElements()) { String param = paramNames.nextElement().toString(); if (param != null) { String values[] = req.getParameterValues(param); for (int i=0; i < values.length; i++) { String value = URLEncoder.encode(values[i], parameterEncoding); NameValuePair nvp = new NameValuePair(param, value); queryParameters.add(nvp); } } } this.valid = setCGIEnvironment(req); if (this.valid) { workingDirectory = new File(command.substring(0, command.lastIndexOf(File.separator))); } } | 48155 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48155/34601668ef04ac05695a8b145daf5444194948b7/CGIServlet.java/clean/java/org/apache/catalina/servlets/CGIServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
385,
13797,
5494,
12,
2940,
18572,
1111,
16,
4766,
22717,
819,
13,
1216,
1860,
288,
5411,
3875,
20128,
12,
2472,
1769,
5411,
3875,
25074,
12,
3658,
1769,
5411,
13864,
579,
1557,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
385,
13797,
5494,
12,
2940,
18572,
1111,
16,
4766,
22717,
819,
13,
1216,
1860,
288,
5411,
3875,
20128,
12,
2472,
1769,
5411,
3875,
25074,
12,
3658,
1769,
5411,
13864,
579,
1557,
273,
... | |
public MultiLineTextFieldEditor(String name, String labelText, Composite parent) { this(name, labelText, UNLIMITED, parent); | protected MultiLineTextFieldEditor() { | public MultiLineTextFieldEditor(String name, String labelText, Composite parent) { this(name, labelText, UNLIMITED, parent); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/612551d59c19478ba33203c55a27f185410404a1/MultiLineTextFieldEditor.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/MultiLineTextFieldEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5991,
1670,
16157,
6946,
12,
780,
508,
16,
514,
1433,
1528,
16,
14728,
982,
13,
288,
9506,
202,
2211,
12,
529,
16,
1433,
1528,
16,
5019,
8283,
2056,
16,
982,
1769,
202,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5991,
1670,
16157,
6946,
12,
780,
508,
16,
514,
1433,
1528,
16,
14728,
982,
13,
288,
9506,
202,
2211,
12,
529,
16,
1433,
1528,
16,
5019,
8283,
2056,
16,
982,
1769,
202,
97,
... |
bootImage.setAddressWord(arrayImageOffset + (i << LOG_BYTES_IN_ADDRESS), | bootImage.setAddressWord(arrayImageOffset.add(i << LOG_BYTES_IN_ADDRESS), | private static int copyToBootImage(Object jdkObject, boolean allocOnly, int overwriteOffset, Object parentObject) throws IllegalAccessException { // // Return object if it is already copied and not being overwritten // BootImageMap.Entry mapEntry = BootImageMap.findOrCreateEntry(jdkObject); if (mapEntry.imageOffset != OBJECT_NOT_ALLOCATED && overwriteOffset == -1) return mapEntry.imageOffset; if (verbose >= 2) depth++; // // fetch object's type information // Class jdkType = jdkObject.getClass(); VM_Type rvmType = getRvmType(jdkType); if (rvmType == null) { if (verbose >= 2) traverseObject(jdkObject); if (verbose >= 2) depth--; return OBJECT_NOT_PRESENT; // object not part of bootimage } // // copy object to image // if (jdkType.isArray()) { VM_Array rvmArrayType = rvmType.asArray(); // // allocate space in image // int arrayCount = Array.getLength(jdkObject); int arrayImageOffset = (overwriteOffset == -1) ? bootImage.allocateArray(rvmArrayType, arrayCount) : overwriteOffset; mapEntry.imageOffset = arrayImageOffset; if (verbose >= 2) { if (depth == depthCutoff) say(SPACES.substring(0,depth+1), "TOO DEEP: cutting off"); else if (depth < depthCutoff) { String tab = SPACES.substring(0,depth+1); if (depth == 0 && jtocCount >= 0) tab = tab + "jtoc #" + String.valueOf(jtocCount) + ": "; int arraySize = rvmArrayType.getInstanceSize(arrayCount); say(tab, "Copying array ", jdkType.getName(), " length=", String.valueOf(arrayCount), (arraySize >= LARGE_ARRAY_SIZE) ? " large object!!!" : ""); } } VM_Type rvmElementType = rvmArrayType.getElementType(); // Show info on reachability of int arrays // if (false && rvmElementType.equals(VM_Type.IntType)) { if (parentObject != null) { Class parentObjectType = parentObject.getClass(); VM.sysWrite("Copying int array (", 4 * ((int []) jdkObject).length); VM.sysWriteln(" bytes) from parent object of type ", parentObjectType.toString()); } else { VM.sysWriteln("Copying int array from no parent object"); } } // // copy array elements from host jdk address space into image // recurse on values that are references // if (rvmElementType.isPrimitiveType()) { // array element is logical or numeric type if (rvmElementType.equals(VM_Type.BooleanType)) { boolean values[] = (boolean[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setByte(arrayImageOffset + i, values[i] ? 1 : 0); } else if (rvmElementType.equals(VM_Type.ByteType)) { byte values[] = (byte[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setByte(arrayImageOffset + i, values[i]); } else if (rvmElementType.equals(VM_Type.CharType)) { char values[] = (char[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setHalfWord(arrayImageOffset + (i << LOG_BYTES_IN_CHAR), values[i]); } else if (rvmElementType.equals(VM_Type.ShortType)) { short values[] = (short[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setHalfWord(arrayImageOffset + (i << LOG_BYTES_IN_SHORT), values[i]); } else if (rvmElementType.equals(VM_Type.IntType)) { int values[] = (int[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setFullWord(arrayImageOffset + (i << LOG_BYTES_IN_INT), values[i]); } else if (rvmElementType.equals(VM_Type.LongType)) { long values[] = (long[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setDoubleWord(arrayImageOffset + (i << LOG_BYTES_IN_LONG), values[i]); } else if (rvmElementType.equals(VM_Type.FloatType)) { float values[] = (float[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setFullWord(arrayImageOffset + (i << LOG_BYTES_IN_FLOAT), Float.floatToIntBits(values[i])); } else if (rvmElementType.equals(VM_Type.DoubleType)) { double values[] = (double[]) jdkObject; for (int i = 0; i < arrayCount; ++i) bootImage.setDoubleWord(arrayImageOffset + (i << LOG_BYTES_IN_DOUBLE), Double.doubleToLongBits(values[i])); } else fail("unexpected primitive array type: " + rvmArrayType); } else { // array element is reference type Object values[] = (Object []) jdkObject; Class jdkClass = jdkObject.getClass(); if (!allocOnly) { for (int i = 0; i<arrayCount; ++i) { if (values[i] != null) { if (verbose >= 2) traceContext.push(values[i].getClass().getName(), jdkClass.getName(), i); int imageOffset = copyToBootImage(values[i], allocOnly, -1, jdkObject); if (imageOffset == OBJECT_NOT_PRESENT) { // object not part of bootimage: install null reference if (verbose >= 2) traceContext.traceObjectNotInBootImage(); bootImage.setNullAddressWord(arrayImageOffset + (i << LOG_BYTES_IN_ADDRESS)); } else { bootImage.setAddressWord(arrayImageOffset + (i << LOG_BYTES_IN_ADDRESS), bootImageAddress.add(imageOffset).toWord()); } if (verbose >= 2) traceContext.pop(); } } } } } else { if (rvmType == VM_Type.AddressArrayType) { if (verbose >= 2) depth--; AddressArray addrArray = (AddressArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.ObjectReferenceArrayType) { if (verbose >= 2) depth--; ObjectReferenceArray orArray = (ObjectReferenceArray) jdkObject; Object backing = orArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.OffsetArrayType) { if (verbose >= 2) depth--; OffsetArray addrArray = (OffsetArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.WordArrayType) { if (verbose >= 2) depth--; WordArray addrArray = (WordArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.ExtentArrayType) { if (verbose >= 2) depth--; ExtentArray addrArray = (ExtentArray) jdkObject; Object backing = addrArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType == VM_Type.CodeArrayType) { if (verbose >= 2) depth--; VM_CodeArray codeArray = (VM_CodeArray) jdkObject; Object backing = codeArray.getBacking(); return copyMagicArrayToBootImage(backing, rvmType.asArray(), allocOnly, overwriteOffset, parentObject); } if (rvmType.isMagicType()) { VM.sysWriteln("Unhandled copying of magic type: " + rvmType.getDescriptor().toString()); VM.sysFail("incomplete boot image support"); } // // allocate space in image // VM_Class rvmScalarType = rvmType.asClass(); int scalarImageOffset = (overwriteOffset == -1) ? bootImage.allocateScalar(rvmScalarType) : overwriteOffset; mapEntry.imageOffset = scalarImageOffset; if (verbose >= 2) { if (depth == depthCutoff) say(SPACES.substring(0,depth+1), "TOO DEEP: cutting off"); else if (depth < depthCutoff) { String tab = SPACES.substring(0,depth+1); if (depth == 0 && jtocCount >= 0) tab = tab + "jtoc #" + String.valueOf(jtocCount) + " "; int scalarSize = rvmScalarType.getInstanceSize(); say(tab, "Copying object ", jdkType.getName(), " size=", String.valueOf(scalarSize), (scalarSize >= LARGE_SCALAR_SIZE) ? " large object!!!" : ""); } } // // copy object fields from host jdk address space into image // recurse on values that are references // VM_Field[] rvmFields = rvmScalarType.getInstanceFields(); for (int i = 0, n = rvmFields.length; i < n; ++i) { VM_Field rvmField = rvmFields[i]; VM_TypeReference rvmFieldType = rvmField.getType(); int rvmFieldOffset = scalarImageOffset + rvmField.getOffsetAsInt(); String rvmFieldName = rvmField.getName().toString(); Field jdkFieldAcc = getJdkFieldAccessor(jdkType, i, INSTANCE_FIELD); if (jdkFieldAcc == null) { if (verbose >= 2) traceContext.push(rvmFieldType.toString(), jdkType.getName(), rvmFieldName); if (verbose >= 2) traceContext.traceFieldNotInHostJdk(); if (verbose >= 2) traceContext.pop(); if (rvmFieldType.isPrimitiveType()) switch (rvmField.getType().getSize()) { case 4: bootImage.setFullWord(rvmFieldOffset, 0); break; case 8: bootImage.setDoubleWord(rvmFieldOffset, 0L); break; default:fail("unexpected field type: " + rvmFieldType); break; } else bootImage.setNullAddressWord(rvmFieldOffset); continue; } if (rvmFieldType.isPrimitiveType()) { // field is logical or numeric type if (rvmFieldType.isBooleanType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getBoolean(jdkObject) ? 1 : 0); } else if (rvmFieldType.isByteType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getByte(jdkObject)); } else if (rvmFieldType.isCharType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getChar(jdkObject)); } else if (rvmFieldType.isShortType()) { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getShort(jdkObject)); } else if (rvmFieldType.isIntType()) { try { bootImage.setFullWord(rvmFieldOffset, jdkFieldAcc.getInt(jdkObject)); } catch (IllegalArgumentException ex) { System.err.println( "type " + rvmScalarType + ", field " + rvmField); throw ex; } } else if (rvmFieldType.isLongType()) { bootImage.setDoubleWord(rvmFieldOffset, jdkFieldAcc.getLong(jdkObject)); } else if (rvmFieldType.isFloatType()) { float f = jdkFieldAcc.getFloat(jdkObject); bootImage.setFullWord(rvmFieldOffset, Float.floatToIntBits(f)); } else if (rvmFieldType.isDoubleType()) { double d = jdkFieldAcc.getDouble(jdkObject); bootImage.setDoubleWord(rvmFieldOffset, Double.doubleToLongBits(d)); } else if (rvmFieldType.equals(VM_TypeReference.Address) || rvmFieldType.equals(VM_TypeReference.Word) || rvmFieldType.equals(VM_TypeReference.Extent) || rvmFieldType.equals(VM_TypeReference.Offset)) { Object o = jdkFieldAcc.get(jdkObject); String msg = " instance field " + rvmField.toString(); boolean warn = rvmFieldType.equals(VM_TypeReference.Address); bootImage.setAddressWord(rvmFieldOffset, getWordValue(o, msg, warn)); } else { fail("unexpected primitive field type: " + rvmFieldType); } } else { // field is reference type Object value = jdkFieldAcc.get(jdkObject); if (!allocOnly && value != null) { Class jdkClass = jdkFieldAcc.getDeclaringClass(); if (verbose >= 2) traceContext.push(value.getClass().getName(), jdkClass.getName(), jdkFieldAcc.getName()); int imageOffset = copyToBootImage(value, allocOnly, -1, jdkObject); if (imageOffset == OBJECT_NOT_PRESENT) { // object not part of bootimage: install null reference if (verbose >= 2) traceContext.traceObjectNotInBootImage(); bootImage.setNullAddressWord(rvmFieldOffset); } else bootImage.setAddressWord(rvmFieldOffset, bootImageAddress.add(imageOffset).toWord()); if (verbose >= 2) traceContext.pop(); } } } } // // copy object's type information block into image, if it's not there // already // if (!allocOnly) { if (verbose >= 2) traceContext.push("", jdkObject.getClass().getName(), "tib"); int tibImageOffset = copyToBootImage(rvmType.getTypeInformationBlock(), allocOnly, -1, jdkObject); if (verbose >= 2) traceContext.pop(); if (tibImageOffset == OBJECT_NOT_ALLOCATED) fail("can't copy tib for " + jdkObject); Address tibAddress = bootImageAddress.add(tibImageOffset); VM_ObjectModel.setTIB(bootImage, mapEntry.imageOffset, tibAddress, rvmType); } if (verbose >= 2) depth--; return mapEntry.imageOffset; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/512b7ae853c6979c3f6acf302871ef9527123d44/BootImageWriter.java/buggy/rvm/src/tools/bootImageWriter/BootImageWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
29817,
15817,
2040,
12,
921,
525,
2883,
921,
16,
4766,
1377,
1250,
4767,
3386,
16,
509,
6156,
2335,
16,
4766,
1377,
1033,
982,
921,
13,
565,
1216,
11900,
565,
288,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
29817,
15817,
2040,
12,
921,
525,
2883,
921,
16,
4766,
1377,
1250,
4767,
3386,
16,
509,
6156,
2335,
16,
4766,
1377,
1033,
982,
921,
13,
565,
1216,
11900,
565,
288,
1377,
... |
if (selectedItem != null && (dataModel instanceof DefaultComboBoxModel)) return ((DefaultComboBoxModel) dataModel).getIndexOf(selectedItem); | if (selectedItem != null) { if(dataModel instanceof DefaultComboBoxModel) { return ((DefaultComboBoxModel) dataModel).getIndexOf(selectedItem); } else { int size = dataModel.getSize(); for(int i=0; i < size; i++) { Object o = dataModel.getElementAt(i); if((selectedItem != null) ? selectedItem.equals(o) : o == null) { return i; } } } } | public int getSelectedIndex() { Object selectedItem = getSelectedItem(); if (selectedItem != null && (dataModel instanceof DefaultComboBoxModel)) return ((DefaultComboBoxModel) dataModel).getIndexOf(selectedItem); return -1; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/afd5c0ff01c2742fd202b8024455897d82c40368/JComboBox.java/clean/javax/swing/JComboBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
16625,
1016,
1435,
225,
288,
565,
1033,
3170,
1180,
273,
16625,
1180,
5621,
565,
309,
261,
8109,
1180,
480,
446,
597,
261,
892,
1488,
1276,
2989,
22199,
1488,
3719,
1377,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
16625,
1016,
1435,
225,
288,
565,
1033,
3170,
1180,
273,
16625,
1180,
5621,
565,
309,
261,
8109,
1180,
480,
446,
597,
261,
892,
1488,
1276,
2989,
22199,
1488,
3719,
1377,
327,
... |
currentText = null; needNewTextChunk = true; | protected void startElement(String name, Attributes attrib) throws SWFWriterException { String tmp; // Initialize state data textChunks.clear(); hasLayout = false; leftMargin = 0; rightMargin = 0; indent = 0; lineSpacing = 0; nextFont = DEFAULT_FONT; nextFontSize = 240; nextAlign = SWFDefineTextField.ALIGN_LEFT; nextColor = DEFAULT_COLOR; alpha = 0xFF; currentText = null; needNewTextChunk = true; try { tmp = attrib.getValue("", "id"); if (tmp != null) id = Integer.parseInt(tmp); tmp = attrib.getValue("", "name"); if (tmp != null) varName = tmp; else varName = ""; try { bounds = new SWFRectangle( Integer.parseInt(attrib.getValue("", "xmin")), Integer.parseInt(attrib.getValue("", "xmax")), Integer.parseInt(attrib.getValue("", "ymin")), Integer.parseInt(attrib.getValue("", "ymax"))); } catch (Exception e) { fatalError("Text bounds must be specified"); } tmp = attrib.getValue("", "alpha"); if (tmp!=null) alpha = Integer.parseInt(tmp.substring(1,3), 16); // Convert layout values to "TWIPS" by multiplying with twenty tmp = attrib.getValue("", "indent"); if (tmp!=null) { hasLayout = true; indent = Math.round(Float.parseFloat(tmp) * 20.0F); } tmp = attrib.getValue("", "leftmargin"); if (tmp!=null) { hasLayout = true; leftMargin = Math.round(Float.parseFloat(tmp) * 20.0F); } tmp = attrib.getValue("", "rightmargin"); if (tmp!=null) { hasLayout = true; rightMargin = Math.round(Float.parseFloat(tmp) * 20.0F); } tmp = attrib.getValue("", "linespacing"); if (tmp!=null) { hasLayout = true; lineSpacing = Math.round(Float.parseFloat(tmp) * 20.0F); } hasBorder = "yes".equals(attrib.getValue("", "border")); isSelectable = "yes".equals(attrib.getValue("", "selectable")); } catch (SWFWriterException e) { throw e; } catch (Exception e) { fatalError(e); } } | 11735 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11735/bfa3301375bf987749e5bc3d4c8ca2cc967346f9/XMLTextHandler.java/buggy/spark/src/de/tivano/flash/swf/publisher/XMLTextHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
13591,
12,
780,
508,
16,
9055,
5885,
13,
202,
1377,
1216,
16392,
42,
2289,
503,
288,
202,
780,
1853,
31,
202,
759,
9190,
919,
501,
202,
955,
14975,
18,
8507,
5621,
202,
5332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13591,
12,
780,
508,
16,
9055,
5885,
13,
202,
1377,
1216,
16392,
42,
2289,
503,
288,
202,
780,
1853,
31,
202,
759,
9190,
919,
501,
202,
955,
14975,
18,
8507,
5621,
202,
5332,... | |
public org.quickfix.field.SecurityAltID getSecurityAltID() throws FieldNotFound { org.quickfix.field.SecurityAltID value = new org.quickfix.field.SecurityAltID(); | public quickfix.field.SecurityAltID getSecurityAltID() throws FieldNotFound { quickfix.field.SecurityAltID value = new quickfix.field.SecurityAltID(); | public org.quickfix.field.SecurityAltID getSecurityAltID() throws FieldNotFound { org.quickfix.field.SecurityAltID value = new org.quickfix.field.SecurityAltID(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/buggy/src/java/src/quickfix/fix44/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
10655,
734,
19288,
10655,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
10655,
734,
460,
273,
394,
2358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
10655,
734,
19288,
10655,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
10655,
734,
460,
273,
394,
2358,... |
if (!project.isAccessible()) | if (!project.isAccessible()) { | private void createProjectSelectionTable(Composite radioGroup) { projectNames = CheckboxTableViewer.newCheckList(radioGroup, SWT.BORDER); projectNames.setContentProvider(new WorkbenchContentProvider()); projectNames.setLabelProvider(new WorkbenchLabelProvider()); projectNames.setSorter(new ResourceSorter(ResourceSorter.NAME)); projectNames.addFilter(new ViewerFilter() { private final IProject[] projectHolder = new IProject[1]; public boolean select(Viewer viewer, Object parentElement, Object element) { if (!(element instanceof IProject)) return false; IProject project = (IProject) element; if (!project.isAccessible()) return false; projectHolder[0] = project; return BuildUtilities.isEnabled(projectHolder, IncrementalProjectBuilder.CLEAN_BUILD); } }); projectNames.setInput(ResourcesPlugin.getWorkspace().getRoot()); GridData data = new GridData(GridData.FILL_BOTH); data.horizontalSpan = 2; data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH; data.heightHint = IDialogConstants.ENTRY_FIELD_WIDTH; projectNames.getTable().setLayoutData(data); projectNames.setCheckedElements(selection); //table is disabled to start because all button is selected projectNames.getTable().setEnabled(selectedButton.getSelection()); projectNames.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { selection = projectNames.getCheckedElements(); updateEnablement(); } }); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CleanDialog.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
4109,
6233,
1388,
12,
9400,
13512,
1114,
13,
288,
377,
202,
4406,
1557,
273,
29213,
1388,
18415,
18,
2704,
1564,
682,
12,
17006,
1114,
16,
348,
8588,
18,
38,
7954,
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,
3238,
918,
752,
4109,
6233,
1388,
12,
9400,
13512,
1114,
13,
288,
377,
202,
4406,
1557,
273,
29213,
1388,
18415,
18,
2704,
1564,
682,
12,
17006,
1114,
16,
348,
8588,
18,
38,
7954,
1769,
... |
setModified(true); | public void setVersionUserName(String versionUserName) { if (((versionUserName == null) && (_versionUserName != null)) || ((versionUserName != null) && (_versionUserName == null)) || ((versionUserName != null) && (_versionUserName != null) && !versionUserName.equals(_versionUserName))) { if (!XSS_ALLOW_VERSIONUSERNAME) { versionUserName = XSSUtil.strip(versionUserName); } _versionUserName = versionUserName; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/DLFileEntryModel.java/buggy/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileEntryModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16770,
15296,
12,
780,
1177,
15296,
13,
288,
202,
202,
430,
261,
12443,
1589,
15296,
422,
446,
13,
597,
261,
67,
1589,
15296,
480,
446,
3719,
747,
9506,
202,
12443,
1589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16770,
15296,
12,
780,
1177,
15296,
13,
288,
202,
202,
430,
261,
12443,
1589,
15296,
422,
446,
13,
597,
261,
67,
1589,
15296,
480,
446,
3719,
747,
9506,
202,
12443,
1589,
... | |
if (!isComparison(condition, var)) { | if (condition == null || !isComparison(condition, var)) { | public void visitForStatement(@NotNull PsiForStatement forStatement) { super.visitForStatement(forStatement); final PsiStatement initialization = forStatement.getInitialization(); if (!(initialization instanceof PsiDeclarationStatement)) { return; } final PsiDeclarationStatement declaration = (PsiDeclarationStatement)initialization; if (declaration.getDeclaredElements().length != 1) { return; } final PsiLocalVariable var = (PsiLocalVariable) declaration.getDeclaredElements()[0]; final PsiExpression initialValue = var.getInitializer(); if (initialValue != null) { final PsiManager manager = initialValue.getManager(); final PsiConstantEvaluationHelper constantEvaluationHelper = manager.getConstantEvaluationHelper(); final Object value = constantEvaluationHelper.computeConstantExpression( initialValue); if (!(value instanceof Integer)) { return; } final Integer integer = (Integer)value; if (integer.intValue() != 0) { return; } } final PsiExpression condition = forStatement.getCondition(); if (!isComparison(condition, var)) { return; } final PsiStatement update = forStatement.getUpdate(); if (!isIncrement(update, var)) { return; } final PsiStatement body = forStatement.getBody(); if (!bodyIsArrayMove(body, var)) { return; } registerStatementError(forStatement); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/bfd31bd8696db099997fb72e3c0cfc91292d79fb/ManualArrayCopyInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/performance/ManualArrayCopyInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
1290,
3406,
26964,
5962,
453,
7722,
1290,
3406,
364,
3406,
13,
288,
5411,
2240,
18,
11658,
1290,
3406,
12,
1884,
3406,
1769,
5411,
727,
453,
7722,
3406,
10313,
273,
10792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
1290,
3406,
26964,
5962,
453,
7722,
1290,
3406,
364,
3406,
13,
288,
5411,
2240,
18,
11658,
1290,
3406,
12,
1884,
3406,
1769,
5411,
727,
453,
7722,
3406,
10313,
273,
10792,
... |
carry = (ca1[icarry - 1] == '1' || ca1[icarry - 1] == '3' || ca1[icarry - 1] == '5' || ca1[icarry - 1] == '7' || ca1[icarry - 1] == '9'); | carry = (ca1[icarry - 1] == '1' || ca1[icarry - 1] == '3' || ca1[icarry - 1] == '5' || ca1[icarry - 1] == '7' || ca1[icarry - 1] == '9'); | private boolean checkForCarry(char[] ca1, int icarry) { boolean carry = false; if (icarry < ca1.length) { if (ca1[icarry] == '6' || ca1[icarry] == '7' || ca1[icarry] == '8' || ca1[icarry] == '9') { carry = true; } else if (ca1[icarry] == '5') { int ii = icarry + 1; for (; ii < ca1.length; ii++) { if (ca1[ii] != '0') { break; } } carry = ii < ca1.length; if (!carry && icarry > 0) { carry = (ca1[icarry - 1] == '1' || ca1[icarry - 1] == '3' || ca1[icarry - 1] == '5' || ca1[icarry - 1] == '7' || ca1[icarry - 1] == '9'); } } } return carry; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/81a0eece47a6b5f01a9201699d7d2364fc0b93c5/PrintfFormat.java/buggy/src/org/opencms/util/PrintfFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
13855,
16321,
1176,
12,
3001,
8526,
3474,
21,
16,
509,
277,
9815,
1176,
13,
288,
5411,
1250,
9331,
273,
629,
31,
5411,
309,
261,
335,
297,
1176,
411,
3474,
21,
18,
2469,
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,
540,
3238,
1250,
13855,
16321,
1176,
12,
3001,
8526,
3474,
21,
16,
509,
277,
9815,
1176,
13,
288,
5411,
1250,
9331,
273,
629,
31,
5411,
309,
261,
335,
297,
1176,
411,
3474,
21,
18,
2469,
13,... |
if (((mY - y) % 2) == 0) g.setColor(light); else g.setColor(dark); | int xOff = 0; for (int mY = y; mY < (y + h); mY++) { if (((mY - y) % 2) == 0) g.setColor(light); else g.setColor(dark); | static void fillMetalPattern(Graphics g, int x, int y, int w, int h, Color light, Color dark) { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else g.setColor(dark); for (int mX = x + (xOff); mX < (x + w); mX += 4) { g.drawLine(mX, mY, mX, mY); } // increase x offset xOff++; if (xOff > 3) xOff = 0; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalUtils.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3636,
26365,
3234,
12,
17558,
314,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
16,
27573,
5563,
9052,
16,
5563,
23433,
13,
225,
288,
565,
509,
619,
7210,
273,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3636,
26365,
3234,
12,
17558,
314,
16,
509,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
16,
27573,
5563,
9052,
16,
5563,
23433,
13,
225,
288,
565,
509,
619,
7210,
273,
37... |
private void purgeFile(String exportFileName) { String rfsName = CmsFileUtil.normalizePath(OpenCms.getStaticExportManager().getRfsPrefix() + "/" + exportFileName.substring(OpenCms.getStaticExportManager().getExportPath().length())); rfsName = CmsStringUtil.substitute(rfsName, new String(new char[] {File.separatorChar}), "/"); try { File exportFile = new File(exportFileName); // check if export file exists, if so delete it if (exportFile.exists() && exportFile.canWrite()) { exportFile.delete(); // write log message if (OpenCms.getLog(this).isInfoEnabled()) { OpenCms.getLog(this).info("Static export deleted exported rfs file '" + rfsName + "'"); } } } catch (Throwable t) { // ignore, nothing to do about this if (OpenCms.getLog(this).isWarnEnabled()) { OpenCms.getLog(this).warn("Error deleting static export file rfsName='" + rfsName + "'", t); } } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/505e248a5535d56bf89e7d0693715ce6df4ceec9/A_CmsOnDemandStaticExportHandler.java/buggy/src/org/opencms/staticexport/A_CmsOnDemandStaticExportHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
26422,
812,
12,
780,
6530,
4771,
15329,
780,
86,
2556,
461,
33,
4747,
812,
1304,
18,
12237,
743,
12,
3678,
4747,
18,
588,
5788,
6144,
1318,
7675,
588,
54,
2556,
2244,
1435,
9078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
26422,
812,
12,
780,
6530,
4771,
15329,
780,
86,
2556,
461,
33,
4747,
812,
1304,
18,
12237,
743,
12,
3678,
4747,
18,
588,
5788,
6144,
1318,
7675,
588,
54,
2556,
2244,
1435,
9078,
... | ||
SIPRequest sipRequest = (SIPRequest) request; RequestLine requestLine = sipRequest.getRequestLine(); if (requestLine == null) throw new IllegalArgumentException("Bad message"); javax.sip.address.URI requestURI = requestLine.getUri(); if (requestURI == null) throw new IllegalArgumentException("Bad message: Null requestURI"); LinkedList ll = null; RouteList routes = sipRequest.getRouteHeaders(); if (routes != null) { ll = new LinkedList(); Route route = (Route) routes.getFirst(); SipUri uri = (SipUri) route.getAddress().getURI(); int port; if (uri.getHostPort().hasPort()) { sipStack.logWriter.logMessage("routeHeader = " + uri.encode()); sipStack.logWriter.logMessage( "port = " + uri.getHostPort().getPort()); port = uri.getHostPort().getPort(); } else { port = 5060; } String host = uri.getHost(); String transport = uri.getTransportParam(); if (transport == null) transport = SIPConstants.UDP; HopImpl hop = new HopImpl(host, port, transport); ll.add(hop); if (LogWriter.needsLogging) sipStack.logWriter.logMessage( "We use the Route header to " + "forward the message"); } else if ( requestURI instanceof SipURI && ((SipURI) requestURI).getMAddrParam() != null) { String maddr = ((SipURI) requestURI).getMAddrParam(); String transport = ((SipURI) requestURI).getTransportParam(); if (transport == null) transport = SIPConstants.UDP; int port = 5060; HopImpl hop = new HopImpl(maddr, port, transport); hop.setURIRouteFlag(); ll = new LinkedList(); ll.add(hop); if (LogWriter.needsLogging) sipStack.logWriter.logMessage("Added Hop = " + hop.toString()); } else if (requestURI instanceof SipURI) { String host = ((SipURI) requestURI).getHost(); int port = ((SipURI) requestURI).getPort(); if (port == -1) port = 5060; if (hopsBackToMe(host, port)) { return null; } String transport = ((SipURI) requestURI).getTransportParam(); if (transport == null) transport = SIPConstants.UDP; HopImpl hop = new HopImpl(host, port, transport); ll = new LinkedList(); ll.add(hop); if (LogWriter.needsLogging) sipStack.logWriter.logMessage("Added Hop = " + hop.toString()); | try { LinkedList llist = new LinkedList(); llist.add(this.getNextHop(request)); return llist.listIterator(); } catch (SipException ex) { return null; | public ListIterator getNextHops(Request request) { SIPRequest sipRequest = (SIPRequest) request; RequestLine requestLine = sipRequest.getRequestLine(); if (requestLine == null) throw new IllegalArgumentException("Bad message"); javax.sip.address.URI requestURI = requestLine.getUri(); if (requestURI == null) throw new IllegalArgumentException("Bad message: Null requestURI"); LinkedList ll = null; RouteList routes = sipRequest.getRouteHeaders(); if (routes != null) { // This has a route header so lets use the address // specified in the record route header. // Bug reported by Jiang He ll = new LinkedList(); Route route = (Route) routes.getFirst(); SipUri uri = (SipUri) route.getAddress().getURI(); int port; if (uri.getHostPort().hasPort()) { sipStack.logWriter.logMessage("routeHeader = " + uri.encode()); sipStack.logWriter.logMessage( "port = " + uri.getHostPort().getPort()); port = uri.getHostPort().getPort(); } else { port = 5060; } String host = uri.getHost(); String transport = uri.getTransportParam(); if (transport == null) transport = SIPConstants.UDP; HopImpl hop = new HopImpl(host, port, transport); ll.add(hop); // routes.removeFirst(); // sipRequest.setRequestURI(uri); if (LogWriter.needsLogging) sipStack.logWriter.logMessage( "We use the Route header to " + "forward the message"); } else if ( requestURI instanceof SipURI && ((SipURI) requestURI).getMAddrParam() != null) { String maddr = ((SipURI) requestURI).getMAddrParam(); String transport = ((SipURI) requestURI).getTransportParam(); if (transport == null) transport = SIPConstants.UDP; int port = 5060; HopImpl hop = new HopImpl(maddr, port, transport); hop.setURIRouteFlag(); ll = new LinkedList(); ll.add(hop); if (LogWriter.needsLogging) sipStack.logWriter.logMessage("Added Hop = " + hop.toString()); } else if (requestURI instanceof SipURI) { String host = ((SipURI) requestURI).getHost(); int port = ((SipURI) requestURI).getPort(); if (port == -1) port = 5060; if (hopsBackToMe(host, port)) { // Egads! route points back at me - better bail. return null; } String transport = ((SipURI) requestURI).getTransportParam(); if (transport == null) transport = SIPConstants.UDP; HopImpl hop = new HopImpl(host, port, transport); ll = new LinkedList(); ll.add(hop); if (LogWriter.needsLogging) sipStack.logWriter.logMessage("Added Hop = " + hop.toString()); } if (defaultRoute != null) { if (ll == null) ll = new LinkedList(); ll.add(defaultRoute); if (LogWriter.needsLogging) { sipStack.logWriter.logMessage( "Added Hop = " + defaultRoute.toString()); } } return ll == null ? null : ll.listIterator(); } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/DefaultRouter.java/clean/trunk/src/gov/nist/javax/sip/stack/DefaultRouter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
3198,
6927,
44,
4473,
12,
691,
590,
13,
288,
202,
202,
17739,
691,
10341,
691,
273,
261,
17739,
691,
13,
590,
31,
202,
202,
691,
1670,
590,
1670,
273,
10341,
691,
18,
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,
225,
202,
482,
987,
3198,
6927,
44,
4473,
12,
691,
590,
13,
288,
202,
202,
17739,
691,
10341,
691,
273,
261,
17739,
691,
13,
590,
31,
202,
202,
691,
1670,
590,
1670,
273,
10341,
691,
18,
5... |
public ParameterizedBinaryMethod(JavaElement parent, String name, String[] parameterTypes, String uniqueKey) { | public ParameterizedBinaryMethod(JavaElement parent, String name, String[] parameterTypes, String genericDeclaringTypeSignature, String genericSignature, String[] genericTypeArgumentsSignatures) { | public ParameterizedBinaryMethod(JavaElement parent, String name, String[] parameterTypes, String uniqueKey) { super(parent, name, parameterTypes); this.uniqueKey = uniqueKey; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/562f566c1c2b8bfedaad7117a5b53ae2f781bec9/ParameterizedBinaryMethod.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ParameterizedBinaryMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
30125,
5905,
1305,
12,
5852,
1046,
982,
16,
514,
508,
16,
514,
8526,
20173,
16,
514,
3089,
653,
13,
288,
202,
202,
9565,
12,
2938,
16,
508,
16,
20173,
1769,
202,
202,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
30125,
5905,
1305,
12,
5852,
1046,
982,
16,
514,
508,
16,
514,
8526,
20173,
16,
514,
3089,
653,
13,
288,
202,
202,
9565,
12,
2938,
16,
508,
16,
20173,
1769,
202,
202,
2211,
... |
null, "setOnkeypress"); | null, "setOnkeypressExpr"); | public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[36]; try { result[0] = new PropertyDescriptor("accesskey", ELLinkTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("action", ELLinkTag.class, null, "setAction"); result[2] = new PropertyDescriptor("anchor", ELLinkTag.class, null, "setAnchor"); result[3] = new PropertyDescriptor("forward", ELLinkTag.class, null, "setForward"); result[4] = new PropertyDescriptor("href", ELLinkTag.class, null, "setHref"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELLinkTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("indexId", ELLinkTag.class, null, "setIndexId"); result[7] = new PropertyDescriptor("linkName", ELLinkTag.class, null, "setLinkName"); result[8] = new PropertyDescriptor("name", ELLinkTag.class, null, "setName"); result[9] = new PropertyDescriptor("onblur", ELLinkTag.class, null, "setOnblur"); result[10] = new PropertyDescriptor("onclick", ELLinkTag.class, null, "setOnclick"); result[11] = new PropertyDescriptor("ondblclick", ELLinkTag.class, null, "setOndblclick"); result[12] = new PropertyDescriptor("onfocus", ELLinkTag.class, null, "setOnfocus"); result[13] = new PropertyDescriptor("onkeydown", ELLinkTag.class, null, "setOnkeydown"); result[14] = new PropertyDescriptor("onkeypress", ELLinkTag.class, null, "setOnkeypress"); result[15] = new PropertyDescriptor("onkeyup", ELLinkTag.class, null, "setOnkeyup"); result[16] = new PropertyDescriptor("onmousedown", ELLinkTag.class, null, "setOnmousedown"); result[17] = new PropertyDescriptor("onmousemove", ELLinkTag.class, null, "setOnmousemove"); result[18] = new PropertyDescriptor("onmouseout", ELLinkTag.class, null, "setOnmouseout"); result[19] = new PropertyDescriptor("onmouseover", ELLinkTag.class, null, "setOnmouseover"); result[20] = new PropertyDescriptor("onmouseup", ELLinkTag.class, null, "setOnmouseup"); result[21] = new PropertyDescriptor("page", ELLinkTag.class, null, "setPage"); result[22] = new PropertyDescriptor("paramId", ELLinkTag.class, null, "setParamId"); result[23] = new PropertyDescriptor("paramName", ELLinkTag.class, null, "setParamName"); result[24] = new PropertyDescriptor("paramProperty", ELLinkTag.class, null, "setParamProperty"); result[25] = new PropertyDescriptor("paramScope", ELLinkTag.class, null, "setParamScope"); result[26] = new PropertyDescriptor("property", ELLinkTag.class, null, "setProperty"); result[27] = new PropertyDescriptor("scope", ELLinkTag.class, null, "setScope"); result[28] = new PropertyDescriptor("style", ELLinkTag.class, null, "setStyle"); result[29] = new PropertyDescriptor("styleClass", ELLinkTag.class, null, "setStyleClass"); result[30] = new PropertyDescriptor("styleId", ELLinkTag.class, null, "setStyleId"); result[31] = new PropertyDescriptor("tabindex", ELLinkTag.class, null, "setTabindex"); result[32] = new PropertyDescriptor("target", ELLinkTag.class, null, "setTarget"); result[33] = new PropertyDescriptor("title", ELLinkTag.class, null, "setTitle"); result[34] = new PropertyDescriptor("titleKey", ELLinkTag.class, null, "setTitleKey"); result[35] = new PropertyDescriptor("transaction", ELLinkTag.class, null, "setTransactionExpr"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELLinkTagBeanInfo.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELLinkTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5718,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5718,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... |
return new RubyString(getRuntime(), snapshot[pos]); | RubyString result = new RubyString(getRuntime(), snapshot[pos]); pos++; return result; | public RubyString read() { pos++; if (pos >= snapshot.length) { return RubyString.nilString(runtime); } return new RubyString(getRuntime(), snapshot[pos]); } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/f80571b8c740590cc4b6416313ec40037810d872/RubyDir.java/buggy/org/jruby/RubyDir.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
855,
1435,
288,
3639,
949,
9904,
31,
3639,
309,
261,
917,
1545,
4439,
18,
2469,
13,
288,
5411,
327,
19817,
780,
18,
20154,
780,
12,
9448,
1769,
3639,
289,
3639,
19817,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
780,
855,
1435,
288,
3639,
949,
9904,
31,
3639,
309,
261,
917,
1545,
4439,
18,
2469,
13,
288,
5411,
327,
19817,
780,
18,
20154,
780,
12,
9448,
1769,
3639,
289,
3639,
19817,
... |
Assert.assertEquals( 0, rdn1.compareTo( rdn2 ) ); } | Assert.assertEquals( 0, rdn1.compareTo( rdn2 ) ); } | public void testRDNCompareToNCS2NCSUnordered() throws InvalidNameException { Rdn rdn1 = new Rdn( " a = b + a = f + g = h + c = d " ); Rdn rdn2 = new Rdn( " a = b + c = d + a = f + g = h " ); Assert.assertEquals( 0, rdn1.compareTo( rdn2 ) ); } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/34d16a3366af953bef4b3d5f4cf0e7c6bda29ba6/RdnTest.java/buggy/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
8609,
8583,
774,
50,
4596,
22,
50,
4596,
984,
9885,
1435,
1216,
1962,
26771,
565,
288,
3639,
534,
5176,
436,
5176,
21,
273,
394,
534,
5176,
12,
315,
279,
273,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
54,
8609,
8583,
774,
50,
4596,
22,
50,
4596,
984,
9885,
1435,
1216,
1962,
26771,
565,
288,
3639,
534,
5176,
436,
5176,
21,
273,
394,
534,
5176,
12,
315,
279,
273,
324,
... |
IPersistentSuportOracle persistentSupportOracle = PersistentSuportOracle.getInstance(); if ((persistentSupportOracle.getIPersistentProject().countUserProject(employee.getEmployeeNumber()) == 0)) { List<ProjectAccess> accessesToDelete = ProjectAccess.getAllByPersonAndCostCenter(person, true, false); | IPersistentSuportOracle persistentSupportOracle = PersistentSuportOracle .getInstance(); if ((persistentSupportOracle.getIPersistentProject().countUserProject( employee.getEmployeeNumber()) == 0)) { List<ProjectAccess> accessesToDelete = ProjectAccess .getAllByPersonAndCostCenter(person, true, false); | public void run(String username, String costCenter, String userNumber) throws FenixServiceException, ExcepcaoPersistencia { Person person = Person.readPersonByUsername(username); Role role = Role.getRoleByRoleType(RoleType.PROJECTS_MANAGER); if (ProjectAccess.getAllByPersonAndCostCenter(person, false, true).size() == 0) { Teacher teacher = person.getTeacher(); if (teacher == null) { Employee employee = person.getEmployee(); if (employee != null) { IPersistentSuportOracle persistentSupportOracle = PersistentSuportOracle.getInstance(); if ((persistentSupportOracle.getIPersistentProject().countUserProject(employee.getEmployeeNumber()) == 0)) { List<ProjectAccess> accessesToDelete = ProjectAccess.getAllByPersonAndCostCenter(person, false, false); for (ProjectAccess access : accessesToDelete) { access.delete(); } person.removePersonRoles(role); } } else throw new FenixServiceException(); } } role = Role.getRoleByRoleType(RoleType.INSTITUCIONAL_PROJECTS_MANAGER); if (ProjectAccess.getAllByPersonAndCostCenter(person, true, true).size() == 0) { Teacher teacher = person.getTeacher(); if (teacher == null) { Employee employee = person.getEmployee(); if (employee != null) { IPersistentSuportOracle persistentSupportOracle = PersistentSuportOracle.getInstance(); if ((persistentSupportOracle.getIPersistentProject().countUserProject(employee.getEmployeeNumber()) == 0)) { List<ProjectAccess> accessesToDelete = ProjectAccess.getAllByPersonAndCostCenter(person, true, false); for (ProjectAccess access : accessesToDelete) { access.delete(); } person.removePersonRoles(role); } } else throw new FenixServiceException(); } } } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/0f860e8727c6983b0f054ce25554f9c95948abb3/ReviewProjectAccess.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/projectsManagement/ReviewProjectAccess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
780,
2718,
16,
514,
6991,
8449,
16,
514,
729,
1854,
13,
1216,
478,
275,
697,
15133,
16,
1312,
311,
2436,
6033,
12771,
28115,
288,
3639,
11573,
6175,
273,
11573,
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,
1086,
12,
780,
2718,
16,
514,
6991,
8449,
16,
514,
729,
1854,
13,
1216,
478,
275,
697,
15133,
16,
1312,
311,
2436,
6033,
12771,
28115,
288,
3639,
11573,
6175,
273,
11573,
18,
... |
return beginString; } | return beginString; } | public String getVersion() { return beginString; } | 6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/cf7aed68fecf38e4edf304c63ec459ddcc5821bc/DataDictionary.java/clean/src/quickfix/DataDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8343,
1435,
288,
202,
202,
2463,
2376,
780,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8343,
1435,
288,
202,
202,
2463,
2376,
780,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public void set(org.quickfix.field.NestedPartySubID value) | public void set(quickfix.field.NestedPartySubID value) | public void set(org.quickfix.field.NestedPartySubID value) { setField(value); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
12,
19525,
904,
18,
1518,
18,
8649,
17619,
1676,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
logger.debug(sessStr + "in CONTENT_LENGTH_BODY_STATE"); | if (logger.isDebugEnabled()) { logger.debug(sessStr + "in CONTENT_LENGTH_BODY_STATE"); } | public ParseResult parse(ByteBuffer b) throws ParseException { cancelTimer(); if (logger.isDebugEnabled()) { logger.debug(sessStr + "parsing chunk: " + b); } List l = new LinkedList(); boolean done = false; while (!done) { switch (state) { case PRE_FIRST_LINE_STATE: { logger.debug(sessStr + "in PRE_FIRST_LINE_STATE"); lengthCounter = 0; if (b.hasRemaining() && completeLine(b)) { ByteBuffer d = b.duplicate(); byte b1 = d.get(); if (LF == b1 || d.hasRemaining() && CR == b1 && LF == d.get()) { b = null; done = true; } else { state = FIRST_LINE_STATE; } } else if (b.remaining() > maxRequestLine) { throw new ParseException("URI length exceeded: " + AsciiCharBuffer.wrap(b)); } else { if (b.capacity() < maxRequestLine) { ByteBuffer r = ByteBuffer.allocate(maxRequestLine); r.put(b); b = r; } else { b.compact(); } done = true; } break; } case FIRST_LINE_STATE: { // Initialize the buffer, we'll need it until // we're done with HEADER state. this.buf = new byte[maxUri]; logger.debug(sessStr + "in FIRST_LINE_STATE"); if (completeLine(b)) { l.add(firstLine(b)); state = ACCUMULATE_HEADER_STATE; } else { b.compact(); done = true; } break; } case ACCUMULATE_HEADER_STATE: { logger.debug(sessStr + "in ACCUMULATE_HEADER_STATE"); if (!completeHeader(b)) { if (b.capacity() < maxHeader) { ByteBuffer nb = ByteBuffer.allocate(maxHeader + 2); nb.put(b); nb.flip(); b = nb; } else if (b.remaining() >= maxHeader) { String msg = "header exceeds " + maxHeader + ":\n" + AsciiCharBuffer.wrap(b); if (blockLongHeaders) { logger.warn(msg); // XXX send error page instead session.shutdownClient(); session.shutdownServer(); return new ParseResult(); } else { // allow session to be released, or not throw new ParseException(msg); } } b.compact(); done = true; } else { state = HEADER_STATE; } break; } case HEADER_STATE: { logger.debug(sessStr + "in HEADER_STATE"); header = header(b); l.add(header); // Done with buf now this.buf = null; assert !b.hasRemaining(); if (!clientSide) { if (null != requestLineToken) { HttpMethod method = requestLineToken.getMethod(); if (HttpMethod.HEAD == method) { transferEncoding = NO_BODY; } } } else { HttpRequestEvent evt = new HttpRequestEvent (requestLineToken.getRequestLine(), header.getValue("host"), lengthCounter); } if (NO_BODY == transferEncoding) { state = END_MARKER_STATE; } else if (CLOSE_ENCODING == transferEncoding) { lineBuffering(false); b = null; state = CLOSED_BODY_STATE; done = true; } else if (CHUNKED_ENCODING == transferEncoding) { lineBuffering(true); b = null; state = CHUNK_LENGTH_STATE; done = true; } else if (CONTENT_LENGTH_ENCODING == transferEncoding) { lineBuffering(false); assert !b.hasRemaining(); if (0 < contentLength) { readLimit(contentLength); b = null; state = CONTENT_LENGTH_BODY_STATE; done = true; } else { state = END_MARKER_STATE; } } else { assert false; } break; } case CLOSED_BODY_STATE: { logger.debug(sessStr + "in CLOSED_BODY_STATE!"); l.add(closedBody(b)); b = null; done = true; break; } case CONTENT_LENGTH_BODY_STATE: { logger.debug(sessStr + "in CONTENT_LENGTH_BODY_STATE"); l.add(chunk(b)); if (0 == contentLength) { b = null; // XXX handle trailer state = END_MARKER_STATE; } else { readLimit(contentLength); b = null; done = true; } break; } case CHUNK_LENGTH_STATE: // chunk-size = 1*HEX { logger.debug(sessStr + "in CHUNK_LENGTH_STATE"); if (!completeLine(b)) { b.compact(); done = true; break; } contentLength = chunkLength(b); logger.debug(sessStr + "CHUNK contentLength = " + contentLength); if (0 == contentLength) { b = null; state = LAST_CHUNK_STATE; } else { lineBuffering(false); assert !b.hasRemaining(); readLimit(contentLength); b = null; state = CHUNK_BODY_STATE; } done = true; break; } case CHUNK_BODY_STATE: { logger.debug(sessStr + "in CHUNKED_BODY_STATE"); l.add(chunk(b)); if (0 == contentLength) { lineBuffering(true); b = null; state = CHUNK_END_STATE; } else { readLimit(contentLength); b = null; } done = true; break; } case CHUNK_END_STATE: { logger.debug(sessStr + "in END_CHUNK_STATE"); if (!completeLine(b)) { b.compact(); done = true; break; } eatCrLf(b); assert !b.hasRemaining(); b = null; done = true; state = CHUNK_LENGTH_STATE; break; } case LAST_CHUNK_STATE: // last-chunk = 1*("0") [ chunk-extension ] CRLF { logger.debug(sessStr + "in LAST_CHUNK_STATE"); if (!completeLine(b)) { b.compact(); done = true; break; } eatCrLf(b); assert !b.hasRemaining(); b = null; state = END_MARKER_STATE; break; } case END_MARKER_STATE: { logger.debug(sessStr + "in END_MARKER_STATE"); EndMarker endMarker = EndMarker.MARKER; l.add(endMarker); lineBuffering(true); b = null; state = PRE_FIRST_LINE_STATE; if (!clientSide) { String contentType = header.getValue("content-type"); String mimeType = null == contentType ? null : MimeType.getType(contentType); RequestLine rl = null == requestLineToken ? null : requestLineToken.getRequestLine(); if (null != rl) { HttpResponseEvent evt = new HttpResponseEvent (rl, mimeType, contentLength); casing.getTransform().log(evt); } } else { HttpRequestEvent evt = requestLineToken .getRequestLine() .getHttpRequestEvent(); evt.setContentLength(contentLength); if (null == evt.getRequestLine()) { logger.warn("null request for: " + getSession().pipelineEndpoints()); } casing.getTransform().log(evt); } // Free up header storage header = null; done = true; break; } default: assert false; } } if (logger.isDebugEnabled()) { logger.debug(sessStr + "returing readBuffer: " + b); } scheduleTimer(TIMEOUT); if (null != b && !b.hasRemaining()) { String msg = "b does not have remaining: " + b + " in state: " + state; logger.error(msg); throw new ParseException(msg); } return new ParseResult(l, b); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/115e144444f9e3e5b13e66a4e36937ed2f6c876a/HttpParser.java/clean/tran/http/main/com/metavize/tran/http/HttpParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2884,
1253,
1109,
12,
12242,
324,
13,
1216,
10616,
565,
288,
3639,
3755,
6777,
5621,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
12,
23828,
1585,
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,
377,
1071,
2884,
1253,
1109,
12,
12242,
324,
13,
1216,
10616,
565,
288,
3639,
3755,
6777,
5621,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
12,
23828,
1585,
39... |
this.getViewer().setCursor( null ); | if (isActive()) { this.getViewer().setCursor( null ); } | public void eraseTargetFeedback( Request request) { this.getViewer().setCursor( null ); super.eraseTargetFeedback( request ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d83e9ce357552ccee889709a0e69d109f4dcfa0b/TableCellEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/TableCellEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22038,
2326,
15888,
12,
1567,
590,
13,
202,
95,
202,
565,
333,
18,
588,
18415,
7675,
542,
6688,
12,
446,
11272,
202,
565,
2240,
18,
264,
448,
2326,
15888,
12,
590,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22038,
2326,
15888,
12,
1567,
590,
13,
202,
95,
202,
565,
333,
18,
588,
18415,
7675,
542,
6688,
12,
446,
11272,
202,
565,
2240,
18,
264,
448,
2326,
15888,
12,
590,
11272,... |
return threadPolicy != null && | return threadPolicy != null && | protected boolean isSingleThreadModel() { return threadPolicy != null && threadPolicy.value() == ThreadPolicyValue.SINGLE_THREAD_MODEL; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/a74dc4ac69615c8e503cb9145c3594f1702d4c75/POA.java/buggy/src/org/jacorb/poa/POA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
27643,
3830,
1488,
1435,
377,
288,
3639,
327,
2650,
2582,
480,
446,
597,
2398,
2650,
2582,
18,
1132,
1435,
422,
4884,
2582,
620,
18,
20184,
67,
21730,
67,
17391,
31,
565,
289,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
27643,
3830,
1488,
1435,
377,
288,
3639,
327,
2650,
2582,
480,
446,
597,
2398,
2650,
2582,
18,
1132,
1435,
422,
4884,
2582,
620,
18,
20184,
67,
21730,
67,
17391,
31,
565,
289,... |
+ ") " + Default.ucd.getName(cc)); | + ") " + Default.ucd().getName(cc)); | static void writeLine(String cc, PrintWriter log, boolean check) { String c = Default.nfc.normalize(cc); String d = Default.nfd.normalize(cc); String kc = Default.nfkc.normalize(cc); String kd = Default.nfkd.normalize(cc); if (check & cc.equals(c) && cc.equals(d) && cc.equals(kc) && cc.equals(kd)) return; // consistency check String dc = Default.nfd.normalize(c); String dkc = Default.nfd.normalize(kc); if (!dc.equals(d) || !dkc.equals(kd)) { System.out.println("Danger Will Robinson!"); Normalizer.SHOW_PROGRESS = true; d = Default.nfd.normalize(cc); } // printout log.println( Utility.hex(cc," ") + ";" + Utility.hex(c," ") + ";" + Utility.hex(d," ") + ";" + Utility.hex(kc," ") + ";" + Utility.hex(kd," ") + "; # (" + comma(cc) + "; " + comma(c) + "; " + comma(d) + "; " + comma(kc) + "; " + comma(kd) + "; " + ") " + Default.ucd.getName(cc)); } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/d1ef79fafdbbeaaf4dcbaa9d3c534754c217d955/GenerateData.java/buggy/tools/unicodetools/com/ibm/text/UCD/GenerateData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
918,
18360,
12,
780,
4946,
16,
14071,
613,
16,
1250,
866,
13,
288,
3639,
514,
276,
273,
2989,
18,
82,
7142,
18,
12237,
12,
952,
1769,
3639,
514,
302,
273,
2989,
18,
82,
8313,
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,
760,
918,
18360,
12,
780,
4946,
16,
14071,
613,
16,
1250,
866,
13,
288,
3639,
514,
276,
273,
2989,
18,
82,
7142,
18,
12237,
12,
952,
1769,
3639,
514,
302,
273,
2989,
18,
82,
8313,
18,... |
ref.append( line ).append( "\n" ); | ref.append( line ).append('\n'); | public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { String urlString = fs.get("URL"); String fileString = fs.get("File"); StringBuffer ref = null; BufferedReader in; if(urlString != null) { try { URL url = new URL(urlString); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); ref = new StringBuffer(1024); String line; while((line = in.readLine()) != null) { line = line.trim(); ref.append( line ).append( "\n" ); } in.close(); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "Error parsing ref URL <"+urlString+">: "+e.getMessage(), null); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.URL_PARSE_ERROR, "IO error while retrieving ref URL <"+urlString+">: "+e.getMessage(), null); } ref = new StringBuffer(ref.toString().trim()); if(ref == null) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+">", null); } if(ref.equals("")) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+">", null); } try { fs = new SimpleFieldSet(ref.toString(), true); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from URL <"+urlString+">: "+e.getMessage(), null); } } else if(fileString != null) { File f = new File(fileString); if(!f.isFile()) { throw new MessageInvalidException(ProtocolErrorMessage.NOT_A_FILE_ERROR, "The given ref file path <"+fileString+"> is not a file", null); } try { in = new BufferedReader(new FileReader(f)); ref = new StringBuffer(1024); String line; while((line = in.readLine()) != null) { line = line.trim(); ref.append( line ).append( "\n" ); } in.close(); } catch (FileNotFoundException e) { throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, "File not found when retrieving ref file <"+fileString+">: "+e.getMessage(), null); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.FILE_PARSE_ERROR, "IO error while retrieving ref file <"+fileString+">: "+e.getMessage(), null); } ref = new StringBuffer(ref.toString().trim()); if(ref == null) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+">", null); } if(ref.equals("")) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+">", null); } try { fs = new SimpleFieldSet(ref.toString(), true); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing ref from file <"+fileString+">: "+e.getMessage(), null); } } PeerNode pn; try { pn = new PeerNode(fs, node, false); } catch (FSParseException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } catch (PeerParseException e) { throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } catch (ReferenceSignatureVerificationException e) { // TODO: maybe a special ProtocolErrorMessage ? throw new MessageInvalidException(ProtocolErrorMessage.REF_PARSE_ERROR, "Error parsing retrieved ref: "+e.getMessage(), null); } // **FIXME** Handle duplicates somehow maybe? What about when node.addDarknetConnection() fails for some reason? if(node.addDarknetConnection(pn)) System.out.println("Added peer: "+pn); handler.outputHandler.queue(new Peer(pn, true, true)); } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/62fd59041864b4ed1f43adc676de6bfb5ea977f3/AddPeer.java/clean/src/freenet/node/fcp/AddPeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
29374,
273,
2662,
18,
588,
2932,
1785,
8863,
202,
202,
780,
585,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
29374,
273,
2662,
18,
588,
2932,
1785,
8863,
202,
202,
780,
585,
780,
... |
private void romanToWords(String romanString) { String punctuation = (String) tokenItem.findFeature("p.punc"); if (punctuation.equals("")) { /* no preceeding punctuation */ String n = String.valueOf(NumberExpander.expandRoman(romanString)); if (kingLike(tokenItem)) { wordRelation.addWord("the"); NumberExpander.expandOrdinal(n, wordRelation); } else if (sectionLike(tokenItem)) { NumberExpander.expandNumber(n, wordRelation); } else { NumberExpander.expandLetters(romanString, wordRelation); } } else { NumberExpander.expandLetters(romanString, wordRelation); } | private void romanToWords(WordRelation wordRelation, Item tokenItem, String romanString) { String punctuation = (String) tokenItem.findFeature("p.punc"); if (punctuation.equals("")) { /* no preceeding punctuation */ String n = String.valueOf(NumberExpander.expandRoman(romanString)); if (kingLike(tokenItem)) { wordRelation.addWord(tokenItem, "the"); NumberExpander.expandOrdinal(n, wordRelation); } else if (sectionLike(tokenItem)) { NumberExpander.expandNumber(n, wordRelation); } else { NumberExpander.expandLetters(romanString, wordRelation); } } else { NumberExpander.expandLetters(romanString, wordRelation); } | private void romanToWords(String romanString) { String punctuation = (String) tokenItem.findFeature("p.punc"); if (punctuation.equals("")) { /* no preceeding punctuation */ String n = String.valueOf(NumberExpander.expandRoman(romanString)); if (kingLike(tokenItem)) { wordRelation.addWord("the"); NumberExpander.expandOrdinal(n, wordRelation); } else if (sectionLike(tokenItem)) { NumberExpander.expandNumber(n, wordRelation); } else { NumberExpander.expandLetters(romanString, wordRelation); } } else { NumberExpander.expandLetters(romanString, wordRelation); } } | 49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/6a55df45b5e749262e5610405145a505d38c6c9e/TokenToWords.java/clean/java/de/dfki/lt/mary/modules/en/TokenToWords.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
24137,
304,
774,
7363,
12,
780,
24137,
304,
780,
13,
288,
202,
780,
22472,
273,
261,
780,
13,
1147,
1180,
18,
4720,
4595,
2932,
84,
18,
84,
551,
8863,
202,
202,
430,
261,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
24137,
304,
774,
7363,
12,
780,
24137,
304,
780,
13,
288,
202,
780,
22472,
273,
261,
780,
13,
1147,
1180,
18,
4720,
4595,
2932,
84,
18,
84,
551,
8863,
202,
202,
430,
261,
8... |
if ( KoLRequest.sessionID == null ) | if ( KoLRequest.sessionId == null ) | public static void showDisplay() { if ( KoLRequest.sessionID == null ) { KoLFrame.createDisplay( LoginFrame.class ); return; } if ( existingFrames.isEmpty() ) { KoLmafiaGUI.constructFrame( "LocalRelayServer" ); return; } KoLFrame [] frames = new KoLFrame[ existingFrames.size() ]; existingFrames.toArray( frames ); String interfaceSetting = StaticEntity.getGlobalProperty( "initialDesktop" ); for ( int i = 0; i < frames.length; ++i ) { if ( interfaceSetting.indexOf( frames[i].getFrameName() ) == -1 ) { frames[i].pack(); frames[i].setVisible( true ); frames[i].setExtendedState( KoLFrame.NORMAL ); } } if ( KoLDesktop.instanceExists() ) { KoLDesktop.getInstance().pack(); KoLDesktop.getInstance().setVisible( true ); KoLDesktop.getInstance().setExtendedState( KoLFrame.NORMAL ); } } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/SystemTrayFrame.java/clean/src/net/sourceforge/kolmafia/SystemTrayFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2405,
4236,
1435,
202,
95,
202,
202,
430,
261,
1475,
83,
48,
691,
18,
17255,
422,
446,
262,
202,
202,
95,
1082,
202,
47,
83,
48,
3219,
18,
2640,
4236,
12,
11744,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2405,
4236,
1435,
202,
95,
202,
202,
430,
261,
1475,
83,
48,
691,
18,
17255,
422,
446,
262,
202,
202,
95,
1082,
202,
47,
83,
48,
3219,
18,
2640,
4236,
12,
11744,
... |
return name; } | return name; } | public String getName() { return name; } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/QueryTag.java/buggy/src/main/mondrian/web/taglib/QueryTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1723,
1435,
288,
202,
202,
2463,
508,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1723,
1435,
288,
202,
202,
2463,
508,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public void run() { try { final ISourceViewer viewer= getSourceViewer(); final IDocument document= viewer.getDocument(); int position= widgetOffset2ModelOffset(viewer, viewer.getTextWidget().getCaretOffset()); // Check whether we are in a java code partition and the preference is enabled final IPreferenceStore store= getPreferenceStore(); final ITypedRegion region= TextUtilities.getPartition(document, IJavaPartitions.JAVA_PARTITIONING, position, false); if (!store.getBoolean(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION)) { super.run(); return; } // Check whether right hand character of caret is valid identifier start if (Character.isJavaIdentifierStart(document.getChar(position))) { int offset= 0; int order= CollationElementIterator.NULLORDER; short previous= Short.MAX_VALUE; short next= Short.MAX_VALUE; // Acquire collator for partition around caret final String buffer= document.get(position, region.getOffset() + region.getLength() - position); final CollationElementIterator iterator= fCollator.getCollationElementIterator(buffer); // Iterate to first upper-case character do { // Check whether we reached end of word offset= iterator.getOffset(); if (!Character.isJavaIdentifierPart(document.getChar(position + offset))) throw new BadLocationException(); // Test next characters order= iterator.next(); next= CollationElementIterator.tertiaryOrder(order); if (next <= previous) previous= next; else break; } while (order != CollationElementIterator.NULLORDER); // Check for leading underscores position += offset; if (Character.getType(document.getChar(position - 1)) != Character.CONNECTOR_PUNCTUATION) { setCaretPosition(position); getTextWidget().showSelection(); fireSelectionChanged(); return; } } } catch (BadLocationException exception) { // Use default behavior } super.run(); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/e0a49b04e3499f02c93ac9d6a4e35c77eb3e8aa8/JavaEditor.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6459,
2681,
1435,
95,
1082,
202,
698,
95,
9506,
202,
6385,
45,
1830,
18415,
25256,
33,
588,
1830,
18415,
5621,
9506,
202,
6385,
734,
504,
650,
5457,
33,
25256,
18,
588,
2519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
6459,
2681,
1435,
95,
1082,
202,
698,
95,
9506,
202,
6385,
45,
1830,
18415,
25256,
33,
588,
1830,
18415,
5621,
9506,
202,
6385,
734,
504,
650,
5457,
33,
25256,
18,
588,
2519,
... | ||
returnValue = -Double.MIN_VALUE; | returnValue = -Double.MAX_VALUE; | public final double multiply(double val1, double val2) { double returnValue = val1 + val2; boolean overflowOccurred = false; // [ EBG: alternative... test the sign of each of val1 and // val2 and, if needed, the result. If val1 and val2 have // different signs, then overflow isn't an issue. If they have // the same sign and the result also has the same sign, then // operation was successful. if not, then an overflow occured, // in which case we can signal or just return MAX_VALUE ] if (val1 > 0) { if (val2 > (Double.MAX_VALUE - val1)) { overflowOccurred = true; returnValue = Double.MAX_VALUE; } } else if (val1 < 0) { if (val2 < ( -Double.MAX_VALUE - val1)) { overflowOccurred = true; returnValue = -Double.MIN_VALUE; } } if (overflowOccurred) { logger.info("********Overflow occurred while trying to log.multiply " + val1 + " and " + val2); } return returnValue; } | 48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/242a7a52f1b95edb6fe1f3e5587c22668117e47b/LogMath.java/clean/sphinx4/edu/cmu/sphinx/util/LogMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
1645,
10194,
12,
9056,
1244,
21,
16,
1645,
1244,
22,
13,
288,
202,
9056,
7750,
273,
1244,
21,
397,
1244,
22,
31,
202,
6494,
9391,
30096,
273,
629,
31,
202,
759,
306,
512,
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,
727,
1645,
10194,
12,
9056,
1244,
21,
16,
1645,
1244,
22,
13,
288,
202,
9056,
7750,
273,
1244,
21,
397,
1244,
22,
31,
202,
6494,
9391,
30096,
273,
629,
31,
202,
759,
306,
512,
3... |
this.outputFileName = outputFileName; } | this.outputFileName = outputFileName; } | public void setOutputFileName(String outputFileName) { this.outputFileName = outputFileName; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/96a353c24553d31bf0a7d366711948039ba58560/Java2WSDLTask.java/buggy/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
18113,
4771,
12,
780,
876,
4771,
13,
288,
5411,
333,
18,
2844,
4771,
273,
876,
4771,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
18113,
4771,
12,
780,
876,
4771,
13,
288,
5411,
333,
18,
2844,
4771,
273,
876,
4771,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
IOfflineTaskHandler offlineHandler = connector.getOfflineTaskHandler(); | ITaskDataHandler offlineHandler = connector.getTaskDataHandler(); | public IStatus run(IProgressMonitor monitor) { monitor.beginTask("Opening Remote Task", 10); TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository( repositoryKind, serverUrl); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(null, "Repository Not Found", "Could not find repository configuration for " + serverUrl + ". \nPlease set up repository via " + TaskRepositoriesView.NAME + "."); TasksUiUtil.openUrl(taskUrl); } }); return Status.OK_STATUS; } AbstractRepositoryConnector connector = TasksUiPlugin.getRepositoryManager().getRepositoryConnector(repositoryKind); try { IOfflineTaskHandler offlineHandler = connector.getOfflineTaskHandler(); if (offlineHandler != null) { // the following code was copied from SynchronizeTaskJob RepositoryTaskData downloadedTaskData = null; try { downloadedTaskData = offlineHandler.downloadTaskData(repository, taskId); TasksUiPlugin.getDefault().getTaskDataManager().put(downloadedTaskData); openEditor(repository, AbstractRepositoryTask.getHandle(repository.getUrl(), taskId), downloadedTaskData); } catch (final CoreException e) { if (e.getStatus().getException() instanceof UnrecognizedReponseException) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { WebBrowserDialog.openAcceptAgreement(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Unrecognized response from server", e.getStatus().getMessage(), e.getStatus().getException() .getMessage()); MylarStatusHandler.log(e.getStatus()); } }); } else { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), TasksUiPlugin.TITLE_DIALOG, "Could not open repository task. Verify that a task with this ID exists and is accessible." + "\n\nException: " + e.getStatus().getException()); } }); } } } else { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { TasksUiUtil.openUrl(taskUrl); } }); } } finally { monitor.done(); } return new Status(IStatus.OK, TasksUiPlugin.PLUGIN_ID, IStatus.OK, "", null); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/03f3816483b487f20214837cafbbbb03ffc5336e/OpenRepositoryTaskJob.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
10259,
18,
10086,
2174,
2932,
21378,
6304,
3837,
3113,
1728,
1769,
1082,
202,
2174,
3305,
3352,
273,
20350,
13943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1082,
202,
10259,
18,
10086,
2174,
2932,
21378,
6304,
3837,
3113,
1728,
1769,
1082,
202,
2174,
3305,
3352,
273,
20350,
13943,
... |
assertEquals("#SAfe0014", rsmd.getTableName(1)); | assertEquals("##SAfe0014", rsmd.getTableName(1)); | public void testPreparedAndCallableCursors0014() throws Exception { Statement stmt = con.createStatement(); stmt.executeUpdate("CREATE TABLE #SAfe0014(id INT PRIMARY KEY)"); stmt.executeUpdate("INSERT INTO #SAfe0014 VALUES (1)"); stmt.executeUpdate("CREATE PROCEDURE #sp_SAfe0014(@P1 INT, @P2 INT) AS " + "SELECT id, @P2 FROM #SAfe0014 WHERE id=@P1"); stmt.close(); PreparedStatement ps = con.prepareStatement("SELECT id FROM #SAfe0014", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet resultSet = ps.executeQuery(); // No warnings assertEquals(null, resultSet.getWarnings()); assertEquals(null, ps.getWarnings()); // Correct ResultSet assertTrue(resultSet.next()); assertEquals(1, resultSet.getInt(1)); assertTrue(!resultSet.next()); // Correct meta data ResultSetMetaData rsmd = resultSet.getMetaData(); assertEquals("id", rsmd.getColumnName(1)); assertEquals("#SAfe0014", rsmd.getTableName(1)); // Insert row resultSet.moveToInsertRow(); resultSet.updateInt(1, 2); resultSet.insertRow(); resultSet.moveToCurrentRow(); // Check correct row count resultSet.last(); assertEquals(2, resultSet.getRow()); resultSet.close(); ps.close(); ps = con.prepareStatement("SELECT id, ? FROM #SAfe0014 WHERE id = ?", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ps.setInt(1, 5); ps.setInt(2, 1); resultSet = ps.executeQuery(); // No warnings assertEquals(null, resultSet.getWarnings()); assertEquals(null, ps.getWarnings()); // Correct ResultSet assertTrue(resultSet.next()); assertEquals(1, resultSet.getInt(1)); assertEquals(5, resultSet.getInt(2)); assertTrue(!resultSet.next()); // Correct meta data rsmd = resultSet.getMetaData(); assertEquals("id", rsmd.getColumnName(1)); assertEquals("#SAfe0014", rsmd.getTableName(1)); resultSet.close(); ps.close(); CallableStatement cs = con.prepareCall("{call #sp_SAfe0014(?,?)}", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); cs.setInt(1, 1); cs.setInt(2, 3); resultSet = cs.executeQuery(); // No warnings assertEquals(null, resultSet.getWarnings()); assertEquals(null, cs.getWarnings()); // Correct ResultSet assertTrue(resultSet.next()); assertEquals(1, resultSet.getInt(1)); assertEquals(3, resultSet.getInt(2)); assertTrue(!resultSet.next()); // Correct meta data rsmd = resultSet.getMetaData(); assertEquals("id", rsmd.getColumnName(1)); assertEquals("#SAfe0014", rsmd.getTableName(1)); resultSet.close(); cs.close(); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/711d47f475f1fc9d77fbce64a70d11606c38d145/SAfeTest.java/clean/src/test/net/sourceforge/jtds/test/SAfeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15464,
1876,
11452,
2408,
87,
1383,
713,
3461,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
1891,
2932,
9344,
7567,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15464,
1876,
11452,
2408,
87,
1383,
713,
3461,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
1891,
2932,
9344,
7567,
468,
... |
item.setQuantity(item.getQuantity() - quantityToKeep, dispatcher, this); quantityRemoved += quantityToKeep; | quantityRemoved += (item.getQuantity() - quantityToKeep); item.setQuantity(quantityToKeep, dispatcher, this); | public double ensureItemsTotalQuantity(List cartItems, LocalDispatcher dispatcher, double quantity) throws CartItemModifyException { double quantityRemoved = 0; // go through the items and reduce quantityToKeep by the item quantities until it is 0, then remove the remaining... double quantityToKeep = quantity; Iterator localIter = cartItems.iterator(); while (localIter.hasNext()) { ShoppingCartItem item = (ShoppingCartItem) localIter.next(); if (quantityToKeep > item.getQuantity()) { // quantityToKeep sufficient to keep it all... just reduce quantityToKeep and move on quantityToKeep = quantityToKeep - item.getQuantity(); } else { // there is more in this than we want to keep, so reduce the quantity, or remove altogether... if (quantityToKeep == 0) { // nothing left to keep, just remove it... this.removeCartItem(item, dispatcher); quantityRemoved += item.getQuantity(); } else { // there is some to keep, so reduce quantity by quantityToKeep, at this point we know we'll take up all of the rest of the quantityToKeep item.setQuantity(item.getQuantity() - quantityToKeep, dispatcher, this); quantityRemoved += quantityToKeep; quantityToKeep = 0; } } } return quantityRemoved; } | 55411 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55411/3be422e863571b7755745f620be5392a40f5d9f1/ShoppingCart.java/clean/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
3387,
3126,
5269,
12035,
12,
682,
7035,
3126,
16,
3566,
6681,
7393,
16,
1645,
10457,
13,
1216,
17695,
1180,
11047,
503,
288,
3639,
1645,
10457,
10026,
273,
374,
31,
3639,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
3387,
3126,
5269,
12035,
12,
682,
7035,
3126,
16,
3566,
6681,
7393,
16,
1645,
10457,
13,
1216,
17695,
1180,
11047,
503,
288,
3639,
1645,
10457,
10026,
273,
374,
31,
3639,
368,
... |
public byte[] getHostBytes() throws UnknownHostException { //check if the IP address is in numeric form or is it a hostname string if(Character.isDigit(hostname.charAt(hostname.length() - 1))) { //it should be an IP address //we may still need to check that its in proper form try { StringTokenizer tokenizer = new StringTokenizer(hostname,"."); String a = tokenizer.nextToken(); String b = tokenizer.nextToken(); String c = tokenizer.nextToken(); String d = tokenizer.nextToken(); int a1 = Integer.parseInt(a); int b1 = Integer.parseInt(b); int c1 = Integer.parseInt(c); int d1 = Integer.parseInt(d); byte[] retBytes = {(byte)a1, (byte)b1,(byte)c1,(byte)d1}; return retBytes; } catch(Exception e) { throw new UnknownHostException(); } } else { //it might be a domain name. //try to get its IP Address return InetAddress.getByName(hostname).getAddress(); //the above fn call might throw UnknownHostException, but thats what //we want in case of DNS failure } } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/41422245404c0fad8a30437d75fc29381b02be42/Endpoint.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/Endpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
8580,
2160,
1435,
1216,
30592,
565,
288,
5411,
368,
1893,
309,
326,
2971,
1758,
353,
316,
6389,
646,
578,
353,
518,
279,
5199,
533,
3639,
309,
12,
7069,
18,
291,
10907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
8580,
2160,
1435,
1216,
30592,
565,
288,
5411,
368,
1893,
309,
326,
2971,
1758,
353,
316,
6389,
646,
578,
353,
518,
279,
5199,
533,
3639,
309,
12,
7069,
18,
291,
10907,
... | ||
preparedStatementForUpdate_.setInput(i + 1, updatedColumns_[i]); | preparedStatementForUpdate_.setInput(paramNumber, updatedColumns_[i]); | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + "row or if the concurrency of this ResultSet object is CONCUR_READ_ONLY."); } // No-op if none of the columns were updated and updateRow() is called, just return. if (updatedColumns_ == null) { return; } if (preparedStatementForUpdate_ == null) { getPreparedStatementForUpdate(); } // build the inputs array for the prepared statement for update for (int i = 0; i < updatedColumns_.length; i++) { if (resultSetMetaData_.sqlxUpdatable_[i] == 1) { // column is updated either if the updatedColumns_ entry is not null, // or if the updatedColumns_ entry is null, but columnUpdated_ boolean is // set to true, which means columns is updated to a null. if (updatedColumns_[i] != null || (updatedColumns_[i] == null && columnUpdated_[i])) { preparedStatementForUpdate_.setInput(i + 1, updatedColumns_[i]); } else { // Check if the original column is null. Calling CrossConverters.setObject on a null // column causes "Data Conversion" Exception. Object originalObj = getObject(i + 1); if (originalObj == null) { preparedStatementForUpdate_.setInput(i + 1, null); } else { preparedStatementForUpdate_.setInput(i + 1, agent_.crossConverters_.setObject(resultSetMetaData_.types_[i], originalObj)); } } } } // need to cancel updates if the actual update was not successful at the server. // alternative is to check for updateCount_ in "positionToCurrentRowAndUpdate". // cancelRowUpdates if updateCount_ != 1, else set updateRowCalled_ to true. try { if (isRowsetCursor_ || sensitivity_ == sensitivity_sensitive_dynamic__) { update(); } else { positionToCurrentRowAndUpdate(); } updateRowCalled_ = true; } catch (SqlException e) { cancelRowUpdates(); throw e; } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/f96f1b4cda7f0f73736511e2202d1be6937ca87e/ResultSet.java/buggy/java/client/org/apache/derby/client/am/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
1999,
60,
1435,
1216,
2252,
18,
4669,
18,
23116,
288,
3639,
13855,
7395,
13198,
5621,
3639,
309,
261,
291,
1398,
4600,
1999,
67,
747,
12168,
18273,
67,
422,
2252,
18,
466... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
1999,
60,
1435,
1216,
2252,
18,
4669,
18,
23116,
288,
3639,
13855,
7395,
13198,
5621,
3639,
309,
261,
291,
1398,
4600,
1999,
67,
747,
12168,
18273,
67,
422,
2252,
18,
466... |
ViewerSorter sorter = getSorter(); TreePath parentPath = internalGetSorterParentPath(parent, sorter); | ViewerComparator comparator = getComparator(); TreePath parentPath = internalGetSorterParentPath(parent, comparator); | protected int indexForElement(Widget parent, Object element) { ViewerSorter sorter = getSorter(); TreePath parentPath = internalGetSorterParentPath(parent, sorter); Item[] items = getChildren(parent); int count = items.length; if (sorter == null) { return count; } int min = 0, max = count - 1; while (min <= max) { int mid = (min + max) / 2; Object data = items[mid].getData(); int compare = internalCompare(sorter, parentPath, data, element); if (compare == 0) { // find first item > element while (compare == 0) { ++mid; if (mid >= count) { break; } data = items[mid].getData(); compare = internalCompare(sorter, parentPath, data, element); } return mid; } if (compare < 0) { min = mid + 1; } else { max = mid - 1; } } return min; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d65c8bc5c0d3aafead5b1e576e57c11cb279f2ca/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
770,
1290,
1046,
12,
4609,
982,
16,
1033,
930,
13,
288,
3639,
4441,
264,
24952,
19867,
273,
1322,
4975,
5621,
3639,
4902,
743,
17743,
273,
2713,
967,
24952,
3054,
743,
12,
2938... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
770,
1290,
1046,
12,
4609,
982,
16,
1033,
930,
13,
288,
3639,
4441,
264,
24952,
19867,
273,
1322,
4975,
5621,
3639,
4902,
743,
17743,
273,
2713,
967,
24952,
3054,
743,
12,
2938... |
myExpectation.addExpectedMany(expectedItems.elements()); myExpectation.setFailOnVerify(); | myExpectation.addExpectedMany(expectedItems.elements()); myExpectation.setFailOnVerify(); | public void testMultiFailureFromEnumeration() { Vector expectedItems = new Vector(); expectedItems.addElement("A"); expectedItems.addElement("B"); Vector actualItems = new Vector(); actualItems.addElement("A"); actualItems.addElement("C"); myExpectation.addExpectedMany(expectedItems.elements()); myExpectation.setFailOnVerify(); myExpectation.addActualMany(actualItems.elements()); AssertMo.assertVerifyFails(myExpectation); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/AbstractTestExpectationCollection.java/buggy/jmock/core/src/test/jmock/expectation/AbstractTestExpectationCollection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5002,
5247,
1265,
21847,
1435,
288,
202,
202,
5018,
2665,
3126,
273,
394,
5589,
5621,
202,
202,
3825,
3126,
18,
1289,
1046,
2932,
37,
8863,
202,
202,
3825,
3126,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5002,
5247,
1265,
21847,
1435,
288,
202,
202,
5018,
2665,
3126,
273,
394,
5589,
5621,
202,
202,
3825,
3126,
18,
1289,
1046,
2932,
37,
8863,
202,
202,
3825,
3126,
18,
... |
System.out.println("Max CI Units " + numCIUnits); System.out.println("Unit table size " + unitTable.length); | logger.info("Max CI Units " + numCIUnits); logger.info("Unit table size " + unitTable.length); | public void dumpInfo() { System.out.println("Max CI Units " + numCIUnits); System.out.println("Unit table size " + unitTable.length); if (false) { for (int i = 0; i < unitTable.length; i++) { System.out.println("" + i + " " + unitTable[i]); } } } | 7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/c43d21441a3a8beedeedd7aeaab48760d3ecd667/HMMPool.java/buggy/edu/cmu/sphinx/linguist/util/HMMPool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4657,
966,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
2747,
17166,
27845,
315,
397,
818,
7266,
7537,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
2802,
1014,
963,
315,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4657,
966,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
2747,
17166,
27845,
315,
397,
818,
7266,
7537,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
2802,
1014,
963,
315,
397,
... |
secureParam = URLDecoder.decode(url.substring(startIndex, endIndex),Application.get().getSettings().getResponseRequestEncoding()); | secureParam = URLDecoder.decode(url.substring(startIndex, endIndex),Application.get().getRequestCycleSettings().getResponseRequestEncoding()); | public String decodeURL(final String url) { int startIndex = url.indexOf("x="); if(startIndex != -1) { startIndex = startIndex +2; final String secureParam; final int endIndex = url.indexOf("&", startIndex); try { if(endIndex == -1) { secureParam = URLDecoder.decode(url.substring(startIndex),Application.get().getSettings().getResponseRequestEncoding()); } else { secureParam = URLDecoder.decode(url.substring(startIndex, endIndex),Application.get().getSettings().getResponseRequestEncoding()); } } catch (UnsupportedEncodingException ex) { // should never happen throw new WicketRuntimeException(ex); } // Get the crypt implementation from the application final ICrypt urlCrypt = Application.get().getSecuritySettings().getCryptFactory().newCrypt(); // Decrypt the query string final String queryString = urlCrypt.decrypt(secureParam); // The querystring might have been shortened (length reduced). // In that case, lengthen the query string again. return rebuildUrl(queryString); } return url; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/8294ee3b065bff22b5be9701606c00af9fd02f3d/WebRequestWithCryptedUrl.java/clean/wicket/src/java/wicket/protocol/http/WebRequestWithCryptedUrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2495,
1785,
12,
6385,
514,
880,
13,
202,
95,
202,
202,
474,
10588,
273,
880,
18,
31806,
2932,
92,
1546,
1769,
202,
202,
430,
12,
1937,
1016,
480,
300,
21,
13,
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,
2495,
1785,
12,
6385,
514,
880,
13,
202,
95,
202,
202,
474,
10588,
273,
880,
18,
31806,
2932,
92,
1546,
1769,
202,
202,
430,
12,
1937,
1016,
480,
300,
21,
13,
202,
202,... |
return status.isMultiStatus() || status.getException() instanceof CoreException; | return status.isMultiStatus() || status.getException() != null; | protected boolean shouldShowDetailsButton() { return status.isMultiStatus() || status.getException() instanceof CoreException; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8e3a2d56b37c6206f6d8f00e9b0d20a8a1c410e5/ErrorDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1410,
5706,
3790,
3616,
1435,
288,
3639,
327,
1267,
18,
291,
5002,
1482,
1435,
747,
1267,
18,
588,
503,
1435,
480,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1410,
5706,
3790,
3616,
1435,
288,
3639,
327,
1267,
18,
291,
5002,
1482,
1435,
747,
1267,
18,
588,
503,
1435,
480,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (!initialized) { systemViewXML = QName.NS_SV_URI.equals(namespaceURI); if (systemViewXML) { targetHandler = new SysViewImportHandler(importer, nsContext); } else { targetHandler = new DocViewImportHandler(importer, nsContext); } targetHandler.startDocument(); initialized = true; } | targetHandler.startNamespaceContext(localNamespaceMappings); localNamespaceMappings.clear(); | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { // check if new context needs to be started if (!nsContextStarted) { // there hasn't been a preceeding startPrefixMapping event // so enter new namespace context nsContext.pushContext(); } else { // reset flag nsContextStarted = false; } if (!initialized) { // the namespace of the first element determines the type of XML // (system view/document view) systemViewXML = QName.NS_SV_URI.equals(namespaceURI); if (systemViewXML) { targetHandler = new SysViewImportHandler(importer, nsContext); } else { targetHandler = new DocViewImportHandler(importer, nsContext); } targetHandler.startDocument(); initialized = true; } // delegate to target handler targetHandler.startElement(namespaceURI, localName, qName, atts); } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/5e9b632fd59ddbb2d950417bb849b7ff41e56518/ImportHandler.java/clean/jackrabbit/src/main/java/org/apache/jackrabbit/core/xml/ImportHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
19421,
16,
514,
11927,
16,
514,
22914,
16,
11794,
9055,
15687,
13,
1216,
14366,
288,
3639,
368,
866,
309,
394,
819,
4260,
358,
506,
5746,
3639,
309,
16051,
2387... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13591,
12,
780,
19421,
16,
514,
11927,
16,
514,
22914,
16,
11794,
9055,
15687,
13,
1216,
14366,
288,
3639,
368,
866,
309,
394,
819,
4260,
358,
506,
5746,
3639,
309,
16051,
2387... |
} else | } else | public void updateMatrixQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParameter("questionTxt"); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; Object obj = session.getAttribute("answers"); ArrayList<String> answers = null; if(obj instanceof PersistentList){ Iterator iter = ((PersistentList) obj).iterator(); answers = new ArrayList<String>(); while(iter.hasNext()){ answers.add((String) iter.next()); } } else answers = (ArrayList<String>) session.getAttribute("answers"); obj = session.getAttribute("columns"); ArrayList<String> columns = null; if(obj instanceof PersistentList){ Iterator iter = ((PersistentList) obj).iterator(); columns = new ArrayList<String>(); while(iter.hasNext()){ columns.add((String) iter.next()); } } else columns = (ArrayList<String>) session.getAttribute("columns"); // now parse different params depending on the type RadioMatrixQuestion question = new RadioMatrixQuestion(columns.size(), answers.size()); question.setDescription(questionText); question.setSection(section); question.setTitle(name); question.setItems(answers); question.setColumnsTitles(columns); question.setImage(image); List<Question> quests = section.getQuestions(); quests.set(rowId, question); section.setQuestions(quests); session.setAttribute("currentSection", section); session.removeAttribute("answers"); session.removeAttribute("columns"); } | 54385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54385/1987aafdf9f6e92293bee44cf33ba906d200af2c/SurveyWebComponent.java/buggy/survey/src/java/ar/com/survey/web/component/SurveyWebComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
4635,
11665,
382,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
4635,
11665,
382,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
... |
parsePosition.setErrorIndex(oldStart); | private final boolean subparse(String text, ParsePosition parsePosition, DigitList digits, boolean isExponent, boolean status[]) { int position = parsePosition.getIndex(); int oldStart = parsePosition.getIndex(); int backup; // Match positive and negative prefixes; prefer longest match. int posMatch = compareAffix(positivePrefix, text, position); int negMatch = compareAffix(negativePrefix, text, position); if (posMatch >= 0 && negMatch >= 0) { if (posMatch > negMatch) { negMatch = -1; } else if (negMatch > posMatch) { posMatch = -1; } } if (posMatch >= 0) { position += posMatch; } else if (negMatch >= 0) { position += negMatch; } else { //PP:parsePosition.errorIndex = position; return false; } // process digits or Inf, find decimal position status[STATUS_INFINITE] = false; if (!isExponent && text.regionMatches(position,symbols.getInfinity(),0, symbols.getInfinity().length())) { position += symbols.getInfinity().length(); status[STATUS_INFINITE] = true; } else { // We now have a string of digits, possibly with grouping symbols, // and decimal points. We want to process these into a DigitList. // We don't want to put a bunch of leading zeros into the DigitList // though, so we keep track of the location of the decimal point, // put only significant digits into the DigitList, and adjust the // exponent as needed. digits.decimalAt = digits.count = 0; char zero = symbols.getZeroDigit(); char decimal = isCurrencyFormat ? symbols.getMonetaryDecimalSeparator() : symbols.getDecimalSeparator(); char grouping = symbols.getGroupingSeparator(); String exponentSep = symbols.getExponentSeparator(); boolean sawDecimal = false; boolean sawExponent = false; boolean sawDigit = false; int exponent = 0; // Set to the exponent value, if any int digit = 0; // We have to track digitCount ourselves, because digits.count will // pin when the maximum allowable digits is reached. int digitCount = 0; backup = -1; for (; position < text.length(); ++position) { char ch = text.charAt(position); /* We recognize all digit ranges, not only the Latin digit range * '0'..'9'. We do so by using the Character.digit() method, * which converts a valid Unicode digit to the range 0..9. * * The character 'ch' may be a digit. If so, place its value * from 0 to 9 in 'digit'. First try using the locale digit, * which may or MAY NOT be a standard Unicode digit range. If * this fails, try using the standard Unicode digit ranges by * calling Character.digit(). If this also fails, digit will * have a value outside the range 0..9. */ digit = ch - zero; if (digit < 0 || digit > 9) digit = Character.digit(ch, 10); if (digit == 0) { // Cancel out backup setting (see grouping handler below) backup = -1; // Do this BEFORE continue statement below!!! sawDigit = true; // Handle leading zeros if (digits.count == 0) { // Ignore leading zeros in integer part of number. if (!sawDecimal) continue; // If we have seen the decimal, but no significant digits yet, // then we account for leading zeros by decrementing the // digits.decimalAt into negative values. --digits.decimalAt; } else { ++digitCount; digits.append((char)(digit + '0')); } } else if (digit > 0 && digit <= 9) // [sic] digit==0 handled above { sawDigit = true; ++digitCount; digits.append((char)(digit + '0')); // Cancel out backup setting (see grouping handler below) backup = -1; } else if (!isExponent && ch == decimal) { // If we're only parsing integers, or if we ALREADY saw the // decimal, then don't parse this one. if (isParseIntegerOnly() || sawDecimal) break; digits.decimalAt = digitCount; // Not digits.count! sawDecimal = true; } else if (!isExponent && ch == grouping && isGroupingUsed()) { if (sawDecimal) { break; } // Ignore grouping characters, if we are using them, but require // that they be followed by a digit. Otherwise we backup and // reprocess them. backup = position; } else if (!isExponent && !sawExponent && text.regionMatches(position, exponentSep, 0, exponentSep.length())) { // Parse sign, if present boolean negExp = false; int pos = position + exponentSep.length(); if (pos < text.length()) { ch = text.charAt(pos); if (ch == symbols.getPlusSign()) { ++pos; } else if (ch == symbols.getMinusSign()) { ++pos; negExp = true; } } DigitList exponentDigits = new DigitList(); exponentDigits.count = 0; while (pos < text.length()) { digit = text.charAt(pos) - zero; if (digit < 0 || digit > 9) { /* Can't parse "[1E0]" when pattern is "0.###E0;[0.###E0]" Should update reassign the value of 'ch' in the code: digit = Character.digit(ch, 10); [Richard/GCL] */ digit = Character.digit(text.charAt(pos), 10); } if (digit >= 0 && digit <= 9) { exponentDigits.append((char)(digit + '0')); ++pos; } else { break; } } if (exponentDigits.count > 0) { exponentDigits.decimalAt = exponentDigits.count; exponent = (int) exponentDigits.getLong(); if (negExp) { exponent = -exponent; } position = pos; // Advance past the exponent sawExponent = true; } break; // Whether we fail or succeed, we exit this loop } else break; } if (backup != -1) position = backup; // If there was no decimal point we have an integer if (!sawDecimal) digits.decimalAt = digitCount; // Not digits.count! // Adjust for exponent, if any digits.decimalAt += exponent; // If none of the text string was recognized. For example, parse // "x" with pattern "#0.00" (return index and error index both 0) // parse "$" with pattern "$#0.00". (return index 0 and error index // 1). if (!sawDigit && digitCount == 0) { parsePosition.setIndex(oldStart); //PP:parsePosition.errorIndex = oldStart; return false; } } // Match positive and negative suffixes; prefer longest match. if (posMatch >= 0) { posMatch = compareAffix(positiveSuffix, text, position); } if (negMatch >= 0) { negMatch = compareAffix(negativeSuffix, text, position); } if (posMatch >= 0 && negMatch >= 0) { if (posMatch > negMatch) { negMatch = -1; } else if (negMatch > posMatch) { posMatch = -1; } } // Fail if neither or both if ((posMatch >= 0) == (negMatch >= 0)) { //PP:parsePosition.errorIndex = position; return false; } parsePosition.setIndex(position + (posMatch>=0 ? posMatch : negMatch)); status[STATUS_POSITIVE] = (posMatch >= 0); if (parsePosition.getIndex() == oldStart) { //PP:parsePosition.errorIndex = position; return false; } return true; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/04654837b4a7c667293aa532d89d664e99fc6212/DecimalFormat.java/clean/icu4j/src/com/ibm/icu/text/DecimalFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1109,
2555,
18,
542,
668,
1016,
12,
1673,
1685,
1769,
1109,
2555,
18,
542,
668,
1016,
12,
1673,
1685,
1769,
1109,
2555,
18,
542,
668,
1016,
12,
1673,
1685,
1769,
1109,
2555,
18,
542,
668,
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,
1109,
2555,
18,
542,
668,
1016,
12,
1673,
1685,
1769,
1109,
2555,
18,
542,
668,
1016,
12,
1673,
1685,
1769,
1109,
2555,
18,
542,
668,
1016,
12,
1673,
1685,
1769,
1109,
2555,
18,
542,
668,
10... | |
aEnvironment.iCurrentOutput.Write("Function not yet implemented : DllEnumerate"); | aEnvironment.iCurrentOutput.Write("Function not yet implemented : DllEnumerate"); throw new Yacasexception("Function not yet supported"); | public void Eval(LispEnvironment aEnvironment,int aStackTop) throws Exception { aEnvironment.iCurrentOutput.Write("Function not yet implemented : DllEnumerate");//TODO FIXME } | 7272 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7272/be94246deecbac70cc4ce6861d9706a7cedcdd2f/MathCommands.java/clean/JavaYacas/MathCommands.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13163,
12,
48,
23831,
5494,
279,
5494,
16,
474,
279,
2624,
3401,
13,
1216,
1185,
565,
288,
1377,
279,
5494,
18,
77,
3935,
1447,
18,
3067,
2932,
2083,
486,
4671,
8249,
294,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13163,
12,
48,
23831,
5494,
279,
5494,
16,
474,
279,
2624,
3401,
13,
1216,
1185,
565,
288,
1377,
279,
5494,
18,
77,
3935,
1447,
18,
3067,
2932,
2083,
486,
4671,
8249,
294,
46... |
sizePenalization = 1/ (500*Math.pow(2,evo.config.maxDepth+1)); | sizePenalization = 1/ (500*Math.pow(2, config.maxDepth+1)); | private void init (Evolution evo) { this.evo = evo; /* How much each SNR is more important than the next one: * Must be smaller than 1/3 */ deltaSNR = evo.config.deltaSNR; continuityImportance = evo.config.continuityImportance; //How much important is voice over silence: kHR1 = evo.config.kHR1; sizePenalization = 1/ (500*Math.pow(2,evo.config.maxDepth+1)); results = new double[evo.dataHolder.nSamples]; } | 12140 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12140/8845f3626a06d05706f6c2e0889a778682a0b689/FitnessClassifier.java/buggy/src/gpalta/core/FitnessClassifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
261,
20861,
5889,
2113,
83,
13,
565,
288,
3639,
333,
18,
73,
12307,
273,
2113,
83,
31,
3639,
1748,
9017,
9816,
1517,
14204,
54,
353,
1898,
10802,
2353,
326,
1024,
1245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
261,
20861,
5889,
2113,
83,
13,
565,
288,
3639,
333,
18,
73,
12307,
273,
2113,
83,
31,
3639,
1748,
9017,
9816,
1517,
14204,
54,
353,
1898,
10802,
2353,
326,
1024,
1245,
... |
return indentLine(lineIndex); | return indentLine(lineIndex,canDecreaseIndent); | public boolean indentLine(int lineIndex, boolean canIncreaseIndent, boolean canDecreaseIndent) { return indentLine(lineIndex); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/157009a3e78368b304e6449aa22d36427a1cfa91/Buffer.java/buggy/org/gjt/sp/jedit/Buffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3504,
1670,
12,
474,
980,
1016,
16,
1250,
848,
382,
11908,
7790,
16,
202,
202,
6494,
848,
23326,
448,
7790,
13,
202,
95,
202,
202,
2463,
3504,
1670,
12,
1369,
1016,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3504,
1670,
12,
474,
980,
1016,
16,
1250,
848,
382,
11908,
7790,
16,
202,
202,
6494,
848,
23326,
448,
7790,
13,
202,
95,
202,
202,
2463,
3504,
1670,
12,
1369,
1016,
1769... |
if (field.isStatic()) { final VmStaticField sf = (VmStaticField)field; initialize(sf); return Unsafe.getLong(getStaticFieldAddress(sf)); } else { final VmInstanceField inf = (VmInstanceField)field; return Unsafe.getLong(o, inf.getOffset()); } } | if (field.isStatic()) { final VmStaticField sf = (VmStaticField) field; initialize(sf); return Unsafe.getLong(getStaticFieldAddress(sf)); } else { final VmInstanceField inf = (VmInstanceField) field; return Unsafe.getLong(o, inf.getOffset()); } } | public static long getLong(VmField field, Object o) { if (field.isStatic()) { final VmStaticField sf = (VmStaticField)field; initialize(sf); return Unsafe.getLong(getStaticFieldAddress(sf)); } else { final VmInstanceField inf = (VmInstanceField)field; return Unsafe.getLong(o, inf.getOffset()); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e4a473e34ef840c188ac5bf477d7d4e303019638/VmReflection.java/buggy/core/src/core/org/jnode/vm/VmReflection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1525,
11105,
12,
22143,
974,
652,
16,
1033,
320,
13,
288,
202,
202,
430,
261,
1518,
18,
291,
5788,
10756,
288,
1082,
202,
6385,
776,
81,
5788,
974,
9033,
273,
261,
22143,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1525,
11105,
12,
22143,
974,
652,
16,
1033,
320,
13,
288,
202,
202,
430,
261,
1518,
18,
291,
5788,
10756,
288,
1082,
202,
6385,
776,
81,
5788,
974,
9033,
273,
261,
22143,... |
if (con[i].type==ConstraintType.GE) { | if (con[i].type.equals(ConstraintType.GE)) { | private ModelAndVars setupModel() throws IloException, IOException { // make model IloCplex model = new IloCplex(); // if there's any timeout, put emphasis on finding a feasible // solution quickly instead of proving the optimality of the // solution. if (this.timeout!=MAX_TIMEOUT) { model.setParam(IloCplex.IntParam.MIPEmphasis, IloCplex.MIPEmphasis.Feasibility); } // construct types IloNumVarType[] types = new IloNumVarType[numVars]; for (int i=0; i<numVars; i++) { if (boolVar[i]) { types[i] = IloNumVarType.Bool; } else { types[i] = IloNumVarType.Float; } } // construct bounds for vars double[] lb = new double[numVars]; double[] ub = new double[numVars]; for (int i=0; i<numVars; i++) { // give 0-1 range for bool vars solely to avoid warning // from cplex; the important part of the bool var is the // type decided above. if (boolVar[i]) { lb[i] = 0.0; ub[i] = 1.0; } else { lb[i] = Double.MIN_VALUE; ub[i] = Double.MAX_VALUE; } } // construct vars <x> IloNumVar[] x = model.numVarArray(numVars, lb, ub, types); // construct objective function model.addMinimize(model.scalProd(x, obj)); // add constraints Constraint[] con = (Constraint[])constraints.toArray(new Constraint[0]); for (int i=0; i<con.length; i++) { if (con[i].type==ConstraintType.GE) { model.add(model.addGe(model.scalProd(x, con[i].lhs), con[i].rhs)); } else if (con[i].type==ConstraintType.EQ) { model.add(model.addEq(model.scalProd(x, con[i].lhs), con[i].rhs)); } else { Utils.fail("Unrecognized constraint type: " + con[i].type); } } return new ModelAndVars(model, x); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/1026c0f3b8e4ba2307c8c2dd3a5612f7bb42a0de/CPLEXSolve.java/clean/streams/src/at/dms/kjc/linprog/CPLEXSolve.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3164,
1876,
5555,
3875,
1488,
1435,
1216,
467,
383,
503,
16,
1860,
288,
202,
759,
1221,
938,
202,
45,
383,
39,
7179,
938,
273,
394,
467,
383,
39,
7179,
5621,
202,
759,
309,
1915,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3164,
1876,
5555,
3875,
1488,
1435,
1216,
467,
383,
503,
16,
1860,
288,
202,
759,
1221,
938,
202,
45,
383,
39,
7179,
938,
273,
394,
467,
383,
39,
7179,
5621,
202,
759,
309,
1915,
... |
Object errArgs[] = { names[0] }; throw Context.reportRuntimeError( Context.getMessage("msg.nonjava.method", errArgs)); | throw Context.reportRuntimeError1( "msg.nonjava.method", names[0]); | public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { // Find a method that matches the types given. if (methods.length == 0) { throw new RuntimeException("No methods defined for call"); } Method meth = (Method) findFunction(methods, args); if (meth == null) { Class c = methods[0].getDeclaringClass(); String sig = c.getName() + "." + names[0] + "(" + scriptSignature(args) + ")"; Object errArgs[] = { sig }; throw Context.reportRuntimeError( Context.getMessage("msg.java.no_such_method", errArgs)); } // OPT: already retrieved in findFunction, so we should inline that // OPT: or pass it back somehow Class paramTypes[] = meth.getParameterTypes(); // First, we marshall the args. for (int i = 0; i < args.length; i++) { args[i] = NativeJavaObject.coerceType(paramTypes[i], args[i]); } Object javaObject; if (Modifier.isStatic(meth.getModifiers())) { javaObject = null; // don't need an object } else { Scriptable o = thisObj; while (!(o instanceof Wrapper)) { o = o.getPrototype(); if (o == null) { Object errArgs[] = { names[0] }; throw Context.reportRuntimeError( Context.getMessage("msg.nonjava.method", errArgs)); } } javaObject = ((Wrapper) o).unwrap(); } try { if (debug) { printDebug("Calling ", meth, args); } Object retval = meth.invoke(javaObject, args); Class staticType = meth.getReturnType(); if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } Object wrapped = NativeJavaObject.wrap(scope, retval, staticType); if (debug) { Class actualType = (wrapped == null) ? null : wrapped.getClass(); System.err.println(" ----- Wrapped as " + wrapped + " class = " + actualType); } if (wrapped == Undefined.instance) return wrapped; if (wrapped == null && staticType == Void.TYPE) return Undefined.instance; return wrapped; } catch (IllegalAccessException accessEx) { throw Context.reportRuntimeError(accessEx.getMessage()); } catch (InvocationTargetException e) { throw JavaScriptException.wrapException(scope, e); } } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/45820b15541f8822cc8d463aa50caef2201b19b4/NativeJavaMethod.java/buggy/src/org/mozilla/javascript/NativeJavaMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
368,
4163,
279,
707,
716,
1885,
326,
1953,
864,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
368,
4163,
279,
707,
716,
1885,
326,
1953,
864,... |
tc.addSelectionListener(headerListener); | tc.addSelectionListener(getHeaderListener()); tc.setData(fields[i]); | protected void createColumns(final Tree tree) { SelectionListener headerListener = getHeaderListener(); TableLayout layout = new TableLayout(); tree.setLayout(layout); tree.setHeaderVisible(true); final IField[] fields = getVisibleFields(); ColumnLayoutData[] columnWidths = getSavedColumnData(); for (int i = 0; i < fields.length; i++) { layout.addColumnData(columnWidths[i]); TreeColumn tc = new TreeColumn(tree, SWT.NONE, i); tc.setText(fields[i].getColumnHeaderText()); tc.setImage(fields[i].getColumnHeaderImage()); tc.setResizable(columnWidths[i].resizable); tc.addSelectionListener(headerListener); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2bc2f7e05493c8f842d6d73cc7cb85357120cefd/TableView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3380,
12,
6385,
4902,
2151,
13,
288,
202,
202,
6233,
2223,
1446,
2223,
273,
7911,
2223,
5621,
202,
202,
1388,
3744,
3511,
273,
394,
3555,
3744,
5621,
202,
202,
3413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3380,
12,
6385,
4902,
2151,
13,
288,
202,
202,
6233,
2223,
1446,
2223,
273,
7911,
2223,
5621,
202,
202,
1388,
3744,
3511,
273,
394,
3555,
3744,
5621,
202,
202,
3413,
... |
reportStatus(myWCAccess.getTarget(), myTarget, false, myIsRecursive); | myIsIncludeIgnored = true; reportStatus(myWCAccess.getAnchor(), myTarget, false, myIsRecursive); | public SVNCommitInfo closeEdit() throws SVNException { if (myIsRootOpened) { return new SVNCommitInfo(myTargetRevision, null, null); } if (myTarget != null) { File file = myWCAccess.getAnchor().getFile(myTarget, false); if (file.isDirectory()) { SVNEntries entries = myWCAccess.getAnchor().getEntries(); SVNEntry entry = entries.getEntry(myTarget); entries.close(); if (entry != null) { reportStatus(myWCAccess.getTarget(), null, false, myIsRecursive); } else { reportStatus(myWCAccess.getTarget(), myTarget, false, myIsRecursive); } } else { reportStatus(myWCAccess.getTarget(), myTarget, false, myIsRecursive); } } else { reportStatus(myWCAccess.getAnchor(), null, false, myIsRecursive); } return null; } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/e0add54b126f78258e6051c7ffe315e3ae0fb173/SVNStatusEditor.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNStatusEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
5580,
966,
1746,
4666,
1435,
1216,
29537,
50,
503,
288,
3639,
309,
261,
4811,
2520,
2375,
23115,
13,
288,
5411,
327,
394,
29537,
50,
5580,
966,
12,
4811,
2326,
7939,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
5580,
966,
1746,
4666,
1435,
1216,
29537,
50,
503,
288,
3639,
309,
261,
4811,
2520,
2375,
23115,
13,
288,
5411,
327,
394,
29537,
50,
5580,
966,
12,
4811,
2326,
7939,
16,
... |
DomElement domElement = selectedNode.getDomElement(); text += " " + selectedNode.getChildDescription().getCommonPresentableName(domElement); | final Type type = selectedNode.getChildDescription().getType(); text += " " + ElementPresentationManager.getTypeName(DomUtil.getRawType(type)); | protected String getActionText(final AnActionEvent e) { String text = "Add"; if (e.getPresentation().isEnabled()) { final DomElementsGroupNode selectedNode = getDomElementsGroupNode(getTreeView(e)); DomElement domElement = selectedNode.getDomElement();// final Type type = selectedNode.getChildDescription().getType(); text += " " + selectedNode.getChildDescription().getCommonPresentableName(domElement); //ElementPresentationManager.getElementName(DomUtil.getRawType(type)); } return text; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/fef0558b3036d98dce13cf4e97e84391759a2c97/AddElementInCollectionAction.java/clean/source/com/intellij/util/xml/tree/actions/AddElementInCollectionAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
4750,
514,
12473,
1528,
12,
6385,
1922,
1803,
1133,
425,
13,
288,
282,
514,
977,
273,
315,
986,
14432,
282,
309,
261,
73,
18,
588,
6351,
367,
7675,
291,
1526,
10756,
288,
1377,
727,
129... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
514,
12473,
1528,
12,
6385,
1922,
1803,
1133,
425,
13,
288,
282,
514,
977,
273,
315,
986,
14432,
282,
309,
261,
73,
18,
588,
6351,
367,
7675,
291,
1526,
10756,
288,
1377,
727,
129... |
this.setup=setup; this.vars=vars; | this.setup=setup; this.vars=vars; | public CflowResidue(CflowSetup setup,List vars) { this.setup=setup; this.vars=vars; this.useCounter=setup.useCounter(); } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/0c9a2d99652f79aa6b9face03004bbd9ea430db5/CflowResidue.java/buggy/aop/abc/src/abc/weaving/residues/CflowResidue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
385,
2426,
607,
23965,
12,
39,
2426,
7365,
3875,
16,
682,
4153,
13,
288,
202,
2211,
18,
8401,
33,
8401,
31,
202,
2211,
18,
4699,
33,
4699,
31,
3639,
333,
18,
1202,
4789,
33,
840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
385,
2426,
607,
23965,
12,
39,
2426,
7365,
3875,
16,
682,
4153,
13,
288,
202,
2211,
18,
8401,
33,
8401,
31,
202,
2211,
18,
4699,
33,
4699,
31,
3639,
333,
18,
1202,
4789,
33,
840... |
if (keySequence == null) throw new NullPointerException(); | if (keySequence == null) { throw new NullPointerException(); } | public KeySequenceBinding(KeySequence keySequence, int match) { if (keySequence == null) throw new NullPointerException(); if (match < 0) throw new IllegalArgumentException(); this.keySequence = keySequence; this.match = match; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/KeySequenceBinding.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeySequenceBinding.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1929,
4021,
5250,
12,
653,
4021,
498,
4021,
16,
509,
845,
13,
288,
3639,
309,
261,
856,
4021,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
309,
261,
1916,
411,
374,
13,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1929,
4021,
5250,
12,
653,
4021,
498,
4021,
16,
509,
845,
13,
288,
3639,
309,
261,
856,
4021,
422,
446,
13,
5411,
604,
394,
10108,
5621,
3639,
309,
261,
1916,
411,
374,
13,
5411,
... |
return new CPPASTArrayModifier(); } | return new CPPASTArrayModifier(); } | protected IASTArrayModifier createArrayModifier() { return new CPPASTArrayModifier(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8b59056395eb6c26e898030e7e1cd1b78d4db999/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
1076,
9829,
752,
1076,
9829,
1435,
288,
1377,
327,
394,
5181,
4066,
882,
1076,
9829,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
1076,
9829,
752,
1076,
9829,
1435,
288,
1377,
327,
394,
5181,
4066,
882,
1076,
9829,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public imcode.server.user.User getUser( String loginName ) { imcode.server.user.User result = null; | public User getUser( String loginName ) { User result = null; | public imcode.server.user.User getUser( String loginName ) { imcode.server.user.User result = null; final String attributeName = "samaccountname="; final String mappingString = attributeName + loginName; NamingEnumeration enum = null; try { enum = ctx.search( "", mappingString, null ); if( enum != null && enum.hasMore() ) { imcode.server.user.User result11 = null; SearchResult searchResult = (SearchResult)enum.nextElement(); NamingEnumeration attribEnum = searchResult.getAttributes().getAll(); result11 = mapAllPossibleAttributes( attribEnum ); result11.setLoginName( loginName ); result = result11; } } catch( NamingException e ) { | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2c153c8ba9f15a995621f4851cbf148fd06a77c4/LdapUserMapper.java/buggy/server/src/imcode/server/user/LdapUserMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
709,
710,
18,
3567,
18,
1355,
18,
1299,
4735,
12,
514,
3925,
461,
262,
288,
1377,
709,
710,
18,
3567,
18,
1355,
18,
1299,
563,
273,
446,
31,
1377,
727,
514,
9734,
273,
315,
2035... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
709,
710,
18,
3567,
18,
1355,
18,
1299,
4735,
12,
514,
3925,
461,
262,
288,
1377,
709,
710,
18,
3567,
18,
1355,
18,
1299,
563,
273,
446,
31,
1377,
727,
514,
9734,
273,
315,
2035... |
Connection con = null; PreparedStatement pstmt = null; try { con = DbConnectionManager.getConnection(); pstmt = con.prepareStatement(DELETE_PRIVACY_LISTS); pstmt.setString(1, username); pstmt.executeUpdate(); } catch (Exception e) { Log.error("Error deleting privacy lists of username: " + username, e); } finally { try { if (pstmt != null) { pstmt.close(); } } catch (Exception e) { Log.error(e); } try { if (con != null) { con.close(); } } catch (Exception e) { Log.error(e); } } | public void deletePrivacyLists(String username) { Connection con = null; PreparedStatement pstmt = null; try { con = DbConnectionManager.getConnection(); pstmt = con.prepareStatement(DELETE_PRIVACY_LISTS); pstmt.setString(1, username); pstmt.executeUpdate(); } catch (Exception e) { Log.error("Error deleting privacy lists of username: " + username, e); } finally { try { if (pstmt != null) { pstmt.close(); } } catch (Exception e) { Log.error(e); } try { if (con != null) { con.close(); } } catch (Exception e) { Log.error(e); } } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/7e4a3aa5147f0e6e563081e1ad67cb8de96075be/PrivacyListProvider.java/buggy/ZimbraServer/src/java/com/zimbra/cs/im/xmpp/srv/privacy/PrivacyListProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
15475,
3505,
7432,
12,
780,
2718,
13,
288,
3639,
4050,
356,
273,
446,
31,
3639,
16913,
293,
10589,
273,
446,
31,
3639,
775,
288,
5411,
356,
273,
8408,
1952,
1318,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
15475,
3505,
7432,
12,
780,
2718,
13,
288,
3639,
4050,
356,
273,
446,
31,
3639,
16913,
293,
10589,
273,
446,
31,
3639,
775,
288,
5411,
356,
273,
8408,
1952,
1318,
18,
5... | |
if ( synPredMatched532 ) { | if ( synPredMatched534 ) { | public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; inAttributeContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: if ((LA(1)=='(') && (LA(2)==':') && ((LA(3) >= '\u0003' && LA(3) <= '\ufffe')) && ((LA(4) >= '\u0003' && LA(4) <= '\ufffe'))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { String comment = new String(text.getBuffer(),_begin,text.length()-_begin); for (int i = 0; i < comment.length(); i++) { if (comment.charAt(i) == '\n') newline(); } _ttype = Token.SKIP; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='-')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { String data = new String(text.getBuffer(),_begin,text.length()-_begin); parseLinefeeds(data); _ttype = XML_COMMENT; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='[')) { mXML_CDATA(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA; } } else { boolean synPredMatched532 = false; if (((_tokenSet_14.member(LA(1))) && (_tokenSet_15.member(LA(2))) && (_tokenSet_16.member(LA(3))) && (true))) { int _m532 = mark(); synPredMatched532 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched532 = false; } rewind(_m532); inputState.guessing--; } if ( synPredMatched532 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else { boolean synPredMatched541 = false; if (((_tokenSet_14.member(LA(1))) && (_tokenSet_15.member(LA(2))) && (_tokenSet_16.member(LA(3))) && (true))) { int _m541 = mark(); synPredMatched541 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_2.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched541 = false; } rewind(_m541); inputState.guessing--; } if ( synPredMatched541 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA_END; } } else { boolean synPredMatched527 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m527 = mark(); synPredMatched527 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched527 = false; } rewind(_m527); inputState.guessing--; } if ( synPredMatched527 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='\'') && (LA(2)=='\'') && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mESCAPE_APOS(false); if ( inputState.guessing==0 ) { _ttype = ESCAPE_APOS; } } else if (((LA(1)=='"') && (LA(2)=='"') && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mESCAPE_QUOT(false); if ( inputState.guessing==0 ) { _ttype = ESCAPE_QUOT; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched529 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m529 = mark(); synPredMatched529 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched529 = false; } rewind(_m529); inputState.guessing--; } if ( synPredMatched529 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='(') && (LA(2)=='#') && (true) && (true)) { mPRAGMA_START(false); if ( inputState.guessing==0 ) { _ttype = PRAGMA_START; } } else if (((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' '||LA(1)=='#') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( inPragma )) { mPRAGMA_END(false); if ( inputState.guessing==0 ) { inPragma = false; _ttype = PRAGMA_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_8.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mQUOT_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = QUOT_ATTRIBUTE_CONTENT; } } else if (((_tokenSet_9.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mAPOS_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = APOS_ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((LA(1)=='\'') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mAPOS(false); if ( inputState.guessing==0 ) { _ttype = APOS; } } else if (((_tokenSet_17.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if (((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true))&&( !inPragma )) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_18.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched534 = false; if (((_tokenSet_14.member(LA(1))) && (true) && (true) && (true))) { int _m534 = mark(); synPredMatched534 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched534 = false; } rewind(_m534); inputState.guessing--; } if ( synPredMatched534 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched536 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m536 = mark(); synPredMatched536 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched536 = false; } rewind(_m536); inputState.guessing--; } if ( synPredMatched536 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched543 = false; if (((_tokenSet_14.member(LA(1))) && (true) && (true) && (true))) { int _m543 = mark(); synPredMatched543 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched543 = false; } rewind(_m543); inputState.guessing--; } if ( synPredMatched543 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_2.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ce8b3af89ca1836e7de5c4b3c7110a9e9001a4e4/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
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,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
3... |
protected IStatus run(IProgressMonitor monitor) { monitor.beginTask(JOB_LABEL, queries.size()); for (AbstractRepositoryQuery repositoryQuery : queries) { // if (repositoryQuery.isSynchronizing()) // continue; repositoryQuery.setStatus(null); monitor.setTaskName("Synchronizing: " + repositoryQuery.getSummary()); setProperty(IProgressConstants.ICON_PROPERTY, TaskListImages.REPOSITORY_SYNCHRONIZE); // repositoryQuery.setCurrentlySynchronizing(true); TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository( repositoryQuery.getRepositoryKind(), repositoryQuery.getRepositoryUrl()); if (repository == null) { repositoryQuery.setStatus(new Status(Status.ERROR, TasksUiPlugin.PLUGIN_ID, "No task repository found: " + repositoryQuery.getRepositoryUrl())); } else { QueryHitCollector collector = new QueryHitCollector(TasksUiPlugin.getTaskListManager().getTaskList()); IStatus resultingStatus = connector.performQuery(repositoryQuery, repository, monitor, collector); if (resultingStatus.getException() == null) { repositoryQuery.updateHits(collector.getHits(), taskList); if (synchTasks) { // TODO: Should sync changed per repository not per // query TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, repository); } } else { // MylarStatusHandler.log(resultingStatus); repositoryQuery.setStatus(resultingStatus); } } repositoryQuery.setCurrentlySynchronizing(false); if (repositoryQuery.getStatus() == null) { repositoryQuery.setLastRefreshTimeStamp(DateUtil.getFormattedDate(new Date(), "MMM d, H:mm:ss")); } TasksUiPlugin.getTaskListManager().getTaskList().notifyContainerUpdated(repositoryQuery); monitor.worked(1); } if (queries != null && queries.size() > 0) { taskList.removeOrphanedHits(); } return Status.OK_STATUS; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/02903aa5e61e7efe10c5c6414e6a05339714e429/SynchronizeQueryJob.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/SynchronizeQueryJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
45,
1482,
2681,
12,
45,
5491,
11415,
305,
535,
4089,
15329,
202,
202,
10259,
18,
10086,
2174,
12,
18321,
67,
13545,
16,
13748,
18,
1467,
10663,
202,
202,
1884,
12,
7469,
3305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
45,
1482,
2681,
12,
45,
5491,
11415,
305,
535,
4089,
15329,
202,
202,
10259,
18,
10086,
2174,
12,
18321,
67,
13545,
16,
13748,
18,
1467,
10663,
202,
202,
1884,
12,
7469,
3305,
... | ||
public synchronized void setIsLoggedIn(boolean paramLoggedIn) { if (this.isLoggedIn() != paramLoggedIn) { boolean old = this.loggedIn; this.loggedIn = paramLoggedIn; if (paramLoggedIn) { if(this.isGuest()){ this.userAdministration.incNumCurrentGuests(); } else{ this.userAdministration.incNumCurrentUsers(); } Debug.println(this.getName() + " logged in"); } else { this.setCurrentChannel(null); this.setClientServant(null); if (this.isGuest()) { this.userAdministration.decNumCurrentGuests(); this.userAdministration.removeFromUserList(this); } else{ this.userAdministration.decNumCurrentUsers(); } } } } | 12294 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12294/abb9084b89bce506f983c16455fe6c39c7dcb50d/User.java/clean/implementation/Server/User.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
22043,
6459,
542,
2520,
29327,
12,
6494,
891,
29327,
15329,
430,
12,
2211,
18,
291,
29327,
1435,
5,
33,
891,
29327,
15329,
6494,
1673,
33,
2211,
18,
19385,
382,
31,
2211,
18,
19385,
382,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
22043,
6459,
542,
2520,
29327,
12,
6494,
891,
29327,
15329,
430,
12,
2211,
18,
291,
29327,
1435,
5,
33,
891,
29327,
15329,
6494,
1673,
33,
2211,
18,
19385,
382,
31,
2211,
18,
19385,
382,... | ||
anticipateDown(node1); anticipateDown(reparentedIface); | anticipateDown(node2); | public void testInterfaceReparented() { m_pollerConfig.setNodeOutageProcessingEnabled(true); MockNode node1 = m_network.getNode(1); MockNode node2 = m_network.getNode(2); MockInterface node1Iface = m_network.getInterface(1, "192.168.1.1"); MockInterface reparentedIface = m_network.getInterface(1, "192.168.1.2"); MockInterface node2Iface = m_network.getInterface(2, "192.168.1.3"); Event reparentEvent = MockUtil.createReparentEvent("Test", "192.168.1.2", 1, 2); // we are going to reparent to node 2 so when we bring down its only // current interface we expect an interface down not the whole node. anticipateDown(node2Iface); startDaemons(); // move the reparted interface and send a reparented event m_db.reparentInterface(reparentedIface.getIpAddr(), reparentedIface.getNodeId(), node2.getNodeId()); reparentedIface.moveTo(node2); m_eventMgr.sendEventToListeners(reparentEvent); // now bring down the other interface on the new node // System.err.println("Bring Down:"+node2Iface); node2Iface.bringDown(); verifyAnticipated(2000); // FIXME: the event below is the CORRECT answer but the Poller isn't // doing that. I'm going to test for the INCORRECT answer so I can tell if I // change the behavior during refactoring. We now bring down the reparented // interface and we should get node2 down // m_anticipator.reset(); // m_anticipator.anticipateEvent(node2.createDownEvent()); resetAnticipated(); anticipateDown(node1); anticipateDown(reparentedIface); // FIXME: END INCORRECT BEHAVIOR HERE // System.err.println("Bring Down:"+reparentedIface); reparentedIface.bringDown(); sleep(5000); verifyAnticipated(6000); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/63ea02f21c3a123dc08712837e512664c4c6c32e/PollerTest.java/clean/src/services/org/opennms/netmgt/poller/PollerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1358,
426,
2938,
329,
1435,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
3767,
1769,
3639,
7867,
907,
756,
21,
273,
312,
67,
5185,
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,
1358,
426,
2938,
329,
1435,
288,
3639,
312,
67,
3915,
749,
809,
18,
542,
907,
1182,
410,
7798,
1526,
12,
3767,
1769,
3639,
7867,
907,
756,
21,
273,
312,
67,
5185,
18,
... |
synchronized(this) { if(cache) { try { chkDatastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); } | if(cache) { try { chkDatastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); | public void realPutCHK(ClientCHKBlock block, boolean cache) throws LowLevelPutException { byte[] data = block.getData(); byte[] headers = block.getHeaders(); PartiallyReceivedBlock prb = new PartiallyReceivedBlock(PACKETS_IN_BLOCK, PACKET_SIZE, data); CHKInsertSender is; long uid = random.nextLong(); if(!lockUID(uid)) { Logger.error(this, "Could not lock UID just randomly generated: "+uid+" - probably indicates broken PRNG"); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); } long startTime = System.currentTimeMillis(); synchronized(this) { if(cache) { try { chkDatastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); } } is = makeInsertSender((NodeCHK)block.getClientKey().getNodeKey(), MAX_HTL, uid, null, headers, prb, false, lm.getLocation().getValue(), cache); } boolean hasForwardedRejectedOverload = false; // Wait for status while(true) { synchronized(is) { if(is.getStatus() == CHKInsertSender.NOT_FINISHED) { try { is.wait(5*1000); } catch (InterruptedException e) { // Ignore } } if(is.getStatus() != CHKInsertSender.NOT_FINISHED) break; } if((!hasForwardedRejectedOverload) && is.receivedRejectedOverload()) { hasForwardedRejectedOverload = true; throttleWindow.rejectedOverload(); } } // Wait for completion while(true) { synchronized(is) { if(is.completed()) break; try { is.wait(10*1000); } catch (InterruptedException e) { // Go around again } } if(is.anyTransfersFailed() && (!hasForwardedRejectedOverload)) { hasForwardedRejectedOverload = true; // not strictly true but same effect throttleWindow.rejectedOverload(); } } Logger.minor(this, "Completed "+uid+" overload="+hasForwardedRejectedOverload+" "+is.getStatusString()); // Finished? if(!hasForwardedRejectedOverload) { // Is it ours? Did we send a request? if(is.sentRequest() && is.uid == uid && (is.getStatus() == CHKInsertSender.ROUTE_NOT_FOUND || is.getStatus() == CHKInsertSender.SUCCESS)) { // It worked! long endTime = System.currentTimeMillis(); long len = endTime - startTime; chkInsertThrottle.successfulCompletion(len); throttleWindow.requestCompleted(); } } if(is.getStatus() == CHKInsertSender.SUCCESS) { Logger.normal(this, "Succeeded inserting "+block); return; } else { int status = is.getStatus(); String msg = "Failed inserting "+block+" : "+is.getStatusString(); if(status == CHKInsertSender.ROUTE_NOT_FOUND) msg += " - this is normal on small networks; the data will still be propagated, but it can't find the 20+ nodes needed for full success"; if(is.getStatus() != CHKInsertSender.ROUTE_NOT_FOUND) Logger.error(this, msg); else Logger.normal(this, msg); switch(is.getStatus()) { case CHKInsertSender.NOT_FINISHED: Logger.error(this, "IS still running in putCHK!: "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); case CHKInsertSender.GENERATED_REJECTED_OVERLOAD: case CHKInsertSender.TIMED_OUT: throw new LowLevelPutException(LowLevelPutException.REJECTED_OVERLOAD); case CHKInsertSender.ROUTE_NOT_FOUND: throw new LowLevelPutException(LowLevelPutException.ROUTE_NOT_FOUND); case CHKInsertSender.ROUTE_REALLY_NOT_FOUND: throw new LowLevelPutException(LowLevelPutException.ROUTE_REALLY_NOT_FOUND); case CHKInsertSender.INTERNAL_ERROR: throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); default: Logger.error(this, "Unknown CHKInsertSender code in putCHK: "+is.getStatus()+" on "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); } } } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/79d31585331089fa241bcabc60a642461fd7972a/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
6426,
1792,
47,
12,
1227,
1792,
47,
1768,
1203,
16,
1250,
1247,
13,
1216,
23629,
2355,
6426,
503,
288,
202,
202,
7229,
8526,
501,
273,
1203,
18,
588,
751,
5621,
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,
2863,
6426,
1792,
47,
12,
1227,
1792,
47,
1768,
1203,
16,
1250,
1247,
13,
1216,
23629,
2355,
6426,
503,
288,
202,
202,
7229,
8526,
501,
273,
1203,
18,
588,
751,
5621,
202... |
protected Binding getBinding(HttpServletRequest request, HttpServletResponse response, Writer out) throws IOException { // Set up the script context Binding binding = new Binding(); GroovyObject controller = (GroovyObject)request.getAttribute(GrailsApplicationAttributes.CONTROLLER); if(controller!=null) { binding.setVariable(GroovyPage.REQUEST, controller.getProperty(ControllerDynamicMethods.REQUEST_PROPERTY)); binding.setVariable(GroovyPage.RESPONSE, controller.getProperty(ControllerDynamicMethods.RESPONSE_PROPERTY)); binding.setVariable(GroovyPage.FLASH, controller.getProperty(ControllerDynamicMethods.FLASH_SCOPE_PROPERTY)); binding.setVariable(GroovyPage.SERVLET_CONTEXT, context); ApplicationContext appContext = (ApplicationContext)context.getAttribute(GrailsApplicationAttributes.APPLICATION_CONTEXT); binding.setVariable(GroovyPage.APPLICATION_CONTEXT, appContext); binding.setVariable(GrailsApplication.APPLICATION_ID, appContext.getBean(GrailsApplication.APPLICATION_ID)); binding.setVariable(GrailsApplicationAttributes.CONTROLLER, controller); binding.setVariable(GroovyPage.SESSION, controller.getProperty(GetSessionDynamicProperty.PROPERTY_NAME)); binding.setVariable(GroovyPage.PARAMS, controller.getProperty(GetParamsDynamicProperty.PROPERTY_NAME)); binding.setVariable(GroovyPage.OUT, out); } else { // if there is no controller in the request configure using existing attributes, creating objects where necessary GrailsApplicationAttributes attrs = (GrailsApplicationAttributes)request.getAttribute(GrailsApplicationAttributes.REQUEST_SCOPE_ID); binding.setVariable(GroovyPage.REQUEST, request); binding.setVariable(GroovyPage.RESPONSE, response); binding.setVariable(GroovyPage.FLASH, attrs.getFlashScope(request)); binding.setVariable(GroovyPage.SERVLET_CONTEXT, context); ApplicationContext appContext = (ApplicationContext)context.getAttribute(GrailsApplicationAttributes.APPLICATION_CONTEXT); binding.setVariable(GroovyPage.APPLICATION_CONTEXT, appContext); binding.setVariable(GrailsApplication.APPLICATION_ID, appContext.getBean(GrailsApplication.APPLICATION_ID)); binding.setVariable(GroovyPage.SESSION, request.getSession()); binding.setVariable(GroovyPage.PARAMS, new GrailsParameterMap(request)); binding.setVariable(GroovyPage.OUT, out); } // Go through request attributes and add them to the binding as the model for (Enumeration attributeEnum = request.getAttributeNames(); attributeEnum.hasMoreElements();) { String key = (String) attributeEnum.nextElement(); if(!binding.getVariables().containsKey(key)) { binding.setVariable( key, request.getAttribute(key) ); } } for (Iterator i = additionalBinding.keySet().iterator(); i.hasNext();) { String key = (String)i.next(); binding.setVariable(key, additionalBinding.get(key)); } return binding; } // getBinding() | 52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/8f437ade5e2fd07aeb51b071528e08fc29c1a205/GroovyPagesTemplateEngine.java/buggy/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesTemplateEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
15689,
29471,
12,
2940,
18572,
590,
16,
12446,
766,
16,
5497,
596,
13,
7734,
1216,
1860,
288,
5411,
368,
1000,
731,
326,
2728,
819,
5411,
15689,
5085,
273,
394,
15689,
5621,
13491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
15689,
29471,
12,
2940,
18572,
590,
16,
12446,
766,
16,
5497,
596,
13,
7734,
1216,
1860,
288,
5411,
368,
1000,
731,
326,
2728,
819,
5411,
15689,
5085,
273,
394,
15689,
5621,
13491,
... | ||
assertCheckBoxBinding(checkBox, "flag", testBean.isFlag()); } | assertCheckBoxBinding(checkBox, "flag", testBean.isFlag()); } | public void testBindCheckBox() { try { formModel.bind(new JCheckBox(), "stringProperty"); fail("Should throw IllegalArgumentException"); } catch (IllegalArgumentException e) { pass(); } JCheckBox checkBox = new JCheckBox(); checkBox = formModel.bind(checkBox, "flag"); assertCheckBoxBinding(checkBox, "flag", testBean.isFlag()); } | 55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/1ca92818155f3e0a4aed29e15c396b3c749e2b10/SwingFormModelTests.java/clean/test/org/springframework/richclient/forms/SwingFormModelTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3357,
19174,
1435,
288,
3639,
775,
288,
5411,
646,
1488,
18,
4376,
12,
2704,
804,
19174,
9334,
315,
1080,
1396,
8863,
5411,
2321,
2932,
14309,
604,
2754,
8863,
3639,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3357,
19174,
1435,
288,
3639,
775,
288,
5411,
646,
1488,
18,
4376,
12,
2704,
804,
19174,
9334,
315,
1080,
1396,
8863,
5411,
2321,
2932,
14309,
604,
2754,
8863,
3639,
289,
... |
return getRuby().getFalse(); } | return getRuby().getFalse(); } | public RubyBoolean int_p() { return getRuby().getFalse(); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/clean/org/jruby/RubyNumeric.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
509,
67,
84,
1435,
288,
3639,
327,
4170,
10340,
7675,
588,
8381,
5621,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
509,
67,
84,
1435,
288,
3639,
327,
4170,
10340,
7675,
588,
8381,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return CharOperation.NO_CHAR; | return name; | public static final char[] concatWith(char[][] array, char separator) { int length = array == null ? 0 : array.length; if (length == 0) return CharOperation.NO_CHAR; int size = length - 1; int index = length; while (--index >= 0) { if (array[index].length == 0) size--; else size += array[index].length; } if (size <= 0) return CharOperation.NO_CHAR; char[] result = new char[size]; index = length; while (--index >= 0) { length = array[index].length; if (length > 0) { System.arraycopy( array[index], 0, result, (size -= length), length); if (--size >= 0) result[size] = separator; } } return result; } | 12408 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12408/97695ccc3a078d804bc7df2ed83ae543abea2e44/CharOperation.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
1149,
8526,
3835,
1190,
12,
3001,
63,
6362,
65,
526,
16,
1149,
4182,
13,
288,
202,
202,
474,
769,
273,
526,
422,
446,
692,
374,
294,
526,
18,
2469,
31,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
1149,
8526,
3835,
1190,
12,
3001,
63,
6362,
65,
526,
16,
1149,
4182,
13,
288,
202,
202,
474,
769,
273,
526,
422,
446,
692,
374,
294,
526,
18,
2469,
31,
202,
202,
... |
if (((++bytecount) & 0x3f) == 0) | if ((++ bytecount) % 64 == 0) | public void engineUpdate (byte b) { int i = ((int)bytecount) & 0x3f; //wgs int shift = (3 - i % 4) << 3; int idx = i / 4; i = (int)b; W[idx] = (W[idx] & ~(0xff << shift)) | ((i & 0xff) << shift); // if we've filled up a block, then process it if (((++bytecount) & 0x3f) == 0) munch (); } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/f0fa0d7593a4096ea9c1b26389ec4bb1431e5631/SHA.java/buggy/libjava/gnu/java/security/provider/SHA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4073,
1891,
261,
7229,
324,
13,
225,
288,
565,
509,
277,
273,
14015,
474,
13,
1637,
14537,
592,
13,
473,
374,
92,
23,
74,
31,
368,
91,
564,
565,
509,
4654,
273,
261,
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,
282,
1071,
918,
4073,
1891,
261,
7229,
324,
13,
225,
288,
565,
509,
277,
273,
14015,
474,
13,
1637,
14537,
592,
13,
473,
374,
92,
23,
74,
31,
368,
91,
564,
565,
509,
4654,
273,
261,
23,
... |
try { return Integer.parseInt( buildNumber ); } catch( final NumberFormatException nfe ) { final String message = | try { return Integer.parseInt(buildNumber); } catch (final NumberFormatException nfe) { final String message = | private int getBuildNumber( final Properties properties ) throws BuildException { final String buildNumber = properties.getProperty( DEFAULT_PROPERTY_NAME, "0" ).trim(); // Try parsing the line into an integer. try { return Integer.parseInt( buildNumber ); } catch( final NumberFormatException nfe ) { final String message = m_file + " contains a non integer build number: " + buildNumber; throw new BuildException( message , nfe ); } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/6154080061f869b4e425d608da3bd61fad967564/BuildNumber.java/buggy/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
21122,
1854,
12,
727,
6183,
1790,
262,
3639,
1216,
18463,
565,
288,
3639,
727,
514,
1361,
1854,
273,
5411,
1790,
18,
588,
1396,
12,
3331,
67,
9900,
67,
1985,
16,
315,
20,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
21122,
1854,
12,
727,
6183,
1790,
262,
3639,
1216,
18463,
565,
288,
3639,
727,
514,
1361,
1854,
273,
5411,
1790,
18,
588,
1396,
12,
3331,
67,
9900,
67,
1985,
16,
315,
20,
6,
... |
getContentPane().add(genButton); genButton.setBounds(30, 20, 75, 23); | getContentPane().add(jButton1, java.awt.BorderLayout.NORTH); | private void initComponents() { genButton = new javax.swing.JButton(); getContentPane().setLayout(null); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setFocusCycleRoot(false); setName("LoggingPrototype"); genButton.setText("generate"); genButton.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { genButtonMouseClicked(evt); } }); getContentPane().add(genButton); genButton.setBounds(30, 20, 75, 23); pack(); } | 10434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10434/deaf39f5fd53e602ee119c0e78ba328efa14917e/guiLogging.java/clean/trunk/src/mockups/guiLogging.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
3639,
3157,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
5154,
8485,
7675,
542,
3744,
12,
2011,
1769,
3639,
9277,
4605,
2988,
12,
28384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
7171,
1435,
288,
3639,
3157,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
3639,
5154,
8485,
7675,
542,
3744,
12,
2011,
1769,
3639,
9277,
4605,
2988,
12,
28384... |
public void setPrototypeName(String _prototypeName) { | public void setPrototypeName(String _prototypeName, boolean _updateFromPrototype) { boolean prototypeNameChanged = true; if (_prototypeName == null && myPrototypeName == null) { prototypeNameChanged = false; } else if ((_prototypeName != null && _prototypeName.equals(myPrototypeName)) || (myPrototypeName != null && myPrototypeName.equals(_prototypeName))) { prototypeNameChanged = false; } | public void setPrototypeName(String _prototypeName) { myPrototypeName = _prototypeName; } | 2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/7b8e2a977acbc867813917275995f613b061ec47/EOAttribute.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOAttribute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
15846,
461,
12,
780,
389,
18541,
461,
16,
1250,
389,
2725,
1265,
15846,
13,
288,
1250,
4409,
461,
5033,
273,
638,
31,
309,
261,
67,
18541,
461,
422,
446,
597,
3399,
1584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
15846,
461,
12,
780,
389,
18541,
461,
16,
1250,
389,
2725,
1265,
15846,
13,
288,
1250,
4409,
461,
5033,
273,
638,
31,
309,
261,
67,
18541,
461,
422,
446,
597,
3399,
1584... |
TestCrawlCB cb = new TestCrawlCB(deadline); | TestCrawlCB cb = new TestCrawlCB(sem); | public void testNewContentCrawlCallbackReturnsCookie() { Deadline deadline = Deadline.in(TEN_SECONDS); String cookie = "cookie string"; MockCachedUrlSet cus = (MockCachedUrlSet)mau.getAUCachedUrlSet(); cus.addUrl(LINKLESS_PAGE, startUrl); TestCrawlCB cb = new TestCrawlCB(deadline); crawlManager.isCrawlingAU(mau, cb, cookie); while (!deadline.expired()) { try{ deadline.sleep(); } catch (InterruptedException ie) { } } assertEquals(cookie, (String)cb.getCookie()); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ada10c9875dbe8e0b662480381978c87da96262e/TestCrawlManagerImpl.java/buggy/test/src/org/lockss/crawler/TestCrawlManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1908,
1350,
39,
15161,
2428,
1356,
6151,
1435,
288,
565,
23967,
1369,
14096,
273,
23967,
1369,
18,
267,
12,
56,
1157,
67,
11609,
1769,
565,
514,
3878,
273,
315,
8417,
533... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1908,
1350,
39,
15161,
2428,
1356,
6151,
1435,
288,
565,
23967,
1369,
14096,
273,
23967,
1369,
18,
267,
12,
56,
1157,
67,
11609,
1769,
565,
514,
3878,
273,
315,
8417,
533... |
if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } else if(GrailsClassUtils.isDomainClass( relatedClassType )) { Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); } else { property.setPersistant(false); } } else { property.setPersistant(false); } } | if(relatedClassType != null) { property.setReferencedPropertyType(relatedClassType); if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } else if(GrailsClassUtils.isDomainClass( relatedClassType )) { Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); } else { property.setPersistant(false); } } else { property.setPersistant(false); } } | private void establishRelationshipForSet(DefaultGrailsDomainClassProperty property) { // is it a relationship Class relatedClassType = getRelatedClassType( property.getName() ); if(relatedClassType != null) { // set the referenced type in the property property.setReferencedPropertyType(relatedClassType); // if the related class is the same as this class // its a circular one-to-many if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } // if the related type is a domain class // then figure out what kind of relationship it is else if(GrailsClassUtils.isDomainClass( relatedClassType )) { // check the relationship defined in the referenced type // if it is also a Set/domain class etc. Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; // if the related type has a relationships map it may be a many-to-many // figure out if there is a many-to-many relationship defined if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; // retrieve the relationship property for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } // if there is one defined get the type if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } // otherwise figure out if there is a one-to-many relationship by retrieving any properties that are of the related type // if there is more than one property then (for the moment) ignore the relationship if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); } // otherwise set it to not persistent as you can't persist // relationships to non-domain classes else { property.setPersistant(false); } } else { // no relationship defined for set. // set not persistent property.setPersistant(false); } } | 52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/clean/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
202,
202,
759,
353,
518,
279,
5232,
202,
202,
797,
3746,
18328,
273,
21531,
18328,
12,
1272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18312,
8180,
1290,
694,
12,
1868,
14571,
14573,
3748,
797,
1396,
1272,
13,
288,
202,
202,
759,
353,
518,
279,
5232,
202,
202,
797,
3746,
18328,
273,
21531,
18328,
12,
1272... |
BeanProperty(Method getter, Method setter) | BeanProperty(MemberBox getter, MemberBox setter) | BeanProperty(Method getter, Method setter) { this.getter = getter; this.setter = setter; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/clean/js/rhino/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
7704,
1396,
12,
4419,
3514,
7060,
16,
8596,
3514,
7794,
13,
565,
288,
3639,
333,
18,
11990,
273,
7060,
31,
3639,
333,
18,
18062,
273,
7794,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
7704,
1396,
12,
4419,
3514,
7060,
16,
8596,
3514,
7794,
13,
565,
288,
3639,
333,
18,
11990,
273,
7060,
31,
3639,
333,
18,
18062,
273,
7794,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100... |
Fetcher fetcher = new Fetcher(nfs, directory, parsing); if (threadCount != -1) { fetcher.setThreadCount(threadCount); } setLogLevel(Level.parse(logLevel.toUpperCase())); if (showThreadID) { LogFormatter.setShowThreadIDs(showThreadID); } | Fetcher fetcher = new Fetcher(conf); | public static void main(String[] args) throws Exception { int threadCount = -1; String logLevel = "info"; boolean parsing = true; boolean showThreadID = false; String directory = null; String usage = "Usage: Fetcher (-local | -ndfs <namenode:port>) [-logLevel level] [-noParsing] [-showThreadID] [-threads n] <dir>"; if (args.length == 0) { System.err.println(usage); System.exit(-1); } int i = 0; NutchFileSystem nfs = NutchFileSystem.parseArgs(args, i); for (; i < args.length; i++) { // parse command line if (args[i] == null) { continue; } else if (args[i].equals("-threads")) { // found -threads option threadCount = Integer.parseInt(args[++i]); } else if (args[i].equals("-logLevel")) { logLevel = args[++i]; } else if (args[i].equals("-noParsing")) { parsing = false; } else if (args[i].equals("-showThreadID")) { showThreadID = true; } else // root is required parameter directory = args[i]; } Fetcher fetcher = new Fetcher(nfs, directory, parsing);// make a Fetcher if (threadCount != -1) { // set threadCount option fetcher.setThreadCount(threadCount); } // set log level setLogLevel(Level.parse(logLevel.toUpperCase())); if (showThreadID) { LogFormatter.setShowThreadIDs(showThreadID); } try { fetcher.run(); // run the Fetcher } finally { nfs.close(); } } | 46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/b8bd3f133b29d794833bdcffc1bfd0d41d421066/Fetcher.java/clean/src/java/org/apache/nutch/fetcher/Fetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
509,
2650,
1380,
273,
300,
21,
31,
565,
514,
16752,
273,
315,
1376,
14432,
565,
1250,
5811,
273,
638,
31,
565,
1250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
565,
509,
2650,
1380,
273,
300,
21,
31,
565,
514,
16752,
273,
315,
1376,
14432,
565,
1250,
5811,
273,
638,
31,
565,
1250,
... |
findParticipant(addrFrom, resourceFrom, nameFrom); | findAddParticipant(addrFrom, resourceFrom, nameFrom); | int addMessage(IMAddr addrFrom, String resourceFrom, String nameFrom, IMMessage msg) { // will trigger the add findParticipant(addrFrom, resourceFrom, nameFrom); mMessages.add(msg); return mMessages.size()+mFirstSeqNo; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/2271668c6ec4d846f281b65d3c119ac2b38532c1/IMChat.java/clean/ZimbraServer/src/java/com/zimbra/cs/im/IMChat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
16487,
12,
3445,
3178,
3091,
1265,
16,
514,
1058,
1265,
16,
514,
508,
1265,
16,
6246,
1079,
1234,
13,
565,
288,
3639,
368,
903,
3080,
326,
527,
3639,
1104,
986,
22540,
12,
4793,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
16487,
12,
3445,
3178,
3091,
1265,
16,
514,
1058,
1265,
16,
514,
508,
1265,
16,
6246,
1079,
1234,
13,
565,
288,
3639,
368,
903,
3080,
326,
527,
3639,
1104,
986,
22540,
12,
4793,
12... |
double optimizerEstimatedCost, GeneratedMethod closeCleanup) | double optimizerEstimatedCost) | public NoPutResultSet getProjectRestrictResultSet(NoPutResultSet source, GeneratedMethod restriction, GeneratedMethod projection, int resultSetNumber, GeneratedMethod constantRestriction, int mapRefItem, boolean reuseResult, boolean doesProjection, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException { return new ProjectRestrictResultSet(source, source.getActivation(), restriction, projection, resultSetNumber, constantRestriction, mapRefItem, reuseResult, doesProjection, optimizerEstimatedRowCount, optimizerEstimatedCost); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9e6e461e8a18e9d7ada381c5ec3e7568559831b5/GenericResultSetFactory.java/clean/java/engine/org/apache/derby/impl/sql/execute/GenericResultSetFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2631,
6426,
13198,
11080,
29371,
13198,
12,
2279,
6426,
13198,
1084,
16,
202,
202,
7823,
1305,
9318,
16,
3196,
202,
7823,
1305,
8106,
16,
509,
12168,
1854,
16,
202,
202,
7823,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2631,
6426,
13198,
11080,
29371,
13198,
12,
2279,
6426,
13198,
1084,
16,
202,
202,
7823,
1305,
9318,
16,
3196,
202,
7823,
1305,
8106,
16,
509,
12168,
1854,
16,
202,
202,
7823,
1... |
continue; } else if (val.isStringConstant()) { VM.sysWrite("TODO: should constant fold MethodIfCmp on StringConstant"); | } } else if (IfCmp2.conforms(s)) { if(processIfCmp2(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; } } else if (LookupSwitch.conforms(s)) { if(processLookupSwitch(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; } } else if (TableSwitch.conforms(s)) { if(processTableSwitch(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; } } else if (InlineGuard.conforms(s)) { if(processInlineGuard(ir, bb, s)) { branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; | public static boolean simplify(OPT_BasicBlock bb, OPT_IR ir) { boolean didSomething = false; for (OPT_InstructionEnumeration branches = bb.enumerateBranchInstructions(); branches.hasMoreElements();) { OPT_Instruction s = branches.next(); if (Goto.conforms(s)) { // nothing to do, but a common case so test first } else if (IfCmp.conforms(s)) { OPT_RegisterOperand guard = IfCmp.getGuardResult (s); OPT_Operand val1 = IfCmp.getVal1(s); OPT_Operand val2 = IfCmp.getVal2(s); { int cond = IfCmp.getCond(s).evaluate(val1, val2); if (cond != OPT_ConditionOperand.UNKNOWN) { // constant fold if (cond == OPT_ConditionOperand.TRUE) { // branch taken insertTrueGuard (s, guard); Goto.mutate(s, GOTO, IfCmp.getTarget(s)); removeBranchesAfterGotos(bb); } else { // branch not taken insertTrueGuard (s, guard); s.remove(); } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; continue; } } if (val1.isConstant() && !val2.isConstant()) { // Canonicalize by making second argument the constant IfCmp.setVal1(s, val2); IfCmp.setVal2(s, val1); IfCmp.setCond(s, IfCmp.getCond(s).flipOperands()); } if (val2.isIntConstant()) { // Tricks to get compare against zero. int value = ((OPT_IntConstantOperand)val2).value; OPT_ConditionOperand cond = IfCmp.getCond(s); if (value == 1) { if (cond.isLESS()) { IfCmp.setCond(s, OPT_ConditionOperand.LESS_EQUAL()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } else if (cond.isGREATER_EQUAL()) { IfCmp.setCond(s, OPT_ConditionOperand.GREATER()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } } else if (value == -1) { if (cond.isGREATER()) { IfCmp.setCond(s, OPT_ConditionOperand.GREATER_EQUAL()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } else if (cond.isLESS_EQUAL()) { IfCmp.setCond(s, OPT_ConditionOperand.LESS()); IfCmp.setVal2(s, new OPT_IntConstantOperand(0)); } } } } else if (IfCmp2.conforms(s)) { OPT_RegisterOperand guard = IfCmp2.getGuardResult (s); OPT_Operand val1 = IfCmp2.getVal1(s); OPT_Operand val2 = IfCmp2.getVal2(s); int cond1 = IfCmp2.getCond1(s).evaluate(val1, val2); int cond2 = IfCmp2.getCond2(s).evaluate(val1, val2); if (cond1 == OPT_ConditionOperand.TRUE) { // target 1 taken insertTrueGuard (s, guard); Goto.mutate(s, GOTO, IfCmp2.getTarget1(s)); removeBranchesAfterGotos(bb); } else if ((cond1 == OPT_ConditionOperand.FALSE) && (cond2 == OPT_ConditionOperand.TRUE)) { // target 2 taken insertTrueGuard (s, guard); Goto.mutate(s, GOTO, IfCmp2.getTarget2(s)); removeBranchesAfterGotos(bb); } else if ((cond1 == OPT_ConditionOperand.FALSE) && (cond2 == OPT_ConditionOperand.FALSE)) { // not taken insertTrueGuard (s, guard); s.remove(); } else if ((cond1 == OPT_ConditionOperand.FALSE) && (cond2 == OPT_ConditionOperand.UNKNOWN)) { // target 1 not taken, simplify test to ifcmp IfCmp.mutate(s, INT_IFCMP, guard, val1, val2, IfCmp2.getCond2(s), IfCmp2.getTarget2(s), IfCmp2.getBranchProfile2(s)); } else if ((cond1 == OPT_ConditionOperand.UNKNOWN) && (cond2 == OPT_ConditionOperand.FALSE)) { // target 1 taken possibly, simplify test to ifcmp IfCmp.mutate(s, INT_IFCMP, guard, val1, val2, IfCmp2.getCond1(s), IfCmp2.getTarget1(s), IfCmp2.getBranchProfile1(s)); } else if ((cond1 == OPT_ConditionOperand.UNKNOWN) && (cond2 == OPT_ConditionOperand.TRUE)) { // target 1 taken possibly, simplify first test to ifcmp and // insert goto after s.insertAfter(Goto.create(GOTO, IfCmp2.getTarget2(s))); IfCmp.mutate(s, INT_IFCMP, guard, val1, val2, IfCmp2.getCond1(s), IfCmp2.getTarget1(s), IfCmp2.getBranchProfile1(s)); removeBranchesAfterGotos(bb); } else { if (val1.isConstant() && !val2.isConstant()) { // Canonicalize by making second argument the constant IfCmp2.setVal1(s, val2); IfCmp2.setVal2(s, val1); IfCmp2.setCond1(s, IfCmp2.getCond1(s).flipOperands()); IfCmp2.setCond2(s, IfCmp2.getCond2(s).flipOperands()); } // we did no optimisation, just continue continue; } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; continue; } else if (LookupSwitch.conforms(s)) { OPT_Operand val = LookupSwitch.getValue(s); int numMatches = LookupSwitch.getNumberOfMatches(s); if (numMatches == 0) { // Can only goto default Goto.mutate(s, GOTO, LookupSwitch.getDefault(s)); } else if (val.isConstant()) { // lookup value is constant int value = ((OPT_IntConstantOperand)val).value; OPT_BranchOperand target = LookupSwitch.getDefault(s); for (int i=0; i<numMatches; i++) { if (value == LookupSwitch.getMatch(s, i).value) { target = LookupSwitch.getTarget(s, i); break; } } Goto.mutate(s, GOTO, target); } else if (numMatches == 1) { // only 1 match, simplify to ifcmp OPT_BranchOperand defaultTarget = LookupSwitch.getDefault(s); IfCmp.mutate(s, INT_IFCMP, ir.regpool.makeTempValidation(), val, LookupSwitch.getMatch(s, 0), OPT_ConditionOperand.EQUAL(), LookupSwitch.getTarget(s, 0), LookupSwitch.getBranchProfile(s, 0)); s.insertAfter(Goto.create(GOTO, defaultTarget)); } else { // no optimisation, just continue continue; } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); removeBranchesAfterGotos(bb); bb.recomputeNormalOut(ir); didSomething = true; } else if (TableSwitch.conforms(s)) { OPT_Operand val = TableSwitch.getValue(s); int low = TableSwitch.getLow(s).value; int high = TableSwitch.getHigh(s).value; if (val.isConstant()) { int value = ((OPT_IntConstantOperand)val).value; OPT_BranchOperand target = TableSwitch.getDefault(s); if (value >= low && value <= high) { target = TableSwitch.getTarget(s, value - low); } Goto.mutate(s, GOTO, target); } else if (low == high) { // only 1 match, simplify to ifcmp OPT_BranchOperand defaultTarget = TableSwitch.getDefault(s); IfCmp.mutate(s, INT_IFCMP, ir.regpool.makeTempValidation(), val, new OPT_IntConstantOperand(low), OPT_ConditionOperand.EQUAL(), TableSwitch.getTarget(s, 0), TableSwitch.getBranchProfile(s, 0)); s.insertAfter(Goto.create(GOTO, defaultTarget)); } else { // no optimisation, just continue continue; } // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); removeBranchesAfterGotos(bb); bb.recomputeNormalOut(ir); didSomething = true; } else if (InlineGuard.conforms(s)) { OPT_Operand val = InlineGuard.getValue(s); if (val.isNullConstant()) { // branch not taken s.remove(); // hack. Just start over since Enumeration has changed. branches = bb.enumerateBranchInstructions(); bb.recomputeNormalOut(ir); didSomething = true; continue; } else if (val.isStringConstant()) { // TODO: VM.sysWrite("TODO: should constant fold MethodIfCmp on StringConstant"); } } } return didSomething; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/22e2864430a26b6dac19290829642bda5f48cb23/OPT_BranchSimplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_BranchSimplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
16499,
12,
15620,
67,
8252,
1768,
7129,
16,
16456,
67,
7937,
9482,
13,
288,
565,
1250,
5061,
24332,
273,
629,
31,
565,
364,
261,
15620,
67,
11983,
21847,
11483,
273,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
16499,
12,
15620,
67,
8252,
1768,
7129,
16,
16456,
67,
7937,
9482,
13,
288,
565,
1250,
5061,
24332,
273,
629,
31,
565,
364,
261,
15620,
67,
11983,
21847,
11483,
273,
5411... |
public SymbolTablePrinter printDefinedSymbolName(Symbol symbol, Symbol user, boolean addLink) { Name name = symbol.name; if (!global.debug) name = NameTransformer.decode(name); String s = name.toString(); if (htmlGenerator.isReferenced(symbol)) if (addLink) htmlGenerator.page.printAhref(htmlGenerator.ref(symbol), s); else htmlGenerator.page.printBold(s); else htmlGenerator.page.print(s); | public SymbolTablePrinter printDefinedSymbolName(Symbol symbol, boolean addLink) { htmlGenerator.printSymbol(symbol, addLink); | public SymbolTablePrinter printDefinedSymbolName(Symbol symbol, Symbol user, boolean addLink) { Name name = symbol.name; if (!global.debug) name = NameTransformer.decode(name); String s = name.toString(); if (htmlGenerator.isReferenced(symbol)) if (addLink) htmlGenerator.page.printAhref(htmlGenerator.ref(symbol), s); else htmlGenerator.page.printBold(s); else htmlGenerator.page.print(s); printSymbolUniqueId(symbol); return this; } | 9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/ce3042f16f76a68cc0e6a6ef34786b8035441805/SymbolTablePrinter.java/clean/sources/scala/tools/scaladoc/SymbolTablePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8565,
1388,
12149,
1172,
8116,
5335,
461,
12,
5335,
3273,
16,
8565,
729,
16,
1250,
527,
2098,
13,
288,
3639,
1770,
508,
273,
3273,
18,
529,
31,
3639,
309,
16051,
6347,
18,
4148,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8565,
1388,
12149,
1172,
8116,
5335,
461,
12,
5335,
3273,
16,
8565,
729,
16,
1250,
527,
2098,
13,
288,
3639,
1770,
508,
273,
3273,
18,
529,
31,
3639,
309,
16051,
6347,
18,
4148,
1... |
System.err.println("Invalid line: " + comment); | System.err.println("Invalid line " + m_lineNumber + ": " + comment); | private void handleComment(String comment) { comment = comment.trim(); if (m_propertiesRead) { String[] array = comment.split("\\t"); for (int i = 0; i < array.length; ++i) addColumnTitle(array[i]); return; } if (comment.equals("")) { m_propertiesRead = true; return; } int pos = comment.indexOf(':'); if (pos < 0) { System.err.println("Invalid line: " + comment); return; } String key = comment.substring(0, pos).trim(); String value = comment.substring(pos + 1).trim(); setProperty(key, value); } | 2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/361c452c94d3666a3ddf286fd37c40002dbd5f77/Table.java/buggy/src/net/sf/gogui/utils/Table.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
4469,
12,
780,
2879,
13,
565,
288,
3639,
2879,
273,
2879,
18,
5290,
5621,
3639,
309,
261,
81,
67,
4738,
1994,
13,
3639,
288,
5411,
514,
8526,
526,
273,
2879,
18,
4939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
4469,
12,
780,
2879,
13,
565,
288,
3639,
2879,
273,
2879,
18,
5290,
5621,
3639,
309,
261,
81,
67,
4738,
1994,
13,
3639,
288,
5411,
514,
8526,
526,
273,
2879,
18,
4939,
... |
PUSH_CREF(module); | public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ruby_class = module; // PUSH_SCOPE(); RubyVarmap.push(ruby); if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().rubyScope.setLocalTbl(node.nd_tbl()); } else { getRuby().rubyScope.setLocalVars(null); getRuby().rubyScope.setLocalTbl(null); } // PUSH_CREF(module); rubyFrame.setCbase((VALUE)ruby_cref); // PUSH_TAG(PROT_NONE); RubyObject result = null; // if (( state = EXEC_TAG()) == 0 ) { // if (trace_func) { // call_trace_func("class", file, line, ruby_class, // ruby_frame->last_func, ruby_frame->last_class ); // } result = eval(ruby_class, node.nd_next()); // } // POP_TAG(); // POP_CREF(); RubyVarmap.pop(ruby); // POP_SCOPE(); // POP_CLASS(); // ruby_frame = frame.tmp;// if (trace_func) {// call_trace_func("end", file, line, 0, ruby_frame->last_func, ruby_frame->last_class );// } // if (state != 0) { // JUMP_TAG(state); // } return result; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
1071,
30348,
67,
5458,
42,
12,
2978,
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,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
28591,
67,
5458,
42,
12,
2978,
1769,
1071,
30348,
67,
5458,
42,
12,
2978,
1769,... | |
stopRestartChecker(); if (moveTargetNode != null) { if (log.isInfoEnabled()) { log.info("Updating topology entry to \"moving\""); } int topologyType = ((getMessageAddress().equals(localNode)) ? (TopologyEntry.NODE_AGENT_TYPE) : (TopologyEntry.AGENT_TYPE)); myTopologyWriterService.updateAgent( getIdentifier(), topologyType, incarnation, moveId, TopologyEntry.MOVING, moveId); } else { if (log.isInfoEnabled()) { log.info("Removing topology entry"); } myTopologyWriterService.removeAgent(getIdentifier()); } | suspendTopology(); | public void suspend() { super.suspend(); if (log.isInfoEnabled()) { log.info("Suspending"); } // suspend all children if (log.isInfoEnabled()) { log.info("Recursively suspending all child components"); } List childBinders = listBinders(); for (int i = childBinders.size() - 1; i >= 0; i--) { Binder b = (Binder) childBinders.get(i); b.suspend(); } if (log.isInfoEnabled()) { log.info("Suspending scheduler"); } // FIXME bug 989: cancel all alarms stopRestartChecker(); // update the topology if (moveTargetNode != null) { if (log.isInfoEnabled()) { log.info("Updating topology entry to \"moving\""); } int topologyType = ((getMessageAddress().equals(localNode)) ? (TopologyEntry.NODE_AGENT_TYPE) : (TopologyEntry.AGENT_TYPE)); myTopologyWriterService.updateAgent( getIdentifier(), topologyType, incarnation, moveId, TopologyEntry.MOVING, moveId); } else { if (log.isInfoEnabled()) { log.info("Removing topology entry"); } myTopologyWriterService.removeAgent(getIdentifier()); } // shutdown the MTS if (log.isInfoEnabled()) { log.info("Shutting down message transport"); } if (messenger != null) { messenger.unregisterClient(mtsClientAdapter); } stopQueueHandler(); if (messenger != null) { // flush outgoing messages, block further input. // get a list of unsent messages. unsentMessages = messenger.flushMessages(); // get MTS-internal state for this agent mtsState = messenger.getAgentState(); // release messenger, remove agent name-server entry. getServiceBroker().releaseService( mtsClientAdapter, MessageTransportService.class, messenger); messenger = null; } if (moveTargetNode != null) { // moving, delay identity transfer until after getState() if (log.isInfoEnabled()) { log.info( "Postponing identity transfer to node "+ moveTargetNode); } } else { // non-moving suspend? if (log.isInfoEnabled()) { log.info("Releasing identity"); } myAgentIdService.release(); } if (log.isInfoEnabled()) { log.info("Suspended"); } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/8729b3a6f3d460efa8689b553a1c50c319f619b6/SimpleAgent.java/buggy/core/src/org/cougaar/core/agent/SimpleAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
20413,
1435,
288,
565,
2240,
18,
87,
18815,
5621,
565,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
1377,
613,
18,
1376,
2932,
55,
407,
9561,
8863,
565,
289,
565,
368,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20413,
1435,
288,
565,
2240,
18,
87,
18815,
5621,
565,
309,
261,
1330,
18,
291,
966,
1526,
10756,
288,
1377,
613,
18,
1376,
2932,
55,
407,
9561,
8863,
565,
289,
565,
368,
204... |
OPT_Operand offset = bc2ir.popInt(); | OPT_Operand offset = bc2ir.popAddress(); | static boolean generateMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth) throws OPT_MagicNotImplementedException { if (gc.method.hasNoInlinePragma()) gc.allocFrame = true; // HACK: Don't schedule any bbs containing unsafe magics. // TODO: move this to individual magics that are unsafe. // -- igor 08/13/1999 bc2ir.markBBUnsafeForScheduling(); VM_Atom methodName = meth.getName(); boolean address = (meth.getType() == VM_TypeReference.Address); // Address magic VM_TypeReference[] types = meth.getParameterTypes(); VM_TypeReference returnType = meth.getReturnType(); if (address && isLoad(methodName)) { // LOAD OPT_Operand offset = (types.length == 0) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand result = gc.temps.makeTemp(returnType); bc2ir.appendInstruction(Load.create(getOperator(returnType, LOAD_OP), result, base, offset, null)); bc2ir.push(result.copyD2U(), returnType); } else if (address && isPrepare(methodName)) { // PREPARE OPT_Operand offset = (types.length == 0) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand result = gc.temps.makeTemp(returnType); bc2ir.appendInstruction( Prepare.create(getOperator(returnType, PREPARE_OP), result, base, offset, null)); bc2ir.push(result.copyD2U(), returnType); } else if (address && methodName == VM_MagicNames.attempt) { // ATTEMPT VM_TypeReference attemptType = types[0]; OPT_Operand offset = (types.length == 2) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction( Attempt.create(getOperator(attemptType, ATTEMPT_OP), test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U(), returnType); } else if (address && methodName == VM_MagicNames.store) { // STORE VM_TypeReference storeType = types[0]; OPT_Operand offset = (types.length == 1) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand val = bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(getOperator(storeType, STORE_OP), val, base, offset, null)); } else if (methodName == VM_MagicNames.getProcessorRegister) { OPT_RegisterOperand rop = gc.temps.makePROp(); bc2ir.markGuardlessNonNull(rop); bc2ir.push(rop); } else if (methodName == VM_MagicNames.setProcessorRegister) { OPT_Operand val = bc2ir.popRef(); if (val instanceof OPT_RegisterOperand) { bc2ir.appendInstruction(Move.create(REF_MOVE, gc.temps.makePROp(), val)); } else { String msg = " Unexpected operand VM_Magic.setProcessorRegister"; throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } else if (methodName == VM_MagicNames.addressArrayCreate) { OPT_Instruction s = bc2ir.generateAnewarray(meth.getType().getArrayElementType()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayLength) { OPT_Operand op1 = bc2ir.pop(); bc2ir.clearCurrentGuard(); if (bc2ir.do_NullCheck(op1)) return true; OPT_RegisterOperand t = gc.temps.makeTempInt(); OPT_Instruction s = GuardedUnary.create(ARRAYLENGTH, t, op1, bc2ir.getCurrentGuard()); bc2ir.push(t.copyD2U()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayGet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); OPT_RegisterOperand result; if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { result = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, result, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { result = gc.temps.makeTemp(VM_TypeReference.Int); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Load.create(INT_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { result = gc.temps.makeTemp(elementType); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); bc2ir.appendInstruction(Load.create(REF_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } bc2ir.push(result.copyD2U()); } else if (methodName == VM_MagicNames.addressArraySet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand val = bc2ir.pop(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { bc2ir.appendInstruction(Store.create(BYTE_STORE, val, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Store.create(INT_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); bc2ir.appendInstruction(Store.create(REF_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else if (methodName == VM_MagicNames.getIntAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setIntAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(INT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getWordAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setWordAtOffset) { OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getLongAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempLong(); bc2ir.appendInstruction(Load.create(LONG_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setLongAtOffset) { OPT_Operand val = bc2ir.popLong(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(LONG_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getDoubleAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Load.create(DOUBLE_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setDoubleAtOffset) { OPT_Operand val = bc2ir.popDouble(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(DOUBLE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getObjectAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getObjectArrayAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setObjectAtOffset) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 4) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, loc)); } else if (methodName == VM_MagicNames.getByteAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setByteAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(BYTE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getCharAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Char); bc2ir.appendInstruction(Load.create(USHORT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCharAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(SHORT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getMemoryInt) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryWord) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryAddress) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setMemoryInt) { OPT_Operand val = bc2ir.popInt(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(INT_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryWord) { OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryAddress) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 3) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), loc)); } else if (meth.getType() == VM_TypeReference.SysCall) { // All methods of VM_SysCall have the following signature: // callNAME(Address code, <var args to pass via native calling convention>) VM_TypeReference[] args = meth.getParameterTypes(); int numArgs = args.length; VM_Field ip = VM_Entrypoints.getSysCallField(meth.getName().toString()); OPT_MethodOperand mo = OPT_MethodOperand.STATIC(ip); OPT_Instruction call = Call.create(SYSCALL, null, null, mo, null, args.length); for (int i = args.length-1; i >= 0; i--) { Call.setParam(call, i, bc2ir.pop(args[i])); } if (!returnType.isVoidType()) { OPT_RegisterOperand op0 = gc.temps.makeTemp(returnType); Call.setResult(call, op0); bc2ir.push(op0.copyD2U(), returnType); } bc2ir.appendInstruction(call); } else if (methodName == VM_MagicNames.threadAsCollectorThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_CollectorThread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsProcessor) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Processor); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsAddress) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObject) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObjectArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsRegisters) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Registers;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsShortArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ShortArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsStack) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.floatAsIntBits) { OPT_Operand val = bc2ir.popFloat(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(Unary.create(FLOAT_AS_INT_BITS, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.intBitsAsFloat) { OPT_Operand val = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempFloat(); bc2ir.appendInstruction(Unary.create(INT_BITS_AS_FLOAT, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.doubleAsLongBits) { OPT_Operand val = bc2ir.popDouble(); OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Unary.create(DOUBLE_AS_LONG_BITS, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.longBitsAsDouble) { OPT_Operand val = bc2ir.popLong(); OPT_RegisterOperand op0 = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Unary.create(LONG_BITS_AS_DOUBLE, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.getObjectType) { OPT_Operand val = bc2ir.popRef(); OPT_Operand guard = bc2ir.getGuard(val); if (guard == null) { // it's magic, so assume that it's OK.... guard = new OPT_TrueGuardOperand(); } OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(GuardedUnary.create(GET_OBJ_TIB, tibPtr, val, guard)); OPT_RegisterOperand op0; VM_TypeReference argType = val.getType(); if (argType.isArrayType()) { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Array); } else { if (argType == VM_TypeReference.JavaLangObject || argType == VM_TypeReference.JavaLangCloneable || argType == VM_TypeReference.JavaIoSerializable) { // could be an array or a class, so make op0 be a VM_Type op0 = gc.temps.makeTemp(VM_TypeReference.VM_Type); } else { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Class); } } bc2ir.markGuardlessNonNull(op0); bc2ir.appendInstruction(Unary.create(GET_TYPE_FROM_TIB, op0, tibPtr.copyD2U())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.getArrayLength) { OPT_Operand val = bc2ir.popRef(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(GuardedUnary.create(ARRAYLENGTH, op0, val, new OPT_TrueGuardOperand())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.invokeClassInitializer) { OPT_Instruction s = Call.create0(CALL, null, bc2ir.popRef(), null); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.invokeMain) { OPT_Operand code = bc2ir.popRef(); OPT_Operand args = bc2ir.popRef(); bc2ir.appendInstruction(Call.create1(CALL, null, code, null, args)); } else if ((methodName == VM_MagicNames.invokeMethodReturningObject) || (methodName == VM_MagicNames.invokeMethodReturningVoid) || (methodName == VM_MagicNames.invokeMethodReturningLong) || (methodName == VM_MagicNames.invokeMethodReturningDouble) || (methodName == VM_MagicNames.invokeMethodReturningFloat) || (methodName == VM_MagicNames.invokeMethodReturningInt)) { OPT_Operand spills = bc2ir.popRef(); OPT_Operand fprs = bc2ir.popRef(); OPT_Operand gprs = bc2ir.popRef(); OPT_Operand code = bc2ir.popRef(); OPT_RegisterOperand res = null; if (methodName == VM_MagicNames.invokeMethodReturningObject) { res = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.push(res.copyD2U()); } else if (methodName == VM_MagicNames.invokeMethodReturningLong) { res = gc.temps.makeTemp(VM_TypeReference.Long); bc2ir.push(res.copyD2U(), VM_TypeReference.Long); } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) { res = gc.temps.makeTempDouble(); bc2ir.push(res.copyD2U(), VM_TypeReference.Double); } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) { res = gc.temps.makeTempFloat(); bc2ir.push(res.copyD2U(), VM_TypeReference.Float); } else if (methodName == VM_MagicNames.invokeMethodReturningInt) { res = gc.temps.makeTempInt(); bc2ir.push(res.copyD2U()); } VM_Field target = VM_Entrypoints.reflectiveMethodInvokerInstructionsField; OPT_MethodOperand met = OPT_MethodOperand.STATIC(target); OPT_Instruction s = Call.create4(CALL, res, new OPT_IntConstantOperand(target.getOffset()), met, code, gprs, fprs, spills); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.saveThreadState) { OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.saveThreadStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1)); } else if (methodName == VM_MagicNames.threadSwitch) { OPT_Operand p2 = bc2ir.popRef(); OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.threadSwitchInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create2(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1, p2)); } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) { VM_Field target = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, bc2ir.popRef())); } else if (methodName == VM_MagicNames.prepareInt) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Prepare.create(PREPARE_INT, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareObject) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareAddress) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareWord) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.attemptInt) { OPT_Operand newVal = bc2ir.popInt(); OPT_Operand oldVal = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptObject) { OPT_Operand newVal = bc2ir.popRef(); OPT_Operand oldVal = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptAddress) { OPT_Operand newVal = bc2ir.popAddress(); OPT_Operand oldVal = bc2ir.popAddress(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptWord) { OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (generatePolymorphicMagic(bc2ir, gc, meth, methodName)) { return true; } else if (methodName == VM_MagicNames.getTimeBase) { OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Nullary.create(GET_TIME_BASE, op0)); bc2ir.pushDual(op0.copyD2U()); } else { // Wasn't machine-independent, so try the machine-dependent magics next. return OPT_GenerateMachineSpecificMagic.generateMagic(bc2ir, gc, meth); } return true; } // generateMagic | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/OPT_GenerateMagic.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_GenerateMagic.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1250,
2103,
19289,
12,
15620,
67,
16283,
22,
7937,
6533,
22,
481,
16,
27573,
16456,
67,
13842,
1042,
8859,
16,
27573,
8251,
67,
1305,
2404,
7917,
13,
1216,
16456,
67,
19289,
1248,
86... |
list = new Vector(Arrays.asList(items)); | list = new Vector(); | public DefaultComboBoxModel(Object[] items) { list = new Vector(Arrays.asList(items)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultComboBoxModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultComboBoxModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2989,
22199,
1488,
12,
921,
8526,
1516,
13,
225,
288,
565,
666,
273,
394,
5589,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2989,
22199,
1488,
12,
921,
8526,
1516,
13,
225,
288,
565,
666,
273,
394,
5589,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.