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 |
|---|---|---|---|---|---|---|
protected final List getPreviewRowData( String[] columnExpression, int rowCount, boolean isStringType ) throws ChartException { ArrayList dataList = new ArrayList( ); // Set thread context class loader so Rhino can find POJOs in workspace // projects ClassLoader oldContextLoader = Thread.currentThread( ) .getContextClassLoader( ); ClassLoader parentLoader = oldContextLoader; if ( parentLoader == null ) parentLoader = this.getClass( ).getClassLoader( ); ClassLoader newContextLoader = DataSetManager.getCustomScriptClassLoader( parentLoader ); Thread.currentThread( ).setContextClassLoader( newContextLoader ); try { DataSetHandle datasetHandle = getDataSetFromHandle( ); IQueryResults actualResultSet = DataSetManager.getCurrentInstance( ) .getCacheResult( datasetHandle, itemHandle.getPropertyHandle( ReportItemHandle.PARAM_BINDINGS_PROP ) .iterator( ), itemHandle.getPropertyHandle( ExtendedItemHandle.FILTER_PROP ) .iterator( ), columnExpression, rowCount <= 0 ? getMaxRow( ) : rowCount ); if ( actualResultSet != null ) { IBaseExpression[] expressions = extractExpressions( actualResultSet ); int columnCount = expressions.length; IResultIterator iter = actualResultSet.getResultIterator( ); while ( iter.next( ) ) { if ( isStringType ) { String[] record = new String[columnCount]; for ( int n = 0; n < columnCount; n++ ) { record[n] = iter.getString( expressions[n] ); } dataList.add( record ); } else { Object[] record = new Object[columnCount]; for ( int n = 0; n < columnCount; n++ ) { record[n] = iter.getValue( expressions[n] ); } dataList.add( record ); } } actualResultSet.close( ); } } catch ( BirtException e ) { throw new ChartException( ChartReportItemPlugin.ID, ChartException.DATA_BINDING, e ); } finally { // Restore old thread context class loader Thread.currentThread( ).setContextClassLoader( oldContextLoader ); } return dataList; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/02ca210ca6fe38f1a3c6759e50c786f556d5bec9/ReportDataServiceProvider.java/clean/chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/ReportDataServiceProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
987,
336,
11124,
1999,
751,
12,
514,
8526,
1057,
2300,
16,
1082,
202,
474,
14888,
16,
1250,
9962,
559,
262,
1216,
14804,
503,
202,
95,
202,
202,
19558,
501,
682,
273,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
987,
336,
11124,
1999,
751,
12,
514,
8526,
1057,
2300,
16,
1082,
202,
474,
14888,
16,
1250,
9962,
559,
262,
1216,
14804,
503,
202,
95,
202,
202,
19558,
501,
682,
273,
39... | ||
context = new ContextFactory(config.getConfiguration("Context")) .newInstance(null); setContext(context); context.setInteraction(Interaction.ERRORSTOPMODE, true); | context = new ContextFactory(config.getConfiguration("Context")) .newInstance(null); setContext(context); context.setInteraction(Interaction.ERRORSTOPMODE, true); | private void configure(final Configuration config) throws ConfigurationException, GeneralException { if (config == null) { throw new ConfigurationMissingException("Interpreter"); } context = new ContextFactory(config.getConfiguration("Context")) .newInstance(null); setContext(context); context.setInteraction(Interaction.ERRORSTOPMODE, true); maxErrors = config.getValueAsInteger("maxErrors", maxErrors); TokenFactory tokenFactory = context.getTokenFactory(); Iterator iterator = config.iterator("define"); while (iterator.hasNext()) { Configuration cfg = (Configuration) iterator.next(); String name = cfg.getAttribute("name"); if (name == null || name.equals("")) { throw new ConfigurationMissingAttributeException("name", cfg); } String classname = cfg.getAttribute(CLASS_ATTRIBUTE); if (classname == null || classname.equals("")) { throw new ConfigurationMissingAttributeException( CLASS_ATTRIBUTE, cfg); } try { Code code = (Code) (Class.forName(classname) .getConstructor(new Class[]{String.class}) .newInstance(new Object[]{name}));// code.set(context, new StringSource(,cfg.getValue())); context.setCode(tokenFactory.newInstance(Catcode.ESCAPE, name, NAMESPACE), code, true); } catch (IllegalArgumentException e) { throw new ConfigurationInstantiationException(e); } catch (SecurityException e) { throw new ConfigurationInstantiationException(e); } catch (InstantiationException e) { throw new ConfigurationInstantiationException(e); } catch (IllegalAccessException e) { throw new ConfigurationInstantiationException(e); } catch (InvocationTargetException e) { Throwable c = e.getCause(); if (c != null && c instanceof ConfigurationException) { throw (ConfigurationException) c; } throw new ConfigurationInstantiationException(e); } catch (NoSuchMethodException e) { throw new ConfigurationInstantiationException(e); } catch (ClassNotFoundException e) { throw new ConfigurationClassNotFoundException(classname, config); } } context.setCount("day", calendar.get(Calendar.DAY_OF_MONTH), true); context.setCount("month", calendar.get(Calendar.MONTH), true); context.setCount("year", calendar.get(Calendar.YEAR), true); context.setCount("time", calendar.get(Calendar.HOUR_OF_DAY) * 60 + calendar.get(Calendar.MINUTE), true); everyRun = config.findConfiguration("everyjob"); } | 9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/cd4ac13f5edb5c26f1268369583e74137315d1bd/Max.java/clean/ExTeX/src/java/de/dante/extex/interpreter/max/Max.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5068,
12,
6385,
4659,
642,
13,
5411,
1216,
22196,
16,
7734,
9544,
503,
288,
3639,
309,
261,
1425,
422,
446,
13,
288,
5411,
604,
394,
4659,
4841,
503,
2932,
30010,
8863,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5068,
12,
6385,
4659,
642,
13,
5411,
1216,
22196,
16,
7734,
9544,
503,
288,
3639,
309,
261,
1425,
422,
446,
13,
288,
5411,
604,
394,
4659,
4841,
503,
2932,
30010,
8863,
3639,
... |
public void registerVirtualNode(String virtualNodeName,boolean replacePreviousBinding)throws java.rmi.RemoteException ; | public void registerVirtualNode(String virtualNodeName, boolean replacePreviousBinding) throws java.rmi.RemoteException; | public void registerVirtualNode(String virtualNodeName,boolean replacePreviousBinding)throws java.rmi.RemoteException ; | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/c171c3550f70b496c1228bbed45f5f8feea45a9c/RemoteProActiveRuntime.java/buggy/src/org/objectweb/proactive/core/runtime/rmi/RemoteProActiveRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1744,
6466,
907,
12,
780,
5024,
18948,
16,
6494,
1453,
8351,
5250,
13,
15069,
2252,
18,
8864,
77,
18,
5169,
503,
274,
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,
282,
1071,
918,
1744,
6466,
907,
12,
780,
5024,
18948,
16,
6494,
1453,
8351,
5250,
13,
15069,
2252,
18,
8864,
77,
18,
5169,
503,
274,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
err = error.readLine(); | if (StickLoader.DEBUG) err = error.readLine(); System.out.println(err); | public void run() { String in = "", err = ""; while (!isInterrupted()) { try { /*if (input.ready()) { in = input.readLine(); System.out.println(in); }*/ if (error.ready()) { if (cancelNow) { error.close(); ps.destroy(); targetFile.delete(); return; } err = error.readLine(); //System.out.println(err); for (String s : err.split("[()]")) { if (s.endsWith("%")) { try { progress = Integer.parseInt(s.trim().replace("%", "")); } catch (Exception e) { //... } } } //System.err.println(err); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } | 13958 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13958/16be72652294c895ea0e9335092a1aa70305407c/Mp3Encoder.java/clean/StickLoader/src/de/berlios/stickloader/Mp3Encoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
780,
316,
273,
23453,
393,
273,
1408,
31,
6862,
202,
17523,
16051,
291,
24485,
10756,
288,
25083,
202,
698,
288,
6862,
1082,
202,
20308,
430,
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,
4697,
202,
482,
918,
1086,
1435,
288,
6862,
202,
780,
316,
273,
23453,
393,
273,
1408,
31,
6862,
202,
17523,
16051,
291,
24485,
10756,
288,
25083,
202,
698,
288,
6862,
1082,
202,
20308,
430,
2... |
IMarker element = (IMarker) markerIterator.next(); | ConcreteMarker element = (ConcreteMarker) markerIterator.next(); | public Object getAdapter(Class adaptable) { if (adaptable.equals(IContextProvider.class)) return contextProvider; if (adaptable.equals(IShowInSource.class)) { return new IShowInSource() { public ShowInContext getShowInContext() { ISelection selection = getSelectionProvider() .getSelection(); if (!(selection instanceof IStructuredSelection)) return null; IStructuredSelection structured = (IStructuredSelection) selection; Iterator markerIterator = structured.iterator(); List newSelection = new ArrayList(); while (markerIterator.hasNext()) { IMarker element = (IMarker) markerIterator.next(); newSelection.add(element.getResource()); } return new ShowInContext(getViewer().getInput(), new StructuredSelection(newSelection)); } }; } return super.getAdapter(adaptable); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cd30df30dfb88f9bda2fa203f31e3dd26ff697b7/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
16679,
12,
797,
5855,
429,
13,
288,
202,
202,
430,
261,
19195,
429,
18,
14963,
12,
45,
1042,
2249,
18,
1106,
3719,
1082,
202,
2463,
819,
2249,
31,
202,
202,
430,
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,
225,
202,
482,
1033,
16679,
12,
797,
5855,
429,
13,
288,
202,
202,
430,
261,
19195,
429,
18,
14963,
12,
45,
1042,
2249,
18,
1106,
3719,
1082,
202,
2463,
819,
2249,
31,
202,
202,
430,
261,
... |
if ( ks.isKeyEntry(alias) ) { | if ( keyStore.isKeyEntry(alias) ) { | private static Test[] getTests(final String providerName, final String keyStoreType, final String storeID) throws Exception { final KeyStore ks; { KeyStore tmp = null; while( tmp==null ) { final InputStream is = new ByteArrayInputStream(storeID.getBytes()); tmp = KeyStore.getInstance(keyStoreType, providerName); try { tmp.load(is, null); } catch( Throwable t ) { tmp = null; t.printStackTrace(System.err); System.err.println("Card set not preloaded. Hit return when error fixed"); new BufferedReader(new InputStreamReader(System.in)).readLine(); } } ks = tmp; } Enumeration e = ks.aliases(); Set testSet = new HashSet(); while( e.hasMoreElements() ) { String alias = (String)e.nextElement(); if ( ks.isKeyEntry(alias) ) { PrivateKey privateKey; try { privateKey = (PrivateKey)ks.getKey(alias, null); } catch (UnrecoverableKeyException e1) { System.err.println("Give password for key "+alias+':'); privateKey = (PrivateKey)ks.getKey(alias, new BufferedReader(new InputStreamReader(System.in)).readLine().toCharArray() ); } testSet.add(new Test(alias, new KeyPair(ks.getCertificate(alias).getPublicKey(), privateKey), providerName)); } } return (Test[])testSet.toArray(new Test[0]); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/022163bfbec81bbff4ca69cb28b0fde44680939c/HSMKeyTool.java/clean/src/java/org/ejbca/ui/cli/HSMKeyTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
7766,
8526,
3181,
25563,
12,
6385,
514,
26036,
16,
4766,
282,
727,
514,
17901,
559,
16,
4766,
282,
727,
514,
1707,
734,
13,
1216,
1185,
288,
3639,
727,
17017,
11654,
31,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
7766,
8526,
3181,
25563,
12,
6385,
514,
26036,
16,
4766,
282,
727,
514,
17901,
559,
16,
4766,
282,
727,
514,
1707,
734,
13,
1216,
1185,
288,
3639,
727,
17017,
11654,
31,
288,
... |
this.list = new ArrayList(); | this.list = list; | ChildrenList(SmartMemberReader reader, RolapMember member) { this.reader = reader; this.member = member; this.list = new ArrayList(); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a561767e2eeef6a7bc92808ee3b0f2aa0061d8fb/SmartMemberReader.java/buggy/src/main/mondrian/rolap/SmartMemberReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
4212,
682,
12,
23824,
4419,
2514,
2949,
16,
11714,
438,
4419,
3140,
13,
202,
202,
95,
1082,
202,
2211,
18,
10530,
273,
2949,
31,
1082,
202,
2211,
18,
5990,
273,
3140,
31,
1082,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
4212,
682,
12,
23824,
4419,
2514,
2949,
16,
11714,
438,
4419,
3140,
13,
202,
202,
95,
1082,
202,
2211,
18,
10530,
273,
2949,
31,
1082,
202,
2211,
18,
5990,
273,
3140,
31,
1082,
20... |
writer.write("<img src=\"badge131x81.jpg\" alt=\"Pimped by jChav\" />"); | writer.write("<a href=\"http: | public void finish() throws IOException { writer.write("<img src=\"badge131x81.jpg\" alt=\"Pimped by jChav\" />"); writer.write("</body>\n"); writer.write("</html>\n"); } | 45245 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45245/764e9edf81d262fad7f85b38601ddcfa06d5e6a8/ReportSummaryWriter.java/clean/src/com/googlecode/jchav/report/ReportSummaryWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4076,
1435,
1216,
1860,
202,
95,
202,
202,
6299,
18,
2626,
2932,
32,
6081,
1705,
5189,
21245,
29315,
92,
11861,
18,
14362,
2412,
3770,
5189,
52,
381,
1845,
635,
525,
782,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4076,
1435,
1216,
1860,
202,
95,
202,
202,
6299,
18,
2626,
2932,
32,
6081,
1705,
5189,
21245,
29315,
92,
11861,
18,
14362,
2412,
3770,
5189,
52,
381,
1845,
635,
525,
782,
... |
return; | return; | void resize(vWindow win, int w, int h) { Dimension d = this.getSize(); // get current size if (d.width == w && d.height == h) { return; // nothing to do } this.setSize(w, h); // alter size f.pack(); // alter size of enclosing frame int iw = i.getWidth(null); int ih = i.getHeight(null); if (iw >= w && ih >= h) { return; // image is large enough } if (iw < w) { iw = w; } if (ih < h) { ih = h; } Image inew = this.createImage(iw, ih); Graphics g = inew.getGraphics(); // install new graphics context in each associated window for (int j = 0; j < wlist.size(); j++) { ((vWindow) wlist.elementAt(j)).newgcb(g); } // g has been cloned for use with each window // we can now use it without affecting anything else // clear the new image, then copy in the old portion g.setColor(win.getBg()); g.fillRect(0, 0, iw, ih); g.drawImage(i, 0, 0, null); i = inew;} | 4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/2b65dad4348487af766c7087e324e86d99c944b8/wCanvas.java/clean/jcon/wCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
7041,
12,
90,
3829,
5657,
16,
509,
341,
16,
509,
366,
13,
288,
565,
13037,
302,
273,
333,
18,
588,
1225,
5621,
202,
202,
759,
336,
783,
963,
565,
309,
261,
72,
18,
2819,
422,
341,
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,
918,
7041,
12,
90,
3829,
5657,
16,
509,
341,
16,
509,
366,
13,
288,
565,
13037,
302,
273,
333,
18,
588,
1225,
5621,
202,
202,
759,
336,
783,
963,
565,
309,
261,
72,
18,
2819,
422,
341,
5... |
public void testOASISMicrosoftConformanceSuite() throws IOException, ParsingException, XSLException { Builder builder = new Builder(); File base = new File("data/oasis-xslt-testsuite/TESTS/"); File catalog = new File(base, "catalog.xml"); // The test suite need to be installed separately. If we can't // find the catalog, we just don't run these tests. if (catalog.exists()) { Document doc = builder.build(catalog); Element testsuite = doc.getRootElement(); Elements submitters = testsuite.getChildElements("test-catalog"); Element submitter = submitters.get(1); Elements testcases = submitter.getChildElements("test-case"); for (int j = 0; j < testcases.size(); j++) { Element testcase = testcases.get(j); String id = testcase.getAttributeValue("id"); File root = new File(base, "MSFT_Conformance_Tests"); root = new File(root, testcase.getFirstChildElement("file-path").getValue()); File input = null; File style = null; File output = null; Element scenario = testcase.getFirstChildElement("scenario"); Elements inputs = scenario.getChildElements("input-file"); for (int k = 0; k < inputs.size(); k++) { Element file = inputs.get(k); String role = file.getAttributeValue("role"); if ("principal-data".equals(role)) { input = new File(root, file.getValue()); } else if ("principal-stylesheet".equals(role)) { style = new File(root, file.getValue()); } } // end for Elements outputs = scenario.getChildElements("output-file"); for (int k = 0; k < outputs.size(); k++) { Element file = outputs.get(k); String role = file.getAttributeValue("role"); if ("principal".equals(role)) { // Fix up OASIS catalog bugs File parent = new File(root.getParent()); parent = new File(parent, "REF_OUT"); parent = new File(parent, root.getName()); String outputFileName = file.getValue(); output = new File(parent, outputFileName); } } // end for try { Document styleDoc = builder.build(style); // XXX For the moment let's just skip all tests // that specify indent="yes" for the output; // we can fix this with special comparison later. if (indentYes(styleDoc)) continue; else if ("BVTs_bvt002".equals(id)) { // Xalan bug report????; continue; } else if ("BVTs_bvt041".equals(id) || "BVTs_bvt063".equals(id) || "BVTs_bvt070".equals(id)) { // Xalan does not recover from this error involving multiple // conflicting xsl:output at same import precedence continue; } Document inputDoc = builder.build(input); XSLTransform xform = new XSLTransform(styleDoc); Nodes result = xform.transform(inputDoc); if (output == null) { if ("Attributes__89463".equals(id) || "Attributes__89465".equals(id)) { // Processors are allowed to recover from // this problem. assertEquals(0, result.size()); } else if ("Attributes__89464".equals(id)) { // Processors are allowed to recover from // this problem. assertEquals(0, ((Element) result.get(0)).getAttributeCount()); } else if (id.startsWith("Errors_")) { // Processors are allowed to recover from // most of these problems. } else if (id.startsWith("FormatNumber")) { // Processors are allowed to recover from // most of these problems. } else if ("BVTs_bvt074".equals(id)) { // Processors are allowed to recover from // this problem. assertEquals(0, result.get(0).getChildCount()); } else if ("Attributes_Attribute_UseXmlnsNsAsNamespaceForAttribute".equals(id) || "Attributes_Attribute_UseXmlnsAsNamespaceForAttributeImplicitly".equals(id) || "Elements_Element_UseXslElementWithNameSpaceAttrEqualToXmlnsUri".equalsIgnoreCase(id) || "Elements_Element_UseXslElementWithNameSpaceEqualToXmlnsUri".equalsIgnoreCase(id) ) { // test follows namespace errata we don't accept } else if ("AttributeSets_RefToUndefinedAttributeSet".equals(id) || "Namespace__77665".equals(id) || "Namespace__77675".equals(id) ) { // I think the test case is wrong; I see // nothing in the spec that says this is // an error // XXX Verify and report } else if ("Variables__84633".equals(id) || "Variables__84634".equals(id) || "Variables__84697".equals(id) || "Variables__84710".equals(id) ) { // And error. See 11.4 // but are processors allowed to recover? // Hmm acording to section 17, the processor may signal these errors // and may but need not recover from them. // XXX Verify and report } else if ("Output__78176".equals(id) ) { // I think the test case is wrong; I see // nothing in the spec that says this is // an error // XXX Verify and report } else if (id.startsWith("XSLTFunctions__100")) { // I think the test case is wrong; I see // nothing in the spec that says this is // an error. These are all about the unparsed entity // function. // XXX Verify and report } else if ("Namespace__78027".equals(id)) { // XXX Possible Xalan bug; Verify and report } else if ("Output_Output_UseStandAloneAttributeWithMultipleRoots".equals(id)) { // Error only appears when document is serialized; // not before } else { // transform should have failed fail("Transformed " + style + "\n id: " + testcase.getAttributeValue("id")); } } else { try { if ("Attributes_xsl_attribute_dup_attr_with_namespace_conflict".equals(id)) { // I think this test case is wrong; // XXX document and report } else if ("BVTs_bvt041".equals(id)) { // I think this test case output is wrong; // XXX document and report } else if ("Comment_DisableOutputEscaping_XslTextInXslComment".equals(id)) { // I think this test case output is wrong; // XXX document and report } else if ("Output__77927".equals(id) || "Output__77927".equals(id) || "Output__77928".equals(id) || "Output__84304".equals(id) || "Output__84305".equals(id) || "Output__84312".equals(id) || "Output__84619".equals(id) || "Output__84620".equals(id) || "Output_EntityRefInAttribHtml".equals(id) ) { // I think this test case output is wrong; // XXX document and report } else if ("BVTs_bvt057".equals(id)) { // I think this test case requires remapping prefixes // so output isn't quite identical // XXX verify continue; } else if ("Output_DoctypePublicAndSystemAttribute".equals(id)) { // This test case uses non-URI system identifier // XXX possible Xerces bug and test suite bug; report verify continue; } else if ("Output_Modified84433".equals(id)) { // This test case uses disable output escaping // so the results don't match up continue; } else if ("Sorting_Sort_SortTextWithNonTextCharacters".equals(id)) { // Xalan and MSXML don't sort non alphabetic characters // exactly the same, but that's legal continue; } else if ("Text_DoeWithCdataInText".equals(id)) { // XXX explore further but I think this is an issue // with consecutive text nodes in result tree vs. // parsed tree continue; } else if ("Whitespaces__91434".equals(id) || "Whitespaces__91436".equals(id) || "Whitespaces__91442".equals(id) || "Whitespaces__91444".equals(id) || "Whitespaces__91446".equals(id) || "Whitespaces__91450".equals(id) ) { // XXX explore further; may be a Xalan bug continue; } else if ("AVTs__77591".equals(id) || "Copying_ResultTreeFragmentWithEscapedText".equals(id) || "Keys_MultipltKeysInclude".equals(id) || "Keys_PerfRepro3".equals(id) || "Number__84683".equals(id) || "Number__84687".equals(id) || "Number__84692".equals(id) || "Number__84694".equals(id) || "Number__84699".equals(id) || "Number__84700".equals(id) || "Number__84716".equals(id) || "Number__84717".equals(id) || "Number__84722".equals(id) || "Number__84723".equals(id) || "Number__84724".equals(id) || "Number__84725".equals(id) || "Number_NaNOrInvalidValue".equals(id) || "Number_ValueAsNodesetTest1".equals(id) || "Number_ValueAsEmptyNodeset".equals(id) ) { // XXX I don't understand what fails in these cases; figure it out // a lot of these are probably just differences in locales supported } else if (id.equals("XSLTFunctions_BooleanFunction")) { // I think the test case is wrong; or perhaps unspecified // XXX Verify and report } else if (id.equals("XSLTFunctions_TestIdFuncInComplexStruct")) { // I think the test case output white space is wrong; // XXX Verify and report } else { Document expectedResult = builder.build(output); Document actualResult = XSLTransform.toDocument(result); assertEquals("Mismatch with " + id, expectedResult, actualResult); } } // end try catch (ParsingException ex) { // a few of the test cases generate // text or HTML output rather than // well-formed XML. For the moment, I // just skip these; but could I compare // the raw text to the value of the // document object instead???? continue; } catch (IllegalAddException ex) { // A few of the test cases generate // incomplete documents so we can't // compare output. Perhaps I could // wrap in an element, then get children // to build a Node object rather than a // Document???? i.e. a fragment parser? // Could use a SequenceInputStream to hack this } } // end else } // end try catch (MalformedURIException ex) { // several stylesheets use relative namespace URIs XOM // does not support; skip the test } catch (FileNotFoundException ex) { // The catalog doesn't always match what's on disk } catch (UnknownHostException ex) { // A few tests like ProcessingInstruction__78197 // point to external DTD subsets that can't be loaded } catch (ParsingException ex) { String operation = scenario.getAttributeValue("operation"); if (!"execution-error".equals(operation)) { if ("Namespace_XPath_PredefinedPrefix_XML".equals(id)) { // XXX double check // uses relative namespace URIs } else if ("Sorting__78191".equals(id) || "Text__78245".equals(id) || "Text__78273".equals(id) || "Text__78281".equals(id) ) { // binds XML namespace to prefix other than xml } else { System.err.println(id + ": " + ex.getMessage()); throw ex; } } } catch (XSLException ex) { // If the output was null the transformation // was expected to fail if (output != null) { Throwable cause = ex.getCause(); if ("Attributes__81487".equals(id) || "Attributes__81551".equals(id)) { // spec inconsistency; see // http://lists.w3.org/Archives/Public/xsl-editors/2004JulSep/0003.html continue; } else if (cause instanceof MissingResourceException) { // XXX Number__84705 is either a Xalan bug or a problem with your Xalan jar file // fix either way } else if ("Include_Include_IncludedStylesheetShouldHaveDifferentBaseUri".equals(id) || "Include_RelUriTest1".equals(id) || "Include_RelUriTest2".equals(id) || "Include_RelUriTest3".equals(id) || "Include_RelUriTest4".equals(id) || "Include_RelUriTest5".equals(id) || "Include_RelUriTest6".equals(id) ) { // I think this test case is wrong; Uses backslash in URI // XXX verify, document and report } else if ("Elements__89070".equals(id)) { // bug fixed in later versions of Xalan } else if ("Namespace-alias_Namespace-Alias_NSAliasForDefaultWithExcludeResPref".equals(id)) { // I think this test case is wrong; // XXX verify, document and report } else if ("Variables_VariableWithinVariable".equals(id) ) { // Xalan does not recover from this one } else if ("BVTs_bvt054".equals(id) || "BVTs_bvt094".equals(id)) { // I think this test case output is wrong; // XXX document and report continue; } else if ("Output__78177".equals(id) || "Output__84009".equals(id)) { // Xalan does not recover from this error // which involves duplicate and possibly conflicting xsl:output elements continue; } else if ("Comment_Comment_CDATAWithSingleHyphen".equals(id) || "Comment_Comment_DoubleHypenEntitywithDelCharacter".equals(id) || "Comment_Comment_LineOfAllHyphens".equals(id) || "Comment_Comment_SingleHyphenOnly".equals(id) || "Comment_Comment_DoubleHyphenONLY".equals(id)) { // Begins comment data with hyphen, which XOM doesn't allow continue; } else if ("ProcessingInstruction_ValueOfandTextWithDoeInProcInstr".equals(id)) { // Begins processing instruction data with white space, which XOM doesn't allow continue; } else if ("Elements__89716".equals(id) || "Elements__89717".equals(id) || "Elements__89718".equals(id) || "Output__84309".equals(id) || "Namespace__77670".equals(id)) { // Xalan doesn't recover from these, though recovery is allowed continue; } else if ("Output__84306".equals(id)) { // XXX I think this one's a Xalan bug; report it continue; } else if (cause != null && cause instanceof MalformedURIException) { // Some of the tests generate relative namespace URIs // XOM doesn't support continue; } else { System.err.println(id + ": " + ex.getMessage()); System.err.println("in " + style); if (cause != null) { System.err.println("cause: " + cause.getMessage()); } throw ex; } } } // end catch catch (XMLException ex) { if ("Text_modified78309".equals(id)) { // output is not a full document } else { System.err.println(id); throw ex; } } } // end for } // end if } | 626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/627001233580f0d13f1ba7ec0e7d617a2ba2af30/XSLTransformTest.java/clean/src/nu/xom/tests/XSLTransformTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1842,
28202,
2320,
7303,
4616,
9269,
442,
687,
1359,
13587,
1435,
7734,
1216,
1860,
16,
19761,
503,
16,
17243,
503,
288,
27573,
5008,
2089,
273,
394,
5008,
5621,
7734,
1387,
1026... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
28202,
2320,
7303,
4616,
9269,
442,
687,
1359,
13587,
1435,
7734,
1216,
1860,
16,
19761,
503,
16,
17243,
503,
288,
27573,
5008,
2089,
273,
394,
5008,
5621,
7734,
1387,
1026... | ||
sql.append(" and c.relname like \'" + tableNamePattern + "\'"); | sql.append(" and c.relname like \'" + tableNamePattern + "\'"); | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/numeric.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8); tuple[8] = Integer.toString((attypmod - VARHDRSZ) & 0xffff).getBytes(); } else tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/521017c5d090f18278b0fa9e8b949f7e57e6e050/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
... |
return isChooserActivated; | return myChooserActivated; | public boolean isVisible() { return isChooserActivated; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/58b0171008b45ce04096fe56180c4a04dc10f34a/NodeSubstituteChooser.java/buggy/source/jetbrains/mps/nodeEditor/NodeSubstituteChooser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
20453,
1435,
288,
565,
327,
3399,
17324,
28724,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
20453,
1435,
288,
565,
327,
3399,
17324,
28724,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return syntax; } | return syntax; } | public Syntax getSyntax() { return syntax; } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/FunCall.java/buggy/src/main/mondrian/olap/FunCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11517,
1322,
5392,
1435,
288,
202,
202,
2463,
6279,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11517,
1322,
5392,
1435,
288,
202,
202,
2463,
6279,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(2)); | return RubyNumeric.str2inum(recv.getRuntime(),recv.getRuntime().newString(val.substring(2)),2,true); | public static IRubyObject new_integer(IRubyObject recv, IRubyObject object) { ThreadContext context = recv.getRuntime().getCurrentContext(); if(object instanceof RubyString) { String val = object.toString(); if(val.length() > 0 && val.charAt(0) == '0') { if(val.length() > 1) { if(val.charAt(1) == 'x') { return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(16)); } else if(val.charAt(1) == 'b') { return recv.getRuntime().newString(val.substring(2)).callMethod(context,"to_i", recv.getRuntime().newFixnum(2)); } else { return recv.getRuntime().newString(val.substring(1)).callMethod(context,"to_i", recv.getRuntime().newFixnum(8)); } } } } return object.callMethod(context, "to_i"); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/a8583bc4b548ea3f09cf86cc0ce0b77670255f40/RubyKernel.java/clean/src/org/jruby/RubyKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
394,
67,
7745,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
733,
13,
288,
3639,
4884,
1042,
819,
273,
10665,
18,
588,
5576,
7675,
588,
3935,
1042,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
394,
67,
7745,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
733,
13,
288,
3639,
4884,
1042,
819,
273,
10665,
18,
588,
5576,
7675,
588,
3935,
1042,
562... |
MakefileGenerator.createMakefile(streamGraph); | public static int estimateWork(SIRFilter oldFilter) { // if we have an identity filter, just return 0 since these // aren't mapped onto Raw if (oldFilter instanceof SIRIdentity || oldFilter instanceof SIRFileWriter || oldFilter instanceof SIRFileReader) { return 0; } boolean oldDecoupledValue = KjcOptions.decoupled; boolean oldMagicNetValue = KjcOptions.magic_net; boolean oldRateMatchValue = KjcOptions.ratematch; int oldOutputsValue = KjcOptions.outputs; int work = 0; //clone the Filter and create a dummy pipeline with just this //new cloned filter SIRFilter filter = (SIRFilter)ObjectDeepCloner.deepCopy(oldFilter); Util.removeIO(filter); StreamGraph streamGraph = StreamGraph.constructStreamGraph(filter); StaticStreamGraph ssg = streamGraph.getStaticSubGraphs()[0]; //make a new directory and change the current working dir String dir = File.separator + "tmp" + File.separator + filter.getName(); File file = new File(dir); file.mkdir(); // set decouple execution to true KjcOptions.decoupled = true; // set magic net to false KjcOptions.magic_net = false; //set rate match to false KjcOptions.ratematch = false; //turn off output limiting KjcOptions.outputs = -1; //VarDecl Raise to move array assignments up new VarDeclRaiser().raiseVars(filter); //VarDecl Raise to move peek index up so //constant prop propagates the peek buffer index new VarDeclRaiser().raiseVars(filter); // layout the components (assign filters to tiles) streamGraph.getLayout().singleFilterAssignment(); String tileNumber = streamGraph.getLayout().getTileNumber(ssg.getTopLevel()) + ""; //remove print statements in the original app //if we are running with decoupled RemovePrintStatements.doIt(ssg.getTopLevel()); //Generate the tile code RawExecutionCode rawExe = new RawExecutionCode(ssg); ssg.getTopLevel().accept(rawExe, null, true); if (KjcOptions.removeglobals) { RemoveGlobals.doit(ssg.getTopLevel()); } // make structures header file in this directory StructureIncludeFile.doit(SpaceDynamicBackend.structures, streamGraph, dir); SIMULATING_WORK = true; TileCode.generateCode(streamGraph); SIMULATING_WORK = false; MakefileGenerator.createMakefile(streamGraph); try { //copy the files { System.out.println("Moving files to /tmp..."); String[] cmdArray = new String[5]; cmdArray[0] = "cp"; cmdArray[1] = "tile" + tileNumber + ".c"; cmdArray[2] = "Makefile.streamit"; cmdArray[3] = "fileio.bc"; cmdArray[4] = dir; Process jProcess = Runtime.getRuntime().exec(cmdArray); jProcess.waitFor(); jProcess.getInputStream().close(); jProcess.getOutputStream().close(); jProcess.getErrorStream().close(); } //run the simulator { System.out.println("Running on the Simulator..."); /* String[] cmdArray = new String[8]; cmdArray[0] = "make"; cmdArray[1] = "-C"; cmdArray[2] = dir; cmdArray[3] = "-f"; cmdArray[4] = "Makefile.streamit"; cmdArray[5] = "run"; cmdArray[6] = "&>"; cmdArray[7] = "/dev/null"; Process jProcess = Runtime.getRuntime().exec(cmdArray); */ String[] cmdArray = { "/bin/bash", "-c", "make -C " + dir + " -f Makefile.streamit run &> /dev/null" }; Process jProcess = Runtime.getRuntime().exec(cmdArray); /* InputStreamReader output = new InputStreamReader(jProcess.getInputStream()); BufferedReader br = new BufferedReader(output); try { String str; while ((str = br.readLine()) != null) { System.out.println(str); } } catch (IOException e) { System.err.println("Error reading stdout of child process in work estimation..."); } */ jProcess.waitFor(); jProcess.getInputStream().close(); jProcess.getOutputStream().close(); jProcess.getErrorStream().close(); //dump the output so that the process does not hang on it /* try { InputStreamReader isr = new InputStreamReader(output); BufferedReader br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { } } catch (Exception e) { e.printStackTrace(); } */ } //open the results file and return the stats work = readCycleCount(dir); //remove the directory { String[] cmdArray = new String[3]; cmdArray[0] = "rm"; cmdArray[1] = "-rf"; cmdArray[2] = dir; Process jProcess = Runtime.getRuntime().exec(cmdArray); jProcess.waitFor(); jProcess.getInputStream().close(); jProcess.getOutputStream().close(); jProcess.getErrorStream().close(); } } catch (Exception e) { e.printStackTrace(); Utils.fail("Error running the raw simulator for work estimation"); } KjcOptions.decoupled = oldDecoupledValue; KjcOptions.magic_net = oldMagicNetValue; KjcOptions.ratematch = oldRateMatchValue; KjcOptions.outputs = oldOutputsValue; return work; } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/23ca30042353be195acec235c585b937b8b49f31/RawWorkEstimator.java/buggy/streams/src/at/dms/kjc/spacedynamic/RawWorkEstimator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
11108,
2421,
12,
2320,
54,
1586,
1592,
1586,
13,
565,
288,
3639,
368,
309,
732,
1240,
392,
4215,
1034,
16,
2537,
327,
374,
3241,
4259,
3639,
368,
11526,
1404,
5525,
10170,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
11108,
2421,
12,
2320,
54,
1586,
1592,
1586,
13,
565,
288,
3639,
368,
309,
732,
1240,
392,
4215,
1034,
16,
2537,
327,
374,
3241,
4259,
3639,
368,
11526,
1404,
5525,
10170,... | |
private void checkIfDataFullfillProfile(int field, int number, String data, String text) throws UserDoesntFullfillEndEntityProfile { | private void checkIfDataFullfillProfile(int field, int number, String data, String text, String email) throws UserDoesntFullfillEndEntityProfile { | private void checkIfDataFullfillProfile(int field, int number, String data, String text) throws UserDoesntFullfillEndEntityProfile { if(data == null && field != EMAIL) throw new UserDoesntFullfillEndEntityProfile("Field " + text + " cannot be null."); if(data !=null) if(!getUse(field,number) && !data.trim().equals("")) throw new UserDoesntFullfillEndEntityProfile(text + " cannot be used in end entity profile."); if(field == OLDEMAILDN || field == RFC822NAME){ if(!isModifyable(EMAIL,0)){ String[] values; try{ values = new RE(SPLITCHAR, false).split(getValue(EMAIL,number)); }catch(Exception e){ throw new UserDoesntFullfillEndEntityProfile("Error parsing end entity profile."); } boolean exists = false; for(int i = 0; i < values.length ; i++){ if(data.equals(values[i].trim())) exists = true; } if(!exists) throw new UserDoesntFullfillEndEntityProfile("Field " + text + " data didn't match requirement of end entity profile."); } } else{ if(!isModifyable(field,number)){ String[] values; try{ values = new RE(SPLITCHAR, false).split(getValue(field,number)); }catch(Exception e){ throw new UserDoesntFullfillEndEntityProfile("Error parsing end entity profile."); } boolean exists = false; for(int i = 0; i < values.length ; i++){ if(data.equals(values[i].trim())) exists = true; } if(!exists) throw new UserDoesntFullfillEndEntityProfile("Field " + text + " data didn't match requirement of end entity profile."); } } } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/3645e48069090950c07fac5dff3cbbefb44aa8b9/EndEntityProfile.java/clean/src/java/se/anatom/ejbca/ra/raadmin/EndEntityProfile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
19130,
751,
5080,
5935,
4029,
12,
474,
652,
16,
509,
1300,
16,
514,
501,
16,
514,
977,
16,
514,
2699,
13,
1216,
2177,
10154,
496,
5080,
5935,
1638,
1943,
4029,
288,
2868,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19130,
751,
5080,
5935,
4029,
12,
474,
652,
16,
509,
1300,
16,
514,
501,
16,
514,
977,
16,
514,
2699,
13,
1216,
2177,
10154,
496,
5080,
5935,
1638,
1943,
4029,
288,
2868,
309... |
" baseCTInfo=" + typeInfo.baseComplexTypeInfo + " derivedBy=" + typeInfo.derivedBy + | " baseCTInfo=" + typeInfo.baseComplexTypeInfo + " derivedBy=" + typeInfo.derivedBy + | private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception { // ------------------------------------------------------------------ // Get the attributes of the type // ------------------------------------------------------------------ String isAbstract = complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT ); String blockSet = null; Attr blockAttr = complexTypeDecl.getAttributeNode( SchemaSymbols.ATT_BLOCK ); if (blockAttr != null) blockSet = blockAttr.getValue(); String finalSet = null; Attr finalAttr = complexTypeDecl.getAttributeNode( SchemaSymbols.ATT_FINAL ); if (finalAttr != null) finalSet = finalAttr.getValue(); String typeId = complexTypeDecl.getAttribute( SchemaSymbols.ATTVAL_ID ); String typeName = complexTypeDecl.getAttribute(SchemaSymbols.ATT_NAME); String mixed = complexTypeDecl.getAttribute(SchemaSymbols.ATT_MIXED); boolean isNamedType = false; // ------------------------------------------------------------------ // Generate a type name, if one wasn't specified // ------------------------------------------------------------------ if (typeName.equals("")) { // gensym a unique name typeName = genAnonTypeName(complexTypeDecl); } if ( DEBUGGING ) System.out.println("traversing complex Type : " + typeName); fCurrentTypeNameStack.push(typeName); int typeNameIndex = fStringPool.addSymbol(typeName); // ------------------------------------------------------------------ // Check if the type has already been registered // ------------------------------------------------------------------ if (isTopLevel(complexTypeDecl)) { String fullName = fTargetNSURIString+","+typeName; ComplexTypeInfo temp = (ComplexTypeInfo) fComplexTypeRegistry.get(fullName); if (temp != null ) { return fStringPool.addSymbol(fullName); } } int scopeDefined = fScopeCount++; int previousScope = fCurrentScope; fCurrentScope = scopeDefined; Element child = null; ComplexTypeInfo typeInfo = new ComplexTypeInfo(); try { // ------------------------------------------------------------------ // First, handle any ANNOTATION declaration and get next child // ------------------------------------------------------------------ child = checkContent(complexTypeDecl,XUtil.getFirstChildElement(complexTypeDecl), true); // ------------------------------------------------------------------ // Process the content of the complex type declaration // ------------------------------------------------------------------ if (child==null) { // // EMPTY complexType with complexContent // processComplexContent(typeNameIndex, child, typeInfo, null, false); } else { String childName = child.getLocalName(); int index = -2; if (childName.equals(SchemaSymbols.ELT_SIMPLECONTENT)) { // // SIMPLE CONTENT element // traverseSimpleContentDecl(typeNameIndex, child, typeInfo); if (XUtil.getNextSiblingElement(child) != null) throw new ComplexTypeRecoverableError( "Invalid child following the simpleContent child in the complexType"); } else if (childName.equals(SchemaSymbols.ELT_COMPLEXCONTENT)) { // // COMPLEX CONTENT element // traverseComplexContentDecl(typeNameIndex, child, typeInfo, mixed.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false); if (XUtil.getNextSiblingElement(child) != null) throw new ComplexTypeRecoverableError( "Invalid child following the complexContent child in the complexType"); } else { // // We must have .... // GROUP, ALL, SEQUENCE or CHOICE, followed by optional attributes // Note that it's possible that only attributes are specified. // processComplexContent(typeNameIndex, child, typeInfo, null, mixed.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false); } } typeInfo.blockSet = parseBlockSet(blockSet); // make sure block's value was absent, #all or in {extension, restriction} if( (blockSet != null ) && !blockSet.equals("") && (!blockSet.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((typeInfo.blockSet & SchemaSymbols.RESTRICTION) == 0) && ((typeInfo.blockSet & SchemaSymbols.EXTENSION) == 0)))) throw new ComplexTypeRecoverableError("The values of the 'block' attribute of a complexType must be either #all or a list of 'restriction' and 'extension'; " + blockSet + " was found"); typeInfo.finalSet = parseFinalSet(finalSet); // make sure final's value was absent, #all or in {extension, restriction} if( (finalSet != null ) && !finalSet.equals("") && (!finalSet.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((typeInfo.finalSet & SchemaSymbols.RESTRICTION) == 0) && ((typeInfo.finalSet & SchemaSymbols.EXTENSION) == 0)))) throw new ComplexTypeRecoverableError("The values of the 'final' attribute of a complexType must be either #all or a list of 'restriction' and 'extension'; " + finalSet + " was found"); } catch (ComplexTypeRecoverableError e) { String message = e.getMessage(); handleComplexTypeError(message,typeNameIndex,typeInfo); } // ------------------------------------------------------------------ // Finish the setup of the typeInfo and register the type // ------------------------------------------------------------------ typeInfo.scopeDefined = scopeDefined; typeInfo.isAbstract = isAbstract.equals(SchemaSymbols.ATTVAL_TRUE) ? true:false ; typeName = fTargetNSURIString + "," + typeName; typeInfo.typeName = new String(typeName); if ( DEBUGGING ) System.out.println(">>>add complex Type to Registry: " + typeName + " baseDTValidator=" + typeInfo.baseDataTypeValidator + " baseCTInfo=" + typeInfo.baseComplexTypeInfo + " derivedBy=" + typeInfo.derivedBy + " contentType=" + typeInfo.contentType + " contentSpecHandle=" + typeInfo.contentSpecHandle + " datatypeValidator=" + typeInfo.datatypeValidator); fComplexTypeRegistry.put(typeName,typeInfo); // ------------------------------------------------------------------ // Before exiting, restore the scope, mainly for nested anonymous types // ------------------------------------------------------------------ fCurrentScope = previousScope; fCurrentTypeNameStack.pop(); checkRecursingComplexType(); //set template element's typeInfo fSchemaGrammar.setElementComplexTypeInfo(typeInfo.templateElementIndex, typeInfo); typeNameIndex = fStringPool.addSymbol(typeName); return typeNameIndex; } // end traverseComplexTypeDecl | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0561c4be90e07e6ba8d6b8f42edef5dc8d6d453c/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10080,
12795,
559,
3456,
12,
3010,
7233,
559,
3456,
262,
1216,
1185,
288,
1171,
368,
8879,
17,
3639,
368,
968,
326,
1677,
434,
326,
618,
3639,
368,
8879,
17,
3639,
514,
24996,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10080,
12795,
559,
3456,
12,
3010,
7233,
559,
3456,
262,
1216,
1185,
288,
1171,
368,
8879,
17,
3639,
368,
968,
326,
1677,
434,
326,
618,
3639,
368,
8879,
17,
3639,
514,
24996,
... |
return parser.references; | return references; | public synchronized List getReferences() { return parser.references; } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/c29d81eaf0dfdc302bdb46f8377072f5b7b22e0e/ThreadedParser.java/buggy/src/org/antlr/works/parser/ThreadedParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
987,
5561,
2980,
1435,
288,
3639,
327,
5351,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
987,
5561,
2980,
1435,
288,
3639,
327,
5351,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (vnaFrameAfter.getLoad(v) == null) i.remove(); | if (vnaFrameAfter.getLoad(v) == null) { if (IsNullValueAnalysis.DEBUG) System.out.println("PURGING " + v); i.remove(); } | public void cleanStaleKnowledge(ValueNumberFrame vnaFrameAfter) { for(Iterator<ValueNumber> i = knownValueMap.keySet().iterator(); i.hasNext(); ) { ValueNumber v = i.next(); if (vnaFrameAfter.getLoad(v) == null) i.remove(); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/6eadf02afeab4052852a8d5d5195b233d690a1c2/IsNullValueFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValueFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2721,
19155,
47,
14390,
12,
620,
1854,
3219,
331,
6582,
3219,
4436,
13,
288,
202,
202,
1884,
12,
3198,
32,
620,
1854,
34,
277,
273,
4846,
26795,
18,
856,
694,
7675,
9838,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2721,
19155,
47,
14390,
12,
620,
1854,
3219,
331,
6582,
3219,
4436,
13,
288,
202,
202,
1884,
12,
3198,
32,
620,
1854,
34,
277,
273,
4846,
26795,
18,
856,
694,
7675,
9838,... |
if(TestNGConsoleProperties.TRACK_RUNNING_TEST.value(consoleProperties)) { | if (TestNGConsoleProperties.TRACK_RUNNING_TEST.value(consoleProperties)) { | public void addTestResult(TestResultMessage result, List<TestNGConsoleView.Chunk> output) { // TODO This should be an action button which rebuilds the tree when toggled. boolean flattenPackages = true; TestProxy classNode; if (flattenPackages) { classNode = getPackageClassNodeFor(result); } else { classNode = getClassNodeFor(result); } if(result.getResult() == MessageHelper.TEST_STARTED) { TestProxy proxy = new TestProxy(); proxy.setParent(classNode); proxy.setResultMessage(result); animator.setCurrentTestCase(proxy); treeBuilder.addItem(classNode, proxy); treeBuilder.repaintWithParents(proxy); count++; if (count > total) total = count; if(TestNGConsoleProperties.TRACK_RUNNING_TEST.value(consoleProperties)) { selectTest(proxy); } } else { model.addTestResult(result); animator.setCurrentTestCase(null); Object[] children = treeBuilder.getTreeStructure().getChildElements(classNode); for(Object child : children) { TestProxy proxy = (TestProxy)child; if(result.equals(proxy.getResultMessage())) { proxy.setResultMessage(result); proxy.setOutput(output); treeBuilder.repaintWithParents(proxy); } } } if (result.getResult() == MessageHelper.PASSED_TEST) { //passed++; } else if(result.getResult() == MessageHelper.FAILED_TEST) { failed++; progress.setColor(ColorProgressBar.RED); } progress.setFraction((double) count / total); updateLabel(statusLabel); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4cc1ae735fc300655676abd1d78bcef2bedd3b37/TestNGResults.java/clean/plugins/testng/src/com/theoryinpractice/testng/ui/TestNGResults.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
4709,
1253,
12,
4709,
1253,
1079,
563,
16,
987,
32,
4709,
4960,
10215,
1767,
18,
5579,
34,
876,
13,
288,
3639,
368,
2660,
1220,
1410,
506,
392,
1301,
3568,
1492,
13419,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4709,
1253,
12,
4709,
1253,
1079,
563,
16,
987,
32,
4709,
4960,
10215,
1767,
18,
5579,
34,
876,
13,
288,
3639,
368,
2660,
1220,
1410,
506,
392,
1301,
3568,
1492,
13419,
... |
public void testPOMPropertyExtractionWithMissingProject_WithDotNotation() throws Exception { String key = "m2.name"; String checkValue = "value"; Properties properties = new Properties(); properties.setProperty( key, checkValue ); Model model = new Model(); model.setProperties( properties ); MavenProject project = new MavenProject( model ); ExpressionEvaluator ee = createExpressionEvaluator( project, null, new Properties() ); Object value = ee.evaluate( "${" + key + "}" ); assertEquals( checkValue, value ); } | 48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/7134d66a5c47eee865b00f61a6da2e60517b7e24/PluginParameterExpressionEvaluatorTest.java/buggy/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
52,
1872,
1396,
25757,
1190,
4841,
4109,
67,
1190,
10412,
14818,
1435,
3639,
1216,
1185,
565,
288,
3639,
514,
498,
273,
315,
81,
22,
18,
529,
14432,
3639,
514,
866,
620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
52,
1872,
1396,
25757,
1190,
4841,
4109,
67,
1190,
10412,
14818,
1435,
3639,
1216,
1185,
565,
288,
3639,
514,
498,
273,
315,
81,
22,
18,
529,
14432,
3639,
514,
866,
620,
... | ||
return 0; | return dropAction; | public int getDropAction () { // FIXME: implement this return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DropTargetDropEvent.java/clean/core/src/classpath/java/java/awt/dnd/DropTargetDropEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
31900,
1803,
1832,
225,
288,
565,
368,
9852,
30,
2348,
333,
282,
327,
3640,
1803,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
31900,
1803,
1832,
225,
288,
565,
368,
9852,
30,
2348,
333,
282,
327,
3640,
1803,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
private void stripVersions(){ /* rename directories by removing anything from an underscore onward, * assuming that anything following the first * occurence of an underscore is a version number */ File file=new File(directory); File [] files = file.listFiles(); for (int i=0; i<files.length; i++){ int underScorePos = files[i].getAbsolutePath().indexOf("_"); if (underScorePos !=-1) files[i].renameTo(new File((files[i].getAbsolutePath()).substring(0,underScorePos))); } } | 14684 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14684/5031d0c48587897513d6144ccce1d17493826b01/VersionNumberStripper.java/buggy/bundles/org.eclipse.build.tools/src/org/eclipse/releng/VersionNumberStripper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
6406,
5940,
1435,
95,
202,
202,
20308,
1187,
2808,
867,
2401,
1637,
2764,
13767,
2273,
4274,
2080,
304,
26843,
3644,
265,
2913,
16,
202,
202,
14,
428,
21249,
19056,
2273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
6406,
5940,
1435,
95,
202,
202,
20308,
1187,
2808,
867,
2401,
1637,
2764,
13767,
2273,
4274,
2080,
304,
26843,
3644,
265,
2913,
16,
202,
202,
14,
428,
21249,
19056,
2273,
... | ||
/** * This is for the alignment settings. */ | private static void version2to3(Map oldSettings) { /** * This is for the white space settings. */ checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_ARRAY_INITIALIZER_CONTINUATION_INDENTATION, DefaultCodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION_FOR_ARRAY_INITIALIZER); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_BLOCK_CLOSE_BRACE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_BRACE_IN_BLOCK); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_IN_CATCH_EXPRESSION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CATCH, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CATCH); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_MESSAGE_SEND, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_MESSAGE_SEND, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_IN_FOR_PARENS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_FOR, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_FOR); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_IN_IF_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_IF, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_IF); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_IN_SWITCH_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SWITCH, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SWITCH); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_IN_SYNCHRONIZED_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SYNCHRONIZED, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SYNCHRONIZED); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_IN_WHILE_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MESSAGESEND_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_INVOCATION_ARGUMENTS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_PARAMETERS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_THROWS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_THROWS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_THROWS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_THROWS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_MESSAGE_SEND, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_MESSAGE_SEND, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_THROWS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_THROWS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICITCONSTRUCTORCALL_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICITCONSTRUCTORCALL_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MESSAGESEND_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_INVOCATION_ARGUMENTS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_FIRST_ARGUMENT, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_MESSAGE_SEND, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ANONYMOUS_TYPE_OPEN_BRACE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ANONYMOUS_TYPE_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BLOCK_OPEN_BRACE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_BLOCK); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CATCH_EXPRESSION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CATCH); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_METHOD_OPEN_BRACE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CONSTRUCTOR_DECLARATION_OPEN_PAREN, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_FIRST_INITIALIZER, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_FOR_PAREN, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_FOR); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_IF_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_IF); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_MESSAGE_SEND, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_METHOD_DECLARATION_OPEN_PAREN, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPEN_PAREN_IN_PARENTHESIZED_EXPRESSION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SWITCH_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SWITCH); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SWITCH_OPEN_BRACE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_SWITCH); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SYNCHRONIZED_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SYNCHRONIZED); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_TYPE_OPEN_BRACE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_TYPE_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_WHILE_CONDITION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_WHILE); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_BRACKETS_IN_ARRAY_REFERENCE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_REFERENCE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_REFERENCE); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_ARRAY_INITIALIZER, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_MESSAGESEND_ARGUMENTS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_FORMAT_GUARDIAN_CLAUSE_ON_ONE_LINE, DefaultCodeFormatterConstants.FORMATTER_KEEP_GUARDIAN_CLAUSE_ON_ONE_LINE); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BRACKET_IN_ARRAY_REFERENCE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_REFERENCE); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BRACKET_IN_ARRAY_TYPE_REFERENCE, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_TYPE_REFERENCE); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATORS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATORS, DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATOR); /** * This is for the alignment settings. */ checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_ALLOCATION_EXPRESSION_ARGUMENTS_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ALLOCATION_EXPRESSION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_COMPACT_IF_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_MESSAGE_SEND_ARGUMENTS_ALIGNMENT , DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_QUALIFIED_ALLOCATION_EXPRESSION_ARGUMENTS_ALIGNMENT , DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_BINARY_EXPRESSION_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_COMPACT_IF_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_CONDITIONAL_EXPRESSION_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_ARRAY_INITIALIZER_EXPRESSIONS_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_EXPRESSIONS_IN_ARRAY_INITIALIZER); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_METHOD_DECLARATION_ARGUMENTS_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_MESSAGE_SEND_SELECTOR_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_TYPE_DECLARATION_SUPERCLASS_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_TYPE_DECLARATION_SUPERINTERFACES_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_TYPE_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_METHOD_THROWS_CLAUSE_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_EXPLICIT_CONSTRUCTOR_ARGUMENTS_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL); mapOldValueRangeToNew(oldSettings, DefaultCodeFormatterConstants.FORMATTER_TYPE_MEMBER_ALIGNMENT, new String [] {DefaultCodeFormatterConstants.FORMATTER_NO_ALIGNMENT, DefaultCodeFormatterConstants.FORMATTER_MULTICOLUMN}, DefaultCodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS, new String [] {DefaultCodeFormatterConstants.FALSE, DefaultCodeFormatterConstants.TRUE}); /** * Brace positions. */ checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_ANONYMOUS_TYPE_DECLARATION_BRACE_POSITION, DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ANONYMOUS_TYPE_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_ARRAY_INITIALIZER_BRACE_POSITION, DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ARRAY_INITIALIZER); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_BLOCK_BRACE_POSITION, DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_METHOD_DECLARATION_BRACE_POSITION, DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_TYPE_DECLARATION_BRACE_POSITION, DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION); checkAndReplace(oldSettings, DefaultCodeFormatterConstants.FORMATTER_SWITCH_BRACE_POSITION, DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/3c569dddca87251b6e9488d6e26f380927c9f254/ProfileVersioner.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1177,
22,
869,
23,
12,
863,
1592,
2628,
13,
288,
9506,
202,
26873,
1082,
380,
1220,
353,
364,
326,
9578,
3476,
1947,
18,
1082,
1195,
202,
202,
1893,
1876,
5729,
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,
1152,
760,
918,
1177,
22,
869,
23,
12,
863,
1592,
2628,
13,
288,
9506,
202,
26873,
1082,
380,
1220,
353,
364,
326,
9578,
3476,
1947,
18,
1082,
1195,
202,
202,
1893,
1876,
5729,
12,... | |
return _dummyStatus; | public void writeData(byte[] buf, int off, int size) throws InterruptedIOException { if (!_connection.packetSendChoke()) throw new InterruptedIOException("Timeout expired waiting to write"); boolean doSend = true; if ( (size <= 0) && (_connection.getLastSendId() >= 0) ) { if (_connection.getOutputStream().getClosed()) { if (_connection.getCloseSentOn() < 0) { doSend = true; } else { // closed, no new data, and we've already sent a close packet doSend = false; } } else { // no new data, not closed, already synchronized doSend = false; } } if (_connection.getUnackedPacketsReceived() > 0) doSend = true; if (_log.shouldLog(Log.ERROR) && !doSend) _log.error("writeData called: size="+size + " doSend=" + doSend + " unackedReceived: " + _connection.getUnackedPacketsReceived() + " con: " + _connection, new Exception("write called by")); if (doSend) { send(buf, off, size); } else { //_connection.flushPackets(); } } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/48cdf17a4f63829c28b653f83ae10d01c3f7e752/ConnectionDataReceiver.java/clean/apps/streaming/java/src/net/i2p/client/streaming/ConnectionDataReceiver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
327,
389,
21050,
1482,
31,
327,
389,
21050,
1482,
31,
327,
389,
21050,
1482,
31,
327,
389,
21050,
1482,
31,
1071,
2463,
389,
21050,
1482,
31,
918,
2463,
389,
21050,
1482,
31,
1045,
751,
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,
327,
389,
21050,
1482,
31,
327,
389,
21050,
1482,
31,
327,
389,
21050,
1482,
31,
327,
389,
21050,
1482,
31,
1071,
2463,
389,
21050,
1482,
31,
918,
2463,
389,
21050,
1482,
31,
1045,
751,
12,
... | |
protected void fireOpen(OpenEvent event) { | protected void fireOpen(final OpenEvent event) { | protected void fireOpen(OpenEvent event) { Object[] listeners = openListeners.getListeners(); for (int i = 0; i < listeners.length; ++i) { ((IOpenListener)listeners[i]).open(event); }} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/75cf57f2af2f39e062e4b2d7f104f731ee34bcf7/StructuredViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4452,
3678,
12,
3678,
1133,
871,
13,
288,
202,
921,
8526,
4679,
273,
1696,
5583,
18,
588,
5583,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4452,
3678,
12,
3678,
1133,
871,
13,
288,
202,
921,
8526,
4679,
273,
1696,
5583,
18,
588,
5583,
5621,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
965,
... |
interpreter.getRubyFrame().setLastFunc(id); interpreter.getRubyFrame().setLastClass(noSuper ? null : this); interpreter.getRubyFrame().setSelf(recv); interpreter.getRubyFrame().setArgs(new ShiftableList(args)); | getRuby().getRubyFrame().setLastFunc(id); getRuby().getRubyFrame().setLastClass(noSuper ? null : this); getRuby().getRubyFrame().setSelf(recv); getRuby().getRubyFrame().setArgs(new ShiftableList(args)); | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT); // HACK --- interpreter.getRubyFrame().setLastFunc(id); interpreter.getRubyFrame().setLastClass(noSuper ? null : this); interpreter.getRubyFrame().setSelf(recv); interpreter.getRubyFrame().setArgs(new ShiftableList(args)); RubyObject result = null; switch (body.nd_type()) { case NODE_CFUNC: { // HACK +++ try { // HACK --- result = ((RubyCallbackMethod)body.nd_cfnc()).execute(recv, args, getRuby()); // HACK +++ } catch (RubyArgumentException raExcptn) { System.out.print("Cannot call method \"" + id.toName() + "\". "); System.out.println(raExcptn.getMessage()); // } catch (RuntimeException rExcptn) { // System.out.print("Cannot call method \"" + id.toName() + "\". "); // System.out.println(rExcptn.getMessage()); } // HACK --- break; } case NODE_ZSUPER: case NODE_ATTRSET: case NODE_IVAR: { result = interpreter.eval(recv, body); break; } case NODE_SCOPE: { NODE savedCref = null; // VALUE[] localVars = null; ShiftableList argsList = new ShiftableList(args); ShiftableList localVarsList = null; getRuby().getRubyScope().push(); if (body.nd_rval() != null) { savedCref = interpreter.ruby_cref; interpreter.ruby_cref = (NODE)body.nd_rval(); interpreter.getRubyFrame().setCbase(body.nd_rval()); } if (body.nd_tbl() != null) { // ? +++ List tmpList = Collections.nCopies(body.nd_tbl()[0].intValue() + 1, getRuby().getNil()); // ? --- localVarsList = new ShiftableList(new ArrayList(tmpList)); localVarsList.set(0, body); localVarsList.shift(1); getRuby().getRubyScope().setLocalTbl(body.nd_tbl()); getRuby().getRubyScope().setLocalVars(localVarsList.getList()); } else { localVarsList = getRuby().getRubyScope().getLocalVars(); getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null); } body = body.nd_next(); RubyVarmap.push(getRuby()); // PUSH_TAG(PROT_FUNC); try { NODE node = null; int i; if (body.nd_type() == NODE_ARGS) { node = body; body = null; } else if (body.nd_type() == NODE_BLOCK) { node = body.nd_head(); body = body.nd_next(); } if (node != null) { if (node.nd_type() != NODE_ARGS) { // rb_bug("no argument-node"); } i = node.nd_cnt(); if (i > (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + i + ")"); } if (node.nd_rest() == -1) { int opt = i; NODE optnode = node.nd_opt(); while (optnode != null) { opt++; optnode = optnode.nd_next(); } if (opt < (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + opt + ")"); } interpreter.getRubyFrame().setArgs(localVarsList != null ? localVarsList.getList(2) : null); } if (localVarsList != null) { if (i > 0) { localVarsList.shift(2); for (int j = 0; j < i; j++ ) { localVarsList.set(j, argsList.get(j)); } localVarsList.shiftLeft(2); } argsList.shift(i); if (node.nd_opt() != null) { NODE opt = node.nd_opt(); while (opt != null && argsList.size() != 0) { interpreter.assign(recv, opt.nd_head(), (RubyObject)argsList.get(0), true); argsList.shift(1); opt = opt.nd_next(); } interpreter.eval(recv, opt); } if (node.nd_rest() >= 0) { RubyArray array = null; if (argsList.size() > 0) { array = RubyArray.m_newArray(getRuby(), argsList); } else { array = RubyArray.m_newArray(getRuby(), 0); } localVarsList.set(node.nd_rest(), array); } } } result = interpreter.eval(recv, body); } catch (ReturnException rExcptn) { } RubyVarmap.pop(getRuby()); getRuby().getRubyScope().pop(); interpreter.ruby_cref = savedCref; break; } default: { System.out.println("Not implemented yet (method call): " + id.toName() + ", node_type:" + body.nd_type()); } } interpreter.getRubyFrame().pop(); interpreter.getRubyIter().pop(); return result ; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/cf644c556d410c47305ebeba5728efa25f7756dc/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
20,
12,
54,
10340,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
11922,
1417,
16,
1250,
1158,
8051,
13,
288,
7734,
368,
1372,
3639,
19817,
30010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
20,
12,
54,
10340,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
11922,
1417,
16,
1250,
1158,
8051,
13,
288,
7734,
368,
1372,
3639,
19817,
30010,
... |
else if ( expression.equals( "project" ) ) | else if ( "project".equals( expression ) ) | public Object evaluate( String expr ) throws ExpressionEvaluationException { Object value = null; if ( expr == null ) { return null; } String expression = stripTokens( expr ); if ( expression.equals( expr ) ) { int index = expr.indexOf( "${" ); if ( index >= 0 ) { int lastIndex = expr.indexOf( "}", index ); if ( lastIndex >= 0 ) { String retVal = expr.substring( 0, index ); retVal += evaluate( expr.substring( index, lastIndex + 1 ) ); retVal += evaluate( expr.substring( lastIndex + 1 ) ); return retVal; } } // Was not an expression return expression; } if ( expression.equals( "localRepository" ) ) { value = context.getLocalRepository(); } else if ( expression.equals( "session" ) ) { value = context; } else if ( expression.equals( "project" ) ) { value = project; } else if ( expression.equals( "executedProject" ) ) { value = project.getExecutionProject(); } else if ( expression.startsWith( "project" ) ) { try { int pathSeparator = expression.indexOf( "/" ); if ( pathSeparator > 0 ) { String pathExpression = expression.substring( 1, pathSeparator ); value = ReflectionValueExtractor.evaluate( pathExpression, project ); value = value + expression.substring( pathSeparator ); } else { value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), project ); } } catch ( Exception e ) { // TODO: don't catch exception throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, e ); } } else if ( expression.startsWith( "plugin" ) ) { try { int pathSeparator = expression.indexOf( "/" ); if ( pathSeparator > 0 ) { String pathExpression = expression.substring( 1, pathSeparator ); value = ReflectionValueExtractor.evaluate( pathExpression, pluginDescriptor ); value = value + expression.substring( pathSeparator ); } else { value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), pluginDescriptor ); } } catch ( Exception e ) { // TODO: don't catch exception throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, e ); } } else if ( "settings".equals( expression ) ) { value = context.getSettings(); } else if ( expression.startsWith( "settings" ) ) { try { int pathSeparator = expression.indexOf( "/" ); if ( pathSeparator > 0 ) { String pathExpression = expression.substring( 1, pathSeparator ); value = ReflectionValueExtractor.evaluate( pathExpression, context.getSettings() ); value = value + expression.substring( pathSeparator ); } else { value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), context.getSettings() ); } } catch ( Exception e ) { // TODO: don't catch exception throw new ExpressionEvaluationException( "Error evaluating plugin parameter expression: " + expression, e ); } } else if ( expression.equals( "basedir" ) ) { value = project.getBasedir().getAbsolutePath(); } else if ( expression.startsWith( "basedir" ) ) { int pathSeparator = expression.indexOf( "/" ); if ( pathSeparator > 0 ) { value = project.getFile().getParentFile().getAbsolutePath() + expression.substring( pathSeparator ); } else { logger.error( "Got expression '" + expression + "' that was not recognised" ); } } else { // Check properties that have been injected via profiles before we default over to // system properties. if ( project.getProfileProperties() != null ) { value = project.getProfileProperties().getProperty( expression ); } if ( value == null ) { // We will attempt to get nab a system property as a way to specify a // parameter to a plugins. My particular case here is allowing the surefire // plugin to run a single test so I want to specify that class on the cli // as a parameter. value = System.getProperty( expression ); } } if ( value instanceof String ) { // TODO: without #, this could just be an evaluate call... String val = (String) value; int exprStartDelimiter = val.indexOf( "${" ); if ( exprStartDelimiter >= 0 ) { if ( exprStartDelimiter > 0 ) { value = val.substring( 0, exprStartDelimiter ) + evaluate( val.substring( exprStartDelimiter ) ); } else { value = evaluate( val.substring( exprStartDelimiter ) ); } } } return value; } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/53fd3dd6fbafa7a0400fc2eea20b4adb16d7b8b6/PluginParameterExpressionEvaluator.java/clean/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
5956,
12,
514,
3065,
262,
3639,
1216,
5371,
13468,
503,
565,
288,
3639,
1033,
460,
273,
446,
31,
3639,
309,
261,
3065,
422,
446,
262,
3639,
288,
5411,
327,
446,
31,
3639,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
5956,
12,
514,
3065,
262,
3639,
1216,
5371,
13468,
503,
565,
288,
3639,
1033,
460,
273,
446,
31,
3639,
309,
261,
3065,
422,
446,
262,
3639,
288,
5411,
327,
446,
31,
3639,
28... |
} else if (att.equals("spinMultiplicity")) { | } else if (att.equals("spinMultiplicity")) { | public void startElement(CMLStack xpath, String uri, String local, String raw, Attributes atts) { String name = local; logger.debug("StartElement"); currentChars = ""; BUILTIN = ""; DICTREF = ""; for (int i=0; i<atts.getLength(); i++) { String qname = atts.getQName(i); if (qname.equals("builtin")) { BUILTIN = atts.getValue(i); logger.debug(name, "->BUILTIN found: ", atts.getValue(i)); } else if (qname.equals("dictRef")) { DICTREF = atts.getValue(i); logger.debug(name, "->DICTREF found: ", atts.getValue(i)); } else if (qname.equals("title")) { elementTitle = atts.getValue(i); logger.debug(name, "->TITLE found: ", atts.getValue(i)); } else { logger.debug("Qname: ", qname); } } if ("atom".equals(name)) { atomCounter++; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); String value = atts.getValue(i); if (att.equals("id")) { // this is supported in CML 1.x elid.addElement(value); } // this is supported in CML 2.0 else if (att.equals("elementType")) { elsym.addElement(value); } // this is supported in CML 2.0 else if (att.equals("title")) { eltitles.addElement(value); } // this is supported in CML 2.0 else if (att.equals("x2")) { x2.addElement(value); } // this is supported in CML 2.0 else if (att.equals("xy2")) { StringTokenizer tokenizer = new StringTokenizer(value); x2.addElement(tokenizer.nextToken()); y2.addElement(tokenizer.nextToken()); } // this is supported in CML 2.0 else if (att.equals("xyzFract")) { StringTokenizer tokenizer = new StringTokenizer(value); xfract.addElement(tokenizer.nextToken()); yfract.addElement(tokenizer.nextToken()); zfract.addElement(tokenizer.nextToken()); } // this is supported in CML 2.0 else if (att.equals("xyz3")) { StringTokenizer tokenizer = new StringTokenizer(value); x3.addElement(tokenizer.nextToken()); y3.addElement(tokenizer.nextToken()); z3.addElement(tokenizer.nextToken()); } // this is supported in CML 2.0 else if (att.equals("y2")) { y2.addElement(value); } // this is supported in CML 2.0 else if (att.equals("x3")) { x3.addElement(value); } // this is supported in CML 2.0 else if (att.equals("y3")) { y3.addElement(value); } // this is supported in CML 2.0 else if (att.equals("z3")) { z3.addElement(value); } // this is supported in CML 2.0 else if (att.equals("xFract")) { xfract.addElement(value); } // this is supported in CML 2.0 else if (att.equals("yFract")) { yfract.addElement(value); } // this is supported in CML 2.0 else if (att.equals("zFract")) { zfract.addElement(value); } // this is supported in CML 2.0 else if (att.equals("formalCharge")) { formalCharges.addElement(value); } // this is supported in CML 2.0 else if (att.equals("hydrogenCount")) { hCounts.addElement(value); } else if (att.equals("isotope")) { isotope.addElement(value); } else if (att.equals("dictRef")) { atomDictRefs.addElement(value); } else if (att.equals("spinMultiplicity")) { spinMultiplicities.addElement(value); } else { logger.warn("Unparsed attribute: " + att); } } } else if ("atomArray".equals(name) && !xpath.endsWith("formula", "atomArray")) { boolean atomsCounted = false; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); int count = 0; if (att.equals("atomID")) { count = addArrayElementsTo(elid, atts.getValue(i)); } else if (att.equals("elementType")) { count = addArrayElementsTo(elsym, atts.getValue(i)); } else if (att.equals("x2")) { count = addArrayElementsTo(x2, atts.getValue(i)); } else if (att.equals("y2")) { count = addArrayElementsTo(y2, atts.getValue(i)); } else if (att.equals("x3")) { count = addArrayElementsTo(x3, atts.getValue(i)); } else if (att.equals("y3")) { count = addArrayElementsTo(y3, atts.getValue(i)); } else if (att.equals("z3")) { count = addArrayElementsTo(z3, atts.getValue(i)); } else if (att.equals("xFract")) { count = addArrayElementsTo(xfract, atts.getValue(i)); } else if (att.equals("yFract")) { count = addArrayElementsTo(yfract, atts.getValue(i)); } else if (att.equals("zFract")) { count = addArrayElementsTo(zfract, atts.getValue(i)); } else { logger.warn("Unparsed attribute: " + att); } if (!atomsCounted) { atomCounter += count; atomsCounted = true; } } } else if ("bond".equals(name)) { bondCounter++; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); logger.debug("B2 ", att, "=", atts.getValue(i)); if (att.equals("id")) { bondid.addElement(atts.getValue(i)); logger.debug("B3 ", bondid); } else if (att.equals("atomRefs") || // this is CML 1.x support att.equals("atomRefs2")) { // this is CML 2.0 support // expect exactly two references try { StringTokenizer st = new StringTokenizer( atts.getValue(i) ); bondARef1.addElement((String)st.nextElement()); bondARef2.addElement((String)st.nextElement()); } catch (Exception e) { logger.error("Error in CML file: ", e.getMessage()); logger.debug(e); } } else if (att.equals("order")) { // this is CML 2.0 support order.addElement(atts.getValue(i).trim()); } else if (att.equals("dictRef")) { bondDictRefs.addElement(atts.getValue(i).trim()); } } stereoGiven = false; curRef = 0; } else if ("bondArray".equals(name)) { boolean bondsCounted = false; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); int count = 0; if (att.equals("bondID")) { count = addArrayElementsTo(bondid, atts.getValue(i)); } else if (att.equals("atomRefs1")) { count = addArrayElementsTo(bondARef1, atts.getValue(i)); } else if (att.equals("atomRefs2")) { count = addArrayElementsTo(bondARef2, atts.getValue(i)); } else if (att.equals("atomRef1")) { count = addArrayElementsTo(bondARef1, atts.getValue(i)); } else if (att.equals("atomRef2")) { count = addArrayElementsTo(bondARef2, atts.getValue(i)); } else if (att.equals("order")) { count = addArrayElementsTo(order, atts.getValue(i)); } else { logger.warn("Unparsed attribute: " + att); } if (!bondsCounted) { bondCounter += count; bondsCounted = true; } } curRef = 0; } else if ("bondStereo".equals(name)) { for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("dictRef")) { if (atts.getValue(i).startsWith("cml:")) bondStereo.addElement(atts.getValue(i).substring(4)); stereoGiven=true; } } } else if ("molecule".equals(name)) { newMolecule(); BUILTIN = ""; cdo.startObject("Molecule"); for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("id")) { cdo.setObjectProperty("Molecule", "id", atts.getValue(i)); } else if (atts.getQName(i).equals("dictRef")) { cdo.setObjectProperty("Molecule", "dictRef", atts.getValue(i)); } } } else if ("crystal".equals(name)) { newCrystalData(); cdo.startObject("Crystal"); for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); if (att.equals("z")) { cdo.setObjectProperty("Crystal", "z", atts.getValue(i)); } } } else if ("symmetry".equals(name)) { for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); if (att.equals("spaceGroup")) { cdo.setObjectProperty("Crystal", "spacegroup", atts.getValue(i)); } } } else if ("identifier".equals(name)) { if (atts.getValue("convention") != null && atts.getValue("convention").equals("iupac:inchi") && atts.getValue("value") != null) { cdo.setObjectProperty("Molecule", "inchi", atts.getValue("value")); } } else if ("scalar".equals(name)) { if (xpath.endsWith("crystal", "scalar")) crystalScalar++; } else if ("list".equals(name)) { cdo.startObject("MoleculeSet"); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/2a939a94486794ee0ca07c58f450714250d67e84/CMLCoreModule.java/clean/src/org/openscience/cdk/io/cml/CMLCoreModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
39,
1495,
2624,
6748,
16,
514,
2003,
16,
514,
1191,
16,
514,
1831,
16,
1171,
9079,
9055,
15687,
13,
288,
3639,
514,
508,
273,
1191,
31,
3639,
1194,
18,
4148,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
39,
1495,
2624,
6748,
16,
514,
2003,
16,
514,
1191,
16,
514,
1831,
16,
1171,
9079,
9055,
15687,
13,
288,
3639,
514,
508,
273,
1191,
31,
3639,
1194,
18,
4148,
2932,... |
return new CompoundOutputCacheKey(getProcessorClass(), name, outKys); | return new CompoundOutputCacheKey(getProcessorClass(), name, outputKeys); | public OutputCacheKey getKeyImpl(PipelineContext pipelineContext) { makeSureStateIsSet(pipelineContext); try { ConfigURIReferences configURIReferences = getConfigURIReferences(pipelineContext); if (configURIReferences == null) return null; final int keyCount = 1 + ((localConfigURIReferences == null) ? 1 : 0) + ((configURIReferences.uriReferences != null) ? configURIReferences.uriReferences.references.size() : 0); final CacheKey[] outKys = new CacheKey[keyCount]; // Handle config if read as input int keyIndex = 0; if (localConfigURIReferences == null) { KeyValidity configKeyValidity = getInputKeyValidity(pipelineContext, INPUT_CONFIG); if (configKeyValidity == null) return null; outKys[keyIndex++] = configKeyValidity.key; } // Handle main document and config outKys[keyIndex++] = new SimpleOutputCacheKey(getProcessorClass(), name, configURIReferences.config.toString()); // Handle dependencies if any if (configURIReferences.uriReferences != null) { for (Iterator i = configURIReferences.uriReferences.references.iterator(); i.hasNext();) { URIReference uriReference = (URIReference) i.next(); outKys[keyIndex++] = new InternalCacheKey(URLGenerator.this, "urlReference", URLFactory.createURL(uriReference.context, uriReference.spec).toExternalForm()); } } return new CompoundOutputCacheKey(getProcessorClass(), name, outKys); } catch (MalformedURLException e) { throw new OXFException(e); } } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/df0ef71e78a58d3a77e5e45894ae218b767bbb03/URLGenerator.java/buggy/src/java/org/orbeon/oxf/processor/generator/URLGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
3633,
15554,
3579,
2828,
12,
8798,
1042,
5873,
1042,
13,
288,
7734,
1221,
55,
594,
1119,
15737,
12,
14511,
1042,
1769,
7734,
775,
288,
10792,
1903,
3098,
8221,
642,
3098,
8221,
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,
2398,
1071,
3633,
15554,
3579,
2828,
12,
8798,
1042,
5873,
1042,
13,
288,
7734,
1221,
55,
594,
1119,
15737,
12,
14511,
1042,
1769,
7734,
775,
288,
10792,
1903,
3098,
8221,
642,
3098,
8221,
273,
... |
if (data != null && !data.equals(node.getNodeValue())) | return true; case Node.PROCESSING_INSTRUCTION_NODE: if (type > 0) | public boolean matches(Node node, int pos, int len) { short nodeType = node.getNodeType(); switch (nodeType) { case Node.ELEMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.TEXT_NODE: case Node.CDATA_SECTION_NODE: case Node.COMMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: if (type > 0) { if (nodeType != type) { return false; } if (data != null && !data.equals(node.getNodeValue())) { return false; } } return true; default: // Not part of XPath data model return false; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/NodeTypeTest.java/clean/core/src/classpath/gnu/gnu/xml/xpath/NodeTypeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1885,
12,
907,
756,
16,
509,
949,
16,
509,
562,
13,
225,
288,
565,
3025,
9507,
273,
756,
18,
588,
15101,
5621,
565,
1620,
261,
2159,
559,
13,
1377,
288,
1377,
648,
2029,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1885,
12,
907,
756,
16,
509,
949,
16,
509,
562,
13,
225,
288,
565,
3025,
9507,
273,
756,
18,
588,
15101,
5621,
565,
1620,
261,
2159,
559,
13,
1377,
288,
1377,
648,
2029,
1... |
p2pDescriptorService.setNodeNumber(Integer.parseInt(askedNodes)); | p2pDescriptorService.setNodeNumber(Integer.parseInt( askedNodes)); | public void startContextElement(String name, Attributes attributes) throws org.xml.sax.SAXException { p2pDescriptorService = new P2PDescriptorService(); String askedNodes = attributes.getValue("nodesAsked"); if (checkNonEmpty(askedNodes)) { if (askedNodes.equals("MAX")) { p2pDescriptorService.setNodeNumberToMAX(); } else { p2pDescriptorService.setNodeNumber(Integer.parseInt(askedNodes)); } } String acq = attributes.getValue("acq"); if (checkNonEmpty(acq)) { p2pDescriptorService.setAcq(acq); } String port = attributes.getValue("port"); if (checkNonEmpty(port)) { p2pDescriptorService.setPort(port); } String noa = attributes.getValue("NOA"); if (checkNonEmpty(noa)) { p2pDescriptorService.setNoa(noa); } String ttu = attributes.getValue("TTU"); if (checkNonEmpty(ttu)) { p2pDescriptorService.setTtu(ttu); } String ttl = attributes.getValue("TTL"); if (checkNonEmpty(ttl)) { p2pDescriptorService.setTtl(ttl); } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/1279458d52679339839158611daec34b4baf800a/ServiceDefinitionHandler.java/clean/src/org/objectweb/proactive/core/descriptor/xml/ServiceDefinitionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
787,
1042,
1046,
12,
780,
508,
16,
9055,
1677,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
5411,
293,
22,
84,
3187,
1179,
273,
394,
453,
22,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
1042,
1046,
12,
780,
508,
16,
9055,
1677,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
288,
5411,
293,
22,
84,
3187,
1179,
273,
394,
453,
22,
52,
... |
public Parse getParse(Content content) throws ParseException { | public Parse getParse(Content content) { | public Parse getParse(Content content) throws ParseException { // check that contentType is one we can handle String contentType = content.getContentType(); if (contentType != null && !contentType.startsWith("application/msword")) throw new ParseException( "Content-Type not application/msword: "+contentType); String text = null; String title = null; Properties properties = null; try { byte[] raw = content.getContent(); String contentLength = content.get("Content-Length"); if (contentLength != null && raw.length != Integer.parseInt(contentLength)) { throw new ParseException("Content truncated at "+raw.length +" bytes. Parser can't handle incomplete msword file."); } WordExtractor extractor = new WordExtractor(); // collect text text = extractor.extractText(new ByteArrayInputStream(raw)); // collect meta info properties = extractor.extractProperties(new ByteArrayInputStream(raw)); extractor = null; } catch (ParseException e) { throw e; } catch (FastSavedException e) { throw new ParseException(e); } catch (PasswordProtectedException e) { throw new ParseException(e); } catch (Exception e) { // run time exception throw new ParseException("Can't be handled as msword document. "+e); } finally { // nothing so far } // collect meta data Properties metadata = new Properties(); metadata.putAll(content.getMetadata()); // copy through if(properties != null) { title = properties.getProperty("Title"); properties.remove("Title"); metadata.putAll(properties); } if (text == null) text = ""; if (title == null) title = ""; // collect outlink Outlink[] outlinks = new Outlink[0]; ParseData parseData = new ParseData(title, outlinks, metadata); return new ParseImpl(text, parseData); // any filter? //return HtmlParseFilters.filter(content, parse, root); } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/29bea6a24ea978596c3c1880a520b24bdeb2252d/MSWordParser.java/buggy/src/plugin/parse-msword/src/java/org/apache/nutch/parse/msword/MSWordParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2884,
336,
3201,
12,
1350,
913,
13,
288,
565,
368,
866,
716,
5064,
353,
1245,
732,
848,
1640,
565,
514,
5064,
273,
913,
18,
588,
8046,
5621,
565,
309,
261,
22194,
480,
446,
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,
1071,
2884,
336,
3201,
12,
1350,
913,
13,
288,
565,
368,
866,
716,
5064,
353,
1245,
732,
848,
1640,
565,
514,
5064,
273,
913,
18,
588,
8046,
5621,
565,
309,
261,
22194,
480,
446,
597,
... |
return e; | return new SearchResultFilteringEnumeration( e, searchCtls, invocation, topFilter ); | public NamingEnumeration search( NextInterceptor nextInterceptor, LdapDN base, Map env, ExprNode filter, SearchControls searchCtls ) throws NamingException { // check to make sure the DN searched for is a subentry if ( !subschemaSubentryDn.toNormName().equals( base.toNormName() ) ) { NamingEnumeration e = nextInterceptor.search( base, env, filter, searchCtls ); if ( searchCtls.getReturningAttributes() != null ) { return e; } Invocation invocation = InvocationStack.getInstance().peek(); return new SearchResultFilteringEnumeration( e, searchCtls, invocation, filters ); } if ( searchCtls.getSearchScope() == SearchControls.OBJECT_SCOPE && filter instanceof SimpleNode ) { SimpleNode node = ( SimpleNode ) filter; // see if node attribute is objectClass if ( node.getAttribute().equalsIgnoreCase( "2.5.4.0" ) && node.getValue().equalsIgnoreCase( "subschema" ) && node.getAssertionType() == SimpleNode.EQUALITY ) { // call.setBypass( true ); Attributes attrs = getSubschemaEntry( searchCtls.getReturningAttributes() ); SearchResult result = new SearchResult( base.toString(), null, attrs ); return new SingletonEnumeration( result ); } } else if ( searchCtls.getSearchScope() == SearchControls.OBJECT_SCOPE && filter instanceof PresenceNode ) { PresenceNode node = ( PresenceNode ) filter; // see if node attribute is objectClass if ( node.getAttribute().equalsIgnoreCase( "2.5.4.0" ) ) { // call.setBypass( true ); Attributes attrs = getSubschemaEntry( searchCtls.getReturningAttributes() ); SearchResult result = new SearchResult( base.toString(), null, attrs ); return new SingletonEnumeration( result ); } } NamingEnumeration e = nextInterceptor.search( base, env, filter, searchCtls ); if ( searchCtls.getReturningAttributes() != null ) { return e; } Invocation invocation = InvocationStack.getInstance().peek(); return new SearchResultFilteringEnumeration( e, searchCtls, invocation, filters ); } | 10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/9bafb0b861afb43d272ab9d5bae1827f75ce2173/SchemaService.java/buggy/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18884,
21847,
1623,
12,
4804,
10281,
1024,
10281,
16,
18053,
8609,
1026,
16,
1635,
1550,
16,
8074,
907,
1034,
16,
3639,
5167,
16795,
1623,
39,
17116,
262,
1216,
26890,
565,
288,
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,
18884,
21847,
1623,
12,
4804,
10281,
1024,
10281,
16,
18053,
8609,
1026,
16,
1635,
1550,
16,
8074,
907,
1034,
16,
3639,
5167,
16795,
1623,
39,
17116,
262,
1216,
26890,
565,
288,
3639,... |
if (shape == gapInA || (keepGaps && followsGapSize[lastRow]>0)) { | if (shape == gapInA || (keepGaps && lastRow<followsGapSize.length && followsGapSize[lastRow]>0)) { | public void fillReverse(int firstRow, int lastRow, int firstColumn, int lastColumn, int shape) { int lengthA = lastRow - firstRow +1; int lengthB = lastColumn - firstColumn +1; int i,j; rH[lastColumn] = rV[lastColumn] = gapOpen; rD[lastColumn] = 0; if (shape == gapInA || (keepGaps && followsGapSize[lastRow]>0)) { rH[lastColumn] = 0; } else if ( shape == gapInB) { rV[lastColumn] = 0; } //fill row-by-row. First row is a special case for (j=lastColumn-1; j>=firstColumn; j--) { rD[j] = rV[j] = bigNumber; rH[j] = rH[lastColumn] + gapExtend*(lastColumn-j); } int gapOpenOnA; int tmp1H, tmp1D, tmp1V, tmp2H, tmp2D, tmp2V; //reuse the arrays, treating it as the next row in the DP table. Keep one temp variable for each array for (i=lastRow-1; i>=firstRow; i--) { // for each "row" in DP table tmp1H = rH[lastColumn]; tmp1D = rD[lastColumn]; tmp1V = rV[lastColumn]; rD[lastColumn] = rH[lastColumn] = bigNumber; rV[lastColumn] += gapExtend ; /* if (shape == gapInA) { rV[lastColumn] = gapExtend*(lastRow - j); } else { //gapInB or noGap rV[lastColumn] = gapOpen + gapExtend*(lastRow - j ); }*/ gapOpenOnA = gapOpen; if (keepGaps && followsGapSize[i]>0) // followsGapSize[i] means reversePrecedsGapSize[i-1] gapOpenOnA = 0; for (j=lastColumn-1; j>=firstColumn; j--) { // for each column tmp2H = rH[j]; tmp2D = rD[j]; tmp2V = rV[j]; if (isMinimize) { rV[j] = Math.min( rH[j] + gapOpen + gapExtend, Math.min ( rD[j] + gapOpen + gapExtend , rV[j] + gapExtend)); rH[j] = Math.min( rH[j+1] + gapExtend, Math.min ( rD[j+1] + gapOpenOnA + gapExtend, rV[j+1] + gapOpenOnA + gapExtend)); rD[j] = AlignUtil.getCost(subs,A[i],B[j],alphabetLength) + Math.min( tmp1H, Math.min ( tmp1D , tmp1V)); } else { //maximize rV[j] = Math.max( rH[j] + gapOpen + gapExtend, Math.max ( rD[j] + gapOpen + gapExtend , rV[j] + gapExtend)); rH[j] = Math.max( rH[j+1] + gapExtend, Math.max( rD[j+1] + gapOpenOnA + gapExtend, rV[j+1] + gapOpenOnA + gapExtend)); rD[j] = AlignUtil.getCost(subs,A[i],B[j],alphabetLength) + Math.max( tmp1H , Math.max( tmp1D, tmp1V )); } tmp1H = tmp2H; tmp1D = tmp2D; tmp1V = tmp2V; } } } | 56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/13b53703a2dda8ee60c30059fbafc41ee14e90eb/AlignmentHelperLinearSpace.java/clean/Source/mesquite/align/lib/AlignmentHelperLinearSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12650,
12,
474,
1122,
1999,
16,
509,
1142,
1999,
16,
509,
1122,
1494,
16,
509,
1142,
1494,
16,
509,
2179,
13,
288,
202,
202,
474,
769,
37,
273,
1142,
1999,
300,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
12650,
12,
474,
1122,
1999,
16,
509,
1142,
1999,
16,
509,
1122,
1494,
16,
509,
1142,
1494,
16,
509,
2179,
13,
288,
202,
202,
474,
769,
37,
273,
1142,
1999,
300,
1... |
IMarker[] markers = new IMarker[rawSelection.length]; | IMarker[] markers = new IMarker[rawSelection.length]; | protected void viewerSelectionChanged(IStructuredSelection selection) { Object[] rawSelection = selection.toArray(); IMarker[] markers = new IMarker[rawSelection.length]; for (int idx = 0; idx < rawSelection.length; idx++) { markers[idx] = ((ConcreteMarker) rawSelection[idx]).getMarker(); } setSelection(new StructuredSelection(markers)); updateStatusMessage(selection); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
14157,
6233,
5033,
12,
45,
30733,
6233,
4421,
13,
288,
3639,
1033,
8526,
1831,
6233,
273,
4421,
18,
31447,
5621,
3639,
467,
7078,
8526,
11754,
273,
394,
467,
7078,
63,
1899,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
14157,
6233,
5033,
12,
45,
30733,
6233,
4421,
13,
288,
3639,
1033,
8526,
1831,
6233,
273,
4421,
18,
31447,
5621,
3639,
467,
7078,
8526,
11754,
273,
394,
467,
7078,
63,
1899,
62... |
collectionInitiated = true; | public final boolean poll(boolean mustCollect, MemoryResource mr) throws VM_PragmaLogicallyUninterruptible { if (collectionInitiated || !initialized || mr == metaDataMR) return false; mustCollect |= stressTestGCRequired(); boolean heapFull = getPagesReserved() > getTotalPages(); boolean nurseryFull = nurseryMR.reservedPages() > Options.maxNurseryPages; if (mustCollect || heapFull || nurseryFull) { required = mr.reservedPages() - mr.committedPages(); if (mr == nurseryMR) required = required<<1; // account for copy reserve collectionInitiated = true; VM_Interface.triggerCollection(VM_Interface.RESOURCE_TRIGGERED_GC); return true; } return false; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/50d928847716849d4e3fd49182047058144c30e7/Plan.java/clean/rvm/src/vm/memoryManagers/JMTk/plan/copyMS/Plan.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1250,
7672,
12,
6494,
1297,
10808,
16,
9251,
1420,
9752,
13,
565,
1216,
8251,
67,
2050,
9454,
1343,
6478,
984,
31847,
1523,
288,
565,
309,
261,
5548,
2570,
10206,
747,
401,
132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1250,
7672,
12,
6494,
1297,
10808,
16,
9251,
1420,
9752,
13,
565,
1216,
8251,
67,
2050,
9454,
1343,
6478,
984,
31847,
1523,
288,
565,
309,
261,
5548,
2570,
10206,
747,
401,
132... | |
539, 79, 210, 210, 210, 210, 79, 210, 210, 492, 597, 622, 634, 518, 492, 614, 564, 637, 638, 639, 632, 627, 624, 203, 543, 69, 234, 841, 628, 234, 376, 839, 234, 89, 352, 825, 492, 190, 454, 234, 377, 835, 210, 518, 492, 210, 210, 269, 210, 79, 279, 459, 210, 64, 492, 492, 61, 356, 600, 600, 511, 516, 363, 522, 523, 518, 379, 87, 67, 210, 79, 210, 40, 40, 269, 492, 264, 367, 65, 79, 617, 380, 459, 79, 368, 492, 389, 210, 549, 855, 792, 79, 269, 79, 441, 687, 413, 273, 415, 418, 459, 381, 210, 492, 273, 511, 516, 269, 617, 670, 582, 234, 673, 675, 210, 385, 445, 400, 590, 861, 592, 549, 386, 217, 401, 441, 278, 533, 79, 455, 396, 278, 388, 64, 666, 463, 492, 492, 278, 671, 307, 308, 670, 473, 390, 674, 676, 445, 67, 403, 445, 549, 357, 358, 210, 635, 576, 688, 65, 269, 381, 381, 381, 562, 563, 445, 190, 63, 430, 701, 71, 454, 203, 549, 411, 431, 81, 445, 234, 448, 449, 837, 399, 309, 94, 94, 190, 61, 456, 457, 94, 94, 94, 94, 709, 579, 234, 94, 94, 406, 234, 94, 454, 682, 234, 454, 492, 683, 94, 492, 492, 82, 324, 293, 294, 234, 326, 327, 328, 329, 454, 74, 407, 273, 410, 426, 372, 692, 744, 94, 94, 94, 778, 373, 428, 94, 434, 309, 614, 432, 752, 433, 446, 436, 210, 79, 229, 758, 760, 437, 450, 451, 464, 763, 765, 492, 780, 468, 537, 82, 82, 540, 579, 768, 234, 79, 583, 394, 423, 596, 725, 608, 618, 630, 234, 631, 636, 640, 452, 79, 641, 833, 654, 813, 662, 453, 815, 94, 834, 94, 492, 663, 423, 668, 492, 492, 669, 758, 760, 763, 560, 561, 562, 563, 109, 234, 705, 210, 492, 672, 759, 761, 234, 492, 87, 492, 764, 234, 234, 679, 83, 83, 111, 111, 810, 680, 83, 673, 675, 809, 210, 88, 226, 210, 685, 740, 686, 689, 609, 693, 811, 695, 697, 699, 773, 702, 700, 737, 738, 109, 79, 706, 821, 712, 234, 713, 714, 225, 79, 715, 79, 79, 210, 210, 76, 83, 278, 76, 210, 280, 84, 717, 794, 278, 718, 720, 724, 746, 473, 88, 88, 821, 232, 234, 76, 755, 600, 756, 757, 845, 76, 727, 733, 234, 87, 84, 84, 234, 735, 736, 739, 84, 788, 743, 94, 94, 79, 228, 280, 210, 745, 89, 279, 767, 472, 822, 696, 698, 84, 84, 234, 79, 79, 79, 774, 83, 94, 775, 94, 94, 779, 160, 234, 793, 234, 795, 796, 472, 94, 797, 84, 807, 817, 818, 827, 94, 518, 816, 799, 800, 801, 472, 234, 819, 234, 868, 82, 820, 492, 492, 492, 829, 234, 273, 832, 492, 234, 210, 82, 842, 273, 79, 79, 843, 747, 748, 847, 749, 849, 852, 160, 41, 42, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 853, 854, 873, 78, 871, 824, 875, 84, 91, 91, 112, 112, 112, 877, 91, 423, 492, 493, 481, 483, 230, 80, 423, 493, 483, 86, 836, 483, 485, 485, 254, 94, 492, 79, 94, 94, 487, 94, 94, 423, 487, 94, 210, 82, 79, 494, 423, 269, 299, 115, 473, 79, 874, 91, 75, 728, 188, 282, 94, 94, 94, 549, 339, 826, 690, 734, 754, 862, 279, 351, 421, 863, 94, 86, 86, 0, 94, 784, 864, 785, 94, 83, 94, 92, 92, 301, 153, 0, 83, 92, 0, 94, 0, 0, 0, 88, 282, 0, 0, 0, 0, 280, 0, 94, 0, 0, 473, 0, 0, 76, 472, 0, 0, 91, 0, 0, 0, 94, 0, 302, 303, 304, 305, 306, 0, 0, 83, 0, 92, 0, 0, 83, 84, 472, 84, 153, 828, 830, 0, 831, 0, 0, 0, 94, 0, 85, 0, 472, 208, 208, 208, 0, 0, 0, 0, 0, 84, 0, 0, 279, 0, 472, 0, 84, 0, 250, 279, 803, 472, 0, 805, 806, 0, 472, 83, 280, 270, 0, 555, 83, 0, 556, 557, 558, 472, 0, 0, 267, 92, 76, 0, 472, 472, 85, 85, 83, 472, 0, 472, 0, 0, 84, 0, 0, 0, 472, 84, 0, 83, 872, 472, 0, 84, 0, 0, 472, 83, 559, 83, 0, 0, 0, 560, 561, 562, 563, 476, 83, 83, 472, 0, 0, 160, 94, 94, 160, 160, 160, 86, 473, 0, 0, 0, 0, 359, 0, 0, 0, 0, 84, 0, 848, 850, 83, 94, 81, 88, 0, 81, 418, 280, 0, 91, 0, 0, 0, 418, 0, 94, 91, 84, 160, 0, 0, 0, 81, 160, 160, 160, 160, 0, 0, 86, 84, 0, 0, 865, 866, 0, 83, 473, 84, 870, 84, 0, 473, 94, 473, 0, 0, 0, 0, 473, 0, 0, 273, 0, 91, 279, 878, 0, 0, 91, 0, 163, 279, 0, 880, 86, 94, 882, 473, 94, 0, 884, 0, 0, 555, 84, 0, 556, 557, 558, 0, 0, 0, 88, 92, 0, 94, 0, 280, 0, 0, 92, 0, 473, 94, 280, 94, 94, 94, 94, 473, 0, 91, 282, 94, 473, 0, 0, 208, 208, 163, 0, 0, 0, 0, 0, 83, 83, 560, 561, 562, 563, 0, 91, 473, 0, 0, 153, 0, 92, 153, 153, 153, 0, 92, 0, 91, 83, 404, 405, 0, 0, 94, 0, 91, 94, 91, 0, 0, 85, 0, 83, 0, 0, 417, 0, 0, 94, 94, 94, 481, 417, 476, 0, 0, 0, 153, 0, 0, 148, 0, 153, 153, 153, 153, 0, 0, 92, 0, 0, 0, 91, 0, 83, 0, 0, 0, 0, 208, 208, 208, 208, 84, 477, 478, 0, 0, 0, 92, 0, 0, 481, 0, 94, 0, 0, 0, 94, 94, 0, 0, 92, 84, 476, 0, 0, 270, 0, 148, 92, 476, 92, 83, 751, 0, 472, 84, 0, 94, 226, 83, 0, 83, 83, 0, 0, 0, 0, 0, 0, 81, 0, 131, 270, 476, 0, 0, 280, 0, 0, 0, 575, 581, 530, 280, 534, 92, 553, 0, 77, 0, 270, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 789, 0, 270, 0, 83, 0, 94, 0, 0, 0, 577, 481, 0, 0, 0, 0, 0, 131, 273, 83, 83, 83, 0, 84, 91, 273, 267, 530, 0, 0, | 539, 79, 210, 210, 210, 210, 79, 210, 210, 87, 390, 622, 634, 518, 399, 614, 564, 637, 638, 639, 632, 363, 624, 203, 543, 406, 234, 841, 492, 234, 426, 839, 234, 273, 82, 825, 454, 190, 835, 234, 273, 407, 210, 518, 410, 210, 210, 269, 210, 79, 279, 482, 210, 482, 84, 492, 61, 428, 600, 600, 511, 516, 492, 522, 523, 518, 627, 472, 69, 210, 79, 210, 278, 628, 269, 309, 264, 432, 79, 278, 617, 433, 492, 79, 473, 64, 434, 210, 549, 855, 792, 79, 269, 79, 492, 687, 367, 423, 67, 492, 65, 492, 210, 368, 423, 511, 516, 269, 617, 670, 582, 234, 307, 308, 210, 40, 40, 472, 590, 861, 592, 549, 356, 436, 472, 278, 385, 445, 79, 472, 437, 492, 63, 386, 666, 71, 492, 492, 445, 671, 448, 449, 670, 260, 261, 674, 676, 69, 472, 307, 308, 549, 61, 446, 210, 635, 450, 688, 445, 269, 422, 445, 464, 459, 64, 217, 190, 423, 424, 701, 356, 356, 203, 549, 411, 537, 445, 67, 234, 65, 400, 837, 362, 362, 94, 94, 190, 401, 362, 451, 94, 94, 94, 94, 459, 468, 234, 94, 94, 455, 234, 94, 454, 682, 234, 357, 358, 683, 94, 540, 430, 242, 459, 579, 243, 234, 583, 431, 596, 76, 608, 78, 76, 492, 78, 709, 579, 692, 744, 94, 94, 94, 778, 454, 394, 94, 454, 618, 614, 76, 752, 78, 562, 563, 210, 79, 229, 758, 760, 492, 492, 454, 630, 763, 765, 631, 81, 636, 456, 457, 460, 309, 640, 768, 234, 79, 293, 294, 641, 472, 725, 473, 492, 654, 234, 452, 662, 833, 663, 79, 668, 672, 453, 813, 834, 669, 815, 94, 679, 94, 324, 680, 685, 160, 326, 327, 686, 758, 760, 763, 689, 693, 695, 273, 109, 234, 705, 210, 74, 697, 759, 761, 234, 87, 455, 699, 764, 234, 234, 700, 83, 83, 111, 111, 810, 702, 83, 706, 712, 809, 210, 713, 226, 210, 714, 740, 492, 717, 609, 715, 811, 492, 160, 492, 773, 492, 720, 737, 738, 109, 79, 80, 821, 455, 234, 423, 718, 225, 79, 232, 79, 79, 210, 210, 278, 83, 724, 727, 210, 280, 86, 278, 794, 456, 457, 462, 473, 746, 153, 356, 733, 821, 735, 234, 736, 755, 600, 756, 757, 845, 739, 745, 87, 234, 492, 84, 84, 234, 279, 743, 767, 84, 788, 774, 94, 94, 79, 228, 280, 210, 775, 779, 456, 457, 465, 822, 85, 796, 86, 86, 234, 79, 79, 79, 795, 83, 94, 153, 94, 94, 88, 797, 234, 793, 234, 807, 816, 817, 94, 413, 84, 415, 418, 818, 820, 94, 518, 819, 799, 800, 801, 473, 234, 827, 234, 868, 832, 76, 472, 78, 473, 829, 234, 847, 85, 85, 234, 210, 842, 843, 849, 79, 79, 852, 873, 492, 492, 492, 88, 88, 853, 854, 492, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 871, 875, 877, 163, 476, 824, 493, 84, 91, 91, 112, 112, 112, 492, 91, 472, 481, 473, 279, 483, 230, 493, 472, 483, 473, 483, 836, 472, 485, 473, 485, 94, 75, 79, 94, 94, 254, 94, 94, 487, 487, 94, 210, 76, 79, 78, 472, 269, 473, 273, 82, 79, 163, 91, 494, 728, 273, 282, 94, 94, 94, 549, 492, 299, 115, 734, 302, 303, 304, 305, 306, 863, 94, 826, 83, 188, 94, 89, 864, 280, 94, 83, 94, 92, 92, 874, 148, 690, 83, 92, 754, 94, 339, 88, 160, 351, 282, 160, 160, 160, 862, 423, 421, 94, 481, 784, 492, 785, 423, 301, 492, 492, 0, 91, 780, 0, 0, 94, 0, 0, 418, 0, 83, 83, 0, 0, 83, 418, 92, 82, 391, 83, 160, 0, 86, 148, 0, 160, 160, 160, 160, 0, 0, 94, 279, 481, 0, 473, 208, 208, 208, 279, 0, 0, 381, 280, 84, 560, 561, 562, 563, 0, 0, 84, 0, 250, 0, 803, 0, 482, 805, 806, 88, 76, 83, 280, 270, 0, 0, 153, 85, 0, 153, 153, 153, 0, 6, 267, 92, 391, 391, 391, 0, 476, 88, 83, 6, 473, 0, 0, 0, 84, 0, 0, 473, 417, 84, 0, 83, 473, 482, 0, 417, 381, 381, 381, 83, 153, 83, 0, 472, 0, 153, 153, 153, 153, 0, 6, 473, 481, 0, 0, 555, 94, 94, 556, 557, 558, 0, 77, 0, 0, 77, 476, 359, 6, 0, 0, 0, 84, 476, 848, 850, 83, 94, 472, 0, 279, 0, 77, 0, 0, 91, 0, 279, 0, 0, 83, 94, 91, 84, 0, 0, 0, 476, 560, 561, 562, 563, 0, 0, 0, 0, 84, 0, 0, 865, 866, 0, 476, 0, 84, 870, 84, 482, 0, 94, 163, 0, 0, 163, 163, 163, 0, 0, 0, 0, 91, 0, 878, 0, 6, 91, 0, 0, 131, 0, 880, 280, 94, 882, 0, 94, 419, 884, 280, 747, 748, 84, 749, 419, 83, 0, 41, 42, 163, 0, 92, 0, 94, 163, 163, 163, 163, 92, 0, 83, 94, 0, 94, 94, 94, 94, 0, 0, 91, 282, 94, 0, 0, 0, 208, 208, 0, 131, 0, 481, 481, 481, 0, 83, 0, 481, 481, 0, 481, 91, 0, 0, 0, 148, 0, 92, 148, 148, 148, 309, 92, 0, 91, 83, 404, 405, 0, 280, 94, 0, 91, 94, 91, 0, 280, 322, 323, 83, 78, 420, 0, 84, 472, 94, 94, 94, 420, 0, 324, 0, 325, 148, 326, 327, 328, 329, 148, 148, 148, 148, 0, 0, 0, 92, 482, 482, 482, 91, 0, 0, 482, 482, 0, 482, 208, 208, 208, 208, 84, 477, 478, 6, 6, 6, 92, 473, 0, 6, 6, 94, 6, 0, 472, 94, 94, 0, 0, 92, 84, 472, 0, 0, 270, 0, 472, 92, 0, 92, 83, 751, 77, 476, 84, 0, 94, 226, 83, 309, 83, 83, 84, 0, 0, 472, 0, 79, 0, 0, 79, 270, 0, 77, 0, 322, 323, 0, 0, 575, 581, 530, 0, 534, 92, 553, 0, 79, 324, 270, 94, 0, 326, 327, 328, 329, 0, 0, 0, 94, 0, 94, 789, 476, 270, 0, 83, 0, 94, 0, 476, 0, 577, 0, 0, 472, 0, 278, 0, 0, 476, 83, 83, 83, 0, 84, 91, 0, 267, 530, 309, 77, | private static final short[] yyTable1() { return new short[] { 234, 234, 391, 229, 234, 203, 419, 239, 239, 189, 580, 239, 237, 237, 248, 564, 237, 814, 190, 190, 591, 601, 252, 240, 240, 203, 519, 240, 257, 259, 216, 95, 782, 552, 234, 234, 216, 283, 284, 190, 253, 617, 274, 356, 249, 461, 732, 652, 265, 466, 492, 109, 109, 551, 300, 442, 281, 291, 275, 435, 337, 109, 362, 492, 337, 442, 190, 660, 661, 422, 62, 588, 221, 215, 218, 617, 423, 424, 783, 217, 786, 492, 469, 387, 382, 217, 606, 353, 244, 441, 60, 362, 362, 248, 393, 342, 394, 362, 109, 444, 253, 285, 79, 79, 110, 110, 353, 69, 79, 210, 210, 210, 492, 492, 225, 210, 210, 354, 492, 210, 235, 235, 455, 247, 235, 455, 210, 69, 492, 70, 309, 363, 221, 442, 455, 656, 247, 109, 649, 216, 492, 71, 338, 470, 387, 535, 338, 79, 210, 210, 253, 279, 360, 210, 269, 492, 361, 216, 61, 324, 230, 492, 492, 326, 327, 261, 657, 447, 782, 366, 308, 492, 262, 579, 264, 394, 89, 492, 492, 363, 363, 456, 457, 458, 456, 457, 460, 598, 217, 492, 279, 230, 40, 456, 457, 462, 260, 261, 492, 564, 356, 392, 455, 291, 492, 210, 217, 79, 684, 438, 87, 440, 190, 391, 856, 64, 234, 234, 284, 308, 653, 492, 716, 40, 89, 89, 217, 256, 691, 234, 67, 234, 234, 441, 264, 64, 239, 369, 239, 420, 65, 237, 771, 237, 237, 55, 492, 492, 356, 356, 67, 335, 240, 439, 240, 240, 487, 273, 87, 87, 65, 456, 457, 465, 265, 295, 307, 308, 242, 345, 492, 243, 391, 391, 391, 387, 363, 402, 346, 221, 343, 297, 441, 492, 762, 397, 398, 344, 487, 766, 481, 278, 481, 381, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 307, 308, 210, 210, 550, 455, 494, 234, 387, 471, 524, 527, 492, 234, 476, 340, 347, 538, 531, 482, 531, 482, 341, 406, 210, 69, 210, 210, 802, 235, 265, 235, 417, 518, 234, 536, 79, 494, 617, 348, 626, 629, 234, 79, 617, 472, 473, 474, 475, 531, 492, 492, 234, 524, 589, 538, 61, 364, 492, 234, 518, 642, 721, 429, 456, 457, 594, 234, 363, 741, 264, 234, 234, 525, 528, 234, 532, 109, 518, 620, 539, 79, 210, 210, 210, 210, 79, 210, 210, 492, 597, 622, 634, 518, 492, 614, 564, 637, 638, 639, 632, 627, 624, 203, 543, 69, 234, 841, 628, 234, 376, 839, 234, 89, 352, 825, 492, 190, 454, 234, 377, 835, 210, 518, 492, 210, 210, 269, 210, 79, 279, 459, 210, 64, 492, 492, 61, 356, 600, 600, 511, 516, 363, 522, 523, 518, 379, 87, 67, 210, 79, 210, 40, 40, 269, 492, 264, 367, 65, 79, 617, 380, 459, 79, 368, 492, 389, 210, 549, 855, 792, 79, 269, 79, 441, 687, 413, 273, 415, 418, 459, 381, 210, 492, 273, 511, 516, 269, 617, 670, 582, 234, 673, 675, 210, 385, 445, 400, 590, 861, 592, 549, 386, 217, 401, 441, 278, 533, 79, 455, 396, 278, 388, 64, 666, 463, 492, 492, 278, 671, 307, 308, 670, 473, 390, 674, 676, 445, 67, 403, 445, 549, 357, 358, 210, 635, 576, 688, 65, 269, 381, 381, 381, 562, 563, 445, 190, 63, 430, 701, 71, 454, 203, 549, 411, 431, 81, 445, 234, 448, 449, 837, 399, 309, 94, 94, 190, 61, 456, 457, 94, 94, 94, 94, 709, 579, 234, 94, 94, 406, 234, 94, 454, 682, 234, 454, 492, 683, 94, 492, 492, 82, 324, 293, 294, 234, 326, 327, 328, 329, 454, 74, 407, 273, 410, 426, 372, 692, 744, 94, 94, 94, 778, 373, 428, 94, 434, 309, 614, 432, 752, 433, 446, 436, 210, 79, 229, 758, 760, 437, 450, 451, 464, 763, 765, 492, 780, 468, 537, 82, 82, 540, 579, 768, 234, 79, 583, 394, 423, 596, 725, 608, 618, 630, 234, 631, 636, 640, 452, 79, 641, 833, 654, 813, 662, 453, 815, 94, 834, 94, 492, 663, 423, 668, 492, 492, 669, 758, 760, 763, 560, 561, 562, 563, 109, 234, 705, 210, 492, 672, 759, 761, 234, 492, 87, 492, 764, 234, 234, 679, 83, 83, 111, 111, 810, 680, 83, 673, 675, 809, 210, 88, 226, 210, 685, 740, 686, 689, 609, 693, 811, 695, 697, 699, 773, 702, 700, 737, 738, 109, 79, 706, 821, 712, 234, 713, 714, 225, 79, 715, 79, 79, 210, 210, 76, 83, 278, 76, 210, 280, 84, 717, 794, 278, 718, 720, 724, 746, 473, 88, 88, 821, 232, 234, 76, 755, 600, 756, 757, 845, 76, 727, 733, 234, 87, 84, 84, 234, 735, 736, 739, 84, 788, 743, 94, 94, 79, 228, 280, 210, 745, 89, 279, 767, 472, 822, 696, 698, 84, 84, 234, 79, 79, 79, 774, 83, 94, 775, 94, 94, 779, 160, 234, 793, 234, 795, 796, 472, 94, 797, 84, 807, 817, 818, 827, 94, 518, 816, 799, 800, 801, 472, 234, 819, 234, 868, 82, 820, 492, 492, 492, 829, 234, 273, 832, 492, 234, 210, 82, 842, 273, 79, 79, 843, 747, 748, 847, 749, 849, 852, 160, 41, 42, 94, 94, 94, 94, 94, 94, 94, 94, 89, 79, 853, 854, 873, 78, 871, 824, 875, 84, 91, 91, 112, 112, 112, 877, 91, 423, 492, 493, 481, 483, 230, 80, 423, 493, 483, 86, 836, 483, 485, 485, 254, 94, 492, 79, 94, 94, 487, 94, 94, 423, 487, 94, 210, 82, 79, 494, 423, 269, 299, 115, 473, 79, 874, 91, 75, 728, 188, 282, 94, 94, 94, 549, 339, 826, 690, 734, 754, 862, 279, 351, 421, 863, 94, 86, 86, 0, 94, 784, 864, 785, 94, 83, 94, 92, 92, 301, 153, 0, 83, 92, 0, 94, 0, 0, 0, 88, 282, 0, 0, 0, 0, 280, 0, 94, 0, 0, 473, 0, 0, 76, 472, 0, 0, 91, 0, 0, 0, 94, 0, 302, 303, 304, 305, 306, 0, 0, 83, 0, 92, 0, 0, 83, 84, 472, 84, 153, 828, 830, 0, 831, 0, 0, 0, 94, 0, 85, 0, 472, 208, 208, 208, 0, 0, 0, 0, 0, 84, 0, 0, 279, 0, 472, 0, 84, 0, 250, 279, 803, 472, 0, 805, 806, 0, 472, 83, 280, 270, 0, 555, 83, 0, 556, 557, 558, 472, 0, 0, 267, 92, 76, 0, 472, 472, 85, 85, 83, 472, 0, 472, 0, 0, 84, 0, 0, 0, 472, 84, 0, 83, 872, 472, 0, 84, 0, 0, 472, 83, 559, 83, 0, 0, 0, 560, 561, 562, 563, 476, 83, 83, 472, 0, 0, 160, 94, 94, 160, 160, 160, 86, 473, 0, 0, 0, 0, 359, 0, 0, 0, 0, 84, 0, 848, 850, 83, 94, 81, 88, 0, 81, 418, 280, 0, 91, 0, 0, 0, 418, 0, 94, 91, 84, 160, 0, 0, 0, 81, 160, 160, 160, 160, 0, 0, 86, 84, 0, 0, 865, 866, 0, 83, 473, 84, 870, 84, 0, 473, 94, 473, 0, 0, 0, 0, 473, 0, 0, 273, 0, 91, 279, 878, 0, 0, 91, 0, 163, 279, 0, 880, 86, 94, 882, 473, 94, 0, 884, 0, 0, 555, 84, 0, 556, 557, 558, 0, 0, 0, 88, 92, 0, 94, 0, 280, 0, 0, 92, 0, 473, 94, 280, 94, 94, 94, 94, 473, 0, 91, 282, 94, 473, 0, 0, 208, 208, 163, 0, 0, 0, 0, 0, 83, 83, 560, 561, 562, 563, 0, 91, 473, 0, 0, 153, 0, 92, 153, 153, 153, 0, 92, 0, 91, 83, 404, 405, 0, 0, 94, 0, 91, 94, 91, 0, 0, 85, 0, 83, 0, 0, 417, 0, 0, 94, 94, 94, 481, 417, 476, 0, 0, 0, 153, 0, 0, 148, 0, 153, 153, 153, 153, 0, 0, 92, 0, 0, 0, 91, 0, 83, 0, 0, 0, 0, 208, 208, 208, 208, 84, 477, 478, 0, 0, 0, 92, 0, 0, 481, 0, 94, 0, 0, 0, 94, 94, 0, 0, 92, 84, 476, 0, 0, 270, 0, 148, 92, 476, 92, 83, 751, 0, 472, 84, 0, 94, 226, 83, 0, 83, 83, 0, 0, 0, 0, 0, 0, 81, 0, 131, 270, 476, 0, 0, 280, 0, 0, 0, 575, 581, 530, 280, 534, 92, 553, 0, 77, 0, 270, 94, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 94, 789, 0, 270, 0, 83, 0, 94, 0, 0, 0, 577, 481, 0, 0, 0, 0, 0, 131, 273, 83, 83, 83, 0, 84, 91, 273, 267, 530, 0, 0, 228, 84, 476, 84, 84, 0, 0, 0, 0, 610, 613, 0, 0, 616, 91, 0, 81, 623, 0, 0, 0, 0, 78, 0, 270, 78, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 83, 0, 78, 0, 644, 790, 0, 616, 0, 84, 644, 163, 0, 0, 163, 163, 163, 0, 0, 132, 83, 0, 0, 0, 84, 84, 84, 0, 0, 92, 0, 0, 473, 0, 0, 659, 659, 659, 419, 0, 0, 667, 0, 0, 79, 419, 0, 79, 0, 92, 163, 0, 667, 667, 83, 163, 163, 163, 163, 91, 0, 0, 0, 92, 79, 83, 230, 91, 132, 91, 91, 0, 83, 0, 84, 84, 667, 0, 481, 481, 481, 0, 0, 0, 481, 481, 208, 481, 0, 677, 0, 0, 0, 74, 278, 84, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 704, 0, 708, 791, 581, 74, 0, 91, 0, 0, 80, 148, 581, 80, 148, 148, 148, 0, 0, 0, 0, 84, 91, 91, 91, 0, 92, 482, 0, 0, 80, 0, 84, 0, 92, 423, 92, 92, 420, 84, 0, 208, 85, 476, 0, 420, 0, 0, 719, 0, 148, 0, 0, 0, 0, 148, 148, 148, 148, 0, 279, 0, 0, 0, 0, 0, 726, 742, 482, 0, 729, 0, 91, 91, 730, 0, 0, 0, 0, 0, 0, 0, 92, 0, 131, 613, 0, 131, 131, 131, 0, 0, 412, 91, 476, 0, 0, 92, 92, 92, 0, 476, 412, 659, 0, 0, 472, 0, 0, 0, 0, 422, 78, 473, 0, 0, 0, 0, 422, 0, 0, 0, 85, 131, 0, 476, 0, 91, 131, 131, 131, 131, 0, 412, 770, 0, 412, 0, 91, 0, 0, 0, 0, 208, 777, 91, 0, 92, 92, 0, 412, 412, 482, 412, 0, 412, 0, 0, 0, 667, 667, 0, 0, 0, 473, 0, 0, 0, 92, 0, 0, 473, 0, 0, 79, 644, 473, 0, 0, 0, 0, 0, 616, 412, 0, 412, 0, 0, 616, 0, 0, 0, 78, 0, 0, 473, 0, 0, 0, 0, 0, 0, 92, 0, 0, 132, 0, 0, 132, 132, 132, 0, 0, 92, 0, 415, 0, 412, 0, 0, 92, 581, 0, 74, 823, 415, 278, 0, 0, 0, 0, 0, 421, 278, 0, 0, 0, 0, 473, 421, 0, 0, 0, 0, 132, 0, 0, 0, 80, 132, 132, 132, 132, 838, 79, 0, 415, 270, 0, 415, 0, 0, 0, 846, 0, 0, 0, 851, 0, 0, 0, 0, 0, 415, 415, 423, 415, 0, 415, 0, 0, 0, 423, 0, 0, 581, 0, 0, 253, 482, 482, 482, 0, 0, 0, 482, 482, 0, 482, 0, 279, 0, 613, 74, 616, 0, 415, 279, 415, 309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 876, 0, 879, 322, 323, 0, 80, 0, 0, 0, 616, 0, 0, 0, 883, 0, 324, 0, 415, 334, 326, 327, 328, 329, 0, 0, 0, 469, 469, 469, 0, 469, 412, 412, 412, 469, 469, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 412, 469, 412, 412, 469, 469, 469, 469, 469, 469, 469, 412, 412, 0, 412, 412, 412, 412, 412, 0, 469, 334, 0, 469, 469, 469, 469, 469, 469, 469, 469, 0, 469, 469, 469, 469, 0, 0, 469, 469, 469, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 0, 412, 412, 412, 469, 412, 412, 469, 469, 469, 469, 469, 412, 469, 412, 469, 412, 469, 412, 412, 412, 412, 412, 412, 412, 469, 412, 469, 469, 469, 469, 469, 469, 469, 0, 0, 0, 95, 0, 0, 0, 0, 0, 0, 0, 470, 470, 470, 0, 470, 415, 415, 415, 470, 470, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 415, 470, 415, 415, 470, 470, 470, 470, 470, 470, 470, 415, 415, 0, 415, 415, 415, 415, 415, 95, 470, 0, 0, 470, 470, 470, 470, 470, 470, 470, 470, 0, 470, 470, 470, 470, 0, 0, 470, 470, 470, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 0, 0, 415, 415, 415, 470, 415, 415, 470, 470, 470, 470, 470, 415, 470, 415, 470, 415, 470, 415, 415, 415, 415, 415, 415, 415, 470, 415, 470, 470, 470, 470, 470, 470, 470, 472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 678, 324, 472, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 472, 472, 0, 84, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 472, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 508, 509, 473, 0, 510, 0, 0, 0, 0, 0, 0, 160, 473, 161, 162, 472, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 309, 473, 175, 176, 473, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 322, 323, 473, 473, 0, 86, 95, 473, 0, 95, 95, 95, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 96, 0, 0, 309, 0, 0, 0, 0, 314, 315, 0, 412, 0, 473, 0, 473, 0, 0, 412, 322, 323, 0, 0, 95, 0, 0, 0, 0, 95, 95, 95, 95, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 473, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 334, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 0, 0, 96, 0, 0, 96, 96, 96, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 476, 96, 0, 476, 0, 0, 96, 96, 96, 96, 0, 0, 0, 0, 0, 0, 0, 476, 476, 0, 85, 0, 476, 0, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 476, 0, 476, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 513, 514, 274, 0, 515, 0, 0, 0, 0, 0, 0, 160, 274, 161, 162, 476, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 175, 176, 274, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 274, 274, 0, 0, 0, 274, 520, 509, 0, 0, 521, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 274, 0, 274, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 608, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 274, 334, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 476, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 476, 476, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 476, 472, 472, 472, 472, 472, 476, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 472, 472, 472, 472, 472, 472, 471, 471, 471, 0, 471, 274, 274, 274, 471, 471, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 0, 471, 274, 274, 471, 471, 471, 471, 471, 471, 471, 274, 274, 0, 274, 274, 274, 274, 274, 0, 471, 0, 0, 471, 471, 471, 471, 471, 471, 471, 471, 0, 471, 471, 471, 471, 0, 0, 471, 471, 471, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 0, 0, 274, 274, 274, 471, 0, 274, 471, 471, 471, 471, 471, 274, 471, 274, 471, 274, 471, 274, 274, 274, 274, 274, 274, 274, 471, 274, 471, 471, 471, 471, 471, 471, 471, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 477, 0, 324, 477, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 547, 514, 477, 477, 548, 0, 0, 477, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 477, 0, 477, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 478, 186, 0, 0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 477, 0, 0, 0, 584, 509, 0, 0, 585, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 478, 169, 0, 478, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 478, 478, 0, 175, 176, 478, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 586, 514, 0, 0, 587, 0, 0, 0, 478, 0, 478, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 655, 0, 0, 0, 478, 334, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 474, 474, 474, 0, 474, 477, 477, 477, 474, 474, 477, 477, 477, 474, 477, 474, 474, 474, 474, 474, 474, 474, 0, 477, 477, 477, 474, 474, 474, 474, 474, 474, 474, 477, 477, 0, 477, 477, 477, 477, 477, 0, 474, 0, 0, 474, 474, 474, 474, 474, 474, 474, 474, 0, 474, 474, 474, 474, 0, 0, 474, 474, 474, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 0, 0, 477, 477, 477, 474, 0, 477, 474, 474, 474, 474, 474, 477, 474, 477, 474, 477, 474, 477, 477, 477, 477, 477, 477, 477, 474, 477, 477, 474, 474, 474, 474, 474, 474, 475, 475, 475, 0, 475, 478, 478, 478, 475, 475, 478, 478, 478, 475, 478, 475, 475, 475, 475, 475, 475, 475, 0, 478, 478, 478, 475, 475, 475, 475, 475, 475, 475, 478, 478, 0, 478, 478, 478, 478, 478, 0, 475, 0, 0, 475, 475, 475, 475, 475, 475, 475, 475, 0, 475, 475, 475, 475, 0, 0, 475, 475, 475, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 478, 0, 0, 478, 478, 478, 475, 0, 478, 475, 475, 475, 475, 475, 478, 475, 478, 475, 478, 475, 478, 478, 478, 478, 478, 478, 478, 475, 478, 478, 475, 475, 475, 475, 475, 475, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 324, 350, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 602, 509, 350, 350, 603, 0, 0, 350, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 350, 0, 350, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 492, 186, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 350, 0, 0, 0, 604, 514, 0, 0, 605, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 492, 169, 0, 492, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 175, 176, 492, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 645, 509, 0, 0, 646, 0, 0, 0, 492, 0, 492, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 251, 251, 251, 0, 251, 350, 350, 350, 251, 251, 350, 350, 350, 251, 350, 251, 251, 251, 251, 251, 251, 251, 0, 350, 350, 350, 251, 251, 251, 251, 251, 251, 251, 350, 350, 0, 350, 350, 350, 350, 350, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 251, 0, 350, 251, 0, 251, 251, 251, 350, 251, 350, 251, 350, 251, 350, 350, 350, 350, 350, 350, 350, 251, 350, 350, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 492, 492, 492, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 251, 0, 492, 251, 0, 251, 251, 251, 492, 251, 492, 251, 492, 251, 492, 492, 492, 492, 492, 492, 492, 251, 492, 492, 251, 251, 251, 251, 251, 251, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 647, 514, 0, 0, 648, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 278, 167, 168, 278, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 278, 278, 0, 87, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 857, 509, 0, 0, 858, 0, 0, 0, 278, 0, 278, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 286, 170, 171, 172, 173, 0, 0, 0, 0, 0, 286, 0, 0, 278, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 0, 0, 0, 0, 0, 859, 514, 0, 0, 860, 0, 286, 0, 0, 286, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 286, 286, 169, 0, 0, 286, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 286, 186, 286, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 286, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 278, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 278, 278, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 278, 473, 473, 473, 473, 473, 278, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 0, 473, 473, 473, 473, 473, 473, 251, 251, 251, 0, 251, 286, 286, 286, 251, 251, 286, 286, 286, 251, 286, 251, 251, 251, 251, 251, 251, 251, 0, 0, 286, 286, 251, 251, 251, 251, 251, 251, 251, 286, 286, 0, 286, 286, 286, 286, 286, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 251, 0, 286, 251, 0, 251, 251, 251, 286, 251, 286, 251, 286, 251, 286, 286, 286, 286, 286, 286, 286, 251, 286, 472, 251, 251, 251, 251, 251, 251, 0, 0, 0, 472, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 76, 325, 0, 326, 327, 328, 329, 330, 331, 332, 0, 333, 0, 0, 0, 472, 0, 84, 0, 472, 309, 310, 311, 312, 313, 314, 315, 0, 0, 318, 319, 0, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 0, 324, 0, 325, 0, 326, 327, 328, 329, 330, 331, 332, 309, 333, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 322, 323, 473, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 324, 0, 325, 0, 326, 327, 328, 329, 0, 0, 332, 0, 333, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 86, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/buggy/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
21,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
576,
5026,
16,
225,
576,
5026,
16,
225,
890,
12416,
16,
225,
576,
5540,
16,
225,
576,
5026,... |
VM_SysCall.sysCreateThreadSpecificDataKeys(); | static void boot () throws InterruptiblePragma { if (VM.VerifyAssertions) VM._assert(1 <= numProcessors && numProcessors <= MAX_PROCESSORS); if (VM.TraceThreads) trace("VM_Scheduler.boot","numProcessors =", numProcessors); // Create a VM_Processor object for each virtual cpu that we'll be running. // Note that the VM_Processor object for the primordial processor // (the virtual cpu in whose context we are currently running) // was already created in the boot image by init(), above. // VM_Processor [] origProcs = processors; processors = new VM_Processor[1 + numProcessors]; for (int i = PRIMORDIAL_PROCESSOR_ID; i <= numProcessors; i++) { VM_Processor p = (i < origProcs.length) ? origProcs[i] : null; if (p == null) { processors[i] = new VM_Processor(i); } else { processors[i] = p; //-#if RVM_FOR_IA32 p.jtoc = VM_Magic.getJTOC(); // only needed for EXTRA_PROCS //-#endif } //-#if RVM_WITH_HPM // boot virtual processor's HPM producer if (VM_HardwarePerformanceMonitors.booted()) { processors[i].hpm.boot(); } //-#endif } // Create work queues. // wakeupQueue = new VM_ProxyWakeupQueue(); wakeupMutex = new VM_ProcessorLock(); debuggerQueue = new VM_ThreadQueue(); debuggerMutex = new VM_ProcessorLock(); collectorQueue = new VM_ThreadQueue(); collectorMutex = new VM_ProcessorLock(); finalizerQueue = new VM_ThreadQueue(); finalizerMutex = new VM_ProcessorLock(); deadVPQueue = new VM_ProcessorQueue(); availableProcessorQueue = new VM_ProcessorQueue(); VM_CollectorThread.boot(numProcessors); // Create one one idle thread per processor. // for (int i = 0; i < numProcessors; ++i) { int pid = i+1; VM_Thread t = new VM_IdleThread(processors[pid], pid != PRIMORDIAL_PROCESSOR_ID); processors[pid].idleQueue.enqueue(t); } // JNI support terminated = false; // the one we're running on processors[PRIMORDIAL_PROCESSOR_ID].isInitialized = true; // Create virtual cpu's. // if (!VM.singleVirtualProcessor) { if (!VM.withoutInterceptBlockingSystemCalls) { //-#if !RVM_WITHOUT_INTERCEPT_BLOCKING_SYSTEM_CALLS // Create thread-specific data key which will allow us to find // the correct VM_Processor from an arbitrary pthread. VM_SysCall.sysCreateThreadSpecificDataKeys(); //-#endif /// WE now insist on this happening, by using LD_PRELOAD on platforms /// that support it. Do it here for backup. // Enable spoofing of blocking native select calls System.loadLibrary("syswrap"); } VM_SysCall.sysInitializeStartupLocks(numProcessors); if (cpuAffinity != NO_CPU_AFFINITY) VM_SysCall.sysVirtualProcessorBind(cpuAffinity + PRIMORDIAL_PROCESSOR_ID - 1); // bind it to a physical cpu for (int i = PRIMORDIAL_PROCESSOR_ID; ++i <= numProcessors; ) { // create VM_Thread for virtual cpu to execute // VM_Thread target = processors[i].idleQueue.dequeue(); // Create a virtual cpu and wait for execution to enter the target's // code/stack. // This is done with GC disabled to ensure that the garbage collector // doesn't move code or stack before the C startoff function has a // chance to transfer control into the VM image. // if (VM.TraceThreads) trace("VM_Scheduler.boot", "starting processor id", i); processors[i].activeThread = target; processors[i].activeThreadStackLimit = target.stackLimit; target.registerThread(); // let scheduler know that thread is active. if (VM.BuildForPowerPC) { //-#if RVM_FOR_POWERPC // NOTE: It is critical that we acquire the tocPointer explicitly // before we start the SysCall sequence. This prevents // the opt compiler from generating code that passes the AIX // sys toc instead of the RVM jtoc. --dave Address toc = VM_Magic.getTocPointer(); VM_SysCall. sysVirtualProcessorCreate(toc, VM_Magic.objectAsAddress(processors[i]), target.contextRegisters.ip, target.contextRegisters.getInnermostFramePointer()); if (cpuAffinity != NO_CPU_AFFINITY) VM_SysCall.sysVirtualProcessorBind(cpuAffinity + i - 1); // bind it to a physical cpu //-#endif } else if (VM.BuildForIA32) { VM_SysCall.sysVirtualProcessorCreate(VM_Magic.getTocPointer(), VM_Magic.objectAsAddress(processors[i]), target.contextRegisters.ip, target.contextRegisters.getInnermostFramePointer()); } } // wait for everybody to start up // VM_SysCall.sysWaitForVirtualProcessorInitialization(); } allProcessorsInitialized = true; // for (int i = PRIMORDIAL_PROCESSOR_ID; i <= numProcessors; ++i) // processors[i].enableThreadSwitching(); VM_Processor.getCurrentProcessor().enableThreadSwitching(); // Start interrupt driven timeslicer to improve threading fairness and responsiveness. // schedulingQuantum = VM.interruptQuantum * VM.schedulingMultiplier; if (VM.TraceThreads) { VM.sysWrite(" schedulingQuantum " + schedulingQuantum); VM.sysWrite(" = VM.interruptQuantum " +VM.interruptQuantum); VM.sysWrite(" * VM.schedulingMultiplier "+VM.schedulingMultiplier); VM.sysWriteln(); } VM_SysCall.sysVirtualProcessorEnableTimeSlicing(VM.interruptQuantum); // Allow virtual cpus to commence feeding off the work queues. // if (! VM.singleVirtualProcessor) VM_SysCall.sysWaitForMultithreadingStart(); //-#if RVM_WITH_OSR OSR_ObjectHolder.boot(); //-#endif // Start collector threads on each VM_Processor. for (int i = 0; i < numProcessors; ++i) { VM_Thread t = VM_CollectorThread.createActiveCollectorThread(processors[1+i]); t.start(processors[1+i].readyQueue); } // Start the G.C. system. // Create the FinalizerThread FinalizerThread tt = new FinalizerThread(); tt.makeDaemon(true); tt.start(); //-#if !RVM_WITHOUT_INTERCEPT_BLOCKING_SYSTEM_CALLS if (!VM.withoutInterceptBlockingSystemCalls) // Store VM_Processor in pthread VM_Processor.getCurrentProcessor().stashProcessorInPthread(); //-#endif } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/2edc02b81b053daf22a98ef8afad1ffc18e9ad5c/VM_Scheduler.java/buggy/rvm/src/vm/scheduler/VM_Scheduler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
4835,
1832,
1216,
3094,
4483,
1523,
2050,
9454,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
21,
1648,
818,
18155,
597,
818,
18155,
1648,
4552,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
4835,
1832,
1216,
3094,
4483,
1523,
2050,
9454,
288,
565,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
21,
1648,
818,
18155,
597,
818,
18155,
1648,
4552,
67,... | |
void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; } System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); synchronized(this) { while(revocationDNFCounter < 3) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet-cvs-snapshot.jar"); File fNew = new File("freenet-cvs-snapshot.jar.new"); boolean nastyRestart = false; if(File.separatorChar != '\\') { // Do nothing. } else { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.err.println("ERROR renaming the file!"); return; } } } else { // Hard way. if(!WrapperManager.isControlledByNativeWrapper()) { Logger.error(this, "Cannot update because not running under wrapper"); System.err.println("Cannot update because not running under wrapper"); return; } try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } } if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } System.err.println("WTF? Restart returned!?"); }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/0ce52e9ff1e0048c34e8d11f2ad596bc8936f6e9/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747... | ||
System.err.println("******************************************"); System.err.println("DEBUG GenericTablePlugin.isCapable for Exceptions!!!"); System.err.println("Cluster: "+getMessageAddress()); System.err.println("Arguments:"); System.err.println(" org: "+org); | logger.debug("******************************************"); logger.debug("DEBUG GenericTablePlugin.isCapable for Exceptions!!!"); logger.debug("Cluster: "+getMessageAddress()); logger.debug("Arguments:"); logger.debug(" org: "+org); | protected boolean DEBUGisCapable(Organization org, String name, String[] roles) { System.err.println("******************************************"); System.err.println("DEBUG GenericTablePlugin.isCapable for Exceptions!!!"); System.err.println("Cluster: "+getMessageAddress()); System.err.println("Arguments:"); System.err.println(" org: "+org); if (name != null) System.err.println(" name: "+name); if (roles != null) System.err.println(" roles["+roles.length+"]: "+roles); try { if (name != null) { // If name is specified, it alone qualifies! System.err.println("check name:"); System.err.println(" org.getMessageAddress(): "); System.err.println(" "+org.getMessageAddress()); System.err.println(" .getAddress(): "); System.err.println(" "+ ((MessageAddress)org.getMessageAddress()).getAddress()); System.err.println(" .equals("+name+"): "); String clustername = ((MessageAddress)org.getMessageAddress()).getAddress(); System.err.println(" "+ clustername.equals(name)); return clustername.equals(name); } boolean direct = true; if (roles != null) { RelationshipSchedule schedule = org.getRelationshipSchedule(); for (int i=0; i<roles.length; i++) { String findRole = roles[i]; System.err.println(" findRole["+i+ " of "+roles.length+"]: "+findRole); Collection orgCollection = schedule.getMatchingRelationships(Role.getRole(roles[i]).getConverse(), TimeSpan.MIN_VALUE, TimeSpan.MAX_VALUE); if (orgCollection.size() == 0) { return false; } System.err.println("Matching relationships: " + orgCollection); } // Good: Org has all the roles } System.err.println(" NO ERRORS???"); System.err.println("******************************************"); return true; } catch (Exception e) { System.err.println("**** PREVIOUS CAUSED EXCEPTION "+e+" ****"); e.printStackTrace(); System.err.println("******************************************"); return false; } } | 7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/55fe63c22a50f50bcf86ce7b88faf2e58e2e557a/GenericTablePlugin.java/buggy/glm/src/org/cougaar/mlm/plugin/generic/GenericTablePlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
6369,
291,
4664,
429,
12,
8113,
2358,
16,
1377,
514,
508,
16,
514,
8526,
4900,
13,
288,
565,
2332,
18,
370,
18,
8222,
2932,
5021,
1644,
636,
8863,
565,
2332,
18,
370,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
6369,
291,
4664,
429,
12,
8113,
2358,
16,
1377,
514,
508,
16,
514,
8526,
4900,
13,
288,
565,
2332,
18,
370,
18,
8222,
2932,
5021,
1644,
636,
8863,
565,
2332,
18,
370,
18,
... |
StepMeta tostep = new StepMeta(log, tostepid, tostepname, (StepMetaInterface)toi ); | StepMeta tostep = new StepMeta(tostepid, tostepname, (StepMetaInterface)toi ); | public boolean copyTable( DatabaseMeta sourceDBInfo, DatabaseMeta targetDBInfo, String tablename ) { try { // // Create a new transformation... // TransMeta meta = new TransMeta(); meta.setDatabases(transMeta.getDatabases()); // // Add a note // String note = Messages.getString("Spoon.Message.Note.ReadInformationFromTableOnDB",tablename,sourceDBInfo.getDatabaseName() )+Const.CR;//"Reads information from table ["+tablename+"] on database ["+sourceDBInfo+"]" note+=Messages.getString("Spoon.Message.Note.WriteInformationToTableOnDB",tablename,targetDBInfo.getDatabaseName() );//"After that, it writes the information to table ["+tablename+"] on database ["+targetDBInfo+"]" NotePadMeta ni = new NotePadMeta(note, 150, 10, -1, -1); meta.addNote(ni); // // create the source step... // String fromstepname = Messages.getString("Spoon.Message.Note.ReadFromTable",tablename); //"read from ["+tablename+"]"; TableInputMeta tii = new TableInputMeta(); tii.setDatabaseMeta(sourceDBInfo); tii.setSQL("SELECT * FROM "+tablename); StepLoader steploader = StepLoader.getInstance(); String fromstepid = steploader.getStepPluginID(tii); StepMeta fromstep = new StepMeta(log, fromstepid, fromstepname, (StepMetaInterface)tii ); fromstep.setLocation(150,100); fromstep.setDraw(true); fromstep.setDescription(Messages.getString("Spoon.Message.Note.ReadInformationFromTableOnDB",tablename,sourceDBInfo.getDatabaseName() )); meta.addStep(fromstep); // // add logic to rename fields in case any of the field names contain reserved words... // Use metadata logic in SelectValues, use SelectValueInfo... // Database sourceDB = new Database(sourceDBInfo); sourceDB.connect(); // Get the fields for the input table... Row fields = sourceDB.getTableFields(tablename); // See if we need to deal with reserved words... int nrReserved = targetDBInfo.getNrReservedWords(fields); if (nrReserved>0) { SelectValuesMeta svi = new SelectValuesMeta(); svi.allocate(0,0,nrReserved); int nr = 0; for (int i=0;i<fields.size();i++) { Value v = fields.getValue(i); if (targetDBInfo.isReservedWord( v.getName() ) ) { svi.getMetaName()[nr] = v.getName(); svi.getMetaRename()[nr] = targetDBInfo.quoteField( v.getName() ); nr++; } } String selstepname =Messages.getString("Spoon.Message.Note.HandleReservedWords"); //"Handle reserved words"; String selstepid = steploader.getStepPluginID(svi); StepMeta selstep = new StepMeta(log, selstepid, selstepname, (StepMetaInterface)svi ); selstep.setLocation(350,100); selstep.setDraw(true); selstep.setDescription(Messages.getString("Spoon.Message.Note.RenamesReservedWords",targetDBInfo.getDatabaseTypeDesc()) );//"Renames reserved words for "+targetDBInfo.getDatabaseTypeDesc() meta.addStep(selstep); TransHopMeta shi = new TransHopMeta(fromstep, selstep); meta.addTransHop(shi); fromstep = selstep; } // // Create the target step... // // // Add the TableOutputMeta step... // String tostepname = Messages.getString("Spoon.Message.Note.WriteToTable",tablename); // "write to ["+tablename+"]"; TableOutputMeta toi = new TableOutputMeta(); toi.setDatabase( targetDBInfo ); toi.setTablename( tablename ); toi.setCommitSize( 200 ); toi.setTruncateTable( true ); String tostepid = steploader.getStepPluginID(toi); StepMeta tostep = new StepMeta(log, tostepid, tostepname, (StepMetaInterface)toi ); tostep.setLocation(550,100); tostep.setDraw(true); tostep.setDescription(Messages.getString("Spoon.Message.Note.WriteInformationToTableOnDB2",tablename,targetDBInfo.getDatabaseName() ));//"Write information to table ["+tablename+"] on database ["+targetDBInfo+"]" meta.addStep(tostep); // // Add a hop between the two steps... // TransHopMeta hi = new TransHopMeta(fromstep, tostep); meta.addTransHop(hi); // OK, if we're still here: overwrite the current transformation... transMeta = meta; refreshGraph(); refreshTree(true); } catch(Exception e) { new ErrorDialog(shell, Messages.getString("Spoon.Dialog.UnexpectedError.Title"), Messages.getString("Spoon.Dialog.UnexpectedError.Message"), new KettleException(e.getMessage(), e));//"Unexpected error" "An unexpected error occurred creating the new transformation" return false; } return true; } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/fed9129857548e5fca3439f1b27d3270bc04e060/Spoon.java/clean/src/be/ibridge/kettle/spoon/Spoon.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1610,
1388,
12,
5130,
2781,
1084,
2290,
966,
16,
5130,
2781,
1018,
2290,
966,
16,
17311,
514,
19096,
18701,
262,
565,
288,
3639,
775,
3639,
288,
5411,
368,
5411,
368,
1788,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1610,
1388,
12,
5130,
2781,
1084,
2290,
966,
16,
5130,
2781,
1018,
2290,
966,
16,
17311,
514,
19096,
18701,
262,
565,
288,
3639,
775,
3639,
288,
5411,
368,
5411,
368,
1788,
27... |
if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; | public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; double time_other = ((RubyNumeric) other).getDoubleValue(); if (time > time_other) { return RubyFixnum.one(getRuntime()); } else if (time < time_other) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime()); } long millis_other = RubyNumeric.num2long(other) * 1000; if (millis > millis_other || (millis == millis_other && usec > 0)) { return RubyFixnum.one(getRuntime()); } else if (millis < millis_other || (millis == millis_other && usec < 0)) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime()); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/clean/src/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
18,
291,
12616,
10756,
288,
540,
202,
2463,
1308,
31,
3639,
289,
7734,
309,
261,
3011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
18,
291,
12616,
10756,
288,
540,
202,
2463,
1308,
31,
3639,
289,
7734,
309,
261,
3011,
... | |
ret = _stats.getNumberOfArrayLists(); | public int getNumberOfElements(int type) { int ret = -1; switch (type) { case HASH_TABLE: ret = _stats.getNumberOfHashtables(); break; case HASH_SET: //ret = _stats.getNumberOfHashSets(); break; case HASH_MAP: //ret = _stats.getNumberOfHashMaps(); break; case ARRAY_LIST: //ret = _stats.getNumberOfArrayLists(); break; case IDENTITY_HASH_MAP: //ret = _stats.getNumberOfIdentityHashMaps(); break; case LINKED_HASH_MAP: //ret = _stats.getNumberOfLinkedHashMaps(); break; case LINKED_HASH_SET: //ret = _stats.getNumberOfLinkedHashSets(); break; case LINKED_LIST: //ret = _stats.getNumberOfLinkedLists(); break; case STACK: //ret = _stats.getNumberOfStacks(); break; case TREE_MAP: //ret = _stats.getNumberOfTreeMaps(); break; case TREE_SET: //ret = _stats.getNumberOfTreeSets(); break; case VECTOR: //ret = _stats.getNumberOfVectors(); break; case WEAK_HASH_MAP: //ret = _stats.getNumberOfWeakHashMaps(); break; default: ret = -1; } return ret; } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/3a97e6530fe13d8c0788d24f8cd1930684e65afd/CollectionUtil.java/buggy/securityservices/src/org/cougaar/core/security/test/memory/CollectionUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
325,
273,
389,
5296,
18,
588,
9226,
1076,
7432,
5621,
325,
273,
389,
5296,
18,
588,
9226,
1076,
7432,
5621,
1071,
1349,
273,
389,
5296,
18,
588,
9226,
1076,
7432,
5621,
509,
1349,
273,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
325,
273,
389,
5296,
18,
588,
9226,
1076,
7432,
5621,
325,
273,
389,
5296,
18,
588,
9226,
1076,
7432,
5621,
1071,
1349,
273,
389,
5296,
18,
588,
9226,
1076,
7432,
5621,
509,
1349,
273,
389,
... | |
private void adjustForground(StyleRange styleRange) { RGB oldRGB = null; //Color oldColor = styleRange.foreground; Color oldColor = styleRange.background; if (oldColor == null) { //oldRGB = getTextWidget().getForeground().getRGB(); oldColor = getTextWidget().getBackground(); oldRGB = oldColor.getRGB(); } else { oldRGB = oldColor.getRGB(); } Color newColor = getCachedColorFor(oldRGB); if (newColor == null) { // make text "closer to" background lumanence double target = getRGBConverter().calculateYComponent(oldColor); RGB newRGB = getRGBConverter().transformRGBToGrey(oldRGB, readOnlyForegroundScaleFactor / 100.0, target); // save conversion, so calculations only need to be done once cacheColor(oldRGB, newRGB); newColor = getCachedColorFor(oldRGB); } styleRange.foreground = newColor; } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/791611f2da8627e0accb507a70c293529c4f39ae/Highlighter.java/buggy/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/style/Highlighter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5765,
1290,
2915,
12,
2885,
2655,
2154,
2655,
13,
288,
202,
202,
11343,
1592,
11343,
273,
446,
31,
202,
202,
759,
2957,
1592,
2957,
273,
2154,
2655,
18,
1405,
2915,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5765,
1290,
2915,
12,
2885,
2655,
2154,
2655,
13,
288,
202,
202,
11343,
1592,
11343,
273,
446,
31,
202,
202,
759,
2957,
1592,
2957,
273,
2154,
2655,
18,
1405,
2915,
31,
... | ||
protected void processRow(ResultSet rs) throws SQLException { | public void processRow(ResultSet rs) throws SQLException { | static private PollableNetwork createPollableNetwork(final DbConnectionFactory db, final ScheduleTimer scheduler, final PollerConfig pollerConfig, final PollOutagesConfig pollOutageConfig, PollContext pollContext) throws UnknownHostException { final PollableNetwork pNetwork = new PollableNetwork(pollContext); String sql = "select ifServices.nodeId as nodeId, ifServices.ipAddr as ipAddr, ifServices.serviceId as serviceId, service.serviceName as serviceName, outages.svcLostEventId as svcLostEventId, events.eventUei as svcLostEventUei, outages.ifLostService as ifLostService, outages.ifRegainedService as ifRegainedService " + "from ifServices " + "join service on ifServices.serviceId = service.serviceId " + "left outer join outages on " + "ifServices.nodeId = outages.nodeId and " + "ifServices.ipAddr = outages.ipAddr and " + "ifServices.serviceId = outages.serviceId and " + "ifRegainedService is null " + "left outer join events on outages.svcLostEventId = events.eventid " + "where ifServices.status = 'A'"; final InitCause causeSetter = new InitCause(); Querier querier = new Querier(db, sql) { protected void processRow(ResultSet rs) throws SQLException { int nodeId = rs.getInt("nodeId"); String ipAddr = rs.getString("ipAddr"); String serviceName = rs.getString("serviceName"); Package pkg = findPackageForService(ipAddr, serviceName); if (pkg == null) { MockUtil.println("No package for service "+serviceName+" with ipAddr "+ipAddr); return; } try { PollableService svc = pNetwork.createService(nodeId, InetAddress.getByName(ipAddr), serviceName); PollableServiceConfig pollConfig = new PollableServiceConfig(svc, pollerConfig, pollOutageConfig, pkg, scheduler); Schedule schedule = new Schedule(svc, pollConfig, scheduler); svc.setPollConfig(pollConfig); svc.setSchedule(schedule); Number svcLostEventId = (Number)rs.getObject("svcLostEventId"); //MockUtil.println("svcLostEventId for "+svc+" is "+svcLostEventId); if (svcLostEventId == null) svc.updateStatus(PollStatus.STATUS_UP); else { svc.updateStatus(PollStatus.STATUS_DOWN); Date date = rs.getTimestamp("ifLostService"); PollEvent cause = new DbPollEvent(svcLostEventId.intValue(), date); String svcLostUei = rs.getString("svcLostEventUei"); causeSetter.setCause(cause); if (EventConstants.NODE_LOST_SERVICE_EVENT_UEI.equals(svcLostUei)) { svc.visit(causeSetter); } else if (EventConstants.INTERFACE_DOWN_EVENT_UEI.equals(svcLostUei)) { svc.getInterface().visit(causeSetter); } else if (EventConstants.NODE_DOWN_EVENT_UEI.equals(svcLostUei)) { svc.getNode().visit(causeSetter); } } // schedule.schedule(); //MockUtil.println("Created Pollable Service "+svc+" with package "+pkg.getName()); } catch (UnknownHostException e) { // in 'real life' I would just log this and contine with the others throw new RuntimeException("Error converting "+ipAddr+" to an InetAddress", e); } } private Package findPackageForService(String ipAddr, String serviceName) { Enumeration en = pollerConfig.enumeratePackage(); Package lastPkg = null; while (en.hasMoreElements()) { Package pkg = (Package)en.nextElement(); if (pollableServiceInPackage(ipAddr, serviceName, pkg)) lastPkg = pkg; } return lastPkg; } private boolean pollableServiceInPackage(String ipAddr, String serviceName, Package pkg) { return (pollerConfig.serviceInPackageAndEnabled(serviceName, pkg) && pollerConfig.interfaceInPackage(ipAddr, pkg)); } }; querier.execute(); pNetwork.recalculateStatus(); pNetwork.resetStatusChanged(); return pNetwork; } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/5be4fb34447a088e813f238214d9ea253bdce022/PollablesTest.java/buggy/src/services/org/opennms/netmgt/poller/pollables/PollablesTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3238,
19160,
429,
3906,
752,
19085,
429,
3906,
12,
6385,
8408,
18749,
1319,
16,
727,
10674,
6777,
8129,
16,
727,
6730,
749,
809,
24525,
809,
16,
727,
19160,
1182,
1023,
809,
7672,
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,
377,
760,
3238,
19160,
429,
3906,
752,
19085,
429,
3906,
12,
6385,
8408,
18749,
1319,
16,
727,
10674,
6777,
8129,
16,
727,
6730,
749,
809,
24525,
809,
16,
727,
19160,
1182,
1023,
809,
7672,
11... |
return this.sinks.getPorts(); | return sinks.getPorts(); | public Port[] getWorkflowSinkPorts() { return this.sinks.getPorts(); } | 7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/8ee30dc13f49e8311cee997aea100935bc7e0c4f/ScuflModel.java/clean/trunk/taverna1.0/scufl/scufl-model/src/main/java/org/embl/ebi/escience/scufl/ScuflModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6008,
8526,
30995,
11326,
11107,
1435,
288,
202,
202,
2463,
333,
18,
17074,
87,
18,
588,
11107,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6008,
8526,
30995,
11326,
11107,
1435,
288,
202,
202,
2463,
333,
18,
17074,
87,
18,
588,
11107,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for (int i = 0; i < catalog.getLodgings().length; i++) { Object selection = catalog.getLodgings()[i]; cviewer.setSelection(new StructuredSelection(selection)); assertEquals(selection, skiAdventure.getDefaultLodging()); assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); } | getDbc().bindValue(ViewersObservables.observeSingleSelection(cviewer), BeansObservables.observeValue(skiAdventure, "defaultLodging"), null); | public void test_ROCombo_Scenario03_vanilla() { Adventure skiAdventure = SampleData.WINTER_HOLIDAY; // selection will // change its defaultLodging cviewer.setLabelProvider(lodgingLabelProvider); // Bind the ComboViewer's content to the available lodging cviewer.setContentProvider(new ObservableListContentProvider()); cviewer.setLabelProvider(new LabelProvider() { public String getText(Object element) { return ((Lodging) element).getName(); } }); IObservableList list = new WritableList(Lodging.class); list.addAll(Arrays.asList(catalog.getLodgings())); cviewer.setInput(list); // Ensure that cv's content now has the catalog's lodgings assertArrayEquals(catalog.getLodgings(), getViewerContent(cviewer).toArray()); // Ensure that the cv's labels are the same as the lodging descriptions assertEquals(getColumn(catalog.getLodgings(), "name"), getComboContent()); getDbc().bindValue(ViewersObservables.observeSingleSelection(cviewer), BeansObservables.observeValue(skiAdventure, "defaultLodging"), null); // Check to see that the initial selection is the currentDefault Lodging assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); // Change the selection of the ComboViewer to all possible lodgings, and // verify that skiAdventure's default lodging was changed accordingly for (int i = 0; i < catalog.getLodgings().length; i++) { Object selection = catalog.getLodgings()[i]; cviewer.setSelection(new StructuredSelection(selection)); assertEquals(selection, skiAdventure.getDefaultLodging()); assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a469cb14d7815f1d5dea6c4a44ea9ea80e229bed/ComboScenarios.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/ComboScenarios.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
1457,
16156,
67,
21390,
4630,
67,
90,
26476,
1435,
288,
3639,
4052,
616,
594,
4343,
77,
1871,
616,
594,
273,
11474,
751,
18,
59,
9125,
67,
44,
1741,
734,
5255,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
1457,
16156,
67,
21390,
4630,
67,
90,
26476,
1435,
288,
3639,
4052,
616,
594,
4343,
77,
1871,
616,
594,
273,
11474,
751,
18,
59,
9125,
67,
44,
1741,
734,
5255,
31,
... |
private void makeSlantedRectangle(Polygon poly, Point lowerCorner, double polarlength, double angle, int width){ | private void makeSlantedRectangle(Polygon poly, double[] polarlength, double[] angle, int node, int motherN, int width){ | private void makeSlantedRectangle(Polygon poly, Point lowerCorner, double polarlength, double angle, int width){ Point loc = new Point(); poly.npoints=0; poly.addPoint(lowerCorner.x, lowerCorner.y); nodePolarToLoc (polarlength, angle, lowerCorner, loc); poly.addPoint(loc.x, loc.y); nodePolarToLoc (width, angle + Math.PI/2, loc, loc); poly.addPoint(loc.x, loc.y); nodePolarToLoc (polarlength, angle + Math.PI, loc, loc); poly.addPoint(loc.x, loc.y); poly.addPoint(lowerCorner.x, lowerCorner.y); poly.npoints=5; } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/f2a5ece689b0fe22a409c5c1b478caa4694a391f/CircularTree.java/clean/trunk/Mesquite Project/Source/mesquite/ornamental/CircularTree/CircularTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1221,
3738,
970,
329,
19463,
12,
11787,
7573,
16,
4686,
2612,
23145,
16,
1645,
24244,
2469,
16,
1645,
5291,
16,
509,
1835,
15329,
202,
202,
2148,
1515,
273,
394,
4686,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1221,
3738,
970,
329,
19463,
12,
11787,
7573,
16,
4686,
2612,
23145,
16,
1645,
24244,
2469,
16,
1645,
5291,
16,
509,
1835,
15329,
202,
202,
2148,
1515,
273,
394,
4686,
562... |
ArrayList list = Notation.getAvailableNotations(); | List list = Notation.getAvailableNotations(); | public void actionPerformed(ActionEvent ae) { String key = ae.getActionCommand(); ArrayList list = Notation.getAvailableNotations(); ListIterator iterator = list.listIterator(); while (iterator.hasNext()) { Object o = iterator.next(); if (o instanceof NotationName) { NotationName nn = (NotationName) o; if (key.equals(nn.getTitle())) { Notation.setDefaultNotation(nn); break; } } } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/cae60089e5b849ef32abde8e017b3d134fc43062/ActionNotation.java/buggy/src_new/org/argouml/language/ui/ActionNotation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
3639,
514,
498,
273,
14221,
18,
588,
1803,
2189,
5621,
3639,
987,
666,
273,
2288,
367,
18,
588,
5268,
1248,
1012,
5621,
3639,
987,
3198,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
3639,
514,
498,
273,
14221,
18,
588,
1803,
2189,
5621,
3639,
987,
666,
273,
2288,
367,
18,
588,
5268,
1248,
1012,
5621,
3639,
987,
3198,
... |
if (!(obj instanceof Scriptable) || obj == Context.getUndefinedValue()) | if (obj instanceof NativeString || obj instanceof NativeArray) { return true; } else if (!(obj instanceof Scriptable) || obj == Undefined.instance) { | static boolean hasLengthProperty(Object obj) { if (!(obj instanceof Scriptable) || obj == Context.getUndefinedValue()) return false; if (obj instanceof NativeString || obj instanceof NativeArray) return true; Scriptable sobj = (Scriptable)obj; // XXX some confusion as to whether or not to walk to get the length // property. Pending review of js/[new ecma submission] treatment // of 'arrayness'. Object property = ScriptRuntime.getProp(sobj, "length", sobj); return property instanceof Number; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/9a4a059b275cc2eb1fb0e0946f333dc746b26cc2/NativeArray.java/clean/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1250,
711,
1782,
1396,
12,
921,
1081,
13,
288,
3639,
309,
261,
2603,
1276,
16717,
780,
747,
1081,
1276,
16717,
1076,
13,
288,
327,
638,
31,
289,
469,
309,
16051,
12,
2603,
1276,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1250,
711,
1782,
1396,
12,
921,
1081,
13,
288,
3639,
309,
261,
2603,
1276,
16717,
780,
747,
1081,
1276,
16717,
1076,
13,
288,
327,
638,
31,
289,
469,
309,
16051,
12,
2603,
1276,
22... |
final int mode = ListSelectionModel.MULTIPLE_SELECTION == listBox1.getSelectionMode() ? ListSelectionModel.SINGLE_SELECTION : ListSelectionModel.MULTIPLE_SELECTION; apply(new Applicator() { | apply(new Applicator(){ | public void actionPerformed(ActionEvent e) { final int mode = ListSelectionModel.MULTIPLE_SELECTION == listBox1.getSelectionMode() ? ListSelectionModel.SINGLE_SELECTION : ListSelectionModel.MULTIPLE_SELECTION; apply(new Applicator() { public void apply(AbstractListComponent listComponent) { if (!(listComponent instanceof ListBox)) { return; } ((ListBox) listComponent).setSelectionMode(mode); } }); } | 45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/eadbd78d0a6527ff70a01f0bd1c5ac7bbf65afec/ListBoxTest.java/buggy/src/testapp/interactive/java/nextapp/echo2/testapp/interactive/testscreen/ListBoxTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
727,
509,
1965,
273,
987,
6233,
1488,
18,
24683,
900,
67,
1090,
15445,
422,
666,
3514,
21,
18,
588,
6233,
2309,
1435,
13491,
692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
727,
509,
1965,
273,
987,
6233,
1488,
18,
24683,
900,
67,
1090,
15445,
422,
666,
3514,
21,
18,
588,
6233,
2309,
1435,
13491,
692,
... |
name += t.getImage(); | buffer.append( t.getImage() ); | public String toString() { Token t = nameStart; String name = t.getImage(); while (t != nameEnd) { t = t.getNext(); name += t.getImage(); } return name; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/46d2f50c480e3dfb4d8f55d2c3863072f6a718b0/Name.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/util/Name.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
1345,
268,
273,
508,
1685,
31,
202,
202,
780,
508,
273,
268,
18,
588,
2040,
5621,
9506,
202,
17523,
261,
88,
480,
508,
1638,
13,
288,
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,
514,
1762,
1435,
288,
202,
202,
1345,
268,
273,
508,
1685,
31,
202,
202,
780,
508,
273,
268,
18,
588,
2040,
5621,
9506,
202,
17523,
261,
88,
480,
508,
1638,
13,
288,
1082,
2... |
if (fAttrListHandle != -1) { | if (fAttrListHandle != -1 || !fSeenRootElement) { | private void bindNamespacesToElementAndAttributes(QName element, XMLAttrList attrList) throws Exception { fNamespacesScope.increaseDepth(); if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attName = attrList.getAttrName(index); int attPrefix = attrList.getAttrPrefix(index); if (fStringPool.equalNames(attName, fXMLLang)) { /*** // NOTE: This check is done in the validateElementsAndAttributes // method. fDocumentScanner.checkXMLLangAttributeValue(attrList.getAttValue(index)); /***/ } else if (fStringPool.equalNames(attName, fNamespacesPrefix)) { int uri = fStringPool.addSymbol(attrList.getAttValue(index)); fNamespacesScope.setNamespaceForPrefix(StringPool.EMPTY_STRING, uri); } else { if (attPrefix == fNamespacesPrefix) { int nsPrefix = attrList.getAttrLocalpart(index); int uri = fStringPool.addSymbol(attrList.getAttValue(index)); fNamespacesScope.setNamespaceForPrefix(nsPrefix, uri); if (fValidating && fSchemaValidation) { boolean seeXsi = false; String attrValue = fStringPool.toString(attrList.getAttValue(index)); if (attrValue.equals(SchemaSymbols.URI_XSI)) { fXsiPrefix = nsPrefix; seeXsi = true; } } } } index = attrList.getNextAttr(index); } String location = null; String uri = null; // if validating, walk through the list again to deal with "xsi:...." if (fValidating && fSchemaValidation) { fLocationUriPairs.clear(); if (!fSeenRootElement) { // we are at the root element // and user set property on the parser to include external schemas // if (fExternalSchemas != null && fExternalSchemas.length()!=0) { parseSchemaLocation(fExternalSchemas); } if (fExternalNoNamespaceSchema!=null && fExternalNoNamespaceSchema.length() !=0 ) { fLocationUriPairs.put(fExternalNoNamespaceSchema, ""); //REVISIT: wrong solution (see AndyC note below) if (fNamespacesScope != null) { //bind prefix "" to URI "" in this case fNamespacesScope.setNamespaceForPrefix( fStringPool.addSymbol(""), fStringPool.addSymbol("")); } } parseSchemas(); fLocationUriPairs.clear(); } fXsiTypeAttValue = -1; index = attrList.getFirstAttr(fAttrListHandle); int attName; int attPrefix; while (index != -1) { attName = attrList.getAttrName(index); attPrefix = attrList.getAttrPrefix(index); if (fStringPool.equalNames(attName, fNamespacesPrefix)) { // REVISIT } else { if ( DEBUG_SCHEMA_VALIDATION ) { System.out.println("deal with XSI"); System.out.println("before find XSI: "+fStringPool.toString(attPrefix) +","+fStringPool.toString(fXsiPrefix) ); } if ( fXsiPrefix != -1 && attPrefix == fXsiPrefix ) { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("find XSI: "+fStringPool.toString(attPrefix) +","+fStringPool.toString(attName) ); } int localpart = attrList.getAttrLocalpart(index); if (localpart == fStringPool.addSymbol(SchemaSymbols.XSI_SCHEMALOCACTION)) { parseSchemaLocation(fStringPool.toString(attrList.getAttValue(index))); } else if (localpart == fStringPool.addSymbol(SchemaSymbols.XSI_NONAMESPACESCHEMALOCACTION)) { fLocationUriPairs.put(fStringPool.toString(attrList.getAttValue(index)), ""); /***/ // NOTE: This is the *wrong* solution to the problem // of finding the grammar associated to elements // when the grammar does *not* have a target // namespace!!! -Ac if (fNamespacesScope != null) { //bind prefix "" to URI "" in this case fNamespacesScope.setNamespaceForPrefix( fStringPool.addSymbol(""), fStringPool.addSymbol("")); } /***/ } else if ( localpart == fStringPool.addSymbol(SchemaSymbols.XSI_TYPE) ) { fXsiTypeAttValue = attrList.getAttValue(index); } else if ( localpart == fStringPool.addSymbol(SchemaSymbols.ATT_NIL) ) { fNil = (fStringPool.toString(attrList.getAttValue(index)).equals("true")) ? true: false; } // REVISIT: should we break here? //break; } } index = attrList.getNextAttr(index); } parseSchemas (); } } // bind element to URI int prefix = element.prefix != -1 ? element.prefix : 0; int uri = fNamespacesScope.getNamespaceForPrefix(prefix); if (element.prefix != -1 || uri != StringPool.EMPTY_STRING) { element.uri = uri; if (element.uri == StringPool.EMPTY_STRING) { Object[] args = { fStringPool.toString(element.prefix)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XMLNS_DOMAIN, XMLMessages.MSG_PREFIX_DECLARED, XMLMessages.NC_PREFIX_DECLARED, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } } if (fAttrListHandle != -1) { int index = attrList.getFirstAttr(fAttrListHandle); while (index != -1) { int attName = attrList.getAttrName(index); if (!fStringPool.equalNames(attName, fNamespacesPrefix)) { int attPrefix = attrList.getAttrPrefix(index); if (attPrefix != fNamespacesPrefix) { if (attPrefix != -1 ) { int attrUri = fNamespacesScope.getNamespaceForPrefix(attPrefix); if (attrUri == -1) { Object[] args = { fStringPool.toString(attPrefix)}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XMLNS_DOMAIN, XMLMessages.MSG_PREFIX_DECLARED, XMLMessages.NC_PREFIX_DECLARED, args, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); } attrList.setAttrURI(index, attrUri); } } } index = attrList.getNextAttr(index); } } } // bindNamespacesToElementAndAttributes(QName,XMLAttrList) | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/4b446585af3fa2dad6a5e7c60dbc478d7ea79d2d/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1993,
13180,
774,
1046,
1876,
2498,
12,
13688,
930,
16,
4766,
5397,
3167,
3843,
682,
1604,
682,
13,
282,
1216,
1185,
288,
1377,
284,
13180,
3876,
18,
267,
11908,
6148,
5621,
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,
565,
3238,
918,
1993,
13180,
774,
1046,
1876,
2498,
12,
13688,
930,
16,
4766,
5397,
3167,
3843,
682,
1604,
682,
13,
282,
1216,
1185,
288,
1377,
284,
13180,
3876,
18,
267,
11908,
6148,
5621,
37... |
excBuf[exc+i] += innov[i]*scale; | excBuf[exc+i] += innov[i] * scale; | public int encode(final Bits bits, final float[] in) { int i; float[] mem, innov, syn_resp; float[] low_pi_gain, low_exc, low_innov; int dtx; /* Compute the two sub-bands by filtering with h0 and h1*/ Filters.qmf_decomp(in, h0, x0d, x1d, fullFrameSize, QMF_ORDER, h0_mem); /* Encode the narrowband part*/ lowenc.encode(bits, x0d); /* High-band buffering / sync with low band */ for (i=0;i<windowSize-frameSize;i++) high[i] = high[frameSize+i]; for (i=0;i<frameSize;i++) high[windowSize-frameSize+i]=x1d[i]; System.arraycopy(excBuf, frameSize, excBuf, 0, bufSize-frameSize); low_pi_gain = lowenc.getPiGain(); low_exc = lowenc.getExc(); low_innov = lowenc.getInnov(); int low_mode = lowenc.getMode(); if (low_mode==0) dtx=1; else dtx=0; /* Start encoding the high-band */ for (i=0; i<windowSize; i++) buf[i] = high[i] * window[i]; /* Compute auto-correlation */ Lpc.autocorr(buf, autocorr, lpcSize+1, windowSize); autocorr[0] += 1; /* prevents NANs */ autocorr[0] *= lpc_floor; /* Noise floor in auto-correlation domain */ /* Lag windowing: equivalent to filtering in the power-spectrum domain */ for (i=0; i<lpcSize+1; i++) autocorr[i] *= lagWindow[i]; /* Levinson-Durbin */ Lpc.wld(lpc, autocorr, rc, lpcSize); // tmperr System.arraycopy(lpc, 0, lpc, 1, lpcSize); lpc[0]=1; /* LPC to LSPs (x-domain) transform */ int roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 15, 0.2f); if (roots != lpcSize) { roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 11, 0.02f); if (roots != lpcSize) { /*If we can't find all LSP's, do some damage control and use a flat filter*/ for (i=0; i<lpcSize; i++) { lsp[i]=(float)Math.cos(Math.PI*((float)(i+1))/(lpcSize+1)); } } } /* x-domain to angle domain*/ for (i=0; i<lpcSize; i++) lsp[i] = (float) Math.acos(lsp[i]); float lsp_dist=0; for (i=0;i<lpcSize;i++) lsp_dist += (old_lsp[i] - lsp[i])*(old_lsp[i] - lsp[i]); /*VBR stuff*/ if ((vbr_enabled != 0 || vad_enabled != 0) && dtx == 0) { float e_low=0, e_high=0; float ratio; if (abr_enabled != 0) { float qual_change=0; if (abr_drift2 * abr_drift > 0) { /* Only adapt if long-term and short-term drift are the same sign */ qual_change = -.00001f*abr_drift/(1+abr_count); if (qual_change>.1f) qual_change=.1f; if (qual_change<-.1f) qual_change=-.1f; } vbr_quality += qual_change; if (vbr_quality>10) vbr_quality=10; if (vbr_quality<0) vbr_quality=0; } for (i=0;i<frameSize;i++) { e_low += x0d[i]* x0d[i]; e_high += high[i]* high[i]; } ratio = (float) Math.log((1+e_high)/(1+e_low)); relative_quality = lowenc.getRelativeQuality(); if (ratio<-4) ratio=-4; if (ratio>2) ratio=2; /*if (ratio>-2)*/ if (vbr_enabled != 0) { int modeid; modeid = nb_modes-1; relative_quality+=1.0*(ratio+2); if (relative_quality<-1) { relative_quality=-1; } while (modeid != 0) { int v1; float thresh; v1=(int)Math.floor(vbr_quality); if (v1==10) thresh = Vbr.hb_thresh[modeid][v1]; else thresh = (vbr_quality-v1) * Vbr.hb_thresh[modeid][v1+1] + (1+v1-vbr_quality) * Vbr.hb_thresh[modeid][v1]; if (relative_quality >= thresh) break; modeid--; } setMode(modeid); if (abr_enabled != 0) { int bitrate; bitrate = getBitRate(); abr_drift+=(bitrate-abr_enabled); abr_drift2 = .95f*abr_drift2 + .05f*(bitrate-abr_enabled); abr_count += 1.0; } } else { /* VAD only */ int modeid; if (relative_quality<2.0) modeid=1; else modeid=submodeSelect; /*speex_encoder_ctl(state, SPEEX_SET_MODE, &mode);*/ submodeID=modeid; } /*fprintf (stderr, "%f %f\n", ratio, low_qual);*/ } bits.pack(1, 1); if (dtx != 0) bits.pack(0, SB_SUBMODE_BITS); else bits.pack(submodeID, SB_SUBMODE_BITS); /* If null mode (no transmission), just set a couple things to zero*/ if (dtx != 0 || submodes[submodeID] == null) { for (i=0; i<frameSize; i++) excBuf[excIdx+i]=swBuf[i]=VERY_SMALL; for (i=0; i<lpcSize; i++) mem_sw[i]=0; first=1; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, excIdx, interp_qlpc, high, 0, subframeSize, lpcSize, mem_sp); /* Reconstruct the original */ filters.fir_mem_up(x0d, h0, y0, fullFrameSize, QMF_ORDER, g0_mem); filters.fir_mem_up(high, h1, y1, fullFrameSize, QMF_ORDER, g1_mem); for (i=0; i<fullFrameSize; i++) in[i]=2*(y0[i]-y1[i]); if (dtx != 0) return 0; else return 1; } /* LSP quantization */ submodes[submodeID].lsqQuant.quant(lsp, qlsp, lpcSize, bits); if (first != 0) { for (i=0; i<lpcSize; i++) old_lsp[i] = lsp[i]; for (i=0; i<lpcSize; i++) old_qlsp[i] = qlsp[i]; } mem = new float[lpcSize]; syn_resp = new float[subframeSize]; innov = new float[subframeSize]; for (int sub=0; sub<nbSubframes; sub++) { float tmp, filter_ratio; int exc, sp, sw, resp; int offset; float rl, rh, eh=0, el=0; int fold; offset = subframeSize*sub; sp=offset; exc=excIdx+offset; resp=offset; sw=offset; /* LSP interpolation (quantized and unquantized) */ tmp = (1.0f + sub)/nbSubframes; for (i=0; i<lpcSize; i++) interp_lsp[i] = (1-tmp)*old_lsp[i] + tmp*lsp[i]; for (i=0; i<lpcSize; i++) interp_qlsp[i] = (1-tmp)*old_qlsp[i] + tmp*qlsp[i]; Lsp.enforce_margin(interp_lsp, lpcSize, .05f); Lsp.enforce_margin(interp_qlsp, lpcSize, .05f); /* Compute interpolated LPCs (quantized and unquantized) */ for (i=0; i<lpcSize; i++) interp_lsp[i] = (float) Math.cos(interp_lsp[i]); for (i=0; i<lpcSize; i++) interp_qlsp[i] = (float) Math.cos(interp_qlsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); m_lsp.lsp2lpc(interp_qlsp, interp_qlpc, lpcSize); Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); /* Compute mid-band (4000 Hz for wideband) response of low-band and high-band filters */ rl=rh=0; tmp=1; pi_gain[sub]=0; for (i=0; i<=lpcSize; i++) { rh += tmp*interp_qlpc[i]; tmp = -tmp; pi_gain[sub]+=interp_qlpc[i]; } rl = low_pi_gain[sub]; rl=1/(Math.abs(rl)+.01f); rh=1/(Math.abs(rh)+.01f); /* Compute ratio, will help predict the gain */ filter_ratio=Math.abs(.01f+rh)/(.01f+Math.abs(rl)); fold = filter_ratio<5 ? 1 : 0; /*printf ("filter_ratio %f\n", filter_ratio);*/ fold=0; /* Compute "real excitation" */ Filters.fir_mem2(high, sp, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem_sp2); /* Compute energy of low-band and high-band excitation */ for (i=0; i<subframeSize; i++) eh+=excBuf[exc+i]*excBuf[exc+i]; if (submodes[submodeID].innovation == null) {/* 1 for spectral folding excitation, 0 for stochastic */ float g; /*speex_bits_pack(bits, 1, 1);*/ for (i=0; i<subframeSize; i++) el+=low_innov[offset+i]*low_innov[offset+i]; /* Gain to use if we want to use the low-band excitation for high-band */ g=eh/(.01f+el); g=(float) Math.sqrt(g); g *= filter_ratio; /*print_vec(&g, 1, "gain factor");*/ /* Gain quantization */ { int quant = (int) Math.floor(.5 + 10 + 8.0 * Math.log((g+.0001))); /*speex_warning_int("tata", quant);*/ if (quant<0) quant=0; if (quant>31) quant=31; bits.pack(quant, 5); g=(float)(.1*Math.exp(quant/9.4)); } /*printf ("folding gain: %f\n", g);*/ g /= filter_ratio; } else { float gc, scale, scale_1; for (i=0; i<subframeSize; i++) el+=low_exc[offset+i]*low_exc[offset+i]; /*speex_bits_pack(bits, 0, 1);*/ gc = (float) (Math.sqrt(1+eh)*filter_ratio/Math.sqrt((1+el)*subframeSize)); { int qgc = (int)Math.floor(.5+3.7*(Math.log(gc)+2)); if (qgc<0) qgc=0; if (qgc>15) qgc=15; bits.pack(qgc, 4); gc = (float) Math.exp((1/3.7)*qgc-2); } scale = gc*(float)Math.sqrt(1+el)/filter_ratio; scale_1 = 1/scale; for (i=0; i<subframeSize; i++) excBuf[exc+i]=0; excBuf[exc]=1; Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, syn_resp, subframeSize, lpcSize); /* Reset excitation */ for (i=0; i<subframeSize; i++) excBuf[exc+i]=0; /* Compute zero response (ringing) of A(z/g1) / ( A(z/g2) * Aq(z) ) */ for (i=0; i<lpcSize; i++) mem[i]=mem_sp[i]; Filters.iir_mem2(excBuf, exc, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem); for (i=0; i<lpcSize; i++) mem[i]=mem_sw[i]; Filters.filter_mem2(excBuf, exc, bw_lpc1, bw_lpc2, res, resp, subframeSize, lpcSize, mem, 0); /* Compute weighted signal */ for (i=0; i<lpcSize; i++) mem[i]=mem_sw[i]; Filters.filter_mem2(high, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem, 0); /* Compute target signal */ for (i=0; i<subframeSize; i++) target[i]=swBuf[sw+i]-res[resp+i]; for (i=0; i<subframeSize; i++) excBuf[exc+i]=0; for (i=0; i<subframeSize; i++) target[i]*=scale_1; /* Reset excitation */ for (i=0; i<subframeSize; i++) innov[i]=0; /*print_vec(target, st->subframeSize, "\ntarget");*/ submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov, 0, syn_resp, bits, (complexity+1)>>1); /*print_vec(target, st->subframeSize, "after");*/ for (i=0; i<subframeSize; i++) excBuf[exc+i] += innov[i]*scale; if (submodes[submodeID].double_codebook != 0) { float[] innov2 = new float[subframeSize]; for (i=0; i<subframeSize; i++) innov2[i]=0; for (i=0; i<subframeSize; i++) target[i]*=2.5; submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov2, 0, syn_resp, bits, (complexity+1)>>1); for (i=0; i<subframeSize; i++) innov2[i]*=scale*(1/2.5); for (i=0; i<subframeSize; i++) excBuf[exc+i] += innov2[i]; } } /*Keep the previous memory*/ for (i=0; i<lpcSize; i++) mem[i]=mem_sp[i]; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, exc, interp_qlpc, high, sp, subframeSize, lpcSize, mem_sp); /* Compute weighted signal again, from synthesized speech (not sure it's the right thing) */ Filters.filter_mem2(high, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem_sw, 0); }//#ifndef RELEASE /* Reconstruct the original */ filters.fir_mem_up(x0d, h0, y0, fullFrameSize, QMF_ORDER, g0_mem); filters.fir_mem_up(high, h1, y1, fullFrameSize, QMF_ORDER, g1_mem); for (i=0; i<fullFrameSize; i++) in[i]=2*(y0[i]-y1[i]);//#endif for (i=0; i<lpcSize; i++) old_lsp[i] = lsp[i]; for (i=0; i<lpcSize; i++) old_qlsp[i] = qlsp[i]; first=0; return 1; } | 6022 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6022/68640e768b66e83c5637a95cc8f41b712d9fea61/SbEncoder.java/buggy/main/trunk/codec/src/main/java/org/xiph/speex/SbEncoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
2017,
12,
6385,
18690,
4125,
16,
727,
1431,
8526,
316,
13,
225,
288,
565,
509,
277,
31,
565,
1431,
8526,
1663,
16,
316,
82,
1527,
16,
6194,
67,
12243,
31,
565,
1431,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
2017,
12,
6385,
18690,
4125,
16,
727,
1431,
8526,
316,
13,
225,
288,
565,
509,
277,
31,
565,
1431,
8526,
1663,
16,
316,
82,
1527,
16,
6194,
67,
12243,
31,
565,
1431,
8526,
... |
itsData.itsCX = cx; itsData.itsScope = scope; itsData.itsThisObj = thisObj; itsData.itsInArgs = args; return Interpreter.interpret(itsData); | return Interpreter.interpret(cx, scope, thisObj, args, itsData); | public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { scope = ScriptRuntime.initScript(cx, scope, this, thisObj, itsData.itsFromEvalCode); itsData.itsCX = cx; itsData.itsScope = scope; itsData.itsThisObj = thisObj; itsData.itsInArgs = args; return Interpreter.interpret(itsData); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bdb5337527f41ea5ba4c1088fb9faa43224c3ad0/InterpretedScript.java/buggy/org/mozilla/javascript/InterpretedScript.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
13491,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
2146,
273,
7739,
5576,
18,
2738,
3651,
12,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
13491,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
2146,
273,
7739,
5576,
18,
2738,
3651,
12,
71,
... |
public static boolean needsSave(ISaveableModelSource modelSource) { ISaveableModel[] selectedModels = modelSource.getActiveModels(); | public static boolean needsSave(ISaveablesSource modelSource) { Saveable[] selectedModels = modelSource.getActiveSaveables(); | public static boolean needsSave(ISaveableModelSource modelSource) { ISaveableModel[] selectedModels = modelSource.getActiveModels(); for (int i = 0; i < selectedModels.length; i++) { ISaveableModel model = selectedModels[i]; if (model.isDirty()) { return true; } } return false; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1b0dac5907b7e377a3c295ce4c321d6a5feea581/SaveableHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/SaveableHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
4260,
4755,
12,
45,
4755,
429,
1488,
1830,
938,
1830,
13,
288,
202,
202,
45,
4755,
429,
1488,
8526,
3170,
8430,
273,
938,
1830,
18,
588,
3896,
8430,
5621,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
4260,
4755,
12,
45,
4755,
429,
1488,
1830,
938,
1830,
13,
288,
202,
202,
45,
4755,
429,
1488,
8526,
3170,
8430,
273,
938,
1830,
18,
588,
3896,
8430,
5621,
202,
202,... |
return editor; | public ISVNEditor getCommitEditor(String logMessage, Map locks, boolean keepLocks, final ISVNWorkspaceMediator mediator) throws SVNException { try { openConnection(); if (locks != null) { write("(w(s(*l)w))", new Object[] { "commit", logMessage, locks, Boolean.valueOf(keepLocks)}); } else { write("(w(s))", new Object[] { "commit", logMessage }); } authenticate(); read("[()]", null); SVNCommitEditor editor = new SVNCommitEditor(this, myConnection, mediator, new Runnable() { public void run() { closeConnection(); } }); return editor; } catch (SVNException e) { closeConnection(); throw e; } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/ef9f74213cd4cf69093cf8879256ab9b615b6924/SVNRepositoryImpl.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNRepositoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4437,
58,
50,
6946,
336,
5580,
6946,
12,
780,
19139,
16,
1635,
13046,
16,
1250,
3455,
19159,
16,
727,
4437,
58,
50,
8241,
13265,
10620,
6735,
10620,
13,
1216,
29537,
50,
503,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4437,
58,
50,
6946,
336,
5580,
6946,
12,
780,
19139,
16,
1635,
13046,
16,
1250,
3455,
19159,
16,
727,
4437,
58,
50,
8241,
13265,
10620,
6735,
10620,
13,
1216,
29537,
50,
503,
288,
... | |
while(true) { | while(running) { | public void run() { Event event=null; while(true) { try { event=(Event) m_upQueue.take(); m_upLatch.passThrough(); handleUp(event); } catch(InterruptedException ex) { //this is ok. } } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/886f9a8c6ddb4d5cd84fa55d59ebc99907c35115/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
2587,
871,
33,
2011,
31,
10792,
1323,
12,
8704,
13,
288,
13491,
775,
288,
18701,
871,
28657,
1133,
13,
312,
67,
416,
3183,
18,
22188,
5621,
18701,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
2587,
871,
33,
2011,
31,
10792,
1323,
12,
8704,
13,
288,
13491,
775,
288,
18701,
871,
28657,
1133,
13,
312,
67,
416,
3183,
18,
22188,
5621,
18701,
312,... |
public abstract int getMaxFieldSize() throws SQLException; | int getMaxFieldSize() throws SQLException; | public abstract int getMaxFieldSize() throws SQLException; | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b37b39a8e8ee762cc74efa7e8d06368d13147150/Statement.java/clean/libraries/javalib/java/sql/Statement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
8770,
509,
7288,
974,
1225,
1435,
1216,
6483,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
8770,
509,
7288,
974,
1225,
1435,
1216,
6483,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId); | ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); | public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId); } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/4691ff803d9e654eb3752c3111ca4164bb7e4938/Browser.java/clean/client-ui/src/main/java/com/thinkparity/browser/application/browser/Browser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
12443,
9132,
6376,
23999,
13,
16910,
4243,
18,
588,
12,
23999,
548,
18,
38,
24846,
67,
19803,
13,
2934,
17517,
2519,
12,
5457,
548,
1769,
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,
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,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
12443,
9132,
6376,
23999,
13,
16910,
4243,
18,
588,
12,
23999,
548,
18,
38,
24846,
67,
19803,
13,
2934,
17517,
2519,
12,
5457,
548,
1769,
1082,... |
if (0<=index && index < numByteFeatures) return true; else return false; | try { int index = getFeatureIndex(featureName); return isByteFeature(index); } catch (Exception e) { return false; } | public boolean isByteFeature(int index) { if (0<=index && index < numByteFeatures) return true; else return false; } | 49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/42b31cc793cee0ca905502211c444e2962f1d6d6/FeatureDefinition.java/buggy/java/de/dfki/lt/mary/unitselection/featureprocessors/FeatureDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
3216,
4595,
12,
474,
770,
13,
565,
288,
3639,
309,
261,
20,
32,
33,
1615,
597,
770,
411,
818,
3216,
8696,
13,
327,
638,
31,
3639,
469,
327,
629,
31,
565,
289,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
3216,
4595,
12,
474,
770,
13,
565,
288,
3639,
309,
261,
20,
32,
33,
1615,
597,
770,
411,
818,
3216,
8696,
13,
327,
638,
31,
3639,
469,
327,
629,
31,
565,
289,
2,
-1... |
w.attribute("name", "string"); | w.attribute("type", "string"); | public void cdataDatatype() throws IOException { w.startElement("data"); w.attribute("name", "string"); w.endElement(); } | 50651 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50651/0f83796bb0b63a737a914f79e46f8d5bf0bad429/RelaxNgWriter.java/buggy/dtdinst/src/com/thaiopensource/xml/dtd/app/RelaxNgWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20712,
20228,
1435,
1216,
1860,
288,
1377,
341,
18,
1937,
1046,
2932,
892,
8863,
1377,
341,
18,
4589,
2932,
723,
3113,
315,
1080,
8863,
1377,
341,
18,
409,
1046,
5621,
565,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20712,
20228,
1435,
1216,
1860,
288,
1377,
341,
18,
1937,
1046,
2932,
892,
8863,
1377,
341,
18,
4589,
2932,
723,
3113,
315,
1080,
8863,
1377,
341,
18,
409,
1046,
5621,
565,
289... |
Context cx = Context.enter(); errorReporter = new ToolErrorReporter(false, err); cx.setErrorReporter(errorReporter); global = new Global(); args = processOptions(cx, args); Object[] array = args; if (args.length > 0) { int length = args.length - 1; array = new Object[length]; System.arraycopy(args, 1, array, 0, length); } Scriptable argsObj = cx.newArray(global, array); global.defineProperty("arguments", argsObj, ScriptableObject.DONTENUM); Environment.defineClass(global); Environment environment = new Environment(global); global.defineProperty("environment", environment, ScriptableObject.DONTENUM); global.history = (NativeArray) cx.newArray(global, 0); global.defineProperty("history", global.history, ScriptableObject.DONTENUM); /* TODO: enable debugger if (global.debug) { global.debug_dm = new DebugManager(); global.debug_stm = new SourceTextManagerImpl(); global.debug_dm.setSourceTextManager(global.debug_stm); cx.setSourceTextManager(global.debug_stm); global.debug_dm.createdContext(cx); if (global.showDebuggerUI) { out.println("Launching JSDebugger..."); try { Class clazz = Class.forName( "org.mozilla.jsdebugging.ifcui.launcher.rhino.LaunchNetscapeJavaScriptDebugger"); ILaunchableDebugger debugger = (ILaunchableDebugger) clazz.newInstance(); debugger.launch(global.debug_dm, global.debug_stm, false); } catch (Exception e) { out.println(e); out.println("Failed to launch the JSDebugger"); } } out.println("Debug level set to "+cx.getDebugLevel()); } */ if (global.processStdin) processSource(cx, args.length == 0 ? null : args[0]); cx.exit(); System.exit(global.exitCode); | int result = exec(args); System.exit(result); | public static void main(String args[]) { Context cx = Context.enter(); errorReporter = new ToolErrorReporter(false, err); cx.setErrorReporter(errorReporter); // Create the "global" object where top-level variables will live. global = new Global(); args = processOptions(cx, args); // Set up "arguments" in the global scope to contain the command // line arguments after the name of the script to execute Object[] array = args; if (args.length > 0) { int length = args.length - 1; array = new Object[length]; System.arraycopy(args, 1, array, 0, length); } Scriptable argsObj = cx.newArray(global, array); global.defineProperty("arguments", argsObj, ScriptableObject.DONTENUM); // Set up "environment" in the global scope to provide access to the // System environment variables. Environment.defineClass(global); Environment environment = new Environment(global); global.defineProperty("environment", environment, ScriptableObject.DONTENUM); global.history = (NativeArray) cx.newArray(global, 0); global.defineProperty("history", global.history, ScriptableObject.DONTENUM); /* TODO: enable debugger if (global.debug) { global.debug_dm = new DebugManager(); global.debug_stm = new SourceTextManagerImpl(); global.debug_dm.setSourceTextManager(global.debug_stm); cx.setSourceTextManager(global.debug_stm); global.debug_dm.createdContext(cx); if (global.showDebuggerUI) { out.println("Launching JSDebugger..."); try { Class clazz = Class.forName( "org.mozilla.jsdebugging.ifcui.launcher.rhino.LaunchNetscapeJavaScriptDebugger"); ILaunchableDebugger debugger = (ILaunchableDebugger) clazz.newInstance(); debugger.launch(global.debug_dm, global.debug_stm, false); } catch (Exception e) { // eat it... out.println(e); out.println("Failed to launch the JSDebugger"); } } out.println("Debug level set to "+cx.getDebugLevel()); } */ if (global.processStdin) processSource(cx, args.length == 0 ? null : args[0]); cx.exit(); System.exit(global.exitCode); } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/42d7303027cb53d6d267369648602e4251070499/Main.java/clean/org/mozilla/javascript/tools/shell/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
555,
13289,
273,
394,
13288,
668,
13289,
12,
5743,
16,
393,
1769,
3639,
9494,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
555,
13289,
273,
394,
13288,
668,
13289,
12,
5743,
16,
393,
1769,
3639,
9494,
18,
5... |
public String getContentType() { return "application/excel"; } | public String getContentType() { return "application/excel"; } | public String getContentType() { return "application/excel"; } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/c1a0d8c743a4b7f83163bc34f3f7ce6d31e01313/JRXlsResource.java/buggy/wicket-contrib-jasperreports/src/java/wicket/contrib/jasperreports/JRXlsResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17470,
1435,
288,
3639,
327,
315,
3685,
19,
24121,
14432,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
377,
1071,
514,
17470,
1435,
288,
3639,
327,
315,
3685,
19,
24121,
14432,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for(int i = 0; i < list.length; i++){ final PsiJavaCodeReferenceElement referenceElement = list[i]; | for(final PsiJavaCodeReferenceElement referenceElement : list){ | private static void calculateExceptionsThrownForNewExpression(PsiNewExpression newExp, Set exceptionTypes, PsiElementFactory factory){ final PsiExpressionList argumentList = newExp.getArgumentList(); if(argumentList != null){ final PsiExpression[] args = argumentList.getExpressions(); for(int i = 0; i < args.length; i++){ calculateExceptionsThrown(args[i], exceptionTypes, factory); } } final PsiExpression[] arrayDims = newExp.getArrayDimensions(); for(int i = 0; i < arrayDims.length; i++){ calculateExceptionsThrown(arrayDims[i], exceptionTypes, factory); } final PsiExpression qualifier = newExp.getQualifier(); calculateExceptionsThrown(qualifier, exceptionTypes, factory); final PsiArrayInitializerExpression arrayInitializer = newExp.getArrayInitializer(); calculateExceptionsThrown(arrayInitializer, exceptionTypes, factory); final PsiMethod method = newExp.resolveMethod(); if(method != null){ final PsiReferenceList throwsList = method.getThrowsList(); final PsiJavaCodeReferenceElement[] list = throwsList.getReferenceElements(); for(int i = 0; i < list.length; i++){ final PsiJavaCodeReferenceElement referenceElement = list[i]; final PsiClass exceptionClass = (PsiClass) referenceElement.resolve(); final PsiClassType exceptionType = factory.createType(exceptionClass); exceptionTypes.add(exceptionType); } } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/ExceptionUtils.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ExceptionUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4604,
11416,
29591,
1290,
1908,
2300,
12,
52,
7722,
1908,
2300,
394,
2966,
16,
4766,
21394,
1000,
1520,
2016,
16,
4766,
21394,
453,
7722,
1046,
1733,
3272,
15329,
3639,
727,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4604,
11416,
29591,
1290,
1908,
2300,
12,
52,
7722,
1908,
2300,
394,
2966,
16,
4766,
21394,
1000,
1520,
2016,
16,
4766,
21394,
453,
7722,
1046,
1733,
3272,
15329,
3639,
727,... |
} else { | } else { | private void skipWhitespace () throws SAXException, IOException { // Start with a little cheat. Most of // the time, the white space will fall // within the current read buffer; if // not, then fall through. if (USE_CHEATS) { int lineAugment = 0; int columnAugment = 0;loop: for (int i = readBufferPos; i < readBufferLength; i++) { switch (readBuffer [i]) { case ' ': case '\t': case '\r': columnAugment++; break; case '\n': lineAugment++; columnAugment = 0; break; case '%': if (expandPE) break loop; // else fall through... default: readBufferPos = i; if (lineAugment > 0) { line += lineAugment; column = columnAugment; } else { column += columnAugment; } return; } } } // OK, do it the slow way. char c = readCh (); while (isWhitespace (c)) { c = readCh (); } unread (c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlParser.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2488,
9431,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
759,
3603,
598,
279,
12720,
19315,
270,
18,
225,
22099,
434,
202,
759,
326,
813,
16,
326,
9578,
3476,
903,
4159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2488,
9431,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
759,
3603,
598,
279,
12720,
19315,
270,
18,
225,
22099,
434,
202,
759,
326,
813,
16,
326,
9578,
3476,
903,
4159,
... |
private void createTableSelectionComposite( Composite parent ) { Composite tablescomposite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); tablescomposite.setLayout(layout); { GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessVerticalSpace = true; tablescomposite.setLayoutData(data); } // Available Items Label dataSourceLabel = new Label( tablescomposite, SWT.LEFT ); dataSourceLabel.setText( JdbcPlugin.getResourceString( "tablepage.label.availableItems" ) );//$NON-NLS-1$ { GridData data = new GridData(); dataSourceLabel.setLayoutData(data); } availableDbObjectsTree = new Tree(tablescomposite, SWT.BORDER|SWT.MULTI ); { GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; data.heightHint = 150; availableDbObjectsTree.setLayoutData(data); } availableDbObjectsTree.addMouseListener(new MouseAdapter() { public void mouseDoubleClick(MouseEvent e) { populateEventData( e ); insertText( (String) e.data ); } }); availableDbObjectsTree.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { if ( event.widget.getClass() != null ) handleAvailabeTreeSelection(); } private void handleAvailabeTreeSelection() { TreeItem items[] = availableDbObjectsTree.getSelection(); for ( int i = 0; i <items.length; i++ ) { if ( items[i].getGrayed() ) { availableDbObjectsTree.setRedraw(false); availableDbObjectsTree.deselectAll(); availableDbObjectsTree.setRedraw(true); availableDbObjectsTree.redraw(); } } } }); // Group for selecting the Tables etc // Searching the Tables and Views Group selectTableGroup = new Group(tablescomposite, SWT.FILL); { GridLayout groupLayout = new GridLayout(); groupLayout.numColumns = 3; //groupLayout.horizontalSpacing = 10; groupLayout.verticalSpacing = 10; selectTableGroup.setLayout(groupLayout); GridData data = new GridData(GridData.FILL_HORIZONTAL); selectTableGroup.setLayoutData(data); } schemaLabel = new Label( selectTableGroup, SWT.LEFT ); schemaLabel.setText( JdbcPlugin.getResourceString("tablepage.label.schema") ); schemaCombo = new Combo( selectTableGroup, SWT.READ_ONLY ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; schemaCombo.setLayoutData( gd ); enableSchemaComponent( isSchemaSupported ); Label FilterLabel = new Label(selectTableGroup, SWT.LEFT); FilterLabel.setText(JdbcPlugin.getResourceString("tablepage.label.filter")); searchTxt = new Text(selectTableGroup, SWT.BORDER) ; { GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 2; searchTxt.setLayoutData(data); } // Select Type Label selectTypeLabel = new Label(selectTableGroup, SWT.NONE); selectTypeLabel.setText(JdbcPlugin.getResourceString("tablepage.label.selecttype")); // Filter Combo filterComboViewer = new ComboViewer(selectTableGroup, SWT.READ_ONLY); setFilterComboContents(filterComboViewer); filterComboViewer.getControl().setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); // Find Button Button findButton = new Button(selectTableGroup, SWT.NONE); findButton.setText(JdbcPlugin.getResourceString("tablepage.button.filter"));//$NON-NLS-1$ // Add listener to the find button findButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { PlatformUI.getWorkbench( ) .getDisplay( ) .asyncExec( new Runnable( ) { public void run( ) { populateAvailableDbObjects( ); } } ); } } ); setupIdentifierQuoteStringCheckBox( selectTableGroup ); setRootElement(); // Create the drag source on the tree addDragSupportToTree(); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a1d63df7ad61ba2dd517aea885b14083b21a8b5b/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
19565,
6233,
9400,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
3246,
80,
742,
362,
4974,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19565,
6233,
9400,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
3246,
80,
742,
362,
4974,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744... | ||
reader.close(); | if (reader != null) reader.close(); | public void read(InputStream in) throws IOException, MethodPropertyDatabaseFormatException { BufferedReader reader = null; try { reader = new BufferedReader( new InputStreamReader(in, Charset.forName("UTF-8"))); String line; while ((line = reader.readLine()) != null) { line = line.trim(); if (line.equals("")) continue; int bar = line.indexOf('|'); if (bar < 0) { throw new MethodPropertyDatabaseFormatException( "Invalid method property database: missing separator"); } XMethod method = parseMethod(line.substring(0, bar)); Property property = decodeProperty(line.substring(bar+1)); setProperty(method, property); } } finally { try { reader.close(); } catch (IOException e) { // Ignore } } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/d9bfae535f6597f3641c6d47027231fb9c659b92/MethodPropertyDatabase.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/interproc/MethodPropertyDatabase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
12,
4348,
316,
13,
1216,
1860,
16,
2985,
1396,
4254,
9291,
288,
202,
202,
17947,
2514,
2949,
273,
446,
31,
9506,
202,
698,
288,
1082,
202,
10530,
273,
394,
10633,
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,
855,
12,
4348,
316,
13,
1216,
1860,
16,
2985,
1396,
4254,
9291,
288,
202,
202,
17947,
2514,
2949,
273,
446,
31,
9506,
202,
698,
288,
1082,
202,
10530,
273,
394,
10633,
12... |
final PsiArrayType arrayType = (PsiArrayType) initializer.getType(); if(arrayType != null){ expectedType = arrayType.getComponentType(); | final PsiType type = initializer.getType(); if(!(type instanceof PsiArrayType)) { expectedType = null; return; | public void visitArrayInitializerExpression( PsiArrayInitializerExpression initializer){ final PsiArrayType arrayType = (PsiArrayType) initializer.getType(); if(arrayType != null){ expectedType = arrayType.getComponentType(); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/599c040160b82bf7cab4b5afca67765907a7baef/ExpectedTypeUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/ExpectedTypeUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
1076,
14729,
2300,
12,
7734,
453,
7722,
1076,
14729,
2300,
12562,
15329,
5411,
727,
453,
7722,
27182,
526,
559,
273,
261,
52,
7722,
27182,
13,
12562,
18,
588,
559,
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,
540,
1071,
918,
3757,
1076,
14729,
2300,
12,
7734,
453,
7722,
1076,
14729,
2300,
12562,
15329,
5411,
727,
453,
7722,
27182,
526,
559,
273,
261,
52,
7722,
27182,
13,
12562,
18,
588,
559,
5621,
... |
log.debug("item text: " + text); log.debug("item sequence: " + sequence); | private void setItemTextMatching(List itemTextList, Item itemXml) { String xpath = MATCH_XPATH; Map allTargets = new HashMap(); itemXml.add(xpath, "response_label"); String randomNumber = ("" + Math.random()).substring(2); log.debug("In setItemTextMatching()."); log.debug("randomNumber: " + randomNumber); log.debug("xpath: " + xpath); Iterator iter = itemTextList.iterator(); float itSize = itemTextList.size(); // just in case we screw up if (itSize > 0) currentPerItemScore = currentMaxScore.floatValue()/itSize; int respCondCount = 0; //used to count the respconditions while (iter.hasNext()) { ItemTextIfc itemText = (ItemTextIfc) iter.next(); String text = itemText.getText(); Long sequence = itemText.getSequence(); log.debug("item text: " + text); log.debug("item sequence: " + sequence); String responseLabelIdent = "MS-" + randomNumber + "-" + sequence; List answerList = itemText.getAnswerArray(); Iterator aiter = answerList.iterator(); int noSources = answerList.size(); while (aiter.hasNext()) { respCondCount++; AnswerIfc answer = (AnswerIfc) aiter.next(); String answerText = answer.getText(); String label = answer.getLabel(); Long answerSequence = answer.getSequence(); Boolean correct = answer.getIsCorrect(); log.debug("answerText: " + answerText); log.debug("label: " + label); log.debug("answerSequence: " + answerSequence); log.debug("correct: " + correct);/////////////// String responseNo = "" + (answerSequence.longValue() - noSources + 1); log.debug("responseNo: " + responseNo); String respIdent = "MT-" + randomNumber + "-" + label; log.debug("respIdent: " + respIdent); String respCondNo = "" + respCondCount; if (Boolean.TRUE.equals(correct))// addMatchingResponseLabelTarget, addMatchingRespcondition { log.debug("*** We have a match."); log.debug(text + "==>" + answerText); // put in global (ewww) ident list allIdents.add(respIdent); allTargets.put(respIdent, answerText); log.debug("allIdents now=" + allIdents);// itemXml.add(xpath, "response_label");// log.info("addMatchingResponseLabelTarget(): ");// log.info(" respIdent: " + respIdent);// log.info(" responseNo: " + responseNo);// log.info(" value: " + answerText);// addMatchingResponseLabelTarget(itemXml, responseNo, respIdent, answerText);// itemXml.add(xpath, "response_label"); log.debug("correct response: addMatchingRespcondition(true..."); log.debug("correct response"); log.debug(" respCondNo: " + respCondNo); log.debug(" respIdent: " + respIdent); log.debug(" responseLabelIdent: " + responseLabelIdent); addMatchingRespcondition(true, itemXml, respCondNo, respIdent, responseLabelIdent); } else // addMatchingRespcondition { log.debug("incorrect response: addMatchingRespcondition(false..."); log.debug(" respCondNo: " + respCondNo); log.debug(" respIdent: " + respIdent); log.debug(" responseLabelIdent: " + responseLabelIdent); log.debug(" respCondNo: " + respCondNo); addMatchingRespcondition(false, itemXml, respCondNo, respIdent, responseLabelIdent); log.debug("we skip adding the response label when false for:" + respIdent); continue; // we skip adding the response label when false } }// itemXml.add(xpath, "response_label"); String responseNo = "" + sequence; log.debug("addMatchingResponseLabelEntry(): "); log.debug("responseLabelIdent: " + responseLabelIdent); log.debug("responseNo: " + sequence); log.debug("value: " + text); addMatchingResponseLabelSource(itemXml, responseNo, responseLabelIdent, text); } for (int i = 0; i < allIdents.size(); i++) { String respIdent = (String) allIdents.get(i); String answerText = (String) allTargets.get(respIdent); String responseNo = "" + (i + 1); log.info("addMatchingResponseLabelTarget(): "); log.info(" respIdent: " + respIdent); log.info(" responseNo: " + responseNo); log.info(" value: " + answerText); addMatchingResponseLabelTarget(itemXml, responseNo, respIdent, answerText); } log.debug("updateAllSourceMatchGroup(): "); updateAllSourceMatchGroup(itemXml); } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/3f81d8a6d9a7c69c2709822170aa047b899334ae/ItemHelper12Impl.java/buggy/samigo/src/org/sakaiproject/tool/assessment/business/entity/helper/item/ItemHelper12Impl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
18718,
1528,
9517,
12,
682,
761,
1528,
682,
16,
4342,
761,
4432,
13,
225,
288,
565,
514,
6748,
273,
16585,
67,
60,
4211,
31,
565,
1635,
777,
9432,
273,
394,
4317,
5621,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
18718,
1528,
9517,
12,
682,
761,
1528,
682,
16,
4342,
761,
4432,
13,
225,
288,
565,
514,
6748,
273,
16585,
67,
60,
4211,
31,
565,
1635,
777,
9432,
273,
394,
4317,
5621,
565,
... | |
bString.append(" <b>Description</b>:").append(aFeat.piDescSubString()) .append(" <b>Source</b>:").append(aFeat.getSource()).append("</html>"); infoLabel.setText(bString.toString()); | sb.append(" <b>Description</b>:") .append(aFeat.piDescSubString()) .append(" <b>Source</b>:") .append(aFeat.getSource()) .append("</html>"); infoLabel.setText(sb.toString()); | public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { ///////////////////////// // Byngl Feb 20/2002 // fix bug with displaying incorrect info when use cursor // keys to navigate the tree // final int idx = getEventSelectedIndex(e); if (idx < 0) { return; } Object temp = btree.getPathForRow(idx).getLastPathComponent(); if (temp == null) { return; } ///////////////////////// boolean removeAllowed = false; Ability aFeat = null; if (temp instanceof PObjectNode) { temp = ((PObjectNode) temp).getItem(); if (temp instanceof Ability) { aFeat = (Ability) temp; removeAllowed = aFeat.getFeatType() == Ability.ABILITY_NORMAL; //final Feat autoFeat = // pc.getFeatAutomaticNamed(aFeat.getName()); //removeAllowed = !Globals.featsMatch(aFeat, autoFeat); } } setRemoveEnabled(removeAllowed); if (aFeat != null) { StringBuffer bString = new StringBuffer().append("<html><b>").append(aFeat.piSubString()) .append("</b> TYPE:").append(aFeat.getType()); if (!aFeat.getCostString().equals("1")) { bString.append(" <b>Cost:</b>").append(aFeat.getCostString()); } if (aFeat.isMultiples()) { bString.append(" Can be taken more than once"); } if (aFeat.isStacks()) { bString.append(" Stacks"); } final String cString = aFeat.preReqHTMLStrings(pc, false); if (cString.length() > 0) { bString.append(" <b>Requirements</b>:").append(cString); } bString.append(" <b>Description</b>:").append(aFeat.piDescSubString()) .append(" <b>Source</b>:").append(aFeat.getSource()).append("</html>"); infoLabel.setText(bString.toString()); } } } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/bd24710b283941edab61322190d08d005ab106d9/InfoFeats.java/clean/code/src/java/pcgen/gui/tabs/InfoFeats.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
460,
5033,
12,
682,
6233,
1133,
425,
13,
9506,
202,
95,
6862,
202,
430,
16051,
73,
18,
24805,
2520,
10952,
310,
10756,
6862,
202,
95,
25083,
202,
25494,
19,
25083,
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,
4697,
202,
482,
918,
460,
5033,
12,
682,
6233,
1133,
425,
13,
9506,
202,
95,
6862,
202,
430,
16051,
73,
18,
24805,
2520,
10952,
310,
10756,
6862,
202,
95,
25083,
202,
25494,
19,
25083,
202,
... |
parms[0] = parmType; functionType = new CPPFunctionType(returnType, parms); | parms[0] = cpp_const_void_p; functionType = new CPPFunctionType(cpp_void, parms); | private void __builtin_prefetch() { // void __builtin_prefetch (const void *addr, ...) IBinding temp = null; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_void); IType returnType = new CBasicType(sds); ICASTSimpleDeclSpecifier parmSds = new CASTSimpleDeclSpecifier(); parmSds.setType(IASTSimpleDeclSpecifier.t_void); parmSds.setConst(true); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = new CPointerType(new CQualifierType(parmSds)); ((CPointerType)parms[0]).setPointer(new CASTPointer()); functionType = new CFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_PREFETCH, scope, functionType, theParms, true); } else { IType returnType = new CPPBasicType( IBasicType.t_void, 0 ); IType parmType = new CPPPointerType( new CPPQualifierType(new CPPBasicType(IBasicType.t_void, 0), true, false) ); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = parmType; functionType = new CPPFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_PREFETCH, scope, functionType, theParms, true); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e5e342776ddb4235e342044729523a01bf8c688b/GCCBuiltinSymbolProvider.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/GCCBuiltinSymbolProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1001,
24553,
67,
1484,
5754,
1435,
288,
202,
202,
759,
918,
1001,
24553,
67,
1484,
5754,
261,
10248,
918,
380,
4793,
16,
1372,
13,
202,
202,
45,
5250,
1906,
273,
446,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1001,
24553,
67,
1484,
5754,
1435,
288,
202,
202,
759,
918,
1001,
24553,
67,
1484,
5754,
261,
10248,
918,
380,
4793,
16,
1372,
13,
202,
202,
45,
5250,
1906,
273,
446,
31... |
public DragTest(TestDragSource dragSource, TestDropLocation dropTarget, AbstractTestLogger log) { super("drag " + dragSource.toString() + " to " + dropTarget.toString(), log); | public DragTest(TestDragSource dragSource, TestDropLocation dropTarget, AbstractTestLogger log, String suffix) { super("drag " + dragSource.toString() + " to " + dropTarget.toString() + suffix, log); | public DragTest(TestDragSource dragSource, TestDropLocation dropTarget, AbstractTestLogger log) { super("drag " + dragSource.toString() + " to " + dropTarget.toString(), log); this.dragSource = dragSource; this.dropTarget = dropTarget; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b59312e3078a98f89871400c22b07bc76b987628/DragTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28425,
4709,
12,
4709,
11728,
1830,
8823,
1830,
16,
7766,
7544,
2735,
3640,
2326,
16,
4115,
4709,
3328,
613,
13,
288,
3639,
2240,
2932,
15997,
315,
397,
8823,
1830,
18,
10492,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28425,
4709,
12,
4709,
11728,
1830,
8823,
1830,
16,
7766,
7544,
2735,
3640,
2326,
16,
4115,
4709,
3328,
613,
13,
288,
3639,
2240,
2932,
15997,
315,
397,
8823,
1830,
18,
10492,
1435,
... |
null, "setOnmousemove"); | null, "setOnmousemoveExpr"); | public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[26]; try { result[0] = new PropertyDescriptor("accesskey", ELButtonTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELButtonTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELButtonTag.class, null, "setAltKey"); // This attribute has a non-standard mapping. result[3] = new PropertyDescriptor("disabled", ELButtonTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("indexed", ELButtonTag.class, null, "setIndexedExpr"); result[5] = new PropertyDescriptor("onblur", ELButtonTag.class, null, "setOnblur"); result[6] = new PropertyDescriptor("onchange", ELButtonTag.class, null, "setOnchange"); result[7] = new PropertyDescriptor("onclick", ELButtonTag.class, null, "setOnclick"); result[8] = new PropertyDescriptor("ondblclick", ELButtonTag.class, null, "setOndblclick"); result[9] = new PropertyDescriptor("onfocus", ELButtonTag.class, null, "setOnfocus"); result[10] = new PropertyDescriptor("onkeydown", ELButtonTag.class, null, "setOnkeydown"); result[11] = new PropertyDescriptor("onkeypress", ELButtonTag.class, null, "setOnkeypress"); result[12] = new PropertyDescriptor("onkeyup", ELButtonTag.class, null, "setOnkeyup"); result[13] = new PropertyDescriptor("onmousedown", ELButtonTag.class, null, "setOnmousedown"); result[14] = new PropertyDescriptor("onmousemove", ELButtonTag.class, null, "setOnmousemove"); result[15] = new PropertyDescriptor("onmouseout", ELButtonTag.class, null, "setOnmouseout"); result[16] = new PropertyDescriptor("onmouseover", ELButtonTag.class, null, "setOnmouseover"); result[17] = new PropertyDescriptor("onmouseup", ELButtonTag.class, null, "setOnmouseup"); result[18] = new PropertyDescriptor("property", ELButtonTag.class, null, "setProperty"); result[19] = new PropertyDescriptor("style", ELButtonTag.class, null, "setStyle"); result[20] = new PropertyDescriptor("styleClass", ELButtonTag.class, null, "setStyleClass"); result[21] = new PropertyDescriptor("styleId", ELButtonTag.class, null, "setStyleId"); result[22] = new PropertyDescriptor("tabindex", ELButtonTag.class, null, "setTabindex"); result[23] = new PropertyDescriptor("title", ELButtonTag.class, null, "setTitle"); result[24] = new PropertyDescriptor("titleKey", ELButtonTag.class, null, "setTitleKey"); result[25] = new PropertyDescriptor("value", ELButtonTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELButtonTagBeanInfo.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELButtonTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5558,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5558,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... |
if (selectedIndex == -1) return null; | if (selectedIndex == -1) { return null; } | public CTabItem getSelection() { //checkWidget(); if (selectedIndex == -1) return null; return items[selectedIndex]; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3a23c3b9bac4db696a0452560047155775a707b7/CTabFolder.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/r21/widgets/CTabFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
385,
5661,
1180,
23204,
1435,
288,
3639,
368,
1893,
4609,
5621,
3639,
309,
261,
8109,
1016,
422,
300,
21,
13,
5411,
327,
446,
31,
3639,
327,
1516,
63,
8109,
1016,
15533,
565,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
385,
5661,
1180,
23204,
1435,
288,
3639,
368,
1893,
4609,
5621,
3639,
309,
261,
8109,
1016,
422,
300,
21,
13,
5411,
327,
446,
31,
3639,
327,
1516,
63,
8109,
1016,
15533,
565,
289,
... |
public Component getComponent() | public final Component getComponent() | public Component getComponent() { return null; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2703ae3b51c371a2a79d28271cd57b4046c647d0/ComponentView.java/clean/core/src/classpath/javax/javax/swing/text/ComponentView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
5435,
10322,
1435,
565,
288,
202,
2463,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
5435,
10322,
1435,
565,
288,
202,
2463,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Set result = new HashSet(l); | Set result = new HashSet(l); | Map sortDatasetAnnotations(final List l) { Set result = new HashSet(l); // TODO this everywhere if (null == result || result.size() == 0) { return new HashMap(); } Map map = new HashMap(); // SORT Iterator i = result.iterator(); while (i.hasNext()) { DatasetAnnotation ann = (DatasetAnnotation) i.next(); Integer ds_id = ann.getDataset().getDatasetId(); if (!map.containsKey(ds_id)) { map.put(ds_id, new HashSet()); } ((Set) map.get(ds_id)).add(ann); } return map; } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/2bc67970abd041b6cb8e0252d02a6e27f304bec4/HierarchyBrowsingImpl.java/buggy/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1635,
1524,
10656,
5655,
12,
6385,
987,
328,
13,
288,
3639,
1000,
563,
273,
394,
6847,
12,
80,
1769,
368,
2660,
333,
3614,
6051,
3639,
309,
261,
2011,
422,
563,
747,
563,
18,
1467,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1635,
1524,
10656,
5655,
12,
6385,
987,
328,
13,
288,
3639,
1000,
563,
273,
394,
6847,
12,
80,
1769,
368,
2660,
333,
3614,
6051,
3639,
309,
261,
2011,
422,
563,
747,
563,
18,
1467,
1435... |
if (jj_3R_351()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_43()) { jj_scanpos = xsp; break; } } | if (jj_scan_token(LPAREN)) return true; if (jj_3R_65()) return true; if (jj_scan_token(RPAREN)) return true; if (jj_3R_312()) return true; | final private boolean jj_3R_341() { if (jj_3R_351()) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_43()) { jj_scanpos = xsp; break; } } return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/ab83afb5228ef279b7bcc47c36ec843d3de7d3b1/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,
5026,
21,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4763,
21,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5026,
21,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4763,
21,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
1323,
261,
3767,
13... |
public static void main(String[] args) { JSourceWriter jsw = new JSourceWriter(new PrintWriter(System.out)); { JAnnotationTypeElement annotationTypeElement = new JAnnotationTypeElement("synopsis", new JType("String")); annotationTypeElement.print(jsw); } jsw.writeln(); jsw.writeln(); | public static void main(final String[] args) { JSourceWriter jsw = new JSourceWriter(new PrintWriter(System.out)); JAnnotationTypeElement annotationTypeElement1 = new JAnnotationTypeElement( "synopsis", new JType("String")); annotationTypeElement1.print(jsw); jsw.writeln(); jsw.writeln(); | public static void main(String[] args) { JSourceWriter jsw = new JSourceWriter(new PrintWriter(System.out)); // Simple { JAnnotationTypeElement annotationTypeElement = new JAnnotationTypeElement("synopsis", new JType("String")); annotationTypeElement.print(jsw); } jsw.writeln(); jsw.writeln(); // Simple with default { JAnnotationTypeElement annotationTypeElement = new JAnnotationTypeElement("synopsis", new JType("String")); annotationTypeElement.setDefaultString("\"Good book\""); annotationTypeElement.print(jsw); } jsw.flush(); } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JAnnotationTypeElement.java/buggy/castor/trunk/src/main/java/org/exolab/javasource/JAnnotationTypeElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
46,
1830,
2289,
3828,
91,
273,
394,
804,
1830,
2289,
12,
2704,
14071,
12,
3163,
18,
659,
10019,
9506,
202,
759,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
46,
1830,
2289,
3828,
91,
273,
394,
804,
1830,
2289,
12,
2704,
14071,
12,
3163,
18,
659,
10019,
9506,
202,
759,
44... |
private boolean determineNameMatch( String name ) { String test = name; boolean reverse = false; if ( test.startsWith( "!" ) ) { reverse = true; test = test.substring( 1 ); } boolean result = Os.isName( test ); if ( reverse ) { return !result; } else { return result; } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/4e955c058ae52fd1e4c4b284a3aac2408cb66e3a/OperatingSystemProfileActivator.java/clean/maven-project/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
4199,
461,
2060,
12,
514,
508,
262,
565,
288,
3639,
514,
1842,
273,
508,
31,
3639,
1250,
4219,
273,
629,
31,
7734,
309,
261,
1842,
18,
17514,
1190,
12,
23717,
262,
262,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
4199,
461,
2060,
12,
514,
508,
262,
565,
288,
3639,
514,
1842,
273,
508,
31,
3639,
1250,
4219,
273,
629,
31,
7734,
309,
261,
1842,
18,
17514,
1190,
12,
23717,
262,
262,
3639... | ||
private List<MIMEPart> getChildList() { | protected List<MIMEPart> getChildList() { | private List<MIMEPart> getChildList() { if(m_children == null) { m_children = new ArrayList<MIMEPart>(); } return m_children; } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/0db9e56f90c83dbd8a9f204d7caef35a717dbff8/MIMEPart.java/buggy/mvvm/main/com/metavize/tran/mime/MIMEPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
987,
32,
18178,
1988,
34,
8154,
682,
1435,
288,
565,
309,
12,
81,
67,
5906,
422,
446,
13,
288,
1377,
312,
67,
5906,
273,
394,
2407,
32,
18178,
1988,
34,
5621,
565,
289,
565,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
987,
32,
18178,
1988,
34,
8154,
682,
1435,
288,
565,
309,
12,
81,
67,
5906,
422,
446,
13,
288,
1377,
312,
67,
5906,
273,
394,
2407,
32,
18178,
1988,
34,
5621,
565,
289,
565,
327... |
out.print(bsLink + "View/Open</A></td></tr>"); | out.print(bsLink + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</A></td></tr>"); | private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext .getRequest(); out.print("<table align=center class=\"miscTable\"><tr>"); out .println("<td class=evenRowEvenCol><P><strong>Files in This Item:</strong></P>"); Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length == 0) { out.println("<P>There are no files associated with this item.</P>"); } else { boolean html = false; String handle = item.getHandle(); Bitstream primaryBitstream = null; Bundle[] bunds = item.getBundles("ORIGINAL"); Bundle[] thumbs = item.getBundles("THUMBNAIL"); // if item contains multiple bitstreams, display bitstream // description boolean multiFile = false; Bundle[] allBundles = item.getBundles(); for (int i = 0, filecount = 0; (i < allBundles.length) && !multiFile; i++) { filecount += allBundles[i].getBitstreams().length; multiFile = (filecount > 1); } // check if primary bitstream is html if (bunds[0] != null) { Bitstream[] bits = bunds[0].getBitstreams(); for (int i = 0; (i < bits.length) && !html; i++) { if (bits[i].getID() == bunds[0].getPrimaryBitstreamID()) { html = bits[i].getFormat().getMIMEType().equals( "text/html"); primaryBitstream = bits[i]; } } } out .println("<table cellpadding=6><tr><th class=\"standard\">File</th>"); if (multiFile) { out.println("<th class=\"standard\">Description</th>"); } out .println("<th class=\"standard\">Size</th class=\"standard\"><th class=\"standard\">Format</th></tr>"); // if primary bitstream is html, display a link for only that one to // HTMLServlet if (html) { // If no real Handle yet (e.g. because Item is in workflow) // we use the 'fake' Handle db-id/1234 where 1234 is the // database ID of the item. if (handle == null) { handle = "db-id/" + item.getID(); } out.print("<tr><td class=\"standard\">"); out.print(primaryBitstream.getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = primaryBitstream.getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(primaryBitstream.getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(primaryBitstream.getFormatDescription()); out .print("</td><td class=\"standard\"><A TARGET=_blank HREF=\""); out.print(request.getContextPath()); out.print("/html/"); out.print(handle + "/"); out.print(UIUtil.encodeBitstreamName(primaryBitstream.getName(), Constants.DEFAULT_ENCODING)); out.print("\">View/Open</A></td></tr>"); } else { for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<tr><td class=\"standard\">"); out.print(bitstreams[k].getName()); if (multiFile) { out.print("</td><td class=\"standard\">"); String desc = bitstreams[k].getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td class=\"standard\">"); out.print(bitstreams[k].getSize() / 1024); out.print("Kb</td><td class=\"standard\">"); out.print(bitstreams[k].getFormatDescription()); out .print("</td><td class=\"standard\" align=\"center\">"); // Work out what the bitstream link should be // (persistent // ID if item has Handle) String bsLink = "<A TARGET=_blank HREF=\"" + request.getContextPath(); if ((handle != null) && (bitstreams[k].getSequenceID() > 0)) { bsLink = bsLink + "/bitstream/" + item.getHandle() + "/" + bitstreams[k].getSequenceID() + "/"; } else { bsLink = bsLink + "/retrieve/" + bitstreams[k].getID() + "/"; } bsLink = bsLink + UIUtil.encodeBitstreamName( bitstreams[k].getName(), Constants.DEFAULT_ENCODING) + "\">"; // is there a thumbnail bundle? if ((thumbs.length > 0) && showThumbs) { String tName = bitstreams[k].getName() + ".jpg"; Bitstream tb = thumbs[0] .getBitstreamByName(tName); if (tb != null) { String myPath = request.getContextPath() + "/retrieve/" + tb.getID() + "/" + UIUtil.encodeBitstreamName(tb.getName(), Constants.DEFAULT_ENCODING); out.print(bsLink); out.print("<img src=\"" + myPath + "\" "); out.print("alt=\"" + tName + "\"></A><BR>"); } } out.print(bsLink + "View/Open</A></td></tr>"); } } } } out.println("</table>"); } out.println("</td></tr></table>"); } | 49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/22d85d1df34eed227975b6e94ba17893121fac13/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
5775,
16320,
1435,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
261,
2940,
18572,
13,
21442,
7734,
263,
588,
691,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
5775,
16320,
1435,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
261,
2940,
18572,
13,
21442,
7734,
263,
588,
691,
5... |
s_initialized = true; | public static synchronized void init() throws IOException, FileNotFoundException, MarshalException, ValidationException { if (!s_initialized) { reload(); s_initialized = true; } } | 48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/83a2c05dc276f47877a16eda7a2f880ab8639b76/GroupFactory.java/buggy/src/services/org/opennms/netmgt/config/GroupFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3852,
918,
1208,
1435,
1216,
1860,
16,
13707,
16,
5884,
503,
16,
15614,
288,
3639,
309,
16051,
87,
67,
13227,
13,
288,
5411,
7749,
5621,
10402,
289,
565,
289,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
3852,
918,
1208,
1435,
1216,
1860,
16,
13707,
16,
5884,
503,
16,
15614,
288,
3639,
309,
16051,
87,
67,
13227,
13,
288,
5411,
7749,
5621,
10402,
289,
565,
289,
2,
-100,
-100,
... | |
y += (cardFanGap * (maxHandSize - cardIndex)); | y += (getCardFanGap(playerIndex) * (maxHandSize - cardIndex)); | public Point getCardInHandPos(Container parent, int playerIndex, int cardIndex) { Rectangle handRect = getMaxHandRect(parent, playerIndex); int x = handRect.x; int y = handRect.y; switch (playerIndex) { case 0: // South x += (cardFanGap * (maxHandSize - cardIndex)); break; case 1: // West y += (cardFanGap * (maxHandSize - cardIndex)); break; case 2: // North x += (cardFanGap * cardIndex); break; case 3: // East y += (cardFanGap * cardIndex); break; } return new Point(x, y); } | 45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/bdff446cb02b3273c0baed121eba04e7efd3c880/TableLayout.java/clean/java/src/ggz/cards/TableLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4686,
26776,
382,
1144,
1616,
12,
2170,
982,
16,
509,
7291,
1016,
16,
5411,
509,
5270,
1016,
13,
288,
3639,
13264,
948,
6120,
273,
7288,
1144,
6120,
12,
2938,
16,
7291,
1016,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4686,
26776,
382,
1144,
1616,
12,
2170,
982,
16,
509,
7291,
1016,
16,
5411,
509,
5270,
1016,
13,
288,
3639,
13264,
948,
6120,
273,
7288,
1144,
6120,
12,
2938,
16,
7291,
1016,
1769,
... |
else { message+="("+meta.getFieldName()+")"; } message+=" : "+schema.getName(); | private void drawStep(GC gc, StepMeta stepMeta) { if (stepMeta == null) return; Point pt = stepMeta.getLocation(); int x, y; if (pt != null) { x = pt.x; y = pt.y; } else { x = 50; y = 50; } Point screen = real2screen(x, y, offset); String name = stepMeta.getName(); if (stepMeta.isSelected()) gc.setLineWidth(linewidth + 2); else gc.setLineWidth(linewidth); gc.setBackground(red); gc.setForeground(black); gc.fillRectangle(screen.x, screen.y, iconsize, iconsize); String steptype = stepMeta.getStepID(); Image im = (Image) images.get(steptype); if (im != null) // Draw the icon! { org.eclipse.swt.graphics.Rectangle bounds = im.getBounds(); gc.drawImage(im, 0, 0, bounds.width, bounds.height, screen.x, screen.y, iconsize, iconsize); } gc.setBackground(background); gc.drawRectangle(screen.x - 1, screen.y - 1, iconsize + 1, iconsize + 1); //gc.setXORMode(true); Point namePosition = getNamePosition(gc, name, screen, iconsize ); if (shadowsize > 0) { gc.setForeground(lightGray); gc.drawText(name, namePosition.x + shadowsize, namePosition.y + shadowsize, SWT.DRAW_TRANSPARENT); } gc.setForeground(black); gc.drawText(name, namePosition.x, namePosition.y, SWT.DRAW_TRANSPARENT); StepPartitioningMeta meta = stepMeta.getStepPartitioningMeta(); if (stepMeta.isPartitioned() && meta!=null) { String message = "P"; if ( !Const.isEmpty(meta.getFieldName()) ) { PartitionSchema schema = meta.getPartitionSchema(); if (schema!=null) { if (schema.getPartitionIDs()!=null && schema.getPartitionIDs().length>0) { message+="x"+schema.getPartitionIDs().length; message+="("+meta.getFieldName()+")"; } else { message+="("+meta.getFieldName()+")"; } message+=" : "+schema.getName(); } } gc.setBackground(background); gc.setForeground(black); gc.drawText(message, screen.x - 12, screen.y - 12); } else if (stepMeta.getCopies() > 1) { gc.setBackground(background); gc.setForeground(black); gc.drawText("x" + stepMeta.getCopies(), screen.x - 5, screen.y - 5); } } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/010ce55cc835e24ea0d281df3b9d8fb611398414/TransPainter.java/clean/kettle/src/be/ibridge/kettle/spoon/TransPainter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3724,
4160,
12,
15396,
8859,
16,
8693,
2781,
2235,
2781,
13,
565,
288,
3639,
309,
261,
4119,
2781,
422,
446,
13,
327,
31,
3639,
4686,
5818,
273,
2235,
2781,
18,
588,
2735,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
4160,
12,
15396,
8859,
16,
8693,
2781,
2235,
2781,
13,
565,
288,
3639,
309,
261,
4119,
2781,
422,
446,
13,
327,
31,
3639,
4686,
5818,
273,
2235,
2781,
18,
588,
2735,
56... | |
EntryPhase.FIRST_PHASE_OBJ, DegreeType.MASTER_DEGREE); | EntryPhase.FIRST_PHASE_OBJ); | private Registration createNewRegistration(Person person, Integer studentNumber) throws ExcepcaoPersistencia { Registration registration; if (studentNumber == null) { studentNumber = Registration.generateStudentNumber(DegreeType.MASTER_DEGREE); } StudentKind studentKind = StudentKind.readByStudentType(StudentType.NORMAL); StudentState state = new StudentState(StudentState.INSCRITO); registration = new Registration(person, studentNumber, studentKind, state, false, false, EntryPhase.FIRST_PHASE_OBJ, DegreeType.MASTER_DEGREE); registration.setInterruptedStudies(false); return registration; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/802017aaa057cccc3e72a17fd2320f20db06d692/RegisterCandidate.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/masterDegree/administrativeOffice/candidate/RegisterCandidate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19304,
15291,
7843,
12,
8346,
6175,
16,
2144,
18110,
1854,
13,
202,
565,
1216,
1312,
311,
2436,
6033,
12771,
28115,
288,
3639,
19304,
7914,
31,
3639,
309,
261,
26240,
1854,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19304,
15291,
7843,
12,
8346,
6175,
16,
2144,
18110,
1854,
13,
202,
565,
1216,
1312,
311,
2436,
6033,
12771,
28115,
288,
3639,
19304,
7914,
31,
3639,
309,
261,
26240,
1854,
422,
446,
... |
while (pos < 500 && header[pos] != 0) | while (pos < 500 && header[pos] != 0) { | TarEntry getNextEntryInternal() throws TarException, IOException { byte[] header = new byte[512]; int pos = 0; int i; if(firstEntry != null) { TarEntry entryReturn = firstEntry; firstEntry = null; return entryReturn; } while(nextEntry > 0) { long ret = in.skip(nextEntry); if(ret < 0) { throw new IOException("early end of stream"); //$NON-NLS-1$ } nextEntry -= ret; bytesread += ret; } int bytestoread = 512; while(bytestoread > 0) { int ret = super.read(header, 512 - bytestoread, bytestoread); if( ret < 0 ) { throw new IOException("early end of stream"); //$NON-NLS-1$ } bytestoread -= ret; bytesread += ret; } // If we have a header of all zeros, this marks the end of the file. if(headerChecksum(header) == 0) { // We are at the end of the file. if(filepos > 0) { return null; } // Invalid stream. throw new TarException("not in tar format"); //$NON-NLS-1$ } // Validate checksum. if(!isValidTarHeader(header)) { throw new TarException("not in tar format"); //$NON-NLS-1$ } while (pos < 100 && header[pos] != 0) pos++; String name = new String(header, 0, pos, "UTF8"); //$NON-NLS-1$ // Prepend the prefix here. pos = 345; if(header[pos] != 0) { while (pos < 500 && header[pos] != 0) pos++; String prefix = new String(header, 345, pos - 345, "UTF8"); //$NON-NLS-1$ name = prefix + "/" + name; //$NON-NLS-1$ } TarEntry entry; if(longLinkName != null) { entry = new TarEntry(longLinkName, filepos); longLinkName = null; } else { entry = new TarEntry(name, filepos); } if(header[156] != 0) { entry.setFileType(header[156]); } pos = 100; StringBuffer mode = new StringBuffer(); for(i = 0; i < 8; i++) { if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; mode.append((char) header[pos + i]); } if(mode.length() > 0 && mode.charAt(0) != '0') mode.insert(0, '0'); try { long fileMode = Long.decode(mode.toString()).longValue(); entry.setMode(fileMode); } catch(NumberFormatException nfe) { throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); } pos = 100 + 24; StringBuffer size = new StringBuffer(); for(i = 0; i < 12; i++) { if(header[pos + i] == 0) break; if(header[pos + i] == ' ') continue; size.append((char) header[pos + i]); } if(size.charAt(0) != '0') size.insert(0, '0'); int fileSize; try { fileSize = Integer.decode(size.toString()).intValue(); } catch(NumberFormatException nfe) { throw new TarException(DataTransferMessages.TarImport_invalid_tar_format, nfe); } entry.setSize(fileSize); nextEOF = fileSize; if(fileSize % 512 > 0) { nextEntry = fileSize + (512 - (fileSize % 512)); } else { nextEntry = fileSize; } filepos += (nextEntry + 512); return entry; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TarInputStream.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
20464,
1622,
6927,
1622,
3061,
1435,
1216,
20334,
503,
16,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
474,
949,
273,
374,
31,
202,
202,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20464,
1622,
6927,
1622,
3061,
1435,
1216,
20334,
503,
16,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
474,
949,
273,
374,
31,
202,
202,
474,
... |
if (code[i].flavor == JAVA) externalRuntime = true; } */ externalRuntime = (codeCount > 1); | if (code[i].flavor == JAVA) { externalRuntime = true; break; } } | protected String build(String buildPath, String suggestedClassName) throws RunnerException { // make sure the user didn't hide the sketch folder ensureExistence(); String codeFolderPackages[] = null; String javaClassPath = System.getProperty("java.class.path"); // remove quotes if any.. this is an annoying thing on windows if (javaClassPath.startsWith("\"") && javaClassPath.endsWith("\"")) { javaClassPath = javaClassPath.substring(1, javaClassPath.length() - 1); } classPath = buildPath + File.pathSeparator + Sketchbook.librariesClassPath + File.pathSeparator + javaClassPath; //System.out.println("cp = " + classPath); // figure out the contents of the code folder to see if there // are files that need to be added to the imports //File codeFolder = new File(folder, "code"); if (codeFolder.exists()) { externalRuntime = true; //classPath += File.pathSeparator + //Compiler.contentsToClassPath(codeFolder); classPath = Compiler.contentsToClassPath(codeFolder) + File.pathSeparator + classPath; //codeFolderPackages = Compiler.packageListFromClassPath(classPath); //codeFolderPackages = Compiler.packageListFromClassPath(codeFolder); libraryPath = codeFolder.getAbsolutePath(); // get a list of .jar files in the "code" folder // (class files in subfolders should also be picked up) String codeFolderClassPath = Compiler.contentsToClassPath(codeFolder); // get list of packages found in those jars codeFolderPackages = Compiler.packageListFromClassPath(codeFolderClassPath); //PApplet.println(libraryPath); //PApplet.println("packages:"); //PApplet.printarr(codeFolderPackages); } else { /* // check to see if multiple files that include a .java file externalRuntime = false; for (int i = 0; i < codeCount; i++) { if (code[i].flavor == JAVA) externalRuntime = true; } */ // since using the special classloader, // run externally whenever there are extra classes defined externalRuntime = (codeCount > 1); //codeFolderPackages = null; libraryPath = ""; } // if 'data' folder is large, set to external runtime if (dataFolder.exists() && Base.calcFolderSize(dataFolder) > 768 * 1024) { // if > 768k externalRuntime = true; } // 1. concatenate all .pde files to the 'main' pde // store line number for starting point of each code bit StringBuffer bigCode = new StringBuffer(code[0].program); int bigCount = countLines(code[0].program); for (int i = 1; i < codeCount; i++) { if (code[i].flavor == PDE) { code[i].lineOffset = ++bigCount; bigCode.append('\n'); bigCode.append(code[i].program); bigCount += countLines(code[i].program); code[i].preprocName = null; // don't compile me } } // since using the special classloader, // run externally whenever there are extra classes defined if ((bigCode.indexOf(" class ") != -1) || (bigCode.indexOf("\nclass ") != -1)) { externalRuntime = true; } // if running in opengl mode, this is gonna be external //if (Preferences.get("renderer").equals("opengl")) { //externalRuntime = true; //} // 2. run preproc on that code using the sugg class name // to create a single .java file and write to buildpath String primaryClassName = null; PdePreprocessor preprocessor = new PdePreprocessor(); try { // if (i != 0) preproc will fail if a pde file is not // java mode, since that's required String className = preprocessor.write(bigCode.toString(), buildPath, suggestedClassName, codeFolderPackages); if (className == null) { throw new RunnerException("Could not find main class"); // this situation might be perfectly fine, // (i.e. if the file is empty) //System.out.println("No class found in " + code[i].name); //System.out.println("(any code in that file will be ignored)"); //System.out.println(); } else { code[0].preprocName = className + ".java"; } // store this for the compiler and the runtime primaryClassName = className; //System.out.println("primary class " + primaryClassName); // check if the 'main' file is in java mode if ((PdePreprocessor.programType == PdePreprocessor.JAVA) || (preprocessor.extraImports.length != 0)) { externalRuntime = true; // we in advanced mode now, boy } } catch (antlr.RecognitionException re) { // this even returns a column int errorFile = 0; int errorLine = re.getLine() - 1; for (int i = 1; i < codeCount; i++) { if ((code[i].flavor == PDE) && (code[i].lineOffset < errorLine)) { errorFile = i; } } errorLine -= code[errorFile].lineOffset; throw new RunnerException(re.getMessage(), errorFile, errorLine, re.getColumn()); } catch (antlr.TokenStreamRecognitionException tsre) { // while this seems to store line and column internally, // there doesn't seem to be a method to grab it.. // so instead it's done using a regexp PatternMatcher matcher = new Perl5Matcher(); PatternCompiler compiler = new Perl5Compiler(); // line 3:1: unexpected char: 0xA0 String mess = "^line (\\d+):(\\d+):\\s"; Pattern pattern = null; try { pattern = compiler.compile(mess); } catch (MalformedPatternException e) { Base.showWarning("Internal Problem", "An internal error occurred while trying\n" + "to compile the sketch. Please report\n" + "this online at http://processing.org/bugs", e); } PatternMatcherInput input = new PatternMatcherInput(tsre.toString()); if (matcher.contains(input, pattern)) { MatchResult result = matcher.getMatch(); int errorLine = Integer.parseInt(result.group(1).toString()) - 1; int errorColumn = Integer.parseInt(result.group(2).toString()); int errorFile = 0; for (int i = 1; i < codeCount; i++) { if ((code[i].flavor == PDE) && (code[i].lineOffset < errorLine)) { errorFile = i; } } errorLine -= code[errorFile].lineOffset; throw new RunnerException(tsre.getMessage(), errorFile, errorLine, errorColumn); } else { // this is bad, defaults to the main class.. hrm. throw new RunnerException(tsre.toString(), 0, -1, -1); } } catch (RunnerException pe) { // RunnerExceptions are caught here and re-thrown, so that they don't // get lost in the more general "Exception" handler below. throw pe; } catch (Exception ex) { // TODO better method for handling this? System.err.println("Uncaught exception type:" + ex.getClass()); ex.printStackTrace(); throw new RunnerException(ex.toString()); } // grab the imports from the code just preproc'd importedLibraries = new Vector(); String imports[] = preprocessor.extraImports; for (int i = 0; i < imports.length; i++) { // remove things up to the last dot String entry = imports[i].substring(0, imports[i].lastIndexOf('.')); //System.out.println("found package " + entry); File libFolder = (File) Sketchbook.importToLibraryTable.get(entry); if (libFolder == null) { //throw new RunnerException("Could not find library for " + entry); continue; } importedLibraries.add(libFolder); libraryPath += File.pathSeparator + libFolder.getAbsolutePath(); /* String list[] = libFolder.list(); if (list != null) { for (int j = 0; j < list.length; j++) { // this might have a dll/jnilib/so packed, // so add it to the library path if (list[j].toLowerCase().endsWith(".jar")) { libraryPath += File.pathSeparator + libFolder.getAbsolutePath() + File.separator + list[j]; } } } */ } // 3. then loop over the code[] and save each .java file for (int i = 0; i < codeCount; i++) { if (code[i].flavor == JAVA) { // no pre-processing services necessary for java files // just write the the contents of 'program' to a .java file // into the build directory. uses byte stream and reader/writer // shtuff so that unicode bunk is properly handled String filename = code[i].name + ".java"; try { Base.saveFile(code[i].program, new File(buildPath, filename)); } catch (IOException e) { e.printStackTrace(); throw new RunnerException("Problem moving " + filename + " to the build folder"); } code[i].preprocName = filename; } } // compile the program. errors will happen as a RunnerException // that will bubble up to whomever called build(). // Compiler compiler = new Compiler(); boolean success = compiler.compile(this, buildPath); //System.out.println("success = " + success + " ... " + primaryClassName); return success ? primaryClassName : null; } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/b6066844cb968b37980ec6875af1fc004a4bd861/Sketch.java/buggy/app/Sketch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
1361,
12,
780,
1361,
743,
16,
514,
22168,
3834,
13,
565,
1216,
22712,
503,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
1361,
12,
780,
1361,
743,
16,
514,
22168,
3834,
13,
565,
1216,
22712,
503,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,... |
context.invokeGL(swapBuffersAction, false, initAction); | maybeDoSingleThreadedWorkaround(swapBuffersOnEventDispatchThreadAction, swapBuffersAction, false); | public void swapBuffers() { context.invokeGL(swapBuffersAction, false, initAction); } | 46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/c19545b4925ecc36bc8e637e0b4556731991bcd4/GLPbufferImpl.java/clean/src/net/java/games/jogl/impl/GLPbufferImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7720,
13699,
1435,
288,
565,
6944,
3244,
5281,
1315,
20528,
2421,
12716,
12,
22270,
13699,
1398,
1133,
5325,
3830,
1803,
16,
7720,
13699,
1803,
16,
629,
1769,
225,
289,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7720,
13699,
1435,
288,
565,
6944,
3244,
5281,
1315,
20528,
2421,
12716,
12,
22270,
13699,
1398,
1133,
5325,
3830,
1803,
16,
7720,
13699,
1803,
16,
629,
1769,
225,
289,
2,
-100,
... |
return RubyBoolean.newBoolean(getRuntime(), isPrimitive()); | return getRuntime().newBoolean(isPrimitive()); | public RubyBoolean primitive_p() { return RubyBoolean.newBoolean(getRuntime(), isPrimitive()); } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaClass.java/buggy/src/org/jruby/javasupport/JavaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
8225,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
291,
9840,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
8225,
67,
84,
1435,
288,
3639,
327,
18814,
7675,
2704,
5507,
12,
291,
9840,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else service = new KeyBindingService(null, this); | } else { service = new KeyBindingService(null, this); } | public IKeyBindingService getKeyBindingService(IWorkbenchSite nestedSite) { if (disposed) return null; if (nestedSite == null) { return null; } IKeyBindingService service = (IKeyBindingService) nestedServices .get(nestedSite); if (service == null) { // TODO the INestedKeyBindingService API should be based on // IWorkbenchPartSite.. if (nestedSite instanceof IWorkbenchPartSite) service = new KeyBindingService( (IWorkbenchPartSite) nestedSite, this); else service = new KeyBindingService(null, this); nestedServices.put(nestedSite, service); } return service; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/KeyBindingService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/KeyBindingService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
653,
5250,
1179,
3579,
5250,
1179,
12,
45,
2421,
22144,
4956,
4764,
4956,
13,
288,
3639,
309,
261,
2251,
7423,
13,
5411,
327,
446,
31,
3639,
309,
261,
12985,
4956,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
653,
5250,
1179,
3579,
5250,
1179,
12,
45,
2421,
22144,
4956,
4764,
4956,
13,
288,
3639,
309,
261,
2251,
7423,
13,
5411,
327,
446,
31,
3639,
309,
261,
12985,
4956,
422,
446,
... |
public Mock createMockConnection(Session testSession) { Mock result = new Mock(Connection.class); result.stubs().method("setExceptionListener"); result.stubs().method("getClientID").will(new ReturnStub(null)); result.stubs() .method("createSession") .will(new ReturnStub(testSession)); return result; | public Mock createMockConnection() { return createMockConnection((Session) sessionBuilder.createMockSession() .proxy()); | public Mock createMockConnection(Session testSession) { Mock result = new Mock(Connection.class); result.stubs().method("setExceptionListener"); result.stubs().method("getClientID").will(new ReturnStub(null)); result.stubs() .method("createSession") .will(new ReturnStub(testSession)); return result; } | 54391 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54391/5766794ef81eccfa2ee7d8a95afcb7a217de7cc6/MockConnectionBuilder.java/buggy/trunk/test/hjb/testsupport/MockConnectionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7867,
752,
9865,
1952,
12,
2157,
1842,
2157,
13,
288,
3639,
7867,
563,
273,
394,
7867,
12,
1952,
18,
1106,
1769,
3639,
563,
18,
31960,
7675,
2039,
2932,
542,
503,
2223,
8863,
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,
7867,
752,
9865,
1952,
12,
2157,
1842,
2157,
13,
288,
3639,
7867,
563,
273,
394,
7867,
12,
1952,
18,
1106,
1769,
3639,
563,
18,
31960,
7675,
2039,
2932,
542,
503,
2223,
8863,
3639,
... |
int leftOfCenterPane = leftOfLayout + trimSize[LEFT] + leftSpacing; int widthOfCenterPane = clientArea.width - trimSize[LEFT] - trimSize[RIGHT] - leftSpacing - rightSpacing; int rightOfCenterPane = clientArea.x + clientArea.width - trimSize[RIGHT]; | int leftOfCenterPane = leftOfLayout + trim_left + leftSpacing; int widthOfCenterPane = clientArea.width - trim_left - trim_right - leftSpacing - rightSpacing; int rightOfCenterPane = clientArea.x + clientArea.width - trim_right; | protected void layout(Composite composite, boolean flushCache) { removeDisposed(); Rectangle clientArea = composite.getClientArea(); clientArea.x += marginWidth; clientArea.width -= 2 * marginWidth; clientArea.y += marginHeight; clientArea.height -= 2 * marginHeight; int[] trimSize = getTrimSizes(clientArea.width, clientArea.height); int leftOfLayout = clientArea.x; int leftOfCenterPane = leftOfLayout + trimSize[LEFT] + leftSpacing; int widthOfCenterPane = clientArea.width - trimSize[LEFT] - trimSize[RIGHT] - leftSpacing - rightSpacing; int rightOfCenterPane = clientArea.x + clientArea.width - trimSize[RIGHT]; int topOfLayout = clientArea.y; int topOfCenterPane = topOfLayout + trimSize[TOP] + topSpacing; int heightOfCenterPane = clientArea.height - trimSize[TOP] - trimSize[BOTTOM] - topSpacing - bottomSpacing; int bottomOfCenterPane = clientArea.y + clientArea.height - trimSize[BOTTOM]; arrange(new Rectangle(leftOfLayout, topOfLayout, clientArea.width, trimSize[TOP]), cacheList(fTrimArea[TOP]), true, spacing); arrange(new Rectangle(leftOfCenterPane, bottomOfCenterPane, widthOfCenterPane, trimSize[BOTTOM]), cacheList(fTrimArea[BOTTOM]), true, spacing); arrange(new Rectangle(leftOfLayout, topOfCenterPane, trimSize[LEFT], clientArea.height - trimSize[TOP]), cacheList(fTrimArea[LEFT]), false, spacing); arrange(new Rectangle(rightOfCenterPane, topOfCenterPane, trimSize[RIGHT], clientArea.height - trimSize[TOP]), cacheList(fTrimArea[RIGHT]), false, spacing); if (centerArea.getControl() != null) { centerArea.getControl().setBounds(leftOfCenterPane, topOfCenterPane, widthOfCenterPane, heightOfCenterPane); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c02ce808ddcd3a887071a5c31104b81c396819e2/TrimLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3511,
12,
9400,
9635,
16,
1250,
3663,
1649,
13,
288,
202,
202,
4479,
1669,
7423,
5621,
202,
202,
19463,
1004,
5484,
273,
9635,
18,
588,
1227,
5484,
5621,
202,
202,
2625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3511,
12,
9400,
9635,
16,
1250,
3663,
1649,
13,
288,
202,
202,
4479,
1669,
7423,
5621,
202,
202,
19463,
1004,
5484,
273,
9635,
18,
588,
1227,
5484,
5621,
202,
202,
2625,
... |
addMethod(name, null, Constants.NOEX_PUBLIC); | addMethod(name, UndefinedMethod.getInstance()); | public void undef(String name) { Ruby ruby = getRuntime(); if (this == ruby.getClasses().getObjectClass()) { ruby.secure(4); } if (ruby.getSafeLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen(); if (name.equals("__id__") || name.equals("__send__")) { /*rb_warn("undefining `%s' may cause serious problem", rb_id2name( id ) );*/ } ICallable method = searchMethod(name); if (method == null) { String s0 = " class"; RubyModule c = this; if (c.isSingleton()) { IRubyObject obj = getInstanceVariable("__attached__"); if (obj instanceof RubyModule) { c = (RubyModule) obj; s0 = ""; } } else if (c.isModule()) { s0 = " module"; } throw new NameError(ruby, "Undefined method " + name + " for" + s0 + " '" + c.toName() + "'"); } addMethod(name, null, Constants.NOEX_PUBLIC); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
536,
12,
780,
508,
13,
288,
3639,
19817,
22155,
273,
18814,
5621,
3639,
309,
261,
2211,
422,
22155,
18,
588,
4818,
7675,
588,
921,
797,
10756,
288,
5411,
22155,
18,
8869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
536,
12,
780,
508,
13,
288,
3639,
19817,
22155,
273,
18814,
5621,
3639,
309,
261,
2211,
422,
22155,
18,
588,
4818,
7675,
588,
921,
797,
10756,
288,
5411,
22155,
18,
8869,
... |
writeSuccessFractionCell(p, buf); | writeProgressFractionCell(p, buf); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { StringBuffer buf = new StringBuffer(2048); ctx.getPageMaker().makeHead(buf, "Queued Requests"); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); Logger.minor(this, "Request count: "+reqs.length); for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } if(!(completedDownloadToTemp.isEmpty() && completedDownloadToDisk.isEmpty() && completedUpload.isEmpty() && completedDirUpload.isEmpty())) { writeBigHeading("Completed requests", buf); if(!completedDownloadToTemp.isEmpty()) { writeTableHead("Completed downloads to temporary space", new String[] { "", "Identifier", "Size", "Type", "Download", "Persistence", "Key" }, buf ); for(Iterator i = completedDownloadToTemp.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDownloadToDisk.isEmpty()) { writeTableHead("Completed downloads to disk", new String[] { "", "Identifier", "Filename", "Size", "Type", "Download", "Persistence", "Key" }, buf); for(Iterator i=completedDownloadToDisk.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedUpload.isEmpty()) { writeTableHead("Completed uploads", new String[] { "", "Key", "Filename", "Size", "Type", "Persistence", "Identifier" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDirUpload.isEmpty()) { // FIXME include filename?? writeTableHead("Completed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Persistence", "Key" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } /* FIXME color-coded progress bars. * It would be really nice to have a color-coded progress bar. * We can then show what part is successful, what part isn't tried yet, * what part has each different well known error code... */ if(!(failedDownload.isEmpty() && failedUpload.isEmpty())) { writeBigHeading("Failed requests", buf); if(!failedDownload.isEmpty()) { writeTableHead("Failed downloads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedUpload.isEmpty()) { writeTableHead("Failed uploads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedDirUpload.isEmpty()) { writeTableHead("Failed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } if(!(uncompletedDownload.isEmpty() && uncompletedUpload.isEmpty() && uncompletedDirUpload.isEmpty())) { writeBigHeading("Requests in progress", buf); if(!uncompletedDownload.isEmpty()) { writeTableHead("Downloads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedUpload.isEmpty()) { writeTableHead("Uploads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedDirUpload.isEmpty()) { writeTableHead("Directory uploads in progress", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Persistence", "Key" }, buf); for(Iterator i=uncompletedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/2a50af2c7d1c8c3a5ad945e6a509003db2cd8d7f/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
1892,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
1892,
168... |
switch (methodId) { | switch (f.methodId) { | public int methodArity(int methodId) { if (prototypeFlag) { switch (methodId) { case ConstructorId_fromCharCode: return 1; case Id_constructor: return 1; case Id_toString: return 0; case Id_toSource: return 0; case Id_valueOf: return 0; case Id_charAt: return 1; case Id_charCodeAt: return 1; case Id_indexOf: return 1; case Id_lastIndexOf: return 1; case Id_split: return 2; case Id_substring: return 2; case Id_toLowerCase: return 0; case Id_toUpperCase: return 0; case Id_substr: return 2; case Id_concat: return 1; case Id_slice: return 2; case Id_bold: return 0; case Id_italics: return 0; case Id_fixed: return 0; case Id_strike: return 0; case Id_small: return 0; case Id_big: return 0; case Id_blink: return 0; case Id_sup: return 0; case Id_sub: return 0; case Id_fontsize: return 0; case Id_fontcolor: return 0; case Id_link: return 0; case Id_anchor: return 0; case Id_equals: return 1; case Id_equalsIgnoreCase: return 1; case Id_match: return 1; case Id_search: return 1; case Id_replace: return 1; } } return super.methodArity(methodId); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeString.java/clean/js/rhino/src/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
74,
18,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
2080,
20535,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
565,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
74,
18,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
2080,
20535,
3... |
String n = (String) JOptionPane.showInputDialog(dm.getVisBio(), | String n = (String) JOptionPane.showInputDialog(dm.getControlPanel(), | public static DataTransform makeTransform(DataManager dm) { DataTransform data = dm.getSelectedData(); if (!isValidParent(data)) return null; String n = (String) JOptionPane.showInputDialog(dm.getVisBio(), "Sampling name:", "Create sampling", JOptionPane.INFORMATION_MESSAGE, null, null, data.getName() + " sampling"); if (n == null) return null; // guess at some reasonable defaults int[] len = data.getLengths(); int[] lo = new int[len.length]; int[] hi = new int[len.length]; int[] inc = new int[len.length]; for (int i=0; i<len.length; i++) { lo[i] = 1; hi[i] = len[i]; inc[i] = 1; } ImageTransform it = (ImageTransform) data; int w = it.getImageWidth(); int h = it.getImageHeight(); boolean[] rng = new boolean[it.getRangeCount()]; for (int i=0; i<rng.length; i++) rng[i] = true; return new DataSampling(data, n, lo, hi, inc, w, h, rng); } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/6bc0989c5ee0d7ade3d046876ab546bc8b27b346/DataSampling.java/clean/loci/visbio/data/DataSampling.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1910,
4059,
1221,
4059,
12,
751,
1318,
9113,
13,
288,
565,
1910,
4059,
501,
273,
9113,
18,
588,
7416,
751,
5621,
565,
309,
16051,
26810,
3054,
12,
892,
3719,
327,
446,
31,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
4059,
1221,
4059,
12,
751,
1318,
9113,
13,
288,
565,
1910,
4059,
501,
273,
9113,
18,
588,
7416,
751,
5621,
565,
309,
16051,
26810,
3054,
12,
892,
3719,
327,
446,
31,
56... |
IndexReader reader = IndexReader.open(new NdfsDirectory(fs, index, false)); | IndexReader reader = IndexReader.open(new NdfsDirectory(fs, index, false, getConf())); | public void reduce(WritableComparable key, Iterator values, OutputCollector output, Reporter reporter) throws IOException { File index = new File(key.toString()); IndexReader reader = IndexReader.open(new NdfsDirectory(fs, index, false)); try { while (values.hasNext()) { reader.delete(((IntWritable)values.next()).get()); } } finally { reader.close(); } } | 57484 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57484/329ff64e9d7295aff108f85e9a8103f5e5f8f398/DeleteDuplicates.java/clean/src/java/org/apache/nutch/indexer/DeleteDuplicates.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5459,
12,
12061,
799,
10207,
498,
16,
4498,
924,
16,
5397,
3633,
7134,
876,
16,
25585,
11528,
13,
565,
1216,
1860,
288,
565,
1387,
770,
273,
394,
1387,
12,
856,
18,
10492,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
5459,
12,
12061,
799,
10207,
498,
16,
4498,
924,
16,
5397,
3633,
7134,
876,
16,
25585,
11528,
13,
565,
1216,
1860,
288,
565,
1387,
770,
273,
394,
1387,
12,
856,
18,
10492,
10... |
if( targetPrinter != null ) { | if (targetPrinter != null) { | private void scan() throws BuildException { long now = (new Date()).getTime(); DirectoryScanner ds = null; ds = getDirectoryScanner( srcDir ); String[] files = ds.getIncludedFiles(); FileOutputStream targetOutputStream = null; PrintStream targetPrinter = null; boolean writeTargets = false; try { if( targets == null ) { targets = new File( "targets" ); log( "Warning: targets file not specified. generating file: " + targets.getName() ); writeTargets = true; } else if( !targets.exists() ) { log( "Specified targets file doesn't exist. generating file: " + targets.getName() ); writeTargets = true; } if( writeTargets ) { log( "You should consider using iControl to create a target file." ); targetOutputStream = new FileOutputStream( targets ); targetPrinter = new PrintStream( targetOutputStream ); } for (int i = 0; i < files.length; i++ ) { File srcFile = new File(srcDir, files[i]); if (files[i].endsWith(".java")) { // print the target, while we're at here. (Only if generatetarget=true). if( targetPrinter != null ) { targetPrinter.println( srcFile.getAbsolutePath() ); } File classFile = new File( buildDir, files[i].substring( 0, files[i].indexOf( ".java" ) ) + ".class" ); if (srcFile.lastModified() > now) { log("Warning: file modified in the future: " + files[i], Project.MSG_WARN); } if (!classFile.exists() || srcFile.lastModified() > classFile.lastModified()) { //log( "Found a file newer than the instrumentDir class file: " + srcFile.getPath() + " newer than " + classFile.getPath() + ". Running iContract again..." ); dirty = true; } } } if( targetPrinter != null ) { targetPrinter.flush(); targetPrinter.close(); } } catch( IOException e ) { throw new BuildException( "Could not create target file:" + e.getMessage() ); } // also, check controlFile timestamp long controlFileTime = -1; try { if( controlFile != null ) { if( controlFile.exists() && buildDir.exists() ) { controlFileTime = controlFile.lastModified(); ds = getDirectoryScanner( buildDir ); files = ds.getIncludedFiles(); for( int i = 0; i < files.length; i++ ) { File srcFile = new File( srcDir, files[i] ); if( files[i].endsWith( ".class" ) ) { if( controlFileTime > srcFile.lastModified() ) { if( !dirty ) { log( "Control file " + controlFile.getAbsolutePath() + " has been updated. Instrumenting all files..." ); } dirty = true; instrumentall = true; } } } } } } catch( Throwable t ) { throw new BuildException( "Got an interesting exception:" + t.getMessage() ); } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/IContract.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4135,
1435,
1216,
18463,
288,
3639,
1525,
2037,
273,
261,
2704,
2167,
1435,
2934,
588,
950,
5621,
3639,
8930,
11338,
3780,
273,
446,
31,
3639,
3780,
273,
19831,
11338,
12,
30585,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4135,
1435,
1216,
18463,
288,
3639,
1525,
2037,
273,
261,
2704,
2167,
1435,
2934,
588,
950,
5621,
3639,
8930,
11338,
3780,
273,
446,
31,
3639,
3780,
273,
19831,
11338,
12,
30585,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.