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 |
|---|---|---|---|---|---|---|
{ Portal portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(10); portal.sety(23); portal.setNumber(0); portal.setDestination("0_semos_city",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(11); portal.sety(23); portal.setNumber(1); portal.setDestination("0_semos_city",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(12); portal.sety(23); portal.setNumber(2); portal.setDestination("0_semos_city",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(13); portal.sety(23); portal.setNumber(3); portal.setDestination("0_semos_city",1); zone.addPortal(portal); SpeakerNPC npc=npcs.add(new SpeakerNPC("Ilisa") { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(9,5)); nodes.add(new Path.Node(14,5)); setPath(nodes,true); } protected void createDialog() { Behaviours.addGreeting(this); Behaviours.addJob(this, "I have healing abilities and I heal wounded players. I also sell potions and antidotes."); Behaviours.addHelp(this, "Ask me to #heal you and I will help you or ask me #offer and I will show my shop's stuff."); Behaviours.addSeller(this, new Behaviours.SellerBehaviour(shops.get("healing"))); Behaviours.addHealer(this, 0); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","welcomernpc"); npc.set(9,5); npc.initHP(100); zone.addNPC(npc); npc=npcs.add(new SpeakerNPC("Io Flotto") { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(8,18)); nodes.add(new Path.Node(8,19)); nodes.add(new Path.Node(15,19)); nodes.add(new Path.Node(15,18)); nodes.add(new Path.Node(16,18)); nodes.add(new Path.Node(16,13)); nodes.add(new Path.Node(15,13)); nodes.add(new Path.Node(15,12)); nodes.add(new Path.Node(12,12)); nodes.add(new Path.Node(8,12)); nodes.add(new Path.Node(8,13)); nodes.add(new Path.Node(7,13)); nodes.add(new Path.Node(7,18)); setPath(nodes,true); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { if (!player.isQuestCompleted("Io")) { engine.say("I waited you, "+player.getName()+". How do I know your name? Easy, I'm Io Flotto, the telepath. Do you want me to show you the six basic elements of telepathy?"); player.setQuest("Io","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time? Not that I don't already know..."); } } }); Behaviours.addHelp(this,"I'm a telepath and telekinetic. I can help you by sharing my mental skills with you... Do you want me to show you the six basic elements of telepathy? I already know the answer but I'm being polite..."); Behaviours.addJob(this,"I am committed to develop the unknown potential power of the mind. Up to this day I've made great advances in telepathy and telekinesis. However, I can't foresee the future yet and if finally we will be able to destroy Blordrough's dark legion"); add(1,new String[]{"quest","task"},null,1,"I do not have any task for you right now. If you need anything from me just say it. I think it's simply unkind reading one's mind without permission.",null); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","floattingladynpc"); npc.set(8,18); npc.initHP(100); zone.addNPC(npc); } | { Portal portal = new Portal(); zone.assignRPObjectID(portal); portal.setx(10); portal.sety(23); portal.setNumber(0); portal.setDestination("0_semos_city", 1); zone.addPortal(portal); portal = new Portal(); zone.assignRPObjectID(portal); portal.setx(11); portal.sety(23); portal.setNumber(1); portal.setDestination("0_semos_city", 1); zone.addPortal(portal); portal = new Portal(); zone.assignRPObjectID(portal); portal.setx(12); portal.sety(23); portal.setNumber(2); portal.setDestination("0_semos_city", 1); zone.addPortal(portal); portal = new Portal(); zone.assignRPObjectID(portal); portal.setx(13); portal.sety(23); portal.setNumber(3); portal.setDestination("0_semos_city", 1); zone.addPortal(portal); SpeakerNPC npc = npcs.add(new SpeakerNPC("Ilisa") { protected void createPath() { List<Path.Node> nodes = new LinkedList<Path.Node>(); nodes.add(new Path.Node(9, 5)); nodes.add(new Path.Node(14, 5)); setPath(nodes, true); } protected void createDialog() { Behaviours.addGreeting(this); Behaviours .addJob( this, "I have healing abilities and I heal wounded people. I also sell potions and antidotes."); Behaviours .addHelp( this, "Ask me to #heal you and I will help you or ask me #offer and I will show my shop's stuff."); Behaviours.addSeller(this, new Behaviours.SellerBehaviour(shops .get("healing"))); Behaviours.addHealer(this, 0); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class", "welcomernpc"); npc.set(9, 5); npc.initHP(100); zone.addNPC(npc); npc = npcs.add(new SpeakerNPC("Io Flotto") { protected void createPath() { List<Path.Node> nodes = new LinkedList<Path.Node>(); nodes.add(new Path.Node(8, 18)); nodes.add(new Path.Node(8, 19)); nodes.add(new Path.Node(15, 19)); nodes.add(new Path.Node(15, 18)); nodes.add(new Path.Node(16, 18)); nodes.add(new Path.Node(16, 13)); nodes.add(new Path.Node(15, 13)); nodes.add(new Path.Node(15, 12)); nodes.add(new Path.Node(12, 12)); nodes.add(new Path.Node(8, 12)); nodes.add(new Path.Node(8, 13)); nodes.add(new Path.Node(7, 13)); nodes.add(new Path.Node(7, 18)); setPath(nodes, true); } protected void createDialog() { add(0, "hi", null, 1, null, new SpeakerNPC.ChatAction() { public void fire(Player player, String text, SpeakerNPC engine) { if (!player.isQuestCompleted("Io")) { engine .say("I waited you, " + player.getName() + ". How do I know your name? Easy, I'm Io Flotto, the telepath. Do you want me to show you the six basic elements of telepathy?"); player.setQuest("Io", "done"); } else { engine .say("Hi again, " + player.getName() + ". How can I #help you this time? Not that I don't already know..."); } } }); Behaviours .addHelp( this, "I'm a telepath and telekinetic. I can help you by sharing my mental skills with you... Do you want me to show you the six basic elements of telepathy? I already know the answer but I'm being polite..."); Behaviours .addJob( this, "I am committed to develop the unknown potential power of the mind. Up to this day I've made great advances in telepathy and telekinesis. However, I can't foresee the future yet and if finally we will be able to destroy Blordrough's dark legion"); add( 1, new String[] { "quest", "task" }, null, 1, "I do not have any task for you right now. If you need anything from me just say it. I think it's simply unkind reading one's mind without permission.", null); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class", "floattingladynpc"); npc.set(8, 18); npc.initHP(100); zone.addNPC(npc); } | private void buildSemosTempleArea(StendhalRPZone zone) { Portal portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(10); portal.sety(23); portal.setNumber(0); portal.setDestination("0_semos_city",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(11); portal.sety(23); portal.setNumber(1); portal.setDestination("0_semos_city",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(12); portal.sety(23); portal.setNumber(2); portal.setDestination("0_semos_city",1); zone.addPortal(portal); portal=new Portal(); zone.assignRPObjectID(portal); portal.setx(13); portal.sety(23); portal.setNumber(3); portal.setDestination("0_semos_city",1); zone.addPortal(portal); SpeakerNPC npc=npcs.add(new SpeakerNPC("Ilisa") { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(9,5)); nodes.add(new Path.Node(14,5)); setPath(nodes,true); } protected void createDialog() { Behaviours.addGreeting(this); Behaviours.addJob(this, "I have healing abilities and I heal wounded players. I also sell potions and antidotes."); Behaviours.addHelp(this, "Ask me to #heal you and I will help you or ask me #offer and I will show my shop's stuff."); Behaviours.addSeller(this, new Behaviours.SellerBehaviour(shops.get("healing"))); Behaviours.addHealer(this, 0); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","welcomernpc"); npc.set(9,5); npc.initHP(100); zone.addNPC(npc); npc=npcs.add(new SpeakerNPC("Io Flotto") { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(8,18)); nodes.add(new Path.Node(8,19)); nodes.add(new Path.Node(15,19)); nodes.add(new Path.Node(15,18)); nodes.add(new Path.Node(16,18)); nodes.add(new Path.Node(16,13)); nodes.add(new Path.Node(15,13)); nodes.add(new Path.Node(15,12)); nodes.add(new Path.Node(12,12)); nodes.add(new Path.Node(8,12)); nodes.add(new Path.Node(8,13)); nodes.add(new Path.Node(7,13)); nodes.add(new Path.Node(7,18)); setPath(nodes,true); } protected void createDialog() { add(0,"hi",null,1,null, new SpeakerNPC.ChatAction() { public void fire(Player player,String text,SpeakerNPC engine) { //A little trick to make NPC remember if it has met player before anc react accordingly //NPC_name quest doesn't exist anywhere else neither is used for any other purpose if (!player.isQuestCompleted("Io")) { engine.say("I waited you, "+player.getName()+". How do I know your name? Easy, I'm Io Flotto, the telepath. Do you want me to show you the six basic elements of telepathy?"); player.setQuest("Io","done"); } else { engine.say("Hi again, "+player.getName()+". How can I #help you this time? Not that I don't already know..."); } } }); Behaviours.addHelp(this,"I'm a telepath and telekinetic. I can help you by sharing my mental skills with you... Do you want me to show you the six basic elements of telepathy? I already know the answer but I'm being polite..."); Behaviours.addJob(this,"I am committed to develop the unknown potential power of the mind. Up to this day I've made great advances in telepathy and telekinesis. However, I can't foresee the future yet and if finally we will be able to destroy Blordrough's dark legion"); add(1,new String[]{"quest","task"},null,1,"I do not have any task for you right now. If you need anything from me just say it. I think it's simply unkind reading one's mind without permission.",null); Behaviours.addGoodbye(this); } }); zone.assignRPObjectID(npc); npc.put("class","floattingladynpc"); npc.set(8,18); npc.initHP(100); zone.addNPC(npc); } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/d512245d8e26069d9f1c5a15fba078b322c3b0ac/Semos.java/buggy/src/games/stendhal/server/maps/Semos.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
13185,
538,
1837,
1802,
5484,
12,
510,
409,
22314,
54,
52,
4226,
4157,
13,
565,
288,
565,
25478,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
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,
3238,
918,
1361,
13185,
538,
1837,
1802,
5484,
12,
510,
409,
22314,
54,
52,
4226,
4157,
13,
565,
288,
565,
25478,
11899,
33,
2704,
25478,
5621,
565,
4157,
18,
6145,
54,
52,
22359,
12,
2... |
f.delete(); | public void close() throws IOException { in.close(); // now it's safe to prepare temp file to be gc'ed f = null; } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/26873aa814f44ec19cdfbc6404e677cd51fb4a33/ValueHelper.java/clean/jackrabbit/src/main/java/org/apache/jackrabbit/value/ValueHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
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,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
284,
18,
3733,
5621,
225,
2... | |
String phoneNumber = tiTelURL.getPhoneNumber(); | int start = tiTelURL.toString().indexOf(':'); String phoneNumber = tiTelURL.toString().substring(start).trim(); | protected javax.sip.address.TelURL createRiTelURLFromTiTelURL( TelURL tiTelURL) { TelURL telUrl = null; try { String phoneNumber = tiTelURL.getPhoneNumber(); telUrl = riAddressFactory.createTelURL(phoneNumber); telUrl.setGlobal(tiTelURL.isGlobal()); } catch (Exception ex) { throw new TiUnexpectedError(ex.getMessage()); } return telUrl; } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/0bdf3dc3da675395ca78ca02a0e7dae4d9e95631/AddressFactoryTest.java/buggy/src/test/tck/factory/AddressFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6863,
18,
28477,
18,
2867,
18,
56,
292,
1785,
752,
54,
77,
56,
292,
1785,
1265,
56,
77,
56,
292,
1785,
12,
202,
202,
56,
292,
1785,
11374,
56,
292,
1785,
13,
288,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6863,
18,
28477,
18,
2867,
18,
56,
292,
1785,
752,
54,
77,
56,
292,
1785,
1265,
56,
77,
56,
292,
1785,
12,
202,
202,
56,
292,
1785,
11374,
56,
292,
1785,
13,
288,
202,
20... |
fPluginIdEntry.setEditable(isEditable()); | fPluginIdEntry.setEditable(isEditable()); | private void createPluginIDEntry(Composite client, FormToolkit toolkit, IActionBars actionBars) { fPluginIdEntry = new FormEntry(client, toolkit, "Plug-in Id:", null, true); fPluginIdEntry.setFormEntryListener(new FormEntryAdapter(this, actionBars) { public void textValueChanged(FormEntry entry) { try { ((IFragment) getPluginBase()).setPluginId(entry .getValue()); } catch (CoreException e) { PDEPlugin.logException(e); } } public void linkActivated(HyperlinkEvent e) { } }); fPluginIdEntry.setEditable(isEditable()); } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/d31a9651542b0f36656cd04a3038389b779eb239/GeneralInfoSection.java/clean/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/plugin/GeneralInfoSection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3773,
734,
1622,
12,
9400,
1004,
16,
2748,
6364,
8691,
5226,
8691,
16,
467,
1803,
5190,
87,
1301,
5190,
87,
13,
288,
202,
202,
74,
3773,
548,
1622,
273,
394,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3773,
734,
1622,
12,
9400,
1004,
16,
2748,
6364,
8691,
5226,
8691,
16,
467,
1803,
5190,
87,
1301,
5190,
87,
13,
288,
202,
202,
74,
3773,
548,
1622,
273,
394,
2748,
... |
else if (myRootObjects.contains(child)) { | else if (myRootObjects.containsKey(child)) { | public final void register(Object parent, Object child) { checkIfValid(child); final ObjectNode parentNode = getNodeFor(parent); final ObjectNode childNode = getNodeFor(child); if (childNode != null && childNode.getParent() != parentNode && childNode.getParent() != null) { childNode.getParent().removeChild(childNode); parentNode.addChild(childNode); } else if (myRootObjects.contains(child)) { final ObjectNode parentless = getNodeFor(child); parentNode.addChild(parentless); myRootObjects.remove(child); } else { parentNode.addChild(child); } if (LOG.isDebugEnabled()) { LOG.debug("Registered: " + child + " for parent " + parent); } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/a1b18024366443cdf2c460037633a1ceb1550e67/ObjectTree.java/clean/util/src/com/intellij/openapi/util/objectTree/ObjectTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
1744,
12,
921,
982,
16,
1033,
1151,
13,
288,
565,
19130,
1556,
12,
3624,
1769,
565,
727,
1033,
907,
7234,
273,
5973,
1290,
12,
2938,
1769,
565,
727,
1033,
907,
9465,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
1744,
12,
921,
982,
16,
1033,
1151,
13,
288,
565,
19130,
1556,
12,
3624,
1769,
565,
727,
1033,
907,
7234,
273,
5973,
1290,
12,
2938,
1769,
565,
727,
1033,
907,
9465,
273... |
if(log.isDebugEnabled()) | if(log.isDebugEnabled()) { | public boolean obtainLock(Connection conn, String lockName) throws LockException { lockName = lockName.intern(); Log log = getLog(); if(log.isDebugEnabled()) log.debug( "Lock '" + lockName + "' is desired by: " + Thread.currentThread().getName()); if (!isLockOwner(conn, lockName)) { PreparedStatement ps = null; ResultSet rs = null; try { ps = conn.prepareStatement(selectWithLockSQL); ps.setString(1, lockName); if(log.isDebugEnabled()) log.debug( "Lock '" + lockName + "' is being obtained: " + Thread.currentThread().getName()); rs = ps.executeQuery(); if (!rs.next()) throw new SQLException(Util.rtp( "No row exists in table " + TABLE_PREFIX_SUBST + TABLE_LOCKS + " for lock named: " + lockName, tablePrefix)); } catch (SQLException sqle) { //Exception src = // (Exception)getThreadLocksObtainer().get(lockName); //if(src != null) // src.printStackTrace(); //else // System.err.println("--- ***************** NO OBTAINER!"); if(log.isDebugEnabled()) log.debug( "Lock '" + lockName + "' was not obtained by: " + Thread.currentThread().getName()); throw new LockException("Failure obtaining db row lock: " + sqle.getMessage(), sqle); } finally { if (rs != null) try { rs.close(); } catch (Exception ignore) { } if (ps != null) try { ps.close(); } catch (Exception ignore) { } } if(log.isDebugEnabled()) log.debug( "Lock '" + lockName + "' given to: " + Thread.currentThread().getName()); getThreadLocks().add(lockName); //getThreadLocksObtainer().put(lockName, new // Exception("Obtainer...")); } else if(log.isDebugEnabled()) log.debug( "Lock '" + lockName + "' Is already owned by: " + Thread.currentThread().getName()); return true; } | 3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/StdRowLockSemaphore.java/buggy/src/java/org/quartz/impl/jdbcjobstore/StdRowLockSemaphore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
7161,
2531,
12,
1952,
1487,
16,
514,
2176,
461,
13,
5411,
1216,
3488,
503,
288,
3639,
2176,
461,
273,
2176,
461,
18,
267,
798,
5621,
3639,
1827,
613,
273,
9189,
5621,
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,
1250,
7161,
2531,
12,
1952,
1487,
16,
514,
2176,
461,
13,
5411,
1216,
3488,
503,
288,
3639,
2176,
461,
273,
2176,
461,
18,
267,
798,
5621,
3639,
1827,
613,
273,
9189,
5621,
7734,
... |
buildBorder( content, HTMLTags.ATTR_BORDER_TOP, style.getBorderTopWidth( ), style.getBorderTopStyle( ), style .getBorderTopColor( ) ); | buildBorder( content, HTMLTags.ATTR_BORDER_TOP, style .getBorderTopWidth( ), style.getBorderTopStyle( ), style .getBorderTopColor( ) ); | private static void buildBox( StringBuffer content, StyleDesign style ) { buildProperty( content, HTMLTags.ATTR_MARGIN_TOP, style.getMarginTop( ) ); buildProperty( content, HTMLTags.ATTR_MARGIN_RIGHT, style.getMarginRight( ) ); buildProperty( content, HTMLTags.ATTR_MARGIN_BOTTOM, style.getMarginBottom( ) ); buildProperty( content, HTMLTags.ATTR_MARGIN_LEFT, style.getMarginLeft( ) ); buildProperty( content, HTMLTags.ATTR_PADDING_TOP, style.getPaddingTop( ) ); buildProperty( content, HTMLTags.ATTR_PADDING_RIGHT, style.getPaddingRight( ) ); buildProperty( content, HTMLTags.ATTR_PADDING_BOTTOM, style.getPaddingBottom( ) ); buildProperty( content, HTMLTags.ATTR_PADDING_LEFT, style.getPaddingLeft( ) ); buildBorder( content, HTMLTags.ATTR_BORDER_TOP, style.getBorderTopWidth( ), style.getBorderTopStyle( ), style .getBorderTopColor( ) ); buildBorder( content, HTMLTags.ATTR_BORDER_RIGHT, style.getBorderRightWidth( ), style.getBorderRightStyle( ), style.getBorderRightColor( ) ); buildBorder( content, HTMLTags.ATTR_BORDER_BOTTOM, style.getBorderBottomWidth( ), style.getBorderBottomStyle( ), style.getBorderBottomColor( ) ); buildBorder( content, HTMLTags.ATTR_BORDER_LEFT, style.getBorderLeftWidth( ), style.getBorderLeftStyle( ), style .getBorderLeftColor( ) ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/778c80860c81c271b4b70edb2450e2750fe6c140/AttributeBuilder.java/clean/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/AttributeBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1361,
3514,
12,
6674,
913,
16,
9767,
15478,
2154,
262,
202,
95,
202,
202,
3510,
1396,
12,
913,
16,
3982,
3453,
18,
12043,
67,
19772,
7702,
67,
10462,
16,
2154,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1361,
3514,
12,
6674,
913,
16,
9767,
15478,
2154,
262,
202,
95,
202,
202,
3510,
1396,
12,
913,
16,
3982,
3453,
18,
12043,
67,
19772,
7702,
67,
10462,
16,
2154,
18,
... |
if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>"); | if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, "/"+e.newURI.toString()); } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>"); } | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/"+httprequest.getParam("key")); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = new URI("/welcome/"); } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(" ", "+"); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; } if(ks.startsWith("/")) ks = ks.substring(1); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { this.writeReply(ctx, 400, "text/html", "Invalid key", "<html><head><title>Invalid key</title></head><body>Expected a freenet key, but got "+HTMLEncoder.encode(ks)+"</body></html>"); return; } try { Logger.minor(this, "Fproxy fetching "+key); FetchResult result = fetch(key); // Now, is it safe? Bucket data = result.asBucket(); String typeName = result.getMimeType(); String reqParam = httprequest.getParam("type", null); if(reqParam != null) typeName = reqParam; Logger.minor(this, "Type: "+typeName+" ("+result.getMimeType()+" "+reqParam+")"); long now = System.currentTimeMillis(); String forceString = httprequest.getParam("force"); boolean force = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } if(typeName.equals("application/x-msdownload")) { // Download to disk, this should be safe, and is set when we do "force download to disk" from a dangerous-content-warning page. force = true; } try { if(!force) data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName); // Send the data, intact writeReply(ctx, 200, typeName, "OK", data); } catch (UnsafeContentTypeException e) { StringBuffer buf = new StringBuffer(); ctx.getPageMaker().makeHead(buf, "Potentially Dangerous Content"); buf.append("<h1>"); buf.append(e.getHTMLEncodedTitle()); buf.append("</h1>\n"); buf.append(e.getExplanation()); buf.append("<p>Your options are:</p><ul>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?type=text/plain\">Click here</a> to open the file as plain text (this should not be dangerous, but it may be garbled).</li>\n"); // FIXME: is this safe? See bug #131 buf.append("<li><a href=\"/"+key.toString(false)+"?type=application/x-msdownload\">Click here</a> to force your browser to download the file to disk.</li>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?force="+getForceValue(key, now)+"\">Click here</a> to open the file as "+HTMLEncoder.encode(typeName)+".</li>\n"); buf.append("<li><a href=\"/\">Click here</a> to go to the FProxy home page.</li>\n"); buf.append("</ul>"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); } } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>"); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/315e01325509f76afb76d8e34c18f27e04549674/FproxyToadlet.java/buggy/src/freenet/clients/http/FproxyToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1875,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
759,
780,
1165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1875,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
759,
780,
1165... |
reportGenericSchemaError("Duplicate attribute " + | reportGenericSchemaError("Duplicate attribute " + | boolean traverseAttrsAndAttrGrps(Element firstAttr, XSAttributeGroupDecl attrGrp, XSDocumentInfo schemaDoc, SchemaGrammar grammar ) { Element child=null; XSAttributeGroupDecl tempAttrGrp = null; XSAttributeUse tempAttrUse = null; String childName; for (child=firstAttr; child!=null; child=DOMUtil.getNextSiblingElement(child)) { childName = DOMUtil.getLocalName(child); if (childName.equals(SchemaSymbols.ELT_ATTRIBUTE)) { tempAttrUse = fSchemaHandler.fAttributeTraverser.traverseLocal(child, schemaDoc, grammar); if (attrGrp.getAttributeUse(tempAttrUse.fAttrDecl.fTargetNamespace, tempAttrUse.fAttrDecl.fName)==null) { attrGrp.addAttributeUse(tempAttrUse); } else { reportGenericSchemaError("Duplicate attribute " + tempAttrUse.fAttrDecl.fName + " found "); } } else if (childName.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { //REVISIT: do we need to save some state at this point?? tempAttrGrp = fSchemaHandler.fAttributeGroupTraverser.traverseLocal( child, schemaDoc, grammar); if(tempAttrGrp == null ) break; XSAttributeUse[] attrUseS = tempAttrGrp.getAttributeUses(); XSAttributeUse existingAttrUse = null; for (int i=0; i<attrUseS.length; i++) { existingAttrUse = attrGrp.getAttributeUse(attrUseS[i].fAttrDecl.fTargetNamespace, attrUseS[i].fAttrDecl.fName); if (existingAttrUse == null) { attrGrp.addAttributeUse(attrUseS[i]); } else { reportGenericSchemaError("Duplicate attribute " + existingAttrUse.fAttrDecl.fName + " found "); } } if (tempAttrGrp.fAttributeWC != null) { if (attrGrp.fAttributeWC == null) { attrGrp.fAttributeWC = tempAttrGrp.fAttributeWC; } // perform intersection of attribute wildcard else { attrGrp.fAttributeWC = attrGrp.fAttributeWC. performIntersectionWith(tempAttrGrp.fAttributeWC); } } } else break; } // for if (child != null) { childName = DOMUtil.getLocalName(child); if (childName.equals(SchemaSymbols.ELT_ANYATTRIBUTE)) { XSWildcardDecl tempAttrWC = fSchemaHandler.fWildCardTraverser. traverseAnyAttribute(child, schemaDoc, grammar); if (attrGrp.fAttributeWC == null) { attrGrp.fAttributeWC = tempAttrWC; } // perform intersection of attribute wildcard else { attrGrp.fAttributeWC = attrGrp.fAttributeWC. performIntersectionWith(tempAttrWC); } child = DOMUtil.getNextSiblingElement(child); } if (child != null) { // Error - the element is not an attribute, attributeGroup or anyAttr return false; } } // Success return true; } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/4b0def86a1a96df8c8cbd5bf50c757023d94325b/XSDAbstractTraverser.java/clean/src/org/apache/xerces/impl/v2/XSDAbstractTraverser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
10080,
8262,
1876,
3843,
20799,
1121,
12,
1046,
1122,
3843,
16,
1139,
55,
1499,
1114,
3456,
1604,
43,
13832,
16,
19694,
1139,
55,
2519,
966,
1963,
1759,
16,
4611,
18576,
6473,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
10080,
8262,
1876,
3843,
20799,
1121,
12,
1046,
1122,
3843,
16,
1139,
55,
1499,
1114,
3456,
1604,
43,
13832,
16,
19694,
1139,
55,
2519,
966,
1963,
1759,
16,
4611,
18576,
6473,
262,
... |
} return false; } | } return false; } | private boolean duplicateInfoDegree( List executionDegreeList, InfoExecutionDegree infoExecutionDegree) { InfoDegree infoDegree = infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree(); Iterator iterator = executionDegreeList.iterator(); while (iterator.hasNext()) { InfoExecutionDegree infoExecutionDegree2 = (InfoExecutionDegree) iterator.next(); if (infoDegree.equals(infoExecutionDegree2.getInfoDegreeCurricularPlan().getInfoDegree()) && !(infoExecutionDegree.equals(infoExecutionDegree2))) return true; } return false; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/afceeee1d2f468ba1bde3402d087dd00fa1824eb/CreateGuideDispatchAction.java/buggy/src/ServidorApresentacao/Action/masterDegree/administrativeOffice/guide/CreateGuideDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6751,
966,
22885,
12,
9506,
202,
682,
4588,
22885,
682,
16,
9506,
202,
966,
3210,
22885,
1123,
3210,
22885,
13,
1082,
202,
95,
9506,
202,
966,
22885,
1123,
22885,
273,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
6751,
966,
22885,
12,
9506,
202,
682,
4588,
22885,
682,
16,
9506,
202,
966,
3210,
22885,
1123,
3210,
22885,
13,
1082,
202,
95,
9506,
202,
966,
22885,
1123,
22885,
273,
11... |
IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); javaElement= manager.getWorkingCopy(fEditor.getEditorInput()); | WorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); javaElement= manager.getWorkingCopy(fEditor.getEditorInput(), false); | private IJavaElement getInputElement() { IJavaElement javaElement= null; if (fEditor instanceof CompilationUnitEditor) { IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager(); javaElement= manager.getWorkingCopy(fEditor.getEditorInput()); if (javaElement instanceof ICompilationUnit) { ICompilationUnit unit= (ICompilationUnit) javaElement; try { JavaModelUtil.reconcile(unit); } catch (JavaModelException x) { JavaPlugin.log(x); } } } else if (fEditor instanceof ClassFileEditor) { IClassFileEditorInput editorInput= (IClassFileEditorInput) fEditor.getEditorInput(); javaElement= editorInput.getClassFile(); } return javaElement; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/1d7d75e9649400f37038c3969dfe9cbf855240b9/DefaultJavaFoldingStructureProvider.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/folding/DefaultJavaFoldingStructureProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
5852,
1046,
12353,
1046,
1435,
288,
202,
202,
45,
5852,
1046,
2252,
1046,
33,
446,
31,
202,
202,
430,
261,
74,
6946,
1276,
22416,
2802,
6946,
13,
288,
1082,
202,
45,
148... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
5852,
1046,
12353,
1046,
1435,
288,
202,
202,
45,
5852,
1046,
2252,
1046,
33,
446,
31,
202,
202,
430,
261,
74,
6946,
1276,
22416,
2802,
6946,
13,
288,
1082,
202,
45,
148... |
if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } | astFactory.addASTChild(currentAST, returnAST); | public final void methodCallArgs( AST callee ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST methodCallArgs_AST = null; Token lp = null; AST lp_AST = null; AST cb_AST = null; boolean zz; /*ignore*/ switch ( LA(1)) { case LPAREN: { if ( inputState.guessing==0 ) { methodCallArgs_AST = (AST)currentAST.root; methodCallArgs_AST = callee; currentAST.root = methodCallArgs_AST; currentAST.child = methodCallArgs_AST!=null &&methodCallArgs_AST.getFirstChild()!=null ? methodCallArgs_AST.getFirstChild() : methodCallArgs_AST; currentAST.advanceChildToEnd(); } lp = LT(1); if (inputState.guessing==0) { lp_AST = astFactory.create(lp); astFactory.makeASTRoot(currentAST, lp_AST); } match(LPAREN); if ( inputState.guessing==0 ) { lp_AST.setType(METHOD_CALL); } zz=argList(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } match(RPAREN); { if ((LA(1)==LCURLY) && (_tokenSet_15.member(LA(2))) && (_tokenSet_16.member(LA(3)))) { appendedBlock(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } } else if ((_tokenSet_111.member(LA(1))) && (_tokenSet_5.member(LA(2))) && (_tokenSet_5.member(LA(3)))) { } else { throw new NoViableAltException(LT(1), getFilename()); } } if ( inputState.guessing==0 ) { methodCallArgs_AST = (AST)currentAST.root; } break; } case LCURLY: { if ( inputState.guessing==0 ) { methodCallArgs_AST = (AST)currentAST.root; methodCallArgs_AST = callee; currentAST.root = methodCallArgs_AST; currentAST.child = methodCallArgs_AST!=null &&methodCallArgs_AST.getFirstChild()!=null ? methodCallArgs_AST.getFirstChild() : methodCallArgs_AST; currentAST.advanceChildToEnd(); } appendedBlock(); if (inputState.guessing==0) { cb_AST = (AST)returnAST; astFactory.addASTChild(currentAST, returnAST); } if ( inputState.guessing==0 ) { methodCallArgs_AST = (AST)currentAST.root; AST lbrace = getASTFactory().dup(cb_AST); lbrace.setType(METHOD_CALL); methodCallArgs_AST = (AST)astFactory.make( (new ASTArray(2)).add(lbrace).add(methodCallArgs_AST)); currentAST.root = methodCallArgs_AST; currentAST.child = methodCallArgs_AST!=null &&methodCallArgs_AST.getFirstChild()!=null ? methodCallArgs_AST.getFirstChild() : methodCallArgs_AST; currentAST.advanceChildToEnd(); } if ( inputState.guessing==0 ) { methodCallArgs_AST = (AST)currentAST.root; } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = methodCallArgs_AST; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
707,
1477,
2615,
12,
202,
202,
9053,
14425,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
707,
1477,
2615,
12,
202,
202,
9053,
14425,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,... |
int assertionCount = 0; | private void validateLookupResult(ILookupResult result, Set matches) { assertNotNull( matches ); assertEquals( result.getResultsSize(), matches.size() ); Iterator iter = result.getNodes(); int assertionCount = 0; while( iter.hasNext() ) { IASTOffsetableNamedElement element = (IASTOffsetableNamedElement) iter.next(); assertTrue( matches.contains( element.getName() )); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1ac6f78fc30a911df26182609731ef0e6503fd2a/CompletionParseTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompletionParseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
6609,
1253,
12,
2627,
4909,
1253,
563,
16,
1000,
1885,
13,
288,
9506,
202,
11231,
5962,
12,
1885,
11272,
202,
202,
11231,
8867,
12,
563,
18,
588,
3447,
1225,
9334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
6609,
1253,
12,
2627,
4909,
1253,
563,
16,
1000,
1885,
13,
288,
9506,
202,
11231,
5962,
12,
1885,
11272,
202,
202,
11231,
8867,
12,
563,
18,
588,
3447,
1225,
9334,
... | |
structures.addElement(mol); | structures.addElement(mol.clone()); | public void testIt() { String s = null; Vector structures = new Vector(); Molecule mol = null; Molecule molecule = MoleculeFactory.loadMolecule("data/a-pinene.mol"); RandomGenerator rg = new RandomGenerator(); rg.setMolecule(molecule); for (int f = 0; f < 1000; f++) { mol = rg.proposeStructure(); if ((double)f/(double)50 == f/50) { structures.addElement(mol); if (debug) { s = "BondCounts: "; for (int g = 0; g < mol.getAtomCount(); g++) { s += mol.getBondCount(mol.getAtomAt(g)) + " "; } System.out.println(s); s = "BondOrderSums: "; for (int g = 0; g < mol.getAtomCount(); g++) { s += mol.getBondOrderSum(mol.getAtomAt(g)) + " "; } System.out.println(s); s = "Bonds: "; for (int g = 0; g < mol.getBondCount(); g++) { s += mol.getBondAt(g).getOrder() + " "; } System.out.println(s); } } rg.acceptStructure(); }// structures.addElement((Molecule)molecule.clone()); assert(everythingOk(structures)); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/047add52eb9bac7efb1cd80d52e6bf8b3bbe2702/RandomStructureGeneratorTest.java/clean/org/openscience/cdk/test/RandomStructureGeneratorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
7193,
1435,
202,
95,
202,
202,
780,
272,
273,
446,
31,
202,
202,
5018,
12597,
273,
394,
5589,
5621,
1082,
202,
29669,
12629,
273,
446,
31,
202,
202,
29669,
13661,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
7193,
1435,
202,
95,
202,
202,
780,
272,
273,
446,
31,
202,
202,
5018,
12597,
273,
394,
5589,
5621,
1082,
202,
29669,
12629,
273,
446,
31,
202,
202,
29669,
13661,
2... |
return new EditorDelegate((DocumentRange)document, (EditorImpl)editor, injectedFile); | return new EditorDelegate((DocumentRange)document, (EditorImpl)editor, injectedFile); } } return editor; | public static Editor getEditorForInjectedLanguage(final Editor editor, PsiFile file) { if (editor == null) return null; if (file == null) return editor; int offset = editor.getCaretModel().getOffset(); PsiElement element = file.findElementAt(offset); PsiLanguageInjectionHost injectionHost = findInjectionHost(element); Pair<PsiElement,TextRange> injectedPsi = injectionHost == null ? null : injectionHost.getInjectedPsi(); if (injectedPsi == null) { return editor; } PsiFile injectedFile = injectedPsi.getFirst().getContainingFile(); Document document = PsiDocumentManager.getInstance(editor.getProject()).getDocument(injectedFile); return new EditorDelegate((DocumentRange)document, (EditorImpl)editor, injectedFile); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/f0f4a2bd46dc054a5d61fb1b3de76307a7026935/InjectedLanguageUtil.java/buggy/source/com/intellij/psi/impl/source/tree/InjectedLanguageUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
18451,
336,
6946,
1290,
382,
6059,
3779,
12,
6385,
18451,
4858,
16,
453,
7722,
812,
585,
13,
288,
565,
309,
261,
9177,
422,
446,
13,
327,
446,
31,
565,
309,
261,
768,
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,
760,
18451,
336,
6946,
1290,
382,
6059,
3779,
12,
6385,
18451,
4858,
16,
453,
7722,
812,
585,
13,
288,
565,
309,
261,
9177,
422,
446,
13,
327,
446,
31,
565,
309,
261,
768,
422,
... |
createContents(s); s.layout(true); folder.setBounds(s.getClientArea()); | createContents(windowShell); windowShell.layout(true); folder.setBounds(windowShell.getClientArea()); | public void create() { s = ((WorkbenchWindow)page.getWorkbenchWindow()).getDetachedWindowPool().allocateShell(shellListener); s.setData(this); s.setText(""); //$NON-NLS-1$ DragUtil.addDragTarget(s, this); hideViewsOnClose = true; if (bounds.isEmpty()) { Point center = Geometry.centerPoint(page.getWorkbenchWindow().getShell().getBounds()); Point size = new Point(300, 200); Point upperLeft = Geometry.subtract(center, Geometry.divide(size, 2)); bounds = Geometry.createRectangle(upperLeft, size); } getShell().setBounds(bounds); configureShell(s); createContents(s); s.layout(true); folder.setBounds(s.getClientArea()); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3953c753e106b88f0ab3def8b32ab1279f450733/DetachedWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/DetachedWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
1435,
288,
3639,
272,
273,
14015,
2421,
22144,
3829,
13,
2433,
18,
588,
2421,
22144,
3829,
1435,
2934,
588,
4986,
2004,
3829,
2864,
7675,
16247,
13220,
12,
10304,
2223,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
1435,
288,
3639,
272,
273,
14015,
2421,
22144,
3829,
13,
2433,
18,
588,
2421,
22144,
3829,
1435,
2934,
588,
4986,
2004,
3829,
2864,
7675,
16247,
13220,
12,
10304,
2223,
1769... |
Master(String filename) throws IOException { this(new File(filename), null); | Master(File _file, Name defaultOrigin) throws IOException { FileInputStream fis; file = _file; try { fis = new FileInputStream(file); } catch (FileNotFoundException e) { throw new IOException(e.toString()); } br = new BufferedReader(new InputStreamReader(fis)); origin = defaultOrigin; | Master(String filename) throws IOException { this(new File(filename), null);} | 4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/18e7b65aa58f298301e2681af547e73a81564dde/Master.java/buggy/org/xbill/DNS/Master.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
13453,
12,
780,
1544,
13,
1216,
1860,
288,
202,
2211,
12,
2704,
1387,
12,
3459,
3631,
446,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
13453,
12,
780,
1544,
13,
1216,
1860,
288,
202,
2211,
12,
2704,
1387,
12,
3459,
3631,
446,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
protected void createDescriptionLayout(FormToolkit toolkit, final ScrolledForm form) { final Section section = toolkit.createSection(form.getBody(), ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_DESCRIPTION); section.setExpanded(true); section.setLayout(new GridLayout()); GridData sectionData = new GridData(GridData.FILL_HORIZONTAL); // sectionData.grabExcessVerticalSpace = true; section.setLayoutData(sectionData); // Description Area final Composite descriptionComposite = toolkit.createComposite(section); //descriptionComposite.setBackground(new Color(descriptionComposite.getDisplay(), 123, 123, 123)); GridLayout descriptionLayout = new GridLayout(); descriptionLayout.numColumns = 1; descriptionComposite.setLayout(descriptionLayout); // descriptionComposite.setBackground(background); // GridData descriptionData = new GridData(GridData.FILL_BOTH); // descriptionData.widthHint = DESCRIPTION_WIDTH; // descriptionData.widthHint = DESCRIPTION_HEIGHT; // descriptionData.grabExcessVerticalSpace = true; // descriptionComposite.setLayoutData(descriptionData); section.setClient(descriptionComposite); TextViewer viewer = addRepositoryText(repository, descriptionComposite, bug.getDescription()); final StyledText styledText = viewer.getTextWidget(); styledText.addListener(SWT.FocusIn, new DescriptionListener()); styledText.setLayout(new GridLayout()); GridData styledTextData = new GridData(GridData.FILL_BOTH); styledTextData.widthHint = DESCRIPTION_WIDTH; // styledTextData.heightHint = DESCRIPTION_HEIGHT; styledTextData.grabExcessVerticalSpace = false; styledText.setLayoutData(styledTextData); descriptionComposite.addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) { // ignore } public void controlResized(ControlEvent e) { descriptionComposite.setSize(descriptionComposite.getSize().x, styledText.getSize().y + 10); } }); texts.add(textsindex, styledText); textHash.put(bug.getDescription(), styledText); textsindex++; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/83f02f1355686de7321e8c91ec8e1b42bccd9703/ExistingBugEditor.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6459,
2640,
3291,
3744,
12,
1204,
6364,
8691,
6738,
8691,
16,
6385,
1541,
25054,
1204,
687,
15329,
202,
202,
6385,
5285,
3464,
33,
6738,
8691,
18,
2640,
5285,
12,
687,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6459,
2640,
3291,
3744,
12,
1204,
6364,
8691,
6738,
8691,
16,
6385,
1541,
25054,
1204,
687,
15329,
202,
202,
6385,
5285,
3464,
33,
6738,
8691,
18,
2640,
5285,
12,
687,
18,
588,... | ||
ModelList<GlobalModelListener>.Iterator i = _listeners.getIterator(); | ListIterator i = _listeners.listIterator(); | private void _notifyListeners(EventNotifier n) { ModelList<GlobalModelListener>.Iterator i = _listeners.getIterator(); // Frustrating need to move iterator out of initial position before iterating. i.next(); while(!i.atEnd()) { n.notify(i.current()); i.next(); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/a937ccbbfe3e2271b14c781e19a341556df45efe/GlobalModel.java/clean/drjava/src/edu/rice/cs/drjava/model/GlobalModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
12336,
5583,
12,
1133,
14889,
290,
13,
288,
565,
987,
3198,
277,
273,
389,
16072,
18,
1098,
3198,
5621,
3639,
368,
478,
8010,
313,
1776,
1608,
358,
3635,
2775,
596,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
12336,
5583,
12,
1133,
14889,
290,
13,
288,
565,
987,
3198,
277,
273,
389,
16072,
18,
1098,
3198,
5621,
3639,
368,
478,
8010,
313,
1776,
1608,
358,
3635,
2775,
596,
434,
... |
public org.quickfix.field.CFICode getCFICode() throws FieldNotFound { org.quickfix.field.CFICode value = new org.quickfix.field.CFICode(); | public quickfix.field.CFICode getCFICode() throws FieldNotFound { quickfix.field.CFICode value = new quickfix.field.CFICode(); | public org.quickfix.field.CFICode getCFICode() throws FieldNotFound { org.quickfix.field.CFICode value = new org.quickfix.field.CFICode(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataIncrementalRefresh.java/clean/src/java/src/quickfix/fix43/MarketDataIncrementalRefresh.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
1927,
1653,
1085,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
460,
273,
394,
2358,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
1927,
1653,
1085,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
1653,
1085,
460,
273,
394,
2358,
18... |
if(subIterator != null && subIterator.hasNext()) return true; | if((subIterator != null) && subIterator.hasNext()) return true; | public boolean hasNext() { if(subIterator != null && subIterator.hasNext()) return true; if(subIterator != null) subIterator = null; return mapIterator.hasNext(); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SimpleFieldSet.java/clean/src/freenet/support/SimpleFieldSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
4564,
1435,
288,
1082,
202,
430,
12,
1717,
3198,
480,
446,
597,
720,
3198,
18,
5332,
2134,
10756,
327,
638,
31,
1082,
202,
430,
12,
1717,
3198,
480,
446,
13,
720,
3198,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
4564,
1435,
288,
1082,
202,
430,
12,
1717,
3198,
480,
446,
597,
720,
3198,
18,
5332,
2134,
10756,
327,
638,
31,
1082,
202,
430,
12,
1717,
3198,
480,
446,
13,
720,
3198,... |
public DatanodeDescriptor[] datanodeReport() { DatanodeDescriptor results[] = null; | public DatanodeInfo[] datanodeReport() { DatanodeInfo results[] = null; | public DatanodeDescriptor[] datanodeReport() { DatanodeDescriptor results[] = null; synchronized (heartbeats) { synchronized (datanodeMap) { results = new DatanodeDescriptor[datanodeMap.size()]; int i = 0; for (Iterator it = datanodeMap.values().iterator(); it.hasNext(); ) { DatanodeDescriptor cur = (DatanodeDescriptor) it.next(); results[i++] = cur; } } } return results; } | 51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/31110f7bc418d9db1c4939fac608b96725b3b0db/FSNamesystem.java/clean/src/java/org/apache/hadoop/dfs/FSNamesystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26739,
3187,
8526,
28710,
4820,
1435,
288,
3639,
26739,
3187,
1686,
8526,
273,
446,
31,
3639,
3852,
261,
580,
7646,
2323,
13,
288,
5411,
3852,
261,
3404,
14085,
863,
13,
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,
26739,
3187,
8526,
28710,
4820,
1435,
288,
3639,
26739,
3187,
1686,
8526,
273,
446,
31,
3639,
3852,
261,
580,
7646,
2323,
13,
288,
5411,
3852,
261,
3404,
14085,
863,
13,
288,
7734,
... |
if (serifStyle == 1) | if (serifStyle == 1) { | private final void readPCLT(FontFileReader in) throws IOException { TTFDirTabEntry dirTab = (TTFDirTabEntry)dirTabs.get("PCLT"); if (dirTab != null) { in.seek_set(dirTab.offset + 4 + 4 + 2); xHeight = in.readTTFUShort(); in.skip(2 * 2); capHeight = in.readTTFUShort(); in.skip(2 + 16 + 8 + 6 + 1 + 1); int serifStyle = in.readTTFUByte(); serifStyle = serifStyle >> 6; serifStyle = serifStyle & 3; if (serifStyle == 1) hasSerifs = false; else hasSerifs = true; } else { // Approximate capHeight from height of "H" // It's most unlikly that a font misses the PCLT table // This also assumes that psocriptnames exists ("H") // Should look it up int the cmap (that wouldn't help // for charsets without H anyway...) for (int i = 0; i < mtx_tab.length; i++) { if ("H".equals(mtx_tab[i].name)) capHeight = mtx_tab[i].bbox[3] - mtx_tab[i].bbox[1]; } } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2e2226dd0dd6733fdab0c36331723114a46eddd8/TTFFile.java/buggy/src/org/apache/fop/fonts/TTFFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
855,
3513,
12050,
12,
5711,
812,
2514,
316,
13,
1216,
1860,
288,
3639,
399,
17963,
1621,
5661,
1622,
1577,
5661,
273,
261,
1470,
42,
1621,
5661,
1622,
13,
1214,
17348,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
855,
3513,
12050,
12,
5711,
812,
2514,
316,
13,
1216,
1860,
288,
3639,
399,
17963,
1621,
5661,
1622,
1577,
5661,
273,
261,
1470,
42,
1621,
5661,
1622,
13,
1214,
17348,
18,... |
softLastPacketSendTime += minSoftDelay; | softLastPacketSendTimeNSec += minSoftDelayNSec; | private boolean delay(long startCycleTime) { // Get the current inter-packet delay long delay = throttle.getDelay(); while(true) { long now = System.currentTimeMillis(); long endTime = -1; boolean thenSend = true; // Synchronize on the static lock, and update synchronized(lastPacketSendTimeSync) { // Get the current time now = System.currentTimeMillis(); // Update time if necessary to avoid spurts if(hardLastPacketSendTime < (now - minPacketDelay)) hardLastPacketSendTime = now - minPacketDelay; // Wait until the next send window long newHardLastPacketSendTime = hardLastPacketSendTime + minPacketDelay; long earliestSendTime = startCycleTime + delay; if(earliestSendTime > newHardLastPacketSendTime) { // Don't clog up other senders! thenSend = false; endTime = earliestSendTime; } else { hardLastPacketSendTime = newHardLastPacketSendTime; endTime = hardLastPacketSendTime; // What about the soft limit? if(now - softLastPacketSendTime > minSoftDelay / 2) { softLastPacketSendTime = now - (minSoftDelay / 2); } softLastPacketSendTime += minSoftDelay; if(softLastPacketSendTime > hardLastPacketSendTime) { endTime = hardLastPacketSendTime = softLastPacketSendTime; } } } while(now < endTime) { synchronized(_senderThread) { if(_sendComplete) return true; try { _senderThread.wait(endTime - now); } catch (InterruptedException e) { // Ignore } } if(_sendComplete) return true; now = System.currentTimeMillis(); } if(thenSend) return false; } } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/BlockTransmitter.java/buggy/src/freenet/io/xfer/BlockTransmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
1250,
4624,
12,
5748,
787,
13279,
950,
13,
288,
6862,
9506,
202,
759,
968,
326,
783,
1554,
17,
11482,
4624,
9506,
202,
5748,
4624,
273,
18304,
18,
588,
6763,
5621,
6862,
9506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
1250,
4624,
12,
5748,
787,
13279,
950,
13,
288,
6862,
9506,
202,
759,
968,
326,
783,
1554,
17,
11482,
4624,
9506,
202,
5748,
4624,
273,
18304,
18,
588,
6763,
5621,
6862,
9506,... |
fis = null; File hwrng = new File("/dev/hwrng"); if(hwrng.exists() && hwrng.canRead()) { try { fis = new FileInputStream(hwrng); DataInputStream dis = new DataInputStream(fis); dis.readFully(buf); consumeBytes(buf); dis.readFully(buf); consumeBytes(buf); } catch (Throwable t) { Logger.normal(this, "Can't read /dev/hwrng even though exists and is readable: "+t, t); } finally { if(fis != null) try { fis.close(); } catch (IOException e) { } } } | public void seedFromExternalStuff() { // SecureRandom hopefully acts as a proxy for CAPI on Windows byte[] buf = sr.generateSeed(20); consumeBytes(buf); buf = sr.generateSeed(20); consumeBytes(buf); if(File.separatorChar == '/') { // Read some bits from /dev/random try { FileInputStream fis = new FileInputStream("/dev/random"); DataInputStream dis = new DataInputStream(fis); dis.readFully(buf); consumeBytes(buf); dis.readFully(buf); consumeBytes(buf); } catch (Throwable t) { Logger.normal(this, "Can't read /dev/random: "+t, t); } } // A few more bits consumeString(Long.toHexString(Runtime.getRuntime().freeMemory())); consumeString(Long.toHexString(Runtime.getRuntime().totalMemory())); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/d1a9d86da4267bdc8a52e5a50d5ea4a06accb11e/Yarrow.java/buggy/src/freenet/crypt/Yarrow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
74,
291,
273,
446,
31,
1387,
16139,
86,
3368,
273,
394,
1387,
2932,
19,
5206,
19,
20701,
86,
3368,
8863,
309,
12,
20701,
86,
3368,
18,
1808,
1435,
597,
16139,
86,
3368,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
74,
291,
273,
446,
31,
1387,
16139,
86,
3368,
273,
394,
1387,
2932,
19,
5206,
19,
20701,
86,
3368,
8863,
309,
12,
20701,
86,
3368,
18,
1808,
1435,
597,
16139,
86,
3368,
18,
... | |
DTDPlugin resourcePlugin = DTDPlugin.getInstance(); | DTDCorePlugin resourcePlugin = DTDCorePlugin.getInstance(); | public Image getImage() { DTDPlugin resourcePlugin = DTDPlugin.getInstance(); return resourcePlugin.getImage(DTDResource.ELEMENTREFICON); } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/425ffe7b68526a8574007dbae9d4ecfb097cff08/CMRepeatableNode.java/buggy/bundles/org.eclipse.wst.dtd.core/src/org/eclipse/wst/dtd/core/CMRepeatableNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3421,
10567,
1435,
288,
202,
202,
25728,
3773,
1058,
3773,
273,
10696,
40,
3773,
18,
588,
1442,
5621,
202,
202,
2463,
1058,
3773,
18,
588,
2040,
12,
25728,
1420,
18,
10976,
862,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3421,
10567,
1435,
288,
202,
202,
25728,
3773,
1058,
3773,
273,
10696,
40,
3773,
18,
588,
1442,
5621,
202,
202,
2463,
1058,
3773,
18,
588,
2040,
12,
25728,
1420,
18,
10976,
862,... |
return RubyFixnum.newFixnum(getRuntime(), pid); | return getRuntime().newFixnum(pid); | public IRubyObject pid() { int pid = handler.pid(); if (pid == -1) { return getRuntime().getNil(); } return RubyFixnum.newFixnum(getRuntime(), pid); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/clean/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
4231,
1435,
288,
3639,
509,
4231,
273,
1838,
18,
6610,
5621,
7734,
309,
261,
6610,
422,
300,
21,
13,
288,
5411,
327,
18814,
7675,
588,
12616,
5621,
3639,
289,
773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
4231,
1435,
288,
3639,
509,
4231,
273,
1838,
18,
6610,
5621,
7734,
309,
261,
6610,
422,
300,
21,
13,
288,
5411,
327,
18814,
7675,
588,
12616,
5621,
3639,
289,
773... |
if((ch == '/' || ch == File.separatorChar) && getCaretPosition() == getDocument().getLength()) | if(ch > 0x20 && ch != 0x7f && ch != 0xff) | public void processKeyEvent(KeyEvent evt) { if(evt.getID() == KeyEvent.KEY_PRESSED) { String path = getText(); switch(evt.getKeyCode()) { case KeyEvent.VK_TAB: doComplete(path); break; case KeyEvent.VK_LEFT: if(getCaretPosition() == 0) browser.getBrowserView().getTable().processKeyEvent(evt); else super.processKeyEvent(evt); break; case KeyEvent.VK_RIGHT: if(getCaretPosition() == getDocument().getLength()) browser.getBrowserView().getTable().processKeyEvent(evt); else super.processKeyEvent(evt); break; case KeyEvent.VK_UP: case KeyEvent.VK_DOWN: case KeyEvent.VK_PAGE_UP: case KeyEvent.VK_PAGE_DOWN: browser.getBrowserView().getTable() .processKeyEvent(evt); break; case KeyEvent.VK_ENTER: browser.filesActivated( (evt.isShiftDown() ? VFSBrowser.M_OPEN_NEW_VIEW : VFSBrowser.M_OPEN),false); setText(null); evt.consume(); break; default: super.processKeyEvent(evt); break; } } else if(evt.getID() == KeyEvent.KEY_TYPED) { char ch = evt.getKeyChar(); if((ch == '/' || ch == File.separatorChar) && getCaretPosition() == getDocument().getLength()) { super.processKeyEvent(evt); String path = getText(); if(path.length() == 2 && path.charAt(0) == '-') { path = browser.getView().getBuffer() .getDirectory(); } else if(path.length() == 3 && path.startsWith("..")) { path = MiscUtilities.getParentOfPath( browser.getDirectory()); VFS vfs = VFSManager.getVFSForPath(path); if((vfs.getCapabilities() & VFS.LOW_LATENCY_CAP) != 0) { browser.setDirectory(path); VFSManager.waitForRequests(); setText(null); } } else if(!MiscUtilities.isAbsolutePath(path)) { VFSFile[] files = browser .getBrowserView() .getSelectedFiles(); if(files.length != 1 || files[0].getType() == VFSFile.FILE) { return; } path = files[0].getPath(); } else if(OperatingSystem.isDOSDerived() && path.length() == 3 && path.charAt(1) == ':') { browser.setDirectory(path); VFSManager.waitForRequests(); setText(null); } VFS vfs = VFSManager.getVFSForPath(path); if((vfs.getCapabilities() & VFS.LOW_LATENCY_CAP) != 0) { setText(null); browser.setDirectory(path); VFSManager.waitForRequests(); } else { if(path.endsWith("/") || path.endsWith(File.separator)) setText(path); else setText(path + vfs.getFileSeparator()); } } else if(ch > 0x20 && ch != 0x7f && ch != 0xff) { super.processKeyEvent(evt); String path = getText(); BrowserView view = browser.getBrowserView(); view.selectNone(); int mode = browser.getMode(); // fix for bug #765507 // we don't type complete in save dialog // boxes. Press TAB to do an explicit // complete view.getTable().doTypeSelect(path, mode == VFSBrowser .CHOOSE_DIRECTORY_DIALOG || mode == VFSBrowser .SAVE_DIALOG); } else super.processKeyEvent(evt); } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/8afbfb455d0495d3bf4025221c75a12fd4d19b62/VFSFileNameField.java/clean/org/gjt/sp/jedit/browser/VFSFileNameField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
430,
12,
73,
11734,
18,
588,
734,
1435,
422,
23737,
18,
3297,
67,
27388,
13,
202,
202,
95,
1082,
202,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
6324,
13,
202,
95,
202,
202,
430,
12,
73,
11734,
18,
588,
734,
1435,
422,
23737,
18,
3297,
67,
27388,
13,
202,
202,
95,
1082,
202,
780,
... |
if( data != null ) { String result[] = new String[data.size()]; for( int i = 0; i < data.size(); i++ ) { result[i] = null != data.elementAt( i ) ? data.elementAt( i ).toString() : null; } return result; } else { return null; } } | if( data != null ) { String result[] = new String[data.size()]; for( int i = 0; i < data.size(); i++ ) { result[i] = null != data.elementAt( i ) ? data.elementAt( i ).toString() : null; } return result; } else { return null; } } | public String[] sqlQuery( String sqlQuery ) { Vector data = new Vector(); DBConnect dbc = new DBConnect( m_conPool, sqlQuery ); dbc.getConnection(); dbc.createStatement(); data = dbc.executeQuery(); dbc.clearResultSet(); dbc.closeConnection(); dbc = null; if( data != null ) { String result[] = new String[data.size()]; for( int i = 0; i < data.size(); i++ ) { result[i] = null != data.elementAt( i ) ? data.elementAt( i ).toString() : null; } return result; } else { return null; } } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2b8ca505bb7abac1b4914c5928bf113f742f3bbb/IMCService.java/buggy/server/src/imcode/server/IMCService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
8526,
24451,
12,
514,
24451,
262,
288,
1377,
5589,
501,
273,
394,
5589,
5621,
1377,
2383,
5215,
9881,
273,
394,
2383,
5215,
12,
312,
67,
591,
2864,
16,
24451,
11272,
1377,
9881... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
8526,
24451,
12,
514,
24451,
262,
288,
1377,
5589,
501,
273,
394,
5589,
5621,
1377,
2383,
5215,
9881,
273,
394,
2383,
5215,
12,
312,
67,
591,
2864,
16,
24451,
11272,
1377,
9881... |
AST __t1527 = _t; | AST __t1528 = _t; | public final void io_phrase(AST _t) throws RecognitionException { AST io_phrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OSDIR: { AST __t1520 = _t; AST tmp1944_AST_in = (AST)_t; match(_t,OSDIR); _t = _t.getFirstChild(); AST tmp1945_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp1946_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOATTRLIST: { AST tmp1947_AST_in = (AST)_t; match(_t,NOATTRLIST); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1520; _t = _t.getNextSibling(); break; } case PRINTER: { AST __t1522 = _t; AST tmp1948_AST_in = (AST)_t; match(_t,PRINTER); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if (((_t.getType() >= LEXDATE && _t.getType() <= SYMMETRICENCRYPTIONALGORITHM))) { AST tmp1949_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t1522; _t = _t.getNextSibling(); break; } case TERMINAL: { AST tmp1950_AST_in = (AST)_t; match(_t,TERMINAL); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case APPEND: case BINARY: case COLLATE: case CONVERT: case ECHO: case FILENAME: case KEEPMESSAGES: case LANDSCAPE: case MAP: case NOCONVERT: case NOECHO: case NOMAP: case NUMCOPIES: case PAGESIZE_KW: case PAGED: case PORTRAIT: case UNBUFFERED: case VALUE: case LOBDIR: { { _loop1525: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: { valueexpression(_t); _t = _retTree; break; } case FILENAME: { AST tmp1951_AST_in = (AST)_t; match(_t,FILENAME); _t = _t.getNextSibling(); break; } default: { break _loop1525; } } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } { _loop1535: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1952_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case BINARY: { AST tmp1953_AST_in = (AST)_t; match(_t,BINARY); _t = _t.getNextSibling(); break; } case COLLATE: { AST tmp1954_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getNextSibling(); break; } case CONVERT: { AST __t1527 = _t; AST tmp1955_AST_in = (AST)_t; match(_t,CONVERT); _t = _t.getFirstChild(); { _loop1530: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==SOURCE||_t.getType()==TARGET)) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SOURCE: { AST tmp1956_AST_in = (AST)_t; match(_t,SOURCE); _t = _t.getNextSibling(); break; } case TARGET: { AST tmp1957_AST_in = (AST)_t; match(_t,TARGET); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } expression(_t); _t = _retTree; } else { break _loop1530; } } while (true); } _t = __t1527; _t = _t.getNextSibling(); break; } case LOBDIR: { AST __t1531 = _t; AST tmp1958_AST_in = (AST)_t; match(_t,LOBDIR); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1531; _t = _t.getNextSibling(); break; } case NOCONVERT: { AST tmp1959_AST_in = (AST)_t; match(_t,NOCONVERT); _t = _t.getNextSibling(); break; } case ECHO: { AST tmp1960_AST_in = (AST)_t; match(_t,ECHO); _t = _t.getNextSibling(); break; } case NOECHO: { AST tmp1961_AST_in = (AST)_t; match(_t,NOECHO); _t = _t.getNextSibling(); break; } case KEEPMESSAGES: { AST tmp1962_AST_in = (AST)_t; match(_t,KEEPMESSAGES); _t = _t.getNextSibling(); break; } case LANDSCAPE: { AST tmp1963_AST_in = (AST)_t; match(_t,LANDSCAPE); _t = _t.getNextSibling(); break; } case MAP: { AST __t1532 = _t; AST tmp1964_AST_in = (AST)_t; match(_t,MAP); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t1532; _t = _t.getNextSibling(); break; } case NOMAP: { AST tmp1965_AST_in = (AST)_t; match(_t,NOMAP); _t = _t.getNextSibling(); break; } case NUMCOPIES: { AST __t1533 = _t; AST tmp1966_AST_in = (AST)_t; match(_t,NUMCOPIES); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t1533; _t = _t.getNextSibling(); break; } case PAGED: { AST tmp1967_AST_in = (AST)_t; match(_t,PAGED); _t = _t.getNextSibling(); break; } case PAGESIZE_KW: { AST __t1534 = _t; AST tmp1968_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getFirstChild(); anyorvalue(_t); _t = _retTree; _t = __t1534; _t = _t.getNextSibling(); break; } case PORTRAIT: { AST tmp1969_AST_in = (AST)_t; match(_t,PORTRAIT); _t = _t.getNextSibling(); break; } case UNBUFFERED: { AST tmp1970_AST_in = (AST)_t; match(_t,UNBUFFERED); _t = _t.getNextSibling(); break; } default: { break _loop1535; } } } while (true); } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2527,
67,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2527,
67,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2527,
67,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2527,
67,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
... |
MessageId mid = new MessageId(SQLState.JDBC_METHOD_NOT_SUPPORTED_BY_SERVER); throw new SqlException(agent_.logWriter_, mid, method); | throw new SqlException(agent_.logWriter_, new MessageId(SQLState.JDBC_METHOD_NOT_SUPPORTED_BY_SERVER), method); | protected void checkServerJdbcVersionX(String method, int major, int minor) throws SqlException { if (serverJdbcMajorVersion < major || (serverJdbcMajorVersion == major && serverJdbcMinorVersion < minor)) { MessageId mid = new MessageId(SQLState.JDBC_METHOD_NOT_SUPPORTED_BY_SERVER); throw new SqlException(agent_.logWriter_, mid, method); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/5d2e2bd29eb5bd4f933f513976a0886c1988c89d/DatabaseMetaData.java/clean/java/client/org/apache/derby/client/am/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
866,
2081,
25316,
1444,
60,
12,
780,
707,
16,
509,
7888,
16,
509,
8439,
13,
3639,
1216,
8855,
503,
565,
288,
3639,
309,
261,
3567,
25316,
17581,
1444,
411,
7888,
747,
5411,
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,
4750,
918,
866,
2081,
25316,
1444,
60,
12,
780,
707,
16,
509,
7888,
16,
509,
8439,
13,
3639,
1216,
8855,
503,
565,
288,
3639,
309,
261,
3567,
25316,
17581,
1444,
411,
7888,
747,
5411,
2... |
os.writePUSH_Const(value); | if (value == null) { os.writePUSH_Const(null); } else { X86CompilerHelper helper = ec.getHelper(); Label l = new Label(Long.toString(labelCounter++)); helper.writePushStaticsEntry(l, value); } | void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case REGISTER: os.writePUSH(reg); break; case LOCAL: os.writePUSH(FP, offsetToFP); break; case CONSTANT: os.writePUSH_Const(value); break; case FREGISTER: //TODO notImplemented(); break; case STACK: //nothing to do break; } release(ec); kind = STACK; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2a282f38567e2acdd82476b7f1acc2e77ab8a37c/RefItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/RefItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1817,
12,
13476,
1042,
6557,
13,
288,
202,
202,
6385,
4115,
60,
5292,
1228,
1140,
273,
6557,
18,
588,
1228,
5621,
9506,
202,
9610,
261,
588,
5677,
10756,
288,
1082,
202,
3593,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1817,
12,
13476,
1042,
6557,
13,
288,
202,
202,
6385,
4115,
60,
5292,
1228,
1140,
273,
6557,
18,
588,
1228,
5621,
9506,
202,
9610,
261,
588,
5677,
10756,
288,
1082,
202,
3593,
... |
System.err.println( lhs.getDescrs() ); | public void testSimpleQuery() throws Exception { QueryDescr query = parseResource( "simple_query.drl" ).query(); assertNotNull( query ); assertEquals( "simple_query", query.getName() ); AndDescr lhs = query.getLhs(); assertNotNull( lhs ); assertEquals( 3, lhs.getDescrs().size() ); System.err.println( lhs.getDescrs() ); // Check first column ColumnDescr first = (ColumnDescr) lhs.getDescrs().get( 0 ); assertEquals( "foo3", first.getIdentifier() ); assertEquals( "Bar", first.getObjectType() ); assertEquals( 1, first.getDescrs().size() ); LiteralDescr constraint = (LiteralDescr) first.getDescrs().get( 0 ); assertNotNull( constraint ); assertEquals( "a", constraint.getFieldName() ); assertEquals( "==", constraint.getEvaluator() ); assertEquals( "3", constraint.getText() ); // Check second column ColumnDescr second = (ColumnDescr) lhs.getDescrs().get( 1 ); assertEquals( "foo4", second.getIdentifier() ); assertEquals( "Bar", second.getObjectType() ); assertEquals( 2, second.getDescrs().size() ); //check it has field bindings. FieldBindingDescr fieldBindingDescr = (FieldBindingDescr) second.getDescrs().get( 0 ); assertEquals( "a", fieldBindingDescr.getFieldName() ); assertEquals( "a4", fieldBindingDescr.getIdentifier() ); constraint = (LiteralDescr) second.getDescrs().get( 1 ); assertNotNull( constraint ); assertEquals( "a", constraint.getFieldName() ); assertEquals( "==", constraint.getEvaluator() ); assertEquals( "4", constraint.getText() ); } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParserTest.java/buggy/drools-compiler/src/test/java/org/drools/lang/RuleParserTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
1138,
1435,
1216,
1185,
288,
3639,
2770,
16198,
843,
273,
1109,
1420,
12,
315,
9647,
67,
2271,
18,
72,
1321,
6,
262,
18,
2271,
5621,
7734,
25395,
12,
843,
11272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
1138,
1435,
1216,
1185,
288,
3639,
2770,
16198,
843,
273,
1109,
1420,
12,
315,
9647,
67,
2271,
18,
72,
1321,
6,
262,
18,
2271,
5621,
7734,
25395,
12,
843,
11272,
... | |
m_factory.createExpression("One", m_indexMap), m_factory.createExpression("Two", m_indexMap), m_factory.createExpression("Two", m_indexMap), | m_factory.createExpression("One"), m_factory.createExpression("Two"), m_factory.createExpression("Two"), | public void testSum() throws Exception { final StatisticExpression[] expressions = { m_factory.createExpression("One", m_indexMap), m_factory.createExpression("Two", m_indexMap), m_factory.createExpression("Two", m_indexMap), }; final StatisticExpression expression = m_factory.createSum(expressions); myAssertEquals(5, expression); assert(!expression.isDouble()); myAssertEquals(2, m_factory.createExpression( "(+ One One)", m_indexMap)); myAssertEquals(4, m_factory.createExpression( "(+ One Two One)", m_indexMap)); myAssertEquals(5, m_factory.createExpression( "(+ One (+ One Two) One)", m_indexMap)); try { m_factory.createExpression("(+)", m_indexMap); fail("Expected a GrinderException"); } catch (GrinderException e) { } try { m_factory.createExpression("(+ One)", m_indexMap); fail("Expected a GrinderException"); } catch (GrinderException e) { } } | 7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/f6ec48cb584c89ee70191c9f07b174fc005e3bcc/TestStatisticExpressionFactory.java/clean/tests-src/net/grinder/statistics/TestStatisticExpressionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3495,
1435,
1216,
1185,
565,
288,
202,
6385,
8269,
5846,
2300,
8526,
8041,
273,
288,
202,
565,
312,
67,
6848,
18,
2640,
2300,
2932,
3335,
3113,
312,
67,
1615,
863,
3631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3495,
1435,
1216,
1185,
565,
288,
202,
6385,
8269,
5846,
2300,
8526,
8041,
273,
288,
202,
565,
312,
67,
6848,
18,
2640,
2300,
2932,
3335,
3113,
312,
67,
1615,
863,
3631,
... |
m_startLatch.release(); m_endLatch.release(); | startLatch.release(); endLatch.release(); | public void run() { if ( isTimedOut() ) { // In case of a time out, one releases the start and end latches // to prevent a dead-lock. m_startLatch.release(); m_endLatch.release(); return; } // Implementation note: the work listener is notified prior to release // the start lock. This behavior is intentional and seems to be the // more conservative. m_workListener.workStarted( new WorkEvent(this, WorkEvent.WORK_STARTED, m_adaptee, null)); m_startLatch.release(); try { m_adaptee.run(); m_workListener.workCompleted( new WorkEvent(this, WorkEvent.WORK_COMPLETED, m_adaptee, null)); } catch (Throwable e) { m_workException = new WorkCompletedException(e); m_workListener.workRejected( new WorkEvent(this, WorkEvent.WORK_REJECTED, m_adaptee, m_workException)); } finally { m_endLatch.release(); } } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/912b652cc2d9b3899a6b0bbb996aa54bb1847081/WorkerContext.java/clean/modules/core/src/java/org/apache/geronimo/connector/work/WorkerContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
309,
261,
353,
30416,
1435,
262,
288,
5411,
368,
657,
648,
434,
279,
813,
596,
16,
1245,
14824,
326,
787,
471,
679,
23313,
281,
5411,
368,
358,
5309,
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,
1086,
1435,
288,
3639,
309,
261,
353,
30416,
1435,
262,
288,
5411,
368,
657,
648,
434,
279,
813,
596,
16,
1245,
14824,
326,
787,
471,
679,
23313,
281,
5411,
368,
358,
5309,
2... |
for (int i = 0; i < fullDefinitions.length; i++) { if (fullDefinitions[i].isEnabled()) fullDefinitions[i].addListener(this); } | public void restoreListeners() { applyDecoratorsPreference(); for (int i = 0; i < fullDefinitions.length; i++) { //Add a listener if it is an enabled option if (fullDefinitions[i].isEnabled()) fullDefinitions[i].addListener(this); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b2c0d121f2f9e3ac06e606961ce1d10a1a76f37f/DecoratorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/DecoratorManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5217,
5583,
1435,
288,
202,
202,
9010,
7859,
3062,
9624,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1983,
7130,
18,
2469,
31,
277,
27245,
288,
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,
918,
5217,
5583,
1435,
288,
202,
202,
9010,
7859,
3062,
9624,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1983,
7130,
18,
2469,
31,
277,
27245,
288,
1082,
202... | |
bind.append (credentials); BEREncoder ctls = new BEREncoder (utf8); if (controls != null) | if (credentials != null) | public LDAPResult bind (String name, String mechanism, byte[] credentials, Control[] controls) throws IOException { int id = messageId++; boolean utf8 = (version == 3); BEREncoder bind = new BEREncoder (utf8); if (mechanism == null) { bind.append (version); bind.append (name); bind.append (credentials); // Request controls BEREncoder ctls = new BEREncoder (utf8); if (controls != null) { for (int i = 0; i < controls.length; i++) { ctls.append (controlSequence (controls[i], utf8), BERConstants.SEQUENCE); } } bind.append (ctls.toByteArray (), BERConstants.SEQUENCE); // Write request write (id, BIND_REQUEST, bind.toByteArray ()); // Read response BERDecoder response = read (id); BERDecoder resultSequence = response.parseSequence (BIND_RESPONSE); LDAPResult result = parseResult (resultSequence); if (resultSequence.available ()) { byte[] serverCreds = resultSequence.parseOctetString (); // TODO } // TODO response controls return result; } else { bind.append (version); bind.append (name); // TODO throw new UnsupportedOperationException ("TODO"); } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/41e6975880fcdac472b194b4b2c70b3ce9ad63b9/LDAPConnection.java/buggy/libraries/javalib/gnu/inet/ldap/LDAPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11916,
1253,
1993,
261,
780,
508,
16,
514,
12860,
16,
12900,
1160,
8526,
4448,
16,
8888,
8526,
11022,
13,
565,
1216,
1860,
225,
288,
565,
509,
612,
273,
19090,
9904,
31,
565,
1250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11916,
1253,
1993,
261,
780,
508,
16,
514,
12860,
16,
12900,
1160,
8526,
4448,
16,
8888,
8526,
11022,
13,
565,
1216,
1860,
225,
288,
565,
509,
612,
273,
19090,
9904,
31,
565,
1250,
... |
public Object clone() { | public Object clone() throws CloneNotSupportedException { | public Object clone() { Object clone = null; try { clone = super.clone(); } catch (Exception exception) { logger.error("Could not clone DebugAtom: " + exception.getMessage(), exception); logger.debug(exception); } return clone; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2b55a607674535cd8492e3539d8f3dce16fc3b92/DebugElectronContainer.java/buggy/src/org/openscience/cdk/debug/DebugElectronContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
13,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
13,
288,... |
public void storePatch (IPatch p, int bankNum, int patchNum) | public void storePatch (Patch p, int bankNum, int patchNum) | public void storePatch (IPatch p, int bankNum, int patchNum) { if (bankNum == 1 || bankNum == 2) JOptionPane.showMessageDialog(PatchEdit.getInstance(), "Cannot send to a preset bank", "Store Patch", JOptionPane.WARNING_MESSAGE ); else sendPatchWorker((Patch)p, bankNum); } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/8de9e9d107eb8c0487bbadf2f24d3a5cc9bc1add/AlesisA6MixBankDriver.java/buggy/JSynthLib/synthdrivers/AlesisA6/AlesisA6MixBankDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1707,
7332,
261,
7332,
293,
16,
509,
11218,
2578,
16,
509,
4729,
2578,
13,
225,
288,
565,
309,
261,
10546,
2578,
422,
404,
747,
11218,
2578,
422,
576,
13,
1377,
804,
1895,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1707,
7332,
261,
7332,
293,
16,
509,
11218,
2578,
16,
509,
4729,
2578,
13,
225,
288,
565,
309,
261,
10546,
2578,
422,
404,
747,
11218,
2578,
422,
576,
13,
1377,
804,
1895,
84... |
public ProxyFactory getFactory() {// System.out.println("Factory = " + proxyFactory.getClass().getName()); return proxyFactory; } | 6337 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6337/4bd30ab20d16723317a74f080f675973fc078557/ProxyTestCase.java/clean/proxytoys/test/com/thoughtworks/proxy/ProxyTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3886,
1733,
588,
1733,
1435,
95,
759,
3163,
18,
659,
18,
8222,
2932,
1733,
1546,
15,
5656,
1733,
18,
588,
797,
7675,
17994,
10663,
202,
202,
2463,
5656,
1733,
31,
202,
97,
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,
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,
3886,
1733,
588,
1733,
1435,
95,
759,
3163,
18,
659,
18,
8222,
2932,
1733,
1546,
15,
5656,
1733,
18,
588,
797,
7675,
17994,
10663,
202,
202,
2463,
5656,
1733,
31,
202,
97,
2,
... | ||
createDecoratorThread(); decoratorUpdateThread.start(); | DecorationScheduler(DecoratorManager manager) { decoratorManager = manager; // thread that calculates the decoration for a resource createDecoratorThread(); decoratorUpdateThread.start(); ResourcesPlugin.getWorkspace().addResourceChangeListener(this); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b2c0d121f2f9e3ac06e606961ce1d10a1a76f37f/DecorationScheduler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/DecorationScheduler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7859,
367,
11870,
12,
10361,
1318,
3301,
13,
288,
202,
202,
19142,
1318,
273,
3301,
31,
202,
202,
759,
2650,
716,
17264,
326,
29217,
364,
279,
1058,
202,
202,
2640,
10361,
3830,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7859,
367,
11870,
12,
10361,
1318,
3301,
13,
288,
202,
202,
19142,
1318,
273,
3301,
31,
202,
202,
759,
2650,
716,
17264,
326,
29217,
364,
279,
1058,
202,
202,
2640,
10361,
3830,
5621... | |
} else | } else | private void validateFeatures( ) throws CoreException { IPath installPath = PDEPlugin.getWorkspace( ).getRoot( ).getLocation( ); String lastSegment = installPath.lastSegment( ); boolean badStructure = lastSegment == null; if ( !badStructure ) { IPath featuresPath = installPath.removeLastSegments( 1 ).append( "features" ); badStructure = !lastSegment.equalsIgnoreCase( "plugins" ) || !featuresPath.toFile( ).exists( ); } if ( badStructure ) { throw new CoreException( LauncherUtils .createErrorStatus( DebugUtil .getResourceString( "WorkbenchLauncherConfigurationDelegate.badFeatureSetup" ) ) ); } else { ensureProductFilesExist( getProductPath( ) ); return; } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/3ff8c8c7dcc1456137e4ae046739e5dc4d3f729d/ReportLaunchConfigurationDelegate.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
8696,
12,
262,
1216,
30015,
202,
95,
202,
202,
45,
743,
3799,
743,
273,
453,
1639,
3773,
18,
588,
8241,
12,
262,
18,
588,
2375,
12,
262,
18,
588,
2735,
12,
11272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
8696,
12,
262,
1216,
30015,
202,
95,
202,
202,
45,
743,
3799,
743,
273,
453,
1639,
3773,
18,
588,
8241,
12,
262,
18,
588,
2375,
12,
262,
18,
588,
2735,
12,
11272... |
public Bucket decode(BucketFactory bf, int maxLength) throws CHKDecodeException, IOException { | public Bucket decode(BucketFactory bf, int maxLength, boolean dontCompress) throws CHKDecodeException, IOException { | public Bucket decode(BucketFactory bf, int maxLength) throws CHKDecodeException, IOException { // Overall hash already verified, so first job is to decrypt. if(key.cryptoAlgorithm != Key.ALGO_AES_PCFB_256_SHA256) throw new UnsupportedOperationException(); BlockCipher cipher; try { cipher = new Rijndael(256, 256); } catch (UnsupportedCipherException e) { // FIXME - log this properly throw new Error(e); } byte[] cryptoKey = key.cryptoKey; if(cryptoKey.length < Node.SYMMETRIC_KEY_LENGTH) throw new CHKDecodeException("Crypto key too short"); cipher.initialize(key.cryptoKey); PCFBMode pcfb = new PCFBMode(cipher); byte[] hbuf = new byte[headers.length-2]; System.arraycopy(headers, 2, hbuf, 0, headers.length-2); byte[] dbuf = new byte[data.length]; System.arraycopy(data, 0, dbuf, 0, data.length); // Decipher header first - functions as IV pcfb.blockDecipher(hbuf, 0, hbuf.length); pcfb.blockDecipher(dbuf, 0, dbuf.length); // Check: Decryption key == hash of data (not including header) MessageDigest md256; try { md256 = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e1) { // FIXME: log this properly? throw new Error(e1); } byte[] dkey = md256.digest(dbuf); if(!java.util.Arrays.equals(dkey, key.cryptoKey)) { throw new CHKDecodeException("Check failed: decrypt key == H(data)"); } // Check: IV == hash of decryption key byte[] predIV = md256.digest(dkey); // Extract the IV byte[] iv = new byte[32]; System.arraycopy(hbuf, 0, iv, 0, 32); if(!Arrays.equals(iv, predIV)) throw new CHKDecodeException("Check failed: Decrypted IV == H(decryption key)"); // Checks complete int size = ((hbuf[32] & 0xff) << 8) + (hbuf[33] & 0xff); if(size > 32768 || size < 0) throw new CHKDecodeException("Invalid size: "+size); byte[] output = new byte[size]; // No particular reason to check the padding, is there? System.arraycopy(dbuf, 0, output, 0, size); return Key.decompress(key.isCompressed(), output, bf, Math.min(maxLength, MAX_LENGTH_BEFORE_COMPRESSION), key.compressionAlgorithm, false); } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/453d4b996fb63d69f900accadc2e27f5ed795af0/ClientCHKBlock.java/buggy/src/freenet/keys/ClientCHKBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7408,
2495,
12,
4103,
1733,
16222,
16,
509,
13642,
16,
1250,
14046,
16552,
13,
1216,
6469,
47,
6615,
503,
16,
1860,
288,
3639,
368,
10752,
454,
1651,
1818,
13808,
16,
1427,
1122,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7408,
2495,
12,
4103,
1733,
16222,
16,
509,
13642,
16,
1250,
14046,
16552,
13,
1216,
6469,
47,
6615,
503,
16,
1860,
288,
3639,
368,
10752,
454,
1651,
1818,
13808,
16,
1427,
1122,
17... |
private static Node getParsedScript(IRuby runtime, Reader reader, String filename) { | private Node getParsedScript(IRuby runtime, Reader reader, String filename) { | private static Node getParsedScript(IRuby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.isAssumePrinting()) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.isAssumeLoop()) { result = new ParserSupport().appendWhileLoopToBlock(result, commandline.isProcessLineEnds(), commandline.isSplit()); } return result; } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/b4a189a27604d62c317938f16a124fb9dab1e94a/Main.java/clean/src/org/jruby/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
25406,
3651,
12,
7937,
10340,
3099,
16,
5393,
2949,
16,
514,
1544,
13,
288,
3639,
2029,
563,
273,
3099,
18,
2670,
12,
10530,
16,
1544,
1769,
3639,
309,
261,
3076,
1369,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
25406,
3651,
12,
7937,
10340,
3099,
16,
5393,
2949,
16,
514,
1544,
13,
288,
3639,
2029,
563,
273,
3099,
18,
2670,
12,
10530,
16,
1544,
1769,
3639,
309,
261,
3076,
1369,
18,
... |
if (fields.hasNext()) { print(","); } println(); argnr++; } println(" );"); println(" }"); println(" else {"); println(" return null;"); println(" }"); println(" }"); println(); } | if (fields.hasNext()) { print(","); } println(); argnr++; } println(" );"); println(" }"); println(" else {"); println(" return null;"); println(" }"); println(" }"); println(); } | private void genAltFromTerm(Type type, Alternative alt) { JavaGenerationParameters params = getJavaGenerationParameters(); String returnType = TypeGenerator.qualifiedClassName(params, type); String methodName = concatTypeAlt(type, alt) + "FromTerm"; println(" protected " + returnType + " " + methodName + "(aterm.ATerm trm) {"); println( " java.util.List children = trm.match(" + patternVariable(type, alt) + ");"); println(); println(" if (children != null) {"); methodName = "make" + concatTypeAlt(type, alt); println(" return " + methodName + "("); Iterator fields = type.altFieldIterator(alt.getId()); int argnr = 0; while (fields.hasNext()) { Field field = (Field) fields.next(); print(" " + buildFieldMatchResultRetriever(argnr, field)); if (fields.hasNext()) { print(","); } println(); argnr++; } println(" );"); println(" }"); // endif println(" else {"); println(" return null;"); println(" }"); println(" }"); println(); } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/dfc73e34bff6e386ff1bb2959e83fe3849358bb0/FactoryGenerator.java/buggy/apigen/src/apigen/gen/java/FactoryGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
10655,
1265,
4065,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
3639,
5110,
13842,
2402,
859,
273,
18911,
13842,
2402,
5621,
3639,
514,
9424,
273,
1412,
3908,
18,
19724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
10655,
1265,
4065,
12,
559,
618,
16,
21498,
1535,
3770,
13,
288,
3639,
5110,
13842,
2402,
859,
273,
18911,
13842,
2402,
5621,
3639,
514,
9424,
273,
1412,
3908,
18,
19724,
... |
else { SoarWorkingMemoryReader.read(WorkingMemory,r, null); } r.close(); restoreStateIds(); } | private void openVersionOne(FileReader fr,String parentPath) throws IOException, NumberFormatException { String relPathToDM = ReaderUtils.getWord(fr); File dataMapFile = new File(parentPath + relPathToDM); File commentFile = new File(dataMapFile.getParent() + File.separator + "comment.dm"); readVersionOne(fr); OperatorRootNode root = (OperatorRootNode)getModel().getRoot(); root.setFullPath(parentPath); fr.close(); Reader r = new FileReader(dataMapFile); // If a comment file exists, then make sure that it gets read in by the reader. if( commentFile.exists() ) { Reader rComment = new FileReader(commentFile); SoarWorkingMemoryReader.read(WorkingMemory,r, rComment); rComment.close(); } else { SoarWorkingMemoryReader.read(WorkingMemory,r, null); } r.close(); restoreStateIds(); } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/a346ed7f83eb1c70b9abfdfce06d4248fd83a1ab/OperatorWindow.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/operatorwindow/OperatorWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1696,
1444,
3335,
12,
812,
2514,
3812,
16,
780,
17743,
13,
1216,
1860,
16,
12100,
288,
202,
202,
780,
20282,
774,
16125,
273,
5393,
1989,
18,
588,
3944,
12,
4840,
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,
225,
202,
1152,
918,
1696,
1444,
3335,
12,
812,
2514,
3812,
16,
780,
17743,
13,
1216,
1860,
16,
12100,
288,
202,
202,
780,
20282,
774,
16125,
273,
5393,
1989,
18,
588,
3944,
12,
4840,
1769,
... | |
PairWithPosition declPos = (PairWithPosition) pair; decl.setFile(declPos.getFile()); decl.setLine(declPos.getLine(), declPos.getColumn()); | PairWithPosition expPos = (PairWithPosition) pair; exp.setFile(expPos.getFile()); exp.setLine(expPos.getLine(), expPos.getColumn()); | public static void setLine(Declaration decl, Object pair) { if (pair instanceof PairWithPosition) { PairWithPosition declPos = (PairWithPosition) pair; decl.setFile(declPos.getFile()); decl.setLine(declPos.getLine(), declPos.getColumn()); } } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/2075691bad46dca456093b5fad8b07ef64eed4e8/Translator.java/buggy/kawa/lang/Translator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
26482,
12,
6094,
3496,
16,
1033,
3082,
13,
225,
288,
565,
309,
261,
6017,
1276,
8599,
1190,
2555,
13,
1377,
288,
202,
4154,
1190,
2555,
3496,
1616,
273,
261,
4154,
1190,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26482,
12,
6094,
3496,
16,
1033,
3082,
13,
225,
288,
565,
309,
261,
6017,
1276,
8599,
1190,
2555,
13,
1377,
288,
202,
4154,
1190,
2555,
3496,
1616,
273,
261,
4154,
1190,
... |
if (!opened) ErrLog.msg(ErrLog.error, "LocoBufferAdapter", "getInputStream", "called before load(), stream not available"); | if (!opened) log.error("getInputStream called before load(), stream not available"); | public DataInputStream getInputStream() { if (!opened) ErrLog.msg(ErrLog.error, "LocoBufferAdapter", "getInputStream", "called before load(), stream not available"); try { return new DataInputStream(activeSerialPort.getInputStream()); } catch (java.io.IOException e) { ErrLog.msg(ErrLog.error, "LocoBufferAdapter", "getInputStream", "exception: "+e); } return null; } | 2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/9d6329e2cb81c2971f77098c4c2ad05a887cfd51/LocoBufferAdapter.java/clean/jmrix/loconet/locobuffer/LocoBufferAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29382,
14424,
1435,
288,
202,
202,
430,
16051,
25304,
13,
1926,
1343,
18,
3576,
12,
2524,
1343,
18,
1636,
16,
315,
1333,
83,
1892,
4216,
3113,
315,
588,
4348,
3113,
315,
11777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29382,
14424,
1435,
288,
202,
202,
430,
16051,
25304,
13,
1926,
1343,
18,
3576,
12,
2524,
1343,
18,
1636,
16,
315,
1333,
83,
1892,
4216,
3113,
315,
588,
4348,
3113,
315,
11777,
... |
Method setMethod = null; String setter = "set".concat(nameComponent); if (ht.containsKey(setter)) { | NativeJavaMethod njmSet = null; MemberBox setter = null; String setterName = "set".concat(nameComponent); if (ht.containsKey(setterName)) { | private void makeBeanProperties(Scriptable scope, boolean isStatic) { Hashtable ht = isStatic ? staticMembers : members; Hashtable toAdd = new Hashtable(); // Now, For each member, make "bean" properties. for (Enumeration e = ht.keys(); e.hasMoreElements(); ) { // Is this a getter? String name = (String) e.nextElement(); boolean memberIsGetMethod = name.startsWith("get"); boolean memberIsIsMethod = name.startsWith("is"); if (memberIsGetMethod || memberIsIsMethod) { // Double check name component. String nameComponent = name.substring(memberIsGetMethod ? 3 : 2); if (nameComponent.length() == 0) continue; // Make the bean property name. String beanPropertyName = nameComponent; char ch0 = nameComponent.charAt(0); if (Character.isUpperCase(ch0)) { if (nameComponent.length() == 1) { beanPropertyName = nameComponent.toLowerCase(); } else { char ch1 = nameComponent.charAt(1); if (!Character.isUpperCase(ch1)) { beanPropertyName = Character.toLowerCase(ch0) +nameComponent.substring(1); } } } // If we already have a member by this name, don't do this // property. if (ht.containsKey(beanPropertyName)) continue; // Get the method by this name. Object method = ht.get(name); if (!(method instanceof NativeJavaMethod)) continue; NativeJavaMethod getJavaMethod = (NativeJavaMethod) method; Method getMethod = extractGetMethod(getJavaMethod, isStatic); if (getMethod != null) { // We have a getter. Now, do we have a setter? Method setMethod = null; String setter = "set".concat(nameComponent); if (ht.containsKey(setter)) { // Is this value a method? method = ht.get(setter); if (method instanceof NativeJavaMethod) { NativeJavaMethod njm = (NativeJavaMethod) method; Class type = getMethod.getReturnType(); setMethod = extractSetMethod(type, njm, isStatic); } } // Make the property. BeanProperty bp = new BeanProperty(getMethod, setMethod); toAdd.put(beanPropertyName, bp); } } } // Add the new bean properties. for (Enumeration e = toAdd.keys(); e.hasMoreElements();) { String key = (String) e.nextElement(); Object value = toAdd.get(key); ht.put(key, value); } } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/1b620bbe9ad9c387f8202d7df9e1281bbd4ef637/JavaMembers.java/clean/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
3381,
2297,
12,
3651,
429,
2146,
16,
1250,
16116,
13,
565,
288,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
18559,
25607,
273,
394,
18559,
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,
1221,
3381,
2297,
12,
3651,
429,
2146,
16,
1250,
16116,
13,
565,
288,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
18559,
25607,
273,
394,
18559,
5621,
... |
if ( inputState.guessing==0 ) { newExpression_AST = (AST)currentAST.root; } | newExpression_AST = (AST)currentAST.root; | public final void newExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST newExpression_AST = null; boolean zz; /*ignored*/ AST tmp331_AST = null; if (inputState.guessing==0) { tmp331_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp331_AST); } match(LITERAL_new); { switch ( LA(1)) { case LT: { typeArguments(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } break; } case IDENT: case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } type(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } { switch ( LA(1)) { case LPAREN: { match(LPAREN); zz=argList(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } match(RPAREN); break; } case LBRACK: { newArrayDeclarator(); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { newExpression_AST = (AST)currentAST.root; } returnAST = newExpression_AST; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
394,
2300,
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,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
394,
2300,
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,
90... |
al.sourcei(source.getInt(4*1), AL.LOOPING, bLooping1); | al.sourcei(source.get(1), AL.LOOPING, bLooping1); | protected void i_LoopingTest() { int error; ByteBuffer source = ByteBuffer.allocateDirect(4*2); source.order(ByteOrder.nativeOrder()); int ch = -1; int bLooping0 = AL.FALSE; int bLooping1 = AL.FALSE; ByteBuffer source0Pos = ByteBuffer.allocateDirect(12); source0Pos.order(ByteOrder.nativeOrder()); source0Pos.putFloat(-2.0f); source0Pos.putFloat(0.0f); source0Pos.putFloat(-2.0f); ByteBuffer source0Vel = ByteBuffer.allocateDirect(12); source0Vel.order(ByteOrder.nativeOrder()); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); ByteBuffer source1Pos = ByteBuffer.allocateDirect(12); source1Pos.order(ByteOrder.nativeOrder()); source1Pos.putFloat(2.0f); source1Pos.putFloat(0.0f); source1Pos.putFloat(-2.0f); ByteBuffer source1Vel = ByteBuffer.allocateDirect(12); source1Vel.order(ByteOrder.nativeOrder()); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); // Clear Error Code al.getError(); al.genSources(2,Sys.getDirectBufferAddress(source)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alGenSources 1 : ", error); return; } al.sourcef(source.getInt(4*0),AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_PITCH : \n", error); } al.sourcef(source.getInt(4*0),AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_GAIN : \n", error); } al.sourcefv(source.getInt(4*0),AL.POSITION,Sys.getDirectBufferAddress(source0Pos)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_POSITION : \n", error); } al.sourcefv(source.getInt(4*0),AL.VELOCITY,Sys.getDirectBufferAddress(source0Vel)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_VELOCITY : \n", error); } al.sourcei(source.getInt(4*0),AL.BUFFER, buffers.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 0 AL_BUFFER buffer 0 : \n", error); } al.sourcei(source.getInt(4*0),AL.LOOPING,AL.FALSE); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 0 AL_LOOPING false : \n", error); } al.sourcef(source.getInt(4*1),AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 1 AL_PITCH : \n", error); } al.sourcef(source.getInt(4*1),AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 1 AL_GAIN : \n", error); } al.sourcefv(source.getInt(4*1),AL.POSITION,Sys.getDirectBufferAddress(source1Pos)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 1 AL_POSITION : \n", error); } al.sourcefv(source.getInt(4*1),AL.VELOCITY,Sys.getDirectBufferAddress(source1Vel)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 1 AL_VELOCITY : \n", error); } al.sourcei(source.getInt(4*1),AL.BUFFER, buffers.getInt(4*1)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 1 AL_BUFFER buffer 1 : \n", error); } al.sourcei(source.getInt(4*1),AL.LOOPING,AL.FALSE); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 1 AL_LOOPING false: \n", error); } System.out.print("Looping Test\n"); System.out.print("Press '1' to play source 0 once (single shot)\n"); System.out.print("Press '2' to toggle looping on source 0\n"); System.out.print("Press '3' to play source 1 once (single shot)\n"); System.out.print("Press '4' to toggle looping on source 1\n"); System.out.print("Press 'Q' to quit\n"); System.out.print("\nSource 0 : Not looping Source 1 : Not looping\n"); do { try { ch = System.in.read(); } catch (IOException ioe) { } switch (ch) { case '1': al.sourcePlay(source.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 0 : ", error); break; case '2': if (bLooping0 == AL.FALSE) { bLooping0 = AL.TRUE; if (bLooping1 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Looping \n"); else System.out.print("Source 0 : Looping Source 1 : Not looping\n"); } else { bLooping0 = AL.FALSE; if (bLooping1 == AL.TRUE) System.out.print("Source 0 : Not looping Source 1 : Looping \n"); else System.out.print("Source 0 : Not looping Source 1 : Not looping\n"); } al.sourcei(source.getInt(4*0), AL.LOOPING, bLooping0); break; case '3': al.sourcePlay(source.getInt(4*1)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 1 : ", error); break; case '4': if (bLooping1 == AL.FALSE) { bLooping1 = AL.TRUE; if (bLooping0 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Looping \n"); else System.out.print("Source 0 : Not looping Source 1 : Looping \n"); } else { bLooping1 = AL.FALSE; if (bLooping0 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Not looping\n"); else System.out.print("Source 0 : Not looping Source 1 : Not looping\n"); } al.sourcei(source.getInt(4*1), AL.LOOPING, bLooping1); break; } } while (ch != 'Q'); System.out.print("\n"); // Release resources al.sourceStop(source.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop source 1 : ", error); al.deleteSources(2, Sys.getDirectBufferAddress(source)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alDeleteSources 1 : ", error); return; } | 5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/c18e8bd28afc8401f80a918520500157aa5f199d/ALTest.java/buggy/src/java/org/lwjgl/openal/test/ALTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
277,
67,
6452,
310,
4709,
1435,
288,
3639,
509,
202,
1636,
31,
3639,
7400,
1084,
273,
7400,
18,
16247,
5368,
12,
24,
14,
22,
1769,
3639,
1084,
18,
1019,
12,
3216,
2448,
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,
4750,
918,
277,
67,
6452,
310,
4709,
1435,
288,
3639,
509,
202,
1636,
31,
3639,
7400,
1084,
273,
7400,
18,
16247,
5368,
12,
24,
14,
22,
1769,
3639,
1084,
18,
1019,
12,
3216,
2448,
18,
... |
pinger_thread=null; | void stopPingerThread() { synchronized(pinger_mutex) { if(pinger_thread != null && pinger_thread.isAlive()) { regular_sock_close=true; sendPingTermination(); // PATCH by Bruce Schuchardt (http://jira.jboss.com/jira/browse/JGRP-246) teardownPingSocket(); } pinger_thread=null; } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/1912e2830a8ac6bfada17b35cb03e8f3e0a25e3d/FD_SOCK.java/clean/src/org/jgroups/protocols/FD_SOCK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2132,
52,
6658,
3830,
1435,
288,
3639,
3852,
12,
1382,
264,
67,
29946,
13,
288,
5411,
309,
12,
1382,
264,
67,
5930,
480,
446,
597,
293,
6658,
67,
5930,
18,
291,
10608,
10756,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2132,
52,
6658,
3830,
1435,
288,
3639,
3852,
12,
1382,
264,
67,
29946,
13,
288,
5411,
309,
12,
1382,
264,
67,
5930,
480,
446,
597,
293,
6658,
67,
5930,
18,
291,
10608,
10756,
288,
... | |
public void setColumnType(String columnType){ this.columnType=columnType; } | public void setColumnType(String columnType) { this.columnType = columnType; } | public void setColumnType(String columnType){ this.columnType=columnType; } | 45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/5796e437b80fb7f22b5ccf1344560fd620213b96/Column.java/buggy/mifos/src/org/mifos/framework/components/customTableTag/Column.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
25918,
559,
12,
780,
27280,
15329,
565,
333,
18,
2827,
559,
33,
2827,
559,
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,
... | [
1,
1,
1,
1,
1,
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,
282,
1071,
918,
25918,
559,
12,
780,
27280,
15329,
565,
333,
18,
2827,
559,
33,
2827,
559,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (buddyResult == null) return result; if (result == null) return buddyResult; Vector compoundResults = new Vector(); while (result.hasMoreElements()) compoundResults.add(result.nextElement()); while (buddyResult.hasMoreElements()) { Object url = buddyResult.nextElement(); if (!compoundResults.contains(url)) compoundResults.add(url); } result = compoundResults.elements(); | result = compoundEnumerations(result, buddyResult); | public Enumeration findResources(String name) throws IOException { // do not delegate to parent because ClassLoader#getResources already did and it is final!! if ((name.length() > 1) && (name.charAt(0) == '/')) /* if name has a leading slash */ name = name.substring(1); /* remove leading slash before search */ String pkgName = getResourcePackageName(name); Enumeration result = null; // start at step 3 because of the comment above about ClassLoader#getResources // 3) search the imported packages PackageSource source = findImportedSource(pkgName); if (source != null) // 3) found import source terminate search at the source return source.getResources(name); // 4) search the required bundles source = findRequiredSource(pkgName); if (source != null) // 4) attempt to load from source but continue on failure result = source.getResources(name); // 5) search the local bundle if (result == null) result = findLocalResources(name); else { // compound the required source results with the local ones Enumeration localResults = findLocalResources(name); if (localResults != null) { Vector compoundResults = new Vector(); while (result.hasMoreElements()) compoundResults.add(result.nextElement()); while (localResults.hasMoreElements()) compoundResults.add(localResults.nextElement()); result = compoundResults.elements(); } } // 6) attempt to find a dynamic import source; only do this if a required source was not found if (result == null && source == null) { source = findDynamicSource(pkgName); if (source != null) return source.getResources(name); } if (policy != null) { Enumeration buddyResult = policy.doBuddyResourcesLoading(name); if (buddyResult == null) return result; if (result == null) return buddyResult; Vector compoundResults = new Vector(); while (result.hasMoreElements()) compoundResults.add(result.nextElement()); while (buddyResult.hasMoreElements()) { Object url = buddyResult.nextElement(); if (!compoundResults.contains(url)) //don't add duplicates compoundResults.add(url); } result = compoundResults.elements(); } return result; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/d77221bfb21ebb06d5c15d078ab768d957d3f222/BundleLoader.java/clean/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13864,
1104,
3805,
12,
780,
508,
13,
1216,
1860,
288,
202,
202,
759,
741,
486,
7152,
358,
982,
2724,
9403,
7,
588,
3805,
1818,
5061,
471,
518,
353,
727,
8548,
202,
202,
430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13864,
1104,
3805,
12,
780,
508,
13,
1216,
1860,
288,
202,
202,
759,
741,
486,
7152,
358,
982,
2724,
9403,
7,
588,
3805,
1818,
5061,
471,
518,
353,
727,
8548,
202,
202,
430,
... |
retExpr = expr(ts, source, false); | retExpr = expr(ts, false); | private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case TokenStream.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case TokenStream.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case TokenStream.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case TokenStream.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case TokenStream.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case TokenStream.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case TokenStream.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case TokenStream.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case TokenStream.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case TokenStream.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case TokenStream.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case TokenStream.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case TokenStream.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case TokenStream.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case TokenStream.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case TokenStream.ERROR: // Fall thru, to have a node for error recovery to work on case TokenStream.EOL: case TokenStream.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... |
public org.quickfix.field.NestedPartyID getNestedPartyID() throws FieldNotFound { org.quickfix.field.NestedPartyID value = new org.quickfix.field.NestedPartyID(); | public quickfix.field.NestedPartyID getNestedPartyID() throws FieldNotFound { quickfix.field.NestedPartyID value = new quickfix.field.NestedPartyID(); | public org.quickfix.field.NestedPartyID getNestedPartyID() throws FieldNotFound { org.quickfix.field.NestedPartyID value = new org.quickfix.field.NestedPartyID(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/clean/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
336,
8649,
17619,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
460,
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,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
336,
8649,
17619,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
734,
460,
273,
394,
... |
public static DAVResponse getBaselineProperties(DAVConnection connection, String path, long revision, DAVElement[] elements) throws SVNException { DAVResponse properties = null; String loppedPath = ""; while(true) { try { properties = getResourceProperties(connection, path, null, DAVElement.STARTING_PROPERTIES, false); break; } catch (SVNException e) { // } loppedPath = SVNPathUtil.append(SVNPathUtil.tail(path), loppedPath); path = SVNPathUtil.removeTail(path); if ("".equals(path)) { break; } } if (properties == null) { throw new SVNException("resource " + path + " is not part of repository"); } String vcc = (String) properties.getPropertyValue(DAVElement.VERSION_CONTROLLED_CONFIGURATION); //vcc = PathUtil.encode(vcc); String baselineRelativePath = (String) properties.getPropertyValue(DAVElement.BASELINE_RELATIVE_PATH); if (vcc == null) { throw new SVNException("important properties are missing for " + path); } if (baselineRelativePath == null) { baselineRelativePath = ""; } baselineRelativePath = SVNEncodingUtil.uriEncode(baselineRelativePath); baselineRelativePath = SVNPathUtil.append(baselineRelativePath, loppedPath); String label = null; if (revision < 0) { // get vcc's "checked-in" vcc = (String) getPropertyValue(connection, vcc, null, DAVElement.CHECKED_IN); } else { label = Long.toString(revision); } DAVResponse result = getResourceProperties(connection, vcc, label, elements, false); result.setHref(baselineRelativePath); return result; } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/3a9d1d01cd00e508975d16ec2543d826c361f9bc/DAVUtil.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/DAVUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
17735,
1064,
588,
16635,
2297,
12,
17735,
1952,
4071,
16,
780,
803,
16,
5748,
13057,
16,
17735,
1046,
8526,
6274,
13,
15069,
23927,
50,
503,
95,
17735,
1064,
4738,
33,
2011,
31,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
17735,
1064,
588,
16635,
2297,
12,
17735,
1952,
4071,
16,
780,
803,
16,
5748,
13057,
16,
17735,
1046,
8526,
6274,
13,
15069,
23927,
50,
503,
95,
17735,
1064,
4738,
33,
2011,
31,
78... | ||
ParenthesesUtils.OR_PRECEDENCE){ | ParenthesesUtils.OR_PRECEDENCE){ | private static String convertLeafExpression(PsiExpression condition){ if(BoolUtils.isNegation(condition)){ final PsiExpression negated = BoolUtils.getNegated(condition); if(ParenthesesUtils.getPrecendence(negated) > ParenthesesUtils.OR_PRECEDENCE){ return '(' + negated.getText() + ')'; } return negated.getText(); } else if(ComparisonUtils.isComparison(condition)){ final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) condition; final PsiJavaToken sign = binaryExpression.getOperationSign(); final String operator = sign.getText(); final String negatedComparison = ComparisonUtils.getNegatedComparison(operator); final PsiExpression lhs = binaryExpression.getLOperand(); final PsiExpression rhs = binaryExpression.getROperand(); return lhs.getText() + negatedComparison + rhs.getText(); } else if(ParenthesesUtils.getPrecendence(condition) > ParenthesesUtils.PREFIX_PRECEDENCE){ return "!(" + condition.getText() + ')'; } else{ return '!' + condition.getText(); } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3837c95856454e21e9059f3aa91174a1e2c65526/DemorgansIntention.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/bool/DemorgansIntention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1765,
9858,
2300,
12,
52,
7722,
2300,
2269,
15329,
3639,
309,
12,
7464,
1989,
18,
291,
14337,
367,
12,
4175,
3719,
95,
5411,
727,
453,
7722,
2300,
24765,
273,
9166,
1989,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1765,
9858,
2300,
12,
52,
7722,
2300,
2269,
15329,
3639,
309,
12,
7464,
1989,
18,
291,
14337,
367,
12,
4175,
3719,
95,
5411,
727,
453,
7722,
2300,
24765,
273,
9166,
1989,
... |
"", null); | null, "", null); | protected IASTExpression postfixExpression( IASTScope scope ) throws Backtrack { IASTExpression firstExpression = null; boolean isTemplate = false; switch (LT(1)) { case IToken.t_typename : consume(); //TODO: the rest of this break; // simple-type-specifier ( assignment-expression , .. ) case IToken.t_char : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR); break; case IToken.t_wchar_t : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART); break; case IToken.t_bool : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL); break; case IToken.t_short : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT); break; case IToken.t_int : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT); break; case IToken.t_long : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG); break; case IToken.t_signed : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED); break; case IToken.t_unsigned : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED); break; case IToken.t_float : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT); break; case IToken.t_double : firstExpression = simpleTypeConstructorExpression( scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE); break; case IToken.t_dynamic_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_DYNAMIC_CAST); break; case IToken.t_static_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_STATIC_CAST); break; case IToken.t_reinterpret_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_REINTERPRET_CAST); break; case IToken.t_const_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_CONST_CAST); break; case IToken.t_typeid : consume(); consume(IToken.tLPAREN); boolean isTypeId = true; IASTExpression lhs = null; ITokenDuple typeId = null; try { typeId = typeId(); } catch (Backtrack b) { isTypeId = false; lhs = expression(scope); } consume(IToken.tRPAREN); try { firstExpression = astFactory.createExpression( scope, (isTypeId ? IASTExpression.Kind.POSTFIX_TYPEID_TYPEID : IASTExpression.Kind.POSTFIX_TYPEID_EXPRESSION), lhs, null, null, typeId, "", null); } catch (ASTSemanticException e6) { failParse(); throw backtrack; } break; default : firstExpression = primaryExpression(scope); } IASTExpression secondExpression = null; for (;;) { switch (LT(1)) { case IToken.tLBRACKET : // array access consume(); secondExpression = expression(scope); consume(IToken.tRBRACKET); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_SUBSCRIPT, firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e2) { failParse(); throw backtrack; } break; case IToken.tLPAREN : // function call consume(); secondExpression = expression(scope); consume(IToken.tRPAREN); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_FUNCTIONCALL, firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e3) { failParse(); throw backtrack; } break; case IToken.tINCR : consume(); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_INCREMENT, firstExpression, null, null, null, "", null); } catch (ASTSemanticException e1) { failParse(); throw backtrack; } break; case IToken.tDECR : consume(); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_DECREMENT, firstExpression, null, null, null, "", null); } catch (ASTSemanticException e4) { failParse(); throw backtrack; } break; case IToken.tDOT : // member access consume(IToken.tDOT); if (LT(1) == IToken.t_template) { consume(IToken.t_template); isTemplate = true; } secondExpression = primaryExpression(scope); try { firstExpression = astFactory.createExpression( scope, (isTemplate ? IASTExpression.Kind.POSTFIX_DOT_TEMPL_IDEXPRESS : IASTExpression.Kind.POSTFIX_DOT_IDEXPRESSION), firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e5) { failParse(); throw backtrack; } break; case IToken.tARROW : // member access consume(IToken.tARROW); if (LT(1) == IToken.t_template) { consume(IToken.t_template); isTemplate = true; } secondExpression = primaryExpression(scope); try { firstExpression = astFactory.createExpression( scope, (isTemplate ? IASTExpression.Kind.POSTFIX_ARROW_TEMPL_IDEXP : IASTExpression.Kind.POSTFIX_ARROW_IDEXPRESSION), firstExpression, secondExpression, null, null, "", null); } catch (ASTSemanticException e) { failParse(); throw backtrack; } break; default : return firstExpression; } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/02c194aaf46b86d6f7a904d6f531e535d47002ba/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
2300,
18923,
2300,
12,
467,
9053,
3876,
2146,
262,
3639,
1216,
4297,
4101,
565,
288,
3639,
467,
9053,
2300,
1122,
2300,
273,
446,
31,
3639,
1250,
353,
2283,
273,
629,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
2300,
18923,
2300,
12,
467,
9053,
3876,
2146,
262,
3639,
1216,
4297,
4101,
565,
288,
3639,
467,
9053,
2300,
1122,
2300,
273,
446,
31,
3639,
1250,
353,
2283,
273,
629,
31,... |
{ | public static IKeyPairGenerator getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairGenerator result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equalsIgnoreCase(Registry.DSS_KPG)) { result = new DSSKeyPairGenerator(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairGenerator(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.crypto.key.dh.GnuDHKeyPairGenerator"); } else if (name.equalsIgnoreCase(Registry.SRP_KPG)) { result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairGenerator"); } return result; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/KeyPairGeneratorFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/key/KeyPairGeneratorFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
467,
15099,
3908,
3694,
12,
780,
508,
13,
377,
309,
261,
529,
422,
446,
13,
2398,
327,
446,
31,
1377,
289,
565,
508,
273,
508,
18,
5290,
5621,
565,
467,
15099,
3908,
563,
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,
760,
467,
15099,
3908,
3694,
12,
780,
508,
13,
377,
309,
261,
529,
422,
446,
13,
2398,
327,
446,
31,
1377,
289,
565,
508,
273,
508,
18,
5290,
5621,
565,
467,
15099,
3908,
563,
2... | |
serializePreRoot(); | serializePreRoot(); | public void endDocument() throws SAXException { // Print all the elements accumulated outside of // the root element. serializePreRoot(); // Flush the output, this is necessary for buffered output. flush(); // If an exception was thrown during serializing, this would // be the best time to report it. if ( _exception != null ) throw new SAXException( _exception ); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/cd53b656c8781337491709c662fe224c44d1ef7d/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
2519,
1435,
3639,
1216,
14366,
565,
288,
202,
759,
3038,
777,
326,
2186,
24893,
8220,
434,
202,
759,
326,
1365,
930,
18,
202,
6288,
1386,
2375,
5621,
202,
759,
11624,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
2519,
1435,
3639,
1216,
14366,
565,
288,
202,
759,
3038,
777,
326,
2186,
24893,
8220,
434,
202,
759,
326,
1365,
930,
18,
202,
6288,
1386,
2375,
5621,
202,
759,
11624,
326,... |
RefElement refElement = (RefElement)getElement(descriptor); if (refElement.isValid() && refElement instanceof RefMethod) { RefMethod refMethod = (RefMethod)refElement; removeExcessiveThrows(refMethod); | if (myProcessor != null) { RefElement refElement = (RefElement)myProcessor.getElement(descriptor); if (refElement.isValid() && refElement instanceof RefMethod) { RefMethod refMethod = (RefMethod)refElement; final ProblemDescriptor[] problems = (ProblemDescriptor[])myProcessor.getDescriptions(refMethod); if (problems != null) { removeExcessiveThrows(refMethod, null, problems); } } } else { final PsiMethod psiMethod = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), PsiMethod.class); if (psiMethod != null) { removeExcessiveThrows(null, psiMethod, new ProblemDescriptor[]{descriptor}); } | public void applyFix(@NotNull Project project, ProblemDescriptor descriptor) { RefElement refElement = (RefElement)getElement(descriptor); if (refElement.isValid() && refElement instanceof RefMethod) { RefMethod refMethod = (RefMethod)refElement; removeExcessiveThrows(refMethod); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/5f5b1ed48708e53ec126bb2ca0956457df48f6e7/RedundantThrows.java/buggy/inspections/impl/com/intellij/codeInspection/unneededThrows/RedundantThrows.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
8585,
26964,
5962,
5420,
1984,
16,
21685,
3187,
4950,
13,
288,
1377,
3941,
1046,
1278,
1046,
273,
261,
1957,
1046,
13,
21336,
12,
12628,
1769,
1377,
309,
261,
1734,
1046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
8585,
26964,
5962,
5420,
1984,
16,
21685,
3187,
4950,
13,
288,
1377,
3941,
1046,
1278,
1046,
273,
261,
1957,
1046,
13,
21336,
12,
12628,
1769,
1377,
309,
261,
1734,
1046,
... |
public String getFieldSig() { return fieldSig; } | public String getFieldSig() { return fieldSig; } | public String getFieldSig() { return fieldSig; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/FieldVariable.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/bcp/FieldVariable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
5031,
8267,
1435,
288,
327,
652,
8267,
31,
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... | [
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,
225,
202,
482,
514,
5031,
8267,
1435,
288,
327,
652,
8267,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
{ SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); df.setTimeZone(TimeZone.getTimeZone("GMT")); StringBuffer decimal = new StringBuffer("000000000"); String nanos = String.valueOf(x.getNanos()); decimal.setLength(decimal.length() - nanos.length()); decimal.append(nanos); if (! connection.haveMinimumServerVersion("7.2")) { decimal.setLength(2); | { synchronized (sbuf) { sbuf.setLength(0); sbuf.append("'"); int l_year = x.getYear() + 1900; sbuf.append(l_year); sbuf.append('-'); int l_month = x.getMonth() + 1; if (l_month < 10) sbuf.append('0'); sbuf.append(l_month); sbuf.append('-'); int l_day = x.getDate(); if (l_day < 10) sbuf.append('0'); sbuf.append(l_day); sbuf.append(' '); int l_hours = x.getHours(); if (l_hours < 10) sbuf.append('0'); sbuf.append(l_hours); sbuf.append(':'); int l_minutes = x.getMinutes(); if (l_minutes < 10) sbuf.append('0'); sbuf.append(l_minutes); sbuf.append(':'); int l_seconds = x.getSeconds(); if (l_seconds < 10) sbuf.append('0'); sbuf.append(l_seconds); char[] l_decimal = {'0','0','0','0','0','0','0','0','0'}; char[] l_nanos = Integer.toString(x.getNanos()).toCharArray(); System.arraycopy(l_nanos, 0, l_decimal, l_decimal.length - l_nanos.length, l_nanos.length); sbuf.append('.'); if (connection.haveMinimumServerVersion("7.2")) { sbuf.append(l_decimal,0,6); } else { sbuf.append(l_decimal,0,2); } int l_offset = -(x.getTimezoneOffset()); int l_houros = l_offset/60; if (l_houros >= 0) { sbuf.append('+'); } else { sbuf.append('-'); } if (l_houros > -10 && l_houros < 10) sbuf.append('0'); if (l_houros >= 0) { sbuf.append(l_houros); } else { sbuf.append(-l_houros); } int l_minos = l_offset - (l_houros *60); if (l_minos != 0) { if (l_minos < 10) sbuf.append('0'); sbuf.append(l_minos); } sbuf.append("'"); set(parameterIndex, sbuf.toString()); | public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { if (null == x) { setNull(parameterIndex, Types.OTHER); } else { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); df.setTimeZone(TimeZone.getTimeZone("GMT")); // Make decimal from nanos. StringBuffer decimal = new StringBuffer("000000000"); // max nanos length String nanos = String.valueOf(x.getNanos()); decimal.setLength(decimal.length() - nanos.length()); decimal.append(nanos); if (! connection.haveMinimumServerVersion("7.2")) { // Because 7.1 include bug that "hh:mm:59.999" becomes "hh:mm:60.00". decimal.setLength(2); } StringBuffer strBuf = new StringBuffer("'"); strBuf.append(df.format(x)).append('.').append(decimal).append("+00'"); set(parameterIndex, strBuf.toString()); } } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/cdebcad6af70ec13bd89f11cf7f3d8b7d5278f50/PreparedStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/PreparedStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25251,
12,
474,
25412,
16,
8159,
619,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2011,
422,
619,
13,
202,
202,
95,
1082,
202,
542,
2041,
12,
6775,
1016,
16,
7658,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
25251,
12,
474,
25412,
16,
8159,
619,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2011,
422,
619,
13,
202,
202,
95,
1082,
202,
542,
2041,
12,
6775,
1016,
16,
7658,
18,... |
public final VM_Address allocCopy(VM_Address original, EXTENT bytes, | final public VM_Address allocCopy(VM_Address original, EXTENT bytes, | public final VM_Address allocCopy(VM_Address original, EXTENT bytes, boolean isScalar) throws VM_PragmaInline { if (VM.VerifyAssertions) VM._assert(false); return null; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/0782a0c1555be75504a8327db5fe024321387a88/Plan.java/clean/rvm/src/vm/memoryManagers/JMTk/plan/refCount/Plan.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8251,
67,
1887,
4767,
2951,
12,
7397,
67,
1887,
2282,
16,
11112,
2222,
1731,
16,
6862,
565,
1250,
11604,
3473,
13,
1216,
8251,
67,
2050,
9454,
10870,
288,
565,
309,
261,
7397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
8251,
67,
1887,
4767,
2951,
12,
7397,
67,
1887,
2282,
16,
11112,
2222,
1731,
16,
6862,
565,
1250,
11604,
3473,
13,
1216,
8251,
67,
2050,
9454,
10870,
288,
565,
309,
261,
7397,
... |
"always1@host.com,always2@host.com," | "always1@host.com,always2@host.com,ropletteruser1@host.com," | public void testCreateUserList() throws Exception { PropertyConfigurator.configure("log4j.properties"); assertEquals( "always1@host.com,always2@host.com," + "success1@host.com,success2@host.com," + "user1@host.com,user2@host.com,user3@host2.com", emailPublisher.createUserList(successLogHelper)); assertEquals( "always1@host.com,always2@host.com,failure1@host.com," + "failure2@host.com,user1@host.com,user2@host.com,user3@host2.com", emailPublisher.createUserList(failureLogHelper)); assertEquals( "always1@host.com,always2@host.com," + "failure2@host.com," + "success1@host.com,success2@host.com," + "user1@host.com,user2@host.com,user3@host2.com", emailPublisher.createUserList(fixedLogHelper)); emailPublisher.setSkipUsers(true); assertEquals( "always1@host.com,always2@host.com,success1@host.com,success2@host.com", emailPublisher.createUserList(successLogHelper)); assertEquals( "always1@host.com,always2@host.com,failure1@host.com,failure2@host.com", emailPublisher.createUserList(failureLogHelper)); emailPublisher.setSkipUsers(false); emailPublisher.setEmailAddressMapper("this.class.does.not.exist"); try { emailPublisher.createUserList(fixedLogHelper); fail("EmailPublisher should throw exceptions when configured emailaddressmapper class does not exist."); } catch (CruiseControlException expected) { } emailPublisher.setEmailAddressMapper("net.sourceforge.cruisecontrol.publishers.DropLetterEmailAddressMapper"); assertEquals( "ailure2@host.com,lways1@host.com,lways2@host.com," + "ser1@host.com,ser2@host.com,ser3@host2.com," + "uccess1@host.com,uccess2@host.com", emailPublisher.createUserList(fixedLogHelper)); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/d852abbb3a259d16fa87c7902ec8c303adffbea2/EmailPublisherTest.java/buggy/main/test/net/sourceforge/cruisecontrol/publishers/EmailPublisherTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1684,
1299,
682,
1435,
1216,
1185,
288,
3639,
4276,
17182,
18,
14895,
2932,
1330,
24,
78,
18,
4738,
8863,
3639,
1815,
8867,
12,
5411,
315,
17737,
21,
36,
2564,
18,
832,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1299,
682,
1435,
1216,
1185,
288,
3639,
4276,
17182,
18,
14895,
2932,
1330,
24,
78,
18,
4738,
8863,
3639,
1815,
8867,
12,
5411,
315,
17737,
21,
36,
2564,
18,
832,
... |
public AbstractEnvironment(String uri, String view, String action) { this.uri = uri; this.view = view; this.action = action; this.objectModel = new HashMap(); | public AbstractEnvironment(String uri, String view) { this(uri, view, null); | public AbstractEnvironment(String uri, String view, String action) { this.uri = uri; this.view = view; this.action = action; this.objectModel = new HashMap(); } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/27c7d2361dcdd5562bd2ee693042c1192e4f1f73/AbstractEnvironment.java/buggy/src/java/org/apache/cocoon/environment/AbstractEnvironment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4115,
5494,
12,
780,
2003,
16,
514,
1476,
16,
514,
1301,
13,
288,
3639,
333,
18,
1650,
273,
2003,
31,
3639,
333,
18,
1945,
273,
1476,
31,
3639,
333,
18,
1128,
273,
1301,
31,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4115,
5494,
12,
780,
2003,
16,
514,
1476,
16,
514,
1301,
13,
288,
3639,
333,
18,
1650,
273,
2003,
31,
3639,
333,
18,
1945,
273,
1476,
31,
3639,
333,
18,
1128,
273,
1301,
31,
363... |
String inputDate = args[args.length-1]; | String inputDate = args[args.length - 1]; | public static void main (String [] args) throws Exception { String USAGE = "Usage: java SchedulerReport [options] <date (YYYY-MM-DD)> Enter -help for a list of options\n"; String HELP = "Where [options] are:\n"+ " -help Displays help\n"+ " -step <day|month> Specifies size of step (day by default)\n"+ " -n <steps> Specifies number of steps to do\n"; if (args.length == 0){ System.err.println(USAGE); System.exit(1); } else if (args.length == 1 && args[0].equalsIgnoreCase("-help")){ System.err.println(USAGE); System.err.println(HELP); System.exit(1); } int n = 1; String stepStr = "day"; for (int i=0;i<args.length-1;i++){ if (args[i].equals("-n")) { n = Integer.parseInt(args[++i]); } else if (args[i].equals("-step")) { stepStr = args[++i]; } else if (args[i].equalsIgnoreCase("-help")) { System.err.println(USAGE); System.err.println(HELP); System.exit(1); } else { System.err.println("Unknown argument: " + args[i]); System.exit(1); } } String inputDate = args[args.length-1]; TimeStep ts = new TimeStep (stepStr, n, inputDate); HistogramParser streamHist = new HistogramParser("Number of Packets shown by Streams Used","GFTPstreamhistogram", "Number of GFTP Packets with Given Number of Streams", n); HistogramParser stripeHist = new HistogramParser("Number of Packets Shown by Stripes Used", "GFTPstripehistogram", "Number of GFTP Packets with Given Number of Stripes", n); DatabaseRetriever dbr = new DatabaseRetriever(); while (ts.next()){ String startTime = ts.getFormattedTime(); Date startDate = ts.getTime(); ts.stepTime(); streamHist.nextEntry(startTime, ts.getFormattedTime()); stripeHist.nextEntry(startTime, ts.getFormattedTime()); ResultSet rs = dbr.retrieve("gftp_packets", new String [] {"num_streams","num_stripes"}, startDate, ts.getTime()); while(rs.next()){ streamHist.addData(rs.getString(1), 1); stripeHist.addData(rs.getString(2), 1); } rs.close(); } dbr.close(); System.out.println("<report>"); streamHist.output(System.out); stripeHist.output(System.out); System.out.println("</report>"); } | 8719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8719/efb83d08bf3214ba362adb9486345c128a00bae7/StripeReport.java/buggy/usage/java/reports/source/src/org/globus/usage/report/gftp/StripeReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
5378,
833,
13,
1216,
1185,
288,
3639,
514,
11836,
2833,
273,
315,
5357,
30,
2252,
12620,
4820,
306,
2116,
65,
411,
712,
261,
26287,
17,
8206,
17,
5698,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
5378,
833,
13,
1216,
1185,
288,
3639,
514,
11836,
2833,
273,
315,
5357,
30,
2252,
12620,
4820,
306,
2116,
65,
411,
712,
261,
26287,
17,
8206,
17,
5698,
1... |
case LOS_SPACE: Header.initializeMarkSweepHeader(ref, tib, bytes, isScalar); return; | case LOS_SPACE: Header.initializeMarkSweepHeader(ref, tib, bytes); return; | public final void postAlloc(VM_Address ref, Object[] tib, int bytes, boolean isScalar, int allocator) throws VM_PragmaInline { switch (allocator) { case NURSERY_SPACE: return; case MATURE_SPACE: if (!Plan.copyMature) Header.initializeMarkSweepHeader(ref, tib, bytes, isScalar); return; case IMMORTAL_SPACE: ImmortalSpace.postAlloc(ref); return; case LOS_SPACE: Header.initializeMarkSweepHeader(ref, tib, bytes, isScalar); return; default: if (VM_Interface.VerifyAssertions) VM_Interface.sysFail("No such allocator"); } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/fa7c084890229aa14b7d09f3663b41447333cc2d/Generational.java/clean/rvm/src/vm/memoryManagers/JMTk/plan/Generational.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
1603,
8763,
12,
7397,
67,
1887,
1278,
16,
1033,
8526,
268,
495,
16,
509,
1731,
16,
17311,
1250,
11604,
3473,
16,
509,
26673,
13,
565,
1216,
8251,
67,
2050,
9454,
10870,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
1603,
8763,
12,
7397,
67,
1887,
1278,
16,
1033,
8526,
268,
495,
16,
509,
1731,
16,
17311,
1250,
11604,
3473,
16,
509,
26673,
13,
565,
1216,
8251,
67,
2050,
9454,
10870,
... |
public void enforceTimeout() { if (!hasRun()) { // Set the duration as was defined for connection timeout _duration = _targetDescriptor.getConnectionTimeOut(); // Create a new ConnectException. // TODO: Currently it is observed that mostly the URLs which are // expected to throw a ConnectTimeoutException keeps on running // but we need to take care of the situation when because of some // other reason the thread is still active. _exception = new ConnectException("Connect timed out"); } } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/fa09921b47283c3ce545b29448cebd69a23a2955/CheckLinks.java/buggy/src/java-server-framework/org/xins/server/CheckLinks.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
12980,
2694,
1435,
288,
540,
309,
16051,
5332,
1997,
10756,
288,
5411,
368,
1000,
326,
3734,
487,
1703,
2553,
364,
1459,
2021,
5411,
389,
8760,
273,
389,
3299,
3187,
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,
4202,
1071,
918,
12980,
2694,
1435,
288,
540,
309,
16051,
5332,
1997,
10756,
288,
5411,
368,
1000,
326,
3734,
487,
1703,
2553,
364,
1459,
2021,
5411,
389,
8760,
273,
389,
3299,
3187,
18,
588,
... | ||
objs.add(new VSchemaObject(((ISchemaObject)restrictions[i]).getName(), null, F_AT_VAL)); | objs.add(new VirtualSchemaObject(((ISchemaObject)restrictions[i]).getName(), null, F_AT_VAL)); | private ICompletionProposal[] computeCompletionProposal(IDocumentAttribute attr, int offset, IDocument doc) { if (offset < attr.getValueOffset()) return null; int[] offests = new int[] {offset, offset, offset}; String[] guess = guessContentRequest(offests, doc, false); if (guess == null) return null;// String element = guess[0];// String attribute = guess[1]; String attrValue = guess[2]; IPluginObject obj = XMLUtil.getTopLevelParent((IDocumentNode)attr); if (obj instanceof IPluginExtension) { if (attr.getAttributeName().equals(IPluginExtension.P_POINT) && offset >= attr.getValueOffset()) return computeAttributeProposal(attr, offset, attrValue, getAvailableExtensionPoints()); ISchemaAttribute sAttr = XMLUtil.getSchemaAttribute(attr, ((IPluginExtension)obj).getPoint()); if (sAttr == null) return null; if (sAttr.getKind() == IMetaAttribute.JAVA) { IResource resource = obj.getModel().getUnderlyingResource(); if (resource == null) return null; // Revisit: NEW CODE HERE ArrayList list = new ArrayList(); ICompletionProposal[] proposals = null; generateTypePackageProposals(attrValue, resource.getProject(), list, offset - attrValue.length(), IJavaSearchConstants.CLASS_AND_INTERFACE); if ((list != null) && (list.size() != 0)) { // Convert the results array list into an array of completion // proposals proposals = (ICompletionProposal[]) list.toArray(new ICompletionProposal[list.size()]); sortCompletions(proposals); return proposals; } return null; } else if (sAttr.getKind() == IMetaAttribute.RESOURCE) { // provide proposals with all resources in current plugin? } else { // we have an IMetaAttribute.STRING kind if (sAttr.getType() == null) return null; ISchemaRestriction sRestr = (sAttr.getType()).getRestriction(); ArrayList objs = new ArrayList(); if (sRestr == null) { ISchemaSimpleType type = sAttr.getType(); if (type != null && type.getName().equals("boolean")) //$NON-NLS-1$ objs = F_V_BOOLS; } else { Object[] restrictions = sRestr.getChildren(); for (int i = 0; i < restrictions.length; i++) if (restrictions[i] instanceof ISchemaObject) objs.add(new VSchemaObject(((ISchemaObject)restrictions[i]).getName(), null, F_AT_VAL)); } return computeAttributeProposal(attr, offset, attrValue, objs); } } else if (obj instanceof IPluginExtensionPoint) { if (attr.getAttributeValue().equals(IPluginExtensionPoint.P_SCHEMA)) { // provide proposals with all schama files in current plugin? } } return null; } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/0865f0ad4a2dad881eecc6fc8e27dc99f0ca3c9e/XMLContentAssistProcessor.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/contentassist/XMLContentAssistProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
11238,
14592,
8526,
3671,
11238,
14592,
12,
734,
504,
650,
1499,
1604,
16,
509,
1384,
16,
1599,
504,
650,
997,
13,
288,
202,
202,
430,
261,
3348,
411,
1604,
18,
24805,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
11238,
14592,
8526,
3671,
11238,
14592,
12,
734,
504,
650,
1499,
1604,
16,
509,
1384,
16,
1599,
504,
650,
997,
13,
288,
202,
202,
430,
261,
3348,
411,
1604,
18,
24805,
2... |
((DataCarryingMessage)msg).readFrom(lis, handler.bf); | try { ((DataCarryingMessage)msg).readFrom(lis, handler.bf, handler.server); } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } | public void realRun() throws IOException { InputStream is = handler.sock.getInputStream(); LineReadingInputStream lis = new LineReadingInputStream(is); boolean firstMessage = true; while(true) { SimpleFieldSet fs; // Read a message String messageType = lis.readLine(64, 64); if(messageType == null) { is.close(); return; } if(messageType.equals("")) continue; fs = new SimpleFieldSet(lis, 4096, 128, false, false); FCPMessage msg; try { msg = FCPMessage.create(messageType, fs); if(msg == null) continue; } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } if(firstMessage && !(msg instanceof ClientHelloMessage)) { FCPMessage err = new ProtocolErrorMessage(ProtocolErrorMessage.CLIENT_HELLO_MUST_BE_FIRST_MESSAGE, true, null, null); handler.outputHandler.queue(err); handler.close(); continue; } if(msg instanceof DataCarryingMessage) { ((DataCarryingMessage)msg).readFrom(lis, handler.bf); } if((!firstMessage) && msg instanceof ClientHelloMessage) { FCPMessage err = new ProtocolErrorMessage(ProtocolErrorMessage.NO_LATE_CLIENT_HELLOS, false, null, null); handler.outputHandler.queue(err); continue; } try { msg.run(handler, handler.server.node); } catch (MessageInvalidException e) { FCPMessage err = new ProtocolErrorMessage(e.protocolCode, false, e.getMessage(), e.ident); handler.outputHandler.queue(err); continue; } firstMessage = false; if(handler.isClosed()) return; } } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/c3bd1101bcadc7c347643a2d0afd01491a0565ce/FCPConnectionInputHandler.java/buggy/src/freenet/node/fcp/FCPConnectionInputHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
1997,
1435,
1216,
1860,
288,
202,
202,
4348,
353,
273,
1838,
18,
15031,
18,
588,
4348,
5621,
202,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2863,
1997,
1435,
1216,
1860,
288,
202,
202,
4348,
353,
273,
1838,
18,
15031,
18,
588,
4348,
5621,
202,
202,
1670,
15714,
4348,
328,
291,
273,
394,
5377,
15714,
4348,
12,
... |
add(new Label("label", model) | add(new Label("label", model.getObject(this).toString()) | public InlineDropDownChoice(String id, IModel model, Collection choices) { super(id); setFormComponent(new DropDownChoice("dropDownChoice", model, choices) { public boolean isVisible() { return GridView.isEdit(this); } }); add(new Label("label", model) { public boolean isVisible() { return !GridView.isEdit(this); } }); } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/5ce5aba21485b9bc3f9343ec7313f384f0a545f1/InlineDropDownChoice.java/buggy/wicket-contrib-data/src/java/wicket/contrib/data/model/bind/InlineDropDownChoice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16355,
7544,
4164,
10538,
12,
780,
612,
16,
467,
1488,
938,
16,
2200,
7246,
13,
202,
95,
202,
202,
9565,
12,
350,
1769,
202,
202,
542,
1204,
1841,
12,
2704,
10895,
4164,
10538... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16355,
7544,
4164,
10538,
12,
780,
612,
16,
467,
1488,
938,
16,
2200,
7246,
13,
202,
95,
202,
202,
9565,
12,
350,
1769,
202,
202,
542,
1204,
1841,
12,
2704,
10895,
4164,
10538... |
if ((!inputFields.lastElement().equals(activeField)) && (!activeField.unlimitedEdit())) { if ((text.length() == fieldSize) && (selection == 0) && (caretPosition == fieldSize) && !backstep) | if ((!inputFields.lastElement().equals(activeField)) && (!activeField.unlimitedEdit())) | public void caretUpdate(CaretEvent event) { String text = activeField.getText(); int fieldSize = activeField.getEditLength(); int caretPosition = activeField.getCaretPosition(); int selection = activeField.getSelectionEnd() - activeField.getSelectionStart(); if ((!inputFields.lastElement().equals(activeField)) && (!activeField.unlimitedEdit())) { if ((text.length() == fieldSize) && (selection == 0) && (caretPosition == fieldSize) && !backstep) { activeField.transferFocus(); } } } | 46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/e379bca3b699c2188efebed999375b18f7071ab3/RuleInputField.java/buggy/src/lib/com/izforge/izpack/panels/RuleInputField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21683,
1891,
12,
39,
20731,
1133,
871,
13,
565,
288,
3639,
514,
977,
273,
2695,
974,
18,
588,
1528,
5621,
3639,
509,
652,
1225,
273,
2695,
974,
18,
588,
4666,
1782,
5621,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21683,
1891,
12,
39,
20731,
1133,
871,
13,
565,
288,
3639,
514,
977,
273,
2695,
974,
18,
588,
1528,
5621,
3639,
509,
652,
1225,
273,
2695,
974,
18,
588,
4666,
1782,
5621,
363... |
public org.quickfix.field.UnderlyingSecurityAltID get(org.quickfix.field.UnderlyingSecurityAltID value) | public quickfix.field.UnderlyingSecurityAltID get(quickfix.field.UnderlyingSecurityAltID value) | public org.quickfix.field.UnderlyingSecurityAltID get(org.quickfix.field.UnderlyingSecurityAltID value) throws FieldNotFound { getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/buggy/src/java/src/quickfix/fix44/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
336,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
336,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
... |
public String paren_chunk2() throws RecognitionException { String text; Token any=null; String c = null; text = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:805:18: ( ( options {greedy=false; } : '(' c= paren_chunk2 ')' | any= . )* ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:805:18: ( options {greedy=false; } : '(' c= paren_chunk2 ')' | any= . )* { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:805:18: ( options {greedy=false; } : '(' c= paren_chunk2 ')' | any= . )* loop54: do { int alt54=3; switch ( input.LA(1) ) { case 23: alt54=3; break; case 21: alt54=1; break; 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 22: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: alt54=2; break; } switch (alt54) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:806:25: '(' c= paren_chunk2 ')' { match(input,21,FOLLOW_21_in_paren_chunk22226); following.push(FOLLOW_paren_chunk2_in_paren_chunk22230); c=paren_chunk2(); following.pop(); match(input,23,FOLLOW_23_in_paren_chunk22232); if ( c == null ) { c = ""; } if ( text == null ) { text = "( " + c + " )"; } else { text = text + " ( " + c + " )"; } } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:817:19: any= . { any=(Token)input.LT(1); matchAny(input); if ( text == null ) { text = any.getText(); } else { text = text + " " + any.getText(); } } break; default : break loop54; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/7f81b86a0f548bd02b09afc74b46454cdf158154/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22146,
67,
6551,
22,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
1281,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22146,
67,
6551,
22,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
1281,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3... | ||
private void saveProps() { setOptionAccess(); setExternalPrograms(); ConfigureFactory.getInstance().saveSettings( ConfigureFactory.SESSIONS, "------ Session Information --------"); OptionAccessFactory.getInstance().reload(); } | 4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/45682107805eb1c0355528b52ba4fba9ebfba5ba/Connect.java/buggy/src/org/tn5250j/Connect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
5047,
1435,
288,
202,
202,
542,
1895,
1862,
5621,
9506,
202,
542,
6841,
9459,
87,
5621,
202,
202,
11207,
1733,
18,
588,
1442,
7675,
5688,
2628,
12,
1082,
202,
11207,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
5047,
1435,
288,
202,
202,
542,
1895,
1862,
5621,
9506,
202,
542,
6841,
9459,
87,
5621,
202,
202,
11207,
1733,
18,
588,
1442,
7675,
5688,
2628,
12,
1082,
202,
11207,... | ||
setPeerNodeStatus(now); | public void verified(KeyTracker tracker) { long now = System.currentTimeMillis(); synchronized(this) { if(tracker == unverifiedTracker) { if(logMINOR) Logger.minor(this, "Promoting unverified tracker "+tracker+" for "+getPeer()); if(previousTracker != null) { previousTracker.completelyDeprecated(tracker); } previousTracker = currentTracker; if(previousTracker != null) previousTracker.deprecated(); currentTracker = unverifiedTracker; unverifiedTracker = null; isConnected = true; neverConnected = false; peerAddedTime = 0; // don't store anymore setPeerNodeStatus(now); ctx = null; maybeSendInitialMessages(); } else return; } node.peers.addConnectedPeer(this); } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/8de4b1cd60a548b4d18488fb67f53e39abfa9b77/PeerNode.java/clean/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13808,
12,
653,
8135,
9745,
13,
288,
1377,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
22043,
12,
2211,
13,
288,
3639,
309,
12,
16543,
422,
640,
19685,
8135,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13808,
12,
653,
8135,
9745,
13,
288,
1377,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
377,
202,
22043,
12,
2211,
13,
288,
3639,
309,
12,
16543,
422,
640,
19685,
8135,
13,
... | |
String text = ""; | public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } else { String text = ""; Object selected = comboBox.getModel().getSelectedItem(); if (selected != null) text = selected.toString(); Rectangle bounds = comboBox.getBounds(); Rectangle innerArea = SwingUtilities.calculateInnerArea(this, null); if (comboBox.hasFocus()) { g.setColor(MetalLookAndFeel.getFocusColor()); g.drawRect(innerArea.x, innerArea.y - 1, innerArea.width - 1, innerArea.height); } Insets insets = comboBox.getInsets(); int iconX = bounds.width - insets.right - comboIcon.getIconWidth() - 7; int iconY = insets.top + (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, iconX, iconY); if (comboBox.isEnabled()) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDisabled()); Rectangle viewArea = new Rectangle(innerArea.x, innerArea.y, innerArea.width - comboIcon.getIconWidth() - 7, innerArea.height); FontMetrics fm = g.getFontMetrics(comboBox.getFont()); Rectangle textR = new Rectangle(); text = SwingUtilities.layoutCompoundLabel(fm, text, null, SwingConstants.CENTER, SwingConstants.LEFT, SwingConstants.CENTER, SwingConstants.RIGHT, viewArea, new Rectangle(), textR, 0); // FIXME: this truncation should be done within layoutCompoundLabel() text = truncateText(text, innerArea.width - comboIcon.getIconWidth() - 7, fm); int yAdj = fm.getDescent() + fm.getLeading(); g.setFont(comboBox.getFont()); g.drawString(text, textR.x, textR.y + textR.height - yAdj); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/MetalComboBoxButton.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalComboBoxButton.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
225,
288,
565,
2240,
18,
84,
1598,
1841,
12,
75,
1769,
565,
309,
261,
3950,
3386,
13,
1377,
288,
3639,
13264,
4972,
273,
22107,
5621,
3639,
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,
282,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
225,
288,
565,
2240,
18,
84,
1598,
1841,
12,
75,
1769,
565,
309,
261,
3950,
3386,
13,
1377,
288,
3639,
13264,
4972,
273,
22107,
5621,
3639,
5... | |
this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); setVerticalAlignment(TOP); setEnabled(true); setFont(getFont()); if (leaf) setIcon(getLeafIcon()); else if (expanded) setIcon(getOpenIcon()); else setIcon(getClosedIcon()); | if (val instanceof Icon) setIcon((Icon) val); else { setText(val.toString()); setIcon(null); this.selected = selected; this.hasFocus = hasFocus; setHorizontalAlignment(LEFT); setOpaque(true); setVerticalAlignment(TOP); setEnabled(true); super.setFont(UIManager.getLookAndFeelDefaults().getFont("Tree.font")); } | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; setText(val.toString()); setHorizontalAlignment(LEFT); setOpaque(true); setVerticalAlignment(TOP); setEnabled(true); setFont(getFont()); if (leaf) setIcon(getLeafIcon()); else if (expanded) setIcon(getOpenIcon()); else setIcon(getClosedIcon()); if (selected) { super.setBackground(getBackgroundSelectionColor()); setForeground(getTextSelectionColor()); } else { super.setBackground((tree.getParent()).getBackground()); setForeground(getTextNonSelectionColor()); } return this; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b84de612b47edf167d1a205db1270610dfb06eb8/DefaultTreeCellRenderer.java/clean/libraries/javalib/javax/swing/tree/DefaultTreeCellRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
15867,
4020,
6747,
1841,
12,
46,
2471,
2151,
16,
1033,
1244,
16,
1082,
202,
6494,
3170,
16,
1250,
8406,
16,
1250,
7839,
16,
509,
1027,
16,
1082,
202,
6494,
711,
9233,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
15867,
4020,
6747,
1841,
12,
46,
2471,
2151,
16,
1033,
1244,
16,
1082,
202,
6494,
3170,
16,
1250,
8406,
16,
1250,
7839,
16,
509,
1027,
16,
1082,
202,
6494,
711,
9233,
13... |
data.doGlobal(funObj, count); | data.doGlobal(cx, funObj, count, reImpl); | private static Object matchOrReplace(Context cx, Scriptable thisObj, Object[] args, Function funObj, GlobData data, boolean forceFlat) throws JavaScriptException { NativeRegExp re; String str = ScriptRuntime.toString(thisObj); data.str = str; RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); Scriptable scope = ScriptableObject.getTopLevelScope(funObj); if (args.length == 0) re = new NativeRegExp(cx, scope, "", "", false); else if (args[0] instanceof NativeRegExp) { re = (NativeRegExp) args[0]; } else { String src = ScriptRuntime.toString(args[0]); String opt; if (data.optarg < args.length) { args[0] = src; opt = ScriptRuntime.toString(args[data.optarg]); } else { opt = null; } re = new NativeRegExp(cx, scope, src, opt, forceFlat); } data.regexp = re; data.global = (re.getFlags() & NativeRegExp.GLOB) != 0; int[] indexp = { 0 }; Object result = null; if (data.mode == GlobData.GLOB_SEARCH) { result = re.executeRegExp(funObj, str, indexp, NativeRegExp.TEST); if (result != null && result.equals(Boolean.TRUE)) result = new Integer(reImpl.leftContext.length); else result = new Integer(-1); } else if (data.global) { re.setLastIndex(0); for (int count = 0; indexp[0] <= str.length(); count++) { result = re.executeRegExp(funObj, str, indexp, NativeRegExp.TEST); if (result == null || !result.equals(Boolean.TRUE)) break; data.doGlobal(funObj, count); if (reImpl.lastMatch.length == 0) { if (indexp[0] == str.length()) break; indexp[0]++; } } } else { result = re.executeRegExp(funObj, str, indexp, ((data.mode == GlobData.GLOB_REPLACE) ? NativeRegExp.TEST : NativeRegExp.MATCH)); } return result; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/8b34980fb3adc3beae5bcea5913d426dc2e366c8/RegExpImpl.java/clean/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
845,
1162,
5729,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1033,
8526,
833,
16,
4284,
9831,
2675,
16,
29159,
18901,
751,
501,
16,
1250,
2944,
16384,
13,
3639,
1216,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
845,
1162,
5729,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1033,
8526,
833,
16,
4284,
9831,
2675,
16,
29159,
18901,
751,
501,
16,
1250,
2944,
16384,
13,
3639,
1216,
11... |
buf.append( " " + this.getOntologyEntry() ); } if ( this.getMeasurement() != null ) { buf.append( " " + this.getMeasurement() ); } if ( StringUtils.isNotBlank( this.getValue() ) ) { buf.append( "Value: " + this.getValue() ); | buf.append( this.getOntologyEntry() ); } else if ( this.getMeasurement() != null ) { buf.append( this.getMeasurement() ); } else if ( StringUtils.isNotBlank( this.getValue() ) ) { buf.append( "Value: '" + this.getValue() + "'" ); | public java.lang.String toString() { StringBuilder buf = new StringBuilder(); buf.append( this.getClass().getSimpleName() ); if ( this.getId() != null ) { buf.append( "Id:" + this.getId() ); } if ( this.getOntologyEntry() != null ) { buf.append( " " + this.getOntologyEntry() ); } if ( this.getMeasurement() != null ) { buf.append( " " + this.getMeasurement() ); } if ( StringUtils.isNotBlank( this.getValue() ) ) { buf.append( "Value: " + this.getValue() ); } return buf.toString(); } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/720bb9a22ba6d524cdceb80fe57426924bffa8b8/FactorValueImpl.java/clean/gemma-mda/src/main/java/ubic/gemma/model/expression/experiment/FactorValueImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2252,
18,
4936,
18,
780,
1762,
1435,
288,
3639,
3225,
1681,
273,
394,
3225,
5621,
3639,
1681,
18,
6923,
12,
333,
18,
588,
797,
7675,
588,
5784,
461,
1435,
11272,
3639,
309,
261,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2252,
18,
4936,
18,
780,
1762,
1435,
288,
3639,
3225,
1681,
273,
394,
3225,
5621,
3639,
1681,
18,
6923,
12,
333,
18,
588,
797,
7675,
588,
5784,
461,
1435,
11272,
3639,
309,
261,
3... |
int currentErrorLevel = reparseable.getErrorsCount(newFileText, textRange.getStartOffset(), textRange.getEndOffset(), lengthShift); if(currentErrorLevel == Reparseable.NO_ERRORS){ | final String newTextStr = StringFactory.createStringFromConstantArray(newFileText, textRange.getStartOffset(), textRange.getLength() + lengthShift); if(reparseable.isParsable(newTextStr)){ | public void reparseRangeInternal(PsiFile file, int startOffset, int endOffset, int lengthShift, char[] newFileText){ final PsiFileImpl fileImpl = (PsiFileImpl)file; // hack final int textLength = file.getTextLength() + lengthShift; if(fileImpl.getFileType() == StdFileTypes.JSP || fileImpl.getFileType() == StdFileTypes.JSPX){ makeFullParse(fileImpl.getTreeElement(), newFileText, textLength, fileImpl, fileImpl.getFileType()); return; } final FileElement treeFileElement = fileImpl.getTreeElement(); final ASTNode leafAtStart = treeFileElement.findLeafElementAt(startOffset); final ASTNode leafAtEnd = treeFileElement.findLeafElementAt(endOffset); ASTNode parent = leafAtStart != null && leafAtEnd != null ? TreeUtil.findCommonParent(leafAtStart, leafAtEnd) : treeFileElement; int minErrorLevel = Integer.MAX_VALUE; Reparseable bestReparseable = null; Reparseable prevReparseable = null; boolean theOnlyReparseable = false; while(parent != null && !(parent instanceof FileElement)){ if(parent instanceof Reparseable){ final TextRange textRange = parent.getTextRange(); final Reparseable reparseable = (Reparseable)parent; boolean lexerChanged = false; if(prevReparseable != null){ lexerChanged = prevReparseable.getLexerClass().equals(reparseable.getLexerClass()); } int currentErrorLevel = reparseable.getErrorsCount(newFileText, textRange.getStartOffset(), textRange.getEndOffset(), lengthShift); if(currentErrorLevel == Reparseable.NO_ERRORS){ final FileElement treeElement = new DummyHolder(((TreeElement)parent).getManager(), null, treeFileElement.getCharTable()).getTreeElement(); final ChameleonElement chameleon = reparseable.createChameleon(newFileText, textRange.getStartOffset(), textRange.getEndOffset() + lengthShift); TreeUtil.addChildren(treeElement, chameleon); parent.replaceAllChildrenToChildrenOf(chameleon.transform(treeFileElement.getCharTable(), fileImpl.createLexer()).getTreeParent()); return; } else if(currentErrorLevel == Reparseable.FATAL_ERROR){ prevReparseable = reparseable; } else if(Math.abs(currentErrorLevel) < Math.abs(minErrorLevel)){ theOnlyReparseable = bestReparseable == null; bestReparseable = reparseable; minErrorLevel = currentErrorLevel; if (lexerChanged) break; } // invalid content; } parent = parent.getTreeParent(); } if(bestReparseable != null && !theOnlyReparseable){ // best reparseable available final ASTNode treeElement = ((ASTNode)bestReparseable); final TextRange textRange = treeElement.getTextRange(); final ChameleonElement chameleon = bestReparseable.createChameleon(newFileText, textRange.getStartOffset(), textRange.getEndOffset() + lengthShift); chameleon.putUserData(CharTable.CHAR_TABLE_KEY, treeFileElement.getCharTable()); chameleon.setTreeParent((CompositeElement)parent); treeElement.replaceAllChildrenToChildrenOf(chameleon.transform(treeFileElement.getCharTable(), fileImpl.createLexer()).getTreeParent()); } else{ // file reparse FileType fileType = file.getFileType(); if (file instanceof PsiPlainTextFile){ fileType = StdFileTypes.PLAIN_TEXT; } // final Grammar grammarByFileType = GrammarUtil.getGrammarByFileType(fileType); if(grammarByFileType != null){ ParsingUtil.reparse(grammarByFileType, treeFileElement.getCharTable(), treeFileElement, newFileText, startOffset, endOffset, lengthShift); } else{ makeFullParse(parent, newFileText, textLength, fileImpl, fileType); } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/7cc49f57fd75f032b80560ecde54c4a99bda9ac7/BlockSupportImpl.java/clean/source/com/intellij/psi/impl/source/text/BlockSupportImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
283,
2670,
2655,
3061,
12,
52,
7722,
812,
585,
16,
509,
18245,
16,
509,
25507,
16,
509,
769,
10544,
16,
1149,
8526,
20592,
1528,
15329,
565,
727,
453,
7722,
812,
2828,
585,
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,
918,
283,
2670,
2655,
3061,
12,
52,
7722,
812,
585,
16,
509,
18245,
16,
509,
25507,
16,
509,
769,
10544,
16,
1149,
8526,
20592,
1528,
15329,
565,
727,
453,
7722,
812,
2828,
585,
2... |
List contentDescriptors = CONTENT_DESCRIPTOR_REGISTRY.getEnabledContentDescriptors(element); | Set contentDescriptors = CONTENT_DESCRIPTOR_REGISTRY.getEnabledContentDescriptors(element); | public boolean select(Viewer viewer, Object parentElement, Object element) { boolean select = true; List contentDescriptors = CONTENT_DESCRIPTOR_REGISTRY.getEnabledContentDescriptors(element); for (int extindex = 0; extindex < contentDescriptors.size() && select; extindex++) { NavigatorContentDescriptor descriptor = (NavigatorContentDescriptor) contentDescriptors.get(extindex); if (NAVIGATOR_ACTIVATION_SERVICE.isNavigatorExtensionActive(contentService.getViewerId(), descriptor.getId())) { ExtensionFilterDescriptor[] enabledFilters = ExtensionFilterRegistryManager.getInstance().getViewerRegistry(contentService.getViewerId()).getActiveDescriptors(descriptor.getId()); for (int filterindx = 0; filterindx < enabledFilters.length; filterindx++) { INavigatorExtensionFilter filter = enabledFilters[filterindx].getInstance(); /* * System.out.println("Element: " + element + " isFiltered: " + * !filter.select(getExtensionSite(), parentElement, element)); */ if (!filter.select(commonViewer, parentElement, element)) { select = false; break; } } } } return select; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/41c8442179322a9023ece61502a54f5e639a097a/CommonViewerFilter.java/clean/bundles/org.eclipse.ui.navigator/src-navigator/org/eclipse/ui/navigator/internal/filters/CommonViewerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2027,
12,
18415,
14157,
16,
1033,
30363,
16,
1033,
930,
13,
288,
202,
202,
6494,
2027,
273,
638,
31,
202,
202,
682,
913,
12705,
273,
12577,
67,
1639,
27689,
67,
5937,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2027,
12,
18415,
14157,
16,
1033,
30363,
16,
1033,
930,
13,
288,
202,
202,
6494,
2027,
273,
638,
31,
202,
202,
682,
913,
12705,
273,
12577,
67,
1639,
27689,
67,
5937,
25... |
Vector result= new Vector(100); | Hashtable result= new Hashtable(100); | public Enumeration collectTests() { String classPath= System.getProperty("java.class.path"); String separator= System.getProperty("path.separator"); Vector result= new Vector(100); collectFilesInRoots(splitClassPath(classPath, separator), result); return result.elements(); } | 48762 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48762/bfc94ee739d62127c7477300b26127bd560765a1/ClassPathTestCollector.java/clean/junit/runner/ClassPathTestCollector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13864,
3274,
14650,
1435,
288,
202,
202,
780,
22503,
33,
2332,
18,
588,
1396,
2932,
6290,
18,
1106,
18,
803,
8863,
202,
202,
780,
4182,
33,
2332,
18,
588,
1396,
2932,
803,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13864,
3274,
14650,
1435,
288,
202,
202,
780,
22503,
33,
2332,
18,
588,
1396,
2932,
6290,
18,
1106,
18,
803,
8863,
202,
202,
780,
4182,
33,
2332,
18,
588,
1396,
2932,
803,
18,... |
_cnt570++; | _cnt66++; | public final void flworExpr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST flworExpr_AST = null; { int _cnt570=0; _loop570: do { switch ( LA(1)) { case LITERAL_for: { forClause(); astFactory.addASTChild(currentAST, returnAST); break; } case LITERAL_let: { letClause(); astFactory.addASTChild(currentAST, returnAST); break; } default: { if ( _cnt570>=1 ) { break _loop570; } else {throw new NoViableAltException(LT(1), getFilename());} } } _cnt570++; } while (true); } { switch ( LA(1)) { case LITERAL_where: { AST tmp168_AST = null; tmp168_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp168_AST); match(LITERAL_where); expr(); astFactory.addASTChild(currentAST, returnAST); break; } case LITERAL_return: case LITERAL_order: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { switch ( LA(1)) { case LITERAL_order: { orderByClause(); astFactory.addASTChild(currentAST, returnAST); break; } case LITERAL_return: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } AST tmp169_AST = null; tmp169_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp169_AST); match(LITERAL_return); exprSingle(); astFactory.addASTChild(currentAST, returnAST); flworExpr_AST = (AST)currentAST.root; returnAST = flworExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/722cca774247887cf67fef993c71f848a05e075f/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1183,
91,
280,
4742,
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,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1183,
91,
280,
4742,
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,
20... |
public void seek(int ms){ handleNotifierTypePlayback(Xmmsclient.xmmsc_playback_seek_ms(xbo.connectionOne, ms)); handleNotifierTypePlayback(Xmmsclient.xmmsc_playback_tickle(xbo.connectionOne)); } | public void seek(int ms) { handleNotifierTypePlayback(Xmmsclient.xmmsc_playback_seek_ms( xbo.connectionOne, ms)); handleNotifierTypePlayback(Xmmsclient .xmmsc_playback_tickle(xbo.connectionOne)); } | public void seek(int ms){ handleNotifierTypePlayback(Xmmsclient.xmmsc_playback_seek_ms(xbo.connectionOne, ms)); handleNotifierTypePlayback(Xmmsclient.xmmsc_playback_tickle(xbo.connectionOne)); } | 2034 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2034/402d9111e257c0d0287af966f956df357886940a/Xmms2.java/clean/src/clients/lib/java/src/org/xmms2/Xmms2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6520,
12,
474,
4086,
15329,
202,
202,
4110,
14889,
559,
30569,
12,
60,
81,
959,
2625,
18,
92,
81,
959,
71,
67,
1601,
823,
67,
16508,
67,
959,
12,
92,
1075,
18,
4071,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6520,
12,
474,
4086,
15329,
202,
202,
4110,
14889,
559,
30569,
12,
60,
81,
959,
2625,
18,
92,
81,
959,
71,
67,
1601,
823,
67,
16508,
67,
959,
12,
92,
1075,
18,
4071,
... |
Rectangle area= fTextWidget.getClientArea(); e.gc.setForeground(fColor); e.gc.setLineStyle(fLineStyle); e.gc.setLineWidth(fLineWidth); e.gc.drawLine(fCachedX, 0, fCachedX, area.height); | int x= fCachedWidgetX - fTextWidget.getHorizontalPixel(); if (x >= 0) { Rectangle area= fTextWidget.getClientArea(); e.gc.setForeground(fColor); e.gc.setLineStyle(fLineStyle); e.gc.setLineWidth(fLineWidth); e.gc.drawLine(x, 0, x, area.height); } | public void paintControl(PaintEvent e) { if (fTextWidget != null) { Rectangle area= fTextWidget.getClientArea(); e.gc.setForeground(fColor); e.gc.setLineStyle(fLineStyle); e.gc.setLineWidth(fLineWidth); e.gc.drawLine(fCachedX, 0, fCachedX, area.height); } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b7ef4d3ba5800de60ad877ffd4eb1328c6d6bffc/PrintMarginPainter.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/PrintMarginPainter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
3367,
12,
12699,
1133,
425,
13,
288,
202,
202,
430,
261,
74,
1528,
4609,
480,
446,
13,
288,
1082,
202,
19463,
5091,
33,
284,
1528,
4609,
18,
588,
1227,
5484,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
3367,
12,
12699,
1133,
425,
13,
288,
202,
202,
430,
261,
74,
1528,
4609,
480,
446,
13,
288,
1082,
202,
19463,
5091,
33,
284,
1528,
4609,
18,
588,
1227,
5484,
5621,... |
public org.quickfix.field.RawData getRawData() throws FieldNotFound { org.quickfix.field.RawData value = new org.quickfix.field.RawData(); | public quickfix.field.RawData getRawData() throws FieldNotFound { quickfix.field.RawData value = new quickfix.field.RawData(); | public org.quickfix.field.RawData getRawData() throws FieldNotFound { org.quickfix.field.RawData value = new org.quickfix.field.RawData(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/clean/src/java/src/quickfix/fix43/Email.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
10547,
751,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
10547,
751,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
31733,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
... |
} else if(threshold == upperThreshold) { return; | } else if(threshold == upperThreshold) { return; | public void setUpperThreshold(int threshold) { getReadWriteLock().writeLock().lock(); try { // the index at the new threshold int newListIndex = 0; // Threshold change is irrelevant if(sourceSize == 0) { upperThreshold = threshold; upperThresholdIndex = -1; return; // Threshold is unchanged } else if(threshold == upperThreshold) { return; // Threshold is changed } else { newListIndex = ((SortedList)source).indexOfSimulated(new Integer(threshold+1)) - 1; } // update the threshold upperThreshold = threshold; // the index at the threshold has not changed if(newListIndex == upperThresholdIndex) { return; } // the index at the threshold has changed but no event should be thrown if((newListIndex == -1 && upperThresholdIndex == 0) || (newListIndex == 0 && upperThresholdIndex == -1) || (newListIndex == size() && upperThresholdIndex == size() - 1) || (newListIndex == size() - 1 && upperThresholdIndex == size())) { upperThresholdIndex = newListIndex; return; } // Changes are necessary so prepare an event updates.beginEvent(); // The threshold is lower if(newListIndex < upperThresholdIndex) { updates.addDelete(newListIndex + 1, upperThresholdIndex - Math.max(lowerThresholdIndex, 0)); // The threshold is higher } else if(newListIndex > upperThresholdIndex) { updates.addInsert(upperThresholdIndex - Math.max(lowerThresholdIndex, 0) + 1, newListIndex); } // Update the upperThresholdIndex and fire the event upperThresholdIndex = newListIndex; updates.commitEvent(); } finally { getReadWriteLock().writeLock().unlock(); } } | 10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/ad21a8542996b641c3d0e33b914fc91b8ee5f419/ThresholdList.java/clean/source/ca/odell/glazedlists/ThresholdList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5988,
7614,
12,
474,
5573,
13,
288,
3639,
19900,
3067,
2531,
7675,
2626,
2531,
7675,
739,
5621,
3639,
775,
288,
5411,
368,
326,
770,
622,
326,
394,
5573,
5411,
509,
23605,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5988,
7614,
12,
474,
5573,
13,
288,
3639,
19900,
3067,
2531,
7675,
2626,
2531,
7675,
739,
5621,
3639,
775,
288,
5411,
368,
326,
770,
622,
326,
394,
5573,
5411,
509,
23605,... |
if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } | Object wrapped = NativeJavaObject.wrap(scope, retval, staticType); | public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { // Find a method that matches the types given. if (methods.length == 0) { throw new RuntimeException("No methods defined for call"); } Method meth = (Method) findFunction(methods, args); if (meth == null) { Class c = methods[0].getDeclaringClass(); String sig = c.getName() + "." + functionName + "(" + scriptSignature(args) + ")"; throw Context.reportRuntimeError1("msg.java.no_such_method", sig); } // OPT: already retrieved in findFunction, so we should inline that // OPT: or pass it back somehow Class paramTypes[] = meth.getParameterTypes(); // First, we marshall the args. for (int i = 0; i < args.length; i++) { args[i] = NativeJavaObject.coerceType(paramTypes[i], args[i]); } Object javaObject; if (Modifier.isStatic(meth.getModifiers())) { javaObject = null; // don't need an object } else { Scriptable o = thisObj; while (!(o instanceof Wrapper)) { o = o.getPrototype(); if (o == null) { throw Context.reportRuntimeError1( "msg.nonjava.method", functionName); } } javaObject = ((Wrapper) o).unwrap(); } retry: for (int attempt=0; ; attempt++) { try { if (debug) { printDebug("Calling ", meth, args); } Object retval = meth.invoke(javaObject, args); Class staticType = meth.getReturnType(); if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } Object wrapped = NativeJavaObject.wrap(scope, retval, staticType); if (debug) { Class actualType = (wrapped == null) ? null : wrapped.getClass(); System.err.println(" ----- Wrapped as " + wrapped + " class = " + actualType); } if (wrapped == Undefined.instance) return wrapped; if (wrapped == null && staticType == Void.TYPE) return Undefined.instance; return wrapped; } catch (IllegalAccessException accessEx) { if (Modifier.isPublic(meth.getModifiers()) && attempt == 0) { /** * Due to a bug in Suns VM, public methods in private * classes are not accessible by default (Sun Bug #4071593). * We have to explicitly set the method accessible * via meth.setAccessible(true) but we have to use * reflection because the setAccessible() in Method is * not available under jdk 1.1. We wait until a failure * to retry to avoid the overhead of this call on cases * that don't require it. */ if (method_setAccessible != null) { Object[] args_wrapper = { Boolean.TRUE }; try { method_setAccessible.invoke(meth, args_wrapper); } catch (IllegalAccessException ex) { } catch (IllegalArgumentException ex) { } catch (InvocationTargetException ex) { } } continue retry; } throw Context.reportRuntimeError( "While attempting to call \"" + meth.getName() + "\" in class \"" + meth.getDeclaringClass().getName() + "\" receieved " + accessEx.toString()); } catch (InvocationTargetException e) { throw JavaScriptException.wrapException(scope, e); } } } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/89980f6098186df87434167d15fb96356951d3f6/NativeJavaMethod.java/buggy/src/org/mozilla/javascript/NativeJavaMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
368,
4163,
279,
707,
716,
1885,
326,
1953,
864,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
368,
4163,
279,
707,
716,
1885,
326,
1953,
864,... |
connector.synchronizeChanged(repository, new SubProgressMonitor(monitor, 1)); | monitor.worked(1); | public IStatus run(IProgressMonitor monitor) { if (TaskListView.getFromActivePerspective() != null) { try { //MylarStatusHandler.log("ScheduledTaskListSyncJob Time: "+(new Date()).toString(), this); taskList = taskListManager.getTaskList(); List<TaskRepository>repositories = MylarTaskListPlugin.getRepositoryManager().getAllRepositories(); if(monitor != null) { monitor.beginTask("Repository Synchronization", repositories.size()); } for (TaskRepository repository : repositories) { AbstractRepositoryConnector connector = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(repository.getKind()); if(connector == null) { if(monitor != null) { monitor.worked(1); } continue; } Set<AbstractRepositoryQuery> queries = Collections.unmodifiableSet(taskList.getRepositoryQueries(repository.getUrl())); if(queries.size() > 0) { if(connector != null) { connector.synchronize(queries, null, Job.DECORATE, 0, false); } } //Set<AbstractRepositoryTask> tasks = Collections.unmodifiableSet(taskList.getRepositoryTasks(repository.getUrl())); connector.synchronizeChanged(repository, new SubProgressMonitor(monitor, 1)); } } finally { count++; if (count == Long.MAX_VALUE) count = 0; if (scheduleDelay != -1) { schedule(scheduleDelay); } if(monitor != null) { monitor.done(); } } } return Status.OK_STATUS; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/1e68e51b0aaf08b6aac49f3da6bda5ddc01eeb08/ScheduledTaskListSynchJob.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ScheduledTaskListSynchJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
430,
261,
2174,
682,
1767,
18,
588,
1265,
3896,
14781,
16772,
1435,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
430,
261,
2174,
682,
1767,
18,
588,
1265,
3896,
14781,
16772,
1435,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,... |
System.out.println("state: "+model.getState()); | public void setHierarchyRoot(int rootLevel, long rootID) { int oldLevel = model.getRootLevel(); model.setHierarchyRoot(rootLevel, rootID); System.out.println("state: "+model.getState()); if (model.getState() == READY) firePropertyChange(HIERARCHY_ROOT_PROPERTY, new Integer(oldLevel), new Integer(rootLevel)); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12074,
2375,
12,
474,
1365,
2355,
16,
1525,
1365,
734,
13,
565,
288,
3639,
509,
1592,
2355,
273,
938,
18,
588,
2375,
2355,
5621,
3639,
938,
18,
542,
12074,
2375,
12,
308... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
12074,
2375,
12,
474,
1365,
2355,
16,
1525,
1365,
734,
13,
565,
288,
3639,
509,
1592,
2355,
273,
938,
18,
588,
2375,
2355,
5621,
3639,
938,
18,
542,
12074,
2375,
12,
308... | |
FeedCacheEntry entry = (FeedCacheEntry) cache.getItem (cacheKey); lastSeen = entry.getTimestamp(); | FeedCacheEntry entry = cache.getItemByURL (feedURL); | private void setIfModifiedSinceHeader (URLConnection conn, FeedInfo feedInfo) { long lastSeen = 0; boolean hasChanged = false; String cacheKey = feedInfo.getCacheKey(); URL feedURL = feedInfo.getURL(); if ((cache != null) && (cache.contains (cacheKey))) { FeedCacheEntry entry = (FeedCacheEntry) cache.getItem (cacheKey); lastSeen = entry.getTimestamp(); if (lastSeen > 0) { if (log.isDebugEnabled()) { log.debug ("Setting If-Modified-Since header for feed \"" + feedURL.toString() + "\" to: " + String.valueOf (lastSeen) + " (" + new Date (lastSeen).toString() + ")"); } conn.setIfModifiedSince (lastSeen); } } } | 71 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/71/d90b2000d9c25ef9fb64d9431407263fb275ddcd/FeedDownloadThread.java/clean/src/org/clapper/curn/FeedDownloadThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
2047,
29943,
1864,
261,
14790,
1487,
16,
4766,
6647,
14013,
966,
1377,
4746,
966,
13,
565,
288,
3639,
1525,
377,
1142,
15160,
273,
374,
31,
3639,
1250,
225,
711,
5033,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
2047,
29943,
1864,
261,
14790,
1487,
16,
4766,
6647,
14013,
966,
1377,
4746,
966,
13,
565,
288,
3639,
1525,
377,
1142,
15160,
273,
374,
31,
3639,
1250,
225,
711,
5033,
273... |
public ContentCollectionEdit addCollection(String id) throws IdUsedException, IdInvalidException, PermissionException, InconsistentException; | public ContentCollection addCollection(String id, ResourceProperties properties) throws IdUsedException, IdInvalidException, PermissionException, InconsistentException; | public ContentCollectionEdit addCollection(String id) throws IdUsedException, IdInvalidException, PermissionException, InconsistentException; | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/a1ac99f1467ad061254324c0fba2ff51e66fa170/ContentHostingService.java/buggy/content/content-api/api/src/java/org/sakaiproject/content/api/ContentHostingService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3697,
2532,
4666,
527,
2532,
12,
780,
612,
13,
1216,
3124,
6668,
503,
16,
3124,
1941,
503,
16,
8509,
503,
16,
1082,
202,
382,
16952,
503,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3697,
2532,
4666,
527,
2532,
12,
780,
612,
13,
1216,
3124,
6668,
503,
16,
3124,
1941,
503,
16,
8509,
503,
16,
1082,
202,
382,
16952,
503,
31,
2,
-100,
-100,
-100,
-100,
-100,
... |
if (decorationReady || oldText == null || settings.getText().length() == 0) { | if (decorationReady || oldText == null || settings.getText().length() == 0) { | public void updateLabel(ViewerLabel settings, Object element) { ILabelDecorator currentDecorator = getLabelDecorator(); String oldText = settings.getText(); boolean decorationReady = true; if (currentDecorator instanceof IDelayedLabelDecorator) { IDelayedLabelDecorator delayedDecorator = (IDelayedLabelDecorator) currentDecorator; if (!delayedDecorator.prepareDecoration(element, oldText)) { // The decoration is not ready but has been queued for processing decorationReady = false; } } // update icon and label if (decorationReady || oldText == null || settings.getText().length() == 0) { settings.setText(getText(element)); } Image oldImage = settings.getImage(); if (decorationReady || oldImage == null) { settings.setImage(getImage(element)); } if(decorationReady) { updateForDecorationReady(settings,element); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5bcafc0252d4c47fe30b3060d164b8946160c9e2/DecoratingLabelProvider.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/DecoratingLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
2224,
12,
18415,
2224,
1947,
16,
1033,
930,
13,
288,
3639,
467,
2224,
10361,
783,
10361,
273,
11237,
10361,
5621,
3639,
514,
1592,
1528,
273,
1947,
18,
588,
1528,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
2224,
12,
18415,
2224,
1947,
16,
1033,
930,
13,
288,
3639,
467,
2224,
10361,
783,
10361,
273,
11237,
10361,
5621,
3639,
514,
1592,
1528,
273,
1947,
18,
588,
1528,
5621,
3... |
setRowColumn(row, column + 1, true); | setRowColumn(row, Math.min(table.getColumnCount() - 1, column + 1), true); | void keyDown(Event event) { switch (event.character) { case SWT.CR : notifyListeners(SWT.DefaultSelection, new Event()); return; } switch (event.keyCode) { case SWT.ARROW_UP : setRowColumn(row - 1, column, true); break; case SWT.ARROW_DOWN : setRowColumn(row + 1, column, true); break; case SWT.ARROW_LEFT : case SWT.ARROW_RIGHT : { int leadKey = (getStyle() & SWT.RIGHT_TO_LEFT) != 0 ? SWT.ARROW_RIGHT : SWT.ARROW_LEFT; if (event.keyCode == leadKey) { setRowColumn(row, column - 1, true); } else { setRowColumn(row, column + 1, true); } break; } case SWT.HOME : setRowColumn(0, column, true); break; case SWT.END : { int i = table.getItemCount() - 1; setRowColumn(i, column, true); break; } case SWT.PAGE_UP : { int index = table.getTopIndex(); if (index == row) { Rectangle rect = table.getClientArea(); TableItem item = table.getItem(index); Rectangle itemRect = item.getBounds(0); rect.height -= itemRect.y; int height = table.getItemHeight(); int page = Math.max(1, rect.height / height); index = Math.max(0, index - page + 1); } setRowColumn(index, column, true); break; } case SWT.PAGE_DOWN : { int index = table.getTopIndex(); Rectangle rect = table.getClientArea(); TableItem item = table.getItem(index); Rectangle itemRect = item.getBounds(0); rect.height -= itemRect.y; int height = table.getItemHeight(); int page = Math.max(1, rect.height / height); int end = table.getItemCount() - 1; index = Math.min(end, index + page - 1); if (index == row) { index = Math.min(end, index + page - 1); } setRowColumn(index, column, true); break; } }} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/1858f5fc3e7b84156bcd8bb517bf8b12f702a323/TableCursor.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
498,
4164,
12,
1133,
871,
13,
288,
202,
9610,
261,
2575,
18,
11560,
13,
288,
202,
202,
3593,
348,
8588,
18,
5093,
294,
1082,
202,
12336,
5583,
12,
55,
8588,
18,
1868,
6233,
16,
394,
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,
918,
498,
4164,
12,
1133,
871,
13,
288,
202,
9610,
261,
2575,
18,
11560,
13,
288,
202,
202,
3593,
348,
8588,
18,
5093,
294,
1082,
202,
12336,
5583,
12,
55,
8588,
18,
1868,
6233,
16,
394,
2... |
+ getChild( (left == null? 0 : 1) ).literal() | + jjtGetChild( (left == null? 0 : 1) ).literal() | public boolean evaluate( InternalContextAdapter context) throws MethodInvocationException { Object left = getChild(0).value( context ); Object right = getChild(1).value( context ); /* * null check */ if ( left == null || right == null) { log.error((left == null ? "Left" : "Right") + " side (" + getChild( (left == null? 0 : 1) ).literal() + ") of '!=' operation has null value." + " Operation not possible. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return false; } /* * convert to Number if applicable */ if (left instanceof TemplateNumber) { left = ( (TemplateNumber) left).getAsNumber(); } if (right instanceof TemplateNumber) { right = ( (TemplateNumber) right).getAsNumber(); } /* * If comparing Numbers we do not care about the Class. */ if (left instanceof Number && right instanceof Number) { return MathUtils.compare ( (Number)left,(Number)right) != 0; } /** * assume that if one class is a subclass of the other * that we should use the equals operator */ if (left.getClass().isAssignableFrom(right.getClass()) || right.getClass().isAssignableFrom(left.getClass()) ) { return !left.equals( right ); } else { /** * Compare the String representations */ if ((left.toString() == null) || (right.toString() == null)) { log.error((left.toString() == null ? "Left" : "Right") + " string side " + "String representation (" + getChild( (left == null? 0 : 1) ).literal() + ") of '!=' operation has null value." + " Operation not possible. " + context.getCurrentTemplateName() + " [line " + getLine() + ", column " + getColumn() + "]"); return false; } else { return !left.toString().equals(right.toString()); } } } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/ffd2ff2dfe7b66ecdf6202dbd2a01a645f853822/ASTNENode.java/clean/src/java/org/apache/velocity/runtime/parser/node/ASTNENode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5956,
12,
225,
3186,
1042,
4216,
819,
13,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1033,
2002,
273,
8154,
12,
20,
2934,
1132,
12,
819,
11272,
3639,
1033,
2145,
273,
8154,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
5956,
12,
225,
3186,
1042,
4216,
819,
13,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1033,
2002,
273,
8154,
12,
20,
2934,
1132,
12,
819,
11272,
3639,
1033,
2145,
273,
8154,
... |
type = (String) hash.get("content_type_out"); | type = (String) hash.get("result_type"); | public ArrayList getSchemaStylesheets(String schema) throws DCMException { Vector hcSchemas; ArrayList stls = new ArrayList(); try { DbModuleIF dbM = GDEMServices.getDbModule(); ConversionService cs = new ConversionService(); Vector stylesheets = cs.listConversions(schema); for (int i = 0; i < stylesheets.size(); i++) { Hashtable hash = (Hashtable) stylesheets.get(i); String convert_id = (String) hash.get("convert_id"); String xsl = (String) hash.get("xsl"); String type; String description = (String) hash.get("description"); String last_modified = ""; boolean ddConv = false; String xslUrl; if (!xsl.startsWith(Properties.gdemURL + "/do/getStylesheet?id=")) { xslUrl = Properties.gdemURL + "/" + Names.XSL_FOLDER + (String) hash.get("xsl"); type = (String) hash.get("result_type"); } else { xslUrl = (String) hash.get("xsl"); ddConv = true; type = (String) hash.get("content_type_out"); } Stylesheet stl = new Stylesheet(); // st.setConvId(1); stl.setType(type); stl.setXsl(xslUrl); stl.setXsl_descr((String) hash.get("description")); stl.setConvId((String) hash.get("convert_id")); stl.setDdConv(ddConv); stls.add(stl); } } catch (Exception e) { _logger.error("Error getting schema stylesheets",e); throw new DCMException(BusinessConstants.EXCEPTION_GENERAL); } return stls; } | 6392 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6392/0efd4e8260584ba0f80e345018e90f278fe86007/SchemaManager.java/buggy/src/eionet/gdem/dcm/business/SchemaManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2407,
11088,
9725,
10245,
12,
780,
1963,
13,
1216,
463,
9611,
503,
288,
202,
202,
5018,
11684,
16749,
31,
202,
202,
19558,
384,
3251,
273,
394,
2407,
5621,
202,
202,
698,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2407,
11088,
9725,
10245,
12,
780,
1963,
13,
1216,
463,
9611,
503,
288,
202,
202,
5018,
11684,
16749,
31,
202,
202,
19558,
384,
3251,
273,
394,
2407,
5621,
202,
202,
698,
288,
... |
String status; if(isRoutable()) status = "CONNECTED"; else if (isConnected()) status = "INCOMPATIBLE"; else status = "DISCONNECTED"; return status + " " + getPeer()+" "+myName+" "+currentLocation.getValue()+" "+getVersion()+" backoff: "+routingBackoffLength+" ("+(Math.max(routingBackedOffUntil - System.currentTimeMillis(),0))+")"; | return getPeerNodeStatusString() + " " + getPeer()+" "+myName+" "+currentLocation.getValue()+" "+getVersion()+" backoff: "+getRoutingBackoffLength()+" ("+(Math.max(getRoutingBackedOffUntil() - System.currentTimeMillis(),0))+")"; | public String getStatus() { String status; if(isRoutable()) status = "CONNECTED"; else if (isConnected()) status = "INCOMPATIBLE"; else status = "DISCONNECTED"; return status + " " + getPeer()+" "+myName+" "+currentLocation.getValue()+" "+getVersion()+" backoff: "+routingBackoffLength+" ("+(Math.max(routingBackedOffUntil - System.currentTimeMillis(),0))+")"; } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/7575bc3fb32360236cef62f655076b5de182f7d4/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
5870,
1435,
288,
377,
202,
780,
1267,
31,
377,
202,
430,
12,
291,
4583,
429,
10756,
377,
202,
202,
2327,
273,
315,
29011,
14432,
377,
202,
12107,
309,
261,
291,
8932,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
5870,
1435,
288,
377,
202,
780,
1267,
31,
377,
202,
430,
12,
291,
4583,
429,
10756,
377,
202,
202,
2327,
273,
315,
29011,
14432,
377,
202,
12107,
309,
261,
291,
8932,
10756,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.