rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
if (stringValue != null)
if (currentNamespacePrefix != null)
public void writeInt(int v) { closeStartTag(); if (stringValue != null) stringValue.append(v); base.writeInt(v); }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/9d897bcbf3a3b9fcff1d0b32e8553c98f87311f6/ParsedXMLToConsumer.java/clean/gnu/xml/ParsedXMLToConsumer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13682, 12, 474, 331, 13, 225, 288, 565, 1746, 30512, 5621, 565, 309, 261, 2972, 3402, 2244, 480, 446, 13, 1377, 19721, 18, 6923, 12, 90, 1769, 565, 1026, 18, 2626, 1702, 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, 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, 13682, 12, 474, 331, 13, 225, 288, 565, 1746, 30512, 5621, 565, 309, 261, 2972, 3402, 2244, 480, 446, 13, 1377, 19721, 18, 6923, 12, 90, 1769, 565, 1026, 18, 2626, 1702, 12, ...
match(_t,ALTERNATEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2318; _t = _t.getNextSibling(); break; } case CONTEXT: { AST __t2319 = _t;
match(_t,CONTEXT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2319; _t = _t.getNextSibling(); break; } case CONTENTS: {
public final void systemhelpstate(AST _t) throws RecognitionException { AST systemhelpstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2314 = _t; AST tmp2172_AST_in = (AST)_t; match(_t,SYSTEMHELP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WINDOWNAME: { AST __t2316 = _t; AST tmp2173_AST_in = (AST)_t; match(_t,WINDOWNAME); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2316; _t = _t.getNextSibling(); break; } case ALTERNATEKEY: case COMMAND: case CONTENTS: case CONTEXT: case CONTEXTPOPUP: case FINDER: case FORCEFILE: case HELP: case HELPTOPIC: case KEY: case MULTIPLEKEY: case PARTIALKEY: case POSITION: case QUIT: case SETCONTENTS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALTERNATEKEY: { AST __t2318 = _t; AST tmp2174_AST_in = (AST)_t; match(_t,ALTERNATEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2318; _t = _t.getNextSibling(); break; } case CONTEXT: { AST __t2319 = _t; AST tmp2175_AST_in = (AST)_t; match(_t,CONTEXT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2319; _t = _t.getNextSibling(); break; } case CONTENTS: { AST tmp2176_AST_in = (AST)_t; match(_t,CONTENTS); _t = _t.getNextSibling(); break; } case SETCONTENTS: { AST __t2320 = _t; AST tmp2177_AST_in = (AST)_t; match(_t,SETCONTENTS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2320; _t = _t.getNextSibling(); break; } case FINDER: { AST tmp2178_AST_in = (AST)_t; match(_t,FINDER); _t = _t.getNextSibling(); break; } case CONTEXTPOPUP: { AST __t2321 = _t; AST tmp2179_AST_in = (AST)_t; match(_t,CONTEXTPOPUP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2321; _t = _t.getNextSibling(); break; } case HELPTOPIC: { AST __t2322 = _t; AST tmp2180_AST_in = (AST)_t; match(_t,HELPTOPIC); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2322; _t = _t.getNextSibling(); break; } case KEY: { AST __t2323 = _t; AST tmp2181_AST_in = (AST)_t; match(_t,KEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2323; _t = _t.getNextSibling(); break; } case PARTIALKEY: { AST __t2324 = _t; AST tmp2182_AST_in = (AST)_t; match(_t,PARTIALKEY); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t2324; _t = _t.getNextSibling(); break; } case MULTIPLEKEY: { AST __t2326 = _t; AST tmp2183_AST_in = (AST)_t; match(_t,MULTIPLEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2184_AST_in = (AST)_t; match(_t,TEXT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2326; _t = _t.getNextSibling(); break; } case COMMAND: { AST __t2327 = _t; AST tmp2185_AST_in = (AST)_t; match(_t,COMMAND); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2327; _t = _t.getNextSibling(); break; } case POSITION: { AST __t2328 = _t; AST tmp2186_AST_in = (AST)_t; match(_t,POSITION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MAXIMIZE: { AST tmp2187_AST_in = (AST)_t; match(_t,MAXIMIZE); _t = _t.getNextSibling(); break; } case X: { AST tmp2188_AST_in = (AST)_t; match(_t,X); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2189_AST_in = (AST)_t; match(_t,Y); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2190_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2191_AST_in = (AST)_t; match(_t,HEIGHT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } _t = __t2328; _t = _t.getNextSibling(); break; } case FORCEFILE: { AST tmp2192_AST_in = (AST)_t; match(_t,FORCEFILE); _t = _t.getNextSibling(); break; } case HELP: { AST tmp2193_AST_in = (AST)_t; match(_t,HELP); _t = _t.getNextSibling(); break; } case QUIT: { AST tmp2194_AST_in = (AST)_t; match(_t,QUIT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2314; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2619, 5201, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 5201, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 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, 225, 202, 482, 727, 918, 2619, 5201, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 5201, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
if (testAD.getInternalName().matches("\\w+\\s+\\w+")){ spaceErrors = spaceErrors + testAD.getInternalName() + " in page " + apage.getInternalName() + "\n"; }
public void storeDatasetConfiguration( String user, String internalName, String displayName, String dataset, String description, Document doc, boolean compress, String type, String visible, String version, DatasetConfig dsConfig) throws ConfigurationException { // Before storing check attribute and filter names are unique per dataset (attribute and filter names // are allowed to be the same // Also check the importable and exportable filters and attributes are defined // check uniqueness of internal names per page AttributePage[] apages = dsConfig.getAttributePages(); AttributePage apage; String testInternalName; String duplicationString = ""; String linkErrors = ""; Hashtable descriptionsMap = new Hashtable();// atts should have a unique internal name for (int i = 0; i < apages.length; i++){ apage = apages[i]; if ((apage.getHidden() != null) && (apage.getHidden().equals("true"))){ continue; } List testAtts = new ArrayList(); testAtts = apage.getAllAttributeDescriptions(); for (Iterator iter = testAtts.iterator(); iter.hasNext();) { Object testAtt = iter.next(); AttributeDescription testAD = (AttributeDescription) testAtt; if ((testAD.getHidden() != null) && (testAD.getHidden().equals("true"))){ continue; } if (testAD.getInternalName().matches("\\w+\\.\\w+")){ continue;//placeholder atts can be duplicated } if (descriptionsMap.containsKey(testAD.getInternalName())){ //System.out.println("DUPLICATION " + testAD.getInternalName()); duplicationString = duplicationString + testAD.getInternalName() + " in page " + apage.getInternalName() + "\n"; } descriptionsMap.put(testAD.getInternalName(),"1"); } } Exportable[] exps = dsConfig.getExportables(); for (int i = 0; i < exps.length; i++){ String attributes = exps[i].getAttributes(); String[] atts = attributes.split(","); for (int j = 0; j < atts.length; j++){ if (!descriptionsMap.containsKey(atts[j])){ linkErrors = linkErrors + atts[j] + " in exportable " + exps[i].getInternalName() + "\n"; } } } // repeat for filter pages descriptionsMap.clear(); FilterPage[] fpages = dsConfig.getFilterPages(); FilterPage fpage; for (int i = 0; i < fpages.length; i++){ fpage = fpages[i]; if ((fpage.getHidden() != null) && (fpage.getHidden().equals("true"))){ continue; } List testAtts = new ArrayList(); testAtts = fpage.getAllFilterDescriptions();// ? OPTIONS for (Iterator iter = testAtts.iterator(); iter.hasNext();) { Object testAtt = iter.next(); FilterDescription testAD = (FilterDescription) testAtt; if ((testAD.getHidden() != null) && (testAD.getHidden().equals("true"))){ continue; } if (descriptionsMap.containsKey(testAD.getInternalName())){ //System.out.println("DUPLICATION " + testAD.getInternalName()); duplicationString = duplicationString + testAD.getInternalName() + " in page " + fpage.getInternalName() + "\n"; continue;//to stop options also being assessed } descriptionsMap.put(testAD.getInternalName(),"1"); // do options as well Option[] ops = testAD.getOptions(); if (ops.length > 0 && ops[0].getType()!= null && !ops[0].getType().equals("")){ System.out.println(ops[0].getInternalName() + "\t" + ops[0].getType()); for (int j = 0; j < ops.length; j++){ Option op = ops[j]; if ((op.getHidden() != null) && (op.getHidden().equals("true"))){ continue; } if (descriptionsMap.containsKey(op.getInternalName())){ //System.out.println("DUPLICATION " + op.getInternalName()); duplicationString = duplicationString + op.getInternalName() + " in page " + fpage.getInternalName() + "\n"; } descriptionsMap.put(op.getInternalName(),"1"); } } } } Importable[] imps = dsConfig.getImportables(); for (int i = 0; i < imps.length; i++){ String filters = imps[i].getFilters(); String[] filts = filters.split(","); for (int j = 0; j < filts.length; j++){ if (!descriptionsMap.containsKey(filts[j])){ linkErrors = linkErrors + filts[j] + " in exportable " + imps[i].getInternalName() + "\n"; } } } if (linkErrors != ""){ JOptionPane.showMessageDialog(null, "The following internal names are incorrect in links:\n" + linkErrors, "ERROR", 0); return;//no export performed } if (duplicationString != ""){ JOptionPane.showMessageDialog(null, "The following internal names are duplicated and will cause client problems:\n" + duplicationString, "ERROR", 0); return;//no export performed } int rowsupdated = 0; if (compress) rowsupdated = storeCompressedXML(user, internalName, displayName, dataset, description, doc, type, visible, version); else rowsupdated = storeUncompressedXML(user, internalName, displayName, dataset, description, doc); updateMartConfigForUser(user); if (rowsupdated < 1) if (logger.isLoggable(Level.WARNING)) logger.warning("Warning, xml for " + internalName + ", " + displayName + " not stored"); //throw an exception? }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/7f50f1163316dc1bc7c660c1cbc1ef648bf5de85/DatabaseDatasetConfigUtils.java/buggy/src/java/org/ensembl/mart/lib/config/DatabaseDatasetConfigUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 3813, 1880, 18, 588, 3061, 461, 7675, 8436, 2932, 1695, 91, 15, 1695, 87, 15, 1695, 91, 9078, 3719, 95, 3476, 4229, 273, 3476, 4229, 397, 1842, 1880, 18, 588, 3061, 461, 1435, 397,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 3813, 1880, 18, 588, 3061, 461, 7675, 8436, 2932, 1695, 91, 15, 1695, 87, 15, 1695, 91, 9078, 3719, 95, 3476, 4229, 273, 3476, 4229, 397, 1842, 1880, 18, 588, 3061, 461, 1435, 397,...
while (i.hasNext()) { communityName = (String)i.next(); break;
if (communityPG != null) { Collection communities = communityPG.getCommunities(); if (communities.size() > 1) System.out.println("PSP_CommunityProvider: WARNING: handling agents in multiple communities is not implemented."); Iterator i = communities.iterator(); while (i.hasNext()) { communityName = (String)i.next(); break; } } else { communityName = "COUGAAR";
private Vector getSelfInformation(PlanServiceContext psc) { Collection container = psc.getServerPlugInSupport().queryForSubscriber(getSelfPred()); Iterator iter = container.iterator(); Vector results = new Vector(1); int n = 0; // unique index for relationships while (iter.hasNext()) { Asset asset = (Asset)iter.next(); PropertyTree properties = new PropertyTree(); properties.put(PropertyNames.UID_ATTR, getUIDAsString(asset.getUID())); // String name = asset.getItemIdentificationPG().getNomenclature(); // THIS METHOD OF ACCESSING AGENT NAME MUST MATCH HOW OTHER PSPS // (ESPECIALLY PSP_PLAN) ACCESS THE AGENT NAME SO COMPARISONS // CAN BE MADE AT THE CLIENT String name = psc.getServerPlugInSupport().getClusterIDAsString(); properties.put(PropertyNames.AGENT_NAME, name); CommunityPG communityPG = asset.getCommunityPG(new Date().getTime()); Collection communities = communityPG.getCommunities(); if (communities.size() > 1) System.out.println("PSP_CommunityProvider: WARNING: handling agents in multiple communities is not implemented."); Iterator i = communities.iterator(); String communityName = null; while (i.hasNext()) { communityName = (String)i.next(); break; } if (communityName != null) properties.put(PropertyNames.AGENT_COMMUNITY_NAME, communityName); URL url = psc.lookupURL(psc.getServerPlugInSupport().getClusterIDAsString()); if (url != null) properties.put(PropertyNames.AGENT_URL, url.toString()); results.add(properties); } return results; }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/e19037a03ab5599fe9e4cc373e5bfaf7bf997e36/PSP_CommunityProvider.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/psp/PSP_CommunityProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5589, 8880, 74, 5369, 12, 5365, 1179, 1042, 293, 1017, 13, 288, 565, 2200, 1478, 273, 4202, 293, 1017, 18, 588, 2081, 1749, 637, 382, 6289, 7675, 2271, 1290, 11118, 12, 588, 10084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5589, 8880, 74, 5369, 12, 5365, 1179, 1042, 293, 1017, 13, 288, 565, 2200, 1478, 273, 4202, 293, 1017, 18, 588, 2081, 1749, 637, 382, 6289, 7675, 2271, 1290, 11118, 12, 588, 10084, ...
if ( _cnt411>=1 ) { break _loop411; } else {throw new NoViableAltException(_t);}
if ( _cnt416>=1 ) { break _loop416; } else {throw new NoViableAltException(_t);}
public final void definebuttonstate(AST _t) throws RecognitionException { AST definebuttonstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST __t394 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case BUTTON: case PRIVATE: case PUBLIC: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case BUTTON: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp996_AST_in = (AST)_t; match(_t,BUTTON); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineSymbol(BUTTON, def, id)); } { _loop418: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AUTOGO: { AST tmp997_AST_in = (AST)_t; match(_t,AUTOGO); _t = _t.getNextSibling(); break; } case AUTOENDKEY: { AST tmp998_AST_in = (AST)_t; match(_t,AUTOENDKEY); _t = _t.getNextSibling(); break; } case DEFAULT: { AST tmp999_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getNextSibling(); break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case CONTEXTHELPID: { AST __t398 = _t; AST tmp1000_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t398; _t = _t.getNextSibling(); break; } case DROPTARGET: { AST tmp1001_AST_in = (AST)_t; match(_t,DROPTARGET); _t = _t.getNextSibling(); break; } case FONT: { AST __t399 = _t; AST tmp1002_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t399; _t = _t.getNextSibling(); break; } case IMAGEDOWN: { AST __t400 = _t; AST tmp1003_AST_in = (AST)_t; match(_t,IMAGEDOWN); _t = _t.getFirstChild(); { int _cnt402=0; _loop402: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_12.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt402>=1 ) { break _loop402; } else {throw new NoViableAltException(_t);} } _cnt402++; } while (true); } _t = __t400; _t = _t.getNextSibling(); break; } case IMAGE: { AST __t403 = _t; AST tmp1004_AST_in = (AST)_t; match(_t,IMAGE); _t = _t.getFirstChild(); { int _cnt405=0; _loop405: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_12.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt405>=1 ) { break _loop405; } else {throw new NoViableAltException(_t);} } _cnt405++; } while (true); } _t = __t403; _t = _t.getNextSibling(); break; } case IMAGEUP: { AST __t406 = _t; AST tmp1005_AST_in = (AST)_t; match(_t,IMAGEUP); _t = _t.getFirstChild(); { int _cnt408=0; _loop408: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_12.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt408>=1 ) { break _loop408; } else {throw new NoViableAltException(_t);} } _cnt408++; } while (true); } _t = __t406; _t = _t.getNextSibling(); break; } case IMAGEINSENSITIVE: { AST __t409 = _t; AST tmp1006_AST_in = (AST)_t; match(_t,IMAGEINSENSITIVE); _t = _t.getFirstChild(); { int _cnt411=0; _loop411: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_12.member(_t.getType()))) { imagephrase_opt(_t); _t = _retTree; } else { if ( _cnt411>=1 ) { break _loop411; } else {throw new NoViableAltException(_t);} } _cnt411++; } while (true); } _t = __t409; _t = _t.getNextSibling(); break; } case MOUSEPOINTER: { AST __t412 = _t; AST tmp1007_AST_in = (AST)_t; match(_t,MOUSEPOINTER); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t412; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case LIKE: { AST __t413 = _t; AST tmp1008_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp1009_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t413; _t = _t.getNextSibling(); break; } case FLATBUTTON: { AST tmp1010_AST_in = (AST)_t; match(_t,FLATBUTTON); _t = _t.getNextSibling(); break; } case NOFOCUS: { AST __t415 = _t; AST tmp1011_AST_in = (AST)_t; match(_t,NOFOCUS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FLATBUTTON: { AST tmp1012_AST_in = (AST)_t; match(_t,FLATBUTTON); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t415; _t = _t.getNextSibling(); break; } case NOCONVERT3DCOLORS: { AST tmp1013_AST_in = (AST)_t; match(_t,NOCONVERT3DCOLORS); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MARGINEXTRA: { AST tmp1014_AST_in = (AST)_t; match(_t,MARGINEXTRA); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case AUTOENDKEY: case AUTOGO: case BGCOLOR: case COLUMNLABEL: case CONTEXTHELPID: case DCOLOR: case DEFAULT: case DROPTARGET: case FGCOLOR: case FLATBUTTON: case FONT: case IMAGE: case IMAGEDOWN: case IMAGEINSENSITIVE: case IMAGEUP: case LABEL: case LIKE: case MOUSEPOINTER: case NOCONVERT3DCOLORS: case NOFOCUS: case PFCOLOR: case SIZE: case SIZECHARS: case SIZEPIXELS: case TOOLTIP: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } break; } default: { break _loop418; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t394; _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, 4426, 5391, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 5391, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 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, 225, 202, 482, 727, 918, 4426, 5391, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 5391, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
source.append((char)ts.PRIMARY); source.append((char)ts.getOp());
sourceAdd((char)ts.PRIMARY); sourceAdd((char)ts.getOp());
private Object primaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; Object pn; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case TokenStream.FUNCTION: return function(ts, source, true); case TokenStream.LB: { source.append((char)ts.LB); pn = nf.createLeaf(ts.ARRAYLIT); ts.flags |= ts.TSF_REGEXP; boolean matched = ts.matchToken(ts.RB); ts.flags &= ~ts.TSF_REGEXP; if (!matched) { boolean first = true; do { ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (!first) source.append((char)ts.COMMA); else first = false; if (tt == ts.RB) { // to fix [,,,].length behavior... break; } if (tt == ts.COMMA) { nf.addChildToBack(pn, nf.createLeaf(ts.PRIMARY, ts.UNDEFINED)); } else { nf.addChildToBack(pn, assignExpr(ts, source, false)); } } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RB, "msg.no.bracket.arg"); } source.append((char)ts.RB); return nf.createArrayLiteral(pn); } case TokenStream.LC: { pn = nf.createLeaf(ts.OBJLIT); source.append((char)ts.LC); if (!ts.matchToken(ts.RC)) { boolean first = true; commaloop: do { Object property; if (!first) source.append((char)ts.COMMA); else first = false; tt = ts.getToken(); switch(tt) { // map NAMEs to STRINGs in object literal context. case TokenStream.NAME: case TokenStream.STRING: String s = ts.getString(); source.addString(ts.NAME, s); property = nf.createString(ts.getString()); break; case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); property = nf.createNumber(n); break; case TokenStream.RC: // trailing comma is OK. ts.ungetToken(tt); break commaloop; default: reportError(ts, "msg.bad.prop"); break commaloop; } mustMatchToken(ts, ts.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. source.append((char)ts.OBJLIT); nf.addChildToBack(pn, property); nf.addChildToBack(pn, assignExpr(ts, source, false)); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RC, "msg.no.brace.prop"); } source.append((char)ts.RC); return nf.createObjectLiteral(pn); } case TokenStream.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ source.append((char)ts.LP); pn = expr(ts, source, false); source.append((char)ts.RP); mustMatchToken(ts, ts.RP, "msg.no.paren"); return pn; case TokenStream.NAME: String name = ts.getString(); source.addString(ts.NAME, name); return nf.createName(name); case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); return nf.createNumber(n); case TokenStream.STRING: String s = ts.getString(); source.addString(ts.STRING, s); return nf.createString(s); case TokenStream.OBJECT: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); source.addString(ts.OBJECT, '/' + re + '/' + flags); return nf.createRegExp(re, flags); } case TokenStream.PRIMARY: source.append((char)ts.PRIMARY); source.append((char)ts.getOp()); return nf.createLeaf(ts.PRIMARY, ts.getOp()); case TokenStream.RESERVED: reportError(ts, "msg.reserved.id"); break; case TokenStream.ERROR: /* the scanner or one of its subroutines reported the error. */ break; default: reportError(ts, "msg.syntax"); break; } return null; // should never reach here }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3354, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 1033, 11059, 31, 3639, 3742, 18, 7133, 5626, 3742,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3354, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 1033, 11059, 31, 3639, 3742, 18, 7133, 5626, 3742,...
System.arraycopy( originalArgs, args.length - 1, restArray, 0, originalArgs.length - (args.length - 1));
System.arraycopy(originalArgs, args.length - 1, restArray, 0, originalArgs.length - (args.length - 1));
private final Object[] packageRestArgumentsForReflection(final Object[] originalArgs) { IRubyObject[] restArray = new IRubyObject[originalArgs.length - (args.length - 1)]; Object[] result = new Object[args.length]; try { System.arraycopy( originalArgs, args.length - 1, restArray, 0, originalArgs.length - (args.length - 1)); } catch (ArrayIndexOutOfBoundsException aioobExcptn) { throw new RuntimeException( "Cannot call \"" + methodName + "\" in class \"" + klass.getName() + "\". " + getExpectedArgsString((IRubyObject[]) originalArgs)); } System.arraycopy(originalArgs, 0, result, 0, args.length - 1); result[args.length - 1] = restArray; return result; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/3acff782b00a5f6892fe6bd44e0665cc6194f9aa/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 727, 1033, 8526, 2181, 5188, 4628, 1290, 9801, 12, 6385, 1033, 8526, 2282, 2615, 13, 288, 3639, 15908, 10340, 921, 8526, 3127, 1076, 273, 394, 15908, 10340, 921, 63, 8830, 2615, 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, 727, 1033, 8526, 2181, 5188, 4628, 1290, 9801, 12, 6385, 1033, 8526, 2282, 2615, 13, 288, 3639, 15908, 10340, 921, 8526, 3127, 1076, 273, 394, 15908, 10340, 921, 63, 8830, 2615, 18, ...
if (method.hasModifierProperty(PsiModifier.PROTECTED)) {
if(!SerializationUtils.isSerializable(aClass)){
public void visitMethod(PsiMethod method) { // no call to super, so it doesn't drill down final PsiClass aClass = method.getContainingClass(); if (aClass.isInterface() || aClass.isAnnotationType()) { return; } if (!SerializationUtils.isSerializable(aClass)) { return; } if (!SerializationUtils.isReadResolve(method) && !SerializationUtils.isWriteReplace(method)) { return; } if (method.hasModifierProperty(PsiModifier.PROTECTED)) { return; } registerMethodError(method); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ReadResolveAndWriteReplaceProtectedInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/serialization/ReadResolveAndWriteReplaceProtectedInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 5411, 368, 1158, 745, 358, 2240, 16, 1427, 518, 3302, 1404, 5081, 737, 2588, 5411, 727, 453, 7722, 797, 20148, 273, 707, 18, 588, 243...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 5411, 368, 1158, 745, 358, 2240, 16, 1427, 518, 3302, 1404, 5081, 737, 2588, 5411, 727, 453, 7722, 797, 20148, 273, 707, 18, 588, 243...
registers[i] = Integer.parseInt(str);
registers[i] = Integer.parseInt(str.trim());
void parse() { List aList = new ArrayList(); if (isDone()) { MIOutput out = getMIOutput(); MIResultRecord rr = out.getMIResultRecord(); if (rr != null) { MIResult[] results = rr.getMIResults(); for (int i = 0; i < results.length; i++) { String var = results[i].getVariable(); if (var.equals("changed-registers")) { MIValue value = results[i].getMIValue(); if (value instanceof MIList) { parseRegisters((MIList)value, aList); } } } } } registers = new int[aList.size()]; for (int i = 0; i < aList.size(); i++) { String str = (String)aList.get(i); try { registers[i] = Integer.parseInt(str); } catch (NumberFormatException e) { } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/385d59ed689e6f731109a972776be5814717c6f7/MIDataListChangedRegistersInfo.java/clean/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIDataListChangedRegistersInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1109, 1435, 288, 202, 202, 682, 279, 682, 273, 394, 2407, 5621, 202, 202, 430, 261, 291, 7387, 10756, 288, 1082, 202, 7492, 1447, 596, 273, 2108, 45, 1447, 5621, 1082, 202, 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, 225, 202, 6459, 1109, 1435, 288, 202, 202, 682, 279, 682, 273, 394, 2407, 5621, 202, 202, 430, 261, 291, 7387, 10756, 288, 1082, 202, 7492, 1447, 596, 273, 2108, 45, 1447, 5621, 1082, 202, 7...
mNSConnectPanel.add(mNamingContextField, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0
mNSConnectPanel.add(mNamingContextField, new GridBagConstraints(2, 3, 1, 1, 1.0, 0.0
private void jbInit() throws Exception { mNSConnectBorder = new TitledBorder(new EtchedBorder(EtchedBorder.RAISED,Color.white,new Color(142, 142, 142)),"Naming Service Connection"); mSubjectMgrBorder = new TitledBorder(new EtchedBorder(EtchedBorder.RAISED,Color.white,new Color(142, 142, 142)),"Subject Manager Choice"); mNSConnectPanel.setLayout(mNSConnectLayout); mNSConnectPanel.setBorder(mNSConnectBorder); mNSConnectPanel.setMinimumSize(new Dimension(450, 175)); mNSHostLabel.setHorizontalAlignment(SwingConstants.TRAILING); mNSHostLabel.setLabelFor(mNSHostField); mNSHostLabel.setText("Naming Service Host"); mNSHostField.setMinimumSize(new Dimension(80, 17)); mNSHostField.setPreferredSize(new Dimension(180, 17)); mNSHostField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(FocusEvent e) { validateNetworkAddress(); } }); mNSHostField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { validateNetworkAddress(); } }); mNSPortField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(FocusEvent e) { validateNetworkAddress(); } }); mNSPortField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { validateNetworkAddress(); } }); mSubjectMgrPanel.setBorder(mSubjectMgrBorder); mSubjectMgrPanel.setMinimumSize(new Dimension(450, 200)); mSubjectMgrPanel.setPreferredSize(new Dimension(450, 200)); mSubjectMgrPanel.setLayout(mSubjectMgrLayout); mSubjectMgrSplitPane.setDividerSize(7); mNSConnectButton.setEnabled(false); mNSConnectButton.setText("Connect"); mNSConnectButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { namingServiceConnectAction(e); } }); mOkayButton.setEnabled(false); mSubjectMgrList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); mButtonPanel.setMinimumSize(new Dimension(450, 33)); mButtonPanel.setPreferredSize(new Dimension(450, 33)); mSubjectMgrListPane.setMinimumSize(new Dimension(100, 90)); mSubjectMgrListPane.setPreferredSize(new Dimension(180, 90)); mSubjectMgrInfoPane.setMinimumSize(new Dimension(100, 90)); mSubjectMgrInfoPane.setPreferredSize(new Dimension(180, 90)); mNSPortLabel.setHorizontalAlignment(SwingConstants.TRAILING); mNSPortLabel.setLabelFor(mNSPortField); mNamingContextLabel.setHorizontalAlignment(SwingConstants.TRAILING); mNamingContextLabel.setLabelFor(mNamingContextField); mNSIiopVerLabel.setHorizontalAlignment(SwingConstants.TRAILING); mNSIiopVerLabel.setLabelFor(mNSIiopVerField); mNSIiopVerLabel.setText("IIOP Version"); mNSIiopVerField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(FocusEvent e) { validateNetworkAddress(); } }); mNSIiopVerField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { validateNetworkAddress(); } }); mNSConnectPanel.add(mNSHostLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 2), 47, 18)); mNSConnectPanel.add(mNSHostField, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 14, 6)); mNSPortLabel.setText("Naming Service Port"); mNSPortField.setMinimumSize(new Dimension(50, 17)); mNSPortField.setPreferredSize(new Dimension(50, 17)); mNSConnectPanel.add(mNSPortLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 2), 0, 18)); mNSConnectPanel.add(mNSPortField, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 10, 6)); mNSIiopVerField.setMinimumSize(new Dimension(50, 17)); mNSIiopVerField.setPreferredSize(new Dimension(50, 17)); mNSConnectPanel.add(mNSIiopVerLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 2), 0, 18)); mNSConnectPanel.add(mNSIiopVerField, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 10, 6)); mNamingContextLabel.setText("Naming Subcontext"); mNamingContextField.setMinimumSize(new Dimension(80, 17)); mNamingContextField.setPreferredSize(new Dimension(150, 17)); mOkayButton.setText("OK"); mOkayButton.setMnemonic('O'); mOkayButton.setSelected(true); mOkayButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { okButtonAction(e); } }); mCancelButton.setText("Cancel"); mCancelButton.setMnemonic('C'); mCancelButton.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { cancelButtonAction(e); } }); this.getContentPane().add(mNSConnectPanel, BorderLayout.NORTH); mNSConnectPanel.add(mNamingContextLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 2), 0, 18)); mNSConnectPanel.add(mNamingContextField, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 44, 6)); mNSConnectPanel.add(mNSConnectButton, new GridBagConstraints(0, 4, 2, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(5, 0, 0, 0), 0, 0)); this.getContentPane().add(mButtonPanel, BorderLayout.SOUTH); mButtonPanel.add(mOkayButton, null); mButtonPanel.add(mCancelButton, null); this.getContentPane().add(mSubjectMgrPanel, BorderLayout.CENTER); mSubjectMgrPanel.add(mSubjectMgrSplitPane, BorderLayout.CENTER); mSubjectMgrSplitPane.add(mSubjectMgrListPane, JSplitPane.LEFT); mSubjectMgrSplitPane.add(mSubjectMgrInfoPane, JSplitPane.RIGHT); }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/9bdb2e7ffa90f6f6b8c7d3498b15a36edfd020e7/ConnectionDialog.java/clean/modules/tweek/java/org/vrjuggler/tweek/gui/ConnectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 20515, 2570, 1435, 1216, 1185, 282, 288, 1377, 312, 3156, 5215, 8107, 273, 394, 399, 305, 1259, 8107, 12, 2704, 512, 88, 2049, 8107, 12, 41, 88, 2049, 8107, 18, 2849, 45, 182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 20515, 2570, 1435, 1216, 1185, 282, 288, 1377, 312, 3156, 5215, 8107, 273, 394, 399, 305, 1259, 8107, 12, 2704, 512, 88, 2049, 8107, 12, 41, 88, 2049, 8107, 18, 2849, 45, 182...
response.setContentType( mimeType + ";charset=utf-8" );
response.setContentType( mimeType );
protected void doPreService( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { String format = ParameterAccessor.getFormat( request ); if ( IBirtConstants.SERVLET_PATH_DOWNLOAD.equalsIgnoreCase( request .getServletPath( ) ) ) { response.setContentType( "text/plain; charset=utf-8" ); //$NON-NLS-1$ response.setHeader( "Content-Disposition", "attachment; filename=exportdata.csv" ); //$NON-NLS-1$ //$NON-NLS-2$ } else if ( ParameterAccessor.PARAM_FORMAT_PDF.equalsIgnoreCase( format ) ) { response.setContentType( "application/pdf" ); //$NON-NLS-1$ String filename = ParameterAccessor.generateFileName( request ); response .setHeader( "Content-Disposition", "inline; filename=\"" + filename + "\"" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } else { String mimeType = ReportEngineService.getInstance( ).getMIMEType( format ); if ( mimeType != null && mimeType.length( ) > 0 ) response.setContentType( mimeType + ";charset=utf-8" ); //$NON-NLS-1$ else response.setContentType( "text/html;charset=utf-8" ); //$NON-NLS-1$ response.setHeader( "cache-control", "no-cache" ); //$NON-NLS-1$ //$NON-NLS-2$ } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7af2527f54b747d621bc6be2ad39ecefbc80971d/EngineFragment.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/layout/EngineFragment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 1386, 1179, 12, 9984, 590, 16, 1082, 202, 2940, 29910, 766, 262, 1216, 16517, 16, 1860, 202, 95, 202, 202, 780, 740, 273, 5498, 8235, 18, 588, 1630, 12, 590, 11272,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 1386, 1179, 12, 9984, 590, 16, 1082, 202, 2940, 29910, 766, 262, 1216, 16517, 16, 1860, 202, 95, 202, 202, 780, 740, 273, 5498, 8235, 18, 588, 1630, 12, 590, 11272,...
QuickFixAction.registerQuickFixAction(highlightInfo, new QuickFixWrapper(problemDescriptor, k), options);
QuickFixAction.registerQuickFixAction(highlightInfo, new QuickFixWrapper(problemDescriptor, k), options, tool.getDisplayName());
public Collection<HighlightInfo> getHighlights() { ArrayList<HighlightInfo> highlights = new ArrayList<HighlightInfo>(); for (int i = 0; i < myDescriptors.size(); i++) { ProblemDescriptor problemDescriptor = myDescriptors.get(i); String message = renderDescriptionMessage(problemDescriptor); HighlightInfoType highlightInfoType = myLevels.get(i); HighlightInfo highlightInfo = highlightInfoFromDescriptor(problemDescriptor, highlightInfoType, message, message); highlights.add(highlightInfo); LocalInspectionTool tool = myTools.get(i); List<IntentionAction> options = getStandardIntentionOptions(tool, problemDescriptor.getPsiElement()); final QuickFix[] fixes = problemDescriptor.getFixes(); if (fixes != null && fixes.length > 0) { for (int k = 0; k < fixes.length; k++) { QuickFixAction.registerQuickFixAction(highlightInfo, new QuickFixWrapper(problemDescriptor, k), options); } } else { QuickFixAction.registerQuickFixAction(highlightInfo, new EmptyIntentionAction(tool.getDisplayName(), options), options); } } return highlights; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/LocalInspectionsPass.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2200, 32, 16205, 966, 34, 7628, 2031, 5099, 87, 1435, 288, 565, 2407, 32, 16205, 966, 34, 8839, 87, 273, 394, 2407, 32, 16205, 966, 34, 5621, 565, 364, 261, 474, 277, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 32, 16205, 966, 34, 7628, 2031, 5099, 87, 1435, 288, 565, 2407, 32, 16205, 966, 34, 8839, 87, 273, 394, 2407, 32, 16205, 966, 34, 5621, 565, 364, 261, 474, 277, 273, 374, ...
double bloat0 = bloats[((Integer)o0).intValue()]; double bloat1 = bloats[((Integer)o1).intValue()]; if (bloat0 == bloat1) { return 0; } else if (bloat0 < bloat1) { return 1; } else { return -1; } }
double bloat0 = bloats[((Integer)o0).intValue()]; double bloat1 = bloats[((Integer)o1).intValue()]; if (bloat0 == bloat1) { return 0; } else if (bloat0 < bloat1) { return 1; } else { return -1; } }
public int compare(Object o0, Object o1) { double bloat0 = bloats[((Integer)o0).intValue()]; double bloat1 = bloats[((Integer)o1).intValue()]; if (bloat0 == bloat1) { return 0; } else if (bloat0 < bloat1) { return 1; } else { return -1; } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/Aggregation.java/buggy/src/main/mondrian/rolap/agg/Aggregation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 3400, 12, 921, 320, 20, 16, 1033, 320, 21, 13, 288, 1082, 202, 9056, 324, 1159, 20, 273, 324, 1159, 87, 63, 12443, 4522, 13, 83, 20, 2934, 474, 620, 1435, 15533, 1082,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 3400, 12, 921, 320, 20, 16, 1033, 320, 21, 13, 288, 1082, 202, 9056, 324, 1159, 20, 273, 324, 1159, 87, 63, 12443, 4522, 13, 83, 20, 2934, 474, 620, 1435, 15533, 1082,...
private void setParameters(ExternalProcess process, VirtualMachine vm) { //ExternalProcess processImpl = process; //ExternalProcessDecorator processImplDecorator; JVMProcess jvmProcess; //LSFBSubProcess bsub = null; //PrunSubProcess prun = null; //GlobusProcess globus = null; //PBSSubProcess pbs = null; //OARSubProcess oar = null; //GridEngineSubProcess sge = null; String protocolId = ""; int nodeNumber = new Integer(vm.getNodeNumber()).intValue(); if (logger.isDebugEnabled()) { logger.debug("askedNodes " + nodeNumber); } protocolId = process.getProcessId(); increaseNumberOfNodes(process.getNodeNumber()* nodeNumber); // while (ExternalProcessDecorator.class.isInstance(processImpl)) {// String processClassname = processImpl.getClass().getName();// protocolId = protocolId +// findProtocolId(processClassname).toLowerCase();// if (processImpl instanceof LSFBSubProcess) {// //if the process is bsub we have to increase the node count by the number of processors// bsub = (LSFBSubProcess) processImpl;// increaseNumberOfNodes((new Integer(bsub.getProcessorNumber()).intValue()) * nodeNumber);// }// if (processImpl instanceof PrunSubProcess) {// //if the process is prun we have to increase the node count by the number of processors // prun = (PrunSubProcess) processImpl;// if (logger.isDebugEnabled()) {// logger.debug("VirtualNodeImpl getHostsNumber() " +// prun.getHostsNumber());// logger.debug("VirtualNodeImpl getnodeNumber() " +// prun.getProcessorPerNodeNumber());// logger.debug("VM " + vm);// }//// increaseNumberOfNodes((new Integer(// prun.getProcessorPerNodeNumber()).intValue()) * (new Integer(// prun.getHostsNumber()).intValue()) * nodeNumber);// }// if (processImpl instanceof PBSSubProcess) {// //if the process is pbs we have to increase the node count by the number of processors // pbs = (PBSSubProcess) processImpl;// if (logger.isDebugEnabled()) {// logger.debug("VirtualNodeImpl getHostsNumber() " +// pbs.getHostsNumber());// logger.debug("VirtualNodeImpl getnodeNumber() " +// pbs.getProcessorPerNodeNumber());// logger.debug("VM " + vm);// }//// increaseNumberOfNodes((new Integer(// pbs.getProcessorPerNodeNumber()).intValue()) * (new Integer(// pbs.getHostsNumber()).intValue()) * nodeNumber);// }// if (processImpl instanceof OARSubProcess) {// //if the process is oar we have to increase the node count by the number of processors // oar = (OARSubProcess) processImpl;// if (logger.isDebugEnabled()) {// logger.debug("VirtualNodeImpl getHostsNumber() " +// oar.getHostsNumber());// logger.debug("VM " + vm);// }// increaseNumberOfNodes((new Integer(oar.getHostsNumber()).intValue()) * nodeNumber);// }// if (processImpl instanceof GlobusProcess) {// //if the process is globus we have to increase the node count by the number of processors// globus = (GlobusProcess) processImpl;// increaseNumberOfNodes((new Integer(globus.getCount()).intValue()) * nodeNumber);// }//// if (processImpl instanceof GridEngineSubProcess) {// sge = (GridEngineSubProcess) processImpl;// increaseNumberOfNodes((new Integer(sge.getHostsNumber()).intValue()) * nodeNumber);// }//// processImplDecorator = (ExternalProcessDecorator) processImpl;// processImpl = processImplDecorator.getTargetProcess();// if (logger.isDebugEnabled()) {// logger.debug("processImplDecorator " +// processImplDecorator.getClass().getName());// }// } //protocolId = protocolId + "jvm"; //When the virtualNode will be activated, it has to launch the process //with such parameter.See StartRuntime jvmProcess = (JVMProcess) process.getFinalProcess(); //if the target class is StartRuntime, then give parameters otherwise keep parameters if (jvmProcess.getClassname().equals("org.objectweb.proactive.core.runtime.StartRuntime")) { //we increment the index of nodecount// if ((bsub == null) && (prun == null) && (globus == null) &&// (pbs == null) && (oar == null) && (sge == null)) {// //if bsub and prun and globus are null we can increase the nodeCount// increaseNumberOfNodes(nodeNumber);// }// if( ! useScheduler){// increaseNumberOfNodes(nodeNumber);// } //if(!vmAlreadyAssigned){ String vnName = this.name; String localruntimeURL = null; try { localruntimeURL = RuntimeFactory.getDefaultRuntime().getURL(); } catch (ProActiveException e) { e.printStackTrace(); } if (logger.isDebugEnabled()) { logger.debug(localruntimeURL); } jvmProcess.setJvmOptions("-Dproactive.jobid=" + this.jobID); jvmProcess.setParameters(vnName + " " + localruntimeURL + " " + nodeNumber + " " + protocolId + " " + vm.getName()); // FAULT TOLERANCE settings if (this.ftService!=null){ jvmProcess.setJvmOptions(this.ftService.buildParamsLine()); } } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/b2ddb4d2aff6af03b3e711c0dd4ac324df1013b6/VirtualNodeImpl.java/buggy/src/org/objectweb/proactive/core/descriptor/data/VirtualNodeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 542, 2402, 12, 6841, 2227, 2567, 16, 27454, 3489, 15329, 759, 6841, 2227, 2567, 2828, 33, 2567, 31, 759, 6841, 2227, 10361, 2567, 2828, 10361, 31, 46, 7397, 2227, 78, 3489, 2227, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 542, 2402, 12, 6841, 2227, 2567, 16, 27454, 3489, 15329, 759, 6841, 2227, 2567, 2828, 33, 2567, 31, 759, 6841, 2227, 10361, 2567, 2828, 10361, 31, 46, 7397, 2227, 78, 3489, 2227, 3...
maxHorizontalScrollWidth = 0;
public void setBuffer(Buffer buffer) { if(this.buffer == buffer) return; try { bufferChanging = true; if(this.buffer != null) { selectNone(); caretLine = caret = 0; bracketLine = bracketPosition = -1; this.buffer._releaseFoldVisibilityManager(foldVisibilityManager); this.buffer.removeBufferChangeListener(bufferHandler); } this.buffer = buffer; buffer.addBufferChangeListener(bufferHandler); bufferHandlerInstalled = true; foldVisibilityManager = buffer._getFoldVisibilityManager(this); maxHorizontalScrollWidth = 0; chunkCache.setFirstLine(0); physFirstLine = foldVisibilityManager.virtualToPhysical(0); propertiesChanged(); recalculateLastPhysicalLine(); } finally { bufferChanging = false; } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/9e041e63dd9a6a334c1c97e86cf3ecfc0ca3064f/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1892, 12, 1892, 1613, 13, 202, 95, 202, 202, 430, 12, 2211, 18, 4106, 422, 1613, 13, 1082, 202, 2463, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 4106, 782, 18183,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 1892, 12, 1892, 1613, 13, 202, 95, 202, 202, 430, 12, 2211, 18, 4106, 422, 1613, 13, 1082, 202, 2463, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 4106, 782, 18183,...
public static WeaponType createCLLRM20() { WeaponType weapon = new WeaponType(); weapon.name = "LRM 20"; weapon.internalName = "CLLRM20"; weapon.mepName = "Clan LRM-20"; weapon.mtfName = "CLLRM20"; weapon.heat = 6; weapon.damage = DAMAGE_MISSILE; weapon.rackSize = 20; weapon.ammoType = AmmoType.T_LRM; weapon.minimumRange = 0; weapon.shortRange = 7; weapon.mediumRange = 14; weapon.longRange = 21; weapon.tonnage = 5.0f; weapon.criticals = 4; weapon.bv = 220; return weapon; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/d05f2130c25015ca88066511083759513d50b746/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 39, 4503, 8717, 3462, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 7734, 732, 28629, 18, 529, 273, 315, 48, 8717, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1660, 28629, 559, 752, 39, 4503, 8717, 3462, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 7734, 732, 28629, 18, 529, 273, 315, 48, 8717, 420...
String calendars[] = choosenScheduler.getCalendarNames();
String calendars[]; if (!chosenScheduler.isShutdown()) calendars = chosenScheduler.getCalendarNames();
private void populateSchedulerForm(Scheduler choosenScheduler, ChooseSchedulerForm form) throws Exception{ Collection scheduleCollection = new StdSchedulerFactory().getAllSchedulers(); Iterator itr = scheduleCollection.iterator(); form.setSchedulers(new ArrayList()); try { form.setChoosenSchedulerName(choosenScheduler.getSchedulerName()); while (itr.hasNext()) { Scheduler scheduler = (Scheduler) itr.next(); form.getSchedulers().add(scheduler); } } catch (SchedulerException e) { throw new Exception(e); } SchedulerDTO schedForm = new SchedulerDTO(); schedForm.setSchedulerName(choosenScheduler.getSchedulerName()); schedForm.setNumJobsExecuted(String.valueOf(choosenScheduler.getMetaData().numJobsExecuted())); if (choosenScheduler.getMetaData().jobStoreSupportsPersistence()) { schedForm.setPersistenceType("value.scheduler.persiststenceType.database"); } else { schedForm.setPersistenceType("value.scheduler.persiststenceType.memory"); // mp possible bugfix } schedForm.setRunningSince(String.valueOf(choosenScheduler.getMetaData().runningSince())); if (choosenScheduler.isShutdown()) { schedForm.setState("value.scheduler.state.stopped"); } else if (choosenScheduler.isPaused()) { schedForm.setState("value.scheduler.state.paused"); } else { schedForm.setState("value.scheduler.state.started"); } schedForm.setThreadPoolSize(String.valueOf(choosenScheduler.getMetaData().getThreadPoolSize())); schedForm.setVersion(choosenScheduler.getMetaData().getVersion()); schedForm.setSummary(choosenScheduler.getMetaData().getSummary()); List jobDetails = choosenScheduler.getCurrentlyExecutingJobs(); for (Iterator iter = jobDetails.iterator(); iter.hasNext();) { JobExecutionContext job = (JobExecutionContext) iter.next(); JobDetail jobDetail = job.getJobDetail(); JobDetailForm jobForm = new JobDetailForm(); jobForm.setGroupName(jobDetail.getGroup()); jobForm.setName(jobDetail.getName()); jobForm.setDescription(jobDetail.getDescription()); jobForm.setJobClass(jobDetail.getJobClass().getName()); form.getExecutingJobs().add(jobForm); } String calendars[] = choosenScheduler.getCalendarNames(); List jobListeners = choosenScheduler.getGlobalJobListeners(); for (Iterator iter = jobListeners.iterator(); iter.hasNext();) { JobListener jobListener = (JobListener) iter.next(); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(jobListener.getName()); listenerForm.setListenerClass(jobListener.getClass().getName()); schedForm.getGlobalJobListeners().add(listenerForm); } // The section commented out below is not currently used, but may be used to show triggers that have been // added to jobs /* List triggerListeners = choosenScheduler.getGlobalTriggerListeners(); for (Iterator iter = triggerListeners.iterator(); iter.hasNext();) { TriggerListener triggerListener = (TriggerListener) iter.next(); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(triggerListener.getName()); listenerForm.setListenerClass(triggerListener.getClass().getName()); schedForm.getGlobalJobListeners().add(listenerForm); } Set jobListenerNames = choosenScheduler.getJobListenerNames(); for (Iterator iter = jobListenerNames.iterator(); iter.hasNext();) { JobListener jobListener = choosenScheduler.getJobListener((String) iter.next()); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(jobListener.getName()); listenerForm.setListenerClass(jobListener.getClass().getName()); schedForm.getRegisteredJobListeners().add(listenerForm); } Set triggerListenerNames = choosenScheduler.getTriggerListenerNames(); for (Iterator iter = triggerListenerNames.iterator(); iter.hasNext();) { TriggerListener triggerListener = choosenScheduler.getTriggerListener((String) iter.next()); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(triggerListener.getName()); listenerForm.setListenerClass(triggerListener.getClass().getName()); schedForm.getRegisteredTriggerListeners().add(listenerForm); } List schedulerListeners = choosenScheduler.getSchedulerListeners(); for (Iterator iter = schedulerListeners.iterator(); iter.hasNext();) { SchedulerListener schedulerListener = (SchedulerListener) iter.next(); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerClass(schedulerListener.getClass().getName()); schedForm.getSchedulerListeners().add(listenerForm); } */ //TODO fix this form.setScheduler(schedForm);}
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/cf8b3f774fbf60bc13321102f88001037b9d4252/ScheduleControler.java/buggy/webapp/src/org/quartz/ui/web/action/schedule/ScheduleControler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 11870, 1204, 12, 11870, 5011, 8918, 11870, 16, 25593, 11870, 1204, 646, 13, 202, 15069, 1185, 95, 202, 202, 2532, 4788, 2532, 273, 225, 394, 6276, 11870, 1733, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 11870, 1204, 12, 11870, 5011, 8918, 11870, 16, 25593, 11870, 1204, 646, 13, 202, 15069, 1185, 95, 202, 202, 2532, 4788, 2532, 273, 225, 394, 6276, 11870, 1733, 7675, ...
if (!tasks.containsKey(task.getHandleIdentifier())) { internalAddTask(task); } AbstractTaskContainer currentCategory = task.getCategory(); if (currentCategory instanceof TaskCategory) { ((TaskCategory)currentCategory).removeTask(task); } internalAddRootTask(task); for (ITaskListChangeListener listener : changeListeners) { listener.taskMoved(task, currentCategory, getRootCategory()); }
moveToContainer(rootCategory, task);
public void moveToRoot(ITask task) { if (!tasks.containsKey(task.getHandleIdentifier())) { internalAddTask(task); } AbstractTaskContainer currentCategory = task.getCategory(); if (currentCategory instanceof TaskCategory) { ((TaskCategory)currentCategory).removeTask(task); } internalAddRootTask(task); for (ITaskListChangeListener listener : changeListeners) { listener.taskMoved(task, currentCategory, getRootCategory()); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d14e3655b3944fa732da6ec83d603c802b608f3d/TaskList.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/TaskList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13863, 2375, 12, 1285, 835, 1562, 13, 288, 202, 202, 430, 16051, 9416, 18, 12298, 653, 12, 4146, 18, 588, 3259, 3004, 1435, 3719, 288, 1082, 202, 7236, 986, 2174, 12, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13863, 2375, 12, 1285, 835, 1562, 13, 288, 202, 202, 430, 16051, 9416, 18, 12298, 653, 12, 4146, 18, 588, 3259, 3004, 1435, 3719, 288, 1082, 202, 7236, 986, 2174, 12, 414...
try { try { queryName = name(parameterScope, CompletionKind.TYPE_REFERENCE, KeywordSetKey.EMPTY ); if( ! astFactory.queryIsTypeName( parameterScope, queryName ) ) failed = true; } catch (Exception e) { logException( "declarator:queryIsTypeName", e ); throw backtrack; } } catch( BacktrackException b ) { failed = true; } if( queryName != null ) queryName.freeReferences(astFactory.getReferenceManager()); backup( newMark ); } } if( ( queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE && !failed) || ! queryLookaheadCapability(3) ) { d.setIsFunction(true); consume(IToken.tLPAREN); setCompletionValues( scope, CompletionKind.ARGUMENT_TYPE, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); boolean seenParameter = false; parameterDeclarationLoop : for (;;) { switch (LT(1)) { case IToken.tRPAREN : consume(); setCompletionValues( parameterScope, CompletionKind.NO_SUCH_KIND, KeywordSetKey.FUNCTION_MODIFIER ); break parameterDeclarationLoop; case IToken.tELLIPSIS : consume(); d.setIsVarArgs( true ); break; case IToken.tCOMMA : consume(); setCompletionValues( parameterScope, CompletionKind.ARGUMENT_TYPE, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); seenParameter = false; break; default : if (seenParameter) throw backtrack; parameterDeclaration(d, parameterScope); seenParameter = true; } } } if (LT(1) == IToken.tCOLON || LT(1) == IToken.t_try ) break overallLoop; IToken beforeCVModifier = mark(); IToken [] cvModifiers = new IToken[2]; int numCVModifiers = 0; IToken afterCVModifier = beforeCVModifier; while( (LT(1) == IToken.t_const || LT(1) == IToken.t_volatile) && numCVModifiers < 2 ) { cvModifiers[numCVModifiers++] = consume(); afterCVModifier = mark(); } List exceptionSpecIds = null; if (LT(1) == IToken.t_throw) { exceptionSpecIds = new ArrayList(); consume(); consume(IToken.tLPAREN); boolean done = false; IASTTypeId exceptionTypeId = null; while (!done) { switch (LT(1)) { case IToken.tRPAREN : consume(); done = true; break; case IToken.tCOMMA : consume(); break; default : try { exceptionTypeId = typeId(scope, false, CompletionKind.EXCEPTION_REFERENCE ); exceptionSpecIds.add(exceptionTypeId); exceptionTypeId.acceptElement( requestor, astFactory.getReferenceManager() ); } catch (BacktrackException e) { failParse(); consume(); continue; } break; } } if (exceptionSpecIds != null) try { d.setExceptionSpecification( astFactory .createExceptionSpecification( d.getDeclarationWrapper().getScope(), exceptionSpecIds)); } catch (ASTSemanticException e) { failParse(); throw backtrack; } catch (Exception e) { logException( "declarator:createExceptionSpecification", e ); throw backtrack; } } if (LT(1) == IToken.tASSIGN && LT(2) == IToken.tINTEGER && LA(2).getImage().equals("0")) { consume(IToken.tASSIGN); consume(IToken.tINTEGER); d.setPureVirtual(true); } if (afterCVModifier != LA(1) || LT(1) == IToken.tSEMI) { if ( numCVModifiers > 0 ) { for( int i = 0; i < numCVModifiers; i++ ){ if( cvModifiers[i].getType() == IToken.t_const ) d.setConst(true); if( cvModifiers[i].getType() == IToken.t_volatile ) d.setVolatile(true); } } afterCVModifier = mark(); } break; case IToken.tLBRACKET : consumeArrayModifiers(d, sdw.getScope()); continue; case IToken.tCOLON : consume(IToken.tCOLON); IASTExpression exp = constantExpression(scope, CompletionKind.SINGLE_NAME_REFERENCE, KeywordSetKey.EXPRESSION ); d.setBitFieldExpression(exp); default : break; } break; } if (LA(1).getType() != IToken.tIDENTIFIER) break; } while (true); if (d.getOwner() instanceof IDeclarator) ((Declarator)d.getOwner()).setOwnedDeclarator(d); return d; }
try { try { queryName = name(parameterScope, CompletionKind.TYPE_REFERENCE, KeywordSetKey.EMPTY); if (!astFactory.queryIsTypeName( parameterScope, queryName)) failed = true; } catch (Exception e) { logException( "declarator:queryIsTypeName", e); throwBacktrack(startingOffset); } } catch (BacktrackException b) { failed = true; } if (queryName != null) queryName.freeReferences(astFactory .getReferenceManager()); backup(newMark); } } if ((queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE && !failed) || !queryLookaheadCapability(3)) { d.setIsFunction(true); consume(IToken.tLPAREN); setCompletionValues(scope, CompletionKind.ARGUMENT_TYPE, KeywordSetKey.DECL_SPECIFIER_SEQUENCE); boolean seenParameter = false; parameterDeclarationLoop : for (;;) { switch (LT(1)) { case IToken.tRPAREN : consume(); setCompletionValues(parameterScope, CompletionKind.NO_SUCH_KIND, KeywordSetKey.FUNCTION_MODIFIER); break parameterDeclarationLoop; case IToken.tELLIPSIS : consume(); d.setIsVarArgs(true); break; case IToken.tCOMMA : consume(); setCompletionValues( parameterScope, CompletionKind.ARGUMENT_TYPE, KeywordSetKey.DECL_SPECIFIER_SEQUENCE); seenParameter = false; break; default : if (seenParameter) throwBacktrack(startingOffset); parameterDeclaration(d, parameterScope); seenParameter = true; } } } if (LT(1) == IToken.tCOLON || LT(1) == IToken.t_try) break overallLoop; IToken beforeCVModifier = mark(); IToken[] cvModifiers = new IToken[2]; int numCVModifiers = 0; IToken afterCVModifier = beforeCVModifier; while ((LT(1) == IToken.t_const || LT(1) == IToken.t_volatile) && numCVModifiers < 2) { cvModifiers[numCVModifiers++] = consume(); afterCVModifier = mark(); } List exceptionSpecIds = null; if (LT(1) == IToken.t_throw) { exceptionSpecIds = new ArrayList(); consume(); consume(IToken.tLPAREN); boolean done = false; IASTTypeId exceptionTypeId = null; while (!done) { switch (LT(1)) { case IToken.tRPAREN : consume(); done = true; break; case IToken.tCOMMA : consume(); break; default : try { exceptionTypeId = typeId( scope, false, CompletionKind.EXCEPTION_REFERENCE); exceptionSpecIds .add(exceptionTypeId); exceptionTypeId .acceptElement( requestor, astFactory .getReferenceManager()); } catch (BacktrackException e) { failParse(e); consume(); continue; } break; } } if (exceptionSpecIds != null) try { d.setExceptionSpecification(astFactory .createExceptionSpecification(d .getDeclarationWrapper() .getScope(), exceptionSpecIds)); } catch (ASTSemanticException e) { throwBacktrack(e.getProblem()); } catch (Exception e) { logException( "declarator:createExceptionSpecification", e); throwBacktrack(startingOffset); } } if (LT(1) == IToken.tASSIGN && LT(2) == IToken.tINTEGER && LA(2).getImage().equals("0")) { consume(IToken.tASSIGN); consume(IToken.tINTEGER); d.setPureVirtual(true); } if (afterCVModifier != LA(1) || LT(1) == IToken.tSEMI) { if (numCVModifiers > 0) { for (int i = 0; i < numCVModifiers; i++) { if (cvModifiers[i].getType() == IToken.t_const) d.setConst(true); if (cvModifiers[i].getType() == IToken.t_volatile) d.setVolatile(true); } } afterCVModifier = mark(); } break; case IToken.tLBRACKET : consumeArrayModifiers(d, sdw.getScope()); continue; case IToken.tCOLON : consume(IToken.tCOLON); IASTExpression exp = constantExpression(scope, CompletionKind.SINGLE_NAME_REFERENCE, KeywordSetKey.EXPRESSION); d.setBitFieldExpression(exp); default : break; } break; } if (LA(1).getType() != IToken.tIDENTIFIER) break; } while (true); if (d.getOwner() instanceof IDeclarator) ((Declarator) d.getOwner()).setOwnedDeclarator(d); return d; }
protected Declarator declarator( IDeclaratorOwner owner, IASTScope scope, SimpleDeclarationStrategy strategy, CompletionKind kind ) throws EndOfFileException, BacktrackException { Declarator d = null; DeclarationWrapper sdw = owner.getDeclarationWrapper(); overallLoop : do { d = new Declarator(owner); consumePointerOperators(d); if (LT(1) == IToken.tLPAREN) { consume(); declarator(d, scope, strategy, kind ); consume(IToken.tRPAREN); } else consumeTemplatedOperatorName(d, kind); for (;;) { switch (LT(1)) { case IToken.tLPAREN : boolean failed = false; IASTScope parameterScope = astFactory.getDeclaratorScope( scope, d.getNameDuple() ); // temporary fix for initializer/function declaration ambiguity if ( queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE ) { if( LT(2) == IToken.tIDENTIFIER ) { IToken newMark = mark(); consume( IToken.tLPAREN ); ITokenDuple queryName = null; try { try { queryName = name(parameterScope, CompletionKind.TYPE_REFERENCE, KeywordSetKey.EMPTY ); if( ! astFactory.queryIsTypeName( parameterScope, queryName ) ) failed = true; } catch (Exception e) { logException( "declarator:queryIsTypeName", e ); //$NON-NLS-1$ throw backtrack; } } catch( BacktrackException b ) { failed = true; } if( queryName != null ) queryName.freeReferences(astFactory.getReferenceManager()); backup( newMark ); } } if( ( queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE && !failed) || ! queryLookaheadCapability(3) ) { // parameterDeclarationClause d.setIsFunction(true); // TODO need to create a temporary scope object here consume(IToken.tLPAREN); setCompletionValues( scope, CompletionKind.ARGUMENT_TYPE, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); boolean seenParameter = false; parameterDeclarationLoop : for (;;) { switch (LT(1)) { case IToken.tRPAREN : consume(); setCompletionValues( parameterScope, CompletionKind.NO_SUCH_KIND, KeywordSetKey.FUNCTION_MODIFIER ); break parameterDeclarationLoop; case IToken.tELLIPSIS : consume(); d.setIsVarArgs( true ); break; case IToken.tCOMMA : consume(); setCompletionValues( parameterScope, CompletionKind.ARGUMENT_TYPE, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); seenParameter = false; break; default : if (seenParameter) throw backtrack; parameterDeclaration(d, parameterScope); seenParameter = true; } } } if (LT(1) == IToken.tCOLON || LT(1) == IToken.t_try ) break overallLoop; IToken beforeCVModifier = mark(); IToken [] cvModifiers = new IToken[2]; int numCVModifiers = 0; IToken afterCVModifier = beforeCVModifier; // const-volatile // 2 options: either this is a marker for the method, // or it might be the beginning of old K&R style parameter declaration, see // void getenv(name) const char * name; {} // This will be determined further below while( (LT(1) == IToken.t_const || LT(1) == IToken.t_volatile) && numCVModifiers < 2 ) { cvModifiers[numCVModifiers++] = consume(); afterCVModifier = mark(); } //check for throws clause here List exceptionSpecIds = null; if (LT(1) == IToken.t_throw) { exceptionSpecIds = new ArrayList(); consume(); // throw consume(IToken.tLPAREN); // ( boolean done = false; IASTTypeId exceptionTypeId = null; while (!done) { switch (LT(1)) { case IToken.tRPAREN : consume(); done = true; break; case IToken.tCOMMA : consume(); break; default : try { exceptionTypeId = typeId(scope, false, CompletionKind.EXCEPTION_REFERENCE ); exceptionSpecIds.add(exceptionTypeId); exceptionTypeId.acceptElement( requestor, astFactory.getReferenceManager() ); } catch (BacktrackException e) { failParse(); consume(); // eat this token anyway continue; } break; } } if (exceptionSpecIds != null) try { d.setExceptionSpecification( astFactory .createExceptionSpecification( d.getDeclarationWrapper().getScope(), exceptionSpecIds)); } catch (ASTSemanticException e) { failParse(); throw backtrack; } catch (Exception e) { logException( "declarator:createExceptionSpecification", e ); //$NON-NLS-1$ throw backtrack; } } // check for optional pure virtual if (LT(1) == IToken.tASSIGN && LT(2) == IToken.tINTEGER && LA(2).getImage().equals("0")) //$NON-NLS-1$ { consume(IToken.tASSIGN); consume(IToken.tINTEGER); d.setPureVirtual(true); } if (afterCVModifier != LA(1) || LT(1) == IToken.tSEMI) { // There were C++-specific clauses after const/volatile modifier // Then it is a marker for the method if ( numCVModifiers > 0 ) { for( int i = 0; i < numCVModifiers; i++ ){ if( cvModifiers[i].getType() == IToken.t_const ) d.setConst(true); if( cvModifiers[i].getType() == IToken.t_volatile ) d.setVolatile(true); } } afterCVModifier = mark(); // In this case (method) we can't expect K&R parameter declarations, // but we'll check anyway, for errorhandling } break; case IToken.tLBRACKET : consumeArrayModifiers(d, sdw.getScope()); continue; case IToken.tCOLON : consume(IToken.tCOLON); IASTExpression exp = constantExpression(scope, CompletionKind.SINGLE_NAME_REFERENCE, KeywordSetKey.EXPRESSION ); d.setBitFieldExpression(exp); default : break; } break; } if (LA(1).getType() != IToken.tIDENTIFIER) break; } while (true); if (d.getOwner() instanceof IDeclarator) ((Declarator)d.getOwner()).setOwnedDeclarator(d); return d; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85be18a5f9556c1b23f600ca12f088a1d51d3925/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 16110, 5880, 3496, 5880, 12, 3639, 1599, 557, 80, 5880, 5541, 3410, 16, 467, 9053, 3876, 2146, 16, 4477, 6094, 4525, 6252, 16, 20735, 5677, 3846, 262, 3639, 1216, 4403, 951, 812, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 16110, 5880, 3496, 5880, 12, 3639, 1599, 557, 80, 5880, 5541, 3410, 16, 467, 9053, 3876, 2146, 16, 4477, 6094, 4525, 6252, 16, 20735, 5677, 3846, 262, 3639, 1216, 4403, 951, 812, 50...
if(target instanceof MClassifier) {
if (target instanceof MClassifier) {
public void addAttribute() { Object target = getTarget(); if(target instanceof MClassifier) { MClassifier classifier = (MClassifier) target; MStereotype stereo = classifier.getStereotype(); if(stereo == null) { // // if there is not an enumeration stereotype as // an immediate child of the model, add one MModel model = classifier.getModel(); Object ownedElement; boolean match = false; if(model != null) { Collection ownedElements = model.getOwnedElements(); if(ownedElements != null) { Iterator iter = ownedElements.iterator(); while(iter.hasNext()) { ownedElement = iter.next(); if(ownedElement instanceof MStereotype) { stereo = (MStereotype) ownedElement; String stereoName = stereo.getName(); if(stereoName != null && stereoName.equals("enumeration")) { match = true; break; } } } if(!match) { stereo = classifier.getFactory().createStereotype(); stereo.setName("enumeration"); model.addOwnedElement(stereo); } classifier.setStereotype(stereo); } } } MAttribute attr = CoreFactory.getFactory().buildAttribute(classifier); TargetManager.getInstance().setTarget(attr); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/PropPanelDataType.java/clean/src_new/org/argouml/uml/ui/foundation/core/PropPanelDataType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10759, 1435, 288, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 261, 3299, 1276, 490, 13860, 13, 288, 5411, 490, 13860, 14622, 273, 261, 49, 13860, 13, 1018, 31, 5411, 9238, 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, 918, 10759, 1435, 288, 3639, 1033, 1018, 273, 8571, 5621, 3639, 309, 261, 3299, 1276, 490, 13860, 13, 288, 5411, 490, 13860, 14622, 273, 261, 49, 13860, 13, 1018, 31, 5411, 9238, 38...
sb.append(":");
sb.append(':');
public String toString() { StringBuffer sb = new StringBuffer(200); sb.append("FetchException:"); sb.append(getShortMessage(mode)); sb.append(":"); sb.append(newURI); sb.append(":"); sb.append(expectedSize); sb.append(":"); sb.append(expectedMimeType); sb.append(":"); sb.append(finalizedSizeAndMimeType); sb.append(":"); sb.append(errorCodes); sb.append(":"); sb.append(extraMessage); return sb.toString(); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FetchException.java/clean/src/freenet/client/FetchException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 6976, 1769, 202, 202, 18366, 18, 6923, 2932, 5005, 503, 2773, 1769, 202, 202, 18366, 18, 6923, 12, 588, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 6976, 1769, 202, 202, 18366, 18, 6923, 2932, 5005, 503, 2773, 1769, 202, 202, 18366, 18, 6923, 12, 588, 48...
if (verticalGuides == null) { verticalGuides = new EObjectContainmentEList(Guide.class, this, NotationPackage.DIAGRAM_STYLE__VERTICAL_GUIDES); } return verticalGuides; }
if (verticalGuides == null) { verticalGuides = new EObjectContainmentEList(Guide.class, this, NotationPackage.DIAGRAM_STYLE__VERTICAL_GUIDES); } return verticalGuides; }
public EList getVerticalGuides() { if (verticalGuides == null) { verticalGuides = new EObjectContainmentEList(Guide.class, this, NotationPackage.DIAGRAM_STYLE__VERTICAL_GUIDES); } return verticalGuides; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/DiagramStyleImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/DiagramStyleImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 17021, 336, 15704, 22549, 281, 1435, 288, 202, 202, 430, 261, 17824, 22549, 281, 422, 446, 13, 288, 1082, 202, 17824, 22549, 281, 273, 394, 8091, 22928, 475, 41, 682, 12, 17424,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17021, 336, 15704, 22549, 281, 1435, 288, 202, 202, 430, 261, 17824, 22549, 281, 422, 446, 13, 288, 1082, 202, 17824, 22549, 281, 273, 394, 8091, 22928, 475, 41, 682, 12, 17424,...
return adres; }
return adres; }
public String getAddressName(int id_nm) //ok izvli4ane na naselenoto mqsto sprqmo id_nm { String adres = new String(""); this.id_nm = id_nm; this.comprator = 10; // SQLska zaqvka za izvli4ane na naselenoto mqsto v zavisimost id_nm try { registerParameters(); setRs(getCstm().executeQuery()); while(rs.next()) { adres = rs.getString(1); } } catch(java.sql.SQLException sqle) { sqle.printStackTrace(); } System.out.println("ot contragentDB.getAddress()"); return adres; }
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/1220f93a86811088821098326f59ef5827e38faa/contragentDB.java/buggy/src/nom/contragentDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 514, 14808, 461, 12, 474, 612, 67, 15094, 13, 368, 601, 277, 94, 90, 549, 24, 8806, 9583, 290, 345, 292, 275, 6302, 18327, 30168, 272, 683, 85, 8683, 612, 67, 15094, 288, 377, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 514, 14808, 461, 12, 474, 612, 67, 15094, 13, 368, 601, 277, 94, 90, 549, 24, 8806, 9583, 290, 345, 292, 275, 6302, 18327, 30168, 272, 683, 85, 8683, 612, 67, 15094, 288, 377, 5...
URL url = new URL("file:/some/file");
File tempFile = File.createTempFile("foo", "bar"); URL url = new URL(tempFile.toURL().toExternalForm());
public void testURLConnectionType() throws Exception { URL url = new URL("file:/some/file"); URLConnection c = url.openConnection(); assertEquals(FileURLConnection.class, c.getClass()); }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/3db485f95e5a9e2afe7b768859ea0feb4a389cf4/FileProtocolTest.java/clean/modules/system/src/test/org/apache/geronimo/system/url/file/FileProtocolTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14790, 559, 1435, 1216, 1185, 288, 3639, 1387, 18286, 273, 1387, 18, 2640, 20181, 2932, 11351, 3113, 315, 3215, 8863, 1976, 880, 273, 394, 1976, 12, 5814, 812, 18, 869, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14790, 559, 1435, 1216, 1185, 288, 3639, 1387, 18286, 273, 1387, 18, 2640, 20181, 2932, 11351, 3113, 315, 3215, 8863, 1976, 880, 273, 394, 1976, 12, 5814, 812, 18, 869, 1...
for( int i = 0; i < da.getNumElements(); i++) { assertEquals( "The testArray values should equal the controlArray values, index i: " + i + " does not match", testArray[i], controlArray[i], Double.MIN_VALUE);
for (int i = 0; i < da.getNumElements(); i++) { assertEquals( "The testArray values should equal the controlArray values, index i: " + i + " does not match", testArray[i], controlArray[i], Double.MIN_VALUE);
public void testGetValues() { double[] controlArray = {2.0, 4.0, 6.0}; da.addElement(2.0); da.addElement(4.0); da.addElement(6.0); double[] testArray = da.getElements(); for( int i = 0; i < da.getNumElements(); i++) { assertEquals( "The testArray values should equal the controlArray values, index i: " + i + " does not match", testArray[i], controlArray[i], Double.MIN_VALUE); } }
9305 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9305/d6f7028269df96a72cccf7b72a41b89aaa820e9f/DoubleArrayAbstractTest.java/clean/src/test/org/apache/commons/math/DoubleArrayAbstractTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1972, 1435, 288, 202, 202, 9056, 8526, 3325, 1076, 273, 288, 22, 18, 20, 16, 1059, 18, 20, 16, 1666, 18, 20, 20451, 9506, 202, 2414, 18, 1289, 1046, 12, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 967, 1972, 1435, 288, 202, 202, 9056, 8526, 3325, 1076, 273, 288, 22, 18, 20, 16, 1059, 18, 20, 16, 1666, 18, 20, 20451, 9506, 202, 2414, 18, 1289, 1046, 12, 22, ...
Map options = DefaultCodeFormatterConstants.getDefaultSettings();
Map options = DefaultCodeFormatterConstants.getEclipse21Settings();
public void test360() { Map options = DefaultCodeFormatterConstants.getDefaultSettings(); options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, JavaCore.TAB); options.put(DefaultCodeFormatterConstants.FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE, "2"); DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test360", "A.java", CodeFormatter.K_COMPILATION_UNIT);//$NON-NLS-1$ //$NON-NLS-2$ }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/18d1b818e2c1363e3c9436625e46da37b9994fdc/FormatterRegressionTests.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29751, 1435, 288, 202, 202, 863, 702, 273, 2989, 1085, 5074, 2918, 18, 588, 1868, 2628, 5621, 202, 202, 2116, 18, 458, 12, 1868, 1085, 5074, 2918, 18, 7254, 2560, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29751, 1435, 288, 202, 202, 863, 702, 273, 2989, 1085, 5074, 2918, 18, 588, 1868, 2628, 5621, 202, 202, 2116, 18, 458, 12, 1868, 1085, 5074, 2918, 18, 7254, 2560, 6...
UMLRadioButton ret = new UMLRadioButton("return",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.RETURN,null));
UMLRadioButton ret = new UMLRadioButton("return", this, new UMLEnumerationBooleanProperty("kind", mclass, "getKind", "setKind", MParameterDirectionKind.class, MParameterDirectionKind.RETURN, null));
public PropPanelParameter() { super( "Parameter", _parameterIcon, ConfigLoader.getTabPropsOrientation()); Class mclass = MParameter.class; Class[] namesToWatch = { MStereotype.class,MOperation.class, MParameter.class,MClassifier.class }; setNameEventListening(namesToWatch); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),getStereotypeBox())); JList namespaceList = new UMLList(new UMLReflectionListModel(this,"behaviorialfeature",false,"getBehavioralFeature",null,null,null),true); namespaceList.setVisibleRowCount(1); addLinkField(Argo.localize("UMLMenu", "label.owner"), new JScrollPane(namespaceList,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER)); addSeperator(); addField(Argo.localize("UMLMenu", "label.type"),new UMLComboBox2(new UMLParameterTypeComboBoxModel(), ActionSetParameterType.SINGLETON)); addField("Initial Value:", new UMLInitialValueComboBox(this)); JPanel kindPanel = new JPanel(new GridLayout2(0, 2, GridLayout2.ROWCOLPREFERRED)); ButtonGroup kindGroup = new ButtonGroup(); UMLRadioButton inout = new UMLRadioButton("in/out",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.INOUT,null)); kindGroup.add(inout); kindPanel.add(inout); UMLRadioButton in = new UMLRadioButton("in",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.IN,null)); kindGroup.add(in); kindPanel.add(in); UMLRadioButton out = new UMLRadioButton("out",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.OUT,null)); kindGroup.add(out); kindPanel.add(out); UMLRadioButton ret = new UMLRadioButton("return",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.RETURN,null)); kindGroup.add(ret); kindPanel.add(ret); addField("Kind:", kindPanel); new PropPanelButton(this,buttonPanel,_navUpIcon, Argo.localize("UMLMenu", "button.go-up"),"navigateUp",null); new PropPanelButton(this,buttonPanel,_parameterIcon, Argo.localize("UMLMenu", "button.add-parameter"),"addParameter",null); // new PropPanelButton(this,buttonPanel,_dataTypeIcon, Argo.localize("UMLMenu", "button.add-datatype"),"addDataType",null); new PropPanelButton(this,buttonPanel,_deleteIcon, Argo.localize("UMLMenu", "button.delete-parameter"),"removeElement",null); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/PropPanelParameter.java/clean/src_new/org/argouml/uml/ui/foundation/core/PropPanelParameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10484, 5537, 1662, 1435, 288, 3639, 2240, 12, 5411, 315, 1662, 3113, 5411, 389, 6775, 5554, 16, 5411, 1903, 2886, 18, 588, 5661, 5047, 14097, 10663, 3639, 1659, 312, 1106, 273, 490, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10484, 5537, 1662, 1435, 288, 3639, 2240, 12, 5411, 315, 1662, 3113, 5411, 389, 6775, 5554, 16, 5411, 1903, 2886, 18, 588, 5661, 5047, 14097, 10663, 3639, 1659, 312, 1106, 273, 490, ...
return (RubyArray)newBackTrace;
return (RubyArray) newBackTrace;
private RubyArray createBacktrace(RubyObject newBackTrace) { if (newBackTrace instanceof RubyString) { return RubyArray.newArray(ruby, newBackTrace); } else if (newBackTrace instanceof RubyArray) { for (int i = 0; i < ((RubyArray)newBackTrace).getLength(); i++) { if (!(((RubyArray)newBackTrace).entry(i) instanceof RubyString)) { throw new TypeError(ruby, "backtrace must be Array of String"); } } return (RubyArray)newBackTrace; } throw new TypeError(ruby, "backtrace must be Array of String"); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/7798138390a306a202dcec9bde45928dae2e852e/RubyException.java/buggy/org/jruby/RubyException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 752, 2711, 5129, 12, 54, 10340, 921, 394, 2711, 3448, 13, 288, 3639, 309, 261, 2704, 2711, 3448, 1276, 19817, 780, 13, 288, 5411, 327, 19817, 1076, 18, 2704, 1076, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 19817, 1076, 752, 2711, 5129, 12, 54, 10340, 921, 394, 2711, 3448, 13, 288, 3639, 309, 261, 2704, 2711, 3448, 1276, 19817, 780, 13, 288, 5411, 327, 19817, 1076, 18, 2704, 1076, 12, ...
if (SourceTreeToPsiMap.treeElementToPsi(parent) instanceof PsiFile) return Formatter.getInstance().getNoneIndent(); else return null;
if (SourceTreeToPsiMap.treeElementToPsi(parent) instanceof PsiFile) { return Formatter.getInstance().getNoneIndent(); } else { return null; }
private static Indent getChildIndent(final ASTNode parent) { if (parent.getElementType() == ElementType.MODIFIER_LIST) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.JSP_CODE_BLOCK) return Formatter.getInstance().createNormalIndent(); if (parent.getElementType() == ElementType.DUMMY_HOLDER) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.CLASS) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.IF_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.TRY_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.CATCH_SECTION) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.FOR_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.FOREACH_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.BLOCK_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.DO_WHILE_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.WHILE_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.SWITCH_STATEMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.METHOD) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == JavaDocElementType.DOC_COMMENT) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == JavaDocElementType.DOC_TAG) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == JavaDocElementType.DOC_INLINE_TAG) return Formatter.getInstance().getNoneIndent(); if (parent.getElementType() == ElementType.IMPORT_LIST) return Formatter.getInstance().getNoneIndent(); if (SourceTreeToPsiMap.treeElementToPsi(parent) instanceof PsiFile) return Formatter.getInstance().getNoneIndent(); else return null; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/40749dac11b9e0cde9885d17758b464e2d9e939e/AbstractJavaBlock.java/clean/source/com/intellij/psi/formatter/java/AbstractJavaBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 28653, 8154, 7790, 12, 6385, 9183, 907, 982, 13, 288, 565, 309, 261, 2938, 18, 588, 17481, 1435, 422, 3010, 559, 18, 6720, 10591, 67, 7085, 13, 327, 225, 14924, 18, 588, 1442...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 28653, 8154, 7790, 12, 6385, 9183, 907, 982, 13, 288, 565, 309, 261, 2938, 18, 588, 17481, 1435, 422, 3010, 559, 18, 6720, 10591, 67, 7085, 13, 327, 225, 14924, 18, 588, 1442...
Iterator iter = getWSArtifactEdits().values().iterator();
Iterator iter = getWSArtifactEditsIterator();
public synchronized List getWorkspaceWSDLResources() { List result = new ArrayList(); Iterator iter = getWSArtifactEdits().values().iterator(); while (iter.hasNext()) { WSDDArtifactEdit artifactEdit = (WSDDArtifactEdit) iter.next(); IProject project = artifactEdit.getProject(); if (project != null) { List wsdlResources = artifactEdit.getWSDLResources(); if (wsdlResources != null && !wsdlResources.isEmpty()) { for (int j = 0; j < wsdlResources.size(); j++) { Resource wsdl = (Resource) wsdlResources.get(j); if (!result.contains(wsdl)) result.add(wsdl); } } } } return result; }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/7e6f7c743cce4571bba8d7771cc2541a12e90e16/WebServicesManager.java/clean/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/helper/WebServicesManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 987, 20280, 2651, 8914, 3805, 1435, 288, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 3198, 1400, 273, 336, 2651, 7581, 2671, 1282, 7675, 2372, 7675, 9838, 5621, 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, 3852, 987, 20280, 2651, 8914, 3805, 1435, 288, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 3198, 1400, 273, 336, 2651, 7581, 2671, 1282, 7675, 2372, 7675, 9838, 5621, 20...
this.spacingAfter = spacing; }
this.spacingAfter = spacing; }
public void setSpacingAfter(float spacing) { this.spacingAfter = spacing; }
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/7db9e738a62cae021d8a52915e84389f881d0f9e/Image.java/buggy/itext/src/com/lowagie/text/Image.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 18006, 4436, 12, 5659, 13259, 13, 288, 3639, 333, 18, 14080, 4436, 273, 13259, 31, 565, 289, 377, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 18006, 4436, 12, 5659, 13259, 13, 288, 3639, 333, 18, 14080, 4436, 273, 13259, 31, 565, 289, 377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
log.debug("storeSnmpCollection: routemetric4 is: "+ routemetric4 == null ? "null" : routemetric4+"; IP_ROUTE_METRIC4: "+IpRouteTableEntry.IP_ROUTE_METRIC4);
log.debug("storeSnmpCollection: routemetric4 is: "+ (routemetric4 < 1 ? "less than 1" : routemetric4)+"; IP_ROUTE_METRIC4: "+IpRouteTableEntry.IP_ROUTE_METRIC4);
private void storeSnmpCollection(Connection dbConn, Timestamp now) throws SQLException, UnknownHostException { Category log = ThreadCategory.getInstance(getClass()); Iterator ite = null; int nodeid = m_node.getNodeId(); if (m_snmpcoll.hasIpNetToMediaTable()) { ite = m_snmpcoll.getIpNetToMediaTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving IpNetToMediaTable to atinterface table in DB"); // the AtInterfaces used by LinkableNode where to save info java.util.List<AtInterface> atInterfaces = new java.util.ArrayList<AtInterface>(); while (ite.hasNext()) { IpNetToMediaTableEntry ent = (IpNetToMediaTableEntry) ite .next(); int ifindex = ent .getInt32(IpNetToMediaTableEntry.INTM_INDEX); InetAddress ipaddress = ent .getIPAddress(IpNetToMediaTableEntry.INTM_NETADDR); if (ipaddress.isLoopbackAddress() || ipaddress.getHostAddress().equals("0.0.0.0")) { log.warn("store: invalid ip " + ipaddress.getHostAddress()); continue; } String physAddr = ent .getHexString(IpNetToMediaTableEntry.INTM_PHYSADDR); if (physAddr.equals("000000000000") || physAddr.equalsIgnoreCase("ffffffffffff")) { log.warn("store: invalid mac address " + physAddr + " for ip " + ipaddress.getHostAddress()); continue; } if (log.isDebugEnabled()) log.debug("store: trying save info for ipaddr " + ipaddress.getHostName() + " mac address " + physAddr + " found on ifindex " + ifindex); // get an At interface but without setting mac address AtInterface at = getNodeidIfindexFromIp(dbConn, ipaddress); if (at == null) { log.warn("getNodeidIfindexFromIp: no nodeid found for ipaddress " + ipaddress + "."); continue; //TODO here is a good place for autodiscovery } //set the mac address at.setMacAddress(physAddr); // add At Inteface to list of valid interfaces atInterfaces.add(at); // Save in DB DbAtInterfaceEntry atInterfaceEntry = DbAtInterfaceEntry.get( dbConn, at.getNodeId(), ipaddress.getHostAddress()); if (atInterfaceEntry == null) { atInterfaceEntry = DbAtInterfaceEntry.create(at.getNodeId(), ipaddress.getHostAddress()); } // update object atInterfaceEntry.updateAtPhysAddr(physAddr); atInterfaceEntry.updateSourceNodeId(nodeid); atInterfaceEntry.updateIfIndex(ifindex); atInterfaceEntry.updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); atInterfaceEntry.set_lastpolltime(now); // store object in database atInterfaceEntry.store(dbConn); } // set AtInterfaces in LinkableNode m_node.setAtInterfaces(atInterfaces); } if (m_snmpcoll.hasCdpCacheTable()) { if (log.isDebugEnabled()) log .debug("store: saving CdpCacheTable into SnmpLinkableNode"); java.util.List<CdpInterface> cdpInterfaces = new java.util.ArrayList<CdpInterface>(); ite = m_snmpcoll.getCdpCacheTable() .getEntries().iterator(); while (ite.hasNext()) { CdpCacheTableEntry cdpEntry = (CdpCacheTableEntry) ite.next(); int cdpAddrType = cdpEntry.getInt32(CdpCacheTableEntry.CDP_ADDRESS_TYPE); if (cdpAddrType != 1) continue; String cdptargetipaddress = cdpEntry.getHexString(CdpCacheTableEntry.CDP_ADDRESS); if (log.isDebugEnabled()) log.debug(" cdp ip address octet string is " + cdptargetipaddress); long ipAddr = Long.parseLong(cdptargetipaddress, 16); byte[] bytes = new byte[4]; bytes[3] = (byte) (ipAddr & 0xff); bytes[2] = (byte) ((ipAddr >> 8) & 0xff); bytes[1] = (byte) ((ipAddr >> 16) & 0xff); bytes[0] = (byte) ((ipAddr >> 24) & 0xff); InetAddress cdpTargetIpAddr = InetAddress.getByAddress(bytes); if (log.isDebugEnabled()) log.debug(" cdp ip address after parsing is " + cdpTargetIpAddr.getHostAddress()); int cdpIfIndex = cdpEntry.getInt32(CdpCacheTableEntry.CDP_IFINDEX); if (log.isDebugEnabled()) log.debug(" cdp ifindex is " + cdpIfIndex); String cdpTargetDevicePort = cdpEntry.getDisplayString(CdpCacheTableEntry.CDP_DEVICEPORT); if (log.isDebugEnabled()) log.debug(" cdp Target device port name is " + cdpTargetDevicePort); CdpInterface cdpIface = new CdpInterface(cdpIfIndex); int targetCdpNodeId = getNodeidFromIp(dbConn, cdpTargetIpAddr); cdpIface.setCdpTargetNodeId(targetCdpNodeId); cdpIface.setCdpTargetIpAddr(cdpTargetIpAddr); int cdpTargetIfindex = getIfIndexByName( dbConn, targetCdpNodeId, cdpTargetDevicePort); if (targetCdpNodeId == -1 || cdpTargetIfindex == -1) { log.warn("No nodeid found: cdp interface not added to Linkable Snmp Node"); //TODO Good place for autodiscovery } else { cdpIface.setCdpTargetIfIndex(cdpTargetIfindex); cdpInterfaces.add(cdpIface); } } m_node.setCdpInterfaces(cdpInterfaces); } if (m_snmpcoll.hasRouteTable()) { java.util.List<RouterInterface> routeInterfaces = new java.util.ArrayList<RouterInterface>(); ite = m_snmpcoll.getIpRouteTable().getEntries() .iterator(); if (log.isDebugEnabled()) log .debug("store: saving ipRouteTable to iprouteinterface table in DB"); while (ite.hasNext()) { IpRouteTableEntry ent = (IpRouteTableEntry) ite.next(); InetAddress routedest = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_DEST); log.debug("storeSnmpCollection: routedest is: "+ routedest == null ? "null" : routedest+"; IP_ROUTE_DEST: "+IpRouteTableEntry.IP_ROUTE_DEST); InetAddress routemask = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_MASK); log.debug("storeSnmpCollection: routemask is: "+ routemask == null ? "null" : routemask+"; IP_ROUTE_MASK: "+IpRouteTableEntry.IP_ROUTE_MASK); InetAddress nexthop = ent.getIPAddress(IpRouteTableEntry.IP_ROUTE_NXTHOP); log.debug("storeSnmpCollection: nexthop is: "+ nexthop == null ? "null" : nexthop+"; IP_ROUTE_NXTHOP: "+IpRouteTableEntry.IP_ROUTE_NXTHOP); int ifindex = ent.getInt32(IpRouteTableEntry.IP_ROUTE_IFINDEX); log.debug("storeSnmpCollection: ifindex is: "+ ifindex == null ? "null" : ifindex+"; IP_ROUTE_IFINDEX: "+IpRouteTableEntry.IP_ROUTE_IFINDEX); int routemetric1 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC1); log.debug("storeSnmpCollection: routemetric1 is: "+ routemetric1 == null ? "null" : routemetric1+"; IP_ROUTE_METRIC1: "+IpRouteTableEntry.IP_ROUTE_METRIC1); int routemetric2 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC2); log.debug("storeSnmpCollection: routemetric2 is: "+ routemetric2 == null ? "null" : routemetric2+"; IP_ROUTE_METRIC2: "+IpRouteTableEntry.IP_ROUTE_METRIC2); int routemetric3 =ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC3); log.debug("storeSnmpCollection: routemetric3 is: "+ routemetric3 == null ? "null" : routemetric3+"; IP_ROUTE_METRIC3: "+IpRouteTableEntry.IP_ROUTE_METRIC3); int routemetric4 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC4); log.debug("storeSnmpCollection: routemetric4 is: "+ routemetric4 == null ? "null" : routemetric4+"; IP_ROUTE_METRIC4: "+IpRouteTableEntry.IP_ROUTE_METRIC4); int routemetric5 = ent.getInt32(IpRouteTableEntry.IP_ROUTE_METRIC5); log.debug("storeSnmpCollection: routemetric5 is: "+ routemetric5 == null ? "null" : routemetric5+"; IP_ROUTE_METRIC5: "+IpRouteTableEntry.IP_ROUTE_METRIC5); int routetype = ent.getInt32(IpRouteTableEntry.IP_ROUTE_TYPE); log.debug("storeSnmpCollection: routetype is: "+ routetype == null ? "null" : routetype+"; IP_ROUTE_TYPE: "+IpRouteTableEntry.IP_ROUTE_TYPE); int routeproto = ent.getInt32(IpRouteTableEntry.IP_ROUTE_PROTO); log.debug("storeSnmpCollection: routeproto is: "+ routeproto == null ? "null" : routeproto+"; IP_ROUTE_PROTO: "+IpRouteTableEntry.IP_ROUTE_PROTO); // info used for Discovery Link RouterInterface routeIface = new RouterInterface(ifindex); routeIface.setMetric(routemetric1); routeIface.setNextHop(nexthop); int nodeParentId = getNodeidFromIp(dbConn,nexthop); if (nodeParentId == -1) { //TODO here is a good point for autodiscovery log.warn("store: No nodeid found for next hop " + nexthop + " Skipping ip route interface add to Linkable Snmp Node"); } else { routeIface.setNodeparentid(nodeParentId); routeIface.setSnmpiftype(getSnmpIfType(dbConn, nodeid, ifindex)); routeInterfaces.add(routeIface); } // save info to DB DbIpRouteInterfaceEntry iprouteInterfaceEntry = DbIpRouteInterfaceEntry .get(dbConn, nodeid, routedest.getHostAddress()); if (iprouteInterfaceEntry == null) { // Create a new entry iprouteInterfaceEntry = DbIpRouteInterfaceEntry.create( m_node.getNodeId(), routedest.getHostAddress()); } // update object iprouteInterfaceEntry.updateRouteMask(routemask.getHostAddress()); iprouteInterfaceEntry.updateRouteNextHop(nexthop.getHostAddress()); iprouteInterfaceEntry.updateIfIndex(ifindex); if (routemetric1 != -1) iprouteInterfaceEntry.updateRouteMetric1(routemetric1); if (routemetric2 != -1) iprouteInterfaceEntry.updateRouteMetric2(routemetric2); if (routemetric3 != -1) iprouteInterfaceEntry.updateRouteMetric3(routemetric3); if (routemetric4 != -1) iprouteInterfaceEntry.updateRouteMetric4(routemetric4); if (routemetric5 != -1) iprouteInterfaceEntry.updateRouteMetric5(routemetric5); if (routetype != -1) iprouteInterfaceEntry.updateRouteType(routetype); if (routeproto != -1) iprouteInterfaceEntry.updateRouteProto(routeproto); iprouteInterfaceEntry .updateStatus(DbAtInterfaceEntry.STATUS_ACTIVE); iprouteInterfaceEntry.set_lastpolltime(now); // store object in database iprouteInterfaceEntry.store(dbConn); } m_node.setRouteInterfaces(routeInterfaces); } // STARTS loop on vlans if (m_snmpcoll.hasVlanTable()) { if (log.isDebugEnabled()) log .debug("store: saving SnmpVlanCollection in DB"); ite = m_snmpcoll.getSnmpVlanCollections() .iterator(); while (ite.hasNext()) { SnmpVlanCollection snmpVlanColl = (SnmpVlanCollection) ite .next(); String vlanindex = snmpVlanColl.getVlanIndex(); int vlan = Integer.parseInt(vlanindex); String vlanname = snmpVlanColl.getVlanName(); if (log.isDebugEnabled()) log .debug("store: parsing VLAN " + vlanindex + " VLAN_NAME " + vlanname); if (snmpVlanColl.hasDot1dBase()) { if (log.isDebugEnabled()) log .debug("store: saving Dot1dBaseGroup in stpnode table"); Dot1dBaseGroup dod1db = (Dot1dBaseGroup) snmpVlanColl.getDot1dBase(); String baseBridgeAddress = dod1db.getBridgeAddress(); int basenumports = dod1db.getNumberOfPorts(); int bridgetype = dod1db.getBridgeType(); if (baseBridgeAddress == "000000000000") { log.warn("store: base bridge address " + baseBridgeAddress + " is invalid for ipaddress " ); } else { m_node.addBridgeIdentifier(baseBridgeAddress,vlanindex); DbStpNodeEntry dbStpNodeEntry = DbStpNodeEntry.get(dbConn, m_node.getNodeId(), vlan); if (dbStpNodeEntry == null) { // Create a new entry dbStpNodeEntry = DbStpNodeEntry.create(m_node .getNodeId(), vlan); } // update object dbStpNodeEntry.updateBaseBridgeAddress(baseBridgeAddress); dbStpNodeEntry.updateBaseNumPorts(basenumports); dbStpNodeEntry.updateBaseType(bridgetype); dbStpNodeEntry.updateBaseVlanName(vlanname); if (snmpVlanColl.hasDot1dStp()) { if (log.isDebugEnabled()) log .debug("store: adding Dot1dStpGroup in stpnode table"); Dot1dStpGroup dod1stp = (Dot1dStpGroup) snmpVlanColl .getDot1dStp(); int protospec = dod1stp.getStpProtocolSpecification(); int stppriority = dod1stp.getStpPriority(); String stpDesignatedRoot = dod1stp.getStpDesignatedRoot(); int stprootcost = dod1stp.getStpRootCost(); int stprootport = dod1stp.getStpRootPort(); if (stpDesignatedRoot != "0000000000000000") { m_node.setVlanStpRoot(vlanindex,stpDesignatedRoot); } dbStpNodeEntry.updateStpProtocolSpecification(protospec); dbStpNodeEntry.updateStpPriority(stppriority); dbStpNodeEntry.updateStpDesignatedRoot(stpDesignatedRoot); dbStpNodeEntry.updateStpRootCost(stprootcost); dbStpNodeEntry.updateStpRootPort(stprootport); } // store object in database dbStpNodeEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpNodeEntry.set_lastpolltime(now); dbStpNodeEntry.store(dbConn); if (snmpVlanColl.hasDot1dBasePortTable()) { Iterator sub_ite = snmpVlanColl.getDot1dBasePortTable() .getEntries().iterator(); if (log.isDebugEnabled()) log .debug("store: saving Dot1dBasePortTable in stpinterface table"); while (sub_ite.hasNext()) { Dot1dBasePortTableEntry dot1dbaseptentry = (Dot1dBasePortTableEntry) sub_ite .next(); int baseport = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_PORT); int ifindex = dot1dbaseptentry.getInt32(Dot1dBasePortTableEntry.BASE_IFINDEX); m_node.setIfIndexBridgePort(ifindex,baseport); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), baseport, vlan); if (dbStpIntEntry == null) { // Create a new entry dbStpIntEntry = DbStpInterfaceEntry.create( m_node.getNodeId(), baseport, vlan); } dbStpIntEntry.updateIfIndex(ifindex); dbStpIntEntry .updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } if (snmpVlanColl.hasDot1dStpPortTable()) { if (log.isDebugEnabled()) log .debug(" store: adding Dot1dStpPortTable in stpinterface table"); Iterator sub_ite = snmpVlanColl.getDot1dStpPortTable() .getEntries().iterator(); while (sub_ite.hasNext()) { Dot1dStpPortTableEntry dot1dstpptentry = (Dot1dStpPortTableEntry) sub_ite .next(); int stpport = dot1dstpptentry.getInt32(Dot1dStpPortTableEntry.STP_PORT); DbStpInterfaceEntry dbStpIntEntry = DbStpInterfaceEntry .get(dbConn, m_node.getNodeId(), stpport, vlan); if (dbStpIntEntry == null) { // Cannot create the object becouse must exists the dot1dbase // object!!!!! log .warn("store StpInterface: when storing STP info" + " for bridge node with nodeid " + m_node.getNodeId() + " bridgeport number " + stpport + " and vlan index " + vlanindex + " info not found in database, ERROR skipping....."); } else { int stpportstate = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_STATE); int stpportpathcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_PATH_COST); String stpPortDesignatedBridge = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_BRIDGE); String stpPortDesignatedRoot = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_ROOT); int stpportdesignatedcost = dot1dstpptentry .getInt32(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_COST); String stpPortDesignatedPort = dot1dstpptentry .getHexString(Dot1dStpPortTableEntry.STP_PORT_DESIGNATED_PORT); if (stpPortDesignatedBridge.equals("0000000000000000")) { log.warn("storeSnmpCollection: designated bridge is invalid not adding to discoveryLink"); } else if (stpPortDesignatedPort.equals("0000")) { log.warn("storeSnmpCollection: designated port is invalid not adding to discoveryLink"); } else { BridgeStpInterface stpIface = new BridgeStpInterface(stpport,vlanindex); stpIface.setStpPortDesignatedBridge(stpPortDesignatedBridge); stpIface.setStpPortDesignatedPort(stpPortDesignatedPort); m_node.addStpInterface(stpIface); } dbStpIntEntry.updateStpPortState(stpportstate); dbStpIntEntry.updateStpPortPathCost(stpportpathcost); dbStpIntEntry.updateStpportDesignatedBridge(stpPortDesignatedBridge); dbStpIntEntry.updateStpportDesignatedRoot(stpPortDesignatedRoot); dbStpIntEntry.updateStpPortDesignatedCost(stpportdesignatedcost); dbStpIntEntry.updateStpportDesignatedPort(stpPortDesignatedPort); dbStpIntEntry.updateStatus(DbStpNodeEntry.STATUS_ACTIVE); dbStpIntEntry.set_lastpolltime(now); dbStpIntEntry.store(dbConn); } } } if (snmpVlanColl.hasDot1dTpFdbTable()) { if (log.isDebugEnabled()) log .debug("store: parsing Dot1dTpFdbTable"); Iterator subite = snmpVlanColl.getDot1dFdbTable() .getEntries().iterator(); while (subite.hasNext()) { Dot1dTpFdbTableEntry dot1dfdbentry = (Dot1dTpFdbTableEntry) subite .next(); String curMacAddress = dot1dfdbentry .getHexString(Dot1dTpFdbTableEntry.FDB_ADDRESS); int fdbport = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_PORT); if (fdbport == 0) { if (log.isDebugEnabled()) log.debug("populateBridge: macaddress " + curMacAddress + " learned on invalid port " + fdbport + " . Skipping"); continue; } int curfdbstatus = dot1dfdbentry.getInt32(Dot1dTpFdbTableEntry.FDB_STATUS); if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_LEARNED) { m_node.addMacAddress(fdbport, curMacAddress, vlanindex); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found learned mac address " + curMacAddress + " on bridge port " + fdbport + " for VLAN " + snmpVlanColl.getVlanIndex()); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_SELF) { m_node.addBridgeIdentifier(curMacAddress); if (log.isDebugEnabled()) log .debug("storeSnmpCollection: found bridge identifier " + curMacAddress + " for VLAN " + snmpVlanColl.getVlanIndex() + " and bridge port " + fdbport); } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_INVALID) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has INVALID status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_MGMT) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has MGMT status on port " + fdbport + " . Skipping"); continue; } if (curfdbstatus == SNMP_DOT1D_FDB_STATUS_OTHER) { if (log.isDebugEnabled()) log.debug("storeSnmpCollection: macaddress " + curMacAddress + " has OTHER status on port " + fdbport + " . Skipping"); continue; } } } //now adding bridge identifier mac addresses of switch from snmpinterface setBridgeIdentifierFromSnmpInterface(dbConn); } } } } update(dbConn, now); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/50a9a2606036a09ba6174c4fd1ce90bb3a124039/DbEventWriter.java/clean/opennms-services/src/main/java/org/opennms/netmgt/linkd/DbEventWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 10461, 1291, 2532, 12, 1952, 30795, 16, 8159, 2037, 13, 1216, 6483, 16, 1082, 202, 4874, 29776, 288, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 10461, 1291, 2532, 12, 1952, 30795, 16, 8159, 2037, 13, 1216, 6483, 16, 1082, 202, 4874, 29776, 288, 202, 202, 4457, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, ...
public static PsiMethod findMethodBySuperSignature(final PsiClass aClass, MethodSignature methodSignature) { List<Pair<PsiMethod, PsiSubstitutor>> pairs = aClass.findMethodsAndTheirSubstitutorsByName(methodSignature.getName(), false);
public static PsiMethod findMethodBySuperSignature(final PsiClass aClass, MethodSignature methodSignature, final boolean checkBases) { List<Pair<PsiMethod, PsiSubstitutor>> pairs = aClass.findMethodsAndTheirSubstitutorsByName(methodSignature.getName(), checkBases);
public static PsiMethod findMethodBySuperSignature(final PsiClass aClass, MethodSignature methodSignature) { List<Pair<PsiMethod, PsiSubstitutor>> pairs = aClass.findMethodsAndTheirSubstitutorsByName(methodSignature.getName(), false); for (Pair<PsiMethod, PsiSubstitutor> pair : pairs) { PsiMethod method = pair.first; PsiSubstitutor substitutor = pair.second; MethodSignature foundMethodSignature = method.getSignature(substitutor); if (isSubsignature(methodSignature, foundMethodSignature)) return method; } return null; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/c4118540b926875162fcf22391a476bb4ab41d6a/MethodSignatureUtil.java/buggy/openapi/src/com/intellij/psi/util/MethodSignatureUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 453, 7722, 1305, 1104, 1305, 858, 8051, 5374, 12, 6385, 453, 7722, 797, 20148, 16, 2985, 5374, 707, 5374, 13, 288, 565, 987, 32, 4154, 32, 52, 7722, 1305, 16, 453, 7722, 1676...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 7722, 1305, 1104, 1305, 858, 8051, 5374, 12, 6385, 453, 7722, 797, 20148, 16, 2985, 5374, 707, 5374, 13, 288, 565, 987, 32, 4154, 32, 52, 7722, 1305, 16, 453, 7722, 1676...
tile = getToolkit().getImage("data/widgets/h_line.gif");
tile = getToolkit().getImage("data/widgets/h_line.gif");
private void setBackGround(){ Image tile = getToolkit().getImage("data/widgets/tile.gif"); PMUtil.setImage(tile, (Component) this); int b = BackGroundDrawer.TILING_BOTH; addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_HORIZONTAL | BackGroundDrawer.VALIGN_TOP; tile = getToolkit().getImage("data/widgets/h_line.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_HORIZONTAL | BackGroundDrawer.VALIGN_BOTTOM; tile = getToolkit().getImage("data/widgets/h_line.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_VERTICAL | BackGroundDrawer.HALIGN_LEFT; tile = getToolkit().getImage("data/widgets/v_line.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_VERTICAL | BackGroundDrawer.HALIGN_RIGHT; tile = getToolkit().getImage("data/widgets/v_line.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_TOP | BackGroundDrawer.HALIGN_LEFT; tile = getToolkit().getImage("data/widgets/tl_corner.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_BOTTOM | BackGroundDrawer.HALIGN_LEFT; tile = getToolkit().getImage("data/widgets/bl_corner.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_TOP | BackGroundDrawer.HALIGN_RIGHT; tile = getToolkit().getImage("data/widgets/tr_corner.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_BOTTOM | BackGroundDrawer.HALIGN_RIGHT; tile = getToolkit().getImage("data/widgets/br_corner.gif"); PMUtil.setImage(tile, (Component) this); addBgDrawer(new BackGroundDrawer (tile,b)); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/MechDisplay.java/clean/megamek/src/megamek/client/ui/AWT/MechDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 444, 2711, 43, 2260, 1435, 95, 3639, 3421, 4769, 273, 336, 6364, 8691, 7675, 588, 2040, 2932, 892, 19, 18148, 19, 15368, 18, 13905, 8863, 3639, 23544, 1304, 18, 542, 2040, 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, 565, 3238, 918, 444, 2711, 43, 2260, 1435, 95, 3639, 3421, 4769, 273, 336, 6364, 8691, 7675, 588, 2040, 2932, 892, 19, 18148, 19, 15368, 18, 13905, 8863, 3639, 23544, 1304, 18, 542, 2040, 12, ...
argument = (Connector.Argument)myArguments.get("name"); if (argument != null) { argument.setValue(address);
final Connector.Argument nameArg = (Connector.Argument)myArguments.get("name"); if (nameArg != null) { nameArg.setValue(address);
private VirtualMachine createVirtualMachineInt() throws ExecutionException { try { if (myArguments != null) { throw new IOException("DebugProcessImpl is already listening"); } String address = myConnection.getAddress(); if (myConnection.isServerMode()) { ListeningConnector connector = (ListeningConnector)findConnector( myConnection.isUseSockets() ? SOCKET_LISTENING_CONNECTOR_NAME : SHMEM_LISTENING_CONNECTOR_NAME); if (connector == null) { throw new CantRunException("Cannot listen using " + (!myConnection.isUseSockets() ? "shared memory" : "socket") + " transport: required connector not found. Check your JDK installation."); } myArguments = connector.defaultArguments(); if (myArguments == null) { throw new CantRunException("The port to listen at unspecified"); } if (address == null) { throw new CantRunException("The port to listen at unspecified"); } // negative port number means the caller leaves to debugger to decide at which hport to listen Connector.Argument portArg = myConnection.isUseSockets() ? (Connector.Argument)myArguments.get("port") : (Connector.Argument)myArguments.get("name"); if (portArg != null) { portArg.setValue(address); } connector.startListening(myArguments); myDebugProcessDispatcher.getMulticaster().connectorIsReady(); try { return connector.accept(myArguments); } finally { if(myArguments != null) { try { connector.stopListening(myArguments); } catch (IllegalArgumentException e) { // ignored } } } } else { // is client mode, should attach to already running process AttachingConnector connector = (AttachingConnector)findConnector( myConnection.isUseSockets() ? SOCKET_ATTACHING_CONNECTOR_NAME : SHMEM_ATTACHING_CONNECTOR_NAME ); if (connector == null) { throw new CantRunException( "Cannot connect using " + (myConnection.isUseSockets() ? "socket" : "shared memory") + " transport: required connector not found. Check your JDK installation." ); } myArguments = connector.defaultArguments(); Connector.Argument argument; if (myConnection.isUseSockets()) { argument = (Connector.Argument)myArguments.get("hostname"); if (argument != null && myConnection.getHostName() != null) { argument.setValue(myConnection.getHostName()); } if (address == null) { throw new CantRunException("The port to attach to unspecified"); } argument = (Connector.Argument)myArguments.get("port"); if (argument != null) { argument.setValue(address); } } else { if (address == null) { throw new CantRunException("Shared memory address unspecified"); } argument = (Connector.Argument)myArguments.get("name"); if (argument != null) { argument.setValue(address); } } myDebugProcessDispatcher.getMulticaster().connectorIsReady(); try { if(SOCKET_ATTACHING_CONNECTOR_NAME.equals(connector.name()) && Patches.SUN_BUG_338675) { String portString = myConnection.getAddress(); String hostString = myConnection.getHostName(); if (hostString == null || hostString.length() == 0) { hostString = "localhost"; } hostString = hostString + ":"; final TransportServiceWrapper transportServiceWrapper = TransportServiceWrapper.getTransportService(connector.transport()); myConnectionService = transportServiceWrapper.attach(hostString + portString); return myConnectionService.createVirtualMachine(); } else { return connector.attach(myArguments); } } catch (IllegalArgumentException e) { throw new CantRunException("Connector myArguments invalid : " + e.getMessage()); } } } catch (IOException e) { throw new ExecutionException(createConnectionStatusMessage(processError(e), myConnection), e); } catch (IllegalConnectorArgumentsException e) { throw new ExecutionException(createConnectionStatusMessage(processError(e), myConnection), e); } finally { myArguments = null; myConnectionService = null; } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/39604bf9d8657a95667e465a98de09bb9d4c3470/DebugProcessImpl.java/clean/source/com/intellij/debugger/engine/DebugProcessImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 18452, 752, 27454, 1702, 1435, 1216, 20205, 288, 565, 775, 288, 1377, 309, 261, 4811, 4628, 480, 446, 13, 288, 3639, 604, 394, 1860, 2932, 2829, 2227, 2828, 353, 1818, 13895, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18452, 752, 27454, 1702, 1435, 1216, 20205, 288, 565, 775, 288, 1377, 309, 261, 4811, 4628, 480, 446, 13, 288, 3639, 604, 394, 1860, 2932, 2829, 2227, 2828, 353, 1818, 13895, 8863, ...
addColumn(ColumnDescriptor.Name); addColumn(ColumnDescriptor.ClassVisibility); addColumn(ColumnDescriptor.ClassKeyword); addColumn(ColumnDescriptor.Extends); addColumn(ColumnDescriptor.MStereotype); }
addColumn(ColumnDescriptor.Name); addColumn(ColumnDescriptor.ClassVisibility); addColumn(ColumnDescriptor.ClassKeyword); addColumn(ColumnDescriptor.Extends); addColumn(ColumnDescriptor.MStereotype); }
public void initColumns() { addColumn(ColumnDescriptor.Name); addColumn(ColumnDescriptor.ClassVisibility); addColumn(ColumnDescriptor.ClassKeyword); addColumn(ColumnDescriptor.Extends); addColumn(ColumnDescriptor.MStereotype); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/TableModelUseCaseByProps.java/clean/src_new/org/argouml/uml/diagram/use_case/TableModelUseCaseByProps.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 3380, 1435, 288, 565, 10871, 12, 1494, 3187, 18, 461, 1769, 565, 10871, 12, 1494, 3187, 18, 797, 10135, 1769, 565, 10871, 12, 1494, 3187, 18, 797, 8736, 1769, 565, 10871,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1208, 3380, 1435, 288, 565, 10871, 12, 1494, 3187, 18, 461, 1769, 565, 10871, 12, 1494, 3187, 18, 797, 10135, 1769, 565, 10871, 12, 1494, 3187, 18, 797, 8736, 1769, 565, 10871,...
synchronized(this) { sendHandshakeTime = now; }
setPeerNodeStatus(now);
public void disconnected() { long now = System.currentTimeMillis(); Logger.normal(this, "Disconnected "+this); node.usm.onDisconnect(this); node.peers.disconnected(this); synchronized(this) { // Force renegotiation. isConnected = false; isRoutable = false; completedHandshake = false; setPeerNodeStatus(now); // Prevent sending packets to the node until that happens. if(currentTracker != null) currentTracker.disconnected(); if(previousTracker != null) previousTracker.disconnected(); if(unverifiedTracker != null) unverifiedTracker.disconnected(); // DO NOT clear trackers, so can still receive. } node.lm.lostOrRestartedNode(this); synchronized(this) { sendHandshakeTime = now; } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/8de4b1cd60a548b4d18488fb67f53e39abfa9b77/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17853, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 26303, 13773, 2211, 1769, 3639, 756, 18, 407, 81, 18, 265, 18895,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17853, 1435, 288, 3639, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 3639, 4242, 18, 6130, 12, 2211, 16, 315, 26303, 13773, 2211, 1769, 3639, 756, 18, 407, 81, 18, 265, 18895,...
return paramString();
return this.getClass().getName() + "[" + paramString() + "]";
public String toString() { return paramString(); }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/14a46ad9e70e8baeb4a720508e0a04f9df8b41f5/Component.java/buggy/libjava/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 225, 288, 565, 327, 333, 18, 588, 797, 7675, 17994, 1435, 397, 13626, 397, 579, 780, 1435, 397, 9870, 31, 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, 514, 1762, 1435, 225, 288, 565, 327, 333, 18, 588, 797, 7675, 17994, 1435, 397, 13626, 397, 579, 780, 1435, 397, 9870, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -...
public void setCurrentChainNumber( int newCurrentChain,boolean getNewFeaturesFlag) { structurePanelListener.setCurrentChainNumber(newCurrentChain); statusPanel.setCurrentChainNumber(newCurrentChain); Chain chain = getChain(newCurrentChain) ; currentChain = chain; currentChainNumber = newCurrentChain ; if ( chain == null) return ; String sp_id = chain.getSwissprotId() ; Annotation anno = chain.getAnnotation(); boolean annotationFound = false ; if ( ( anno != Annotation.EMPTY_ANNOTATION) && ( anno != null )){ if ( anno.containsProperty("description")){ statusPanel.setPDBDescription((String)anno.getProperty("description")); annotationFound = true ; } } if ( ! annotationFound ) { statusPanel.setPDBDescription("no chain description"); } statusPanel.setSP(sp_id); if (sp_id != null){ upMenu.setEnabled(true); dastyMenu.setEnabled(true); proviewMenu.setEnabled(true); } else { upMenu.setEnabled(false); dastyMenu.setEnabled(false); proviewMenu.setEnabled(false); logger.info("no UniProt sequence found for"+chain.getName()); } dascanv.setChain(chain); if(getNewFeaturesFlag){ getNewFeatures(sp_id) ; } /* String mem_id = makeFeatureMemoryCode(sp_id); ArrayList tmpfeat = getFeaturesFromMemory(mem_id) ; if ( tmpfeat.size() == 0 ) { if ( isLoading()) { return ; } getNewFeatures(sp_id) ; } else { logger.finest("setting features for seq " + sp_id + " features size: " + tmpfeat.size()); features = tmpfeat ; dascanv.setSeqLength(chain.getLength()); dascanv.setChain(chain); seqTextPane.setChain(chain,currentChainNumber); } */
public void setCurrentChainNumber( int newCurrentChain) { setCurrentChainNumber(newCurrentChain,true);
public void setCurrentChainNumber( int newCurrentChain,boolean getNewFeaturesFlag) { //logger.info("setCurrentChainNumber " + newCurrentChain + " " + getNewFeaturesFlag); structurePanelListener.setCurrentChainNumber(newCurrentChain); statusPanel.setCurrentChainNumber(newCurrentChain); //TODO move this functionality into other class // move to SpiceDasServerConfigListener ??? // update features to be displayed ... Chain chain = getChain(newCurrentChain) ; currentChain = chain; currentChainNumber = newCurrentChain ; if ( chain == null) return ; String sp_id = chain.getSwissprotId() ; //logger.info("SP_ID "+sp_id); //logger.info("getting annotation"); // display pdb annotation Annotation anno = chain.getAnnotation(); boolean annotationFound = false ; //logger.info("chain annotation " + anno); if ( ( anno != Annotation.EMPTY_ANNOTATION) && ( anno != null )){ if ( anno.containsProperty("description")){ statusPanel.setPDBDescription((String)anno.getProperty("description")); //logger.info("PDB description of chain: "+(String)anno.getProperty("description") ); annotationFound = true ; } } if ( ! annotationFound ) { statusPanel.setPDBDescription("no chain description"); //logger.info("not chain data found :-("); } statusPanel.setSP(sp_id); if (sp_id != null){ upMenu.setEnabled(true); dastyMenu.setEnabled(true); proviewMenu.setEnabled(true); } else { upMenu.setEnabled(false); dastyMenu.setEnabled(false); proviewMenu.setEnabled(false); logger.info("no UniProt sequence found for"+chain.getName()); } dascanv.setChain(chain); if(getNewFeaturesFlag){ //logger.info("getting new features"); getNewFeatures(sp_id) ; } /* //TODO: re-enable feature caching ... String mem_id = makeFeatureMemoryCode(sp_id); ArrayList tmpfeat = getFeaturesFromMemory(mem_id) ; if ( tmpfeat.size() == 0 ) { if ( isLoading()) { //logger.log(Level.WARNING,"already loading data, please wait"); return ; } getNewFeatures(sp_id) ; } else { logger.finest("setting features for seq " + sp_id + " features size: " + tmpfeat.size()); //tures(sp_id,tmpfeat); //features.clear() ; features = tmpfeat ; //SeqFeatureCanvas dascanv = daspanel.getCanv(); dascanv.setSeqLength(chain.getLength()); dascanv.setChain(chain); //dascanv.setChain(chain,currentChainNumber) ; //dascanv.setBackground(Color.black) ; seqTextPane.setChain(chain,currentChainNumber); //updateDisplays(); } */ }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/03de325639b2077e5af5487217d2ee8707472d74/SpiceApplication.java/buggy/src/org/biojava/spice/SpiceApplication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12589, 3893, 1854, 12, 509, 394, 3935, 3893, 16, 6494, 12654, 8696, 4678, 13, 288, 3639, 368, 4901, 18, 1376, 2932, 542, 3935, 3893, 1854, 315, 397, 394, 3935, 3893, 397, 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, 12589, 3893, 1854, 12, 509, 394, 3935, 3893, 16, 6494, 12654, 8696, 4678, 13, 288, 3639, 368, 4901, 18, 1376, 2932, 542, 3935, 3893, 1854, 315, 397, 394, 3935, 3893, 397, 315, ...
noOfPoolsCreated++; log.debug("Pool no " + noOfPoolsCreated + " created");
public ConnectionPoolForNonPoolingDriver( String driverClassName, String dbUrl, String userName, String password, int maxActiveConnections ) throws Exception { BasicDataSource basicDataSource = new BasicDataSource(); basicDataSource.setDriverClassName( driverClassName ); basicDataSource.setUsername( userName ); basicDataSource.setPassword( password ); basicDataSource.setUrl( dbUrl ); basicDataSource.setMaxActive( maxActiveConnections ); basicDataSource.setMaxIdle( maxActiveConnections ); basicDataSource.setPoolPreparedStatements( true ); dataSource = basicDataSource; noOfPoolsCreated++; log.debug("Pool no " + noOfPoolsCreated + " created"); Connection connection = getConnection(); logDatabaseData( connection ); connection.close(); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/de6a4aa076d00bce3af1543d093472bb5eb8b572/ConnectionPoolForNonPoolingDriver.java/clean/server/src/imcode/server/db/ConnectionPoolForNonPoolingDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4050, 2864, 1290, 3989, 2864, 310, 4668, 12, 514, 3419, 3834, 16, 514, 1319, 1489, 16, 514, 12065, 16, 514, 2201, 16, 4766, 2868, 509, 943, 3896, 9314, 262, 1216, 1185, 288, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4050, 2864, 1290, 3989, 2864, 310, 4668, 12, 514, 3419, 3834, 16, 514, 1319, 1489, 16, 514, 12065, 16, 514, 2201, 16, 4766, 2868, 509, 943, 3896, 9314, 262, 1216, 1185, 288, 3639, ...
return this.wrappedClient.put(resourceUri, input);
if(this.wrappedClient != null) { return this.wrappedClient.put(resourceUri, input); } else { return null; }
public Call put(String resourceUri, Representation input) { return this.wrappedClient.put(resourceUri, input); }
14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/36f389549530f3f39b00b0074cdbb0113898d6dc/DefaultClient.java/buggy/plugins/internal/org.restlet/src/org/restlet/connector/DefaultClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 3049, 1378, 12, 780, 1058, 3006, 16, 868, 10364, 810, 13, 282, 288, 565, 202, 430, 12, 2211, 18, 18704, 1227, 480, 446, 13, 288, 327, 333, 18, 18704, 1227, 18, 458, 12, 3146, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 3049, 1378, 12, 780, 1058, 3006, 16, 868, 10364, 810, 13, 282, 288, 565, 202, 430, 12, 2211, 18, 18704, 1227, 480, 446, 13, 288, 327, 333, 18, 18704, 1227, 18, 458, 12, 3146, 30...
public char extract_char()
public char extract_char ()
public char extract_char() { if( typeCode.kind().value() != TCKind._tk_char ) tc_error("Cannot extract char!"); return ((Character)value).charValue(); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b1dcf075fcf079201e3adb82863b59f6eecadb6e/Any.java/clean/src/org/jacorb/orb/Any.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1149, 2608, 67, 3001, 1832, 377, 288, 3639, 309, 12, 618, 1085, 18, 9224, 7675, 1132, 1435, 480, 399, 3507, 728, 6315, 16099, 67, 3001, 262, 5411, 1715, 67, 1636, 2932, 4515, 2608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 1149, 2608, 67, 3001, 1832, 377, 288, 3639, 309, 12, 618, 1085, 18, 9224, 7675, 1132, 1435, 480, 399, 3507, 728, 6315, 16099, 67, 3001, 262, 5411, 1715, 67, 1636, 2932, 4515, 2608, ...
if (!staticMethod && dangerousToStoreIntoField && seen == PUTFIELD && MutableStaticFields.mutableSignature(getSigConstantOperand()) ) { bugReporter.reportBug(new BugInstance("EI_EXPOSE_REP2", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(getClassConstantOperand(), getNameConstantOperand(), getSigConstantOperand(), true) .addSourceLine(this)); /* System.out.println("Store of parameter " + r +"/" + parameterCount + " into field of type " + sigConstant + " in " + betterMethodName);
if (!staticMethod && dangerousToStoreIntoField && seen == PUTFIELD && MutableStaticFields.mutableSignature(getSigConstantOperand())) {
public void sawOpcode(int seen) { assert check; /* System.out.println("Saw " + PC + ": " + OPCODE_NAMES[seen] + " " + thisOnTOS + " " + fieldOnTOS ); */ if (staticMethod && dangerousToStoreIntoField && seen == PUTSTATIC && MutableStaticFields.mutableSignature(getSigConstantOperand()) ) { bugReporter.reportBug(new BugInstance("EI_EXPOSE_STATIC_REP2", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(getClassConstantOperand(), getNameConstantOperand(), getSigConstantOperand(), true) .addSourceLine(this)); } if (!staticMethod && dangerousToStoreIntoField && seen == PUTFIELD && MutableStaticFields.mutableSignature(getSigConstantOperand()) ) { bugReporter.reportBug(new BugInstance("EI_EXPOSE_REP2", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(getClassConstantOperand(), getNameConstantOperand(), getSigConstantOperand(), true) .addSourceLine(this)); /* System.out.println("Store of parameter " + r +"/" + parameterCount + " into field of type " + sigConstant + " in " + betterMethodName); bugReporter.reportBug(new BugInstance("EI_EXPOSE_REP2", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(betterClassConstant, nameConstant, betterSigConstant, false) .addSourceLine(this)); ` */ } dangerousToStoreIntoField = false; int reg = -1; // this value should never be seen checkStore: { switch(seen) { case ALOAD_0: reg = 0; break; case ALOAD_1: reg = 1; break; case ALOAD_2: reg = 2; break; case ALOAD_3: reg = 3; break; case ALOAD: reg = getRegisterOperand(); break; default: break checkStore; } if (reg < parameterCount) timesRead[reg]++; } if (thisOnTOS && !staticMethod) { switch(seen) { case ALOAD_1: case ALOAD_2: case ALOAD_3: case ALOAD: if (reg < parameterCount ) { //r = reg; dangerousToStoreIntoField = true; // System.out.println("Found dangerous value from parameter " + reg); } default: } } else if (staticMethod) { switch(seen) { case ALOAD_0: case ALOAD_1: case ALOAD_2: case ALOAD_3: case ALOAD: if (reg < parameterCount ) { //r = reg; dangerousToStoreIntoField = true; } default: } } if (seen == ALOAD_0 && !staticMethod) { thisOnTOS = true; fieldOnTOS = false; return; } if (thisOnTOS && seen == GETFIELD && getClassConstantOperand().equals(getClassName())) { fieldOnTOS = true; thisOnTOS = false; nameOnStack = getNameConstantOperand(); classNameOnStack = getDottedClassConstantOperand(); sigOnStack = getSigConstantOperand(); fieldIsStatic = false; // System.out.println("Saw getfield"); return; } if (seen == GETSTATIC && getClassConstantOperand().equals(getClassName())) { fieldOnTOS = true; thisOnTOS = false; nameOnStack = getNameConstantOperand(); classNameOnStack = getDottedClassConstantOperand(); sigOnStack = getSigConstantOperand(); fieldIsStatic = true; return; } thisOnTOS = false; if (check && fieldOnTOS && seen == ARETURN /* && !sigOnStack.equals("Ljava/lang/String;") && sigOnStack.indexOf("Exception") == -1 && sigOnStack.indexOf("[") >= 0 */ && nameOnStack.indexOf("EMPTY") == -1 && MutableStaticFields.mutableSignature(sigOnStack) ) { bugReporter.reportBug(new BugInstance(staticMethod ? "MS_EXPOSE_REP" : "EI_EXPOSE_REP", NORMAL_PRIORITY) .addClassAndMethod(this) .addField(classNameOnStack, nameOnStack, sigOnStack, fieldIsStatic) .addSourceLine(this)); } fieldOnTOS = false; thisOnTOS = false; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/FindReturnRef.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindReturnRef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19821, 22808, 12, 474, 5881, 13, 288, 202, 11231, 866, 31, 202, 20308, 202, 3163, 18, 659, 18, 8222, 2932, 55, 2219, 315, 397, 26300, 397, 6398, 315, 397, 531, 3513, 2712, 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, 918, 19821, 22808, 12, 474, 5881, 13, 288, 202, 11231, 866, 31, 202, 20308, 202, 3163, 18, 659, 18, 8222, 2932, 55, 2219, 315, 397, 26300, 397, 6398, 315, 397, 531, 3513, 2712, 67...
Dimension newPrefSize = super.getPreferredSize(MapMode.DPtoLP(w), MapMode.DPtoLP(h)); Dimension defaultSize = new Dimension(MapMode.DPtoLP(100),MapMode.DPtoLP(100)); newPrefSize.union(defaultSize);
Dimension newPrefSize = super.getPreferredSize(w, h); newPrefSize.union(prefSize);
public Dimension getPreferredSize(int w, int h) { Dimension newPrefSize = super.getPreferredSize(MapMode.DPtoLP(w), MapMode.DPtoLP(h)); Dimension defaultSize = new Dimension(MapMode.DPtoLP(100),MapMode.DPtoLP(100)); newPrefSize.union(defaultSize); return newPrefSize; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/adc1102179d667e4a670bfc5711892726a23a343/LogicFlowFigure.java/buggy/org.eclipse.gmf.runtime/examples/org.eclipse.gmf.examples.runtime.diagram.logic/src/org/eclipse/gmf/examples/runtime/diagram/logic/internal/figures/LogicFlowFigure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13037, 12822, 4193, 1225, 12, 474, 341, 16, 509, 366, 13, 288, 202, 202, 8611, 394, 23218, 1225, 273, 2240, 18, 588, 16028, 1225, 12, 863, 2309, 18, 8640, 869, 14461, 12, 91, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13037, 12822, 4193, 1225, 12, 474, 341, 16, 509, 366, 13, 288, 202, 202, 8611, 394, 23218, 1225, 273, 2240, 18, 588, 16028, 1225, 12, 863, 2309, 18, 8640, 869, 14461, 12, 91, ...
IScanner scanner = ParserFactory.createScanner( new InputStreamReader( fileIn ), name, new ScannerInfo(), ParserMode.COMPLETE_PARSE, ParserLanguage.CPP, requestor, new NullLogService() );
IScanner scanner = ParserFactory.createScanner( new InputStreamReader( fileIn ), fullPathName, new ScannerInfo(), ParserMode.COMPLETE_PARSE, ParserLanguage.CPP, requestor, new NullLogService() );
public void testParseOfAndrewsFile() throws Exception { ISourceElementRequestor requestor = new NullSourceElementRequestor(); IScanner scanner = ParserFactory.createScanner( new InputStreamReader( fileIn ), name, new ScannerInfo(), ParserMode.COMPLETE_PARSE, ParserLanguage.CPP, requestor, new NullLogService() ); IParser parser = ParserFactory.createParser( scanner, requestor, ParserMode.COMPLETE_PARSE, ParserLanguage.CPP, null ); assertTrue( parser.parse() ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0fbb671b398df903944a4667b9223140f4ca0727/ParseTestOnSearchFiles.java/clean/core/org.eclipse.cdt.core.tests/search/org/eclipse/cdt/core/search/tests/ParseTestOnSearchFiles.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3201, 951, 1876, 266, 4749, 812, 1435, 1216, 1185, 202, 95, 202, 202, 45, 1830, 1046, 691, 280, 590, 280, 273, 394, 4112, 1830, 1046, 691, 280, 5621, 202, 202, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3201, 951, 1876, 266, 4749, 812, 1435, 1216, 1185, 202, 95, 202, 202, 45, 1830, 1046, 691, 280, 590, 280, 273, 394, 4112, 1830, 1046, 691, 280, 5621, 202, 202, 45, ...
} }
} while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 61 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } } }
static private final int jjMoveNfa_0(int startState, int curPos) { int[] nextStates; int startsAt = 0; jjnewStateCnt = 61; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch (jjstateSet[--i]) { case 0: if ((0xfffffffbffffdbffL & l) != 0L) { if (kind > 21) kind = 21; } else if (curChar == 34) jjCheckNAddTwoStates(27, 28); if ((0x3ff081800000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(0, 2); } else if (curChar == 39) jjstateSet[jjnewStateCnt++] = 30; else if (curChar == 46) jjCheckNAdd(5); else if (curChar == 45) jjstateSet[jjnewStateCnt++] = 1; if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(3, 9); if ((0x3fe000000000000L & l) != 0L) { if (kind > 4) kind = 4; jjCheckNAddTwoStates(2, 3); } else if (curChar == 48) { if (kind > 4) kind = 4; jjCheckNAddStates(10, 12); } break; case 1: if ((0x3fe000000000000L & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAddTwoStates(2, 3); break; case 2: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAddTwoStates(2, 3); break; case 4: if (curChar == 46) jjCheckNAdd(5); break; case 5: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddStates(13, 15); break; case 7: if ((0x280000000000L & l) != 0L) jjCheckNAdd(8); break; case 8: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(8, 9); break; case 26: if (curChar == 34) jjCheckNAddTwoStates(27, 28); break; case 27: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddTwoStates(27, 28); break; case 28: if (curChar == 34 && kind > 11) kind = 11; break; case 29: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 30; break; case 30: if ((0xfffffffbffffdbffL & l) != 0L) jjstateSet[jjnewStateCnt++] = 31; break; case 31: if (curChar == 39 && kind > 12) kind = 12; break; case 32: if ((0xfffffffbffffdbffL & l) != 0L && kind > 21) kind = 21; break; case 34: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 22) kind = 22; jjstateSet[jjnewStateCnt++] = 34; break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(3, 9); break; case 36: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(36, 37); break; case 37: if (curChar != 46) break; if (kind > 7) kind = 7; jjCheckNAddStates(16, 18); break; case 38: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddStates(16, 18); break; case 40: if ((0x280000000000L & l) != 0L) jjCheckNAdd(41); break; case 41: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 9); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 44: if ((0x280000000000L & l) != 0L) jjCheckNAdd(45); break; case 45: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(45, 9); break; case 46: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(19, 21); break; case 48: if ((0x280000000000L & l) != 0L) jjCheckNAdd(49); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 9); break; case 50: if (curChar != 48) break; if (kind > 4) kind = 4; jjCheckNAddStates(10, 12); break; case 52: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjAddStates(22, 23); break; case 54: if ((0xff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(54, 55); break; case 56: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(0, 2); break; case 57: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(57, 58); break; case 58: if (curChar == 46) jjCheckNAdd(59); break; case 59: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(58, 59); break; case 60: if ((0x3ff081800000000L & l) == 0L) break; if (kind > 24) kind = 24; jjCheckNAdd(60); break; default: break; } } while (i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch (jjstateSet[--i]) { case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 21) kind = 21; } if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(0, 2); } else if (curChar == 64) jjCheckNAdd(34); if (curChar == 70) jjstateSet[jjnewStateCnt++] = 24; else if (curChar == 84) jjstateSet[jjnewStateCnt++] = 20; else if (curChar == 102) jjstateSet[jjnewStateCnt++] = 16; else if (curChar == 116) jjstateSet[jjnewStateCnt++] = 12; break; case 3: if ((0x100000001000L & l) != 0L && kind > 4) kind = 4; break; case 6: if ((0x2000000020L & l) != 0L) jjAddStates(24, 25); break; case 9: if ((0x5000000050L & l) != 0L && kind > 7) kind = 7; break; case 10: if (curChar == 101 && kind > 10) kind = 10; break; case 11: if (curChar == 117) jjCheckNAdd(10); break; case 12: if (curChar == 114) jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 116) jjstateSet[jjnewStateCnt++] = 12; break; case 14: if (curChar == 115) jjCheckNAdd(10); break; case 15: if (curChar == 108) jjstateSet[jjnewStateCnt++] = 14; break; case 16: if (curChar == 97) jjstateSet[jjnewStateCnt++] = 15; break; case 17: if (curChar == 102) jjstateSet[jjnewStateCnt++] = 16; break; case 18: if (curChar == 69 && kind > 10) kind = 10; break; case 19: if (curChar == 85) jjCheckNAdd(18); break; case 20: if (curChar == 82) jjstateSet[jjnewStateCnt++] = 19; break; case 21: if (curChar == 84) jjstateSet[jjnewStateCnt++] = 20; break; case 22: if (curChar == 83) jjCheckNAdd(18); break; case 23: if (curChar == 76) jjstateSet[jjnewStateCnt++] = 22; break; case 24: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 23; break; case 25: if (curChar == 70) jjstateSet[jjnewStateCnt++] = 24; break; case 27: if ((0xffffffffefffffffL & l) != 0L) jjAddStates(26, 27); break; case 30: if ((0xffffffffefffffffL & l) != 0L) jjstateSet[jjnewStateCnt++] = 31; break; case 32: if ((0xffffffffefffffffL & l) != 0L && kind > 21) kind = 21; break; case 33: if (curChar == 64) jjCheckNAdd(34); break; case 34: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 22) kind = 22; jjCheckNAdd(34); break; case 39: if ((0x2000000020L & l) != 0L) jjAddStates(28, 29); break; case 43: if ((0x2000000020L & l) != 0L) jjAddStates(30, 31); break; case 47: if ((0x2000000020L & l) != 0L) jjAddStates(32, 33); break; case 51: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(52); break; case 52: if ((0x7e0000007eL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(52, 53); break; case 53: if ((0x100000001000L & l) != 0L && kind > 5) kind = 5; break; case 55: if ((0x100000001000L & l) != 0L && kind > 6) kind = 6; break; case 56: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(0, 2); break; case 57: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(57, 58); break; case 59: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddTwoStates(58, 59); break; case 60: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 24) kind = 24; jjCheckNAdd(60); break; default: break; } } while (i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch (jjstateSet[--i]) { case 0: if ((jjbitVec0[i2] & l2) != 0L && kind > 21) kind = 21; break; case 27: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(26, 27); break; case 30: if ((jjbitVec0[i2] & l2) != 0L) jjstateSet[jjnewStateCnt++] = 31; break; default: break; } } while (i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 61 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch (java.io.IOException e) { return curPos; } } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/3cbef97c5dee07422d7e9cdf6b2f9304448a9eee/AnnotationParserTokenManager.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/annotation/expression/ast/AnnotationParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 13, 288, 3639, 509, 8526, 1024, 7629, 31, 3639, 509, 2542, 861, 273, 374, 31, 3639, 10684, 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, 760, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 13, 288, 3639, 509, 8526, 1024, 7629, 31, 3639, 509, 2542, 861, 273, 374, 31, 3639, 10684, 2...
if (mEntries.size() == 0) return "";
public String toString() { if (mEntries.size() == 0) return ""; Metadata meta = new Metadata(); meta.put(Metadata.FN_NODES, mCache.exportNodes(trimParticipants())); boolean trimmed = false; ListIterator lit; for (lit = mEntries.listIterator(mEntries.size()); lit.hasPrevious(); ) { CacheNode node = ((ListEntry) lit.previous()).address; if (node != null && !node.first) { trimmed = true; break; } } if (trimmed) lit.next(); if (trimmed || mFirst != null) { meta.put(Metadata.FN_FIRST, getEarliest().exportEntry()); int elided = mElided + (trimmed ? lit.previousIndex() : 0); meta.put(Metadata.FN_ELIDED, elided); } MetadataList entries = new MetadataList(); for (int index = 0; lit.hasNext(); index++) entries.add(((ListEntry) lit.next()).exportEntry()); meta.put(Metadata.FN_ENTRIES, entries); return meta.toString(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/596ce0d7c062c13b7655937418ccce2b30b42165/SenderList.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/SenderList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 261, 81, 5400, 18, 1467, 1435, 422, 374, 13, 5411, 327, 1408, 31, 3639, 6912, 2191, 273, 394, 6912, 5621, 3639, 2191, 18, 458, 12, 2277, 18, 19793...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 261, 81, 5400, 18, 1467, 1435, 422, 374, 13, 5411, 327, 1408, 31, 3639, 6912, 2191, 273, 394, 6912, 5621, 3639, 2191, 18, 458, 12, 2277, 18, 19793...
params.add(OptionHandler.OPTION_PREFIX + FileBasedDatabaseConnection.INPUT_P); params.add(input);
params.add(OptionHandler.OPTION_PREFIX + FileBasedDatabaseConnection.INPUT_P); params.add(input);
public void runCOPAC() { if(output == null) { throw new IllegalArgumentException("Parameter " + AbstractWrapper.OUTPUT_P + " is not set!"); } ArrayList<String> params = new ArrayList<String>(); for(String s : remainingParams) { params.add(s); } params.add(OptionHandler.OPTION_PREFIX + KDDTask.ALGORITHM_P); params.add(COPAC.class.getName()); params.add(OptionHandler.OPTION_PREFIX + COPAC.PARTITION_ALGORITHM_P); params.add(DBSCAN.class.getName()); params.add(OptionHandler.OPTION_PREFIX + DBSCAN.DISTANCE_FUNCTION_P); params.add(LocallyWeightedDistanceFunction.class.getName()); params.add(OptionHandler.OPTION_PREFIX + COPAC.PREPROCESSOR_P); params.add(KnnQueryBasedCorrelationDimensionPreprocessor.class.getName()); params.add(OptionHandler.OPTION_PREFIX + DBSCAN.EPSILON_P); params.add(epsilon); params.add(OptionHandler.OPTION_PREFIX + DBSCAN.MINPTS_P); params.add(minpts); params.add(OptionHandler.OPTION_PREFIX + KnnQueryBasedCorrelationDimensionPreprocessor.K_P); params.add(minpts); params.add(OptionHandler.OPTION_PREFIX + KnnQueryBasedCorrelationDimensionPreprocessor.ALPHA_P); params.add("" + 0.99); // normalization params.add(OptionHandler.OPTION_PREFIX + KDDTask.NORMALIZATION_P); params.add(AttributeWiseDoubleVectorNormalization.class.getName()); params.add(OptionHandler.OPTION_PREFIX + KDDTask.NORMALIZATION_UNDO_F); params.add(OptionHandler.OPTION_PREFIX + FileBasedDatabaseConnection.INPUT_P); params.add(input); params.add(OptionHandler.OPTION_PREFIX + KDDTask.OUTPUT_P); params.add(output); if(time) { params.add(OptionHandler.OPTION_PREFIX + AbstractAlgorithm.TIME_F); } if(verbose) { params.add(OptionHandler.OPTION_PREFIX + AbstractAlgorithm.VERBOSE_F); params.add(OptionHandler.OPTION_PREFIX + AbstractAlgorithm.VERBOSE_F); params.add(OptionHandler.OPTION_PREFIX + AbstractAlgorithm.VERBOSE_F); } KDDTask task = new KDDTask(); task.setParameters(params.toArray(new String[params.size()])); task.run(); }
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/5eb6856b16e57219039a82fa3669be5754385e04/COPACWrapper.java/clean/src/de/lmu/ifi/dbs/wrapper/COPACWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 39, 3665, 2226, 1435, 565, 288, 3639, 309, 12, 2844, 422, 446, 13, 3639, 288, 5411, 604, 394, 2754, 2932, 1662, 315, 397, 4115, 3611, 18, 15527, 67, 52, 397, 315, 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, 1071, 918, 1086, 39, 3665, 2226, 1435, 565, 288, 3639, 309, 12, 2844, 422, 446, 13, 3639, 288, 5411, 604, 394, 2754, 2932, 1662, 315, 397, 4115, 3611, 18, 15527, 67, 52, 397, 315, 353, ...
public static int cmpEquivFold(char[] s1, int s1Start,int s1Limit, char[] s2, int s2Start,int s2Limit, int options) { int start1, start2, limit1, limit2; char[] cSource1, cSource2; cSource1 = s1; cSource2 = s2; int length; CmpEquivLevel[] stack1 = new CmpEquivLevel[]{ new CmpEquivLevel(), new CmpEquivLevel() }; CmpEquivLevel[] stack2 = new CmpEquivLevel[]{ new CmpEquivLevel(), new CmpEquivLevel() }; char[] decomp1 = new char[8]; char[] decomp2 = new char[8]; char[] fold1 = new char[32]; char[] fold2 = new char[32]; int level1, level2; int c1, c2; int cp1, cp2; start1=s1Start; limit1=s1Limit; start2=s2Start; limit2=s2Limit; level1=level2=0; c1=c2=-1; cp1=cp2=-1; for(;;) { if(c1<0) { for(;;) { if(s1Start>=limit1) { if(level1==0) { c1=-1; break; } } else { c1=cSource1[s1Start]; ++s1Start; break; } do { --level1; start1=stack1[level1].start; } while(start1==-1); s1Start=stack1[level1].s; limit1=stack1[level1].limit; cSource1=stack1[level1].source; } } if(c2<0) { for(;;) { if(s2Start>=limit2) { if(level2==0) { c2=-1; break; } } else { c2=cSource2[s2Start]; ++s2Start; break; } do { --level2; start2=stack2[level2].start; } while(start2==-1); s2Start=stack2[level2].s; limit2=stack2[level2].limit; cSource2=stack2[level2].source; } } if(c1==c2) { if(c1<0) { return 0; } c1=c2=-1; continue; } else if(c1<0) { return -1; } else if(c2<0) { return 1; } cp1=c1; if(UTF16.isSurrogate((char)c1)) { char c; if(UTF16.isLeadSurrogate((char)c1)) { if( s1Start!=limit1 && UTF16.isTrailSurrogate(c=cSource1[s1Start]) ) { cp1=UCharacterProperty.getRawSupplementary((char)c1, c); } } else /* isTrail(c1) */ { if( start1<=(s1Start-2) && UTF16.isLeadSurrogate(c=cSource1[(s1Start-2)]) ) { cp1=UCharacterProperty.getRawSupplementary(c, (char)c1); } } } cp2=c2; if(UTF16.isSurrogate((char)c2)) { char c; if(UTF16.isLeadSurrogate((char)c2)) { if( s2Start!=limit2 && UTF16.isTrailSurrogate(c=cSource2[s2Start]) ) { cp2=UCharacterProperty.getRawSupplementary((char)c2, c); } } else /* isTrail(c2) */ { if( start2<=(s2Start-2) && UTF16.isLeadSurrogate(c=cSource2[s2Start-2]) ) { cp2=UCharacterProperty.getRawSupplementary(c, (char)c2); } } } if( level1<2 && ((options & Normalizer.COMPARE_IGNORE_CASE)!=0)&& (length=foldCase(cp1, fold1, 0,32, ((options&Normalizer.FOLD_CASE_EXCLUDE_SPECIAL_I)==0)))>=0 ) { if(UTF16.isSurrogate((char)c1)) { if(UTF16.isLeadSurrogate((char)c1)) { ++s1Start; } else /* isTrail(c1) */ { --s2Start; c2=cSource2[(s2Start-1)]; } } stack1[0].start=start1; stack1[0].s=s1Start; stack1[0].limit=limit1; stack1[0].source=cSource1; ++level1; cSource1 = fold1; start1=s1Start=0; limit1=length; c1=-1; continue; } if( level2<2 && ((options& Normalizer.COMPARE_IGNORE_CASE)!=0) && (length=foldCase(cp2, fold2,0,32, ((options&Normalizer.FOLD_CASE_EXCLUDE_SPECIAL_I)==0)))>=0 ) { if(UTF16.isSurrogate((char)c2)) { if(UTF16.isLeadSurrogate((char)c2)) { ++s2Start; } else /* isTrail(c2) */ { --s1Start; c1=cSource1[(s1Start-1)]; } } stack2[0].start=start2; stack2[0].s=s2Start; stack2[0].limit=limit2; stack2[0].source=cSource2; ++level2; cSource2 = fold2; start2=s2Start=0; limit2=length; c2=-1; continue; } if( level1<2 && ((options&COMPARE_EQUIV)!=0) && 0!=(length=decompose(cp1,decomp1)) ) { if(UTF16.isSurrogate((char)c1)) { if(UTF16.isLeadSurrogate((char)c1)) { ++s1Start; } else /* isTrail(c1) */ { --s2Start; c2=cSource2[(s2Start-1)]; } } stack1[level1].start=start1; stack1[level1].s=s1Start; stack1[level1].limit=limit1; stack1[level1].source=cSource1; ++level1; cSource1 = decomp1; start1=s1Start=0; limit1=length; if(level1<2) { stack1[level1++].start=-1; } c1=-1; continue; } if( level2<2 && ((options&COMPARE_EQUIV)!=0) && 0!=(length=decompose(cp2, decomp2)) ) { if(UTF16.isSurrogate((char)c2)) { if(UTF16.isLeadSurrogate((char)c2)) { ++s2Start; } else /* isTrail(c2) */ { --s1Start; c1=cSource1[(s1Start-1)]; } } stack2[level2].start=start2; stack2[level2].s=s2Start; stack2[level2].limit=limit2; stack2[level2].source=cSource2; ++level2; cSource2=decomp2; start2=s2Start=0; limit2=length; if(level2<2) { stack2[level2++].start=-1; } c2=-1; continue; } if( c1>=0xd800 && c2>=0xd800 && ((options&Normalizer.COMPARE_CODE_POINT_ORDER)!=0) ) { /* subtract 0x2800 from BMP code points to make them smaller * than supplementary ones */ if( ( c1<=0xdbff && s1Start!=limit1 && UTF16.isTrailSurrogate(cSource1[s1Start]) ) || ( UTF16.isTrailSurrogate((char)c1) && start1!=(s1Start-1) && UTF16.isLeadSurrogate(cSource1[(s1Start-2)]) ) ) { /* part of a surrogate pair, leave >=d800 */ } else { /* BMP code point - may be surrogate code point - * make <d800 */ c1-=0x2800; } if( ( c2<=0xdbff && s2Start!=limit2 && UTF16.isTrailSurrogate(cSource2[s2Start]) ) || ( UTF16.isTrailSurrogate((char)c2) && start2!=(s2Start-1) && UTF16.isLeadSurrogate(cSource2[(s2Start-2)]) ) ) { /* part of a surrogate pair, leave >=d800 */ } else { /* BMP code point - may be surrogate code point - * make <d800 */ c2-=0x2800; } } return c1-c2; } }
public static int cmpEquivFold(String s1, String s2,int options){ return cmpEquivFold(s1.toCharArray(),0,s1.length(), s2.toCharArray(),0,s2.length(), options); }
public static int cmpEquivFold(char[] s1, int s1Start,int s1Limit, char[] s2, int s2Start,int s2Limit, int options) { // current-level start/limit - s1/s2 as current int start1, start2, limit1, limit2; char[] cSource1, cSource2; cSource1 = s1; cSource2 = s2; // decomposition variables int length; // stacks of previous-level start/current/limit CmpEquivLevel[] stack1 = new CmpEquivLevel[]{ new CmpEquivLevel(), new CmpEquivLevel() }; CmpEquivLevel[] stack2 = new CmpEquivLevel[]{ new CmpEquivLevel(), new CmpEquivLevel() }; // decomposition buffers for Hangul char[] decomp1 = new char[8]; char[] decomp2 = new char[8]; // case folding buffers, only use current-level start/limit char[] fold1 = new char[32]; char[] fold2 = new char[32]; // track which is the current level per string int level1, level2; // current code units, and code points for lookups int c1, c2; int cp1, cp2; // no argument error checking because this itself is not an API // assume that at least one of the options COMPARE_EQUIV and // COMPARE_IGNORE_CASE is set // otherwise this function must behave exactly as uprv_strCompare() // not checking for that here makes testing this function easier // initialize start1=s1Start; limit1=s1Limit; start2=s2Start; limit2=s2Limit; level1=level2=0; c1=c2=-1; cp1=cp2=-1; // comparison loop for(;;) { // here a code unit value of -1 means "get another code unit" // below it will mean "this source is finished" if(c1<0) { // get next code unit from string 1, post-increment for(;;) { if(s1Start>=limit1) { if(level1==0) { c1=-1; break; } } else { c1=cSource1[s1Start]; ++s1Start; break; } // reached end of level buffer, pop one level do { --level1; start1=stack1[level1].start; } while(start1==-1); //###### check this s1Start=stack1[level1].s; limit1=stack1[level1].limit; cSource1=stack1[level1].source; } } if(c2<0) { // get next code unit from string 2, post-increment for(;;) { if(s2Start>=limit2) { if(level2==0) { c2=-1; break; } } else { c2=cSource2[s2Start]; ++s2Start; break; } // reached end of level buffer, pop one level do { --level2; start2=stack2[level2].start; } while(start2==-1); s2Start=stack2[level2].s; limit2=stack2[level2].limit; cSource2=stack2[level2].source; } } // compare c1 and c2 // either variable c1, c2 is -1 only if the corresponding string // is finished if(c1==c2) { if(c1<0) { return 0; // c1==c2==-1 indicating end of strings } c1=c2=-1; // make us fetch new code units continue; } else if(c1<0) { return -1; // string 1 ends before string 2 } else if(c2<0) { return 1; // string 2 ends before string 1 } // c1!=c2 && c1>=0 && c2>=0 // get complete code points for c1, c2 for lookups if either is a // surrogate cp1=c1; if(UTF16.isSurrogate((char)c1)) { char c; if(UTF16.isLeadSurrogate((char)c1)) { if( s1Start!=limit1 && UTF16.isTrailSurrogate(c=cSource1[s1Start]) ) { // advance ++s1; only below if cp1 decomposes/case-folds cp1=UCharacterProperty.getRawSupplementary((char)c1, c); } } else /* isTrail(c1) */ { if( start1<=(s1Start-2) && UTF16.isLeadSurrogate(c=cSource1[(s1Start-2)]) ) { cp1=UCharacterProperty.getRawSupplementary(c, (char)c1); } } } cp2=c2; if(UTF16.isSurrogate((char)c2)) { char c; if(UTF16.isLeadSurrogate((char)c2)) { if( s2Start!=limit2 && UTF16.isTrailSurrogate(c=cSource2[s2Start]) ) { // advance ++s2; only below if cp2 decomposes/case-folds cp2=UCharacterProperty.getRawSupplementary((char)c2, c); } } else /* isTrail(c2) */ { if( start2<=(s2Start-2) && UTF16.isLeadSurrogate(c=cSource2[s2Start-2]) ) { cp2=UCharacterProperty.getRawSupplementary(c, (char)c2); } } } // go down one level for each string // continue with the main loop as soon as there is a real change if( level1<2 && ((options & Normalizer.COMPARE_IGNORE_CASE)!=0)&& (length=foldCase(cp1, fold1, 0,32, ((options&Normalizer.FOLD_CASE_EXCLUDE_SPECIAL_I)==0)))>=0 ) { // cp1 case-folds to fold1[length] if(UTF16.isSurrogate((char)c1)) { if(UTF16.isLeadSurrogate((char)c1)) { // advance beyond source surrogate pair if it // case-folds ++s1Start; } else /* isTrail(c1) */ { // we got a supplementary code point when hitting its // trail surrogate, therefore the lead surrogate must // have been the same as in the other string; // compare this decomposition with the lead surrogate // in the other string --s2Start; c2=cSource2[(s2Start-1)]; } } // push current level pointers stack1[0].start=start1; stack1[0].s=s1Start; stack1[0].limit=limit1; stack1[0].source=cSource1; ++level1; cSource1 = fold1; start1=s1Start=0; limit1=length; // get ready to read from decomposition, continue with loop c1=-1; continue; } if( level2<2 && ((options& Normalizer.COMPARE_IGNORE_CASE)!=0) && (length=foldCase(cp2, fold2,0,32, ((options&Normalizer.FOLD_CASE_EXCLUDE_SPECIAL_I)==0)))>=0 ) { // cp2 case-folds to fold2[length] if(UTF16.isSurrogate((char)c2)) { if(UTF16.isLeadSurrogate((char)c2)) { // advance beyond source surrogate pair if it // case-folds ++s2Start; } else /* isTrail(c2) */ { // we got a supplementary code point when hitting its // trail surrogate, therefore the lead surrogate must // have been the same as in the other string; // compare this decomposition with the lead surrogate // in the other string --s1Start; c1=cSource1[(s1Start-1)]; } } // push current level pointers stack2[0].start=start2; stack2[0].s=s2Start; stack2[0].limit=limit2; stack2[0].source=cSource2; ++level2; cSource2 = fold2; start2=s2Start=0; limit2=length; // get ready to read from decomposition, continue with loop c2=-1; continue; } if( level1<2 && ((options&COMPARE_EQUIV)!=0) && 0!=(length=decompose(cp1,decomp1)) ) { // cp1 decomposes into p[length] if(UTF16.isSurrogate((char)c1)) { if(UTF16.isLeadSurrogate((char)c1)) { // advance beyond source surrogate pair if it //decomposes ++s1Start; } else /* isTrail(c1) */ { // we got a supplementary code point when hitting // its trail surrogate, therefore the lead surrogate // must have been the same as in the other string; // compare this decomposition with the lead surrogate // in the other string --s2Start; c2=cSource2[(s2Start-1)]; } } // push current level pointers stack1[level1].start=start1; stack1[level1].s=s1Start; stack1[level1].limit=limit1; stack1[level1].source=cSource1; ++level1; // set next level pointers to decomposition cSource1 = decomp1; start1=s1Start=0; limit1=length; // set empty intermediate level if skipped if(level1<2) { stack1[level1++].start=-1; } // get ready to read from decomposition, continue with loop c1=-1; continue; } if( level2<2 && ((options&COMPARE_EQUIV)!=0) && 0!=(length=decompose(cp2, decomp2)) ) { // cp2 decomposes into p[length] if(UTF16.isSurrogate((char)c2)) { if(UTF16.isLeadSurrogate((char)c2)) { // advance beyond source surrogate pair if it // decomposes ++s2Start; } else /* isTrail(c2) */ { // we got a supplementary code point when hitting its // trail surrogate, therefore the lead surrogate must // have been the same as in the other string; // compare this decomposition with the lead surrogate // in the other string --s1Start; c1=cSource1[(s1Start-1)]; } } // push current level pointers stack2[level2].start=start2; stack2[level2].s=s2Start; stack2[level2].limit=limit2; stack2[level2].source=cSource2; ++level2; // set next level pointers to decomposition cSource2=decomp2; start2=s2Start=0; limit2=length; // set empty intermediate level if skipped if(level2<2) { stack2[level2++].start=-1; } // get ready to read from decomposition, continue with loop c2=-1; continue; } // no decomposition/case folding, max level for both sides: // return difference result // code point order comparison must not just return cp1-cp2 // because when single surrogates are present then the surrogate // pairs that formed cp1 and cp2 may be from different string // indexes // example: { d800 d800 dc01 } vs. { d800 dc00 }, compare at // second code units // c1=d800 cp1=10001 c2=dc00 cp2=10000 // cp1-cp2>0 but c1-c2<0 and in fact in UTF-32 // it is { d800 10001 } < { 10000 } // therefore fix-up if( c1>=0xd800 && c2>=0xd800 && ((options&Normalizer.COMPARE_CODE_POINT_ORDER)!=0) ) { /* subtract 0x2800 from BMP code points to make them smaller * than supplementary ones */ if( ( c1<=0xdbff && s1Start!=limit1 && UTF16.isTrailSurrogate(cSource1[s1Start]) ) || ( UTF16.isTrailSurrogate((char)c1) && start1!=(s1Start-1) && UTF16.isLeadSurrogate(cSource1[(s1Start-2)]) ) ) { /* part of a surrogate pair, leave >=d800 */ } else { /* BMP code point - may be surrogate code point - * make <d800 */ c1-=0x2800; } if( ( c2<=0xdbff && s2Start!=limit2 && UTF16.isTrailSurrogate(cSource2[s2Start]) ) || ( UTF16.isTrailSurrogate((char)c2) && start2!=(s2Start-1) && UTF16.isLeadSurrogate(cSource2[(s2Start-2)]) ) ) { /* part of a surrogate pair, leave >=d800 */ } else { /* BMP code point - may be surrogate code point - * make <d800 */ c2-=0x2800; } } return c1-c2; } }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/2b53653eec4278eba01e6fa646e06562b2d97e74/NormalizerImpl.java/buggy/icu4j/src/com/ibm/icu/impl/NormalizerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 9411, 13142, 427, 15592, 12, 3001, 8526, 272, 21, 16, 509, 272, 21, 1685, 16, 474, 272, 21, 3039, 16, 202, 1171, 9079, 1149, 8526, 272, 22, 16, 509, 272, 22, 1685, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 9411, 13142, 427, 15592, 12, 3001, 8526, 272, 21, 16, 509, 272, 21, 1685, 16, 474, 272, 21, 3039, 16, 202, 1171, 9079, 1149, 8526, 272, 22, 16, 509, 272, 22, 1685, 16,...
return true; }
return true; }
protected static boolean isValidCamelCaseChar(char ch) { return true;}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ea0718e0ea8d8a7b8c1c9d464be2b2219d8be426/SearchPattern.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/SearchPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 760, 1250, 4908, 21235, 2156, 12, 3001, 462, 13, 288, 202, 2463, 638, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 760, 1250, 4908, 21235, 2156, 12, 3001, 462, 13, 288, 202, 2463, 638, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"exception.undefined.shadow.color",
"SwtTextRenderer.exception.undefined.shadow.color",
public final void renderShadowAtLocation( IPrimitiveRenderer ipr, int iLabelPosition, // IConstants. LEFT, RIGHT, ABOVE or BELOW Location lo, // POINT WHERE THE CORNER OF THE ROTATED RECTANGLE // (OR EDGE CENTERED) IS RENDERED Label la ) throws ChartException { if ( !ChartUtil.isShadowDefined( la ) ) { return; } final ColorDefinition cdShadow = la.getShadowColor( ); if ( cdShadow == null ) { throw new ChartException( ChartDeviceSwtActivator.ID, ChartException.RENDERING, "exception.undefined.shadow.color", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.DEVICE_SWT, _sxs.getLocale( ) ) ); } switch ( iLabelPosition ) { case ABOVE : showTopValue( ipr, lo, la, false ); break; case BELOW : showBottomValue( ipr, lo, la, false ); break; case LEFT : showLeftValue( ipr, lo, la, false ); break; case RIGHT : showRightValue( ipr, lo, la, false ); break; } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3143fdf952766bc9929f556edf6ff3030dcc5ed4/SwtTextRenderer.java/clean/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtTextRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1743, 12957, 861, 2735, 12, 467, 9840, 6747, 277, 683, 16, 1082, 202, 474, 277, 2224, 2555, 16, 368, 467, 2918, 18, 9686, 16, 13135, 16, 432, 5315, 3412, 578, 9722, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1743, 12957, 861, 2735, 12, 467, 9840, 6747, 277, 683, 16, 1082, 202, 474, 277, 2224, 2555, 16, 368, 467, 2918, 18, 9686, 16, 13135, 16, 432, 5315, 3412, 578, 9722, ...
assertEquals( "Testing ", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() );
assertEquals( "Testing", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() );
public void testReadWriteDuplicatedRichText1() throws Exception { File file = new File( _test_file_path + File.separator + "duprich1.xls" ); InputStream stream = new FileInputStream( file ); HSSFWorkbook wb = new HSSFWorkbook( stream ); stream.close(); HSSFSheet sheet = wb.getSheetAt( 1 ); assertEquals( "01/05 (Wed) ", sheet.getRow( 0 ).getCell( (short) 8 ).getStringCellValue() ); assertEquals( "01/05 (Wed)", sheet.getRow( 1 ).getCell( (short) 8 ).getStringCellValue() ); file = TempFile.createTempFile( "testout", "xls" ); FileOutputStream outStream = new FileOutputStream( file ); wb.write( outStream ); outStream.close(); file.delete(); // test the second file. file = new File( _test_file_path + File.separator + "duprich2.xls" ); stream = new FileInputStream( file ); wb = new HSSFWorkbook( stream ); stream.close(); sheet = wb.getSheetAt( 0 ); int row = 0; assertEquals( "Testing ", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() ); assertEquals( "rich", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() ); assertEquals( "text", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() ); assertEquals( "strings", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() ); assertEquals( "Testing ", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() ); assertEquals( "Testing", sheet.getRow( row++ ).getCell( (short) 0 ).getStringCellValue() );// file = new File("/tryme.xls"); file = TempFile.createTempFile( "testout", ".xls" ); outStream = new FileOutputStream( file ); wb.write( outStream ); outStream.close(); file.delete(); }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/d715964e0caf86c92003760cfcae3efc48056de3/TestSSTRecord.java/clean/src/testcases/org/apache/poi/hssf/record/TestSSTRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 3067, 19682, 690, 22591, 1528, 21, 1435, 5411, 1216, 1185, 565, 288, 3639, 1387, 585, 273, 394, 1387, 12, 389, 3813, 67, 768, 67, 803, 397, 1387, 18, 11287, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 3067, 19682, 690, 22591, 1528, 21, 1435, 5411, 1216, 1185, 565, 288, 3639, 1387, 585, 273, 394, 1387, 12, 389, 3813, 67, 768, 67, 803, 397, 1387, 18, 11287, 397, ...
processMIOutput(line + "\n");
processMIOutput(line + "\n");
public void run() { BufferedReader reader = new BufferedReader(new InputStreamReader(session.getChannelInputStream())); try { String line; while ((line = reader.readLine()) != null) { // TRACING: print the output. MIPlugin.getDefault().debugLog(line); processMIOutput(line + "\n"); } } catch (IOException e) { //e.printStackTrace(); } // This code should be executed when gdb been abruptly // or unxepectedly killed. This is detected by checking // if the channelInputStream is not null. In normal case // session.terminate() will set the channelInputStream to null. if (session.getChannelInputStream() != null) { Runnable cleanup = new Runnable() { public void run() { // Change the state of the inferior. session.getMIInferior().setTerminated(); session.terminate(); } }; Thread clean = new Thread(cleanup, "GDB Died"); clean.setDaemon(true); clean.start(); } // Clear the queue and notify any command waiting, we are going down. CommandQueue rxQueue = session.getRxQueue(); if (rxQueue != null) { Command[] cmds = rxQueue.clearCommands(); for (int i = 0; i < cmds.length; i++) { synchronized (cmds[i]) { cmds[i].notifyAll(); } } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/RxThread.java/clean/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/RxThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 17947, 2514, 2949, 273, 394, 10633, 12, 2704, 15322, 12, 3184, 18, 588, 2909, 4348, 1435, 10019, 202, 202, 698, 288, 1082, 202, 780, 980, 31, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 17947, 2514, 2949, 273, 394, 10633, 12, 2704, 15322, 12, 3184, 18, 588, 2909, 4348, 1435, 10019, 202, 202, 698, 288, 1082, 202, 780, 980, 31, 1...
if (RawBackend.structures.length > 0) fw.write("#include \"structs.h\"\n");
private static void joinerCode(FlatNode joiner) { try { FileWriter fw = new FileWriter("tile" + Layout.getTileNumber(Layout.getTile(joiner)) + ".c"); fw.write("/* " + joiner.contents.getName() + "*/\n"); fw.write("#include <raw.h>\n"); fw.write("#include <math.h>\n\n"); //if there are structures in the code, include //the structure definition header files if (RawBackend.structures.length > 0) fw.write("#include \"structs.h\"\n"); if(KjcOptions.altcodegen) { fw.write("register float " + Util.CSTOFPVAR + " asm(\"$csto\");\n"); fw.write("register float " + Util.CSTIFPVAR + " asm(\"$csti\");\n"); fw.write("register int " + Util.CSTOINTVAR + " asm(\"$csto\");\n"); fw.write("register int " + Util.CSTIINTVAR + " asm(\"$csti\");\n"); } if (KjcOptions.decoupled) { fw.write("float " + Util.CSTOFPVAR + ";\n"); fw.write("float " + Util.CSTIFPVAR + ";\n"); fw.write("int " + Util.CSTOINTVAR + ";\n"); fw.write("int " + Util.CSTIINTVAR + ";\n"); } if (joiner.contents.getParent() instanceof SIRFeedbackLoop) fw.write(createInitPath(joiner) + "\n"); fw.write(createJoinerWork(joiner)); //write the extern for the function to init the //switch, but there is no switch for the magic network if (!KjcOptions.magic_net && !KjcOptions.decoupled) { fw.write("void raw_init();\n\n"); fw.write("void raw_init2();\n\n"); } fw.write("void begin(void) {\n"); if (!KjcOptions.magic_net) { fw.write(" raw_init();\n"); fw.write(" raw_init2();\n"); } else fw.write(" __asm__ volatile (\"magc $0, $0, 1\");\n"); //initialize the dummy network receive value if (KjcOptions.decoupled) { if (Util.getJoinerType(joiner).isFloatingPoint()) fw.write(" " + Util.CSTIFPVAR + " = 1.0;\n"); else fw.write(" " + Util.CSTIINTVAR + " = 1;\n"); } fw.write(" work();\n"); fw.write("}\n"); fw.close(); System.out.println("Code for " + joiner.contents.getName() + " written to tile" + Layout.getTileNumber(Layout.getTile(joiner)) + ".c"); } catch (Exception e) { e.printStackTrace(); Utils.fail("Error writing switch code for tile " + Layout.getTileNumber(Layout.getTile(joiner))); } }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/e6b9203a239b509121d6535ac5d1ef0471d47b2e/TileCode.java/buggy/streams/src/at/dms/kjc/raw/TileCode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 29620, 1085, 12, 16384, 907, 29620, 13, 377, 288, 202, 698, 288, 202, 565, 24639, 7600, 273, 3196, 202, 2704, 24639, 2932, 15368, 6, 397, 9995, 18, 588, 9337, 1854, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 29620, 1085, 12, 16384, 907, 29620, 13, 377, 288, 202, 698, 288, 202, 565, 24639, 7600, 273, 3196, 202, 2704, 24639, 2932, 15368, 6, 397, 9995, 18, 588, 9337, 1854, 12, ...
return currentParent;
return currentParent;
public Node getCurrentParent() { return currentParent; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/5b666c58d43e35a14a70a23531a4de488875def1/PreorderNodeIterator.java/clean/src/org/mozilla/javascript/PreorderNodeIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 5175, 3054, 1435, 288, 377, 202, 2463, 783, 3054, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 5175, 3054, 1435, 288, 377, 202, 2463, 783, 3054, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void visitConditionalExpression(PsiConditionalExpression expression) {
public void visitConditionalExpression( PsiConditionalExpression expression) {
public void visitConditionalExpression(PsiConditionalExpression expression) { super.visitConditionalExpression(expression); checkExpression(expression); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0944108475222d828e0a4dfcf3aed0e91a3eaacb/AutoBoxingInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/jdk/AutoBoxingInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 14132, 2300, 12, 52, 7722, 14132, 2300, 2652, 13, 3639, 288, 5411, 2240, 18, 11658, 14132, 2300, 12, 8692, 1769, 5411, 866, 2300, 12, 8692, 1769, 3639, 289, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 14132, 2300, 12, 52, 7722, 14132, 2300, 2652, 13, 3639, 288, 5411, 2240, 18, 11658, 14132, 2300, 12, 8692, 1769, 5411, 866, 2300, 12, 8692, 1769, 3639, 289, 2, -100, -100...
InboundVariable iv = new InboundVariable(ctx, "type", "{ value : value }");
InboundVariable iv = new InboundVariable(ctx, null, "type", "{ value : value }");
public void testConvertInbound() throws Exception { InboundContext ctx = new InboundContext(); InboundVariable iv = new InboundVariable(ctx, "type", "{ value : value }"); Object result = converter.convertInbound(String.class, iv, ctx); assertNotNull(result); }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/5036a4257c94dc7f3331ef721820289056906448/ObjectConverterTests.java/buggy/test/uk/ltd/getahead/dwr/convert/ObjectConverterTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2723, 20571, 1435, 1216, 1185, 565, 288, 3639, 657, 3653, 1042, 1103, 273, 394, 657, 3653, 1042, 5621, 3639, 657, 3653, 3092, 4674, 273, 394, 657, 3653, 3092, 12, 5900, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2723, 20571, 1435, 1216, 1185, 565, 288, 3639, 657, 3653, 1042, 1103, 273, 394, 657, 3653, 1042, 5621, 3639, 657, 3653, 3092, 4674, 273, 394, 657, 3653, 3092, 12, 5900, 1...
Game.addPrintListener(this); fResourceGroup = Game.addLocaleListener(this);
fResourceGroup = Game.getResourceGroup(Locale.getDefault()); Game.getPrintSupport().addPrintListener(this, PRINT_CHANNELS, false);
public TelnetServer(GameModule gm, int port, String password, boolean noCmd, boolean noChat) throws IOException { super("Telnet Server"); // remember our GameModule fGameModule = gm; try { // setup the socket stuff fPort = port; fServerSocket = new ServerSocket(port); fServerSocket.setSoTimeout(SOCKET_TIMEOUT); // as long as nothing bad happened // (no exception was thrown from the socket setup) // setup other stuff SecurityManager mgr = System.getSecurityManager(); if (mgr == null) fHandlers = new ThreadGroup(GROUP_NAME + " on " + fPort); else fHandlers = new ThreadGroup(mgr.getThreadGroup(), GROUP_NAME + " on " + fPort); fPassword = password; fNoCmd = noCmd; fNoChat = noChat; // call us when stuff is being printed Game.addPrintListener(this); // call us with localized messages using the default locale fResourceGroup = Game.addLocaleListener(this); } catch (IOException e) { fServerSocket = null; e.printStackTrace(); } }
1990 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1990/578d435afa17c19ab50dae1f666d2a43a2c4c175/TelnetServer.java/buggy/classes/barryp/telnet/TelnetServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 399, 292, 2758, 2081, 12, 12496, 3120, 14125, 16, 509, 1756, 16, 514, 2201, 16, 1250, 1158, 5931, 16, 1250, 1158, 14163, 13, 1216, 1860, 225, 202, 95, 202, 9565, 2932, 56, 292, 2758, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 399, 292, 2758, 2081, 12, 12496, 3120, 14125, 16, 509, 1756, 16, 514, 2201, 16, 1250, 1158, 5931, 16, 1250, 1158, 14163, 13, 1216, 1860, 225, 202, 95, 202, 9565, 2932, 56, 292, 2758, 3...
this.serviceprovider = builder; this.oContext = oContext;
this.wizardContext = wizardContext;
public DataDefinitionSelector( Chart chart, int axisIndex, EList seriesDefns, IUIServiceProvider builder, Object oContext, String sTitle, ISelectDataCustomizeUI selectDataUI ) { this.chart = chart; this.seriesDefns = seriesDefns; this.serviceprovider = builder; this.oContext = oContext; this.sTitle = sTitle; this.axisIndex = axisIndex; this.selectDataUI = selectDataUI; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/28738ea1377c73d595430451bea56e1444db4233/DataDefinitionSelector.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/data/DataDefinitionSelector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1910, 1852, 4320, 12, 14804, 4980, 16, 509, 2654, 1016, 16, 1082, 202, 41, 682, 4166, 3262, 2387, 16, 467, 5370, 16300, 2089, 16, 1033, 320, 1042, 16, 1082, 202, 780, 272, 424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1910, 1852, 4320, 12, 14804, 4980, 16, 509, 2654, 1016, 16, 1082, 202, 41, 682, 4166, 3262, 2387, 16, 467, 5370, 16300, 2089, 16, 1033, 320, 1042, 16, 1082, 202, 780, 272, 424...
return new AuthorizationImpl();
return AuthorizationImpl.singleton();
public IAuthorizationService getAuthorization() throws AuthorizationException { return new AuthorizationImpl(); }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/ec608f468c51342633807d395cb53e50acafca4d/AuthorizationServiceFactoryImpl.java/buggy/source/org/jasig/portal/security/provider/AuthorizationServiceFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 467, 6063, 1179, 28233, 1435, 1216, 10234, 503, 225, 288, 565, 327, 10234, 2828, 18, 24487, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 6063, 1179, 28233, 1435, 1216, 10234, 503, 225, 288, 565, 327, 10234, 2828, 18, 24487, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
choiceArray = new String[choices.length - 2][2];
choiceArray = new String[choices.length - 1][2];
private String[][] initChoiceArray( ) { if ( choiceArray == null ) { IChoiceSet set = ChoiceSetFactory.getStructChoiceSet( NumberFormatValue.FORMAT_VALUE_STRUCT, NumberFormatValue.CATEGORY_MEMBER ); IChoice[] choices = set.getChoices( ); if ( choices.length > 0 ) { // excludes "standard" and "unformatted" category. choiceArray = new String[choices.length - 2][2]; for ( int i = 0, j = 0; i < choices.length; i++ ) { if ( !choices[i].getName( ) .equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_STANDARD ) && !choices[i].getName( ) .equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_UNFORMATTED ) ) { 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/72a11c0e368b5a03d009f110611ec9865948322b/FormatNumberPage.java/clean/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, 1152, 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, 1152, 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, ...
m_factory.createExpression(" Test", m_indexMap);
m_factory.createExpression(" Test");
public void testPrimitive() throws Exception { final StatisticExpression expression = m_factory.createPrimitive(m_indexMap.getIndexForLong("One")); myAssertEquals(1, expression); assert(!expression.isDouble()); final StatisticsIndexMap.DoubleIndex anotherIndex = m_indexMap.getIndexForDouble("Test"); final StatisticExpression doubleExpresson = m_factory.createExpression(" Test", m_indexMap); myAssertEquals(0d, doubleExpresson); assert(doubleExpresson.isDouble()); myAssertEquals(2, m_factory.createExpression("Two", m_indexMap)); try { m_factory.createExpression("", m_indexMap); fail("Expected a GrinderException"); } catch (GrinderException e) { } try { m_factory.createExpression("One Two", m_indexMap); fail("Expected a GrinderException"); } catch (GrinderException e) { } try { m_factory.createExpression("Madeup", m_indexMap); fail("Expected a GrinderException"); } catch (GrinderException e) { } }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/f6ec48cb584c89ee70191c9f07b174fc005e3bcc/TestStatisticExpressionFactory.java/clean/tests-src/net/grinder/statistics/TestStatisticExpressionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 9840, 1435, 1216, 1185, 565, 288, 202, 6385, 8269, 5846, 2300, 2652, 273, 202, 565, 312, 67, 6848, 18, 2640, 9840, 12, 81, 67, 1615, 863, 18, 588, 1016, 1290, 3708, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 9840, 1435, 1216, 1185, 565, 288, 202, 6385, 8269, 5846, 2300, 2652, 273, 202, 565, 312, 67, 6848, 18, 2640, 9840, 12, 81, 67, 1615, 863, 18, 588, 1016, 1290, 3708, 293...
public final Type DOUBLE_TYPE() {return DOUBLE_CLASS.type();}
public final Type DOUBLE_TYPE() { return DOUBLE_TYPE.type().resultType(); }
public final Type DOUBLE_TYPE() {return DOUBLE_CLASS.type();}
49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/1e46957a4f69c0387e5098e9839f670f5201a79e/Definitions.java/buggy/sources/scalac/symtab/Definitions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1412, 282, 14918, 67, 2399, 1435, 288, 2463, 14918, 67, 5237, 18, 723, 5621, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1412, 282, 14918, 67, 2399, 1435, 288, 2463, 14918, 67, 5237, 18, 723, 5621, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public BaseDescr fact_expression(String id) throws RecognitionException { BaseDescr pd = null; BaseDescr fe = null; BaseDescr f = null; pd = null; boolean multi = false; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:905:5: ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact ) int alt27=2; int LA27_0 = input.LA(1); if ( (LA27_0==LEFT_PAREN) ) { alt27=1; } else if ( (LA27_0==ID) ) { alt27=2; } else { if (backtracking>0) {failed=true; return pd;} NoViableAltException nvae = new NoViableAltException("900:2: fact_expression[String id] returns [BaseDescr pd] : ( ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' | f= fact );", 27, 0, input); throw nvae; } switch (alt27) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:905:5: ( '(' fact_expression_in_paren[id] ')' )=> '(' fe= fact_expression_in_paren[id] ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_fact_expression1753); if (failed) return pd; pushFollow(FOLLOW_fact_expression_in_paren_in_fact_expression1757); fe=fact_expression_in_paren(id); _fsp--; if (failed) return pd; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_fact_expression1760); if (failed) return pd; if ( backtracking==0 ) { pd=fe; } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:906:6: f= fact { pushFollow(FOLLOW_fact_in_fact_expression1771); f=fact(); _fsp--; if (failed) return pd; if ( backtracking==0 ) { ((ColumnDescr)f).setIdentifier( id ); pd = f; } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return pd; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/63bc7036e62ae854cec463d59712c173f74e984c/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 5410, 67, 8692, 12, 780, 612, 13, 1216, 9539, 288, 6647, 3360, 16198, 4863, 273, 446, 31, 3639, 3360, 16198, 1656, 273, 446, 31, 3639, 3360, 16198, 284, 273, 446, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 5410, 67, 8692, 12, 780, 612, 13, 1216, 9539, 288, 6647, 3360, 16198, 4863, 273, 446, 31, 3639, 3360, 16198, 1656, 273, 446, 31, 3639, 3360, 16198, 284, 273, 446, 31, ...
if (path.startsWith("/") && path.substring(1).indexOf("/") == -1) {
HTTPRequest req = new HTTPRequest(uri); if (path.equals("/") && req.isParameterSet("newbookmark")) {
public String processURI(String u, String overrideType) { URI uri; try { uri = new URI(u); } catch (URISyntaxException e1) { return null; } String path = uri.getPath(); if (path == null) { // Only fragment? if(uri.getScheme() == null && uri.getFragment() != null && uri.getHost() == null) { return "#" + URLEncoder.encode(uri.getFragment()); } return null; } // mailto: not supported yet - FIXME what to do with it? what queries are allowed? can it possibly hurt us? how to construct safely? etc if (path.startsWith("/") && path.substring(1).indexOf("/") == -1) { // allow links to the root to add bookmarks HTTPRequest req = new HTTPRequest(uri); String bookmark_key = req.getParam("newbookmark"); String bookmark_desc = req.getParam("desc"); bookmark_key = HTMLEncoder.encode(bookmark_key); bookmark_desc = HTMLEncoder.encode(bookmark_desc); return path+"?newbookmark="+bookmark_key+"&desc="+bookmark_desc; } else if(path.startsWith("/")) { // Try to make it into a FreenetURI try { FreenetURI furi = new FreenetURI(path.substring(1)); return processURI(furi, uri, overrideType); } catch (MalformedURLException e) { // Obviously not a Freenet URI! } } else { // Relative URI // FIXME resolve it // FIXME Note that we allow links to / inlines from fproxy services. // This is okay because we don't allow forms. HTTPRequest req = new HTTPRequest(uri); return finishProcess(req, overrideType, path); } Logger.normal(this, "Unrecognized URI, dropped: "+uri); return null; }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/4a8026a73261ce9697ca11f6e4f83fa1bec986e6/GenericReadFilterCallback.java/clean/src/freenet/clients/http/filter/GenericReadFilterCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1207, 3098, 12, 780, 582, 16, 514, 3849, 559, 13, 288, 202, 202, 3098, 2003, 31, 202, 202, 698, 288, 1082, 202, 1650, 273, 394, 3699, 12, 89, 1769, 202, 202, 97, 1044, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1207, 3098, 12, 780, 582, 16, 514, 3849, 559, 13, 288, 202, 202, 3098, 2003, 31, 202, 202, 698, 288, 1082, 202, 1650, 273, 394, 3699, 12, 89, 1769, 202, 202, 97, 1044, ...
fillInStackTrace();
if (VM.BuildFor64Addr) { VM.sysWriteln("Warning: java.lang.Throwable.init not filling in stack trace"); } else { fillInStackTrace(); }
public Throwable () { super(); fillInStackTrace(); // fillInStackTrace() catches its own errors. }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/159700ee876b62c2a9fb600e4636c073bec9db43/Throwable.java/buggy/rvm/src/vm/libSupport/java/lang/Throwable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4206, 1832, 288, 565, 2240, 5621, 565, 3636, 382, 6332, 5621, 202, 202, 759, 3636, 382, 6332, 1435, 1044, 281, 2097, 4953, 1334, 18, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4206, 1832, 288, 565, 2240, 5621, 565, 3636, 382, 6332, 5621, 202, 202, 759, 3636, 382, 6332, 1435, 1044, 281, 2097, 4953, 1334, 18, 225, 289, 2, -100, -100, -100, -100, -100, -100,...
amount = new JNumberField(Formatter.getInstance().getDecimalFormat());
amount = new JDecimalField(0, 5, Formatter.getInstance().getDecimalFormat());
protected ModifyDialogLayout(Frame owner){ super(owner); okButton = new JButton(Translate.inst().get(TranslateKeys.OK)); cancelButton = new JButton(Translate.inst().get(TranslateKeys.CANCEL)); nameLabel = new JLabel(Translate.inst().get(TranslateKeys.NAME)); name = new JTextField(); amountLabel = new JLabel(); amount = new JNumberField(Formatter.getInstance().getDecimalFormat()); pulldownLabel = new JLabel(); pulldownModel = new DefaultComboBoxModel(); pulldown = new JComboBox(pulldownModel); Dimension buttonSize = new Dimension(150, okButton.getPreferredSize().height); okButton.setPreferredSize(buttonSize); cancelButton.setPreferredSize(buttonSize); pulldown.setPreferredSize(new Dimension(150, pulldown.getPreferredSize().height)); check = new JCheckBox(Translate.inst().get(TranslateKeys.INCOME)); JPanel textPanel = new JPanel(new GridLayout(0, 2)); textPanel.add(nameLabel); textPanel.add(name); textPanel.add(amountLabel); textPanel.add(amount); textPanel.add(pulldownLabel); textPanel.add(pulldown); textPanel.add(gap); textPanel.add(check); JPanel textPanelSpacer = new JPanel(); textPanelSpacer.setBorder(BorderFactory.createEmptyBorder(7, 17, 17, 17)); textPanelSpacer.add(textPanel); JPanel mainBorderPanel = new JPanel(); mainBorderPanel.setLayout(new BorderLayout()); mainBorderPanel.setBorder(BorderFactory.createTitledBorder("")); mainBorderPanel.add(textPanelSpacer); JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); buttonPanel.add(cancelButton); buttonPanel.add(okButton); JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); mainPanel.setBorder(BorderFactory.createEmptyBorder(7, 12, 12, 12)); mainPanel.add(mainBorderPanel, BorderLayout.CENTER); mainPanel.add(buttonPanel, BorderLayout.SOUTH); this.setLayout(new BorderLayout()); this.add(mainPanel); this.getRootPane().setDefaultButton(okButton); //Call the method to add actions to the buttons initActions(); }
48285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48285/d6b535a4ce819f9912eaf8cc71186452b47d9179/ModifyDialogLayout.java/buggy/src/org/homeunix/drummer/view/layout/ModifyDialogLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 9518, 6353, 3744, 12, 3219, 3410, 15329, 202, 202, 9565, 12, 8443, 1769, 9506, 202, 601, 3616, 273, 394, 28804, 12, 12818, 18, 8591, 7675, 588, 12, 12818, 2396, 18, 3141, 10019...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 9518, 6353, 3744, 12, 3219, 3410, 15329, 202, 202, 9565, 12, 8443, 1769, 9506, 202, 601, 3616, 273, 394, 28804, 12, 12818, 18, 8591, 7675, 588, 12, 12818, 2396, 18, 3141, 10019...
SMTPResponse response = handler.onMessage(session);
SMTPResponse response = handler.onMessage(session, mockedMail);
public void testNotBlocked() throws IOException, MessagingException { ArrayList servers = new ArrayList(); servers.add(URISERVER); SMTPSession session = setupMockedSMTPSession(setupMockedMail(setupMockedMimeMessage("http://" + GOOD_DOMAIN + "/"))); URIRBLHandler handler = new URIRBLHandler(); ContainerUtil.enableLogging(handler, new MockLogger()); handler.setDnsServer(setupMockedDnsServer()); handler.setUriRblServer(servers); SMTPResponse response = handler.onMessage(session); assertNull("Email was not rejected", response); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/fe9ba961e981f453aa5e44737338216224013092/URIRBLHandlerTest.java/buggy/sandbox/handlerapi-experiment/src/test/org/apache/james/smtpserver/URIRBLHandlerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1248, 23722, 1435, 1216, 1860, 16, 23794, 503, 288, 7734, 2407, 7084, 273, 394, 2407, 5621, 3639, 7084, 18, 1289, 12, 3098, 4370, 1769, 7734, 18102, 2157, 1339, 273, 3875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1248, 23722, 1435, 1216, 1860, 16, 23794, 503, 288, 7734, 2407, 7084, 273, 394, 2407, 5621, 3639, 7084, 18, 1289, 12, 3098, 4370, 1769, 7734, 18102, 2157, 1339, 273, 3875, ...
w.setFontStyle(Font.BOLD + Font.ITALIC); s = " " + heading1 + spaces.substring(0,interval) + " Setting\n"; w.write(s, 0, s.length());
w.write(w.getCurrentLineNumber()-1, 0, w.getCurrentLineNumber()-1, w.getCharactersPerLine()+1); s = "\n"; w.write(s,0,s.length());
public void printPane(HardcopyWriter w) { // if pane is empty, don't print anything if (varList.size() == 0 && cvList.size() == 0) return; // Define column widths for name and value output. // Make col 2 slightly larger than col 1 and reduce both to allow for // extra spaces that will be added during concatenation int col1Width = w.getCharactersPerLine()/2 -3 - 5; int col2Width = w.getCharactersPerLine()/2 -3 + 5; try { //Draw horizontal dividing line for each Pane section w.write(w.getCurrentLineNumber(), 0, w.getCurrentLineNumber(), w.getCharactersPerLine() + 1); //Create a string of spaces the width of the first column String spaces = ""; for (int i=0; i < col1Width; i++) { spaces = spaces + " "; } // start with pane name in bold String heading1 = "Field"; String heading2 = "Setting"; String s; int interval = spaces.length()- heading1.length(); w.setFontStyle(Font.BOLD); if (cvList.size() > 0){ w.write(w.getCurrentLineNumber(), 0, w.getCurrentLineNumber() + 1, 0); w.write(w.getCurrentLineNumber(), w.getCharactersPerLine() + 1, w.getCurrentLineNumber() + 1, w.getCharactersPerLine() + 1); s = mName.toUpperCase() + "\n"; w.write(s, 0, s.length()); } else { w.write(w.getCurrentLineNumber(),0,w.getCurrentLineNumber() + 1,0); w.write(w.getCurrentLineNumber(),w.getCharactersPerLine() + 1,w.getCurrentLineNumber() + 1,w.getCharactersPerLine() + 1); s = mName.toUpperCase() + "\n"; w.write(s, 0, s.length()); w.write(w.getCurrentLineNumber(),0,w.getCurrentLineNumber() + 1,0); w.write(w.getCurrentLineNumber(),w.getCharactersPerLine() + 1,w.getCurrentLineNumber() + 1,w.getCharactersPerLine() + 1); w.setFontStyle(Font.BOLD + Font.ITALIC); s = " " + heading1 + spaces.substring(0,interval) + " Setting\n"; w.write(s, 0, s.length()); } w.setFontStyle(Font.PLAIN); // index over variables for (int i=0; i<varList.size(); i++) { int varNum = ((Integer)varList.get(i)).intValue(); VariableValue var = _varModel.getVariable(varNum); String name = var.label(); if (name == null) name = var.item(); String value = var.getTextValue(); //define index values for name and value substrings int nameLeftIndex = 0; int nameRightIndex = name.length(); int valueLeftIndex = 0; int valueRightIndex =value.length(); String trimmedName; String trimmedValue; // Check the name length to see if it is wider than the column. // If so, split it and do the same checks for the Value // Then concatenate the name and value (or the split versions thereof) // before writing - if split, repeat until all pieces have been output while ((valueLeftIndex < value.length()) || (nameLeftIndex < name.length())){ // name split code if (name.substring(nameLeftIndex).length() > col1Width){ for (int j = 0; j < col1Width; j++) { String delimiter = name.substring(nameLeftIndex + col1Width - j - 1, nameLeftIndex + col1Width - j); if (delimiter.equals(" ") || delimiter.equals(";") || delimiter.equals(",")) { nameRightIndex = nameLeftIndex + col1Width - j; break; } } trimmedName = name.substring(nameLeftIndex,nameRightIndex); nameLeftIndex = nameRightIndex; int space = spaces.length()- trimmedName.length(); s = " " + trimmedName + spaces.substring(0,space); } else { trimmedName = name.substring(nameLeftIndex); int space = spaces.length() - trimmedName.length(); s = " " + trimmedName + spaces.substring(0,space); name = ""; nameLeftIndex = 0; } // value split code if (value.substring(valueLeftIndex).length() > col2Width){ for (int j = 0; j < col2Width; j++){ String delimiter = value.substring(valueLeftIndex + col2Width - j - 1, valueLeftIndex + col2Width - j); if (delimiter.equals(" ") || delimiter.equals(";") || delimiter.equals(",")) { valueRightIndex = valueLeftIndex + col2Width - j; break; } } trimmedValue = value.substring(valueLeftIndex,valueRightIndex); valueLeftIndex = valueRightIndex; s= s + " " + trimmedValue + "\n"; } else { trimmedValue = value.substring(valueLeftIndex); s = s + " " + trimmedValue + "\n"; valueLeftIndex = 0; value = ""; } w.write(w.getCurrentLineNumber(),0,w.getCurrentLineNumber() + 1,0); w.write(w.getCurrentLineNumber(),w.getCharactersPerLine() + 1,w.getCurrentLineNumber() + 1,w.getCharactersPerLine() + 1); w.write(s,0,s.length()); } } // index over CVs if (cvList.size() > 0){ w.setFontStyle(Font.BOLD); //set font to Bold // print a simple heading w.write(w.getCurrentLineNumber(), 0, w.getCurrentLineNumber() + 1, 0); w.write(w.getCurrentLineNumber(), w.getCharactersPerLine() + 1, w.getCurrentLineNumber() + 1, w.getCharactersPerLine() + 1); s = " Value Value Value Value\n"; w.write(s, 0, s.length()); w.write(w.getCurrentLineNumber(), 0, w.getCurrentLineNumber() + 1, 0); w.write(w.getCurrentLineNumber(), w.getCharactersPerLine() + 1, w.getCurrentLineNumber() + 1, w.getCharactersPerLine() + 1); s = " CV Dec Hex CV Dec Hex CV Dec Hex CV Dec Hex\n"; w.write(s, 0, s.length()); w.setFontStyle(0); //set font back to Normal // } /*create an array to hold CV/Value strings to allow reformatting and sorting Same size as the table drawn above (4 columns*tableHeight; heading rows not included) */ int tableHeight = 20; String[] cvStrings = new String[4 * tableHeight]; //blank the array for (int j = 0; j < cvStrings.length; j++) cvStrings[j] = ""; // get each CV and value for (int i = 0; i < cvList.size(); i++) { int cvNum = ( (Integer) cvList.get(i)).intValue(); CvValue cv = _cvModel.getCvByRow(cvNum); //------------------------------------------------------------------------- int num = cv.number(); int value = cv.getValue(); //convert and pad numbers as needed String numString = Integer.toString(num); String valueString = Integer.toString(value); String valueStringHex = Integer.toHexString(value).toUpperCase(); if (value < 16) valueStringHex = "0" + valueStringHex; for (int j = 1; j < 3; j++) { if (numString.length() < 3) numString = " " + numString; } for (int j = 1; j < 3; j++) { if (valueString.length() < 3) valueString = " " + valueString; } //Create composite string of CV and its decimal and hex values s = " " + numString + " " + valueString + " " + valueStringHex + " "; //populate printing array - still treated as a single column cvStrings[i] = s; } //sort the array in CV order (just the members with values) String temp; boolean swap = false; do { swap = false; for (int i = 0; i < _cvModel.getRowCount() - 1; i++) { if (Integer.parseInt(cvStrings[i + 1].substring(2, 5).trim()) < Integer.parseInt(cvStrings[i].substring(2, 5).trim())) { temp = cvStrings[i + 1]; cvStrings[i + 1] = cvStrings[i]; cvStrings[i] = temp; swap = true; } } } while (swap == true); //Print the array in four columns for (int i = 0; i < tableHeight; i++) { w.write(w.getCurrentLineNumber(), 0, w.getCurrentLineNumber() + 1, 0); w.write(w.getCurrentLineNumber(), w.getCharactersPerLine() + 1, w.getCurrentLineNumber() + 1, w.getCharactersPerLine() + 1); s = cvStrings[i] + " " + cvStrings[i + tableHeight] + " " + cvStrings[i + tableHeight * 2] + " " + cvStrings[i + tableHeight * 3] + "\n"; w.write(s, 0, s.length()); } } s = "\n\n"; w.write(w.getCurrentLineNumber(), 0, w.getCurrentLineNumber() + 2, 0); w.write(w.getCurrentLineNumber(), w.getCharactersPerLine() + 1, w.getCurrentLineNumber() + 2, w.getCharactersPerLine() + 1); w.write(s, 0, s.length()); // handle special cases } catch (IOException e) { log.warn("error during printing: "+e); } }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/a9b685d310ec17e20e12255f8d0b3ba24ee88b0d/PaneProgPane.java/buggy/jmri/jmrit/symbolicprog/tabbedframe/PaneProgPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1172, 8485, 12, 29601, 3530, 2289, 341, 13, 288, 3639, 368, 309, 13618, 353, 1008, 16, 2727, 1404, 1172, 6967, 3639, 309, 261, 1401, 682, 18, 1467, 1435, 422, 374, 597, 8951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1172, 8485, 12, 29601, 3530, 2289, 341, 13, 288, 3639, 368, 309, 13618, 353, 1008, 16, 2727, 1404, 1172, 6967, 3639, 309, 261, 1401, 682, 18, 1467, 1435, 422, 374, 597, 8951, ...
HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { DataSetParameterHandle modelParam = ( DataSetParameterHandle ) elmtIter .next( ); dteDataSet.addParameter( newParam( modelParam ) ); if ( modelParam.isInput( ) ) { String defaultValueExpr = null; if ( modelParam instanceof OdaDataSetParameterHandle && ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) != null ) { defaultValueExpr = "params" + "[\"" + ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) + "\"]"; } else defaultValueExpr = modelParam.getDefaultValue( ); if ( defaultValueExpr != null ) paramBindingCandidates.put( modelParam.getName( ), defaultValueExpr ); } } } elmtIter = modelDataSet.paramBindingsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ParamBindingHandle modelParamBinding = ( ParamBindingHandle ) elmtIter .next( ); paramBindingCandidates.put( modelParamBinding.getParamName( ), modelParamBinding.getExpression( ) ); } } if ( paramBindingCandidates.size( ) > 0 ) { elmtIter = paramBindingCandidates.keySet( ).iterator( ); while ( elmtIter.hasNext( ) ) { Object paramName = elmtIter.next( ); assert ( paramName != null && paramName instanceof String ); String expression = ( String ) paramBindingCandidates .get( paramName ); dteDataSet.addInputParamBinding( newInputParamBinding( ( String ) paramName, expression ) ); } }
void adaptBaseDataSet( DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet ) throws BirtException { if ( (!(modelDataSet instanceof JointDataSetHandle)) && modelDataSet.getDataSource( ) == null ) throw new EngineException( "The data source of this data set can not be null." ); if ( !( modelDataSet instanceof JointDataSetHandle ) ) { dteDataSet.setDataSource( modelDataSet.getDataSource( ) .getQualifiedName( ) ); dteDataSet.setBeforeOpenScript( modelDataSet.getBeforeOpen( ) ); dteDataSet.setAfterOpenScript( modelDataSet.getAfterOpen( ) ); dteDataSet.setOnFetchScript( modelDataSet.getOnFetch( ) ); dteDataSet.setBeforeCloseScript( modelDataSet.getBeforeClose( ) ); dteDataSet.setAfterCloseScript( modelDataSet.getAfterClose( ) );// dataset parameters definition HashMap paramBindingCandidates = new HashMap( ); Iterator elmtIter = modelDataSet.parametersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { DataSetParameterHandle modelParam = ( DataSetParameterHandle ) elmtIter .next( ); dteDataSet.addParameter( newParam( modelParam ) ); // collect input parameter default values as // potential parameter binding if no explicit ones are // defined for a parameter if ( modelParam.isInput( ) ) { String defaultValueExpr = null; if ( modelParam instanceof OdaDataSetParameterHandle && ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) != null ) { defaultValueExpr = "params" + "[\"" + ( (OdaDataSetParameterHandle) modelParam ).getParamName( ) + "\"]"; } else defaultValueExpr = modelParam.getDefaultValue( ); if ( defaultValueExpr != null ) paramBindingCandidates.put( modelParam.getName( ), defaultValueExpr ); } } } // input parameter bindings elmtIter = modelDataSet.paramBindingsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ParamBindingHandle modelParamBinding = ( ParamBindingHandle ) elmtIter .next( ); // replace default value of the same parameter, if defined paramBindingCandidates.put( modelParamBinding.getParamName( ), modelParamBinding.getExpression( ) ); } } // assign merged parameter bindings to the data set if ( paramBindingCandidates.size( ) > 0 ) { elmtIter = paramBindingCandidates.keySet( ).iterator( ); while ( elmtIter.hasNext( ) ) { Object paramName = elmtIter.next( ); assert ( paramName != null && paramName instanceof String ); String expression = ( String ) paramBindingCandidates .get( paramName ); dteDataSet.addInputParamBinding( newInputParamBinding( ( String ) paramName, expression ) ); } } // cache row count dteDataSet.setCacheRowCount( modelDataSet.getCachedRowCount( ) ); } // computed columns Iterator elmtIter = modelDataSet.computedColumnsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ComputedColumnHandle modelCmptdColumn = ( ComputedColumnHandle ) elmtIter .next( ); IComputedColumn dteCmptdColumn = newComputedColumn( modelCmptdColumn ); dteDataSet.addComputedColumn( dteCmptdColumn ); } } // filter conditions elmtIter = modelDataSet.filtersIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { FilterConditionHandle modelFilter = ( FilterConditionHandle ) elmtIter .next( ); IFilterDefinition dteFilter = newFilter( modelFilter ); dteDataSet.addFilter( dteFilter ); } } // merge ResultSetHints and ColumnHints, the order is important. // ResultSetHints will give each column a unique name, and // column hints should base on the result of ResultSet hint. // So in ResultSetHint list, the order of items should be // ResultSetColumn and then ColumnHint. // now merge model's result set column info into existing columnDefn // with same column name, otherwise create new columnDefn // based on the model's result set column if ( modelDataSet instanceof OdaDataSetHandle ) { elmtIter = modelDataSet.resultSetIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { OdaResultSetColumnHandle modelColumn = (OdaResultSetColumnHandle) elmtIter.next( ); if ( !modelColumn.getColumnName( ) .equals( modelColumn.getNativeName( ) ) ) dteDataSet.addResultSetHint( newColumnDefn( (ResultSetColumnHandle) modelColumn ) ); } } } else { elmtIter = modelDataSet.resultSetHintsIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ResultSetColumnHandle modelColumn = (ResultSetColumnHandle) elmtIter.next( ); dteDataSet.addResultSetHint( newColumnDefn( modelColumn ) ); } } } // merging result set column and column hints into DtE columnDefn; // first create new columnDefn based on model's column hints elmtIter = modelDataSet.columnHintsIterator( ); if ( elmtIter != null ) { List columnDefns = dteDataSet.getResultSetHints( ); while ( elmtIter.hasNext( ) ) { ColumnHintHandle modelColumnHint = ( ColumnHintHandle ) elmtIter .next( ); ColumnDefinition existDefn = findColumnDefn( columnDefns, modelColumnHint.getColumnName( ) ); if ( existDefn != null ) updateColumnDefn( existDefn, modelColumnHint ); else dteDataSet .addResultSetHint( newColumnDefn( modelColumnHint ) ); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ee2ff427f987c42816a9d91d4e0166ee88c0ff0e/ModelDteApiAdapter.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/adapter/ModelDteApiAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 5855, 2171, 13676, 12, 14065, 3259, 938, 13676, 16, 1082, 202, 2171, 13676, 15478, 302, 736, 13676, 262, 1216, 605, 2714, 503, 202, 95, 202, 202, 430, 261, 16051, 12, 2284, 136...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 5855, 2171, 13676, 12, 14065, 3259, 938, 13676, 16, 1082, 202, 2171, 13676, 15478, 302, 736, 13676, 262, 1216, 605, 2714, 503, 202, 95, 202, 202, 430, 261, 16051, 12, 2284, 136...
String absoluteBaseDirectory,
private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, JDBCSeismogramFiles jdbcSeisFile, JDBCChannel chanTable) throws IOException, FissuresException, SeedFormatException, SQLException, NotFound { boolean finished = false; StringTokenizer t = new StringTokenizer(fileLoc, "/\\"); String fileName = ""; while(t.hasMoreTokens()) { fileName = t.nextToken(); } if(fileName.length() == 18 && fileName.charAt(9) == '_') { finished = processRefTek(jdbcSeisFile, conn, fileLoc, fileName, verbose, ncFile, absoluteBaseDirectory, chanTable); } else if(fileName.endsWith(".mseed")) { finished = processMSeed(jdbcSeisFile, fileLoc, fileName, verbose); } else if(fileName.endsWith(".sac")) { finished = processSac(jdbcSeisFile, fileLoc, fileName, verbose); } else if(fileName.equals("SOH.RT")) { if(verbose) { System.out.println("Ignoring State of Health file " + fileName + "."); } } else { if(verbose) { System.out.println(fileName + " can not be processed because it's file" + " name is not formatted correctly, and therefore" + " is assumed to be an invalid file format. If" + " the data file format is valid (mini seed, sac, rt130)" + " try renaming the file."); } } return finished; }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/987a6f78ce1eb718d1f04d1b338695b56be297f0/PopulateDatabaseFromDirectory.java/buggy/src/edu/sc/seis/fissuresUtil/database/seismogram/PopulateDatabaseFromDirectory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 855, 5281, 812, 12, 780, 585, 1333, 16, 4766, 1850, 1250, 3988, 16, 4766, 1850, 4050, 1487, 16, 4766, 1850, 423, 39, 812, 8194, 812, 16, 28524, 10402, 16364, 1761, 6228, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 855, 5281, 812, 12, 780, 585, 1333, 16, 4766, 1850, 1250, 3988, 16, 4766, 1850, 4050, 1487, 16, 4766, 1850, 423, 39, 812, 8194, 812, 16, 28524, 10402, 16364, 1761, 6228, ...
public void setMarginheightExpr(String marginheightExpr) { this.marginheightExpr = marginheightExpr; }
public void setMarginheightExpr(String marginheightExpr) { this.marginheightExpr = marginheightExpr; }
public void setMarginheightExpr(String marginheightExpr) { this.marginheightExpr = marginheightExpr; }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELFrameTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELFrameTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 918, 377, 444, 9524, 4210, 4742, 12, 780, 7333, 4210, 4742, 13, 565, 288, 333, 18, 10107, 4210, 4742, 225, 273, 7333, 4210, 4742, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 918, 377, 444, 9524, 4210, 4742, 12, 780, 7333, 4210, 4742, 13, 565, 288, 333, 18, 10107, 4210, 4742, 225, 273, 7333, 4210, 4742, 31, 289, 2, -100, -100, -100, -100, -100, -1...
writer.println("501 Syntax error - unexpected parameter");
writeLoggedFlushedResponse("501 Syntax error - unexpected parameter");
private void doPOST(String argument) { // see section 9.3.1.1 if ( argument != null ) { writer.println("501 Syntax error - unexpected parameter"); } writer.println("340 send article to be posted. End with <CR-LF>.<CR-LF>"); createArticle(); writer.println("240 article received ok"); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/186f788911748788751560790f6ce65f95163795/NNTPHandler.java/clean/trunk/src/java/org/apache/james/nntpserver/NNTPHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 3798, 12, 780, 1237, 13, 288, 3639, 368, 2621, 2442, 2468, 18, 23, 18, 21, 18, 21, 3639, 309, 261, 1237, 480, 446, 262, 288, 5411, 1045, 19862, 8207, 27619, 2932, 9172, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3798, 12, 780, 1237, 13, 288, 3639, 368, 2621, 2442, 2468, 18, 23, 18, 21, 18, 21, 3639, 309, 261, 1237, 480, 446, 262, 288, 5411, 1045, 19862, 8207, 27619, 2932, 9172, ...
} );
} );
protected void createExtendedMetaDataAnnotations( ) { String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$ addAnnotation( axisEClass, source, new String[]{ "name", "Axis", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Type( ), source, new String[]{ "kind", "element", "name", "Type" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Title( ), source, new String[]{ "kind", "element", "name", "Title" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_SubTitle( ), source, new String[]{ "kind", "element", "name", "SubTitle" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_TitlePosition( ), source, new String[]{ "kind", "element", "name", "TitlePosition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_AssociatedAxes( ), source, new String[]{ "kind", "element", "name", "AssociatedAxes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_SeriesDefinitions( ), source, new String[]{ "kind", "element", "name", "SeriesDefinitions" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_GapWidth( ), source, new String[]{ "kind", "element", "name", "GapWidth" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Orientation( ), source, new String[]{ "kind", "element", "name", "Orientation" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_LineAttributes( ), source, new String[]{ "kind", "element", "name", "LineAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_FormatSpecifier( ), source, new String[]{ "kind", "element", "name", "FormatSpecifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_LabelPosition( ), source, new String[]{ "kind", "element", "name", "LabelPosition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Staggered( ), source, new String[]{ "kind", "element", "name", "Staggered" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MarkerLines( ), source, new String[]{ "kind", "element", "name", "MarkerLines" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MarkerRanges( ), source, new String[]{ "kind", "element", "name", "MarkerRanges" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MajorGrid( ), source, new String[]{ "kind", "element", "name", "MajorGrid" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_MinorGrid( ), source, new String[]{ "kind", "element", "name", "MinorGrid" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Scale( ), source, new String[]{ "kind", "element", "name", "Scale" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Origin( ), source, new String[]{ "kind", "element", "name", "Origin" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_PrimaryAxis( ), source, new String[]{ "kind", "element", "name", "PrimaryAxis" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_CategoryAxis( ), source, new String[]{ "kind", "element", "name", "CategoryAxis" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getAxis_Percent( ), source, new String[]{ "kind", "element", "name", "Percent" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( chartPreferencesEClass, source, new String[]{ "name", "ChartPreferences", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getChartPreferences_Labels( ), source, new String[]{ "kind", "element", "name", "Labels" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getChartPreferences_Blocks( ), source, new String[]{ "kind", "element", "name", "Blocks" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( gridEClass, source, new String[]{ "name", "Grid", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_LineAttributes( ), source, new String[]{ "kind", "element", "name", "LineAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickStyle( ), source, new String[]{ "kind", "element", "name", "TickStyle" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickAttributes( ), source, new String[]{ "kind", "element", "name", "TickAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickSize( ), source, new String[]{ "kind", "element", "name", "TickSize" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getGrid_TickCount( ), source, new String[]{ "kind", "element", "name", "TickCount" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( labelEClass, source, new String[]{ "name", "Label", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Caption( ), source, new String[]{ "kind", "element", "name", "Caption" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Background( ), source, new String[]{ "kind", "element", "name", "Background" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Outline( ), source, new String[]{ "kind", "element", "name", "Outline" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_ShadowColor( ), source, new String[]{ "kind", "element", "name", "ShadowColor" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Insets( ), source, new String[]{ "kind", "element", "name", "Insets" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getLabel_Visible( ), source, new String[]{ "kind", "element", "name", "Visible" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( markerLineEClass, source, new String[]{ "name", "MarkerLine", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_LineAttributes( ), source, new String[]{ "kind", "element", "name", "LineAttributes" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_Value( ), source, new String[]{ "kind", "element", "name", "Value" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_LabelAnchor( ), source, new String[]{ "kind", "element", "name", "LabelAnchor" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerLine_FormatSpecifier( ), source, new String[]{ "kind", "element", "name", "FormatSpecifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( markerRangeEClass, source, new String[]{ "name", "MarkerRange", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_Outline( ), source, new String[]{ "kind", "element", "name", "Outline" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_Fill( ), source, new String[]{ "kind", "element", "name", "Fill" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_StartValue( ), source, new String[]{ "kind", "element", "name", "StartValue" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_EndValue( ), source, new String[]{ "kind", "element", "name", "EndValue" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_LabelAnchor( ), source, new String[]{ "kind", "element", "name", "LabelAnchor" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getMarkerRange_FormatSpecifier( ), source, new String[]{ "kind", "element", "name", "FormatSpecifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( scaleEClass, source, new String[]{ "name", "Scale", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Min( ), source, new String[]{ "kind", "element", "name", "Min" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Max( ), source, new String[]{ "kind", "element", "name", "Max" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Step( ), source, new String[]{ "kind", "element", "name", "Step" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_Unit( ), source, new String[]{ "kind", "element", "name", "Unit" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getScale_MinorGridsPerUnit( ), source, new String[]{ "kind", "element", "name", "MinorGridsPerUnit" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( seriesEClass, source, new String[]{ "name", "Series", "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Visible( ), source, new String[]{ "kind", "element", "name", "Visible" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Label( ), source, new String[]{ "kind", "element", "name", "Label" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_DataDefinition( ), source, new String[]{ "kind", "element", "name", "DataDefinition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_SeriesIdentifier( ), source, new String[]{ "kind", "element", "name", "SeriesIdentifier" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_DataPoint( ), source, new String[]{ "kind", "element", "name", "DataPoint" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_DataSet( ), source, new String[]{ "kind", "element", "name", "DataSet" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_LabelPosition( ), source, new String[]{ "kind", "element", "name", "LabelPosition" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Stacked( ), source, new String[]{ "kind", "element", "name", "Stacked" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Triggers( ), source, new String[]{ "kind", "element", "name", "Triggers" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); addAnnotation( getSeries_Translucent( ), source, new String[]{ "kind", "element", "name", "Translucent" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdab78403751f288b76844a99f50b999c34fb491/ComponentPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 11456, 6998, 5655, 12, 262, 202, 95, 202, 202, 780, 1084, 273, 315, 2505, 2207, 19, 3341, 19, 20416, 19, 351, 74, 19, 557, 479, 19, 1367, 19, 11456, 6998, 14432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 11456, 6998, 5655, 12, 262, 202, 95, 202, 202, 780, 1084, 273, 315, 2505, 2207, 19, 3341, 19, 20416, 19, 351, 74, 19, 557, 479, 19, 1367, 19, 11456, 6998, 14432, ...
Scriptable p = thisObj; while (p != null && !clazz.isInstance(p)) { p = p.getPrototype(); } if (p == null) {
if (!clazz.isInstance(thisObj)) {
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (parmsLength < 0) return callVarargs(cx, thisObj, args, false); if (!isStatic) { // OPT: cache "clazz"? Class clazz = method != null ? method.getDeclaringClass() : ctor.getDeclaringClass(); Scriptable p = thisObj; while (p != null && !clazz.isInstance(p)) { // Walk up the prototype chain to find an object to call the // method on p = p.getPrototype(); } if (p == null) { // Couldn't find an object to call this on. Object[] errArgs = { names[0] }; throw Context.reportRuntimeError( Context.getMessage("msg.incompat.call", errArgs)); } thisObj = p; } Object[] invokeArgs; int i; if (parmsLength == args.length) { invokeArgs = args; // avoid copy loop if no conversions needed i = (types == null) ? parmsLength : 0; } else { invokeArgs = new Object[parmsLength]; i = 0; } for (; i < parmsLength; i++) { Object arg = (i < args.length) ? args[i] : Undefined.instance; if (types != null) { arg = convertArg(this, arg, types[i]); } invokeArgs[i] = arg; } try { Object result = (method != null) ? method.invoke(thisObj, invokeArgs) : ctor.newInstance(invokeArgs); return hasVoidReturn ? Undefined.instance : result; } catch (InvocationTargetException e) { throw JavaScriptException.wrapException(scope, e); } catch (IllegalAccessException e) { throw WrappedException.wrapException(e); } catch (InstantiationException e) { throw WrappedException.wrapException(e); } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/504a2557ce23fe6f381fdde0e1566eb0ce65ebc1/FunctionObject.java/clean/js/rhino/src/org/mozilla/javascript/FunctionObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 29927, 1782, 411, 374, 13, 5411, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 29927, 1782, 411, 374, 13, 5411, 327,...
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case CLASS: case FINAL: case INTERFACE:
if (jj_2_3(3)) {
final public void ClassOrInterfaceBodyDeclaration() throws ParseException { /*@bgen(jjtree) ClassOrInterfaceBodyDeclaration */ ASTClassOrInterfaceBodyDeclaration jjtn000 = new ASTClassOrInterfaceBodyDeclaration(this, JJTCLASSORINTERFACEBODYDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);int modifiers; try { if (jj_2_6(2)) { Initializer(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ABSTRACT: case BOOLEAN: case BYTE: case CHAR: case CLASS: case DOUBLE: case FINAL: case FLOAT: case INT: case INTERFACE: case LONG: case NATIVE: case PRIVATE: case PROTECTED: case PUBLIC: case SHORT: case STATIC: case SYNCHRONIZED: case TRANSIENT: case VOID: case VOLATILE: case STRICTFP: case IDENTIFIER: case AT: case LT: modifiers = Modifiers(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case CLASS: case FINAL: case INTERFACE: ClassOrInterfaceDeclaration(modifiers); break; default: jj_la1[28] = jj_gen; if (jj_2_3(2147483647)) { EnumDeclaration(modifiers); } else if (jj_2_4(2147483647)) { ConstructorDeclaration(modifiers); } else if (jj_2_5(2147483647)) { FieldDeclaration(modifiers); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FLOAT: case INT: case LONG: case SHORT: case VOID: case IDENTIFIER: case LT: MethodDeclaration(modifiers); break; default: jj_la1[29] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } break; case SEMICOLON: jj_consume_token(SEMICOLON); break; default: jj_la1[30] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } 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 (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 1659, 1162, 1358, 2250, 6094, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 1659, 1162, 1358, 2250, 6094, 1195, 282, 9183, 797, 1162, 1358, 2250, 6094,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1659, 1162, 1358, 2250, 6094, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 1659, 1162, 1358, 2250, 6094, 1195, 282, 9183, 797, 1162, 1358, 2250, 6094,...
Element rootElement = doc.createElement("fault-list");
Element rootElement = doc.createElement("fault-list");
private Element getUniqueListofFaults(Document doc) { Element rootElement = doc.createElement("fault-list"); Element faultElement; QName key; Iterator iterator = fullyQualifiedFaultClassNameMap.keySet().iterator(); while (iterator.hasNext()) { faultElement = doc.createElement("fault"); key = (QName) iterator.next(); //as for the name of a fault, we generate an exception addAttribute(doc, "name", (String)fullyQualifiedFaultClassNameMap.get(key), faultElement); addAttribute(doc, "intantiatiableName", (String)InstantiatableFaultClassNameMap.get(key), faultElement); addAttribute(doc, "shortName", (String)faultClassNameMap.get(key), faultElement); //the type represents the type that will be wrapped by this //name String typeMapping = this.mapper.getTypeMappingName(key); addAttribute(doc, "type", (typeMapping == null) ? "" : typeMapping, faultElement); String attribValue = (String) instantiatableMessageClassNames. get(key); addAttribute(doc, "instantiatableType", attribValue==null?"":attribValue, faultElement); // add an extra attribute to say whether the type mapping is // the default if (TypeMapper.DEFAULT_CLASS_NAME.equals(typeMapping)) { addAttribute(doc, "default", "yes", faultElement); } addAttribute(doc, "value", getParamInitializer(typeMapping), faultElement); rootElement.appendChild(faultElement); } return rootElement; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95b2a1b8970a4e5a4607b75b8bd0347d031c1111/AxisServiceBasedMultiLanguageEmitter.java/clean/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3010, 16076, 682, 792, 7083, 87, 12, 2519, 997, 13, 288, 3639, 3010, 27575, 273, 997, 18, 2640, 1046, 2932, 643, 17, 1098, 8863, 3639, 3010, 12530, 1046, 31, 3639, 16723, 498, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3010, 16076, 682, 792, 7083, 87, 12, 2519, 997, 13, 288, 3639, 3010, 27575, 273, 997, 18, 2640, 1046, 2932, 643, 17, 1098, 8863, 3639, 3010, 12530, 1046, 31, 3639, 16723, 498, 31, ...
throw new IOException(path);
throw new IOException(savePath);
private void save() { OutputStream out = null; try { String[] args = { vfs.getFileName(path) }; setStatus(jEdit.getProperty("vfs.status.save",args)); // the entire save operation can be aborted... setAbortable(true); try { path = vfs._canonPath(session,path,view); buffer.readLock(); // Only backup once per session if(buffer.getProperty(Buffer.BACKED_UP) == null || jEdit.getBooleanProperty("backupEverySave")) { vfs._backup(session,path,view); buffer.setBooleanProperty(Buffer.BACKED_UP,true); } /* if the VFS supports renaming files, we first * save to #<filename>#save#, then rename that * to <filename>, so that if the save fails, * data will not be lost. * * as of 4.1pre7 we now call vfs.getTwoStageSaveName() * instead of constructing the path directly * since some VFS's might not allow # in filenames. */ String savePath; boolean twoStageSave = (vfs.getCapabilities() & VFS.RENAME_CAP) != 0 && jEdit.getBooleanProperty("twoStageSave"); if(twoStageSave) savePath = vfs.getTwoStageSaveName(path); else savePath = path; out = vfs._createOutputStream(session,savePath,view); if(out != null) { // Can't use buffer.getName() here because // it is not changed until the save is // complete if(savePath.endsWith(".gz")) buffer.setBooleanProperty(Buffer.GZIPPED,true); if(buffer.getBooleanProperty(Buffer.GZIPPED)) out = new GZIPOutputStream(out); write(buffer,out); if(twoStageSave) { if(!vfs._rename(session,savePath,path,view)) throw new IOException(path); } // We only save markers to VFS's that support deletion. // Otherwise, we will accumilate stale marks files. if((vfs.getCapabilities() & VFS.DELETE_CAP) != 0) { if(jEdit.getBooleanProperty("persistentMarkers") && buffer.getMarkers().size() != 0) { setStatus(jEdit.getProperty("vfs.status.save-markers",args)); setProgressValue(0); out = vfs._createOutputStream(session,markersPath,view); if(out != null) writeMarkers(buffer,out); } else vfs._delete(session,markersPath,view); } } else buffer.setBooleanProperty(ERROR_OCCURRED,true); if(!twoStageSave) VFSManager.sendVFSUpdate(vfs,path,true); } catch(IOException io) { Log.log(Log.ERROR,this,io); String[] pp = { io.toString() }; VFSManager.error(view,path,"ioerror.write-error",pp); buffer.setBooleanProperty(ERROR_OCCURRED,true); } finally { buffer.readUnlock(); } } catch(WorkThread.Abort a) { if(out != null) { try { out.close(); } catch(IOException io) { } } buffer.setBooleanProperty(ERROR_OCCURRED,true); } finally { try { vfs._saveComplete(session,buffer,path,view); vfs._endVFSSession(session,view); } catch(IOException io) { Log.log(Log.ERROR,this,io); String[] pp = { io.toString() }; VFSManager.error(view,path,"ioerror.write-error",pp); buffer.setBooleanProperty(ERROR_OCCURRED,true); } catch(WorkThread.Abort a) { buffer.setBooleanProperty(ERROR_OCCURRED,true); } } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/dfc46fa26176bd57ba2eb4f12cc45e6647e1f439/BufferIORequest.java/buggy/org/gjt/sp/jedit/buffer/BufferIORequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 1435, 202, 95, 202, 202, 4632, 596, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 8526, 833, 273, 288, 20682, 18, 588, 4771, 12, 803, 13, 289, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 1435, 202, 95, 202, 202, 4632, 596, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 8526, 833, 273, 288, 20682, 18, 588, 4771, 12, 803, 13, 289, 31, ...
private static FeatureFilter intersection(FeatureFilter f1, FeatureFilter f2) { if( f1 instanceof FeatureFilter.ContainedByLocation && f2 instanceof FeatureFilter.ContainedByLocation ) { Location loc = LocationTools.intersection( ((FeatureFilter.ContainedByLocation) f1).getLocation(), ((FeatureFilter.ContainedByLocation) f2).getLocation() ); if(loc == Location.empty) { return none(); } else { return containedByLocation(loc); } } else if( f1 instanceof FeatureFilter.OverlapsLocation && f2 instanceof FeatureFilter.OverlapsLocation ) { // can't do much here } else if( f1 instanceof FeatureFilter.ByAnnotationType && f2 instanceof FeatureFilter.ByAnnotationType ) { FeatureFilter.ByAnnotationType f1t = (FeatureFilter.ByAnnotationType) f1; FeatureFilter.ByAnnotationType f2t = (FeatureFilter.ByAnnotationType) f2; AnnotationType intersect = AnnotationTools.intersection( f1t.getType(), f2t.getType() ); if(intersect == AnnotationType.NONE) { return none(); } else { return byAnnotationType(intersect); } } else if( f1 instanceof ByHierarchy && f2 instanceof ByHierarchy ) { ByHierarchy f1h = (ByHierarchy) f1; ByHierarchy f2h = (ByHierarchy) f2; if(f1 instanceof Up && f2 instanceof Up) { FeatureFilter filt = optimize(or(f1h.getFilter(), f2h.getFilter())); if(filt == none()) { return none(); } if( f1h instanceof FeatureFilter.ByParent || f2h instanceof FeatureFilter.ByParent ) { return byParent(filt); } else { return byAncestor(filt); } } else if(f1 instanceof Down && f2 instanceof Down) { FeatureFilter filt = optimize(or(f1h.getFilter(), f2h.getFilter())); if(filt == none()) { return none(); } if( f1h instanceof FeatureFilter.ByChild || f2h instanceof FeatureFilter.ByChild ) { return byChild(filt); } else { return byDescendant(filt); } } else { return none(); } } return null; }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/a749c215e903dcbc73d736bb404bb7e69e3afa30/FilterUtils.java/clean/src/org/biojava/bio/seq/FilterUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 7881, 1586, 7619, 12, 4595, 1586, 284, 21, 16, 7881, 1586, 284, 22, 13, 288, 565, 309, 12, 1377, 284, 21, 1276, 7881, 1586, 18, 660, 8707, 858, 2735, 597, 1377, 284, 22, 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, 3238, 760, 7881, 1586, 7619, 12, 4595, 1586, 284, 21, 16, 7881, 1586, 284, 22, 13, 288, 565, 309, 12, 1377, 284, 21, 1276, 7881, 1586, 18, 660, 8707, 858, 2735, 597, 1377, 284, 22, 12...
setTabindex(null);
private void evaluateExpressions() throws JspException { try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMultiple((String) evalAttr("multiple", getMultiple(), String.class)); } catch (NullAttributeException ex) { setMultiple(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELSelectTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSelectTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, ...
case XPathResult.STRING_TYPE :
case XPathResult.STRING_TYPE:
public static Node[] convertToNodes(XPathResult xpathResult) { switch (xpathResult.getResultType()) { case XPathResult.NUMBER_TYPE : return NULL_NODE_ARRAY; case XPathResult.STRING_TYPE : return NULL_NODE_ARRAY; case XPathResult.BOOLEAN_TYPE : return NULL_NODE_ARRAY; case XPathResult.FIRST_ORDERED_NODE_TYPE : case XPathResult.ANY_UNORDERED_NODE_TYPE : { Node node = xpathResult.getSingleNodeValue(); return new Node[] { node }; } case XPathResult.ORDERED_NODE_ITERATOR_TYPE : case XPathResult.UNORDERED_NODE_ITERATOR_TYPE : { List list = new ArrayList(); Node node = xpathResult.iterateNext(); while (node != null) { list.add(node); node = xpathResult.iterateNext(); } return (Node[]) list.toArray(NULL_NODE_ARRAY); } case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE : case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE : { int len = xpathResult.getSnapshotLength(); Node[] nodes = new Node[len]; for (int i = 0; i < len; i++) { Node node = xpathResult.snapshotItem(i); nodes[i] = node; } return nodes; } default: String msg = "Unknown xpathResult.type = " + xpathResult.getResultType(); throw new XPathException(XPathException.TYPE_ERR ,msg); } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/c3f6363095dc52f521dd8666c0cfc494bedffffd/XmlUtil.java/clean/src/main/mondrian/tui/XmlUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2029, 8526, 8137, 3205, 12, 14124, 1253, 6748, 1253, 13, 288, 3639, 1620, 261, 18644, 1253, 18, 588, 1253, 559, 10756, 288, 3639, 648, 10172, 1253, 18, 9931, 67, 2399, 294, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 8526, 8137, 3205, 12, 14124, 1253, 6748, 1253, 13, 288, 3639, 1620, 261, 18644, 1253, 18, 588, 1253, 559, 10756, 288, 3639, 648, 10172, 1253, 18, 9931, 67, 2399, 294, 541...
Font font = parent.getFont(); Group group = new Group(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; group.setLayout(layout); if (resource instanceof IContainer) group.setText(CONTAINER_ENCODING_TITLE); else group.setText(FILE_ENCODING_TITLE); group.setFont(font);
Font font = parent.getFont(); Group group = new Group(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; group.setLayout(layout); if (resource instanceof IContainer) group.setText(CONTAINER_ENCODING_TITLE); else group.setText(FILE_ENCODING_TITLE); group.setFont(font);
private void createEncodingGroup(Composite parent, IResource resource) { Font font = parent.getFont(); Group group = new Group(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; group.setLayout(layout); if (resource instanceof IContainer) group.setText(CONTAINER_ENCODING_TITLE); else group.setText(FILE_ENCODING_TITLE); group.setFont(font); SelectionAdapter buttonListener = new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { updateEncodingState(defaultEncodingButton.getSelection()); updateValidState(); } }; defaultEncodingButton = new Button(group, SWT.RADIO); String encoding = getEncoding(resource); String format = CONTAINER_ENCODING_FORMAT; String defaultEnc = null; if (resource instanceof IFile) { defaultEnc = getEncodingFromContent((IFile) resource); format = (defaultEnc != null) ? FILE_CONTENT_ENCODING_FORMAT : FILE_CONTAINER_ENCODING_FORMAT; } if (defaultEnc == null) defaultEnc = getEncoding(resource.getParent()); defaultEncodingButton.setText(MessageFormat.format(format, new String[] { defaultEnc })); GridData data = new GridData(); data.horizontalSpan = 2; defaultEncodingButton.setLayoutData(data); defaultEncodingButton.addSelectionListener(buttonListener); defaultEncodingButton.setFont(font); otherEncodingButton = new Button(group, SWT.RADIO); otherEncodingButton.setText(IDEWorkbenchMessages .getString("WorkbenchPreference.otherEncoding")); //$NON-NLS-1$ otherEncodingButton.addSelectionListener(buttonListener); otherEncodingButton.setFont(font); encodingCombo = new Combo(group, SWT.NONE); data = new GridData(); data.widthHint = convertWidthInCharsToPixels(15); encodingCombo.setFont(font); encodingCombo.setLayoutData(data); encodingCombo.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { updateValidState(); } }); ArrayList encodings = new ArrayList(); int n = 0; try { n = Integer.parseInt(IDEWorkbenchMessages .getString("WorkbenchPreference.numDefaultEncodings")); //$NON-NLS-1$ } catch (NumberFormatException e1) { // Ignore; } for (int i = 0; i < n; ++i) { String enc = IDEWorkbenchMessages.getString( "WorkbenchPreference.defaultEncoding" + (i + 1), null); //$NON-NLS-1$ if (enc != null) encodings.add(enc); } String defaultEnc1 = System.getProperty("file.encoding", "UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$ if (!encodings.contains(defaultEnc1)) encodings.add(defaultEnc1); String enc = ResourcesPlugin.getPlugin().getPluginPreferences() .getString(ResourcesPlugin.PREF_ENCODING); if (!encodings.contains(enc)) encodings.add(enc); Collections.sort(encodings); for (int i = 0; i < encodings.size(); ++i) encodingCombo.add((String) encodings.get(i)); encodingCombo.setText(encoding); updateEncodingState(usesDefaultEncoding(resource)); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8153b6982200744c6558b44ef21acece72d0fe50/ResourceInfoPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 4705, 1114, 12, 9400, 982, 16, 467, 1420, 1058, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 3756, 1041, 273, 394, 3756, 12, 2938, 16, 348, 8588, 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, 752, 4705, 1114, 12, 9400, 982, 16, 467, 1420, 1058, 13, 288, 3639, 10063, 3512, 273, 982, 18, 588, 5711, 5621, 3639, 3756, 1041, 273, 394, 3756, 12, 2938, 16, 348, 8588, 18,...
cal.add(Calendar.MILLISECOND , offset);
cal.add(Calendar.MILLISECOND, offset);
public Commandline buildChangesCommand(Date lastBuildTime, Date now, boolean isWindows) { //If the Perforce server time is different from the CruiseControl // server time, correct the parameter dates for the difference. if (this.correctForServerTime) { try { int offset = (int) calculateServerTimeOffset(); Calendar cal = Calendar.getInstance(); cal.setTime(lastBuildTime); cal.add(Calendar.MILLISECOND , offset); lastBuildTime = cal.getTime(); cal.setTime(now); cal.add(Calendar.MILLISECOND , offset); now = cal.getTime(); } catch (IOException ioe) { LOG.error("Unable to execute \'p4 info\' to get server time: " + ioe.getMessage() + "\nProceeding without time offset value."); } } else { LOG.debug("No server time offset determined."); } Commandline commandLine = buildBaseP4Command(); commandLine.createArgument().setValue("changes"); commandLine.createArgument().setValue("-s"); commandLine.createArgument().setValue("submitted"); commandLine.createArgument().setValue(p4View + "@" + P4_REVISION_DATE.format(lastBuildTime) + ",@" + P4_REVISION_DATE.format(now)); return commandLine; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/b7d74646ab37b46052e3e3bc07b897083ec08cd3/P4.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/P4.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3498, 1369, 1361, 7173, 2189, 12, 1626, 1142, 3116, 950, 16, 2167, 2037, 16, 1250, 353, 10399, 13, 288, 3639, 368, 2047, 326, 5722, 5734, 1438, 813, 353, 3775, 628, 326, 385, 8653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3498, 1369, 1361, 7173, 2189, 12, 1626, 1142, 3116, 950, 16, 2167, 2037, 16, 1250, 353, 10399, 13, 288, 3639, 368, 2047, 326, 5722, 5734, 1438, 813, 353, 3775, 628, 326, 385, 8653, ...
weapon.flags |= F_FLAMER;
weapon.flags |= F_FLAMER | F_ENERGY;
public static WeaponType createCLFlamer() { WeaponType weapon = new WeaponType(); weapon.name = "Flamer"; weapon.setInternalName("CLFlamer"); weapon.addLookupName("Clan Flamer"); weapon.heat = 3; weapon.damage = 2; weapon.ammoType = AmmoType.T_NA; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 1; weapon.mediumRange = 2; weapon.longRange = 3; weapon.extremeRange = 4; weapon.tonnage = 0.5f; weapon.criticals = 1; weapon.flags |= F_FLAMER; weapon.bv = 6; String[] modes = { "Damage", "Heat" }; weapon.setModes(modes); return weapon; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/3de8871e6895277c40058c53708655401dda40bd/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 5017, 2340, 24458, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 2340, 24458, 14432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1660, 28629, 559, 752, 5017, 2340, 24458, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 2340, 24458, 14432...
int x = (int)(PEER_CIRCLE_RADIUS + Math.sin(peerLocation) * PEER_CIRCLE_RADIUS); int y = (int)(PEER_CIRCLE_RADIUS - Math.cos(peerLocation) * PEER_CIRCLE_RADIUS);
int offset = 0; if( offsetMe ) { offset = -10; } else { offset = (int) (((double) PEER_CIRCLE_INNER_RADIUS) * (1.0 - strength)); } double x = PEER_CIRCLE_RADIUS + Math.sin(peerLocation) * (PEER_CIRCLE_RADIUS - offset); double y = PEER_CIRCLE_RADIUS - Math.cos(peerLocation) * (PEER_CIRCLE_RADIUS - offset);
private String generatePeerCircleStyleString (double peerLocation) { peerLocation *= Math.PI * 2; // int x = (int)(PEER_CIRCLE_RADIUS + Math.sin(peerLocation) * PEER_CIRCLE_RADIUS); int y = (int)(PEER_CIRCLE_RADIUS - Math.cos(peerLocation) * PEER_CIRCLE_RADIUS); // return "position: absolute; top: " + y + "px; left: " + x + "px"; }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/509340ba9541d1954856c0eed86c569371a2a26e/StatisticsToadlet.java/clean/src/freenet/clients/http/StatisticsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2103, 6813, 19490, 2885, 780, 261, 9056, 4261, 2735, 13, 288, 202, 202, 12210, 2735, 6413, 2361, 18, 1102, 380, 576, 31, 202, 202, 759, 202, 202, 474, 619, 273, 261, 474...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2103, 6813, 19490, 2885, 780, 261, 9056, 4261, 2735, 13, 288, 202, 202, 12210, 2735, 6413, 2361, 18, 1102, 380, 576, 31, 202, 202, 759, 202, 202, 474, 619, 273, 261, 474...
String result = conf.getString("test/imaginarykey", "bob");
String result = conf.getString("test.imaginarykey", "bob");
public void testGetMissingKeyWithDefault() throws Exception { JNDIConfiguration conf = new JNDIConfiguration(); conf.setPrefix(""); String result = conf.getString("test/imaginarykey", "bob"); assertEquals("bob", result); }
56523 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56523/dd93d1af923ed564fc9e55bd57ba1bda033c7b8b/TestJNDIEnvironmentValues.java/buggy/src/test/org/apache/commons/configuration/TestJNDIEnvironmentValues.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 4841, 653, 24502, 1435, 1216, 1185, 565, 288, 3639, 804, 24513, 1750, 2195, 273, 394, 804, 24513, 1750, 5621, 3639, 2195, 18, 542, 2244, 2932, 8863, 3639, 514, 563, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 4841, 653, 24502, 1435, 1216, 1185, 565, 288, 3639, 804, 24513, 1750, 2195, 273, 394, 804, 24513, 1750, 5621, 3639, 2195, 18, 542, 2244, 2932, 8863, 3639, 514, 563, ...
Composite group = super.createEncodingGroup(parent, numColumns); String byteOrderLabel = IDEEncoding.getByteOrderMarkLabel(getContentDescription());
Composite group = super.createEncodingGroup(parent, numColumns); String byteOrderLabel = IDEEncoding .getByteOrderMarkLabel(getContentDescription());
protected Composite createEncodingGroup(Composite parent, int numColumns) { Composite group = super.createEncodingGroup(parent, numColumns); String byteOrderLabel = IDEEncoding.getByteOrderMarkLabel(getContentDescription()); if (byteOrderLabel != null) { Label label = new Label(group, SWT.NONE); label.setText(NLS.bind(IDEWorkbenchMessages.WorkbenchPreference_encoding_encodingMessage, byteOrderLabel)); GridData layoutData = new GridData(); layoutData.horizontalSpan = numColumns + 1; label.setLayoutData(layoutData); } return group; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3d3b6350e58f7038bc33f0a8af57d3a0cb8aab78/ResourceEncodingFieldEditor.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 752, 4705, 1114, 12, 9400, 982, 16, 509, 30109, 13, 288, 3639, 14728, 1041, 273, 2240, 18, 2640, 4705, 1114, 12, 2938, 16, 30109, 1769, 202, 202, 780, 25410, 2224, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 14728, 752, 4705, 1114, 12, 9400, 982, 16, 509, 30109, 13, 288, 3639, 14728, 1041, 273, 2240, 18, 2640, 4705, 1114, 12, 2938, 16, 30109, 1769, 202, 202, 780, 25410, 2224, 273, ...
else if (Game.allRecruitersVisible(legion, recruiters))
else if (allRecruitersVisible(legion, recruiters))
public static void doRecruit(Creature recruit, Legion legion, Frame parentFrame) { // Pick the recruiter(s) if necessary. Critter [] recruiters = new Critter[4]; Critter recruiter; int numEligibleRecruiters = Game.findEligibleRecruiters(legion, recruit, recruiters); if (numEligibleRecruiters == 1) { recruiter = recruiters[0]; } else if (numEligibleRecruiters == 0) { // A warm body recruits in a tower. recruiter = null; } else if (Game.allRecruitersVisible(legion, recruiters)) { // If all possible recruiters are already visible, don't // bother picking which ones to reveal. recruiter = recruiters[0]; } else { new PickRecruiter(parentFrame, legion, numEligibleRecruiters, recruiters); recruiter = recruiters[0]; } if (recruit != null && (recruiter != null || numEligibleRecruiters == 0)) { // Select that marker. legion.addCreature(recruit); // Mark the recruiter(s) as visible. int numRecruiters = Game.numberOfRecruiterNeeded(recruiter, recruit, legion.getCurrentHex().getTerrain()); if (numRecruiters >= 1) { legion.revealCreatures(recruiter, numRecruiters); } Game.logEvent("Legion " + legion.getMarkerId() + " in " + legion.getCurrentHex().getDescription() + " recruits " + recruit.getName() + " with " + (numRecruiters == 0 ? "nothing" : numRecruiters + " " + (numRecruiters > 1 ? recruiter.getPluralName() : recruiter.getName()))); // Recruits are one to a customer. legion.markRecruited(); legion.getPlayer().markLastLegionRecruited(legion); } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/271dead2883e27d2487c35860aa45eee8e7738e4/Game.java/buggy/Colossus/Game.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 741, 426, 3353, 14945, 12, 1996, 1231, 1950, 8653, 305, 16, 17167, 285, 4553, 285, 16, 3639, 8058, 982, 3219, 13, 565, 288, 3639, 368, 23038, 326, 1950, 8653, 2165, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 741, 426, 3353, 14945, 12, 1996, 1231, 1950, 8653, 305, 16, 17167, 285, 4553, 285, 16, 3639, 8058, 982, 3219, 13, 565, 288, 3639, 368, 23038, 326, 1950, 8653, 2165, 12, ...
byte[] s2Bytes = getCodeBytes(method, switchPos.get(j).intValue(), switchPos.get(j+1).intValue()-1);
byte[] s2Bytes = getCodeBytes(method, switchPos[j], switchPos[j+1]-1);
private void findSwitchDuplicates(CFG cfg, Method method, BasicBlock bb) { Iterator<Edge> iei = cfg.outgoingEdgeIterator(bb); List<Integer> switchPos = new ArrayList<Integer>(); int defaultPos = 0; while (iei.hasNext()) { Edge e = iei.next(); if (EdgeTypes.SWITCH_EDGE == e.getType()) { BasicBlock target = e.getTarget(); switchPos.add(new Integer(target.getFirstInstruction().getPosition())); } else if (EdgeTypes.SWITCH_DEFAULT_EDGE == e.getType()) { BasicBlock target = e.getTarget(); defaultPos = target.getFirstInstruction().getPosition(); } else return; } if (switchPos.size() < 2) return; if (defaultPos > 0) switchPos.add(new Integer(defaultPos)); Collections.sort(switchPos); //NOTE: We really need to walk the whole block and convert relative branches to absolute branches // otherwise we miss many duplicate branches. Will work on this next // for now we drop off the last byte of the block. This is really incorrect, but ok for now for (int i = 0; i < switchPos.size()-2; i++) { int s1Length = switchPos.get(i+1).intValue() - switchPos.get(i).intValue(); if (s1Length == 0) continue; byte[] s1Bytes = getCodeBytes(method, switchPos.get(i).intValue(), switchPos.get(i+1).intValue()-1); for (int j = i+1; j < switchPos.size()-1; j++) { int s2Length = switchPos.get(j+1).intValue() - switchPos.get(j).intValue(); if (s2Length == 0) continue; if (s1Length != s2Length) continue; byte[] s2Bytes = getCodeBytes(method, switchPos.get(j).intValue(), switchPos.get(j+1).intValue()-1); if (!Arrays.equals(s1Bytes, s2Bytes)) continue; bugReporter.reportBug(new BugInstance(this, "DB_DUPLICATE_BRANCHES", LOW_PRIORITY) .addClass(classContext.getJavaClass()) .addMethod(classContext.getJavaClass().getClassName(), method.getName(), method.getSignature()) .addSourceLineRange(this, switchPos.get(i).intValue(), switchPos.get(i+1).intValue()) .addSourceLineRange(this, switchPos.get(j).intValue(), switchPos.get(j+1).intValue())); j = switchPos.size(); } } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/3f26924624d331f381e5e7c9a64b4f1ea843c5d1/DuplicateBranches.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/DuplicateBranches.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1104, 10200, 23897, 12, 19727, 2776, 16, 2985, 707, 16, 7651, 1768, 7129, 13, 288, 9506, 202, 3198, 32, 6098, 34, 9228, 77, 273, 2776, 18, 31891, 6098, 3198, 12, 9897, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 10200, 23897, 12, 19727, 2776, 16, 2985, 707, 16, 7651, 1768, 7129, 13, 288, 9506, 202, 3198, 32, 6098, 34, 9228, 77, 273, 2776, 18, 31891, 6098, 3198, 12, 9897, 1...
this(type, name, addr, port, weight, priority, (byte[])null);
this(type, name, port, weight, priority, (byte[])null);
public ServiceInfo(String type, String name, InetAddress addr, int port, int weight, int priority, String text) { this(type, name, addr, port, weight, priority, (byte[])null); try { ByteArrayOutputStream out = new ByteArrayOutputStream(text.length()); writeUTF(out, text); this.text = out.toByteArray(); } catch (IOException e) { throw new RuntimeException("unexpected exception: " + e); } }
45694 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45694/674164a446dd4ac3949e8bd80da8ada90a8ad2bd/ServiceInfo.java/clean/jmdns/src/javax/jmdns/ServiceInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1956, 966, 12, 780, 618, 16, 514, 508, 16, 14218, 3091, 16, 509, 1756, 16, 509, 3119, 16, 509, 4394, 16, 514, 977, 13, 565, 288, 202, 2211, 12, 723, 16, 508, 16, 3091, 16, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1956, 966, 12, 780, 618, 16, 514, 508, 16, 14218, 3091, 16, 509, 1756, 16, 509, 3119, 16, 509, 4394, 16, 514, 977, 13, 565, 288, 202, 2211, 12, 723, 16, 508, 16, 3091, 16, 175...
if (italicFont != null) return italicFont;
if (italicFont != null) { return italicFont; }
public Font getItalicFont() { if (italicFont != null) return italicFont; FontData[] italicData = getModifiedFontData(SWT.ITALIC); italicFont = new Font(Display.getCurrent(), italicData); return italicFont; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/391f2606b4ea2c1fb5052d938ca90877ee7631f6/FontRegistry.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 10063, 336, 7193, 21466, 5711, 1435, 288, 5411, 309, 261, 7053, 335, 5711, 480, 446, 13, 7734, 327, 31709, 5711, 31, 5411, 10063, 751, 8526, 31709, 751, 273, 336, 4575, 5711, 751, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 10063, 336, 7193, 21466, 5711, 1435, 288, 5411, 309, 261, 7053, 335, 5711, 480, 446, 13, 7734, 327, 31709, 5711, 31, 5411, 10063, 751, 8526, 31709, 751, 273, 336, 4575, 5711, 751, 1...
" = " + hierarchyUsage.joinExp.getExpression(query)); }
" = " + hierarchyUsage.joinExp.getExpression(query)); }
void addToFrom( SqlQuery query, MondrianDef.Expression expression, RolapCube cube) { if (relation == null) { throw Util.newError( "cannot add hierarchy " + getUniqueName() + " to query: it does not have a <Table>, <View> or <Join>"); } final boolean failIfExists = false; if (cube != null) { HierarchyUsage hierarchyUsage = getSchema().getUsage(this,cube); query.addFrom(cube.getFact(), null, failIfExists); query.addFrom(hierarchyUsage.joinTable, null, failIfExists); query.addWhere( query.quoteIdentifier( cube.fact.getAlias(), hierarchyUsage.foreignKey) + " = " + hierarchyUsage.joinExp.getExpression(query)); } MondrianDef.Relation subRelation = relation; if (relation instanceof MondrianDef.Join) { if (expression != null) { // Suppose relation is // (((A join B) join C) join D) // and the fact table is // F // and our expression uses C. We want to make the expression // F left join ((A join B) join C). // Search for the smallest subset of the relation which // uses C. subRelation = relationSubset(relation, expression.getTableAlias()); } } query.addFrom(subRelation, null, failIfExists); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/RolapHierarchy.java/buggy/src/main/mondrian/rolap/RolapHierarchy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 9604, 1265, 12, 1082, 202, 5101, 1138, 843, 16, 490, 1434, 566, 304, 3262, 18, 2300, 2652, 16, 11714, 438, 39, 4895, 18324, 13, 288, 202, 202, 430, 261, 5488, 422, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 9604, 1265, 12, 1082, 202, 5101, 1138, 843, 16, 490, 1434, 566, 304, 3262, 18, 2300, 2652, 16, 11714, 438, 39, 4895, 18324, 13, 288, 202, 202, 430, 261, 5488, 422, 446, 13, ...
XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.WARNING);
XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.ERROR);
void build() { // xsl:import, xsl:include XSLTAttributeDef hrefAttr = new XSLTAttributeDef(null, "href", XSLTAttributeDef.T_URL, true, false,XSLTAttributeDef.WARNING); // xsl:preserve-space, xsl:strip-space XSLTAttributeDef elementsAttr = new XSLTAttributeDef(null, "elements", XSLTAttributeDef.T_SIMPLEPATTERNLIST, true, false, XSLTAttributeDef.WARNING); // XSLTAttributeDef anyNamespacedAttr = new XSLTAttributeDef("*", "*", // XSLTAttributeDef.T_CDATA, false); // xsl:output XSLTAttributeDef methodAttr = new XSLTAttributeDef(null, "method", XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef versionAttr = new XSLTAttributeDef(null, "version", XSLTAttributeDef.T_NMTOKEN, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef encodingAttr = new XSLTAttributeDef(null, "encoding", XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef omitXmlDeclarationAttr = new XSLTAttributeDef(null, "omit-xml-declaration", XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef standaloneAttr = new XSLTAttributeDef(null, "standalone", XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef doctypePublicAttr = new XSLTAttributeDef(null, "doctype-public", XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef doctypeSystemAttr = new XSLTAttributeDef(null, "doctype-system", XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef cdataSectionElementsAttr = new XSLTAttributeDef(null, "cdata-section-elements", XSLTAttributeDef.T_QNAMES, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef indentAttr = new XSLTAttributeDef(null, "indent", XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef mediaTypeAttr = new XSLTAttributeDef(null, "media-type", XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.WARNING); // Required. // It is an error if the name attribute is invalid on any of these elements // xsl:key, xsl:attribute-set, xsl:call-template, xsl:with-param, xsl:variable, xsl:param XSLTAttributeDef nameAttrRequired = new XSLTAttributeDef(null, "name", XSLTAttributeDef.T_QNAME, true, false,XSLTAttributeDef.ERROR); // Required. // Support AVT // xsl:element, xsl:attribute XSLTAttributeDef nameAVTRequired = new XSLTAttributeDef(null, "name", XSLTAttributeDef.T_AVT_QNAME, true, true,XSLTAttributeDef.WARNING); // Required. // Support AVT // xsl:processing-instruction XSLTAttributeDef nameAVT_NCNAMERequired = new XSLTAttributeDef(null, "name", XSLTAttributeDef.T_NCNAME, true, true,XSLTAttributeDef.WARNING); // Optional. // Static error if invalid // xsl:template XSLTAttributeDef nameAttrOpt_ERROR = new XSLTAttributeDef(null, "name", XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.ERROR); // Optional. // xsl:decimal-format XSLTAttributeDef nameAttrOpt = new XSLTAttributeDef(null, "name", XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.WARNING); // xsl:key XSLTAttributeDef useAttr = new XSLTAttributeDef(null, "use", XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.WARNING); // xsl:element, xsl:attribute XSLTAttributeDef namespaceAVTOpt = new XSLTAttributeDef(null, "namespace",XSLTAttributeDef.T_URL, false, true,XSLTAttributeDef.WARNING); // xsl:decimal-format XSLTAttributeDef decimalSeparatorAttr = new XSLTAttributeDef(null, "decimal-separator", XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, "."); XSLTAttributeDef infinityAttr = new XSLTAttributeDef(null, "infinity", XSLTAttributeDef.T_CDATA, false,XSLTAttributeDef.WARNING,"Infinity"); XSLTAttributeDef minusSignAttr = new XSLTAttributeDef(null, "minus-sign", XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR,"-"); XSLTAttributeDef NaNAttr = new XSLTAttributeDef(null, "NaN", XSLTAttributeDef.T_CDATA, false,XSLTAttributeDef.WARNING, "NaN"); XSLTAttributeDef percentAttr = new XSLTAttributeDef(null, "percent", XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, "%"); XSLTAttributeDef perMilleAttr = new XSLTAttributeDef(null, "per-mille", XSLTAttributeDef.T_CHAR, false, false,XSLTAttributeDef.ERROR /* ,"&#x2030;" */); XSLTAttributeDef zeroDigitAttr = new XSLTAttributeDef(null, "zero-digit", XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, "0"); XSLTAttributeDef digitAttr = new XSLTAttributeDef(null, "digit", XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, "#"); XSLTAttributeDef patternSeparatorAttr = new XSLTAttributeDef(null, "pattern-separator", XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR, ";"); // xsl:decimal-format XSLTAttributeDef groupingSeparatorAttr = new XSLTAttributeDef(null, "grouping-separator", XSLTAttributeDef.T_CHAR, false,XSLTAttributeDef.ERROR,","); // xsl:element, xsl:attribute-set, xsl:copy XSLTAttributeDef useAttributeSetsAttr = new XSLTAttributeDef(null, "use-attribute-sets", XSLTAttributeDef.T_QNAMES, false, false, XSLTAttributeDef.WARNING); // xsl:if, xsl:when XSLTAttributeDef testAttrRequired = new XSLTAttributeDef(null, "test", XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.WARNING); // Required. // xsl:value-of, xsl:for-each, xsl:copy-of XSLTAttributeDef selectAttrRequired = new XSLTAttributeDef(null, "select", XSLTAttributeDef.T_EXPR, true, false,XSLTAttributeDef.WARNING); // Optional. // xsl:variable, xsl:param, xsl:with-param XSLTAttributeDef selectAttrOpt = new XSLTAttributeDef(null, "select", XSLTAttributeDef.T_EXPR, false, false,XSLTAttributeDef.WARNING); // Optional. // Default: "node()" // xsl:apply-templates XSLTAttributeDef selectAttrDefNode = new XSLTAttributeDef(null, "select", XSLTAttributeDef.T_EXPR, false,XSLTAttributeDef.WARNING, "node()"); // Optional. // Default: "." // xsl:sort XSLTAttributeDef selectAttrDefDot = new XSLTAttributeDef(null, "select", XSLTAttributeDef.T_EXPR, false,XSLTAttributeDef.ERROR, "."); // xsl:key XSLTAttributeDef matchAttrRequired = new XSLTAttributeDef(null, "match", XSLTAttributeDef.T_PATTERN, true, false,XSLTAttributeDef.WARNING); // xsl:template XSLTAttributeDef matchAttrOpt = new XSLTAttributeDef(null, "match", XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.WARNING); // xsl:tempate XSLTAttributeDef priorityAttr = new XSLTAttributeDef(null, "priority", XSLTAttributeDef.T_NUMBER, false, false,XSLTAttributeDef.WARNING); // xsl:template, xsl:apply-templates XSLTAttributeDef modeAttr = new XSLTAttributeDef(null, "mode", XSLTAttributeDef.T_QNAME, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef spaceAttr = new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, "space", false, false, false, XSLTAttributeDef.WARNING, "default", Constants.ATTRVAL_STRIP, "preserve", Constants.ATTRVAL_PRESERVE); XSLTAttributeDef spaceAttrLiteral = new XSLTAttributeDef(Constants.S_XMLNAMESPACEURI, "space", XSLTAttributeDef.T_URL, false, true,XSLTAttributeDef.WARNING); // xsl:namespace-alias XSLTAttributeDef stylesheetPrefixAttr = new XSLTAttributeDef(null, "stylesheet-prefix", XSLTAttributeDef.T_CDATA, true, false,XSLTAttributeDef.WARNING); XSLTAttributeDef resultPrefixAttr = new XSLTAttributeDef(null, "result-prefix", XSLTAttributeDef.T_CDATA, true, false,XSLTAttributeDef.WARNING); // xsl:text, xsl:value-of XSLTAttributeDef disableOutputEscapingAttr = new XSLTAttributeDef(null, "disable-output-escaping", XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.WARNING); // xsl:number XSLTAttributeDef levelAttr = new XSLTAttributeDef(null, "level", false, false, false, XSLTAttributeDef.WARNING, "single", Constants.NUMBERLEVEL_SINGLE, "multiple", Constants.NUMBERLEVEL_MULTI, "any", Constants.NUMBERLEVEL_ANY); levelAttr.setDefault("single"); XSLTAttributeDef countAttr = new XSLTAttributeDef(null, "count", XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef fromAttr = new XSLTAttributeDef(null, "from", XSLTAttributeDef.T_PATTERN, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef valueAttr = new XSLTAttributeDef(null, "value", XSLTAttributeDef.T_EXPR, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef formatAttr = new XSLTAttributeDef(null, "format", XSLTAttributeDef.T_CDATA, false, true,XSLTAttributeDef.WARNING); formatAttr.setDefault("1"); // xsl:number, xsl:sort XSLTAttributeDef langAttr = new XSLTAttributeDef(null, "lang", XSLTAttributeDef.T_NMTOKEN, false, true,XSLTAttributeDef.ERROR); // xsl:number XSLTAttributeDef letterValueAttr = new XSLTAttributeDef(null, "letter-value", false, true, false, XSLTAttributeDef.WARNING, "alphabetic", Constants.NUMBERLETTER_ALPHABETIC, "traditional", Constants.NUMBERLETTER_TRADITIONAL); // xsl:number XSLTAttributeDef groupingSeparatorAVT = new XSLTAttributeDef(null, "grouping-separator", XSLTAttributeDef.T_CHAR, false, true,XSLTAttributeDef.WARNING); // xsl:number XSLTAttributeDef groupingSizeAttr = new XSLTAttributeDef(null, "grouping-size", XSLTAttributeDef.T_NUMBER, false, true,XSLTAttributeDef.WARNING); // xsl:sort XSLTAttributeDef dataTypeAttr = new XSLTAttributeDef(null, "data-type", false, true, true, XSLTAttributeDef.WARNING, "text", Constants.SORTDATATYPE_TEXT ,"number", Constants.SORTDATATYPE_TEXT); dataTypeAttr.setDefault("text"); // xsl:sort XSLTAttributeDef orderAttr = new XSLTAttributeDef(null, "order", false, true, false,XSLTAttributeDef.ERROR, "ascending", Constants.SORTORDER_ASCENDING, "descending", Constants.SORTORDER_DESCENDING); orderAttr.setDefault("ascending"); // xsl:sort XSLTAttributeDef caseOrderAttr = new XSLTAttributeDef(null, "case-order", false, true, false,XSLTAttributeDef.ERROR, "upper-first", Constants.SORTCASEORDER_UPPERFIRST , "lower-first", Constants.SORTCASEORDER_LOWERFIRST); // xsl:message XSLTAttributeDef terminateAttr = new XSLTAttributeDef(null, "terminate", XSLTAttributeDef.T_YESNO, false, false,XSLTAttributeDef.WARNING); terminateAttr.setDefault("no"); // top level attributes XSLTAttributeDef xslExcludeResultPrefixesAttr = new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, "exclude-result-prefixes", XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef xslExtensionElementPrefixesAttr = new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, "extension-element-prefixes", XSLTAttributeDef.T_PREFIX_URLLIST, false, false,XSLTAttributeDef.WARNING); // result-element-atts XSLTAttributeDef xslUseAttributeSetsAttr = new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, "use-attribute-sets", XSLTAttributeDef.T_QNAMES, false, false,XSLTAttributeDef.WARNING); XSLTAttributeDef xslVersionAttr = new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, "version", XSLTAttributeDef.T_NMTOKEN, false, false,XSLTAttributeDef.WARNING); XSLTElementDef charData = new XSLTElementDef(this, null, "text()", null /*alias */, null /* elements */, null, /* attributes */ new ProcessorCharacters(), ElemTextLiteral.class /* class object */); charData.setType(XSLTElementDef.T_PCDATA); XSLTElementDef whiteSpaceOnly = new XSLTElementDef(this, null, "text()", null /*alias */, null /* elements */, null, /* attributes */ null, ElemTextLiteral.class /* should be null? -sb */); charData.setType(XSLTElementDef.T_PCDATA); XSLTAttributeDef resultAttr = new XSLTAttributeDef(null, "*", XSLTAttributeDef.T_AVT, false, true,XSLTAttributeDef.WARNING); XSLTAttributeDef xslResultAttr = new XSLTAttributeDef(Constants.S_XSLNAMESPACEURL, "*", XSLTAttributeDef.T_CDATA, false, false,XSLTAttributeDef.WARNING); XSLTElementDef[] templateElements = new XSLTElementDef[22]; XSLTElementDef[] templateElementsAndParams = new XSLTElementDef[23]; XSLTElementDef[] templateElementsAndSort = new XSLTElementDef[23]; //exslt XSLTElementDef[] exsltFunctionElements = new XSLTElementDef[23]; XSLTElementDef[] charTemplateElements = new XSLTElementDef[15]; XSLTElementDef resultElement = new XSLTElementDef(this, null, "*", null /*alias */, templateElements /* elements */, new XSLTAttributeDef[]{ spaceAttrLiteral, // special xslExcludeResultPrefixesAttr, xslExtensionElementPrefixesAttr, xslUseAttributeSetsAttr, xslVersionAttr, xslResultAttr, resultAttr }, new ProcessorLRE(), ElemLiteralResult.class /* class object */, 20, true); XSLTElementDef unknownElement = new XSLTElementDef(this, "*", "unknown", null /*alias */, templateElementsAndParams /* elements */, new XSLTAttributeDef[]{ xslExcludeResultPrefixesAttr, xslExtensionElementPrefixesAttr, xslUseAttributeSetsAttr, xslVersionAttr, xslResultAttr, resultAttr }, new ProcessorUnknown(), ElemUnknown.class /* class object */, 20, true); XSLTElementDef xslValueOf = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "value-of", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ selectAttrRequired, disableOutputEscapingAttr }, new ProcessorTemplateElem(), ElemValueOf.class /* class object */, 20, true); XSLTElementDef xslCopyOf = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "copy-of", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ selectAttrRequired }, new ProcessorTemplateElem(), ElemCopyOf.class /* class object */, 20, true); XSLTElementDef xslNumber = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "number", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ levelAttr, countAttr, fromAttr, valueAttr, formatAttr, langAttr, letterValueAttr, groupingSeparatorAVT, groupingSizeAttr }, new ProcessorTemplateElem(), ElemNumber.class /* class object */, 20, true); // <!-- xsl:sort cannot occur after any other elements or // any non-whitespace character --> XSLTElementDef xslSort = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "sort", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ selectAttrDefDot, langAttr, dataTypeAttr, orderAttr, caseOrderAttr }, new ProcessorTemplateElem(), ElemSort.class/* class object */, 19, true ); XSLTElementDef xslWithParam = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "with-param", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorTemplateElem(), ElemWithParam.class /* class object */, 19, true); XSLTElementDef xslApplyTemplates = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "apply-templates", null /*alias */, new XSLTElementDef[]{ xslSort, xslWithParam } /* elements */, new XSLTAttributeDef[]{ selectAttrDefNode, modeAttr }, new ProcessorTemplateElem(), ElemApplyTemplates.class /* class object */, 20, true); XSLTElementDef xslApplyImports = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "apply-imports", null /*alias */, null /* elements */, new XSLTAttributeDef[]{}, new ProcessorTemplateElem(), ElemApplyImport.class /* class object */); XSLTElementDef xslForEach = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "for-each", null /*alias */, templateElementsAndSort, // (#PCDATA %instructions; %result-elements; | xsl:sort)* new XSLTAttributeDef[]{ selectAttrRequired, spaceAttr }, new ProcessorTemplateElem(), ElemForEach.class /* class object */, true, false, true, 20, true); XSLTElementDef xslIf = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "if", null /*alias */, templateElements /* elements */, // %template; new XSLTAttributeDef[]{ testAttrRequired, spaceAttr }, new ProcessorTemplateElem(), ElemIf.class /* class object */, 20, true); XSLTElementDef xslWhen = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "when", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ testAttrRequired, spaceAttr }, new ProcessorTemplateElem(), ElemWhen.class /* class object */, false, true, 1, true); XSLTElementDef xslOtherwise = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "otherwise", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ spaceAttr }, new ProcessorTemplateElem(), ElemOtherwise.class /* class object */, false, false, 2, false); XSLTElementDef xslChoose = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "choose", null /*alias */, new XSLTElementDef[]{ xslWhen, xslOtherwise } /* elements */, new XSLTAttributeDef[]{ spaceAttr }, new ProcessorTemplateElem(), ElemChoose.class /* class object */, true, false, true, 20, true); XSLTElementDef xslAttribute = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "attribute", null /*alias */, charTemplateElements /* elements */, // %char-template;> new XSLTAttributeDef[]{ nameAVTRequired, namespaceAVTOpt, spaceAttr }, new ProcessorTemplateElem(), ElemAttribute.class /* class object */, 20, true); XSLTElementDef xslCallTemplate = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "call-template", null /*alias */, new XSLTElementDef[]{ xslWithParam } /* elements */, new XSLTAttributeDef[]{ nameAttrRequired }, new ProcessorTemplateElem(), ElemCallTemplate.class /* class object */, 20, true); XSLTElementDef xslVariable = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "variable", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorTemplateElem(), ElemVariable.class /* class object */, 20, true); XSLTElementDef xslParam = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "param", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorTemplateElem(), ElemParam.class /* class object */, 19, true); XSLTElementDef xslText = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "text", null /*alias */, new XSLTElementDef[]{ charData } /* elements */, new XSLTAttributeDef[]{ disableOutputEscapingAttr }, new ProcessorText(), ElemText.class /* class object */, 20, true); XSLTElementDef xslProcessingInstruction = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "processing-instruction", null /*alias */, charTemplateElements /* elements */, // %char-template;> new XSLTAttributeDef[]{ nameAVT_NCNAMERequired, spaceAttr }, new ProcessorTemplateElem(), ElemPI.class /* class object */, 20, true); XSLTElementDef xslElement = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "element", null /*alias */, templateElements /* elements */, // %template; new XSLTAttributeDef[]{ nameAVTRequired, namespaceAVTOpt, useAttributeSetsAttr, spaceAttr }, new ProcessorTemplateElem(), ElemElement.class /* class object */, 20, true); XSLTElementDef xslComment = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "comment", null /*alias */, charTemplateElements /* elements */, // %char-template;> new XSLTAttributeDef[]{ spaceAttr }, new ProcessorTemplateElem(), ElemComment.class /* class object */, 20, true); XSLTElementDef xslCopy = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "copy", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ spaceAttr, useAttributeSetsAttr }, new ProcessorTemplateElem(), ElemCopy.class /* class object */, 20, true); XSLTElementDef xslMessage = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "message", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ terminateAttr }, new ProcessorTemplateElem(), ElemMessage.class /* class object */, 20, true); XSLTElementDef xslFallback = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "fallback", null /*alias */, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ spaceAttr }, new ProcessorTemplateElem(), ElemFallback.class /* class object */, 20, true); //exslt XSLTElementDef exsltFunction = new XSLTElementDef(this, Constants.S_EXSLT_FUNCTIONS_URL, "function", null /*alias */, exsltFunctionElements /* elements */, new XSLTAttributeDef[]{ nameAttrRequired }, new ProcessorExsltFunction(), ElemExsltFunction.class /* class object */); XSLTElementDef exsltResult = new XSLTElementDef(this, Constants.S_EXSLT_FUNCTIONS_URL, "result", null /*alias */, templateElements /* elements */, new XSLTAttributeDef[]{ selectAttrOpt }, new ProcessorExsltFuncResult(), ElemExsltFuncResult.class /* class object */); int i = 0; templateElements[i++] = charData; // #PCDATA // char-instructions templateElements[i++] = xslApplyTemplates; templateElements[i++] = xslCallTemplate; templateElements[i++] = xslApplyImports; templateElements[i++] = xslForEach; templateElements[i++] = xslValueOf; templateElements[i++] = xslCopyOf; templateElements[i++] = xslNumber; templateElements[i++] = xslChoose; templateElements[i++] = xslIf; templateElements[i++] = xslText; templateElements[i++] = xslCopy; templateElements[i++] = xslVariable; templateElements[i++] = xslMessage; templateElements[i++] = xslFallback; // instructions templateElements[i++] = xslProcessingInstruction; templateElements[i++] = xslComment; templateElements[i++] = xslElement; templateElements[i++] = xslAttribute; templateElements[i++] = resultElement; templateElements[i++] = unknownElement; templateElements[i++] = exsltResult; int k; for (k = 0; k < i; k++) { templateElementsAndParams[k] = templateElements[k]; templateElementsAndSort[k] = templateElements[k]; exsltFunctionElements[k] = templateElements[k]; } templateElementsAndParams[k] = xslParam; templateElementsAndSort[k] = xslSort; exsltFunctionElements[k] = xslParam; i = 0; charTemplateElements[i++] = charData; // #PCDATA // char-instructions charTemplateElements[i++] = xslApplyTemplates; charTemplateElements[i++] = xslCallTemplate; charTemplateElements[i++] = xslApplyImports; charTemplateElements[i++] = xslForEach; charTemplateElements[i++] = xslValueOf; charTemplateElements[i++] = xslCopyOf; charTemplateElements[i++] = xslNumber; charTemplateElements[i++] = xslChoose; charTemplateElements[i++] = xslIf; charTemplateElements[i++] = xslText; charTemplateElements[i++] = xslCopy; charTemplateElements[i++] = xslVariable; charTemplateElements[i++] = xslMessage; charTemplateElements[i++] = xslFallback; XSLTElementDef importDef = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "import", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ hrefAttr }, // EMPTY new ProcessorImport(), null /* class object */, 1, true); XSLTElementDef includeDef = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "include", null /*alias */, null /* elements */, // EMPTY new XSLTAttributeDef[]{ hrefAttr }, new ProcessorInclude(), null /* class object */, 20, true); XSLTElementDef[] topLevelElements = new XSLTElementDef[] {includeDef, importDef, // resultElement, whiteSpaceOnly, unknownElement, new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "strip-space", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ elementsAttr }, new ProcessorStripSpace(), null /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "preserve-space", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ elementsAttr }, new ProcessorPreserveSpace(), null /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "output", null /*alias */, null /* elements */, new XSLTAttributeDef[]{ methodAttr, versionAttr, encodingAttr, omitXmlDeclarationAttr, standaloneAttr, doctypePublicAttr, doctypeSystemAttr, cdataSectionElementsAttr, indentAttr, mediaTypeAttr, XSLTAttributeDef.m_foreignAttr }, new ProcessorOutputElem(), null /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "key", null /*alias */, null /* elements */, // EMPTY new XSLTAttributeDef[]{ nameAttrRequired, matchAttrRequired, useAttr }, new ProcessorKey(), null /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "decimal-format", null /*alias */, null /* elements */, // EMPTY new XSLTAttributeDef[]{ nameAttrOpt, decimalSeparatorAttr, groupingSeparatorAttr, infinityAttr, minusSignAttr, NaNAttr, percentAttr, perMilleAttr, zeroDigitAttr, digitAttr, patternSeparatorAttr }, new ProcessorDecimalFormat(), null /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "attribute-set", null /*alias */, new XSLTElementDef[]{ xslAttribute } /* elements */, new XSLTAttributeDef[]{ nameAttrRequired, useAttributeSetsAttr }, new ProcessorAttributeSet(), null /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "variable", null /*alias */, templateElements /* elements */, new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorGlobalVariableDecl(), ElemVariable.class /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "param", null /*alias */, templateElements /* elements */, new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorGlobalParamDecl(), ElemParam.class /* class object */, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "template", null /*alias */, templateElementsAndParams /* elements */, new XSLTAttributeDef[]{ matchAttrOpt, nameAttrOpt_ERROR, priorityAttr, modeAttr, spaceAttr }, new ProcessorTemplate(), ElemTemplate.class /* class object */, true, 20, true), new XSLTElementDef( this, Constants.S_XSLNAMESPACEURL, "namespace-alias", null /*alias */, null /* elements */, // EMPTY new XSLTAttributeDef[]{ stylesheetPrefixAttr, resultPrefixAttr }, new ProcessorNamespaceAlias(), null /* class object */, 20, true), new XSLTElementDef( this, Constants.S_BUILTIN_EXTENSIONS_URL, "component", null /*alias */, new XSLTElementDef[]{ new XSLTElementDef( this, Constants.S_BUILTIN_EXTENSIONS_URL, "script", null /*alias */, new XSLTElementDef[]{ charData } /* elements */, new XSLTAttributeDef[]{ new XSLTAttributeDef( null, "lang", XSLTAttributeDef.T_NMTOKEN, true, false,XSLTAttributeDef.WARNING), new XSLTAttributeDef( null, "src", XSLTAttributeDef.T_URL, false, false,XSLTAttributeDef.WARNING) }, new ProcessorLRE(), ElemExtensionScript.class /* class object */, 20, true) }, // EMPTY new XSLTAttributeDef[]{ new XSLTAttributeDef( null, "prefix", XSLTAttributeDef.T_NMTOKEN, true, false,XSLTAttributeDef.WARNING), new XSLTAttributeDef( null, "elements", XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.WARNING), new XSLTAttributeDef( null, "functions", XSLTAttributeDef.T_STRINGLIST, false, false,XSLTAttributeDef.WARNING) }, new ProcessorLRE(), ElemExtensionDecl.class /* class object */), exsltFunction}/* exslt */; //end of topevelElements XSLTAttributeDef excludeResultPrefixesAttr = new XSLTAttributeDef(null, "exclude-result-prefixes", XSLTAttributeDef.T_STRINGLIST, false,false,XSLTAttributeDef.WARNING); XSLTAttributeDef extensionElementPrefixesAttr = new XSLTAttributeDef(null, "extension-element-prefixes", XSLTAttributeDef.T_PREFIX_URLLIST, false,false,XSLTAttributeDef.WARNING); XSLTAttributeDef idAttr = new XSLTAttributeDef(null, "id", XSLTAttributeDef.T_CDATA, false,false,XSLTAttributeDef.WARNING); XSLTAttributeDef versionAttrRequired = new XSLTAttributeDef(null, "version", XSLTAttributeDef.T_NMTOKEN, true,false,XSLTAttributeDef.WARNING); XSLTElementDef stylesheetElemDef = new XSLTElementDef(this, Constants.S_XSLNAMESPACEURL, "stylesheet", "transform", topLevelElements, new XSLTAttributeDef[]{ extensionElementPrefixesAttr, excludeResultPrefixesAttr, idAttr, versionAttrRequired, spaceAttr }, new ProcessorStylesheetElement(), /* ContentHandler */ null /* class object */, true, -1, false); importDef.setElements(new XSLTElementDef[]{ stylesheetElemDef, resultElement, unknownElement }); includeDef.setElements(new XSLTElementDef[]{ stylesheetElemDef, resultElement, unknownElement }); build(null, null, null, new XSLTElementDef[]{ stylesheetElemDef, whiteSpaceOnly, resultElement, unknownElement }, null, new ProcessorStylesheetDoc(), /* ContentHandler */ null /* class object */ ); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/18fa4318bc003a5458d08aaa955c4777a73e15cd/XSLTSchema.java/buggy/src/org/apache/xalan/processor/XSLTSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1361, 1435, 225, 288, 202, 759, 20791, 30, 5666, 16, 20791, 30, 6702, 565, 20751, 1499, 3262, 3897, 3843, 273, 394, 20751, 1499, 3262, 12, 2011, 16, 315, 7547, 3113, 21394, 20751, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1361, 1435, 225, 288, 202, 759, 20791, 30, 5666, 16, 20791, 30, 6702, 565, 20751, 1499, 3262, 3897, 3843, 273, 394, 20751, 1499, 3262, 12, 2011, 16, 315, 7547, 3113, 21394, 20751, 14...
retarr[i++] = key + "#" + linkMap.get(key);
retarr[i++] = key + '#' + linkMap.get(key);
private String getConfigLoadString() { String retarr[] = new String[linkMap.size()]; synchronized (linkMap) { Iterator it = linkMap.keySet().iterator(); int i = 0; while(it.hasNext()) { String key = (String)it.next(); retarr[i++] = key + "#" + linkMap.get(key); } } return StringArrOption.arrayToString(retarr); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/62fd59041864b4ed1f43adc676de6bfb5ea977f3/SymlinkerToadlet.java/buggy/src/freenet/clients/http/SymlinkerToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 4367, 2563, 780, 1435, 288, 202, 202, 780, 325, 5399, 8526, 273, 394, 514, 63, 1232, 863, 18, 1467, 1435, 15533, 202, 202, 22043, 261, 1232, 863, 13, 288, 1082, 202, 319...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 4367, 2563, 780, 1435, 288, 202, 202, 780, 325, 5399, 8526, 273, 394, 514, 63, 1232, 863, 18, 1467, 1435, 15533, 202, 202, 22043, 261, 1232, 863, 13, 288, 1082, 202, 319...
if (jj_scan_token(ESCAPE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_23()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
if (jj_scan_token(35)) return true; if (jj_3R_21()) return true;
final private boolean jj_3R_61() { if (jj_scan_token(ESCAPE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_23()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/749c76d57fb48790e5c20c88ffd014da7887f4ec/SelectorParser.java/buggy/activemq-core/src/main/java/org/activemq/selector/SelectorParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9498, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 24849, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 9498, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 24849, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 1...
if (jj_3R_74()) return true;
Token xsp; if (jj_3_32()) return true; while (true) { xsp = jj_scanpos; if (jj_3_32()) { jj_scanpos = xsp; break; } } while (true) { xsp = jj_scanpos; if (jj_3_33()) { jj_scanpos = xsp; break; } }
final private boolean jj_3_34() { if (jj_3R_74()) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 5026, 1435, 288, 565, 3155, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 67, 1578, 10756, 327, 638, 31, 1323, 261, 3767, 13, 288, 619, 1752, 273, 10684...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 5026, 1435, 288, 565, 3155, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 67, 1578, 10756, 327, 638, 31, 1323, 261, 3767, 13, 288, 619, 1752, 273, 10684...
len = withParams.size();
len = withParams != null ? withParams.size() : 0;
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys != null ? sortKeys.size() : 0; List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); TemplateNode ret = new ApplyTemplatesNode(select.clone(stylesheet), mode, sortKeys2, withParams2, isDefault); if (children != null) ret.children = children.clone(stylesheet); if (next != null) ret.next = next.clone(stylesheet); return ret; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bfc868d8eca62bee7fa0aac5a51ae6c3bbaa7e55/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 5035, 907, 3236, 12, 24656, 13820, 13, 225, 288, 565, 509, 562, 273, 1524, 2396, 480, 446, 692, 1524, 2396, 18, 1467, 1435, 294, 374, 31, 565, 987, 1524, 2396, 22, 273, 394, 2407, 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, 5035, 907, 3236, 12, 24656, 13820, 13, 225, 288, 565, 509, 562, 273, 1524, 2396, 480, 446, 692, 1524, 2396, 18, 1467, 1435, 294, 374, 31, 565, 987, 1524, 2396, 22, 273, 394, 2407, 12, ...
subscribersToRehydrate = persistence.getSubscriberStateKeys(); if (logger.isDebugEnabled()) logger.debug("Initial number of subscribers: " + subscribersToRehydrate.size()); synchronized (distributorLock) { Iterator iter = subscribersToRehydrate.iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { String key = (String)iter.next(); if (! quiescenceMonitor.isQuiescenceRequired(key)) { if (logger.isDebugEnabled()) logger.debug("Ignoring subscriber " + key); toRemove.add(key); } else { if (logger.isDebugEnabled()) logger.debug("NOT Ignoring subscriber " + key); } } subscribersToRehydrate.removeAll(toRemove); if (logger.isDebugEnabled()) logger.debug("Trimmed number of subscribers: " + subscribersToRehydrate.size()); }
rehydrationEnvelope = new PersistenceEnvelope(); RehydrationResult rr = persistence.rehydrate(rehydrationEnvelope, state); if (rr.quiescenceMonitorState != null) { quiescenceMonitor.setState(rr.quiescenceMonitorState); }
private void rehydrate(Object state) { assert Thread.holdsLock(distributorLock); assert !Thread.holdsLock(transactionLock); if (persistence != null) { rehydrationEnvelope = new PersistenceEnvelope(); RehydrationResult rr = persistence.rehydrate(rehydrationEnvelope, state); if (rr.quiescenceMonitorState != null) { quiescenceMonitor.setState(rr.quiescenceMonitorState); } // Distributor tracks the subscribers who have yet to rehydrate // However, we only really care about those for whom we require // quiescence subscribersToRehydrate = persistence.getSubscriberStateKeys(); if (logger.isDebugEnabled()) logger.debug("Initial number of subscribers: " + subscribersToRehydrate.size()); // Synchronize so that a subscriber who already // is in discardRehydrationInfo doesnt cause a ConcurrentModExc synchronized (distributorLock) { Iterator iter = subscribersToRehydrate.iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { String key = (String)iter.next(); if (! quiescenceMonitor.isQuiescenceRequired(key)) { if (logger.isDebugEnabled()) logger.debug("Ignoring subscriber " + key); toRemove.add(key); } else { if (logger.isDebugEnabled()) logger.debug("NOT Ignoring subscriber " + key); } } subscribersToRehydrate.removeAll(toRemove); if (logger.isDebugEnabled()) logger.debug("Trimmed number of subscribers: " + subscribersToRehydrate.size()); } // end synchronized(distributorLock) if (lazyPersistence) { // Ignore any rehydrated message manager myMessageManager = new MessageManagerImpl(false); } else { myMessageManager = rr.messageManager; if (myMessageManager == null) { myMessageManager = new MessageManagerImpl(true); } } if (rr.undistributedEnvelopes != null) { didRehydrate = true; postRehydrationEnvelopes = new ArrayList(); postRehydrationEnvelopes.addAll(rr.undistributedEnvelopes); addEpochEnvelopes(rr.undistributedEnvelopes); } } else { myMessageManager = new MessageManagerImpl(false); } }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/3c39d155af1f21bc19dbfc03a73ccf42403e819b/Distributor.java/buggy/core/src/org/cougaar/core/blackboard/Distributor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 283, 30386, 12, 921, 919, 13, 288, 565, 1815, 225, 4884, 18, 21056, 87, 2531, 12, 2251, 19293, 2531, 1769, 565, 1815, 401, 3830, 18, 21056, 87, 2531, 12, 7958, 2531, 1769, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 283, 30386, 12, 921, 919, 13, 288, 565, 1815, 225, 4884, 18, 21056, 87, 2531, 12, 2251, 19293, 2531, 1769, 565, 1815, 401, 3830, 18, 21056, 87, 2531, 12, 7958, 2531, 1769, 56...
public String paren_chunk() throws RecognitionException { String text; Token any=null; String c = null; text = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:716:17: ( ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:716:17: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:716:17: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* loop52: do { int alt52=3; switch ( input.LA(1) ) { case EOL: alt52=3; break; case 23: alt52=3; break; case 21: alt52=1; break; case ID: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20: case 22: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: alt52=2; break; } switch (alt52) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:717:25: '(' c= paren_chunk ')' { match(input,21,FOLLOW_21_in_paren_chunk2069); following.push(FOLLOW_paren_chunk_in_paren_chunk2073); c=paren_chunk(); following.pop(); match(input,23,FOLLOW_23_in_paren_chunk2075); //System.err.println( "chunk [" + c + "]" ); if ( c == null ) { c = ""; } if ( text == null ) { text = "( " + c + " )"; } else { text = text + " ( " + c + " )"; } } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:729:19: any= . { any=(Token)input.LT(1); matchAny(input); //System.err.println( "any [" + any.getText() + "]" ); if ( text == null ) { text = any.getText(); } else { text = text + " " + any.getText(); } } break; default : break loop52; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 22146, 67, 6551, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 1171, 202, 202, 955, 273, 446, 31, 540, 202, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 22146, 67, 6551, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 1171, 202, 202, 955, 273, 446, 31, 540, 202, 3639, ...
returnType = descriptor.parseForReturnType(); parameterTypes = descriptor.parseForParameterTypes();
returnType = descriptor.parseForReturnType(classloader); parameterTypes = descriptor.parseForParameterTypes(classloader);
private VM_Method() { if (VM.VerifyAssertions) VM.assert(VM.NOT_REACHED); } /** * Standard initialization. */ VM_Method(VM_Class declaringClass, VM_Atom name, VM_Atom descriptor, int dictionaryId) { super(declaringClass, name, descriptor, dictionaryId); returnType = descriptor.parseForReturnType(); parameterTypes = descriptor.parseForParameterTypes(); for (int i = 0, n = parameterTypes.length; i < n; ++i) parameterWords += parameterTypes[i].getStackWords(); offset = VM_Member.UNINITIALIZED_OFFSET; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/b636840796d86d400a7f80ae18aa939fc2b89a95/VM_Method.java/buggy/rvm/src/vm/classLoader/VM_Method.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 8251, 67, 1305, 1435, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 18, 11231, 12, 7397, 18, 4400, 67, 29416, 15023, 1769, 225, 289, 225, 1783, 282, 380, 8263, 10313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8251, 67, 1305, 1435, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 18, 11231, 12, 7397, 18, 4400, 67, 29416, 15023, 1769, 225, 289, 225, 1783, 282, 380, 8263, 10313, ...