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
pw.println(theVariables.get(i).getName() + " is used before def'd");
pw.println(theVariables.getVariable(i).getName() + " is used before def'd");
public void printLiveOnEntrySet(PrintWriter pw, VariableTable theVariables) { for (int i = 0; i < theVariables.size(); i++) { if (itsUseBeforeDefSet.test(i)) pw.println(theVariables.get(i).getName() + " is used before def'd"); if (itsNotDefSet.test(i)) pw.println(theVariables.get(i).getName() + " is not def'd"); if (itsLiveOnEntrySet.test(i)) pw.println(theVariables.get(i).getName() + " is live on entry"); if (itsLiveOnExitSet.test(i)) pw.println(theVariables.get(i).getName() + " is live on exit"); } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/3eb542db2c80d7521ea272c802d999a32072bfb6/Block.java/clean/org/mozilla/javascript/optimizer/Block.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1172, 12328, 1398, 1622, 694, 12, 5108, 2289, 8772, 16, 7110, 1388, 326, 6158, 13, 565, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 326, 6158, 18, 1467, 5621, 277,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1172, 12328, 1398, 1622, 694, 12, 5108, 2289, 8772, 16, 7110, 1388, 326, 6158, 13, 565, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 326, 6158, 18, 1467, 5621, 277,...
protected List getProvides(Endpoint endpoint) { List providesList = new ArrayList(); if (endpoint.getRole().equals(MessageExchange.Role.PROVIDER)) { Provides newProvide = new Provides(); newProvide.setEndpointName(endpoint.getEndpoint()); newProvide.setInterfaceName(endpoint.getInterfaceName()); newProvide.setServiceName(endpoint.getService()); providesList.add(newProvide); } return providesList;
public List getProvides() { return provides;
protected List getProvides(Endpoint endpoint) { List providesList = new ArrayList(); if (endpoint.getRole().equals(MessageExchange.Role.PROVIDER)) { Provides newProvide = new Provides(); newProvide.setEndpointName(endpoint.getEndpoint()); newProvide.setInterfaceName(endpoint.getInterfaceName()); newProvide.setServiceName(endpoint.getService()); providesList.add(newProvide); } return providesList; }
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/11f3f8563c0499ced40f578c96f0b7407b311e4f/AbstractXBeanServiceUnitAnalyzer.java/buggy/servicemix-common/src/main/java/org/apache/servicemix/common/xbean/AbstractXBeanServiceUnitAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 3570, 13427, 12, 3293, 2494, 13, 288, 202, 202, 682, 8121, 682, 273, 394, 2407, 5621, 202, 202, 430, 261, 8003, 18, 588, 2996, 7675, 14963, 12, 1079, 11688, 18, 2996, 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, 1117, 987, 3570, 13427, 12, 3293, 2494, 13, 288, 202, 202, 682, 8121, 682, 273, 394, 2407, 5621, 202, 202, 430, 261, 8003, 18, 588, 2996, 7675, 14963, 12, 1079, 11688, 18, 2996, 18...
initializeDataSource();
if(bds == null) { initializeDataSource(); }
protected Connection getDataSourceConnection() throws SQLException { initializeDataSource(); return bds.getConnection(); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/f4162f4021ff7ab4eb0fc27aa93d473741c5eca5/BaseDataSourceTest.java/clean/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4050, 29130, 1952, 1435, 1216, 6483, 202, 95, 202, 202, 11160, 8597, 5621, 202, 202, 2463, 324, 2377, 18, 588, 1952, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1117, 4050, 29130, 1952, 1435, 1216, 6483, 202, 95, 202, 202, 11160, 8597, 5621, 202, 202, 2463, 324, 2377, 18, 588, 1952, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100,...
public void dragOver(DragSourceDragEvent e) { System.out.println("over"); }
public void dragOver(DragSourceDragEvent e) { System.out.println("over"); }
public void dragOver(DragSourceDragEvent e) { System.out.println("over"); }
3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/09f97dfa7810dd1f01b1143cd3302419d7f2c1cc/mainTable.java/clean/gui/main/mainTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 8823, 4851, 12, 11728, 1830, 11728, 1133, 425, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1643, 8863, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 8823, 4851, 12, 11728, 1830, 11728, 1133, 425, 13, 288, 2332, 18, 659, 18, 8222, 2932, 1643, 8863, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Set commandIds = (Set) entry5.getValue(); Iterator iterator6 = commandIds.iterator();
Map commandIdMap = (Map) entry5.getValue(); Iterator iterator6 = commandIdMap.entrySet().iterator();
static void getKeySequenceBindingDefinitions( Map keyStrokeNodeByKeyStrokeMap, KeySequence prefix, int rank, List keySequenceBindingDefinitions) { Iterator iterator = keyStrokeNodeByKeyStrokeMap.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry) iterator.next(); KeyStroke keyStroke = (KeyStroke) entry.getKey(); KeySequenceBindingNode keySequenceBindingNode = (KeySequenceBindingNode) entry.getValue(); List keyStrokes = new ArrayList(prefix.getKeyStrokes()); keyStrokes.add(keyStroke); KeySequence keySequence = KeySequence.getInstance(keyStrokes); Map contextMap = keySequenceBindingNode.contextMap; Iterator iterator2 = contextMap.entrySet().iterator(); while (iterator2.hasNext()) { Map.Entry entry2 = (Map.Entry) iterator2.next(); String contextId = (String) entry2.getKey(); Map keyConfigurationMap = (Map) entry2.getValue(); Iterator iterator3 = keyConfigurationMap.entrySet().iterator(); while (iterator3.hasNext()) { Map.Entry entry3 = (Map.Entry) iterator3.next(); String keyConfigurationId = (String) entry3.getKey(); Map rankMap = (Map) entry3.getValue(); Map platformMap = (Map) rankMap.get(new Integer(rank)); if (platformMap != null) { Iterator iterator4 = platformMap.entrySet().iterator(); while (iterator4.hasNext()) { Map.Entry entry4 = (Map.Entry) iterator4.next(); String platform = (String) entry4.getKey(); Map localeMap = (Map) entry4.getValue(); Iterator iterator5 = localeMap.entrySet().iterator(); while (iterator5.hasNext()) { Map.Entry entry5 = (Map.Entry) iterator5.next(); String locale = (String) entry5.getKey(); Set commandIds = (Set) entry5.getValue(); Iterator iterator6 = commandIds.iterator(); while (iterator6.hasNext()) { String commandId = (String) iterator6.next(); keySequenceBindingDefinitions.add( new KeySequenceBindingDefinition( contextId, commandId, keyConfigurationId, keySequence, locale, platform, null)); } } } } } } getKeySequenceBindingDefinitions( keySequenceBindingNode.childKeyStrokeNodeByKeyStrokeMap, keySequence, rank, keySequenceBindingDefinitions); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7519248a2a56aea7cb9f3f77a427f926eff7ef7e/KeySequenceBindingNode.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeySequenceBindingNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 3579, 4021, 5250, 7130, 12, 202, 202, 863, 498, 14602, 907, 14560, 14602, 863, 16, 202, 202, 653, 4021, 1633, 16, 202, 202, 474, 6171, 16, 202, 202, 682, 498, 4021, 5250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 918, 3579, 4021, 5250, 7130, 12, 202, 202, 863, 498, 14602, 907, 14560, 14602, 863, 16, 202, 202, 653, 4021, 1633, 16, 202, 202, 474, 6171, 16, 202, 202, 682, 498, 4021, 5250...
public <T> T[] toArray(T[] a)
public Object[] toArray()
public <T> T[] toArray(T[] a) { if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; System.arraycopy(data, 0, a, 0, size); return a; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/ArrayList.java/buggy/core/src/classpath/5.0/java/util/ArrayList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 8526, 4434, 1435, 225, 288, 565, 309, 261, 69, 18, 2469, 411, 963, 13, 1377, 279, 273, 261, 56, 63, 5717, 1510, 18, 2704, 1442, 12, 69, 18, 588, 797, 7675, 588, 28116, 933...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 8526, 4434, 1435, 225, 288, 565, 309, 261, 69, 18, 2469, 411, 963, 13, 1377, 279, 273, 261, 56, 63, 5717, 1510, 18, 2704, 1442, 12, 69, 18, 588, 797, 7675, 588, 28116, 933...
addSizeItem(sizeMenu,"PartPane.sizeLeft",sashes.left); addSizeItem(sizeMenu,"PartPane.sizeRight",sashes.right); addSizeItem(sizeMenu,"PartPane.sizeTop",sashes.top); addSizeItem(sizeMenu,"PartPane.sizeBottom",sashes.bottom);
addSizeItem(sizeMenu,"PartPane.sizeLeft",sashes.left); addSizeItem(sizeMenu,"PartPane.sizeRight",sashes.right); addSizeItem(sizeMenu,"PartPane.sizeTop",sashes.top); addSizeItem(sizeMenu,"PartPane.sizeBottom",sashes.bottom);
protected void addSizeItems(Menu sizeMenu) { Sashes sashes = findSashes(); addSizeItem(sizeMenu,"PartPane.sizeLeft",sashes.left); addSizeItem(sizeMenu,"PartPane.sizeRight",sashes.right); addSizeItem(sizeMenu,"PartPane.sizeTop",sashes.top); addSizeItem(sizeMenu,"PartPane.sizeBottom",sashes.bottom);}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/80cfecc0fb5392981e25acee0f567feb8ed55185/PartPane.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/PartPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 527, 1225, 3126, 12, 4599, 963, 4599, 13, 288, 202, 55, 7690, 272, 7690, 273, 1104, 55, 7690, 5621, 202, 1289, 1225, 1180, 12, 1467, 4599, 10837, 1988, 8485, 18, 1467, 3910, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 527, 1225, 3126, 12, 4599, 963, 4599, 13, 288, 202, 55, 7690, 272, 7690, 273, 1104, 55, 7690, 5621, 202, 1289, 1225, 1180, 12, 1467, 4599, 10837, 1988, 8485, 18, 1467, 3910, 3113, ...
return (XSAttributeDecl)fGlobalAttrDecls.get(declName);
return(XSAttributeDecl)fGlobalAttrDecls.get(declName);
public final XSAttributeDecl getGlobalAttributeDecl(String declName) { return (XSAttributeDecl)fGlobalAttrDecls.get(declName); }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/8973a4e0a87c8b8fcad9e9b1f2a9f9b642609e45/SchemaGrammar.java/buggy/src/org/apache/xerces/impl/v2/SchemaGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1139, 55, 1499, 3456, 20591, 1499, 3456, 12, 780, 3496, 461, 13, 288, 3639, 327, 12, 60, 55, 1499, 3456, 13, 74, 5160, 3843, 1799, 3251, 18, 588, 12, 8840, 461, 1769, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1139, 55, 1499, 3456, 20591, 1499, 3456, 12, 780, 3496, 461, 13, 288, 3639, 327, 12, 60, 55, 1499, 3456, 13, 74, 5160, 3843, 1799, 3251, 18, 588, 12, 8840, 461, 1769, 565, ...
listners.put( ExcelParser.DEFAULT_RULESHEET_NAME, listener ); final ExcelParser parser = new ExcelParser( listners );
listeners.add(listener); sheetListeners.put( ExcelParser.DEFAULT_RULESHEET_NAME, listeners ); final ExcelParser parser = new ExcelParser( sheetListeners );
public static RuleSheetListener getRuleSheetListener(final InputStream stream) throws IOException { final Map listners = new HashMap(); final RuleSheetListener listener = new DefaultRuleSheetListener(); listners.put( ExcelParser.DEFAULT_RULESHEET_NAME, listener ); final ExcelParser parser = new ExcelParser( listners ); parser.parseFile( stream ); stream.close(); return listener; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/4933a63c9cb0873638ea044d626b890c5e2da4e2/RulesheetUtil.java/buggy/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RulesheetUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6781, 8229, 2223, 19048, 8229, 2223, 12, 6385, 5037, 1407, 13, 1216, 1860, 288, 3639, 727, 1635, 666, 9646, 273, 394, 4317, 5621, 3639, 727, 6781, 8229, 2223, 2991, 273, 394, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6781, 8229, 2223, 19048, 8229, 2223, 12, 6385, 5037, 1407, 13, 1216, 1860, 288, 3639, 727, 1635, 666, 9646, 273, 394, 4317, 5621, 3639, 727, 6781, 8229, 2223, 2991, 273, 394, 2...
TableColumn column = new TableColumn(table, SWT.RIGHT, i);
TableColumn column = new TableColumn(table, (getColumnDataIndex(elements[i]) <= 2) ? SWT.LEFT : SWT.RIGHT, i);
public void propertyChange(PropertyChangeEvent event) { String property = event.getProperty(); // Property changed for the Trader plugin if (property.equalsIgnoreCase("net.sourceforge.eclipsetrader.dataProvider") == true) //$NON-NLS-1$ { if (TraderPlugin.getDataProvider() != null) TraderPlugin.getDataProvider().addDataListener(this); } // Property changed for the Views plugin if (property.equalsIgnoreCase("portfolio.text_color") == true) //$NON-NLS-1$ textForeground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.text_color")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.even_row_background") == true) //$NON-NLS-1$ evenBackground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.even_row_background")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.odd_row_background") == true) //$NON-NLS-1$ oddBackground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.odd_row_background")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.total_row_background") == true) //$NON-NLS-1$ totalBackground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.total_row_background")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.negative_value_color") == true) //$NON-NLS-1$ negativeForeground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.negative_value_color")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.positive_value_color") == true) //$NON-NLS-1$ positiveForeground = new Color(Display.getCurrent(), PreferenceConverter.getColor(ViewsPlugin.getDefault().getPreferenceStore(), "portfolio.positive_value_color")); //$NON-NLS-1$ else if (property.equalsIgnoreCase("portfolio.display") == true) //$NON-NLS-1$ { table.setRedraw(false); for (int column = table.getColumnCount() - 1; column >= 0; column--) table.getColumn(column).dispose(); String preferenceValue = ViewsPlugin.getDefault().getPreferenceStore().getString("portfolio.display"); //$NON-NLS-1$ StringTokenizer tokenizer = new StringTokenizer(preferenceValue, ","); //$NON-NLS-1$ int tokenCount = tokenizer.countTokens(); String[] elements = new String[tokenCount]; for (int i = 0; i < tokenCount; i++) { elements[i] = tokenizer.nextToken(); TableColumn column = new TableColumn(table, SWT.RIGHT, i); for (int m = 0; m < columnNames.length; m++) { if (elements[i].equalsIgnoreCase(columnNames[m]) == true) { column.setText(columnLabels[m]); column.setWidth(columnWidth[m]); break; } } column.setData(elements[i]); if (getColumnDataIndex(i) <= 2) column.setAlignment(SWT.LEFT); } for (int i = 0; i < table.getItemCount(); i++) { PortfolioTableItem tableItem = (PortfolioTableItem)table.getItem(i).getData(); tableItem.update(); } table.setRedraw(true); } if (property.equalsIgnoreCase("portfolio") == true || property.startsWith("portfolio.") == true) //$NON-NLS-1$ updateView(); }
12846 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12846/8f711ad68cd624c745976f9a2cdc554527304f71/PortfolioView.java/clean/net.sourceforge.eclipsetrader.ui.views/src/net/sourceforge/eclipsetrader/ui/views/portfolio/PortfolioView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 225, 288, 565, 514, 1272, 273, 871, 18, 588, 1396, 5621, 565, 368, 4276, 3550, 364, 326, 2197, 765, 1909, 565, 309, 261, 4468, 18, 14963...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1272, 3043, 12, 1396, 20930, 871, 13, 225, 288, 565, 514, 1272, 273, 871, 18, 588, 1396, 5621, 565, 368, 4276, 3550, 364, 326, 2197, 765, 1909, 565, 309, 261, 4468, 18, 14963...
cv.visitVarInsn(ASTORE, ++idx);
cv.visitVarInsn(ASTORE, iteratorIdx);
public void visitForLoop(ForLoop loop) { onLineNumber(loop); loop.getCollectionExpression().visit(this); asIteratorMethod.call(cv); cv.visitVarInsn(ASTORE, ++idx); Label label1 = new Label(); cv.visitJumpInsn(GOTO, label1); Label label2 = new Label(); cv.visitLabel(label2); cv.visitVarInsn(ALOAD, idx); iteratorNextMethod.call(cv); cv.visitVarInsn(ASTORE, ++idx); loop.getLoopBlock().visit(this); cv.visitLabel(label1); cv.visitVarInsn(ALOAD, --idx); iteratorHasNextMethod.call(cv); cv.visitJumpInsn(IFNE, label2); }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5a787ab2b618731249d84b9fe612924d27d5edfb/ClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/ClassGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 31451, 12, 31451, 2798, 13, 288, 3639, 603, 31063, 12, 6498, 1769, 3639, 2798, 18, 588, 2532, 2300, 7675, 11658, 12, 2211, 1769, 3639, 487, 3198, 1305, 18, 1991, 12, 1977...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 31451, 12, 31451, 2798, 13, 288, 3639, 603, 31063, 12, 6498, 1769, 3639, 2798, 18, 588, 2532, 2300, 7675, 11658, 12, 2211, 1769, 3639, 487, 3198, 1305, 18, 1991, 12, 1977...
public Component getTreeCellRendererComponent( JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent( tree, value, sel, expanded, leaf, row, hasFocus); if (value instanceof Step) { PlayerID player = ((Step) value).getPlayerID(); if(player != null) { icon.setImage(FlagIconImageFactory.instance().getSmallFlag(player)); setIcon(icon); } } return this; }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/42eb305ea1a957f1a4f2ef87bb9153c7a28ede18/HistoryPanel.java/clean/triplea/src/games/strategy/triplea/ui/history/HistoryPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1841, 588, 2471, 4020, 6747, 1841, 12, 46, 56, 9015, 992, 16, 921, 1132, 16, 1075, 29510, 292, 16, 6494, 17336, 16, 6494, 12070, 16, 474, 492, 16, 6494, 5332, 9233, 15329, 9565, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1841, 588, 2471, 4020, 6747, 1841, 12, 46, 56, 9015, 992, 16, 921, 1132, 16, 1075, 29510, 292, 16, 6494, 17336, 16, 6494, 12070, 16, 474, 492, 16, 6494, 5332, 9233, 15329, 9565, 18, 58...
private ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight, @NonNls String tag) {
private static ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight, @NonNls String tag) {
private ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight, @NonNls String tag) { String message = InspectionsBundle.message("inspection.javadoc.problem.missing.tag", "<code>@" + tag + "</code>"); return createDescriptor(elementToHighlight, message,new AddMissingTagFix(tag)); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0975c4db4a60aef8a1ae423267ef8f7fc2874e96/JavaDocLocalInspection.java/clean/inspections/impl/com/intellij/codeInspection/javaDoc/JavaDocLocalInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 21685, 3187, 752, 4841, 1805, 3187, 12, 52, 7722, 1046, 930, 774, 16205, 16, 632, 3989, 50, 3251, 514, 1047, 13, 288, 565, 514, 883, 273, 22085, 7017, 87, 3405, 18, 2150, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21685, 3187, 752, 4841, 1805, 3187, 12, 52, 7722, 1046, 930, 774, 16205, 16, 632, 3989, 50, 3251, 514, 1047, 13, 288, 565, 514, 883, 273, 22085, 7017, 87, 3405, 18, 2150, 293...
EditPart editPart = (EditPart) editparts.get(0);
if (primaryEP[0] == null) { primaryEP[0] = (EditPart) editparts.get(0); }
protected void selectAddedObject(EditPartViewer viewer, Collection objects) { final List editparts = new ArrayList(); for (Iterator i = objects.iterator(); i.hasNext();) { Object object = i.next(); if (object instanceof IAdaptable) { Object editPart = viewer.getEditPartRegistry().get( ((IAdaptable) object).getAdapter(View.class)); if (editPart instanceof AbstractConnectionEditPart) { editparts.add(editPart); } // if (editPart != null) // editparts.add(editPart); } } if (!editparts.isEmpty()) { viewer.setSelection(new StructuredSelection(editparts)); // automatically put the first shape into edit-mode Display.getCurrent().asyncExec(new Runnable() { public void run() { EditPart editPart = (EditPart) editparts.get(0); // // add active test since test scripts are failing on this // basically, the editpart has been deleted when this // code is being executed. (see RATLC00527114) if (editPart.isActive()) { editPart.performRequest(new Request( RequestConstants.REQ_DIRECT_EDIT)); } } }); } }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/067b316659bc3b5a283bebb87587307559e76a75/ConnectionCreationTool.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/tools/ConnectionCreationTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2027, 8602, 921, 12, 4666, 1988, 18415, 14157, 16, 2200, 2184, 13, 288, 202, 202, 6385, 987, 3874, 6019, 273, 394, 2407, 5621, 202, 202, 1884, 261, 3198, 277, 273, 2184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2027, 8602, 921, 12, 4666, 1988, 18415, 14157, 16, 2200, 2184, 13, 288, 202, 202, 6385, 987, 3874, 6019, 273, 394, 2407, 5621, 202, 202, 1884, 261, 3198, 277, 273, 2184, ...
for (String function : new String[] { "getIfServiceId", "getIpInterfaceId", "getSnmpInterfaceId"} ) { assertTrue("Function '" + function + "' does not exist", m_installer.functionExists(function, "", "trigger")); }
m_installer.addStoredProcedures(); verifyTriggers(true);
public void testAddStoredProceduresTwice() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); m_installer.createTables(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); m_installer.addStoredProcedures(); for (String function : new String[] { "getIfServiceId", "getIpInterfaceId", "getSnmpInterfaceId"} ) { assertTrue("Function '" + function + "' does not exist", m_installer.functionExists(function, "", "trigger")); } }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/28ec8d0f53c305460681fe922d064c060141774d/InstallerDBTest.java/buggy/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 18005, 626, 23382, 23539, 1812, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 312, 67, 20163, 18, 2640, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 18005, 626, 23382, 23539, 1812, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 312, 67, 20163, 18, 2640, ...
org.eclipse.jdt.core.util.IMethodInfo methodInfo = methodInfos[1];
IMethodInfo methodInfo = methodInfos[1];
public void test033() { try { String sourceA = "public class A {\n" + " public static void main(String[] args) {\n" + " boolean b = false;\n" + " int i = 6;\n" + " if ((i == 6) \n" + " & !b) { \n" + " System.out.println(i);\n" + " }\n" + " }\n" + "}"; compileAndDeploy(sourceA, "A"); org.eclipse.jdt.core.util.IClassFileReader classFileReader = org.eclipse.jdt.core.ToolFactory.createDefaultClassFileReader(EVAL_DIRECTORY + File.separator + "A.class", org.eclipse.jdt.core.util.IClassFileReader.ALL); org.eclipse.jdt.core.util.IMethodInfo[] methodInfos = classFileReader.getMethodInfos(); assertEquals("wrong size", 2, methodInfos.length); org.eclipse.jdt.core.util.IMethodInfo methodInfo = methodInfos[1]; assertEquals("wrong name", "main", new String(methodInfo.getName())); org.eclipse.jdt.core.util.ICodeAttribute codeAttribute = methodInfo.getCodeAttribute(); assertNotNull("No code attribute", codeAttribute); org.eclipse.jdt.core.util.ILineNumberAttribute lineNumberAttribute = codeAttribute.getLineNumberAttribute(); assertNotNull("No code line number attribute", lineNumberAttribute); int[][] lineNumberTable = lineNumberAttribute.getLineNumberTable(); assertEquals("wrong size", 6, lineNumberTable.length); assertEquals("wrong pc[0]", 0, lineNumberTable[0][0]); assertEquals("wrong line[0]", 3, lineNumberTable[0][1]); assertEquals("wrong pc[1]", 2, lineNumberTable[1][0]); assertEquals("wrong line[1]", 4, lineNumberTable[1][1]); assertEquals("wrong pc[2]", 5, lineNumberTable[2][0]); assertEquals("wrong line[2]", 5, lineNumberTable[2][1]); assertEquals("wrong pc[3]", 16, lineNumberTable[3][0]); assertEquals("wrong line[3]", 6, lineNumberTable[3][1]); assertEquals("wrong pc[4]", 29, lineNumberTable[4][0]); assertEquals("wrong line[4]", 7, lineNumberTable[4][1]); assertEquals("wrong pc[5]", 36, lineNumberTable[5][0]); assertEquals("wrong line[5]", 9, lineNumberTable[5][1]); } finally { removeTempClass("A"); } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3826deb7274f8b670a1e803be5c591bc377a58f3/ClassFileReaderTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 15265, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 1084, 37, 273, 9506, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 9506, 202, 6, 202, 482, 760, 918, 2774, 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, 225, 202, 482, 918, 1842, 15265, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 1084, 37, 273, 9506, 202, 6, 482, 667, 432, 18890, 82, 6, 397, 9506, 202, 6, 202, 482, 760, 918, 2774, 12, ...
ReportDesign.BODY_SLOT );
IReportDesignModel.BODY_SLOT );
public AbstractParseState startElement( String tagName ) { if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TEXT_TAG ) ) return new TextItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.GRID_TAG ) ) return new GridItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.FREE_FORM_TAG ) ) return new FreeFormState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.LIST_TAG ) ) return new ListItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TABLE_TAG ) ) return new TableItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.LABEL_TAG ) ) return new LabelState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.IMAGE_TAG ) ) return new ImageState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.DATA_TAG ) ) return new DataItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.INCLUDE_TAG ) ) return new AnyElementState( handler ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TOC_TAG ) ) return new AnyElementState( handler ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.EXTENDED_ITEM_TAG ) ) return new ExtendedItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName .equalsIgnoreCase( DesignSchemaConstants.MULTI_LINE_DATA_TAG ) || tagName .equalsIgnoreCase( DesignSchemaConstants.TEXT_DATA_TAG ) ) return new TextDataItemState( handler, module, ReportDesign.BODY_SLOT ); if ( tagName.equalsIgnoreCase( DesignSchemaConstants.TEMPLATE_REPORT_ITEM_TAG ) ) return new TemplateReportItemState( handler, module, ReportDesign.BODY_SLOT ); return super.startElement( tagName ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/ReportState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ReportState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 4115, 3201, 1119, 13591, 12, 514, 7196, 262, 202, 202, 95, 1082, 202, 430, 261, 7196, 18, 14963, 5556, 12, 29703, 3078, 2918, 18, 5151, 67, 7927, 262, 262, 9506, 202, 2463, 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, 3196, 202, 482, 4115, 3201, 1119, 13591, 12, 514, 7196, 262, 202, 202, 95, 1082, 202, 430, 261, 7196, 18, 14963, 5556, 12, 29703, 3078, 2918, 18, 5151, 67, 7927, 262, 262, 9506, 202, 2463, 3...
return mod;
return mod; } return callCoerced("remainder", other);
public RubyNumeric remainder(RubyNumeric other) { RubyNumeric mod = modulo(other); final RubyNumeric zero = RubyFixnum.zero(getRuntime()); if (callMethod("<", zero).isTrue() && other.callMethod(">", zero).isTrue() || callMethod(">", zero).isTrue() && other.callMethod("<", zero).isTrue()) { return (RubyNumeric) mod.callMethod("-", other); } return mod; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/clean/src/org/jruby/RubyNumeric.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 9902, 10022, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 19817, 9902, 681, 273, 26109, 12, 3011, 1769, 3639, 727, 19817, 9902, 3634, 273, 19817, 8585, 2107, 18, 7124, 12, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 9902, 10022, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 19817, 9902, 681, 273, 26109, 12, 3011, 1769, 3639, 727, 19817, 9902, 3634, 273, 19817, 8585, 2107, 18, 7124, 12, 588, ...
toString1 = new BigDecimal(-1.455E-20);
toString1 = new BigDecimal("-1.455E-20");
public void test_toString() { BigDecimal toString1 = new BigDecimal("1234.000"); assertTrue("the toString representation of 1234.000 is wrong", toString1.toString().equals("1234.000")); toString1 = new BigDecimal(-123.4E-5); assertTrue("the toString representation of -123.4E-5 is wrong: " + toString1, toString1.toString().equals("-0.001234")); toString1 = new BigDecimal(-1.455E-20); assertTrue("the toString representation of -1.455E-20 is wrong", toString1.toString().equals("-0.00000000000000000001455")); toString1 = new BigDecimal(value2, 4); assertTrue("the toString representation of 1233456.0000 is wrong", toString1.toString().equals("1233456.0000")); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/e4c6ccd004bd3025b002e62ce3d78294c55f76ef/BigDecimalTest.java/buggy/modules/math/src/test/java/tests/api/java/math/BigDecimalTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 10492, 1435, 288, 202, 202, 29436, 1762, 21, 273, 394, 8150, 2932, 28462, 18, 3784, 8863, 202, 202, 11231, 5510, 2932, 5787, 1762, 4335, 434, 30011, 18, 3784, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 10492, 1435, 288, 202, 202, 29436, 1762, 21, 273, 394, 8150, 2932, 28462, 18, 3784, 8863, 202, 202, 11231, 5510, 2932, 5787, 1762, 4335, 434, 30011, 18, 3784, 353...
assertTrue(compare(retEle,"/interopt/whitemesa/round4/res/resStringFault.xml"));
assertTrue(compare(retEle,"interopt/whitemesa/round4/res/resStringFault.xml"));
public void testEchoStringFault() throws Exception{ //echoStringFault util=new EchoStringFaultClientUtil(); retEle =client.sendMsg(util,soapAction); assertTrue(compare(retEle,"/interopt/whitemesa/round4/res/resStringFault.xml")); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/73a31ddbdf98b3dc2e5187b8b75037beee5b8ccb/WhitemesaR4SimpleTest.java/buggy/modules/integration/itest/org/apache/axis2/interopt/whitmesa/round4/simple/WhitemesaR4SimpleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19704, 780, 7083, 1435, 1216, 1185, 95, 3639, 368, 12946, 780, 7083, 3639, 1709, 33, 2704, 28995, 780, 7083, 1227, 1304, 5621, 3639, 325, 17274, 273, 2625, 18, 4661, 3332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19704, 780, 7083, 1435, 1216, 1185, 95, 3639, 368, 12946, 780, 7083, 3639, 1709, 33, 2704, 28995, 780, 7083, 1227, 1304, 5621, 3639, 325, 17274, 273, 2625, 18, 4661, 3332, ...
public m3() {
public void m3() {
public m3() { int b = 0; int c = 0; int d = 0; }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/12049fbf436a7830b9211b349de3e993a800e988/Overlapping.java/buggy/src/testinputs/com/puppycrawl/tools/checkstyle/duplicates/Overlapping.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 23, 1435, 288, 3639, 509, 324, 273, 374, 31, 3639, 509, 276, 273, 374, 31, 3639, 509, 302, 273, 374, 31, 565, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 23, 1435, 288, 3639, 509, 324, 273, 374, 31, 3639, 509, 276, 273, 374, 31, 3639, 509, 302, 273, 374, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) {
public static IRubyObject[] setupArgs(Ruby runtime, ThreadContext context, EvaluateVisitor visitor, INode node) {
public static IRubyObject[] setupArgs(ThreadContext context, EvaluateVisitor visitor, INode node) { if (node == null) { return IRubyObject.NULL_ARRAY; } final ISourcePosition position = context.getPosition(); if (node instanceof ArrayNode) { final int size = ((ArrayNode) node).size(); final ArrayList list = new ArrayList(size); final Iterator iterator = ((ArrayNode) node).iterator(); for (int i = 0; i < size; i++) { final INode next = (INode) iterator.next(); if (next instanceof ExpandArrayNode) { list.addAll(((RubyArray) visitor.eval(next)).getList()); } else { list.add(visitor.eval(next)); } } context.setPosition(position); return (IRubyObject[]) list.toArray(new IRubyObject[list.size()]); } IRubyObject args = visitor.eval(node); context.setPosition(position); if (args instanceof RubyArray) { return ((RubyArray) args).toJavaArray(); } else { return new IRubyObject[] { args }; } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ArgsUtil.java/buggy/src/org/jruby/ast/util/ArgsUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 8526, 3875, 2615, 12, 54, 10340, 3099, 16, 4884, 1042, 819, 16, 18176, 7413, 8000, 16, 21176, 756, 13, 288, 3639, 309, 261, 2159, 422, 446, 13, 288, 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, 760, 15908, 10340, 921, 8526, 3875, 2615, 12, 54, 10340, 3099, 16, 4884, 1042, 819, 16, 18176, 7413, 8000, 16, 21176, 756, 13, 288, 3639, 309, 261, 2159, 422, 446, 13, 288, 5411, ...
return ">SUB_MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")";
return ">SUB_MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+ ')';
public String shouldRejectRequest(boolean canAcceptAnyway, boolean isInsert, boolean isSSK) { if(logMINOR) dumpByteCostAverages(); if(isInsert) { if(getNumInserts() > MAX_RUNNING_INSERTS) return "Too many running inserts"; } else { if(getNumRequests() > MAX_RUNNING_REQUESTS) return "Too many running requests"; } double bwlimitDelayTime = throttledPacketSendAverage.currentValue(); // If no recent reports, no packets have been sent; correct the average downwards. long now = System.currentTimeMillis(); boolean checkUncontended = false; synchronized(this) { if(now - lastCheckedUncontended > 1000) { checkUncontended = true; lastCheckedUncontended = now; } } if(checkUncontended && throttledPacketSendAverage.lastReportTime() < now - 5000) { // if last report more than 5 seconds ago // shouldn't take long outputThrottle.blockingGrab(ESTIMATED_SIZE_OF_ONE_THROTTLED_PACKET); outputThrottle.recycle(ESTIMATED_SIZE_OF_ONE_THROTTLED_PACKET); long after = System.currentTimeMillis(); // Report time it takes to grab the bytes. throttledPacketSendAverage.report(after - now); now = after; // will have changed, use new value synchronized(this) { bwlimitDelayTime = throttledPacketSendAverage.currentValue(); } } double pingTime = nodePinger.averagePingTime(); synchronized(this) { // Round trip time if(pingTime > MAX_PING_TIME) { if((now - lastAcceptedRequest > MAX_INTERREQUEST_TIME) && canAcceptAnyway) { if(logMINOR) Logger.minor(this, "Accepting request anyway (take one every 10 secs to keep bwlimitDelayTime updated)"); } else { pInstantRejectIncoming.report(1.0); return ">MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+")"; } } else if(pingTime > SUB_MAX_PING_TIME) { double x = ((double)(pingTime - SUB_MAX_PING_TIME)) / (MAX_PING_TIME - SUB_MAX_PING_TIME); if(random.nextDouble() < x) { pInstantRejectIncoming.report(1.0); return ">SUB_MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+")"; } } // Bandwidth limited packets if(bwlimitDelayTime > MAX_THROTTLE_DELAY) { if((now - lastAcceptedRequest > MAX_INTERREQUEST_TIME) && canAcceptAnyway) { if(logMINOR) Logger.minor(this, "Accepting request anyway (take one every 10 secs to keep bwlimitDelayTime updated)"); } else { pInstantRejectIncoming.report(1.0); return ">MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")"; } } else if(bwlimitDelayTime > SUB_MAX_THROTTLE_DELAY) { double x = ((double)(bwlimitDelayTime - SUB_MAX_THROTTLE_DELAY)) / (MAX_THROTTLE_DELAY - SUB_MAX_THROTTLE_DELAY); if(random.nextDouble() < x) { pInstantRejectIncoming.report(1.0); return ">SUB_MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")"; } } } // Do we have the bandwidth? double expected = (isInsert ? (isSSK ? this.remoteSskInsertBytesSentAverage : this.remoteChkInsertBytesSentAverage) : (isSSK ? this.remoteSskFetchBytesSentAverage : this.remoteChkFetchBytesSentAverage)).currentValue(); int expectedSent = (int)Math.max(expected, 0); if(!requestOutputThrottle.instantGrab(expectedSent)) { pInstantRejectIncoming.report(1.0); return "Insufficient output bandwidth"; } expected = (isInsert ? (isSSK ? this.remoteSskInsertBytesReceivedAverage : this.remoteChkInsertBytesReceivedAverage) : (isSSK ? this.remoteSskFetchBytesReceivedAverage : this.remoteChkFetchBytesReceivedAverage)).currentValue(); int expectedReceived = (int)Math.max(expected, 0); if(!requestInputThrottle.instantGrab(expectedReceived)) { requestOutputThrottle.recycle(expectedSent); pInstantRejectIncoming.report(1.0); return "Insufficient input bandwidth"; } synchronized(this) { if(logMINOR) Logger.minor(this, "Accepting request?"); lastAcceptedRequest = now; } pInstantRejectIncoming.report(0.0); // Accept return null; }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Node.java/clean/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1410, 21705, 691, 12, 6494, 848, 5933, 2961, 1888, 16, 1250, 353, 4600, 16, 1250, 353, 1260, 47, 13, 288, 202, 202, 430, 12, 1330, 6236, 916, 13, 4657, 3216, 8018, 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, 225, 202, 482, 514, 1410, 21705, 691, 12, 6494, 848, 5933, 2961, 1888, 16, 1250, 353, 4600, 16, 1250, 353, 1260, 47, 13, 288, 202, 202, 430, 12, 1330, 6236, 916, 13, 4657, 3216, 8018, 37, ...
case ParserTreeConstants.JJTWORD :
case ParserTreeConstants.JJTFLOATINGPOINTLITERAL : { constant = true; staticObject = new Double(callerReference); break; } case ParserTreeConstants.JJTWORD :
private void setup() { switch( type ) { case ParserTreeConstants.JJTINTEGERRANGE : case ParserTreeConstants.JJTREFERENCE : case ParserTreeConstants.JJTOBJECTARRAY : case ParserTreeConstants.JJTMAP : case ParserTreeConstants.JJTSTRINGLITERAL : case ParserTreeConstants.JJTTEXT : { /* * dynamic types, just render */ constant = false; try { /* * fakie : wrap in directive to get the parser to treat our args as args * it doesn't matter that #include() can't take all these types, because we * just want the parser to consider our arg as a Directive/VM arg rather than * as if inline in schmoo */ String buff ="#include(" + callerReference + " ) "; //ByteArrayInputStream inStream = new ByteArrayInputStream( buff.getBytes() ); BufferedReader br = new BufferedReader( new StringReader( buff ) ); nodeTree = rsvc.parse(br, "VMProxyArg:" + callerReference, true); /* * now, our tree really is the first DirectiveArg(), and only one */ nodeTree = (SimpleNode) nodeTree.jjtGetChild(0).jjtGetChild(0); /* * sanity check */ if ( nodeTree != null && nodeTree.getType() != type ) { rsvc.error( "VMProxyArg.setup() : programmer error : type doesn't match node type."); } /* * init. be a good citizen and give it an ICA */ InternalContextAdapter ica = new InternalContextAdapterImpl(new VelocityContext()); ica.pushCurrentTemplateName("VMProxyArg : " + ParserTreeConstants.jjtNodeName[type]); nodeTree.init(ica, rsvc); } catch ( Exception e ) { rsvc.error("VMProxyArg.setup() : exception " + callerReference + " : " + StringUtils.stackTrace(e)); } break; } case ParserTreeConstants.JJTTRUE : { constant = true; staticObject = new Boolean(true); break; } case ParserTreeConstants.JJTFALSE : { constant = true; staticObject = new Boolean(false); break; } case ParserTreeConstants.JJTNUMBERLITERAL : { constant = true; staticObject = new Integer(callerReference); break; } case ParserTreeConstants.JJTWORD : { /* * this is technically an error... */ rsvc.error("Unsupported arg type : " + callerReference + " You most likely intended to call a VM with a string literal, so enclose with ' or \" characters. (VMProxyArg.setup())"); constant = true; staticObject = new String( callerReference ); break; } default : { rsvc.error(" VMProxyArg.setup() : unsupported type : " + callerReference ); } } }
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/VMProxyArg.java/clean/src/java/org/apache/velocity/runtime/directive/VMProxyArg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 1435, 565, 288, 3639, 1620, 12, 618, 262, 288, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14217, 15928, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14617, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 1435, 565, 288, 3639, 1620, 12, 618, 262, 288, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14217, 15928, 294, 3639, 648, 6783, 2471, 2918, 18, 46, 46, 56, 14617, 294, ...
public void actionPerformed(ActionEvent evt) { DefaultPortletAction _action = evt.getAction(); PortletRequest req = evt.getPortletRequest(); FormEvent form = new FormEventImpl(evt); String button = form.getPressedSubmitButton(); if (_action.getName().equals("rss_edit")) { if (button.equals("show")) { String temp_url = req.getParameter("rss_url"); if (!temp_url.equals(_url)) { _lastFetched = 0; _url=temp_url; } req.setMode(Portlet.Mode.VIEW); } if (button.equals("cancel")) { req.setMode(Portlet.Mode.VIEW); } if (button.equals("check")) { //@TODO need to put the RSS feed into a bean! req.setMode(Portlet.Mode.EDIT); Document doc = getRSSFeed(req.getParameter("rss_url")); Element root = doc.getRootElement(); String version = root.getAttributeValue("version"); if (version.equals("2.0")) { req.setAttribute("rss_support","yes");} else {req.setAttribute("rss_support","no");} } } if (_action.getName().equals("rss_configure")) { if (button.equals("cancel")) { req.setMode(Portlet.Mode.VIEW); } if (button.equals("delete")) { String[] result = form.getSelectedListBoxValues("Labeltest"); for (int i=0;i<result.length;i++) { model.removeItem(result[i]); } } if (button.equals("ok")) { String[] result = form.getSelectedListBoxValues("Labeltest"); req.setMode(Portlet.Mode.VIEW); } if (button.equals("add")) { String name = req.getParameter("rss_name"); String url = req.getParameter("rss_url"); model.addItem(new ListSelectItem(name, url, true)); model.unselectAll(); String result[] = form.getSelectedCheckBoxValues(cbmodel.getName()); selectedcheckboxes = ""; for (int i=0;i<result.length;i++) { selectedcheckboxes = selectedcheckboxes+" "+result[i]; } model = form.adjustListBoxModel(model);/* cbmodel.unselectAll(); for (int i=0;i<result.length;i++) { ((CheckBoxItem)cbmodel.getItem(result[i])).setSelected(true); }*/ } } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/b7465ff52409f23642db1195f574b8e548a3cb16/RSSPortlet.java/buggy/src/org/gridlab/gridsphere/portlets/core/RSSPortlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1128, 13889, 12, 1803, 1133, 73, 11734, 15329, 1868, 18566, 1803, 67, 1128, 33, 73, 11734, 18, 588, 1803, 5621, 18566, 691, 3658, 33, 73, 11734, 18, 588, 18566, 691, 5621, 1204, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1128, 13889, 12, 1803, 1133, 73, 11734, 15329, 1868, 18566, 1803, 67, 1128, 33, 73, 11734, 18, 588, 1803, 5621, 18566, 691, 3658, 33, 73, 11734, 18, 588, 18566, 691, 5621, 1204, 11...
Projection proj = ProjectionFactory.makeProjection(CADRG.class, 42.0f, -72.0f, 5000000f, 500, 500);
public GeneratorTester(String[] args) { props = System.getProperties(); Debug.init(props); parseArgs(args); try { URL propsURL = new URL(propertiesURLString); Environment.init(props); loadProperties(propsURL, props); } catch (MalformedURLException mul) { System.out.println("GeneratorTester: Malformed URL"); return; } Projection proj = ProjectionFactory.makeProjection(CADRG.class, 42.0f, -72.0f, 5000000f, 500, 500); server = new ImageServer(props); // server.createImage(proj, this); }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/22d1965e37c33827a0f0ebf37de303c8349f6911/GeneratorTester.java/clean/src/openmap/com/bbn/openmap/image/GeneratorTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10159, 56, 7654, 12, 780, 8526, 833, 13, 288, 3639, 3458, 273, 2332, 18, 588, 2297, 5621, 3639, 4015, 18, 2738, 12, 9693, 1769, 3639, 1109, 2615, 12, 1968, 1769, 3639, 775, 288, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10159, 56, 7654, 12, 780, 8526, 833, 13, 288, 3639, 3458, 273, 2332, 18, 588, 2297, 5621, 3639, 4015, 18, 2738, 12, 9693, 1769, 3639, 1109, 2615, 12, 1968, 1769, 3639, 775, 288, 5...
public synchronized ResultSet ExecSQL(String sql) throws SQLException
public ResultSet ExecSQL(String sql) throws SQLException
public synchronized ResultSet ExecSQL(String sql) throws SQLException { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = new byte[sql.length()]; int fqp = 0; boolean hfr = false; String recv_status = null, msg; SQLException final_error = null; if (sql.length() > 8192) throw new SQLException("SQL Statement too long: " + sql); try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new SQLException("I/O Error: " + e.toString()); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new SQLException("Tuple received before MetaData"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new SQLException("I/O Error: " + e.toString()); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new SQLException("Tuple received before MetaData"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new SQLException("Garbled Data"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new SQLException("Cannot handle multiple result groups"); fields = ReceiveFields(); break; default: throw new SQLException("Unknown Response Type: " + (char)c); } } if (final_error != null) throw final_error; return new ResultSet(this, fields, tuples, recv_status, 1); }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/25b5faa7cdcb6c7cefc438bd5cd5e0141c7df0b4/Connection.java/buggy/src/interfaces/jdbc/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10842, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 225, 288, 565, 2286, 8526, 1466, 273, 446, 31, 565, 5589, 10384, 273, 394, 5589, 5621, 565, 1160, 8526, 1681, 273, 394, 1160, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10842, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 225, 288, 565, 2286, 8526, 1466, 273, 446, 31, 565, 5589, 10384, 273, 394, 5589, 5621, 565, 1160, 8526, 1681, 273, 394, 1160, 63, ...
contentProvider.setProgressMessage(getMessage());
if (!isCanceled()) contentProvider.setProgressMessage(getMessage());
public void internalWorked(double work) { worked = worked + work; if ((((int) (((worked - work) * 10) / totalWork)) < ((int) ((worked * 10) / totalWork))) || (((int) ((worked * 10) / totalWork)) == 0)) contentProvider.setProgressMessage(getMessage()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7771ecca6b526e14ab62730f7f842aafab029250/FilteredItemsSelectionDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 2713, 2421, 329, 12, 9056, 1440, 13, 288, 1082, 202, 1252, 329, 273, 28613, 397, 1440, 31, 1082, 202, 430, 261, 12443, 12, 474, 13, 261, 12443, 1252, 329, 300, 1440, 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, 3196, 202, 482, 918, 2713, 2421, 329, 12, 9056, 1440, 13, 288, 1082, 202, 1252, 329, 273, 28613, 397, 1440, 31, 1082, 202, 430, 261, 12443, 12, 474, 13, 261, 12443, 1252, 329, 300, 1440, 13,...
float startTime = ((float) startFeature.getFirstSampleNumber()/
float startTime = startFeature==null ? -1 :((float) startFeature.getFirstSampleNumber()/
private void addWord(StringBuffer sb, Word word, FloatData startFeature, FloatData endFeature) { float startTime = ((float) startFeature.getFirstSampleNumber()/ startFeature.getSampleRate()); float endTime = ((float) endFeature.getFirstSampleNumber()/ endFeature.getSampleRate()); if (sb.length() > 0) { sb.insert(0, " "); } sb.insert(0, (word.getSpelling() + "(" + startTime + "," + endTime + ")")); }
7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/53aba2966df0a604658ae1e0c7a34ebc924b2624/Result.java/clean/src/sphinx4/edu/cmu/sphinx/result/Result.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 3944, 12, 780, 1892, 2393, 16, 9926, 2076, 16, 7682, 5450, 751, 787, 4595, 16, 5450, 751, 679, 4595, 13, 288, 3639, 1431, 8657, 273, 14015, 5659, 13, 787, 4595, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 3944, 12, 780, 1892, 2393, 16, 9926, 2076, 16, 7682, 5450, 751, 787, 4595, 16, 5450, 751, 679, 4595, 13, 288, 3639, 1431, 8657, 273, 14015, 5659, 13, 787, 4595, 18, 588,...
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID();
public quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { quickfix.field.NoSecurityAltID value = new quickfix.field.NoSecurityAltID();
public org.quickfix.field.NoSecurityAltID getNoSecurityAltID() throws FieldNotFound { org.quickfix.field.NoSecurityAltID value = new org.quickfix.field.NoSecurityAltID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AssignmentReport.java/buggy/src/java/src/quickfix/fix44/AssignmentReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734, 336, 2279, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734, 336, 2279, 4368, 10655, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 4368, 10655, 734...
ObjectName objectName = new ObjectName( brokerObjectName.getDomain()+":"+ "BrokerName="+map.get("BrokerName")+","+ "Type="+JMXSupport.encodeObjectNamePart(destName.getDestinationTypeAsString())+","+ "Destination="+JMXSupport.encodeObjectNamePart(destName.getPhysicalName()) );
ObjectName objectName = createObjectName(destName);
public void register(ActiveMQDestination destName,Destination destination){ // Build the object name for the destination Hashtable map=brokerObjectName.getKeyPropertyList(); try{ ObjectName objectName = new ObjectName( brokerObjectName.getDomain()+":"+ "BrokerName="+map.get("BrokerName")+","+ "Type="+JMXSupport.encodeObjectNamePart(destName.getDestinationTypeAsString())+","+ "Destination="+JMXSupport.encodeObjectNamePart(destName.getPhysicalName()) ); DestinationView view; if(destination instanceof Queue){ view=new QueueView(this, (Queue) destination); }else{ view=new TopicView(this, (Topic) destination); } registerDestination(objectName,destName,view); }catch(Exception e){ log.error("Failed to register destination "+destName,e); } }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/3cd3fd364e90595c59b33c3466bf9559fdc9a051/ManagedRegionBroker.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagedRegionBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1744, 12, 3896, 9682, 5683, 1570, 461, 16, 5683, 2929, 15329, 3639, 368, 3998, 326, 733, 508, 364, 326, 2929, 3639, 18559, 852, 33, 21722, 16707, 18, 588, 653, 1396, 682, 5621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1744, 12, 3896, 9682, 5683, 1570, 461, 16, 5683, 2929, 15329, 3639, 368, 3998, 326, 733, 508, 364, 326, 2929, 3639, 18559, 852, 33, 21722, 16707, 18, 588, 653, 1396, 682, 5621,...
public UdpEventReceiver(int port)
public UdpEventReceiver()
public UdpEventReceiver(int port) { m_dgSock = null; m_dgPort = port; m_eventsIn = new LinkedList(); m_eventUuidsOut = new LinkedList(); m_handlers = new ArrayList(3); m_status = START_PENDING; m_dgSock = null; m_receiver = null; m_processor= null; m_output = null; m_logPrefix = null; }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/b3612967cb053036bdb295ee74cb2e369c6ca18d/UdpEventReceiver.java/buggy/src/services/org/opennms/netmgt/eventd/adaptors/udp/UdpEventReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 587, 9295, 1133, 12952, 12, 474, 1756, 13, 202, 95, 202, 202, 81, 67, 72, 75, 55, 975, 225, 273, 446, 31, 202, 202, 81, 67, 72, 75, 2617, 225, 273, 1756, 31, 202, 202, 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, 225, 202, 482, 587, 9295, 1133, 12952, 12, 474, 1756, 13, 202, 95, 202, 202, 81, 67, 72, 75, 55, 975, 225, 273, 446, 31, 202, 202, 81, 67, 72, 75, 2617, 225, 273, 1756, 31, 202, 202, 8...
public boolean overwrite(){
public boolean overwrite() {
public boolean overwrite(){ return overwriteCheckBox.getSelection(); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d521af257a07fb9dabe2dcd3820e458458d5b5f9/TaskDataExportWizardPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/wizards/TaskDataExportWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6156, 1435, 95, 202, 202, 2463, 6156, 19174, 18, 588, 6233, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6156, 1435, 95, 202, 202, 2463, 6156, 19174, 18, 588, 6233, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public void testStructureTagScoping_1() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("struct A; \n"); //$NON-NLS-1$ buffer.append("void f(){ \n"); //$NON-NLS-1$ buffer.append(" struct A; \n"); //$NON-NLS-1$ buffer.append(" struct A * a; \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); //struct A; IASTSimpleDeclaration decl1 = (IASTSimpleDeclaration) tu .getDeclarations()[0]; IASTElaboratedTypeSpecifier compTypeSpec = (IASTElaboratedTypeSpecifier) decl1 .getDeclSpecifier(); assertEquals(0, decl1.getDeclarators().length); IASTName nameA1 = compTypeSpec.getName(); //void f() { IASTFunctionDefinition fndef = (IASTFunctionDefinition) tu .getDeclarations()[1]; IASTCompoundStatement compoundStatement = (IASTCompoundStatement) fndef .getBody(); assertEquals(2, compoundStatement.getStatements().length); // struct A; IASTDeclarationStatement declStatement = (IASTDeclarationStatement) compoundStatement .getStatements()[0]; IASTSimpleDeclaration decl2 = (IASTSimpleDeclaration) declStatement .getDeclaration(); compTypeSpec = (IASTElaboratedTypeSpecifier) decl2.getDeclSpecifier(); assertEquals(0, decl2.getDeclarators().length); IASTName nameA2 = compTypeSpec.getName(); // struct A * a; declStatement = (IASTDeclarationStatement) compoundStatement .getStatements()[1]; IASTSimpleDeclaration decl3 = (IASTSimpleDeclaration) declStatement .getDeclaration(); compTypeSpec = (IASTElaboratedTypeSpecifier) decl3.getDeclSpecifier(); IASTName nameA3 = compTypeSpec.getName(); IASTDeclarator dtor = decl3.getDeclarators()[0]; IASTName namea = dtor.getName(); assertEquals(1, dtor.getPointerOperators().length); assertTrue(dtor.getPointerOperators()[0] instanceof ICASTPointer); //bindings ICompositeType str1 = (ICompositeType) nameA1.resolveBinding(); ICompositeType str2 = (ICompositeType) nameA2.resolveBinding(); IVariable var = (IVariable) namea.resolveBinding(); IType str3pointer = var.getType(); assertTrue(str3pointer instanceof IPointerType); ICompositeType str3 = (ICompositeType) ((IPointerType) str3pointer) .getType(); ICompositeType str4 = (ICompositeType) nameA3.resolveBinding(); assertNotNull(str1); assertNotNull(str2); assertNotSame(str1, str2); assertSame(str2, str3); assertSame(str3, str4); // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(nameA1.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA1); decls = tu.getDeclarations(fndef.getDeclarator().getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], fndef.getDeclarator().getName()); decls = tu.getDeclarations(nameA2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA2); decls = tu.getDeclarations(nameA3.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA2); decls = tu.getDeclarations(namea.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], namea); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/78f1bf90544259bc8541128f8a50137b3f49f862/AST2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6999, 1805, 1541, 22384, 67, 21, 1435, 1216, 1185, 288, 3639, 6674, 1613, 273, 394, 6674, 5621, 3639, 1613, 18, 6923, 2932, 1697, 432, 31, 2398, 521, 82, 8863, 4329, 3993...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6999, 1805, 1541, 22384, 67, 21, 1435, 1216, 1185, 288, 3639, 6674, 1613, 273, 394, 6674, 5621, 3639, 1613, 18, 6923, 2932, 1697, 432, 31, 2398, 521, 82, 8863, 4329, 3993...
/***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; }
} else { ch = -1;
public boolean scanExpr(StringPool stringPool, XPath.Tokens tokens, String data, int currentOffset, int endOffset) throws XPathException { int nameOffset; int nameHandle, prefixHandle; boolean starIsMultiplyOperator = false; int ch; /*** if (XPath.Tokens.DUMP_TOKENS) { System.out.println(" <test>"); System.out.println(" <expression>"); System.out.println(" " + encoding.createString(data, currentOffset, endOffset - currentOffset)); System.out.println(" </expression>"); } /***/ while (true) { if (currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ // // [39] ExprWhitespace ::= S // while (ch == ' ' || ch == 0x0A || ch == 0x09 || ch == 0x0D) { if (++currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } if (currentOffset == endOffset) { break; } // // [28] ExprToken ::= '(' | ')' | '[' | ']' | '.' | '..' | '@' | ',' | '::' // | NameTest | NodeType | Operator | FunctionName // | AxisName | Literal | Number | VariableReference // byte chartype = (ch >= 0x80) ? CHARTYPE_NONASCII : fASCIICharMap[ch]; switch (chartype) { case CHARTYPE_OPEN_PAREN: // '(' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPEN_PAREN); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_CLOSE_PAREN: // ')' addToken(tokens, XPath.Tokens.EXPRTOKEN_CLOSE_PAREN); starIsMultiplyOperator = true; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_OPEN_BRACKET: // '[' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPEN_BRACKET); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_CLOSE_BRACKET: // ']' addToken(tokens, XPath.Tokens.EXPRTOKEN_CLOSE_BRACKET); starIsMultiplyOperator = true; if (++currentOffset == endOffset) { break; } break; // // [30] Number ::= Digits ('.' Digits?)? | '.' Digits // ^^^^^^^^^^ // case CHARTYPE_PERIOD: // '.', '..' or '.' Digits if (currentOffset + 1 == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_PERIOD); starIsMultiplyOperator = true; currentOffset++; break; } /*** ch = (data[currentOffset + 1] & 0xFF); /***/ ch = data.charAt(currentOffset + 1); /***/ if (ch == '.') { // '..' addToken(tokens, XPath.Tokens.EXPRTOKEN_DOUBLE_PERIOD); starIsMultiplyOperator = true; currentOffset += 2; } else if (ch >= '0' && ch <= '9') { addToken(tokens, XPath.Tokens.EXPRTOKEN_NUMBER); starIsMultiplyOperator = true; currentOffset = scanNumber(tokens, data, endOffset, currentOffset/*, encoding*/); } else { // '.' addToken(tokens, XPath.Tokens.EXPRTOKEN_PERIOD); starIsMultiplyOperator = true; currentOffset++; } if (currentOffset == endOffset) { break; } break; case CHARTYPE_ATSIGN: // '@' addToken(tokens, XPath.Tokens.EXPRTOKEN_ATSIGN); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_COMMA: // ',' addToken(tokens, XPath.Tokens.EXPRTOKEN_COMMA); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_COLON: // '::' if (++currentOffset == endOffset) { System.out.println("abort 1a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch != ':') { System.out.println("abort 1b"); return false; // REVISIT } addToken(tokens, XPath.Tokens.EXPRTOKEN_DOUBLE_COLON); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_SLASH: // '/' and '//' if (++currentOffset == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_SLASH); starIsMultiplyOperator = false; break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '/') { // '//' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_DOUBLE_SLASH); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_SLASH); starIsMultiplyOperator = false; } break; case CHARTYPE_UNION: // '|' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_UNION); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_PLUS: // '+' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_PLUS); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_MINUS: // '-' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_MINUS); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_EQUAL: // '=' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_EXCLAMATION: // '!=' if (++currentOffset == endOffset) { System.out.println("abort 2a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch != '=') { System.out.println("abort 2b"); return false; // REVISIT } addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_NOT_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; case CHARTYPE_LESS: // '<' and '<=' if (++currentOffset == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_LESS); starIsMultiplyOperator = false; break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '=') { // '<=' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_LESS_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_LESS); starIsMultiplyOperator = false; } break; case CHARTYPE_GREATER: // '>' and '>=' if (++currentOffset == endOffset) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_GREATER); starIsMultiplyOperator = false; break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '=') { // '>=' addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_GREATER_EQUAL); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_GREATER); starIsMultiplyOperator = false; } break; // // [29] Literal ::= '"' [^"]* '"' | "'" [^']* "'" // case CHARTYPE_QUOTE: // '\"' or '\'' int qchar = ch; if (++currentOffset == endOffset) { System.out.println("abort 2c"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ int litOffset = currentOffset; while (ch != qchar) { if (++currentOffset == endOffset) { System.out.println("abort 2d"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } int litLength = currentOffset - litOffset; addToken(tokens, XPath.Tokens.EXPRTOKEN_LITERAL); starIsMultiplyOperator = true; /*** addToken(tokens, tokens.addSymbol(data, litOffset, litLength, encoding)); /***/ tokens.addToken(stringPool.addSymbol(data.substring(litOffset, litOffset + litLength))); /***/ if (++currentOffset == endOffset) { break; } break; // // [30] Number ::= Digits ('.' Digits?)? | '.' Digits // [31] Digits ::= [0-9]+ // case CHARTYPE_DIGIT: addToken(tokens, XPath.Tokens.EXPRTOKEN_NUMBER); starIsMultiplyOperator = true; currentOffset = scanNumber(tokens, data, endOffset, currentOffset/*, encoding*/); break; // // [36] VariableReference ::= '$' QName // case CHARTYPE_DOLLAR: if (++currentOffset == endOffset) { System.out.println("abort 3a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ nameOffset = currentOffset; if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_UNDERSCORE) { System.out.println("abort 3b"); return false; // REVISIT } while (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ if (ch != ':') { prefixHandle = -1; } else { prefixHandle = nameHandle; if (++currentOffset == endOffset) { System.out.println("abort 4a"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ nameOffset = currentOffset; if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_UNDERSCORE) { System.out.println("abort 4b"); return false; // REVISIT } while (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ } addToken(tokens, XPath.Tokens.EXPRTOKEN_VARIABLE_REFERENCE); starIsMultiplyOperator = true; tokens.addToken(prefixHandle); tokens.addToken(nameHandle); break; // // [37] NameTest ::= '*' | NCName ':' '*' | QName // [34] MultiplyOperator ::= '*' // case CHARTYPE_STAR: // '*' // // 3.7 Lexical Structure // // If there is a preceding token and the preceding token is not one of @, ::, (, [, , or // an Operator, then a * must be recognized as a MultiplyOperator. // // Otherwise, the token must not be recognized as a MultiplyOperator. // if (starIsMultiplyOperator) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_MULT); starIsMultiplyOperator = false; } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_NAMETEST_ANY); starIsMultiplyOperator = true; } if (++currentOffset == endOffset) { break; } break; // // NCName, QName and non-terminals // case CHARTYPE_NONASCII: // possibly a valid non-ascii 'Letter' (BaseChar | Ideographic) throw new RuntimeException("need encoding support"); case CHARTYPE_LETTER: case CHARTYPE_UNDERSCORE: // // 3.7 Lexical Structure // // If there is a preceding token and the preceding token is not one of @, ::, (, [, , or // an Operator, then an NCName must be recognized as an OperatorName. // // If the character following an NCName (possibly after intervening ExprWhitespace) is (, // then the token must be recognized as a NodeType or a FunctionName. // // If the two characters following an NCName (possibly after intervening ExprWhitespace) // are ::, then the token must be recognized as an AxisName. // // Otherwise, the token must not be recognized as an OperatorName, a NodeType, a // FunctionName, or an AxisName. // // [33] OperatorName ::= 'and' | 'or' | 'mod' | 'div' // [38] NodeType ::= 'comment' | 'text' | 'processing-instruction' | 'node' // [35] FunctionName ::= QName - NodeType // [6] AxisName ::= (see above) // // [37] NameTest ::= '*' | NCName ':' '*' | QName // [5] NCName ::= (Letter | '_') (NCNameChar)* // [?] NCNameChar ::= Letter | Digit | '.' | '-' | '_' (ascii subset of 'NCNameChar') // [?] QName ::= (NCName ':')? NCName // [?] Letter ::= [A-Za-z] (ascii subset of 'Letter') // [?] Digit ::= [0-9] (ascii subset of 'Digit') // nameOffset = currentOffset; while (true) { if (++currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ boolean isNameTestNCName = false; boolean isAxisName = false; prefixHandle = -1; if (ch == ':') { if (++currentOffset == endOffset) { System.out.println("abort 5"); return false; // REVISIT } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch == '*') { if (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } isNameTestNCName = true; } else if (ch == ':') { if (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } isAxisName = true; } else { prefixHandle = nameHandle; nameOffset = currentOffset; if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_UNDERSCORE) { System.out.println("abort 5b"); return false; // REVISIT } while (++currentOffset < endOffset) { /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ if (ch >= 0x80) { throw new RuntimeException("need encoding support"); } chartype = fASCIICharMap[ch]; if (chartype != CHARTYPE_LETTER && chartype != CHARTYPE_DIGIT && chartype != CHARTYPE_PERIOD && chartype != CHARTYPE_MINUS && chartype != CHARTYPE_UNDERSCORE) { break; } } /*** nameHandle = tokens.addSymbol(data, nameOffset, currentOffset - nameOffset, encoding); /***/ nameHandle = stringPool.addSymbol(data.substring(nameOffset, currentOffset)); /***/ } } // // [39] ExprWhitespace ::= S // while (ch == ' ' || ch == 0x0A || ch == 0x09 || ch == 0x0D) { if (++currentOffset == endOffset) { break; } /*** ch = (data[currentOffset] & 0xFF); /***/ ch = data.charAt(currentOffset); /***/ } // // If there is a preceding token and the preceding token is not one of @, ::, (, [, , or // an Operator, then an NCName must be recognized as an OperatorName. // if (starIsMultiplyOperator) { if (nameHandle == fAndSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_AND); starIsMultiplyOperator = false; } else if (nameHandle == fOrSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_OR); starIsMultiplyOperator = false; } else if (nameHandle == fModSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_MOD); starIsMultiplyOperator = false; } else if (nameHandle == fDivSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_OPERATOR_DIV); starIsMultiplyOperator = false; } else { System.out.println("abort 6"); return false; // REVISIT } if (isNameTestNCName) { System.out.println("abort 7"); return false; // REVISIT - NCName:* where an OperatorName is required } else if (isAxisName) { System.out.println("abort 8"); return false; // REVISIT - AxisName:: where an OperatorName is required } break; } // // If the character following an NCName (possibly after intervening ExprWhitespace) is (, // then the token must be recognized as a NodeType or a FunctionName. // if (ch == '(' && !isNameTestNCName && !isAxisName) { if (nameHandle == fCommentSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_COMMENT); } else if (nameHandle == fTextSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_TEXT); } else if (nameHandle == fPISymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_PI); } else if (nameHandle == fNodeSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NODETYPE_NODE); } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_FUNCTION_NAME); tokens.addToken(prefixHandle); tokens.addToken(nameHandle); } addToken(tokens, XPath.Tokens.EXPRTOKEN_OPEN_PAREN); starIsMultiplyOperator = false; if (++currentOffset == endOffset) { break; } break; } // // If the two characters following an NCName (possibly after intervening ExprWhitespace) // are ::, then the token must be recognized as an AxisName. // if (isAxisName || (ch == ':' && currentOffset + 1 < endOffset && /*** (data[currentOffset + 1] & 0xFF) == ':')) { /***/ data.charAt(currentOffset + 1) == ':')) { /***/ if (nameHandle == fAncestorSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_ANCESTOR); } else if (nameHandle == fAncestorOrSelfSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_ANCESTOR_OR_SELF); } else if (nameHandle == fAttributeSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_ATTRIBUTE); } else if (nameHandle == fChildSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_CHILD); } else if (nameHandle == fDescendantSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_DESCENDANT); } else if (nameHandle == fDescendantOrSelfSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_DESCENDANT_OR_SELF); } else if (nameHandle == fFollowingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_FOLLOWING); } else if (nameHandle == fFollowingSiblingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_FOLLOWING_SIBLING); } else if (nameHandle == fNamespaceSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_NAMESPACE); } else if (nameHandle == fParentSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_PARENT); } else if (nameHandle == fPrecedingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_PRECEDING); } else if (nameHandle == fPrecedingSiblingSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_PRECEDING_SIBLING); } else if (nameHandle == fSelfSymbol) { addToken(tokens, XPath.Tokens.EXPRTOKEN_AXISNAME_SELF); } else { System.out.println("abort 9"); return false; // REVISIT } if (isNameTestNCName) { System.out.println("abort 10"); return false; // REVISIT - "NCName:* ::" where "AxisName ::" is required } addToken(tokens, XPath.Tokens.EXPRTOKEN_DOUBLE_COLON); starIsMultiplyOperator = false; if (!isAxisName) { currentOffset++; if (++currentOffset == endOffset) { break; } } break; } // // Otherwise, the token must not be recognized as an OperatorName, a NodeType, a // FunctionName, or an AxisName. // if (isNameTestNCName) { addToken(tokens, XPath.Tokens.EXPRTOKEN_NAMETEST_NAMESPACE); starIsMultiplyOperator = true; tokens.addToken(nameHandle); } else { addToken(tokens, XPath.Tokens.EXPRTOKEN_NAMETEST_QNAME); starIsMultiplyOperator = true; tokens.addToken(prefixHandle); tokens.addToken(nameHandle); } break; } } if (XPath.Tokens.DUMP_TOKENS) { tokens.dumpTokens(); } return true; }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/aa99989e376e02ed6ccd94324e53925c6dc3094b/XPath.java/clean/src/org/apache/xerces/validators/schema/identity/XPath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 4135, 4742, 12, 780, 2864, 533, 2864, 16, 27573, 10172, 18, 5157, 2430, 16, 514, 501, 16, 4766, 509, 783, 2335, 16, 509, 25507, 13, 5411, 1216, 10172, 503, 288, 13491, 509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 4135, 4742, 12, 780, 2864, 533, 2864, 16, 27573, 10172, 18, 5157, 2430, 16, 514, 501, 16, 4766, 509, 783, 2335, 16, 509, 25507, 13, 5411, 1216, 10172, 503, 288, 13491, 509, ...
throw new BMPException("Invalid number of bits per pixel: "+ bitcount);
throw new BMPException("Invalid number of bits per pixel: " + bitcount);
public void setBitCount(short bitcount) throws BMPException { switch(bitcount){ case 1: case 4: case 8: case 16: case 24: case 32: biBitCount = bitcount; break; default: throw new BMPException("Invalid number of bits per pixel: "+ bitcount); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/BMPInfoHeader.java/clean/core/src/classpath/gnu/gnu/javax/imageio/bmp/BMPInfoHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5775, 1380, 12, 6620, 2831, 1883, 13, 1216, 605, 4566, 503, 288, 202, 9610, 12, 3682, 1883, 15329, 202, 3593, 404, 30, 202, 3593, 1059, 30, 202, 3593, 1725, 30, 202, 359...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 5775, 1380, 12, 6620, 2831, 1883, 13, 1216, 605, 4566, 503, 288, 202, 9610, 12, 3682, 1883, 15329, 202, 3593, 404, 30, 202, 3593, 1059, 30, 202, 3593, 1725, 30, 202, 359...
if (start != null) { return lexer.getPosition(start.getPosition()); } return lexer.getPosition(null);
return getPosition(start, false);
private ISourcePosition getPosition(ISourcePositionHolder start) { if (start != null) { return lexer.getPosition(start.getPosition()); } return lexer.getPosition(null); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/b1293eda8454686e846e2a9837b348e2983bb423/DefaultRubyParser.java/buggy/src/org/jruby/parser/DefaultRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 1830, 2555, 14441, 12, 45, 1830, 2555, 6064, 787, 13, 288, 3639, 309, 261, 1937, 480, 446, 13, 288, 5411, 327, 8512, 18, 588, 2555, 12, 1937, 18, 588, 2555, 10663, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 1830, 2555, 14441, 12, 45, 1830, 2555, 6064, 787, 13, 288, 3639, 309, 261, 1937, 480, 446, 13, 288, 5411, 327, 8512, 18, 588, 2555, 12, 1937, 18, 588, 2555, 10663, 202, 97, ...
static public double max(Context cx, Scriptable thisObj, Object[] args, Function funObj)
public static double max(Context cx, Scriptable thisObj, Object[] args, Function funObj)
static public double max(Context cx, Scriptable thisObj, Object[] args, Function funObj) { double result = Double.NEGATIVE_INFINITY; if (args.length == 0) return result; for (int i = 0; i < args.length; i++) { double d = ScriptRuntime.toNumber(args[i]); if (d != d) return d; result = Math.max(result, d); } return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3ef540f70dc64e503df2b7ca56d6cf65647fcf42/NativeMath.java/buggy/js/rhino/org/mozilla/javascript/NativeMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 1645, 943, 12, 1042, 9494, 16, 22780, 15261, 16, 19694, 1033, 8526, 833, 16, 4284, 9831, 2675, 13, 377, 288, 7734, 1645, 563, 273, 3698, 18, 5407, 22421, 67, 17716, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 1645, 943, 12, 1042, 9494, 16, 22780, 15261, 16, 19694, 1033, 8526, 833, 16, 4284, 9831, 2675, 13, 377, 288, 7734, 1645, 563, 273, 3698, 18, 5407, 22421, 67, 17716, 31, 3639, ...
return ListUtil.list(getBaseUrl().toString());
return ListUtil.list(makeStartUrl(base, volume));
public List getNewContentCrawlUrls() { return ListUtil.list(getBaseUrl().toString()); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/1aef85c1aeea39e969980e508f9c5ec464fa9541/HighWireArchivalUnit.java/clean/src/org/lockss/plugin/highwire/HighWireArchivalUnit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 12654, 1350, 39, 15161, 10509, 1435, 288, 565, 327, 987, 1304, 18, 1098, 12, 6540, 1685, 1489, 12, 1969, 16, 3940, 10019, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 12654, 1350, 39, 15161, 10509, 1435, 288, 565, 327, 987, 1304, 18, 1098, 12, 6540, 1685, 1489, 12, 1969, 16, 3940, 10019, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100,...
nature.getStore().setProperty(PythonPathNature.getProjectSourcePathQualifiedName(), newSourcePath);
nature.getStore().setPathProperty(PythonPathNature.getProjectSourcePathQualifiedName(), newSourcePath);
public void setProjectSourcePath(String newSourcePath) throws CoreException { synchronized(project){ projectSourcePathSet = null; PythonNature nature = PythonNature.getPythonNature(project); nature.getStore().setProperty(PythonPathNature.getProjectSourcePathQualifiedName(), newSourcePath); } }
50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/52a03aad305d349dcdfa27447374c4e31448d78e/PythonPathNature.java/clean/org.python.pydev/src/org/python/pydev/plugin/nature/PythonPathNature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25323, 1830, 743, 12, 780, 394, 1830, 743, 13, 1216, 30015, 288, 3639, 3852, 12, 4406, 15329, 5411, 1984, 1830, 743, 694, 273, 446, 31, 5411, 6600, 50, 1231, 28700, 273, 6600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25323, 1830, 743, 12, 780, 394, 1830, 743, 13, 1216, 30015, 288, 3639, 3852, 12, 4406, 15329, 5411, 1984, 1830, 743, 694, 273, 446, 31, 5411, 6600, 50, 1231, 28700, 273, 6600, ...
if (userApplicationMainAreaStateId != null)
if (userApplicationMainAreaStateId != null){
public void main(IWContext iwc) throws Exception { this.empty(); iwb = getBundle(iwc); iwrb = getResourceBundle(iwc); boolean useDropdown = iwb.getBooleanProperty("use_dropdown_in_toolbar", false); Table controlTable = new Table(1, 3); controlTable.setCellpadding(0); controlTable.setCellspacing(0); controlTable.setWidth(Table.HUNDRED_PERCENT); controlTable.setHeight(29); controlTable.setColor(1, 1, "#FFFFFF"); controlTable.setColor(1, 3, "#D0D0D0"); Table toolbarTable = new Table(4, 1); toolbarTable.setCellpadding(0); toolbarTable.setCellspacing(0); toolbarTable.setBorder(0); toolbarTable.setHeight(27); toolbarTable.setStyleClass(menuTableStyle); toolbarTable.setWidth(Table.HUNDRED_PERCENT); toolbarTable.setWidth(4, Table.HUNDRED_PERCENT); toolbarTable.setHeight(1, Table.HUNDRED_PERCENT); toolbarTable.setAlignment(4, 1, Table.HORIZONTAL_ALIGN_RIGHT); controlTable.add(toolbarTable, 1, 2); add(controlTable); Table toolbar1 = new Table(); toolbar1.setCellpadding(0); toolbar1.setCellspacing(0); toolbar1.setBorder(0); toolbarTable.add(toolbar1, 1, 1); int toolbarColumn = 1; //User Image iconCrUser = iwb.getImage("new_user.gif"); Link tLink11 = getToolbarLink(new Text(iwrb.getLocalizedString("new.member", "New member")), CreateUser.class, null); tLink11.setStyleClass(styledLink); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 12); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconCrUser, CreateUser.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink11, toolbarColumn++, 1); //Group Image iconCrGroup = iwb.getImage("new_group.gif"); Link tLink12 = getToolbarLink(new Text(iwrb.getLocalizedString("new.group", "New group")), CreateGroupWindow.class, null); tLink12.setStyleClass(styledLink); if (selectedGroupProviderStateId != null) tLink12.addParameter(CreateGroupWindow.SELECTED_GROUP_PROVIDER_PRESENTATION_STATE_ID_KEY, selectedGroupProviderStateId); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconCrGroup, CreateGroupWindow.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink12, toolbarColumn++, 1); if (iwc.isSuperAdmin()) { Image iconRoleMasters = iwb.getImage("key_icon.gif"); Link tLink14 = getToolbarLink(new Text(iwrb.getLocalizedString("button.role_masters", "Role Masters")), RoleMastersWindow.class, null); tLink14.setStyleClass(styledLink); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconRoleMasters, RoleMastersWindow.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink14, toolbarColumn++, 1); } //Search temp Image iconSearch = iwb.getImage("search.gif"); Link tLink13 = getToolbarLink(new Text(iwrb.getLocalizedString("button.search", "Search")), SearchWindow.class, null); tLink13.setStyleClass(styledLink); if (userApplicationMainAreaStateId != null) tLink13.addParameter(UserApplicationMainArea.USER_APPLICATION_MAIN_AREA_PS_KEY, userApplicationMainAreaStateId); toolbar1.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar1.setCellpaddingRight(toolbarColumn, 1, 3); toolbar1.add(getToolbarLink(iconSearch, SearchWindow.class, null), toolbarColumn++, 1); toolbar1.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar1.setCellpaddingTop(toolbarColumn, 1, 3); toolbar1.add(tLink13, toolbarColumn++, 1); // adding all plugins that implement the interface ToolbarElement List toolbarElements = new ArrayList(); User user = iwc.getCurrentUser(); Collection plugins = getGroupBusiness(iwc).getUserGroupPluginsForUser(user); Iterator iter = plugins.iterator(); while (iter.hasNext()) { UserGroupPlugInBusiness pluginBiz = (UserGroupPlugInBusiness) iter.next(); List list = pluginBiz.getMainToolbarElements(); if (list != null) { toolbarElements.addAll(list); } } // adding some toolbar elements that belong to this bundle toolbarElements.add(new MassMovingWindowPlugin()); boolean addPlugins = false; if (!toolbarElements.isEmpty()) { Table toolbar2 = new Table(); toolbar2.setCellpadding(0); toolbar2.setCellspacing(0); toolbar2.setBorder(0); toolbarTable.add(toolbar2, 3, 1); toolbarColumn = 1; DropdownMenu menu = new DropdownMenu("other_choices"); final IWContext finalIwc = iwc; Comparator priorityComparator = new Comparator() { public int compare(Object toolbarElementA, Object toolbarElementB) { int priorityA = ((ToolbarElement) toolbarElementA).getPriority(finalIwc); int priorityB = ((ToolbarElement) toolbarElementB).getPriority(finalIwc); if (priorityA == -1 && priorityB == -1) { return 0; } else if (priorityA == -1) { return 1; } else if (priorityB == -1) { return -1; } return priorityA - priorityB; } }; Collections.sort(toolbarElements, priorityComparator); Iterator toolbarElementsIterator = toolbarElements.iterator(); while (toolbarElementsIterator.hasNext()) { ToolbarElement toolbarElement = (ToolbarElement) toolbarElementsIterator.next(); if (toolbarElement.isValid(iwc)) { addPlugins = true; Class toolPresentationClass = toolbarElement.getPresentationObjectClass(iwc); Map parameterMap = toolbarElement.getParameterMap(iwc); // a special parameter, very few plugins are using it if (selectedGroupProviderStateId != null) { if (parameterMap == null) { parameterMap = new HashMap(); } parameterMap.put(SELECTED_GROUP_PROVIDER_PRESENTATION_STATE_ID_KEY, selectedGroupProviderStateId ); } String toolName = toolbarElement.getName(iwc); if (useDropdown && (! toolbarElement.isButton(iwc))) { SelectOption toolOption = new SelectOption(toolName, "1"); toolOption.setWindowToOpenOnSelect(toolPresentationClass, parameterMap); menu.addOption(toolOption); } else { Image toolImage = toolbarElement.getButtonImage(finalIwc); toolbar2.setCellpaddingLeft(toolbarColumn, 1, 7); if (toolImage != null) { toolbar2.setCellpaddingRight(toolbarColumn, 1, 3); toolbar2.add(getToolbarLink(toolImage, toolPresentationClass, parameterMap), toolbarColumn++, 1); } Link toolLink = getToolbarLink(new Text(toolName), toolPresentationClass, parameterMap); toolLink.setStyleClass(styledLink); toolbar2.setVerticalAlignment(toolbarColumn, 1, Table.VERTICAL_ALIGN_TOP); toolbar2.setCellpaddingTop(toolbarColumn, 1, 3); toolbar2.add(toolLink, toolbarColumn++, 1); } } } if (addPlugins) { Image dottedImage = iwb.getImage("dotted.gif"); toolbarTable.setCellpaddingLeft(2, 1, 10); toolbarTable.setCellpaddingRight(2, 1, 3); toolbarTable.add(dottedImage, 2, 1); if (useDropdown) { Form form = new Form(); menu.addMenuElementFirst("", ""); form.add(menu); int handbookFileID = Integer.parseInt(iwb.getProperty("handbook_file_id", "-1")); if (handbookFileID != -1) { SelectOption option = new SelectOption(iwrb.getLocalizedString("toolbar.handbook", "Handbook")); option.setFileToOpenOnSelect(handbookFileID); menu.add(option); } Image iconOtherChanges = iwb.getImage("other_choises.gif"); Text menuText = new Text(iwrb.getLocalizedString("button.other_choices", "Other choices")); menuText.setStyleClass(styledText); toolbar2.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar2.setCellpaddingRight(toolbarColumn, 1, 3); toolbar2.add(iconOtherChanges, toolbarColumn++, 1); toolbar2.add(menuText, toolbarColumn++, 1); toolbar2.setCellpaddingLeft(toolbarColumn, 1, 7); toolbar2.add(form, toolbarColumn++, 1); } } } //search Table button9 = new Table(2, 1); Text text9 = new Text(iwrb.getLocalizedString("fast_search", "Fast search")); button9.add(text9, 1, 1); button9.setHorizontalAlignment("right"); IWLocation location = (IWLocation) this.getLocation().clone(); location.setSubID(1); searchForm.setLocation(location, iwc); searchForm.setArtificialCompoundId(getCompoundId(), iwc); searchForm.setHorizontalAlignment("right"); searchForm.setTextInputValue(iwrb.getLocalizedString("insert_search_string", "Insert a search string")); toolbarTable.setCellpaddingRight(4, 1, 6); toolbarTable.add(searchForm, 4, 1); }
53236 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53236/266f557f1de7378fdc3e75472885ac8249d923d4/Toolbar.java/clean/src/java/com/idega/user/app/Toolbar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2774, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 2211, 18, 5531, 5621, 202, 202, 77, 9464, 273, 10946, 12, 22315, 71, 1769, 202, 202, 22315, 6731, 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, 225, 202, 482, 918, 2774, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 2211, 18, 5531, 5621, 202, 202, 77, 9464, 273, 10946, 12, 22315, 71, 1769, 202, 202, 22315, 6731, 273, ...
private void addErrorTab() { ////////////////////////// // START OF ERROR TAB /// /// wErrorTab=new CTabItem(wTabFolder, SWT.NONE); wErrorTab.setText(Messages.getString("TextFileInputDialog.ErrorTab.TabTitle")); wErrorSComp = new ScrolledComposite(wTabFolder, SWT.V_SCROLL | SWT.H_SCROLL ); wErrorSComp.setLayout(new FillLayout()); FormLayout errorLayout = new FormLayout (); errorLayout.marginWidth = 3; errorLayout.marginHeight = 3; wErrorComp = new Composite(wErrorSComp, SWT.NONE); props.setLook(wErrorComp); wErrorComp.setLayout(errorLayout); // ERROR HANDLING... // ErrorIgnored? wlErrorIgnored = new Label(wErrorComp, SWT.RIGHT); wlErrorIgnored.setText(Messages.getString("TextFileInputDialog.ErrorIgnored.Label")); props.setLook(wlErrorIgnored); fdlErrorIgnored = new FormData(); fdlErrorIgnored.left = new FormAttachment(0, 0); fdlErrorIgnored.top = new FormAttachment(0, margin); fdlErrorIgnored.right = new FormAttachment(middle, -margin); wlErrorIgnored.setLayoutData(fdlErrorIgnored); wErrorIgnored = new Button(wErrorComp, SWT.CHECK); props.setLook(wErrorIgnored); wErrorIgnored.setToolTipText(Messages.getString("TextFileInputDialog.ErrorIgnored.Tooltip")); fdErrorIgnored = new FormData(); fdErrorIgnored.left = new FormAttachment(middle, 0); fdErrorIgnored.top = new FormAttachment(0, margin); wErrorIgnored.setLayoutData(fdErrorIgnored); // Skip error lines? wlSkipErrorLines = new Label(wErrorComp, SWT.RIGHT); wlSkipErrorLines.setText(Messages.getString("TextFileInputDialog.SkipErrorLines.Label")); props.setLook(wlSkipErrorLines); fdlSkipErrorLines = new FormData(); fdlSkipErrorLines.left = new FormAttachment(0, 0); fdlSkipErrorLines.top = new FormAttachment(wErrorIgnored, margin); fdlSkipErrorLines.right = new FormAttachment(middle, -margin); wlSkipErrorLines.setLayoutData(fdlSkipErrorLines); wSkipErrorLines = new Button(wErrorComp, SWT.CHECK); props.setLook(wSkipErrorLines); wSkipErrorLines.setToolTipText(Messages.getString("TextFileInputDialog.SkipErrorLines.Tooltip")); fdSkipErrorLines = new FormData(); fdSkipErrorLines.left = new FormAttachment(middle, 0); fdSkipErrorLines.top = new FormAttachment(wErrorIgnored, margin); wSkipErrorLines.setLayoutData(fdSkipErrorLines); wlErrorCount=new Label(wErrorComp, SWT.RIGHT); wlErrorCount.setText(Messages.getString("TextFileInputDialog.ErrorCount.Label")); props.setLook(wlErrorCount); fdlErrorCount=new FormData(); fdlErrorCount.left = new FormAttachment(0, 0); fdlErrorCount.top = new FormAttachment(wSkipErrorLines, margin); fdlErrorCount.right= new FormAttachment(middle, -margin); wlErrorCount.setLayoutData(fdlErrorCount); wErrorCount=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorCount); wErrorCount.addModifyListener(lsMod); fdErrorCount=new FormData(); fdErrorCount.left = new FormAttachment(middle, 0); fdErrorCount.top = new FormAttachment(wSkipErrorLines, margin); fdErrorCount.right= new FormAttachment(100, 0); wErrorCount.setLayoutData(fdErrorCount); wlErrorFields=new Label(wErrorComp, SWT.RIGHT); wlErrorFields.setText(Messages.getString("TextFileInputDialog.ErrorFields.Label")); props.setLook(wlErrorFields); fdlErrorFields=new FormData(); fdlErrorFields.left = new FormAttachment(0, 0); fdlErrorFields.top = new FormAttachment(wErrorCount, margin); fdlErrorFields.right= new FormAttachment(middle, -margin); wlErrorFields.setLayoutData(fdlErrorFields); wErrorFields=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorFields); wErrorFields.addModifyListener(lsMod); fdErrorFields=new FormData(); fdErrorFields.left = new FormAttachment(middle, 0); fdErrorFields.top = new FormAttachment(wErrorCount, margin); fdErrorFields.right= new FormAttachment(100, 0); wErrorFields.setLayoutData(fdErrorFields); wlErrorText=new Label(wErrorComp, SWT.RIGHT); wlErrorText.setText(Messages.getString("TextFileInputDialog.ErrorText.Label")); props.setLook(wlErrorText); fdlErrorText=new FormData(); fdlErrorText.left = new FormAttachment(0, 0); fdlErrorText.top = new FormAttachment(wErrorFields, margin); fdlErrorText.right= new FormAttachment(middle, -margin); wlErrorText.setLayoutData(fdlErrorText); wErrorText=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorText); wErrorText.addModifyListener(lsMod); fdErrorText=new FormData(); fdErrorText.left = new FormAttachment(middle, 0); fdErrorText.top = new FormAttachment(wErrorFields, margin); fdErrorText.right= new FormAttachment(100, 0); wErrorText.setLayoutData(fdErrorText); // Bad lines files directory + extention Control previous = wErrorText; // BadDestDir line wlWarnDestDir=new Label(wErrorComp, SWT.RIGHT); wlWarnDestDir.setText(Messages.getString("TextFileInputDialog.WarnDestDir.Label")); props.setLook(wlWarnDestDir); fdlWarnDestDir=new FormData(); fdlWarnDestDir.left = new FormAttachment(0, 0); fdlWarnDestDir.top = new FormAttachment(previous, margin*4); fdlWarnDestDir.right= new FormAttachment(middle, -margin); wlWarnDestDir.setLayoutData(fdlWarnDestDir); wbbWarnDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbbWarnDestDir); wbbWarnDestDir.setText(Messages.getString("System.Button.Browse")); wbbWarnDestDir.setToolTipText(Messages.getString("System.Tooltip.BrowseForDir")); fdbBadDestDir=new FormData(); fdbBadDestDir.right= new FormAttachment(100, 0); fdbBadDestDir.top = new FormAttachment(previous, margin*4); wbbWarnDestDir.setLayoutData(fdbBadDestDir); wbvWarnDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbvWarnDestDir); wbvWarnDestDir.setText(Messages.getString("System.Button.Variable")); wbvWarnDestDir.setToolTipText(Messages.getString("System.Tooltip.VariableToDir")); fdbvWarnDestDir=new FormData(); fdbvWarnDestDir.right= new FormAttachment(wbbWarnDestDir, -margin); fdbvWarnDestDir.top = new FormAttachment(previous, margin*4); wbvWarnDestDir.setLayoutData(fdbvWarnDestDir); wWarnExt=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wWarnExt); wWarnExt.addModifyListener(lsMod); fdWarnDestExt=new FormData(); fdWarnDestExt.left = new FormAttachment(wbvWarnDestDir, -150); fdWarnDestExt.right= new FormAttachment(wbvWarnDestDir, -margin); fdWarnDestExt.top = new FormAttachment(previous, margin*4); wWarnExt.setLayoutData(fdWarnDestExt); wlWarnExt=new Label(wErrorComp, SWT.RIGHT); wlWarnExt.setText(Messages.getString("System.Label.Extension")); props.setLook(wlWarnExt); fdlWarnDestExt=new FormData(); fdlWarnDestExt.top = new FormAttachment(previous, margin*4); fdlWarnDestExt.right= new FormAttachment(wWarnExt, -margin); wlWarnExt.setLayoutData(fdlWarnDestExt); wWarnDestDir=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wWarnDestDir); wWarnDestDir.addModifyListener(lsMod); fdBadDestDir=new FormData(); fdBadDestDir.left = new FormAttachment(middle, 0); fdBadDestDir.right= new FormAttachment(wlWarnExt, -margin); fdBadDestDir.top = new FormAttachment(previous, margin*4); wWarnDestDir.setLayoutData(fdBadDestDir); // Listen to the Browse... button wbbWarnDestDir.addSelectionListener(DirectoryDialogButtonListenerFactory.getSelectionAdapter(shell, wWarnDestDir)); // Listen to the Variable... button wbvWarnDestDir.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wWarnDestDir)); // Whenever something changes, set the tooltip to the expanded version of the directory: wWarnDestDir.addModifyListener(getModifyListenerTooltipText(wWarnDestDir)); // Error lines files directory + extention previous = wWarnDestDir; // ErrorDestDir line wlErrorDestDir=new Label(wErrorComp, SWT.RIGHT); wlErrorDestDir.setText(Messages.getString("TextFileInputDialog.ErrorDestDir.Label")); props.setLook(wlErrorDestDir); fdlErrorDestDir=new FormData(); fdlErrorDestDir.left = new FormAttachment(0, 0); fdlErrorDestDir.top = new FormAttachment(previous, margin); fdlErrorDestDir.right= new FormAttachment(middle, -margin); wlErrorDestDir.setLayoutData(fdlErrorDestDir); wbbErrorDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbbErrorDestDir); wbbErrorDestDir.setText(Messages.getString("System.Button.Browse")); wbbErrorDestDir.setToolTipText(Messages.getString("System.Tooltip.BrowseForDir")); fdbErrorDestDir=new FormData(); fdbErrorDestDir.right= new FormAttachment(100, 0); fdbErrorDestDir.top = new FormAttachment(previous, margin); wbbErrorDestDir.setLayoutData(fdbErrorDestDir); wbvErrorDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbvErrorDestDir); wbvErrorDestDir.setText(Messages.getString("System.Button.Variable")); wbvErrorDestDir.setToolTipText(Messages.getString("System.Tooltip.VariableToDir")); fdbvErrorDestDir=new FormData(); fdbvErrorDestDir.right= new FormAttachment(wbbErrorDestDir, -margin); fdbvErrorDestDir.top = new FormAttachment(previous, margin); wbvErrorDestDir.setLayoutData(fdbvErrorDestDir); wErrorExt=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorExt); wErrorExt.addModifyListener(lsMod); fdErrorDestExt=new FormData(); fdErrorDestExt.left = new FormAttachment(wbvErrorDestDir, -150); fdErrorDestExt.right= new FormAttachment(wbvErrorDestDir, -margin); fdErrorDestExt.top = new FormAttachment(previous, margin); wErrorExt.setLayoutData(fdErrorDestExt); wlErrorExt=new Label(wErrorComp, SWT.RIGHT); wlErrorExt.setText(Messages.getString("System.Label.Extension")); props.setLook(wlErrorExt); fdlErrorDestExt=new FormData(); fdlErrorDestExt.top = new FormAttachment(previous, margin); fdlErrorDestExt.right= new FormAttachment(wErrorExt, -margin); wlErrorExt.setLayoutData(fdlErrorDestExt); wErrorDestDir=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wErrorDestDir); wErrorDestDir.addModifyListener(lsMod); fdErrorDestDir=new FormData(); fdErrorDestDir.left = new FormAttachment(middle, 0); fdErrorDestDir.right= new FormAttachment(wlErrorExt, -margin); fdErrorDestDir.top = new FormAttachment(previous, margin); wErrorDestDir.setLayoutData(fdErrorDestDir); // Listen to the Browse... button wbbErrorDestDir.addSelectionListener(DirectoryDialogButtonListenerFactory.getSelectionAdapter(shell, wErrorDestDir)); // Listen to the Variable... button wbvErrorDestDir.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wErrorDestDir)); // Whenever something changes, set the tooltip to the expanded version of the directory: wErrorDestDir.addModifyListener(getModifyListenerTooltipText(wErrorDestDir)); // Data Error lines files directory + extention previous = wErrorDestDir; // LineNrDestDir line wlLineNrDestDir=new Label(wErrorComp, SWT.RIGHT); wlLineNrDestDir.setText(Messages.getString("TextFileInputDialog.LineNrDestDir.Label")); props.setLook(wlLineNrDestDir); fdlLineNrDestDir=new FormData(); fdlLineNrDestDir.left = new FormAttachment(0, 0); fdlLineNrDestDir.top = new FormAttachment(previous, margin); fdlLineNrDestDir.right= new FormAttachment(middle, -margin); wlLineNrDestDir.setLayoutData(fdlLineNrDestDir); wbbLineNrDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbbLineNrDestDir); wbbLineNrDestDir.setText(Messages.getString("System.Button.Browse")); wbbLineNrDestDir.setToolTipText(Messages.getString("System.Tooltip.Browse")); fdbLineNrDestDir=new FormData(); fdbLineNrDestDir.right= new FormAttachment(100, 0); fdbLineNrDestDir.top = new FormAttachment(previous, margin); wbbLineNrDestDir.setLayoutData(fdbLineNrDestDir); wbvLineNrDestDir=new Button(wErrorComp, SWT.PUSH| SWT.CENTER); props.setLook(wbvLineNrDestDir); wbvLineNrDestDir.setText("&Variable"); wbvLineNrDestDir.setToolTipText("System.Tooltip.VariableToDir"); fdbvLineNrDestDir=new FormData(); fdbvLineNrDestDir.right= new FormAttachment(wbbLineNrDestDir, -margin); fdbvLineNrDestDir.top = new FormAttachment(previous, margin); wbvLineNrDestDir.setLayoutData(fdbvLineNrDestDir); wLineNrExt=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wLineNrExt); wLineNrExt.addModifyListener(lsMod); fdLineNrDestExt=new FormData(); fdLineNrDestExt.left = new FormAttachment(wbvLineNrDestDir, -150); fdLineNrDestExt.right= new FormAttachment(wbvLineNrDestDir, -margin); fdLineNrDestExt.top = new FormAttachment(previous, margin); wLineNrExt.setLayoutData(fdLineNrDestExt); wlLineNrExt=new Label(wErrorComp, SWT.RIGHT); wlLineNrExt.setText(Messages.getString("System.Label.Extension")); props.setLook(wlLineNrExt); fdlLineNrDestExt=new FormData(); fdlLineNrDestExt.top = new FormAttachment(previous, margin); fdlLineNrDestExt.right= new FormAttachment(wLineNrExt, -margin); wlLineNrExt.setLayoutData(fdlLineNrDestExt); wLineNrDestDir=new Text(wErrorComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wLineNrDestDir); wLineNrDestDir.addModifyListener(lsMod); fdLineNrDestDir=new FormData(); fdLineNrDestDir.left = new FormAttachment(middle, 0); fdLineNrDestDir.right= new FormAttachment(wlLineNrExt, -margin); fdLineNrDestDir.top = new FormAttachment(previous, margin); wLineNrDestDir.setLayoutData(fdLineNrDestDir); // Listen to the Browse... button wbbLineNrDestDir.addSelectionListener(DirectoryDialogButtonListenerFactory.getSelectionAdapter(shell, wLineNrDestDir)); // Listen to the Variable... button wbvLineNrDestDir.addSelectionListener(VariableButtonListenerFactory.getSelectionAdapter(shell, wLineNrDestDir)); // Whenever something changes, set the tooltip to the expanded version of the directory: wLineNrDestDir.addModifyListener(getModifyListenerTooltipText(wLineNrDestDir)); fdErrorComp = new FormData(); fdErrorComp.left = new FormAttachment(0, 0); fdErrorComp.top = new FormAttachment(0, 0); fdErrorComp.right = new FormAttachment(100, 0); fdErrorComp.bottom= new FormAttachment(100, 0); wErrorComp.setLayoutData(fdErrorComp); wErrorComp.pack(); // What's the size: Rectangle bounds = wErrorComp.getBounds(); wErrorSComp.setContent(wErrorComp); wErrorSComp.setExpandHorizontal(true); wErrorSComp.setExpandVertical(true); wErrorSComp.setMinWidth(bounds.width); wErrorSComp.setMinHeight(bounds.height); wErrorTab.setControl(wErrorSComp); ///////////////////////////////////////////////////////////// /// END OF CONTENT TAB ///////////////////////////////////////////////////////////// }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/26388f6e336b8e6cb9f361dee0dd78bae00fe76b/TextFileInputDialog.java/clean/kettle/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 9501, 5661, 1435, 565, 288, 3639, 368, 25494, 3639, 368, 10485, 15932, 5475, 26158, 225, 18378, 3639, 18378, 3639, 341, 668, 5661, 33, 2704, 385, 5661, 1180, 12, 91, 5661, 3899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 9501, 5661, 1435, 565, 288, 3639, 368, 25494, 3639, 368, 10485, 15932, 5475, 26158, 225, 18378, 3639, 18378, 3639, 341, 668, 5661, 33, 2704, 385, 5661, 1180, 12, 91, 5661, 3899, ...
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_271()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; }
if (jj_3R_230()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_247() { if (jj_3R_252()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_271()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3247, 27, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 2947, 22, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3247, 27, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 2947, 22, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, ...
final Node root = parse( "class MyClass { bool operator==( const MyClass& ); };" ); final Node node = assertIsBranch( root, AstClassDefinition.class ); assertNoChildOf( node, AstFunctionDefinition.class );
tree.add( "TranslationUnit" ); tree.add( " Declaration" ); tree.add( " ClassDefinition" ); tree.add( " FunctionDeclaration" ); tree.add( " FunctionName" ); tree.add( " FunctionParameters" ); tree.add( " Parameter" ); tree.add( " ParameterType" ); tree.add( " FunctionParameterTypeQualifier" ); assertEquals( tree.toString(), parse( "class MyClass { bool operator==( const MyClass& ); };" ) );
public void testEqualityOperatorDeclaration() throws ParseException { final Node root = parse( "class MyClass { bool operator==( const MyClass& ); };" ); final Node node = assertIsBranch( root, AstClassDefinition.class ); assertNoChildOf( node, AstFunctionDefinition.class ); // FIXME check FunctionDeclaration }
47917 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47917/0fb5400407e5b1c31b6afdeee1fb00ec381af173/AstTest.java/buggy/src/test/java/cppast/AstTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 20273, 5592, 6094, 1435, 1216, 10616, 565, 288, 3639, 727, 2029, 1365, 273, 1109, 12, 315, 1106, 8005, 797, 288, 1426, 3726, 631, 12, 1866, 8005, 797, 10, 11272, 289, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20273, 5592, 6094, 1435, 1216, 10616, 565, 288, 3639, 727, 2029, 1365, 273, 1109, 12, 315, 1106, 8005, 797, 288, 1426, 3726, 631, 12, 1866, 8005, 797, 10, 11272, 289, 486...
showOther(); }
showOther(); }
public void run() { showOther(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e20e950fad87c9434ea5cb423007f610e35ee559/ShowViewMenu.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ShowViewMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 4500, 8290, 5621, 202, 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, ...
[ 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, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 4500, 8290, 5621, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public TCPSocketImpl(TCPProtocol protocol) { this.protocol = protocol; }
public TCPSocketImpl(TCPProtocol protocol) { this.protocol = protocol; }
public TCPSocketImpl(TCPProtocol protocol) { this.protocol = protocol; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/332c90d112012ba128ec6af227095aceabc7965a/TCPSocketImpl.java/clean/net/src/net/org/jnode/net/ipv4/tcp/TCPSocketImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9911, 4534, 2828, 12, 13891, 5752, 1771, 13, 288, 202, 202, 2211, 18, 8373, 273, 1771, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9911, 4534, 2828, 12, 13891, 5752, 1771, 13, 288, 202, 202, 2211, 18, 8373, 273, 1771, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void mouseReleased(MouseEvent event) { logger.debug("MouseReleased Event Props: mode=" + c2dm.getDrawModeString() + ", trigger=" + event.isPopupTrigger() + ", Button number: " + event.getButton() + ", Click count: " + event.getClickCount()); if (event.getButton() == MouseEvent.BUTTON1) { int[] screenCoords = { event.getX(), event.getY() }; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; /************************************************************************* * SYMBOL MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.SYMBOL) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { int index = commonElements.indexOf(atomInRange.getSymbol()); if ((index < (commonElements.size()-1)) && (index != -1)) { // pick next atom in list of common Elements index++; } else { index = 0; } String symbol = (String)commonElements.get(index); atomInRange.setSymbol(symbol); // configure the atom, so that the atomic number matches the symbol try { IsotopeFactory.getInstance().configure(atomInRange); } catch (Exception exception) { logger.error("Error while configuring atom"); logger.debug(exception); } // also adjust the new draw elem c2dm.setDrawElement(symbol); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } } /************************************************************************* * CHARGE MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.INCCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() + 1); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom charge */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } } if (c2dm.getDrawMode() == c2dm.DECCHARGE) { Atom atomInRange = r2dm.getHighlightedAtom(); if (atomInRange != null) { atomInRange.setFormalCharge(atomInRange.getFormalCharge() - 1); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } } /************************************************************************* * DRAWBONDMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange, newAtom1, newAtom2; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; Bond bondInRange = r2dm.getHighlightedBond(); atomInRange = r2dm.getHighlightedAtom(); if (bondInRange != null) { // increase Bond order double order = bondInRange.getOrder(); if (order >= CDKConstants.BONDORDER_TRIPLE) { bondInRange.setOrder(CDKConstants.BONDORDER_SINGLE); } else { bondInRange.setOrder(order + 1.0); // this is tricky as it depends on the fact that the // constants are unidistant, i.e. {1.0, 2.0, 3.0}. }; /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else { if (atomInRange != null) { newAtom1 = atomInRange; } else { // create a new molecule newAtom1 = new Atom(c2dm.getDrawElement(), new Point2d(startX,startY)); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.addAtom(newAtom1); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); AtomContainer atomCon = null; if (atomInRange != null) { newAtom2 = atomInRange; atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom2); } else { newAtom2 = new Atom(c2dm.getDrawElement(), new Point2d(endX,endY)); atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, newAtom1); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else if (atomInRange != null) { // add a new atom to the current atom in some random // direction AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, atomInRange); Point2d center2D = atomCon.get2DCenter(); newAtom2 = new Atom(c2dm.getDrawElement(), atomInRange.getPoint2D()); // now create 2D coords for new atom double bondLength = r2dm.getBondLength(); Atom[] connectedAtoms = atomCon.getConnectedAtoms(atomInRange); AtomContainer placedAtoms = new AtomContainer(); for (int i=0; i<connectedAtoms.length; i++) { placedAtoms.addAtom(connectedAtoms[i]); } AtomContainer unplacedAtoms = new AtomContainer(); unplacedAtoms.addAtom(newAtom2); AtomPlacer atomPlacer = new AtomPlacer(); atomPlacer.setMolecule(new Molecule(atomCon)); atomPlacer.distributePartners(atomInRange, placedAtoms, center2D, unplacedAtoms, bondLength); // now add the new atom atomCon.addAtom(newAtom2); atomCon.addBond(new Bond(atomInRange, newAtom2, 1.0)); } } r2dm.fireChange(); fireChange(); } /************************************************************************* * UP BOND MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.UP_BOND) { Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_UP) { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP_INV); } else if (stereo == CDKConstants.STEREO_BOND_UP_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_UP); }; /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } /************************************************************************* * DOWN BOND MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.DOWN_BOND) { logger.info("Toggling stereo bond down"); Bond bondInRange = r2dm.getHighlightedBond(); if (bondInRange != null) { // toggle bond stereo double stereo = bondInRange.getStereo(); if (stereo == CDKConstants.STEREO_BOND_DOWN) { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN_INV); } else if (stereo == CDKConstants.STEREO_BOND_DOWN_INV) { bondInRange.setStereo(CDKConstants.STEREO_BOND_NONE); } else { bondInRange.setStereo(CDKConstants.STEREO_BOND_DOWN); }; /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } else { logger.warn("No bond in range!"); } r2dm.fireChange(); fireChange(); } /************************************************************************* * SELECTMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null); logger.debug("selected stuff "+ selectedPart); } /************************************************************************* * ERASERMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { AtomContainer container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: " + container.getAtomCount()); ChemModelManipulator.removeAtomAndConnectedElectronContainers(chemModel, highlightedAtom); container = ChemModelManipulator.getAllInOneContainer(chemModel); logger.debug("Atoms before delete: " + container.getAtomCount()); } else if (highlightedBond != null) { ChemModelManipulator.removeElectronContainer(chemModel, highlightedBond); } else { logger.warn("Cannot deleted if nothing is highlighted"); return; } /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ r2dm.fireChange(); fireChange(); } /************************************************************************* * RINGMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX, pointerMarkY; double ringRadius, angle, xDiff, yDiff, distance1 = 0, distance2 = 0; Atom firstAtom, secondAtom, spiroAtom; Point2d conAtomsCenter = null, newPoint1, newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDrawElement(); AtomContainer sharedAtoms = getHighlighted(); /******************** NO ATTACHMENT ************************************/ if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) /Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2D(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); AtomContainer atomCon = ChemModelManipulator.createNewMolecule(chemModel); atomCon.add(newRing); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } /*********************** SPIRO *****************************************/ else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = sharedAtoms.get2DCenter(); newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond[] bonds = newRing.getBonds(); bonds[0].setOrder(2.0); bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); makeRingAromatic(newRing); } bondLength = r2dm.getBondLength(); conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2D())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, spiroAtom); atomCon.add(newRing); /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } /*********************** FUSED *****************************************/ else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = sharedAtoms.get2DCenter(); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2D() - firstAtom.getX2D(); yDiff = secondAtom.getY2D() - firstAtom.getY2D(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { logger.warn("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } AtomContainer atomCon = ChemModelManipulator.getRelevantAtomContainer(chemModel, firstAtom); // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); if (c2dm.getDrawMode() == c2dm.BENZENERING) { // make newRing a benzene ring Bond existingBond = atomCon.getBond(firstAtom, secondAtom); Bond[] bonds = newRing.getBonds(); if (existingBond.getOrder() == 1.0) { if (existingBond.getFlag(CDKConstants.ISAROMATIC)) { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } else { bonds[1].setOrder(2.0); bonds[3].setOrder(2.0); bonds[5].setOrder(2.0); } } else { bonds[2].setOrder(2.0); bonds[4].setOrder(2.0); } makeRingAromatic(newRing); } // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { logger.error("Could not remove atom from ring"); logger.debug(exc); } atomCon.add(newRing); } /* PRESERVE THIS. This notifies the * the listener responsible for * undo and redo storage that it * should store this change of an atom symbol */ isUndoableChange = true; /* --- */ } r2dm.fireChange(); fireChange(); } /************************************************************************* * LASSOMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.LASSO) { // first deselect all atoms r2dm.setSelectedPart(new AtomContainer()); // now select new atoms if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point)lassoPoints.elementAt(0))); int number = lassoPoints.size(); int[] xPoints = new int[number]; int[] yPoints = new int[number]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point)lassoPoints.elementAt(i); xPoints[i] = currentPoint.x; yPoints[i] = currentPoint.y; } /* Convert points to world coordinates as they are in screen coordinates in the vector */ xPoints = getWorldCoordinates(xPoints); yPoints = getWorldCoordinates(yPoints); Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } fireChange(); } /************************************************************************* * MOVE MODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.MOVE) { if (draggingSelected == false) { // then it was dragging nearest Bond or Atom draggingSelected = true; r2dm.setSelectedPart(new AtomContainer()); } } if (wasDragged) { prevDragCoordX = 0; prevDragCoordY = 0; wasDragged = false; } } }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/1daf1ebebe9e0b817e1bd60c1181b92c7be848fd/Controller2D.java/buggy/src/org/openscience/cdk/controller/Controller2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 288, 13491, 1194, 18, 4148, 2932, 9186, 26363, 2587, 1186, 1121, 30, 1965, 1546, 397, 276, 22, 10956, 18, 588, 6493, 2309, 780, 1435, 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, 540, 1071, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 288, 13491, 1194, 18, 4148, 2932, 9186, 26363, 2587, 1186, 1121, 30, 1965, 1546, 397, 276, 22, 10956, 18, 588, 6493, 2309, 780, 1435, 397,...
protected void runEventLoop(Window.IExceptionHandler handler) {
protected void runEventLoop() {
protected void runEventLoop(Window.IExceptionHandler handler) { Display display = Display.getCurrent(); runEventLoop = true; while (runEventLoop) { try { if (!display.readAndDispatch()) display.sleep(); } catch (Throwable t) { handler.handleException(t); } }}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/cc1dd36ef8eed1b981584e282a291179a2bd2fa4/Workbench.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 1086, 1133, 6452, 12, 3829, 18, 45, 18894, 1838, 13, 288, 202, 4236, 2562, 273, 9311, 18, 588, 3935, 5621, 202, 2681, 1133, 6452, 273, 638, 31, 202, 17523, 261, 2681, 1133, 6452, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 1086, 1133, 6452, 12, 3829, 18, 45, 18894, 1838, 13, 288, 202, 4236, 2562, 273, 9311, 18, 588, 3935, 5621, 202, 2681, 1133, 6452, 273, 638, 31, 202, 17523, 261, 2681, 1133, 6452, ...
String _source; if(source == null) { _source = Thread.currentThread().getName(); if(_source == null) { _source = Thread.currentThread().getClass().getName(); } } else if(source instanceof Class) _source = ((Class)source).getName(); else _source = source.getClass().getName(); int index = _source.lastIndexOf('.'); if(index != -1) _source = _source.substring(index+1); if(message instanceof Throwable) { _logException(urgency,source,(Throwable)message); } else { String _message = String.valueOf(message); synchronized(LOCK) { StringTokenizer st = new StringTokenizer( _message,"\r\n"); int lineCount = 0; boolean oldWrap = wrap; while(st.hasMoreTokens()) { lineCount++; _log(urgency,_source,st.nextToken() .replace('\t',' ')); } listModel.update(lineCount,oldWrap); } }
log(urgency,source,message); log(urgency,source,exception);
public static void log(int urgency, Object source, Object message) { String _source; if(source == null) { _source = Thread.currentThread().getName(); if(_source == null) { _source = Thread.currentThread().getClass().getName(); } } else if(source instanceof Class) _source = ((Class)source).getName(); else _source = source.getClass().getName(); int index = _source.lastIndexOf('.'); if(index != -1) _source = _source.substring(index+1); if(message instanceof Throwable) { _logException(urgency,source,(Throwable)message); } else { String _message = String.valueOf(message); // If multiple threads log stuff, we don't want // the output to get mixed up synchronized(LOCK) { StringTokenizer st = new StringTokenizer( _message,"\r\n"); int lineCount = 0; boolean oldWrap = wrap; while(st.hasMoreTokens()) { lineCount++; _log(urgency,_source,st.nextToken() .replace('\t',' ')); } listModel.update(lineCount,oldWrap); } } } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/025b35bddb21caca6e4112a6f33405fce3b8258a/Log.java/buggy/org/gjt/sp/util/Log.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 613, 12, 474, 8896, 75, 2075, 16, 1033, 1084, 16, 1033, 883, 13, 202, 95, 202, 202, 780, 389, 3168, 31, 202, 202, 430, 12, 3168, 422, 446, 13, 202, 202, 95, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 613, 12, 474, 8896, 75, 2075, 16, 1033, 1084, 16, 1033, 883, 13, 202, 95, 202, 202, 780, 389, 3168, 31, 202, 202, 430, 12, 3168, 422, 446, 13, 202, 202, 95, 1082...
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg);
throw new DOMException(DOMException.TYPE_MISMATCH_ERR, msg);
public void setParameter(String name, Object value) throws DOMException { // REVISIT: Recognizes DOM L3 default features only. // Does not yet recognize Xerces features. if(value instanceof Boolean){ boolean state = ((Boolean)value).booleanValue(); if (name.equalsIgnoreCase(Constants.DOM_COMMENTS)) { features = (short) (state ? features | COMMENTS : features & ~COMMENTS); } else if (name.equalsIgnoreCase(Constants.DOM_DATATYPE_NORMALIZATION)) { setFeature(NORMALIZE_DATA, state); features = (short) (state ? features | DTNORMALIZATION : features & ~DTNORMALIZATION); if (state) { features = (short) (features | VALIDATE); } } else if (name.equalsIgnoreCase(Constants.DOM_NAMESPACES)) { features = (short) (state ? features | NAMESPACES : features & ~NAMESPACES); } else if (name.equalsIgnoreCase(Constants.DOM_CDATA_SECTIONS)) { features = (short) (state ? features | CDATA : features & ~CDATA); } else if (name.equalsIgnoreCase(Constants.DOM_ENTITIES)) { features = (short) (state ? features | ENTITIES : features & ~ENTITIES); } else if (name.equalsIgnoreCase(Constants.DOM_SPLIT_CDATA)) { features = (short) (state ? features | SPLITCDATA : features & ~SPLITCDATA); } else if (name.equalsIgnoreCase(Constants.DOM_VALIDATE)) { features = (short) (state ? features | VALIDATE : features & ~VALIDATE); } else if (name.equalsIgnoreCase(Constants.DOM_WELLFORMED)) { features = (short) (state ? features | WELLFORMED : features & ~WELLFORMED ); } else if (name.equalsIgnoreCase(Constants.DOM_NAMESPACE_DECLARATIONS)) { features = (short) (state ? features | NSDECL : features & ~NSDECL); } else if (name.equalsIgnoreCase(Constants.DOM_INFOSET)) { // Setting to false has no effect. if (state) { features = (short) (features | INFOSET_TRUE_PARAMS); features = (short) (features & ~INFOSET_FALSE_PARAMS); setFeature(NORMALIZE_DATA, false); } } else if (name.equalsIgnoreCase(Constants.DOM_NORMALIZE_CHARACTERS) || name.equalsIgnoreCase(Constants.DOM_CANONICAL_FORM) || name.equalsIgnoreCase(Constants.DOM_VALIDATE_IF_SCHEMA) || name.equalsIgnoreCase(Constants.DOM_CHECK_CHAR_NORMALIZATION) ) { if (state) { // true is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if ( name.equalsIgnoreCase(Constants.DOM_ELEMENT_CONTENT_WHITESPACE)) { if (!state) { // false is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(SEND_PSVI) ){ // REVISIT: turning augmentation of PSVI is not support, // because in this case we won't be able to retrieve element // default value. if (!state) { // false is not supported String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_SUPPORTED", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_PSVI)){ features = (short) (state ? features | PSVI : features & ~PSVI); } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } } else { // set properties if (name.equalsIgnoreCase(Constants.DOM_ERROR_HANDLER)) { if (value instanceof DOMErrorHandler || value == null) { fErrorHandlerWrapper.setErrorHandler((DOMErrorHandler)value); setErrorHandler(fErrorHandlerWrapper); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_RESOURCE_RESOLVER)) { if (value instanceof LSResourceResolver || value == null) { try { setEntityResolver(new DOMEntityResolverWrapper((LSResourceResolver) value)); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_SCHEMA_LOCATION)) { if (value instanceof String || value == null) { try { // map DOM schema-location to JAXP schemaSource property setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_SOURCE, value); } catch (XMLConfigurationException e) {} } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(Constants.DOM_SCHEMA_TYPE)) { if (value instanceof String || value == null) { try { if (value == null) { setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, null); } else if (value.equals(Constants.NS_XMLSCHEMA)) { // REVISIT: when add support to DTD validation setProperty( Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_XMLSCHEMA); } else if (value.equals(Constants.NS_DTD)) { // Added support for revalidation against DTDs setProperty(Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE, Constants.NS_DTD); } } catch (XMLConfigurationException e) {} } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase(SYMBOL_TABLE)){ // Xerces Symbol Table if (value instanceof SymbolTable){ setProperty(SYMBOL_TABLE, value); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else if (name.equalsIgnoreCase (GRAMMAR_POOL)){ if (value instanceof XMLGrammarPool){ setProperty(GRAMMAR_POOL, value); } else { // REVISIT: type mismatch String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "TYPE_MISMATCH_ERR", new Object[] { name }); throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg); } } else { // REVISIT: check if this is a boolean parameter -- type mismatch should be thrown. //parameter is not recognized String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/315a1d388e7248c487145a5c1193e31a2573319b/DOMConfigurationImpl.java/buggy/src/org/apache/xerces/dom/DOMConfigurationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6690, 12, 780, 508, 16, 1033, 460, 13, 1216, 4703, 503, 288, 3639, 368, 2438, 26780, 1285, 30, 7776, 4198, 3128, 4703, 511, 23, 805, 4467, 1338, 18, 3639, 368, 1850, 9637, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6690, 12, 780, 508, 16, 1033, 460, 13, 1216, 4703, 503, 288, 3639, 368, 2438, 26780, 1285, 30, 7776, 4198, 3128, 4703, 511, 23, 805, 4467, 1338, 18, 3639, 368, 1850, 9637, 48...
if(((AdminGroup) iter.next()).getAdminGroupId().intValue() == admingroupid){
if(((AdminGroup) iter.next()).getAdminGroupId() == admingroupid){
public void addHardTokenIssuer(String alias, int admingroupid) throws HardTokenIssuerExistsException, RemoteException{ Iterator iter = this.informationmemory.getHardTokenIssuingAdminGroups().iterator(); while(iter.hasNext()){ if(((AdminGroup) iter.next()).getAdminGroupId().intValue() == admingroupid){ if(!hardtokensession.addHardTokenIssuer(admin, alias, admingroupid, new HardTokenIssuer())) throw new HardTokenIssuerExistsException(); informationmemory.hardTokenDataEdited(); } } }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/bb62231e17421cfa18c652bbd5d3bd5322552d70/HardTokenInterfaceBean.java/buggy/src/java/se/anatom/ejbca/webdist/hardtokeninterface/HardTokenInterfaceBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 29601, 1345, 16667, 12, 780, 2308, 16, 509, 1261, 11987, 656, 350, 13, 1216, 670, 1060, 1345, 16667, 4002, 503, 16, 18361, 95, 1377, 4498, 1400, 273, 333, 18, 13117, 7858,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 29601, 1345, 16667, 12, 780, 2308, 16, 509, 1261, 11987, 656, 350, 13, 1216, 670, 1060, 1345, 16667, 4002, 503, 16, 18361, 95, 1377, 4498, 1400, 273, 333, 18, 13117, 7858,...
AST tmp1963_AST_in = (AST)_t;
AST tmp1966_AST_in = (AST)_t;
public final void exprt(AST _t) throws RecognitionException { AST exprt_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST __t496 = _t; AST tmp1955_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp1956_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t496; _t = _t.getNextSibling(); break; } case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { constant(_t); _t = _retTree; break; } case Widget_ref: { widattr(_t); _t = _retTree; break; } case USER_FUNC: { AST __t497 = _t; AST tmp1957_AST_in = (AST)_t; match(_t,USER_FUNC); _t = _t.getFirstChild(); parameterlist_noroot(_t); _t = _retTree; _t = __t497; _t = _t.getNextSibling(); break; } case LOCAL_METHOD_REF: { AST __t498 = _t; AST tmp1958_AST_in = (AST)_t; match(_t,LOCAL_METHOD_REF); _t = _t.getFirstChild(); parameterlist_noroot(_t); _t = _retTree; _t = __t498; _t = _t.getNextSibling(); break; } case Field_ref: { field(_t); _t = _retTree; break; } case Entered_func: { AST __t504 = _t; AST tmp1959_AST_in = (AST)_t; match(_t,Entered_func); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp1960_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case ENTERED: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1961_AST_in = (AST)_t; match(_t,ENTERED); _t = _t.getNextSibling(); _t = __t504; _t = _t.getNextSibling(); break; } case RECORD_NAME: { AST tmp1962_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); break; } default: boolean synPredMatched501 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==NEW))) { AST __t501 = _t; synPredMatched501 = true; inputState.guessing++; try { { AST __t500 = _t; AST tmp1963_AST_in = (AST)_t; match(_t,NEW); _t = _t.getFirstChild(); AST tmp1964_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); _t = __t500; _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched501 = false; } _t = __t501;inputState.guessing--; } if ( synPredMatched501 ) { AST __t502 = _t; AST tmp1965_AST_in = (AST)_t; match(_t,NEW); _t = _t.getFirstChild(); AST tmp1966_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); parameterlist(_t); _t = _retTree; _t = __t502; _t = _t.getNextSibling(); } else if ((_tokenSet_32.member(_t.getType()))) { { if (_t==null) _t=ASTNULL; if ((_tokenSet_33.member(_t.getType()))) { functioncall(_t); _t = _retTree; } else if ((_tokenSet_34.member(_t.getType()))) { systemhandlename(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } } else { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 88, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3065, 88, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 88, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3065, 88, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
client.resolveElementReference( this, client .getPropertyDefn( ref.propName ) );
if ( IStyledElementModel.STYLE_PROP.equalsIgnoreCase( ref.propName ) ) client.broadcast( new StyleEvent( client ) ); else client.resolveElementReference( this, client .getPropertyDefn( ref.propName ) );
public void updateClientReferences( ReferenceableElement referred ) { List clients = referred.getClientList( ); Iterator iter = clients.iterator( ); while ( iter.hasNext( ) ) { BackRef ref = (BackRef) iter.next( ); DesignElement client = ref.element; ElementRefValue value = (ElementRefValue) client.getLocalProperty( this, ref.propName ); value.unresolved( value.getName( ) ); referred.dropClient( client ); client.resolveElementReference( this, client .getPropertyDefn( ref.propName ) ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d068c0c772b71f3d7f620599eb41d9764c8baad9/Module.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/Module.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 1227, 8221, 12, 6268, 429, 1046, 29230, 262, 202, 95, 202, 202, 682, 7712, 273, 29230, 18, 588, 1227, 682, 12, 11272, 202, 202, 3198, 1400, 273, 7712, 18, 9838, 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, 225, 202, 482, 918, 1089, 1227, 8221, 12, 6268, 429, 1046, 29230, 262, 202, 95, 202, 202, 682, 7712, 273, 29230, 18, 588, 1227, 682, 12, 11272, 202, 202, 3198, 1400, 273, 7712, 18, 9838, 12,...
for (int i = 0; i < 16; i++) { options.setProperty("option." + i, "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890$:." + i); }
for (int i = 0; i < 16; i++) { options.setProperty("option." + i, "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890$:." + i); }
public DataStructure createDataStructure() throws DataFormatException { RouterInfo info = new RouterInfo(); HashSet addresses = new HashSet(); DataStructure structure = (new RouterAddressTest()).createDataStructure(); addresses.add(structure); info.setAddresses(addresses); PublicKey pubKey = null; SigningPublicKey signingPubKey = null; PrivateKey privKey = null; SigningPrivateKey signingPrivKey = null; Object obj[] = KeyGenerator.getInstance().generatePKIKeypair(); pubKey = (PublicKey)obj[0]; privKey = (PrivateKey)obj[1]; obj = KeyGenerator.getInstance().generateSigningKeypair(); signingPubKey = (SigningPublicKey)obj[0]; signingPrivKey = (SigningPrivateKey)obj[1]; _log.debug("SigningPublicKey: " + signingPubKey); _log.debug("SigningPrivateKey: " + signingPrivKey); RouterIdentity ident = new RouterIdentity(); ident.setCertificate(new Certificate(Certificate.CERTIFICATE_TYPE_NULL, null)); ident.setPublicKey(pubKey); ident.setSigningPublicKey(signingPubKey); info.setIdentity(ident); Properties options = new Properties(); for (int i = 0; i < 16; i++) { options.setProperty("option." + i, "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890$:." + i); } options.setProperty("netConnectionSpeed", "OC12"); info.setOptions(options); HashSet peers = new HashSet(); structure = (new HashTest()).createDataStructure(); peers.add(structure); info.setPeers(peers); info.setPublished(System.currentTimeMillis()); //info.setVersion(69); info.sign(signingPrivKey); return info; }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/440cf2c983ceb0ff188b530cda4530213fab0e7e/RouterInfoTest.java/buggy/core/java/test/net/i2p/data/RouterInfoTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1910, 6999, 752, 751, 6999, 1435, 1216, 1910, 9291, 288, 3639, 9703, 966, 1123, 273, 394, 9703, 966, 5621, 3639, 6847, 6138, 273, 394, 6847, 5621, 3639, 1910, 6999, 3695, 273, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1910, 6999, 752, 751, 6999, 1435, 1216, 1910, 9291, 288, 3639, 9703, 966, 1123, 273, 394, 9703, 966, 5621, 3639, 6847, 6138, 273, 394, 6847, 5621, 3639, 1910, 6999, 3695, 273, 261, ...
buff.append(" <li><em>Data format: </em>" + StringUtil.quoteHtmlContent( ds.getDataFormatType().toString()) + "\n");
buff.append( " <li><em>Data format: </em>" ).append( StringUtil.quoteHtmlContent( ds.getDataFormatType().toString() ) ).append( "</li>\n" );
static public void writeHtmlDescription(StringBuffer buff, InvDatasetImpl ds, boolean complete, boolean isServer, boolean datasetEvents, boolean catrefEvents) { if (ds == null) return; if (complete) { buff.append("<html>"); buff.append("<head>"); buff.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">"); buff.append("</head>"); buff.append("<body>\n"); } buff.append("<h2>Dataset: " + ds.getFullName() + "</h2>\n<ul>\n"); if ((ds.getDataFormatType() != null) && (ds.getDataFormatType() != DataFormatType.NONE)) buff.append(" <li><em>Data format: </em>" + StringUtil.quoteHtmlContent( ds.getDataFormatType().toString()) + "\n"); if ((ds.getDataSize() != 0.0) && !Double.isNaN( ds.getDataSize())) buff.append(" <li><em>Data size: </em>" + Format.formatByteSize(ds.getDataSize()) + "\n"); if ((ds.getDataType() != null) && (ds.getDataType() != DataType.NONE)) buff.append(" <li><em>Data type: </em>" + StringUtil.quoteHtmlContent( ds.getDataType().toString()) + "\n"); if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) buff.append(" <li><em>Collection type: </em>" + StringUtil.quoteHtmlContent( ds.getCollectionType().toString()) + "\n"); if (ds.isHarvest()) buff.append(" <li><em>Harvest: </em>" + ds.isHarvest() + "\n"); if (ds.getAuthority() != null) buff.append(" <li><em>Naming Authority: </em>" + StringUtil.quoteHtmlContent( ds.getAuthority()) + "\n"); if (ds.getID() != null) buff.append(" <li><em>ID: </em>" + StringUtil.quoteHtmlContent( ds.getID()) + "\n"); if (ds.getResourceControl() != null) buff.append(" <li><em>ResourceControl: </em>" + StringUtil.quoteHtmlContent( ds.getResourceControl()) + "\n"); if (ds instanceof InvCatalogRef) { InvCatalogRef catref = (InvCatalogRef) ds; String href = resolve(ds, catref.getXlinkHref()); if (catrefEvents) href = "catref:" + href; buff.append(" <li><em>CatalogRef: </em>" + makeHref(href, null) + "\n"); } buff.append("</ul>\n"); java.util.List docs = ds.getDocumentation(); if (docs.size() > 0) { buff.append("<h3>Documentation:</h3>\n<ul>\n"); for (int i = 0; i < docs.size(); i++) { InvDocumentation doc = (InvDocumentation) docs.get(i); String type = (doc.getType() == null) ? "" : "<strong>" + StringUtil.quoteHtmlContent( doc.getType()) + ":</strong> "; String inline = doc.getInlineContent(); if ((inline != null) && (inline.length() > 0)) buff.append(" <li>" + type + StringUtil.quoteHtmlContent( inline) + "\n"); if (doc.hasXlink()) { // buff.append(" <li>" + type + makeHrefResolve(ds, uri.toString(), doc.getXlinkTitle()) + "</a>\n"); buff.append(" <li>" + type + makeHref(doc.getXlinkHref(), doc.getXlinkTitle()) + "</a>\n"); } } buff.append("</ul>"); } java.util.List access = ds.getAccess(); if (access.size() > 0) { buff.append("<h3>Access:</h3>\n<ol>\n"); for (int i = 0; i < access.size(); i++) { InvAccess a = (InvAccess) access.get(i); InvService s = a.getService(); String urlString = a.getStandardUrlName(); if (datasetEvents) urlString = "dataset:" + urlString; if (isServer) { ServiceType stype = s.getServiceType(); if ((stype == ServiceType.OPENDAP) || (stype == ServiceType.DODS)) urlString = urlString + ".html"; else if (stype == ServiceType.WCS) urlString = urlString + "?request=GetCapabilities&version=1.0.0&service=WCS"; else if (stype == ServiceType.NetcdfServer) urlString = urlString + "?showForm"; } buff.append(" <li> <b>" + StringUtil.quoteHtmlContent( s.getServiceType().toString())); buff.append(":</b> " + makeHref(urlString, a.getStandardUrlName()) + "\n"); } buff.append("</ol>\n"); } java.util.List list = ds.getContributors(); if (list.size() > 0) { buff.append("<h3>Contributors:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Contributor t = (ThreddsMetadata.Contributor) list.get(i); String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil.quoteHtmlContent( t.getRole()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getName()) + role + "\n"); } buff.append("</ul>"); } list = ds.getKeywords(); if (list.size() > 0) { buff.append("<h3>Keywords:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Vocab t = (ThreddsMetadata.Vocab) list.get(i); String vocab = (t.getVocabulary() == null) ? "" : " <strong>(" + StringUtil.quoteHtmlContent( t.getVocabulary()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getText()) + vocab + "\n"); } buff.append("</ul>"); } list = ds.getDates(); if (list.size() > 0) { buff.append("<h3>Dates:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { DateType d = (DateType) list.get(i); String type = (d.getType() == null) ? "" : " <strong>(" + StringUtil.quoteHtmlContent( d.getType()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( d.getText()) + type + "\n"); } buff.append("</ul>"); } list = ds.getProjects(); if (list.size() > 0) { buff.append("<h3>Projects:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Vocab t = (ThreddsMetadata.Vocab) list.get(i); String vocab = (t.getVocabulary() == null) ? "" : " <strong>(" + StringUtil.quoteHtmlContent( t.getVocabulary()) + ")</strong> "; buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getText()) + vocab + "\n"); } buff.append("</ul>"); } list = ds.getCreators(); if (list.size() > 0) { buff.append("<h3>Creators:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Source t = (ThreddsMetadata.Source) list.get(i); buff.append(" <li><strong>" + StringUtil.quoteHtmlContent( t.getName()) + "</strong><ul>\n"); buff.append(" <li><em>email: </em>" + StringUtil.quoteHtmlContent( t.getEmail()) + "\n"); if (t.getUrl() != null) { buff.append(" <li> <em>" + makeHrefResolve(ds, t.getUrl(), null) + "</em>\n"); } buff.append(" </ul>\n"); } buff.append("</ul>"); } list = ds.getPublishers(); if (list.size() > 0) { buff.append("<h3>Publishers:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Source t = (ThreddsMetadata.Source) list.get(i); buff.append(" <li><strong>" + StringUtil.quoteHtmlContent( t.getName()) + "</strong><ul>\n"); buff.append(" <li><em>email: </em>" + StringUtil.quoteHtmlContent( t.getEmail()) + "\n"); if (t.getUrl() != null) { buff.append(" <li> <em>" + makeHrefResolve(ds, t.getUrl(), null) + "</em>\n"); } buff.append(" </ul>\n"); } buff.append("</ul>"); } list = ds.getVariables(); if (list.size() > 0) { buff.append("<h3>Variables:</h3>\n<ul>\n"); for (int i = 0; i < list.size(); i++) { ThreddsMetadata.Variables t = (ThreddsMetadata.Variables) list.get(i); if (t.getVocabUri() != null) { URI uri = t.getVocabUri(); buff.append(" <li>" + makeHrefResolve(ds, uri.toString(), t.getVocabulary()) + "</a>"); } else { buff.append(" <li>" + StringUtil.quoteHtmlContent( t.getVocabulary())); } buff.append(" <em>vocabulary:</em> <ul>\n"); java.util.List vlist = t.getVariableList(); if (vlist.size() > 0) { for (int j = 0; j < vlist.size(); j++) { ThreddsMetadata.Variable v = (ThreddsMetadata.Variable) vlist.get(j); buff.append(" <li><strong>" + StringUtil.quoteHtmlContent( v.getName()) + "</strong> = "); String desc = (v.getDescription() == null) ? "" : " <i>" +StringUtil.quoteHtmlContent( v.getDescription())+"</i> = "; buff.append(desc); String units = (v.getUnits() == null || v.getUnits().length() == 0) ? "" : " (" + v.getUnits() + ") "; buff.append(StringUtil.quoteHtmlContent( v.getVocabularyName() + units) + "\n"); } buff.append(" </ul>\n"); } buff.append("</ul>"); } buff.append("</ul>"); } ThreddsMetadata.GeospatialCoverage gc = ds.getGeospatialCoverage(); if ((gc != null) && !gc.isEmpty()) { buff.append("<h3>GeospatialCoverage:</h3>\n<ul>\n"); if (gc.isGlobal()) buff.append(" <li><em> Global </em></ul>\n"); else { buff.append(" <li><em> Longitude: </em> " + rangeString(gc.getEastWestRange()) + "\n"); buff.append(" <li><em> Latitude: </em> " + rangeString(gc.getNorthSouthRange()) + "\n"); if (gc.getUpDownRange() != null) buff.append(" <li><em> Altitude: </em> " + rangeString(gc.getUpDownRange()) + " (positive is <strong>" + StringUtil.quoteHtmlContent( gc.getZPositive()) + ")</strong>\n"); java.util.List nlist = gc.getNames(); if ((nlist != null) && (nlist.size() > 0)) { buff.append(" <li><em> Names: </em> <ul>\n"); for (int i = 0; i < nlist.size(); i++) { ThreddsMetadata.Vocab elem = (ThreddsMetadata.Vocab) nlist.get(i); buff.append(" <li>" + StringUtil.quoteHtmlContent( elem.getText()) + "\n"); } buff.append(" </ul>\n"); } buff.append(" </ul>\n"); } } DateRange tc = ds.getTimeCoverage(); if (tc != null) { buff.append("<h3>TimeCoverage:</h3>\n<ul>\n"); DateType start = tc.getStart(); if ((start != null) && !start.isBlank()) buff.append(" <li><em> Start: </em> " + start.toDateTimeString() + "\n"); DateType end = tc.getEnd(); if ((end != null) && !end.isBlank()) buff.append(" <li><em> End: </em> " + end.toDateTimeString() + "\n"); TimeDuration duration = tc.getDuration(); if ((duration != null) && !duration.isBlank()) buff.append(" <li><em> Duration: </em> " + StringUtil.quoteHtmlContent( duration.toString()) + "\n"); TimeDuration resolution = tc.getResolution(); if (tc.useResolution() && (resolution != null) && !resolution.isBlank()) buff.append(" <li><em> Resolution: </em> " + StringUtil.quoteHtmlContent( resolution.toString()) + "\n"); buff.append(" </ul>\n"); } java.util.List metadata = ds.getMetadata(); boolean gotSomeMetadata = false; for (int i = 0; i < metadata.size(); i++) { InvMetadata m = (InvMetadata) metadata.get(i); if (m.hasXlink()) gotSomeMetadata = true; } if (gotSomeMetadata) { buff.append("<h3>Metadata:</h3>\n<ul>\n"); for (int i = 0; i < metadata.size(); i++) { InvMetadata m = (InvMetadata) metadata.get(i); String type = (m.getMetadataType() == null) ? "" : m.getMetadataType(); if (m.hasXlink()) { String title = (m.getXlinkTitle() == null) ? "Type " + type : m.getXlinkTitle(); buff.append(" <li> " + makeHrefResolve(ds, m.getXlinkHref(), title) + "\n"); } //else { //buff.append(" <li> <pre>"+m.getMetadataType()+" "+m.getContentObject()+"</pre>\n"); //} } buff.append("</ul>"); } java.util.List props = ds.getProperties(); if (props.size() > 0) { buff.append("<h3>Properties:</h3>\n<ul>\n"); for (int i = 0; i < props.size(); i++) { InvProperty p = (InvProperty) props.get(i); if (p.getName().equals("attachments")) // LOOK whats this ? buff.append(" <li>" + makeHrefResolve(ds, p.getValue(), p.getName()) + "\n"); else buff.append(" <li>" + StringUtil.quoteHtmlContent( p.getName() + " = \"" + p.getValue()) + "\"\n"); } buff.append("</ul>"); } if (complete) buff.append("</body></html>"); }
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/8d328489b477401000f85ec2fb7b56fccdbc0caa/InvDatasetImpl.java/buggy/cdm/src/main/java/thredds/catalog/InvDatasetImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 918, 1045, 4353, 3291, 12, 780, 1892, 6139, 16, 5454, 10656, 2828, 3780, 16, 1377, 1250, 3912, 16, 1250, 353, 2081, 16, 1250, 3709, 3783, 16, 1250, 6573, 1734, 3783, 13, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 918, 1045, 4353, 3291, 12, 780, 1892, 6139, 16, 5454, 10656, 2828, 3780, 16, 1377, 1250, 3912, 16, 1250, 353, 2081, 16, 1250, 3709, 3783, 16, 1250, 6573, 1734, 3783, 13, 288, ...
Method setMethod = null; String setter = "set".concat(nameComponent); if (ht.containsKey(setter)) {
NativeJavaMethod njmSet = null; MemberBox setter = null; String setterName = "set".concat(nameComponent); if (ht.containsKey(setterName)) {
private void makeBeanProperties(Scriptable scope, boolean isStatic) { Hashtable ht = isStatic ? staticMembers : members; Hashtable toAdd = new Hashtable(); // Now, For each member, make "bean" properties. for (Enumeration e = ht.keys(); e.hasMoreElements(); ) { // Is this a getter? String name = (String) e.nextElement(); boolean memberIsGetMethod = name.startsWith("get"); boolean memberIsIsMethod = name.startsWith("is"); if (memberIsGetMethod || memberIsIsMethod) { // Double check name component. String nameComponent = name.substring(memberIsGetMethod ? 3 : 2); if (nameComponent.length() == 0) continue; // Make the bean property name. String beanPropertyName = nameComponent; char ch0 = nameComponent.charAt(0); if (Character.isUpperCase(ch0)) { if (nameComponent.length() == 1) { beanPropertyName = nameComponent.toLowerCase(); } else { char ch1 = nameComponent.charAt(1); if (!Character.isUpperCase(ch1)) { beanPropertyName = Character.toLowerCase(ch0) +nameComponent.substring(1); } } } // If we already have a member by this name, don't do this // property. if (ht.containsKey(beanPropertyName)) continue; // Get the method by this name. Object method = ht.get(name); if (!(method instanceof NativeJavaMethod)) continue; NativeJavaMethod getJavaMethod = (NativeJavaMethod) method; Method getMethod = extractGetMethod(getJavaMethod, isStatic); if (getMethod != null) { // We have a getter. Now, do we have a setter? Method setMethod = null; String setter = "set".concat(nameComponent); if (ht.containsKey(setter)) { // Is this value a method? method = ht.get(setter); if (method instanceof NativeJavaMethod) { NativeJavaMethod njm = (NativeJavaMethod) method; Class type = getMethod.getReturnType(); setMethod = extractSetMethod(type, njm, isStatic); } } // Make the property. BeanProperty bp = new BeanProperty(getMethod, setMethod); toAdd.put(beanPropertyName, bp); } } } // Add the new bean properties. for (Enumeration e = toAdd.keys(); e.hasMoreElements();) { String key = (String) e.nextElement(); Object value = toAdd.get(key); ht.put(key, value); } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/clean/js/rhino/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 3381, 2297, 12, 3651, 429, 2146, 16, 1250, 16116, 13, 565, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 18559, 25607, 273, 394, 18559, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 3381, 2297, 12, 3651, 429, 2146, 16, 1250, 16116, 13, 565, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 18559, 25607, 273, 394, 18559, 5621, ...
List data = dbc.executeProcedure(procedure,params);
List data = dbc.executeProcedure( procedure, params );
public static Map sqlProcedureHash( ConnectionPool conPool, String procedure, String[] params ) { procedure = trimAndCheckNoWhitespace(procedure) ; DBConnect dbc = new DBConnect( conPool ); List data = dbc.executeProcedure(procedure,params); String[] meta = dbc.getColumnLabels(); return createHashtableOfStringArrayFromSqlResults( data, meta ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1ad33c9099b6999235d960a1be2d0fd723408b1c/SqlHelpers.java/buggy/server/src/imcode/server/db/SqlHelpers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1847, 17213, 2310, 12, 4050, 2864, 356, 2864, 16, 514, 12131, 16, 514, 8526, 859, 262, 288, 3639, 12131, 273, 2209, 31151, 2279, 9431, 12, 685, 8153, 13, 274, 3639, 2383,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 1847, 17213, 2310, 12, 4050, 2864, 356, 2864, 16, 514, 12131, 16, 514, 8526, 859, 262, 288, 3639, 12131, 273, 2209, 31151, 2279, 9431, 12, 685, 8153, 13, 274, 3639, 2383,...
myClass = _map.getString("class", true); myFetchLimit = _map.getInteger("fetchLimit"); myDeep = _map.getBoolean("isDeep"); myLocksObjects = _map.getBoolean("locksObjects"); myPrefetchingRelationshipKeyPaths = _map.getList("prefetchingRelationshipKeyPaths", true); myPromptsAfterFetchLimit = _map.getBoolean("prompsAfterFetchLimit");
myClass = _map.getString("class", true); myFetchLimit = _map.getInteger("fetchLimit"); myDeep = _map.getBoolean("isDeep"); myLocksObjects = _map.getBoolean("locksObjects"); myPrefetchingRelationshipKeyPaths = _map.getList("prefetchingRelationshipKeyPaths", true); myPromptsAfterFetchLimit = _map.getBoolean("prompsAfterFetchLimit");
public void loadFromMap(EOModelMap _map) throws EOModelException { myFetchSpecMap = _map; // "entityName" = myEntity myClass = _map.getString("class", true); myFetchLimit = _map.getInteger("fetchLimit"); myDeep = _map.getBoolean("isDeep"); myLocksObjects = _map.getBoolean("locksObjects"); myPrefetchingRelationshipKeyPaths = _map.getList("prefetchingRelationshipKeyPaths", true); myPromptsAfterFetchLimit = _map.getBoolean("prompsAfterFetchLimit"); Map qualifierMap = _map.getMap("qualifier"); if (qualifierMap != null) { myQualifier = EOQualifierFactory.qualifierForMap(new EOModelMap(qualifierMap)); } myRawRowKeyPaths = _map.getList("rawRowKeyPaths", true); myRefreshesRefetchedObjects = _map.getBoolean("refreshesRefetchedObjects"); myRequiresAllQualifierBindingVariables = _map.getBoolean("requiresAllQualifierBindingVariables"); myUsesDistinct = _map.getBoolean("usesDistinct"); List sortOrderings = _map.getList("sortOrderings"); if (sortOrderings != null) { Iterator sortOrderingsIter = sortOrderings.iterator(); while (sortOrderingsIter.hasNext()) { EOModelMap sortOrderingMap = new EOModelMap((Map) sortOrderingsIter.next()); EOSortOrdering sortOrdering = new EOSortOrdering(); sortOrdering.loadFromMap(sortOrderingMap); addSortOrdering(sortOrdering); } } }
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/d39ae6aad0341c8bf84f634fb6d078b5ba63e8f8/EOFetchSpecification.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOFetchSpecification.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 24935, 863, 12, 41, 51, 1488, 863, 389, 1458, 13, 1216, 512, 51, 1488, 503, 288, 565, 3399, 5005, 1990, 863, 273, 389, 1458, 31, 565, 368, 315, 1096, 461, 6, 273, 3399, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24935, 863, 12, 41, 51, 1488, 863, 389, 1458, 13, 1216, 512, 51, 1488, 503, 288, 565, 3399, 5005, 1990, 863, 273, 389, 1458, 31, 565, 368, 315, 1096, 461, 6, 273, 3399, 194...
Map criteria);
CalendarFilter filter);
public Set<CalendarEventItem> findEvents(CalendarCollectionItem calendar, Map criteria);
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/9aa23e64f4789c81954f3edca5bc3549ccb46ffe/CalendarDao.java/clean/src/main/java/org/osaf/cosmo/dao/CalendarDao.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 32, 7335, 1133, 1180, 34, 1104, 3783, 12, 7335, 2532, 1180, 5686, 16, 4766, 2398, 1635, 3582, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 32, 7335, 1133, 1180, 34, 1104, 3783, 12, 7335, 2532, 1180, 5686, 16, 4766, 2398, 1635, 3582, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
manager.add(createBugzillaTask); manager.add(createBugzillaQueryCategory); manager.add(refresh); manager.add(new Separator());
private void fillLocalToolBar(IToolBarManager manager) { manager.add(createTask); manager.add(createCategory); manager.add(new Separator()); manager.add(createBugzillaTask); manager.add(createBugzillaQueryCategory); manager.add(refresh); manager.add(new Separator()); manager.add(filterCompleteTask);// manager.add(filterInCompleteTask); manager.add(filterOnPriority); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/23c8cbf0c6d069ce144d0844eb6071420662b796/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/views/TaskListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3636, 2042, 6364, 5190, 12, 45, 6364, 5190, 1318, 3301, 13, 288, 3639, 3301, 18, 1289, 12, 2640, 2174, 1769, 3639, 3301, 18, 1289, 12, 2640, 4457, 1769, 3639, 3301, 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, 377, 3238, 918, 3636, 2042, 6364, 5190, 12, 45, 6364, 5190, 1318, 3301, 13, 288, 3639, 3301, 18, 1289, 12, 2640, 2174, 1769, 3639, 3301, 18, 1289, 12, 2640, 4457, 1769, 3639, 3301, 18, 1289, ...
public boolean equals(Object obj) { if (obj instanceof UID) { UID uid = (UID)obj; if (this.unique == uid.unique && this.time == uid.time && this.count == uid.count) { return (true); } } return (false); }
public boolean equals(Object other) { if (other instanceof UID) { UID ui = (UID) other; return unique == ui.unique && time == ui.time && count == ui.count; } else return false; }
public boolean equals(Object obj) { if (obj instanceof UID) { UID uid = (UID)obj; if (this.unique == uid.unique && this.time == uid.time && this.count == uid.count) { return (true); } } return (false);}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/UID.java/clean/core/src/classpath/java/java/rmi/server/UID.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 202, 430, 261, 2603, 1276, 10034, 13, 288, 202, 202, 3060, 4555, 273, 261, 3060, 13, 2603, 31, 202, 202, 430, 261, 2211, 18, 6270, 422, 4555, 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, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 202, 430, 261, 2603, 1276, 10034, 13, 288, 202, 202, 3060, 4555, 273, 261, 3060, 13, 2603, 31, 202, 202, 430, 261, 2211, 18, 6270, 422, 4555, 18, ...
int sensorHits = attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_HEAD ); if (sensorHits > 0) { mods.addModifier(2, "attacker sensors damaged"); } return mods; }
public static ToHitData getDamageWeaponMods(Entity attacker, Mounted weapon) { ToHitData mods = new ToHitData(); if ( attacker instanceof Protomech ) { // Head criticals add to target number of all weapons. int hits = ((Protomech)attacker).getCritsHit(Protomech.LOC_HEAD); if( hits > 0 ) { mods.addModifier( hits, hits + " head critical(s)" ); } // Arm mounted (and main gun) weapons get DRMs from arm crits. switch ( weapon.getLocation() ) { case Protomech.LOC_LARM: case Protomech.LOC_RARM: hits = ((Protomech)attacker).getCritsHit( weapon.getLocation() ); if ( hits > 0 ) { mods.addModifier( hits, hits + " arm critical(s)" ); } break; case Protomech.LOC_MAINGUN: // Main gun is affected by crits in *both* arms. hits = ((Protomech)attacker).getCritsHit( Protomech.LOC_LARM ); hits += ((Protomech)attacker).getCritsHit( Protomech.LOC_RARM ); if ( 4 == hits ) { mods.addModifier( ToHitData.IMPOSSIBLE, "Cannot fire main gun with no arms." ); } else if ( hits > 0 ) { mods.addModifier( hits, hits + " arm critical(s)" ); } break; } } // End attacker-is-Protomech // Is the shoulder destroyed? else if ( attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_SHOULDER, weapon.getLocation() ) > 0 ) { mods.addModifier(4, "shoulder actuator destroyed"); } else { // no shoulder hits, add other arm hits int actuatorHits = 0; if ( attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_UPPER_ARM, weapon.getLocation() ) > 0 ) { actuatorHits++; } if ( attacker.getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_ARM, weapon.getLocation() ) > 0 ) { actuatorHits++; } if (actuatorHits > 0) { mods.addModifier( actuatorHits, actuatorHits + " destroyed arm actuators" ); } } // sensors critical hit to attacker int sensorHits = attacker.getBadCriticals( CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_SENSORS, Mech.LOC_HEAD ); if (sensorHits > 0) { mods.addModifier(2, "attacker sensors damaged"); } return mods; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/9f7045be1eb4cb1b7c1b0e6be8f7c2d9c877cd43/Compute.java/buggy/megamek/src/megamek/common/Compute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 2974, 13616, 751, 2343, 301, 410, 3218, 28629, 1739, 87, 12, 1943, 13843, 264, 16, 13076, 329, 732, 28629, 13, 225, 288, 1377, 2974, 13616, 751, 15546, 273, 394, 2974, 13616, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 2974, 13616, 751, 2343, 301, 410, 3218, 28629, 1739, 87, 12, 1943, 13843, 264, 16, 13076, 329, 732, 28629, 13, 225, 288, 1377, 2974, 13616, 751, 15546, 273, 394, 2974, 13616, 7...
public void paint(RenderingContext c) {
public void paint(RenderingContext c, int originX, int originY) {
public void paint(RenderingContext c) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } updateAbsoluteLocations(); List blocks = new ArrayList(); List lines = new ArrayList(); collectBoxes(c, getMaster(), blocks, lines); // TODO root layer needs to be handled correctly paintLayerBackgroundAndBorder(c); paintLayers(c, getSortedLayers(NEGATIVE)); paintBackgroundsAndBorders(c, blocks); paintFloats(c); paintInlineContent(c, lines); //without great thought, just doing this as close to what it was as possible paintListStyles(c, blocks); // TODO z-index: 0 layers should be painted atomically paintLayers(c, getSortedLayers(AUTO_AND_ZERO)); paintLayers(c, getSortedLayers(POSITIVE)); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/2aa2be70fd65b9008f7db1dc1250cb01f13cf049/Layer.java/buggy/src/java/org/xhtmlrenderer/layout/Layer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 14261, 1042, 276, 16, 509, 4026, 60, 16, 509, 4026, 61, 13, 288, 3639, 309, 261, 588, 7786, 7675, 588, 2885, 7675, 291, 7505, 10756, 288, 5411, 1754, 7505, 4576, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 12, 14261, 1042, 276, 16, 509, 4026, 60, 16, 509, 4026, 61, 13, 288, 3639, 309, 261, 588, 7786, 7675, 588, 2885, 7675, 291, 7505, 10756, 288, 5411, 1754, 7505, 4576, 1...
public IRubyObject evalUnder(RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line) { /* if (ruby_safe_level >= 4) { Check_Type(src, T_STRING); } else { Check_SafeStr(src); } */ return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject source = args[1]; IRubyObject filename = args[2]; // FIXME: lineNumber is not supported //IRubyObject lineNumber = args[3]; return args[0].evalSimple(source.getRuntime().getCurrentContext(), source, ((RubyString) filename).toString()); } public Arity getArity() { return Arity.optional(); } }, new IRubyObject[] { this, src, file, line }); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/clean/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 5302, 14655, 12, 54, 10340, 3120, 3613, 16, 15908, 10340, 921, 1705, 16, 15908, 10340, 921, 585, 16, 15908, 10340, 921, 980, 13, 288, 3639, 1748, 3639, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 5302, 14655, 12, 54, 10340, 3120, 3613, 16, 15908, 10340, 921, 1705, 16, 15908, 10340, 921, 585, 16, 15908, 10340, 921, 980, 13, 288, 3639, 1748, 3639, 309, 261, ...
protected void renderSVGDocument(Document doc, int x, int y, FontState fs) { SVGSVGElement svg = ((SVGDocument)doc).getRootElement(); int w = (int)(svg.getWidth().getBaseVal().getValue() * 1000); int h = (int)(svg.getHeight().getBaseVal().getValue() * 1000); float sx = 1, sy = -1; int xOffset = x, yOffset = y; /* * Clip to the svg area. * Note: To have the svg overlay (under) a text area then use * an fo:block-container */ currentStream.add("q\n"); if (w != 0 && h != 0) { currentStream.add(x / 1000f + " " + y / 1000f + " m\n"); currentStream.add((x + w) / 1000f + " " + y / 1000f + " l\n"); currentStream.add((x + w) / 1000f + " " + (y - h) / 1000f + " l\n"); currentStream.add(x / 1000f + " " + (y - h) / 1000f + " l\n"); currentStream.add("h\n"); currentStream.add("W\n"); currentStream.add("n\n"); } // transform so that the coordinates (0,0) is from the top left // and positive is down and to the right. (0,0) is where the // viewBox puts it. currentStream.add(sx + " 0 0 " + sy + " " + xOffset / 1000f + " " + yOffset / 1000f + " cm\n"); UserAgent userAgent = new MUserAgent(new AffineTransform()); GVTBuilder builder = new GVTBuilder(); GraphicsNodeRenderContext rc = getRenderContext(); BridgeContext ctx = new BridgeContext(userAgent, rc); GraphicsNode root; //System.out.println("creating PDFGraphics2D"); PDFGraphics2D graphics = new PDFGraphics2D(true, fs, pdfDoc, currentFontName, currentFontSize, currentXPosition, currentYPosition); graphics.setGraphicContext( new org.apache.batik.ext.awt.g2d.GraphicContext()); graphics.setRenderingHints(rc.getRenderingHints()); try { root = builder.build(ctx, doc); root.paint(graphics, rc); currentStream.add(graphics.getString()); } catch (Exception e) { e.printStackTrace(); } currentStream.add("Q\n"); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2ffd90c4212588df663d36e7afbc00796716cab0/PDFRenderer.java/buggy/src/org/apache/fop/render/pdf/PDFRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 5902, 26531, 2519, 12, 2519, 2434, 16, 474, 92, 16, 474, 93, 16, 5711, 1119, 2556, 15329, 26531, 26531, 3471, 20105, 33, 12443, 26531, 2519, 13, 2434, 2934, 588, 2375, 1046, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 6459, 5902, 26531, 2519, 12, 2519, 2434, 16, 474, 92, 16, 474, 93, 16, 5711, 1119, 2556, 15329, 26531, 26531, 3471, 20105, 33, 12443, 26531, 2519, 13, 2434, 2934, 588, 2375, 1046, 5621, ...
public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType();
public quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { quickfix.field.UnderlyingSecurityType value = new quickfix.field.UnderlyingSecurityType();
public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequestAck.java/clean/src/java/src/quickfix/fix44/TradeCaptureReportRequestAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 559, 10833, 765, 6291, 4368, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 559, 10833, 765, 6291, 4368, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 559...
public OutputStream textDeltaChunk(SVNDiffWindow diffWindow)
public OutputStream textDeltaChunk(String path, SVNDiffWindow diffWindow)
public OutputStream textDeltaChunk(SVNDiffWindow diffWindow) throws SVNException { if (myDiffWindows == null) { /* * this is the collection for all diffWindows (if any) * which will be supplied */ myDiffWindows = new LinkedList(); } myDiffWindows.add(diffWindow); try { return myMediator.createTemporaryLocation(myCurrentPath, diffWindow); } catch (IOException ioe) { throw new SVNException(ioe); } }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/6c2a9b21ad94c8ea1ae6d43c84b3c1225fe4e460/Export.java/clean/doc/examples/src/org/tmatesoft/svn/examples/repository/Export.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 8962, 977, 9242, 5579, 12, 780, 589, 16, 29537, 2908, 3048, 3829, 3122, 3829, 13, 7734, 1216, 29537, 50, 503, 288, 5411, 309, 261, 4811, 5938, 10399, 422, 446, 13, 288, 7734, 1748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8962, 977, 9242, 5579, 12, 780, 589, 16, 29537, 2908, 3048, 3829, 3122, 3829, 13, 7734, 1216, 29537, 50, 503, 288, 5411, 309, 261, 4811, 5938, 10399, 422, 446, 13, 288, 7734, 1748, ...
if (end>0) {
if (end > 0) {
private void addNode(String path, Vector v) { String name=null; int start = 0, end = 0, depth = 1; Enumeration el; Node n, nn; boolean vacant=false; el = v.elements(); n = (Node)el.nextElement(); do { end = path.indexOf('/', start); if (end>0) { name = path.substring(start, end); start = end+1; } else name = path.substring(start); for(int i=1;i<=depth;i++) { if(!el.hasMoreElements()) { addElement(name, v); break; } else { n = (Node)el.nextElement(); if(n.name.toString().equals(name)) { break; } else { replaceElement(name, v, depth); break; } } } depth++; } while (end!=-1 && start<path.length()); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/701adb53ebc028dc703c1074d472d19dec2ab46e/ZipView.java/buggy/java/plugins/examples/zip/ZipView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 23063, 12, 780, 589, 16, 5589, 331, 13, 288, 202, 780, 508, 33, 2011, 31, 202, 474, 787, 273, 374, 16, 679, 273, 374, 16, 3598, 273, 404, 31, 202, 21847, 415, 31, 202, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23063, 12, 780, 589, 16, 5589, 331, 13, 288, 202, 780, 508, 33, 2011, 31, 202, 474, 787, 273, 374, 16, 679, 273, 374, 16, 3598, 273, 404, 31, 202, 21847, 415, 31, 202, 90...
setScope(null);
private void evaluateExpressions() throws JspException { try { setArg0((String) evalAttr("arg0", getArg0(), String.class)); } catch (NullAttributeException ex) { setArg0(null); } try { setArg1((String) evalAttr("arg1", getArg1(), String.class)); } catch (NullAttributeException ex) { setArg1(null); } try { setArg2((String) evalAttr("arg2", getArg2(), String.class)); } catch (NullAttributeException ex) { setArg2(null); } try { setArg3((String) evalAttr("arg3", getArg3(), String.class)); } catch (NullAttributeException ex) { setArg3(null); } try { setArg4((String) evalAttr("arg4", getArg4(), String.class)); } catch (NullAttributeException ex) { setArg4(null); } try { setBundle((String) evalAttr("bundle", getBundle(), String.class)); } catch (NullAttributeException ex) { setBundle(null); } try { setKey((String) evalAttr("key", getKey(), String.class)); } catch (NullAttributeException ex) { setKey(null); } try { setLocale((String) evalAttr("locale", getLocale(), String.class)); } catch (NullAttributeException ex) { setLocale(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/8505d2daee76ab5fee7073c344e65065b694c149/ELMessageTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/bean/ELMessageTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 4117, 20, 12443, 780, 13, 5302, 3843, 2932, 3175, 20, 3113, 336, 4117, 20, 9334, 514, 18, 1106, 10019, 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, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 4117, 20, 12443, 780, 13, 5302, 3843, 2932, 3175, 20, 3113, 336, 4117, 20, 9334, 514, 18, 1106, 10019, 3639, 289,...
DimIProxy(Dim dim, int type) {
private DimIProxy(Dim dim, int type) {
DimIProxy(Dim dim, int type) { this.dim = dim; this.type = type; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 463, 381, 45, 3886, 12, 5225, 2464, 16, 509, 618, 13, 3639, 288, 5411, 333, 18, 3509, 273, 2464, 31, 5411, 333, 18, 723, 273, 618, 31, 3639, 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, 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, 540, 463, 381, 45, 3886, 12, 5225, 2464, 16, 509, 618, 13, 3639, 288, 5411, 333, 18, 3509, 273, 2464, 31, 5411, 333, 18, 723, 273, 618, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100...
public Iterator getAttributeNames() {
public Iterator getAttributeNames() {
public Iterator getAttributeNames() { Vector names = new Vector(); for ( Enumeration e = attributes.keys(); e.hasMoreElements(); ) { names.add( e.nextElement() ); } return names.iterator(); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6dcdc5fb571f07235e76daa037e5cf6d34bc81a0/James.java/buggy/proposals/imap2/java/org/apache/james/James.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 4061, 1557, 1435, 565, 288, 3639, 5589, 1257, 273, 394, 5589, 5621, 3639, 364, 261, 13864, 425, 273, 1677, 18, 2452, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 5411, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 4061, 1557, 1435, 565, 288, 3639, 5589, 1257, 273, 394, 5589, 5621, 3639, 364, 261, 13864, 425, 273, 1677, 18, 2452, 5621, 425, 18, 5332, 7417, 3471, 5621, 262, 288, 5411, 125...
public TA_RetCode ADX( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevPlusDM, prevTR; double tempReal, tempReal2, diffP, diffM; double minusDI, plusDI, sumDX, prevADX; int i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInTimePeriod > 1 ) lookbackTotal = (2*optInTimePeriod) + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) - 1; else lookbackTotal = 2; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevPlusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod-1; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } sumDX = 0.0; i = optInTimePeriod; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) sumDX += (100.0 * ( Math.abs (minusDI-plusDI)/tempReal)) ; } } prevADX = (sumDX / optInTimePeriod) ; i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ADX.ordinal()]) ; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } } outReal[0] = prevADX; outIdx = 1; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; prevMinusDM -= prevMinusDM/optInTimePeriod; prevPlusDM -= prevPlusDM/optInTimePeriod; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } else if( (diffP > 0) && (diffP > diffM) ) { prevPlusDM += diffP; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( prevTR != 0.0 ) { minusDI = (100.0*(prevMinusDM/prevTR)) ; plusDI = (100.0*(prevPlusDM/prevTR)) ; tempReal = minusDI+plusDI; if( tempReal != 0.0 ) { tempReal = (100.0*( Math.abs (minusDI-plusDI)/tempReal)) ; prevADX = (((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod) ; } } outReal[outIdx++] = prevADX; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 399, 37, 67, 7055, 1085, 11738, 60, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 509, 2153, 382, 26540...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 399, 37, 67, 7055, 1085, 11738, 60, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 509, 2153, 382, 26540...
final boolean isXmlAvailable()
public final boolean isXmlAvailable()
final boolean isXmlAvailable() { return true; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/1e0a67d7253f80f0671c2b5f969f8f86a836773c/CompilerEnvirons.java/buggy/js/rhino/src/org/mozilla/javascript/CompilerEnvirons.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1250, 353, 4432, 5268, 1435, 565, 288, 3639, 327, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1250, 353, 4432, 5268, 1435, 565, 288, 3639, 327, 638, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public org.quickfix.field.RegistRefID getRegistRefID() throws FieldNotFound { org.quickfix.field.RegistRefID value = new org.quickfix.field.RegistRefID();
public quickfix.field.RegistRefID getRegistRefID() throws FieldNotFound { quickfix.field.RegistRefID value = new quickfix.field.RegistRefID();
public org.quickfix.field.RegistRefID getRegistRefID() throws FieldNotFound { org.quickfix.field.RegistRefID value = new org.quickfix.field.RegistRefID(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RegistrationInstructionsResponse.java/clean/src/java/src/quickfix/fix44/RegistrationInstructionsResponse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 1957, 734, 336, 1617, 376, 1957, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 1957, 734, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 1957, 734, 336, 1617, 376, 1957, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 1957, 734, 46...
c = in.read();
c = getChar();
public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. do { c = in.read(); if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) break; } } while (isJSSpace(c) || c == '\n'); if (c == EOF_CHAR) return EOF; if (c != '-' && c != '\n') flags |= TSF_DIRTYLINE; // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = in.read(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; c = '\\'; in.unread(); } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = in.read(); if (c == '\\') { c = in.read(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (!Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } in.unread(); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = str; return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(in.peek()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = in.read(); if (c == 'x' || c == 'X') { base = 16; c = in.read(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = in.read(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = in.read(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = in.read(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = in.read(); if (c == '+' || c == '-') { addToString(c); c = in.read(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = in.read(); } while (isDigit(c)); } } in.unread(); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = in.read(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = in.read(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = in.read(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = in.read(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = in.read(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = in.read(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = in.read(); } } in.unread(); c = val; } } } addToString(c); c = in.read(); } this.string = getStringFromBuffer(); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (in.match('|')) { return OR; } else if (in.match('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (in.match('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (in.match('&')) { return AND; } else if (in.match('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (in.match('=')) { if (in.match('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (in.match('=')) { if (in.match('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (in.match('!')) { if (in.match('-')) { if (in.match('-')) { skipLine(); return getToken(); // in place of 'goto retry' } in.unread(); } in.unread(); } if (in.match('<')) { if (in.match('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (in.match('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (in.match('>')) { if (in.match('>')) { if (in.match('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (in.match('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (in.match('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (in.match('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (in.match('/')) { skipLine(); return getToken(); } if (in.match('*')) { while ((c = in.read()) != -1 && !(c == '*' && in.match('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = in.read()) != '/') { if (c == '\n' || c == EOF_CHAR) { in.unread(); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = in.read(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (in.match('g')) addToString('g'); else if (in.match('i')) addToString('i'); else if (in.match('m')) addToString('m'); else break; } if (isAlpha(in.peek())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (in.match('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (in.match('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (in.match('=')) { this.op = ADD; return ASSIGN; } else if (in.match('+')) { return INC; } else { return ADD; } case '-': if (in.match('=')) { this.op = SUB; c = ASSIGN; } else if (in.match('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (in.match('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/8d78476dde863807579dcd20202decfcfcc9f7f1/TokenStream.java/buggy/js/rhino/src/org/mozilla/javascript/TokenStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 9162, 1435, 1216, 1860, 288, 3639, 509, 276, 31, 3639, 1147, 2135, 9904, 31, 3639, 368, 2073, 364, 18543, 17, 823, 1147, 3639, 309, 261, 2211, 18, 6206, 823, 1345, 480, 6431, ...
result[index++] = (char) firstChar;
result[index++] = (char)firstChar;
public java.lang.String read_wstring() { int size = read_long(); if (size == 0) { return ""; } read_align(2, size); int numChars = size / 2; boolean littleEndian = false; read_align(1, 2); int firstChar = (char) read_ushort_no_align_big_endian(); _offset += 2; char[] result; int index = 0; if (firstChar == 0xFEFF) { // big endian result = new char[--numChars]; } else if (firstChar == 0xFFFE) { // little endian result = new char[--numChars]; littleEndian = true; } else { // no BOM, big endian result = new char[numChars--]; result[index++] = (char) firstChar; } read_align(1, 2 * numChars); if (littleEndian) { for (int i = 0; i < numChars; i++) { result[index++] = (char) read_ushort_no_align_little_endian(); _offset += 2; } } else { for (int i = 0; i < numChars; i++) { result[index++] = (char) read_ushort_no_align_big_endian(); _offset += 2; } } return new String(result); }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/5c788225030ea2bb15cb5f3f9696c52b755b6d54/CdrInputStream.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/CdrInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4936, 18, 780, 855, 67, 91, 1080, 1435, 288, 3639, 509, 963, 273, 855, 67, 5748, 5621, 3639, 309, 261, 1467, 422, 374, 13, 288, 5411, 327, 1408, 31, 3639, 289, 3639, 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, 1071, 2252, 18, 4936, 18, 780, 855, 67, 91, 1080, 1435, 288, 3639, 509, 963, 273, 855, 67, 5748, 5621, 3639, 309, 261, 1467, 422, 374, 13, 288, 5411, 327, 1408, 31, 3639, 289, 3639, 8...
super("Hash", RubyHash.class, runtime.getClasses().getObjectClass());
super("Hash", RubyHash.class, runtime.getObject());
public HashMetaClass(Ruby runtime) { super("Hash", RubyHash.class, runtime.getClasses().getObjectClass()); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/ca6b16e996ea9af83ce593594b9c69b9364a9924/HashMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/HashMetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2474, 2781, 797, 12, 54, 10340, 3099, 13, 288, 3639, 2240, 2932, 2310, 3113, 19817, 2310, 18, 1106, 16, 3099, 18, 588, 921, 10663, 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, 1071, 2474, 2781, 797, 12, 54, 10340, 3099, 13, 288, 3639, 2240, 2932, 2310, 3113, 19817, 2310, 18, 1106, 16, 3099, 18, 588, 921, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, ...
sdY.getQuery().setDefinition("MyExpression(Table.Column)");
sdY.getQuery().setDefinition("Expr(\"Column\")");
public Chart getModel(String sSubType, Orientation orientation, String sDimension) { if (newChart == null) { newChart = ChartWithAxesImpl.create(); newChart.setType(sType); newChart.setSubType(sSubType); newChart.setOrientation(orientation); newChart.setDimension(getDimensionFor(sDimension)); } else { return newChart; } ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) newChart.getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) newChart.getAxes().get(0)).getTitle().getCaption().setValue("Base Axis Title"); SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX); newChart.getTitle().getLabel().getCaption().setValue("Line Chart Title"); if (sSubType.equalsIgnoreCase("Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setPercent(true); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Overlay")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).setStacked(false); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } return newChart; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3312cd0d7d4efb945ae26dd43efddc7cb433aa3c/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14804, 7454, 12, 780, 272, 30511, 16, 531, 12556, 9820, 16, 514, 272, 8611, 13, 565, 288, 3639, 309, 261, 2704, 7984, 422, 446, 13, 3639, 288, 5411, 394, 7984, 273, 14804, 1190, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14804, 7454, 12, 780, 272, 30511, 16, 531, 12556, 9820, 16, 514, 272, 8611, 13, 565, 288, 3639, 309, 261, 2704, 7984, 422, 446, 13, 3639, 288, 5411, 394, 7984, 273, 14804, 1190, 2...
}
}
public int getRowCount() { return entries.size(); }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/8e72809e7a6d1c2b4d00efd734b3907725856133/BrowserColorsOptionPane.java/buggy/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 11835, 1380, 1435, 202, 95, 202, 202, 2463, 3222, 18, 1467, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 11835, 1380, 1435, 202, 95, 202, 202, 2463, 3222, 18, 1467, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public String getOid( String name ) throws NamingException { if ( name == null ) { throw new NamingException( "name should not be null" ); } /* If name is an OID than we return it back since inherently the * OID is another name for the object referred to by OID and the * caller does not know that the argument is an OID String. */ if ( Character.isDigit( name.charAt( 0 ) ) ) { monitor.getOidWithOid( name ); return name; } // If name is mapped to a OID already return OID if ( byName.containsKey( name ) ) { String oid = ( String ) byName.get( name ); monitor.oidResolved( name, oid ); return oid; } if ( bootstrap.hasOid( name ) ) { String oid = bootstrap.getOid( name ); monitor.oidResolved( name, oid ); return oid; } /* * As a last resort we check if name is not normalized and if the * normalized version used as a key returns an OID. If the normalized * name works add the normalized name as a key with its OID to the * byName lookup. BTW these normalized versions of the key are not * returned on a getNameSet. */ String lowerCase = name.trim().toLowerCase(); if ( ! name.equals( lowerCase ) ) { if ( byName.containsKey( lowerCase ) ) { String oid = ( String ) byName.get( lowerCase ); monitor.oidResolved( name, lowerCase, oid ); // We expect to see this version of the key again so we add it byName.put( name, oid ); return oid; } /* * Some LDAP servers (MS Active Directory) tend to use some of the * bootstrap oid names as all caps, like OU. This should resolve that. * Lets stash this in the byName if we find it. */ if ( bootstrap.hasOid( lowerCase) ) { String oid = bootstrap.getOid( name ); monitor.oidResolved( name, oid ); // We expect to see this version of the key again so we add it byName.put( name, oid ); return oid; } } String msg = "OID for name '" + name + "' was not " + "found within the OID registry"; NamingException fault = new NamingException ( msg ); monitor.oidResolutionFailed( name, fault ); throw fault; }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/286deb08f0be5b2c554753b7fe2969eb80706ce3/GlobalOidRegistry.java/clean/core/src/main/java/org/apache/ldap/server/schema/GlobalOidRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 588, 19105, 12, 780, 529, 13, 15069, 24102, 503, 95, 430, 12, 529, 631, 2011, 15329, 12849, 2704, 24102, 503, 2932, 1973, 76, 1006, 902, 19425, 420, 8863, 4004, 14, 2047, 529, 26925...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 588, 19105, 12, 780, 529, 13, 15069, 24102, 503, 95, 430, 12, 529, 631, 2011, 15329, 12849, 2704, 24102, 503, 2932, 1973, 76, 1006, 902, 19425, 420, 8863, 4004, 14, 2047, 529, 26925...
return connection.createStatement().executeQuery("SELECT '' as TABLE_CAT");
Field f[] = new Field[1]; Vector v = new Vector(); byte[][] tuple = new byte[1][0]; f[0] = new Field(connection,new String("TABLE_CAT"),iVarcharOid,32); tuple[0] = "".getBytes(); v.addElement(tuple); return new ResultSet(connection,f,v,"OK",1);
public java.sql.ResultSet getCatalogs() throws SQLException { return connection.createStatement().executeQuery("SELECT '' as TABLE_CAT"); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/dffaec556455fbc20f93512552a6658d0e5018ad/DatabaseMetaData.java/clean/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 1927, 21836, 1435, 1216, 6483, 225, 288, 377, 2286, 284, 8526, 273, 394, 2286, 63, 21, 15533, 5589, 331, 273, 394, 5589, 5621, 1160, 63, 6362, 65, 3193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 1927, 21836, 1435, 1216, 6483, 225, 288, 377, 2286, 284, 8526, 273, 394, 2286, 63, 21, 15533, 5589, 331, 273, 394, 5589, 5621, 1160, 63, 6362, 65, 3193, ...
SmilesGenerator sg = new SmilesGenerator();
public void testPartitioning() { SmilesGenerator sg = new SmilesGenerator(); String smiles = ""; Molecule molecule = new Molecule(); Atom sodium = new Atom("Na"); sodium.setFormalCharge(+1); Atom hydroxyl = new Atom("O"); hydroxyl.setHydrogenCount(1); hydroxyl.setFormalCharge(-1); molecule.addAtom(sodium); molecule.addAtom(hydroxyl); try { smiles = sg.createSMILES(molecule); } catch (Exception exc) { System.out.println(exc); if (!standAlone) { fail(); } } if (standAlone) { System.err.println("SMILES: " + smiles); } assertTrue(smiles.indexOf(".") != -1); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/99fe3519d35ad1fd276844ab16fa237c545a01fc/SmilesGeneratorTest.java/buggy/src/org/openscience/cdk/test/smiles/SmilesGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 7003, 310, 1435, 202, 95, 202, 202, 9552, 1449, 3908, 11150, 273, 394, 9425, 1449, 3908, 5621, 202, 202, 780, 3029, 1449, 273, 1408, 31, 202, 202, 29669, 13661, 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, 225, 202, 482, 918, 1842, 7003, 310, 1435, 202, 95, 202, 202, 9552, 1449, 3908, 11150, 273, 394, 9425, 1449, 3908, 5621, 202, 202, 780, 3029, 1449, 273, 1408, 31, 202, 202, 29669, 13661, 273, ...
{ synchronized(m_mapsUnitDrawer.getLock())
public void paint(Graphics g) { synchronized(m_mapsUnitDrawer.getLock()) { super.paint(g); MapRouteDrawer.drawRoute( (Graphics2D) g, m_route, this); } }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/21537a51289d82e87987677ccf782cf87e717121/MapPanel.java/clean/src/games/strategy/triplea/ui/MapPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 12, 17558, 314, 13, 225, 288, 565, 3852, 12, 81, 67, 10711, 2802, 21631, 18, 588, 2531, 10756, 565, 288, 1377, 2240, 18, 84, 1598, 12, 75, 1769, 1377, 1635, 3255, 2163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 12, 17558, 314, 13, 225, 288, 565, 3852, 12, 81, 67, 10711, 2802, 21631, 18, 588, 2531, 10756, 565, 288, 1377, 2240, 18, 84, 1598, 12, 75, 1769, 1377, 1635, 3255, 2163...
loadSVGDocument(uri);
if (uri != null) { loadSVGDocument(uri); } else { DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); SVGDocument doc = (SVGDocument)impl.createDocument(SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_SVG_TAG, null); setSVGDocument(doc); }
public void setURI(String newURI) { String oldValue = uri; this.uri = newURI; loadSVGDocument(uri); pcs.firePropertyChange("URI", oldValue, uri); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/f5b1f1aced344897051ad61a00174208e64594b8/JSVGCanvas.java/clean/sources/org/apache/batik/swing/JSVGCanvas.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3098, 12, 780, 394, 3098, 13, 288, 3639, 514, 11144, 273, 2003, 31, 3639, 333, 18, 1650, 273, 394, 3098, 31, 3639, 309, 261, 1650, 480, 446, 13, 288, 1262, 26531, 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, 377, 1071, 918, 444, 3098, 12, 780, 394, 3098, 13, 288, 3639, 514, 11144, 273, 2003, 31, 3639, 333, 18, 1650, 273, 394, 3098, 31, 3639, 309, 261, 1650, 480, 446, 13, 288, 1262, 26531, 2519, ...
if (jj_3R_273()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_274()) jj_scanpos = xsp;
if (jj_3R_67()) return true;
final private boolean jj_3R_260() { if (jj_3R_273()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_274()) jj_scanpos = xsp; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/30dbed0065b5a20aa4e60ae16f7a8e47197c4cee/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 22, 4848, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5324, 23, 10756, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 22, 4848, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5324, 23, 10756, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 106...
Main.info("Loaded " + fixerClass);
Main.debug("Loaded " + fixerClass);
private synchronized void init() { if (initialized) { return; } try { URL [] urls = { new URL( "file", "", 0, System.getProperty("java.home") + System.getProperty("file.separator") + "lib" + System.getProperty("file.separator") + "javaplugin.jar") }; URLClassLoader loader = new URLClassLoader(urls); fixerClass = Class.forName(fixerClassName, true, loader); Main.info("Loaded " + fixerClass); final Class [] parameterTypes = { (new byte[1]).getClass(), Integer.TYPE, Integer.TYPE }; final Class [] noParameter = new Class[0]; _process = fixerClass.getMethod("process", parameterTypes); _getProcessedData = fixerClass.getMethod("getProcessedData", noParameter); _getProcessedDataOffset = fixerClass.getMethod("getProcessedDataOffset", noParameter); _getProcessedDataLength = fixerClass.getMethod("getProcessedDataLength", noParameter); } catch (Throwable e) { e.printStackTrace(); } finally { initialized = true; } }
1818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1818/a137409e3317d53c487b0d554e9c19bf1bc3b5e0/KJASBrokenClassFixer.java/clean/khtml/java/org/kde/kjas/server/KJASBrokenClassFixer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 1208, 1435, 288, 3639, 309, 261, 13227, 13, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 1976, 5378, 6903, 273, 288, 394, 1976, 12, 7734, 315, 768, 3113, 23453, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 1208, 1435, 288, 3639, 309, 261, 13227, 13, 288, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 1976, 5378, 6903, 273, 288, 394, 1976, 12, 7734, 315, 768, 3113, 23453, ...
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { // the template to be displayed String template = null; CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); String oldpwd = (String)parameters.get(C_PARA_OLDPWD); String newpwd = (String)parameters.get(C_PARA_NEWPWD); String newpwdrepeat = (String)parameters.get(C_PARA_NEWPWDREPEAT); // a password was given in the request so try to change it if((oldpwd != null) && (newpwd != null) && (newpwdrepeat != null)) { // check if the new password and its repetition are identical if(newpwd.equals(newpwdrepeat)) { // change the password try { cms.setPassword(cms.getRequestContext().currentUser().getName(), oldpwd, newpwd); // return to the parameter dialog try { cms.getRequestContext().getResponse().sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + C_WP_EXPLORER_PREFERENCES); } catch(Exception e) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + C_WP_EXPLORER_PREFERENCES, CmsException.C_UNKNOWN_EXCEPTION, e); } // an error was thrown while setting the new password } catch(CmsException exp) { // check if the old password was not correct if(exp.getType() == 1) { xmlTemplateDocument.setData("details", Utils.getStackTrace(exp)); template = "error2"; } else { throw exp; } } return null; } else { // the new passwords do not match xmlTemplateDocument.setData("details", "The new passwords do not match."); template = "error"; } } // process the selected template return startProcessing(cms, xmlTemplateDocument, "", parameters, template); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/395903180698348932124ca49632cf1802d88491/CmsChpwd.java/clean/src/com/opencms/workplace/CmsChpwd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 7734, 368, 326, 1542, 358, 506, 10453, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 2398, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 7734, 368, 326, 1542, 358, 506, 10453, 3639,...
if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if (startIdx < 1) startIdx = 1;
public TA_RetCode TRANGE(int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int today, outIdx; double val2, val3, greatest; double tempCY, tempLT, tempHT; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if (startIdx < 1) startIdx = 1; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outIdx = 0; today = startIdx; while (today <= endIdx) { tempLT = inLow[today]; tempHT = inHigh[today]; tempCY = inClose[today - 1]; greatest = tempHT - tempLT; val2 = Math.abs(tempCY - tempHT); if (val2 > greatest) greatest = val2; val3 = Math.abs(tempCY - tempLT); if (val3 > greatest) greatest = val3; outReal[outIdx++] = greatest; today++; } outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 4235, 8357, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1082, 202, 9056, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 490, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 4235, 8357, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1082, 202, 9056, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 490, ...
replace(0, getViewCount(), newChildren);
replace(0, 0, newChildren);
protected void loadChildren(ViewFactory f) { Element el = getElement(); int count = el.getElementCount(); View[] newChildren = new View[count]; for (int i = 0; i < count; ++i) { Element child = el.getElement(i); View view = f.create(child); newChildren[i] = view; } replace(0, getViewCount(), newChildren); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/60332c05f79d8dac7c76a9d74bef8a638df1ad62/CompositeView.java/buggy/javax/swing/text/CompositeView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1262, 4212, 12, 1767, 1733, 284, 13, 225, 288, 565, 3010, 415, 273, 7426, 5621, 565, 509, 1056, 273, 415, 18, 21336, 1380, 5621, 565, 4441, 8526, 394, 4212, 273, 394, 4441, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1262, 4212, 12, 1767, 1733, 284, 13, 225, 288, 565, 3010, 415, 273, 7426, 5621, 565, 509, 1056, 273, 415, 18, 21336, 1380, 5621, 565, 4441, 8526, 394, 4212, 273, 394, 4441, 6...
ary.append(name);
ary.append(name);
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = getRuntime().newArray(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { for (Iterator iter = p.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); if (method.getVisibility().is(visibility) && !method.isUndefined()) { RubyString name = getRuntime().newString( (String) entry.getKey()); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/abfe85d15f992ecf4447b155d177050fe2239c3b/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 1076, 791, 67, 5163, 12, 7937, 10340, 921, 8526, 833, 16, 727, 27791, 9478, 13, 288, 3639, 1250, 2341, 8051, 273, 833, 18, 2469, 405, 374, 692, 833, 63, 20, 8009, 291, 5510...
IResource resultingResource = root.getFile(path); if( resultingResource != null && resultingResource.exists() ) return resultingResource; return null;
try { IFile resultingResource = root.getFile(path); if( resultingResource != null && resultingResource.exists() ) return resultingResource; return null; } catch( IllegalArgumentException iae ) { return null; }
public static IResource getResourceForFilename(String finalPath) { IWorkspace workspace = ResourcesPlugin.getWorkspace(); if( workspace == null ) return null; IPath path = new Path( finalPath ); IWorkspaceRoot root = workspace.getRoot(); if( root.getLocation().isPrefixOf( path ) ) path = path.removeFirstSegments(root.getLocation().segmentCount() ); IResource resultingResource = root.getFile(path); if( resultingResource != null && resultingResource.exists() ) return resultingResource; return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8858cc1fd3a2f84ddf74bb8e0fea7f0ad75008ba/ParserUtil.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/parser/ParserUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 1420, 5070, 1290, 5359, 12, 780, 727, 743, 13, 288, 202, 202, 45, 8241, 6003, 273, 8128, 3773, 18, 588, 8241, 5621, 202, 202, 430, 12, 6003, 422, 446, 262, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 1420, 5070, 1290, 5359, 12, 780, 727, 743, 13, 288, 202, 202, 45, 8241, 6003, 273, 8128, 3773, 18, 588, 8241, 5621, 202, 202, 430, 12, 6003, 422, 446, 262, 1082, 2...
if (dest != null && dest.isSeparator() && src.isSeparator()) { mi[srcIx].setData(src); srcIx++; destIx++; continue; }
if (dest != null && dest.isSeparator() && src.isSeparator()) { mi[srcIx].setData(src); srcIx++; destIx++; continue; }
public void update(boolean force) { // long startTime= 0; // if (DEBUG) { // dumpStatistics(); // startTime= (new Date()).getTime(); // } if (isDirty() || force) { if (toolBarExist()) { int oldCount = toolBar.getItemCount(); // clean contains all active items without double separators IContributionItem[] items = getItems(); ArrayList clean = new ArrayList(items.length); IContributionItem separator = null; // long cleanStartTime= 0; // if (DEBUG) { // cleanStartTime= (new Date()).getTime(); // } for (int i = 0; i < items.length; ++i) { IContributionItem ci = items[i]; if (!ci.isVisible()) continue; if (ci.isSeparator()) { // delay creation until necessary // (handles both adjacent separators, and separator at end) separator = ci; } else { if (separator != null) { if (clean.size() > 0) // no separator if first item clean.add(separator); separator = null; } clean.add(ci); } } // if (DEBUG) { // System.out.println(" Time needed to build clean vector: " + ((new Date()).getTime() - cleanStartTime)); // } // determine obsolete items (removed or non active) ToolItem[] mi = toolBar.getItems(); ArrayList toRemove = new ArrayList(mi.length); for (int i = 0; i < mi.length; i++) { Object data = mi[i].getData(); if (data == null || !clean.contains(data) || (data instanceof IContributionItem && ((IContributionItem) data) .isDynamic())) { toRemove.add(mi[i]); } } // Turn redraw off if the number of items to be added // is above a certain threshold, to minimize flicker, // otherwise the toolbar can be seen to redraw after each item. // Do this before any modifications are made. // We assume each contribution item will contribute at least one toolbar item. boolean useRedraw = (clean.size() - (mi.length - toRemove .size())) >= 3; if (useRedraw) { toolBar.setRedraw(false); } // remove obsolete items for (int i = toRemove.size(); --i >= 0;) { ToolItem item = (ToolItem) toRemove.get(i); if (!item.isDisposed()) { Control ctrl = item.getControl(); if (ctrl != null) { item.setControl(null); ctrl.dispose(); } item.dispose(); } } // add new items IContributionItem src, dest; mi = toolBar.getItems(); int srcIx = 0; int destIx = 0; for (Iterator e = clean.iterator(); e.hasNext();) { src = (IContributionItem) e.next(); // get corresponding item in SWT widget if (srcIx < mi.length) dest = (IContributionItem) mi[srcIx].getData(); else dest = null; if (dest != null && src.equals(dest)) { srcIx++; destIx++; continue; } if (dest != null && dest.isSeparator() && src.isSeparator()) { mi[srcIx].setData(src); srcIx++; destIx++; continue; } int start = toolBar.getItemCount(); src.fill(toolBar, destIx); int newItems = toolBar.getItemCount() - start; for (int i = 0; i < newItems; i++) { ToolItem item = toolBar.getItem(destIx++); item.setData(src); } } // remove any old tool items not accounted for for (int i = mi.length; --i >= srcIx;) { ToolItem item = mi[i]; if (!item.isDisposed()) { Control ctrl = item.getControl(); if (ctrl != null) { item.setControl(null); ctrl.dispose(); } item.dispose(); } } setDirty(false); // turn redraw back on if we turned it off above if (useRedraw) { toolBar.setRedraw(true); } int newCount = toolBar.getItemCount(); relayout(toolBar, oldCount, newCount); } } // if (DEBUG) { // System.out.println(" Time needed for update: " + ((new Date()).getTime() - startTime)); // System.out.println(); // } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/95cd7fe82387f3f7959231b5ddc4a9efad83986a/ToolBarManager.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ToolBarManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 6494, 2944, 13, 288, 3639, 368, 202, 5748, 8657, 33, 374, 31, 3639, 368, 202, 430, 261, 9394, 13, 288, 3639, 368, 202, 202, 8481, 8569, 5621, 3639, 368, 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, 377, 1071, 918, 1089, 12, 6494, 2944, 13, 288, 3639, 368, 202, 5748, 8657, 33, 374, 31, 3639, 368, 202, 430, 261, 9394, 13, 288, 3639, 368, 202, 202, 8481, 8569, 5621, 3639, 368, 202, 202, ...
{ java.sql.DriverManager.registerDriver(this); }
{ }
public Driver() throws SQLException { java.sql.DriverManager.registerDriver(this); }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/6a061da272f04e1463864065f87f1f3fd61d6162/Driver.java/clean/src/interfaces/jdbc/postgresql/Driver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9396, 1435, 1216, 6483, 202, 95, 202, 202, 6290, 18, 4669, 18, 4668, 1318, 18, 4861, 4668, 12, 2211, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9396, 1435, 1216, 6483, 202, 95, 202, 202, 6290, 18, 4669, 18, 4668, 1318, 18, 4861, 4668, 12, 2211, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
String sReturn = "Msg: name=" + name + " key=" + key + "\n"; return sReturn;
StringBuffer results = new StringBuffer(); results.append("Msg: name="); results.append(name); results.append(" key="); results.append(key); results.append("\n"); return results.toString();
public String toString() { String sReturn = "Msg: name=" + name + " key=" + key + "\n"; return sReturn; }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/3e64dff60f86a68c7cae45941615af6ffe8dfb49/Msg.java/clean/contrib/validator/src/share/com/wintecinc/struts/validation/Msg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 377, 202, 780, 272, 990, 273, 315, 3332, 30, 508, 1546, 397, 508, 397, 1377, 202, 1171, 315, 225, 498, 1546, 397, 498, 397, 1548, 82, 14432, 377, 202, 2463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 377, 202, 780, 272, 990, 273, 315, 3332, 30, 508, 1546, 397, 508, 397, 1377, 202, 1171, 315, 225, 498, 1546, 397, 498, 397, 1548, 82, 14432, 377, 202, 2463, ...
return getChild(getChildCount()-1);
return getChild(getChildCount() - 1);
public Node getLastChild() { try { return getChild(getChildCount()-1); } catch(Exception e) { throw new org.apache.xalan.utils.WrappedRuntimeException(e); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/0e2298c0c460e281c6e54e92ac95421ec5eca2e4/Parent.java/buggy/src/org/apache/xalan/stree/Parent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 540, 7595, 1763, 1435, 225, 288, 565, 775, 565, 288, 1377, 327, 8154, 12, 588, 1763, 1380, 1435, 300, 404, 1769, 565, 289, 565, 1044, 12, 503, 425, 13, 565, 288, 1377, 604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2029, 540, 7595, 1763, 1435, 225, 288, 565, 775, 565, 288, 1377, 327, 8154, 12, 588, 1763, 1380, 1435, 300, 404, 1769, 565, 289, 565, 1044, 12, 503, 425, 13, 565, 288, 1377, 604, ...
defaultPerspID = Platform.getPreferencesService().getString( PlatformUI.PLUGIN_ID, IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID, "", null);
defaultPerspID = PrefUtil.getAPIPreferenceStore().getString( IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID);
private void verifyDefaultPerspective() { // Step 1: Try current defPerspId value. IPerspectiveDescriptor desc = null; if (defaultPerspID != null) desc = findPerspectiveWithId(defaultPerspID); if (desc != null) return; // Step 2. Read default value. defaultPerspID = Platform.getPreferencesService().getString( PlatformUI.PLUGIN_ID, IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID, "", //$NON-NLS-1$ null); if (defaultPerspID != null) desc = findPerspectiveWithId(defaultPerspID); if (desc != null) return; // Step 3. Use application-specific default defaultPerspID = Workbench.getInstance().getDefaultPerspectiveId(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/b7361699ae1f314b870e5e3310e450a40e7a0ece/PerspectiveRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3929, 1868, 14781, 16772, 1435, 288, 202, 202, 759, 8693, 404, 30, 6161, 783, 1652, 14781, 84, 548, 460, 18, 202, 202, 2579, 414, 16772, 3187, 3044, 273, 446, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3929, 1868, 14781, 16772, 1435, 288, 202, 202, 759, 8693, 404, 30, 6161, 783, 1652, 14781, 84, 548, 460, 18, 202, 202, 2579, 414, 16772, 3187, 3044, 273, 446, 31, 202, 2...
res.name = LDMLUtilities.getAttributeValue(root, LDMLConstants.TYPE);
String type = LDMLUtilities.getAttributeValue(root, LDMLConstants.TYPE); if(type !=null){ res.name = type; }else{ res.name = name; }
private ICUResourceWriter.Resource parseEra( Node root, StringBuffer xpath, String name){ ICUResourceWriter.ResourceArray array = new ICUResourceWriter.ResourceArray(); ICUResourceWriter.Resource current = null; array.name = name; int savedLength = xpath.length(); getXPath(root, xpath); //int oldLength = xpath.length(); //if the whole node is marked draft then //dont write anything if(isNodeNotConvertible(root, xpath)){ xpath.setLength(savedLength); return null; } Node alias = LDMLUtilities.getNode(root,"alias", null, null); if(alias!=null){ ICUResourceWriter.Resource res = parseAliasResource(alias,xpath); if(res!=null){ res.name = LDMLUtilities.getAttributeValue(root, LDMLConstants.TYPE); } res.name = name; return res; } TreeMap map = getElementsMap(root, xpath); if(map.size()>0){ for(int i=0; i<map.size(); i++){ String key = Integer.toString(i); ICUResourceWriter.ResourceString res = new ICUResourceWriter.ResourceString(); res.val = (String)map.get(key); //TODO: fix this!! if(res.val==null){ continue; } // array of unnamed strings if(current == null){ current = array.first = res; }else{ current.next = res; current = current.next; } } } xpath.delete(savedLength,xpath.length()); if(array.first!=null){ return array; } return null; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/c4836c0b00d2397e8c72a793d44bcdd6891072f1/LDML2ICUConverter.java/clean/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 28009, 1420, 2289, 18, 1420, 1109, 30200, 12, 2029, 1365, 16, 6674, 6748, 16, 514, 508, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1076, 526, 273, 394, 28009, 1420, 2289, 18, 1420, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 28009, 1420, 2289, 18, 1420, 1109, 30200, 12, 2029, 1365, 16, 6674, 6748, 16, 514, 508, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1076, 526, 273, 394, 28009, 1420, 2289, 18, 1420, 1...
try { executionCourse = (InfoExecutionCourse) Cloner.get(site.getExecutionCourse()); } catch (ExcepcaoPersistencia e) { throw new FenixServiceException(e); }
executionCourse = (InfoExecutionCourse) Cloner.get(site.getExecutionCourse());
private InfoSiteCurricularCoursesAndAssociatedShiftsAndClasses getInfoSiteCurricularCoursesAndAssociatedShiftsAndClasses( InfoSiteCurricularCoursesAndAssociatedShiftsAndClasses component, ISite site) throws FenixServiceException { ISuportePersistente sp; List infoShiftsWithAssociatedClassesList = new ArrayList(); List infoCurricularCourseList = new ArrayList(); List shifts = new ArrayList(); InfoShiftWithAssociatedInfoClassesAndInfoLessons shiftWithAssociatedClassesAndLessons = null; try { sp = SuportePersistenteOJB.getInstance(); // read degrees IExecutionCourse executionCourse = site.getExecutionCourse(); infoCurricularCourseList = readCurricularCourses(executionCourse); // read shifts and classes shifts = sp.getITurnoPersistente().readByExecutionCourse(executionCourse); if (shifts == null || shifts.isEmpty()) { } else { for (int i = 0; i < shifts.size(); i++) { ITurno shift = (ITurno) shifts.get(i); shiftWithAssociatedClassesAndLessons = new InfoShiftWithAssociatedInfoClassesAndInfoLessons( Cloner.copyShift2InfoShift(shift), null, null); List classesShifts = sp.getITurmaTurnoPersistente().readClassesWithShift(shift); List infoClasses = new ArrayList(); for (int j = 0; j < classesShifts.size(); j++) infoClasses.add( Cloner.copyClass2InfoClass(((ITurmaTurno) classesShifts.get(j)).getTurma())); shiftWithAssociatedClassesAndLessons.setInfoClasses(infoClasses); infoShiftsWithAssociatedClassesList.add(shiftWithAssociatedClassesAndLessons); } } } catch (ExcepcaoPersistencia excepcaoPersistencia) { throw new FenixServiceException(excepcaoPersistencia); } component.setAssociatedCurricularCourses(infoCurricularCourseList); InfoExecutionCourse executionCourse; try { executionCourse = (InfoExecutionCourse) Cloner.get(site.getExecutionCourse()); } catch (ExcepcaoPersistencia e) { throw new FenixServiceException(e); } component.setInfoExecutionCourse(executionCourse); component.setInfoShiftsWithAssociatedClassesList(infoShiftsWithAssociatedClassesList); return component; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/21e46a369f8173b0d7459a1efb9e11cce170cf5d/ExecutionCourseSiteComponentBuilder.java/clean/src/ServidorAplicacao/Factory/ExecutionCourseSiteComponentBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3807, 4956, 2408, 1512, 2490, 39, 10692, 1876, 19233, 10544, 87, 1876, 4818, 17142, 4956, 2408, 1512, 2490, 39, 10692, 1876, 19233, 10544, 87, 1876, 4818, 12, 3639, 3807, 4956, 2408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3807, 4956, 2408, 1512, 2490, 39, 10692, 1876, 19233, 10544, 87, 1876, 4818, 17142, 4956, 2408, 1512, 2490, 39, 10692, 1876, 19233, 10544, 87, 1876, 4818, 12, 3639, 3807, 4956, 2408, ...
public void unregisterEditPartForElement( String elementIdStr, EditPart ep) {
public void unregisterEditPartForElement(String elementIdStr, EditPart ep) {
public void unregisterEditPartForElement( String elementIdStr, EditPart ep) { elementToEditPartsMap.unregisterEditPartForElement(elementIdStr, ep); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/872daba35dd7e5d0f0dd330af49eaef2192f56c1/DiagramGraphicalViewer.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/parts/DiagramGraphicalViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10232, 4666, 1988, 1290, 1046, 12, 3639, 514, 930, 548, 1585, 16, 3639, 15328, 1988, 5529, 13, 288, 3639, 930, 774, 4666, 4305, 863, 18, 318, 4861, 4666, 1988, 1290, 1046, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10232, 4666, 1988, 1290, 1046, 12, 3639, 514, 930, 548, 1585, 16, 3639, 15328, 1988, 5529, 13, 288, 3639, 930, 774, 4666, 4305, 863, 18, 318, 4861, 4666, 1988, 1290, 1046, 12, ...
layout(width, true);
layout (width);
public void setBounds (int x, int y, int width, int height) { super.setBounds (x, y, width, height); layout(width, true);}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/9fedd0db5879e16f4217a567123278513c1d3514/CoolBar.java/clean/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/CoolBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 5694, 261, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 13, 288, 202, 9565, 18, 542, 5694, 261, 92, 16, 677, 16, 1835, 16, 2072, 1769, 202, 6741, 12, 2819, 16, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 5694, 261, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 13, 288, 202, 9565, 18, 542, 5694, 261, 92, 16, 677, 16, 1835, 16, 2072, 1769, 202, 6741, 12, 2819, 16, 6...