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
byte key_bytes[] = new byte[4];
byte[] key_bytes = new byte[4];
int txn() { Dbc acurs = null; Dbc bcurs = null; Dbc hcurs = null; Dbc tcurs = null; DbTxn t = null; Defrec rec = new Defrec(); Histrec hrec = new Histrec(); int account, branch, teller, ret; Dbt d_dbt = new Dbt(); Dbt d_histdbt = new Dbt(); Dbt k_dbt = new Dbt(); Dbt k_histdbt = new Dbt(); account = TpcbExample.this.random_id(TpcbExample.ACCOUNT); branch = TpcbExample.this.random_id(TpcbExample.BRANCH); teller = TpcbExample.this.random_id(TpcbExample.TELLER); // The history key will not actually be retrieved, // but it does need to be set to something. byte hist_key[] = new byte[4]; k_histdbt.setData(hist_key); k_histdbt.setSize(4 /* == sizeof(int)*/); byte key_bytes[] = new byte[4]; k_dbt.setData(key_bytes); k_dbt.setSize(4 /* == sizeof(int)*/); d_dbt.setFlags(Db.DB_DBT_USERMEM); d_dbt.setData(rec.data); d_dbt.setUserBufferLength(rec.length()); hrec.set_aid(account); hrec.set_bid(branch); hrec.set_tid(teller); hrec.set_amount(10); // Request 0 bytes since we're just positioning. d_histdbt.setFlags(Db.DB_DBT_PARTIAL); // START TIMING try { t = TpcbExample.this.txnBegin(null, 0); acurs = adb.cursor(t, 0); bcurs = bdb.cursor(t, 0); tcurs = tdb.cursor(t, 0); hcurs = hdb.cursor(t, 0); // Account record k_dbt.setRecordNumber(account); if (acurs.get(k_dbt, d_dbt, Db.DB_SET) != 0) throw new TpcbException("acurs get failed"); rec.set_balance(rec.get_balance() + 10); acurs.put(k_dbt, d_dbt, Db.DB_CURRENT); // Branch record k_dbt.setRecordNumber(branch); if ((ret = bcurs.get(k_dbt, d_dbt, Db.DB_SET)) != 0) throw new TpcbException("bcurs get failed"); rec.set_balance(rec.get_balance() + 10); bcurs.put(k_dbt, d_dbt, Db.DB_CURRENT); // Teller record k_dbt.setRecordNumber(teller); if (tcurs.get(k_dbt, d_dbt, Db.DB_SET) != 0) throw new TpcbException("ccurs get failed"); rec.set_balance(rec.get_balance() + 10); tcurs.put(k_dbt, d_dbt, Db.DB_CURRENT); // History record d_histdbt.setFlags(0); d_histdbt.setData(hrec.data); d_histdbt.setUserBufferLength(hrec.length()); if (hdb.put(t, k_histdbt, d_histdbt, Db.DB_APPEND) != 0) throw(new DbException("put failed")); acurs.close(); acurs = null; bcurs.close(); bcurs = null; tcurs.close(); tcurs = null; hcurs.close(); hcurs = null; // null out t in advance; if the commit fails, // we don't want to abort it in the catch clause. DbTxn tmptxn = t; t = null; tmptxn.commit(0); // END TIMING return (0); } catch (Exception e) { try { if (acurs != null) acurs.close(); if (bcurs != null) bcurs.close(); if (tcurs != null) tcurs.close(); if (hcurs != null) hcurs.close(); if (t != null) t.abort(); } catch (DbException dbe) { // not much we can do here. } if (TpcbExample.this.verbose) { System.out.println("Transaction A=" + String.valueOf(account) + " B=" + String.valueOf(branch) + " T=" + String.valueOf(teller) + " failed"); System.out.println("Reason: " + e.toString()); } return (-1); } }
2921 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2921/d03f220fde879509cab2ac1c73b71b7efb52b737/TpcbExample.java/clean/db/examples_java/src/com/sleepycat/examples/db/TpcbExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 509, 7827, 1435, 3639, 288, 5411, 8408, 71, 279, 2789, 273, 446, 31, 5411, 8408, 71, 324, 2789, 273, 446, 31, 5411, 8408, 71, 366, 2789, 273, 446, 31, 5411, 8408, 71, 268, 2789, 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, 540, 509, 7827, 1435, 3639, 288, 5411, 8408, 71, 279, 2789, 273, 446, 31, 5411, 8408, 71, 324, 2789, 273, 446, 31, 5411, 8408, 71, 366, 2789, 273, 446, 31, 5411, 8408, 71, 268, 2789, 273, ...
fail();
fail();
public void test() { fail(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/17136d00c7f4a16b7715ac4dd3b590408ad78ef6/PublicMethodNotExposedInInterface.java/buggy/plugins/InspectionGadgets/test/com/siyeh/igtest/abstraction/PublicMethodNotExposedInInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1435, 288, 540, 2321, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1435, 288, 540, 2321, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if( sm_logger.isLoggable( Level.FINER ) ) sm_logger.exiting( sm_className, methodName, new Integer( ret ) );
sm_logger.exiting( sm_className, methodName, ret );
private int getInt( String paramName ) throws DataException { String methodName = "getInt"; sm_logger.entering( sm_className, methodName, paramName ); int ret = 0; if( ! supportsNamedParameter() ) { int paramIndex = getIndexFromParamHints( paramName ); if( paramIndex > 0 ) ret = doGetInt( paramIndex ); } else { ret = doGetInt( paramName ); } if( sm_logger.isLoggable( Level.FINER ) ) sm_logger.exiting( sm_className, methodName, new Integer( ret ) ); return ret; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/2ac885878a23bee92cd501683619a083c7b0e41d/PreparedStatement.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/odaconsumer/PreparedStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 8145, 12, 514, 11466, 262, 1216, 1910, 503, 202, 95, 202, 202, 780, 4918, 273, 315, 588, 1702, 14432, 9506, 202, 4808, 67, 4901, 18, 2328, 310, 12, 3029, 67, 12434, 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, 225, 202, 1152, 509, 8145, 12, 514, 11466, 262, 1216, 1910, 503, 202, 95, 202, 202, 780, 4918, 273, 315, 588, 1702, 14432, 9506, 202, 4808, 67, 4901, 18, 2328, 310, 12, 3029, 67, 12434, 16, ...
TextArea txt = new TextArea("pac_contents2");
TextArea txt = new MyTextArea("pac_contents2");
void generateEncapForm(String error) throws IOException { Page page = newPage();; resp.setContentType("text/html"); Form frm = new Form(srvURL(myServletDescr(), null)); frm.method("POST"); frm.attribute("enctype", "multipart/form-data"); frm.add(new Input(Input.Hidden, "pacform", "1")); frm.add(new Input(Input.Hidden, "action", "Combined PAC"));// frm.add(new Input(Input.Hidden, ACTION_TAG)); Table tbl = new Table(0, "align=center cellspacing=16 cellpadding=0"); tbl.newRow(); tbl.newCell("align=center"); tbl.add("Generate a PAC file that combines the rules from an existing PAC file with the rules for this cache."); if (error != null) { tbl.newRow(); tbl.newCell("align=center"); tbl.add("<font color=red>"); tbl.add(error); tbl.add("</font>"); } tbl.newRow(); tbl.newCell("align=center"); String url = getParameter("encapsulated_url"); Input urlin = new Input(Input.Text, "encapsulated_url", (url != null ? url : "")); urlin.setSize(40); tbl.add("Enter the URL of a remote PAC file:<br>"); tbl.add(urlin); tbl.newRow(); tbl.newCell("align=center"); tbl.add("or the name of a local PAC file:<br>"); tbl.add(new Input(Input.File, "pac_contents1")); tbl.newRow(); tbl.newCell("align=center"); tbl.add(new Input(Input.Submit, "dummy", "Generate Combined PAC")); tbl.newRow(); tbl.newCell("align=center"); tbl.add("or enter PAC file contents here:<br>"); TextArea txt = new TextArea("pac_contents2"); txt.setSize(80, 20); tbl.add(txt); tbl.newRow(); tbl.newCell("align=center"); tbl.add(new Input(Input.Submit, "dummy", "Generate Combined PAC")); frm.add(tbl); page.add(frm); page.add(getFooter()); page.write(resp.getWriter()); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/b65d22c2e34c4cfdfe02b7adef778949c5092742/ProxyConfig.java/clean/src/org/lockss/servlet/ProxyConfig.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 2103, 4280, 438, 1204, 12, 780, 555, 13, 1216, 1860, 288, 565, 3460, 1363, 273, 394, 1964, 5621, 31, 565, 1718, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 565, 2748, 31074, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 2103, 4280, 438, 1204, 12, 780, 555, 13, 1216, 1860, 288, 565, 3460, 1363, 273, 394, 1964, 5621, 31, 565, 1718, 18, 542, 8046, 2932, 955, 19, 2620, 8863, 565, 2748, 31074, 273, 394...
} else { return Spacing.createSpacing(0, 0, 0, myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines());
public Spacing getSpacing(Block child1, Block child2) { final AbstractSyntheticBlock syntheticBlock1 = ((AbstractSyntheticBlock)child1); final AbstractSyntheticBlock syntheticBlock2 = ((AbstractSyntheticBlock)child2); if (syntheticBlock2.startsWithCDATA() || syntheticBlock1.endsWithCDATA()) { return Spacing.getReadOnlySpacing(); } if (syntheticBlock2.isJspTextBlock() || syntheticBlock1.isJspTextBlock()) { return Spacing.createSafeSpacing(myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines()); } if (syntheticBlock2.isJspxTextBlock() || syntheticBlock1.isJspxTextBlock()) { return Spacing.createSpacing(0, 0, 1, myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines()); } if (myXmlFormattingPolicy.keepWhiteSpacesInsideTag(getTag())) return Spacing.getReadOnlySpacing(); if (myXmlFormattingPolicy.getShouldKeepWhiteSpaces()) { return Spacing.getReadOnlySpacing(); } if (syntheticBlock2.startsWithTag() ) { final XmlTag startTag = syntheticBlock2.getStartTag(); if (myXmlFormattingPolicy.keepWhiteSpacesInsideTag(startTag) && startTag.textContains('\n')) return Spacing.getReadOnlySpacing(); } boolean saveSpacesBetweenTagAndText = myXmlFormattingPolicy.shouldSaveSpacesBetweenTagAndText() && syntheticBlock1.getTextRange().getEndOffset() < syntheticBlock2.getTextRange().getStartOffset(); if (syntheticBlock1.endsWithTextElement() && syntheticBlock2.startsWithTextElement()) { return Spacing.createSafeSpacing(myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines()); } if (syntheticBlock1.endsWithText()) { //text</tag if (saveSpacesBetweenTagAndText) { return Spacing.createSafeSpacing(myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines()); } else { return Spacing.createSpacing(0, 0, 0, myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines()); } } else if (syntheticBlock1.isTagDescription() && syntheticBlock2.isTagDescription()) { //></ return Spacing.createSpacing(0, 0, 0, myXmlFormattingPolicy.getShouldKeepLineBreaks(), myXmlFormattingPolicy.getKeepBlankLines()); } else if (syntheticBlock2.startsWithText()) { //>text if (saveSpacesBetweenTagAndText) { return Spacing.createSafeSpacing(true, myXmlFormattingPolicy.getKeepBlankLines()); } else { return Spacing.createSpacing(0, 0, 0, true, myXmlFormattingPolicy.getKeepBlankLines()); } } else if (syntheticBlock1.isTagDescription() && syntheticBlock2.startsWithTag()) { return Spacing.createSpacing(0, 0, 0, true, myXmlFormattingPolicy.getKeepBlankLines()); } else if (syntheticBlock1.insertLineFeedAfter()) { return Spacing.createSpacing(0,0,1,true,myXmlFormattingPolicy.getKeepBlankLines()); } else if (syntheticBlock1.endsWithTag() && syntheticBlock2.isTagDescription()) { return Spacing.createSpacing(0, 0, 0, true, myXmlFormattingPolicy.getKeepBlankLines()); } else { return createDefaultSpace(true); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/c5c9680bc54deef77e2546bc22f5fffd9ebae952/XmlTagBlock.java/buggy/source/com/intellij/psi/formatter/xml/XmlTagBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5878, 5330, 1322, 84, 5330, 12, 1768, 1151, 21, 16, 3914, 1151, 22, 13, 288, 565, 727, 4115, 10503, 16466, 1768, 25535, 1768, 21, 273, 14015, 7469, 10503, 16466, 1768, 13, 3624, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5878, 5330, 1322, 84, 5330, 12, 1768, 1151, 21, 16, 3914, 1151, 22, 13, 288, 565, 727, 4115, 10503, 16466, 1768, 25535, 1768, 21, 273, 14015, 7469, 10503, 16466, 1768, 13, 3624, 21,...
server.loadOptions();
void loadGame(String filename) { File file; if (filename.equals("--latest")) { File dir = new File(Constants.saveDirname); if (!dir.exists() || !dir.isDirectory()) { Log.error("No saves directory"); dispose(); } String [] filenames = dir.list(new SaveGameFilter()); if (filenames.length < 1) { Log.error("No savegames found in saves directory"); dispose(); } file = new File(Constants.saveDirname + File.separator + latestSaveFilename(filenames)); } else { file = new File(Constants.saveDirname + File.separator + filename); } try { Log.event("Loading game from " + file); FileReader fileReader = new FileReader(file); BufferedReader in = new BufferedReader(fileReader); String buf; buf = in.readLine(); if (!buf.equals(Constants.saveGameVersion)) { Log.error("Can't load this savegame version."); dispose(); } // Reset flags that are not in the savegame file. clearFlags(); VariantSupport.loadVariant(in.readLine(), in.readLine()); initAndLoadData(); // _before_ Creatures get read buf = in.readLine(); int numPlayers = Integer.parseInt(buf); buf = in.readLine(); turnNumber = Integer.parseInt(buf); buf = in.readLine(); activePlayerNum = Integer.parseInt(buf); buf = in.readLine(); phase = Integer.parseInt(buf); java.util.List creatures = Creature.getCreatures(); Iterator it = creatures.iterator(); while (it.hasNext()) { Creature creature = (Creature)it.next(); buf = in.readLine(); int count = Integer.parseInt(buf); caretaker.setCount(creature,count); } players.clear(); if (battle != null) { server.allCleanupBattle(); } // Players for (int i = 0; i < numPlayers; i++) { String name = in.readLine(); Player player = new Player(name, this); players.add(player); String type = in.readLine(); player.setType(type); String color = in.readLine(); player.setColor(color); String tower= in.readLine(); player.setTower(tower); buf = in.readLine(); int score = Integer.parseInt(buf); player.setScore(score); buf = in.readLine(); player.setDead(Boolean.valueOf(buf).booleanValue()); buf = in.readLine(); int mulligansLeft = Integer.parseInt(buf); player.setMulligansLeft(mulligansLeft); String playersElim = in.readLine(); if (playersElim.equals("null")) { playersElim = ""; } player.setPlayersElim(playersElim); buf = in.readLine(); int numMarkersAvailable = Integer.parseInt(buf); for (int j = 0; j < numMarkersAvailable; j++) { String markerId = in.readLine(); player.addLegionMarker(markerId); } buf = in.readLine(); player.setMovementRoll(Integer.parseInt(buf)); buf = in.readLine(); player.setTeleported(Boolean.valueOf(buf).booleanValue()); buf = in.readLine(); player.setSummoned(Boolean.valueOf(buf).booleanValue()); buf = in.readLine(); int numLegions = Integer.parseInt(buf); // Legions for (int j = 0; j < numLegions; j++) { Legion legion = readLegion(in, player, false); } } initServerAndClients(); syncAutoPlay(); // Battle stuff buf = in.readLine(); if (buf != null && buf.length() > 0) { String engagementHexLabel = buf.toString(); buf = in.readLine(); int battleTurnNum = Integer.parseInt(buf); buf = in.readLine(); String battleActivePlayerName = buf; buf = in.readLine(); int battlePhase = Integer.parseInt(buf); buf = in.readLine(); int summonState = Integer.parseInt(buf); buf = in.readLine(); int carryDamage = Integer.parseInt(buf); buf = in.readLine(); boolean driftDamageApplied = Boolean.valueOf(buf).booleanValue(); buf = in.readLine(); int numCarryTargets = Integer.parseInt(buf); Set carryTargets = new HashSet(); for (int i = 0; i < numCarryTargets; i++) { buf = in.readLine(); carryTargets.add(buf); } Player attackingPlayer = getActivePlayer(); Legion attacker = readLegion(in, attackingPlayer, true); Player defendingPlayer = getFirstEnemyLegion( engagementHexLabel, attackingPlayer).getPlayer(); Legion defender = readLegion(in, defendingPlayer, true); int activeLegionNum; if (battleActivePlayerName.equals(attackingPlayer.getName())) { activeLegionNum = Constants.ATTACKER; } else { activeLegionNum = Constants.DEFENDER; } battle = new Battle(this, attacker.getMarkerId(), defender.getMarkerId(), activeLegionNum, engagementHexLabel, battleTurnNum, battlePhase); battle.setSummonState(summonState); battle.setCarryDamage(carryDamage); battle.setDriftDamageApplied(driftDamageApplied); battle.setCarryTargets(carryTargets); battle.init(); } server.loadOptions(); // Setup MasterBoard server.allInitBoard(); server.allAddMarkers(); setupPhase(); server.allUpdateStatusScreen(); server.allUpdateCaretakerDisplay(); } // FileNotFoundException, IOException, NumberFormatException catch (Exception e) { Log.error(e + " Tried to load corrupt savegame."); e.printStackTrace(); dispose(); } fixMulligans(); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/c8c5d04f1da33f842af024348878243346d9261d/Game.java/clean/Colossus/net/sf/colossus/server/Game.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1262, 12496, 12, 780, 1544, 13, 565, 288, 3639, 1387, 585, 31, 3639, 309, 261, 3459, 18, 14963, 2932, 413, 13550, 6, 3719, 3639, 288, 5411, 1387, 1577, 273, 394, 1387, 12, 2918, 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, 918, 1262, 12496, 12, 780, 1544, 13, 565, 288, 3639, 1387, 585, 31, 3639, 309, 261, 3459, 18, 14963, 2932, 413, 13550, 6, 3719, 3639, 288, 5411, 1387, 1577, 273, 394, 1387, 12, 2918, 18...
node.repaint();
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (object.getId() == id) { node.setHierarchyObject(object); node.setNodeDecoration(); node.repaint(); } } } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/DataSaveVisitor.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/DataSaveVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12, 2040, 907, 756, 13, 565, 288, 3639, 1525, 612, 273, 14015, 2040, 751, 13, 756, 18, 588, 12074, 921, 1435, 2934, 26321, 5621, 3639, 4498, 277, 273, 2199, 18, 9838, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12, 2040, 907, 756, 13, 565, 288, 3639, 1525, 612, 273, 14015, 2040, 751, 13, 756, 18, 588, 12074, 921, 1435, 2934, 26321, 5621, 3639, 4498, 277, 273, 2199, 18, 9838, 5...
assertNode( root.getChild( 1 ).getChild( 0 ), "Toast", Token.IDENTIFIER, 0 );
assertNode(root.getChild(1).getChild(0), "Toast", Token.IDENTIFIER, 0);
public void testImportStatement_As_NoDots() throws Exception { Parser parser = newParser( "import Cheese as Toast" ); CSTNode root = parser.importStatement(); assertNode( root, "import", Token.KEYWORD_IMPORT, 2 ); { assertNode( root.getChild( 0 ), "Cheese", Token.IDENTIFIER, 0 ); assertNode( root.getChild( 1 ), "as", Token.KEYWORD_AS, 1 ); { assertNode( root.getChild( 1 ).getChild( 0 ), "Toast", Token.IDENTIFIER, 0 ); } } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/3d37acd34fcf44c4a51bd104ef70043af62c7d99/ParserTest.java/clean/src/test/org/codehaus/groovy/syntax/parser/ParserTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5010, 3406, 67, 1463, 67, 2279, 40, 6968, 1435, 3639, 1216, 1185, 565, 288, 3639, 6783, 2082, 273, 394, 2678, 12, 315, 5666, 22682, 3392, 487, 2974, 689, 6, 11272, 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, 918, 1842, 5010, 3406, 67, 1463, 67, 2279, 40, 6968, 1435, 3639, 1216, 1185, 565, 288, 3639, 6783, 2082, 273, 394, 2678, 12, 315, 5666, 22682, 3392, 487, 2974, 689, 6, 11272, 3639, ...
public static BreakIterator getWordInstance(Locale where) { if (where == null) { throw new NullPointerException(); } return new RuleBasedBreakIterator(com.ibm.icu.text.BreakIterator .getWordInstance(where)); }
public static BreakIterator getWordInstance() { return new RuleBasedBreakIterator(com.ibm.icu.text.BreakIterator .getWordInstance()); }
public static BreakIterator getWordInstance(Locale where) { if (where == null) { throw new NullPointerException(); } return new RuleBasedBreakIterator(com.ibm.icu.text.BreakIterator .getWordInstance(where)); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/019def355790934e1681619028e65dda09efed65/BreakIterator.java/buggy/modules/text/src/main/java/java/text/BreakIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 17030, 3198, 336, 3944, 1442, 12, 3916, 1625, 13, 288, 202, 565, 309, 261, 6051, 422, 446, 13, 288, 5411, 604, 394, 10108, 5621, 3639, 289, 202, 565, 327, 394, 6781, 9802...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 17030, 3198, 336, 3944, 1442, 12, 3916, 1625, 13, 288, 202, 565, 309, 261, 6051, 422, 446, 13, 288, 5411, 604, 394, 10108, 5621, 3639, 289, 202, 565, 327, 394, 6781, 9802...
final int removeDuplicates() {
int removeDuplicates() {
final int removeDuplicates() { int j = 0; for (int i = 1; i < length; i++) { if (array[i].gid != array[j].gid) { if (i != ++j) array[j] = array[i]; } } length = ++j; return length; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/ExtArrayNodeSet.java/clean/src/org/exist/dom/ExtArrayNodeSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 6385, 509, 1206, 23897, 1435, 288, 1082, 202, 474, 525, 273, 374, 31, 1082, 202, 1884, 261, 474, 277, 273, 404, 31, 277, 411, 769, 31, 277, 27245, 288, 9506, 202, 430, 261, 1126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6385, 509, 1206, 23897, 1435, 288, 1082, 202, 474, 525, 273, 374, 31, 1082, 202, 1884, 261, 474, 277, 273, 404, 31, 277, 411, 769, 31, 277, 27245, 288, 9506, 202, 430, 261, 1126, ...
dic.put(PdfName.FONTNAME, new PdfName(fontName + style));
dic.put(PdfName.FONTNAME, new PdfName(subsetPrefix + fontName + style));
protected PdfDictionary getFontDescriptor(PdfIndirectReference fontStream, String subsetPrefix) throws DocumentException { PdfDictionary dic = new PdfDictionary(PdfName.FONTDESCRIPTOR); dic.put(PdfName.ASCENT, new PdfNumber((int)os_2.sTypoAscender * 1000 / head.unitsPerEm)); dic.put(PdfName.CAPHEIGHT, new PdfNumber((int)os_2.sCapHeight * 1000 / head.unitsPerEm)); dic.put(PdfName.DESCENT, new PdfNumber((int)os_2.sTypoDescender * 1000 / head.unitsPerEm)); dic.put(PdfName.FONTBBOX, new PdfRectangle( (int)head.xMin * 1000 / head.unitsPerEm, (int)head.yMin * 1000 / head.unitsPerEm, (int)head.xMax * 1000 / head.unitsPerEm, (int)head.yMax * 1000 / head.unitsPerEm)); if (cff) { if (encoding.startsWith("Identity-")) dic.put(PdfName.FONTNAME, new PdfName(fontName+"-"+encoding)); else dic.put(PdfName.FONTNAME, new PdfName(fontName + style)); } else dic.put(PdfName.FONTNAME, new PdfName(subsetPrefix + fontName + style)); dic.put(PdfName.ITALICANGLE, new PdfNumber(italicAngle)); dic.put(PdfName.STEMV, new PdfNumber(80)); if (fontStream != null) { if (cff) dic.put(PdfName.FONTFILE3, fontStream); else dic.put(PdfName.FONTFILE2, fontStream); } int flags = 0; if (isFixedPitch) flags |= 1; flags |= fontSpecific ? 4 : 32; if ((head.macStyle & 2) != 0) flags |= 64; if ((head.macStyle & 1) != 0) flags |= 262144; dic.put(PdfName.FLAGS, new PdfNumber(flags)); return dic; }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/04049135e3369b923393d9d5e133fd580594f7e4/TrueTypeFont.java/buggy/itext/src/com/lowagie/text/pdf/TrueTypeFont.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 9989, 10905, 18776, 3187, 12, 18562, 24943, 2404, 3512, 1228, 16, 514, 7931, 2244, 13, 1216, 4319, 503, 288, 3639, 9989, 10905, 11681, 273, 394, 9989, 10905, 12, 18562, 461, 18, 25221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9989, 10905, 18776, 3187, 12, 18562, 24943, 2404, 3512, 1228, 16, 514, 7931, 2244, 13, 1216, 4319, 503, 288, 3639, 9989, 10905, 11681, 273, 394, 9989, 10905, 12, 18562, 461, 18, 25221...
MatchResult result; Perl5Matcher matcher = new Perl5Matcher(); PatternMatcherInput input;
Matcher dataMatcher;
private void setFilter(Perl5Pattern patComment, Perl5Pattern patData, Vector vStrings) throws IOException, BadFilterException { MatchResult result; Perl5Matcher matcher = new Perl5Matcher(); PatternMatcherInput input; LDAPFilter tmpFilter = null; input = new PatternMatcherInput ( m_strLine ); if ( ! ( matcher.contains ( input, patComment ) ) ) { input.setCurrentOffset(input.getBeginOffset()); // System.out.println ( "\nNEW LINE: " + m_strLine ); if ( ! vStrings.isEmpty() ) { vStrings.removeAllElements(); } while ( matcher.contains ( input, patData ) ) { // Within this while loop, we're looking for // all the data tokens. Our regular // expression is setup to look for words // separated by whitespace or sets of // characters in quotataion marks. A remnant // of the regexp is that we have two // backreferences, only one will have data at // any time. result = matcher.getMatch(); for ( int i = 1; i <=2; i++ ) { if ( result.group(i) != null ) { if ( ! result.group(i).equals ( "" ) ) { //System.out.println ( "Match #" + i + // ": \"" + result.group(i) + "\"" ); vStrings.addElement ( result.group(i)); } } } } switch ( vStrings.size() ) { case 1: // If the current filter set is not null, // add it to the filter set vector. if ( m_tmpFilterSet != null ) { m_vFilterSet.addElement ( m_tmpFilterSet ); } // Now create a new filterset. m_tmpFilterSet = new LDAPIntFilterSet ( (String)vStrings.elementAt ( 0 ) ); break; // Two tokens mens we're the the second (or // higher line in a token. We need to append // the information stored in the list onto // the tmpFilter. case 2: if ( ( m_strLastMatchPattern != null ) && ( m_strLastDelimiter != null ) ) { tmpFilter = new LDAPFilter( m_strLastMatchPattern, m_strLastDelimiter, (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), DEFAULT_SCOPE ); tmpFilter.setLine ( m_nLine ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.appendFilter ( tmpFilter ); } else { throw MakeException ( "Attempting to add a filter to a null filterset" ); } } else { throw MakeException ( "Attempting to create a relative filter with no preceeding full filter" ); } break; // Three tokens means we're the second (or // higher line in a filter. create a new // filter grabbing info from the last filter case 3: if ( ( m_strLastMatchPattern != null ) && ( m_strLastDelimiter != null ) ) { tmpFilter = new LDAPFilter ( m_strLastMatchPattern, m_strLastDelimiter, (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), (String)vStrings.elementAt ( 2 ) ); tmpFilter.setLine ( m_nLine ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.appendFilter ( tmpFilter ); } else { throw MakeException ("Attempting to add a filter to a null filterset"); } } else { throw MakeException ("Attempting to create a relative filter with no preceeding full filter" ); } break; // 4 tokens means this is the first line in a // token. All data is new. However, we're using // the default scope. case 4: tmpFilter = new LDAPFilter ( (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), (String)vStrings.elementAt ( 2 ), (String)vStrings.elementAt ( 3 ), DEFAULT_SCOPE ); tmpFilter.setLine ( m_nLine ); m_strLastMatchPattern = (String)vStrings.elementAt ( 0 ); m_strLastDelimiter = (String)vStrings.elementAt ( 1 ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.newFilter ( tmpFilter ); } else { throw MakeException ("Attempting to add a filter to a null filterset"); } break; // 5 tokens means this is the first line in a // token. All data is new. case 5: tmpFilter = new LDAPFilter ( (String)vStrings.elementAt ( 0 ), (String)vStrings.elementAt ( 1 ), (String)vStrings.elementAt ( 2 ), (String)vStrings.elementAt ( 3 ), (String)vStrings.elementAt ( 4 ) ); tmpFilter.setLine ( m_nLine ); m_strLastMatchPattern = (String)vStrings.elementAt ( 0 ); m_strLastDelimiter = (String)vStrings.elementAt ( 1 ); if ( m_tmpFilterSet != null ) { m_tmpFilterSet.newFilter ( tmpFilter ); } else { throw MakeException ("Attempting to add a filter to a null filterset"); } break; default: throw MakeException ( "Wrong number of tokens (" + vStrings.size() + ")" ); //break; } } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/2548bfaf91c01754e5221652f050a69ba2635d61/LDAPFilterDescriptor.java/buggy/directory/java-sdk/ldapfilter/netscape/ldap/util/LDAPFilterDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 22855, 12, 2173, 80, 25, 3234, 9670, 4469, 16, 5722, 80, 25, 3234, 9670, 751, 16, 1377, 5589, 331, 7957, 13, 1216, 1860, 16, 6107, 1586, 503, 288, 3639, 4639, 1253, 563, 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, 918, 22855, 12, 2173, 80, 25, 3234, 9670, 4469, 16, 5722, 80, 25, 3234, 9670, 751, 16, 1377, 5589, 331, 7957, 13, 1216, 1860, 16, 6107, 1586, 503, 288, 3639, 4639, 1253, 563, 31, ...
if (!(throwType instanceof ObjectType)) throw new DataflowAnalysisException("Non object type thrown by " + pei); exceptionTypeSet.addExplicit((ObjectType) throwType);
if (throwType instanceof ObjectType) { exceptionTypeSet.addExplicit((ObjectType) throwType); } else if (throwType instanceof ExceptionObjectType) { exceptionTypeSet.addAll(((ExceptionObjectType)throwType).getExceptionSet()); } else { throw new DataflowAnalysisException("Non object type " + throwType + " thrown by " + pei + " in " + SignatureConverter.convertMethodSignature(methodGen)); }
private ExceptionSet enumerateExceptionTypes(BasicBlock basicBlock) throws ClassNotFoundException, DataflowAnalysisException { ExceptionSet exceptionTypeSet = new ExceptionSet(); InstructionHandle pei = basicBlock.getExceptionThrower(); Instruction ins = pei.getInstruction(); // Get the exceptions that BCEL knows about. // Note that all of these are unchecked. ExceptionThrower exceptionThrower = (ExceptionThrower) ins; Class[] exceptionList = exceptionThrower.getExceptions(); for (int i = 0; i < exceptionList.length; ++i) { exceptionTypeSet.addImplicit(new ObjectType(exceptionList[i].getName())); } // Assume that an Error may be thrown by any instruction. exceptionTypeSet.addImplicit(Hierarchy.ERROR_TYPE); if (ins instanceof ATHROW) { // For ATHROW instructions, we generate *two* blocks // for which the ATHROW is an exception thrower. // // - The first, empty basic block, does the null check // - The second block, which actually contains the ATHROW, // throws the object on the top of the operand stack // // We make a special case of the block containing the ATHROW, // by removing all of the implicit exceptions, // and using type information to figure out what is thrown. if (basicBlock.containsInstruction(pei)) { // This is the actual ATHROW, not the null check // and implicit exceptions. exceptionTypeSet.clear(); TypeFrame frame = typeDataflow.getFactAtLocation(new Location(pei, basicBlock)); // Check whether or not the frame is valid. // Sun's javac sometimes emits unreachable code. // For example, it will emit code that follows a JSR // subroutine call that never returns. // If the frame is invalid, then we can just make // a conservative assumption that anything could be // thrown at this ATHROW. if (!frame.isValid()) { exceptionTypeSet.addExplicit(Type.THROWABLE); } else { Type throwType = frame.getTopValue(); if (!(throwType instanceof ObjectType)) throw new DataflowAnalysisException("Non object type thrown by " + pei); exceptionTypeSet.addExplicit((ObjectType) throwType); } } } // If it's an InvokeInstruction, add declared exceptions and RuntimeException if (ins instanceof InvokeInstruction) { InvokeInstruction inv = (InvokeInstruction) ins; ObjectType[] declaredExceptionList = Hierarchy.findDeclaredExceptions(inv, cpg); if (declaredExceptionList == null) { // Couldn't find declared exceptions, // so conservatively assume it could thrown any checked exception. if (DEBUG) System.out.println("Couldn't find declared exceptions for " + SignatureConverter.convertMethodSignature(inv, cpg)); exceptionTypeSet.addExplicit(Hierarchy.EXCEPTION_TYPE); } else { for (int i = 0; i < declaredExceptionList.length; ++i) { exceptionTypeSet.addExplicit(declaredExceptionList[i]); } } exceptionTypeSet.addImplicit(Hierarchy.RUNTIME_EXCEPTION_TYPE); } if (DEBUG) System.out.println(pei + " can throw " + exceptionTypeSet); return exceptionTypeSet; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/da47641aa20cee8fa3062e52bcd3ddf77ea51629/PruneInfeasibleExceptionEdges.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/PruneInfeasibleExceptionEdges.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1185, 694, 4241, 503, 2016, 12, 8252, 1768, 5337, 1768, 13, 202, 202, 15069, 10403, 16, 1910, 2426, 9418, 503, 288, 202, 202, 503, 694, 1520, 559, 694, 273, 394, 1185, 694, 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, 202, 1152, 1185, 694, 4241, 503, 2016, 12, 8252, 1768, 5337, 1768, 13, 202, 202, 15069, 10403, 16, 1910, 2426, 9418, 503, 288, 202, 202, 503, 694, 1520, 559, 694, 273, 394, 1185, 694, 5...
return ordinateOwner; }
return ordinateOwner; }
public CubeView getOrdinateOwner() throws OLAPException { return ordinateOwner; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianEdgeView.java/buggy/src/main/mondrian/jolap/MondrianEdgeView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 4895, 1767, 10117, 72, 3322, 5541, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 2463, 4642, 3322, 5541, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 4895, 1767, 10117, 72, 3322, 5541, 1435, 1216, 531, 48, 2203, 503, 288, 202, 202, 2463, 4642, 3322, 5541, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
public ByteCodePatternMatch(ByteCodePattern byteCodePattern) { this.byteCodePattern = byteCodePattern; this.patternElementMatchList = new LinkedList<PatternElementMatch>(); this.bindingSet = null; this.elementIter = byteCodePattern.patternElementIterator();
private ByteCodePatternMatch() {
public ByteCodePatternMatch(ByteCodePattern byteCodePattern) { this.byteCodePattern = byteCodePattern; this.patternElementMatchList = new LinkedList<PatternElementMatch>(); this.bindingSet = null; this.elementIter = byteCodePattern.patternElementIterator(); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/a16b798fcec53e34f53ff2980688c1c8ea951866/ByteCodePatternMatch.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/bcp/ByteCodePatternMatch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3506, 1085, 3234, 2060, 12, 3216, 1085, 3234, 1160, 1085, 3234, 13, 288, 202, 202, 2211, 18, 7229, 1085, 3234, 273, 1160, 1085, 3234, 31, 202, 202, 2211, 18, 4951, 1046, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3506, 1085, 3234, 2060, 12, 3216, 1085, 3234, 1160, 1085, 3234, 13, 288, 202, 202, 2211, 18, 7229, 1085, 3234, 273, 1160, 1085, 3234, 31, 202, 202, 2211, 18, 4951, 1046, 2060, ...
addStandardAnnotationsToProject(rootModel);
private void initProject() throws Exception { ApplicationManager.getApplication().runWriteAction(new Runnable() { public void run() { if (ourProject != null) { ProjectUtil.closeProject(ourProject); } ourProject = ProjectManagerEx.getInstanceEx().newProject("", false, false); ourPsiManager = null; ourModule = createMainModule(); ourSourceRoot = DummyFileSystem.getInstance().createRoot("src"); final ModuleRootManager rootManager = ModuleRootManager.getInstance(ourModule); final ModifiableRootModel rootModel = rootManager.getModifiableModel(); ProjectJdk projectJDK = getProjectJDK(); if (projectJDK != null) { ourJDK = projectJDK; rootModel.setJdk(projectJDK); } final ContentEntry contentEntry = rootModel.addContentEntry(ourSourceRoot); contentEntry.addSourceFolder(ourSourceRoot, false); addStandardAnnotationsToProject(rootModel); rootModel.commit(); ProjectRootManager.getInstance(ourProject).addModuleRootListener(new ModuleRootListener() { public void beforeRootsChange(ModuleRootEvent event) { if (!event.isCausedByFileTypesChange()) { fail("Root modification in LightIdeaTestCase is not allowed."); } } public void rootsChanged(ModuleRootEvent event) { } }); ModuleManager.getInstance(ourProject).addModuleListener(new ModuleListener() { public void moduleAdded(Project project, Module module) { fail("Adding modules is not permitted in LightIdeaTestCase."); } public void beforeModuleRemoved(Project project, Module module) { } public void moduleRemoved(Project project, Module module) { } public void modulesRenamed(Project project, List<Module> modules) { } }); //((PsiManagerImpl) PsiManager.getInstance(ourProject)).runStartupActivity(); ((StartupManagerImpl)StartupManager.getInstance(getProject())).runStartupActivities(); } }); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/5e9613cd405374fd84f608282e762e557fa5c7ac/LightIdeaTestCase.java/clean/ExtendedApi/src/com/intellij/testFramework/LightIdeaTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 4109, 1435, 1216, 1185, 288, 565, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 2704, 10254, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 309, 261, 477, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 4109, 1435, 1216, 1185, 288, 565, 4257, 1318, 18, 588, 3208, 7675, 2681, 3067, 1803, 12, 2704, 10254, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 309, 261, 477, 41...
if (userdata != null) {
if (useradmindata != null) {
public int[] availableBitLengths(String username) throws Exception { int[] returnval = null; UserAdminData userdata = null; IUserAdminSessionRemote useradminsession = useradminhome.create(); try { userdata = useradminsession.findUser(administrator, username); } catch (FinderException fe) { } if (userdata != null) { ICertificateStoreSessionRemote certstoresession = certificatesessionhome.create(); int certprofile = userdata.getCertificateProfileId(); if (certprofile != SecConst.PROFILE_NO_PROFILE) { returnval = certstoresession.getCertificateProfile(administrator, certprofile) .getAvailableBitLengths(); } } return returnval; }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/105456e89a6e5faef018f231566e29f82bf001f2/ApplyBean.java/buggy/src/java/se/anatom/ejbca/apply/ApplyBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8526, 2319, 5775, 22406, 12, 780, 2718, 13, 1216, 1185, 288, 3639, 509, 8526, 327, 1125, 273, 446, 31, 3639, 2177, 4446, 751, 21518, 273, 446, 31, 3639, 467, 1299, 4446, 2157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8526, 2319, 5775, 22406, 12, 780, 2718, 13, 1216, 1185, 288, 3639, 509, 8526, 327, 1125, 273, 446, 31, 3639, 2177, 4446, 751, 21518, 273, 446, 31, 3639, 467, 1299, 4446, 2157, ...
setupDistinctStyleProperties( style, handle, parentHandle );
setupDistinctStyleProperties( style, handle, parentHandle, flag );
protected StyleDesign createDistinctStyle( DesignElementHandle handle, DesignElementHandle parentHandle ) { StyleDesign style = new StyleDesign( ); style.setHandle( handle.getPrivateStyle( ) ); setupDistinctStyleProperties( style, handle, parentHandle ); if ( !style.isEmpty( ) ) { assignStyleName( style ); return style; } return null; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/26e720886eb20318d2dd7875ea22a8e430dd3bf6/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 9767, 15478, 752, 23402, 2885, 12, 29703, 1046, 3259, 1640, 16, 1082, 202, 15478, 1046, 3259, 982, 3259, 262, 202, 95, 202, 202, 2885, 15478, 2154, 273, 394, 9767, 15478, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 9767, 15478, 752, 23402, 2885, 12, 29703, 1046, 3259, 1640, 16, 1082, 202, 15478, 1046, 3259, 982, 3259, 262, 202, 95, 202, 202, 2885, 15478, 2154, 273, 394, 9767, 15478, 12, 1...
&& matches(alphabetPattern, previous));
&& matches(alphabetPattern, previous) && tokenItem.findFeature("p.punc").equals(","));
private boolean isStateName(String tokenVal) { String[] state = (String[]) usStatesHash.get(tokenVal); if (state != null) { boolean expandState = false; // check to see if the state initials are ambiguous // in the English language if (state[1].equals("ambiguous")) { String previous = (String) tokenItem.findFeature("p.name"); String next = (String) tokenItem.findFeature("n.name"); // System.out.println("previous = " + previous); // System.out.println("next = " + next); int nextLength = next.length(); FeatureSet featureSet = tokenItem.getFeatures(); // check if the previous word starts with a capital letter, // is at least 3 letters long, and is an alphabet sequence boolean previousIsCity = (isUppercaseLetter(previous.charAt(0)) && previous.length() > 2 && matches(alphabetPattern, previous)); // check if next token starts with a lower case, or // this is the end of sentence, or if next token // is a period (".") or a zip code (5 or 10 digits). boolean nextIsGood = (isLowercaseLetter(next.charAt(0)) || tokenItem.getNext() == null || featureSet.getString("punc").equals(".") || ((nextLength == 5 || nextLength == 10) && matches(digitsPattern, next))); if (previousIsCity && nextIsGood) { expandState = true; } else { expandState = false; } } else { expandState = true; } if (expandState) { for (int j = 2; j < state.length; j++) { if (state[j] != null) { wordRelation.addWord(state[j]); } } return true; } } return false; }
3240 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3240/76bd7e98e94c55a28a965cd86a3fbf95fb505547/TokenToWords.java/clean/FreeTTS/com/sun/speech/freetts/en/us/TokenToWords.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 1119, 461, 12, 780, 1147, 3053, 13, 288, 3639, 514, 8526, 919, 273, 261, 780, 63, 5717, 584, 7629, 2310, 18, 588, 12, 2316, 3053, 1769, 3639, 309, 261, 2019, 480, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 1119, 461, 12, 780, 1147, 3053, 13, 288, 3639, 514, 8526, 919, 273, 261, 780, 63, 5717, 584, 7629, 2310, 18, 588, 12, 2316, 3053, 1769, 3639, 309, 261, 2019, 480, 446, ...
Label previewLabel = new Label( group, SWT.CENTER | SWT.HORIZONTAL
Label previewLabel = new Label( group, SWT.CENTER | SWT.HORIZONTAL
private Label createGeneralPreviewPart( Composite parent ) { Group group = new Group( parent, SWT.NONE ); group.setText( LABEL_GENERAL_PREVIEW_GROUP ); GridData data; if ( pageAlignment == PAGE_ALIGN_HORIZONTAL ) { data = new GridData( GridData.FILL_BOTH ); } else { data = new GridData( GridData.FILL_HORIZONTAL ); } group.setLayoutData( data ); group.setLayout( new GridLayout( 1, false ) ); Label previewLabel = new Label( group, SWT.CENTER | SWT.HORIZONTAL | SWT.VERTICAL ); previewLabel.setLayoutData( new GridData( GridData.FILL_BOTH ) ); return previewLabel; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7a9d1903e4a62501d41fdc20dd59c3d00f4b0a51/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 5287, 752, 12580, 11124, 1988, 12, 14728, 982, 262, 202, 95, 202, 202, 1114, 1041, 273, 394, 3756, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1655, 18, 542, 1528, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 5287, 752, 12580, 11124, 1988, 12, 14728, 982, 262, 202, 95, 202, 202, 1114, 1041, 273, 394, 3756, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 1655, 18, 542, 1528, 12,...
delivery.setJavaScriptEnabledCheck("false");
public void processAction(ActionEvent ae) throws AbortProcessingException { log.debug("DeliveryActionListener.processAction() "); FacesContext context = FacesContext.getCurrentInstance(); Map requestParams = context.getExternalContext().getRequestParameterMap(); try { // 1. get managed bean DeliveryBean delivery = (DeliveryBean) cu.lookupBean("delivery"); // a. set publishedId, note that id can be changed by isPreviewingMode() String id = getPublishedAssessmentId(delivery); String agent = getAgentString(); // b. this is to be reset to true on the saveTime() JavaScript when submitted delivery.setJavaScriptEnabledCheck("false"); // c. Clear elapsed time, set not timed out clearElapsedTime(delivery); // 3. get assessment from deliveryBean if id matches. otherwise, this is the 1st time // that DeliveryActionListener is called, so pull it from DB PublishedAssessmentFacade publishedAssessment = getPublishedAssessment(delivery, id); // e. set show student score setShowStudentScore(delivery, publishedAssessment); setDeliverySettings(delivery, publishedAssessment); // 2. there 3 types of navigation: by question (question will be displayed one at a time), // by part (questions in a part will be displayed together) or by assessment (i.e. // all questions will be displayed on one page). When navigating from TOC, a part number // signal that the navigation is either by question or by part. We then must set the // delivery bean to the right place. goToRightQuestionFromTOC(delivery); // 4. this purpose of this listener is to integrated itemGradingData and // assessmentGradingData to the publishedAssessment during these 3 processes: // taking assessment, reviewing assessment and grading assessment by question. // When taking or reviewing an assessment, BeginDeliveryActionListener is called // by an event in the jsf page to retrieve the publishedAssessment. When grading // assessment, StudentScoreListener is called to retrieve the published Assessment. int action = delivery.getActionMode(); HashMap itemData = new HashMap(); GradingService service = new GradingService(); System.out.println("**** DeliveryActionListener:actionString"+delivery.getActionString()); System.out.println("**** DeliveryActionListener:action"+delivery.getActionMode()); switch (action){ case 3: // Review assessment setFeedbackMode(delivery); itemData = new HashMap(); if (delivery.getFeedbackComponent().getShowResponse()) itemData = service.getSubmitData(id, agent); setAssessmentGradingFromItemData(delivery, itemData, false); setDisplayByAssessment(delivery); setGraderComment(delivery); break; case 4: // Grade assessment itemData = service.getStudentGradingData(cu.lookupParam("gradingData")); System.out.println("**** gradingData ="+cu.lookupParam("gradingData")); System.out.println("**** itemData.size ="+itemData.size()); setAssessmentGradingFromItemData(delivery, itemData, false); setDisplayByAssessment(delivery); //delivery.setFeedback("true"); setDeliveryFeedbackOnforEvaluation(delivery); setGraderComment(delivery); break; case 1: // Take assessment case 5: // Take assessment via url itemData = service.getLastItemGradingData(id, agent); if (itemData!=null && itemData.size()>0) setAssessmentGradingFromItemData(delivery, itemData, true); else{ AssessmentGradingData ag = service.getLastSavedAssessmentGradingByAgentId(id, agent); if (ag == null) ag = createAssessmentGrading(publishedAssessment); delivery.setAssessmentGrading(ag); } // ag can't be null beyond this point and must have persisted to DB // version 2.1.1 requirement setFeedbackMode(delivery); setTimer(delivery, publishedAssessment); // extend session time out SessionUtil.setSessionTimeout(FacesContext.getCurrentInstance(), delivery, true); log.info("****Set begin time " + delivery.getBeginTime()); log.info("****Set elapsed time " + delivery.getTimeElapse()); break; default: break; } // overload itemData with the sequence in case renumbering is turned off. overloadItemData(delivery, itemData, publishedAssessment); // get table of contents delivery.setTableOfContents(getContents(publishedAssessment, itemData, delivery)); // get current page contents log.debug("**** resetPageContents="+this.resetPageContents); if (this.resetPageContents) delivery.setPageContents(getPageContents(publishedAssessment, delivery, itemData)); } catch (Exception e) { e.printStackTrace(); } }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/f68736663a0b3fe9c2c10203c3a6b3c12bdf8435/DeliveryActionListener.java/clean/samigo/tool/src/java/org/sakaiproject/tool/assessment/ui/listener/delivery/DeliveryActionListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 1803, 12, 1803, 1133, 14221, 13, 1216, 565, 14263, 23684, 225, 288, 565, 613, 18, 4148, 2932, 8909, 1803, 2223, 18, 2567, 1803, 1435, 315, 1769, 565, 20306, 819, 273, 203...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 1803, 12, 1803, 1133, 14221, 13, 1216, 565, 14263, 23684, 225, 288, 565, 613, 18, 4148, 2932, 8909, 1803, 2223, 18, 2567, 1803, 1435, 315, 1769, 565, 20306, 819, 273, 203...
buffer.append('\"'); buffer.append(t.getImage()); buffer.append('\"');
strbuff.append('\"'); strbuff.append(t.getImage()); strbuff.append('\"');
protected Vector getMacroParameters (String params, boolean forStringizing) throws ScannerException { // split params up into single arguments int nParen = 0; Vector parameters = new Vector(); StringBuffer parBuffer = new StringBuffer(); //$NON-NLS-1$ for (int i = 0; i < params.length(); i++) { char c = params.charAt(i); switch (c) { case '(' : nParen++; break; case ')' : nParen--; break; case ',' : if (nParen == 0) { parameters.add(parBuffer.toString()); parBuffer = new StringBuffer(); //$NON-NLS-1$ continue; } break; default : break; } parBuffer.append( c ); } parameters.add(parBuffer.toString()); Vector parameterValues = new Vector(); for (int i = 0; i < parameters.size(); i++) { Scanner tokenizer = new Scanner( new StringReader((String)parameters.elementAt(i)), TEXT, scannerData.getPublicDefinitions(), Collections.EMPTY_LIST, NULL_REQUESTOR, scannerData.getParserMode(), scannerData.getLanguage(), NULL_LOG_SERVICE, scannerExtension ); tokenizer.setThrowExceptionOnBadCharacterRead(false); IToken t = null; StringBuffer buffer = new StringBuffer(); boolean space = false; try { while (true) { int c = tokenizer.getCharacter(); if ((c != ' ') && (c != '\t') && (c != '\r') && (c != '\n')) { space = false; } if (c != NOCHAR) tokenizer.ungetChar(c); t = (forStringizing ? tokenizer.nextTokenForStringizing() : tokenizer.nextToken(false)); if (space) buffer.append( ' ' ); switch (t.getType()) { case IToken.tSTRING : buffer.append('\"'); buffer.append(t.getImage()); buffer.append('\"'); break; case IToken.tLSTRING : buffer.append( "L\""); //$NON-NLS-1$ buffer.append(t.getImage()); buffer.append('\"'); break; case IToken.tCHAR : buffer.append('\''); buffer.append(t.getImage()); buffer.append('\''); break; default : buffer.append( t.getImage()); break; } space = true; } } catch (EndOfFileException e) { // Good parameterValues.add(buffer.toString()); } } return parameterValues; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9ebf2c99093949be13d33b05a6695fc9d76e14fc/Scanner.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 5589, 2108, 1077, 303, 2402, 261, 780, 859, 16, 1250, 364, 780, 6894, 13, 1216, 19074, 503, 288, 540, 202, 202, 759, 1416, 859, 731, 1368, 2202, 1775, 3639, 509, 290, 25520, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5589, 2108, 1077, 303, 2402, 261, 780, 859, 16, 1250, 364, 780, 6894, 13, 1216, 19074, 503, 288, 540, 202, 202, 759, 1416, 859, 731, 1368, 2202, 1775, 3639, 509, 290, 25520, ...
Object simpleDateFormatter = simpleDateFormatterMap.get( getPatterKey( source ) );
Object simpleDateFormatter = DateFormatFactory.getPatternInstance( PatternKey.getPatterKey( source ) );
public static Date parse( String source ) throws BirtException, ParseException { if( source == null ) { return null; } Date resultDate = null; source = cleanDate( source ); Object simpleDateFormatter = simpleDateFormatterMap.get( getPatterKey( source ) ); if ( simpleDateFormatter != null ) { try { resultDate = ( (SimpleDateFormat) simpleDateFormatter ).parse( source ); return resultDate; } catch ( ParseException e1 ) { } } // for the String can not be parsed, throws a BirtException if ( resultDate == null ) { throw new ParseException( "an not convert the value of " + source, 0 ); } // never access here return resultDate; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/66acd3a5145ed5d709d2ab0c02b9aac976171738/DateFormatISO8601.java/buggy/core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DateFormatISO8601.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2167, 1109, 12, 514, 1084, 262, 1216, 605, 2714, 503, 16, 1082, 202, 13047, 202, 95, 202, 202, 430, 12, 1084, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 446, 31, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2167, 1109, 12, 514, 1084, 262, 1216, 605, 2714, 503, 16, 1082, 202, 13047, 202, 95, 202, 202, 430, 12, 1084, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 446, 31, 202...
assertEquals(record.getRow(),(short)1);
assertEquals((short)record.getRow(),(short)1);
public void testCreateFormulaRecord () { FormulaRecord record = new FormulaRecord(); record.setColumn((short)0); record.setRow((short)1); record.setXFIndex((short)4); assertEquals(record.getColumn(),(short)0); assertEquals(record.getRow(),(short)1); assertEquals(record.getXFIndex(),(short)4); }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/d9f79858985a70d9baba12ff9f68f5ce7eb2a8de/TestFormulaRecord.java/clean/src/testcases/org/apache/poi/hssf/record/TestFormulaRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 14972, 2115, 1832, 288, 3639, 26758, 2115, 1409, 273, 394, 26758, 2115, 5621, 3639, 1409, 18, 542, 1494, 12443, 6620, 13, 20, 1769, 3639, 1409, 18, 542, 1999, 12443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1684, 14972, 2115, 1832, 288, 3639, 26758, 2115, 1409, 273, 394, 26758, 2115, 5621, 3639, 1409, 18, 542, 1494, 12443, 6620, 13, 20, 1769, 3639, 1409, 18, 542, 1999, 12443, ...
if (moduleField != null) {
if (moduleField != null && moduleField.DeclaringType.DeclaringType == null) {
void genDef(Symbol sym, ValDef[] parameters, Tree rhs, MSILType toType) { MethodBase method = tc.getMethod(sym); //log("genDef: " + method.getSignature()); params.clear(); locals.clear(); int argOffset = method.IsStatic ? 0 : 1; for (int i = 0; i < parameters.length; i++) { params.put(parameters[i].symbol(), new Integer(i + argOffset)); } if (method.IsConstructor) { //log("genDef: " + method); ConstructorInfo ctor = (ConstructorInfo) method; code = ((ConstructorBuilder)ctor).GetILGenerator(); FieldInfo moduleField = tc.getModuleField(currentClass); if (moduleField != null) {// log("genDef: initializing " + moduleField +// " for class " + method.DeclaringType); // emit the call to the superconstructor switch (rhs) { case Block(Tree[] stats): // this is the call to the super constructor drop(gen(stats[0], MSILType.VOID)); break; default: drop(gen(rhs, MSILType.VOID)); } ConstructorBuilder cctor = ((TypeBuilder)(method.DeclaringType)). DefineConstructor((short)(MethodAttributes.Static | MethodAttributes.Public), CallingConventions.Standard, Type.EmptyTypes); currentMethod = cctor; ILGenerator ctorCode = code; code = cctor.GetILGenerator(); // initialize the static module reference code.Emit(OpCodes.Newobj, ctor); code.Emit(OpCodes.Stsfld, moduleField); switch (rhs) { case Block(Tree[] stats): int n = stats.length; assert n > 0; for (int i = 1; i < n; i++) drop(gen(stats[i], MSILType.VOID)); break; } code.Emit(OpCodes.Ret); code = ctorCode; } else drop(gen(rhs, MSILType.VOID)); code.Emit(OpCodes.Ret); } else if (!method.IsAbstract) { lastStatement = true; code = ((MethodBuilder)method).GetILGenerator(); Item item = gen(rhs, toType); if (returnsVoid(method)) drop(item); else coerce(load(item), toType); // coerce??? code.Emit(OpCodes.Ret); } lastStatement = false; code = null; } // genDef();
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/8d29db9496fa9f9c9b151bfff2cfd4630b2ebbcd/GenMSIL.java/clean/sources/scalac/backend/msil/GenMSIL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3157, 3262, 12, 5335, 5382, 16, 12747, 3262, 8526, 1472, 16, 4902, 7711, 16, 490, 2320, 48, 559, 28234, 13, 288, 202, 1305, 2171, 707, 273, 1715, 18, 588, 1305, 12, 8117, 1769, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3157, 3262, 12, 5335, 5382, 16, 12747, 3262, 8526, 1472, 16, 4902, 7711, 16, 490, 2320, 48, 559, 28234, 13, 288, 202, 1305, 2171, 707, 273, 1715, 18, 588, 1305, 12, 8117, 1769, 202...
private int addForwardGoto(int gotoOp, int iCodeTop) { iCodeTop = addByte(gotoOp, iCodeTop);
private int addForwardGoto(int gotoOp, int iCodeTop) { iCodeTop = addToken(gotoOp, iCodeTop);
private int addForwardGoto(int gotoOp, int iCodeTop) { iCodeTop = addByte(gotoOp, iCodeTop); iCodeTop = addShort(0, iCodeTop); return iCodeTop; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 527, 8514, 43, 6302, 12, 474, 2897, 3817, 16, 509, 277, 1085, 3401, 13, 288, 3639, 277, 1085, 3401, 273, 527, 3216, 12, 75, 6302, 3817, 16, 277, 1085, 3401, 1769, 3639, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 527, 8514, 43, 6302, 12, 474, 2897, 3817, 16, 509, 277, 1085, 3401, 13, 288, 3639, 277, 1085, 3401, 273, 527, 3216, 12, 75, 6302, 3817, 16, 277, 1085, 3401, 1769, 3639, 277, ...
if (part.getEditingSupport().isTabingSupported()) { part.getEditingSupport().processTraversEvent(
ViewerColumn col = viewer.getViewerColumn(columnNumber); if ( col != null && col.getEditingSupport().isTabingSupported() ) { col.getEditingSupport().processTraversEvent(
public void keyTraversed(TraverseEvent e) { if (part.getEditingSupport().isTabingSupported()) { part.getEditingSupport().processTraversEvent( columnNumber, viewer.getViewerRowFromItem(item), e); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ac452c0ee48b0cf574b83d694d7aa6bfa0068215/AbstractViewerEditor.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractViewerEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9944, 202, 482, 918, 498, 1609, 7548, 12, 29654, 1133, 425, 13, 288, 6862, 1082, 202, 430, 261, 2680, 18, 588, 28029, 6289, 7675, 291, 5661, 310, 7223, 10756, 288, 6862, 9506, 202, 2680, 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, 9944, 202, 482, 918, 498, 1609, 7548, 12, 29654, 1133, 425, 13, 288, 6862, 1082, 202, 430, 261, 2680, 18, 588, 28029, 6289, 7675, 291, 5661, 310, 7223, 10756, 288, 6862, 9506, 202, 2680, 18, ...
ErrorLogger.log(e.getMessage(), this); return null;
ErrorLogger.fail(e, "could not get PDE outline", false); return Collections.emptyList();
public List<TreeViewer> getContentOutlineViewers(IEditorPart editor) { if (editor instanceof PDEFormEditor) { PDESourcePage sp = null; List<TreeViewer> viewers = new ArrayList<TreeViewer>(2); if((sp = (PDESourcePage)((PDEFormEditor) editor).findPage(PluginInputContext.CONTEXT_ID)) != null){ ISortableContentOutlinePage p = sp.getContentOutline(); if (p != null && p.getControl() != null) { try { if (p != null && p instanceof SourceOutlinePage) { // get the tree viewer for the outline Class clazz2 = p.getClass(); Field field2 = clazz2.getDeclaredField("viewer"); field2.setAccessible(true); Object f2 = field2.get(p); if (f2 != null && f2 instanceof TreeViewer) { viewers.add((TreeViewer)f2); } } }catch (Exception e) { ErrorLogger.log(e, "failed to get tree viewers"); return null; } } } try { // get the current page of the outline Class clazz = PDEFormEditor.class; Field field = null; try { field = clazz.getDeclaredField("formOutline"); } catch (NoSuchFieldException e) { field = clazz.getDeclaredField("fFormOutline"); } field.setAccessible(true); Object f = field.get(editor); if (f != null && f instanceof FormOutlinePage) { // get the tree viewer for the outline Class clazz2 = FormOutlinePage.class; Field field2 = clazz2.getDeclaredField("treeViewer"); field2.setAccessible(true); Object f2 = field2.get(f); if (f2 != null && f2 instanceof TreeViewer) { TreeViewer treeViewer = (TreeViewer) f2; viewers.add(treeViewer); } } } catch (Exception e) { ErrorLogger.log(e.getMessage(), this); return null; } // add a listener so that when the selection changes, the view is // refreshed to attempt to keep the ui model the same as the taskscape one for(TreeViewer viewer: viewers){ viewer.addSelectionChangedListener(treeSelectionChangedListener); viewer.addTreeListener(treeSelectionChangedListener); } return viewers; } return Collections.emptyList(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/9ab86124e0e2eddf4a0d54512b880417d1b0187e/PdeUiBridge.java/buggy/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/xml/pde/PdeUiBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 32, 2471, 18415, 34, 5154, 21805, 1767, 414, 12, 45, 6946, 1988, 4858, 13, 288, 3639, 309, 261, 9177, 1276, 453, 1639, 1204, 6946, 13, 288, 540, 202, 52, 1639, 1830, 1964, 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, 987, 32, 2471, 18415, 34, 5154, 21805, 1767, 414, 12, 45, 6946, 1988, 4858, 13, 288, 3639, 309, 261, 9177, 1276, 453, 1639, 1204, 6946, 13, 288, 540, 202, 52, 1639, 1830, 1964, 16...
if (fInputGroup.getGreyCheckedTreeItems(pack) || pack.isDefaultPackage()) {
if (fInputGroup.isTreeItemGreyChecked(pack) || pack.isDefaultPackage()) {
private List getPackagenames() { Iterator checkedElements= fInputGroup.getAllCheckedListItems(); List list= new ArrayList(); this.resources= new ArrayList(); while (checkedElements.hasNext()) { Object element = checkedElements.next(); if (element instanceof ICompilationUnit) { ICompilationUnit unit = (ICompilationUnit) element; IJavaElement el = unit.getParent(); if (el instanceof IPackageFragment) { IPackageFragment pack= (IPackageFragment)el; if (fInputGroup.getGreyCheckedTreeItems(pack) || pack.isDefaultPackage()) { try { IResource re = unit.getCorrespondingResource(); //Create a list of resources for which Javadoc will be generated this.resources.add(re); IPath p = re.getLocation(); String qn = p.toOSString(); list.add(qn); } catch (JavaModelException e) { JavaPlugin.log(e); } } } } } Object[] checkedTreeElements= fInputGroup.getAllCheckedTreeItems().toArray(); for (int i= 0; i < checkedTreeElements.length; i++) { Object element= checkedTreeElements[i]; if (element instanceof IPackageFragment) { IPackageFragment pack= (IPackageFragment) element; if (!fInputGroup.getGreyCheckedTreeItems(pack) && !pack.isDefaultPackage()) { try { ICompilationUnit[] units= pack.getCompilationUnits(); for (int j = 0; j < units.length; j++) { ICompilationUnit un= units[j]; IResource re= un.getCorrespondingResource(); resources.add(re); } } catch(JavaModelException e) { JavaPlugin.log(e); } String en= pack.getElementName(); list.add(en); } } } return list; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/8376a4f90b7d6422f1a368844358dc98c2d5cb5f/JavadocTreeWizardPage.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocTreeWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 30401, 346, 6809, 1435, 288, 6862, 1082, 202, 3198, 5950, 3471, 33, 284, 1210, 1114, 18, 588, 1595, 11454, 682, 3126, 5621, 1082, 202, 682, 666, 33, 394, 2407, 5621, 1082,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 30401, 346, 6809, 1435, 288, 6862, 1082, 202, 3198, 5950, 3471, 33, 284, 1210, 1114, 18, 588, 1595, 11454, 682, 3126, 5621, 1082, 202, 682, 666, 33, 394, 2407, 5621, 1082,...
IFileStore[] stores = new IFileStore[fileNames.length]; for (int i = 0; i < fileNames.length; i++) { IFileStore store = IDEResourceInfoUtils.getFileStore(fileNames[i]);
IFileStore[] stores = new IFileStore[uris.length]; for (int i = 0; i < uris.length; i++) { IFileStore store; try { store = EFS.getStore(uris[i]); } catch (CoreException e) { IDEWorkbenchPlugin.log(e.getMessage(), e); reportFileInfoNotFound(uris[i].toString()); return; }
public void copyFiles(final String[] fileNames, IContainer destination) { IFileStore[] stores = new IFileStore[fileNames.length]; for (int i = 0; i < fileNames.length; i++) { IFileStore store = IDEResourceInfoUtils.getFileStore(fileNames[i]); if (store == null) { reportFileInfoNotFound(fileNames[i]); return; } stores[i] = store; } copyFileInfos(destination, stores); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/81668ae888a45daf0e57cd790b40dafaab7e36d2/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1610, 2697, 12, 6385, 514, 8526, 27375, 16, 467, 2170, 2929, 13, 288, 202, 202, 45, 812, 2257, 8526, 9064, 273, 394, 467, 812, 2257, 63, 768, 1557, 18, 2469, 15533, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1610, 2697, 12, 6385, 514, 8526, 27375, 16, 467, 2170, 2929, 13, 288, 202, 202, 45, 812, 2257, 8526, 9064, 273, 394, 467, 812, 2257, 63, 768, 1557, 18, 2469, 15533, 202, ...
RubyPointer argsList = new RubyPointer(new ArrayList(Arrays.asList(args)));
RubyPointer argsList = new RubyPointer(args);
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { CRefNode savedCref = null; // VALUE[] localVars = null; RubyPointer argsList = new RubyPointer(new ArrayList(Arrays.asList(args))); RubyPointer localVarsList = null; ruby.getRubyScope().push(); if (getRefValue() != null) { savedCref = ruby.getCRef(); ruby.setCRef(getRefValue()); ruby.getRubyFrame().setCbase(getRefValue()); } if (getTable() != null) { // ? +++ // List tmpList = Collections.nCopies(body.nd_tbl()[0].intValue() + 1, getRuby().getNil()); // ? --- // localVarsList = new ShiftableList(new ArrayList(tmpList)); // localVarsList.set(0, body); // localVarsList.shift(1); localVarsList = new RubyPointer(ruby.getNil(), getTable().getId(0).intValue() + 1); localVarsList.set(0, this); localVarsList.inc(); ruby.getRubyScope().setLocalVars(localVarsList); ruby.getRubyScope().setLocalTbl(getTable()); } else { localVarsList = ruby.getRubyScope().getLocalVars(); ruby.getRubyScope().setLocalVars(null); ruby.getRubyScope().setLocalTbl(null); } Node body = getNextNode(); RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); RubyObject result = ruby.getNil(); try { Node node = null; int i; if (body.getType() == Constants.NODE_ARGS) { node = body; body = null; } else if (body.getType() == Constants.NODE_BLOCK) { node = body.getHeadNode(); body = body.getNextNode(); } if (node != null) { if (node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); } i = node.getCount(); if (i > (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + i + ")"); } if (node.getRest() == -1) { int opt = i; Node optNode = node.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + opt + ")"); } ruby.getRubyFrame().setArgs(localVarsList != null ? localVarsList.getPointer(2) : null); } if (localVarsList != null) { if (i > 0) { localVarsList.inc(2); for (int j = 0; j < i; j++ ) { localVarsList.set(j, argsList.get(j)); } localVarsList.dec(2); } argsList.inc(i); if (node.getOptNode() != null) { Node optNode = node.getOptNode(); while (optNode != null && argsList.size() != 0) { ((AssignableNode)optNode.getHeadNode()).assign(ruby, recv, argsList.getRuby(0), true); argsList.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (node.getRest() >= 0) { RubyArray array = null; if (argsList.size() > 0) { array = RubyArray.m_newArray(ruby, argsList); } else { array = RubyArray.m_newArray(ruby, 0); } localVarsList.set(node.getRest(), array); } } } result = recv.eval(body); } catch (ReturnException rExcptn) { } RubyVarmap.pop(ruby); ruby.getRubyScope().pop(); ruby.setCRef(savedCref); return result; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/12748a4b8db7fd4836cd04c81e3cf2343735bfb6/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 548, 612, 16, 19817, 921, 8526, 833, 16, 1250, 1158, 8051, 13, 288, 3639, 385, 1957, 907, 5198, 39, 1734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 548, 612, 16, 19817, 921, 8526, 833, 16, 1250, 1158, 8051, 13, 288, 3639, 385, 1957, 907, 5198, 39, 1734, ...
catch (MalformedURLException e1)
catch (Exception e)
public Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { try{ if (remoteCodebase == null) return RMIClassLoader.loadClass(className); else return RMIClassLoader.loadClass(remoteCodebase, className); } catch (MalformedURLException e1) { throw new ClassNotFoundException(className, e1); } catch(ClassNotFoundException e2) { if(loader != null) return loader.loadClass(className); else return null; } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/44e3ea509d80974dab547c4d1cf8c070d32bac86/UtilDelegateImpl.java/clean/core/src/classpath/gnu/gnu/javax/rmi/CORBA/UtilDelegateImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1659, 16038, 12, 780, 2658, 16, 514, 2632, 1085, 1969, 16, 1082, 21114, 9403, 4088, 13, 565, 1216, 10403, 225, 288, 565, 775, 95, 1377, 309, 261, 7222, 1085, 1969, 422, 446, 13, 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, 282, 1071, 1659, 16038, 12, 780, 2658, 16, 514, 2632, 1085, 1969, 16, 1082, 21114, 9403, 4088, 13, 565, 1216, 10403, 225, 288, 565, 775, 95, 1377, 309, 261, 7222, 1085, 1969, 422, 446, 13, 2...
return currentCol; }
return currentCol; }
public int getCurrentCol() { return currentCol; }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/c0ce5b4b7230b5d76f6d3a2b632d4c0311d16d5d/GridBagLayoutBuilder.java/buggy/src/org/springframework/richclient/util/GridBagLayoutBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 5175, 914, 1435, 288, 565, 327, 783, 914, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 5175, 914, 1435, 288, 565, 327, 783, 914, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public void processAck( RequestEvent requestEvent, ServerTransaction serverTransaction) {
public void processAck(RequestEvent requestEvent, ServerTransaction serverTransaction) {
public void processAck( RequestEvent requestEvent, ServerTransaction serverTransaction) { SipProvider sipProvider = (SipProvider) requestEvent.getSource(); try { System.out.println("*** shootme: got an ACK " + requestEvent.getRequest()); dialog = serverTransaction.getDialog(); Request byeRequest = dialog.createRequest(Request.BYE); ClientTransaction tr = sipProvider.getNewClientTransaction(byeRequest); System.out.println("shootme: got an ACK -- sending bye! "); dialog.sendRequest(tr); System.out.println("Dialog State = " + dialog.getState()); } catch (Exception ex) { ex.printStackTrace(); System.exit(0); } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/Shootme.java/clean/trunk/src/examples/multi/Shootme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1207, 11931, 12, 202, 202, 691, 1133, 590, 1133, 16, 202, 202, 2081, 3342, 1438, 3342, 13, 288, 202, 202, 17550, 2249, 10341, 2249, 273, 261, 17550, 2249, 13, 590, 1133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1207, 11931, 12, 202, 202, 691, 1133, 590, 1133, 16, 202, 202, 2081, 3342, 1438, 3342, 13, 288, 202, 202, 17550, 2249, 10341, 2249, 273, 261, 17550, 2249, 13, 590, 1133, ...
public JSRConcretePortletImpl(PortletDeploymentDescriptor2 pdd, PortletDefinition portletDef, JSRApplicationPortletConfigImpl appConfig, JSRConcretePortletConfigImpl concConfig) throws PortletException {
public JSRConcretePortletImpl(PortletDeploymentDescriptor2 pdd, PortletDefinition portletDef, JSRConcretePortletConfigImpl concConfig) {
public JSRConcretePortletImpl(PortletDeploymentDescriptor2 pdd, PortletDefinition portletDef, JSRApplicationPortletConfigImpl appConfig, JSRConcretePortletConfigImpl concConfig) throws PortletException { this.portletDD = pdd; this.portletDef = portletDef; this.concConfig = concConfig; this.appConfig = appConfig; concreteID = portletDef.getPortletClass().getContent(); portletName = portletDef.getPortletName().getContent(); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/9d514e02ecb166244163b369e57aac1326e63cf6/JSRConcretePortletImpl.java/buggy/src/org/gridlab/gridsphere/portletcontainer/jsrimpl/JSRConcretePortletImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6756, 54, 25845, 18566, 2828, 12, 18566, 6733, 3187, 22, 293, 449, 16, 21305, 1852, 13114, 3262, 16, 6756, 54, 25845, 18566, 809, 2828, 20570, 809, 13, 225, 288, 3639, 333, 18, 655,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6756, 54, 25845, 18566, 2828, 12, 18566, 6733, 3187, 22, 293, 449, 16, 21305, 1852, 13114, 3262, 16, 6756, 54, 25845, 18566, 809, 2828, 20570, 809, 13, 225, 288, 3639, 333, 18, 655,...
markers = resource.findMarkers(PMDRuntimeConstants.PMD_MARKER, true, IResource.DEPTH_INFINITE);
if (this.resource.isAccessible()) { markers = resource.findMarkers(PMDRuntimeConstants.PMD_MARKER, true, IResource.DEPTH_INFINITE); }
public IMarker[] findMarkers() { IMarker[] markers = null; try { // this is the overwritten Function from PMDRecord // we simply call the IResource-function to find Markers markers = resource.findMarkers(PMDRuntimeConstants.PMD_MARKER, true, IResource.DEPTH_INFINITE); } catch (CoreException ce) { PMDUiPlugin.getDefault().logError(StringKeys.MSGKEY_ERROR_FIND_MARKER + this.toString(), ce); } return markers; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3dc02a64a1f3b28c2e20b3e7cb1bdde9f31e7452/FileRecord.java/clean/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/model/FileRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 7078, 8526, 1104, 21644, 1435, 288, 3639, 467, 7078, 8526, 11754, 273, 446, 31, 3639, 775, 288, 5411, 368, 333, 353, 326, 15345, 4284, 628, 453, 6188, 2115, 5411, 368, 732, 861...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 7078, 8526, 1104, 21644, 1435, 288, 3639, 467, 7078, 8526, 11754, 273, 446, 31, 3639, 775, 288, 5411, 368, 333, 353, 326, 15345, 4284, 628, 453, 6188, 2115, 5411, 368, 732, 861...
_context.bandwidthLimiter().delayOutbound(msg.getTarget().getIdentity(), 512);
_context.bandwidthLimiter().delayOutbound(msg.getTarget().getIdentity(), 512, false);
private boolean checkDelivery(String checkURLStr, OutNetMessage msg) { long now = _context.clock().now(); long expiration = msg.getExpiration(); if (expiration <= now) expiration = now + HARD_TIMEOUT; _log.debug("Check delivery [expiration = " + new Date(expiration) + "]"); try { URL checkStatusURL = new URL(checkURLStr); long delay = RECHECK_DELAY; do { _context.bandwidthLimiter().delayOutbound(msg.getTarget().getIdentity(), 512); // HTTP overhead _context.bandwidthLimiter().delayInbound(msg.getTarget().getIdentity(), 512); // HTTP overhead _log.debug("Checking delivery at " + checkURLStr); HttpURLConnection con = (HttpURLConnection)checkStatusURL.openConnection(); con.setRequestMethod("GET"); //con.setInstanceFollowRedirects(false); // kaffe doesn't support this (yet) con.setDoInput(true); con.setDoOutput(false); con.setUseCaches(false); con.connect(); boolean isPending = getIsPending(con); if (!isPending) { _log.info("Check delivery successful for message " + msg.getMessage().getClass().getName()); return true; } if (now + delay > expiration) delay = expiration - now - 30; // 30 = kludgy # for the next 4 statements _log.debug("Still pending (wait " + delay + "ms)"); Thread.sleep(delay); //delay += RECHECK_DELAY; now = _context.clock().now(); } while (now < expiration); _log.warn("Timeout for checking delivery to " + checkURLStr + " for message " + msg.getMessage().getClass().getName()); } catch (Throwable t) { _log.debug("Error checking for delivery", t); } return false; }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/d5bd22040c09a743598dafdbdf9ebc40339e7db1/PHTTPSender.java/buggy/router/java/src/net/i2p/router/transport/phttp/PHTTPSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 866, 8909, 12, 780, 866, 1785, 1585, 16, 2976, 7308, 1079, 1234, 13, 288, 3639, 1525, 2037, 273, 389, 2472, 18, 18517, 7675, 3338, 5621, 3639, 1525, 7686, 273, 1234, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 866, 8909, 12, 780, 866, 1785, 1585, 16, 2976, 7308, 1079, 1234, 13, 288, 3639, 1525, 2037, 273, 389, 2472, 18, 18517, 7675, 3338, 5621, 3639, 1525, 7686, 273, 1234, 18, 588, ...
public RubyInteger op_or(IRubyObject other) {
public RubyInteger op_or(RubyNumeric other) {
public RubyInteger op_or(IRubyObject other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("|", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value | otherNumeric.getLongValue()); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 1061, 67, 280, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 38, 724, 379, 13, 288, 5411, 327, 261, 54, 10340, 4522, 13, 1308, 18, 1991, 1305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 1061, 67, 280, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 38, 724, 379, 13, 288, 5411, 327, 261, 54, 10340, 4522, 13, 1308, 18, 1991, 1305...
clearResults();
performGetNext();
public void actionPerformed(ActionEvent e) { clearResults(); }
48557 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48557/6f0fd49d2bfe82edb1a0e84e920d21d2185755ab/SnmpPanel.java/buggy/src/java/net/percederberg/mibble/browser/SnmpPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 3073, 967, 2134, 5621, 5411, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 3073, 967, 2134, 5621, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
setHorizontalOffset(painter.getFontMetrics().charWidth('w') - (x - painter.getSize().width));
setHorizontalOffset((painter.getSize().width - x) + horizontalOffset);
public boolean scrollTo(int line, int offset) { if(visibleLines == 0) { setFirstLine(line); return true; } boolean returnValue = false; if(line - electricScroll < firstLine) { setFirstLine(Math.max(0,line - electricScroll)); returnValue = true; } else if(line + electricScroll > firstLine + visibleLines) { int newline = (line - visibleLines) + electricScroll + 1; if(newline < 0) newline = 0; int lines = model.getLineCount(); if(newline + visibleLines >= lines) newline = lines - visibleLines; setFirstLine(newline); returnValue = true; } int x = model.offsetToX(line,offset); if(x < horizontalOffset) { setHorizontalOffset(x); returnValue = true; } else if(x > horizontalOffset + painter.getSize().width) { setHorizontalOffset(painter.getFontMetrics().charWidth('w') - (x - painter.getSize().width)); returnValue = true; } return returnValue; }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/88d53e8796c174dd5c1aa895cc2331dfab553744/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 5532, 774, 12, 474, 980, 16, 509, 1384, 13, 202, 95, 202, 202, 430, 12, 8613, 5763, 422, 374, 13, 202, 202, 95, 1082, 202, 542, 3759, 1670, 12, 1369, 1769, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 5532, 774, 12, 474, 980, 16, 509, 1384, 13, 202, 95, 202, 202, 430, 12, 8613, 5763, 422, 374, 13, 202, 202, 95, 1082, 202, 542, 3759, 1670, 12, 1369, 1769, 1082, 202, ...
case 24:
case 25:
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 25: return s84; case 24: return s85; case EOL: 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 21: case 22: case 23: 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: case 57: return s86; default: NoViableAltException nvae = new NoViableAltException("", 4, 86, input); throw nvae; } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 6969, 30, 10792, 327, 272, 5193, 31, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 6969, 30, 10792, 327, 272, 5193, 31, 7734, ...
Vector vector = new Vector();
ArrayList list = new ArrayList();
public static String[] explode(String s) { Vector vector = new Vector(); int i = 0; while (i < s.length()) { if (s.charAt(i) != '[') { throw getRes().newMdxInvalidMember(s); } // s may contain extra ']' characters, so look for a ']' followed // by a '.' (still not perfect... really ought to scan, ignoring // escaped ']]' sequences) int j = s.indexOf("].", i); if (j == -1) { j = s.lastIndexOf("]"); } if (j <= i) { throw getRes().newMdxInvalidMember(s); } String sub = s.substring(i + 1, j); vector.addElement(sub); if (j + 1 < s.length()) if (s.charAt(j+1) != '.') { throw getRes().newMdxInvalidMember(s); } i = j + 2; } String[] names = new String[vector.size()]; vector.copyInto(names); return names; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/180ec61c1417af451bab1491e9fb5f00ae94d722/Util.java/buggy/src/main/mondrian/olap/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 3172, 12, 780, 272, 13, 202, 95, 202, 202, 5018, 3806, 273, 394, 5589, 5621, 202, 202, 474, 277, 273, 374, 31, 202, 202, 17523, 261, 77, 411, 272, 18, 2469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 3172, 12, 780, 272, 13, 202, 95, 202, 202, 5018, 3806, 273, 394, 5589, 5621, 202, 202, 474, 277, 273, 374, 31, 202, 202, 17523, 261, 77, 411, 272, 18, 2469, ...
UnstoredMessage msg = editor.edit();
UnstoredMessage msg = editor.edit( mh.getId(), originalMessage.getLocalnum(), originalConference.getId(), originalConference.getName(), originalMessage.getUser().getId(), originalMessage.getUser().getName().getName(), mh.getSubject() );
public void execute(Context context, Object[] parameterArray) throws KOMException, IOException, InterruptedException { // Parse parameters. No parameters means we're replying to the // last text read. // TextNumber textNumber = (TextNumber) parameterArray[0]; MessageHeader mh; ServerSession session = context.getSession(); if (textNumber == null) { mh = session.getMessageHeader(session.getCurrentMessage()); } else { mh = session.getMessageHeader(session.getGlobalMessageId(textNumber)); } // Get editor and execute it // MessageEditor editor = context.getMessageEditor(); editor.setRecipient(new NameAssociation(mh.getAuthor(), mh.getAuthorName())); editor.setReplyTo(mh.getId()); UnstoredMessage msg = editor.edit(); // Store the message // MessageOccurrence occ = session.storeReplyAsMail(editor.getRecipient().getId(), msg, mh.getId()); context.getOut().println( context.getMessageFormatter().format("write.mail.saved", session.getUser(editor.getRecipient().getId()).getName())); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/33224cd9347c201ad54b4574fba3473e60e38dd3/WriteMailReply.java/buggy/kom/java/nu/rydin/kom/frontend/text/commands/WriteMailReply.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 1042, 819, 16, 1033, 8526, 1569, 1076, 13, 225, 202, 15069, 1475, 1872, 503, 16, 1860, 16, 7558, 202, 95, 202, 202, 759, 2884, 1472, 18, 2631, 1472, 4696, 732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 1042, 819, 16, 1033, 8526, 1569, 1076, 13, 225, 202, 15069, 1475, 1872, 503, 16, 1860, 16, 7558, 202, 95, 202, 202, 759, 2884, 1472, 18, 2631, 1472, 4696, 732, ...
} catch (Exception e) {
} catch (Exception e) {
public final static synchronized FreemarkerManager getInstance() { if (instance == null) { String classname = FreemarkerManager.class.getName(); if (Configuration.isSet("webwork.freemarker.manager.classname")) { classname = Configuration.getString("webwork.freemarker.manager.classname").trim(); } try { log.info("Instantiating Freemarker ConfigManager!, " + classname); instance = (FreemarkerManager) ObjectFactory.getObjectFactory().buildBean(Class.forName(classname)); } catch (Exception e) { log.fatal("Fatal exception occurred while trying to instantiate a Freemarker ConfigManager instance, " + classname, e); } } // if the instance creation failed, make sure there is a default instance if (instance == null) { instance = new FreemarkerManager(); } return instance; }
22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/0d8c34e8505786a1e1047ffac1d0ae9c069513b5/FreemarkerManager.java/buggy/src/java/com/opensymphony/webwork/views/freemarker/FreemarkerManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 760, 3852, 478, 266, 351, 1313, 264, 1318, 3694, 1435, 288, 3639, 309, 261, 1336, 422, 446, 13, 288, 5411, 514, 7479, 273, 478, 266, 351, 1313, 264, 1318, 18, 1106, 18, 17994...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 760, 3852, 478, 266, 351, 1313, 264, 1318, 3694, 1435, 288, 3639, 309, 261, 1336, 422, 446, 13, 288, 5411, 514, 7479, 273, 478, 266, 351, 1313, 264, 1318, 18, 1106, 18, 17994...
case ConstructorId_fromCharCode: case Id_constructor: case Id_charAt: case Id_charCodeAt: case Id_concat: case Id_equals: case Id_equalsIgnoreCase: case Id_match: case Id_search: case Id_split: case Id_replace: return 1;
case ConstructorId_fromCharCode: return 1;
public int methodArity(int methodId, IdFunction function) { switch (methodId) { case ConstructorId_fromCharCode: case Id_constructor: case Id_charAt: case Id_charCodeAt: case Id_concat: case Id_equals: case Id_equalsIgnoreCase: case Id_match: case Id_search: case Id_split: case Id_replace: return 1; case Id_indexOf: case Id_lastIndexOf: case Id_substring: case Id_substr: case Id_slice: return 2; } return 0; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/bd685b66b27ece754b26c9606fd2a85effa1567d/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 707, 686, 560, 12, 474, 707, 548, 16, 3124, 2083, 445, 13, 288, 3639, 1620, 261, 2039, 548, 13, 288, 3639, 648, 11417, 548, 67, 2080, 20535, 30, 3639, 648, 3124, 67, 12316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 707, 686, 560, 12, 474, 707, 548, 16, 3124, 2083, 445, 13, 288, 3639, 1620, 261, 2039, 548, 13, 288, 3639, 648, 11417, 548, 67, 2080, 20535, 30, 3639, 648, 3124, 67, 12316, ...
putLong (buffer, index, Double.doubleToRawLongBits (value), order);
putLong (buffer, Double.doubleToRawLongBits (value), order);
public static void putDouble (ByteBuffer buffer, int index, double value, ByteOrder order) { putLong (buffer, index, Double.doubleToRawLongBits (value), order); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/ByteBufferHelper.java/buggy/core/src/classpath/java/java/nio/ByteBufferHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1378, 5265, 261, 12242, 1613, 16, 509, 770, 16, 9506, 202, 9056, 460, 16, 30845, 1353, 13, 225, 288, 565, 1378, 3708, 261, 4106, 16, 3698, 18, 9056, 774, 4809, 3708, 649...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1378, 5265, 261, 12242, 1613, 16, 509, 770, 16, 9506, 202, 9056, 460, 16, 30845, 1353, 13, 225, 288, 565, 1378, 3708, 261, 4106, 16, 3698, 18, 9056, 774, 4809, 3708, 649...
return file == null ? "" : file; }
return file == null ? "" : file; }
public String getFile() { return file == null ? "" : file; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/clean/core/src/classpath/java/java/net/URL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6034, 1435, 288, 202, 202, 2463, 585, 422, 446, 692, 1408, 294, 585, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6034, 1435, 288, 202, 202, 2463, 585, 422, 446, 692, 1408, 294, 585, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
final XmlTag[] subTags = parentCopy.getXmlTag().findSubTags(tagName);
final XmlTag tag = parentCopy.getXmlTag(); if (tag == null) return null; final XmlTag[] subTags = tag.findSubTags(tagName);
public T create() { if (!parentCopy.isValid()) return null; final XmlTag[] subTags = parentCopy.getXmlTag().findSubTags(tagName); if (subTags.length <= index) { return null; } return (T)getManager().getDomElement(subTags[index]); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/ec79518ade3273c0467413621e9cacc3cf18907e/CollectionElementInvocationHandler.java/clean/dom/impl/src/com/intellij/util/xml/impl/CollectionElementInvocationHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 399, 752, 1435, 288, 3639, 309, 16051, 2938, 2951, 18, 26810, 10756, 327, 446, 31, 3639, 727, 5714, 1805, 1047, 273, 982, 2951, 18, 588, 4432, 1805, 5621, 309, 261, 2692, 422, 446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 399, 752, 1435, 288, 3639, 309, 16051, 2938, 2951, 18, 26810, 10756, 327, 446, 31, 3639, 727, 5714, 1805, 1047, 273, 982, 2951, 18, 588, 4432, 1805, 5621, 309, 261, 2692, 422, 446,...
while(line != 0 && !buffer.isFoldStart(line)) line--; int level; if(line == 0) { level = Integer.MAX_VALUE; } else level = buffer.getFoldLevel(line);
public void goToNextFold(boolean select) { int line = caretLine; while(line != 0 && !buffer.isFoldStart(line)) line--; int level; if(line == 0) { // so that it always just finds the first fold level = Integer.MAX_VALUE; } else level = buffer.getFoldLevel(line); int nextFold = -1; for(int i = caretLine + 1; i < buffer.getLineCount(); i++) { if(buffer.getFoldLevel(i) <= level && buffer.isFoldStart(i)) { nextFold = i; break; } } if(nextFold == -1) { getToolkit().beep(); return; } int magic = getMagicCaretPosition(); int newCaret = buffer.getLineStartOffset(nextFold) + xToOffset(nextFold,magic + 1); if(select) extendSelection(caret,newCaret); else if(!multi) selectNone(); moveCaretPosition(newCaret); setMagicCaretPosition(magic); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/65fb4c036540b47e3dd8ed2e45c6eebdfaee3dd0/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1960, 774, 2134, 15592, 12, 6494, 2027, 13, 202, 95, 202, 202, 474, 980, 273, 21683, 1670, 31, 202, 202, 17523, 12, 1369, 480, 374, 597, 401, 4106, 18, 291, 15592, 1685, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1960, 774, 2134, 15592, 12, 6494, 2027, 13, 202, 95, 202, 202, 474, 980, 273, 21683, 1670, 31, 202, 202, 17523, 12, 1369, 480, 374, 597, 401, 4106, 18, 291, 15592, 1685, ...
public Fastpath(org.postgresql.Connection conn, org.postgresql.PG_Stream stream) { this.conn = conn; this.stream = stream; //DriverManager.println("Fastpath initialised"); }
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/Fastpath.java/clean/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 12305, 803, 12, 3341, 18, 2767, 24330, 18, 1952, 4646, 16, 3341, 18, 2767, 24330, 18, 18679, 67, 1228, 3256, 15329, 2211, 18, 4646, 33, 4646, 31, 2211, 18, 3256, 33, 3256, 31, 759, 466...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 12305, 803, 12, 3341, 18, 2767, 24330, 18, 1952, 4646, 16, 3341, 18, 2767, 24330, 18, 18679, 67, 1228, 3256, 15329, 2211, 18, 4646, 33, 4646, 31, 2211, 18, 3256, 33, 3256, 31, 759, 466...
super( propertyName, false, null );
super( propertyName, false, CSSValueConstants.BLACK_RGB_VALUE );
public BorderColorManager (String propertyName) { super( propertyName, false, null ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/fd9449e679ea775650fbf49f62cefeb641271e71/BorderColorManager.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/value/css/BorderColorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13525, 2957, 1318, 261, 780, 5470, 13, 202, 95, 202, 202, 9565, 12, 5470, 16, 629, 16, 446, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13525, 2957, 1318, 261, 780, 5470, 13, 202, 95, 202, 202, 9565, 12, 5470, 16, 629, 16, 446, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
+ "ee.accession.externalDatabase.name as externalDatabaseName, " + "ee.accession.externalDatabase.webUri as externalDatabaseUri, "
+ "ED.name as externalDatabaseName, " + "ED.webUri as externalDatabaseUri, "
protected Collection handleLoadValueObjects( Collection ids ) throws Exception { Collection<ExpressionExperimentValueObject> vo = new ArrayList<ExpressionExperimentValueObject>(); // sanity check if (ids == null || ids.size() == 0) { return vo; } final String queryString = "select ee.id as id, " + "ee.name as name, " + "ee.accession.externalDatabase.name as externalDatabaseName, " + "ee.accession.externalDatabase.webUri as externalDatabaseUri, " + "ee.source as source, " + "ee.accession.accession as accession, " + "taxon.commonName as taxonCommonName," + "count(distinct BA) as bioAssayCount, " + "count(distinct AD) as arrayDesignCount, " + "ee.shortName as shortName " + // removed to speed up query // "count(distinct dedv) as dedvCount, " + // "count(distinct SU) as bioMaterialCount " + " from ExpressionExperimentImpl as ee inner join ee.bioAssays as BA inner join BA.samplesUsed as SU inner join BA.arrayDesignUsed as AD inner join SU.sourceTaxon as taxon" + " where ee.id in (:ids) " + " group by ee order by ee.name"; try { org.hibernate.Query queryObject = super.getSession( false ).createQuery( queryString ); queryObject.setParameterList( "ids", ids ); ScrollableResults list = queryObject.scroll( ScrollMode.FORWARD_ONLY ); while ( list.next() ) { ExpressionExperimentValueObject v = new ExpressionExperimentValueObject(); v.setId( list.getLong( 0 ).toString() ); v.setName( list.getString( 1 ) ); v.setExternalDatabase( list.getString( 2 ) ); v.setExternalUri( list.getString( 3 ) ); v.setSource( list.getString( 4 ) ); v.setAccession( list.getString( 5 ) ); v.setTaxon( list.getString( 6 ) ); v.setBioAssayCount( list.getInteger( 7 ) ); v.setArrayDesignCount( list.getInteger( 8 ) ); v.setShortName( list.getString( 9 ) ); // removed to speed up query // v.setDesignElementDataVectorCount( list.getInteger( 8 ) ); // v.setBioMaterialCount( list.getInteger( 9 ) ); vo.add( v ); } } catch ( org.hibernate.HibernateException ex ) { throw super.convertHibernateAccessException( ex ); } return vo; }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/cae7fe32c1b97fe2002d1e6c83538622b6a35709/ExpressionExperimentDaoImpl.java/buggy/gemma-mda/src/main/java/ubic/gemma/model/expression/experiment/ExpressionExperimentDaoImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2200, 1640, 2563, 620, 4710, 12, 2200, 3258, 262, 1216, 1185, 288, 3639, 2200, 32, 2300, 22338, 620, 921, 34, 19993, 273, 394, 2407, 32, 2300, 22338, 620, 921, 34, 5621, 3639, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2200, 1640, 2563, 620, 4710, 12, 2200, 3258, 262, 1216, 1185, 288, 3639, 2200, 32, 2300, 22338, 620, 921, 34, 19993, 273, 394, 2407, 32, 2300, 22338, 620, 921, 34, 5621, 3639, 368, ...
for (int i = 0; i < extensionIds.length; i++)
for (int i = 0; i < extensionIds.length; i++) {
public INavigatorContentDescriptor[] bindExtensions(String[] extensionIds, boolean isRoot) { if (extensionIds == null || extensionIds.length == 0) return NO_DESCRIPTORS; for (int i = 0; i < extensionIds.length; i++) assistant.bindExtensions(extensionIds, isRoot); Set boundDescriptors = new HashSet(); INavigatorContentDescriptor descriptor; for (int i = 0; i < extensionIds.length; i++) { descriptor = CONTENT_DESCRIPTOR_REGISTRY .getContentDescriptor(extensionIds[i]); if (descriptor != null) boundDescriptors.add(descriptor); } if (boundDescriptors.size() == 0) return NO_DESCRIPTORS; return (INavigatorContentDescriptor[]) boundDescriptors .toArray(new INavigatorContentDescriptor[boundDescriptors .size()]); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NavigatorContentService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2120, 13061, 1350, 3187, 8526, 1993, 7513, 12, 780, 8526, 2710, 2673, 16, 1082, 202, 6494, 19371, 13, 288, 202, 202, 430, 261, 6447, 2673, 422, 446, 747, 2710, 2673, 18, 2469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2120, 13061, 1350, 3187, 8526, 1993, 7513, 12, 780, 8526, 2710, 2673, 16, 1082, 202, 6494, 19371, 13, 288, 202, 202, 430, 261, 6447, 2673, 422, 446, 747, 2710, 2673, 18, 2469, ...
public long getPageNumber();
public long getPageNumber( );
public long getPageNumber();
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/83de512a7dc3a128ad54fa2607c01f0ef928234c/IPageContent.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/IPageContent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 8957, 1854, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 8957, 1854, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
moveToDefaultLocation();
moveToDefaultLocation();
protected void initBankEditorFrame() { //...Create the GUI and put it in the window... myModel = new PatchGridModel(bankData); table = new JTable(myModel); table2 = table; table.setTransferHandler(pth); table.setDragEnabled(true); // Only one patch can be handled. table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); // Select index (0, 0) to ensure a patch is selected. table.changeSelection(0, 0, false, false); table.setPreferredScrollableViewportSize(preferredScrollableViewportSize); //table.setRowSelectionAllowed(true); //table.setColumnSelectionAllowed(true); table.setCellSelectionEnabled(true); table.setAutoResizeMode(autoResizeMode); ListSelectionListener lsl = new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { enableActions(); } }; table.getSelectionModel().addListSelectionListener(lsl); table.getColumnModel().getSelectionModel().addListSelectionListener(lsl); table.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { if (e.isPopupTrigger()) Actions.showMenuPatchPopup(table2, e.getX(), e.getY()); } public void mouseReleased(MouseEvent e) { if (e.isPopupTrigger()) Actions.showMenuPatchPopup(table2, e.getX(), e.getY()); } public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) playSelectedPatch(); } }); this.addJSLFrameListener(new JSLFrameListener() { public void JSLFrameOpened(JSLFrameEvent e) { } public void JSLFrameClosed(JSLFrameEvent e) { } public void JSLFrameDeiconified(JSLFrameEvent e) { } public void JSLFrameIconified(JSLFrameEvent e) { } public void JSLFrameActivated(JSLFrameEvent e) { Actions.setEnabled(false, Actions.EN_GET | Actions.EN_EXTRACT // not available yet! | Actions.EN_SEND_TO | Actions.EN_REASSIGN); Actions.setEnabled(true, Actions.EN_IMPORT | Actions.EN_IMPORT_ALL | Actions.EN_NEW_PATCH); enableActions(); } public void JSLFrameClosing(JSLFrameEvent e) { JSLFrame[] jList = JSLDesktop.getAllFrames(); for (int j = 0; j < jList.length; j++) if (jList[j] instanceof PatchEditorFrame) { if (((PatchEditorFrame) (jList[j])).bankFrame == instance) { jList[j].moveToFront(); try { jList[j].setSelected(true); jList[j].setClosed(true); } catch (Exception e1) { } } } } public void JSLFrameDeactivated(JSLFrameEvent e) { Actions.setEnabled(false, Actions.EN_ALL); } }); //Create the scroll pane and add the table to it. JScrollPane scrollPane = new JScrollPane(table); scrollPane.getViewport() .setTransferHandler(new ProxyImportHandler(table, pth)); //Add the scroll pane to this window. getContentPane().add(scrollPane, BorderLayout.CENTER); for (int col = 0; col < table.getColumnCount(); col++) { TableColumn column = table.getColumnModel().getColumn(col); column.setPreferredWidth(preferredColumnWidth); } //...Then set the window size or call pack... setSize(600, 300); //Set the window's location. moveToDefaultLocation(); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/3bbf4cc3f14649dbc55dfca59b08bcd5ece4ec65/BankEditorFrame.java/clean/JSynthLib/core/BankEditorFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 16040, 6946, 3219, 1435, 288, 3639, 368, 2777, 1684, 326, 10978, 471, 1378, 518, 316, 326, 2742, 2777, 3639, 3399, 1488, 273, 394, 12042, 6313, 1488, 12, 10546, 751, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 16040, 6946, 3219, 1435, 288, 3639, 368, 2777, 1684, 326, 10978, 471, 1378, 518, 316, 326, 2742, 2777, 3639, 3399, 1488, 273, 394, 12042, 6313, 1488, 12, 10546, 751, 1769, ...
linc.longValue(), lmoveId.longValue(), itype.intValue(), istatus.intValue());
Long.parseLong(linc), Long.parseLong(lmoveId), Integer.parseInt(itype), Integer.parseInt(istatus));
private TopologyEntry createTopologyEntry(Attributes ats) { String agent = (String) getAttribute(ats, TopologyNamingConstants.AGENT_ATTR); String node = (String) getAttribute(ats, TopologyNamingConstants.NODE_ATTR); String host = (String) getAttribute(ats, TopologyNamingConstants.HOST_ATTR); String site = (String) getAttribute(ats, TopologyNamingConstants.SITE_ATTR); String enclave = (String) getAttribute(ats, TopologyNamingConstants.ENCLAVE_ATTR); Long linc = (Long) getAttribute(ats, TopologyNamingConstants.INCARNATION_ATTR); Long lmoveId = (Long) getAttribute(ats, TopologyNamingConstants.MOVE_ID_ATTR); Integer itype = (Integer) getAttribute(ats, TopologyNamingConstants.TYPE_ATTR); Integer istatus = (Integer) getAttribute(ats, TopologyNamingConstants.STATUS_ATTR); return new TopologyEntry( agent, node, host, site, enclave, linc.longValue(), lmoveId.longValue(), itype.intValue(), istatus.intValue()); }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/9675380134604d5900f3fbb4b47e1b32fbcfb834/TopologyReaderServiceComponent.java/buggy/core/src/org/cougaar/core/topology/TopologyReaderServiceComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3238, 19726, 1622, 752, 18618, 1622, 12, 2498, 622, 87, 13, 288, 3639, 514, 4040, 282, 273, 261, 780, 13, 4061, 12, 2323, 16, 5411, 19726, 24102, 2918, 18, 15005, 67, 12043, 1769, 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, 4202, 3238, 19726, 1622, 752, 18618, 1622, 12, 2498, 622, 87, 13, 288, 3639, 514, 4040, 282, 273, 261, 780, 13, 4061, 12, 2323, 16, 5411, 19726, 24102, 2918, 18, 15005, 67, 12043, 1769, 3639, ...
checkExpression(secondNode);
public Node getOperatorCallNode(Node firstNode, String operator, Node secondNode) { checkExpression(firstNode); checkExpression(secondNode); return new CallNode(firstNode.getPosition(), firstNode, operator, new ArrayNode(secondNode.getPosition()).add(secondNode)); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/981d76c8b595dfbe131493e89ca5ff7db5834a2e/ParserSupport.java/buggy/src/org/jruby/parser/ParserSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 24379, 1477, 907, 12, 907, 1122, 907, 16, 514, 3726, 16, 2029, 2205, 907, 13, 288, 3639, 866, 2300, 12, 3645, 907, 1769, 9079, 327, 394, 3049, 907, 12, 3645, 907, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 24379, 1477, 907, 12, 907, 1122, 907, 16, 514, 3726, 16, 2029, 2205, 907, 13, 288, 3639, 866, 2300, 12, 3645, 907, 1769, 9079, 327, 394, 3049, 907, 12, 3645, 907, 18, 588, ...
((LifecycleAware) listeners[i]).initialize(this, config);
((LifecycleAware) listeners[i]).initialize(cache, config);
protected Cache configureStandardListeners(Cache cache) { if (config.getProperty(PERSISTENCE_CLASS) != null) { cache = setPersistenceListener(cache); } if (config.getProperty(CACHE_ENTRY_EVENT_LISTENERS) != null) { // Grab all the specified listeners and add them to the cache's // listener list. Note that listeners that implement more than // one of the event interfaces will be added multiple times. CacheEventListener[] listeners = getCacheEventListeners(); for (int i = 0; i < listeners.length; i++) { // Pass through the configuration to those listeners that require it if (listeners[i] instanceof LifecycleAware) { try { ((LifecycleAware) listeners[i]).initialize(this, config); } catch (InitializationException e) { log.error("Could not initialize listener '" + listeners[i].getClass().getName() + "'. Listener ignored.", e); continue; } } if (listeners[i] instanceof CacheEntryEventListener) { cache.addCacheEventListener(listeners[i], CacheEntryEventListener.class); } if (listeners[i] instanceof CacheMapAccessEventListener) { cache.addCacheEventListener(listeners[i], CacheMapAccessEventListener.class); } } } return cache; }
58834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58834/d500f24c8aede88f65f71296055255d1ee78d231/AbstractCacheAdministrator.java/buggy/src/core/java/com/opensymphony/oscache/base/AbstractCacheAdministrator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4379, 5068, 8336, 5583, 12, 1649, 1247, 13, 288, 3639, 309, 261, 1425, 18, 588, 1396, 12, 3194, 18732, 7535, 67, 5237, 13, 480, 446, 13, 288, 5411, 1247, 273, 444, 13182, 2223, 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, 4750, 4379, 5068, 8336, 5583, 12, 1649, 1247, 13, 288, 3639, 309, 261, 1425, 18, 588, 1396, 12, 3194, 18732, 7535, 67, 5237, 13, 480, 446, 13, 288, 5411, 1247, 273, 444, 13182, 2223, 12...
SecurityManager s = System.getSecurityManager(); if (s != null && isConnected()) s.checkAccept(p.getAddress().getHostName(), p.getPort()); }
SecurityManager s = System.getSecurityManager(); if (s != null && isConnected()) s.checkAccept(p.getAddress().getHostAddress(), p.getPort()); }
public synchronized void receive(DatagramPacket p) throws IOException { if (isClosed()) throw new SocketException("socket is closed"); if (remoteAddress != null && remoteAddress.isMulticastAddress()) throw new IOException ("Socket connected to a multicast address my not receive"); if (getChannel() != null && ! getChannel().isBlocking() && ! ((DatagramChannelImpl) getChannel()).isInChannelOperation()) throw new IllegalBlockingModeException(); getImpl().receive(p); SecurityManager s = System.getSecurityManager(); if (s != null && isConnected()) s.checkAccept(p.getAddress().getHostName(), p.getPort()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6cac04c48e1afad0cfbb014fb4ace224bd84bfaf/DatagramSocket.java/clean/core/src/classpath/java/java/net/DatagramSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 918, 6798, 12, 5139, 17049, 6667, 293, 13, 1216, 1860, 225, 288, 565, 309, 261, 291, 7395, 10756, 1377, 604, 394, 8758, 503, 2932, 7814, 353, 4375, 8863, 565, 309, 261, 7222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 6798, 12, 5139, 17049, 6667, 293, 13, 1216, 1860, 225, 288, 565, 309, 261, 291, 7395, 10756, 1377, 604, 394, 8758, 503, 2932, 7814, 353, 4375, 8863, 565, 309, 261, 7222, ...
int nowTime = Util.getTimeFromDate(now);
int nowTime = DateUtil.getTimeFromDate(now);
long checkTimeBuilders(Date now, long proposedTime) { long timeToNextBuild = proposedTime; if (hasOnlyTimeBuilders()) { timeToNextBuild = Long.MAX_VALUE; } int nowTime = Util.getTimeFromDate(now); Iterator builderIterator = builders.iterator(); while (builderIterator.hasNext()) { Builder builder = (Builder) builderIterator.next(); int thisBuildTime = builder.getTime(); boolean isTimeBuilder = thisBuildTime != Builder.NOT_SET; if (isTimeBuilder) { long timeToThisBuild = Long.MAX_VALUE; long maxDays = MAX_INTERVAL_MILLISECONDS; for (long daysInTheFuture = 0; daysInTheFuture < maxDays; daysInTheFuture += ONE_DAY) { Date day = new Date(now.getTime() + daysInTheFuture); boolean dayIsValid = builder.isValidDay(day); if (dayIsValid) { long timeDifference = Util.milliTimeDiffernce(nowTime, thisBuildTime); long daysInBetween = daysInTheFuture; boolean timePassedToday = timeDifference + daysInBetween < 0; if (!timePassedToday) { timeToThisBuild = timeDifference + daysInBetween; break; } } } if (timeToThisBuild < timeToNextBuild) { timeToNextBuild = timeToThisBuild; } } } if (timeToNextBuild > MAX_INTERVAL_MILLISECONDS) { LOG.error( "checkTimeBuilders exceeding maximum interval. using proposed value [" + proposedTime + "] instead"); timeToNextBuild = proposedTime; } return timeToNextBuild; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/63dd79f033547566736111c08f631c0430c710a0/Schedule.java/clean/main/src/net/sourceforge/cruisecontrol/Schedule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1525, 866, 950, 20460, 12, 1626, 2037, 16, 1525, 20084, 950, 13, 288, 3639, 1525, 23813, 2134, 3116, 273, 20084, 950, 31, 3639, 309, 261, 5332, 3386, 950, 20460, 10756, 288, 5411, 23813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 866, 950, 20460, 12, 1626, 2037, 16, 1525, 20084, 950, 13, 288, 3639, 1525, 23813, 2134, 3116, 273, 20084, 950, 31, 3639, 309, 261, 5332, 3386, 950, 20460, 10756, 288, 5411, 23813, ...
private void processAttribute(AttributeDecl attribute) throws SAXException { String ELEMENT_NAME = "xsd:attribute"; _atts.clear(); //-- name String value = attribute.getName(); _atts.addAttribute("name", null, value); //-- type attribute boolean hasAnonymousType = false; SimpleType type = attribute.getSimpleType(); if (type.getName() != null) { _atts.addAttribute("type", null, type.getName()); } else hasAnonymousType = true; //-- use flag....kinda nasty if (attribute.isRequired()) { _atts.addAttribute("use", null, "required"); } else if (attribute.isFixed()) { _atts.addAttribute("use", null, "fixed"); _atts.addAttribute("value", null, attribute.getValue()); } _handler.startElement(ELEMENT_NAME, _atts); //-- process annotations processAnnotated(attribute); //-- process anonymous type if necessary if (hasAnonymousType) { processSimpleType(type); } _handler.endElement(ELEMENT_NAME); } //-- processAttribute
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/7ee630a0e8f0bc9bb27ab645fc4560e9ffbfc73c/SchemaWriter.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/schema/writer/SchemaWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1499, 12, 1499, 3456, 1566, 13, 3639, 1216, 14366, 565, 288, 3639, 514, 13424, 67, 1985, 273, 315, 19144, 30, 4589, 14432, 7734, 389, 270, 3428, 18, 8507, 5621, 7734, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1499, 12, 1499, 3456, 1566, 13, 3639, 1216, 14366, 565, 288, 3639, 514, 13424, 67, 1985, 273, 315, 19144, 30, 4589, 14432, 7734, 389, 270, 3428, 18, 8507, 5621, 7734, 368...
iVisited.accept(_Payload);
_Payload.visitRedoNode(iVisited);
public void visitRedoNode(RedoNode iVisited) { iVisited.accept(_Payload); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/buggy/org/jruby/nodes/visitor/DefaultIteratorVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 3715, 83, 907, 12, 3715, 83, 907, 277, 30019, 13, 288, 202, 202, 77, 30019, 18, 9436, 24899, 6110, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 3715, 83, 907, 12, 3715, 83, 907, 277, 30019, 13, 288, 202, 202, 77, 30019, 18, 9436, 24899, 6110, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
return Character.isLowerCase((char) ch);
int index = ch - Character.MIN_SURROGATE; return ((index >= 0) && (index < AbstractCharClass.SURROGATE_CARDINALITY)) ? this.altSurrogates ^ lHS.get(index) : false;
public boolean contains(int ch) { return Character.isLowerCase((char) ch); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/b4e4f564fd7939c2808e34532e674a46336dccdd/AbstractCharClass.java/buggy/modules/regex/src/main/java/java/util/regex/AbstractCharClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 1250, 1914, 12, 474, 462, 13, 288, 10792, 509, 770, 273, 462, 300, 6577, 18, 6236, 67, 26397, 1457, 26316, 31, 225, 327, 14015, 1615, 1545, 374, 13, 597, 261, 1615, 411, 4115, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 1250, 1914, 12, 474, 462, 13, 288, 10792, 509, 770, 273, 462, 300, 6577, 18, 6236, 67, 26397, 1457, 26316, 31, 225, 327, 14015, 1615, 1545, 374, 13, 597, 261, 1615, 411, 4115, 21...
releaseLock(conn, LOCK_TRIGGER_ACCESS, transOwner); closeConnection(conn);
try { releaseLock(conn, LOCK_TRIGGER_ACCESS, transOwner); } finally { closeConnection(conn); }
public void pauseJobGroup(SchedulingContext ctxt, String groupName) throws JobPersistenceException { Connection conn = getConnection(); boolean transOwner = false; try { getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS); transOwner = true; //getLockHandler().obtainLock(conn, LOCK_JOB_ACCESS); String[] jobNames = getJobNames(conn, ctxt, groupName); for (int i = 0; i < jobNames.length; i++) { Trigger[] triggers = getTriggersForJob(conn, ctxt, jobNames[i], groupName); for (int j = 0; j < triggers.length; j++) { pauseTrigger(conn, ctxt, triggers[j].getName(), triggers[j] .getGroup()); } } } finally { releaseLock(conn, LOCK_TRIGGER_ACCESS, transOwner); closeConnection(conn); } }
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/24a1487e362febf7eeb1be9cd4c7b48ba29ecfed/JobStoreCMT.java/clean/src/java/org/quartz/impl/jdbcjobstore/JobStoreCMT.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11722, 2278, 1114, 12, 25401, 1042, 14286, 16, 514, 11619, 13, 5411, 1216, 3956, 13182, 503, 288, 3639, 4050, 1487, 273, 6742, 5621, 3639, 1250, 906, 5541, 273, 629, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11722, 2278, 1114, 12, 25401, 1042, 14286, 16, 514, 11619, 13, 5411, 1216, 3956, 13182, 503, 288, 3639, 4050, 1487, 273, 6742, 5621, 3639, 1250, 906, 5541, 273, 629, 31, 3639, ...
private void initBodyGeneration(Context cx)
private void initBodyGeneration()
private void initBodyGeneration(Context cx) { inDirectCallFunction = (fnCurrent == null) ? false : fnCurrent.isTargetOfDirectCall(); itsUseDynamicScope = cx.hasCompileFunctionsWithDynamicScope(); hasVarsInRegs = (fnCurrent != null && !fnCurrent.requiresActivation()); locals = new boolean[MAX_LOCALS]; funObjLocal = 0; contextLocal = 1; variableObjectLocal = 2; thisObjLocal = 3; localsMax = (short) 4; // number of parms + "this" firstFreeLocal = 4; scriptResultLocal = -1; argsLocal = -1; itsZeroArgArray = -1; itsOneArgArray = -1; epilogueLabel = -1; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7de4ae25f0fd144cbc3ddabc47e7a327a747af5a/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 2250, 13842, 1435, 565, 288, 3639, 316, 5368, 1477, 2083, 273, 261, 4293, 3935, 422, 446, 13, 692, 629, 4766, 282, 294, 2295, 3935, 18, 291, 2326, 951, 5368, 1477, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 2250, 13842, 1435, 565, 288, 3639, 316, 5368, 1477, 2083, 273, 261, 4293, 3935, 422, 446, 13, 692, 629, 4766, 282, 294, 2295, 3935, 18, 291, 2326, 951, 5368, 1477, 5621, ...
public NSDictionary createdKeys() {return ((Session)session()).localizer().createdKeys();
public NSDictionary createdKeys() { return ((Session)session()).localizer().createdKeys();
public NSDictionary createdKeys() {return ((Session)session()).localizer().createdKeys(); }
810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/2e6d3c63af10f43efcfed7fd3f3db4b4c70b3dd0/HomePage.java/clean/Wonder/Common/Applications/BugTracker/Sources/er/bugtracker/HomePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 423, 9903, 3192, 2522, 2396, 1435, 288, 327, 14015, 2157, 13, 3184, 1435, 2934, 3729, 1824, 7675, 4824, 2396, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 423, 9903, 3192, 2522, 2396, 1435, 288, 327, 14015, 2157, 13, 3184, 1435, 2934, 3729, 1824, 7675, 4824, 2396, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Element cn = request.addElement(MailService.E_CONTACT);
private List<Element> proxyRemote(Element request, ArrayList<String> attrs, boolean sync, String sortStr, int folderId, Map<String, StringBuffer> remote, Map<String,Object> context) throws ServiceException { Element cn = request.addElement(MailService.E_CONTACT); List<Element> responses = new ArrayList<Element>(); for (Iterator it = remote.entrySet().iterator(); it.hasNext(); ) { Map.Entry entry = (Map.Entry) it.next(); cn.addAttribute(MailService.A_ID, entry.getValue().toString()); try { Element response = proxyRequest(request, context, entry.getKey().toString()); extractResponses(response, responses); } catch (SoapFaultException e) { throw ServiceException.FAILURE("SoapFaultException: "+e.toString(), e); } } return responses; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/f136872ef04889a2fa6dea0dffe7f15bfbfd14a1/GetContacts.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/GetContacts.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 32, 1046, 34, 2889, 5169, 12, 1046, 590, 16, 2407, 32, 780, 34, 3422, 16, 1250, 3792, 16, 514, 1524, 1585, 16, 509, 31996, 16, 1635, 32, 780, 16, 6674, 34, 225, 2632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 32, 1046, 34, 2889, 5169, 12, 1046, 590, 16, 2407, 32, 780, 34, 3422, 16, 1250, 3792, 16, 514, 1524, 1585, 16, 509, 31996, 16, 1635, 32, 780, 16, 6674, 34, 225, 2632, ...
parse(buffer.toString(), ParserLanguage.CPP, true, true);
parse(buffer.toString(), ParserLanguage.CPP, true, 0);
public void test7_3_3s15() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("class A {\n"); //$NON-NLS-1$ buffer.append("private:\n"); //$NON-NLS-1$ buffer.append("void f(char);\n"); //$NON-NLS-1$ buffer.append("public:\n"); //$NON-NLS-1$ buffer.append("void f(int);\n"); //$NON-NLS-1$ buffer.append("protected:\n"); //$NON-NLS-1$ buffer.append("void g();\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("class B : public A {\n"); //$NON-NLS-1$ buffer.append("using A::f; // error: A::f(char) is inaccessible\n"); //$NON-NLS-1$ buffer.append("public:\n"); //$NON-NLS-1$ buffer.append("using A::g; // B::g is a public synonym for A::g\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, true, true); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 27, 67, 23, 67, 23, 87, 3600, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1106, 432, 18890, 82, 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, 225, 202, 482, 918, 1842, 27, 67, 23, 67, 23, 87, 3600, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1106, 432, 18890, 82, 8863, ...
break _loop178;
break _loop184;
public final void predicates() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST predicates_AST = null; { _loop178: do { if ((LA(1)==LPPAREN)) { predicate(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop178; } } while (true); } predicates_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = predicates_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/942d71ceffee004821cc1b2e75c2538951c04027/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 16403, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16403, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, ...
iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop);
iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/7f850f6162d49fce5f2a418eb4b32ba1cf9d58bf/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
private void addRevision(File revision, String status) { User user = revision.getServer().getUser(revision.getModifiedBy()); if ((user != null) && (user.getName().equals("BuildMaster"))) return; /* Only get emails for users still on the system */ if (user != null) { /* Try to obtain email to add. This is only allowed if logged on user is SERVER ADMINISTRATOR */ try { emailAddresses.add(user.getServer().getAdministration().findUserAccount(user.getID()).getEmailAddress()); } catch (ServerException sx) { /* * Logged on user does not have permission to get user's email. Return the modifying user's name instead. * Then use the email.properties file to map the name to an email address outside of StarTeam */ emailAddresses.add(user.getName()); } } Modification mod = new Modification(); mod.type = status; mod.fileName = revision.getName(); mod.folderName = revision.getParentFolder().getFolderHierarchy(); mod.modifiedTime = revision.getModifiedTime().createDate(); mod.userName = user.getName(); mod.comment = revision.getComment(); modifications.add(mod); log("File: " + mod.fileName); log("userName: " + mod.userName + " Date: " + mod.modifiedTime); if (revision.getModifiedTime().getLongValue() > mostRecent) { mostRecent = revision.getModifiedTime().getLongValue(); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/05a09f95c873b19abccfd57c85fb3409716070ee/StarTeamElement.java/clean/main/src/net/sourceforge/cruisecontrol/StarTeamElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7939, 12, 812, 6350, 16, 514, 1267, 13, 288, 7734, 2177, 729, 273, 6350, 18, 588, 2081, 7675, 588, 1299, 12, 13057, 18, 588, 4575, 858, 10663, 7734, 309, 14015, 1355, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7939, 12, 812, 6350, 16, 514, 1267, 13, 288, 7734, 2177, 729, 273, 6350, 18, 588, 2081, 7675, 588, 1299, 12, 13057, 18, 588, 4575, 858, 10663, 7734, 309, 14015, 1355, 48...
_source.print(" protected ");
_source.print(" public ");
public void visit(SmcFSM fsm) { String rawSource = fsm.getSource(); String packageName = fsm.getPackage(); String context = fsm.getContext(); String startState = fsm.getStartState(); String accessLevel = fsm.getAccessLevel(); List maps = fsm.getMaps(); List transitions; Iterator it; Iterator it2; SmcMap map; SmcTransition trans; String transName; SmcParameter param; String javaState; String separator; int index; List params; // If the access level has not been set, then the default // is "public". if (accessLevel == null || accessLevel.length() == 0) { accessLevel = "public"; } // If the access level is package, change it to // /* package */ else if (accessLevel.equals("package") == true) { accessLevel = "/* package */"; } // Dump out the raw source code, if any. if (rawSource != null && rawSource.length() > 0) { _source.println(rawSource); _source.println(); } // If a package has been specified, generate the // package statement now. if (packageName != null && packageName.length() > 0) { _source.print("package "); _source.print(packageName); _source.println(";"); _source.println(); } // Do user-specified imports now. for (it = fsm.getImports().iterator(); it.hasNext() == true; ) { _source.print("import "); _source.print(it.next()); _source.println(";"); } // If the -g option was specified, then import the // PrintStream class. if (Smc.isDebug() == true) { _source.println("import java.io.PrintStream;"); _source.println(); } else if (fsm.getImports().size() != 0) { _source.println(); } // The context clas contains all the state classes as // inner classes, so generate the context first rather // than last. _source.print(accessLevel); _source.print(" final class "); _source.print(context); _source.println("Context"); _source.println(" extends statemap.FSMContext"); if (Smc.isSerial() == true) { _source.println( " implements java.io.Serializable"); } _source.println("{"); _source.println( "//---------------------------------------------------------------"); _source.println("// Member methods."); _source.println("//"); _source.println(); // Generate the context class' constructor. _source.print(" public "); _source.print(context); _source.print("Context("); _source.print(context); _source.println(" owner)"); _source.println(" {"); _source.println(" super();"); _source.println(); _source.println(" _owner = owner;"); // The state name "map::state" must be changed to // "map.state". if ((index = startState.indexOf("::")) >= 0) { javaState = startState.substring(0, index) + "." + startState.substring(index + 2); } else { javaState = startState; } _source.print(" setState("); _source.print(javaState); _source.println(");"); // Execute the start state's entry actions. _source.print(" "); _source.print(javaState); _source.println(".Entry(this);"); _source.println(" }"); _source.println(); // Generate the default transition methods. // Get the transition list. transitions = (List) new ArrayList(); for (it = maps.iterator(); it.hasNext() == true;) { map = (SmcMap) it.next(); // Merge the new transitions into the current set. transitions = Smc.merge( map.getTransitions(), transitions, new Comparator() { public int compare(Object o1, Object o2) { return ( ((SmcTransition) o1).compareTo( (SmcTransition) o2)); } }); } // Generate the transition methods. for (it = transitions.iterator(); it.hasNext() == true;) { trans = (SmcTransition) it.next(); if (trans.getName().equals("Default") == false) { _source.print(" public "); // If the -sync flag was specified, then output // the "synchronized" keyword. if (Smc.isSynchronized() == true) { _source.print("synchronized "); } _source.print("void "); _source.print(trans.getName()); _source.print("("); params = trans.getParameters(); for (it2 = params.iterator(), separator = ""; it2.hasNext() == true; separator = ", ") { _source.print(separator); ((SmcParameter) it2.next()).accept(this); } _source.println(")"); _source.println(" {"); // Save away the transition name in case it is // need in an UndefinedTransitionException. _source.print(" _transition = \""); _source.print(trans.getName()); _source.println("\";"); _source.print(" getState()."); _source.print(trans.getName()); _source.print("(this"); for (it2 = params.iterator(); it2.hasNext() == true; ) { param = (SmcParameter) it2.next(); _source.print(", "); _source.print(param.getName()); } _source.println(");"); _source.println(" _transition = \"\";"); _source.println(" return;"); _source.println(" }"); _source.println(); } } // If serialization is turned on, then generate a // setOwner method which allows the application class // to restore its ownership of the FSM. if (Smc.isSerial() == true) { _source.print(" public void setOwner("); _source.print(context); _source.println(" owner)"); _source.println(" {"); _source.println(" if (owner == null)"); _source.println(" {"); _source.println( " throw (new NullPointerException());"); _source.println(" }"); _source.println(); _source.println(" _owner = owner;"); _source.println(" return;"); _source.println(" }"); _source.println(); // Also output the valueOf method in case developers // want to serialize manually. _source.print(" public "); _source.print(context); _source.println("State valueOf(int stateId)"); _source.println( " throws ArrayIndexOutOfBoundsException"); _source.println(" {"); _source.println( " return (_States[stateId]);"); _source.println(" }"); _source.println(); } // getState() method. _source.print(" protected "); _source.print(context); _source.println("State getState()"); _source.println( " throws statemap.StateUndefinedException"); _source.println(" {"); _source.println(" if (_state == null)"); _source.println(" {"); _source.println( " throw("); _source.println( " new statemap.StateUndefinedException());"); _source.println(" }"); _source.println(); _source.print(" return (("); _source.print(context); _source.println("State) _state);"); _source.println(" }"); _source.println(); // getOwner() method. _source.print(" protected "); _source.print(context); _source.println(" getOwner()"); _source.println(" {"); _source.println(" return (_owner);"); _source.println(" }"); _source.println(); // If serialization is turned on, then output the // writeObject and readObject methods. if (Smc.isSerial() == true) { _source.print( " private void writeObject("); _source.println( "java.io.ObjectOutputStream ostream)"); _source.println( " throws java.io.IOException"); _source.println(" {"); _source.println( " int size ="); _source.print(" "); _source.println( "(_stateStack == null ? 0 : _stateStack.size());"); _source.println(" int i;"); _source.println(); _source.println( " ostream.writeInt(size);"); _source.println(); _source.println( " for (i = 0; i < size; ++i)"); _source.println(" {"); _source.println(" ostream.writeInt("); _source.print(" (("); _source.print(context); _source.println( "State) _stateStack.get(i)).getId());"); _source.println(" }"); _source.println(); _source.println( " ostream.writeInt(_state.getId());"); _source.println(); _source.println(" return;"); _source.println(" }"); _source.println(); _source.print(" private void readObject("); _source.println( "java.io.ObjectInputStream istream)"); _source.println( " throws java.io.IOException"); _source.println(" {"); _source.println(" int size;"); _source.println(); _source.println(" size = istream.readInt();"); _source.println(); _source.println(" if (size == 0)"); _source.println(" {"); _source.println(" _stateStack = null;"); _source.println(" }"); _source.println(" else"); _source.println(" {"); _source.println(" int i;"); _source.println(); _source.println( " _stateStack = new java.util.Stack();"); _source.println(); _source.println( " for (i = 0; i < size; ++i)"); _source.println(" {"); _source.print( " _stateStack.add(i, _States["); _source.println("istream.readInt()]);"); _source.println(" }"); _source.println(" }"); _source.println(); _source.println( " _state = _States[istream.readInt()];"); _source.println(); _source.println(" return;"); _source.println(" }"); _source.println(); } // Declare member data. _source.println( "//---------------------------------------------------------------"); _source.println("// Member data."); _source.println("//"); _source.println(); _source.print(" transient private "); _source.print(context); _source.println(" _owner;"); // If serialization support is on, then create the state // array. if (Smc.isSerial() == true) { String mapName; Iterator stateIt; SmcState state; _source.print(" transient private static "); _source.print(context); _source.println("State[] _States ="); _source.println(" {"); for (it = fsm.getMaps().iterator(), separator = ""; it.hasNext() == true; ) { map = (SmcMap) it.next(); mapName = map.getName(); for (stateIt = map.getStates().iterator(); stateIt.hasNext() == true; separator = ",\n") { state = (SmcState) stateIt.next(); _source.print(separator); _source.print(" "); _source.print(mapName); _source.print("."); _source.print(state.getClassName()); } } _source.println(); _source.println(" };"); } // Declare the inner state class. _source.println(); _source.println( "//---------------------------------------------------------------"); _source.println("// Inner classes."); _source.println("//"); _source.println(); _source.print(" protected static abstract class "); _source.print(context); _source.println("State"); _source.println(" extends statemap.State"); _source.println(" {"); // Constructor. _source.print(" protected "); _source.print(context); _source.println("State(String name, int id)"); _source.println(" {"); _source.println(" super (name, id);"); _source.println(" }"); _source.println(); _source.print(" protected void Entry("); _source.print(context); _source.println("Context context) {}"); _source.print(" protected void Exit("); _source.print(context); _source.println("Context context) {}"); _source.println(); // Generate the default transition definitions. for (it = transitions.iterator(); it.hasNext() == true;) { trans = (SmcTransition) it.next(); transName = trans.getName(); // Don't generate the Default transition here. if (transName.equals("Default") == false) { _source.print(" protected void "); _source.print(transName); _source.print("("); _source.print(context); _source.print("Context context"); params = trans.getParameters(); for (it2 = params.iterator(); it2.hasNext() == true; ) { _source.print(", "); ((SmcParameter) it2.next()).accept(this); } _source.println(")"); _source.println(" {"); // If this method is reached, that means that this // transition was passed to a state which does not // define the transition. Call the state's default // transition method. _source.println(" Default(context);"); _source.println(" }"); _source.println(); } } // Generate the overall Default transition for all maps. _source.print(" protected void Default("); _source.print(context); _source.println("Context context)"); _source.println(" {"); if (Smc.isDebug() == true) { _source.println( " if (context.getDebugFlag() == true)"); _source.println(" {"); _source.println( " PrintStream str = "); _source.println( " context.getDebugStream();"); _source.println(); _source.println( " str.println("); _source.println( " \"TRANSITION : Default\");"); _source.println(" }"); _source.println(); } _source.println(" throw ("); _source.println( " new statemap.TransitionUndefinedException("); _source.println( " \"State: \" +"); _source.println( " context.getState().getName() +"); _source.println( " \", Transition: \" +"); _source.println( " context.getTransition()));"); _source.println(" }"); // End of state class. _source.println(" }"); // Have each map print out its source code now. for (it = maps.iterator(); it.hasNext();) { ((SmcMap) it.next()).accept(this); } // End of context class. _source.println("}"); return; }
50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/ccc9a76c7a1e015a8a020722db568d924b00e774/SmcJavaGenerator.java/clean/net/sf/smc/SmcJavaGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12, 9552, 71, 4931, 49, 26957, 13, 565, 288, 3639, 514, 1831, 1830, 273, 26957, 18, 588, 1830, 5621, 3639, 514, 9929, 273, 26957, 18, 588, 2261, 5621, 3639, 514, 819, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12, 9552, 71, 4931, 49, 26957, 13, 565, 288, 3639, 514, 1831, 1830, 273, 26957, 18, 588, 1830, 5621, 3639, 514, 9929, 273, 26957, 18, 588, 2261, 5621, 3639, 514, 819, 2...
} else if (oldOffset + BYTES_PER_ELEMENT[oldType] == raf.length()) { newOffset = oldOffset; if (DEBUG) debug("overwriteIFDValue: old entry is at EOF");
public static void overwriteIFDValue(RandomAccessFile raf, int ifd, int tag, Object value) throws FormatException, IOException { if (DEBUG) { debug("overwriteIFDValue (ifd=" + ifd + "; tag=" + tag + "; value=" + value + ")"); } byte[] header = new byte[4]; raf.seek(0); raf.readFully(header); if (!isValidHeader(header)) { throw new FormatException("Invalid TIFF header"); } boolean little = header[0] == LITTLE && header[1] == LITTLE; // II long offset = 4; // offset to the IFD int num = 0; // number of directory entries // skip to the correct IFD for (int i=0; i<=ifd; i++) { offset = DataTools.read4UnsignedBytes(raf, little); if (offset <= 0) { throw new FormatException("No such IFD (" + ifd + " of " + i + ")"); } raf.seek(offset); num = DataTools.read2UnsignedBytes(raf, little); if (i < ifd) raf.seek(offset + 2 + 12 * num); } // search directory entries for proper tag for (int i=0; i<num; i++) { int oldTag = DataTools.read2UnsignedBytes(raf, little); int oldType = DataTools.read2UnsignedBytes(raf, little); int oldCount = DataTools.read4SignedBytes(raf, little); int oldOffset = DataTools.read4SignedBytes(raf, little); if (oldTag == tag) { // write new value to buffers ByteArrayOutputStream ifdBuf = new ByteArrayOutputStream(14); DataOutputStream ifdOut = new DataOutputStream(ifdBuf); ByteArrayOutputStream extraBuf = new ByteArrayOutputStream(); DataOutputStream extraOut = new DataOutputStream(extraBuf); writeIFDValue(ifdOut, extraBuf, extraOut, oldOffset, tag, value); byte[] bytes = ifdBuf.toByteArray(); byte[] extra = extraBuf.toByteArray(); // extract new directory entry parameters int newTag = DataTools.bytesToInt(bytes, 0, 2, false); int newType = DataTools.bytesToInt(bytes, 2, 2, false); int newCount = DataTools.bytesToInt(bytes, 4, false); int newOffset = DataTools.bytesToInt(bytes, 8, false); if (DEBUG) { debug("overwriteIFDValue:\n\told: (tag=" + oldTag + "; type=" + oldType + "; count=" + oldCount + "; offset=" + oldOffset + ");\n\tnew: (tag=" + newTag + "; type=" + newType + "; count=" + newCount + "; offset=" + newOffset + ")"); } // determine the best way to overwrite the old entry if (extra.length == 0) { // new entry is inline; if old entry wasn't, old data is orphaned // do not override new offset value since data is inline if (DEBUG) debug("overwriteIFDValue: new entry is inline"); } else if (newCount <= oldCount) { // new entry is as small or smaller than old entry; overwrite it newOffset = oldOffset; if (DEBUG) debug("overwriteIFDValue: new entry is <= old entry"); } else if (oldOffset + BYTES_PER_ELEMENT[oldType] == raf.length()) { // old entry was already at EOF; overwrite it newOffset = oldOffset; if (DEBUG) debug("overwriteIFDValue: old entry is at EOF"); } else { // old entry was elsewhere; append to EOF, orphaning old entry newOffset = (int) raf.length(); if (DEBUG) debug("overwriteIFDValue: old entry will be orphaned"); } // overwrite old entry raf.seek(raf.getFilePointer() - 10); // jump back DataTools.writeShort(raf, newType, little); DataTools.writeInt(raf, newCount, little); DataTools.writeInt(raf, newOffset, little); if (extra.length > 0) { raf.seek(newOffset); raf.write(extra); } return; } } throw new FormatException("Tag not found (" + getIFDTagName(tag) + ")"); }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/4b0723edb4db82cde3ec9b1d49556e7e9107ef46/TiffTools.java/clean/loci/formats/TiffTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 6156, 5501, 40, 620, 12, 8529, 26933, 24671, 16, 565, 509, 309, 72, 16, 509, 1047, 16, 1033, 460, 13, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 9394, 13, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 6156, 5501, 40, 620, 12, 8529, 26933, 24671, 16, 565, 509, 309, 72, 16, 509, 1047, 16, 1033, 460, 13, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 9394, 13, 288...
if (listChangeListeners == listener) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (listChangeListeners instanceof Collection) { Collection listenerList = (Collection) listChangeListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } } }
changeSupport.removeListener(ListChangeEvent.TYPE, listener);
public synchronized void removeListChangeListener(IListChangeListener listener) { if (listChangeListeners == listener) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (listChangeListeners instanceof Collection) { Collection listenerList = (Collection) listChangeListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { listChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableList.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/AbstractObservableList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 682, 15744, 12, 45, 682, 15744, 2991, 13, 288, 202, 202, 430, 261, 1098, 3043, 5583, 422, 2991, 13, 288, 1082, 202, 1098, 3043, 5583, 273, 446, 31, 1082, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 682, 15744, 12, 45, 682, 15744, 2991, 13, 288, 202, 202, 430, 261, 1098, 3043, 5583, 422, 2991, 13, 288, 1082, 202, 1098, 3043, 5583, 273, 446, 31, 1082, 202,...
/*
protected void simpleInitGame() { /* MaxToJme C1=new MaxToJme(); try { ByteArrayOutputStream BO=new ByteArrayOutputStream();// URL maxFile=TestMaxJmeWrite.class.getClassLoader().getResource("jmetest/data/model/cutsphere.3DS"); URL maxFile=TestMaxJmeWrite.class.getClassLoader().getResource("jmetest/data/model/Character.3DS");// URL maxFile = new File("3dsmodels/sphere.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/cobra.3DS").toURI().toURL();// URL maxFile = new File("3dsmodels/movedpivot.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/Character.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/test1.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/cutsphere.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/cube.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/face.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/pitbull.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/celt.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/tpot.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/europe.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/sphere.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/cow.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/growingcube.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/simpani.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/tank.3ds").toURI().toURL();// URL maxFile = new File("3dsmodels/simpmovement.3DS").toURI().toURL(); C1.convert(new BufferedInputStream(maxFile.openStream()),BO); JmeBinaryReader jbr=new JmeBinaryReader(); jbr.setProperty("texulr",new File("3dsmodels").toURL()); BinaryToXML btx=new BinaryToXML(); StringWriter SW=new StringWriter(); btx.sendBinarytoXML(new ByteArrayInputStream(BO.toByteArray()),SW); System.out.println(SW); jbr.setProperty("bound","box"); Node r=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));// r.setLocalScale(.01f); if (r.getChild(0).getControllers().size()!=0) r.getChild(0).getController(0).setSpeed(10); Quaternion temp=new Quaternion(); temp.fromAngleAxis(FastMath.PI/2,new Vector3f(-1,0,0)); rootNode.setForceView(true); rootNode.setLocalRotation(temp); rootNode.attachChild(r); } catch (IOException e) { System.out.println("Damn exceptions:"+e); e.printStackTrace(); } */ drawAxis(); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/35cab767b641ab58eaca6f449383958905559e5e/TestMaxJmeWrite.java/clean/src/jmetest/renderer/loader/TestMaxJmeWrite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4143, 2570, 12496, 1435, 288, 9079, 4238, 774, 46, 3501, 385, 21, 33, 2704, 4238, 774, 46, 3501, 5621, 3639, 775, 288, 5411, 11559, 9784, 33, 2704, 11559, 5621, 759, 5411, 1976...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4143, 2570, 12496, 1435, 288, 9079, 4238, 774, 46, 3501, 385, 21, 33, 2704, 4238, 774, 46, 3501, 5621, 3639, 775, 288, 5411, 11559, 9784, 33, 2704, 11559, 5621, 759, 5411, 1976...
new AlertDialog(clientgui.frame, Messages.getString("CustomMechDialog.NumberFormatError"), Messages.getString("CustomMechDialog.EnterValidSkills")).show();
new AlertDialog(clientgui.frame, Messages.getString("CustomMechDialog.NumberFormatError"), Messages.getString("CustomMechDialog.EnterValidSkills")).setVisible(true);
public void actionPerformed(java.awt.event.ActionEvent actionEvent) { if (actionEvent.getSource() == butOffBoardDistance) { int maxDistance = 19*17; // Long Tom for (Mounted wep : entity.getWeaponList()) { EquipmentType e = wep.getType(); WeaponType w = (WeaponType)e; if (w.hasFlag(WeaponType.F_ARTILLERY)) { int nDistance = (w.getLongRange()-1)*17; if (nDistance<maxDistance) { maxDistance = nDistance; } } } Slider sl = new Slider (clientgui.frame, Messages.getString("CustomMechDialog.offboardDistanceTitle"), Messages.getString("CustomMechDialog.offboardDistanceQuestion"), entity.getOffBoardDistance(), 17, maxDistance); if (!sl.showDialog()) return; distance = sl.getValue(); butOffBoardDistance.setLabel(Integer.toString(distance)); // butOffBoardDistance = new Button (Integer.toString(sl.getValue())); // butOffBoardDistance.addActionListener(this); return; } if (actionEvent.getSource() != butCancel) { // get values String name = fldName.getText(); int gunnery; int piloting; int offBoardDistance; boolean autoEject = chAutoEject.getState(); try { gunnery = Integer.parseInt(fldGunnery.getText()); piloting = Integer.parseInt(fldPiloting.getText()); } catch (NumberFormatException e) { new AlertDialog(clientgui.frame, Messages.getString("CustomMechDialog.NumberFormatError"), Messages.getString("CustomMechDialog.EnterValidSkills")).show(); //$NON-NLS-1$ //$NON-NLS-2$ return; } // keep these reasonable, please if (gunnery < 0 || gunnery > 7 || piloting < 0 || piloting > 7) { new AlertDialog(clientgui.frame, Messages.getString("CustomMechDialog.NumberFormatError"), Messages.getString("CustomMechDialog.EnterSkillsBetween0_7")).show(); //$NON-NLS-1$ //$NON-NLS-2$ return; } if (chOffBoard.getState()){ try { offBoardDistance = distance; } catch (NumberFormatException e) { new AlertDialog(clientgui.frame, Messages.getString("CustomMechDialog.NumberFormatError"), Messages.getString("CustomMechDialog.EnterValidSkills")).show(); //$NON-NLS-1$ //$NON-NLS-2$ return; } if (offBoardDistance < 17) { new AlertDialog(clientgui.frame, Messages.getString("CustomMechDialog.NumberFormatError"), Messages.getString("CustomMechDialog.OffboardDistance")).show(); //$NON-NLS-1$ //$NON-NLS-2$ return; } entity.setOffBoard( offBoardDistance, choOffBoardDirection.getSelectedIndex() ); } else { entity.setOffBoard( 0, Entity.NONE ); } // change entity entity.setCrew(new Pilot(name, gunnery, piloting)); if (entity instanceof Mech) { Mech mech = (Mech)entity; mech.setAutoEject(!autoEject); } if (entity.hasC3() && choC3.getSelectedIndex() > -1) { Entity chosen = client.getEntity ( entityCorrespondance[choC3.getSelectedIndex()] ); int entC3nodeCount = client.game.getC3SubNetworkMembers( entity ).size(); int choC3nodeCount = client.game.getC3NetworkMembers( chosen ).size(); if ( entC3nodeCount + choC3nodeCount <= Entity.MAX_C3_NODES ) { entity.setC3Master( chosen ); } else { String message = Messages.getString("CustomMechDialog.NetworkTooBig.message", new Object[]{ //$NON-NLS-1$ entity.getShortName(), chosen.getShortName(), new Integer(entC3nodeCount), new Integer(choC3nodeCount), new Integer(Entity.MAX_C3_NODES)}); clientgui.doAlertDialog( Messages.getString("CustomMechDialog.NetworkTooBig.title"), //$NON-NLS-1$ message); refreshC3(); } } else if (entity.hasC3i() && choC3.getSelectedIndex() > -1) { entity.setC3NetId(client.getEntity(entityCorrespondance[choC3.getSelectedIndex()])); } // Update the entity's targeting system type. if (!(entity.hasTargComp()) && (clientgui.getClient().game.getOptions().booleanOption("allow_level_3_targsys"))) { int targSysIndex = MiscType.T_TARGSYS_STANDARD; if (choTargSys.getSelectedItem() != null) targSysIndex = MiscType.getTargetSysType(choTargSys.getSelectedItem()); if (targSysIndex >= 0) entity.setTargSysType(targSysIndex); else { System.err.println("Illegal targeting system index: "+targSysIndex); entity.setTargSysType(MiscType.T_TARGSYS_STANDARD); } } // If the player wants to swap unit numbers, update both // entities and send an update packet for the other entity. if ( !entityUnitNum.isEmpty() && choUnitNum.getSelectedIndex() > 0 ) { Entity other = (Entity) this.entityUnitNum.elementAt ( choUnitNum.getSelectedIndex() ); char temp = this.entity.getUnitNumber(); this.entity.setUnitNumber( other.getUnitNumber() ); other.setUnitNumber( temp ); client.sendUpdateEntity( other ); } // Set the entity's deployment round. //entity.setDeployRound((choDeployment.getSelectedIndex() == 0?0:choDeployment.getSelectedIndex()+1)); entity.setDeployRound(choDeployment.getSelectedIndex()); // update munitions selections for (Enumeration e = m_vMunitions.elements(); e.hasMoreElements(); ) { ((MunitionChoicePanel)e.nextElement()).applyChoice(); } // update MG rapid fire settings for (Enumeration e = m_vMGs.elements(); e.hasMoreElements(); ) { ((RapidfireMGPanel)e.nextElement()).applyChoice(); } // update mines setting for (Enumeration e = m_vMines.elements(); e.hasMoreElements(); ) { ((MineChoicePanel)e.nextElement()).applyChoice(); } // update searchlight setting entity.setSpotlight(chSearchlight.getState()); entity.setSpotlightState(chSearchlight.getState()); setOptions(); okay = true; clientgui.chatlounge.refreshEntities(); } this.setVisible(false); Entity nextOne = null; if (actionEvent.getSource() == butPrev) { nextOne = getNextEntity(false); } else if (actionEvent.getSource() == butNext) { nextOne = getNextEntity(true); } if (nextOne!=null) { clientgui.chatlounge.customizeMech(nextOne); } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c1d9d15832147777c7866e12b2a22073e12e3714/CustomMechDialog.java/buggy/megamek/src/megamek/client/ui/AWT/CustomMechDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 1301, 1133, 13, 288, 3639, 309, 261, 1128, 1133, 18, 588, 1830, 1435, 422, 1496, 7210, 22233, 7200, 13, 288, 5411, 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, 1071, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 1301, 1133, 13, 288, 3639, 309, 261, 1128, 1133, 18, 588, 1830, 1435, 422, 1496, 7210, 22233, 7200, 13, 288, 5411, 50...
if (key == null)
if (key == null) {
public void putInt(String key, int value) { checkRemoved(); if (key == null) throw new NullPointerException(); String oldValue = null; if (temporarySettings.containsKey(key)) oldValue = (String) temporarySettings.get(key); else oldValue = getOriginal().get(key, null); String newValue = Integer.toString(value); temporarySettings.put(key, newValue); if (!newValue.equals(oldValue)) firePropertyChangeEvent(key, oldValue, newValue); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkingCopyPreferences.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/WorkingCopyPreferences.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20047, 12, 780, 498, 16, 509, 460, 13, 288, 202, 202, 1893, 10026, 5621, 202, 202, 430, 261, 856, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 780, 11144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20047, 12, 780, 498, 16, 509, 460, 13, 288, 202, 202, 1893, 10026, 5621, 202, 202, 430, 261, 856, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 780, 11144, ...
return factory.isExpandEntityReferences(); }
return factory.isExpandEntityReferences(); }
public final boolean isExpandEntityReferences() { return factory.isExpandEntityReferences(); }
54650 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54650/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/DOMTest.java/buggy/java/org/w3c/domts/DOMTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1250, 353, 12271, 1943, 8221, 1435, 288, 202, 202, 2463, 3272, 18, 291, 12271, 1943, 8221, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1250, 353, 12271, 1943, 8221, 1435, 288, 202, 202, 2463, 3272, 18, 291, 12271, 1943, 8221, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
x = GUIPreferences.getInstance().getRulerPosX(); y = GUIPreferences.getInstance().getRulerPosY(); if(x+20 > screenSize.width) { x = 0; } if(y+20 > screenSize.height) { y = 0; } minimapW.setLocation(x,y);
x = GUIPreferences.getInstance().getMinimapPosX(); y = GUIPreferences.getInstance().getMinimapPosY();
public void initialize() { menuBar = new CommonMenuBar(this.getClient()); initializeFrame(); try { client.game.addGameListener(gameListener); // Create the board viewer. bv = new BoardView1(client.game, frame, this); // Place the board viewer in a set of scrollbars. scroller = new Panel(); scroller.setLayout (new BorderLayout()); Scrollbar vertical = new Scrollbar (Scrollbar.VERTICAL); Scrollbar horizontal = new Scrollbar (Scrollbar.HORIZONTAL); scroller.add (bv, BorderLayout.CENTER); // Scrollbars are broken for "Brandon Drew" <brandx0@hotmail.com> if (System.getProperty ("megamek.client.clientgui.hidescrollbars", "false").equals //$NON-NLS-1$ //$NON-NLS-2$ ("false")) { //$NON-NLS-1$ // Assign the scrollbars to the board viewer. scroller.add (vertical, BorderLayout.EAST); scroller.add (horizontal, BorderLayout.SOUTH); bv.setScrollbars (vertical, horizontal); } } catch (IOException e) { doAlertDialog(Messages.getString("ClientGUI.FatalError.title"), Messages.getString("ClientGUI.FatalError.message") + e); //$NON-NLS-1$ //$NON-NLS-2$ die(); } layoutFrame(); frame.setVisible(true); menuBar.addActionListener(this); frame.addKeyListener(this); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { frame.setVisible(false); saveSettings(); die(); } }); UnitLoadingDialog unitLoadingDialog = new UnitLoadingDialog(frame); if (!MechSummaryCache.getInstance().isInitialized()) { unitLoadingDialog.setVisible(true); } uo = new UnitOverview(this); bv.addDisplayable(uo); bv.addMouseListener(this); bv.addKeyListener(this); bv.add(popup); Dimension screenSize = frame.getToolkit().getScreenSize(); int x,y,h,w; mechW = new Dialog(frame, Messages.getString("ClientGUI.MechDisplay"), false); //$NON-NLS-1$ x = GUIPreferences.getInstance().getDisplayPosX(); y = GUIPreferences.getInstance().getDisplayPosY(); h = GUIPreferences.getInstance().getDisplaySizeHeight(); w = GUIPreferences.getInstance().getDisplaySizeWidth(); if(x + w > screenSize.width) { x = 0; w = Math.min(w, screenSize.width); } if(y + h > screenSize.height) { y = 0; h = Math.min(h, screenSize.height); } mechW.setLocation(x, y); mechW.setSize(w, h); mechW.setResizable(true); mechW.addWindowListener(this); mechW.addKeyListener(this); mechD = new MechDisplay(this); mechD.addMechDisplayListener(bv); mechW.add(mechD); // added by kenn Ruler.color1 = GUIPreferences.getInstance().getRulerColor1(); Ruler.color2 = GUIPreferences.getInstance().getRulerColor2(); ruler = new Ruler(frame, this.client, bv); x = GUIPreferences.getInstance().getRulerPosX(); y = GUIPreferences.getInstance().getRulerPosY(); h = GUIPreferences.getInstance().getRulerSizeHeight(); w = GUIPreferences.getInstance().getRulerSizeWidth(); if(x + w > screenSize.width) { x = 0; w = Math.min(w, screenSize.width); } if(y + h > screenSize.height) { y = 0; h = Math.min(h, screenSize.height); } ruler.setLocation(x,y); ruler.setSize(w,h); // end kenn // minimap minimapW = new Dialog(frame, Messages.getString("ClientGUI.MiniMap"), false); //$NON-NLS-1$ x = GUIPreferences.getInstance().getRulerPosX(); y = GUIPreferences.getInstance().getRulerPosY(); if(x+20 > screenSize.width) { x = 0; } if(y+20 > screenSize.height) { y = 0; } minimapW.setLocation(x,y); try { minimap = new MiniMap(minimapW, this, bv); } catch (IOException e) { doAlertDialog(Messages.getString("ClientGUI.FatalError.title"), Messages.getString("ClientGUI.FatalError.message1") + e); //$NON-NLS-1$ //$NON-NLS-2$ die(); } minimap.addKeyListener(this); minimapW.addWindowListener(this); minimapW.addKeyListener(this); minimapW.add(minimap); cb = new ChatterBox(this); this.add(cb.getComponent(), BorderLayout.SOUTH); client.changePhase(IGame.PHASE_UNKNOWN); mechSelectorDialog = new MechSelectorDialog(this, unitLoadingDialog); customBADialog = new CustomBattleArmorDialog(this, unitLoadingDialog); new Thread(mechSelectorDialog, "Mech Selector Dialog").start(); //$NON-NLS-1$ new Thread(customBADialog, "Custom Battle Armor Dialog").start(); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/b83834765c4d1a918f0539387c9652a5b565a5ce/ClientGUI.java/clean/megamek/src/megamek/client/ui/AWT/ClientGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 288, 3639, 3824, 5190, 273, 394, 5658, 4599, 5190, 12, 2211, 18, 588, 1227, 10663, 3639, 4046, 3219, 5621, 3639, 775, 288, 5411, 1004, 18, 13957, 18, 1289, 12496, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 288, 3639, 3824, 5190, 273, 394, 5658, 4599, 5190, 12, 2211, 18, 588, 1227, 10663, 3639, 4046, 3219, 5621, 3639, 775, 288, 5411, 1004, 18, 13957, 18, 1289, 12496, 2...
case FIXUPS_PROP: return "fixups"; case USES_PROP: return "uses";
private static final String propToString(int propType) { if (Token.printTrees) { // If Context.printTrees is false, the compiler // can remove all these strings. switch (propType) { case FUNCTION_PROP: return "function"; case TEMP_PROP: return "temp"; case LOCAL_PROP: return "local"; case LOCAL_BLOCK_PROP: return "local_block"; case FIXUPS_PROP: return "fixups"; case USES_PROP: return "uses"; case REGEXP_PROP: return "regexp"; case CASES_PROP: return "cases"; case DEFAULT_PROP: return "default"; case CASEARRAY_PROP: return "casearray"; case SPECIAL_PROP_PROP: return "special_prop"; case TARGETBLOCK_PROP: return "targetblock"; case VARIABLE_PROP: return "variable"; case ISNUMBER_PROP: return "isnumber"; case DIRECTCALL_PROP: return "directcall"; case SPECIALCALL_PROP: return "specialcall"; default: Kit.codeBug(); } } return null; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8423b14b48dfb9008e0af93d8f396109a0eeb68c/Node.java/clean/js/rhino/src/org/mozilla/javascript/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 2270, 5808, 12, 474, 2270, 559, 13, 288, 3639, 309, 261, 1345, 18, 1188, 26590, 13, 288, 5411, 368, 971, 1772, 18, 1188, 26590, 353, 629, 16, 326, 5274, 5411, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 2270, 5808, 12, 474, 2270, 559, 13, 288, 3639, 309, 261, 1345, 18, 1188, 26590, 13, 288, 5411, 368, 971, 1772, 18, 1188, 26590, 353, 629, 16, 326, 5274, 5411, 368, ...
List l=new Vector();
List list =new Vector();
public void write(IChemObject object) throws CDKException { try{ ProcessingInstruction pi=new ProcessingInstruction("xml-stylesheet", "href=\"http://www.w3.org/2000/08/w3c-synd/style.css\" type=\"text/css\""); Element rdfElement = new Element("rdf:RDF",NS_RDF); rdfElement.addNamespaceDeclaration("",NS_RSS10); rdfElement.addNamespaceDeclaration("mn","http://usefulinc.com/rss/manifest/"); rdfElement.addNamespaceDeclaration("dc",NS_DCELEMENTS); rdfElement.addNamespaceDeclaration("cml",Convertor.NS_CML); Document doc = new Document(rdfElement); doc.insertChild(pi,0); Element channelElement = new Element("channel",NS_RSS10); Element titleElement = new Element("title",NS_RSS10); titleElement.appendChild(new Text(title)); channelElement.appendChild(titleElement); Element linkElement = new Element("link",NS_RSS10); linkElement.appendChild(new Text(link)); channelElement.appendChild(linkElement); Element descriptionElement = new Element("description",NS_RSS10); descriptionElement.appendChild(new Text(description)); channelElement.appendChild(descriptionElement); Element publisherElement = new Element("dc:publisher",NS_DCELEMENTS); publisherElement.appendChild(new Text(publisher)); channelElement.appendChild(publisherElement); Element creatorElement = new Element("dc:creator",NS_DCELEMENTS); creatorElement.appendChild(new Text(creator)); channelElement.appendChild(creatorElement); Element imageElement = new Element("image",NS_RSS10); imageElement.addAttribute(new Attribute("rdf:resource",NS_RDF,imagelink)); channelElement.appendChild(imageElement); Element itemsElement = new Element("items",NS_RSS10); Element seqElement = new Element("rdf:Seq",NS_RDF); itemsElement.appendChild(seqElement); channelElement.appendChild(itemsElement); channelElement.addAttribute(new Attribute("rdf:about",NS_RDF,about)); rdfElement.appendChild(channelElement); List l=new Vector(); if(object instanceof IAtomContainerSet){ for(int i=0;i<((SetOfAtomContainers)object).getAtomContainerCount();i++){ l.add(((SetOfAtomContainers)object).getAtomContainer(i)); } }else{ l.add(object); } for(int i=0;i<l.size();i++){ ChemObject co=(ChemObject)l.get(i); Element itemElement = new Element("item",NS_RSS10); String easylink=(String)linkmap.get(co); if(easylink!=null) itemElement.addAttribute(new Attribute("rdf:about",NS_RDF,easylink)); Element link2Element = new Element("link",NS_RSS10); link2Element.appendChild(new Text(easylink)); itemElement.appendChild(link2Element); String title=(String)co.getProperties().get(CDKConstants.TITLE); if(titlemap.get(co)!=null){ Element title2Element = new Element("title",NS_RSS10); title2Element.appendChild(new Text((String)titlemap.get(co))); itemElement.appendChild(title2Element); } if(title!=null){ Element description2Element = new Element("description",NS_RSS10); description2Element.appendChild(new Text(title)); itemElement.appendChild(description2Element); Element subjectElement = new Element("dc:subject",NS_DCELEMENTS); subjectElement.appendChild(new Text(title)); itemElement.appendChild(subjectElement); } if(datemap.get(co)!=null){ Element dateElement = new Element("dc:date",NS_DCELEMENTS); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US); dateElement.appendChild(new Text(formatter.format((Date)datemap.get(co))+timezone)); itemElement.appendChild(dateElement); } Element creator2Element =new Element("dc:creator",NS_DCELEMENTS); creator2Element.appendChild(new Text((String)creatormap.get(co))); itemElement.appendChild(creator2Element); Element root=null; Convertor convertor=new Convertor(true,null); object=(IChemObject)l.get(i); if (object instanceof IMolecule) { root = convertor.cdkMoleculeToCMLMolecule((IMolecule)object); }else if (object instanceof IAtomContainer) { root = convertor.cdkAtomContainerToCMLMolecule((IAtomContainer)object); } else if (object instanceof ICrystal) { root = convertor.cdkCrystalToCMLMolecule((ICrystal)object); } else if (object instanceof IAtom) { root = convertor.cdkAtomToCMLAtom((IAtom)object); } else if (object instanceof IBond) { root = convertor.cdkBondToCMLBond((IBond)object); } else if (object instanceof IReaction) { root = convertor.cdkReactionToCMLReaction((IReaction)object); } else if (object instanceof IReactionSet) { root = convertor.cdkSetOfReactionsToCMLReactionList((IReactionSet)object); } else if (object instanceof IMoleculeSet) { root = convertor.cdkSetOfMoleculesToCMLList((IMoleculeSet)object); } else if (object instanceof IChemSequence) { root = convertor.cdkChemSequenceToCMLList((IChemSequence)object); } else if (object instanceof IChemModel) { root = convertor.cdkChemModelToCMLList((IChemModel)object); } else if (object instanceof IChemFile) { root = convertor.cdkChemFileToCMLList((IChemFile)object); } else { throw new CDKException("Unsupported chemObject: " + object.getClass().getName()); } itemElement.appendChild(root); if(multiMap.get(co)!=null){ Collection coll=(Collection)multiMap.get(co); Iterator it=coll.iterator(); while(it.hasNext()){ itemElement.appendChild((Element)it.next()); } } rdfElement.appendChild(itemElement); Element imageElement2 = new Element("rdf:li",NS_RDF); imageElement2.addAttribute(new Attribute("rdf:resource",NS_RDF,(String)linkmap.get(co))); seqElement.appendChild(imageElement2); } writer.write(doc.toXML()); writer.flush(); }catch(IOException ex){ throw new CDKException(ex.getMessage()); } }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/635484fbda9f26e76d01e65286de450d706659c6/RssWriter.java/clean/src/org/openscience/cdk/io/RssWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 12, 45, 20200, 921, 733, 13, 1216, 24570, 288, 202, 202, 698, 95, 1082, 565, 19652, 11983, 4790, 33, 2704, 19652, 11983, 2932, 2902, 17, 19403, 3113, 315, 7547, 5189,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 12, 45, 20200, 921, 733, 13, 1216, 24570, 288, 202, 202, 698, 95, 1082, 565, 19652, 11983, 4790, 33, 2704, 19652, 11983, 2932, 2902, 17, 19403, 3113, 315, 7547, 5189,...
new DefaultResponseStream(socket.getOutputStream()),
socket.getOutputStream(),
public void run() { try { Relay relay = new RedirectingRelay(new RequestInputStream(socket.getInputStream()), new DefaultResponseStream(socket.getOutputStream()), requestModificationCommand); relay.relay(); socket.close(); } catch (IOException e) { e.printStackTrace(); } }
25408 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25408/343a3ca0c5e5bf3f12e54406e8ae872c73e3eadf/ClientConnectionThread.java/buggy/java/main/com/thoughtworks/selenium/proxy/ClientConnectionThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 5411, 4275, 528, 18874, 273, 394, 9942, 310, 27186, 12, 2704, 1567, 4348, 12, 7814, 18, 588, 4348, 1435, 3631, 4766, 9079, 2987, 18, 588, 4632,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 5411, 4275, 528, 18874, 273, 394, 9942, 310, 27186, 12, 2704, 1567, 4348, 12, 7814, 18, 588, 4348, 1435, 3631, 4766, 9079, 2987, 18, 588, 4632,...
texture.setTextureId( -1); return;
public void apply() { for (int i = 0; i < numTexUnits; i++) { if (!isEnabled() || getTexture(i) == null) { if (GLContext.GL_ARB_multitexture && GLContext.OpenGL13) { GL13.glActiveTexture(GL13.GL_TEXTURE0 + i); } GL11.glDisable(GL11.GL_TEXTURE_2D); } } if (isEnabled()) { int index; Texture texture; for (int i = 0; i < numTexUnits; i++) { index = GL13.GL_TEXTURE0 + i; texture = getTexture(i); if (texture == null) { continue; } if (GLContext.GL_ARB_multitexture && GLContext.OpenGL13) { GL13.glActiveTexture(index); } GL11.glEnable(GL11.GL_TEXTURE_2D); //texture not yet loaded. if (texture.getTextureId() == 0) { // Create A IntBuffer For Image Address In Memory //Create the texture id.clear(); GL11.glGenTextures(id); GL11.glBindTexture(GL11.GL_TEXTURE_2D, id.get(0)); texture.setTextureId(id.get(0)); // pass image data to OpenGL Image image = texture.getImage(); if (image == null) { LoggingSystem.getLogger().log(Level.WARNING, "Image data for texture is null."); texture.setTextureId( -1); return; } // Set up the anisotropic filter. GL11.glTexParameterf(GL11.GL_TEXTURE_2D, EXTTextureFilterAnisotropic.GL_TEXTURE_MAX_ANISOTROPY_EXT, texture.getAnisoLevel()); if (texture.getMipmap() == Texture.MM_NONE) { GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, imageComponents[image.getType()], image .getWidth(), image.getHeight(), 0, imageFormats[image.getType()], GL11.GL_UNSIGNED_BYTE, image.getData()); } else { GLU.gluBuild2DMipmaps(GL11.GL_TEXTURE_2D, imageComponents[image.getType()], image .getWidth(), image.getHeight(), imageFormats[image.getType()], GL11.GL_UNSIGNED_BYTE, image.getData()); } } else { // texture already exists in OpenGL, just bind it GL11.glBindTexture(GL11.GL_TEXTURE_2D, texture .getTextureId()); } // set up correction mode GL11.glHint(GL11.GL_PERSPECTIVE_CORRECTION_HINT, textureCorrection[texture.getCorrection()]); if (texture.getApply() == Texture.AM_COMBINE && GLContext.GL_ARB_multitexture) { GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, textureApply[texture .getApply()]); if (texture.getCombineFuncAlpha() == Texture.ACF_DOT3_RGB || texture.getCombineFuncAlpha() == Texture.ACF_DOT3_RGBA) { GL11.glDisable(GL11.GL_TEXTURE_2D); break; } if (texture.getCombineFuncRGB() == Texture.ACF_DOT3_RGB || texture.getCombineFuncRGB() == Texture.ACF_DOT3_RGBA) { // check if supported before proceeding if (!GLContext.GL_ARB_texture_env_dot3) { GL11.glDisable(GL11.GL_TEXTURE_2D); break; } } GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_COMBINE_RGB, textureCombineFunc[texture.getCombineFuncRGB()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_COMBINE_ALPHA, textureCombineFunc[texture.getCombineFuncAlpha()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_SOURCE0_RGB, textureCombineSrc[texture.getCombineSrc0RGB()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_SOURCE1_RGB, textureCombineSrc[texture.getCombineSrc1RGB()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_SOURCE2_RGB, textureCombineSrc[texture.getCombineSrc2RGB()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_SOURCE0_ALPHA, textureCombineSrc[texture.getCombineSrc0Alpha()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_SOURCE1_ALPHA, textureCombineSrc[texture.getCombineSrc1Alpha()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_SOURCE2_ALPHA, textureCombineSrc[texture.getCombineSrc2Alpha()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_OPERAND0_RGB, textureCombineOpRgb[texture.getCombineOp0RGB()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_OPERAND1_RGB, textureCombineOpRgb[texture.getCombineOp1RGB()]); GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_OPERAND2_RGB, textureCombineOpRgb[texture.getCombineOp2RGB()]); GL11 .glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_OPERAND0_ALPHA, textureCombineOpAlpha[texture .getCombineOp0Alpha()]); GL11 .glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_OPERAND1_ALPHA, textureCombineOpAlpha[texture .getCombineOp1Alpha()]); GL11 .glTexEnvi(GL11.GL_TEXTURE_ENV, GL13.GL_OPERAND2_ALPHA, textureCombineOpAlpha[texture .getCombineOp2Alpha()]); GL11.glTexEnvf(GL11.GL_TEXTURE_ENV, GL13.GL_RGB_SCALE, textureCombineScale[texture.getCombineScaleRGB()]); GL11.glTexEnvf(GL11.GL_TEXTURE_ENV, GL11.GL_ALPHA_SCALE, textureCombineScale[texture.getCombineScaleRGB()]); } else if (texture.getEnvironmentalMapMode() == Texture.EM_NONE) { // turn off anything that other maps might have turned on GL11.glDisable(GL11.GL_TEXTURE_GEN_Q); GL11.glDisable(GL11.GL_TEXTURE_GEN_R); GL11.glDisable(GL11.GL_TEXTURE_GEN_S); GL11.glDisable(GL11.GL_TEXTURE_GEN_T); } else if (texture.getEnvironmentalMapMode() == Texture.EM_SPHERE) { // generate texture coordinates GL11.glTexGeni(GL11.GL_S, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_SPHERE_MAP); GL11.glTexGeni(GL11.GL_T, GL11.GL_TEXTURE_GEN_MODE, GL11.GL_SPHERE_MAP); GL11.glEnable(GL11.GL_TEXTURE_GEN_S); GL11.glEnable(GL11.GL_TEXTURE_GEN_T); } else if (texture.getEnvironmentalMapMode() == Texture.EM_IGNORE) { // Do not alter the texure generation status. This allows // complex texturing outside of texture state to exist // peacefully. } else { // set up apply mode GL11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, textureApply[texture .getApply()]); } GL11.glTexEnv(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_COLOR, texture.getBlendColor()); // set up wrap mode switch (texture.getWrap()) { case Texture.WM_ECLAMP_S_ECLAMP_T: GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL12.GL_CLAMP_TO_EDGE); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL12.GL_CLAMP_TO_EDGE); break; case Texture.WM_BCLAMP_S_BCLAMP_T: GL11 .glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL13.GL_CLAMP_TO_BORDER); GL11 .glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL13.GL_CLAMP_TO_BORDER); break; case Texture.WM_CLAMP_S_CLAMP_T: GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_CLAMP); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_CLAMP); break; case Texture.WM_CLAMP_S_WRAP_T: GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_CLAMP); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_REPEAT); break; case Texture.WM_WRAP_S_CLAMP_T: GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_REPEAT); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_CLAMP); break; case Texture.WM_WRAP_S_WRAP_T: GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL11.GL_REPEAT); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL11.GL_REPEAT); break; } // set up filter mode GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, textureFilter[texture .getFilter()]); // set up mipmap mode GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, textureMipmap[texture .getMipmap()]); } } }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/3bca7c8ef6092511a9abbc1d10910eb37ac74c73/LWJGLTextureState.java/clean/src/com/jme/scene/state/lwjgl/LWJGLTextureState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 1435, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 16733, 7537, 31, 277, 27245, 288, 1377, 309, 16051, 291, 1526, 1435, 747, 6701, 594, 12, 77, 13, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 1435, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 16733, 7537, 31, 277, 27245, 288, 1377, 309, 16051, 291, 1526, 1435, 747, 6701, 594, 12, 77, 13, 422, ...
while (counter < info.finalVal) {
while (done(counter,info)) {
private JBlock doUnroll(UnrollInfo info, JForStatement self) { // make a list of statements List statementList = new LinkedList(); statementList.add(self.getInit()); // get the initial value of the counter int counter = info.initVal; // simulate execution of the loop... while (counter < info.finalVal) { // create new for statement, just to replace the variable JForStatement newSelf = (JForStatement)ObjectDeepCloner.deepCopy(self); // get unroll info for <newSelf> UnrollInfo newInfo = getUnrollInfo(newSelf.getInit(), newSelf.getCondition(), newSelf.getIncrement(), newSelf.getBody(), values); // replace induction variable with its value current value Hashtable newConstants = new Hashtable(); newConstants.put(newInfo.var, new JIntLiteral(counter)); // do the replacement newSelf.getBody().accept(new Propagator(newConstants)); // add to statement list statementList.add(newSelf.getBody()); // increment counter counter = incrementCounter(counter, info); } statementList.add(new JExpressionStatement(self.getTokenReference(),new JAssignmentExpression(self.getTokenReference(),new JLocalVariableExpression(self.getTokenReference(),info.var),new JIntLiteral(info.finalVal)),null)); // mark that we've unrolled this.hasUnrolled = true; // return new block instead of the for loop constants.remove(info.var); return new JBlock(null, (JStatement[])statementList. toArray(new JStatement[0]), null); }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/3029586060ddf607a8d7773ee622662a3e246dfe/Unroller.java/buggy/streams/src/at/dms/kjc/sir/lowering/Unroller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 1768, 741, 984, 2693, 12, 984, 2693, 966, 1123, 16, 804, 1290, 3406, 365, 13, 288, 202, 759, 1221, 279, 666, 434, 6317, 202, 682, 3021, 682, 273, 394, 10688, 5621, 202, 11516...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 804, 1768, 741, 984, 2693, 12, 984, 2693, 966, 1123, 16, 804, 1290, 3406, 365, 13, 288, 202, 759, 1221, 279, 666, 434, 6317, 202, 682, 3021, 682, 273, 394, 10688, 5621, 202, 11516...
if (DrJava.getConfig().getSetting(WARN_PATH_CONTAINS_POUND).booleanValue()) { String msg = "Files whose paths contain the '#' symbol cannot be used in the\n" + "Interactions Pane due to a bug in Java's file to URL conversion.\n" + "It is suggested that you change the name of the directory\n" + "containing the '#' symbol."; String title = "Path Contains Pound Sign"; ConfirmCheckBoxDialog dialog = new ConfirmCheckBoxDialog(MainFrame.this, title, msg, "Do not show this message again", JOptionPane.WARNING_MESSAGE, JOptionPane.DEFAULT_OPTION); if (dialog.show() == JOptionPane.OK_OPTION && dialog.getCheckBoxValue()) { DrJava.getConfig().setSetting(WARN_PATH_CONTAINS_POUND, Boolean.FALSE); }
interactionEnded(); _runAction.setEnabled(true); _junitAction.setEnabled(true); _junitAllAction.setEnabled(true); _resetInteractionsAction.setEnabled(true); if (_model.getDebugger().isAvailable()) { _toggleDebuggerAction.setEnabled(true);
public void run() { if (DrJava.getConfig().getSetting(WARN_PATH_CONTAINS_POUND).booleanValue()) { String msg = "Files whose paths contain the '#' symbol cannot be used in the\n" + "Interactions Pane due to a bug in Java's file to URL conversion.\n" + "It is suggested that you change the name of the directory\n" + "containing the '#' symbol."; String title = "Path Contains Pound Sign"; ConfirmCheckBoxDialog dialog = new ConfirmCheckBoxDialog(MainFrame.this, title, msg, "Do not show this message again", JOptionPane.WARNING_MESSAGE, JOptionPane.DEFAULT_OPTION); if (dialog.show() == JOptionPane.OK_OPTION && dialog.getCheckBoxValue()) { DrJava.getConfig().setSetting(WARN_PATH_CONTAINS_POUND, Boolean.FALSE); } } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/dff44afbd54b4408c14696399dd3045797a665f4/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 309, 261, 8956, 5852, 18, 588, 809, 7675, 588, 5568, 12, 27999, 67, 4211, 67, 6067, 25838, 67, 2419, 5240, 2934, 6494, 620, 10756, 288, 5411, 514, 1234, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 1850, 309, 261, 8956, 5852, 18, 588, 809, 7675, 588, 5568, 12, 27999, 67, 4211, 67, 6067, 25838, 67, 2419, 5240, 2934, 6494, 620, 10756, 288, 5411, 514, 1234, ...
protected Digester initDigester(int detail) { // Initialize a new Digester instance Digester digester = new Digester(); digester.push(this); digester.setDebug(detail); digester.setNamespaceAware(true); digester.setValidating(validating); // Register our local copy of the DTDs that we can find for (int i = 0; i < registrations.length; i += 2) { URL url = this.getClass().getResource(registrations[i+1]); if (url != null) digester.register(registrations[i], url.toString()); } // Configure the processing rules digester.addObjectCreate("struts-config/data-sources/data-source", "org.apache.struts.util.GenericDataSource", "type"); digester.addSetProperties("struts-config/data-sources/data-source"); digester.addRule("struts-config/data-sources/data-source", new AddDataSourceRule(digester)); digester.addSetProperty ("struts-config/data-sources/data-source/set-property", "property", "value"); digester.addObjectCreate("struts-config/action-mappings/action", mappingClass, "className"); digester.addSetProperties("struts-config/action-mappings/action"); digester.addSetNext("struts-config/action-mappings/action", "addMapping", "org.apache.struts.action.ActionMapping"); digester.addSetProperty ("struts-config/action-mappings/action/set-property", "property", "value"); digester.addObjectCreate ("struts-config/action-mappings/action/forward", forwardClass, "className"); digester.addSetProperties ("struts-config/action-mappings/action/forward"); digester.addSetNext("struts-config/action-mappings/action/forward", "addForward", "org.apache.struts.action.ActionForward"); digester.addSetProperty ("struts-config/action-mappings/action/forward/set-property", "property", "value"); digester.addObjectCreate("struts-config/form-beans/form-bean", formBeanClass, "className"); digester.addSetProperties("struts-config/form-beans/form-bean"); digester.addSetNext("struts-config/form-beans/form-bean", "addFormBean", "org.apache.struts.action.ActionFormBean"); digester.addSetProperty ("struts-config/form-beans/form-bean/set-property", "property", "value"); digester.addObjectCreate("struts-config/global-forwards/forward", forwardClass, "className"); digester.addSetProperties("struts-config/global-forwards/forward"); digester.addSetNext("struts-config/global-forwards/forward", "addForward", "org.apache.struts.action.ActionForward"); digester.addSetProperty ("struts-config/global-forwards/forward/set-property", "property", "value"); return (digester); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/893cf1f05ff2aed2f868307f45763b5b3bc5a257/ActionServlet.java/clean/src/share/org/apache/struts/action/ActionServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 11678, 7654, 1208, 4907, 7654, 12, 474, 7664, 13, 288, 202, 759, 9190, 279, 394, 11678, 7654, 791, 202, 4907, 7654, 23821, 273, 394, 11678, 7654, 5621, 202, 5606, 7654, 18, 6206, 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, 4750, 11678, 7654, 1208, 4907, 7654, 12, 474, 7664, 13, 288, 202, 759, 9190, 279, 394, 11678, 7654, 791, 202, 4907, 7654, 23821, 273, 394, 11678, 7654, 5621, 202, 5606, 7654, 18, 6206, 12...
setProperty( SimpleDataSet.BEFORE_OPEN_METHOD, code );
setProperty( ISimpleDataSetModel.BEFORE_OPEN_METHOD, code );
public void setBeforeOpen( String code ) throws SemanticException { setProperty( SimpleDataSet.BEFORE_OPEN_METHOD, code ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/DataSetHandle.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DataSetHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 4649, 3678, 12, 514, 981, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 1396, 12, 4477, 13676, 18, 19152, 67, 11437, 67, 5327, 16, 981, 11272, 202, 97, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 4649, 3678, 12, 514, 981, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 1396, 12, 4477, 13676, 18, 19152, 67, 11437, 67, 5327, 16, 981, 11272, 202, 97, 2, -100, -...
public void testCreate_QueueSettings() throws Exception {
public void testCreate_QueueSettings() throws Exception {
public void testCreate_QueueSettings() throws Exception { IntHolder channelId = new IntHolder(); Property[] qosProps; qosProps = new Property[] { new Property( DiscardPolicy.value, priorityOrder ), new Property( OrderPolicy.value, priorityOrder ) }; getFactory().create_channel( qosProps, new Property[0], channelId); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b2aa91a672be3f8bd14c3402b93d9a1d919f304c/QoSTest.java/clean/test/regression/src/org/jacorb/test/notification/QoSTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 67, 3183, 2628, 1435, 1216, 1185, 288, 3639, 3094, 6064, 27709, 273, 394, 3094, 6064, 5621, 3639, 4276, 8526, 21075, 5047, 31, 3639, 21075, 5047, 273, 394, 4276, 8526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 67, 3183, 2628, 1435, 1216, 1185, 288, 3639, 3094, 6064, 27709, 273, 394, 3094, 6064, 5621, 3639, 4276, 8526, 21075, 5047, 31, 3639, 21075, 5047, 273, 394, 4276, 8526...
} catch (NamingException e) { throw new RuntimeException( "Unable to access name server", e);
private Set searchAllValues( Attributes match, int type) { String single_attr = getAttributeName(type); boolean isAgentFilter = (((type & ANY_AGENT_TYPE) != 0) && ((type != ANY_AGENT_TYPE))); try { DirContext ctx = namingService.getRootContext(); NamingEnumeration e; if (isAgentFilter) { String[] ats_filter = { single_attr, TopologyNamingConstants.TYPE_ATTR, }; e = ctx.search(TopologyNamingConstants.TOPOLOGY_DIR, match, ats_filter); } else { String[] ats_filter = { single_attr }; e = ctx.search(TopologyNamingConstants.TOPOLOGY_DIR, match, ats_filter); } Set ret; if (!(e.hasMore())) { ret = Collections.EMPTY_SET; } else { ret = new HashSet(13); do { SearchResult result = (SearchResult) e.next(); // get value if (result == null) continue; Attributes ats = result.getAttributes(); Object val = getAttributeValue(ats, single_attr); if (val == null) continue; // check agent-type filter if (isAgentFilter) { Object otype = getAttributeValue(ats, TopologyNamingConstants.TYPE_ATTR); if (otype == null) continue; int itype = ((Integer) otype).intValue(); if ((type & itype) == 0) continue; } // add value ret.add(val); } while (e.hasMore()); } return ret; } catch (NamingException e) { throw new RuntimeException( "Unable to access name server", e); } }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/9675380134604d5900f3fbb4b47e1b32fbcfb834/TopologyReaderServiceComponent.java/buggy/core/src/org/cougaar/core/topology/TopologyReaderServiceComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3238, 1000, 1623, 1595, 1972, 12, 1850, 9055, 845, 16, 509, 618, 13, 288, 3639, 514, 2202, 67, 1747, 273, 4061, 461, 12, 723, 1769, 3639, 1250, 353, 3630, 1586, 273, 6647, 261, 12443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3238, 1000, 1623, 1595, 1972, 12, 1850, 9055, 845, 16, 509, 618, 13, 288, 3639, 514, 2202, 67, 1747, 273, 4061, 461, 12, 723, 1769, 3639, 1250, 353, 3630, 1586, 273, 6647, 261, 12443, ...
public BinaryExpr createAndExpr(Expr lhs, Expr rhs) throws JaxenException { return new DefaultAndExpr( lhs, rhs ); }
5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/d180ba623954ff7cb231af711a9133a78d7dd0c5/DefaultXPathFactory.java/buggy/src/java/main/org/jaxen/expr/DefaultXPathFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5905, 4742, 2640, 1876, 4742, 12, 4742, 80, 4487, 16, 2966, 523, 4487, 13, 15069, 46, 651, 275, 503, 95, 2463, 2704, 1868, 1876, 4742, 12, 80, 4487, 16, 86, 4487, 1769, 97, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5905, 4742, 2640, 1876, 4742, 12, 4742, 80, 4487, 16, 2966, 523, 4487, 13, 15069, 46, 651, 275, 503, 95, 2463, 2704, 1868, 1876, 4742, 12, 80, 4487, 16, 86, 4487, 1769, 97, 2, -100, ...
"Waited for empty sendbuffer, clear now, proceeding");
"Waited for empty sendbuffer, clear now, proceeding to " + getMember());
public void waitForEmptySendQueue() { boolean waited = false; while (!messagesToSendQueue.isEmpty() && isConnected()) { try { // log().verbose("Waiting for empty send buffer"); waited = true; // Wait a bit the let the send queue get empty Thread.sleep(100); } catch (InterruptedException e) { log().verbose(e); break; } } if (waited) { if (logVerbose) { log().verbose( "Waited for empty sendbuffer, clear now, proceeding"); } } }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/d4f105c34125a92975b6c60f800a7ffbaa4646aa/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10712, 1921, 3826, 3183, 1435, 288, 3639, 1250, 2529, 329, 273, 629, 31, 3639, 1323, 16051, 6833, 28878, 3183, 18, 291, 1921, 1435, 597, 20854, 10756, 288, 5411, 775, 288, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10712, 1921, 3826, 3183, 1435, 288, 3639, 1250, 2529, 329, 273, 629, 31, 3639, 1323, 16051, 6833, 28878, 3183, 18, 291, 1921, 1435, 597, 20854, 10756, 288, 5411, 775, 288, 7734, ...
private static String loadDescriptionForElement(final Element element, final ResourceBundle bundle, final String id, String elementType) { if (bundle != null) { @NonNls final String key = elementType + "." + id + ".description"; return CommonBundle.messageOrDefault(bundle, key, element.getAttributeValue(DESCRIPTION)); } else { return element.getAttributeValue(DESCRIPTION); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6015, 270, 395, 2126, 780, 945, 3291, 1290, 1046, 12, 6385, 1046, 2956, 16, 6385, 18731, 9991, 16, 6385, 780, 350, 16, 780, 2956, 559, 15329, 430, 12, 9991, 5, 33, 2011, 15329, 36, 3989, 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, 6015, 270, 395, 2126, 780, 945, 3291, 1290, 1046, 12, 6385, 1046, 2956, 16, 6385, 18731, 9991, 16, 6385, 780, 350, 16, 780, 2956, 559, 15329, 430, 12, 9991, 5, 33, 2011, 15329, 36, 3989, 50,...
public MUCRoom getChatRoom(String roomName, JID userjid) throws UnauthorizedException {
public MUCRoom getChatRoom(String roomName, JID userjid) throws NotAllowedException {
public MUCRoom getChatRoom(String roomName, JID userjid) throws UnauthorizedException { MUCRoom room = null; synchronized (roomName.intern()) { room = rooms.get(roomName.toLowerCase()); if (room == null) { room = new MUCRoomImpl(this, roomName, router); // If the room is persistent load the configuration values from the DB try { // Try to load the room's configuration from the database (if the room is // persistent but was added to the DB after the server was started up or the // room may be an old room that was not present in memory) MUCPersistenceManager.loadFromDB((MUCRoomImpl) room); } catch (IllegalArgumentException e) { // The room does not exist so check for creation permissions // Room creation is always allowed for sysadmin if (isRoomCreationRestricted() && !sysadmins.contains(userjid.toBareJID())) { // The room creation is only allowed for certain JIDs if (!allowedToCreate.contains(userjid.toBareJID())) { // The user is not in the list of allowed JIDs to create a room so raise // an exception throw new UnauthorizedException(); } } room.addFirstOwner(userjid.toBareJID()); } rooms.put(roomName.toLowerCase(), room); } } return room; }
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/afd4170770e0744bac6135e05cc9bab08385f7b2/MultiUserChatServerImpl.java/buggy/src/java/org/jivesoftware/messenger/muc/spi/MultiUserChatServerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 57, 5093, 4252, 336, 14163, 13646, 12, 780, 7725, 461, 16, 804, 734, 729, 18252, 13, 1216, 2288, 5042, 503, 288, 3639, 490, 57, 5093, 4252, 7725, 273, 446, 31, 3639, 3852, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 57, 5093, 4252, 336, 14163, 13646, 12, 780, 7725, 461, 16, 804, 734, 729, 18252, 13, 1216, 2288, 5042, 503, 288, 3639, 490, 57, 5093, 4252, 7725, 273, 446, 31, 3639, 3852, 26...
mondrian.xom.NodeDef[] temp = null; temp = schema.cubes; schema.cubes = new MondrianDef.Cube[temp.length + 1]; for (int _i = 0; _i < temp.length; _i++) { schema.cubes[_i] = (MondrianDef.Cube) temp[_i]; } schema.cubes[schema.cubes.length - 1] = cube; refreshTree(tree.getSelectionPath());
mondrian.xom.NodeDef[] temp = null; temp = schema.cubes; schema.cubes = new MondrianDef.Cube[temp.length + 1]; for (int _i = 0; _i < temp.length; _i++) { schema.cubes[_i] = (MondrianDef.Cube) temp[_i]; } schema.cubes[schema.cubes.length - 1] = cube; refreshTree(tree.getSelectionPath());
protected void addCube(ActionEvent evt) { MondrianDef.Schema schema = (Schema) tree.getModel().getRoot(); MondrianDef.Cube cube = new MondrianDef.Cube(); cube.name = "New Cube " + schema.cubes.length; cube.dimensions = new MondrianDef.Dimension[0]; cube.measures = new MondrianDef.Measure[0]; cube.fact = new MondrianDef.Table(); //add cube to schema mondrian.xom.NodeDef[] temp = null; temp = schema.cubes; schema.cubes = new MondrianDef.Cube[temp.length + 1]; for (int _i = 0; _i < temp.length; _i++) { schema.cubes[_i] = (MondrianDef.Cube) temp[_i]; } schema.cubes[schema.cubes.length - 1] = cube; refreshTree(tree.getSelectionPath()); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/SchemaExplorer.java/buggy/src/main/mondrian/gui/SchemaExplorer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 39, 4895, 12, 1803, 1133, 6324, 13, 202, 95, 202, 202, 49, 1434, 566, 304, 3262, 18, 3078, 1963, 273, 261, 3078, 13, 2151, 18, 588, 1488, 7675, 588, 2375, 5621, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 39, 4895, 12, 1803, 1133, 6324, 13, 202, 95, 202, 202, 49, 1434, 566, 304, 3262, 18, 3078, 1963, 273, 261, 3078, 13, 2151, 18, 588, 1488, 7675, 588, 2375, 5621, 2...
cssParanoidStringCheck = b;
public void setParanoidStringCheck(boolean b) { cssParanoidStringCheck = b; }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/eda25544c98825ea7f1e9ddd5c08127cd671f788/HTMLFilter.java/clean/src/freenet/clients/http/filter/HTMLFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1553, 304, 839, 780, 1564, 12, 6494, 324, 13, 288, 202, 202, 5212, 1553, 304, 839, 780, 1564, 273, 324, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1553, 304, 839, 780, 1564, 12, 6494, 324, 13, 288, 202, 202, 5212, 1553, 304, 839, 780, 1564, 273, 324, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -...
boolean _raiseOnMissingEditingContextDelegate = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXRaiseOnMissingEditingContextDelegate", true);
public static boolean _checkEditingContextDelegate(EOEditingContext editingContext) { if(editingContext instanceof ERXEC) { return true; } Object delegate=editingContext.delegate(); if (delegate==null) { EOObjectStore parent = editingContext.parentObjectStore(); if(!_raiseOnMissingEditingContextDelegate && parent != null && parent instanceof EOEditingContext) { Object parentDelegate=((EOEditingContext)parent).delegate(); if(parentDelegate != null && (parentDelegate instanceof ERXEditingContextDelegate)) { editingContext.setDelegate(parentDelegate); log.info("Found null delegate. Setting to the parent's delegate."); return true; } } if(!_raiseOnMissingEditingContextDelegate) { log.warn("Found null delegate. I will fix this for now by setting it to ERXExtensions.defaultDelegate"); ERXEC.factory().setDefaultDelegateOnEditingContext(editingContext); return true; } else { throw new IllegalStateException("Found null delegate. You can disable this check by setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in your WebObjects.properties"); } } if (delegate!=null && !(delegate instanceof ERXEditingContextDelegate)) { if(!_raiseOnMissingEditingContextDelegate) { log.warn("Found unexpected delegate class: "+delegate.getClass().getName()); return true; } else { throw new IllegalStateException("Found unexpected delegate class. You can disable this check by setting er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in your WebObjects.properties"); } } return false; }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/1b9a287a9e2acf592dea0fcc1740fd99b3f4ec3e/ERXEditingContextDelegate.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEditingContextDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 389, 11628, 1398, 4841, 28029, 1042, 9586, 273, 4232, 60, 2297, 18, 6494, 19759, 24502, 2932, 264, 18, 9489, 18, 654, 60, 30570, 1398, 4841, 28029, 1042, 9586, 3113, 638, 1769, 1250, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 389, 11628, 1398, 4841, 28029, 1042, 9586, 273, 4232, 60, 2297, 18, 6494, 19759, 24502, 2932, 264, 18, 9489, 18, 654, 60, 30570, 1398, 4841, 28029, 1042, 9586, 3113, 638, 1769, 1250, 389, ...
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); openEditor(input, TaskListPreferenceConstants.CATEGORY_EDITOR_ID, page);
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window != null) { IWorkbenchPage page = window.getActivePage(); openEditor(input, TaskListPreferenceConstants.CATEGORY_EDITOR_ID, page); }
public void run() { IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); openEditor(input, TaskListPreferenceConstants.CATEGORY_EDITOR_ID, page); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/35444773db18d81206016b3e4ea27d2d89ffaf68/TasksUiUtil.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 2421, 22144, 1964, 1363, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 5621, 9506, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 2421, 22144, 1964, 1363, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 5621, 9506, 202, ...
else {
else {
private int traverseSimpleTypeDecl( Element simpleTypeDecl ) throws Exception { String nameProperty = simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME ); String qualifiedName = nameProperty; if (fTargetNSURIString.length () != 0) { qualifiedName = fTargetNSURIString+","+nameProperty; } //check if we have already traversed the same simpleType decl if (fDatatypeRegistry.getDatatypeValidator(qualifiedName)!=null) { return fStringPool.addSymbol(qualifiedName); } Attr finalAttr = simpleTypeDecl.getAttributeNode(SchemaSymbols.ATT_FINAL); int finalProperty = 0; if(finalAttr != null) finalProperty = parseFinalSet(finalAttr.getValue()); else finalProperty = parseFinalSet(null); // if we have a nonzero final , store it in the hash... if(finalProperty != 0) fSimpleTypeFinalRegistry.put(qualifiedName, new Integer(finalProperty)); boolean list = false; boolean union = false; boolean restriction = false; int newSimpleTypeName = -1; if ( nameProperty.equals("")) { // anonymous simpleType newSimpleTypeName = fStringPool.addSymbol( "#S#"+fSimpleTypeAnonCount++ ); } else newSimpleTypeName = fStringPool.addSymbol( nameProperty ); //annotation?,(list|restriction|union) Element content = XUtil.getFirstChildElement(simpleTypeDecl); content = checkContent(simpleTypeDecl, content, false); if (content == null) { return (-1); } //use content.getLocalName for the cases there "xsd:" is a prefix, ei. "xsd:list" String varietyProperty = content.getLocalName(); String baseTypeQNameProperty = null; Vector dTValidators = null; int size = 0; StringTokenizer unionMembers = null; int numOfTypes = 0; //list/restriction = 1, union = "+" if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { //traverse List baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_ITEMTYPE ); list = true; } else if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { //traverse Restriction baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_BASE ); restriction= true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { //traverse union union = true; baseTypeQNameProperty = content.getAttribute( SchemaSymbols.ATT_MEMBERTYPES); if (!baseTypeQNameProperty.equals("")) { unionMembers = new StringTokenizer( baseTypeQNameProperty ); size = unionMembers.countTokens(); } else { size = 1; //at least one must be seen as <simpleType> decl } dTValidators = new Vector (size, 2); } else { reportSchemaError(SchemaMessageProvider.FeatureUnsupported, new Object [] { varietyProperty }); return -1; } if(XUtil.getNextSiblingElement(content) != null) { // REVISIT: Localize reportGenericSchemaError("error in content of simpleType"); } int typeNameIndex; DatatypeValidator baseValidator = null; if ( baseTypeQNameProperty.equals("") ) { //must 'see' <simpleType> //content = {annotation?,simpleType?...} content = XUtil.getFirstChildElement(content); //check content (annotation?, ...) content = checkContent(simpleTypeDecl, content, false); if (content == null) { return (-1); } if (content.getLocalName().equals( SchemaSymbols.ELT_SIMPLETYPE )) { //Test... typeNameIndex = traverseSimpleTypeDecl(content); if (typeNameIndex!=-1) { baseValidator=fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); if (baseValidator !=null && union) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if ( typeNameIndex == -1 || baseValidator == null) { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { content.getAttribute( SchemaSymbols.ATT_BASE ), content.getAttribute(SchemaSymbols.ATT_NAME) }); return -1; } } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); return -1; } } //end - must see simpleType? else { //base was provided - get proper validator. numOfTypes = 1; if (union) { numOfTypes= size; } // this loop is also where we need to find out whether the type being used as // a base (or itemType or whatever) allows such things. int baseRefContext = (restriction? SchemaSymbols.RESTRICTION:0); baseRefContext = baseRefContext | (union? SchemaSymbols.UNION:0); baseRefContext = baseRefContext | (list ? SchemaSymbols.LIST:0); for (int i=0; i<numOfTypes; i++) { //find all validators if (union) { baseTypeQNameProperty = unionMembers.nextToken(); } baseValidator = findDTValidator ( simpleTypeDecl, baseTypeQNameProperty, baseRefContext); if ( baseValidator == null) { return (-1); } if (union) { dTValidators.addElement((DatatypeValidator)baseValidator); //add validator to structure } } } //end - base is available if (list && baseValidator instanceof ListDatatypeValidator) { reportSchemaError(SchemaMessageProvider.InvalidBaseType, new Object [] { baseTypeQNameProperty, simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}); return -1; } // move to next child // restriction ->[simpleType]->[facets] OR // restriction ->[facets] if (baseTypeQNameProperty.equals ("")) { //we already got the first kid of union/list/restriction content = XUtil.getNextSiblingElement( content ); } else { //we need to look at first kid of union/list/restriction content = XUtil.getFirstChildElement(content); } //get more types for union if any if (union) { int index=size; if (!baseTypeQNameProperty.equals ("")) { content = checkContent(simpleTypeDecl, content, true); } while (content!=null) { typeNameIndex = traverseSimpleTypeDecl(content); if (typeNameIndex!=-1) { baseValidator=fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); if (baseValidator != null) { dTValidators.addElement((DatatypeValidator)baseValidator); } } if ( baseValidator == null || typeNameIndex == -1) { reportSchemaError(SchemaMessageProvider.UnknownBaseDatatype, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_BASE ), simpleTypeDecl.getAttribute(SchemaSymbols.ATT_NAME)}); return (-1); } content = XUtil.getNextSiblingElement( content ); } } // end - traverse Union Hashtable facetData =null; int numFacets=0; facetData = new Hashtable(); if (restriction && content != null) { int numEnumerationLiterals = 0; Vector enumData = new Vector(); content = checkContent(simpleTypeDecl, content , true); StringBuffer pattern = null; String facet; while (content != null) { if (content.getNodeType() == Node.ELEMENT_NODE) { numFacets++; facet =content.getLocalName(); if (facet.equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; String enumVal = content.getAttribute(SchemaSymbols.ATT_VALUE); String localName; if (baseValidator instanceof NOTATIONDatatypeValidator) { String prefix = ""; String localpart = enumVal; int colonptr = enumVal.indexOf(":"); if ( colonptr > 0) { prefix = enumVal.substring(0,colonptr); localpart = enumVal.substring(colonptr+1); } String uriStr = (!prefix.equals(""))?resolvePrefixToURI(prefix):fTargetNSURIString; qualifiedName=uriStr + ":" + localpart; localName = (String)fNotationRegistry.get(qualifiedName); if(localName == null){ localName = traverseNotationFromAnotherSchema( localpart, uriStr); if (localName == null) { reportGenericSchemaError("Notation '" + localpart + "' not found in the grammar "+ uriStr); } } if (DEBUGGING) { System.out.println("[notation decl] fullName: = " + qualifiedName); System.out.println("[notation decl] enum value: =" +enumVal); } enumVal=qualifiedName; } enumData.addElement(enumVal); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } else if (facet.equals(SchemaSymbols.ELT_ANNOTATION) || facet.equals(SchemaSymbols.ELT_SIMPLETYPE)) { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); } else if (facet.equals(SchemaSymbols.ELT_PATTERN)) { if (pattern == null) { pattern = new StringBuffer (content.getAttribute( SchemaSymbols.ATT_VALUE )); } else { //datatypes: 5.2.4 pattern pattern.append("|"); pattern.append(content.getAttribute( SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } } else { if ( facetData.containsKey(facet) ) reportSchemaError(SchemaMessageProvider.DatatypeError, new Object [] {"The facet '" + facet + "' is defined more than once."} ); facetData.put(facet,content.getAttribute( SchemaSymbols.ATT_VALUE )); checkContent(simpleTypeDecl, XUtil.getFirstChildElement( content ), true); } } content = XUtil.getNextSiblingElement(content); } if (numEnumerationLiterals > 0) { facetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } if (pattern !=null) { facetData.put(SchemaSymbols.ELT_PATTERN, pattern.toString()); } } else if (list && content!=null) { // report error - must not have any children! if (!baseTypeQNameProperty.equals("")) { content = checkContent(simpleTypeDecl, content, true); } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); //REVISIT: should we return? } } else if (union && content!=null) { //report error - must not have any children! if (!baseTypeQNameProperty.equals("")) { content = checkContent(simpleTypeDecl, content, true); if (content!=null) { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); } } else { reportSchemaError(SchemaMessageProvider.ListUnionRestrictionError, new Object [] { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}); //REVISIT: should we return? } } // create & register validator for "generated" type if it doesn't exist qualifiedName = fStringPool.toString(newSimpleTypeName); if (fTargetNSURIString.length () != 0) { qualifiedName = fTargetNSURIString+","+qualifiedName; } try { DatatypeValidator newValidator = fDatatypeRegistry.getDatatypeValidator( qualifiedName ); if( newValidator == null ) { // not previously registered if (list) { fDatatypeRegistry.createDatatypeValidator( qualifiedName, baseValidator, facetData,true); } else if (restriction) { fDatatypeRegistry.createDatatypeValidator( qualifiedName, baseValidator, facetData,false); } else { //union fDatatypeRegistry.createDatatypeValidator( qualifiedName, dTValidators); } } } catch (Exception e) { reportSchemaError(SchemaMessageProvider.DatatypeError,new Object [] { e.getMessage() }); } return fStringPool.addSymbol(qualifiedName); }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 13491, 514, 508, 1396, 1850, 273, 225, 4143, 559, 3456, 18, 588, 1499, 12, 4611, 14821, 18, 789, 56, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 10080, 5784, 559, 3456, 12, 3010, 4143, 559, 3456, 262, 1216, 1185, 288, 13491, 514, 508, 1396, 1850, 273, 225, 4143, 559, 3456, 18, 588, 1499, 12, 4611, 14821, 18, 789, 56, ...
curVariable.addAttribute( new Attribute( _Coordinate.Axes, "latitude longitude time"));
curVariable.addAttribute( new Attribute( _Coordinate.Axes, "latitude longitude"));
public void open( RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask ) throws IOException { //this.raf = raf; this.ncFile = ncfile; this.raf = raf; this.raf.order( ucar.unidata.io.RandomAccessFile.BIG_ENDIAN ); // DMSP files are XDR this.header = new DMSPHeader(); this.header.read( this.raf, this.ncFile ); // Create dimension lists for adding to variables. List nonScanDimList = new ArrayList(); nonScanDimList.add( this.header.getNumDataRecordsDim() ); List scanDimList = new ArrayList(); scanDimList.add( this.header.getNumDataRecordsDim() ); scanDimList.add( this.header.getNumSamplesPerBandDim() ); Iterator varInfoIt = VariableInfo.getAll().iterator(); VariableInfo curVarInfo = null; Variable curVariable = null; while ( varInfoIt.hasNext() ) { curVarInfo = (VariableInfo) varInfoIt.next(); curVariable = new Variable( this.ncFile, this.ncFile.getRootGroup(), null, curVarInfo.getName()); curVariable.setDataType( curVarInfo.getDataType()); if ( curVarInfo.getNumElementsInRecord() == 1) { curVariable.setDimensions( nonScanDimList ); } else { curVariable.setDimensions( scanDimList ); } curVariable.addAttribute( new Attribute( "long_name", curVarInfo.getLongName())); curVariable.addAttribute( new Attribute( "units", curVarInfo.getUnits())); if ( curVariable.getName().equals( "latitude")) { curVariable.addAttribute( new Attribute( "calculatedVariable", "Using the geometry of the satellite scans and an ellipsoidal earth (a=6378.14km and e=0.0818191830).")); curVariable.addAttribute( new Attribute( _Coordinate.AxisType, AxisType.Lat.toString())); } else if ( curVariable.getName().equals( "longitude")) { curVariable.addAttribute( new Attribute( "calculatedVariable", "Using the geometry of the satellite scans and an ellipsoidal earth (a=6378.14km and e=0.0818191830).")); curVariable.addAttribute( new Attribute( _Coordinate.AxisType, AxisType.Lon.toString())); } else if ( curVariable.getName().equals( "time")) { curVariable.addAttribute( new Attribute( "calculatedVariable", "Using the satellite epoch for each scan.")); this.startDateString = this.header.getStartDateAtt().getStringValue(); try { this.startDate = DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateFromDateTimeString( this.startDateString); } catch ( ParseException e ) { throw new IOException( "Invalid DMSP file: \"startDate\" attribute value <" + this.startDateString + "> not parseable with format string <" + DMSPHeader.DateFormatHandler.ISO_DATE_TIME.getDateTimeFormatString() + ">."); } curVariable.addAttribute( new Attribute( "units", "seconds since " + this.startDateString)); curVariable.addAttribute( new Attribute( _Coordinate.AxisType, AxisType.Time.toString())); } else if ( curVariable.getName().equals( "infraredImagery")) { curVariable.addAttribute( new Attribute( _Coordinate.Axes, "latitude longitude time")); curVariable.addAttribute( new Attribute( "_unsigned", "true")); curVariable.addAttribute( new Attribute( "scale_factor", new Float((310.0-190.0)/(256.0-1.0)))); curVariable.addAttribute( new Attribute( "add_offset", new Float( 190.0))); curVariable.addAttribute( new Attribute( "description", "Infrared pixel values correspond to a temperature range of 190 to 310 " + "Kelvins in 256 equally spaced steps. Onboard calibration is performed " + "during each scan. -- From http://dmsp.ngdc.noaa.gov/html/sensors/doc_ols.html")); } else if ( curVariable.getName().equals( "visibleImagery")) { curVariable.addAttribute( new Attribute( _Coordinate.Axes, "latitude longitude time")); curVariable.addAttribute( new Attribute( "_unsigned", "true")); curVariable.addAttribute( new Attribute( "description", "Visible pixels are relative values ranging from 0 to 63 rather than " + "absolute values in Watts per m^2. Instrumental gain levels are adjusted " + "to maintain constant cloud reference values under varying conditions of " + "solar and lunar illumination. Telescope pixel values are replaced by " + "Photo Multiplier Tube (PMT) values at night. " + "-- From http://dmsp.ngdc.noaa.gov/html/sensors/doc_ols.html")); } this.ncFile.addVariable( null, curVariable); } // Make sure the NetcdfFile is setup properly. this.ncFile.finish(); }
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/d1348565dc9478e7369f802b00e10ca2f4515682/DMSPiosp.java/clean/cdm/src/main/java/ucar/nc2/iosp/dmsp/DMSPiosp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1696, 12, 8072, 26933, 24671, 16, 8503, 24799, 812, 8194, 768, 16, 10347, 2174, 3755, 2174, 262, 1850, 1216, 1860, 225, 288, 565, 368, 2211, 18, 13308, 273, 24671, 31, 565, 333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1696, 12, 8072, 26933, 24671, 16, 8503, 24799, 812, 8194, 768, 16, 10347, 2174, 3755, 2174, 262, 1850, 1216, 1860, 225, 288, 565, 368, 2211, 18, 13308, 273, 24671, 31, 565, 333...
public void objectReceived(final UpdateEvent e) {}
public void objectReceived(final UpdateEvent e) { controller.reloadMainBrowserAvatar(); }
public void objectReceived(final UpdateEvent e) {}
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/1079dba1f2428715d6e9cbb4b718da0416175e43/EventDispatcher.java/clean/local/browser/src/main/java/com/thinkparity/browser/model/EventDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 733, 8872, 12, 6385, 2315, 1133, 425, 13, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 733, 8872, 12, 6385, 2315, 1133, 425, 13, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...