rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
public void setErrorHandler (ErrorHandler handler) | public void setErrorHandler(ErrorHandler handler) | public void setErrorHandler (ErrorHandler handler) { if (handler == null) handler = base; this.errorHandler = handler; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/SAXDriver.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/SAXDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9967,
1503,
12,
17729,
1838,
13,
565,
288,
202,
430,
261,
4176,
422,
446,
13,
202,
565,
1838,
273,
1026,
31,
202,
2211,
18,
1636,
1503,
273,
1838,
31,
565,
289,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9967,
1503,
12,
17729,
1838,
13,
565,
288,
202,
430,
261,
4176,
422,
446,
13,
202,
565,
1838,
273,
1026,
31,
202,
2211,
18,
1636,
1503,
273,
1838,
31,
565,
289,
2,
-100,
-1... |
{if (true) throw (Error)jjte000;} | {if (true) throw (RuntimeException)jjte000;} | final public void MethodDeclarationLookahead() throws ParseException { /*@bgen(jjtree) MethodDeclarationLookahead */ ASTMethodDeclarationLookahead jjtn000 = new ASTMethodDeclarationLookahead(this, JJTMETHODDECLARATIONLOOKAHEAD); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ABSTRACT: case FINAL: case NATIVE: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: case SYNCHRONIZED: case STRICTFP: ; break; default: jj_la1[13] = jj_gen; break label_6; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case PUBLIC: jj_consume_token(PUBLIC); break; case PROTECTED: jj_consume_token(PROTECTED); break; case PRIVATE: jj_consume_token(PRIVATE); break; case STATIC: jj_consume_token(STATIC); break; case ABSTRACT: jj_consume_token(ABSTRACT); break; case FINAL: jj_consume_token(FINAL); break; case NATIVE: jj_consume_token(NATIVE); break; case SYNCHRONIZED: jj_consume_token(SYNCHRONIZED); break; case STRICTFP: jj_consume_token(STRICTFP); break; default: jj_la1[14] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } ResultType(); jj_consume_token(IDENTIFIER); jj_consume_token(LPAREN); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/daf9b5230c9f4c287726006244d0ded29856732b/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
2985,
6094,
9794,
11617,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
2985,
6094,
9794,
11617,
1195,
225,
9183,
1305,
6094,
9794,
11617,
10684,
5088,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2985,
6094,
9794,
11617,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
2985,
6094,
9794,
11617,
1195,
225,
9183,
1305,
6094,
9794,
11617,
10684,
5088,
... |
fontScalingFactor = 1.2F; minFontScale = 0.50F; maxFontScale = 3.0F; | public XHTMLPanel() { fontScalingFactor = 1.2F; minFontScale = 0.50F; maxFontScale = 3.0F; setupListeners(); } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/700deda900763fb4334d7a41940a307a33287ba5/XHTMLPanel.java/clean/src/java/org/xhtmlrenderer/simple/XHTMLPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
30551,
5537,
1435,
288,
3639,
3512,
8471,
6837,
273,
404,
18,
22,
42,
31,
3639,
1131,
5711,
5587,
273,
374,
18,
3361,
42,
31,
3639,
943,
5711,
5587,
273,
890,
18,
20,
42,
31,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
30551,
5537,
1435,
288,
3639,
3512,
8471,
6837,
273,
404,
18,
22,
42,
31,
3639,
1131,
5711,
5587,
273,
374,
18,
3361,
42,
31,
3639,
943,
5711,
5587,
273,
890,
18,
20,
42,
31,
36... | |
if(log.isDebugEnabled()) { | if(log.isErrorEnabled()) { | private void populateAgent(ComponentData data, boolean isAdded) throws SQLException { AgentAssetData assetData = data.getAgentAssetData(); if (assetData == null) return; substitutions.put(":agent_org_class:", sqlQuote(assetData.getAssetClass())); substitutions.put(":agent_lib_name:", sqlQuote(data.getName())); substitutions.put(":component_name:", sqlQuote(data.getName())); if (isAdded) { // finish populating a new agent ResultSet rs = executeQuery(stmt, dbp.getQuery("checkAgentOrg", substitutions)); if (!rs.next()) { executeUpdate(dbp.getQuery("insertAgentOrg", substitutions)); } rs.close(); rs = executeQuery(stmt, dbp.getQuery("checkAsbAgent", substitutions)); if (!rs.next()) { executeUpdate(dbp.getQuery("insertAsbAgent", substitutions)); } rs.close(); PropGroupData[] pgs = assetData.getPropGroups(); for (int i = 0; i < pgs.length; i++) { PropGroupData pg = pgs[i]; String pgName = pg.getName(); PGPropData[] props = pg.getProperties(); for (int j = 0; j < props.length; j++) { PGPropData prop = props[j]; PropertyInfo propInfo = getPropertyInfo(pgName, prop.getName()); substitutions.put(":component_alib_id:", sqlQuote(getComponentAlibId(data))); substitutions.put(":pg_attribute_lib_id:", sqlQuote(propInfo.getAttributeLibId())); substitutions.put(":start_date:", sqlQuote("2000-01-01 00:00:00")); substitutions.put(":end_date:", sqlQuote(null)); if (propInfo.isCollection()) { if (!prop.isListType()) throw new RuntimeException("Property is not a collection: " + propInfo.toString()); String[] values = ((PGPropMultiVal) prop.getValue()).getValuesStringArray(); for (int k = 0; k < values.length; k++) { substitutions.put(":attribute_value:", sqlQuote(values[k])); substitutions.put(":attribute_order:", String.valueOf(k + 1)); executeUpdate(dbp.getQuery("insertAttribute", substitutions)); } } else { if (prop.isListType()) throw new RuntimeException("Property is not a single value: " + propInfo.toString()); substitutions.put(":attribute_value:", sqlQuote(prop.getValue().toString())); substitutions.put(":attribute_order:", "1"); executeUpdate(dbp.getQuery("insertAttribute", substitutions)); } } } } RelationshipData[] relationships = assetData.getRelationshipData(); // dbp.setDebug(true); for (int i = 0; i < relationships.length; i++) { RelationshipData r = relationships[i]; long startTime = r.getStartTime(); long endTime = r.getEndTime(); substitutions.put(":role:", sqlQuote(r.getRole())); substitutions.put(":supporting:", sqlQuote(getComponentAlibId(data))); substitutions.put(":supported:", getAgentAlibId(r.getSupported())); substitutions.put(":start_date:", "?"); substitutions.put(":end_date:", "?"); String query = dbp.getQuery("checkRelationship", substitutions); PreparedStatement pstmt = dbConnection.prepareStatement(query); pstmt.setTimestamp(1, new Timestamp(startTime)); ResultSet rs = executeQuery(pstmt, query); if (!rs.next()) { query = dbp.getQuery("insertRelationship", substitutions); PreparedStatement pstmt2 = dbConnection.prepareStatement(query); pstmt2.setTimestamp(1, new Timestamp(startTime)); if (endTime > 0L) { pstmt2.setTimestamp(2, new Timestamp(endTime)); } else { pstmt2.setNull(2, Types.TIMESTAMP); } try { executeUpdate(pstmt2, query); } catch (SQLException e) { if(log.isDebugEnabled()) { log.error("SQLException query: " + query, e); } throw e; } finally { pstmt2.close(); } } pstmt.close(); } } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/efe9a4b3362c3c4139e7255630e84e5bcb6786e1/PopulateDb.java/clean/csmart/src/org/cougaar/tools/csmart/core/db/PopulateDb.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
3630,
12,
1841,
751,
501,
16,
1250,
353,
8602,
13,
1216,
6483,
288,
2868,
8669,
6672,
751,
3310,
751,
273,
501,
18,
588,
3630,
6672,
751,
5621,
3639,
309,
261,
9406,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
3630,
12,
1841,
751,
501,
16,
1250,
353,
8602,
13,
1216,
6483,
288,
2868,
8669,
6672,
751,
3310,
751,
273,
501,
18,
588,
3630,
6672,
751,
5621,
3639,
309,
261,
9406,
75... |
PsiTreeChangeEventImpl treeEvent = new PsiTreeChangeEventImpl(myManager); treeEvent.setParent(parentDir); if (VirtualFile.PROP_NAME.equals(propertyName)) { final String newName = (String)event.getNewValue(); if (vFile.isDirectory()) { PsiDirectory psiDir = findDirectory(vFile); if (psiDir != null) { if (!myFileTypeManager.isFileIgnored(newName)) { treeEvent.setChild(psiDir); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_DIRECTORY_NAME); treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent); } else { treeEvent.setChild(psiDir); myManager.beforeChildRemoval(treeEvent); } | PsiTreeChangeEventImpl treeEvent = new PsiTreeChangeEventImpl(myManager); treeEvent.setParent(parentDir); treeEvent.setChild(psiDir); myManager.childRemoved(treeEvent); | public void run() { PsiTreeChangeEventImpl treeEvent = new PsiTreeChangeEventImpl(myManager); treeEvent.setParent(parentDir); if (VirtualFile.PROP_NAME.equals(propertyName)) { final String newName = (String)event.getNewValue(); if (vFile.isDirectory()) { PsiDirectory psiDir = findDirectory(vFile); if (psiDir != null) { if (!myFileTypeManager.isFileIgnored(newName)) { treeEvent.setChild(psiDir); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_DIRECTORY_NAME); treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent); } else { treeEvent.setChild(psiDir); myManager.beforeChildRemoval(treeEvent); } } else { if (!isExcludeRoot(vFile) && !myFileTypeManager.isFileIgnored(newName)) { myManager.beforeChildAddition(treeEvent); } } } else { PsiFile psiFile = findFile(vFile); PsiFile psiFile1 = createPsiFile(vFile, newName); if (psiFile != null) { if (psiFile1 == null) { treeEvent.setChild(psiFile); myManager.beforeChildRemoval(treeEvent); } else if (!psiFile1.getClass().equals(psiFile.getClass())) { treeEvent.setOldChild(psiFile); myManager.beforeChildReplacement(treeEvent); } else { treeEvent.setChild(psiFile); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_FILE_NAME); treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent); } } else { if (psiFile1 != null) { myManager.beforeChildAddition(treeEvent); } } } } else if (VirtualFile.PROP_WRITABLE.equals(propertyName)) { PsiFile psiFile = myVFileToPsiFileMap.get(vFile); if (psiFile == null) return; treeEvent.setElement(psiFile); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_WRITABLE); treeEvent.setOldValue(event.getOldValue()); treeEvent.setNewValue(event.getNewValue()); myManager.beforePropertyChange(treeEvent); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/671af53ecb4df5a36564759f83fd6c3b1163178f/FileManagerImpl.java/buggy/source/com/intellij/psi/impl/file/impl/FileManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
1086,
1435,
288,
5411,
453,
7722,
2471,
20930,
2828,
2151,
1133,
273,
394,
453,
7722,
2471,
20930,
2828,
12,
4811,
1318,
1769,
5411,
2151,
1133,
18,
542,
3054,
12,
2938,
1621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
1086,
1435,
288,
5411,
453,
7722,
2471,
20930,
2828,
2151,
1133,
273,
394,
453,
7722,
2471,
20930,
2828,
12,
4811,
1318,
1769,
5411,
2151,
1133,
18,
542,
3054,
12,
2938,
1621,
... |
public ASTUsingDirective( IASTScope scope, String name, int startingOffset, int startingLine, int endingOffset, int endingLine, char[] filename ) | public ASTUsingDirective( IASTScope scope, String name, int startingOffset, int startingLine, int endingOffset, int endingLine, char[] filename, int nStart, int nEnd, int nLine ) | public ASTUsingDirective( IASTScope scope, String name, int startingOffset, int startingLine, int endingOffset, int endingLine, char[] filename ) { super( scope ); this.namespaceName = name; setStartingOffsetAndLineNumber(startingOffset, startingLine); setEndingOffsetAndLineNumber(endingOffset, endingLine); fn = filename; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9ac724d2edcb3085225e8e4e3281e34bca88c97d/ASTUsingDirective.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTUsingDirective.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9183,
7736,
13307,
12,
467,
9053,
3876,
2146,
16,
514,
508,
16,
509,
5023,
2335,
16,
509,
5023,
1670,
16,
509,
11463,
2335,
16,
509,
11463,
1670,
16,
1149,
8526,
1544,
262,
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,
482,
9183,
7736,
13307,
12,
467,
9053,
3876,
2146,
16,
514,
508,
16,
509,
5023,
2335,
16,
509,
5023,
1670,
16,
509,
11463,
2335,
16,
509,
11463,
1670,
16,
1149,
8526,
1544,
262,
20... |
envoyer(new etatParticipant(p)); | envoyer(new etatParticipant(new Participant(p.getLogin(), p.getNom(), p.getPrenom(), p.getStatut()))); | void etatParticipant(Participant p) { envoyer(new etatParticipant(p)); } | 57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/a42f3836799b36db6530f98f3771defa8a9228b0/SessionServeur.java/buggy/src/serveur/trollhammer/SessionServeur.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3393,
270,
22540,
12,
22540,
293,
13,
288,
1850,
1550,
13372,
264,
12,
2704,
3393,
270,
22540,
12,
2704,
31333,
12,
84,
18,
588,
5358,
9334,
293,
18,
588,
26685,
9334,
293,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3393,
270,
22540,
12,
22540,
293,
13,
288,
1850,
1550,
13372,
264,
12,
2704,
3393,
270,
22540,
12,
2704,
31333,
12,
84,
18,
588,
5358,
9334,
293,
18,
588,
26685,
9334,
293,
18,
588... |
private void fireHits( | public void fireHits( | private void fireHits( int word, int offset, SearchListener listener ) { int hitOffset = hashTable.get(word); if(hitOffset >= 0) { try { hitTable.position(hitOffset); } catch (IllegalArgumentException e) { System.out.println("word:\t" + word); System.out.println("offset:\t" + offset); System.out.println("hitOffset\t" + hitOffset); throw e; } int hits = hitTable.getInt(); for(int i = 0; i < hits; i++) { int pos = hitTable.getInt(); int id = seqIDForPos(pos); listener.hit( id, offset, pos - offsetForID(id), wordLength ); } } else if (hitOffset == -2) { System.err.println("Hit an elided word!"); } } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/870ae31364b930bd9261ff9ca75ebaded0462c9b/CompactedDataStore.java/clean/src-1.4/org/biojava/bio/program/ssaha/CompactedDataStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4452,
20950,
12,
565,
509,
2076,
16,
565,
509,
1384,
16,
565,
5167,
2223,
2991,
225,
262,
288,
565,
509,
6800,
2335,
273,
1651,
1388,
18,
588,
12,
1095,
1769,
565,
309,
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,
282,
1071,
918,
4452,
20950,
12,
565,
509,
2076,
16,
565,
509,
1384,
16,
565,
5167,
2223,
2991,
225,
262,
288,
565,
509,
6800,
2335,
273,
1651,
1388,
18,
588,
12,
1095,
1769,
565,
309,
12,
... |
return bufsenqueued<<LOG_PAGES_PER_BUFFER; | return bufsenqueued << LOG_PAGES_PER_BUFFER; | public final int enqueuedPages() throws InlinePragma { return bufsenqueued<<LOG_PAGES_PER_BUFFER; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/SharedDeque.java/buggy/MMTk/src/org/mmtk/utility/deque/SharedDeque.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
509,
570,
19499,
5716,
1435,
1216,
16355,
2050,
9454,
288,
565,
327,
1681,
87,
275,
19499,
2296,
2018,
67,
11219,
55,
67,
3194,
67,
11302,
31,
225,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
509,
570,
19499,
5716,
1435,
1216,
16355,
2050,
9454,
288,
565,
327,
1681,
87,
275,
19499,
2296,
2018,
67,
11219,
55,
67,
3194,
67,
11302,
31,
225,
289,
2,
-100,
-100,
-100,
... |
if ((flags & ~0xEF) != 0) throw new IllegalArgumentException (); return new Pattern (regex, flags); | return compile(regex, 0); | public static Pattern compile (String regex, int flags) throws PatternSyntaxException { // FIXME: check which flags are really accepted if ((flags & ~0xEF) != 0) throw new IllegalArgumentException (); return new Pattern (regex, flags); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/185f373a9e9ecb5bf2a02c698e74f2e18f96abb6/Pattern.java/buggy/libraries/javalib/java/util/regex/Pattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
6830,
4074,
261,
780,
3936,
16,
509,
2943,
13,
565,
1216,
6830,
14714,
225,
288,
565,
368,
9852,
30,
866,
1492,
2943,
854,
8654,
8494,
565,
309,
14015,
7133,
473,
4871,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
6830,
4074,
261,
780,
3936,
16,
509,
2943,
13,
565,
1216,
6830,
14714,
225,
288,
565,
368,
9852,
30,
866,
1492,
2943,
854,
8654,
8494,
565,
309,
14015,
7133,
473,
4871,
20,
1... |
Map model = new HashMap(); return scaffoldResponseHandler.handleResponse(request,response,CREATE_ACTION,model); | Map model = this.scaffoldRequestHandler.handleCreate(request,response,new DefaultScaffoldCallback()); return scaffoldResponseHandler.handleResponse(request,response,CREATE_ACTION,model); | public Object call(Object[] args) { // do nothing for the moment Map model = new HashMap(); return scaffoldResponseHandler.handleResponse(request,response,CREATE_ACTION,model); } | 6460 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6460/b6b4f5ebc44e1bf38a2930c42610d0d1bdafc46d/DefaultGrailsScaffolder.java/buggy/src/scaffolding/org/codehaus/groovy/grails/scaffolding/DefaultGrailsScaffolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
745,
12,
921,
8526,
833,
13,
288,
1082,
202,
759,
741,
5083,
364,
326,
10382,
1082,
202,
863,
938,
273,
394,
4317,
5621,
1082,
202,
2463,
20992,
1064,
1503,
18,
4110,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
745,
12,
921,
8526,
833,
13,
288,
1082,
202,
759,
741,
5083,
364,
326,
10382,
1082,
202,
863,
938,
273,
394,
4317,
5621,
1082,
202,
2463,
20992,
1064,
1503,
18,
4110,
1... |
jMenuItemCheckOutFromFileActionPerformed(evt); | jMenuItemCompileActionPerformed(evt); | public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemCheckOutFromFileActionPerformed(evt); } | 7731 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7731/6b4414bf371e946bc05b8db3367c659f10582315/jFrame.java/clean/Project/jFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
12958,
9937,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
12958,
9937,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
String taskName = CCorePlugin.getResourceString("CoreModel.BinaryRunner.Binary_Search_Thread"); Job runner = new Job(taskName) { /* (non-Javadoc) | String taskName = CCorePlugin.getResourceString("CoreModel.BinaryRunner.Binary_Search_Thread"); runner = new Job(taskName) { /* * (non-Javadoc) * | public void start() { String taskName = CCorePlugin.getResourceString("CoreModel.BinaryRunner.Binary_Search_Thread"); //$NON-NLS-1 Job runner = new Job(taskName) { /* (non-Javadoc) * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ protected IStatus run(IProgressMonitor monitor) { if (cproject == null || Thread.currentThread().isInterrupted()) { return Status.CANCEL_STATUS; } vbin = (BinaryContainer)cproject.getBinaryContainer(); vlib = (ArchiveContainer)cproject.getArchiveContainer(); vlib.removeChildren(); vbin.removeChildren(); try { project.accept(new Visitor(BinaryRunner.this)); } catch (CoreException e) { //e.printStackTrace(); } catch (Exception e) { // What is wrong ? e.printStackTrace(); } if (!Thread.currentThread().isInterrupted()) { fireEvents(cproject, vbin); fireEvents(cproject, vlib); } // Tell the listeners we are done. synchronized(BinaryRunner.this) { BinaryRunner.this.notifyAll(); BinaryRunner.this.runner = null; } return Status.OK_STATUS; } }; runner.schedule(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/84c89baed2d5075ab2dc5a5810d04c445f608a68/BinaryRunner.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
1435,
288,
202,
202,
780,
20172,
273,
385,
4670,
3773,
18,
588,
1420,
780,
2932,
4670,
1488,
18,
5905,
9709,
18,
5905,
67,
2979,
67,
3830,
8863,
4329,
3993,
17,
5106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
1435,
288,
202,
202,
780,
20172,
273,
385,
4670,
3773,
18,
588,
1420,
780,
2932,
4670,
1488,
18,
5905,
9709,
18,
5905,
67,
2979,
67,
3830,
8863,
4329,
3993,
17,
5106... |
ivRenderer.groupPrimitive(tre, true); | ivRenderer.groupPrimitive( tre, true ); | public void drawText( TextRenderEvent tre ) throws ChartException { ivRenderer.groupPrimitive(tre, true); SVGTextRenderer tr = SVGTextRenderer.instance( (SVGDisplayServer) _ids ); switch ( tre.getAction( ) ) { case TextRenderEvent.UNDEFINED : throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, "exception.missing.text.render.action", //$NON-NLS-1$ Messages.getResourceBundle( getULocale( ) ) ); case TextRenderEvent.RENDER_SHADOW_AT_LOCATION : tr.renderShadowAtLocation( this, tre.getTextPosition( ), tre.getLocation( ), tre.getLabel( ) ); break; case TextRenderEvent.RENDER_TEXT_AT_LOCATION : tr.renderTextAtLocation( this, tre.getTextPosition( ), tre.getLocation( ), tre.getLabel( ) ); break; case TextRenderEvent.RENDER_TEXT_IN_BLOCK : tr.renderTextInBlock( this, tre.getBlockBounds( ), tre.getBlockAlignment( ), tre.getLabel( ) ); break; } ivRenderer.ungroupPrimitive(tre, true); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/1cb055a94d0be6592f772701e9d73d66322c6253/SVGRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3724,
1528,
12,
3867,
3420,
1133,
9787,
262,
1216,
14804,
503,
202,
95,
202,
202,
427,
6747,
18,
1655,
9840,
12,
27427,
16,
638,
1769,
202,
202,
26531,
1528,
6747,
433,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3724,
1528,
12,
3867,
3420,
1133,
9787,
262,
1216,
14804,
503,
202,
95,
202,
202,
427,
6747,
18,
1655,
9840,
12,
27427,
16,
638,
1769,
202,
202,
26531,
1528,
6747,
433,
2... |
final BufferedResponse redirectResponse = new BufferedResponse(redirectUrl) | final BufferedResponse redirectResponse = new BufferedResponse() | protected void redirectTo(final Page page) throws ServletException { String redirectUrl = page.urlFor(page, IRedirectListener.class); // Check if use serverside response for client side redirects ApplicationSettings settings = application.getSettings(); if ((settings.getRenderStrategy() == ApplicationSettings.REDIRECT_TO_BUFFER) && (application instanceof WebApplication)) { // remember the current response final Response currentResponse = getResponse(); try { // create the redirect response. // override the encodeURL so that it will use the real once encoding. final BufferedResponse redirectResponse = new BufferedResponse(redirectUrl) { public String encodeURL(String url) { return currentResponse.encodeURL(url); } }; redirectResponse.setCharacterEncoding(currentResponse.getCharacterEncoding()); // redirect the response to the buffer setResponse(redirectResponse); // test if the invoker page was the same as the page that is going to be renderd if (getInvokePage() == getResponsePage()) { // set it to null because it is already ended in the page.doRender() setInvokePage(null); } // render the page into the buffer page.doRender(); // re-assign the original response setResponse(currentResponse); final String responseRedirect = redirectResponse.getRedirectUrl(); if (redirectUrl != responseRedirect) { // if the redirectResponse has another redirect url set // then the rendering of this page caused a redirect to something else. // set this redirect then. redirectUrl = redirectResponse.getRedirectUrl(); } else if (redirectResponse.getContentLength() > 0) { // if no content is created then don't set it in the redirect buffer // (maybe access failed). // Set the encoding of the response (what the browser wants) redirectResponse.setCharacterEncoding(currentResponse.getCharacterEncoding()); // close it so that the reponse is fixed and encoded from here on. redirectResponse.close(); // TODO adouma: no Portlets support yet so typecasted for Servlet env. ((WebApplication)application).addRedirect( ((ServletWebRequest)getWebRequest()).getHttpServletRequest(), redirectUrl, redirectResponse); } } catch (RuntimeException ex) { // re-assign the original response setResponse(currentResponse); internalOnRuntimeException(page, ex); return; } } else { session.touch(page); // redirect page can touch its models already (via for example the constructors) page.internalEndRequest(); } // Redirect to the url for the page response.redirect(redirectUrl); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/98fd33a35eaa2d534bda1b2b6b00f39d39ec563e/WebRequestCycle.java/buggy/wicket/src/java/wicket/protocol/http/WebRequestCycle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
19200,
12,
6385,
3460,
1363,
13,
1216,
16517,
202,
95,
202,
202,
780,
25372,
273,
1363,
18,
718,
1290,
12,
2433,
16,
467,
5961,
2223,
18,
1106,
1769,
202,
202,
759,
2073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
19200,
12,
6385,
3460,
1363,
13,
1216,
16517,
202,
95,
202,
202,
780,
25372,
273,
1363,
18,
718,
1290,
12,
2433,
16,
467,
5961,
2223,
18,
1106,
1769,
202,
202,
759,
2073... |
if ( !choices[i].getDisplayName( ) | if ( !choices[i].getName( ) | protected String[][] initChoiceArray( ) { if ( choiceArray == null ) { IChoiceSet set = ChoiceSetFactory.getElementChoiceSet( ReportDesignConstants.STYLE_ELEMENT, Style.NUMBER_FORMAT_PROP ); IChoice[] choices = set.getChoices( ); if ( choices.length > 0 ) { choiceArray = new String[choices.length - 1][2]; for ( int i = 0, j = 0; i < choices.length; i++ ) { if ( !choices[i].getDisplayName( ) .equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_STANDARD ) ) { choiceArray[j][0] = choices[i].getDisplayName( ); choiceArray[j][1] = choices[i].getName( ); j++; } } } else { choiceArray = new String[0][0]; } } return choiceArray; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/36d1915ca9de9d07edd2229210f9d708b51ed017/FormatNumberPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
63,
6362,
65,
1208,
10538,
1076,
12,
262,
202,
95,
202,
202,
430,
261,
6023,
1076,
422,
446,
262,
202,
202,
95,
1082,
202,
45,
10538,
694,
444,
273,
16432,
694,
1733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
63,
6362,
65,
1208,
10538,
1076,
12,
262,
202,
95,
202,
202,
430,
261,
6023,
1076,
422,
446,
262,
202,
202,
95,
1082,
202,
45,
10538,
694,
444,
273,
16432,
694,
1733,
... |
String message = Context.getMessage0("msg.bad.esc.mask"); cx.reportError(message); mask = URL_XALPHAS | URL_XPALPHAS | URL_PATH; | throw Context.reportRuntimeError0("msg.bad.esc.mask"); | private Object js_escape(Context cx, Object[] args) { final int URL_XALPHAS = 1, URL_XPALPHAS = 2, URL_PATH = 4; String s = ScriptRuntime.toString(args, 0); int mask = URL_XALPHAS | URL_XPALPHAS | URL_PATH; if (args.length > 1) { // the 'mask' argument. Non-ECMA. double d = ScriptRuntime.toNumber(args[1]); if (d != d || ((mask = (int) d) != d) || 0 != (mask & ~(URL_XALPHAS | URL_XPALPHAS | URL_PATH))) { String message = Context.getMessage0("msg.bad.esc.mask"); cx.reportError(message); // do the ecma thing, in case reportError returns. mask = URL_XALPHAS | URL_XPALPHAS | URL_PATH; } } StringBuffer sb = null; for (int k = 0, L = s.length(); k != L; ++k) { int c = s.charAt(k); if (mask != 0 && ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '@' || c == '*' || c == '_' || c == '-' || c == '.' || (0 != (mask & URL_PATH) && (c == '/' || c == '+')))) { if (sb != null) { sb.append((char)c); } } else { if (sb == null) { sb = new StringBuffer(L + 3); sb.append(s); sb.setLength(k); } int hexSize; if (c < 256) { if (c == ' ' && mask == URL_XPALPHAS) { sb.append('+'); continue; } sb.append('%'); hexSize = 2; } else { sb.append('%'); sb.append('u'); hexSize = 4; } // append hexadecimal form of c left-padded with 0 for (int shift = (hexSize - 1) * 4; shift >= 0; shift -= 4) { int digit = 0xf & (c >> shift); int hc = (digit < 10) ? '0' + digit : 'A' - 10 + digit; sb.append((char)hc); } } } return (sb == null) ? s : sb.toString(); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/d0771b878dc28db19b34996d546b15ce93d669c9/NativeGlobal.java/clean/src/org/mozilla/javascript/NativeGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
6939,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
288,
3639,
727,
509,
5411,
1976,
67,
60,
19799,
3033,
273,
404,
16,
5411,
1976,
67,
60,
52,
19799,
3033,
273,
576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
6939,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
288,
3639,
727,
509,
5411,
1976,
67,
60,
19799,
3033,
273,
404,
16,
5411,
1976,
67,
60,
52,
19799,
3033,
273,
576,
... |
activateOnOpen.setSelection(getPreferenceStore().getBoolean( TaskListPreferenceConstants.ACTIVATE_ON_OPEN)); | activateOnOpen.setSelection(getPreferenceStore().getBoolean(TaskListPreferenceConstants.ACTIVATE_ON_OPEN)); | public boolean performCancel() { taskDirectoryText.setText(TasksUiPlugin.getDefault().getDefaultDataDirectory()); notificationEnabledButton.setSelection(getPreferenceStore().getBoolean( TaskListPreferenceConstants.NOTIFICATIONS_ENABLED)); backupScheduleTimeText.setText(getPreferenceStore().getString(TaskListPreferenceConstants.BACKUP_SCHEDULE)); backupFolderText.setText(TasksUiPlugin.getDefault().getBackupFolderPath()); reportEditor.setSelection(getPreferenceStore().getBoolean(TaskListPreferenceConstants.REPORT_OPEN_EDITOR)); reportInternal.setSelection(getPreferenceStore().getBoolean(TaskListPreferenceConstants.REPORT_OPEN_INTERNAL)); disableInternal.setSelection(getPreferenceStore().getBoolean( TaskListPreferenceConstants.REPORT_DISABLE_INTERNAL)); activateOnOpen.setSelection(getPreferenceStore().getBoolean( TaskListPreferenceConstants.ACTIVATE_ON_OPEN)); // synchQueries.setSelection(getPreferenceStore().getBoolean( // TaskListPreferenceConstants.REPOSITORY_SYNCH_ON_STARTUP)); enableBackgroundSynch.setSelection(getPreferenceStore().getBoolean( TaskListPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLED)); synchScheduleTime.setText(getMinutesString()); hourDayStart.setSelection(getPreferenceStore().getInt(TaskListPreferenceConstants.PLANNING_STARTHOUR)); hourDayEnd.setSelection(getPreferenceStore().getInt(TaskListPreferenceConstants.PLANNING_ENDHOUR)); return true; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d3273f667e4dfe3e39f55c9af7b959becbfa3dea/TasksPreferencePage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/preferences/TasksPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
6691,
1435,
288,
202,
202,
4146,
2853,
1528,
18,
542,
1528,
12,
6685,
13943,
3773,
18,
588,
1868,
7675,
588,
1868,
751,
2853,
10663,
202,
202,
9927,
1526,
3616,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
6691,
1435,
288,
202,
202,
4146,
2853,
1528,
18,
542,
1528,
12,
6685,
13943,
3773,
18,
588,
1868,
7675,
588,
1868,
751,
2853,
10663,
202,
202,
9927,
1526,
3616,
18,
... |
public double min(double x, double y) { if ((x != x) || (y != y)) return Double.POSITIVE_INFINITY; return Math.min(x, y); | static public double min(Context cx, Scriptable thisObj, Object[] args, Function funObj) { double result = Double.POSITIVE_INFINITY; if (args.length == 0) return result; for (int i = 0; i < args.length; i++) { double d = ScriptRuntime.toNumber(args[i]); if (d != d) return d; result = Math.min(result, d); } return result; | public double min(double x, double y) { if ((x != x) || (y != y)) return Double.POSITIVE_INFINITY; return Math.min(x, y); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/002b3bb5f3273f8f40d7492a66a48eafe39e269d/NativeMath.java/buggy/src/org/mozilla/javascript/NativeMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
1131,
12,
9056,
619,
16,
1645,
677,
13,
288,
3639,
309,
14015,
92,
480,
619,
13,
747,
261,
93,
480,
677,
3719,
5411,
327,
3698,
18,
7057,
16325,
67,
17716,
31,
3639,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
1131,
12,
9056,
619,
16,
1645,
677,
13,
288,
3639,
309,
14015,
92,
480,
619,
13,
747,
261,
93,
480,
677,
3719,
5411,
327,
3698,
18,
7057,
16325,
67,
17716,
31,
3639,
327,
... |
for (int i = 0, length = not.length; i < length; i++) { | for (int i = 0, length = not.length; !deActivate && i < length; i++) { | public void doAssertObject( final InternalFactHandle factHandle, final Object object, final PropagationContext propagationContext ) throws FactException { this.pushTokenOnStack( factHandle, new Token( this, factHandle, propagationContext ) ); // determine what classes it belongs to put it into the "table" on // class name key List tuplesToAssert = new LinkedList( ); final Object objectClass = LeapsBuilder.getLeapsClassType( object ); for (final Iterator tables = this.getFactTablesList( objectClass ).iterator( ); tables.hasNext( );) { tuplesToAssert.clear( ); final FactTable factTable = (FactTable) tables.next( ); // adding fact to container factTable.add( factHandle ); for (final Iterator tuples = factTable.getTuplesIterator( ); tuples.hasNext( );) { final LeapsTuple tuple = (LeapsTuple) tuples.next( ); final ColumnConstraints[] not = tuple.getLeapsRule( ) .getNotColumnConstraints( ); for (int i = 0, length = not.length; i < length; i++) { final ColumnConstraints constraint = not[i]; final Object columnClassObject = constraint.getClassType( ); if (!tuple.isBlockingNotFactHandle( i ) && ( ( objectClass.getClass( ) == Class.class && columnClassObject.getClass( ) == Class.class && ( (Class) columnClassObject ).isAssignableFrom( (Class) objectClass ) ) || ( objectClass.getClass( ) != Class.class && columnClassObject.getClass( ) != Class.class && columnClassObject.equals( objectClass ) ) ) && constraint.isAllowed( factHandle, tuple, this )) { tuple.setBlockingNotFactHandle( (LeapsFactHandle) factHandle, i ); ( (LeapsFactHandle) factHandle ).addNotTuple( tuple, i ); } } // check exists constraints and activate constraints final ColumnConstraints[] exists = tuple.getLeapsRule( ) .getExistsColumnConstraints( ); for (int i = 0, length = exists.length; i < length; i++) { final ColumnConstraints constraint = exists[i]; final Object columnClassObject = constraint.getClassType( ); if (!tuple.isExistsFactHandle( i ) && ( ( objectClass.getClass( ) == Class.class && columnClassObject.getClass( ) == Class.class && ( (Class) columnClassObject ).isAssignableFrom( (Class) objectClass ) ) || ( objectClass.getClass( ) != Class.class && columnClassObject.getClass( ) != Class.class && columnClassObject.equals( objectClass ) ) ) && constraint.isAllowed( factHandle, tuple, this )) { tuple.setExistsFactHandle( (LeapsFactHandle) factHandle, i ); ( (LeapsFactHandle) factHandle ).addExistsTuple( tuple, i ); } } // check and see if we need activate // activate only if tuple was not ready for it before if (tuple.isReadyForActivation( )) { // ready to activate tuple.setContext( new PropagationContextImpl( nextPropagationIdCounter( ), PropagationContext.ASSERTION, tuple.getLeapsRule( ) .getRule( ), null ) ); tuplesToAssert.add( tuple ); } } for (Iterator tuples = tuplesToAssert.iterator( ); tuples.hasNext( );) { LeapsTuple tuple = (LeapsTuple) tuples.next( ); factTable.removeTuple( tuple ); this.assertTuple( tuple ); } } // inspect all tuples for exists and not conditions and activate // deactivate agenda items Activation[] activations = this.agenda.getActivations( ); for (int k = 0; k < activations.length; k++) { boolean deActivate = false; LeapsTuple tuple = (LeapsTuple) activations[k].getTuple( ); final ColumnConstraints[] not = tuple.getLeapsRule( ).getNotColumnConstraints( ); for (int i = 0, length = not.length; i < length; i++) { final ColumnConstraints constraint = not[i]; final Object columnClassObject = constraint.getClassType( ); if (!tuple.isBlockingNotFactHandle( i ) && ( ( objectClass.getClass( ) == Class.class && columnClassObject.getClass( ) == Class.class && ( (Class) columnClassObject ).isAssignableFrom( (Class) objectClass ) ) || ( objectClass.getClass( ) != Class.class && columnClassObject.getClass( ) != Class.class && columnClassObject.equals( objectClass ) ) ) && constraint.isAllowed( factHandle, tuple, this )) { tuple.setBlockingNotFactHandle( (LeapsFactHandle) factHandle, i ); ( (LeapsFactHandle) factHandle ).addNotTuple( tuple, i ); if (!deActivate) { deActivate = true; } } } // check and see if we need de-activate if (deActivate) { if (tuple.getLeapsRule( ).getRule( ) instanceof Query) { // put query results to the working memory // location removeFromQueryResults( tuple.getLeapsRule( ).getRule( ).getName( ), tuple ); } else { // time to pull from agenda invalidateActivation( tuple ); } } } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/262c79407ddf88c74a119d85b4090bd0ac4b0cfd/LeapsWorkingMemory.java/clean/drools-core/src/main/java/org/drools/leaps/LeapsWorkingMemory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
8213,
921,
12,
727,
3186,
9766,
3259,
5410,
3259,
16,
27573,
727,
1033,
733,
16,
27573,
727,
1186,
9095,
367,
1042,
25686,
1042,
262,
5411,
1216,
29057,
503,
288,
3639,
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,
918,
741,
8213,
921,
12,
727,
3186,
9766,
3259,
5410,
3259,
16,
27573,
727,
1033,
733,
16,
27573,
727,
1186,
9095,
367,
1042,
25686,
1042,
262,
5411,
1216,
29057,
503,
288,
3639,
33... |
if(userinfo != null) { | if (userinfo != null) { | public Integer getCurrentProject(String sessionId) { Hashtable userinfo = null; Integer currentProject = new Integer(I_CmsConstants.C_PROJECT_ONLINE_ID); userinfo = getUser(sessionId); // this user does exist, so get his current project if(userinfo != null) { currentProject = (Integer)userinfo.get(I_CmsConstants.C_SESSION_PROJECT); if(currentProject == null) { currentProject = new Integer(I_CmsConstants.C_PROJECT_ONLINE_ID); } } return currentProject; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ffc32b76c29173f5c5a234dd285591436e5529e0/CmsCoreSession.java/clean/src/com/opencms/core/CmsCoreSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2144,
5175,
4109,
12,
780,
10338,
13,
288,
3639,
18559,
18297,
273,
446,
31,
3639,
2144,
783,
4109,
273,
394,
2144,
12,
45,
67,
4747,
2918,
18,
39,
67,
17147,
67,
673,
5997,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2144,
5175,
4109,
12,
780,
10338,
13,
288,
3639,
18559,
18297,
273,
446,
31,
3639,
2144,
783,
4109,
273,
394,
2144,
12,
45,
67,
4747,
2918,
18,
39,
67,
17147,
67,
673,
5997,
67,
... |
return false; | return ((ICPPFunction)getTemplateDefinition()).isExtern(); | public boolean isExtern() throws DOMException { // TODO Auto-generated method stub return false; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ef268895ccff277140a6a391744014f9c270eb09/CPPDeferredFunctionInstance.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPDeferredFunctionInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
29764,
1435,
1216,
4703,
503,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
29764,
1435,
1216,
4703,
503,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return new FileResource(this, file.path(), file); | return new FileResource(this, file.getPath(), file); | Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists() && !file.isDirectory()) return new FileResource(this, file.path(), file); } catch (IOException e) { // Fall through... } return null; } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/1eed8c0224f9c58b02d5457b256780af30beddcc/URLClassLoader.java/clean/libjava/java/net/URLClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2591,
5070,
12,
780,
508,
13,
565,
288,
1377,
775,
282,
202,
95,
3196,
225,
1387,
585,
273,
394,
1387,
12,
1214,
16,
508,
2934,
588,
15512,
812,
5621,
3196,
225,
309,
261,
768,
18,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2591,
5070,
12,
780,
508,
13,
565,
288,
1377,
775,
282,
202,
95,
3196,
225,
1387,
585,
273,
394,
1387,
12,
1214,
16,
508,
2934,
588,
15512,
812,
5621,
3196,
225,
309,
261,
768,
18,
18... |
int halcount=getHalogenCount(ac, atomi); if ( halcount== 2) { xlogP += 0.137; }else if (halcount==3){ xlogP += (3*0.137); }else if (halcount==4){ xlogP += (6*0.137); } | int halcount=getHalogenCount(ac, atomi); if ( halcount== 2) { xlogP += 0.137; }else if (halcount==3){ xlogP += (3*0.137); }else if (halcount==4){ xlogP += (6*0.137); } | public DescriptorValue calculate(IAtomContainer ac) throws CDKException { IRingSet rs = (IRingSet) (new AllRingsFinder()).findAllRings(ac); IRingSet atomRingSet=null; if (checkAromaticity) { HueckelAromaticityDetector.detectAromaticity(ac, rs, true); } double xlogP = 0;// SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance()); String symbol = ""; int bondCount = 0; int atomCount = ac.getAtomCount(); int hsCount = 0; double xlogPOld=0; double maxBondOrder = 0; Vector hBondAcceptors=new Vector(); Vector hBondDonors=new Vector(); int checkAminoAcid=1;//if 0 no check, if >1 check IAtom atomi = null; for (int i = 0; i < atomCount; i++) { atomi = (IAtom)ac.getAtom(i); // Problem fused ring systems atomRingSet= rs.getRings(atomi); atomi.setProperty("IS_IN_AROMATIC_RING", new Boolean(false)); atomi.setProperty(CDKConstants.PART_OF_RING_OF_SIZE, new Integer(0)); //System.out.print("atomRingSet.size "+atomRingSet.size()); if (atomRingSet.getAtomContainerCount()>0){ if (atomRingSet.getAtomContainerCount()>1){ ssrf=new SSSRFinder(RingSetManipulator.getAllInOneContainer(atomRingSet)); atomRingSet=ssrf.findEssentialRings(); //System.out.println(" SSSRatomRingSet.size "+atomRingSet.size()); } for (int j=0;j<atomRingSet.getAtomContainerCount();j++){ if (j==0){ atomi.setProperty(CDKConstants.PART_OF_RING_OF_SIZE, new Integer(((IRing)atomRingSet.getAtomContainer(j)).getRingSize())); } if (((IRing)atomRingSet.getAtomContainer(j)).contains(atomi)){ if (((IRing)atomRingSet.getAtomContainer(j)).getRingSize()>=6 && atomi.getFlag(CDKConstants.ISAROMATIC)){ atomi.setProperty("IS_IN_AROMATIC_RING", new Boolean(true)); } if (((IRing)atomRingSet.getAtomContainer(j)).getRingSize()<((Integer)atomi.getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()){ atomi.setProperty(CDKConstants.PART_OF_RING_OF_SIZE, new Integer(((IRing)atomRingSet.getAtomContainer(j)).getRingSize())); } } } }//else{ //System.out.println(); //} } for (int i = 0; i < atomCount; i++) { atomi = (IAtom)ac.getAtom(i); if (xlogPOld==xlogP & i>0 & !symbol.equals("H")){ //System.out.println("\nXlogPAssignmentError: Could not assign atom number:"+(i-1)); } xlogPOld=xlogP; symbol = atomi.getSymbol(); bondCount = ac.getConnectedBondsCount(atomi); hsCount = getHydrogenCount(ac, atomi); maxBondOrder = ac.getMaximumBondOrder(atomi); if (!symbol.equals("H")){ //System.out.print("i:"+i+" Symbol:"+symbol+" "+" bondC:"+bondCount+" Charge:"+atoms[i].getFormalCharge()+" hsC:"+hsCount+" maxBO:"+maxBondOrder+" Arom:"+atoms[i].getFlag(CDKConstants.ISAROMATIC)+" AtomTypeX:"+getAtomTypeXCount(ac, atoms[i])+" PiSys:"+getPiSystemsCount(ac, atoms[i])+" C=:"+getDoubleBondedCarbonsCount(ac, atoms[i])+" AromCc:"+getAromaticCarbonsCount(ac,atoms[i])+" RS:"+((Integer)atoms[i].getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()+"\t"); } if (symbol.equals("C")) { if (bondCount == 2) { // C sp if (hsCount >= 1) { xlogP += 0.209; //System.out.println("XLOGP: 38 0.209"); } else { if (maxBondOrder == 2.0) { xlogP += 2.073; //System.out.println("XLOGP: 40 2.037"); } else if (maxBondOrder == 3.0) { xlogP += 0.33; //System.out.println("XLOGP: 39 0.33"); } } } if (bondCount == 3) { // C sp2 if (((Boolean)atomi.getProperty("IS_IN_AROMATIC_RING")).booleanValue()) { if (getAromaticCarbonsCount(ac, atomi) >= 2 && getAromaticNitrogensCount(ac,atomi)==0) { if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0 ) { xlogP += 0.296; //System.out.println("XLOGP: 34 0.296"); } else { xlogP -= 0.151; //System.out.println("XLOGP: 35 C.ar.x -0.151"); } } else { xlogP += 0.337; //System.out.println("XLOGP: 32 0.337"); } //} else if (getAromaticCarbonsCount(ac, atoms[i]) < 2 && getAromaticNitrogensCount(ac, atoms[i]) > 1) { } else if (getAromaticNitrogensCount(ac, atomi) >= 1) { if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.174; //System.out.println("XLOGP: 36 C.ar.(X) 0.174"); } else { xlogP += 0.366; //System.out.println("XLOGP: 37 0.366"); } } else if (getHydrogenCount(ac, atomi) == 1) { xlogP += 0.126; //System.out.println("XLOGP: 33 0.126"); } } //NOT aromatic, but sp2 } else { if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) <= 1) { xlogP += 0.05; //System.out.println("XLOGP: 26 0.05"); } else { xlogP += 0.013; //System.out.println("XLOGP: 27 0.013"); } } else if (getAtomTypeXCount(ac, atomi) == 1) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.03; //System.out.println("XLOGP: 28 -0.03"); } else { xlogP -= 0.027; //System.out.println("XLOGP: 29 -0.027"); } } else if (getAtomTypeXCount(ac, atomi) == 2) { if (getPiSystemsCount(ac, atomi) ==0) { xlogP += 0.005; //System.out.println("XLOGP: 30 0.005"); } else { xlogP -= 0.315; //System.out.println("XLOGP: 31 -0.315"); } } } if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.466; //System.out.println("XLOGP: 22 0.466"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.136; //System.out.println("XLOGP: 23 0.136"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.001; //System.out.println("XLOGP: 24 0.001"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.31; //System.out.println("XLOGP: 25 -0.31"); } } } if (hsCount == 2) { xlogP += 0.42; //System.out.println("XLOGP: 21 0.42"); } if (getIfCarbonIsHydrophobic(ac, atomi)) { xlogP += 0.211; //System.out.println("XLOGP: Hydrophobic Carbon 0.211"); } }//sp2 NOT aromatic } if (bondCount == 4) { // C sp3 if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.006; //System.out.println("XLOGP: 16 -0.006"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.57; //System.out.println("XLOGP: 17 -0.57"); } if (getPiSystemsCount(ac, atomi) >= 2) { xlogP -= 0.317; //System.out.println("XLOGP: 18 -0.317"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.316; //System.out.println("XLOGP: 19 -0.316"); } else { xlogP -= 0.723; //System.out.println("XLOGP: 20 -0.723"); } } } if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.127; //System.out.println("XLOGP: 10 0.127"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.243; //System.out.println("XLOGP: 11 -0.243"); } if (getPiSystemsCount(ac, atomi) >= 2) { xlogP -= 0.499; //System.out.println("XLOGP: 12 -0.499"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.205; //System.out.println("XLOGP: 13 -0.205"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.305; //System.out.println("XLOGP: 14 -0.305"); } if (getPiSystemsCount(ac, atomi) >= 2) { xlogP -= 0.709; //System.out.println("XLOGP: 15 -0.709"); } } } if (hsCount == 2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.358; //System.out.println("XLOGP: 4 0.358"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.008; //System.out.println("XLOGP: 5 -0.008"); } if (getPiSystemsCount(ac, atomi) == 2) { xlogP -= 0.185; //System.out.println("XLOGP: 6 -0.185"); } } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.137; //System.out.println("XLOGP: 7 -0.137"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.303; //System.out.println("XLOGP: 8 -0.303"); } if (getPiSystemsCount(ac, atomi) == 2) { xlogP -= 0.815; //System.out.println("XLOGP: 9 -0.815"); } } } if (hsCount > 2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.528; //System.out.println("XLOGP: 1 0.528"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.267; //System.out.println("XLOGP: 2 0.267"); } }else{ //if (getNitrogenOrOxygenCount(ac, atomi) == 1) { xlogP -= 0.032; //System.out.println("XLOGP: 3 -0.032"); } } if (getIfCarbonIsHydrophobic(ac, atomi)) { xlogP += 0.211; //System.out.println("XLOGP: Hydrophobic Carbon 0.211"); } }//csp3 }//C if (symbol.equals("N")) { //NO2 if (ac.getBondOrderSum(atomi) >= 3.0 && getOxygenCount(ac, atomi) >= 2 && maxBondOrder==2) { xlogP += 1.178; //System.out.println("XLOGP: 66 1.178"); } else { if (getPresenceOfCarbonil(ac, atomi)>=1) { // amidic nitrogen if (hsCount == 0) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.078; //System.out.println("XLOGP: 57 0.078"); } if (getAtomTypeXCount(ac, atomi) == 1) { xlogP -= 0.118; //System.out.println("XLOGP: 58 -0.118"); } } if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP -= 0.096; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 55 -0.096"); } else { xlogP -= 0.044; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 56 -0.044"); } } if (hsCount == 2) { xlogP -= 0.646; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 54 -0.646"); } } else {//NO amidic nitrogen if (bondCount == 1) { // -C#N if (getCarbonsCount(ac, atomi) == 1) { xlogP -= 0.566; //System.out.println("XLOGP: 68 -0.566"); } }else if (bondCount == 2) { // N sp2 if (((Boolean)atomi.getProperty("IS_IN_AROMATIC_RING")).booleanValue()) { xlogP -= 0.493; //System.out.println("XLOGP: 67 -0.493"); if (checkAminoAcid!=0){ checkAminoAcid+=1;} } else { if (getDoubleBondedCarbonsCount(ac, atomi) == 0) { if (getDoubleBondedNitrogenCount(ac, atomi) == 0) { if (getDoubleBondedOxygenCount(ac, atomi) == 1) { xlogP += 0.427; //System.out.println("XLOGP: 65 0.427"); } } if (getDoubleBondedNitrogenCount(ac, atomi) == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.536; //System.out.println("XLOGP: 63 0.536"); } if (getAtomTypeXCount(ac, atomi) == 1) { xlogP -= 0.597; //System.out.println("XLOGP: 64 -0.597"); } } }else if (getDoubleBondedCarbonsCount(ac, atomi) == 1) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.007; //System.out.println("XLOGP: 59 0.007"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.275; //System.out.println("XLOGP: 60 -0.275"); } }else if (getAtomTypeXCount(ac, atomi) == 1) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.366; //System.out.println("XLOGP: 61 0.366"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.251; //System.out.println("XLOGP: 62 0.251"); } } } } }else if (bondCount == 3) { // N sp3 if (hsCount == 0) { //if (rs.contains(atomi)&&ringSize>3) { if (atomi.getFlag(CDKConstants.ISAROMATIC)|| (rs.contains(atomi)&& ((Integer)atomi.getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()>3 && getPiSystemsCount(ac,atomi)>=1)){ if (getAtomTypeXCount(ac, atomi) == 0) { xlogP += 0.881; //System.out.println("XLOGP: 51 0.881"); } else { xlogP -= 0.01; //System.out.println("XLOGP: 53 -0.01"); } } else { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.159; //System.out.println("XLOGP: 49 0.159"); } if (getPiSystemsCount(ac, atomi) > 0) { xlogP += 0.761; //System.out.println("XLOGP: 50 0.761"); } } else { xlogP -= 0.239; //System.out.println("XLOGP: 52 -0.239"); } } }else if (hsCount == 1) { if (getAtomTypeXCount(ac, atomi) == 0) {// like pyrrole if (atomi.getFlag(CDKConstants.ISAROMATIC)|| (rs.contains(atomi)&& ((Integer)atomi.getProperty(CDKConstants.PART_OF_RING_OF_SIZE)).intValue()>3 && getPiSystemsCount(ac,atomi)>=2)) { xlogP += 0.545; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 46 0.545"); } else { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.112; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 44 -0.112"); } if (getPiSystemsCount(ac, atomi) > 0) { xlogP += 0.166; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 45 0.166"); } } } else { if (rs.contains(atomi)) { xlogP += 0.153; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 48 0.153"); } else { xlogP += 0.324; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 47 0.324"); } } }else if (hsCount == 2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.534; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 41 -0.534"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP -= 0.329; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 42 -0.329"); } if (checkAminoAcid!=0){ checkAminoAcid+=1;} } else { xlogP -= 1.082; hBondDonors.add(new Integer(i)); //System.out.println("XLOGP: 43 -1.082"); } } } } } } if (symbol.equals("O")) { if (bondCount == 1 && maxBondOrder==2.0) { xlogP -= 0.399; if (!getPresenceOfHydroxy(ac,atomi)){ hBondAcceptors.add(new Integer(i)); } //System.out.println("XLOGP: 75 A=O -0.399"); }else if(bondCount == 1 && hsCount==0 && (getPresenceOfNitro(ac,atomi) || getPresenceOfCarbonil(ac,atomi)==1) || getPresenceOfSulfat(ac,atomi)){ xlogP -= 0.399; if (!getPresenceOfHydroxy(ac,atomi)){ hBondAcceptors.add(new Integer(i)); } //System.out.println("XLOGP: 75 A=O -0.399"); }else if (bondCount >= 1) { if (hsCount == 0 && bondCount==2) { if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.084; //System.out.println("XLOGP: 72 R-O-R 0.084"); } if (getPiSystemsCount(ac, atomi) > 0) { xlogP += 0.435; //System.out.println("XLOGP: 73 R-O-R.1 0.435"); } }else if (getAtomTypeXCount(ac, atomi) == 1) { xlogP += 0.105; //System.out.println("XLOGP: 74 R-O-X 0.105"); } }else{ if (getAtomTypeXCount(ac, atomi) == 0) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP -= 0.467; hBondDonors.add(new Integer(i)); hBondAcceptors.add(new Integer(i)); //System.out.println("XLOGP: 69 R-OH -0.467"); } if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.082; hBondDonors.add(new Integer(i)); hBondAcceptors.add(new Integer(i)); //System.out.println("XLOGP: 70 R-OH.1 0.082"); } }else if (getAtomTypeXCount(ac, atomi) == 1) { xlogP -= 0.522; hBondDonors.add(new Integer(i)); hBondAcceptors.add(new Integer(i)); //System.out.println("XLOGP: 71 X-OH -0.522"); } } } } if (symbol.equals("S")) { if ((bondCount == 1 && maxBondOrder==2) || (bondCount == 1 && atomi.getFormalCharge()==-1)) { xlogP -= 0.148; //System.out.println("XLOGP: 78 A=S -0.148"); }else if (bondCount == 2) { if (hsCount == 0) { xlogP += 0.255; //System.out.println("XLOGP: 77 A-S-A 0.255"); } else { xlogP += 0.419; //System.out.println("XLOGP: 76 A-SH 0.419"); } }else if (bondCount == 3) { if (getOxygenCount(ac, atomi) >= 1) { xlogP -= 1.375; //System.out.println("XLOGP: 79 A-SO-A -1.375"); } }else if (bondCount == 4) { if (getDoubleBondedOxygenCount(ac, atomi) >= 2) { xlogP -= 0.168; //System.out.println("XLOGP: 80 A-SO2-A -0.168"); } } } if (symbol.equals("P")) { if (getDoubleBondedSulfurCount(ac, atomi) >= 1 && bondCount>=4) { xlogP += 1.253; //System.out.println("XLOGP: 82 S=PA3 1.253"); }else if (getOxygenCount(ac,atomi)>=1 || getDoubleBondedOxygenCount(ac, atomi) == 1 && bondCount>=4) { xlogP -= 0.447; //System.out.println("XLOGP: 81 O=PA3 -0.447"); } } if (symbol.equals("F")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.375; //System.out.println("XLOGP: 83 F.0 0.512"); }else if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.202; //System.out.println("XLOGP: 84 F.1 0.202"); } } if (symbol.equals("Cl")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.512; //System.out.println("XLOGP: 85 Cl.0 0.512"); }else if (getPiSystemsCount(ac, atomi) >= 1) { xlogP += 0.663; //System.out.println("XLOGP: 86 Cl.1 0.663"); } } if (symbol.equals("Br")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 0.85; //System.out.println("XLOGP: 87 Br.0 0.85"); }else if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 0.839; //System.out.println("XLOGP: 88 Br.1 0.839"); } } if (symbol.equals("I")) { if (getPiSystemsCount(ac, atomi) == 0) { xlogP += 1.05; //System.out.println("XLOGP: 89 I.0 1.05"); }else if (getPiSystemsCount(ac, atomi) == 1) { xlogP += 1.109; //System.out.println("XLOGP: 90 I.1 1.109"); } }// Halogen pair 1-3 int halcount=getHalogenCount(ac, atomi); if ( halcount== 2) { xlogP += 0.137; //System.out.println("XLOGP: Halogen 1-3 pair 0.137"); }else if (halcount==3){ xlogP += (3*0.137); //System.out.println("XLOGP: Halogen 1-3 pair 0.411"); }else if (halcount==4){ xlogP += (6*0.137); //System.out.println("XLOGP: Halogen 1-3 pair 1.902"); }// sp2 Oxygen 1-5 pair if (getPresenceOfCarbonil(ac, atomi) == 2) {// sp2 oxygen 1-5 pair if(!rs.contains(atomi)) { xlogP += 0.580; //System.out.println("XLOGP: sp2 Oxygen 1-5 pair 0.580"); } } } //System.out.println("XLOGP: Before Correction:"+xlogP); List path=null; SimpleGraph moleculeGraph=null; int [][] pairCheck=null;// //System.out.println("Acceptors:"+hBondAcceptors.size()+" Donors:"+hBondDonors.size()); if (hBondAcceptors.size()>0 && hBondDonors.size()>0){ moleculeGraph=MoleculeGraphs.getMoleculeGraph(ac); pairCheck=initializeHydrogenPairCheck(new int[atomCount][atomCount]); } for (int i=0; i<hBondAcceptors.size();i++){ for (int j=0; j<hBondDonors.size();j++){ if (checkRingLink(rs,ac,ac.getAtom(((Integer)hBondAcceptors.get(i)).intValue())) || checkRingLink(rs,ac,ac.getAtom(((Integer)hBondDonors.get(j)).intValue()))){ path=BFSShortestPath.findPathBetween(moleculeGraph,ac.getAtom(((Integer)hBondAcceptors.get(i)).intValue()), ac.getAtom(((Integer)hBondDonors.get(j)).intValue()));// //System.out.println(" Acc:"+checkRingLink(rs,ac,atoms[((Integer)hBondAcceptors.get(i)).intValue()])// +" S:"+atoms[((Integer)hBondAcceptors.get(i)).intValue()].getSymbol()// +" Nr:"+((Integer)hBondAcceptors.get(i)).intValue()// +" Don:"+checkRingLink(rs,ac,atoms[((Integer)hBondDonors.get(j)).intValue()])// +" S:"+atoms[((Integer)hBondDonors.get(j)).intValue()].getSymbol()// +" Nr:"+((Integer)hBondDonors.get(j)).intValue()// +" i:"+i+" j:"+j+" path:"+path.size()); if (checkRingLink(rs,ac,ac.getAtom(((Integer)hBondAcceptors.get(i)).intValue())) && checkRingLink(rs,ac,ac.getAtom(((Integer)hBondDonors.get(j)).intValue()))){ if (path.size()==3 && pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]==0){ xlogP += 0.429; pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]=1; pairCheck[((Integer)hBondDonors.get(j)).intValue()][((Integer)hBondAcceptors.get(i)).intValue()]=1; //System.out.println("XLOGP: Internal HBonds 1-4 0.429"); } }else{ if (path.size()==4 && pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]==0){ xlogP += 0.429; pairCheck[((Integer)hBondAcceptors.get(i)).intValue()][((Integer)hBondDonors.get(j)).intValue()]=1; pairCheck[((Integer)hBondDonors.get(j)).intValue()][((Integer)hBondAcceptors.get(i)).intValue()]=1; //System.out.println("XLOGP: Internal HBonds 1-5 0.429"); } } } } } if (checkAminoAcid>1){// alpha amino acid QueryAtomContainer aminoAcid = QueryAtomContainerCreator.createBasicQueryContainer( createAminoAcid(ac.getBuilder()) ); IBond [] bonds=aminoAcid.getBonds(); IAtom bondAtom0=null; IAtom bondAtom1=null; for (int i=0;i<bonds.length;i++){ bondAtom0=bonds[i].getAtom(0); bondAtom1=bonds[i].getAtom(1); if ((bondAtom0.getSymbol().equals("C") && bondAtom1.getSymbol().equals("N")) || (bondAtom0.getSymbol().equals("N") && bondAtom1.getSymbol().equals("C"))&& bonds[i].getOrder()==1){ aminoAcid.removeBond(bondAtom0,bondAtom1); aminoAcid.addBond(new AnyOrderQueryBond((IQueryAtom)bondAtom0,(IQueryAtom)bondAtom1,1)); break; } } //AtomContainer aminoacid = sp.parseSmiles("NCC(=O)O"); if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, aminoAcid)) { List list = UniversalIsomorphismTester.getSubgraphAtomsMap((org.openscience.cdk.AtomContainer)ac, aminoAcid); RMap map = null; IAtom atom1=null; for (int j = 0; j < list.size(); j++){ map = (RMap) list.get(j); atom1 = ac.getAtom(map.getId1()); if (atom1.getSymbol().equals("O")&& ac.getMaximumBondOrder(atom1)==1){ if (ac.getConnectedBondsCount(atom1)==2 && getHydrogenCount(ac, atom1)==0){ }else{ xlogP -= 2.166; //System.out.println("XLOGP: alpha amino acid -2.166"); break; } } } } } IAtomContainer paba = createPaba(ac.getBuilder()); // p-amino sulphonic acid if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, paba)) { xlogP -= 0.501; //System.out.println("XLOGP: p-amino sulphonic acid -0.501"); } // salicylic acid if (salicylFlag){ IAtomContainer salicilic = createSalicylicAcid(ac.getBuilder()); if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, salicilic)) { xlogP += 0.554; //System.out.println("XLOGP: salicylic acid 0.554"); } } // ortho oxygen pair //AtomContainer orthopair = sp.parseSmiles("OCCO"); QueryAtomContainer orthopair=new QueryAtomContainer(); AromaticAtom atom1=new AromaticAtom(); atom1.setSymbol("C"); AromaticAtom atom2=new AromaticAtom(); atom2.setSymbol("C"); SymbolQueryAtom atom3=new SymbolQueryAtom(); atom3.setSymbol("O"); SymbolQueryAtom atom4=new SymbolQueryAtom(); atom4.setSymbol("O"); orthopair.addBond(new AromaticQueryBond(atom1,atom2,1.5)); orthopair.addBond(new OrderQueryBond(atom1,atom3,1)); orthopair.addBond(new OrderQueryBond(atom2,atom4,1)); if (UniversalIsomorphismTester.isSubgraph((org.openscience.cdk.AtomContainer)ac, orthopair)) { xlogP -= 0.268; //System.out.println("XLOGP: Ortho oxygen pair -0.268"); } return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(xlogP), new String[] {"XLogP"}); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/XLogPDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12823,
620,
4604,
12,
45,
3641,
2170,
1721,
13,
1216,
24570,
288,
202,
202,
7937,
310,
694,
3597,
273,
261,
7937,
310,
694,
13,
261,
2704,
4826,
54,
899,
8441,
1435,
2934,
472... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12823,
620,
4604,
12,
45,
3641,
2170,
1721,
13,
1216,
24570,
288,
202,
202,
7937,
310,
694,
3597,
273,
261,
7937,
310,
694,
13,
261,
2704,
4826,
54,
899,
8441,
1435,
2934,
472... |
configurePacingInterval(); | configureMaxBatchSize(); | public void actionPropertySetChanged(PropertySet source) throws UnsupportedQoS { configurePacingInterval(); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/e4871f5bcac14ea12a2f8421b413d20704bfaf16/SequenceProxyPushSupplierImpl.java/buggy/src/org/jacorb/notification/servant/SequenceProxyPushSupplierImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1301,
1396,
694,
5033,
12,
1396,
694,
1084,
13,
1216,
7221,
53,
31605,
5411,
288,
7734,
5068,
2747,
23304,
5621,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
2398,
1071,
918,
1301,
1396,
694,
5033,
12,
1396,
694,
1084,
13,
1216,
7221,
53,
31605,
5411,
288,
7734,
5068,
2747,
23304,
5621,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
jj_la1[17] = jj_gen; | jj_la1[19] = jj_gen; | final public void IntegerRange() throws ParseException { /*@bgen(jjtree) IntegerRange */ ASTIntegerRange jjtn000 = new ASTIntegerRange(this, JJTINTEGERRANGE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(LBRACKET); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHITESPACE: jj_consume_token(WHITESPACE); break; default: jj_la1[12] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: case LCURLY: Reference(); break; case NUMBER_LITERAL: NumberLiteral(); break; default: jj_la1[13] = 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[14] = jj_gen; ; } jj_consume_token(DOUBLEDOT); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WHITESPACE: jj_consume_token(WHITESPACE); break; default: jj_la1[15] = jj_gen; ; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: case LCURLY: Reference(); break; case NUMBER_LITERAL: NumberLiteral(); break; default: jj_la1[16] = 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[17] = jj_gen; ; } jj_consume_token(RBRACKET); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 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,
2144,
2655,
1435,
1216,
10616,
288,
15604,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
2144,
2655,
1195,
225,
9183,
4522,
2655,
10684,
5088,
3784,
273,
394,
9183,
4522,
2655... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2144,
2655,
1435,
1216,
10616,
288,
15604,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
2144,
2655,
1195,
225,
9183,
4522,
2655,
10684,
5088,
3784,
273,
394,
9183,
4522,
2655... |
public ConsoleOutputStream getOutputStream() { | public ConsoleOutputStream getOutputStream() throws CoreException { | public ConsoleOutputStream getOutputStream() { return fConsoleManager.getConsole(project).getOutputStream(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/2989ee45370f5cde2cd03c5f3f5cca843930de8c/CBuildConsole.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/buildconsole/CBuildConsole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9657,
4632,
22553,
1435,
288,
202,
202,
2463,
284,
10215,
1318,
18,
588,
10215,
12,
4406,
2934,
588,
4632,
5621,
202,
97,
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,
0,
0,
0,
0,
0,
0,
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,
9657,
4632,
22553,
1435,
288,
202,
202,
2463,
284,
10215,
1318,
18,
588,
10215,
12,
4406,
2934,
588,
4632,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public boolean hasNext() { return iter.hasNext(); } public VertexType next() { return iter.next().getSource(); } public void remove() { iter.remove(); } | public boolean hasNext() { return iter.hasNext(); } public VertexType next() { return iter.next().getSource(); } public void remove() { iter.remove(); } | public Iterator<VertexType> predecessorIterator(final VertexType target) { return new Iterator<VertexType>() { private Iterator<EdgeType> iter = incomingEdgeIterator(target); public boolean hasNext() { return iter.hasNext(); } public VertexType next() { return iter.next().getSource(); } public void remove() { iter.remove(); } }; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/AbstractGraph.java/clean/findbugs/src/java/edu/umd/cs/findbugs/graph/AbstractGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4498,
32,
6475,
559,
34,
24282,
3198,
12,
6385,
12541,
559,
1018,
13,
288,
202,
202,
2463,
394,
4498,
32,
6475,
559,
34,
1435,
288,
1082,
202,
1152,
4498,
32,
6098,
559,
34,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4498,
32,
6475,
559,
34,
24282,
3198,
12,
6385,
12541,
559,
1018,
13,
288,
202,
202,
2463,
394,
4498,
32,
6475,
559,
34,
1435,
288,
1082,
202,
1152,
4498,
32,
6098,
559,
34,
... |
MM_PP_DISCOVERY_PROFILE_ID, false); | profileInstance.getProfile().getId(), false); | protected void calculateEntriesDynamically(final IProject project, SCProfileInstance profileInstance, final IScannerInfoCollector collector) { // TODO Get the provider from the toolchain specification final IScannerConfigBuilderInfo2 buildInfo = ScannerConfigProfileManager. createScannerConfigBuildInfo2(MakeCorePlugin.getDefault().getPluginPreferences(), MM_PP_DISCOVERY_PROFILE_ID, false); final IExternalScannerInfoProvider esiProvider = profileInstance.createExternalScannerInfoProvider(SPECS_FILE_PROVIDER); // Set the arguments for the provider ISafeRunnable runnable = new ISafeRunnable() { public void run() { IProgressMonitor monitor = new NullProgressMonitor(); esiProvider.invokeProvider(monitor, project, SPECS_FILE_PROVIDER, buildInfo, collector); } public void handleException(Throwable exception) { if (exception instanceof OperationCanceledException) { throw (OperationCanceledException) exception; } } }; Platform.run(runnable); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2aae3af85f6e18eafd1daf6b3b633c0efda2967f/ManagedBuildCPathEntryContainer.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/ManagedBuildCPathEntryContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4604,
5400,
9791,
1230,
12,
6385,
467,
4109,
1984,
16,
4766,
7734,
8795,
4029,
1442,
3042,
1442,
16,
4766,
7734,
727,
467,
11338,
966,
7134,
8543,
13,
288,
202,
202,
759,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4604,
5400,
9791,
1230,
12,
6385,
467,
4109,
1984,
16,
4766,
7734,
8795,
4029,
1442,
3042,
1442,
16,
4766,
7734,
727,
467,
11338,
966,
7134,
8543,
13,
288,
202,
202,
759,
... |
String url = VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, file.getAbsolutePath().replace(File.separatorChar, '/')); | String url = VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, file.getAbsolutePath().replace(File.separatorChar, '/')); | public VirtualFile compute() { String url = VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, file.getAbsolutePath().replace(File.separatorChar, '/')); return VirtualFileManager.getInstance().findFileByUrl(url); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/f815bc91a0ccfd60fe02336070d85d81209aad84/AntBuildMessageView.java/clean/plugins/ant/src/com/intellij/lang/ant/config/execution/AntBuildMessageView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
7269,
812,
3671,
1435,
288,
2868,
514,
880,
273,
7269,
812,
1318,
18,
10062,
1489,
12,
2042,
11785,
18,
16850,
16,
585,
18,
588,
10368,
743,
7675,
2079,
12,
812,
18,
11287,
2156,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
7269,
812,
3671,
1435,
288,
2868,
514,
880,
273,
7269,
812,
1318,
18,
10062,
1489,
12,
2042,
11785,
18,
16850,
16,
585,
18,
588,
10368,
743,
7675,
2079,
12,
812,
18,
11287,
2156,
... |
public void selectDBConnection(ArchitectDataSource ds) { databaseDropdown.setSelectedItem(ds); } | 53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/821f8b183e315e64240df330c64b71e323dc5ac5/CompareDMPanel.java/clean/src/ca/sqlpower/architect/swingui/CompareDMPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2027,
2290,
1952,
12,
12269,
15004,
8597,
3780,
13,
288,
6647,
2063,
23947,
18,
542,
7416,
1180,
12,
2377,
1769,
10792,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2027,
2290,
1952,
12,
12269,
15004,
8597,
3780,
13,
288,
6647,
2063,
23947,
18,
542,
7416,
1180,
12,
2377,
1769,
10792,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
buffer .append(string.substring(0, index)) .append("<a href=\"") .append(url) .append("\">") .append(url) .append("</a>"); | buffer.append(work.substring(0, index)).append("<a href=\"").append(url).append("\">").append(url).append( "</a>"); | public static String autoLink(String string) { if (string == null || string.length() == 0) { return string; } int index = -1; StringBuffer buffer = new StringBuffer(); // First check for email addresses. while ((index = string.indexOf("@")) != -1) { int start = 0; int end = string.length() - 1; // scan backwards... for (int j = index; j >= 0; j--) { if (Character.isWhitespace(string.charAt(j))) { start = j + 1; break; } } // scan forwards... for (int j = index; j <= end; j++) { if (Character.isWhitespace(string.charAt(j))) { end = j - 1; break; } } String email = string.substring(start, end + 1); buffer .append(string.substring(0, start)) .append("<a href=\"mailto:") .append(email + "\">") .append(email) .append("</a>"); if (end == string.length()) { string = ""; } else { string = string.substring(end + 1); } } string = buffer.toString() + string; buffer = new StringBuffer(); // Now check for urls... while ((index = string.indexOf(URL_HTTP)) != -1) { int end = string.length() - 1; // scan forwards... for (int j = index; j <= end; j++) { if (Character.isWhitespace(string.charAt(j))) { end = j - 1; break; } } String url = string.substring(index, end + 1); buffer .append(string.substring(0, index)) .append("<a href=\"") .append(url) .append("\">") .append(url) .append("</a>"); if (end == string.length()) { string = ""; } else { string = string.substring(end + 1); } } buffer.append(string); return buffer.toString(); } | 10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/1b58325da0459620bdc110ac37a48c034e65bf21/LinkUtil.java/buggy/displaytag/src/main/java/org/displaytag/util/LinkUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3656,
2098,
12,
780,
533,
13,
565,
288,
3639,
309,
261,
1080,
422,
446,
747,
533,
18,
2469,
1435,
422,
374,
13,
3639,
288,
5411,
327,
533,
31,
3639,
289,
3639,
509,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
3656,
2098,
12,
780,
533,
13,
565,
288,
3639,
309,
261,
1080,
422,
446,
747,
533,
18,
2469,
1435,
422,
374,
13,
3639,
288,
5411,
327,
533,
31,
3639,
289,
3639,
509,
77... |
throw ScriptRuntime.typeError1("msg.incompat.call", f.functionName); | throw ScriptRuntime.typeError1("msg.incompat.call", f.getFunctionName()); | private BaseFunction realFunction(Scriptable thisObj, IdFunctionObject f) { Object x = thisObj.getDefaultValue(ScriptRuntime.FunctionClass); if (x instanceof BaseFunction) { return (BaseFunction)x; } throw ScriptRuntime.typeError1("msg.incompat.call", f.functionName); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/271fb8a31366d1ed2d5e5b21b321497a48f75694/BaseFunction.java/clean/src/org/mozilla/javascript/BaseFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3360,
2083,
2863,
2083,
12,
3651,
429,
15261,
16,
3124,
2083,
921,
284,
13,
565,
288,
3639,
1033,
619,
273,
15261,
18,
588,
15646,
12,
3651,
5576,
18,
2083,
797,
1769,
3639,
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,
3360,
2083,
2863,
2083,
12,
3651,
429,
15261,
16,
3124,
2083,
921,
284,
13,
565,
288,
3639,
1033,
619,
273,
15261,
18,
588,
15646,
12,
3651,
5576,
18,
2083,
797,
1769,
3639,
309,
... |
Message req = DMT.createFNPInsertRequest(uid, htl, myKey); | Message req = DMT.createFNPInsertRequest(uid, htl, myKey, closestLocation); | public void run() { short origHTL = htl; try { HashSet nodesRoutedTo = new HashSet(); while(true) { if(receiveFailed) return; // don't need to set status as killed by InsertHandler if(htl == 0) { // Send an InsertReply back finish(SUCCESS); return; } // Route it PeerNode next; // Can backtrack, so only route to nodes closer than we are to target. double nextValue; synchronized(node.peers) { next = node.peers.closerPeer(source, nodesRoutedTo, target, source == null); if(next != null) nextValue = next.getLocation().getValue(); else nextValue = -1.0; } if(next == null) { // Backtrack finish(ROUTE_NOT_FOUND); return; } Logger.minor(this, "Routing insert to "+next); nodesRoutedTo.add(next); if(Math.abs(target - nextValue) > Math.abs(target - closestLocation)) { Logger.minor(this, "Backtracking: target="+target+" next="+nextValue+" closest="+closestLocation); htl = node.decrementHTL(source, htl); } Message req = DMT.createFNPInsertRequest(uid, htl, myKey); // Wait for ack or reject... will come before even a locally generated DataReply MessageFilter mfAccepted = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPAccepted); MessageFilter mfRejectedLoop = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedLoop); MessageFilter mfRejectedOverload = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(ACCEPTED_TIMEOUT).setType(DMT.FNPRejectedOverload); // mfRejectedOverload must be the last thing in the or // So its or pointer remains null // Otherwise we need to recreate it below MessageFilter mf = mfAccepted.or(mfRejectedLoop.or(mfRejectedOverload)); mfRejectedOverload.clearOr(); // Send to next node next.send(req); if(receiveFailed) return; // don't need to set status as killed by InsertHandler Message msg; try { msg = node.usm.waitFor(mf); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from "+next+" while waiting for Accepted"); continue; } if(receiveFailed) return; // don't need to set status as killed by InsertHandler if(msg == null) { // No response, move on continue; } if(msg.getSpec() == DMT.FNPRejectedLoop) { // Loop - we don't want to send the data to this one continue; } if(msg.getSpec() == DMT.FNPRejectedOverload) { // Overload... hmmmm - propagate error back to source Logger.error(this, "Propagating "+msg+" back to source on "+this); finish(REJECTED_OVERLOAD); return; } // Otherwise must be an Accepted // Send them the data. // Which might be the new data resulting from a collision... BlockTransmitter bt; Message dataInsert; PartiallyReceivedBlock prbNow; prbNow = prb; dataInsert = DMT.createFNPDataInsert(uid, headers); bt = new BlockTransmitter(node.usm, next, uid, prbNow); /** What are we waiting for now??: * - FNPRouteNotFound - couldn't exhaust HTL, but send us the * data anyway please * - FNPInsertReply - used up all HTL, yay * - FNPRejectOverload - propagating an overload error :( * - FNPDataFound - target already has the data, and the data is * an SVK/SSK/KSK, therefore could be different to what we are * inserting. */ MessageFilter mfRNF = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPRouteNotFound); MessageFilter mfInsertReply = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPInsertReply); mfRejectedOverload.setTimeout(PUT_TIMEOUT); MessageFilter mfRouteNotFound = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPRouteNotFound); MessageFilter mfDataInsertRejected = MessageFilter.create().setSource(next).setField(DMT.UID, uid).setTimeout(PUT_TIMEOUT).setType(DMT.FNPDataInsertRejected); mf = mfRNF.or(mfInsertReply.or(mfRouteNotFound.or(mfDataInsertRejected.or(mfRejectedOverload.setTimeout(PUT_TIMEOUT))))); Logger.minor(this, "Sending DataInsert"); if(receiveFailed) return; next.send(dataInsert); Logger.minor(this, "Sending data"); if(receiveFailed) return; bt.send(); Logger.minor(this, "Sent data"); if(receiveFailed) return; try { msg = node.usm.waitFor(mf); } catch (DisconnectedException e) { Logger.normal(this, "Disconnected from "+next+" while waiting for InsertReply on "+this); continue; } if(receiveFailed) return; if(msg == null) { // Timeout :( // Fairly serious problem Logger.error(this, "Timeout after Accepted in insert"); // Treat as rejected-overload finish(REJECTED_OVERLOAD); return; } if(msg.getSpec() == DMT.FNPRejectedOverload) { Logger.minor(this, "Rejected due to overload"); finish(REJECTED_OVERLOAD); return; } if(msg.getSpec() == DMT.FNPRouteNotFound) { Logger.minor(this, "Rejected: RNF"); // Still gets the data - but not yet short newHtl = msg.getShort(DMT.HTL); if(htl > newHtl) htl = newHtl; continue; } if(msg.getSpec() == DMT.FNPDataInsertRejected) { short reason = msg.getShort(DMT.DATA_INSERT_REJECTED_REASON); Logger.minor(this, "DataInsertRejected: "+reason); if(reason == DMT.DATA_INSERT_REJECTED_VERIFY_FAILED) { if(fromStore) { // That's odd... Logger.error(this, "Verify failed on next node "+next+" for DataInsert but we were sending from the store!"); } else { try { if(!prb.allReceived()) Logger.error(this, "Did not receive all packets but next node says invalid anyway!"); else { // Check the data new CHKBlock(prb.getBlock(), headers, myKey); Logger.error(this, "Verify failed on "+next+" but data was valid!"); } } catch (CHKVerifyException e) { Logger.normal(this, "Verify failed because data was invalid"); } } continue; // What else can we do? } else if(reason == DMT.DATA_INSERT_REJECTED_RECEIVE_FAILED) { if(receiveFailed) { Logger.minor(this, "Failed to receive data, so failed to send data"); } else { if(prb.allReceived()) { Logger.error(this, "Received all data but send failed to "+next); } else { if(prb.isAborted()) { Logger.normal(this, "Send failed: aborted: "+prb.getAbortReason()+": "+prb.getAbortDescription()); } else Logger.normal(this, "Send failed; have not yet received all data but not aborted: "+next); } } continue; } Logger.error(this, "DataInsert rejected! Reason="+DMT.getDataInsertRejectedReason(reason)); } // Otherwise should be an InsertReply // Our task is complete finish(SUCCESS); return; } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); } finally { node.completed(uid); node.removeInsertSender(myKey, origHTL, this); } } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/1f477f2c2fc4d16e27b069d0ef2683e3b258e83a/InsertSender.java/clean/src/freenet/node/InsertSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
3025,
1647,
5062,
48,
273,
366,
6172,
31,
3639,
775,
288,
3639,
6847,
2199,
4583,
329,
774,
273,
394,
6847,
5621,
7734,
1323,
12,
3767,
13,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
3025,
1647,
5062,
48,
273,
366,
6172,
31,
3639,
775,
288,
3639,
6847,
2199,
4583,
329,
774,
273,
394,
6847,
5621,
7734,
1323,
12,
3767,
13,
288,
5411,
... |
if (log.isDebugEnabled()) log.debug("Busy goes false with state WRITING_FIRST"); | if (log.isDebugEnabled()) log.debug("CV "+getCvNum()+","+getSecondCvNum()+" Busy goes false with state WRITING_FIRST"); | public void propertyChange(java.beans.PropertyChangeEvent e) { if (log.isDebugEnabled()) log.debug("property changed event - name: " +e.getPropertyName()); // notification from CV; check for Value being changed if (e.getPropertyName().equals("Busy") && ((Boolean)e.getNewValue()).equals(Boolean.FALSE)) { // busy transitions drive the state switch (_progState) { case IDLE: // no, just a CV update if (log.isDebugEnabled()) log.error("Busy goes false with state IDLE"); return; case READING_FIRST: // read first CV, now read second if (log.isDebugEnabled()) log.debug("Busy goes false with state READING_FIRST"); _progState = READING_SECOND; ((CvValue)_cvVector.elementAt(getSecondCvNum())).read(_status); return; case READING_SECOND: // finally done, set not busy if (log.isDebugEnabled()) log.debug("Busy goes false with state READING_SECOND"); _progState = IDLE; ((CvValue)_cvVector.elementAt(getCvNum())).setState(READ); ((CvValue)_cvVector.elementAt(getSecondCvNum())).setState(READ); //super.setState(READ); setBusy(false); return; case WRITING_FIRST: // no, just a CV update if (log.isDebugEnabled()) log.debug("Busy goes false with state WRITING_FIRST"); _progState = WRITING_SECOND; ((CvValue)_cvVector.elementAt(getSecondCvNum())).write(_status); return; case WRITING_SECOND: // now done with complete request if (log.isDebugEnabled()) log.debug("Busy goes false with state WRITING_SECOND"); _progState = IDLE; super.setState(STORED); setBusy(false); return; default: // unexpected! log.error("Unexpected state found: "+_progState); _progState = IDLE; return; } } else if (e.getPropertyName().equals("State")) { CvValue cv = (CvValue)_cvVector.elementAt(getCvNum()); if (log.isDebugEnabled()) log.debug("CV State changed to "+cv.getState()); setState(cv.getState()); } else if (e.getPropertyName().equals("Value")) { // update value of Variable CvValue cv0 = (CvValue)_cvVector.elementAt(getCvNum()); CvValue cv1 = (CvValue)_cvVector.elementAt(getSecondCvNum()); int newVal = ((cv0.getValue()&lowerbitmask) >> lowerbitoffset) + (((cv1.getValue()&upperbitmask)*256)>>upperbitoffset); if (log.isDebugEnabled()) log.debug("set value to "+newVal+" based on cv0="+cv0.getValue()+" cv1="+cv1.getValue()); setValue(newVal); // check for duplicate done inside setVal // state change due to CV state change, so propagate that setState(cv0.getState()); // see if this was a read or write operation switch (_progState) { case IDLE: // no, just a CV update if (log.isDebugEnabled()) log.debug("Value changed with state IDLE"); return; case READING_FIRST: // yes, now read second if (log.isDebugEnabled()) log.debug("Value changed with state READING_FIRST"); return; case READING_SECOND: // now done with complete request if (log.isDebugEnabled()) log.debug("Value changed with state READING_SECOND"); return; default: // unexpected! log.error("Unexpected state found: "+_progState); _progState = IDLE; return; } } } | 213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/4f6cc3462d641dd1c34a86e68c95eac1c3b6e35a/SplitVariableValue.java/clean/jmri/jmrit/symbolicprog/SplitVariableValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1272,
3043,
12,
6290,
18,
2196,
634,
18,
1396,
20930,
425,
13,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
4468,
3550,
871,
300,
508,
30,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1272,
3043,
12,
6290,
18,
2196,
634,
18,
1396,
20930,
425,
13,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
4468,
3550,
871,
300,
508,
30,
315,... |
super(); this.application = application; } | super(); this.application = application; } | public GrailsRuntimeConfigurator(GrailsApplication application) { super(); this.application = application; } | 28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/19601f65169b576936ff7d5084709da10ec6a748/GrailsRuntimeConfigurator.java/clean/src/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfigurator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10812,
14573,
5576,
17182,
12,
14571,
14573,
3208,
2521,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
3685,
273,
2521,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10812,
14573,
5576,
17182,
12,
14571,
14573,
3208,
2521,
13,
288,
202,
202,
9565,
5621,
202,
202,
2211,
18,
3685,
273,
2521,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throw new Error(JaiI18N.getString("TIFFFaxDecoder2")); | throw new RuntimeException(JaiI18N.getString("TIFFFaxDecoder2")); | private int decodeBlackCodeWord() { int current, entry, bits, isT, twoBits, code = -1; int runLength = 0; boolean isWhite = false; while (!isWhite) { current = nextLesserThan8Bits(4); entry = initBlack[current]; // Get the 3 fields from the entry isT = entry & 0x0001; bits = (entry >>> 1) & 0x000f; code = (entry >>> 5) & 0x07ff; if (code == 100) { current = nextNBits(9); entry = black[current]; // Get the 3 fields from the entry isT = entry & 0x0001; bits = (entry >>> 1) & 0x000f; code = (entry >>> 5) & 0x07ff; if (bits == 12) { // Additional makeup codes updatePointer(5); current = nextLesserThan8Bits(4); entry = additionalMakeup[current]; bits = (entry >>> 1) & 0x07; // 3 bits 0000 0111 code = (entry >>> 4) & 0x0fff; // 12 bits runLength += code; updatePointer(4 - bits); } else if (bits == 15) { // EOL code throw new Error(JaiI18N.getString("TIFFFaxDecoder2")); } else { runLength += code; updatePointer(9 - bits); if (isT == 0) { isWhite = true; } } } else if (code == 200) { // Is a Terminating code current = nextLesserThan8Bits(2); entry = twoBitBlack[current]; code = (entry >>> 5) & 0x07ff; runLength += code; bits = (entry >>> 1) & 0x0f; updatePointer(2 - bits); isWhite = true; } else { // Is a Terminating code runLength += code; updatePointer(4 - bits); isWhite = true; } } return runLength; } | 49628 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49628/681f368f1c05fbaff3a23313e9f1484aef7549a0/TIFFFaxDecoder.java/clean/src/share/classes/com/sun/media/jai/codecimpl/TIFFFaxDecoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2495,
13155,
1085,
3944,
1435,
288,
202,
474,
783,
16,
1241,
16,
4125,
16,
353,
56,
16,
2795,
6495,
16,
981,
273,
300,
21,
31,
3639,
509,
1086,
1782,
273,
374,
31,
202,
649... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2495,
13155,
1085,
3944,
1435,
288,
202,
474,
783,
16,
1241,
16,
4125,
16,
353,
56,
16,
2795,
6495,
16,
981,
273,
300,
21,
31,
3639,
509,
1086,
1782,
273,
374,
31,
202,
649... |
public IRubyObject op_cmp(IRubyObject obj) { if (this == obj) { return getRuntime().newFixnum(0); } if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError( "<=> requires Class or Module (" + getMetaClass().getName() + " given)"); } RubyModule module = (RubyModule)obj; if (module.isKindOfModule(this)) { return getRuntime().newFixnum(1); } else if (this.isKindOfModule(module)) { return getRuntime().newFixnum(-1); } return getRuntime().getNil(); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1081,
13,
288,
4202,
309,
261,
2211,
422,
1081,
13,
288,
6647,
327,
18814,
7675,
2704,
8585,
2107,
12,
20,
1769,
4202,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1081,
13,
288,
4202,
309,
261,
2211,
422,
1081,
13,
288,
6647,
327,
18814,
7675,
2704,
8585,
2107,
12,
20,
1769,
4202,
289,
... | ||
info (getName ()+ " mapping " + taskKey + " to " + subtask.getUID()); | info (getName ()+ " mapping " + taskKey + " to " + subtask.getUID() + " mptask " + mpTask.getUID()); | public void makePlanElement (Vector tasklist, Asset anAsset, Date start, Date end, Date setupStart, Date wrapupEnd, boolean assetWasUsedBefore) { if (assetWasUsedBefore) { if (addToPrevious (tasklist, anAsset, start, end, setupStart, wrapupEnd)) return; else { warn ("Though we believe " + anAsset + " was used before at " + start + " we could not find the previous task, so making a new one."); } } List aggResults = aggregateHelper.makeAggregation(this, ldmf, realityPlan, tasklist, getVerbForAgg(tasklist), getPrepPhrasesForAgg(anAsset, tasklist), getDirectObjectsForAgg(tasklist), getPreferencesForAgg(anAsset, tasklist, start, end), getAgentIdentifier(), getAspectValuesMap(tasklist, start, end), allocHelper.MEDIUM_CONFIDENCE); publishList(aggResults); cleanupAggregation(anAsset, tasklist, aggResults); Task mpTask = findMPTask (aggResults); // store each distinct assignment so we can get it later in addToPrevious // // Bug #11866: // // The problem (https://bugs.ultralog.net/show_bug.cgi?id=11866) is that // addToPrevious initially looks on the role schedule for mptasks assigned to an asset. // BUT the allocator plugin has to get a chance to run to update the role schedule. So // it may seem like no previous task has been assigned, if you just look at the role schedule, // even though the assignment has been made (an MPTask created) but not yet reflected in // the role schedule via an allocation. This results in multiple MPTasks being made for the same // mission - the same conveyance and for the same period of time. // // We need to remember the assignment locally through a map to avoid this problem. if (assetWasUsedBefore) { warn ("asset was used before, but made a new mptask : " + mpTask.getUID()); } Collection subtasks = makeSetupWrapupExpansion (mpTask, anAsset, start, end, setupStart, wrapupEnd); for (Iterator iter = subtasks.iterator(); iter.hasNext(); ) { Task subtask = (Task) iter.next(); String taskKey = anAsset.getUID().toString() + "-" + prefHelper.getReadyAt(subtask).getTime() + "-" + prefHelper.getBestDate(subtask).getTime(); if (tripletToTask.get (taskKey) == null) { tripletToTask.put (taskKey, subtask); if (isInfoEnabled ()) { info (getName ()+ " mapping " + taskKey + " to " + subtask.getUID()); } taskToMPTask.put (subtask, mpTask); } else { warn (getName () + " - unexpected : there already is a task in table with key " +taskKey); } } } | 9369 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9369/22d9043ec1c2f37e9054c686ca851f653b7be038/VishnuAggregatorPlugin.java/clean/vishnuClient/src/org/cougaar/lib/vishnu/client/VishnuAggregatorPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1221,
5365,
1046,
261,
5018,
1562,
1098,
16,
10494,
392,
6672,
16,
2167,
787,
16,
2167,
679,
16,
2167,
3875,
1685,
16,
2167,
2193,
416,
1638,
16,
9506,
4202,
1250,
3310,
14992,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
5365,
1046,
261,
5018,
1562,
1098,
16,
10494,
392,
6672,
16,
2167,
787,
16,
2167,
679,
16,
2167,
3875,
1685,
16,
2167,
2193,
416,
1638,
16,
9506,
4202,
1250,
3310,
14992,... |
/* if ((prevElement != null && !prevElement.textContains('\n'))) { adjustWSBefore = true; } */ | public static void removeChildren(CompositeElement parent, ASTNode first, ASTNode last) { if (DO_OUTPUT) { System.out.println("CodeEditUtil.removeChildrenBefore\n" + parent.getPsi().getContainingFile().getText()); } checkAllWhiteSpaces(parent); ASTNode lastChild = last == null ? null : last.getTreeNext(); ASTNode prevElement = TreeUtil.prevLeaf(first); ASTNode nextElement = findElementAfter(last == null ? parent : last, false); if (nextElement != null) { saveIndents(nextElement); } boolean adjustWSBefore = containLineBreaks(first, lastChild); if (!mustKeepFirstIndent(prevElement, parent)) { adjustWSBefore = true; } /* if ((prevElement != null && !prevElement.textContains('\n'))) { adjustWSBefore = true; } */ parent.removeRange(first, lastChild); if (!adjustWSBefore && parent.getTextLength() == 0 && prevElement != null && isWS(prevElement) && !prevElement.textContains('\n')) { adjustWSBefore = true; } final PsiFile file = parent.getPsi().getContainingFile(); final CodeStyleSettings.IndentOptions options = CodeStyleSettingsManager.getSettings(file.getProject()) .getIndentOptions(file.getFileType()); if (nextElement != null) { ASTNode elementBeforeNext = TreeUtil.prevLeaf(nextElement); if (prevElement != null && isWS(prevElement) && isWS(elementBeforeNext) && prevElement != elementBeforeNext) { if (!elementBeforeNext.textContains('\n') && prevElement.textContains('\n')) { /* void foo1(){} static void foo2(){} remove static */ delete(elementBeforeNext); } else { String text = composeNewWS(prevElement.getText(), elementBeforeNext.getText(), options); delete(prevElement); if (!text.equals(elementBeforeNext.getText())){ final CharTable charTable = SharedImplUtil.findCharTableByTree(elementBeforeNext); LeafElement newWhiteSpace = Factory.createSingleLeafElement(elementBeforeNext.getElementType(), text.toCharArray(), 0, text.length(), charTable, SharedImplUtil.getManagerByTree(elementBeforeNext)); elementBeforeNext.getTreeParent().replaceChild(elementBeforeNext, newWhiteSpace); } } } elementBeforeNext = TreeUtil.prevLeaf(nextElement); if (isWS(elementBeforeNext) && whiteSpaceHasInvalidPosition(elementBeforeNext)) { final String text = elementBeforeNext.getText(); delete(elementBeforeNext); FormatterUtil.replaceWhiteSpace(text, nextElement, ElementType.WHITE_SPACE); } if (adjustWSBefore) { adjustWhiteSpaceBefore(nextElement, true, true, true, false); } } else { final ASTNode fileNode = SourceTreeToPsiMap.psiElementToTree(parent.getPsi().getContainingFile()); ASTNode lastLeaf = TreeUtil.findLastLeaf(fileNode); if (isWS(lastLeaf)) { delete(lastLeaf); } } checkAllWhiteSpaces(parent); if (DO_OUTPUT) { System.out.println("CodeEditUtil.removeChildren\n" + parent.getPsi().getContainingFile().getText()); } //removeChildrenOld(parent,first, last); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/338adcf8094091bcad3643eaf6d4fda2f48e86cc/CodeEditUtil.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1206,
4212,
12,
9400,
1046,
982,
16,
9183,
907,
1122,
16,
9183,
907,
1142,
13,
288,
565,
309,
261,
3191,
67,
15527,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
1085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
4212,
12,
9400,
1046,
982,
16,
9183,
907,
1122,
16,
9183,
907,
1142,
13,
288,
565,
309,
261,
3191,
67,
15527,
13,
288,
1377,
2332,
18,
659,
18,
8222,
2932,
1085,
... | |
private void resetBytes() | private synchronized void resetBytes() | private void resetBytes() { fBytes = null; fDirtyBytes = null; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/33825fd97a6f620f80062b4c1ee9d034bb59ecc2/CFormattedMemoryBlock.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2715,
2160,
1435,
202,
95,
202,
202,
74,
2160,
273,
446,
31,
202,
202,
74,
10785,
2160,
273,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
918,
2715,
2160,
1435,
202,
95,
202,
202,
74,
2160,
273,
446,
31,
202,
202,
74,
10785,
2160,
273,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (uiJob == null) | if (countUpdateJob == null) | public void scheduleCountUpdate() { if (uiJob == null) createUIJob(); uiJob.schedule(); try { uiJob.join(); } catch (InterruptedException e) { return; } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c63c79c798228e08b338ad3d3ab9b500d45cc948/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4788,
1380,
1891,
1435,
288,
202,
202,
430,
261,
4881,
2278,
422,
446,
13,
1082,
202,
2640,
5370,
2278,
5621,
202,
202,
4881,
2278,
18,
10676,
5621,
202,
202,
698,
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,
918,
4788,
1380,
1891,
1435,
288,
202,
202,
430,
261,
4881,
2278,
422,
446,
13,
1082,
202,
2640,
5370,
2278,
5621,
202,
202,
4881,
2278,
18,
10676,
5621,
202,
202,
698,
288,
1... |
IVariable A = (IVariable) col.getName(0).resolveBinding(); | ITypedef A = (ITypedef) col.getName(0).resolveBinding(); | public void testNewExpressions() throws Exception { IASTTranslationUnit tu = parse( "int A; int B; int C; int D; int P; int*p = new (P) (A)[B][C][D];" ); //$NON-NLS-1$ CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit( tu, col ); assertEquals( col.size(), 11 ); IVariable A = (IVariable) col.getName(0).resolveBinding(); IVariable B = (IVariable) col.getName(1).resolveBinding(); IVariable C = (IVariable) col.getName(2).resolveBinding(); IVariable D = (IVariable) col.getName(3).resolveBinding(); IVariable P = (IVariable) col.getName(4).resolveBinding(); IVariable p = (IVariable) col.getName(5).resolveBinding(); assertInstances( col, A, 2 ); assertInstances( col, B, 2 ); assertInstances( col, C, 2 ); assertInstances( col, D, 2 ); assertInstances( col, P, 2 ); assertTrue( p.getType() instanceof IPointerType ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/66c2e911bf7827e6a48d6cc7b5a30d02a947ac62/CompleteParser2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CompleteParser2Tests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1908,
8927,
1435,
1216,
1185,
202,
95,
202,
202,
45,
9053,
6717,
2802,
28325,
273,
1109,
12,
315,
474,
432,
31,
509,
605,
31,
509,
385,
31,
509,
463,
31,
509,
453... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1908,
8927,
1435,
1216,
1185,
202,
95,
202,
202,
45,
9053,
6717,
2802,
28325,
273,
1109,
12,
315,
474,
432,
31,
509,
605,
31,
509,
385,
31,
509,
463,
31,
509,
453... |
public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) | public DirectColorModel(int pixelBits, int rmask, int gmask, int bmask) | public DirectColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType) { super(cspace, pixelBits, rmask, gmask, bmask, amask, isAlphaPremultiplied, ((amask == 0) ? Transparency.OPAQUE : Transparency.TRANSLUCENT), transferType); } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/51a535c0ebf53d0804b5afd81cb0acf823872599/DirectColorModel.java/buggy/libjava/java/awt/image/DirectColorModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9908,
2957,
1488,
12,
2957,
3819,
2873,
909,
16,
509,
4957,
6495,
16,
9506,
225,
509,
436,
4455,
16,
509,
314,
4455,
16,
509,
324,
4455,
16,
509,
2125,
835,
16,
9506,
225,
1250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9908,
2957,
1488,
12,
2957,
3819,
2873,
909,
16,
509,
4957,
6495,
16,
9506,
225,
509,
436,
4455,
16,
509,
314,
4455,
16,
509,
324,
4455,
16,
509,
2125,
835,
16,
9506,
225,
1250,
... |
uninstallListeners(c); | super.uninstallUI(c); uninstallDefaults(c); | public void uninstallUI(JComponent c) { uninstallListeners(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicViewportUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicViewportUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16577,
5370,
12,
46,
1841,
276,
13,
282,
288,
565,
2240,
18,
28872,
5370,
12,
71,
1769,
16577,
7019,
12,
71,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
16577,
5370,
12,
46,
1841,
276,
13,
282,
288,
565,
2240,
18,
28872,
5370,
12,
71,
1769,
16577,
7019,
12,
71,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
System.out.println("Find peer: "+p+" source: "+e.event.source+" event: "+e.event); | private void handleSendableNotDelivered(SendableNotDeliveredEvent e) { PeerInfo p = findPeer(e.event.source); System.out.println("Find peer: "+p+" source: "+e.event.source+" event: "+e.event); if (FifoConfig.debugOn) System.out.println("FifoSession: going to giveup sending some message because of NotDelivered!"); giveup(p, e.event); } | 47988 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47988/aa9c125afcaae35b3cbc95d0403e91f2418baa9d/FifoSession.java/clean/trunk/appia/src/org/continuent/appia/protocols/fifo/FifoSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
3826,
429,
1248,
20813,
329,
12,
3826,
429,
1248,
20813,
329,
1133,
425,
13,
288,
202,
565,
10669,
966,
293,
273,
1104,
6813,
12,
73,
18,
2575,
18,
3168,
1769,
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,
225,
202,
1152,
918,
1640,
3826,
429,
1248,
20813,
329,
12,
3826,
429,
1248,
20813,
329,
1133,
425,
13,
288,
202,
565,
10669,
966,
293,
273,
1104,
6813,
12,
73,
18,
2575,
18,
3168,
1769,
363... | |
out.write(lines[i][j].toLowerCase().concat("\t")); | out.write(lines[i][j].concat("\t")); | private static void printConfig(String [][] lines,String table, BufferedWriter out) throws IOException{ out.write("#"+"\n"); out.write("# TABLE: "+ table.toUpperCase()+"\n"); out.write("#"+"\n"); for (int i = 0; i < lines.length; i++) { for (int j = 0; j < lines[i].length; j++) { out.write(lines[i][j].toLowerCase().concat("\t")); } out.write("\n"); }} | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/1fe1a01a964656d57cebae56579f783b0e3f0b94/ConfigurationUtils.java/buggy/src/java/org/ensembl/mart/builder/ConfigurationUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
760,
918,
1172,
809,
12,
780,
5378,
8526,
2362,
16,
780,
1014,
16,
22490,
596,
13,
1216,
1860,
95,
1082,
202,
659,
18,
2626,
2932,
17133,
9078,
64,
82,
8863,
202,
659,
18,
2626,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
760,
918,
1172,
809,
12,
780,
5378,
8526,
2362,
16,
780,
1014,
16,
22490,
596,
13,
1216,
1860,
95,
1082,
202,
659,
18,
2626,
2932,
17133,
9078,
64,
82,
8863,
202,
659,
18,
2626,
2932,
... |
TA_RetCode INT_SMA( int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ double periodTotal, tempReal; int i, outIdx, trailingIdx, lookbackTotal; lookbackTotal = (optInTimePeriod-1); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } periodTotal = 0; trailingIdx = startIdx-lookbackTotal; i=trailingIdx; if( optInTimePeriod > 1 ) { while( i < startIdx ) periodTotal += inReal[i++]; } outIdx = 0; do { periodTotal += inReal[i++]; tempReal = periodTotal; periodTotal -= inReal[trailingIdx++]; outReal[outIdx++] = tempReal / optInTimePeriod; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;} | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
399,
37,
67,
7055,
1085,
6137,
67,
55,
5535,
12,
509,
27108,
16,
509,
679,
4223,
16,
9056,
267,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
399,
37,
67,
7055,
1085,
6137,
67,
55,
5535,
12,
509,
27108,
16,
509,
679,
4223,
16,
9056,
267,
6955,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
... | ||
public void compilation_unit() throws RecognitionException { try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: ( prolog ( statement )* ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:286:4: prolog ( statement )* { pushFollow(FOLLOW_prolog_in_compilation_unit51); prolog(); _fsp--; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:3: ( statement )* loop2: do { int alt2=2; int LA2_0 = input.LA(1); if ( ((LA2_0>=29 && LA2_0<=30)||LA2_0==33||LA2_0==35||(LA2_0>=37 && LA2_0<=38)) ) { alt2=1; } switch (alt2) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:287:5: statement { pushFollow(FOLLOW_statement_in_compilation_unit58); statement(); _fsp--; } break; default : break loop2; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/c3437c2488c314384990c4282a547e0f92ca02c2/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8916,
67,
4873,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8916,
67,
4873,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
468... | ||
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); | throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier, global); | public ClientGetMessage(SimpleFieldSet fs) throws MessageInvalidException { short defaultPriority; clientToken = fs.get("ClientToken"); global = Fields.stringToBool(fs.get("Global"), false); ignoreDS = Fields.stringToBool(fs.get("IgnoreDS"), false); dsOnly = Fields.stringToBool(fs.get("DSOnly"), false); identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { uri = new FreenetURI(fs.get("URI")); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } String returnTypeString = fs.get("ReturnType"); returnType = parseReturnType(returnTypeString); if(returnType == RETURN_TYPE_DIRECT) { diskFile = null; tempFile = null; // default just below FProxy defaultPriority = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else if(returnType == RETURN_TYPE_NONE) { diskFile = null; tempFile = null; defaultPriority = RequestStarter.PREFETCH_PRIORITY_CLASS; } else if(returnType == RETURN_TYPE_DISK) { defaultPriority = RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing Filename", identifier); diskFile = new File(filename); String tempFilename = fs.get("TempFilename"); if(tempFilename == null) tempFilename = filename + ".freenet-tmp"; tempFile = new File(tempFilename); if(!diskFile.getAbsoluteFile().getParentFile().equals(tempFile.getAbsoluteFile().getParentFile())) throw new MessageInvalidException(ProtocolErrorMessage.FILENAME_AND_TEMP_FILENAME_MUST_BE_IN_SAME_DIR, null, identifier); if(diskFile.exists()) throw new MessageInvalidException(ProtocolErrorMessage.DISK_TARGET_EXISTS, null, identifier); try { if(!(tempFile.createNewFile() || (tempFile.exists() && tempFile.canRead() && tempFile.canWrite()))) throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, "Could not create temp file "+tempFile, identifier); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, e.getMessage(), identifier); } } else throw new MessageInvalidException(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, "Unknown return-type", identifier); String maxSizeString = fs.get("MaxSize"); if(maxSizeString == null) // default to unlimited maxSize = Long.MAX_VALUE; else { try { maxSize = Long.parseLong(maxSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxTempSizeString = fs.get("MaxTempSize"); if(maxTempSizeString == null) // default to unlimited maxTempSize = Long.MAX_VALUE; else { try { maxTempSize = Long.parseLong(maxTempSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "max retries="+maxRetries); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = defaultPriority; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } if(global && (persistenceType == ClientRequest.PERSIST_CONNECTION)) { throw new MessageInvalidException(ProtocolErrorMessage.NOT_SUPPORTED, "Global requests must be persistent", identifier); } } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientGetMessage.java/buggy/src/freenet/node/fcp/ClientGetMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
967,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
6620,
805,
8183,
31,
202,
202,
2625,
1345,
273,
2662,
18,
588,
2932,
1227,
1345,
8863,
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,
2445,
967,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
6620,
805,
8183,
31,
202,
202,
2625,
1345,
273,
2662,
18,
588,
2932,
1227,
1345,
8863,
202... |
getLog().warn("Expected content type of text/javascript for remotely loaded javascript element but got ["+webResponse.getContentType()+"]"); | getLog().warn( "Expected content type of text/javascript for remotely loaded javascript element but got [" +webResponse.getContentType()+"]"); | private String loadJavaScriptFromUrl( final String urlString ) { URL url = null; try { url = getFullyQualifiedUrl(urlString); final WebResponse webResponse= getWebClient().loadWebResponse( url, SubmitMethod.GET, Collections.EMPTY_LIST); if( webResponse.getStatusCode() == 200 ) { if( webResponse.getContentType().equals("text/javascript") == false ) { getLog().warn("Expected content type of text/javascript for remotely loaded javascript element but got ["+webResponse.getContentType()+"]"); } return webResponse.getContentAsString(); } else { getLog().error("Error loading javascript from ["+url.toExternalForm() +"] status=["+webResponse.getStatusCode()+" " +webResponse.getStatusMessage()+"]"); } } catch( final MalformedURLException e ) { getLog().error("Unable to build url for script src tag ["+urlString+"]"); return ""; } catch( final Exception e ) { getLog().error("Error loading javascript from ["+url.toExternalForm()+"]: ", e); } return ""; } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/582a0705d8897022e7cd6ba466009199db999f2b/HtmlPage.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1262,
16634,
28488,
12,
727,
514,
29374,
262,
288,
3639,
1976,
880,
273,
446,
31,
3639,
775,
288,
5411,
880,
273,
10208,
93,
8708,
1489,
12,
718,
780,
1769,
5411,
727,
2999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1262,
16634,
28488,
12,
727,
514,
29374,
262,
288,
3639,
1976,
880,
273,
446,
31,
3639,
775,
288,
5411,
880,
273,
10208,
93,
8708,
1489,
12,
718,
780,
1769,
5411,
727,
2999,
... |
br.setEnabled(true); | public void setRow(int row, Element e) { // get the values for the VariableValue ctor String name = e.getAttribute("label").getValue(); // Note the name variable is actually the label attribute if (log.isDebugEnabled()) log.debug("Starting to setRow \""+name+"\""); String item = ( e.getAttribute("item")!=null ? e.getAttribute("item").getValue() : null); String comment = null; if (e.getAttribute("comment") != null) comment = e.getAttribute("comment").getValue(); int CV = Integer.valueOf(e.getAttribute("CV").getValue()).intValue(); String mask = null; if (e.getAttribute("mask") != null) mask = e.getAttribute("mask").getValue(); else { log.warn("Element missing mask attribute: "+name); mask ="VVVVVVVV"; } int minVal = 0; int maxVal = 255; boolean readOnly = false; if (e.getAttribute("readOnly") != null) { readOnly = e.getAttribute("readOnly").getValue().equals("yes") ? true : false; if (log.isDebugEnabled()) log.debug("found readOnly "+e.getAttribute("readOnly").getValue()); } else { log.warn("Element missing readOnly attribute: "+name); } boolean infoOnly = false; if (e.getAttribute("infoOnly") != null) { readOnly = e.getAttribute("infoOnly").getValue().equals("yes") ? true : false; if (log.isDebugEnabled()) log.debug("found readOnly "+e.getAttribute("infoOnly").getValue()); } else { log.warn("Element missing readOnly attribute: "+name); } boolean writeOnly = false; if (e.getAttribute("writeOnly") != null) { writeOnly = e.getAttribute("writeOnly").getValue().equals("yes") ? true : false; if (log.isDebugEnabled()) log.debug("found writeOnly "+e.getAttribute("writeOnly").getValue()); } else { log.warn("Element missing readOnly attribute: "+name); } boolean opsOnly = false; if (e.getAttribute("opsOnly") != null) { opsOnly = e.getAttribute("opsOnly").getValue().equals("yes") ? true : false; if (log.isDebugEnabled()) log.debug("found opsOnly "+e.getAttribute("opsOnly").getValue()); } else { log.warn("Element missing readOnly attribute: "+name); } JButton bw = new JButton("Write"); _writeButtons.addElement(bw); JButton br = new JButton("Read"); _readButtons.addElement(br); if (infoOnly || readOnly) { bw.setEnabled(false); if (infoOnly) { br.setEnabled(false); } else { br.setEnabled(true); br.setActionCommand("R"+row); br.addActionListener(this); } } else { bw.setEnabled(true); bw.setActionCommand("W"+row); bw.addActionListener(this); if (writeOnly) { br.setEnabled(false); } else { br.setEnabled(true); br.setActionCommand("R" + row); br.addActionListener(this); } } if (_cvModel == null) { log.error("CvModel reference is null; cannot add variables"); return; } _cvModel.addCV(""+CV, readOnly); // have to handle various value types, see "snippet" Attribute a; Element child; VariableValue v = null; if ( (child = e.getChild("decVal")) != null) { if ( (a = child.getAttribute("min")) != null) minVal = Integer.valueOf(a.getValue()).intValue(); if ( (a = child.getAttribute("max")) != null) maxVal = Integer.valueOf(a.getValue()).intValue(); v = new DecVariableValue(name, comment, readOnly, infoOnly, writeOnly, opsOnly, CV, mask, minVal, maxVal, _cvModel.allCvVector(), _status, item); } else if ( (child = e.getChild("hexVal")) != null) { if ( (a = child.getAttribute("min")) != null) minVal = Integer.valueOf(a.getValue(),16).intValue(); if ( (a = child.getAttribute("max")) != null) maxVal = Integer.valueOf(a.getValue(),16).intValue(); v = new HexVariableValue(name, comment, readOnly, infoOnly, writeOnly, opsOnly, CV, mask, minVal, maxVal, _cvModel.allCvVector(), _status, item); } else if ( (child = e.getChild("enumVal")) != null) { List l = child.getChildren("enumChoice"); EnumVariableValue v1 = new EnumVariableValue(name, comment, readOnly, infoOnly, writeOnly, opsOnly, CV, mask, 0, l.size()-1, _cvModel.allCvVector(), _status, item); v = v1; v1.nItems(l.size()); for (int k=0; k< l.size(); k++) { // is a value specified? Element enumChElement = (Element)l.get(k); Attribute valAttr = enumChElement.getAttribute("value"); if ( valAttr==null) v1.addItem(enumChElement.getAttribute("choice").getValue()); else { v1.addItem(enumChElement.getAttribute("choice").getValue(), Integer.parseInt(valAttr.getValue())); } } v1.lastItem(); } else if ( (child = e.getChild("speedTableVal")) != null) { if ( (a = child.getAttribute("min")) != null) minVal = Integer.valueOf(a.getValue()).intValue(); if ( (a = child.getAttribute("max")) != null) maxVal = Integer.valueOf(a.getValue()).intValue(); Attribute entriesAttr = child.getAttribute("entries"); int entries = 28; try { if (entriesAttr!=null) entries = entriesAttr.getIntValue(); } catch (org.jdom.DataConversionException e1) {} // ensure all CVs exist for (int i=0; i<entries; i++) { _cvModel.addCV(""+(CV+i), readOnly); } v = new SpeedTableVarValue(name, comment, readOnly, infoOnly, writeOnly, opsOnly, CV, mask, minVal, maxVal, _cvModel.allCvVector(), _status, item, entries); } else if ( (child = e.getChild("longAddressVal")) != null) { _cvModel.addCV(""+(CV+1), readOnly); // ensure 2nd CV exists v = new LongAddrVariableValue(name, comment, readOnly, infoOnly, writeOnly, opsOnly, CV, mask, minVal, maxVal, _cvModel.allCvVector(), _status, item); } else if ( (child = e.getChild("shortAddressVal")) != null) { ShortAddrVariableValue v1 = new ShortAddrVariableValue(name, comment, readOnly, infoOnly, writeOnly, opsOnly, CV, mask, _cvModel.allCvVector(), _status, item); v = v1; // get specifics if any List l = child.getChildren("shortAddressChanges"); for (int k=0; k< l.size(); k++) try { v1.setModifiedCV(((Element)l.get(k)).getAttribute("cv").getIntValue()); } catch (org.jdom.DataConversionException e1) { log.error("invalid cv attribute in short address element of decoder file"); } } else if ( (child = e.getChild("splitVal")) != null) { if ( (a = child.getAttribute("min")) != null) minVal = Integer.valueOf(a.getValue()).intValue(); if ( (a = child.getAttribute("max")) != null) maxVal = Integer.valueOf(a.getValue()).intValue(); int highCV = CV+1; if ( (a = child.getAttribute("highCV")) != null) highCV = Integer.valueOf(a.getValue()).intValue(); int factor = 1; if ( (a = child.getAttribute("factor")) != null) factor = Integer.valueOf(a.getValue()).intValue(); int offset = 0; if ( (a = child.getAttribute("offset")) != null) offset = Integer.valueOf(a.getValue()).intValue(); String uppermask = "VVVVVVVV"; if ( (a = child.getAttribute("upperMask")) != null) uppermask = a.getValue(); _cvModel.addCV(""+(highCV), readOnly); // ensure 2nd CV exists v = new SplitVariableValue(name, comment, readOnly, infoOnly, writeOnly, opsOnly, CV, mask, minVal, maxVal, _cvModel.allCvVector(), _status, item, highCV, factor, offset, uppermask); } else { reportBogus(); return; } // back to general processing // add tooltip text if present if ( (a = e.getAttribute("tooltip")) != null) v.setTooltipText(a.getValue()); // record new variable, update state, hook up listeners rowVector.addElement(v); v.setState(VariableValue.FROMFILE); v.addPropertyChangeListener(this); // set to default value if specified (CV load may later override this) if ( (a = e.getAttribute("default")) != null) { String val = a.getValue(); if (log.isDebugEnabled()) log.debug("Found default value: "+val+" for "+name); v.setIntValue(Integer.valueOf(val).intValue()); _cvModel.getCvByNumber(CV).setState(VariableValue.FROMFILE); // correct for transition to "edited" } } | 213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/9af8cf5e81c69f317fd4dd5bb3b08f5c3674492a/VariableTableModel.java/clean/jmri/jmrit/symbolicprog/VariableTableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1999,
12,
474,
1027,
16,
3010,
425,
13,
288,
3639,
368,
336,
326,
924,
364,
326,
7110,
620,
15120,
3639,
514,
508,
273,
425,
18,
588,
1499,
2932,
1925,
20387,
24805,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1999,
12,
474,
1027,
16,
3010,
425,
13,
288,
3639,
368,
336,
326,
924,
364,
326,
7110,
620,
15120,
3639,
514,
508,
273,
425,
18,
588,
1499,
2932,
1925,
20387,
24805,
562... | |
assertNotSame("not same", "hello", "good-bye"); | assertNotSame("message", o, o); fail(); | @Test public void notSameWithMessage() { try { assertNotSame("not same", "hello", "good-bye"); } catch (AssertionError exception) { assertEquals("not same expected not same", exception.getMessage()); } } | 48424 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48424/e08329cae4a1198e124c7615e92f44a7319a2cb8/AssertionTest.java/clean/org/junit/tests/AssertionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
36,
4709,
1071,
918,
486,
8650,
1190,
1079,
1435,
288,
202,
202,
698,
288,
1082,
202,
11231,
1248,
8650,
2932,
902,
1967,
3113,
315,
23711,
3113,
315,
19747,
17,
1637,
73,
8863,
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,
36,
4709,
1071,
918,
486,
8650,
1190,
1079,
1435,
288,
202,
202,
698,
288,
1082,
202,
11231,
1248,
8650,
2932,
902,
1967,
3113,
315,
23711,
3113,
315,
19747,
17,
1637,
73,
8863,
202,... |
public LocationPath createAbsoluteLocationPath() throws JaxenException { return new DefaultAbsoluteLocationPath(); } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/d180ba623954ff7cb231af711a9133a78d7dd0c5/DefaultXPathFactory.java/buggy/src/java/main/org/jaxen/expr/DefaultXPathFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2735,
743,
2640,
10368,
2735,
743,
1435,
15069,
46,
651,
275,
503,
95,
2463,
2704,
1868,
10368,
2735,
743,
5621,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2735,
743,
2640,
10368,
2735,
743,
1435,
15069,
46,
651,
275,
503,
95,
2463,
2704,
1868,
10368,
2735,
743,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
public void setFont(FontData[] fontData) { if (font != null) font.dispose(); FontData[] bestData = JFaceResources.getFontRegistry(). bestDataArray(fontData,text.getDisplay()); //If there are no specified values then return. if(bestData == null) return; font = new Font(text.getDisplay(), bestData); text.setFont(font); //Also set the text here text.setText(WorkbenchMessages.getString("FontsPreference.SampleText")); //$NON-NLS-1$ } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1bba6e68027322eb4457204fdeda19454e06701c/FontPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
20454,
12,
5711,
751,
8526,
3512,
751,
13,
288,
1082,
202,
430,
261,
5776,
480,
446,
13,
9506,
202,
5776,
18,
2251,
4150,
5621,
6862,
1082,
202,
5711,
751,
8526,
3796,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
20454,
12,
5711,
751,
8526,
3512,
751,
13,
288,
1082,
202,
430,
261,
5776,
480,
446,
13,
9506,
202,
5776,
18,
2251,
4150,
5621,
6862,
1082,
202,
5711,
751,
8526,
3796,
7... | ||
.openReportDocument( getReportDesignName( options ), docName ); | .openReportDocument( getReportDesignName( options ), docName, getModuleOptions( options ) ); | public long getPageCount( String docName, InputOptions options, OutputOptions outputOptions ) throws ReportServiceException { IReportDocument doc = ReportEngineService.getInstance( ) .openReportDocument( getReportDesignName( options ), docName ); long count = doc.getPageCount( ); doc.close( ); return count; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6750b617d962564415d786421fab385be3789fb1/BirtViewerReportService.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
8957,
1380,
12,
514,
997,
461,
16,
2741,
1320,
702,
16,
1082,
202,
1447,
1320,
876,
1320,
262,
1216,
8706,
15133,
202,
95,
202,
202,
45,
4820,
2519,
997,
273,
8706,
4410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
8957,
1380,
12,
514,
997,
461,
16,
2741,
1320,
702,
16,
1082,
202,
1447,
1320,
876,
1320,
262,
1216,
8706,
15133,
202,
95,
202,
202,
45,
4820,
2519,
997,
273,
8706,
4410... |
auth = (AuthService)componentManager. lookup( "org.apache.james.nntpserver.AuthService" ); | getLogger().debug("NNTPHandler compose...begin"); UsersStore usersStore = (UsersStore)componentManager.lookup(UsersStore.ROLE); userRepository = usersStore.getRepository("LocalUsers"); | public void compose( final ComponentManager componentManager ) throws ComponentException { //System.out.println(getClass().getName()+ ": compose - " + authRequired); auth = (AuthService)componentManager. lookup( "org.apache.james.nntpserver.AuthService" ); scheduler = (TimeScheduler)componentManager. lookup( "org.apache.avalon.cornerstone.services.scheduler.TimeScheduler" ); repo = (NNTPRepository)componentManager .lookup("org.apache.james.nntpserver.repository.NNTPRepository"); } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/cc100f37ee536c71759c5c9fd585b8437c35e0e2/NNTPHandler.java/buggy/src/java/org/apache/james/nntpserver/NNTPHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11458,
12,
727,
5435,
1318,
1794,
1318,
262,
3639,
1216,
5435,
503,
565,
288,
3639,
368,
3163,
18,
659,
18,
8222,
12,
588,
797,
7675,
17994,
1435,
15,
6398,
11458,
300,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11458,
12,
727,
5435,
1318,
1794,
1318,
262,
3639,
1216,
5435,
503,
565,
288,
3639,
368,
3163,
18,
659,
18,
8222,
12,
588,
797,
7675,
17994,
1435,
15,
6398,
11458,
300,
315,
... |
LOG.error( "TODO: error msg", e ); | LOG.error( "Error modifying schedule '" + oldName + "' for specification " + i.getUri(), e ); | private void editExistingSchedule( CronTriggerEx trigger ) { ScheduleInformation i = new ScheduleInformation( trigger.getName(), trigger.getJobDataMap().getString( "specID" ), trigger.getCronExpression(), trigger.getStartTime(), trigger.getEndTime() ); String oldName = trigger.getName(); i = SchedulerDialog.showSchedulerDialog( WorkflowEditor.getInstance(), i ); if( i != null ) { try { CronTriggerEx t = new CronTriggerEx( i.getScheduleName(), "DEFAULT" ); t.setCronExpression( i.getCronExpression() ); t.setEndTime( i.getEndDate() ); t.setStartTime( i.getStartDate() ); t.setJobName( trigger.getJobName() ); t.setGroup( trigger.getGroup() ); JobDataMap data = new JobDataMap(); data.put( "specID", i.getUri() ); t.setJobDataMap( data ); scheduler.rescheduleJob( oldName, "DEFAULT", t ); // force the calendar (the UI) to update calendar.setCalendar( calendar.getCalendar() ); } catch( SchedulerException e ) { LOG.error( "TODO: error msg", e ); } catch( ParseException e ) { LOG.error( "Scheduler Dialog created an invalid cron expression!", e ); } } } | 51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/bbc32ecbadc4af031bf23a5aae6efad741e6a3a6/SchedulerCalendar.java/clean/yawl/editor/com/nexusbpm/editor/editors/schedule/SchedulerCalendar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3874,
9895,
6061,
12,
18972,
6518,
424,
3080,
262,
288,
202,
202,
6061,
5369,
277,
273,
394,
10674,
5369,
12,
9506,
202,
10668,
18,
17994,
9334,
9506,
202,
10668,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3874,
9895,
6061,
12,
18972,
6518,
424,
3080,
262,
288,
202,
202,
6061,
5369,
277,
273,
394,
10674,
5369,
12,
9506,
202,
10668,
18,
17994,
9334,
9506,
202,
10668,
18,
588,... |
refGlyphElement = ctx.getReferencedElement(altGlyphElement, glyphUri); | refGlyphElement = ctx.getReferencedElement(altGlyphElement, glyphUri); | private Glyph getGlyph(BridgeContext ctx, String glyphUri, Element altGlyphElement, float fontSize, AttributedCharacterIterator aci) { Element refGlyphElement = null; try { refGlyphElement = ctx.getReferencedElement(altGlyphElement, glyphUri); } catch (BridgeException e) { // this is ok, it is possible that the glyph at the given // uri is not available } if (refGlyphElement == null || !refGlyphElement.getTagName().equals(SVG_GLYPH_TAG)) { // couldn't find the referenced glyph element, // or referenced element not a glyph return null; } // see if the referenced glyph element is local SVGOMDocument document = (SVGOMDocument)altGlyphElement.getOwnerDocument(); SVGOMDocument refDocument = (SVGOMDocument)refGlyphElement.getOwnerDocument(); boolean isLocal = (refDocument == document); // if not local, import both the glyph and its font-face element Element localGlyphElement = null; Element localFontFaceElement = null; if (isLocal) { localGlyphElement = refGlyphElement; Element fontElement = (Element)localGlyphElement.getParentNode(); NodeList fontFaceElements = fontElement.getElementsByTagNameNS (SVG_NAMESPACE_URI, SVG_FONT_FACE_TAG); if (fontFaceElements.getLength() > 0) { localFontFaceElement = (Element)fontFaceElements.item(0); } } else { // import the whole font Element localFontElement = (Element)document.importNode(refGlyphElement.getParentNode(), true); Element g = document.createElementNS(SVG_NAMESPACE_URI, SVG_G_TAG); g.appendChild(localFontElement); CSSUtilities.computeStyleAndURIs( (Element)refGlyphElement.getParentNode(), localFontElement); // get the local glyph element String glyphId = refGlyphElement.getAttributeNS(null, SVG_ID_ATTRIBUTE); NodeList glyphElements = localFontElement.getElementsByTagNameNS (SVG_NAMESPACE_URI, SVG_GLYPH_TAG); for (int i = 0; i < glyphElements.getLength(); i++) { Element glyphElem = (Element)glyphElements.item(i); if (glyphElem.getAttributeNS(null, SVG_ID_ATTRIBUTE).equals(glyphId)) { localGlyphElement = glyphElem; break; } } // get the local font-face element NodeList fontFaceElements = localFontElement.getElementsByTagNameNS (SVG_NAMESPACE_URI, SVG_FONT_FACE_TAG); if (fontFaceElements.getLength() > 0) { localFontFaceElement = (Element)fontFaceElements.item(0); } } // if couldn't find the glyph or its font-face return null if (localGlyphElement == null || localFontFaceElement == null) { return null; } SVGFontFaceElementBridge fontFaceBridge = (SVGFontFaceElementBridge)ctx.getBridge(localFontFaceElement); SVGFontFace fontFace = fontFaceBridge.createFontFace(ctx, localFontFaceElement); SVGGlyphElementBridge glyphBridge = (SVGGlyphElementBridge)ctx.getBridge(localGlyphElement); aci.first(); Paint fillPaint = (Paint)aci.getAttribute(TextAttribute.FOREGROUND); Paint strokePaint = (Paint)aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.STROKE_PAINT); Stroke stroke = (Stroke)aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.STROKE); return glyphBridge.createGlyph(ctx, localGlyphElement, altGlyphElement, -1, fontSize, fontFace, fillPaint, strokePaint, stroke); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/5344fee0e75e857c928622d2ea0816b1373e9f61/SVGAltGlyphElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGAltGlyphElementBridge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
31572,
7162,
6451,
12,
13691,
1042,
1103,
16,
21821,
514,
9440,
3006,
16,
21821,
3010,
3770,
15141,
1046,
16,
21821,
1431,
16746,
16,
21821,
2380,
11050,
7069,
3198,
1721,
77,
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,
377,
3238,
31572,
7162,
6451,
12,
13691,
1042,
1103,
16,
21821,
514,
9440,
3006,
16,
21821,
3010,
3770,
15141,
1046,
16,
21821,
1431,
16746,
16,
21821,
2380,
11050,
7069,
3198,
1721,
77,
13,
288... |
String sourceName = getNormilizedUrl(fnOrScript); SourceInfo si; synchronized (sourceNames) { si = (SourceInfo)sourceNames.get(sourceName); if (si != null) { si.setSource(source); }else { si = new SourceInfo(sourceName, source); sourceNames.put(sourceName, si); } } ScriptItem item = new ScriptItem(fnOrScript, si); si.updateLineInfo(item); scriptItems.put(fnOrScript, item); String name = fnOrScript.getFunctionName(); if (name != null && name.length() > 0 && !name.equals("anonymous")) { functionNames.put(name, item); } loadedFile(si); | String sourceUrl = getNormilizedUrl(fnOrScript); SourceInfo si = registerSource(sourceUrl, source); registerScript(si, fnOrScript); | public void handleCompilationDone(Context cx, DebuggableScript fnOrScript, String source) { String sourceName = getNormilizedUrl(fnOrScript); SourceInfo si; synchronized (sourceNames) { si = (SourceInfo)sourceNames.get(sourceName); if (si != null) { si.setSource(source); }else { si = new SourceInfo(sourceName, source); sourceNames.put(sourceName, si); } } ScriptItem item = new ScriptItem(fnOrScript, si); si.updateLineInfo(item); scriptItems.put(fnOrScript, item); String name = fnOrScript.getFunctionName(); if (name != null && name.length() > 0 && !name.equals("anonymous")) { functionNames.put(name, item); } loadedFile(si); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/50029c37e2419ff529758cddb93bb0c01830ae0a/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
4766,
1377,
514,
1084,
13,
565,
288,
3639,
514,
28337,
273,
11069,
535,
330,
1235,
1489,
12,
4293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
4766,
1377,
514,
1084,
13,
565,
288,
3639,
514,
28337,
273,
11069,
535,
330,
1235,
1489,
12,
4293... |
a.setValue(optionValues.get((optionValues.size() / 2))); | a.setValue(model.getProduct()); | public static void setupBugAttributes(String serverUrl, NewBugModel model) { HashMap<String, Attribute> attributes = new HashMap<String, Attribute>(); Attribute a = new Attribute(BugReportElement.BUG_SEVERITY.toString()); a.setParameterName(BugReportElement.BUG_SEVERITY.getKeyString()); List<String> optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getSeverities(); for (String option : optionValues) { a.addOptionValue(option, option); } a.setValue(optionValues.get((optionValues.size() / 2))); attributes.put(a.getName(), a); a = new Attribute(BugReportElement.OP_SYS.toString()); a.setParameterName(BugReportElement.OP_SYS.getKeyString()); optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getOSs(); for (String option : optionValues) { a.addOptionValue(option, option); } attributes.put(a.getName(), a); a = new Attribute(BugReportElement.REP_PLATFORM.toString()); a.setParameterName(BugReportElement.REP_PLATFORM.getKeyString()); optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getPlatforms(); for (String option : optionValues) { a.addOptionValue(option, option); } attributes.put(a.getName(), a); a = new Attribute(BugReportElement.VERSION.toString()); a.setParameterName(BugReportElement.VERSION.getKeyString()); optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getVersions(model.getProduct()); for (String option : optionValues) { a.addOptionValue(option, option); } a.setValue(optionValues.get(optionValues.size() - 1)); attributes.put(a.getName(), a); a = new Attribute(BugReportElement.COMPONENT.toString()); a.setParameterName(BugReportElement.COMPONENT.getKeyString()); optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getComponents(model.getProduct()); for (String option : optionValues) { a.addOptionValue(option, option); } attributes.put(a.getName(), a); a = new Attribute(BugReportElement.PRIORITY.toString()); a.setParameterName(BugReportElement.PRIORITY.getKeyString()); optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getPriorities(); for (String option : optionValues) { a.addOptionValue(option, option); } a.setValue(optionValues.get((optionValues.size() / 2))); attributes.put(a.getName(), a); a = new Attribute(BugReportElement.PRODUCT.toString()); a.setParameterName(BugReportElement.PRODUCT.getKeyString()); optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getProducts(); for (String option : optionValues) { a.addOptionValue(option, option); } attributes.put(a.getName(), a); a = new Attribute(BugReportElement.BUG_STATUS.toString()); a.setParameterName(BugReportElement.BUG_STATUS.getKeyString()); optionValues = BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getStatusValues(); for (String option : optionValues) { a.addOptionValue(option, option); } attributes.put(a.getName(), a); model.attributes = attributes; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/804a6ca635f36ebe92d1dd532bcd473e0e2f9c30/BugzillaRepositoryUtil.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
3875,
19865,
2498,
12,
780,
1438,
1489,
16,
1166,
19865,
1488,
938,
13,
288,
202,
202,
8658,
32,
780,
16,
3601,
34,
1677,
273,
394,
4317,
32,
780,
16,
3601,
34,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
3875,
19865,
2498,
12,
780,
1438,
1489,
16,
1166,
19865,
1488,
938,
13,
288,
202,
202,
8658,
32,
780,
16,
3601,
34,
1677,
273,
394,
4317,
32,
780,
16,
3601,
34,
56... |
if(h == null) { | if (h == null) { | protected String getHadoopClientHome() { String h = env_.getProperty("HADOOP_HOME"); // standard Hadoop if(h == null) { //fail("Missing required environment variable: HADOOP_HOME"); h = "UNDEF"; } return h; } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/e10b40e8014547113799b2653164e8c990d41209/StreamJob.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
7628,
12460,
1227,
8684,
1435,
225,
288,
565,
514,
366,
273,
1550,
27799,
588,
1396,
2932,
44,
1880,
51,
3665,
67,
14209,
8863,
368,
4529,
23471,
565,
309,
261,
76,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
7628,
12460,
1227,
8684,
1435,
225,
288,
565,
514,
366,
273,
1550,
27799,
588,
1396,
2932,
44,
1880,
51,
3665,
67,
14209,
8863,
368,
4529,
23471,
565,
309,
261,
76,
422,
446,
... |
protected Boolean equivalentValues(Object value) | protected Object equivalentValues(Object value) | protected Boolean equivalentValues(Object value) { return (this == value) ? Boolean.TRUE : null; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e056c6cd398e14bb613713e0d2422d282617403a/ScriptableObject.java/clean/js/rhino/src/org/mozilla/javascript/ScriptableObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
7680,
1972,
12,
921,
460,
13,
565,
288,
3639,
327,
261,
2211,
422,
460,
13,
692,
3411,
18,
18724,
294,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
7680,
1972,
12,
921,
460,
13,
565,
288,
3639,
327,
261,
2211,
422,
460,
13,
692,
3411,
18,
18724,
294,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (username == null || username.trim().equals("") || password == null || password.trim().equals("")) { JForum.getContext().put("error", I18n.getMessage("UsernamePasswordCannotBeNull")); | if (username == null || username.trim().equals("") || password == null || password.trim().equals("")) { JForum.getContext().put("error", I18n.getMessage("UsernamePasswordCannotBeNull")); | public void insertSave() throws Exception { User u = new User(); UserModel um = DataAccessDriver.getInstance().newUserModel(); String username = JForum.getRequest().getParameter("username"); String password = JForum.getRequest().getParameter("password"); boolean error = false; if (username == null || username.trim().equals("") || password == null || password.trim().equals("")) { JForum.getContext().put("error", I18n.getMessage("UsernamePasswordCannotBeNull")); error = true; } if (!error && um.isUsernameRegistered(JForum.getRequest().getParameter( "username"))) { JForum.getContext().put("error", I18n.getMessage("UsernameExists")); error = true; } if (error) { this.insert(); return; } u.setUsername(username); u.setPassword(MD5.crypt(password)); u.setEmail(JForum.getRequest().getParameter("email")); if (SystemGlobals.getBoolValue(ConfigKeys.MAIL_USER_EMAIL_AUTH)) { u .setActivationKey(MD5.crypt(username + System.currentTimeMillis())); } int userId = um.addNew(u); if (SystemGlobals.getBoolValue(ConfigKeys.MAIL_USER_EMAIL_AUTH)) { try { //Send an email to new user QueuedExecutor.getInstance().execute( new EmailSenderTask(new ActivationKeySpammer(userId, u .getUsername(), u.getEmail(), u .getActivationKey()))); } catch (Exception e) { e.printStackTrace(); } JForum.getContext().put("moduleAction", "message.htm"); JForum.getContext().put("message", I18n.getMessage("User.GoActivateAccountMessage")); } else { this.logNewRegisteredUserIn(userId, u); } } | 52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/12ab778e1c856f70084f819e1ce97f90b5d97226/UserAction.java/buggy/src/net/jforum/view/forum/UserAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2243,
4755,
1435,
1216,
1185,
288,
202,
202,
1299,
582,
273,
394,
2177,
5621,
202,
202,
1299,
1488,
9570,
273,
1910,
1862,
4668,
18,
588,
1442,
7675,
2704,
1299,
1488,
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,
225,
202,
482,
918,
2243,
4755,
1435,
1216,
1185,
288,
202,
202,
1299,
582,
273,
394,
2177,
5621,
202,
202,
1299,
1488,
9570,
273,
1910,
1862,
4668,
18,
588,
1442,
7675,
2704,
1299,
1488,
5621... |
Iterator parameters = element.getChildElements("param").iterator(); while (parameters.hasNext()) { Element nextParameter = (Element) parameters.next(); String name = nextParameter.getAttribute("name"); if ("_function".equals(name)) { if (! TextUtils.isEmpty(nextParameter.getText())) { return true; } } } return false; | return element.getLocalName().equals("request") && element.getAttribute("function") != null; | protected boolean matches(HttpServletRequest httpRequest) throws Exception { // Parse the XML in the request (if any) Element element = parseXMLRequest(httpRequest); // Get all <param/> elements // // NOTE: getChildElements never returns null Iterator parameters = element.getChildElements("param").iterator(); // Search through the parameters until we find the one that specifies // the name of the function to invoke while (parameters.hasNext()) { Element nextParameter = (Element) parameters.next(); String name = nextParameter.getAttribute("name"); // We found the _function parameter, stop searching; if the value // is non-empty we have a match, otherwise we don't. if ("_function".equals(name)) { if (! TextUtils.isEmpty(nextParameter.getText())) { return true; } } } return false; } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/e026abe2c64a05b9716fe92c434577a95e165348/XMLCallingConvention.java/clean/src/java-server-framework/org/xins/server/XMLCallingConvention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1250,
1885,
12,
2940,
18572,
12189,
13,
282,
1216,
1185,
288,
1377,
368,
2884,
326,
3167,
316,
326,
590,
261,
430,
1281,
13,
1377,
3010,
930,
273,
1109,
4201,
691,
12,
2505,
691,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1250,
1885,
12,
2940,
18572,
12189,
13,
282,
1216,
1185,
288,
1377,
368,
2884,
326,
3167,
316,
326,
590,
261,
430,
1281,
13,
1377,
3010,
930,
273,
1109,
4201,
691,
12,
2505,
691,
... |
receiveMessage("You must select an agent in the list first and add one if none is already present"); | receiveMessage("You must select an agent in the list first or add one if none is already present"); | private int getIndex() { int n = agentList.getSelectedIndex(); if (n == -1) { receiveMessage("You must select an agent in the list first and add one if none is already present"); } return agentList.getSelectedIndex(); } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/fa5a996c0fc1921a71bd3e973d207e138f215eb8/PenguinApplet.java/buggy/src/org/objectweb/proactive/examples/penguin/PenguinApplet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
8088,
1435,
288,
565,
509,
290,
273,
4040,
682,
18,
588,
7416,
1016,
5621,
565,
309,
261,
82,
422,
300,
21,
13,
288,
1377,
6798,
1079,
2932,
6225,
1297,
2027,
392,
4040,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
8088,
1435,
288,
565,
509,
290,
273,
4040,
682,
18,
588,
7416,
1016,
5621,
565,
309,
261,
82,
422,
300,
21,
13,
288,
1377,
6798,
1079,
2932,
6225,
1297,
2027,
392,
4040,
316,... |
public boolean checkGroup(XsdNode node) { if (node.transparent) { boolean checkedOk = true; Enumeration children = node.children(); while (children.hasMoreElements()) { XsdNode child = (XsdNode) children.nextElement(); if (!check(child)) { System.out.println("pb with " + child); checkedOk = false; } } node.isCheckedOk = checkedOk; //System.out.println("check " + node + ":" + checkedOk); return checkedOk; } boolean errors = false; /* check if number of subelts is correct */ HashMap maxOccurs = new HashMap(); HashMap minOccurs = new HashMap(); Enumeration children = node.children(); while (children.hasMoreElements()) { XsdNode child = (XsdNode) children.nextElement(); int nbDuplications = 1; String previousFilter = pathFilter; String filter = ""; if (associatedDuplicableFields.containsKey(child)) { // sSystem.out.println(child + ", " + getPathForNode(child) + ": // " +(String) associatedDuplicableFields // .get(child)); nbDuplications = flatFiles .nbElements((String) associatedDuplicableFields .get(child)); for (int i = 0; i < ((String) associatedDuplicableFields .get(child)).split("\\.").length; i++) { filter += "0."; } filter += "0"; pathFilter = filter; } for (int i = 0; i < nbDuplications; i++) { if (i > 0) { int lastFilterIdx = Integer.parseInt(filter .substring(filter.lastIndexOf(".") + 1)) + i; pathFilter = filter.substring(0, filter.lastIndexOf(".") + 1) + lastFilterIdx; } boolean isChildOk = check(child); switch (((Annotated) child.getUserObject()).getStructureType()) { case Structure.ATTRIBUTE: if (!isChildOk) errors = true; break; case Structure.GROUP: if (!isChildOk) { System.out.println("oups:" + node + ", " + child); errors = true; } break; case Structure.ELEMENT: /* initialisation if first occurence of the element */ if (!maxOccurs.containsKey(child.toString())) { int max = child.max; if (max != -1) { maxOccurs.put(child.toString(), new Integer(max)); } else { maxOccurs.put(child.toString(), "UNBOUNDED"); } minOccurs.put(child.toString(), new Integer(child.min)); } if (child.isCheckedOk) { try { maxOccurs.put(child.toString(), new Integer( ((Integer) maxOccurs.get(child.toString())) .intValue() - 1)); } catch (ClassCastException e) { /* * ok, max is unbounded and exception is throws when * trying to cast String to Integer */ } minOccurs.put(child.toString(), new Integer( ((Integer) minOccurs.get(child.toString())) .intValue() - 1)); // minOccurs.put(child.toString(), new Integer(0)); } } pathFilter = previousFilter; } } Iterator names = minOccurs.keySet().iterator(); Iterator mins = minOccurs.values().iterator(); Iterator maxs = maxOccurs.values().iterator(); while (names.hasNext()) { String name = (String) names.next(); // if a min is > 0, it means that an element is missing /////////////////////// dat one if (((Integer) mins.next()).intValue() > 0) { errorManager.addMessage(node, "a " + name + " is missing!", ErrorManager.error); errors = true; } /* if a max is < 0, it means there are too much elements */ try { if (((Integer) maxs.next()).intValue() < 0) { errorManager.addMessage(node, "a " + name + " should be removed", ErrorManager.error); errors = true; } } catch (ClassCastException e) { /* * ok, max is unbounded and exception is throws when trying to * cast String to Integer */ } } node.isCheckedOk = !errors; // } else { // errorManager.addMessage(node, "-->maybe something is missing", // ErrorManager.warning); // } return node.isCheckedOk; } | 3154 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3154/8317fd24793c994e235d930875bec53a6e8fe9fa/XsdTreeStructImpl.java/clean/tools/xmlMakerFlattener/src/mint/filemakers/xmlMaker/structure/XsdTreeStructImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
866,
1114,
12,
60,
6427,
907,
756,
13,
288,
202,
202,
430,
261,
2159,
18,
26516,
13,
288,
1082,
202,
6494,
5950,
8809,
273,
638,
31,
1082,
202,
21847,
2325,
273,
756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
1114,
12,
60,
6427,
907,
756,
13,
288,
202,
202,
430,
261,
2159,
18,
26516,
13,
288,
1082,
202,
6494,
5950,
8809,
273,
638,
31,
1082,
202,
21847,
2325,
273,
756,
... | ||
private boolean externalPersonsAlreadyExists(String name, String address, IWorkLocation workLocation, List<IExternalPerson> allExternalPersons) { for (IExternalPerson externalPerson : allExternalPersons) { if (externalPerson.getPerson().getNome().equals(name) && externalPerson.getPerson().getMorada().equals(address) && externalPerson.getWorkLocation().equals(workLocation) ) return true; } return false; } | private boolean externalPersonsAlreadyExists(String name, String address, IWorkLocation workLocation, List<IExternalPerson> allExternalPersons) { for (IExternalPerson externalPerson : allExternalPersons) { if (externalPerson.getPerson().getNome().equals(name) && externalPerson.getPerson().getMorada().equals(address) && externalPerson.getWorkLocation().equals(workLocation) && !externalPerson.equals(this)) return true; } return false; } | private boolean externalPersonsAlreadyExists(String name, String address, IWorkLocation workLocation, List<IExternalPerson> allExternalPersons) { for (IExternalPerson externalPerson : allExternalPersons) { if (externalPerson.getPerson().getNome().equals(name) && externalPerson.getPerson().getMorada().equals(address) && externalPerson.getWorkLocation().equals(workLocation) ) return true; } return false; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/73c8a140638e5945088c0f8db0d9349bc3baf30f/ExternalPerson.java/clean/src/net/sourceforge/fenixedu/domain/ExternalPerson.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
3903,
8346,
87,
16686,
12,
780,
508,
16,
514,
1758,
16,
467,
2421,
2735,
1440,
2735,
16,
987,
32,
45,
6841,
8346,
34,
777,
6841,
8346,
87,
13,
288,
202,
202,
1884,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3903,
8346,
87,
16686,
12,
780,
508,
16,
514,
1758,
16,
467,
2421,
2735,
1440,
2735,
16,
987,
32,
45,
6841,
8346,
34,
777,
6841,
8346,
87,
13,
288,
202,
202,
1884,
26... |
HTMLNode insertForm = insertContent.addChild("form", new String[] { "action", "method", "enctype", "encoding" }, new String[] { "/queue/", "post", "UTF-8", "multipart/form-data" }); insertForm.addChild(pageMaker.createFormPasswordInput(core.formPassword)); | HTMLNode insertForm = ctx.addFormChild(insertContent, "/queue/", "queueInsertForm"); | private HTMLNode createInsertBox(PageMaker pageMaker) { /* the insert file box */ HTMLNode insertBox = pageMaker.getInfobox("Insert File"); HTMLNode insertContent = pageMaker.getContentNode(insertBox); HTMLNode insertForm = insertContent.addChild("form", new String[] { "action", "method", "enctype", "encoding" }, new String[] { "/queue/", "post", "UTF-8", "multipart/form-data" }); insertForm.addChild(pageMaker.createFormPasswordInput(core.formPassword)); insertForm.addChild("#", "Insert as: "); insertForm.addChild("input", new String[] { "type", "name", "value", "checked" }, new String[] { "radio", "keytype", "chk", "checked" }); insertForm.addChild("#", " CHK \u00a0 "); insertForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "radio", "keytype", "ksk" }); insertForm.addChild("#", " KSK \u00a0 "); insertForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "text", "key", "KSK@" }); insertForm.addChild("#", " \u00a0 File: "); insertForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "file", "filename", "" }); insertForm.addChild("#", " \u00a0 "); insertForm.addChild("input", new String[] { "type", "name", "checked" }, new String[] { "checkbox", "compress", "checked" }); insertForm.addChild("#", " Compress \u00a0 "); insertForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "insert", "Insert file" }); insertForm.addChild("#", " \u00a0 "); insertForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "insert-local", "Browse..." }); insertForm.addChild("#", " \u00a0 "); insertForm.addChild("input", new String[] { "type", "name" }, new String[] { "reset", "Reset form" }); return insertBox; } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3982,
907,
752,
4600,
3514,
12,
1964,
12373,
1363,
12373,
13,
288,
202,
202,
20308,
326,
2243,
585,
3919,
1195,
202,
202,
4870,
907,
2243,
3514,
273,
1363,
12373,
18,
588,
966,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3982,
907,
752,
4600,
3514,
12,
1964,
12373,
1363,
12373,
13,
288,
202,
202,
20308,
326,
2243,
585,
3919,
1195,
202,
202,
4870,
907,
2243,
3514,
273,
1363,
12373,
18,
588,
966,... |
return order; } | return order; } | public int getOrder() { return order; } | 54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11973,
1435,
288,
202,
202,
2463,
1353,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11973,
1435,
288,
202,
202,
2463,
1353,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
new UTF8( Short.toString(replication))}; | toLogReplication( replication )}; | public boolean addFile(UTF8 path, Block[] blocks, short replication) { waitForReady(); // Always do an implicit mkdirs for parent directory tree String pathString = path.toString(); mkdirs(new Path(pathString).getParent().toString()); INode newNode = new INode( new File(pathString).getName(), blocks, replication); if( ! unprotectedAddFile(path, newNode) ) return false; // add create file record to log UTF8 nameReplicationPair[] = new UTF8[] { path, new UTF8( Short.toString(replication))}; logEdit(OP_ADD, new ArrayWritable( UTF8.class, nameReplicationPair ), new ArrayWritable( Block.class, newNode.blocks )); return true; } | 55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/cae1cf44dac13d6acf7521dba60d821eb3970dc3/FSDirectory.java/buggy/src/java/org/apache/hadoop/dfs/FSDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
18671,
12,
5159,
28,
589,
16,
3914,
8526,
4398,
16,
3025,
11335,
13,
288,
3639,
10712,
8367,
5621,
3639,
368,
14178,
741,
392,
10592,
18095,
364,
982,
1867,
2151,
3639,
514,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
18671,
12,
5159,
28,
589,
16,
3914,
8526,
4398,
16,
3025,
11335,
13,
288,
3639,
10712,
8367,
5621,
3639,
368,
14178,
741,
392,
10592,
18095,
364,
982,
1867,
2151,
3639,
514,
2... |
int blockSzLimitCnt = 0; | int relaySzCnt = 0; | public String getSummaryHtml(Connection conn, Timestamp startDate, Timestamp endDate) { int blockSpamCnt = 0; int blockVirusCnt = 0; int replaceVirusCnt = 0; int blockCustomCnt = 0; //int exchangeCustomCnt = 0; int passCnt = 0; int blockSzLimitCnt = 0; try { String sql = "select count(*) from tr_email_spam_evt where time_stamp >= ? and time_stamp < ? and (action != 'P')"; PreparedStatement ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); ResultSet rs = ps.executeQuery(); rs.first(); blockSpamCnt = rs.getInt(1); rs.close(); ps.close(); sql = "select count(*) from tr_email_virus_evt where time_stamp >= ? and time_stamp < ? and (action != 'P' and action != 'C')"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); blockVirusCnt = rs.getInt(1); rs.close(); ps.close(); sql = "select count(*) from tr_email_virus_evt where time_stamp >= ? and time_stamp < ? and action = 'C'"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); replaceVirusCnt = rs.getInt(1); rs.close(); ps.close(); sql = "select count(*) from tr_email_custom_evt where time_stamp >= ? and time_stamp < ? and action = 'B'"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); blockCustomCnt = rs.getInt(1); rs.close(); ps.close(); //sql = "select count(*) from tr_email_custom_evt where time_stamp >= ? and time_stamp < ? and action = 'E'"; //ps = conn.prepareStatement(sql); //ps.setTimestamp(1, startDate); //ps.setTimestamp(2, endDate); //rs = ps.executeQuery(); //rs.first(); //exchangeCustomCnt = rs.getInt(1); //rs.close(); //ps.close(); sql = "select count(*) from tr_email_szlimit_evt where time_stamp >= ? and time_stamp < ?"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); blockSzLimitCnt = rs.getInt(1); rs.close(); ps.close(); sql = "select count(*) from tr_email_custom_evt where time_stamp >= ? and time_stamp < ? and action = 'P'"; ps = conn.prepareStatement(sql); ps.setTimestamp(1, startDate); ps.setTimestamp(2, endDate); rs = ps.executeQuery(); rs.first(); passCnt = rs.getInt(1); rs.close(); ps.close(); } catch (SQLException exn) { logger.warn("could not summarize", exn); } addEntry("Number of blocked Spam messages", blockSpamCnt); addEntry("Number of blocked Virus messages", blockVirusCnt); addEntry("Number of modified Virus messages", replaceVirusCnt); addEntry("Number of blocked Custom rule messages", blockCustomCnt); //addEntry("Number of modified Custom rule messages", exchangeCustomCnt); addEntry("Number of passed messages", passCnt); addEntry("Number of blocked Size Limit messages", blockSzLimitCnt); int totalCnt = blockSpamCnt + blockVirusCnt + replaceVirusCnt + blockCustomCnt + passCnt + blockSzLimitCnt; addEntry("Total number of scanned messages", totalCnt); // XXXX String tranName = "eMail SpamGuard"; return summarizeEntries(tranName); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/86a2dd0f36f375f9bcbee1237fb2c565c37a9eba/EmailSummarizer.java/clean/tran/email/main/com/metavize/tran/email/EmailSummarizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1322,
27804,
4353,
12,
1952,
1487,
16,
8159,
12572,
16,
8159,
13202,
13,
565,
288,
3639,
509,
1203,
3389,
301,
11750,
273,
374,
31,
3639,
509,
1203,
58,
481,
407,
11750,
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,
514,
1322,
27804,
4353,
12,
1952,
1487,
16,
8159,
12572,
16,
8159,
13202,
13,
565,
288,
3639,
509,
1203,
3389,
301,
11750,
273,
374,
31,
3639,
509,
1203,
58,
481,
407,
11750,
273,
... |
fParticleIdx[fStackPos] = particleIdx; fElementDecl[fStackPos] = elmDecl; fSchemaDoc[fStackPos] = schemaDoc; fGrammar[fStackPos] = grammar; fAllContext[fStackPos] = allContextFlags; | if(fDeferTraversingLocalElements) { fSchemaHandler.fillInLocalElemInfo(elmDecl, schemaDoc, allContextFlags, particleIdx); } else { traverseLocal(particleIdx, elmDecl, schemaDoc, grammar, allContextFlags); } | int traverseLocal(Element elmDecl, XSDocumentInfo schemaDoc, SchemaGrammar grammar, int allContextFlags) { // if the stack is full, increase the size if (fParticleIdx.length == fStackPos) { // increase size int[] newStackI = new int[fStackPos+INC_STACK_SIZE]; System.arraycopy(fParticleIdx, 0, newStackI, 0, fStackPos); Element[] newStackE = new Element[fStackPos+INC_STACK_SIZE]; System.arraycopy(fElementDecl, 0, newStackE, 0, fStackPos); XSDocumentInfo[] newStackX = new XSDocumentInfo[fStackPos+INC_STACK_SIZE]; System.arraycopy(fSchemaDoc, 0, newStackX, 0, fStackPos); SchemaGrammar[] newStackS = new SchemaGrammar[fStackPos+INC_STACK_SIZE]; System.arraycopy(fGrammar, 0, newStackS, 0, fStackPos); newStackI = new int[fStackPos+INC_STACK_SIZE]; System.arraycopy(fAllContext, 0, newStackI, 0, fStackPos); } fTempParticleDecl.clear(); fTempParticleDecl.type = XSParticleDecl.PARTICLE_EMPTY; int particleIdx = grammar.addParticleDecl(fTempParticleDecl); fParticleIdx[fStackPos] = particleIdx; fElementDecl[fStackPos] = elmDecl; fSchemaDoc[fStackPos] = schemaDoc; fGrammar[fStackPos] = grammar; fAllContext[fStackPos] = allContextFlags; return particleIdx; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/a3bd7670ab2c82bb4c46b1fecaf580934f0785b9/XSDElementTraverser.java/buggy/src/org/apache/xerces/impl/v2/XSDElementTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
10080,
2042,
12,
1046,
12531,
3456,
16,
8227,
1139,
55,
2519,
966,
1963,
1759,
16,
8227,
4611,
18576,
6473,
16,
8227,
509,
777,
1042,
5094,
13,
288,
3639,
368,
309,
326,
2110,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
10080,
2042,
12,
1046,
12531,
3456,
16,
8227,
1139,
55,
2519,
966,
1963,
1759,
16,
8227,
4611,
18576,
6473,
16,
8227,
509,
777,
1042,
5094,
13,
288,
3639,
368,
309,
326,
2110,
353,
... |
if (groupsName == null) { groupsName = new String[formation.getGroups().size()+1]; groups = new Group[formation.getGroups().size()+1]; groupsName[0] = ""; int j = 1; for (Iterator i = formation.getGroups().iterator(); i.hasNext(); ++j) { groups[j] = (Group) i.next(); groupsName[j] = groups[j].getHeading(); } | /*if (groupsName == null) { try { formation = DaoManager.getFormationDao().getFormation(formation, new String[] {FormationDao.JOIN_GROUPS}); groupsName = new String[formation.getGroups().size()+1]; groups = new Group[formation.getGroups().size()+1]; groupsName[0] = ""; int j = 1; for (Iterator i = formation.getGroups().iterator(); i.hasNext(); ++j) { groups[j] = (Group) i.next(); groupsName[j] = groups[j].getHeading(); } throw new Exception(); } catch (Exception e) { JLabel label = new JLabel("Erreur lors de la rcupration des groupes"); label.setForeground(Color.RED); addComponent(AMFWLayout,layoutConstraints,label,7,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(20,10,15,10)); panel.add(label); } | private void initTypeCoursePanel(JPanel panel, int type) { GridBagLayout layout = new GridBagLayout(); GridBagConstraints layoutConstraints = new GridBagConstraints(); panel.setLayout(layout); JLabel typeCourseLabel = new JLabel(); JLabel nbGroupsLabel; nbGroupsLabel = new JLabel("Nombre de groupes :"); JLabel nameGroupLabel = new JLabel("Groupe1 :"); JLabel teacherGroupsLabel; teacherGroupsLabel = new JLabel("Enseignant :"); if (groupsName == null) { groupsName = new String[formation.getGroups().size()+1]; groups = new Group[formation.getGroups().size()+1]; groupsName[0] = ""; int j = 1; for (Iterator i = formation.getGroups().iterator(); i.hasNext(); ++j) { groups[j] = (Group) i.next(); groupsName[j] = groups[j].getHeading(); } } JComboBox nameGroupJcb = new JComboBox(groupsName); JComboBox teacherGroupsJcB = new JComboBox(teachersName); /* JPanel nameGroupsPanel = new JPanel(); JPanel chooseNameGroupsPanel = new JPanel(); JPanel teacherGroupsPanel = new JPanel(); JPanel chooseTeacherGroupsPanel = new JPanel(); */ switch(type) { case 1: typeCourseLabel.setText("Cours magistraux :"); nbGroupsMag = new JComboBox(); initNumberJcb(nbGroupsMag, 1, 10); //nbGroupsMag.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type)); addComponent(layout,layoutConstraints,nbGroupsMag,8,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10)); panel.add(nbGroupsMag); break; case 2: typeCourseLabel.setText("Travaux dirigs :"); nbGroupsTd = new JComboBox(); initNumberJcb(nbGroupsTd, 1, 10); //nbGroupsTd.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type)); addComponent(layout,layoutConstraints,nbGroupsTd,8,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10)); panel.add(nbGroupsTd); break; case 3: typeCourseLabel.setText("Travaux pratiques :"); nbGroupsTp = new JComboBox(); initNumberJcb(nbGroupsTp, 1, 10); //nbGroupsTp.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type)); addComponent(layout,layoutConstraints,nbGroupsTp,8,1,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10)); panel.add(nbGroupsTp); break; } addComponent(layout,layoutConstraints,typeCourseLabel,1,1,3,1,0.0,0.0,GridBagConstraints.EAST,GridBagConstraints.NONE,new Insets(15,10,7,10)); panel.add(typeCourseLabel); addComponent(layout,layoutConstraints,nbGroupsLabel,4,1,4,1,0.0,0.0,GridBagConstraints.WEST,GridBagConstraints.NONE,new Insets(15,10,7,10)); panel.add(nbGroupsLabel); /*nbGroupsJcb.addItemListener(new NbHourJcbListener(AMFWFrame, AMFWLayout, layoutConstraints, panel, type)); addComponent(layout,layoutConstraints,nbGroupsJcb,4,2,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,7,10)); panel.add(nbGroupsJcb);*/ /*nameGroupsPanel.setLayout(new BoxLayout(nameGroupsPanel, BoxLayout.Y_AXIS)); nameGroupsPanel.add(nameGroupLabel); nameGroupsPanel.add(Box.createVerticalStrut(13)); addComponent(layout,layoutConstraints,nameGroupsPanel,1,3,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(7,10,15,10)); panel.add(nameGroupsPanel); chooseNameGroupsPanel.setLayout(new BoxLayout(chooseNameGroupsPanel, BoxLayout.Y_AXIS)); chooseNameGroupsPanel.add(nameGroupJcb); chooseNameGroupsPanel.add(Box.createVerticalStrut(5)); addComponent(layout,layoutConstraints,chooseNameGroupsPanel,2,3,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(7,10,15,10)); panel.add(chooseNameGroupsPanel); teacherGroupsPanel.setLayout(new BoxLayout(teacherGroupsPanel, BoxLayout.Y_AXIS)); teacherGroupsPanel.add(teacherGroupsLabel); teacherGroupsPanel.add(Box.createVerticalStrut(13)); addComponent(layout,layoutConstraints,teacherGroupsPanel,6,3,2,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(7,10,15,10)); panel.add(teacherGroupsPanel); chooseTeacherGroupsPanel.setLayout(new BoxLayout(chooseTeacherGroupsPanel, BoxLayout.Y_AXIS)); chooseTeacherGroupsPanel.add(teacherGroupsJcB); chooseTeacherGroupsPanel.add(Box.createVerticalStrut(5)); addComponent(layout,layoutConstraints,chooseTeacherGroupsPanel,8,3,2,1,1.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(7,10,15,10)); panel.add(chooseTeacherGroupsPanel);*/ } | 10961 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10961/10cf7da97c1a4116a3917a89ee2388c13240904f/AddModifySubjectWindow.java/buggy/beontimeSwing/src/fr/umlv/smoreau/beontime/client/graphics/windows/AddModifySubjectWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
559,
39,
3117,
5537,
12,
46,
5537,
6594,
16,
509,
618,
13,
288,
377,
202,
6313,
5013,
3744,
3511,
273,
394,
7145,
5013,
3744,
5621,
3639,
13075,
3511,
4878,
273,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
559,
39,
3117,
5537,
12,
46,
5537,
6594,
16,
509,
618,
13,
288,
377,
202,
6313,
5013,
3744,
3511,
273,
394,
7145,
5013,
3744,
5621,
3639,
13075,
3511,
4878,
273,
394,
1... |
"Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales], [Marital Status].[All Marital Status].[M]}" + nl + "{[Measures].[Prev Unit Sales], [Marital Status].[All Marital Status].[M]}" + nl + "Axis #2:" + nl + "{[Time].[1997].[Q3].[8]}" + nl + "Row #0: 10,957" + nl + "Row #0: 10,280" + nl); | wrap(new String[] { "Axis #0:", "{}", "Axis #1:", "{[Measures].[Unit Sales], [Marital Status].[All Marital Status].[M]}", "{[Measures].[Prev Unit Sales], [Marital Status].[All Marital Status].[M]}", "Axis #2:", "{[Time].[1997].[Q3].[8]}", "Row #0: 10,957", "Row #0: 10,280" + nl})); | public void testParallelPeriodLevel() throws Exception { runQueryCheckResult("with " + " member [Measures].[Prev Unit Sales] as " + " '([Measures].[Unit Sales], parallelperiod([Time].[Quarter]))' " + "select " + " crossjoin({[Measures].[Unit Sales], [Measures].[Prev Unit Sales]}, {[Marital Status].[All Marital Status].[M]}) on columns, " + " {[Time].[1997].[Q3].[8]} on rows " + "from " + " [Sales]", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales], [Marital Status].[All Marital Status].[M]}" + nl + "{[Measures].[Prev Unit Sales], [Marital Status].[All Marital Status].[M]}" + nl + "Axis #2:" + nl + "{[Time].[1997].[Q3].[8]}" + nl + "Row #0: 10,957" + nl + "Row #0: 10,280" + nl); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13056,
5027,
2355,
1435,
1216,
1185,
288,
3639,
1086,
1138,
1564,
1253,
2932,
1918,
315,
7734,
397,
315,
565,
3140,
306,
23177,
1823,
8009,
63,
9958,
8380,
25996,
65,
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,
1842,
13056,
5027,
2355,
1435,
1216,
1185,
288,
3639,
1086,
1138,
1564,
1253,
2932,
1918,
315,
7734,
397,
315,
565,
3140,
306,
23177,
1823,
8009,
63,
9958,
8380,
25996,
65,
487,
... |
boolean sybasePrepare(String sql, String procName, ParamInfo[] params) throws SQLException { if (sql == null || sql.length() == 0) { throw new IllegalArgumentException( "sql parameter must be at least 1 character long."); } if (procName == null || procName.length() != 11) { throw new IllegalArgumentException( "procName parameter must be 11 characters long."); } // Check no text/image parameters for (int i = 0; i < params.length; i++) { if (params[i].sqlType.equals("text") || params[i].sqlType.equals("image")) { return false; // Sadly no way } } try { out.setPacketType(SYBQUERY_PKT); out.write((byte)TDS5_DYNAMIC_TOKEN); byte buf[] = Support.encodeString(connection.getCharSet(), sql); out.write((short) (buf.length + 41)); out.write((byte) 1); out.write((byte) 0); out.write((byte) 10); out.writeAscii(procName.substring(1)); out.write((short) (buf.length + 26)); out.writeAscii("create proc "); out.writeAscii(procName.substring(1)); out.writeAscii(" as "); out.write(buf); out.flush(); endOfResponse = false; clearResponseQueue(); messages.checkErrors(); } catch (IOException ioe) { isClosed = true; connection.setClosed(); throw Support.linkException( new SQLException( Support.getMessage( "error.generic.ioerror", ioe.getMessage()), "08S01"), ioe); } catch (SQLException e) { if (e.getSQLState() != null && e.getSQLState().equals("08S01")) { // Serious error rethrow throw e; } // This exception probably caused by failure to prepare // Return false; return false; } return true; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/4824f8fb57e450b4f2cc3cb1e9b7b2849806b125/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
1393,
1969,
7543,
12,
780,
1847,
16,
514,
5418,
461,
16,
3014,
966,
8526,
859,
13,
3639,
1216,
6483,
288,
3639,
309,
261,
4669,
422,
446,
747,
1847,
18,
2469,
1435,
422,
374,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
1393,
1969,
7543,
12,
780,
1847,
16,
514,
5418,
461,
16,
3014,
966,
8526,
859,
13,
3639,
1216,
6483,
288,
3639,
309,
261,
4669,
422,
446,
747,
1847,
18,
2469,
1435,
422,
374,
13,
... | ||
public void setPressedIcon(Icon pressedIcon) { pressed_button = pressedIcon; revalidate(); repaint(); } | public void setPressedIcon(Icon pressedIcon) { Icon old = pressed_icon; pressed_icon = pressedIcon; if (pressed_icon != old) { firePropertyChange(PRESSED_ICON_CHANGED_PROPERTY, old, pressed_icon); revalidate(); repaint(); } } | public void setPressedIcon(Icon pressedIcon) { pressed_button = pressedIcon; revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
17004,
4638,
5554,
12,
5554,
19504,
5554,
13,
288,
202,
202,
10906,
67,
5391,
273,
19504,
5554,
31,
202,
202,
266,
5662,
5621,
202,
202,
14462,
1598,
5621,
202,
97,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
17004,
4638,
5554,
12,
5554,
19504,
5554,
13,
288,
202,
202,
10906,
67,
5391,
273,
19504,
5554,
31,
202,
202,
266,
5662,
5621,
202,
202,
14462,
1598,
5621,
202,
97,
2,
-1... |
private DisplayMode getValidDisplayMode(int width, int height, int bpp, int freq) { //get all the modes, and find one that matches our width, height, bpp. DisplayMode[] modes; try { modes = Display.getAvailableDisplayModes(); } catch (LWJGLException e) { e.printStackTrace(); return null; } //Make sure that we find the mode that uses our current monitor freq. for (int i = 0; i < modes.length; i++) { if (modes[i].getWidth() == width && modes[i].getHeight() == height && modes[i].getBitsPerPixel() == bpp && (freq == 0 || modes[i].getFrequency()== freq)) { return modes[i]; } } //none found return null; } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/6aaba14bb39fd6af9aea6f599180d9ac7dbd923d/LWJGLDisplaySystem.java/clean/src/com/jme/system/lwjgl/LWJGLDisplaySystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9311,
2309,
22574,
4236,
2309,
12,
474,
1835,
16,
509,
2072,
16,
509,
9107,
84,
16,
5411,
509,
7684,
13,
288,
3639,
368,
588,
777,
326,
12382,
16,
471,
1104,
1245,
716,
1885,
3134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9311,
2309,
22574,
4236,
2309,
12,
474,
1835,
16,
509,
2072,
16,
509,
9107,
84,
16,
5411,
509,
7684,
13,
288,
3639,
368,
588,
777,
326,
12382,
16,
471,
1104,
1245,
716,
1885,
3134... | ||
if (srcItem.hasAttribute("name")) { | if (srcItem.hasAttribute("name")) { | protected void translateMicroArraySlideDesign(Item srcItem, Item tgtItem) throws ObjectStoreException { // move descriptions reference list promoteCollection(srcItem, "descriptions", "annotations", tgtItem, "descriptions"); // change substrateType reference to attribute Item surfaceType = ItemHelper.convert(srcItemReader .getItemById(srcItem.getReference("surfaceType").getRefId())); if (surfaceType != null && surfaceType.hasAttribute("value")) { tgtItem.addAttribute(new Attribute("surfaceType", surfaceType.getAttribute("value").getValue())); } if (srcItem.hasAttribute("version")) { tgtItem.addAttribute(new Attribute("version", srcItem.getAttribute("version").getValue())); } if (srcItem.hasAttribute("name")) { tgtItem.addAttribute(new Attribute("name", srcItem.getAttribute("name").getValue())); } } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/92aeb406bb739a7c747d04e7114f03bfdde0afcd/MageDataTranslator.java/clean/flymine/model/mage/src/java/org/flymine/dataconversion/MageDataTranslator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4204,
13617,
1076,
21068,
15478,
12,
1180,
1705,
1180,
16,
4342,
11680,
1180,
13,
3639,
1216,
1033,
21151,
288,
3639,
368,
3635,
15550,
2114,
666,
3639,
28374,
2532,
12,
4816,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4204,
13617,
1076,
21068,
15478,
12,
1180,
1705,
1180,
16,
4342,
11680,
1180,
13,
3639,
1216,
1033,
21151,
288,
3639,
368,
3635,
15550,
2114,
666,
3639,
28374,
2532,
12,
4816,
11... |
if( null != _FailureHandlers ) | if(null != _FailureHandlers) | public static AssertFailureHandler getFailureHandler(Thread t) { if(ASS) { if( null != _FailureHandlers ) return (AssertFailureHandler) _FailureHandlers.get(t); } return null; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/2de73cf99dce60cce549e7757f841284b68d1220/ER.java/clean/js/jsdj/classes/com/netscape/jsdebugging/ifcui/palomar/util/ER.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5452,
5247,
1503,
31673,
594,
1503,
12,
3830,
268,
13,
565,
288,
3639,
309,
12,
8423,
13,
3639,
288,
5411,
309,
12,
2011,
480,
389,
5247,
6919,
13,
7734,
327,
261,
8213,
5247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5452,
5247,
1503,
31673,
594,
1503,
12,
3830,
268,
13,
565,
288,
3639,
309,
12,
8423,
13,
3639,
288,
5411,
309,
12,
2011,
480,
389,
5247,
6919,
13,
7734,
327,
261,
8213,
5247... |
if ((_data == null) || (node != _start)) { _start = node; | if ((_data == null) || (node != _startNode)) { _startNode = node; _last = 0; | public NodeIterator setStartNode(int node) { if ((_data == null) || (node != _start)) { _start = node; _source.setStartNode(node); _data = new int[INIT_DATA_SIZE]; _last = 0; // gather all nodes from the source iterator, eliminate dups while ((node = _source.next()) != END) { if (_last == _data.length) { int[] newArray = new int[_data.length * 2]; System.arraycopy(_data, 0, newArray, 0, _last); _data = newArray; } if (!isDup(node)) { _data[_last++] = node; } } } _current = 0; // set to beginning return this; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/af1db24530d01b45377710411da35e8afa95b94f/DupFilterIterator.java/clean/src/org/apache/xalan/xsltc/dom/DupFilterIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
3198,
18171,
907,
12,
474,
756,
13,
288,
202,
430,
14015,
67,
892,
422,
446,
13,
747,
261,
2159,
480,
389,
1937,
3719,
288,
202,
565,
389,
1937,
273,
756,
31,
202,
565,
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,
2029,
3198,
18171,
907,
12,
474,
756,
13,
288,
202,
430,
14015,
67,
892,
422,
446,
13,
747,
261,
2159,
480,
389,
1937,
3719,
288,
202,
565,
389,
1937,
273,
756,
31,
202,
565,
38... |
addMethod(name, new CallbackMethod(method), noex | Constants.NOEX_CFUNC); | addMethod(name, new CallbackMethod(method, noex)); | public void defineMethod(String name, Callback method) { int noex = (name.equals("initialize")) ? Constants.NOEX_PRIVATE : Constants.NOEX_PUBLIC; addMethod(name, new CallbackMethod(method), noex | Constants.NOEX_CFUNC); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4426,
1305,
12,
780,
508,
16,
8444,
707,
13,
288,
3639,
509,
1158,
338,
273,
261,
529,
18,
14963,
2932,
11160,
6,
3719,
692,
5245,
18,
3417,
2294,
67,
20055,
294,
5245,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4426,
1305,
12,
780,
508,
16,
8444,
707,
13,
288,
3639,
509,
1158,
338,
273,
261,
529,
18,
14963,
2932,
11160,
6,
3719,
692,
5245,
18,
3417,
2294,
67,
20055,
294,
5245,
18,
... |
public void testBindServerOptions() throws IOException { SslTransportServer sslTransportServer = null; for (int i = 0; i < 4; ++i) { final boolean wantClientAuth = ((i & 0x1) == 1); final boolean needClientAuth = ((i & 0x2) == 1); String options = "wantClientAuth=" + (wantClientAuth ? "true" : "false") + "&needClientAuth=" + (needClientAuth ? "true" : "false"); try { sslTransportServer = (SslTransportServer) factory.doBind("brokerId", new URI("ssl://localhost:61616?" + options)); } catch (Exception e) { fail("Unable to bind to address: " + e.getMessage()); } assertEquals("Created ServerSocket did not have correct wantClientAuth status.", sslTransportServer.getWantClientAuth(), wantClientAuth); assertEquals("Created ServerSocket did not have correct needClientAuth status.", sslTransportServer.getNeedClientAuth(), needClientAuth); try { sslTransportServer.stop(); } catch (Exception e) { fail("Unable to stop TransportServer: " + e.getMessage()); } } } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/6e34afc293d6a87963cf3613ada19c2d57b62184/SslTransportFactoryTest.java/buggy/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3357,
2081,
1320,
1435,
1216,
1860,
288,
13491,
23929,
6568,
2081,
5832,
6568,
2081,
273,
446,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
965,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3357,
2081,
1320,
1435,
1216,
1860,
288,
13491,
23929,
6568,
2081,
5832,
6568,
2081,
273,
446,
31,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
965,
77,
... | ||
AST __t757 = _t; | AST __t762 = _t; | public final void findstate(AST _t) throws RecognitionException { AST findstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST r = null; AST __t755 = _t; AST tmp1278_AST_in = (AST)_t; match(_t,FIND); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CURRENT: case EACH: case FIRST: case LAST: case NEXT: case PREV: { findwhich(_t); _t = _retTree; break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } AST __t757 = _t; r = _t==ASTNULL ? null :(AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.recordNameNode(r, CQ.INIT); } recordphrase(_t); _t = _retTree; _t = __t757; _t = _t.getNextSibling(); { _loop759: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOWAIT: { AST tmp1279_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOPREFETCH: { AST tmp1280_AST_in = (AST)_t; match(_t,NOPREFETCH); _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp1281_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop759; } } } while (true); } state_end(_t); _t = _retTree; _t = __t755; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1104,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1104,
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,
1104,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1104,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... |
next.line0+i, | next.line1+i, | private void compute(Diff.change next) { if (next == null) return;//System.out.println("\nAnalysing hunk (" + next.line0 + "," + next.line1 + "," + next.deleted + "," + next.inserted + ")"); if (next.inserted == 0 && next.deleted == 0) return; if (next.inserted == 0) { // no inserted => #deleted lines beggining at line0+1 deleted in a for (int i = 0; i < next.deleted; i++) { lineDiffs.add(new LineDiff(code0[next.line0 + i], next.line0+i, null, LineDiff.ChangeType.DELETED));//System.out.println(" " + (next.line0+i+1) + "< " + code0[next.line0 + i]); } } if (next.inserted != 0 && next.deleted == 0) { // no deleted => #inserted lines beggining at line1+1 deleted in b for (int i = 0; i < next.inserted; i++) { lineDiffs.add(new LineDiff(null, next.line1+i, code1[next.line1 + i], LineDiff.ChangeType.INSERTED));//System.out.println(" " + (next.line1+i+1) + "> " + code1[next.line1 + i]); } } if (next.inserted != 0 && next.deleted != 0) { assert(next.line0 == next.line1); // TODO: Check this! Is it really o.k.? It happens from time to time //if (next.line0 != next.line1) System.out.println("\nProblematic hunk (" + next.line0 + "," + next.line1 + "," + next.deleted + "," + next.inserted + ")"); int affected = (next.deleted > next.inserted ? next.deleted : next.inserted); for (int i = 0; i < affected; i++) { if (i < next.inserted && i < next.deleted) { lineDiffs.add(new LineDiff(code0[next.line0 + i], next.line0+i, code1[next.line1 + i], LineDiff.ChangeType.CHANGED));//System.out.println(" " + (next.line0+i+1) + "<> " + code0[next.line0 + i]);//System.out.println(" " + (next.line1+i+1) + ">< " + code1[next.line1 + i]); } else if (i >= next.inserted && i < next.deleted) { lineDiffs.add(new LineDiff(code0[next.line0 + i], next.line0+i, null, LineDiff.ChangeType.DELETED));//System.out.println(" " + (next.line0+i+1) + "< " + code0[next.line0 + i]); } else if (i < next.inserted && i >= next.deleted) { lineDiffs.add(new LineDiff(null, next.line1+i, code1[next.line1 + i], LineDiff.ChangeType.INSERTED));//System.out.println(" " + (next.line1+i+1) + "> " + code1[next.line1 + i]); } else assert (false); } } } | 239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/239/628682d2ec645f88e76e2a515a4e0dbcb5937672/CodechangeDifferIntermediateModule.java/clean/modules/ECG_CodechangeDifferIntermediateModule/src/org/electrocodeogram/module/intermediate/implementation/CodechangeDifferIntermediateModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
3671,
12,
5938,
18,
3427,
1024,
13,
288,
1082,
202,
430,
261,
4285,
422,
446,
13,
9506,
202,
2463,
31,
759,
3163,
18,
659,
18,
8222,
31458,
82,
979,
3646,
310,
366,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
3671,
12,
5938,
18,
3427,
1024,
13,
288,
1082,
202,
430,
261,
4285,
422,
446,
13,
9506,
202,
2463,
31,
759,
3163,
18,
659,
18,
8222,
31458,
82,
979,
3646,
310,
366,
1... |
dr = connection.ExecSQL("select typname from pg_type where oid = "+r.getString(4)); dr.next(); String typname=dr.getString(1); dr.close(); tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); tuple[5] = typname.getBytes(); | String nullFlag = r.getString(6); String typname = r.getString(10); | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { // the field descriptors for the new ResultSet Field f[] = new Field[18]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid,4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); // Added by Stefan Andreasen <stefan@linux.kapow.dk> // If the pattern are null then set them to % if (tableNamePattern == null) tableNamePattern="%"; if (columnNamePattern == null) columnNamePattern="%"; // Now form the query String query = "select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid" : "a.oid") + ",c.relname,a.attname,a.atttypid," + "a.attnum,a.attnotnull,a.attlen,a.atttypmod,d.adsrc " + "from (pg_class c inner join pg_attribute a " + "on (c.oid=a.attrelid) ) " + "left outer join pg_attrdef d " + "on (c.oid=d.adrelid and d.adnum=a.attnum) " + "where " + "c.relname like '"+tableNamePattern.toLowerCase()+"' and " + "a.attname like '"+columnNamePattern.toLowerCase()+"' and " + "a.attnum>0 " + "order by c.relname,a.attnum"; r = connection.ExecSQL(query); while(r.next()) { byte[][] tuple = new byte[18][0]; // Fetch the description for the table (if any) String getDescriptionStatement = connection.haveMinimumServerVersion("7.2") ? "select col_description(" + r.getInt(1) + "," + r.getInt(5) + ")" : "select description from pg_description where objoid=" + r.getInt(1); java.sql.ResultSet dr = connection.ExecSQL(getDescriptionStatement); if(((org.postgresql.ResultSet)dr).getTupleCount()==1) { dr.next(); tuple[11] = dr.getBytes(1); } else tuple[11] = null; dr.close(); tuple[0] = "".getBytes(); // Catalog name tuple[1] = "".getBytes(); // Schema name tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name dr = connection.ExecSQL("select typname from pg_type where oid = "+r.getString(4)); dr.next(); String typname=dr.getString(1); dr.close(); tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else tuple[6] = r.getBytes(7); tuple[7] = null; // Buffer length tuple[8] = "0".getBytes(); // Decimal Digits - how to get this? tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal // tuple[10] is below // tuple[11] is above tuple[12] = r.getBytes(9); // column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position String nullFlag = r.getString(6); tuple[10] = Integer.toString(nullFlag.equals("f")?java.sql.DatabaseMetaData.columnNullable:java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[17] = (nullFlag.equals("f")?"YES":"NO").getBytes(); // is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/07ce9fe61dd6cb7399d76f4a9cbcbe191b988ff2/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
326,
652,
14215,
364,
326,
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,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
326,
652,
14215,
364,
326,
394,... |
executeSQL("CREATE TABLE " + tableName + " ( " + partialSQL + " )"); | addTableWithSQL(tableName, partialSQL, true); | public void addTableFromSQL(String tableName) { String partialSQL = null; try { partialSQL = m_installer.getTableCreateFromSQL(tableName); } catch (Exception e) { fail("Could not get SQL for table '" + tableName + "'", e); } executeSQL("CREATE TABLE " + tableName + " ( " + partialSQL + " )"); } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/9c0a59382d378a750edf84524762ab71e335b4b3/InstallerDBTest.java/buggy/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
1388,
1265,
3997,
12,
780,
4775,
13,
288,
3639,
514,
4702,
3997,
273,
446,
31,
3639,
775,
288,
5411,
4702,
3997,
273,
312,
67,
20163,
18,
588,
1388,
1684,
1265,
3997,
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,
527,
1388,
1265,
3997,
12,
780,
4775,
13,
288,
3639,
514,
4702,
3997,
273,
446,
31,
3639,
775,
288,
5411,
4702,
3997,
273,
312,
67,
20163,
18,
588,
1388,
1684,
1265,
3997,
12... |
case GREATER_THAN: { match( GREATER_THAN ); additiveExpr(); operator = Operator.GREATER_THAN; break; } case LESS_THAN_EQUALS: { match( LESS_THAN_EQUALS ); additiveExpr(); operator = Operator.LESS_THAN_EQUALS; break; } case GREATER_THAN_EQUALS: { match( GREATER_THAN_EQUALS ); additiveExpr(); operator = Operator.GREATER_THAN_EQUALS; break; } | la = LA(1); | private void relationalExpr() throws SAXPathException { getXPathHandler().startRelationalExpr(); getXPathHandler().startRelationalExpr(); additiveExpr(); int operator = Operator.NO_OP; switch ( LA(1) ) { case LESS_THAN: { match( LESS_THAN ); additiveExpr(); operator = Operator.LESS_THAN; break; } case GREATER_THAN: { match( GREATER_THAN ); additiveExpr(); operator = Operator.GREATER_THAN; break; } case LESS_THAN_EQUALS: { match( LESS_THAN_EQUALS ); additiveExpr(); operator = Operator.LESS_THAN_EQUALS; break; } case GREATER_THAN_EQUALS: { match( GREATER_THAN_EQUALS ); additiveExpr(); operator = Operator.GREATER_THAN_EQUALS; break; } } getXPathHandler().endRelationalExpr( operator ); operator = Operator.NO_OP; switch ( LA(1) ) { case LESS_THAN: { match( LESS_THAN ); relationalExpr(); operator = Operator.LESS_THAN; break; } case GREATER_THAN: { match( GREATER_THAN ); relationalExpr(); operator = Operator.GREATER_THAN; break; } case LESS_THAN_EQUALS: { match( LESS_THAN_EQUALS ); relationalExpr(); operator = Operator.LESS_THAN_EQUALS; break; } case GREATER_THAN_EQUALS: { match( GREATER_THAN_EQUALS ); relationalExpr(); operator = Operator.GREATER_THAN_EQUALS; break; } } getXPathHandler().endRelationalExpr( operator ); } | 47970 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47970/9fae5b4d11feeaf10d38b58bfad0788820621cae/XPathReader.java/buggy/src/java/main/org/jaxen/saxpath/base/XPathReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
25302,
4742,
1435,
1216,
10168,
743,
503,
565,
288,
3639,
6538,
743,
1503,
7675,
1937,
15060,
4742,
5621,
3639,
6538,
743,
1503,
7675,
1937,
15060,
4742,
5621,
3639,
527,
3720,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
25302,
4742,
1435,
1216,
10168,
743,
503,
565,
288,
3639,
6538,
743,
1503,
7675,
1937,
15060,
4742,
5621,
3639,
6538,
743,
1503,
7675,
1937,
15060,
4742,
5621,
3639,
527,
3720,
4... |
|| ! TableUtils.isNumberValue(yValue)) | || ! TableUtil.isNumberValue(yValue)) | private void initScale(Table table, String columnX, String columnY) { double minX = Double.MAX_VALUE; double maxX = -Double.MAX_VALUE; double minY = Double.MAX_VALUE; double maxY = -Double.MAX_VALUE; m_onlyBoolValues = true; m_onlyIntValuesX = true; m_onlyIntValuesY = true; for (int row = 0; row < table.getNumberRows(); ++row) { String xValue = table.get(columnX, row); String yValue = table.get(columnY, row); if (xValue == null || yValue == null || ! TableUtils.isNumberValue(yValue)) continue; if (! TableUtils.isBoolValue(yValue)) m_onlyBoolValues = false; if (! TableUtils.isIntValue(xValue)) m_onlyIntValuesX = false; if (! TableUtils.isIntValue(yValue)) m_onlyIntValuesY = false; try { double x = Double.parseDouble(xValue); double y = Double.parseDouble(yValue); minX = Math.min(minX, x); maxX = Math.max(maxX, x); minY = Math.min(minY, y); maxY = Math.max(maxY, y); } catch (NumberFormatException e) { } } initScaleX(minX, maxX); initScaleY(minY, maxY); } | 2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/1f50ffb219183ddaf94720a4aba453e11f412425/Plot.java/buggy/src/net/sf/gogui/gtpstatistics/Plot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
5587,
12,
1388,
1014,
16,
514,
1057,
60,
16,
514,
1057,
61,
13,
565,
288,
3639,
1645,
21586,
273,
3698,
18,
6694,
67,
4051,
31,
3639,
1645,
21482,
273,
300,
5265,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
5587,
12,
1388,
1014,
16,
514,
1057,
60,
16,
514,
1057,
61,
13,
565,
288,
3639,
1645,
21586,
273,
3698,
18,
6694,
67,
4051,
31,
3639,
1645,
21482,
273,
300,
5265,
18,
... |
btnTrendline = createToggleButton( cmp, popup.getTitle( ), popup ); | btnTrendline = createToggleButton( cmp, Messages.getString( "SeriesYSheetImpl.Label.Trendline&" ), popup ); | private void createButtonGroup( Composite parent ) { Composite cmp = new Composite( parent, SWT.NONE ); { cmp.setLayout( new GridLayout( 6, false ) ); GridData gridData = new GridData( GridData.FILL_HORIZONTAL ); gridData.horizontalSpan = 2; gridData.grabExcessVerticalSpace = true; gridData.verticalAlignment = SWT.END; cmp.setLayoutData( gridData ); } // Label or Region ITaskPopupSheet popup; if ( !( getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) instanceof StockSeries ) ) { if ( isMeterSeries( ) ) { popup = new DialLabelSheet( Messages.getString( "SeriesYSheetImpl.Label.Labels" ), //$NON-NLS-1$ getContext( ), getSeriesDefinitionForProcessing( ) ); btnDialLabel = createToggleButton( cmp, popup.getTitle( ), popup ); btnDialLabel.addSelectionListener( this ); popup = new SeriesRegionSheet( Messages.getString( "SeriesYSheetImpl.Label.Region" ), //$NON-NLS-1$ getContext( ), getSeriesDefinitionForProcessing( ) ); btnDialRegion = createToggleButton( cmp, popup.getTitle( ), popup ); btnDialRegion.addSelectionListener( this ); } else { popup = new SeriesLabelSheet( Messages.getString( "SeriesYSheetImpl.Label.Labels" ), //$NON-NLS-1$ getContext( ), getSeriesDefinitionForProcessing( ) ); btnLabel = createToggleButton( cmp, popup.getTitle( ), popup ); btnLabel.addSelectionListener( this ); } } else { // Disable Label properties for Stock series btnLabel = new Button( cmp, SWT.NONE ); btnLabel.setVisible( false ); } // Titles for Pie series if ( getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) instanceof PieSeries ) { popup = new PieTitleSheet( Messages.getString( "SeriesYSheetImpl.Label.Titles" ), //$NON-NLS-1$ getContext( ), getSeriesDefinitionForProcessing( ) ); btnPieTitle = createToggleButton( cmp, popup.getTitle( ), popup ); btnPieTitle.addSelectionListener( this ); } // Markers for Line/Area/Scatter series if ( getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) instanceof LineSeries ) { popup = new LineSeriesMarkerSheet( Messages.getString( "SeriesYSheetImpl.Label.Markers" ), //$NON-NLS-1$ getContext( ), (LineSeries) getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) ); btnLineMarker = createToggleButton( cmp, popup.getTitle( ), popup ); btnLineMarker.addSelectionListener( this ); } // Interactivity popup = new InteractivitySheet( Messages.getString( "SeriesYSheetImpl.Label.Interactivity" ), //$NON-NLS-1$ getContext( ), getSeriesDefinitionForProcessing( ).getDesignTimeSeries( ) .getTriggers( ), true, false ); btnInteractivity = createToggleButton( cmp, popup.getTitle( ), popup ); btnInteractivity.addSelectionListener( this ); btnInteractivity.setEnabled( getChart( ).getInteractivity( ).isEnable( ) ); // Trendline if ( isTrendlineAvailable( ) ) { popup = new SeriesTrendlineSheet( Messages.getString( "SeriesYSheetImpl.Label.Trendline" ), //$NON-NLS-1$ getContext( ), getSeriesDefinitionForProcessing( ) ); btnTrendline = createToggleButton( cmp, popup.getTitle( ), popup ); btnTrendline.addSelectionListener( this ); btnTrendline.setEnabled( btnShowLine.getSelection( ) ); } // SeriesPalette popup = new SeriesPaletteSheet( Messages.getString( "SeriesXSheetImpl.Label.SeriesPalette" ), //$NON-NLS-1$ getContext( ), getSeriesDefinitionForProcessing( ) ); btnPalette = createToggleButton( cmp, popup.getTitle( ), popup ); btnPalette.addSelectionListener( this ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/8809bc426a3662f0ca5c28e3a367a36ddbf7e336/SeriesYSheetImpl.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/series/SeriesYSheetImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3616,
1114,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9411,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
9625,
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,
225,
202,
1152,
918,
752,
3616,
1114,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9411,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
9625,
18,
542,
... |
WWinPluginAction action = (WWinPluginAction)iter.next(); | WWinPluginAction action = (WWinPluginAction) iter.next(); | public static void refreshActionList() { Iterator iter = staticActionList.iterator(); while (iter.hasNext()) { WWinPluginAction action = (WWinPluginAction)iter.next(); if ((action.getDelegate() == null) && action.isOkToCreateDelegate()) { action.createDelegate(); // creating the delegate also refreshes its enablement } } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3113adf073596bfd0c0770703963de0f288cda77/WWinPluginAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinPluginAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
4460,
1803,
682,
1435,
288,
202,
202,
3198,
1400,
273,
760,
1803,
682,
18,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1082,
202,
59,
18049,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
4460,
1803,
682,
1435,
288,
202,
202,
3198,
1400,
273,
760,
1803,
682,
18,
9838,
5621,
202,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
1082,
202,
59,
18049,
... |
for (Iterator tuples = tuplesToAssert.iterator( ); tuples.hasNext( );) { LeapsTuple tuple = (LeapsTuple) tuples.next( ); | for (final Iterator it = tuplesToAssert.iterator( ); it.hasNext( );) { final LeapsTuple tuple = (LeapsTuple) it.next( ); | public void doAssertObject( final InternalFactHandle factHandle, final Object object, final PropagationContext propagationContext ) throws FactException { this.pushTokenOnStack( factHandle, new Token( this, factHandle, propagationContext ) ); // determine what classes it belongs to put it into the "table" on // class name key List tuplesToAssert = new LinkedList( ); final Object objectClass = LeapsBuilder.getLeapsClassType( object ); for (final Iterator tables = this.getFactTablesList( objectClass ).iterator( ); tables.hasNext( );) { tuplesToAssert.clear( ); final FactTable factTable = (FactTable) tables.next( ); // adding fact to container factTable.add( factHandle ); for (final Iterator tuples = factTable.getTuplesIterator( ); tuples.hasNext( );) { final LeapsTuple tuple = (LeapsTuple) tuples.next( ); final ColumnConstraints[] not = tuple.getLeapsRule( ) .getNotColumnConstraints( ); for (int i = 0, length = not.length; i < length; i++) { final ColumnConstraints constraint = not[i]; final Object columnClassObject = constraint.getClassType( ); if (!tuple.isBlockingNotFactHandle( i ) && ( ( objectClass.getClass( ) == Class.class && columnClassObject.getClass( ) == Class.class && ( (Class) columnClassObject ).isAssignableFrom( (Class) objectClass ) ) || ( objectClass.getClass( ) != Class.class && columnClassObject.getClass( ) != Class.class && columnClassObject.equals( objectClass ) ) ) && constraint.isAllowed( factHandle, tuple, this )) { tuple.setBlockingNotFactHandle( (LeapsFactHandle) factHandle, i ); ( (LeapsFactHandle) factHandle ).addNotTuple( tuple, i ); } } // check exists constraints and activate constraints final ColumnConstraints[] exists = tuple.getLeapsRule( ) .getExistsColumnConstraints( ); for (int i = 0, length = exists.length; i < length; i++) { final ColumnConstraints constraint = exists[i]; final Object columnClassObject = constraint.getClassType( ); if (!tuple.isExistsFactHandle( i ) && ( ( objectClass.getClass( ) == Class.class && columnClassObject.getClass( ) == Class.class && ( (Class) columnClassObject ).isAssignableFrom( (Class) objectClass ) ) || ( objectClass.getClass( ) != Class.class && columnClassObject.getClass( ) != Class.class && columnClassObject.equals( objectClass ) ) ) && constraint.isAllowed( factHandle, tuple, this )) { tuple.setExistsFactHandle( (LeapsFactHandle) factHandle, i ); ( (LeapsFactHandle) factHandle ).addExistsTuple( tuple, i ); } } // check and see if we need activate // activate only if tuple was not ready for it before if (tuple.isReadyForActivation( )) { // ready to activate tuple.setContext( new PropagationContextImpl( nextPropagationIdCounter( ), PropagationContext.ASSERTION, tuple.getLeapsRule( ) .getRule( ), null ) ); tuplesToAssert.add( tuple ); } } for (Iterator tuples = tuplesToAssert.iterator( ); tuples.hasNext( );) { LeapsTuple tuple = (LeapsTuple) tuples.next( ); factTable.removeTuple( tuple ); this.assertTuple( tuple ); } } // inspect all tuples for exists and not conditions and activate // deactivate agenda items Activation[] activations = this.agenda.getActivations( ); for (int k = 0; k < activations.length; k++) { boolean deActivate = false; LeapsTuple tuple = (LeapsTuple) activations[k].getTuple( ); final ColumnConstraints[] not = tuple.getLeapsRule( ).getNotColumnConstraints( ); for (int i = 0, length = not.length; i < length; i++) { final ColumnConstraints constraint = not[i]; final Object columnClassObject = constraint.getClassType( ); if (!tuple.isBlockingNotFactHandle( i ) && ( ( objectClass.getClass( ) == Class.class && columnClassObject.getClass( ) == Class.class && ( (Class) columnClassObject ).isAssignableFrom( (Class) objectClass ) ) || ( objectClass.getClass( ) != Class.class && columnClassObject.getClass( ) != Class.class && columnClassObject.equals( objectClass ) ) ) && constraint.isAllowed( factHandle, tuple, this )) { tuple.setBlockingNotFactHandle( (LeapsFactHandle) factHandle, i ); ( (LeapsFactHandle) factHandle ).addNotTuple( tuple, i ); if (!deActivate) { deActivate = true; } } } // check and see if we need de-activate if (deActivate) { if (tuple.getLeapsRule( ).getRule( ) instanceof Query) { // put query results to the working memory // location removeFromQueryResults( tuple.getLeapsRule( ).getRule( ).getName( ), tuple ); } else { // time to pull from agenda invalidateActivation( tuple ); } } } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f1bb0dc439f4aa4ef99a6d30ed745da9b7d52db4/LeapsWorkingMemory.java/buggy/drools-core/src/main/java/org/drools/leaps/LeapsWorkingMemory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
8213,
921,
12,
727,
3186,
9766,
3259,
5410,
3259,
16,
27573,
727,
1033,
733,
16,
27573,
727,
1186,
9095,
367,
1042,
25686,
1042,
262,
5411,
1216,
29057,
503,
288,
3639,
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,
918,
741,
8213,
921,
12,
727,
3186,
9766,
3259,
5410,
3259,
16,
27573,
727,
1033,
733,
16,
27573,
727,
1186,
9095,
367,
1042,
25686,
1042,
262,
5411,
1216,
29057,
503,
288,
3639,
33... |
return new Table_doc_permission_sets( rs ); | return new Table_new_doc_permission_sets( rs ); | public Object mapOneRow( ResultSet rs ) throws SQLException { return new Table_doc_permission_sets( rs ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ceb6434abc174e9f93dd61c0cedb88d1ca009f2b/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
3555,
67,
2704,
67,
2434,
67,
9827,
67,
4424,
12,
3597,
11272,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
3555,
67,
2704,
67,
2434,
67,
9827,
67,
4424,
12,
3597,
11272,
5411,
289,
2,
-100,
-100,
-100,
-100,
... |
match(input,33,FOLLOW_33_in_word2592); | match(input,33,FOLLOW_33_in_word2595); | public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:870:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt58=11; switch ( input.LA(1) ) { case ID: alt58=1; break; case 17: alt58=2; break; case 56: alt58=3; break; case 28: alt58=4; break; case 26: alt58=5; break; case 33: alt58=6; break; case 34: alt58=7; break; case 29: alt58=8; break; case 31: alt58=9; break; case 27: alt58=10; break; case STRING: alt58=11; break; default: NoViableAltException nvae = new NoViableAltException("866:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 58, 0, input); throw nvae; } switch (alt58) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:870:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2538); word=id.getText(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:871:17: 'import' { match(input,17,FOLLOW_17_in_word2550); word="import"; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:872:17: 'use' { match(input,56,FOLLOW_56_in_word2559); word="use"; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:17: 'rule' { match(input,28,FOLLOW_28_in_word2571); word="rule"; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:874:17: 'query' { match(input,26,FOLLOW_26_in_word2582); word="query"; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:875:17: 'salience' { match(input,33,FOLLOW_33_in_word2592); word="salience"; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:876:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2600); word="no-loop"; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:877:17: 'when' { match(input,29,FOLLOW_29_in_word2608); word="when"; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:878:17: 'then' { match(input,31,FOLLOW_31_in_word2619); word="then"; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:879:17: 'end' { match(input,27,FOLLOW_27_in_word2630); word="end"; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:880:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2644); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f57cd683a66080d941264e3f98974908a6a489a0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
... |
case 157: case 158: | case 159: case 160: | public final void pathExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST pathExpr_AST = null; org.exist.xquery.parser.XQueryAST relPath_AST = null; org.exist.xquery.parser.XQueryAST relPath2_AST = null; switch ( LA(1)) { case LPAREN: case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case STRING_LITERAL: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case DOLLAR: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LT: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 139: case 140: case LITERAL_document: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_collection: case LITERAL_preceding: { relativePathExpr(); astFactory.addASTChild(currentAST, returnAST); pathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case DSLASH: { org.exist.xquery.parser.XQueryAST tmp193_AST = null; tmp193_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp193_AST); match(DSLASH); relativePathExpr(); relPath2_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { pathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; pathExpr_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(ABSOLUTE_DSLASH,"AbsoluteSlashSlash")).add(relPath2_AST)); currentAST.root = pathExpr_AST; currentAST.child = pathExpr_AST!=null &&pathExpr_AST.getFirstChild()!=null ? pathExpr_AST.getFirstChild() : pathExpr_AST; currentAST.advanceChildToEnd(); } pathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: boolean synPredMatched177 = false; if (((LA(1)==SLASH))) { int _m177 = mark(); synPredMatched177 = true; inputState.guessing++; try { { match(SLASH); relativePathExpr(); } } catch (RecognitionException pe) { synPredMatched177 = false; } rewind(_m177); inputState.guessing--; } if ( synPredMatched177 ) { org.exist.xquery.parser.XQueryAST tmp194_AST = null; tmp194_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp194_AST); match(SLASH); relativePathExpr(); relPath_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { pathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; pathExpr_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(ABSOLUTE_SLASH,"AbsoluteSlash")).add(relPath_AST)); currentAST.root = pathExpr_AST; currentAST.child = pathExpr_AST!=null &&pathExpr_AST.getFirstChild()!=null ? pathExpr_AST.getFirstChild() : pathExpr_AST; currentAST.advanceChildToEnd(); } pathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((LA(1)==SLASH)) { org.exist.xquery.parser.XQueryAST tmp195_AST = null; tmp195_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp195_AST); match(SLASH); if ( inputState.guessing==0 ) { pathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; pathExpr_AST= (org.exist.xquery.parser.XQueryAST)astFactory.create(ABSOLUTE_SLASH,"AbsoluteSlash"); currentAST.root = pathExpr_AST; currentAST.child = pathExpr_AST!=null &&pathExpr_AST.getFirstChild()!=null ? pathExpr_AST.getFirstChild() : pathExpr_AST; currentAST.advanceChildToEnd(); } pathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = pathExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
589,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
589,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
56... |
initEAttribute(getQuery_Definition(), theXMLTypePackage.getString(), "definition", null, 1, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getQuery_Rules(), this.getRule(), null, "rules", null, 1, -1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | initEAttribute(getQuery_Definition(), theXMLTypePackage.getString(), "definition", null, 1, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getQuery_Rules(), this.getRule(), null, "rules", null, 1, -1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages AttributePackageImpl theAttributePackage = (AttributePackageImpl)EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI); XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl)EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI); // Add supertypes to classes dateTimeDataElementEClass.getESuperTypes().add(this.getDataElement()); dateTimeDataSetEClass.getESuperTypes().add(this.getDataSet()); numberDataElementEClass.getESuperTypes().add(this.getDataElement()); numberDataSetEClass.getESuperTypes().add(this.getDataSet()); stockDataSetEClass.getESuperTypes().add(this.getDataSet()); textDataSetEClass.getESuperTypes().add(this.getDataSet()); // Initialize classes and features; add operations and parameters initEClass(actionEClass, Action.class, "Action", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getAction_Type(), theAttributePackage.getActionType(), "type", "URL_Redirect", 1, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getAction_Value(), theAttributePackage.getActionValue(), null, "value", null, 1, 1, Action.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(baseSampleDataEClass, BaseSampleData.class, "BaseSampleData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBaseSampleData_DataSetRepresentation(), theXMLTypePackage.getString(), "dataSetRepresentation", null, 1, 1, BaseSampleData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(dataElementEClass, DataElement.class, "DataElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(dataSetEClass, DataSet.class, "DataSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDataSet_Values(), theXMLTypePackage.getAnySimpleType(), "values", null, 1, 1, DataSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(dateTimeDataElementEClass, DateTimeDataElement.class, "DateTimeDataElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDateTimeDataElement_Value(), theXMLTypePackage.getLong(), "value", null, 1, 1, DateTimeDataElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(dateTimeDataSetEClass, DateTimeDataSet.class, "DateTimeDataSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(numberDataElementEClass, NumberDataElement.class, "NumberDataElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNumberDataElement_Value(), theXMLTypePackage.getDouble(), "value", null, 1, 1, NumberDataElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(numberDataSetEClass, NumberDataSet.class, "NumberDataSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(orthogonalSampleDataEClass, OrthogonalSampleData.class, "OrthogonalSampleData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getOrthogonalSampleData_DataSetRepresentation(), theXMLTypePackage.getString(), "dataSetRepresentation", null, 1, 1, OrthogonalSampleData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getOrthogonalSampleData_SeriesDefinitionIndex(), theXMLTypePackage.getInt(), "seriesDefinitionIndex", null, 1, 1, OrthogonalSampleData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(queryEClass, Query.class, "Query", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getQuery_Definition(), theXMLTypePackage.getString(), "definition", null, 1, 1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getQuery_Rules(), this.getRule(), null, "rules", null, 1, -1, Query.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(ruleEClass, Rule.class, "Rule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getRule_Type(), theAttributePackage.getRuleType(), "type", "Filter", 1, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getRule_Value(), theXMLTypePackage.getString(), "value", null, 1, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(sampleDataEClass, SampleData.class, "SampleData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getSampleData_BaseSampleData(), this.getBaseSampleData(), null, "baseSampleData", null, 1, -1, SampleData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSampleData_OrthogonalSampleData(), this.getOrthogonalSampleData(), null, "orthogonalSampleData", null, 1, -1, SampleData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(seriesDefinitionEClass, SeriesDefinition.class, "SeriesDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getSeriesDefinition_Query(), this.getQuery(), null, "query", null, 1, 1, SeriesDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSeriesDefinition_SeriesPalette(), theAttributePackage.getPalette(), null, "seriesPalette", null, 1, 1, SeriesDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSeriesDefinition_SeriesDefinitions(), this.getSeriesDefinition(), null, "seriesDefinitions", null, 1, -1, SeriesDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSeriesDefinition_Series(), theComponentPackage.getSeries(), null, "series", null, 1, -1, SeriesDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getSeriesDefinition_Grouping(), this.getSeriesGrouping(), null, "grouping", null, 0, 1, SeriesDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSeriesDefinition_Sorting(), theAttributePackage.getSortOption(), "sorting", "Ascending", 0, 1, SeriesDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(seriesGroupingEClass, SeriesGrouping.class, "SeriesGrouping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSeriesGrouping_Enabled(), theXMLTypePackage.getBoolean(), "enabled", null, 1, 1, SeriesGrouping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSeriesGrouping_GroupingUnit(), theXMLTypePackage.getString(), "groupingUnit", null, 1, 1, SeriesGrouping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSeriesGrouping_GroupingInterval(), theXMLTypePackage.getInt(), "groupingInterval", null, 1, 1, SeriesGrouping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSeriesGrouping_GroupType(), theXMLTypePackage.getString(), "groupType", null, 1, 1, SeriesGrouping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSeriesGrouping_AggregateExpression(), theXMLTypePackage.getString(), "aggregateExpression", null, 1, 1, SeriesGrouping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(stockDataSetEClass, StockDataSet.class, "StockDataSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(textDataSetEClass, TextDataSet.class, "TextDataSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(triggerEClass, Trigger.class, "Trigger", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getTrigger_Condition(), theAttributePackage.getTriggerCondition(), "condition", "Mouse_Hover", 1, 1, Trigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getTrigger_Action(), this.getAction(), null, "action", null, 1, 1, Trigger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Create resource createResource(eNS_URI); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/DataPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/DataPackageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
2261,
6323,
1435,
565,
288,
3639,
309,
261,
291,
11459,
13,
327,
31,
3639,
25359,
273,
638,
31,
3639,
368,
9190,
2181,
3639,
6788,
12,
73,
1985,
1769,
3639,
444,
10386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
2261,
6323,
1435,
565,
288,
3639,
309,
261,
291,
11459,
13,
327,
31,
3639,
25359,
273,
638,
31,
3639,
368,
9190,
2181,
3639,
6788,
12,
73,
1985,
1769,
3639,
444,
10386,
... |
setColumn(columnName, java.sql.Date.valueOf(columnValue)); | setColumn(columnName, java.sql.Date.valueOf(columnValue),true); | public void setStringColumn(String columnName, String columnValue) { int classType = getStorageClassType(columnName); if (classType == EntityAttribute.TYPE_JAVA_LANG_INTEGER) { if (columnValue != null) { setColumn(columnName, new Integer(columnValue)); } } else if (classType == EntityAttribute.TYPE_JAVA_LANG_STRING) { if (columnValue != null) { setColumn(columnName, columnValue); } } else if (classType == EntityAttribute.TYPE_JAVA_LANG_BOOLEAN) { if (columnValue != null) { if (columnValue.equals("Y")) { setColumn(columnName, new Boolean(true)); } else if (columnValue.equals("N")) { setColumn(columnName, new Boolean(false)); } else { setColumn(columnName, new Boolean(false)); } } } else if (classType == EntityAttribute.TYPE_JAVA_LANG_FLOAT) { if (columnValue != null) { setColumn(columnName, new Float(columnValue)); } } else if (classType == EntityAttribute.TYPE_JAVA_LANG_DOUBLE) { if (columnValue != null) { setColumn(columnName, new Double(columnValue)); } } else if (classType == EntityAttribute.TYPE_JAVA_SQL_TIMESTAMP) { if (columnValue != null) { setColumn(columnName, java.sql.Timestamp.valueOf(columnValue)); } } else if (classType == EntityAttribute.TYPE_JAVA_SQL_DATE) { if (columnValue != null) { setColumn(columnName, java.sql.Date.valueOf(columnValue)); } } else if (classType == EntityAttribute.TYPE_JAVA_UTIL_DATE) { if (columnValue != null) { setColumn(columnName, java.sql.Date.valueOf(columnValue)); } } else if (classType == EntityAttribute.TYPE_JAVA_SQL_TIME) { if (columnValue != null) { setColumn(columnName, java.sql.Time.valueOf(columnValue)); } } else if (classType == EntityAttribute.TYPE_COM_IDEGA_UTIL_GENDER) { if (columnValue != null) { setColumn(columnName, columnValue.toString()); } } } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/13456e2fb37384b17a0a7bc9957f83eb6aac4522/GenericEntity.java/buggy/src/java/com/idega/data/GenericEntity.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
14600,
1494,
12,
780,
7578,
16,
514,
30297,
13,
288,
202,
202,
474,
24959,
273,
13840,
18328,
12,
2827,
461,
1769,
202,
202,
430,
261,
1106,
559,
422,
3887,
1499,
18,
239... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14600,
1494,
12,
780,
7578,
16,
514,
30297,
13,
288,
202,
202,
474,
24959,
273,
13840,
18328,
12,
2827,
461,
1769,
202,
202,
430,
261,
1106,
559,
422,
3887,
1499,
18,
239... |
getTextComponent(event).copy(); | public void actionPerformed(ActionEvent event) { // FIXME: Implement me. Tookit.getSystemClipboard should be used // for that. } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8a49a412752cdcc88a774cac2de160a23c6f550/DefaultEditorKit.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6701,
1841,
12,
2575,
2934,
3530,
5621,
6701,
1841,
12,
2575,
2934,
3530,
5621,
1071,
918,
26100,
12,
1803,
1133,
871,
13,
588,
1528,
1841,
12,
2575,
2934,
3530,
5621,
6701,
1841,
12,
2575,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6701,
1841,
12,
2575,
2934,
3530,
5621,
6701,
1841,
12,
2575,
2934,
3530,
5621,
1071,
918,
26100,
12,
1803,
1133,
871,
13,
588,
1528,
1841,
12,
2575,
2934,
3530,
5621,
6701,
1841,
12,
2575,
29... | |
if (!isAllowingProcessingEvents()) { | if (!isAllowingProcessingEvents() || !running.propagate()) { | boolean processRunningEvent(MIRunningEvent running) { lastRunningEvent = running; Session session = (Session)getSession(); MISession miSession = running.getMISession(); Target currentTarget = session.getTarget(miSession); currentTarget.setSupended(false); // Bailout early if we do not want to process any events. if (!isAllowingProcessingEvents()) { return false; } return true; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/310afa2c6b6233f9d052692f20a900e5f3916440/EventManager.java/clean/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
1207,
7051,
1133,
12,
7492,
7051,
1133,
3549,
13,
288,
202,
202,
2722,
7051,
1133,
273,
3549,
31,
202,
202,
2157,
1339,
273,
261,
2157,
13,
588,
2157,
5621,
202,
202,
7492,
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,
6494,
1207,
7051,
1133,
12,
7492,
7051,
1133,
3549,
13,
288,
202,
202,
2722,
7051,
1133,
273,
3549,
31,
202,
202,
2157,
1339,
273,
261,
2157,
13,
588,
2157,
5621,
202,
202,
7492,
2... |
public TOCNode getParent() | public TOCNode getParent( ) | public TOCNode getParent() { return parent; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/83de512a7dc3a128ad54fa2607c01f0ef928234c/TOCNode.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/TOCNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8493,
39,
907,
5089,
1435,
202,
95,
202,
202,
2463,
982,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8493,
39,
907,
5089,
1435,
202,
95,
202,
202,
2463,
982,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.