rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
if (!handle.getDefn( ).isMultipleCardinality( )) | if ( !handle.getDefn( ).isMultipleCardinality( ) ) | private static boolean checkContainContainMulitItem(Object[] objects, Object slotHandle) { SlotHandle handle = null; if (slotHandle instanceof ReportElementModel) { handle = ((ReportElementModel)slotHandle).getSlotHandle( ); } else if (slotHandle instanceof SlotHandle) { handle = (SlotHandle)slotHandle; } if (handle != null && objects != null && objects.length > 1) { if (!handle.getDefn( ).isMultipleCardinality( )) { return false; } } return true; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/f93286dc6d03bc1b6417b1a9244304ed2d4b7ce9/InsertInLayoutUtil.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dnd/InsertInLayoutUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
866,
22928,
22928,
27860,
305,
1180,
12,
921,
8526,
2184,
16,
1033,
4694,
3259,
13,
202,
95,
202,
202,
8764,
3259,
1640,
273,
446,
31,
202,
202,
430,
261,
14194,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
866,
22928,
22928,
27860,
305,
1180,
12,
921,
8526,
2184,
16,
1033,
4694,
3259,
13,
202,
95,
202,
202,
8764,
3259,
1640,
273,
446,
31,
202,
202,
430,
261,
14194,
3... |
String p_indent = temp.getAttribute( "indent" ); indent = p_indent.equals( "true" ); | String p_indent = temp.getAttribute("indent"); indent = p_indent.equals("true"); | protected String doPost( String request, String name ) { int i = name.lastIndexOf( '/' ); if ( i < ( name.length( ) - 1 ) ) name = name.substring( i + 1 ); else name = null; boolean indent = true; boolean summary = false; int howmany = 10; int start = 1; String query = null; String result = null; NodeList tmpList; Element temp; try { InputSource src = new InputSource( new StringReader( request ) ); Document doc = docBuilder.parse( src ); Element root = doc.getDocumentElement( ); // process <exist:request> if ( root.getTagName( ).equals( "exist:request" ) ) { // process <display indent="true|false" start="start" howmany="howmany"> tmpList = root.getElementsByTagNameNS( NS, "display" ); if ( tmpList.getLength( ) == 0 ) { tmpList = root.getElementsByTagNameNS( NS, "summarize" ); summary = ( tmpList.getLength( ) > 0 ); } if ( tmpList.getLength( ) > 0 ) { temp = (Element) tmpList.item( 0 ); String p_indent = temp.getAttribute( "indent" ); indent = p_indent.equals( "true" ); String p_howmany = temp.getAttribute( "howmany" ); if ( p_howmany != null ) { try { howmany = Integer.parseInt( p_howmany ); } catch ( NumberFormatException nfe ) { howmany = 15; } } String p_start = temp.getAttribute( "start" ); if ( p_start != null ) { try { start = Integer.parseInt( p_start ); } catch ( NumberFormatException nfe ) { start = 1; } } } // process <get document="docName" indent="true|false"/> tmpList = root.getElementsByTagNameNS( NS, "get" ); if ( tmpList.getLength( ) > 0 ) { temp = (Element) tmpList.item( 0 ); String docName = temp.getAttribute( "document" ); DocumentImpl d = (DocumentImpl) broker.getDocument( docName ); if ( d == null ) return formatErrorMsg( "document " + docName + " not found!", DOCUMENT_NOT_FOUND ); Serializer serializer = broker.getSerializer( ); Map properties = new TreeMap(); properties.put(Serializer.ENCODING, "UTF-8"); properties.put(Serializer.PRETTY_PRINT, Boolean.toString(indent)); serializer.setProperties(properties); return serializer.serialize( d ); } // process <query>xpathQuery</query> tmpList = root.getElementsByTagNameNS( NS, "query" ); if ( tmpList.getLength( ) > 0 ) { temp = (Element) tmpList.item( 0 ); Text text = (Text) temp.getFirstChild( ); query = text.getData( ); if ( ( !query.startsWith( "document(" ) ) && ( !query.startsWith( "doctype(" ) ) ) { if ( ( name != null ) && ( name.length( ) > 0 ) ) query = "document(\"" + name + "\")" + query; else query = "document()" + query; } } // process <remove document="docName"/> tmpList = root.getElementsByTagNameNS( NS, "remove" ); if ( tmpList.getLength( ) > 0 ) { temp = (Element) tmpList.item( 0 ); String docName = temp.getAttribute( "document" ); DocumentImpl d = (DocumentImpl) broker.getDocument( docName ); if ( d == null ) return formatErrorMsg( "document " + docName + " not found!", DOCUMENT_NOT_FOUND ); broker.removeDocument( docName ); return formatErrorMsg( "removed document " + docName, OK ); } // execute query if ( query != null ) result = search( query, howmany, start, summary, indent, null ); } else result = formatErrorMsg( "not a valid request", WRONG_REQUEST ); } catch ( SAXException e ) { HttpServer.LOG.debug( request ); HttpServer.LOG.debug( e ); result = formatErrorMsg( e.getException( ).toString( ), WRONG_REQUEST ); } catch ( Exception e ) { HttpServer.LOG.debug( e ); e.printStackTrace( ); result = formatErrorMsg( e.toString( ), WRONG_REQUEST ); } return result; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/HttpServerConnection.java/buggy/src/org/exist/http/HttpServerConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
741,
3349,
12,
514,
590,
16,
514,
508,
262,
288,
3639,
509,
277,
273,
508,
18,
2722,
31985,
12,
2023,
11272,
3639,
309,
261,
277,
411,
261,
508,
18,
2469,
12,
225,
262,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
741,
3349,
12,
514,
590,
16,
514,
508,
262,
288,
3639,
509,
277,
273,
508,
18,
2722,
31985,
12,
2023,
11272,
3639,
309,
261,
277,
411,
261,
508,
18,
2469,
12,
225,
262,
300... |
for (int k = 0; k < 40; k++) | for (short k = 0; k < 40; k++) | public void work() { for (int i = 0; i < mLARc.length; i++) { mLARc[i] = input.popInt(); //fix inputs!! } for (int i = 0; i < mdrp.length; i++) { mdrp[i] = input.popInt(); } //Decoding of the coded Log-Area ratios: for (int i = 0; i < 8; i++) { int temp1 = (mLARc[i] + MIC[i]) << 10; int temp2 = B[i] << 10; temp1 = temp1 - temp2; temp1 = INVA[i] * temp1; mLARpp[i] = temp1 + temp1; } //Computation of the quantized reflection coefficients //Interpolation of mLARpp to get mLARp: for (int k = 0; k < 13; k++) { for(int i = 0; i < 8; i++) { mLARp[i] = (mprevLARpp[i] >> 2) + (mLARpp[i] >> 2); mLARp[i] = mLARp[i] + (mprevLARpp[i] >> 1); } } for (int k = 13; k < 27; k++) { for (int i = 0; i < 8; i++) { mLARp[i] = (mprevLARpp[i] >> 1) + (mLARpp[i] >> 1); } } for (int k = 27; k < 39; k++) { for (int i = 0; i < 8; i++) { mLARp[i] = (mprevLARpp[i] >> 2) + (mLARpp[i] >> 2); mLARp[i] = mLARp[i] + (mLARpp[i] >> 1); } } for (int k = 40; k < 160; k++) { for (int i = 0; i < 8; i++) { mLARp[i] = mLARpp[i]; } } //set current LARpp to previous: for (int j = 0; j < mprevLARpp.length; j++) { mprevLARpp[j] = mLARpp[j]; } //Compute mrrp[0..7] from mLARp[0...7] for (int i = 0; i < 8; i++) { int temp = Math.abs(mLARp[i]); if (temp < 11059) { temp = temp << 1; } else { if (temp < 20070) { temp = temp + 11059; } else { temp = (temp >> 2) + 26112; } } mrrp[i] = temp; if (mLARp[i] < 0) { mrrp[i] = 0 - mrrp[i]; } } //Short term synthesis filtering: uses drp[0..39] and rrp[0...7] // to produce sr[0...159]. A temporary array wt[0..159] is used. for (int k = 0; k < 40; k++) { wt[k] = mdrp[k]; } for (int k = 0; k < 40; k++) { wt[40+k] = mdrp[k]; } for (int k = 0; k < 40; k++) { wt[80+k] = mdrp[k]; } for (int k = 0; k < 40; k++) { wt[120+k] = mdrp[k]; } //below is supposed to be from index_start to index_end...how is //this different from just 0 to 159? for (int k = 0; k < 160; k++) { int sri = wt[k]; for (int i = 1; i < 8; i++) { sri = sri - (mrrp[8-i] * v[8-i]); v[9-i] = v[8-i] + (mrrp[8-i] * sri); } sr[k] = sri; v[0] = sri; } for (int j = 0; j < sr.length; j++) { output.pushInt(sr[j]); } } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/06a756f0dbb6e3fab85d38ec55a388fd84ef7b0c/StGsmDecoder.java/clean/streams/apps/benchmarks/gsm/streamit/StGsmDecoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1440,
1435,
377,
288,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
312,
48,
985,
71,
18,
2469,
31,
277,
27245,
202,
95,
202,
565,
312,
48,
985,
71,
63,
77,
65,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1440,
1435,
377,
288,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
312,
48,
985,
71,
18,
2469,
31,
277,
27245,
202,
95,
202,
565,
312,
48,
985,
71,
63,
77,
65,
273,
... |
startProcessingThreads(); | startProcessingThread(); | synchronized void resume() { running=true; if(m_upProcessingThread == null) { startProcessingThreads(); } m_upLatch.unlock(); m_upProcessingThread.interrupt(); } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/4829963e18fa74e6d717d749737cd68118993115/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3852,
918,
10774,
1435,
288,
5411,
3549,
33,
3767,
31,
5411,
309,
12,
81,
67,
416,
7798,
3830,
422,
446,
13,
288,
7734,
787,
7798,
3830,
5621,
5411,
289,
5411,
312,
67,
416,
23463,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3852,
918,
10774,
1435,
288,
5411,
3549,
33,
3767,
31,
5411,
309,
12,
81,
67,
416,
7798,
3830,
422,
446,
13,
288,
7734,
787,
7798,
3830,
5621,
5411,
289,
5411,
312,
67,
416,
23463,
18,
... |
sourceResolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE); String uri = ((DefaultDocument) sourceDocument).getHistory().getSourceURI(); historySource = sourceResolver.resolveURI(uri); if (historySource.exists()) { ((ModifiableSource) historySource).delete(); } | SourceUtil.delete(((DefaultDocument) sourceDocument).getHistory().getSourceURI(), this.manager); | public void deleteHistory(Document sourceDocument) throws WorkflowException { WorkflowResolver resolver = null; SourceResolver sourceResolver = null; Source historySource = null; try { resolver = (WorkflowResolver) this.manager.lookup(WorkflowResolver.ROLE); if (resolver.hasWorkflow(sourceDocument)) { sourceResolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE); String uri = ((DefaultDocument) sourceDocument).getHistory().getSourceURI(); historySource = sourceResolver.resolveURI(uri); if (historySource.exists()) { ((ModifiableSource) historySource).delete(); } } } catch (Exception e) { throw new WorkflowException(e); } finally { if (resolver != null) { this.manager.release(resolver); } if (sourceResolver != null) { if (historySource != null) { sourceResolver.release(historySource); } this.manager.release(sourceResolver); } } } | 45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/aa64bc6a5c059e960cd1f353dbb2bd97d4ac4516/WorkflowManagerImpl.java/buggy/src/java/org/apache/lenya/cms/workflow/WorkflowManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
5623,
12,
2519,
1084,
2519,
13,
1216,
11363,
503,
288,
3639,
11363,
4301,
5039,
273,
446,
31,
3639,
4998,
4301,
1084,
4301,
273,
446,
31,
3639,
4998,
4927,
1830,
273,
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,
918,
1430,
5623,
12,
2519,
1084,
2519,
13,
1216,
11363,
503,
288,
3639,
11363,
4301,
5039,
273,
446,
31,
3639,
4998,
4301,
1084,
4301,
273,
446,
31,
3639,
4998,
4927,
1830,
273,
446... |
elementContext.pushBinding(elementContext.getPipelineContext(), attributes.getValue("ref"), attributes.getValue("nodeset"), null, attributes.getValue("bind"), null); | elementContext.pushBinding(attributes.getValue("ref"), attributes.getValue("nodeset"), null, attributes.getValue("bind")); | public void startElement(String uri, String localname, String qname, Attributes attributes) throws SAXException { elementContext.getNamespaceSupport().pushContext(); if (recordMode) { // Record event repeatElementDepth++; repeatSAXStore.startElement(uri, localname, qname, attributes); } else if (XFormsConstants.XFORMS_NAMESPACE_URI.equals(uri) || XFormsConstants.XXFORMS_NAMESPACE_URI.equals(uri)) { // Get ref / bind / nodeset elementContext.pushBinding(elementContext.getPipelineContext(), attributes.getValue("ref"), attributes.getValue("nodeset"), null, attributes.getValue("bind"), null); // Invoke element XFormsElement element = "group".equals(localname) ? new Group() : "repeat".equals(localname) ? new Repeat() : "itemset".equals(localname) ? new Itemset() : new XFormsElement(); elementContext.pushElement(element); element.start(elementContext, uri, localname, qname, attributes); // If this is a repeat element, record children events if (element.repeatChildren()) { recordMode = true; repeatSAXStore = new SAXStore(); repeatElementDepth = 0; } } else { super.startElement(uri, localname, qname, attributes); } } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/b447ea4ac6670702574a1b3dc4d87ec4234e84f5/ViewContentHandler.java/clean/src/java/org/orbeon/oxf/processor/xforms/output/element/ViewContentHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
12621,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
930,
1042,
18,
588,
3402,
6289,
7675,
6206,
1042,
5621,
3639,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
12621,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
930,
1042,
18,
588,
3402,
6289,
7675,
6206,
1042,
5621,
3639,
309,
261,
... |
if (destFile.isDirectory()) | if ( destFile.isDirectory() ) | private void validate() throws ArchiverException { if (destFile == null) { throw new ArchiverException("Destination file attribute is required"); } if (destFile.isDirectory()) { throw new ArchiverException("Destination file attribute must not " + "represent a directory!"); } if (sourceFile == null) { throw new ArchiverException("Source file attribute is required"); } if (sourceFile.isDirectory()) { throw new ArchiverException("Source file attribute must not " + "represent a directory!"); } } | 55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/5ff2acf80f6aff7feb96a8e1232193fa1fd01459/Compressor.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/util/Compressor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1954,
1435,
1216,
16959,
1667,
503,
565,
288,
3639,
309,
261,
10488,
812,
422,
446,
13,
3639,
288,
5411,
604,
394,
16959,
1667,
503,
2932,
5683,
585,
1566,
353,
1931,
8863,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
1435,
1216,
16959,
1667,
503,
565,
288,
3639,
309,
261,
10488,
812,
422,
446,
13,
3639,
288,
5411,
604,
394,
16959,
1667,
503,
2932,
5683,
585,
1566,
353,
1931,
8863,
363... |
; | s += v.getInt(); | public String toString(String pad) { VarValue v; String s = pad + desc.token + " { "; for (int i = 0; i < vals.size(); i++) { v = (VarValue)vals.elementAt(i); if (valtype.equals(ValType.t_string) || valtype.equals(ValType.t_chunk)) s += '"' + v.toString() + '"'; else if (valtype.equals (ValType.t_embeddedchunk)) { s += "\n" + v.getEmbeddedChunk().toString(pad + " "); } else if (valtype.equals(ValType.t_bool) || (desc.enums.size() == 0)) s += v.toString(); else if (valtype.equals(ValType.t_int)) { try { s += desc.getEnumString (v.getInt()); } catch (java.util.NoSuchElementException e) { ; } } else if (valtype.equals(ValType.t_float)) { try { s += desc.getEnumString (v.getFloat()); } catch (java.util.NoSuchElementException e) { ; } } s+= " "; } s += "}"; return s; } | 7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/ac8fbc206aef0d29f7bc365f614874f028faef64/Property.java/clean/modules/jackal/config/org/vrjuggler/jccl/config/Property.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
12,
780,
4627,
13,
288,
202,
1537,
620,
331,
31,
202,
780,
272,
273,
4627,
397,
3044,
18,
2316,
397,
315,
288,
13636,
202,
1884,
261,
474,
277,
273,
374,
87,
1011,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1762,
12,
780,
4627,
13,
288,
202,
1537,
620,
331,
31,
202,
780,
272,
273,
4627,
397,
3044,
18,
2316,
397,
315,
288,
13636,
202,
1884,
261,
474,
277,
273,
374,
87,
1011,
33... |
@Override public void done(IJobChangeEvent event) { close(); TaskUiUtil.openEditor(modifiedTask, false); } }); Set<AbstractRepositoryQuery> queriesWithHandle = TasksUiPlugin.getTaskListManager().getTaskList() .getQueriesForHandle(modifiedTask.getHandleIdentifier()); TasksUiPlugin.getSynchronizationManager().synchronize(connector, queriesWithHandle, null, Job.SHORT, 0, false); TasksUiPlugin.getSynchronizationManager().synchronizeChanged(connector, repository); | public void submitToRepository() { submitButton.setEnabled(false); showBusy(true); if (isDirty()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { doSave(new NullProgressMonitor()); } }); } BugzillaReportSubmitForm bugzillaReportSubmitForm; try { if (taskData.isLocallyCreated()) { boolean wrap = IBugzillaConstants.BugzillaServerVersion.SERVER_218.equals(repository.getVersion()); bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeNewBugPost(repository.getUrl(), repository .getUserName(), repository.getPassword(), editorInput.getProxySettings(), repository .getCharacterEncoding(), taskData, wrap); } else { bugzillaReportSubmitForm = BugzillaReportSubmitForm.makeExistingBugPost(taskData, repository.getUrl(), repository.getUserName(), repository.getPassword(), editorInput.getProxySettings(), removeCC, repository.getCharacterEncoding()); } } catch (UnsupportedEncodingException e) { // should never get here but just in case... MessageDialog.openError(null, "Posting Error", "Ensure proper encoding selected in " + TaskRepositoriesView.NAME + "."); return; } final BugzillaRepositoryConnector bugzillaRepositoryConnector = (BugzillaRepositoryConnector) TasksUiPlugin .getRepositoryManager().getRepositoryConnector(BugzillaCorePlugin.REPOSITORY_KIND); JobChangeAdapter submitJobListener = new JobChangeAdapter() { public void done(final IJobChangeEvent event) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if (event.getJob().getResult().getCode() == Status.OK && event.getJob().getResult().getMessage() != null) {// // Attach context if (getAttachContext()) { final AbstractRepositoryTask modifiedTask = (AbstractRepositoryTask) TasksUiPlugin .getTaskListManager() .getTaskList() .getTask( AbstractRepositoryTask.getHandle(repository.getUrl(), taskData.getId())); IWorkbench wb = PlatformUI.getWorkbench(); IProgressService ps = wb.getProgressService(); try { ps.busyCursorWhile(new IRunnableWithProgress() { public void run(IProgressMonitor pm) { try { bugzillaRepositoryConnector.attachContext(repository, modifiedTask, "", TasksUiPlugin.getDefault().getProxySettings()); } catch (Exception e) { MylarStatusHandler.fail(e, "Failed to attach task context.\n\n" + e.getMessage(), true); } } }); } catch (InvocationTargetException e1) { MylarStatusHandler.fail(e1.getCause(), "Failed to attach task context.\n\n" + e1.getMessage(), true); } catch (InterruptedException e1) { // ignore } // IWorkbenchSite site = // BugzillaTaskEditor.this.getEditor().getSite(); // if (site instanceof IEditorSite) { // IStatusLineManager statusLineManager = // ((IEditorSite)site).getActionBars().getStatusLineManager(); // IProgressMonitor pm = // statusLineManager.getProgressMonitor(); // pm.beginTask("Attaching context", // IProgressMonitor.UNKNOWN); // pm.worked(1); // try { // bugzillaRepositoryConnector.attachContext(repository, // modifiedTask, "", TasksUiPlugin // .getDefault().getProxySettings()); // } catch (Exception e) { // MylarStatusHandler.fail(e, "Failed to attach // task context.\n\n"+e.getMessage(), true); // } // pm.done(); // // } } close(); return; } else if (event.getJob().getResult().getCode() == Status.INFO) { WebBrowserDialog.openAcceptAgreement(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event .getJob().getResult().getMessage(), event.getJob().getResult().getException() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } else if (event.getJob().getResult().getCode() == Status.ERROR) { MessageDialog.openError(null, IBugzillaConstants.REPORT_SUBMIT_ERROR, event.getResult() .getMessage()); submitButton.setEnabled(true); BugzillaTaskEditor.this.showBusy(false); } } }); } }; submissionHandler.submitBugReport(bugzillaReportSubmitForm, submitJobListener, false, false); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d8cf4a085d2950342ae5851d555f0eb0fa73e0b8/BugzillaTaskEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4879,
774,
3305,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4879,
774,
3305,
1435,
288,
202,
202,
9297,
3616,
18,
542,
1526,
12,
5743,
1769,
202,
202,
4500,
29289,
12,
3767,
1769,
202,
202,
430,
261,
291,
10785,
10756,
288,
1082,
... | |
softWrap.setSelected(current.softWrap); | tabSize.setSelectedItem(current.tabSize); indentSize.setSelectedItem(current.indentSize); noTabs.setSelected(current.noTabs); | private void selectMode() { current = modeProps[mode.getSelectedIndex()]; current.edited = true; current.load(); useDefaults.setSelected(current.useDefaults); filenameGlob.setText(current.filenameGlob); firstlineGlob.setText(current.firstlineGlob); tabSize.setSelectedItem(current.tabSize); indentSize.setSelectedItem(current.indentSize); noWordSep.setText(current.noWordSep); folding.setSelectedItem(current.folding); collapseFolds.setText(current.collapseFolds); maxLineLen.setSelectedItem(current.maxLineLen); softWrap.setSelected(current.softWrap); indentOnTab.setSelected(current.indentOnTab); indentOnEnter.setSelected(current.indentOnEnter); noTabs.setSelected(current.noTabs); updateEnabled(); } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/68dbdd95261b9680d2664b2510a57645537de714/ModeOptionPane.java/clean/org/gjt/sp/jedit/options/ModeOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2027,
2309,
1435,
202,
95,
202,
202,
2972,
273,
1965,
5047,
63,
3188,
18,
588,
7416,
1016,
1435,
15533,
202,
202,
2972,
18,
28752,
273,
638,
31,
202,
202,
2972,
18,
945,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
2309,
1435,
202,
95,
202,
202,
2972,
273,
1965,
5047,
63,
3188,
18,
588,
7416,
1016,
1435,
15533,
202,
202,
2972,
18,
28752,
273,
638,
31,
202,
202,
2972,
18,
945,... |
setDisabled(false); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMaxlength((String) evalAttr("maxlength", getMaxlength(), String.class)); } catch (NullAttributeException ex) { setMaxlength(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setReadonly(false); } try { setRedisplay(((Boolean) evalAttr("redisplay", getRedisplayExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setRedisplay(false); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELPasswordTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELPasswordTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | |
/* if (anonymous) { env = new CalEnv(CalEnv.caldavPublicAppPrefix, debug); } else { env = new CalEnv(CalEnv.caldavPersonalAppPrefix, debug); } */ publicCalendarRoot = CalEnv.getGlobalProperty("public.calroot"); userCalendarRoot = CalEnv.getGlobalProperty("user.calroot"); | publicCalendarRoot = getSvci().getSyspars().getPublicCalendarRoot(); userCalendarRoot = getSvci().getSyspars().getUserCalendarRoot(); | public void init(WebdavServlet servlet, HttpServletRequest req, Properties props, boolean debug) throws WebdavIntfException { super.init(servlet, req, props, debug); namespacePrefix = WebdavUtils.getUrlPrefix(req); namespace = namespacePrefix + "/schema"; try { /* if (anonymous) { env = new CalEnv(CalEnv.caldavPublicAppPrefix, debug); } else { env = new CalEnv(CalEnv.caldavPersonalAppPrefix, debug); } */ publicCalendarRoot = CalEnv.getGlobalProperty("public.calroot"); userCalendarRoot = CalEnv.getGlobalProperty("user.calroot"); } catch (Throwable t) { throw new WebdavIntfException(t); }// uriGen = new UWCalWebURIgen(namespace); } | 50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/69f5092b4e042080dfb3b843203a92d529dfd1d9/CaldavBWIntf.java/buggy/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/CaldavBWIntf.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
12,
4079,
20752,
4745,
8100,
16,
10402,
9984,
1111,
16,
10402,
6183,
3458,
16,
10402,
1250,
1198,
13,
1216,
2999,
20752,
1702,
74,
503,
288,
565,
2240,
18,
2738,
12,
2323... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
4079,
20752,
4745,
8100,
16,
10402,
9984,
1111,
16,
10402,
6183,
3458,
16,
10402,
1250,
1198,
13,
1216,
2999,
20752,
1702,
74,
503,
288,
565,
2240,
18,
2738,
12,
2323... |
identifiableCache.put( mageObj.getIdentifier(), gemmaObj ); | public boolean convertIdentifiable( org.biomage.Common.Identifiable mageObj, edu.columbia.gemma.common.Identifiable gemmaObj ) { if ( mageObj == null ) return false; if ( gemmaObj == null ) throw new IllegalArgumentException( "Must pass in a valid object" ); if ( isInCache( mageObj ) ) { log.debug( "Object exists in cache: " + mageObj.getIdentifier() ); gemmaObj = ( edu.columbia.gemma.common.Identifiable ) identifiableCache.get( mageObj.getIdentifier() ); return true; } identifiableCache.put( mageObj.getIdentifier(), gemmaObj ); gemmaObj.setIdentifier( mageObj.getIdentifier() ); gemmaObj.setName( mageObj.getName() ); convertDescribable( mageObj, gemmaObj ); return false; } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/cc3d1770c32b671f0595f1e84c33f57158e6e1d2/MageMLConverter.java/clean/src/impl/edu/columbia/gemma/loader/mage/MageMLConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1765,
6106,
8424,
12,
2358,
18,
13266,
362,
410,
18,
6517,
18,
6106,
8424,
312,
410,
2675,
16,
5411,
1675,
89,
18,
1293,
3592,
1155,
18,
23465,
2540,
18,
6054,
18,
6106,
842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1765,
6106,
8424,
12,
2358,
18,
13266,
362,
410,
18,
6517,
18,
6106,
8424,
312,
410,
2675,
16,
5411,
1675,
89,
18,
1293,
3592,
1155,
18,
23465,
2540,
18,
6054,
18,
6106,
842... | |
postReplaceChild(this.value, value, VALUE_PROPERTY); | postReplaceChild(oldChild, value, VALUE_PROPERTY); | public void setValue(Expression value) { if (value == null) { throw new IllegalArgumentException(); } preReplaceChild(this.value, value, VALUE_PROPERTY); this.value = value; postReplaceChild(this.value, value, VALUE_PROPERTY); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/38b81cceafabaca157320ce2793e74f4a9686fd7/SingleMemberAnnotation.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleMemberAnnotation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5524,
12,
2300,
460,
13,
288,
202,
202,
430,
261,
1132,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
97,
202,
202,
1484,
5729,
1763,
12,
2211,
18,
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,
225,
202,
482,
918,
5524,
12,
2300,
460,
13,
288,
202,
202,
430,
261,
1132,
422,
446,
13,
288,
1082,
202,
12849,
394,
2754,
5621,
202,
202,
97,
202,
202,
1484,
5729,
1763,
12,
2211,
18,
11... |
throw new ArgumentError(runtime, sTooFew); | throw runtime.newArgumentError(sTooFew); | public static int encode(Ruby runtime, int occurrences, StringBuffer result, List list, int index, Converter converter) { int listSize = list.size(); while (occurrences-- > 0) { if (listSize-- <= 0) { throw new ArgumentError(runtime, sTooFew); } IRubyObject from = (IRubyObject) list.get(index++); converter.encode(runtime, from, result); } return index; } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/Pack.java/clean/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
2017,
12,
54,
10340,
3099,
16,
509,
15698,
16,
6674,
563,
16,
2398,
987,
666,
16,
509,
770,
16,
14768,
6027,
13,
288,
3639,
509,
666,
1225,
273,
666,
18,
1467,
5621,
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,
760,
509,
2017,
12,
54,
10340,
3099,
16,
509,
15698,
16,
6674,
563,
16,
2398,
987,
666,
16,
509,
770,
16,
14768,
6027,
13,
288,
3639,
509,
666,
1225,
273,
666,
18,
1467,
5621,
3... |
&& this.getType() == other.getType(); | && this.getType() == other.getType(); | public boolean equals(Object o) { if (this.getClass() != o.getClass()) return false; Edge other = (Edge) o; return this.getSource() == other.getSource() && this.getTarget() == other.getTarget() && this.getType() == other.getType(); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/Edge.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/Edge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1606,
12,
921,
320,
13,
288,
202,
202,
430,
261,
2211,
18,
588,
797,
1435,
480,
320,
18,
588,
797,
10756,
1082,
202,
2463,
629,
31,
202,
202,
6098,
1308,
273,
261,
609... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1606,
12,
921,
320,
13,
288,
202,
202,
430,
261,
2211,
18,
588,
797,
1435,
480,
320,
18,
588,
797,
10756,
1082,
202,
2463,
629,
31,
202,
202,
6098,
1308,
273,
261,
609... |
DRLInfo drlInfo = DroolsIDEPlugin.getDefault().parseResource(resource, true); | DRLInfo drlInfo = DroolsIDEPlugin.getDefault().parseResource(resource, false); | public boolean canToggleLineBreakpoints(IWorkbenchPart part, ISelection selection) { if (part instanceof IEditorPart) { IEditorPart editor = (IEditorPart) part; IResource resource = (IResource) editor.getEditorInput().getAdapter(IResource.class); ITextSelection textSelection = (ITextSelection) selection; int lineNumber = textSelection.getStartLine(); try { DRLInfo drlInfo = DroolsIDEPlugin.getDefault().parseResource(resource, true); if (drlInfo != null) { RuleInfo ruleInfo = drlInfo.getRuleInfo(lineNumber); if (ruleInfo != null) { if (ruleInfo.getConsequenceDrlLineNumber() <= lineNumber) { return true; } } } } catch (Throwable t) { DroolsIDEPlugin.log(t); } } return false; } | 53688 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53688/03aee94480a07575377811d4e9372ff259ae7aba/DroolsLineBreakpointAdapter.java/buggy/drools-ide/src/main/java/org/drools/ide/editors/DroolsLineBreakpointAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
848,
17986,
1670,
7634,
4139,
12,
45,
2421,
22144,
1988,
1087,
16,
467,
6233,
4421,
13,
288,
202,
202,
430,
261,
2680,
1276,
467,
6946,
1988,
13,
288,
1082,
202,
45,
694... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
848,
17986,
1670,
7634,
4139,
12,
45,
2421,
22144,
1988,
1087,
16,
467,
6233,
4421,
13,
288,
202,
202,
430,
261,
2680,
1276,
467,
6946,
1988,
13,
288,
1082,
202,
45,
694... |
ctx.code.emitGOTO(afterLabel); | ctx.code.emitGOTO_maybe_W(afterLabel, ctx.useWideJumps); | protected JType genLoad(Context ctx, Tree tree, JType expectedType) { startCodeForTree(ctx, tree); JType generatedType = null; Symbol sym = tree.symbol(); switch (tree) { case LabelDef(_, Tree.Ident[] params, Tree rhs): { JCode.Label label = ctx.code.newLabel(); label.anchorToNext(); ctx.labels.put(sym, new Pair(label, params)); generatedType = genLoad(ctx, rhs, expectedType); ctx.labels.remove(sym); } break; case Block(Tree[] stats): { int statsNum = stats.length; for (int i = 0; i < statsNum - 1; ++i) gen(ctx, stats[i]); if (statsNum == 0) maybeGenLoadUnit(ctx, expectedType); else genLoad(ctx, stats[stats.length - 1], expectedType); generatedType = expectedType; } break; case Typed(Tree expr, _): genLoad(ctx, expr, expectedType); generatedType = expectedType; break; case New(Tree.Template templ): { assert templ.body.length == 0; assert templ.parents.length == 1; String className = javaName(tree.type.symbol()); ctx.code.emitNEW(className); ctx.code.emitDUP(); gen(ctx, templ.parents[0]); generatedType = new JObjectType(className); } break; case Apply(TypeApply(Tree fun, Tree[] args), _): { genLoadQualifier(ctx, fun, true); JType type = typeStoJ(args[0].type); if (fun.symbol() == defs.ANY_IS) { ctx.code.emitINSTANCEOF((JReferenceType)type); generatedType = JType.BOOLEAN; } else if (fun.symbol() == defs.ANY_AS) { ctx.code.emitCHECKCAST((JReferenceType)type); generatedType = type; } else global.fail("unexpected type application"); } break; case Apply(Tree fun, Tree[] args): { Symbol funSym = fun.symbol(); if (funSym.isLabel()) { Pair/*<Label, Tree[]>*/ labelAndIdents = (Pair)ctx.labels.get(funSym); assert labelAndIdents != null : Debug.show(funSym); JMethodType funType = (JMethodType)typeStoJ(funSym.info()); JCode.Label label = (JCode.Label)labelAndIdents.fst; Tree[] idents = (Tree[])labelAndIdents.snd; assert idents.length == args.length; for (int i = 0; i < args.length; ++i) genLoad(ctx, args[i], typeStoJ(args[i].type)); for (int i = idents.length; i > 0; --i) genStoreEpilogue(ctx, idents[i-1]); ctx.code.emitGOTO(label); generatedType = funType.getReturnType(); } else if (isKnownPrimitive(funSym)) { Primitive prim = prims.getPrimitive(funSym); switch (prim) { case CONCAT: genStringConcatenation(ctx, liftStringConcatenations(tree)); generatedType = JAVA_LANG_STRING_T; break; case POS: case NEG: case ADD: case SUB: case MUL: case DIV: case MOD: case NOT: case OR : case XOR: case AND: case LSL: case LSR: case ASR: Tree[] allArgs = extractPrimitiveArgs((Tree.Apply)tree); allArgs[0] = unbox(allArgs[0]); JType resType = typeStoJ(tree.type); genArithPrim(ctx, prim, allArgs, resType, expectedType); generatedType = resType; break; case ID: case EQ: case NE: case LT: case LE: case GE: case GT: case ZNOT: case ZOR: case ZAND: JCode.Label falseLabel = ctx.code.newLabel(); JCode.Label afterLabel = ctx.code.newLabel(); genCond(ctx, tree, falseLabel, false); ctx.code.emitICONST_1(); ctx.code.emitGOTO(afterLabel); falseLabel.anchorToNext(); ctx.code.emitICONST_0(); afterLabel.anchorToNext(); generatedType = JType.BOOLEAN; break; case THROW: assert args.length == 0; genThrow(ctx, ((Tree.Select)fun).qualifier); // We pretend that we generated something of the // expected type, to avoid trying to generate // bogus conversions. generatedType = expectedType; break; case NEW_OARRAY: { assert args.length == 2; genRefArrayCreate(ctx, args[0], args[1]); generatedType = expectedType; } break; case NEW_ZARRAY : case NEW_BARRAY : case NEW_SARRAY : case NEW_CARRAY : case NEW_IARRAY : case NEW_LARRAY : case NEW_FARRAY : case NEW_DARRAY : assert args.length == 1; genArrayCreate(ctx, prim, args[0]); generatedType = JAVA_LANG_OBJECT_T; // TODO refine break; case ZARRAY_SET : case BARRAY_SET : case SARRAY_SET : case CARRAY_SET : case IARRAY_SET : case LARRAY_SET : case FARRAY_SET : case DARRAY_SET : case OARRAY_SET : assert args.length == 3; genArrayUpdate(ctx, args[0], args[1], args[2]); generatedType = JType.VOID; break; case ZARRAY_GET : case BARRAY_GET : case SARRAY_GET : case CARRAY_GET : case IARRAY_GET : case LARRAY_GET : case FARRAY_GET : case DARRAY_GET : case OARRAY_GET : assert args.length == 2 : "get - " + args.length; genArrayAccess(ctx, args[0], args[1]); generatedType = getArrayElementType(args[0]); break; case ZARRAY_LENGTH : case BARRAY_LENGTH : case SARRAY_LENGTH : case CARRAY_LENGTH : case IARRAY_LENGTH : case LARRAY_LENGTH : case FARRAY_LENGTH : case DARRAY_LENGTH : case OARRAY_LENGTH : assert args.length == 1 : args.length; genArrayLength(ctx, args[0]); generatedType = JType.INT; break; case AS_UVALUE : assert args.length == 0; gen(ctx, ((Tree.Select)fun).qualifier); generatedType = JType.VOID; break; default: throw Debug.abort("unknown primitive ", prim); } } else { JMethodType funType = (JMethodType)typeStoJ(funSym.info()); JType[] argTypes = funType.getArgumentTypes(); boolean isConstrCall = (funSym.name == CONSTRUCTOR_NAME); boolean isSuperCall = false; switch (fun) { case Select(Super(_, _), _): isSuperCall = true; } boolean isStatic = isStaticMember(funSym); if (!isStatic) genLoadQualifier(ctx, fun, !isConstrCall); for (int i = 0; i < args.length; ++i) genLoad(ctx, args[i], argTypes[i]); String clsName = isSuperCall ? ctx.clazz.getSuperclassName() : javaName(funSym.owner()); String mthName = funSym.name.toString(); funSym.owner().info(); // [HACK] ensure that flags are // transformed. if (funSym.owner().isInterface()) ctx.code.emitINVOKEINTERFACE(clsName, mthName, funType); else { if (isConstrCall || isSuperCall) { ctx.code.emitINVOKESPECIAL(clsName, mthName, funType); if (isConstrCall && isSuperCall && ctx.isModuleClass) { // Initialise module instance field ASAP ctx.code.emitALOAD_0(); ctx.code.emitPUTSTATIC(ctx.clazz.getName(), MODULE_INSTANCE_FIELD_NAME, ctx.clazz.getType()); } } else if (isStatic) ctx.code.emitINVOKESTATIC(clsName, mthName, funType); else ctx.code.emitINVOKEVIRTUAL(clsName, mthName, funType); } generatedType = funType.getReturnType(); } } break; case Ident(Name name): { JType type = typeStoJ(sym.info()); if (sym.isModule()) generatedType = genLoadModule(ctx, sym); else if (sym == defs.NULL) { ctx.code.emitACONST_NULL(); generatedType = expectedType; } else if (sym.owner().isClass()) { ctx.code.emitALOAD_0(); ctx.code.emitGETFIELD(ctx.clazz.getName(), name.toString(), type); generatedType = type; } else { assert ctx.locals.containsKey(sym) : Debug.show(sym) + " not in " + ctx.locals; int index = ((Integer)(ctx.locals.get(sym))).intValue(); ctx.code.emitLOAD(index, type); generatedType = type; } } break; case Select(Tree qualifier, Name selector): { if (sym.isModule()) generatedType = genLoadModule(ctx, sym); else { JType fieldType = typeStoJ(sym.info()); String className = javaName(sym.owner()); String fieldName = selector.toString(); if (isStaticMember(sym)) ctx.code.emitGETSTATIC(className, fieldName, fieldType); else { genLoadQualifier(ctx, tree, true); ctx.code.emitGETFIELD(className, fieldName, fieldType); } generatedType = fieldType; } } break; case Assign(Tree lhs, Tree rhs): { genStorePrologue(ctx, lhs); genLoad(ctx, rhs, typeStoJ(lhs.symbol().info())); genStoreEpilogue(ctx, lhs); generatedType = JType.VOID; } break; case If(Tree cond, Tree thenp, Tree elsep): { JType finalType = typeStoJ(tree.type); JCode.Label elseLabel = ctx.code.newLabel(); genCond(ctx, cond, elseLabel, false); genLoad(ctx, thenp, finalType); JCode.Label afterLabel = ctx.code.newLabel(); ctx.code.emitGOTO(afterLabel); elseLabel.anchorToNext(); if (elsep == Tree.Empty) maybeGenLoadUnit(ctx, finalType); else genLoad(ctx, elsep, finalType); afterLabel.anchorToNext(); generatedType = finalType; } break; case Switch(Tree test, int[] tags, Tree[] bodies, Tree otherwise): { JCode.Label[] labels = ctx.code.newLabels(bodies.length); JCode.Label defaultLabel = ctx.code.newLabel(); JCode.Label afterLabel = ctx.code.newLabel(); genLoad(ctx, test, JType.INT); ctx.code.emitSWITCH(tags, labels, defaultLabel, 0.9); for (int i = 0; i < bodies.length; ++i) { labels[i].anchorToNext(); genLoad(ctx, bodies[i], expectedType); ctx.code.emitGOTO(afterLabel); } defaultLabel.anchorToNext(); genLoad(ctx, otherwise, expectedType); afterLabel.anchorToNext(); generatedType = expectedType; } break; case This(_): case Super(_, _): ctx.code.emitALOAD_0(); generatedType = JAVA_LANG_OBJECT_T; break; case Literal(Object value): if (value instanceof Integer) { generatedType = JType.INT; ctx.code.emitPUSH((Integer)value); } else if (value instanceof Short) { generatedType = JType.SHORT; ctx.code.emitPUSH((Short)value); } else if (value instanceof Byte) { generatedType = JType.BYTE; ctx.code.emitPUSH((Byte)value); } else if (value instanceof Long) { generatedType = JType.LONG; ctx.code.emitPUSH((Long)value); } else if (value instanceof Float) { generatedType = JType.FLOAT; ctx.code.emitPUSH((Float)value); } else if (value instanceof Double) { generatedType = JType.DOUBLE; ctx.code.emitPUSH((Double)value); } else if (value instanceof Character) { generatedType = JType.CHAR; ctx.code.emitPUSH((Character)value); } else if (value instanceof String) { generatedType = JAVA_LANG_STRING_T; ctx.code.emitPUSH((String)value); } else if (value instanceof Boolean) { generatedType = JType.BOOLEAN; ctx.code.emitPUSH((Boolean)value); } else throw global.fail("unknown literal " + value); break; case Empty: case AbsTypeDef(_, _, _, _): case AliasTypeDef(_, _, _, _): case TypeApply(_, _): case FunType(_, _): case CompoundType(_, _): case AppliedType(_,_): generatedType = JType.VOID; break; case Sequence(_): case ModuleDef(_,_,_,_): case PatDef(_,_,_): case Import(_, _): case CaseDef(_, _, _): case Visitor(_): case Function(_, _): throw global.fail("unexpected node", tree); case Bad(): throw global.fail("bad tree"); default: throw global.fail("unknown node", tree); } // Pop unneeded result from stack, or widen it if needed. if (expectedType == JType.VOID && generatedType != JType.VOID) { if (generatedType == JType.LONG || generatedType == JType.DOUBLE) ctx.code.emitPOP2(); else ctx.code.emitPOP(); } else if (! (expectedType == JType.VOID || generatedType == expectedType || generatedType.isReferenceType())) genWidenConversion(ctx, generatedType, expectedType); endCodeForTree(ctx, tree); return expectedType; } | 5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/a5572dc8961c66c8362940fe29a406882ebb5256/GenJVM.java/buggy/sources/scalac/backend/jvm/GenJVM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
804,
559,
3157,
2563,
12,
1042,
1103,
16,
4902,
2151,
16,
804,
559,
23192,
13,
288,
3639,
787,
1085,
1290,
2471,
12,
5900,
16,
2151,
1769,
3639,
804,
559,
4374,
559,
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,
377,
4750,
804,
559,
3157,
2563,
12,
1042,
1103,
16,
4902,
2151,
16,
804,
559,
23192,
13,
288,
3639,
787,
1085,
1290,
2471,
12,
5900,
16,
2151,
1769,
3639,
804,
559,
4374,
559,
273,
446,
31,... |
fConfiguration.addRecognizedFeatures(new String[] {NOTIFY_BUILTIN_REFS}); | public SAXParser() { super((XMLParserConfiguration)ObjectFactory.createObject( "org.apache.xerces.xni.parser.XMLParserConfiguration", "org.apache.xerces.parsers.StandardParserConfiguration" )); fConfiguration.setFeature(NOTIFY_BUILTIN_REFS, true); } // <init>() | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/434990e0d8daeee36672548313ed36994421c200/SAXParser.java/clean/src/org/apache/xerces/parsers/SAXParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
1750,
18,
1289,
5650,
9367,
8696,
12,
2704,
514,
8526,
288,
4400,
12096,
67,
3000,
2627,
56,
706,
67,
862,
4931,
22938,
284,
1750,
18,
1289,
5650,
9367,
8696,
12,
2704,
514,
8526,
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,
284,
1750,
18,
1289,
5650,
9367,
8696,
12,
2704,
514,
8526,
288,
4400,
12096,
67,
3000,
2627,
56,
706,
67,
862,
4931,
22938,
284,
1750,
18,
1289,
5650,
9367,
8696,
12,
2704,
514,
8526,
288,
... | |
jj_la1[18] = jj_gen; | jj_la1[20] = jj_gen; | final public void Parameter() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHITESPACE: jj_consume_token(WHITESPACE); break; default: jj_la1[18] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STRING_LITERAL: StringLiteral(); break; default: jj_la1[19] = jj_gen; if (jj_2_5(2147483647)) { IntegerRange(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACKET: ObjectArray(); break; case TRUE: True(); break; case FALSE: False(); break; case IDENTIFIER: case LCURLY: Reference(); break; case NUMBER_LITERAL: NumberLiteral(); break; default: jj_la1[20] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHITESPACE: jj_consume_token(WHITESPACE); break; default: jj_la1[21] = jj_gen; ; } } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/e128e4125429834f73621c8aa67036ca877e731e/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
5498,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
24353,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
5498,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
24353,
66... |
public void onEncode(ClientKey key, ClientPutState state) { | public void onEncode(BaseClientKey key, ClientPutState state) { | public void onEncode(ClientKey key, ClientPutState state) { if(state == metadataPutter) cb.onEncode(key, this); } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/c6aa82ac420d1cc2277bea0c09c5c8fcbaf51ad0/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
603,
5509,
12,
1227,
653,
498,
16,
2445,
6426,
1119,
919,
13,
288,
1082,
202,
430,
12,
2019,
422,
1982,
6426,
387,
13,
9506,
202,
7358,
18,
265,
5509,
12,
856,
16,
333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
603,
5509,
12,
1227,
653,
498,
16,
2445,
6426,
1119,
919,
13,
288,
1082,
202,
430,
12,
2019,
422,
1982,
6426,
387,
13,
9506,
202,
7358,
18,
265,
5509,
12,
856,
16,
333... |
m_elemVal.append(ch, start, length); | elemVal.append(ch, start, length); | public void characters(char[] ch, int start, int length) throws SAXException { m_elemVal.append(ch, start, length); } | 48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/XmlConfigurationHandler.java/clean/src/java/org/apache/ftpserver/config/XmlConfigurationHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3949,
12,
3001,
8526,
462,
16,
509,
787,
16,
509,
769,
13,
1216,
14366,
288,
3639,
3659,
3053,
18,
6923,
12,
343,
16,
787,
16,
769,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3949,
12,
3001,
8526,
462,
16,
509,
787,
16,
509,
769,
13,
1216,
14366,
288,
3639,
3659,
3053,
18,
6923,
12,
343,
16,
787,
16,
769,
1769,
565,
289,
2,
-100,
-100,
-100,
-10... |
Logger.debug(this, "updateHandshakeIPs: calling getAddress(false) on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+")"); | Logger.debug(this, "updateHandshakeIPs: calling getAddress(false) on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+ ')'); | private Peer[] updateHandshakeIPs(Peer[] localHandshakeIPs, boolean ignoreHostnames) { for(int i=0;i<localHandshakeIPs.length;i++) { if(ignoreHostnames) { // Don't do a DNS request on the first cycle through PeerNodes by DNSRequest // upon startup (I suspect the following won't do anything, but just in case) if(logMINOR) Logger.debug(this, "updateHandshakeIPs: calling getAddress(false) on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+")"); localHandshakeIPs[i].getAddress(false); } else { // Actually do the DNS request for the member Peer of localHandshakeIPs if(logMINOR) Logger.debug(this, "updateHandshakeIPs: calling getHandshakeAddress() on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+")"); localHandshakeIPs[i].getHandshakeAddress(); } } return localHandshakeIPs; } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/62fd59041864b4ed1f43adc676de6bfb5ea977f3/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
10669,
8526,
1089,
14545,
18246,
12,
6813,
8526,
1191,
14545,
18246,
16,
1250,
2305,
2594,
1973,
13,
288,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
3729,
14545,
18246,
18,
2469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10669,
8526,
1089,
14545,
18246,
12,
6813,
8526,
1191,
14545,
18246,
16,
1250,
2305,
2594,
1973,
13,
288,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
3729,
14545,
18246,
18,
2469,
... |
strBuffer.append(bundle.getString("label.semester")); | strBuffer.append(getMessageResource(pageContext, "label.semester")); | private void renderExamsExecutionCourseTableForYear(StringBuffer strBuffer, Integer year,ResourceBundle bundle) { // PRINT EXECUTION DEGREE strBuffer.append("<strong>" + examsMap.getInfoExecutionDegree().getInfoDegreeCurricularPlan().getInfoDegree() .getNome() + "</strong><br />"); strBuffer.append("<strong>" + year + "º "); strBuffer.append(bundle.getString("label.year")); strBuffer.append("</strong>"); strBuffer.append(" - <strong>" + ((InfoExecutionCourse) examsMap.getExecutionCourses().get(0)).getInfoExecutionPeriod() .getSemester() + "º "); strBuffer.append(bundle.getString("label.semester")); strBuffer.append("</strong>"); strBuffer.append(" - <strong>" + ((InfoExecutionCourse) examsMap.getExecutionCourses().get(0)).getInfoExecutionPeriod() .getInfoExecutionYear().getYear() + "</strong><br />"); strBuffer.append("<table border='1' cellspacing='0' cellpadding='3' width='95%'>"); renderExamsTableHeader(strBuffer,bundle); Collections.sort(examsMap.getExecutionCourses(), new BeanComparator("nome")); for (int i = 0; i < examsMap.getExecutionCourses().size(); i++) { InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) examsMap .getExecutionCourses().get(i); if (infoExecutionCourse.getCurricularYear().equals(year) && !infoExecutionCourse.getAssociatedInfoExams().isEmpty()) { strBuffer.append("<tr>"); strBuffer.append("<td rowspan='2'>"); strBuffer.append(infoExecutionCourse.getNome()); strBuffer.append("</td>"); writeLineForExecutionCourseAndExamOfSeason(strBuffer, infoExecutionCourse, Season.SEASON1); strBuffer.append("</tr>"); strBuffer.append("<tr>"); writeLineForExecutionCourseAndExamOfSeason(strBuffer, infoExecutionCourse, Season.SEASON2); strBuffer.append("</tr>"); } } strBuffer.append("</table>"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/7a65e3760e54369e3a9d86be175df1539aeb46ae/ExamsMapRenderer.java/buggy/src/net/sourceforge/fenixedu/presentationTier/TagLib/sop/examsMapNew/ExamsMapRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1743,
424,
301,
87,
3210,
39,
3117,
1388,
1290,
5593,
12,
780,
1892,
609,
1892,
16,
2144,
3286,
16,
18731,
3440,
13,
288,
202,
202,
759,
11770,
3217,
24508,
13269,
2030,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
424,
301,
87,
3210,
39,
3117,
1388,
1290,
5593,
12,
780,
1892,
609,
1892,
16,
2144,
3286,
16,
18731,
3440,
13,
288,
202,
202,
759,
11770,
3217,
24508,
13269,
2030,
... |
switch(isMoreSpecific((MethodCandidateInfo)method, (MethodCandidateInfo)conflict)){ | switch(isMoreSpecific(((MethodCandidateInfo)method).getElement(), ((MethodCandidateInfo)conflict).getElement())){ | public CandidateInfo resolveConflict(List<CandidateInfo> conflicts){ int conflictsCount = conflicts.size(); if (conflictsCount <= 0) return null; if (conflictsCount == 1) return conflicts.get(0); if (conflictsCount > 1){ int maxCheckLevel = -1; int[] checkLevels = new int[conflictsCount]; int index = 0; for (final CandidateInfo conflict1 : conflicts) { final MethodCandidateInfo method = (MethodCandidateInfo)conflict1; final int level = getCheckLevel(method); checkLevels[index++] = level; maxCheckLevel = Math.max(maxCheckLevel, level); } for(int i = conflictsCount - 1; i>= 0; i--){ // check for level if (checkLevels[i] < maxCheckLevel){ conflicts.remove(i); } } conflictsCount = conflicts.size(); if(conflictsCount == 1) return conflicts.get(0); checkParametersNumber(conflicts, myArgumentsList.getExpressions().length); conflictsCount = conflicts.size(); if(conflictsCount == 1) return conflicts.get(0); final boolean applicable = checkApplicability(conflicts); conflictsCount = conflicts.size(); if(conflictsCount == 1) return conflicts.get(0); CandidateInfo[] conflictsArray; conflictsArray = conflicts.toArray(new CandidateInfo[conflictsCount]);outer: for(int i = 0; i < conflictsCount; i++){ final CandidateInfo method = conflictsArray[i]; // check overriding for (final CandidateInfo info : conflicts) { if (info == method) break; // candidates should go in order of class hierarchy traversal // in order for this to work if (checkOverriding(method, info)) { conflicts.remove(method); continue outer; } } // Specifics if (applicable){ final CandidateInfo[] newConflictsArray = conflicts.toArray(new CandidateInfo[conflicts.size()]); for(int j = 0; j < i; j++){ final CandidateInfo conflict = newConflictsArray[j]; if (conflict == method) break; switch(isMoreSpecific((MethodCandidateInfo)method, (MethodCandidateInfo)conflict)){ case TRUE: conflicts.remove(conflict); break; case FALSE: conflicts.remove(method); continue; case CONFLICT: break; } } } } } if (conflicts.size() == 1){ return conflicts.get(0); } return null; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/06cd32f3032d924d7c056da08157be5a06dfdf5c/JavaMethodsConflictResolver.java/buggy/source/com/intellij/psi/scope/conflictResolvers/JavaMethodsConflictResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
385,
8824,
966,
2245,
10732,
12,
682,
32,
11910,
966,
34,
14450,
15329,
565,
509,
14450,
1380,
273,
14450,
18,
1467,
5621,
565,
309,
261,
20340,
87,
1380,
1648,
374,
13,
327,
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,
282,
1071,
385,
8824,
966,
2245,
10732,
12,
682,
32,
11910,
966,
34,
14450,
15329,
565,
509,
14450,
1380,
273,
14450,
18,
1467,
5621,
565,
309,
261,
20340,
87,
1380,
1648,
374,
13,
327,
446,
... |
RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); | RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); | public RubyObject m_clone() { RubyModule clone = new RubyModule(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); if (getInstanceVariables() != null) { clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); } // clone the methods. if (methods != null) { clone.setMethods(new RubyHashMap()); methods.foreach(new RubyMapMethod() { NodeFactory nf = new NodeFactory(getRuby()); public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } }, clone.methods); } return clone; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
14056,
1435,
288,
202,
202,
54,
10340,
3120,
3236,
273,
394,
19817,
3120,
12,
588,
54,
10340,
9334,
4170,
10340,
797,
9334,
15172,
797,
10663,
202,
202,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
312,
67,
14056,
1435,
288,
202,
202,
54,
10340,
3120,
3236,
273,
394,
19817,
3120,
12,
588,
54,
10340,
9334,
4170,
10340,
797,
9334,
15172,
797,
10663,
202,
202,
140... |
while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException(ruby, "wrong # of arguments(" + args.size() + " for " + opt + ")"); } | while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException(ruby, "wrong # of arguments(" + args.size() + " for " + opt + ")"); } | public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCref = ruby.getCRef(); // s.a. ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } if (getTable() != null) { valueList = new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil())); ruby.getScope().setLocalValues(valueList); ruby.getScope().setLocalNames(getTable()); } else { valueList = null; //ruby.getScope().getLocalValues(); ruby.getScope().setLocalValues(null); ruby.getScope().setLocalNames(null); } Node callBody = getNextNode(); Node callNode = null; if (callBody.getType() == Constants.NODE_ARGS) { callNode = callBody; callBody = null; } else if (callBody.getType() == Constants.NODE_BLOCK) { callNode = callBody.getHeadNode(); callBody = callBody.getNextNode(); } RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); try { if (callNode != null) { //if (call_node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); //} int i = callNode.getCount(); if (i > (args != null ? args.size() : 0)) { int size = 0; if (args != null) size = args.size(); throw new RubyArgumentException(ruby, getFile() + ":" + getLine() +"wrong # of arguments(" + size + " for " + i + ")"); } if (callNode.getRest() == -1) { int opt = i; Node optNode = callNode.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException(ruby, "wrong # of arguments(" + args.size() + " for " + opt + ")"); } // +++ ruby.getRubyFrame().setArgs(valueList != null ? new DelegateList(valueList, 2, valueList.size()) : null); // --- } if (valueList != null) { if (i > 0) { for (int j = 0; j < i; j++) { valueList.set(j + 2, args.get(j)); } } args.inc(i); if (callNode.getOptNode() != null) { Node optNode = callNode.getOptNode(); while (optNode != null && args.size() != 0) { ((AssignableNode) optNode.getHeadNode()).assign(ruby, recv, args.getRuby(0), true); args.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (callNode.getRest() >= 0) { RubyArray array = null; if (args.size() > 0) { array = RubyArray.newArray(ruby, args); } else { array = RubyArray.newArray(ruby, 0); } valueList.set(callNode.getRest(), array); } } } return recv.eval(callBody); } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } finally { RubyVarmap.pop(ruby); ruby.getScope().pop(); if (savedCref != null) { ruby.setCRef(savedCref); } } } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
514,
612,
16,
19817,
4926,
833,
16,
1250,
1158,
8051,
13,
288,
202,
202,
430,
261,
1968,
422,
446,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
514,
612,
16,
19817,
4926,
833,
16,
1250,
1158,
8051,
13,
288,
202,
202,
430,
261,
1968,
422,
446,
13,
288,
... |
return CentralAgent.l_accountManager.getAccount(userID, accountID); | return CentralAgent.localAccountManager.getAccount(userID, accountID); | public Account getAccount(long agentID, long caSessionID, long userID, long accountID) throws RemoteException, InternalEVerlageError, InvalidAgentException, InvalidAccountIDException { if (CAGlobal.log.isDebugEnabled()) { CAGlobal.log.debug(this); } return CentralAgent.l_accountManager.getAccount(userID, accountID); } | 10993 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10993/c057e936394bed669d2f5e0fb678ed7d2a6a7d06/AccountManagerImpl.java/buggy/everlage/src/de/everlage/ca/accountManager/core/AccountManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6590,
23393,
12,
5748,
4040,
734,
16,
1525,
3474,
2157,
734,
16,
1525,
16299,
16,
1525,
26643,
13,
202,
202,
15069,
18361,
16,
3186,
41,
3945,
80,
410,
668,
16,
1962,
3630,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6590,
23393,
12,
5748,
4040,
734,
16,
1525,
3474,
2157,
734,
16,
1525,
16299,
16,
1525,
26643,
13,
202,
202,
15069,
18361,
16,
3186,
41,
3945,
80,
410,
668,
16,
1962,
3630,
50... |
index = scanHexSequence(address, index, end); if (index == -1) { return false; } else if (index == end) { return true; } if (index > start && index+1 < end && address.charAt(index) == ':') { return isWellFormedIPv4Address(address.substring(index+1, end)); } return false; | int prevCount = counter[0]; index = scanHexSequence(address, index, end, counter); return (index == end) || (index != -1 && isWellFormedIPv4Address( address.substring((counter[0] > prevCount) ? index+1 : index, end))); | public static boolean isWellFormedIPv6Reference(String address) { int addrLength = address.length(); int start = 1; int end = addrLength-1; int index = start; // Check if string is a potential match for IPv6reference. if (!(addrLength > 2 && address.charAt(0) == '[' && address.charAt(end) == ']')) { return false; } // The production hexpart can be rewritten as: // hexpart = hexseq | [hexseq] "::" [hexseq] // which means as long as we see one of the following // three groups, then we have a match. // 1. Scan hex sequence before possible '::'. index = scanHexSequence(address, index, end); if (index == -1) { return false; } else if (index == end) { return true; } // 2. Skip '::' if present. if (index + 1 < end && address.charAt(index) == ':') { if (address.charAt(index+1) == ':') { index += 2; if (index == end) { return true; } } // If the second character wasn't ':', the remainder of the // string must match IPv4Address. IPv6Address cannot // start with [":" IPv4Address]. else { return (index > start) && isWellFormedIPv4Address(address.substring(index+1, end)); } } // 3. Scan hex sequence after '::'. index = scanHexSequence(address, index, end); if (index == -1) { return false; } else if (index == end) { return true; } // If we've gotten this far then the string is a valid // IPv6 reference only if it contained a valid hexpart, // and it has an IPv4 address. // // REVISIT: The example given for an IPv6 reference // http://[::192.9.5.5]/ipng in RFC 2732 is an error, or // the BNF for IPv6address is incorrect. In order to be // valid for the grammar defined in RFC 2373, if the hexpart // is only '::', and if the address contains an IPv4 address, // '::' must be followed by another ':'. Going with the BNF // from RFC 2373 for now. - mrglavas if (index > start && index+1 < end && address.charAt(index) == ':') { return isWellFormedIPv4Address(address.substring(index+1, end)); } return false; } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/da200a5bddc2b18e73e477041cb50a4a6ef968c2/URI.java/buggy/src/org/apache/xerces/util/URI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
353,
59,
1165,
1204,
329,
12775,
26,
2404,
12,
780,
1758,
13,
288,
1377,
509,
3091,
1782,
273,
1758,
18,
2469,
5621,
1377,
509,
787,
273,
404,
31,
1377,
509,
679,
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,
282,
1071,
760,
1250,
353,
59,
1165,
1204,
329,
12775,
26,
2404,
12,
780,
1758,
13,
288,
1377,
509,
3091,
1782,
273,
1758,
18,
2469,
5621,
1377,
509,
787,
273,
404,
31,
1377,
509,
679,
273,
... |
protected String __handleStyle( String content ) | protected String __handleStyle( String content ) throws Exception | protected String __handleStyle( String content ) { String style = BLANK_STRING; if ( content == null ) return style; // parse style content Pattern p = Pattern.compile( "<\\s*style[^\\>]*\\>", //$NON-NLS-1$ Pattern.CASE_INSENSITIVE ); Matcher m = p.matcher( content ); while ( m.find( ) ) { int start = m.end( ); int end = content.toLowerCase( ).indexOf( "</script>", start ); //$NON-NLS-1$ style = style + content.substring( start + 1, end ) + "\n"; //$NON-NLS-1$ } return style; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6b00acf016a73de6f245a274ac85e76eaa3ccdcf/ReportTag.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ReportTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1001,
4110,
2885,
12,
514,
913,
262,
202,
95,
202,
202,
780,
2154,
273,
29727,
67,
5804,
31,
202,
202,
430,
261,
913,
422,
446,
262,
1082,
202,
2463,
2154,
31,
202,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
1001,
4110,
2885,
12,
514,
913,
262,
202,
95,
202,
202,
780,
2154,
273,
29727,
67,
5804,
31,
202,
202,
430,
261,
913,
422,
446,
262,
1082,
202,
2463,
2154,
31,
202,
20... |
final String n = objectId.toString(); return new FileInputStream(new File(new File(objectsDir, n .substring(0, 2)), n.substring(2))); | return new FileInputStream(objectFile(objectId)); | private InputStream openObjectStream(final ObjectId objectId) throws IOException { try { final String n = objectId.toString(); return new FileInputStream(new File(new File(objectsDir, n .substring(0, 2)), n.substring(2))); } catch (FileNotFoundException fnfe) { return null; } } | 45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/5f00acd1ae81ff7ec343d8d830843f7386ef21c2/ObjectDatabase.java/buggy/src/org/spearce/jgit/lib/ObjectDatabase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5037,
1696,
921,
1228,
12,
6385,
21192,
18010,
13,
5411,
1216,
1860,
288,
3639,
775,
288,
5411,
727,
514,
290,
273,
18010,
18,
10492,
5621,
5411,
327,
394,
11907,
12,
2704,
1387,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5037,
1696,
921,
1228,
12,
6385,
21192,
18010,
13,
5411,
1216,
1860,
288,
3639,
775,
288,
5411,
727,
514,
290,
273,
18010,
18,
10492,
5621,
5411,
327,
394,
11907,
12,
2704,
1387,
12... |
public void addPage(String id, IPDEEditorPage page, int index) { | public void addPage(String id, IPDEEditorPage page) { | public void addPage(String id, IPDEEditorPage page, int index) { table.put(id, page); pages.add(index, page); } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/01f216e7b15d4bafc29532e73b81611b5b16641e/PDEMultiPageEditor.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDEMultiPageEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
1964,
12,
780,
612,
16,
2971,
1639,
6946,
1964,
1363,
16,
509,
770,
13,
288,
202,
202,
2121,
18,
458,
12,
350,
16,
1363,
1769,
202,
202,
7267,
18,
1289,
12,
1615,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
1964,
12,
780,
612,
16,
2971,
1639,
6946,
1964,
1363,
16,
509,
770,
13,
288,
202,
202,
2121,
18,
458,
12,
350,
16,
1363,
1769,
202,
202,
7267,
18,
1289,
12,
1615,
... |
WorkbenchPlugin.getDefault().getEditorRegistry().setDefaultEditor(file, editorID); | if(defaultDesc.getId().equals(editorId)) { getEditorRegistry().setDefaultEditor(file, null); } else { getEditorRegistry().setDefaultEditor(file, editorID); } | public IEditorReference openEditor(String editorId,IEditorInput input,boolean setVisible) throws PartInitException { if(editorId == null) { return openEditorFromInput(new Editor(),input,setVisible); } else { IEditorRegistry reg = getEditorRegistry(); EditorDescriptor desc = (EditorDescriptor) reg.findEditor(editorId); if (desc == null) { throw new PartInitException(WorkbenchMessages.format("EditorManager.unknownEditorIDMessage", new Object[] { editorId })); //$NON-NLS-1$ } IEditorReference result = openEditorFromDescriptor(new Editor(),desc, input); if(input instanceof IFileEditorInput) { IFile file = ((IFileEditorInput)input).getFile(); if(file != null) { // Update the default editor for this file. String editorID = desc.getId(); WorkbenchPlugin.getDefault().getEditorRegistry().setDefaultEditor(file, editorID); } } return result; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8244894deb5bc3a657a55c63fb805558dfbeb7d7/EditorManager.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
6946,
2404,
1696,
6946,
12,
780,
4858,
548,
16,
45,
6946,
1210,
810,
16,
6494,
16697,
13,
1216,
6393,
2570,
503,
288,
202,
202,
430,
12,
9177,
548,
422,
446,
13,
288,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
6946,
2404,
1696,
6946,
12,
780,
4858,
548,
16,
45,
6946,
1210,
810,
16,
6494,
16697,
13,
1216,
6393,
2570,
503,
288,
202,
202,
430,
12,
9177,
548,
422,
446,
13,
288,
1... |
if (!methodName.startsWith("test")) { | final PsiType returnType = method.getReturnType(); if (returnType == null) { | public void visitMethod(PsiMethod method) { super.visitMethod(method); final String methodName = method.getName(); if (method.hasModifierProperty(PsiModifier.ABSTRACT)) { return; } if (!methodName.startsWith("test")) { return; } final PsiType returnType = method.getReturnType(); if (returnType == null) { return; } final PsiParameterList parameterList = method.getParameterList(); if (parameterList == null) { return; } final PsiParameter[] parameters = parameterList.getParameters(); if (parameters == null) { return; } if (parameters.length != 0 ||! returnType.equals(PsiType.VOID) || !method.hasModifierProperty(PsiModifier.PUBLIC)) { return; } final PsiClass targetClass = method.getContainingClass(); if (!ClassUtils.isSubclass(targetClass, "junit.framework.TestCase")) { return; } final ContainsAssertionVisitor visitor = new ContainsAssertionVisitor(); method.accept(visitor); if (visitor.containsAssertion()) { return; } registerMethodError(method); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/TestMethodWithoutAssertionInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/junit/TestMethodWithoutAssertionInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
25138,
12,
52,
7722,
1305,
707,
13,
288,
5411,
2240,
18,
11658,
1305,
12,
2039,
1769,
5411,
727,
514,
4918,
273,
707,
18,
17994,
5621,
5411,
309,
261,
2039,
18,
5332,
9829,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25138,
12,
52,
7722,
1305,
707,
13,
288,
5411,
2240,
18,
11658,
1305,
12,
2039,
1769,
5411,
727,
514,
4918,
273,
707,
18,
17994,
5621,
5411,
309,
261,
2039,
18,
5332,
9829,
1... |
public void parseDocument(ReferenceContainer labels, ReferenceContainer bibs) throws IOException { try { // parse partially if (changedFile != null && changedInput != null && !changedFile.equals(mainFile)) { // find the parent of the changed input findParent(this.outlineTree); if (parent != null) { // remove the nodes and parse the changed input deleteNodes(parent); LatexLexer lexer = new LatexLexer(new PushbackReader( new StringReader(changedInput), 1024)); LatexParser inputParser = new LatexParser(); inputParser.parse(lexer, labels, bibs); // add the nodes to the tree ArrayList newNodes = inputParser.getOutlineTree(); addFileNames(newNodes, changedFile); addToTree(parent.getChildren(), newNodes, null, null); // parse inputs recursively if (inputParser.getInputs().size() > 0) { processInputs(newNodes, inputParser.getInputs(), changedFile, labels, bibs); } // remove temporary variables cleanUp(); } // complete parse } else { String input; // changed file is main file, so we don't have to read the file if (changedFile != null && changedInput != null && changedFile.equals(mainFile)) { input = this.rmTrailingWhitespace(changedInput); } else { try { input = readFile(mainFile); } catch (CoreException e) { TexlipsePlugin.log( "Error reading from project main file", e); return; } } this.extractPreamble(input); // start the parse LatexLexer lexer = new LatexLexer(new PushbackReader( new StringReader(input), 1024)); if (this.preamble != null) { OutlineNode on = new OutlineNode("Preamble", OutlineNode.TYPE_PREAMBLE, 1, null); lparser.parse(lexer, labels, bibs, on); } else { lparser.parse(lexer, labels, bibs); } this.outlineTree = lparser.getOutlineTree(); this.fatalErrors = lparser.isFatalErrors(); // add the file references and parse the inputs recursively addFileNames(this.outlineTree, this.mainFile); if (lparser.getInputs().size() > 0) { processInputs(outlineTree, lparser.getInputs(), mainFile, labels, bibs); } // showTree(outlineTree, 5, ""); } } catch (LexerException e) { // we must parse the lexer exception into a suitable format String msg = e.getMessage(); int first = msg.indexOf('['); int last = msg.indexOf(']'); String numseq = msg.substring(first + 1, last); String[] numbers = numseq.split(","); this.errors = new ArrayList(1); this.errors.add(new ParseErrorMessage(Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), 2, msg.substring(last + 2), IMarker.SEVERITY_ERROR)); this.fatalErrors = true; } } | 48893 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48893/b4523fb581766c61833df2f58139cd91b2c7fc6a/FullTexParser.java/buggy/source/net/sourceforge/texlipse/texparser/FullTexParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2670,
2519,
12,
2404,
2170,
5336,
16,
2404,
2170,
70,
495,
87,
13,
15069,
14106,
95,
698,
95,
759,
2670,
2680,
6261,
430,
12,
6703,
812,
5,
33,
2011,
10,
10,
6703,
1210,
5,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2670,
2519,
12,
2404,
2170,
5336,
16,
2404,
2170,
70,
495,
87,
13,
15069,
14106,
95,
698,
95,
759,
2670,
2680,
6261,
430,
12,
6703,
812,
5,
33,
2011,
10,
10,
6703,
1210,
5,
33,... | ||
} return null; | return null; } | public Grammar removeGrammar(XMLGrammarDescription desc) { int hash = hashCode(desc); int index = (hash & 0x7FFFFFFF) % fGrammars.length; for (Entry entry = fGrammars[index], prev = null ; entry != null ; prev = entry, entry = entry.next) { if ((entry.hash == hash) && equals(entry.desc, desc)) { if (prev != null) { prev.next = entry.next; } else { fGrammars[index] = entry.next; } Grammar tempGrammar = entry.grammar; entry.grammar = null; return tempGrammar; } } return null; } // removeGrammar(XMLGrammarDescription):Grammar | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ff0495dd5d8e2f8596f023502d9e691ebedd540e/XMLGrammarPoolImpl.java/buggy/src/org/apache/xerces/impl/validation/XMLGrammarPoolImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27809,
1206,
18576,
12,
4201,
18576,
3291,
3044,
13,
288,
377,
202,
474,
1651,
273,
13374,
12,
5569,
1769,
202,
474,
770,
273,
261,
2816,
473,
374,
92,
27,
18343,
42,
13,
738,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27809,
1206,
18576,
12,
4201,
18576,
3291,
3044,
13,
288,
377,
202,
474,
1651,
273,
13374,
12,
5569,
1769,
202,
474,
770,
273,
261,
2816,
473,
374,
92,
27,
18343,
42,
13,
738,
284... |
result.add(line + s.substring(0, p + 1)); | result.add(line.toString() + s.substring(0, p + 1)); | private void formatText(final List input, String line, final List result, final ClassLoader cl) { for (int i = 0; i < input.size(); ++i) { Object o = input.get(i); if (o instanceof List) { formatText((List) o, line, result, cl); } else if (o instanceof DecompilerMethodVisitor) { result.add(((DecompilerMethodVisitor) o).getResult(cl)); } else { String s = o.toString(); int p; do { p = s.indexOf('\n'); if (p == -1) { line = line + s; } else { result.add(line + s.substring(0, p + 1)); s = s.substring(p + 1); line = ""; } } while (p != -1); } } } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/594428cf474dd0651615dd4be756594cd1ffd8e2/DecompilerClassVisitor.java/clean/eclipse/plugin/src/de/loskutov/bco/asm/DecompilerClassVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
740,
1528,
12,
6385,
987,
810,
16,
514,
980,
16,
727,
987,
563,
16,
3639,
727,
9403,
927,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
810,
18,
1467,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
740,
1528,
12,
6385,
987,
810,
16,
514,
980,
16,
727,
987,
563,
16,
3639,
727,
9403,
927,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
810,
18,
1467,
5621,
... |
return DriverManager.getConnection( url, user, password ); | return DriverManager.getConnection( url, connectionProperties ); | public Connection getConnection( String driverClass, String url, String user, String password ) throws SQLException, ClassNotFoundException { loadAndRegisterDriver(driverClass); return DriverManager.getConnection( url, user, password ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/556bf9482d3b241b882054d5cafaeb1c380421e9/JDBCDriverManager.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/JDBCDriverManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
4050,
6742,
12,
514,
3419,
797,
16,
514,
880,
16,
1875,
202,
780,
729,
16,
514,
2201,
262,
1216,
6483,
16,
10403,
202,
95,
202,
202,
945,
1876,
3996,
4668,
12,
7407,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
4050,
6742,
12,
514,
3419,
797,
16,
514,
880,
16,
1875,
202,
780,
729,
16,
514,
2201,
262,
1216,
6483,
16,
10403,
202,
95,
202,
202,
945,
1876,
3996,
4668,
12,
7407,
79... |
eventHandler.animateToBounds(getBufferedBounds()); | public void completeInitialization() { // set up listeners addInputEventListener(eventHandler); final PCamera camera = getCamera(); camera.addInputEventListener(new DatasetBrowserToolTipHandler(camera)); // center view eventHandler.animateToBounds(getBufferedBounds()); } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/083c0615f5688f7fef55d651a2f420a1fb703456/DatasetBrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/DatasetBrowserCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3912,
17701,
1435,
288,
9506,
202,
759,
444,
731,
4679,
202,
202,
1289,
1210,
7375,
12,
2575,
1503,
1769,
21114,
202,
6385,
453,
16521,
10836,
273,
1927,
11229,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3912,
17701,
1435,
288,
9506,
202,
759,
444,
731,
4679,
202,
202,
1289,
1210,
7375,
12,
2575,
1503,
1769,
21114,
202,
6385,
453,
16521,
10836,
273,
1927,
11229,
5621,
202,
... | |
final public AttributeValueMake attributeValueMake() throws ParseException { AttributeValueMake avm = new AttributeValueMake(); RHSValue rhsv; ValueMake vm; jj_consume_token(CARET); rhsv = rhsValue(); avm.add(rhsv); label_12: while (true) { if (jj_2_53(3)) { ; } else { break label_12; } jj_consume_token(PERIOD); rhsv = rhsValue(); avm.add(rhsv); } label_13: while (true) { vm = valueMake(); avm.add(vm); if (jj_2_54(3)) { ; } else { break label_13; } } {if (true) return avm;} throw new Error("Missing return statement in function"); } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/febc6aa07cc9db7fe8accccebc781a6bba1e9a18/SoarParser.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/parser/SoarParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
482,
14942,
6464,
4589,
620,
6464,
1435,
15069,
13047,
95,
14942,
6464,
842,
81,
33,
2704,
14942,
6464,
5621,
54,
13173,
58,
700,
264,
4487,
90,
31,
620,
6464,
3489,
31,
78,
78,
67,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
482,
14942,
6464,
4589,
620,
6464,
1435,
15069,
13047,
95,
14942,
6464,
842,
81,
33,
2704,
14942,
6464,
5621,
54,
13173,
58,
700,
264,
4487,
90,
31,
620,
6464,
3489,
31,
78,
78,
67,
212... | ||
getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENISSUERDATA,"Error adding hard token issuer " + newalias + " using issuer " + oldalias + " as template."); | getLogSession().log(admin, admin.getCaId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENISSUERDATA,"Error adding hard token issuer " + newalias + " using issuer " + oldalias + " as template."); | public boolean cloneHardTokenIssuer(Admin admin, String oldalias, String newalias, int admingroupid){ debug(">cloneHardTokenIssuer(alias: " + oldalias + ")"); HardTokenIssuer issuerdata = null; boolean returnval = false; try{ HardTokenIssuerDataLocal htih = hardtokenissuerhome.findByAlias(oldalias); issuerdata = (HardTokenIssuer) htih.getHardTokenIssuer().clone(); returnval = addHardTokenIssuer(admin, newalias, admingroupid, issuerdata); if(returnval) getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENISSUERDATA,"New hard token issuer " + newalias + ", used issuer " + oldalias + " as template."); else getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENISSUERDATA,"Error adding hard token issuer " + newalias + " using issuer " + oldalias + " as template."); }catch(Exception e){ throw new EJBException(e); } debug("<cloneHardTokenIssuer()"); return returnval; } // cloneHardTokenIssuer | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/50bbe437e3b16d7a1918bae2fa2d4269507e0f68/LocalHardTokenSessionBean.java/clean/src/java/se/anatom/ejbca/hardtoken/LocalHardTokenSessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3236,
29601,
1345,
16667,
12,
4446,
3981,
16,
514,
1592,
4930,
16,
514,
394,
4930,
16,
509,
1261,
11987,
656,
350,
15329,
4202,
1198,
2932,
34,
14056,
29601,
1345,
16667,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
3236,
29601,
1345,
16667,
12,
4446,
3981,
16,
514,
1592,
4930,
16,
514,
394,
4930,
16,
509,
1261,
11987,
656,
350,
15329,
4202,
1198,
2932,
34,
14056,
29601,
1345,
16667,
12,
... |
} | } z++; } } | int nextPhase() { Vector phase = new Vector(); if (ClusterBackend.debugPrint) System.out.println("-------------------------------------"); for (int y = 0; y < ph; y++) { HashSet p = sched.getAllOperatorsInPhase(y); Iterator it = p.iterator(); while (it.hasNext()) { SIROperator oper = (SIROperator)it.next(); int id = NodeEnumerator.getSIROperatorId(oper); int steady_count = ((Integer)ClusterBackend.steadyExecutionCounts.get(NodeEnumerator.getFlatNode(id))).intValue(); int _iter = ((Integer)iteration.get(oper)).intValue(); int _credit = ((Integer)credit.get(oper)).intValue(); int exec = steady_count; if (_credit >= 0 && _iter + steady_count > _credit) { exec = _credit - _iter; } int input = 2000000000; Vector in = RegisterStreams.getNodeInStreams(oper); Vector out = RegisterStreams.getNodeOutStreams(oper); for (int z = 0; z < in.size(); z++) { NetStream ns = (NetStream)in.get(z); SIROperator src = NodeEnumerator.getOperator(ns.getSource()); int qsize = ((Integer)queue_size.get(makeVector(src, oper))).intValue(); int peek = getPeek(oper, z); int pop = getPop(oper, z); if (peek < pop) peek = pop; int extra = peek - pop; int can = (qsize-extra)/pop; if (can < 0) can = 0; if (can < input) input = can; } if (input < exec) exec = input; //System.out.println("CREDIT = "+_credit+" INPUT = "+input+" EXEC = "+exec); for (int z = 0; z < in.size(); z++) { NetStream ns = (NetStream)in.get(z); SIROperator src = NodeEnumerator.getOperator(ns.getSource()); int qsize = ((Integer)queue_size.get(makeVector(src, oper))).intValue(); qsize -= getPop(oper, z) * exec; queue_size.put(makeVector(src, oper), new Integer(qsize)); } for (int z = 0; z < out.size(); z++) { NetStream ns = (NetStream)out.get(z); SIROperator dst = NodeEnumerator.getOperator(ns.getDest()); int qsize = ((Integer)queue_size.get(makeVector(oper, dst))).intValue(); qsize += getPush(oper, z) * exec; queue_size.put(makeVector(oper, dst), new Integer(qsize)); } if (ClusterBackend.debugPrint) System.out.println(oper.getName()+" Exec = "+exec+"/"+steady_count); phase.add(new Integer(exec)); // push exec count to phase vector for (int z = 0; z < exec; z++, _iter++) { if (!(oper instanceof SIRFilter)) continue; HashSet cons = LatencyConstraints.getOutgoingConstraints((SIRFilter)oper); Iterator ci = cons.iterator(); while (ci.hasNext()) { //System.out.println("latency constraint"); LatencyConstraint c = (LatencyConstraint)ci.next(); SIRFilter dst = (SIRFilter)c.getReceiver(); boolean down = LatencyConstraints.isMessageDirectionDownstream((SIRFilter)oper, (SIRFilter)dst); int init_c = c.getSourceInit(); if (down) { if (_iter >= init_c) { int s_steady = c.getSourceSteadyExec(); int cycle = (_iter - init_c) / s_steady; int offs = (_iter - init_c) % s_steady; int dep = c.getDependencyData(offs); //System.out.println("dep = "+dep); //System.out.println("c = "+cycle); //System.out.println("o = "+offs); if (dep > 0) { int cc = dep + cycle * c.getDestSteadyExec(); credit.put(dst, new Integer(cc)); if (ClusterBackend.debugPrint) System.out.println("Send credit: "+cc); } } } else { int s_steady = c.getSourceSteadyExec(); int cycle = _iter / s_steady; int offs = _iter % s_steady; int dep = c.getDependencyData(offs); if (dep > 0) { int cc = dep + cycle * c.getDestSteadyExec(); credit.put(dst, new Integer(cc)); if (ClusterBackend.debugPrint) System.out.println("Send credit: "+cc); } } } } iteration.put(oper, new Integer(_iter)); } } boolean match = false; int ratio = -1; if (phase_last_seen.containsKey(phase)) { int last = ((Integer)phase_last_seen.get(phase)).intValue(); match = true; int node_id = 0; for (int y = 0; y < ph; y++) { HashSet p = sched.getAllOperatorsInPhase(y); Iterator it = p.iterator(); while (it.hasNext()) { SIROperator oper = (SIROperator)it.next(); int id = NodeEnumerator.getSIROperatorId(oper); int steady_count = ((Integer)ClusterBackend.steadyExecutionCounts.get(NodeEnumerator.getFlatNode(id))).intValue(); int sum = 0; for (int z = last; z < phase_num; z++) { sum += ((Integer)((Vector)phases.get(z)).get(node_id)).intValue(); } if (sum % steady_count == 0 && sum / steady_count >= 1) { if (ratio >= 1 && sum / steady_count != ratio) match = false; if (ratio < 1) ratio = sum / steady_count; } else { match = false; } node_id++; } } if (ClusterBackend.debugPrint) System.out.println("---- have seen phase at: "+last+" ----"); if (match) { loop_start = last; if (ClusterBackend.debugPrint) System.out.println("---- A loop contains "+ratio+" steady states ----"); } } if (!match) { phases.add(phase); phase_last_seen.put(phase, new Integer(phase_num)); phase_num++; } if (ClusterBackend.debugPrint) System.out.println("-------------------------------------"); if (match) return ratio; else return 0; } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/4d4fbae7dc29d726f7e03725d82f71d9df83d1c2/Greedy.java/buggy/streams/src/at/dms/kjc/cluster/Greedy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
1024,
11406,
1435,
288,
3639,
5589,
6855,
273,
394,
5589,
5621,
3639,
309,
261,
3629,
7172,
18,
4148,
5108,
13,
5411,
2332,
18,
659,
18,
8222,
2932,
2443,
13465,
8863,
3639,
364,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
1024,
11406,
1435,
288,
3639,
5589,
6855,
273,
394,
5589,
5621,
3639,
309,
261,
3629,
7172,
18,
4148,
5108,
13,
5411,
2332,
18,
659,
18,
8222,
2932,
2443,
13465,
8863,
3639,
364,
261... |
int width = itemFig.getHalfWidth(); | int width = itemFig.getWidth() / 2; | protected void applyOffsetAmount(Point p1, Point p2, int offset, Point res) { // slope of the line we're finding the normal to // is slope, and the normal is the negative reciprocal // slope is (p1.y - p2.y) / (p1.x - p2.x) // so recip is - (p1.x - p2.x) / (p1.y - p2.y) int recipnumerator = (p1.x - p2.x) * -1; int recipdenominator = (p1.y - p2.y); if (recipdenominator == 0 && recipnumerator == 0) return; // find the point offset on the line that gives a // correct offset double len = Math.sqrt(recipnumerator * recipnumerator + recipdenominator * recipdenominator); int dx = (int) ((recipdenominator * offset) / len); int dy = (int) ((recipnumerator * offset) / len); res.x += Math.abs(dx); res.y -= Math.abs(dy); int width = itemFig.getHalfWidth(); if (recipnumerator != 0) { double slope = (double)recipdenominator / (double)recipnumerator; double factor = tanh(slope); res.x += (Math.abs(factor) * width); } else res.x += width; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/55b1a2bf9e5a1ff91e4f97c63ed8d76eb2a68f27/PathConvPercent2.java/clean/src_new/org/argouml/uml/diagram/ui/PathConvPercent2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2230,
2335,
6275,
12,
2148,
293,
21,
16,
4686,
293,
22,
16,
509,
1384,
16,
4686,
400,
13,
288,
3639,
368,
17543,
434,
326,
980,
732,
4565,
13727,
326,
2212,
358,
3639,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2230,
2335,
6275,
12,
2148,
293,
21,
16,
4686,
293,
22,
16,
509,
1384,
16,
4686,
400,
13,
288,
3639,
368,
17543,
434,
326,
980,
732,
4565,
13727,
326,
2212,
358,
3639,
368,
... |
super(runtime, null, superClass, runtime.getClasses().getObjectClass(), "Class", RubyClass.class); | super(runtime, null, superClass, runtime.getObject(), "Class", RubyClass.class); | public ClassMetaClass(Ruby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getClasses().getObjectClass(), "Class", RubyClass.class); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/ca6b16e996ea9af83ce593594b9c69b9364a9924/ClassMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ClassMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
2781,
797,
12,
54,
10340,
3099,
16,
19817,
797,
18846,
13,
288,
377,
202,
9565,
12,
9448,
16,
446,
16,
18846,
16,
3099,
18,
588,
921,
9334,
315,
797,
3113,
19817,
797,
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,
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,
1659,
2781,
797,
12,
54,
10340,
3099,
16,
19817,
797,
18846,
13,
288,
377,
202,
9565,
12,
9448,
16,
446,
16,
18846,
16,
3099,
18,
588,
921,
9334,
315,
797,
3113,
19817,
797,
18,
... |
bold.setSelection( DesignChoiceConstants.FONT_WEIGHT_BOLD .equals( handle.getFontWeight( ) ) ); italic.setSelection( DesignChoiceConstants.FONT_STYLE_ITALIC .equals( handle.getFontStyle( ) ) ); underline .setSelection( DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE .equals( handle.getTextUnderline( ) ) ); linethrough .setSelection( DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH .equals( handle.getTextLineThrough( ) ) ); | bold.setSelection( DesignChoiceConstants.FONT_WEIGHT_BOLD.equals( handle.getFontWeight( ) ) ); italic.setSelection( DesignChoiceConstants.FONT_STYLE_ITALIC.equals( handle.getFontStyle( ) ) ); underline.setSelection( DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE.equals( handle.getTextUnderline( ) ) ); linethrough.setSelection( DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH.equals( handle.getTextLineThrough( ) ) ); | private void syncViewProperties( ) { // expression.setText( DEUtil.resolveNull( provider.getTestExpression( ) // ) ); if ( handle != null ) { // syn high light test expression from high light rule handle. expression.setText( DEUtil .resolveNull( handle.getTestExpression( ) ) ); operator.select( getIndexForOperatorValue( handle.getOperator( ) ) ); value1.setText( DEUtil.resolveNull( handle.getValue1( ) ) ); value2.setText( DEUtil.resolveNull( handle.getValue2( ) ) ); int vv = determineValueVisible( handle.getOperator( ) ); if ( vv == 0 ) { value1.setVisible( false ); value2.setVisible( false ); valBuilder1.setVisible( false ); valBuilder2.setVisible( false ); andLable.setVisible( false ); } else if ( vv == 1 ) { value1.setVisible( true ); value2.setVisible( false ); valBuilder1.setVisible( true ); valBuilder2.setVisible( false ); andLable.setVisible( false ); } else if ( vv == 2 ) { value1.setVisible( true ); value2.setVisible( true ); valBuilder1.setVisible( true ); valBuilder2.setVisible( true ); andLable.setVisible( true ); } } syncFamily( ); syncSize( ); if ( handle != null ) { if ( handle.getColor( ).isSet( ) ) { color .setRGB( DEUtil.getRGBValue( handle.getColor( ) .getRGB( ) ) ); } if ( handle.getBackgroundColor( ).isSet( ) ) { backColor.setRGB( DEUtil.getRGBValue( handle .getBackgroundColor( ).getRGB( ) ) ); } bold.setSelection( DesignChoiceConstants.FONT_WEIGHT_BOLD .equals( handle.getFontWeight( ) ) ); italic.setSelection( DesignChoiceConstants.FONT_STYLE_ITALIC .equals( handle.getFontStyle( ) ) ); underline .setSelection( DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE .equals( handle.getTextUnderline( ) ) ); linethrough .setSelection( DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH .equals( handle.getTextLineThrough( ) ) ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/79315b368296e47fc6aa276a9db24d8570b2b6c9/HighlightRuleBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HighlightRuleBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3792,
1767,
2297,
12,
262,
202,
95,
202,
202,
759,
2652,
18,
542,
1528,
12,
2030,
1304,
18,
10828,
2041,
12,
2893,
18,
588,
4709,
2300,
12,
262,
202,
202,
759,
262,
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,
225,
202,
1152,
918,
3792,
1767,
2297,
12,
262,
202,
95,
202,
202,
759,
2652,
18,
542,
1528,
12,
2030,
1304,
18,
10828,
2041,
12,
2893,
18,
588,
4709,
2300,
12,
262,
202,
202,
759,
262,
11... |
String title = "Interpreter Classpath"; StringBuffer cpBuf = new StringBuffer(); Vector<String> classpathElements = _model.getClasspath(); for(int i = 0; i < classpathElements.size(); i++) { cpBuf.append(classpathElements.get(i)); if (i + 1 < classpathElements.size()) { cpBuf.append("\n"); } | String title = "Confirm Reset Interactions"; String message = "Are you sure you want to reset the Interactions Pane?"; if (!_promptToReset || _view.showConfirmDialog(title, message)) { _model.resetInterpreter(); | public void run() { String title = "Interpreter Classpath"; StringBuffer cpBuf = new StringBuffer(); Vector<String> classpathElements = _model.getClasspath(); for(int i = 0; i < classpathElements.size(); i++) { cpBuf.append(classpathElements.get(i)); if (i + 1 < classpathElements.size()) { cpBuf.append("\n"); } } _view.showInfoDialog(title, cpBuf.toString()); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ee77a4b190fe991345758d9ffc949583a7709b61/InteractionsController.java/buggy/eclipse/src/edu/rice/cs/drjava/plugins/eclipse/views/InteractionsController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
514,
2077,
273,
315,
30010,
1659,
803,
14432,
3639,
6674,
3283,
5503,
273,
394,
6674,
5621,
3639,
5589,
32,
780,
34,
10006,
3471,
273,
389,
2284,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
514,
2077,
273,
315,
30010,
1659,
803,
14432,
3639,
6674,
3283,
5503,
273,
394,
6674,
5621,
3639,
5589,
32,
780,
34,
10006,
3471,
273,
389,
2284,
18,
58... |
int balance = 0; | if(lexer.getTokenType() != JavaTokenType.LBRACE) return FATAL_ERROR; lexer.advance(); int balance = 1; IElementType type; | public int getErrorsCount(CharSequence seq, Project project) { final Lexer lexer = getLanguage().getParserDefinition().createLexer(project); final char[] chars = CharArrayUtil.fromSequence(seq); lexer.start(chars, 0, chars.length); int balance = 0; while(true){ IElementType type = lexer.getTokenType(); if (type == null) break; if (type == JavaTokenType.LBRACE) { balance++; } else if (type == JavaTokenType.RBRACE) { balance--; } lexer.advance(); } return balance; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/6c142bf647dc8a7793248e5e9f71bc9959da1d45/JavaElementType.java/clean/source/com/intellij/psi/impl/source/tree/JavaElementType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
17625,
1380,
12,
2156,
4021,
3833,
16,
5420,
1984,
13,
288,
1377,
727,
14234,
8512,
273,
12898,
7675,
588,
2678,
1852,
7675,
2640,
13356,
12,
4406,
1769,
1377,
727,
1149,
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,
377,
1071,
509,
17625,
1380,
12,
2156,
4021,
3833,
16,
5420,
1984,
13,
288,
1377,
727,
14234,
8512,
273,
12898,
7675,
588,
2678,
1852,
7675,
2640,
13356,
12,
4406,
1769,
1377,
727,
1149,
8526,
... |
if (jj_3R_154()) return true; | if (jj_scan_token(DOT)) return true; if (jj_scan_token(IDENTIFIER)) return true; | final private boolean jj_3R_127() { if (jj_3R_154()) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
14260,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
14260,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
16606,
... |
return bndle; | public TriggerFiredBundle triggerFired(SchedulingContext ctxt, Trigger trigger) { synchronized (triggerLock) { TriggerWrapper tw = (TriggerWrapper) triggersByFQN.get(TriggerWrapper .getTriggerNameKey(trigger)); // was the trigger deleted since being acquired? if (tw == null || tw.trigger == null) return null; // was the trigger completed since being acquired? if (tw.state == TriggerWrapper.STATE_COMPLETE) return null; // was the trigger paused since being acquired? if (tw.state == TriggerWrapper.STATE_PAUSED) return null; // was the trigger blocked since being acquired? if (tw.state == TriggerWrapper.STATE_BLOCKED) return null; // was the trigger paused and blocked since being acquired? if (tw.state == TriggerWrapper.STATE_PAUSED_BLOCKED) return null; Calendar cal = null; if (tw.trigger.getCalendarName() != null) cal = retrieveCalendar(ctxt, tw.trigger.getCalendarName()); Date prevFireTime = trigger.getPreviousFireTime(); // call triggered on our copy, and the scheduler's copy tw.trigger.triggered(cal); trigger.triggered(cal); //tw.state = TriggerWrapper.STATE_EXECUTING; tw.state = TriggerWrapper.STATE_WAITING; TriggerFiredBundle bndle = new TriggerFiredBundle(retrieveJob(ctxt, trigger.getJobName(), trigger.getJobGroup()), trigger, cal, false, new Date(), trigger.getPreviousFireTime(), prevFireTime, trigger.getNextFireTime()); JobDetail job = bndle.getJobDetail(); if (job.isStateful()) { ArrayList trigs = getTriggerWrappersForJob(job.getName(), job .getGroup()); Iterator itr = trigs.iterator(); while (itr.hasNext()) { TriggerWrapper ttw = (TriggerWrapper) itr.next(); if(ttw.state == TriggerWrapper.STATE_WAITING) ttw.state = TriggerWrapper.STATE_BLOCKED; if(ttw.state == TriggerWrapper.STATE_PAUSED) ttw.state = TriggerWrapper.STATE_PAUSED_BLOCKED; if (!timeTriggers.remove(ttw)) queueTriggers.remove(ttw); } blockedJobs.add(JobWrapper.getJobNameKey(job)); } else if (tw.trigger.getNextFireTime() != null) { synchronized (triggerLock) { addToTimeTriggers(tw); } } return bndle; } } | 3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/RAMJobStore.java/buggy/src/java/org/quartz/simpl/RAMJobStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11321,
42,
2921,
3405,
3080,
42,
2921,
12,
25401,
1042,
14286,
16,
5411,
11321,
3080,
13,
288,
3639,
3852,
261,
10668,
2531,
13,
288,
3639,
11321,
3611,
2339,
273,
261,
6518,
3611,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11321,
42,
2921,
3405,
3080,
42,
2921,
12,
25401,
1042,
14286,
16,
5411,
11321,
3080,
13,
288,
3639,
3852,
261,
10668,
2531,
13,
288,
3639,
11321,
3611,
2339,
273,
261,
6518,
3611,
... | |
if(CONTROLLER.equals(type)|| ALL.equals(type)) { LOG.info("Generating controller for domain class ["+domainClass.getName()+"]"); generator.generateController(domainClass,"."); | finally { System.exit(0); | public static void main(String[] args) throws Exception { if(args.length < 2) return; String type = args[0]; String domainClassName = args[1]; ApplicationContext parent = new ClassPathXmlApplicationContext("applicationContext.xml"); GrailsApplication application = (DefaultGrailsApplication)parent.getBean("grailsApplication", DefaultGrailsApplication.class); GrailsDomainClass domainClass = getDomainCallFromApplication(application,domainClassName); // bootstrap application to try hibernate domain classes if(domainClass == null) { GrailsRuntimeConfigurator config = new GrailsRuntimeConfigurator(application,parent); ConfigurableApplicationContext appCtx = (ConfigurableApplicationContext)config.configure(new MockServletContext()); Assert.notNull(appCtx); } // retry domainClass = getDomainCallFromApplication(application,domainClassName); if(domainClass == null) { LOG.debug("Unable to generate ["+type+"] domain class not found for name ["+domainClassName+"]"); return; } GroovyClassLoader gcl = new GroovyClassLoader(Thread.currentThread().getContextClassLoader()); GrailsTemplateGenerator generator = (GrailsTemplateGenerator)gcl.parseClass(gcl.getResourceAsStream("org/codehaus/groovy/grails/scaffolding/DefaultGrailsTemplateGenerator.groovy")) .newInstance(); if(VIEWS.equals(type) || ALL.equals(type)) { LOG.info("Generating views for domain class ["+domainClass.getName()+"]"); generator.generateViews(domainClass,"."); } if(CONTROLLER.equals(type)|| ALL.equals(type)) { LOG.info("Generating controller for domain class ["+domainClass.getName()+"]"); generator.generateController(domainClass,"."); } else { LOG.info("Grails was unable to generate templates for unsupported type ["+type+"]"); } System.exit(0); } | 50465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50465/b6ef9ddec7862d8efa8e6b63db67dfa714830c8a/GenerateUtils.java/buggy/src/commons/grails/util/GenerateUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
309,
12,
1968,
18,
2469,
411,
576,
13,
5411,
327,
31,
3639,
514,
618,
273,
833,
63,
20,
15533,
3639,
514,
2461,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
309,
12,
1968,
18,
2469,
411,
576,
13,
5411,
327,
31,
3639,
514,
618,
273,
833,
63,
20,
15533,
3639,
514,
2461,
38... |
mimeType = (String) props.get(SVNProperty.MIME_TYPE); if (mimeType == null) { mimeType = SVNFileUtil.detectMimeType(file); if (mimeType != null) { props.put(SVNProperty.MIME_TYPE, mimeType); props.remove(SVNProperty.EOL_STYLE); } | if (props.get(SVNProperty.MIME_TYPE) == null && mimeType != null) { props.put(SVNProperty.MIME_TYPE, mimeType); props.remove(SVNProperty.EOL_STYLE); | private void addSingleFile(SVNDirectory dir, String name) throws SVNException { File file = dir.getFile(name); dir.add(name, false, false); String mimeType; SVNProperties properties = dir.getProperties(name, false); if (SVNFileType.getType(file) == SVNFileType.SYMLINK) { properties.setPropertyValue(SVNProperty.SPECIAL, "*"); } else { Map props = new HashMap(); boolean executable; props = getOptions().applyAutoProperties(name, props); mimeType = (String) props.get(SVNProperty.MIME_TYPE); if (mimeType == null) { mimeType = SVNFileUtil.detectMimeType(file); if (mimeType != null) { props.put(SVNProperty.MIME_TYPE, mimeType); props.remove(SVNProperty.EOL_STYLE); } } if (!props.containsKey(SVNProperty.EXECUTABLE)) { executable = SVNFileUtil.isExecutable(file); if (executable) { props.put(SVNProperty.EXECUTABLE, "*"); } } for (Iterator names = props.keySet().iterator(); names.hasNext();) { String propName = (String) names.next(); String propValue = (String) props.get(propName); try { doSetLocalProperty(dir, name, propName, propValue, false, false, false, null); } catch (SVNException e) { // skip cancellation here. } } } } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/33400a300e314c15f18113cd5263e7071898a8ec/SVNWCClient.java/clean/javasvn/src/org/tmatesoft/svn/core/wc/SVNWCClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
5281,
812,
12,
23927,
50,
2853,
1577,
16,
514,
508,
13,
1216,
29537,
50,
503,
288,
3639,
1387,
585,
273,
1577,
18,
29925,
12,
529,
1769,
3639,
1577,
18,
1289,
12,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
5281,
812,
12,
23927,
50,
2853,
1577,
16,
514,
508,
13,
1216,
29537,
50,
503,
288,
3639,
1387,
585,
273,
1577,
18,
29925,
12,
529,
1769,
3639,
1577,
18,
1289,
12,
529,
... |
+ OBJ16_PATH + "group.gif" ); | + OBJ16_PATH + "group.gif" ); | private final static void declareImages( ) { // common icons declareImage( ISharedImages.IMG_OBJS_ERROR_TSK, ICONS_PATH + PROGRESS_PATH + "error_tsk.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_OBJ_FOLDER, ICONS_PATH + OBJ16_PATH + "fldr_obj.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_COPY, ICONS_PATH + ETOOL16_PATH + "copy_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_CUT, ICONS_PATH + ETOOL16_PATH + "cut_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_UNDO, ICONS_PATH + ETOOL16_PATH + "undo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_REDO, ICONS_PATH + ETOOL16_PATH + "redo_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_PASTE, ICONS_PATH + ETOOL16_PATH + "paste_edit.gif" ); //$NON-NLS-1$ declareImage( ISharedImages.IMG_TOOL_DELETE, ICONS_PATH + ETOOL16_PATH + "delete_edit.gif" ); //$NON-NLS-1$ declareImage(IReportGraphicConstants.ICON_ELEMENT_TEMPLATEITEM,ICONS_PATH + OBJ16_PATH + "templatereportitem.gif"); declareImage( IReportGraphicConstants.ICON_NEW_REPORT, ICONS_PATH + OBJ16_PATH + "new_report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NEW_LIBRARY, ICONS_PATH + OBJ16_PATH + "new_library.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NEW_TEMPLATE, ICONS_PATH + OBJ16_PATH + "new_template.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_FILE, ICONS_PATH + EVIEW16_PATH + "report.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_QUIK_EDIT, ICONS_PATH + EVIEW16_PATH + "quick_edit.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PERSPECTIVE, ICONS_PATH + EVIEW16_PATH + "report_perspective.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_REPORT_PROJECT, ICONS_PATH + OBJ16_PATH + "report_project.gif" ); //$NON-NLS-1$ // element icons declareImage( IReportGraphicConstants.ICON_ELEMENT_CELL, ICONS_PATH + OBJ16_PATH + "cell.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA, ICONS_PATH + OBJ16_PATH + "data.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ODA_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SET, ICONS_PATH + OBJ16_PATH + "data_set.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCRIPT_DATA_SOURCE, ICONS_PATH + OBJ16_PATH + "data_source.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GRID, ICONS_PATH + PAL_PATH + "grid.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXTDATA, ICONS_PATH + PAL_PATH + "textdata.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_GROUP, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_IMAGE, ICONS_PATH + PAL_PATH + "image.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LABEL, ICONS_PATH + PAL_PATH + "label.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LINE, ICONS_PATH + OBJ16_PATH + "line.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST, ICONS_PATH + PAL_PATH + "list.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIST_GROUP, ICONS_PATH + OBJ16_PATH + "list_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_MASTERPAGE, ICONS_PATH + OBJ16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_GRAPHICMASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_CASCADING_PARAMETER_GROUP, ICONS_PATH + OBJ16_PATH + "parameter_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_ROW, ICONS_PATH + OBJ16_PATH + "row.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_SCALAR_PARAMETER, ICONS_PATH + OBJ16_PATH + "parameter.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMNET_SIMPLE_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_STYLE, ICONS_PATH + OBJ16_PATH + "style.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE, ICONS_PATH + PAL_PATH + "table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TABLE_GROUP, ICONS_PATH + OBJ16_PATH + "table_group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_TEXT, ICONS_PATH + PAL_PATH + "text.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY, ICONS_PATH + OBJ16_PATH + "library.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_LIBRARY_REFERENCED, ICONS_PATH + OBJ16_PATH + "library_referenced.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ELEMENT_THEME, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ // outline icons declareImage( IReportGraphicConstants.ICON_NODE_BODY, ICONS_PATH + OBJ16_PATH + "body_icon.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_MASTERPAGES, ICONS_PATH + OBJ16_PATH + "master_pages.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_STYLES, ICONS_PATH + OBJ16_PATH + "styles.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_HEADER, ICONS_PATH + OBJ16_PATH + "header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DETAILS, ICONS_PATH + OBJ16_PATH + "details.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_FOOTER, ICONS_PATH + OBJ16_PATH + "footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUPS, ICONS_PATH + OBJ16_PATH + "group.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_HEADER, ICONS_PATH + OBJ16_PATH + "group_header.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_GROUP_FOOTER, ICONS_PATH + OBJ16_PATH + "group_footer.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_LIBRARIES, ICONS_PATH + OBJ16_PATH + "library_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_THEMES, ICONS_PATH + OBJ16_PATH + "theme.gif" ); //$NON-NLS-1$ // layout icons declareImage( IReportGraphicConstants.ICON_LAYOUT_NORMAL, ICONS_PATH + EVIEW16_PATH + "normal_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_MASTERPAGE, ICONS_PATH + EVIEW16_PATH + "master_page.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_LAYOUT_RULER, ICONS_PATH + EVIEW16_PATH + "show_rulers.gif" ); //$NON-NLS-1$ // border icons declareImage( IReportGraphicConstants.ICON_BORDER_ALL, ICONS_PATH + OBJ16_PATH + "borders_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_BORDER_NOBORDER, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ // missing image icons declareImage( IReportGraphicConstants.ICON_MISSING_IMG, ICONS_PATH + PROGRESS_PATH + "missing_image.gif" ); //$NON-NLS-1$ // data explore icons declareImage( IReportGraphicConstants.ICON_DATA_EXPLORER_VIEW, ICONS_PATH + EVIEW16_PATH + "data_explorer_view.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SETS, ICONS_PATH + OBJ16_PATH + "data_set_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_DATA_SOURCES, ICONS_PATH + OBJ16_PATH + "data_source_folder.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_NODE_PARAMETERS, ICONS_PATH + OBJ16_PATH + "parameter_folder.gif" ); //$NON-NLS-1$ // ********************************************************** // expression icons declareImage( IReportGraphicConstants.ICON_EXPRESSION_DATA_TABLE, ICONS_PATH + OBJ16_PATH + "data_table.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_DATA_COLUMN, ICONS_PATH + OBJ16_PATH + "data_column.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_OPERATOR, ICONS_PATH + OBJ16_PATH + "operator.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_GLOBAL, ICONS_PATH + OBJ16_PATH + "global.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_METHOD, ICONS_PATH + OBJ16_PATH + "method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_METHOD, ICONS_PATH + OBJ16_PATH + "static_method.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_MEMBER, ICONS_PATH + OBJ16_PATH + "property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_MEMBER, ICONS_PATH + OBJ16_PATH + "static_property.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_EXPRESSION_BUILDER, ICONS_PATH + OBJ16_PATH + "expression.gif" ); //$NON-NLS-1$ // data wizards declareImage( IReportGraphicConstants.ICON_WIZARD_DATASOURCE, ICONS_PATH + WIZBAN_PATH + "datasource_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARD_DATASET, ICONS_PATH + WIZBAN_PATH + "dataset_wizard.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_WIZARDPAGE_DATASETSELECTION, ICONS_PATH + WIZBAN_PATH + "dataset_wizard_table.gif" ); //$NON-NLS-1$ // ///////////////////attribute image declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH, ICONS_PATH + OBJ16_PATH + "bold.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_WIDTH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "bold_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE, ICONS_PATH + OBJ16_PATH + "italic.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_FONT_STYLE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "italic_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE, ICONS_PATH + OBJ16_PATH + "underline.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_UNDERLINE + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "underline_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH, ICONS_PATH + OBJ16_PATH + "lineSthrough.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_LINE_THROUGH + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "lineSthrough_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_NONE, ICONS_PATH + OBJ16_PATH + "border_none.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_FRAME, ICONS_PATH + OBJ16_PATH + "border_frame.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_LEFT, ICONS_PATH + OBJ16_PATH + "border_left.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_RIGHT, ICONS_PATH + OBJ16_PATH + "border_right.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_TOP, ICONS_PATH + OBJ16_PATH + "border_top.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BORDER_BOTTOM, ICONS_PATH + OBJ16_PATH + "border_bottom.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER, ICONS_PATH + OBJ16_PATH + "center_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_CENTER + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "center_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY, ICONS_PATH + OBJ16_PATH + "justified_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_JUSTIFY + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "justified_align_disabled.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT, ICONS_PATH + OBJ16_PATH + "left_align.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_LEFT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "left_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT, ICONS_PATH + OBJ16_PATH + "right_align.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TEXT_ALIGN_RIGHT + IReportGraphicConstants.DIS, ICONS_PATH + DOBJ16_PATH + "right_align_disabled.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_TOP_MARGIN, ICONS_PATH + MISC_PATH + "top_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_BOTTOM_MARGIN, ICONS_PATH + MISC_PATH + "bottom_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_LEFT_MARGIN, ICONS_PATH + MISC_PATH + "left_margin.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_ATTRIBUTE_RIGHT_MARGIN, ICONS_PATH + MISC_PATH + "right_margin.gif" ); //$NON-NLS-1$ // ********************************************************** // Preview icons declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS, ICONS_PATH + PROGRESS_PATH + "params_ecl_show.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_PARAMETERS_HIDE, ICONS_PATH + PROGRESS_PATH + "params_ecl_hide.gif" ); //$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_PREVIEW_REFRESH, ICONS_PATH + ETOOL16_PATH + "refresh.gif" ); //$NON-NLS-1$ // Auto Text Icon declareImage( IReportGraphicConstants.ICON_AUTOTEXT, ICONS_PATH + OBJ16_PATH + "autotext.gif" ); //$NON-NLS-1$ // Parameter dialog icon declareImage( IReportGraphicConstants.ICON_DEFAULT, ICONS_PATH + OBJ16_PATH + "default.gif" ); //$NON-NLS-1$ // Data editor dialog icons declareImage( IReportGraphicConstants.ICON_DATAEDIT_DLG_TITLE_BANNER, ICONS_PATH + OBJ16_PATH + "prop_dialog_title.gif" ); //$NON-NLS-1$ // Open file icon declareImage( IReportGraphicConstants.ICON_OPEN_FILE, ICONS_PATH + ETOOL16_PATH + "open_file.gif" ); //$NON-NLS-1$ declareImage( "TableRowSelector", ICONS_PATH + OBJ16_PATH + "tablerowselector.gif" ); //$NON-NLS-1$ //$NON-NLS-2$ declareImage( IReportGraphicConstants.ICON_ENABLE_LOCAL_PROPERTIES, ICONS_PATH + OBJ16_PATH + "property_reference.gif" );//$NON-NLS-1$ declareImage( IReportGraphicConstants.ICON_TEMPLATE_NO_PREVIEW, ICONS_PATH + MISC_PATH + "no_preview.gif" ); //$NON-NLS-1$ } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/fc4e6f5b2530a52954d5ca28772ebf46d133b052/ReportPlatformUIImages.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/ReportPlatformUIImages.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
760,
918,
14196,
8946,
12,
262,
202,
95,
202,
202,
759,
2975,
17455,
202,
202,
29554,
2040,
12,
467,
7887,
8946,
18,
3445,
43,
67,
5704,
6479,
67,
3589,
67,
8047,
47,
... |
_t = __t1960; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1958; | _t = __t1963; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1961; | public final void runstate(AST _t) throws RecognitionException { AST runstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1955 = _t; AST tmp1401_AST_in = (AST)_t; match(_t,RUN); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTANGLE: { AST tmp1402_AST_in = (AST)_t; match(_t,LEFTANGLE); _t = _t.getNextSibling(); AST tmp1403_AST_in = (AST)_t; match(_t,LEFTANGLE); _t = _t.getNextSibling(); filenameorvalue(_t); _t = _retTree; AST tmp1404_AST_in = (AST)_t; match(_t,RIGHTANGLE); _t = _t.getNextSibling(); AST tmp1405_AST_in = (AST)_t; match(_t,RIGHTANGLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASYNCHRONOUS: case IN_KW: case NOERROR_KW: case ON: case PERSISTENT: case SET: case VALUE: case Parameter_list: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1977: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PERSISTENT: { AST __t1958 = _t; AST tmp1406_AST_in = (AST)_t; match(_t,PERSISTENT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SET: { AST __t1960 = _t; AST tmp1407_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { field(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1960; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1958; _t = _t.getNextSibling(); break; } case SET: { AST __t1962 = _t; AST tmp1408_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { field(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1962; _t = _t.getNextSibling(); break; } case ON: { AST __t1964 = _t; AST tmp1409_AST_in = (AST)_t; match(_t,ON); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_t.getType()==SERVER)) { AST tmp1410_AST_in = (AST)_t; match(_t,SERVER); _t = _t.getNextSibling(); } else if ((_tokenSet_3.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRANSACTION: { AST tmp1411_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISTINCT: { AST tmp1412_AST_in = (AST)_t; match(_t,DISTINCT); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1964; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t1968 = _t; AST tmp1413_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1968; _t = _t.getNextSibling(); break; } case ASYNCHRONOUS: { AST __t1969 = _t; AST tmp1414_AST_in = (AST)_t; match(_t,ASYNCHRONOUS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SET: { AST __t1971 = _t; AST tmp1415_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { field(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1971; _t = _t.getNextSibling(); break; } case 3: case EVENTPROCEDURE: case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EVENTPROCEDURE: { AST __t1974 = _t; AST tmp1416_AST_in = (AST)_t; match(_t,EVENTPROCEDURE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1974; _t = _t.getNextSibling(); break; } case 3: case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t1976 = _t; AST tmp1417_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1976; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1969; _t = _t.getNextSibling(); break; } default: { break _loop1977; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { parameterlist(_t); _t = _retTree; break; } case EOF: case PERIOD: case NOERROR_KW: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1980: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp1418_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case VALUE: case TYPELESS_TOKEN: { anyorvalue(_t); _t = _retTree; break; } default: { break _loop1980; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1955; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1086,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1086,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1086,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1086,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... |
private synchronized void queueResendRequests(int seqNumber) { int max = packetNumbersReceived.highest(); | private void queueResendRequests(int seqNumber) { int max; synchronized(this) { max = packetNumbersReceived.highest(); } | private synchronized void queueResendRequests(int seqNumber) { int max = packetNumbersReceived.highest(); if(seqNumber > max) { if(max != -1 && seqNumber - max > 1) { Logger.minor(this, "Queueing resends from "+max+" to "+seqNumber); // Missed some packets out for(int i=max+1;i<seqNumber;i++) { queueResendRequest(i); } } } } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/b4ecaa4055b5835413830d4125c72de27d68e306/KeyTracker.java/buggy/src/freenet/node/KeyTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
2389,
607,
409,
6421,
12,
474,
3833,
1854,
13,
288,
3639,
509,
943,
273,
4414,
10072,
8872,
18,
8766,
395,
5621,
3639,
309,
12,
5436,
1854,
405,
943,
13,
288,
5411,
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,
3852,
918,
2389,
607,
409,
6421,
12,
474,
3833,
1854,
13,
288,
3639,
509,
943,
273,
4414,
10072,
8872,
18,
8766,
395,
5621,
3639,
309,
12,
5436,
1854,
405,
943,
13,
288,
5411,
309... |
infoSite.setInitialInfoSection(infoSection); | public void testAuthorizedManagement() { super.setAuthorizedUser(); if (getSession().getAttribute(SessionConstants.U_VIEW)==null) System.out.println("userView==null"); //set request path setRequestPathInfo("teacher", "/alternativeSite"); //sets needed objects to session/request addRequestParameter("method", "management"); InfoSection infoSection = new InfoSection(); InfoSite infoSite = new InfoSite(); //infoSection infoSection = new InfoSection("Seccao1deTFCI", new Integer(0), null); //infoSite InfoExecutionYear infoExecutionYear = new InfoExecutionYear("2002/2003"); InfoExecutionPeriod infoExecutionPeriod = new InfoExecutionPeriod("2 Semestre", infoExecutionYear); InfoExecutionCourse infoExecutionCourse = new InfoExecutionCourse( "Trabalho Final de Curso I", "TFCI", "programa1", new Double(1.5), new Double(2), new Double(1.5), new Double(2), infoExecutionPeriod); infoSite = new InfoSite(infoExecutionCourse); infoSection.setInfoSite(infoSite); infoSite.setInitialInfoSection(infoSection); getSession().setAttribute(SessionConstants.INFO_SITE, infoSite); //action perform actionPerform(); //verify that there are no errors verifyNoActionErrors(); //verifies forward verifyForward("editAlternativeSite"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/67f99a7ae02f862bad0e46d713e31966f855b9a8/AlternativeSiteManagementActionTest.java/buggy/src_tests/ServidorApresentacao/teacher/AlternativeSiteManagementActionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
15341,
10998,
1435,
288,
202,
202,
9565,
18,
542,
15341,
1299,
5621,
202,
202,
430,
261,
588,
2157,
7675,
588,
1499,
12,
2157,
2918,
18,
57,
67,
12145,
13,
631,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
15341,
10998,
1435,
288,
202,
202,
9565,
18,
542,
15341,
1299,
5621,
202,
202,
430,
261,
588,
2157,
7675,
588,
1499,
12,
2157,
2918,
18,
57,
67,
12145,
13,
631,
201... | |
if (oldWorkspace != newWorkspace) { if (oldWorkspace != null) { oldWorkspace.removeResourceChangeListener(this); } if (newWorkspace != null) { newWorkspace.addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE); } } } | if (oldWorkspace != newWorkspace) { if (oldWorkspace != null) { oldWorkspace.removeResourceChangeListener(this); } if (newWorkspace != null) { newWorkspace.addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE); } } } | public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { super.inputChanged(viewer, oldInput, newInput); this.viewer = viewer; IWorkspace oldWorkspace = null; IWorkspace newWorkspace = null; if (oldInput instanceof IWorkspace) { oldWorkspace = (IWorkspace) oldInput; } else if (oldInput instanceof IContainer) { oldWorkspace = ((IContainer) oldInput).getWorkspace(); } if (newInput instanceof IWorkspace) { newWorkspace = (IWorkspace) newInput; } else if (newInput instanceof IContainer) { newWorkspace = ((IContainer) newInput).getWorkspace(); } if (oldWorkspace != newWorkspace) { if (oldWorkspace != null) { oldWorkspace.removeResourceChangeListener(this); } if (newWorkspace != null) { newWorkspace.addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE); } } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/11487ebf64f12f87b8d0951a2bb51a68bcc004c9/WorkbenchContentProvider.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/model/WorkbenchContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
810,
5033,
12,
18415,
14157,
16,
1033,
1592,
1210,
16,
1033,
394,
1210,
13,
288,
3639,
2240,
18,
2630,
5033,
12,
25256,
16,
1592,
1210,
16,
394,
1210,
1769,
3639,
333,
18,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
810,
5033,
12,
18415,
14157,
16,
1033,
1592,
1210,
16,
1033,
394,
1210,
13,
288,
3639,
2240,
18,
2630,
5033,
12,
25256,
16,
1592,
1210,
16,
394,
1210,
1769,
3639,
333,
18,
25... |
if(isClosed()) return; if(getFocusOwner() instanceof JComponent) { JComponent comp = (JComponent)getFocusOwner(); InputMap map = comp.getInputMap(); ActionMap am = comp.getActionMap(); if(map != null && am != null && comp.isEnabled()) { Object binding = map.get(KeyStroke.getKeyStrokeForEvent(evt)); if(binding != null && am.get(binding) != null) { return; } } } if(getFocusOwner() instanceof JTextComponent) { if(evt.getID() == KeyEvent.KEY_PRESSED) { switch(evt.getKeyCode()) { case KeyEvent.VK_BACK_SPACE: case KeyEvent.VK_TAB: case KeyEvent.VK_ENTER: return; } } } if(evt.isConsumed()) return; evt = KeyEventWorkaround.processKeyEvent(evt); if(evt == null) return; switch(evt.getID()) { case KeyEvent.KEY_TYPED: if(keyEventInterceptor != null) /* keyEventInterceptor.keyTyped(evt) */; else if(inputHandler.isPrefixActive() && !getTextArea().hasFocus()) inputHandler.keyTyped(evt); break; case KeyEvent.KEY_PRESSED: if(keyEventInterceptor != null) keyEventInterceptor.keyPressed(evt); else { inputHandler.keyPressed(evt); if(inputHandler.isPrefixActive() && getFocusOwner() instanceof JTextComponent) getTextArea().requestFocus(); } break; case KeyEvent.KEY_RELEASED: if(keyEventInterceptor != null) keyEventInterceptor.keyReleased(evt); else inputHandler.keyReleased(evt); break; } if(!evt.isConsumed()) super.processKeyEvent(evt); | processKeyEvent(evt,false); | public void processKeyEvent(KeyEvent evt) { if(isClosed()) return; if(getFocusOwner() instanceof JComponent) { JComponent comp = (JComponent)getFocusOwner(); InputMap map = comp.getInputMap(); ActionMap am = comp.getActionMap(); if(map != null && am != null && comp.isEnabled()) { Object binding = map.get(KeyStroke.getKeyStrokeForEvent(evt)); if(binding != null && am.get(binding) != null) { return; } } } if(getFocusOwner() instanceof JTextComponent) { // fix for the bug where key events in JTextComponents // inside views are also handled by the input handler if(evt.getID() == KeyEvent.KEY_PRESSED) { switch(evt.getKeyCode()) { case KeyEvent.VK_BACK_SPACE: case KeyEvent.VK_TAB: case KeyEvent.VK_ENTER: return; } } } if(evt.isConsumed()) return; evt = KeyEventWorkaround.processKeyEvent(evt); if(evt == null) return; switch(evt.getID()) { case KeyEvent.KEY_TYPED: // Handled in text area if(keyEventInterceptor != null) /* keyEventInterceptor.keyTyped(evt) */; else if(inputHandler.isPrefixActive() && !getTextArea().hasFocus()) inputHandler.keyTyped(evt); break; case KeyEvent.KEY_PRESSED: if(keyEventInterceptor != null) keyEventInterceptor.keyPressed(evt); else { inputHandler.keyPressed(evt); // this is a weird hack. // we don't want C+e a to insert 'a' in the // search bar if the search bar has focus... if(inputHandler.isPrefixActive() && getFocusOwner() instanceof JTextComponent) getTextArea().requestFocus(); } break; case KeyEvent.KEY_RELEASED: if(keyEventInterceptor != null) keyEventInterceptor.keyReleased(evt); else inputHandler.keyReleased(evt); break; } if(!evt.isConsumed()) super.processKeyEvent(evt); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/2c183755b9dc5ff25d8b9861bfa02c0a4368902b/View.java/buggy/org/gjt/sp/jedit/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
430,
12,
291,
7395,
10756,
1082,
202,
2463,
31,
202,
202,
430,
12,
588,
9233,
5541,
1435,
1276,
29058,
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,
225,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
430,
12,
291,
7395,
10756,
1082,
202,
2463,
31,
202,
202,
430,
12,
588,
9233,
5541,
1435,
1276,
29058,
13,
... |
candidate = getDeepestComponentForMouseEventAt(parent, p.x, p.y); | candidate = getDeepestComponentForMouseEventAt(parent, p.x, p.y); | Component acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component mouseEventTarget = null; // Find the candidate which should receive this event. Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { candidate = getDeepestComponentForMouseEventAt(parent, p.x, p.y); if (candidate == null || (candidate.eventMask & me.getID()) == 0) { candidate = null; p = AWTUtilities.convertPoint(parent, p.x, p.y, parent.parent); parent = parent.parent; } } // If the only candidate we found was the native container itself, // don't dispatch any event at all. We only care about the lightweight // children here. if (candidate == nativeContainer) candidate = null; // If our candidate is new, inform the old target we're leaving. if (lastComponentEntered != null && lastComponentEntered.isShowing() && lastComponentEntered != candidate) { // Old candidate could have been removed from // the nativeContainer so we check first. if (AWTUtilities.isDescendingFrom(lastComponentEntered, nativeContainer)) { Point tp = AWTUtilities.convertPoint(nativeContainer, x, y, lastComponentEntered); MouseEvent exited = new MouseEvent (lastComponentEntered, MouseEvent.MOUSE_EXITED, me.getWhen (), me.getModifiersEx (), tp.x, tp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); lastComponentEntered.dispatchEvent (exited); } lastComponentEntered = null; } // If we have a candidate, maybe enter it. if (candidate != null) { mouseEventTarget = candidate; if (candidate.isLightweight() && candidate.isShowing() && candidate != nativeContainer && candidate != lastComponentEntered) { lastComponentEntered = mouseEventTarget; Point cp = AWTUtilities.convertPoint(nativeContainer, x, y, lastComponentEntered); MouseEvent entered = new MouseEvent (lastComponentEntered, MouseEvent.MOUSE_ENTERED, me.getWhen (), me.getModifiersEx (), cp.x, cp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); lastComponentEntered.dispatchEvent (entered); } } // Check which buttons where pressed except the last button that // changed state. int modifiers = me.getModifiersEx() & (MouseEvent.BUTTON1_DOWN_MASK | MouseEvent.BUTTON2_DOWN_MASK | MouseEvent.BUTTON3_DOWN_MASK); switch(me.getButton()) { case MouseEvent.BUTTON1: modifiers &= ~MouseEvent.BUTTON1_DOWN_MASK; break; case MouseEvent.BUTTON2: modifiers &= ~MouseEvent.BUTTON2_DOWN_MASK; break; case MouseEvent.BUTTON3: modifiers &= ~MouseEvent.BUTTON3_DOWN_MASK; break; } if (me.getID() == MouseEvent.MOUSE_RELEASED || me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0 || me.getID() == MouseEvent.MOUSE_DRAGGED) { // If any of the following events occur while a button is held down, // they should be dispatched to the same component to which the // original MOUSE_PRESSED event was dispatched: // - MOUSE_RELEASED // - MOUSE_PRESSED: another button pressed while the first is held // down // - MOUSE_DRAGGED if (AWTUtilities.isDescendingFrom(pressedComponent, nativeContainer)) mouseEventTarget = pressedComponent; } else if (me.getID() == MouseEvent.MOUSE_CLICKED) { // Don't dispatch CLICKED events whose target is not the same as the // target for the original PRESSED event. if (candidate != pressedComponent) mouseEventTarget = null; else if (pressCount == 0) pressedComponent = null; } return mouseEventTarget; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c0997df57feec0722568b1f1cc390b475c418086/Container.java/buggy/core/src/classpath/java/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5435,
10533,
1841,
1290,
9186,
1133,
12,
9186,
1133,
1791,
13,
225,
288,
565,
509,
619,
273,
1791,
18,
588,
60,
261,
1769,
565,
509,
677,
273,
1791,
18,
588,
61,
261,
1769,
3639,
5435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
10533,
1841,
1290,
9186,
1133,
12,
9186,
1133,
1791,
13,
225,
288,
565,
509,
619,
273,
1791,
18,
588,
60,
261,
1769,
565,
509,
677,
273,
1791,
18,
588,
61,
261,
1769,
3639,
5435,
... |
IASTDeclarator declarator = (IASTDeclarator) name.getParent(); | IASTDeclarator declarator = (IASTDeclarator) declarations[0].getParent(); | public IScope getScope() { IASTDeclarator declarator = (IASTDeclarator) name.getParent(); return CVisitor.getContainingScope( declarator.getParent() ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/5cafbaec9b9548600eb21ab653a516cae4d767f8/CVariable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVariable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
3876,
19203,
1435,
288,
202,
202,
45,
9053,
31419,
3496,
5880,
273,
261,
45,
9053,
31419,
13,
508,
18,
588,
3054,
5621,
202,
202,
2463,
385,
7413,
18,
588,
24344,
3876,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
3876,
19203,
1435,
288,
202,
202,
45,
9053,
31419,
3496,
5880,
273,
261,
45,
9053,
31419,
13,
508,
18,
588,
3054,
5621,
202,
202,
2463,
385,
7413,
18,
588,
24344,
3876,
1... |
private boolean acceptNode(StructureNode node, StructureViewProperties properties) { if (node instanceof ProgramElementNode) { ProgramElementNode pNode = (ProgramElementNode)node; if (!acceptGranularity(pNode.getProgramElementKind(), properties.getGranularity())) { | private boolean acceptNode(IProgramElement node, StructureViewProperties properties) { if (node instanceof IProgramElement) { IProgramElement pNode = (IProgramElement)node; if (!acceptGranularity(pNode.getKind(), properties.getGranularity())) { | private boolean acceptNode(StructureNode node, StructureViewProperties properties) { if (node instanceof ProgramElementNode) { ProgramElementNode pNode = (ProgramElementNode)node; if (!acceptGranularity(pNode.getProgramElementKind(), properties.getGranularity())) { return false; } else if (pNode.isMemberKind()) { if (properties.getFilteredMemberAccessibility().contains(pNode.getAccessibility())) { return false; } if (properties.getFilteredMemberKinds().contains(pNode.getProgramElementKind())) { return false; } for (Iterator it = pNode.getModifiers().iterator(); it.hasNext(); ) { if (properties.getFilteredMemberModifiers().contains(it.next())) { return false; } } } } else if (node instanceof RelationNode) { Relation relation = ((RelationNode)node).getRelation(); return properties.getRelations().contains(relation); } else { return true; } return true; } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/f1deb9c11024ecebab2e0aa17a260821375c25bd/TreeStructureViewBuilder.java/buggy/ajde/src/org/aspectj/ajde/ui/internal/TreeStructureViewBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
2791,
907,
12,
6999,
907,
756,
16,
13348,
1767,
2297,
1790,
13,
288,
202,
202,
430,
261,
2159,
1276,
13586,
1046,
907,
13,
288,
1082,
202,
9459,
1046,
907,
293,
907,
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,
225,
202,
1152,
1250,
2791,
907,
12,
6999,
907,
756,
16,
13348,
1767,
2297,
1790,
13,
288,
202,
202,
430,
261,
2159,
1276,
13586,
1046,
907,
13,
288,
1082,
202,
9459,
1046,
907,
293,
907,
27... |
public static final Palette create( Fill f ) | public static final Palette create( int iIndex, boolean bEmpty ) | public static final Palette create( Fill f ) { final Palette p = AttributeFactory.eINSTANCE.createPalette( ); p.getEntries( ).add( f ); return p; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ae8909f5c697c610266e491d0af9a02eed14e2e4/PaletteImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/PaletteImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
453,
8786,
752,
12,
14192,
284,
262,
202,
95,
202,
202,
6385,
453,
8786,
293,
273,
3601,
1733,
18,
73,
13341,
18,
2640,
25863,
12,
11272,
202,
202,
84,
18,
588,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
453,
8786,
752,
12,
14192,
284,
262,
202,
95,
202,
202,
6385,
453,
8786,
293,
273,
3601,
1733,
18,
73,
13341,
18,
2640,
25863,
12,
11272,
202,
202,
84,
18,
588,
54... |
throws TransformerConfigurationException { if (_piParams == null) { _piParams = new Hashtable(); } _piParams.put(source, new PIParamWrapper(media, title, charset)); return source; | throws TransformerConfigurationException { String baseId; XMLReader reader = null; InputSource isource = null; /** * Fix for bugzilla bug 24187 */ StylesheetPIHandler _stylesheetPIHandler = new StylesheetPIHandler(null,media,title,charset); try { if (source instanceof DOMSource ) { final DOMSource domsrc = (DOMSource) source; baseId = domsrc.getSystemId(); final org.w3c.dom.Node node = domsrc.getNode(); final DOM2SAX dom2sax = new DOM2SAX(node); _stylesheetPIHandler.setBaseId(baseId); dom2sax.setContentHandler( _stylesheetPIHandler); dom2sax.parse(); } else { isource = SAXSource.sourceToInputSource(source); baseId = isource.getSystemId(); SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setNamespaceAware(true); SAXParser jaxpParser = factory.newSAXParser(); reader = jaxpParser.getXMLReader(); if (reader == null) { reader = XMLReaderFactory.createXMLReader(); } _stylesheetPIHandler.setBaseId(baseId); reader.setContentHandler(_stylesheetPIHandler); reader.parse(isource); } if (_uriResolver != null ) { _stylesheetPIHandler.setURIResolver(_uriResolver); } } catch (StopParseException e ) { } catch (javax.xml.parsers.ParserConfigurationException e) { throw new TransformerConfigurationException( "getAssociatedStylesheets failed", e); } catch (org.xml.sax.SAXException se) { throw new TransformerConfigurationException( "getAssociatedStylesheets failed", se); } catch (IOException ioe ) { throw new TransformerConfigurationException( "getAssociatedStylesheets failed", ioe); } return _stylesheetPIHandler.getAssociatedStylesheet(); | public Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException { // First create a hashtable that maps Source refs. to parameters if (_piParams == null) { _piParams = new Hashtable(); } // Store the parameters for this Source in the Hashtable _piParams.put(source, new PIParamWrapper(media, title, charset)); // Return the same Source - we'll locate the stylesheet later return source; } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/a29b068c434bd084ec658ef23b228158783f797a/TransformerFactoryImpl.java/buggy/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4998,
336,
19233,
24656,
12,
1830,
1084,
16,
514,
3539,
16,
25083,
225,
514,
2077,
16,
514,
4856,
13,
202,
15069,
11519,
10737,
377,
288,
202,
759,
5783,
752,
279,
711,
14544,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4998,
336,
19233,
24656,
12,
1830,
1084,
16,
514,
3539,
16,
25083,
225,
514,
2077,
16,
514,
4856,
13,
202,
15069,
11519,
10737,
377,
288,
202,
759,
5783,
752,
279,
711,
14544,
716,
... |
writted = Testbench.writeVHDL(ci, inducement); | Testbench.writeVHDL(ci, inducement); | public void testWriteVHDLCircuitInterfaceString() { String inducement = new String("<measureUnit>ns</measureUnit>\n" + "<duration>1000</duration>\n" + "<signal name = \"A\" type=\"scalar\">(0,0)(100, 1)(150, 0)(300,1)</signal>\n" + "<signal name = \"b\" type=\"scalar\">(0,0)(200, 1)(300, z)(440, U)</signal>\n" + "<signal name = \"c\" type=\"scalar\" rangeFrom=\"0\" rangeTo=\"0\">(0,0)(50,1)(300,0)(400,1)</signal>\n" + "<signal name = \"d\" type=\"vector\" rangeFrom=\"0\" rangeTo=\"0\">(100,1)(200,0)(300,1)(400,z)</signal>\n" + "<signal name = \"e\" type=\"vector\" rangeFrom=\"2\" rangeTo=\"0\">(0,000)(100, 100)(400, 101)(500,111)(600, 010)</signal>\n" + "<signal name = \"f\" type=\"vector\" rangeFrom=\"1\" rangeTo=\"4\">(0,0001)(100, 1000)(200, 0110)(300, U101)(400, 1001)(500,110Z)(600, 0110)</signal>"); DefaultCircuitInterface ci = new DefaultCircuitInterface("sklop"); ci.addPort(new DefaultPort("a", Direction.IN, new DefaultType("std_logic", null, null))); ci.addPort(new DefaultPort("b", Direction.IN, new DefaultType("std_logic", null, null))); ci.addPort(new DefaultPort("c", Direction.OUT, new DefaultType("std_logic", null, null))); ci.addPort(new DefaultPort("d", Direction.IN, new DefaultType("std_logic_vector", new int[] {0,0}, "TO"))); ci.addPort(new DefaultPort("e", Direction.IN, new DefaultType("std_logic_vector", new int[] {2,0}, "DOWNTO"))); ci.addPort(new DefaultPort("f", Direction.OUT, new DefaultType("std_logic_vector", new int[] {1,4}, "TO"))); String writted = null; try { writted = Testbench.writeVHDL(ci, inducement); } catch (Exception e) { e.printStackTrace(); fail("Generated exception: "+e.getMessage()); } System.out.println("Test method writeVHDL(CircuitInterface, String)..."); System.out.println(inducement); System.out.println("********************************************\n"); System.out.println(ci); System.out.println("********************************************\n"); System.out.println(writted); System.out.println(".................................................."); } | 48076 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48076/15684de676780cc2f43aa73ad6e5e448f3c8beff/TestbenchTest.java/buggy/src/tests/service/hr/fer/zemris/vhdllab/vhdl/tb/TestbenchTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3067,
58,
44,
8914,
21719,
1358,
780,
1435,
288,
202,
202,
780,
1547,
3965,
475,
273,
394,
514,
2932,
32,
10772,
2802,
34,
2387,
1757,
10772,
2802,
5333,
82,
6,
397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3067,
58,
44,
8914,
21719,
1358,
780,
1435,
288,
202,
202,
780,
1547,
3965,
475,
273,
394,
514,
2932,
32,
10772,
2802,
34,
2387,
1757,
10772,
2802,
5333,
82,
6,
397... |
throw new ICPException("Unexpected packet"); | servePacket(p); return null; | public JICPPacket handleJICPPacket(JICPPacket p) throws ICPException { throw new ICPException("Unexpected packet"); } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/62398ada5c816c3a9e42df9551f21c0868b88424/BackEndDispatcher.java/clean/leap/src/jade/imtp/leap/JICP/BackEndDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
2871,
52,
6667,
1640,
46,
2871,
52,
6667,
12,
46,
2871,
52,
6667,
293,
13,
1216,
467,
4258,
503,
288,
282,
202,
30104,
6667,
12,
84,
1769,
282,
327,
446,
31,
225,
289,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
2871,
52,
6667,
1640,
46,
2871,
52,
6667,
12,
46,
2871,
52,
6667,
293,
13,
1216,
467,
4258,
503,
288,
282,
202,
30104,
6667,
12,
84,
1769,
282,
327,
446,
31,
225,
289,
225,... |
public void setValue(int i, int j, MesquiteNumber v) { if (v==null) return; | public void setValue(int i, int j, int v) { | public void setValue(int i, int j, MesquiteNumber v) { if (v==null) return; if (!legalIndices(i, j)) return; if (v.getValueClass()==INT) setValue(i,j, v.getIntValue()); else if (v.getValueClass() == LONG) setValue(i,j, v.getLongValue()); else if (v.getValueClass() == DOUBLE) setValue(i, j, v.getDoubleValue()); } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/88e3c75ba71c7c3e23478b1c3ff126ef3c6fe3ab/Number2DArray.java/buggy/branches/Mesquite1.x/Mesquite Project/Source/mesquite/lib/Number2DArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5524,
12,
474,
277,
16,
509,
525,
16,
490,
281,
372,
1137,
1854,
331,
13,
288,
202,
202,
430,
261,
90,
631,
2011,
13,
1082,
202,
2463,
31,
202,
202,
430,
16051,
2013,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
12,
474,
277,
16,
509,
525,
16,
490,
281,
372,
1137,
1854,
331,
13,
288,
202,
202,
430,
261,
90,
631,
2011,
13,
1082,
202,
2463,
31,
202,
202,
430,
16051,
2013,
... |
log.entering(this.getClass().getName(), "orderChain", result); | if (Configuration.DEBUG) log.exiting(this.getClass().getName(), "orderChain", result); | private LinkedList orderChain(Collection chain) { log.entering(this.getClass().getName(), "orderChain"); //$NON-NLS-1$ LinkedList in = new LinkedList(chain); int initialCount = in.size(); LinkedList result = new LinkedList(); Principal issuer = selfSignedCertificate.getIssuerDN(); ListIterator it; outer: while (in.size() > 0) { for (it = in.listIterator(); it.hasNext();) { X509Certificate certificate = (X509Certificate) it.next(); if (issuer.equals(certificate.getSubjectDN())) { it.remove(); result.addLast(certificate); issuer = certificate.getIssuerDN(); continue outer; } } throw new IllegalArgumentException( Messages.getFormattedString(Messages.getString("ImportCmd.7"), //$NON-NLS-1$ new Object[] { Integer.valueOf(result.size()), Integer.valueOf(initialCount) })); } log.entering(this.getClass().getName(), "orderChain", result); //$NON-NLS-1$ return result; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6e10879cd4d1df8b463898498b99e01d9ae63f24/ImportCmd.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/ImportCmd.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
10688,
1353,
3893,
12,
2532,
2687,
13,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
1019,
3893,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
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,
10688,
1353,
3893,
12,
2532,
2687,
13,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
1019,
3893,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
565,
... |
Logger.trace("StendhalRPAction::move","D","Using portal "+portal); | logger.debug("Using portal "+portal); | public static void move(RPEntity entity) throws AttributeNotFoundException, NoRPZoneException { Logger.trace("StendhalRPAction::move",">"); try { if(entity.stopped()) { return; } if(!entity.isMoveCompleted()) { Logger.trace("StendhalRPAction::move","D","("+entity.get("type")+") move not completed"); return; } int x=entity.getx(); int y=entity.gety(); Direction dir=entity.getDirection(); int dx=dir.getdx(); int dy=dir.getdy(); StendhalRPZone zone=(StendhalRPZone)world.getRPZone(entity.getID()); if(zone.collides(entity,x+dx,y+dy)==false) { Logger.trace("StendhalRPAction::move","D","Moving from ("+x+","+y+") to ("+(x+dx)+","+(y+dy)+")"); entity.setx(x+dx); entity.sety(y+dy); entity.collides(false); world.modify(entity); } else { if(entity instanceof Player) { Player player=(Player)entity; // If we are too far from sheep skip zone change Sheep sheep=null; if(player.hasSheep()) { sheep=(Sheep)world.get(player.getSheep()); } if(!(sheep!=null && player.distance(sheep)>7*7)) { if(zone.leavesZone(player,x+dx,y+dy)) { Logger.trace("StendhalRPAction::move","D","Leaving zone from ("+x+","+y+") to ("+(x+dx)+","+(y+dy)+")"); decideChangeZone(player); player.stop(); world.modify(player); return; } for(Portal portal: zone.getPortals()) { if(player.nextto(portal,0.25) && player.facingto(portal)) { Logger.trace("StendhalRPAction::move","D","Using portal "+portal); if(usePortal(player, portal)) { transferContent(player); } return; } } } } /* Collision */ Logger.trace("StendhalRPAction::move","D","Collision: at ("+(x+dx)+","+(y+dy)+")"); entity.collides(true); entity.stop(); world.modify(entity); } } finally { Logger.trace("StendhalRPAction::move","<"); } } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/2f5a2a4a5b59a172e667611127a4c633125829e5/StendhalRPAction.java/buggy/src/games/stendhal/server/StendhalRPAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
3635,
12,
54,
1423,
1628,
1522,
13,
1216,
3601,
3990,
16,
2631,
54,
52,
4226,
503,
565,
288,
565,
4242,
18,
5129,
2932,
510,
409,
22314,
54,
52,
1803,
2866,
8501,
15937,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
3635,
12,
54,
1423,
1628,
1522,
13,
1216,
3601,
3990,
16,
2631,
54,
52,
4226,
503,
565,
288,
565,
4242,
18,
5129,
2932,
510,
409,
22314,
54,
52,
1803,
2866,
8501,
15937,... |
if (!event.doit) return; | if (!event.doit) return; | public void verifyKey(VerifyEvent event) { // TODO separate math mode from normal typing? // early pruning to slow down normal typing as little as possible if (!event.doit) return; switch (event.character) { case '(': case '{': case '[': case '$': case '"': case '.': case '\b': break; default: return; } IDocument document = sourceViewer.getDocument(); final Point selection = sourceViewer.getSelectedRange(); final int offset = selection.x; final int length = selection.y; final char character = event.character; try { char next = ' '; char last = ' '; try { next = document.getChar(offset); last = document.getChar(offset-1); } catch (BadLocationException e) { // Could happen if this is the beginning or end of a document } if (last == '\\') return; if (character == '"') { // Replace quotation marks if (!TexlipsePlugin.getDefault().getPreferenceStore().getBoolean(TexlipseProperties.TEX_REPLACE_QUOTES)) return; String mark; if (Character.isWhitespace(last)) { mark = getQuotes(true); } else if (Character.isWhitespace(next)) { mark = getQuotes(false); } else { return; } document.replace(offset, length, mark); sourceViewer.setSelectedRange(offset + mark.length(), 0); event.doit = false; return; } // ----- if (character == '\b') { if (last == '}' && offset > 4) { // \={o} or \'{\i} int distance; if (document.getChar(offset-5) == '\\') { distance = 5; } else if (offset > 5 && document.getChar(offset-6) == '\\') { distance = 6; } else { return; } String deletion = document.get(offset - distance, distance); // TODO Pattern simpleCommandPattern = Pattern.compile("\\\\.\\{\\\\?\\w\\}"); Matcher m = simpleCommandPattern.matcher(deletion); if (m.matches()) { document.replace(offset - distance, distance, ""); event.doit = false; } } else if (Character.isLetter(last)) { // FIXME can't handle unicode // \'a if (offset > 2 && document.getChar(offset-3) == '\\') { // "\\\\.\\w" document.replace(offset - 3, 3, ""); event.doit = false; } } return; } if (character == '.') { if (last == '.' && document.getChar(offset-2) == '.') { String replacement = "\\ldots"; document.replace(offset-2, length+2, replacement); sourceViewer.setSelectedRange(offset + replacement.length() - 2, 0); event.doit = false; } return; } // ----- if (!TexlipsePlugin.getDefault().getPreferenceStore().getBoolean(TexlipseProperties.TEX_BRACKET_COMPLETION)) return; if (Character.isWhitespace(next) || isBracket(next)) { // For a dollar sign we need a whitespace before and after the letter if (character == '$' && !Character.isWhitespace(last)) return; } else { return; } final char closingCharacter = getPeerCharacter(character); final StringBuffer buffer = new StringBuffer(); buffer.append(character); buffer.append(closingCharacter); document.replace(offset, length, buffer.toString()); // The code below does the fancy "templateish" enter-to-exit-braces BracketLevel level = new BracketLevel(); fBracketLevelStack.push(level); LinkedPositionGroup group = new LinkedPositionGroup(); group.addPosition(new LinkedPosition(document, offset + 1, 0, LinkedPositionGroup.NO_STOP)); LinkedModeModel model = new LinkedModeModel(); model.addLinkingListener(this); model.addGroup(group); model.forceInstall(); level.fOffset = offset; level.fLength = 2; // set up position tracking for our magic peers if (fBracketLevelStack.size() == 1) { document.addPositionCategory(CATEGORY); document.addPositionUpdater(fUpdater); } level.fFirstPosition = new Position(offset, 1); level.fSecondPosition = new Position(offset + 1, 1); document.addPosition(CATEGORY, level.fFirstPosition); document.addPosition(CATEGORY, level.fSecondPosition); level.fUI= new EditorLinkedModeUI(model, sourceViewer); level.fUI.setSimpleMode(true); level.fUI.setExitPolicy(new ExitPolicy(closingCharacter, (char) 0, fBracketLevelStack, sourceViewer)); level.fUI.setExitPosition(sourceViewer, offset + 2, 0, Integer.MAX_VALUE); level.fUI.setCyclingMode(LinkedModeUI.CYCLE_NEVER); level.fUI.enter(); IRegion newSelection = level.fUI.getSelectedRegion(); sourceViewer.setSelectedRange(newSelection.getOffset(), newSelection.getLength()); event.doit = false; } catch (BadLocationException e) { } catch (BadPositionCategoryException e) { } } | 50059 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50059/9688cffc9e523fa584ab92f9982056cc2fc4c16d/BracketInserter.java/clean/sub/source/net/sourceforge/texlipse/editor/BracketInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3929,
653,
12,
8097,
1133,
871,
13,
288,
3639,
368,
2660,
9004,
4233,
1965,
628,
2212,
13408,
35,
3639,
368,
11646,
846,
13036,
358,
11816,
2588,
2212,
13408,
487,
12720,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
653,
12,
8097,
1133,
871,
13,
288,
3639,
368,
2660,
9004,
4233,
1965,
628,
2212,
13408,
35,
3639,
368,
11646,
846,
13036,
358,
11816,
2588,
2212,
13408,
487,
12720,
487,
... |
DocumentSet docs, | protected BooleanValue genericCompare( StaticContext context, DocumentSet docs, Sequence contextSequence, Item contextItem) throws XPathException { Sequence ls = getLeft().eval(docs, contextSequence, contextItem); Sequence rs = getRight().eval(docs, contextSequence, contextItem); AtomicValue lv, rv; if (ls.getLength() == 1 && rs.getLength() == 1) { lv = ls.itemAt(0).atomize(); rv = rs.itemAt(0).atomize(); return new BooleanValue(compareValues(context, lv, rv)); } else { for (SequenceIterator i1 = ls.iterate(); i1.hasNext();) { lv = i1.nextItem().atomize(); if (rs.getLength() == 1 && compareValues(context, lv, rs.itemAt(0).atomize())) return BooleanValue.TRUE; else { for (SequenceIterator i2 = rs.iterate(); i2.hasNext();) { rv = i2.nextItem().atomize(); if (compareValues(context, lv, rv)) return BooleanValue.TRUE; } } } } return BooleanValue.FALSE; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/78bd70965f202738e2ca56dacfd71f5d58c0db69/GeneralComparison.java/clean/src/org/exist/xpath/GeneralComparison.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3411,
620,
5210,
8583,
12,
202,
202,
5788,
1042,
819,
16,
202,
202,
2519,
694,
3270,
16,
202,
202,
4021,
819,
4021,
16,
202,
202,
1180,
819,
1180,
13,
202,
202,
15069,
10172,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3411,
620,
5210,
8583,
12,
202,
202,
5788,
1042,
819,
16,
202,
202,
2519,
694,
3270,
16,
202,
202,
4021,
819,
4021,
16,
202,
202,
1180,
819,
1180,
13,
202,
202,
15069,
10172,... | |
treeInfoPanelSplitPane = new JSplitPane(); treeInfoPanelSplitPane.setBorder(null); treeInfoPanelSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT); treeInfoPanelSplitPane.setRightComponent(infoPanel); treeInfoPanelSplitPane.setContinuousLayout(true); treeInfoPanelSplitPane.setOneTouchExpandable(true); | parseTreePanel = new DBParseTreePanel(this); parseTreeModel = parseTreePanel.getModel(); | public void awake() { panel = new JPanel(new BorderLayout()); ioCanvas = new JPanel(new BorderLayout()); treeInfoCanvas = new JPanel(new BorderLayout()); infoPanel = new DBInfoPanel(); controlPanel = new DBControlPanel(this); treePanel = createTreePanel(); inputPanel = new DBInputPanel(this); outputPanel = new DBOutputPanel(this); treeInfoPanelSplitPane = new JSplitPane(); treeInfoPanelSplitPane.setBorder(null); treeInfoPanelSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT); treeInfoPanelSplitPane.setRightComponent(infoPanel); treeInfoPanelSplitPane.setContinuousLayout(true); treeInfoPanelSplitPane.setOneTouchExpandable(true); ioSplitPane = new JSplitPane(); ioSplitPane.setBorder(null); ioSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT); ioSplitPane.setRightComponent(outputPanel); ioSplitPane.setContinuousLayout(true); ioSplitPane.setOneTouchExpandable(true); ioTreeSplitPane = new JSplitPane(); ioTreeSplitPane.setBorder(null); ioTreeSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT); ioTreeSplitPane.setLeftComponent(ioCanvas); ioTreeSplitPane.setRightComponent(treeInfoCanvas); ioTreeSplitPane.setContinuousLayout(true); ioTreeSplitPane.setOneTouchExpandable(true); panel.add(controlPanel, BorderLayout.NORTH); panel.add(ioTreeSplitPane, BorderLayout.CENTER); local = new DBLocal(this); recorder = new DBRecorder(this); player = new DBPlayer(this); ioCanvas.add(inputPanel, BorderLayout.CENTER); treeInfoCanvas.add(treePanel, BorderLayout.CENTER); updateStatusInfo(); } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/9d87725644f1deaf955cdd27b79761e2a85719ee/Debugger.java/clean/src/org/antlr/works/debugger/Debugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1690,
911,
1435,
288,
3639,
6594,
273,
394,
24048,
12,
2704,
30814,
10663,
3639,
2527,
12971,
273,
394,
24048,
12,
2704,
30814,
10663,
3639,
2151,
966,
12971,
273,
394,
24048,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1690,
911,
1435,
288,
3639,
6594,
273,
394,
24048,
12,
2704,
30814,
10663,
3639,
2527,
12971,
273,
394,
24048,
12,
2704,
30814,
10663,
3639,
2151,
966,
12971,
273,
394,
24048,
12... |
_log.debug(prefix()+"Clock skew: " + diff); | _log.debug(prefix()+"Clock skew: " + diff + " ms"); | private void receiveOutbound(ByteBuffer src) { if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"Receive outbound " + src + " received=" + _received); // recv Y+E(H(X+Y)+tsB, sk, Y[239:255]) while (_received < _Y.length && src.hasRemaining()) { byte c = src.get(); _Y[_received++] = c; //if (_log.shouldLog(Log.DEBUG)) _log.debug("recv x" + (int)c + " received=" + _received); if (_received >= _Y.length) { try { _dh.setPeerPublicValue(_Y); _dh.getSessionKey(); // force the calc if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"DH session key calculated (" + _dh.getSessionKey().toBase64() + ")"); _e_hXY_tsB = new byte[Hash.HASH_LENGTH+4+12]; } catch (DHSessionKeyBuilder.InvalidPublicParameterException e) { _context.statManager().addRateData("ntcp.invalidDH", 1, 0); fail("Invalid X", e); return; } } } if (_e_hXY_tsB == null) return; // !src.hasRemaining while (_received < _Y.length + _e_hXY_tsB.length && src.hasRemaining()) { int i = _received-_Y.length; _received++; byte c = src.get(); _e_hXY_tsB[i] = c; if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix() + "recv _e_hXY_tsB " + (int)c + " received=" + _received); if (i+1 >= _e_hXY_tsB.length) { if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix() + "received _e_hXY_tsB fully"); byte hXY_tsB[] = new byte[_e_hXY_tsB.length]; _context.aes().decrypt(_e_hXY_tsB, 0, hXY_tsB, 0, _dh.getSessionKey(), _Y, _Y.length-16, _e_hXY_tsB.length); byte XY[] = new byte[_X.length + _Y.length]; System.arraycopy(_X, 0, XY, 0, _X.length); System.arraycopy(_Y, 0, XY, _X.length, _Y.length); Hash h = _context.sha().calculateHash(XY); if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix() + "h(XY)=" + h.toBase64()); if (!DataHelper.eq(h.getData(), 0, hXY_tsB, 0, Hash.HASH_LENGTH)) { _context.statManager().addRateData("ntcp.invalidHXY", 1, 0); fail("Invalid H(X+Y) - mitm attack attempted?"); return; } _tsB = DataHelper.fromLong(hXY_tsB, Hash.HASH_LENGTH, 4); _tsA = _context.clock().now()/1000; if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"h(X+Y) is correct, tsA-tsB=" + (_tsA-_tsB)); // the skew is not authenticated yet, but it is certainly fatal to // the establishment, so fail hard if appropriate long diff = 1000*Math.abs(_tsA-_tsB); if (diff >= Router.CLOCK_FUDGE_FACTOR) { _context.statManager().addRateData("ntcp.invalidOutboundSkew", diff, 0); _transport.markReachable(_con.getRemotePeer().calculateHash()); _context.shitlist().shitlistRouter(_con.getRemotePeer().calculateHash(), "Outbound clock skew of " + diff); fail("Clocks too skewed (" + diff + ")", null, true); return; } else if (_log.shouldLog(Log.DEBUG)) { _log.debug(prefix()+"Clock skew: " + diff); } // now prepare and send our response // send E(#+Alice.identity+tsA+padding+S(X+Y+Bob.identHash+tsA+tsB), sk, hX_xor_Bob.identHash[16:31]) int sigSize = _X.length+_Y.length+Hash.HASH_LENGTH+4+4;//+12; byte preSign[] = new byte[sigSize]; System.arraycopy(_X, 0, preSign, 0, _X.length); System.arraycopy(_Y, 0, preSign, _X.length, _Y.length); System.arraycopy(_con.getRemotePeer().calculateHash().getData(), 0, preSign, _X.length+_Y.length, Hash.HASH_LENGTH); DataHelper.toLong(preSign, _X.length+_Y.length+Hash.HASH_LENGTH, 4, _tsA); DataHelper.toLong(preSign, _X.length+_Y.length+Hash.HASH_LENGTH+4, 4, _tsB); // hXY_tsB has 12 bytes of padding (size=48, tsB=4 + hXY=32) //System.arraycopy(hXY_tsB, hXY_tsB.length-12, preSign, _X.length+_Y.length+Hash.HASH_LENGTH+4+4, 12); //byte sigPad[] = new byte[padSig]; //_context.random().nextBytes(sigPad); //System.arraycopy(sigPad, 0, preSign, _X.length+_Y.length+Hash.HASH_LENGTH+4+4, padSig); Signature sig = _context.dsa().sign(preSign, _context.keyManager().getSigningPrivateKey()); //if (_log.shouldLog(Log.DEBUG)) { // _log.debug(prefix()+"signing " + Base64.encode(preSign)); //} byte ident[] = _context.router().getRouterInfo().getIdentity().toByteArray(); int min = 2+ident.length+4+Signature.SIGNATURE_BYTES; int rem = min % 16; int padding = 0; if (rem > 0) padding = 16 - rem; byte preEncrypt[] = new byte[min+padding]; DataHelper.toLong(preEncrypt, 0, 2, ident.length); System.arraycopy(ident, 0, preEncrypt, 2, ident.length); DataHelper.toLong(preEncrypt, 2+ident.length, 4, _tsA); byte pad[] = new byte[padding]; _context.random().nextBytes(pad); System.arraycopy(pad, 0, preEncrypt, 2+ident.length+4, padding); System.arraycopy(sig.getData(), 0, preEncrypt, 2+ident.length+4+padding, Signature.SIGNATURE_BYTES); _prevEncrypted = new byte[preEncrypt.length]; _context.aes().encrypt(preEncrypt, 0, _prevEncrypted, 0, _dh.getSessionKey(), _hX_xor_bobIdentHash, _hX_xor_bobIdentHash.length-16, preEncrypt.length); if (_log.shouldLog(Log.DEBUG)) { //_log.debug(prefix() + "unencrypted response to Bob: " + Base64.encode(preEncrypt)); //_log.debug(prefix() + "encrypted response to Bob: " + Base64.encode(_prevEncrypted)); } // send 'er off (when the bw limiter says, etc) _transport.getPumper().wantsWrite(_con, _prevEncrypted); } } if (_received >= _Y.length + _e_hXY_tsB.length && src.hasRemaining()) { // we are receiving their confirmation // recv E(S(X+Y+Alice.identHash+tsA+tsB)+padding, sk, prev) int off = 0; if (_e_bobSig == null) { _e_bobSig = new byte[48]; if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix() + "receiving E(S(X+Y+Alice.identHash+tsA+tsB)+padding, sk, prev) (remaining? " + src.hasRemaining() + ")"); } else { off = _received - _Y.length - _e_hXY_tsB.length; if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix() + "continuing to receive E(S(X+Y+Alice.identHash+tsA+tsB)+padding, sk, prev) (remaining? " + src.hasRemaining() + " off=" + off + " recv=" + _received + ")"); } while (src.hasRemaining() && off < _e_bobSig.length) { if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix()+"recv bobSig received=" + _received); _e_bobSig[off++] = src.get(); _received++; if (off >= _e_bobSig.length) { //if (_log.shouldLog(Log.DEBUG)) // _log.debug(prefix() + "received E(S(X+Y+Alice.identHash+tsA+tsB)+padding, sk, prev): " + Base64.encode(_e_bobSig)); byte bobSig[] = new byte[_e_bobSig.length]; _context.aes().decrypt(_e_bobSig, 0, bobSig, 0, _dh.getSessionKey(), _e_hXY_tsB, _e_hXY_tsB.length-16, _e_bobSig.length); // ignore the padding byte bobSigData[] = new byte[Signature.SIGNATURE_BYTES]; System.arraycopy(bobSig, 0, bobSigData, 0, Signature.SIGNATURE_BYTES); Signature sig = new Signature(bobSigData); byte toVerify[] = new byte[_X.length+_Y.length+Hash.HASH_LENGTH+4+4]; int voff = 0; System.arraycopy(_X, 0, toVerify, voff, _X.length); voff += _X.length; System.arraycopy(_Y, 0, toVerify, voff, _Y.length); voff += _Y.length; System.arraycopy(_context.routerHash().getData(), 0, toVerify, voff, Hash.HASH_LENGTH); voff += Hash.HASH_LENGTH; DataHelper.toLong(toVerify, voff, 4, _tsA); voff += 4; DataHelper.toLong(toVerify, voff, 4, _tsB); voff += 4; _verified = _context.dsa().verifySignature(sig, toVerify, _con.getRemotePeer().getSigningPublicKey()); if (!_verified) { _context.statManager().addRateData("ntcp.invalidSignature", 1, 0); fail("Signature was invalid - attempt to spoof " + _con.getRemotePeer().calculateHash().toBase64() + "?"); return; } else { if (_log.shouldLog(Log.DEBUG)) _log.debug(prefix() + "signature verified from Bob. done!"); prepareExtra(src); byte nextWriteIV[] = new byte[16]; System.arraycopy(_prevEncrypted, _prevEncrypted.length-16, nextWriteIV, 0, 16); byte nextReadIV[] = new byte[16]; System.arraycopy(_e_bobSig, _e_bobSig.length-16, nextReadIV, 0, nextReadIV.length); _con.finishOutboundEstablishment(_dh.getSessionKey(), 1000*(_tsA-_tsB), nextWriteIV, nextReadIV); return; } } } } } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/9325b806e4671b4df3fae20f8918aa1b707cf70c/EstablishState.java/clean/router/java/src/net/i2p/router/transport/ntcp/EstablishState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6798,
17873,
12,
12242,
1705,
13,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
389,
1330,
18,
4148,
12,
3239,
1435,
9078,
11323,
11663,
315,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6798,
17873,
12,
12242,
1705,
13,
288,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
389,
1330,
18,
4148,
12,
3239,
1435,
9078,
11323,
11663,
315,
397,
... |
return recv.getRuntime().getCurrentContext().yield(tag); | context.pushCatch(tag.asSymbol()); return context.yield(tag); | public static IRubyObject rbCatch(IRubyObject recv, IRubyObject tag) { try { return recv.getRuntime().getCurrentContext().yield(tag); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.ThrowJump) { if (je.getPrimaryData().equals(tag.asSymbol())) { return (IRubyObject)je.getSecondaryData(); } } throw je; } } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/43527512ed5edac73606a65971bfe9f8a7c23c7b/RubyKernel.java/clean/src/org/jruby/RubyKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
7138,
14842,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
1047,
13,
288,
3639,
775,
288,
5411,
819,
18,
6206,
14842,
12,
2692,
18,
345,
5335,
10663,
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,
760,
15908,
10340,
921,
7138,
14842,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
1047,
13,
288,
3639,
775,
288,
5411,
819,
18,
6206,
14842,
12,
2692,
18,
345,
5335,
10663,
3... |
public void createPartControl(Composite parent) { tree = new FilteredTree(parent, SWT.VERTICAL | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION, new TaskListPatternFilter());// addToolTipHandler(); // ((Text)tree.getFilterControl()).setText(FILTER_LABEL); getViewer().getTree().setHeaderVisible(true); getViewer().getTree().setLinesVisible(true); getViewer().setColumnProperties(columnNames); getViewer().setUseHashlookup(true); columns = new TreeColumn[columnNames.length]; for (int i = 0; i < columnNames.length; i++) { columns[i] = new TreeColumn(getViewer().getTree(), 0); // SWT.LEFT columns[i].setText(columnNames[i]); columns[i].setWidth(columnWidths[i]); final int index = i; columns[i].addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { sortIndex = index; getViewer().setSorter(new TaskListTableSorter(columnNames[sortIndex])); } }); columns[i].addControlListener(new ControlListener () { public void controlResized(ControlEvent e) { for (int j = 0; j < columnWidths.length; j++) { if (columns[j].equals(e.getSource())) { columnWidths[j] = columns[j].getWidth(); } } } public void controlMoved(ControlEvent e) { // don't care if the control is moved } }); } CellEditor[] editors = new CellEditor[columnNames.length]; TextCellEditor textEditor = new TextCellEditor(getViewer().getTree()); ((Text) textEditor.getControl()).setOrientation(SWT.LEFT_TO_RIGHT); editors[0] = new CheckboxCellEditor(); editors[1] = textEditor; editors[2] = new ComboBoxCellEditor(getViewer().getTree(), PRIORITY_LEVELS, SWT.READ_ONLY); editors[3] = textEditor; getViewer().setCellEditors(editors); getViewer().setCellModifier(new TaskListCellModifier()); getViewer().setSorter(new TaskListTableSorter(columnNames[sortIndex])); drillDownAdapter = new DrillDownAdapter(getViewer()); getViewer().setContentProvider(new TaskListContentProvider()); TaskListLabelProvider lp = new TaskListLabelProvider(); lp.setBackgroundColor(parent.getBackground()); getViewer().setLabelProvider(lp); getViewer().setInput(getViewSite()); makeActions(); hookContextMenu(); hookDoubleClickAction(); contributeToActionBars(); ToolTipHandler toolTipHandler = new ToolTipHandler(getViewer().getControl().getShell()); toolTipHandler.activateHoverHelp(getViewer().getControl()); initDragAndDrop(parent); expandToActiveTasks(); restoreState(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7b08796ca69b436875ae1f4d6f4b6346c6e2b095/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
377,
202,
3413,
273,
394,
4008,
329,
2471,
12,
2938,
16,
348,
8588,
18,
21654,
10109,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
1988,
3367,
12,
9400,
982,
13,
288,
377,
202,
3413,
273,
394,
4008,
329,
2471,
12,
2938,
16,
348,
8588,
18,
21654,
10109,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
... | ||
"Axis #0:\n" + | fold("Axis #0:\n" + | public void testOneAboveLeaf() { // Rebecca Kanagaki has 2 direct reports, and they have no reports assertQueryReturns( "select {[Measures].[Org Salary], [Measures].[Count]} on columns,\n" + " {[Employees].[All Employees].[Sheri Nowmer].[Rebecca Kanagaki]} on rows\n" + "from [HR]", "Axis #0:\n" + "{}\n" + "Axis #1:\n" + "{[Measures].[Org Salary]}\n" + "{[Measures].[Count]}\n" + "Axis #2:\n" + "{[Employees].[All Employees].[Sheri Nowmer].[Rebecca Kanagaki]}\n" + "Row #0: $234.36\n" + "Row #0: 24\n"); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/aa6a5b6c7e27f66d87e2f1758ac150e336b69d84/ParentChildHierarchyTest.java/clean/testsrc/main/mondrian/test/ParentChildHierarchyTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3335,
25477,
9858,
1435,
288,
3639,
368,
868,
70,
557,
5353,
1475,
940,
581,
77,
711,
576,
2657,
10557,
16,
471,
2898,
1240,
1158,
10557,
3639,
1815,
1138,
1356,
12,
7734... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3335,
25477,
9858,
1435,
288,
3639,
368,
868,
70,
557,
5353,
1475,
940,
581,
77,
711,
576,
2657,
10557,
16,
471,
2898,
1240,
1158,
10557,
3639,
1815,
1138,
1356,
12,
7734... |
{ | protected boolean verifySignature(final Object sig) throws IllegalStateException { if (publicKey == null) { throw new IllegalStateException(); } final byte[] S = (byte[]) sig; // 1. Length checking: If the length of the signature S is not k octets, // output "invalid signature" and stop. final int modBits = ((RSAPublicKey) publicKey).getModulus().bitLength(); final int k = (modBits + 7) / 8; if (S.length != k) { return false; } // 2. RSA verification: // a. Convert the signature S to an integer signature representative // s (see Section 4.2): s = OS2IP (S). final BigInteger s = new BigInteger(1, S); // b. Apply the RSAVP1 verification primitive (Section 5.2.2) to the // RSA public key (n, e) and the signature representative s to // produce an integer message representative m: // m = RSAVP1 ((n, e), s). // If RSAVP1 outputs "signature representative out of range," // output "invalid signature" and stop. final BigInteger m; try { m = RSA.verify(publicKey, s); } catch (IllegalArgumentException x) { return false; } // c. Convert the message representative m to an encoded message EM // of length k octets (see Section 4.1): EM = I2OSP (m, k). // If I2OSP outputs "integer too large," output "invalid signature" // and stop. final byte[] EM; try { EM = RSA.I2OSP(m, k); } catch (IllegalArgumentException x) { return false; } // 3. EMSA-PKCS1-v1_5 encoding: Apply the EMSA-PKCS1-v1_5 encoding // operation (Section 9.2) to the message M to produce a second // encoded message EM' of length k octets: // EM' = EMSA-PKCS1-V1_5-ENCODE (M, k). // If the encoding operation outputs "message too long," output // "message too long" and stop. If the encoding operation outputs // "intended encoded message length too short," output "RSA modulus // too short" and stop. final byte[] EMp = pkcs1.encode(md.digest(), k); // 4. Compare the encoded message EM and the second encoded message EM'. // If they are the same, output "valid signature"; otherwise, output // "invalid signature." return Arrays.equals(EM, EMp); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAPKCS1V1_5Signature.java/buggy/core/src/classpath/gnu/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
3929,
5374,
12,
6385,
1033,
3553,
13,
1377,
1216,
5477,
377,
309,
261,
482,
653,
422,
446,
13,
2398,
604,
394,
5477,
5621,
1377,
289,
565,
727,
1160,
8526,
348,
273,
261,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
5374,
12,
6385,
1033,
3553,
13,
1377,
1216,
5477,
377,
309,
261,
482,
653,
422,
446,
13,
2398,
604,
394,
5477,
5621,
1377,
289,
565,
727,
1160,
8526,
348,
273,
261,
72... | |
} else if (sqlState.startsWith("22")) { | } else if (sqlState.startsWith(SQLState.SQL_DATA_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith("08")) { //none of the sqlstate supported by derby belongs to //NonTransientConnectionException ex = new SQLTransientConnectionException(message, sqlState, errCode); } else if (sqlState.startsWith("22")) { ex = new SQLDataException(message, sqlState, errCode); } else if (sqlState.startsWith("23")) { ex = new SQLIntegrityConstraintViolationException(message, sqlState, errCode); } else if (sqlState.startsWith("28")) { ex = new SQLInvalidAuthorizationSpecException(message, sqlState, errCode); } else if (sqlState.startsWith("40")) { ex = new SQLTransactionRollbackException(message, sqlState, errCode); } else if (sqlState.startsWith("42")) { ex = new SQLSyntaxErrorException(message, sqlState, errCode); } else if (sqlState.startsWith ("0A")) { ex = new SQLFeatureNotSupportedException(message, sqlState, errCode); } else { ex = new SQLException(message, sqlState, errCode); } return ex; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/8806721c1f31f1fce3b92ea808bfee1e04b00ed4/SQLExceptionFactory40.java/buggy/java/client/org/apache/derby/client/am/SQLExceptionFactory40.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6483,
21708,
503,
261,
780,
883,
16,
514,
1847,
1119,
16,
4766,
11794,
509,
30173,
13,
288,
7734,
6483,
431,
273,
446,
31,
3639,
309,
261,
4669,
1119,
422,
446,
13,
288,
5411,
431... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6483,
21708,
503,
261,
780,
883,
16,
514,
1847,
1119,
16,
4766,
11794,
509,
30173,
13,
288,
7734,
6483,
431,
273,
446,
31,
3639,
309,
261,
4669,
1119,
422,
446,
13,
288,
5411,
431... |
try { text = URLDecoder.decode(text, repository.getCharacterEncoding()); } catch (UnsupportedEncodingException ex) { } | private static String cleanup(String text, TaskRepository repository) { try { text = URLDecoder.decode(text, repository.getCharacterEncoding()); } catch (UnsupportedEncodingException ex) { // ignore } text = text.replaceAll("<!--.+?-->", ""); return text.trim(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5b4730813bb91626ffc7436f44fcacef1ea37065/WebRepositoryConnector.java/clean/org.eclipse.mylyn.web.tasks/src/org/eclipse/mylyn/internal/tasks/web/WebRepositoryConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
6686,
12,
780,
977,
16,
3837,
3305,
3352,
13,
288,
202,
202,
698,
288,
1082,
202,
955,
273,
1976,
7975,
18,
3922,
12,
955,
16,
3352,
18,
588,
7069,
4705,
10663,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
6686,
12,
780,
977,
16,
3837,
3305,
3352,
13,
288,
202,
202,
698,
288,
1082,
202,
955,
273,
1976,
7975,
18,
3922,
12,
955,
16,
3352,
18,
588,
7069,
4705,
10663,
2... | |
public NotDescr lhs_not() throws RecognitionException { NotDescr d; Token loc=null; PatternDescr column = null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:928:17: (loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:928:17: loc= 'not' ( '(' column= lhs_column ')' | column= lhs_column ) { loc=(Token)input.LT(1); match(input,55,FOLLOW_55_in_lhs_not2596); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:928:27: ( '(' column= lhs_column ')' | column= lhs_column ) int alt60=2; int LA60_0 = input.LA(1); if ( LA60_0==21 ) { alt60=1; } else if ( LA60_0==ID ) { alt60=2; } else { NoViableAltException nvae = new NoViableAltException("928:27: ( \'(\' column= lhs_column \')\' | column= lhs_column )", 60, 0, input); throw nvae; } switch (alt60) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:928:28: '(' column= lhs_column ')' { match(input,21,FOLLOW_21_in_lhs_not2599); following.push(FOLLOW_lhs_column_in_lhs_not2603); column=lhs_column(); following.pop(); match(input,23,FOLLOW_23_in_lhs_not2606); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:928:57: column= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_not2612); column=lhs_column(); following.pop(); } break; } d = new NotDescr( (ColumnDescr) column ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2288,
16198,
8499,
67,
902,
1435,
1216,
9539,
288,
6647,
2288,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
1171,
202,
202,
72,
273,
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,
2288,
16198,
8499,
67,
902,
1435,
1216,
9539,
288,
6647,
2288,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
6830,
16198,
1057,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
... | ||
return getStringProperty( GroupElement.KEY_EXPR_PROP ); | return getStringProperty( IGroupElementModel.KEY_EXPR_PROP ); | public String getKeyExpr( ) { return getStringProperty( GroupElement.KEY_EXPR_PROP ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/GroupHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/GroupHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
3579,
4742,
12,
262,
202,
95,
202,
202,
2463,
4997,
1396,
12,
3756,
1046,
18,
3297,
67,
2294,
8025,
67,
15811,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
3579,
4742,
12,
262,
202,
95,
202,
202,
2463,
4997,
1396,
12,
3756,
1046,
18,
3297,
67,
2294,
8025,
67,
15811,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sdBase.setDataSetRepresentation("A, B, C"); | sdBase.setDataSetRepresentation("A, B, C"); | private void addSampleData(Chart newChart) { SampleData sd = DataFactory.eINSTANCE.createSampleData(); sd.getBaseSampleData().clear(); sd.getOrthogonalSampleData().clear(); // Create Base Sample Data BaseSampleData sdBase = DataFactory.eINSTANCE.createBaseSampleData(); sdBase.setDataSetRepresentation("A, B, C"); sd.getBaseSampleData().add(sdBase); // Create Orthogonal Sample Data (with simulation count of 2) OrthogonalSampleData oSample = DataFactory.eINSTANCE.createOrthogonalSampleData(); oSample.setDataSetRepresentation("5,4,12"); oSample.setSeriesDefinitionIndex(0); sd.getOrthogonalSampleData().add(oSample); newChart.setSampleData(sd); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7793e94b4d7fab5891f226c6c937e37d85bebad8/BarChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
8504,
751,
12,
7984,
394,
7984,
13,
565,
288,
3639,
11474,
751,
8349,
273,
1910,
1733,
18,
73,
13341,
18,
2640,
8504,
751,
5621,
3639,
8349,
18,
588,
2171,
8504,
751,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
8504,
751,
12,
7984,
394,
7984,
13,
565,
288,
3639,
11474,
751,
8349,
273,
1910,
1733,
18,
73,
13341,
18,
2640,
8504,
751,
5621,
3639,
8349,
18,
588,
2171,
8504,
751,
76... |
Properties versionProperties = getBuildVersionProperties(); printVersion(versionProperties); if (shouldPrintUsage(args)) { printUsageAndExit(); } try { checkDeprecatedArguments(args, LOG); if (MainArgs.findIndex(args, "debug") != MainArgs.NOT_FOUND) { Logger.getRootLogger().setLevel(Level.DEBUG); } CruiseControlController controller = new CruiseControlController(); controller.setVersionProperties(versionProperties); File configFile = new File( parseConfigFileName( args, CruiseControlController.DEFAULT_CONFIG_FILE_NAME)); controller.setConfigFile(configFile); ServerXMLHelper helper = new ServerXMLHelper(configFile); ThreadQueueProperties.setMaxThreadCount(helper.getNumThreads()); if (shouldStartController(args)) { CruiseControlControllerAgent agent = new CruiseControlControllerAgent( controller, parseJMXHttpPort(args), parseRmiPort(args), parseUser(args), parsePassword(args), parseXslPath(args)); agent.start(); } controller.resume(); } catch (CruiseControlException e) { LOG.fatal(e.getMessage()); printUsageAndExit(); } | new Main().start(args); | public static void main(String[] args) { Properties versionProperties = getBuildVersionProperties(); printVersion(versionProperties); if (shouldPrintUsage(args)) { printUsageAndExit(); } try { checkDeprecatedArguments(args, LOG); if (MainArgs.findIndex(args, "debug") != MainArgs.NOT_FOUND) { Logger.getRootLogger().setLevel(Level.DEBUG); } CruiseControlController controller = new CruiseControlController(); controller.setVersionProperties(versionProperties); File configFile = new File( parseConfigFileName( args, CruiseControlController.DEFAULT_CONFIG_FILE_NAME)); controller.setConfigFile(configFile); ServerXMLHelper helper = new ServerXMLHelper(configFile); ThreadQueueProperties.setMaxThreadCount(helper.getNumThreads()); if (shouldStartController(args)) { CruiseControlControllerAgent agent = new CruiseControlControllerAgent( controller, parseJMXHttpPort(args), parseRmiPort(args), parseUser(args), parsePassword(args), parseXslPath(args)); agent.start(); } controller.resume(); } catch (CruiseControlException e) { LOG.fatal(e.getMessage()); printUsageAndExit(); } } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0d34a3ebbf38777281ac33ad9aaad486d3cd629c/Main.java/buggy/main/src/net/sourceforge/cruisecontrol/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
6183,
1177,
2297,
273,
21122,
1444,
2297,
5621,
3639,
1172,
1444,
12,
1589,
2297,
1769,
3639,
309,
261,
13139,
5108,
5357,
12,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8526,
833,
13,
288,
3639,
6183,
1177,
2297,
273,
21122,
1444,
2297,
5621,
3639,
1172,
1444,
12,
1589,
2297,
1769,
3639,
309,
261,
13139,
5108,
5357,
12,
196... |
if (eventsEnabled && svgDocument != null && updateManager != null) { updateManager.dispatchSVGUnLoad(); | if (isDynamicDocument && eventsEnabled && svgDocument != null && updateManager != null) { updateManager.dispatchSVGUnLoadEvent(); | public void setSVGDocument(SVGDocument doc) { stopProcessing(); if (!(doc.getImplementation() instanceof SVGDOMImplementation)) { throw new IllegalArgumentException("Invalid DOM implementation."); } if (eventsEnabled && svgDocument != null && updateManager != null) { updateManager.dispatchSVGUnLoad(); updateManager = null; } updateManagerStopped = false; svgDocument = doc; Element root = doc.getDocumentElement(); String znp = root.getAttributeNS (null, SVGConstants.SVG_ZOOM_AND_PAN_ATTRIBUTE); disableInteractions = !znp.equals(SVGConstants.SVG_MAGNIFY_VALUE); bridgeContext = createBridgeContext(); nextGVTTreeBuilder = new GVTTreeBuilder(doc, bridgeContext); nextGVTTreeBuilder.setPriority(Thread.MIN_PRIORITY); Iterator it = gvtTreeBuilderListeners.iterator(); while (it.hasNext()) { nextGVTTreeBuilder.addGVTTreeBuilderListener ((GVTTreeBuilderListener)it.next()); } releaseRenderingReferences(); initializeEventHandling(); if (gvtTreeBuilder == null && documentLoader == null && gvtTreeRenderer == null) { startGVTTreeBuilder(); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/e850345f051e3b8e019c9c7e22e39cb95aeb5a31/JSVGComponent.java/clean/sources/org/apache/batik/swing/svg/JSVGComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13928,
9266,
2519,
12,
26531,
2519,
997,
13,
288,
3639,
2132,
7798,
5621,
3639,
309,
16051,
12,
2434,
18,
588,
13621,
1435,
1276,
11281,
8168,
13621,
3719,
288,
5411,
604,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13928,
9266,
2519,
12,
26531,
2519,
997,
13,
288,
3639,
2132,
7798,
5621,
3639,
309,
16051,
12,
2434,
18,
588,
13621,
1435,
1276,
11281,
8168,
13621,
3719,
288,
5411,
604,
394,
... |
/* ignore for now. if (f == null) { | if (f == null && ! mFontSet) { | public void setDefaultFont(JEditorPane jep) { Font f = null; try { net.suberic.util.swing.ThemeSupporter ts = (net.suberic.util.swing.ThemeSupporter)getMessageUI(); net.suberic.util.swing.ConfigurableMetalTheme cmt = (net.suberic.util.swing.ConfigurableMetalTheme) ts.getTheme(Pooka.getUIFactory().getPookaThemeManager()); if (cmt != null) { f = cmt.getMonospacedFont(); } } catch (Exception e) { // if we get an exception, just ignore it and use the default. } /* ignore for now. if (f == null) { String fontName = Pooka.getProperty("MessageWindow.editorPane.font.name", "monospaced"); int fontSize = Integer.parseInt(Pooka.getProperty("MessageWindow.editorPane.font.size", "10")); f = new Font(fontName, Font.PLAIN, fontSize); } */ if (f != null) jep.setFont(f); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/2370551a9c5e9ffee9d87c5309e0aff6a412b276/MessageDisplayPanel.java/buggy/src/net/suberic/pooka/gui/MessageDisplayPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
9277,
5711,
12,
46,
6946,
8485,
525,
881,
13,
288,
565,
10063,
284,
273,
446,
31,
565,
775,
288,
1377,
2901,
18,
1717,
3036,
18,
1367,
18,
5328,
310,
18,
8335,
3088,
7988,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9277,
5711,
12,
46,
6946,
8485,
525,
881,
13,
288,
565,
10063,
284,
273,
446,
31,
565,
775,
288,
1377,
2901,
18,
1717,
3036,
18,
1367,
18,
5328,
310,
18,
8335,
3088,
7988,
... |
assertTrue( list.contains( hola ) ); | public void testOrWithBinding() throws Exception { final PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_OrWithBindings.drl" ) ) ); final Package pkg = builder.getPackage(); final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); final WorkingMemory workingMemory = ruleBase.newWorkingMemory(); final List list = new ArrayList(); workingMemory.setGlobal( "results", list ); workingMemory.assertObject( new State( "x" ) ); Person hola = new Person( "hola" ); workingMemory.assertObject( hola ); workingMemory.fireAllRules(); assertTrue( list.contains( hola ) ); assertEquals( 1, list.size() ); } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/4825c4a6b11a26583ad2c12b5740200b0f6f5ecb/IntegrationCases.java/clean/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1162,
1190,
5250,
1435,
1216,
1185,
288,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
1265,
40,
1321,
12,
394,
15322,
12,
2900,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1162,
1190,
5250,
1435,
1216,
1185,
288,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
1265,
40,
1321,
12,
394,
15322,
12,
2900,
76... | |
if ( allWhitespace ) { stripWhitespaceContent( stripped ); | if (allWhitespace) { stripWhitespaceContent(stripped); | public static List stripInlineContent( Context c, List inlineContent ) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; boolean allWhitespace = true; for ( Iterator i = inlineContent.iterator(); i.hasNext(); ) { Object o = i.next(); if ( o instanceof StylePush ) { pendingStylePushes.add( o ); CascadedStyle style; StylePush sp = (StylePush)o; if ( sp.getPseudoElement() != null ) { style = c.getCss().getPseudoElementStyle( sp.getElement(), sp.getPseudoElement() ); } else { style = c.getCss().getCascadedStyle( sp.getElement(), false );//already done in ContentUtil } c.pushStyle( style ); continue; } if ( o instanceof TextContent ) { TextContent tc = (TextContent)o; CalculatedStyle style = c.getCurrentStyle(); boolean collapseNext = stripWhitespace( style, collapse, tc ); if ( !tc.isRemovableWhitespace() ) { allWhitespace = false; } stripped.addAll( pendingStylePushes ); pendingStylePushes.clear(); stripped.add( tc ); collapse = collapseNext; continue; } if ( o instanceof StylePop ) { c.popStyle(); if ( pendingStylePushes.size() != 0 ) { //redundant style-change pendingStylePushes.remove( pendingStylePushes.size() - 1 ); } else { stripped.add( o ); } continue; } //Here we have some other object, just add it with preceding styles if ( !( o instanceof FloatedBlockContent ) ) { allWhitespace = false; } stripped.addAll( pendingStylePushes ); pendingStylePushes.clear(); stripped.add( o ); collapse = false;//no collapsing of the next one } //there may be relevant StylePushes pending, e.g. if this is content of AnonymousBlock stripped.addAll( pendingStylePushes ); // Uu.p("final stripped = " + stripped); // Uu.p("all whitespace = " + allWhitespace); if ( allWhitespace ) { stripWhitespaceContent( stripped ); } return stripped; } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/4c6228ec4a20592f63d6203c86a98731914eea96/WhitespaceStripper.java/buggy/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
2569,
10870,
1350,
12,
1772,
276,
16,
987,
6370,
1350,
262,
288,
3639,
987,
13300,
273,
394,
10688,
5621,
3639,
987,
4634,
2885,
7621,
281,
273,
394,
10688,
5621,
3639,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
2569,
10870,
1350,
12,
1772,
276,
16,
987,
6370,
1350,
262,
288,
3639,
987,
13300,
273,
394,
10688,
5621,
3639,
987,
4634,
2885,
7621,
281,
273,
394,
10688,
5621,
3639,
12... |
if ( ! (policy instanceof ISelectionHandlesEditPolicy )) { super.reveal(part); return; | if ( !( policy instanceof ISelectionHandlesEditPolicy ) ) { super.reveal( part ); return; | public void reveal(EditPart part) { Viewport port = getFigureCanvas().getViewport(); IFigure target = ((GraphicalEditPart)part).getFigure(); Rectangle exposeRegion = target.getBounds().getCopy(); // Get the primary editpolicy EditPolicy policy = part.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE); // If the policy let us access the handles, proceed, otherwise // default to original behaviour if ( ! (policy instanceof ISelectionHandlesEditPolicy )) { super.reveal(part); return; } // First translate exposeRegion to the root level target = target.getParent(); while (target != null && target != port) { target.translateToParent(exposeRegion); target = target.getParent(); } // Merge selection handles if any to the exposeRegion List handles = ((TableResizeEditPolice)policy).getHandles(); for (Iterator iter = handles.iterator();iter.hasNext();) { AbstractHandle handle = (AbstractHandle)iter.next(); Locator locator = handle.getLocator(); locator.relocate( handle ); exposeRegion.union(handle.getBounds().getCopy()); } exposeRegion.getExpanded(5, 5); Dimension viewportSize = port.getClientArea().getSize(); Point topLeft = exposeRegion.getTopLeft(); Point bottomRight = exposeRegion.getBottomRight().translate(viewportSize.getNegated()); Point finalLocation = new Point(); if (viewportSize.width < exposeRegion.width) finalLocation.x = Math.min(bottomRight.x, Math.max(topLeft.x, port.getViewLocation().x)); else finalLocation.x = Math.min(topLeft.x, Math.max(bottomRight.x, port.getViewLocation().x)); if (viewportSize.height < exposeRegion.height) finalLocation.y = Math.min(bottomRight.y, Math.max(topLeft.y, port.getViewLocation().y)); else finalLocation.y = Math.min(topLeft.y, Math.max(bottomRight.y, port.getViewLocation().y)); getFigureCanvas().scrollSmoothTo(finalLocation.x, finalLocation.y); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/879c6e2a73c9076aeeed74591c18318a1397dcd3/DeferredGraphicalViewer.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/parts/DeferredGraphicalViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
283,
24293,
12,
4666,
1988,
1087,
13,
202,
95,
202,
565,
202,
202,
22743,
1756,
273,
2812,
15906,
12971,
7675,
588,
22743,
5621,
202,
202,
5501,
15906,
1018,
273,
14015,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
24293,
12,
4666,
1988,
1087,
13,
202,
95,
202,
565,
202,
202,
22743,
1756,
273,
2812,
15906,
12971,
7675,
588,
22743,
5621,
202,
202,
5501,
15906,
1018,
273,
14015,
41... |
this.sum = 0.0; this.sumsq = 0.0; | this.sum = this.sumsq = this.sumCube = this.sumQuad = 0.0; | public void clear() { this.sum = 0.0; this.sumsq = 0.0; this.n = 0; this.min = Double.MAX_VALUE; this.max = Double.MIN_VALUE; this.product = Double.NaN; } | 9305 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9305/be5a9fb2194643cc2cf426e70202ec62d99e22a5/UnivariateImpl.java/buggy/src/java/org/apache/commons/math/UnivariateImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
288,
3639,
333,
18,
1364,
273,
374,
18,
20,
31,
3639,
333,
18,
1364,
11410,
273,
374,
18,
20,
31,
3639,
333,
18,
82,
273,
374,
31,
3639,
333,
18,
1154,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
288,
3639,
333,
18,
1364,
273,
374,
18,
20,
31,
3639,
333,
18,
1364,
11410,
273,
374,
18,
20,
31,
3639,
333,
18,
82,
273,
374,
31,
3639,
333,
18,
1154,
273,
3... |
node.putProp(Node.LOCAL_PROP, new Integer(theLocalSlot)); | node.putIntProp(Node.LOCAL_PROP, theLocalSlot); | private int addLocalRef(Node node, int iCodeTop) { int theLocalSlot; Integer localProp = (Integer)node.getProp(Node.LOCAL_PROP); if (localProp == null) { theLocalSlot = itsData.itsMaxLocals++; node.putProp(Node.LOCAL_PROP, new Integer(theLocalSlot)); } else theLocalSlot = localProp.intValue(); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); if (theLocalSlot >= itsData.itsMaxLocals) itsData.itsMaxLocals = theLocalSlot + 1; return iCodeTop; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
2042,
1957,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
326,
2042,
8764,
31,
3639,
2144,
1191,
4658,
273,
261,
4522,
13,
2159,
18,
588,
4658,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
2042,
1957,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
326,
2042,
8764,
31,
3639,
2144,
1191,
4658,
273,
261,
4522,
13,
2159,
18,
588,
4658,
12,
... |
if(C_DEBUG && A_OpenCms.isLogging()) { | if(C_DEBUG && (A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) { | public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsXmlTemplateFile xmlTemplateDocument = getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); // is this the first-time, this page is viewed? if(session.getValue(C_SESSION_TASK_ALLPROJECTS) == null) { // YES! read the relevant userproperties Hashtable taskSettings = (Hashtable)((Hashtable)cms.getRequestContext().currentUser().getAdditionalInfo()).get(C_ADDITIONAL_INFO_TASKSETTINGS); if(taskSettings != null) { // the tasksettings exists - use them session.putValue(C_SESSION_TASK_ALLPROJECTS, taskSettings.get(C_TASK_VIEW_ALL)); session.putValue(C_SESSION_TASK_FILTER, new String((String)taskSettings.get(C_TASK_FILTER))); } } // is this the result of a submit? if(parameters.get("filter") != null) { // YES: get the checkbox-value if("OK".equals(parameters.get("ALL"))) { session.putValue(C_SESSION_TASK_ALLPROJECTS, new Boolean(true)); } else { session.putValue(C_SESSION_TASK_ALLPROJECTS, new Boolean(false)); } } // is the listbox chosen? if((parameters.get("filter") != null) && (!(parameters.get("filter").equals("-")))) { session.putValue(C_SESSION_TASK_FILTER, parameters.get("filter")); } // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/CmsTaskHead.java/clean/src/com/opencms/workplace/CmsTaskHead.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
2398,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
309,
12,
39,
67,
9394,
597,
261,
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,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
2398,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
309,
12,
39,
67,
9394,
597,
261,
37,... |
if (getTargetEditPart() != null) | if (getTargetEditPart() != null && getOperationSet().size() > 0) | protected void setTargetEditPart(EditPart editpart) { if (getTargetEditPart() == editpart) return; super.setTargetEditPart(editpart); snapToHelper = null; if (getTargetEditPart() != null) snapToHelper = (SnapToHelper)getTargetEditPart().getAdapter(SnapToHelper.class);} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/1dd79cbf30d5eebd31b18456cdccbcb887f015d6/DragEditPartsTracker.java/buggy/org.eclipse.gef/src/org/eclipse/gef/tools/DragEditPartsTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
18367,
4666,
1988,
12,
4666,
1988,
3874,
2680,
13,
288,
202,
430,
261,
588,
2326,
4666,
1988,
1435,
422,
3874,
2680,
13,
202,
202,
2463,
31,
202,
9565,
18,
542,
2326,
4666,
1988,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18367,
4666,
1988,
12,
4666,
1988,
3874,
2680,
13,
288,
202,
430,
261,
588,
2326,
4666,
1988,
1435,
422,
3874,
2680,
13,
202,
202,
2463,
31,
202,
9565,
18,
542,
2326,
4666,
1988,
... |
CalledContinuation (Object value, Continuation continuation) | CalledContinuation (Object[] values, Continuation continuation) | CalledContinuation (Object value, Continuation continuation) { super ("call/cc called"); this.value = value; this.continuation = continuation; } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/4909f580bf920982e4ee4bcc5111d454e3ca5801/CalledContinuation.java/buggy/kawa/lang/CalledContinuation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
11782,
660,
23946,
261,
921,
8526,
924,
16,
1816,
23946,
17378,
13,
225,
288,
565,
2240,
7566,
1991,
19,
952,
2566,
8863,
565,
333,
18,
1132,
273,
460,
31,
565,
333,
18,
1213,
23946,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
11782,
660,
23946,
261,
921,
8526,
924,
16,
1816,
23946,
17378,
13,
225,
288,
565,
2240,
7566,
1991,
19,
952,
2566,
8863,
565,
333,
18,
1132,
273,
460,
31,
565,
333,
18,
1213,
23946,
27... |
super("", 0, CompletionStatus.COMPLETED_NO); | super(message, 0, CompletionStatus.COMPLETED_NO); | public NO_IMPLEMENT() { super("", 0, CompletionStatus.COMPLETED_NO); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8f49cb75f981956e17f462c5a5d03320cacd07ee/NO_IMPLEMENT.java/buggy/org/omg/CORBA/NO_IMPLEMENT.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3741,
67,
9883,
7618,
1435,
225,
288,
565,
2240,
12,
2150,
16,
374,
16,
20735,
1482,
18,
15795,
40,
67,
3417,
1769,
225,
289,
2,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3741,
67,
9883,
7618,
1435,
225,
288,
565,
2240,
12,
2150,
16,
374,
16,
20735,
1482,
18,
15795,
40,
67,
3417,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
ctx.init(m_keyManagerFactory.getKeyManagers(), m_trustManagerFactory.getTrustManagers(), | ctx.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), | private synchronized SSLContext getSSLContext(String protocol) throws Exception { // null value check if(protocol == null) { protocol = m_sslProtocol; } // if already stored - return it SSLContext ctx = (SSLContext)m_sslContextMap.get(protocol); if(ctx != null) { return ctx; } // create new secure random object SecureRandom random = new SecureRandom(); random.nextInt(); // create SSLContext ctx = SSLContext.getInstance(protocol); ctx.init(m_keyManagerFactory.getKeyManagers(), m_trustManagerFactory.getTrustManagers(), random); // store it in map m_sslContextMap.put(protocol, ctx); return ctx; } | 48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/Ssl.java/clean/src/java/org/apache/ftpserver/ssl/Ssl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
26886,
336,
6745,
1042,
12,
780,
1771,
13,
1216,
1185,
288,
7734,
368,
446,
460,
866,
3639,
309,
12,
8373,
422,
446,
13,
288,
5411,
1771,
273,
312,
67,
8157,
5752,
31,
3639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
26886,
336,
6745,
1042,
12,
780,
1771,
13,
1216,
1185,
288,
7734,
368,
446,
460,
866,
3639,
309,
12,
8373,
422,
446,
13,
288,
5411,
1771,
273,
312,
67,
8157,
5752,
31,
3639,... |
org.quickfix.Message echo = (org.quickfix.Message)message.clone(); | quickfix.Message echo = (quickfix.Message)message.clone(); | public void process( Message message, SessionID sessionID )throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue { org.quickfix.Message echo = (org.quickfix.Message)message.clone(); PossResend possResend = new PossResend( false ); if ( message.getHeader().isSetField( possResend ) ) message.getHeader().getField( possResend ); ClOrdID clOrdID = new ClOrdID(); message.getField( clOrdID ); Pair pair = new Pair( clOrdID, sessionID ); if( possResend.getValue() == true ) { if( orderIDs.contains(pair) ) return; } orderIDs.add( pair ); try { Session.sendToTarget( echo, sessionID ); } catch( SessionNotFound snf ) { }} | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/9f5895d2ac7b95b564f60f90590d2406c4492034/at_messagecracker.java/buggy/src/at_messagecracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1207,
12,
2350,
883,
16,
3877,
734,
13737,
262,
15069,
2286,
2768,
16,
7221,
24563,
16,
657,
6746,
1805,
620,
288,
225,
9549,
904,
18,
1079,
3376,
273,
261,
19525,
904,
18,
1079,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1207,
12,
2350,
883,
16,
3877,
734,
13737,
262,
15069,
2286,
2768,
16,
7221,
24563,
16,
657,
6746,
1805,
620,
288,
225,
9549,
904,
18,
1079,
3376,
273,
261,
19525,
904,
18,
1079,
... |
fireDocumentEvent(new DocumentPropertyEvent( DocumentPropertyEvent.DESCRIPTION, description)); | fireAsyncDocumentEvent(new DocumentPropertyEvent( DocumentPropertyEvent.DESCRIPTION, description), false); | public void run() { SVGOMDocument doc = null; long t1 = System.currentTimeMillis(); try { fireDocumentEvent( new DocumentLoadingEvent( DocumentLoadingEvent.START_LOADING, null)); // Load requested document. checkInterrupt(); URL url = new URL(documentURI); InputStream is = url.openStream(); checkInterrupt(); try { is = new GZIPInputStream(is); } catch (InterruptedIOException iioe) { is.close(); throw new InterruptedException(); } catch (IOException e) { is.close(); is = url.openStream(); } Reader r = new InputStreamReader(is); checkInterrupt(); doc = df.createDocument(documentURI, new InputSource(r)); checkInterrupt(); List l = XSLTransformer.getStyleSheets(doc.getFirstChild(), documentURI); if (l.size() > 0) { // XSL transformations is.close(); is = url.openStream(); try { is = new GZIPInputStream(is); } catch (InterruptedIOException iioe) { is.close(); throw new InterruptedException(); } catch (IOException e) { is.close(); is = url.openStream(); } r = new InputStreamReader(is); r = XSLTransformer.transform(r, l); doc = df.createDocument(documentURI, new InputSource(r)); } long t2 = System.currentTimeMillis(); checkInterrupt(); fireDocumentEvent( new DocumentLoadingEvent( DocumentLoadingEvent.LOADED, doc)); System.out.println("---- Document loading time ---- " + (t2 - t1) + " ms"); String title = doc.getTitle(); checkInterrupt(); fireDocumentEvent(new DocumentPropertyEvent( DocumentPropertyEvent.TITLE, title)); // Set the panel preferred size. SVGSVGElement elt = doc.getRootElement(); float w = elt.getWidth().getBaseVal().getValue(); float h = elt.getHeight().getBaseVal().getValue(); checkInterrupt(); fireDocumentEvent(new DocumentPropertyEvent( DocumentPropertyEvent.SIZE, new Dimension((int)w, (int)h))); String description = SVGUtilities.getDescription(doc.getRootElement()); fireDocumentEvent(new DocumentPropertyEvent( DocumentPropertyEvent.DESCRIPTION, description)); fireDocumentEvent(new DocumentLoadingEvent( DocumentLoadingEvent.DONE, doc)); } catch (InterruptedException e) { System.out.println("Document loading thread interrupted."); fireDocumentEvent(new DocumentLoadingEvent( DocumentLoadingEvent.LOAD_CANCELLED, null)); } catch (InterruptedIOException iioe) { System.out.println("Interrupted during document I/O."); fireDocumentEvent(new DocumentLoadingEvent( DocumentLoadingEvent.LOAD_CANCELLED, null)); } catch (IOException e) { System.out.println("I/O Exception loading document: " +e.getMessage()); fireDocumentEvent(new DocumentLoadingEvent( DocumentLoadingEvent.LOAD_FAILED, null)); } catch (SAXException e) { fireDocumentEvent(new DocumentLoadingEvent( DocumentLoadingEvent.LOAD_FAILED, null)); } catch (Exception e) { e.printStackTrace(); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/dac1807ee38bbacb49fe940355a37ef7d7436715/DocumentLoadRunnable.java/clean/sources/org/apache/batik/util/DocumentLoadRunnable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
11281,
1872,
2519,
997,
273,
446,
31,
3639,
1525,
268,
21,
273,
2332,
18,
2972,
28512,
5621,
3639,
775,
288,
5411,
4452,
2519,
1133,
12,
7734,
394,
4319,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
11281,
1872,
2519,
997,
273,
446,
31,
3639,
1525,
268,
21,
273,
2332,
18,
2972,
28512,
5621,
3639,
775,
288,
5411,
4452,
2519,
1133,
12,
7734,
394,
4319,... |
WorkingMemory wm) { | WorkingMemory wm) { | public Object getValue(Tuple tuple, WorkingMemory wm) { return value; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/86cff4d74a04222d865bf5eeac956f1056a94dab/MethodDataProvider.java/clean/drools-core/src/main/java/org/drools/base/dataproviders/MethodDataProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2366,
12,
9038,
3193,
16,
1171,
9079,
22732,
6031,
18200,
13,
288,
13491,
327,
460,
31,
3639,
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,
540,
1071,
1033,
2366,
12,
9038,
3193,
16,
1171,
9079,
22732,
6031,
18200,
13,
288,
13491,
327,
460,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
scm.checkin( message, includePattern, null ); | scm.checkin( message ); | private void checkIn( String includePattern, String message ) throws MojoExecutionException { try { ScmHelper scm = getScm(); scm.setWorkingDirectory( basedir ); String tag = scm.getTag(); // No tag here - we suppose user works on correct branch scm.setTag( null ); scm.checkin( message, includePattern, null ); scm.setTag( tag ); } catch ( Exception e ) { throw new MojoExecutionException( "An error is occurred in the checkin process.", e ); } } | 7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/b73908aa3bc83f4038c4df7fed660648a024f3bf/PrepareReleaseMojo.java/clean/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
382,
12,
514,
2341,
3234,
16,
514,
883,
262,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
2850,
81,
2276,
29207,
273,
1322,
7670,
5621,
5411,
29207,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
382,
12,
514,
2341,
3234,
16,
514,
883,
262,
3639,
1216,
18780,
565,
288,
3639,
775,
3639,
288,
5411,
2850,
81,
2276,
29207,
273,
1322,
7670,
5621,
5411,
29207,
18,
542,
... |
if(i == 0 || prev == '-') { | if((i == 0) || (prev == '-')) { | private static String fixKey(String key) { StringBuffer sb = new StringBuffer(key.length()); char prev = 0; for(int i=0;i<key.length();i++) { char c = key.charAt(i); if(i == 0 || prev == '-') { c = Character.toUpperCase(c); } sb.append(c); prev = c; } return sb.toString(); } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/ToadletContextImpl.java/clean/src/freenet/clients/http/ToadletContextImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
2917,
653,
12,
780,
498,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
856,
18,
2469,
10663,
202,
202,
3001,
2807,
273,
374,
31,
202,
202,
1884,
12,
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,
1152,
760,
514,
2917,
653,
12,
780,
498,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
856,
18,
2469,
10663,
202,
202,
3001,
2807,
273,
374,
31,
202,
202,
1884,
12,
474... |
return false; } | boolean breakableLine(int line) { boolean[] breakableLines = this.breakableLines; if (breakableLines != null && line < breakableLines.length) { return breakableLines[line]; } return false; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/7d46eb7a55dd92f302fa22b401b887fbbdd81998/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
898,
429,
1670,
12,
474,
980,
13,
288,
3639,
1250,
8526,
898,
429,
5763,
273,
333,
18,
8820,
429,
5763,
31,
3639,
309,
261,
8820,
429,
5763,
480,
446,
597,
980,
411,
898,
429,
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,
1250,
898,
429,
1670,
12,
474,
980,
13,
288,
3639,
1250,
8526,
898,
429,
5763,
273,
333,
18,
8820,
429,
5763,
31,
3639,
309,
261,
8820,
429,
5763,
480,
446,
597,
980,
411,
898,
429,
5... | |
try { global = new Global(enterContext()); } finally { Context.exit(); } | withContext(new ContextAction() { public Object run(Context cx) { global = new Global(cx); return global; } }); | public static Global getGlobal() { if (global == null) { try { global = new Global(enterContext()); } finally { Context.exit(); } } return global; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/daf6b75edbd23fda1750716a43bd235c561fef2b/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
8510,
20591,
1435,
288,
3639,
309,
261,
6347,
422,
446,
13,
288,
5411,
775,
288,
7734,
2552,
273,
394,
8510,
12,
2328,
1042,
10663,
5411,
289,
5411,
3095,
288,
7734,
1772,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
8510,
20591,
1435,
288,
3639,
309,
261,
6347,
422,
446,
13,
288,
5411,
775,
288,
7734,
2552,
273,
394,
8510,
12,
2328,
1042,
10663,
5411,
289,
5411,
3095,
288,
7734,
1772,
18,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.