rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (sendTypingNotification) { SparkManager.getMessageEventManager().sendComposingNotification(getParticipantJID(), threadID); }
SparkManager.getMessageEventManager().sendComposingNotification(getParticipantJID(), threadID);
public void insertUpdate(DocumentEvent e) { checkForText(e); lastTypedCharTime = System.currentTimeMillis(); // If the user pauses for more than two seconds, send out a new notice. if (sendNotification) { try { if (sendTypingNotification) { SparkManager.getMessageEventManager().sendComposingNotification(getParticipantJID(), threadID); } sendNotification = false; } catch (Exception exception) { Log.error("Error updating", exception); } } }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatRoomImpl.java/buggy/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java
} catch (InvocationTargetException itExcptn) { convertException(recv.getRuntime(), (Exception)itExcptn.getTargetException()); return recv.getRuntime().getNil(); } catch (Exception excptn) {
} catch (InvocationTargetException itException) { convertException(recv.getRuntime(), (Exception)itException.getTargetException()); Asserts.notReached(); return null; } catch (IllegalAccessException iaException) { convertException(recv.getRuntime(), iaException);
public IRubyObject execute(IRubyObject recv, IRubyObject[] args) { Method method = findMatchingMethod(args); if (method == null) { if (callSuper) { return recv.getRuntime().callSuper(args); } else { throw new ArgumentError(recv.getRuntime(), "wrong argument count or types."); } } int argsLength = args != null ? args.length : 0; Object[] newArgs = new Object[argsLength]; for (int i = 0; i < argsLength; i++) { newArgs[i] = JavaUtil.convertRubyToJava(recv.getRuntime(), args[i], method.getParameterTypes()[i]); } try { Object receiver = !singleton ? ((RubyJavaObject)recv).getValue() : null; return JavaUtil.convertJavaToRuby(recv.getRuntime(), method.invoke(receiver, newArgs)); } catch (InvocationTargetException itExcptn) { convertException(recv.getRuntime(), (Exception)itExcptn.getTargetException()); return recv.getRuntime().getNil(); } catch (Exception excptn) { Asserts.notReached(); return null; } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12474ae3e4d78d19edc11ac6e29bd9d6e4c50405/JavaMethod.java/clean/org/jruby/javasupport/JavaMethod.java
if (ruby.getClassMap().get(id) != null) { return (RubyObject)ruby.getClassMap().get(id); }
protected RubyObject getConstant(NODE cref, RubyId id, RubyObject self) { NODE cbase = cref; while (cbase != null && cbase.nd_next() != null) { RubyObject rubyClass = (RubyObject)cbase.nd_clss(); if (rubyClass.isNil()) { return self.getRubyClass().getConstant(id); } else if (rubyClass.getInstanceVariables().get(id) != null) { return (RubyObject)rubyClass.getInstanceVariables().get(id); } cbase = cbase.nd_next(); } return ((RubyModule)cref.nd_clss()).getConstant(id); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java
protected void setUp() throws Exception { sr = new SaxReader("type.xml"); }
protected void setUp() throws Exception { sr = new SaxReader("type.xml"); }
protected void setUp() throws Exception { sr = new SaxReader("type.xml"); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/306e0ec280af470b0bdfe8da828534caf7ee2496/ExampleUsageTest.java/clean/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
protected void tearDown() throws Exception { sr = null; }
protected void tearDown() throws Exception { sr = null; }
protected void tearDown() throws Exception { sr = null; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/306e0ec280af470b0bdfe8da828534caf7ee2496/ExampleUsageTest.java/clean/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
public void testONE() { Set set = sr.parse(); log.info("Results of parse:"+set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); Map h = new HashMap(); h.put("test", "this was a dynamic key test"); vh.put("test", h); String s = vh.invoke("ome/dsl/mapping.vm"); log.info("Results of invoke:"+s); }
public void testONE() { Set set = sr.parse(); log.info("Results of parse:" + set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type", st); Map h = new HashMap(); h.put("test", "this was a dynamic key test"); vh.put("test", h); String s = vh.invoke("ome/dsl/mapping.vm"); log.info("Results of invoke:" + s); }
public void testONE() { Set set = sr.parse(); log.info("Results of parse:"+set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); Map h = new HashMap(); h.put("test", "this was a dynamic key test"); vh.put("test", h); String s = vh.invoke("ome/dsl/mapping.vm"); log.info("Results of invoke:"+s); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/306e0ec280af470b0bdfe8da828534caf7ee2496/ExampleUsageTest.java/clean/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
}
}
public void testONE() { Set set = sr.parse(); log.info("Results of parse:"+set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); Map h = new HashMap(); h.put("test", "this was a dynamic key test"); vh.put("test", h); String s = vh.invoke("ome/dsl/mapping.vm"); log.info("Results of invoke:"+s); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/306e0ec280af470b0bdfe8da828534caf7ee2496/ExampleUsageTest.java/clean/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
public void testReal() throws Exception { SaxReader nsr = new SaxReader("Mappings.xml"); for (Iterator it = nsr.parse().iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml"); vh.invoke("ome/dsl/mapping.vm",fw); fw.flush(); fw.close(); } }
public void testReal() throws Exception { File currentDir = new File(System.getProperty("user.dir")); File mappings = new File(currentDir.getParent() + File.separator + "common" + File.separator + "resources" + File.separator + "Mappings.ome.xml"); log.error(mappings); SaxReader nsr = new SaxReader(mappings); for (Iterator it = nsr.parse().iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type", st); StringWriter sw = new StringWriter(); vh.invoke("ome/dsl/mapping.vm", sw); sw.flush(); sw.close(); } }
public void testReal() throws Exception { SaxReader nsr = new SaxReader("Mappings.xml"); for (Iterator it = nsr.parse().iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml"); vh.invoke("ome/dsl/mapping.vm",fw); fw.flush(); fw.close(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/306e0ec280af470b0bdfe8da828534caf7ee2496/ExampleUsageTest.java/clean/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
public void testWithWriting() throws Exception{ Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml"); vh.invoke("ome/dsl/mapping.vm",fw); fw.flush(); fw.close(); } }
public void testWithWriting() throws Exception { Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type", st); StringWriter sw = new StringWriter(); vh.invoke("ome/dsl/mapping.vm", sw); sw.flush(); sw.close(); } }
public void testWithWriting() throws Exception{ Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type",st); FileWriter fw = new FileWriter("/tmp/"+st.getId().replaceAll("[.]","_")+".hbm.xml"); vh.invoke("ome/dsl/mapping.vm",fw); fw.flush(); fw.close(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/306e0ec280af470b0bdfe8da828534caf7ee2496/ExampleUsageTest.java/clean/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
{ setBorder(null); setLayout(new FlowLayout(FlowLayout.LEFT)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(this, registry, manager, magFactor); add(zoomBar); add(separator); }
{ setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(registry, manager, magFactor); lensBar = new LensBar(registry, manager); add(zoomBar); add(Box.createRigidArea(HBOX)); add(new JSeparator(JSeparator.HORIZONTAL)); add(lensBar); add(new JSeparator(JSeparator.HORIZONTAL)); add(Box.createRigidArea(HBOX)); }
public ToolBar(Registry registry, ImageInspectorManager manager, double magFactor) { setBorder(null); setLayout(new FlowLayout(FlowLayout.LEFT)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(this, registry, manager, magFactor); add(zoomBar); add(separator); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ToolBar.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ToolBar.java
int index = Integer.parseInt(e.getActionCommand());
int index = -1;
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case SAVE: saveDisplayOptions(); break; case RESET_DEFAULTS: resetDefaults(); break; case GREY: case RGB: case HSB: activateRenderingModel(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/821d4f7a003d25f9dccd2eaf7e886336cbdefc95/RenderingAgtCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java
index = Integer.parseInt(e.getActionCommand());
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case SAVE: saveDisplayOptions(); break; case RESET_DEFAULTS: resetDefaults(); break; case GREY: case RGB: case HSB: activateRenderingModel(index); break; } } catch(NumberFormatException nfe) { throw new Error("Invalid Action ID "+index, nfe); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/821d4f7a003d25f9dccd2eaf7e886336cbdefc95/RenderingAgtCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java
Class c = getRendererClass(i); presentation.setModelPane(activate(c), true);
presentation.setModelPane(activate(getRendererClass(i)), true);
public void activateRenderingModel(int i) { Class c = getRendererClass(i); presentation.setModelPane(activate(c), true); QuantumPane qp = presentation.getQuantumPane(); if (i == GREY) { qp.setSelectionWavelengthsEnable(false); ChannelData[] channelData = getChannelData(); for (int j = 0; j < channelData.length; j++) { if (isActive(j)) { qp.setSelectedWavelength(j); presentation.getTabs().setSelectedIndex( RenderingAgtUIF.POS_MODEL); break; } } } else qp.setSelectionWavelengthsEnable(true); abstraction.setModel(i); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/821d4f7a003d25f9dccd2eaf7e886336cbdefc95/RenderingAgtCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java
public RenderingAgtUIF getReferenceFrame() { return presentation; }
public RenderingAgtUIF getReferenceFrame() { return presentation; }
public RenderingAgtUIF getReferenceFrame() { return presentation; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/821d4f7a003d25f9dccd2eaf7e886336cbdefc95/RenderingAgtCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java
public void saveDisplayOptions() { abstraction.saveDisplayOptions(); }
public void saveDisplayOptions() { abstraction.saveDisplayOptions(); }
public void saveDisplayOptions() { abstraction.saveDisplayOptions(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/821d4f7a003d25f9dccd2eaf7e886336cbdefc95/RenderingAgtCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java
public void setMappingPane() { presentation.setMappingPane(); }
public void setMappingPane() { presentation.setMappingPane(); }
public void setMappingPane() { presentation.setMappingPane(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/821d4f7a003d25f9dccd2eaf7e886336cbdefc95/RenderingAgtCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java
VALUE ID2SYM(ID id) {
RubyObject ID2SYM(ID id) {
VALUE ID2SYM(ID id) { return RubySymbol.m_newSymbol(ruby, (RubyId)id); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE INT2FIX(int i) { return new RubyFixnum(ruby, i); }
RubyObject INT2FIX(int i) { return new RubyFixnum(ruby, i); }
VALUE INT2FIX(int i) { return new RubyFixnum(ruby, i); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
ID SYM2ID(VALUE symbol) {
RubyId SYM2ID(VALUE symbol) {
ID SYM2ID(VALUE symbol) { return ((RubySymbol)symbol).getId(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
ruby.getInterpreter().setDynamicVars(vars);
ruby.setDynamicVars(vars);
private void dyna_pop(RubyVarmap vars) { lvtbl.dlev--; ruby.getInterpreter().setDynamicVars(vars); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
RubyVarmap vars = ruby.getInterpreter().getDynamicVars();
RubyVarmap vars = ruby.getDynamicVars();
private RubyVarmap dyna_push() { RubyVarmap vars = ruby.getInterpreter().getDynamicVars(); rb_dvar_push(null, null); lvtbl.dlev++; return vars; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_ary_new() {
RubyObject rb_ary_new() {
VALUE rb_ary_new() { return rb_ary_new2(16); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_ary_new2(int size) { return rom.rb_ary_new2(size);
RubyObject rb_ary_new2(int size) { return RubyArray.m_newArray(ruby, size);
VALUE rb_ary_new2(int size) { return rom.rb_ary_new2(size); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_const_get(VALUE clazz, ID name) { return rom.rb_const_get(clazz, name);
RubyObject rb_const_get(VALUE clazz, ID name) { return ((RubyModule)clazz).getConstant((RubyId)name);
VALUE rb_const_get(VALUE clazz, ID name) { return rom.rb_const_get(clazz, name); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_cstr2inum(String s, int radix) {
RubyObject rb_cstr2inum(String s, int radix) {
VALUE rb_cstr2inum(String s, int radix) { //XXX no support for _ or leading and trailing spaces return new RubyFixnum(ruby, Integer.parseInt(s, radix)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isCurrent((RubyId)id);
return RubyVarmap.isCurrent(ruby, (RubyId)id);
boolean rb_dvar_curr(ID id) { if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isCurrent((RubyId)id); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isDefined((RubyId)id);
return RubyVarmap.isDefined(ruby, (RubyId)id);
boolean rb_dvar_defined(ID id) { if (ruby.getInterpreter().getDynamicVars() == null) { return false; } return ruby.getInterpreter().getDynamicVars().isDefined((RubyId)id); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
if (ruby.getInterpreter().getDynamicVars() == null) { ruby.getInterpreter().setDynamicVars(new_dvar(id, value, null)); } else { ruby.getInterpreter().getDynamicVars().push((RubyId)id, (RubyObject)value); }
RubyVarmap.push(ruby, (RubyId)id, (RubyObject)value);
void rb_dvar_push(ID id, VALUE value) { if (ruby.getInterpreter().getDynamicVars() == null) { ruby.getInterpreter().setDynamicVars(new_dvar(id, value, null)); } else { ruby.getInterpreter().getDynamicVars().push((RubyId)id, (RubyObject)value); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_float_new(double d) { return RubyFloat.m_newFloat(ruby, d); }
RubyObject rb_float_new(double d) { return RubyFloat.m_newFloat(ruby, d); }
VALUE rb_float_new(double d) { return RubyFloat.m_newFloat(ruby, d); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_funcall(VALUE v1, char c, int j, VALUE v) {
RubyObject rb_funcall(VALUE v1, char c, int j, VALUE v) {
VALUE rb_funcall(VALUE v1, char c, int j, VALUE v) { return rb_funcall(v1, ruby.intern(String.valueOf(c)), j, v); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_hash_aref(VALUE hash, VALUE key) {throw missing();}
RubyObject rb_hash_aref(VALUE hash, VALUE key) {throw missing();}
VALUE rb_hash_aref(VALUE hash, VALUE key) {throw missing();}
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_reg_new(String s, int len, int options) {
RubyObject rb_reg_new(String s, int len, int options) {
VALUE rb_reg_new(String s, int len, int options) { //XXX well... return new RubyRegexp(ruby, (RubyString)rb_str_new(s, len), options); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_str_concat(VALUE v, VALUE w) {
RubyObject rb_str_concat(VALUE v, VALUE w) {
VALUE rb_str_concat(VALUE v, VALUE w) { //XXX need to keep identity and tainting RubyString vs = (RubyString)v; if (FIXNUM_P(w)) vs.setString(vs.getString() + (char)FIX2INT(w)); else vs.setString(vs.getString() + ((RubyString)w).getString()); return vs; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_str_new(String s, int len) {
RubyObject rb_str_new(String s, int len) {
VALUE rb_str_new(String s, int len) { return new RubyString(ruby, s.substring(0, len)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
VALUE rb_str_new2(String s) {
RubyObject rb_str_new2(String s) {
VALUE rb_str_new2(String s) { return rb_str_new(s, s.length()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
if (ruby.getInterpreter().getDynamicVars() != null)
if (ruby.getDynamicVars() != null)
top_local_init() { local_push(); lvtbl.cnt = ruby.getRubyScope().getLocalTbl() != null ? ruby.getRubyScope().getLocalTbl(0).intValue() : 0; if (lvtbl.cnt > 0) { lvtbl.tbl = new ID[lvtbl.cnt+3]; System.arraycopy(lvtbl.tbl, 0, ruby.getRubyScope().getLocalTbl(), 0, lvtbl.cnt+1); } else { lvtbl.tbl = null; } if (ruby.getInterpreter().getDynamicVars() != null) lvtbl.dlev = 1; else lvtbl.dlev = 0; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/clean/org/jruby/parser/parse.java
if (cName == "float" || cName == "double") { return RubyFloat.m_newFloat(ruby, ((Number)object).doubleValue()); } return RubyFixnum.m_newFixnum(ruby, ((Number)object).longValue());
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { return RubyBoolean.m_newBoolean(ruby, ((Boolean)object).booleanValue()); } if (cName == "float" || cName == "double") { return RubyFloat.m_newFloat(ruby, ((Number)object).doubleValue()); } // else it's one of the integral types return RubyFixnum.m_newFixnum(ruby, ((Number)object).longValue()); } if (javaClass == String.class) { return RubyString.m_newString(ruby, object.toString()); } if (javaClass.isArray()) { Class arrayClass = javaClass.getComponentType(); int len = Array.getLength(object); RubyObject[] items = new RubyObject[len]; for (int i = 0; i < len; i++) { items[i] = convertJavaToRuby(ruby, Array.get(object, i), arrayClass); } return RubyArray.m_create(ruby, items); } return new RubyJavaObject(ruby, RubyJavaObject.loadClass(ruby, javaClass, null), object); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fade6779ce4c551242ffbaa10b1945d60088a541/JavaUtil.java/clean/org/jruby/javasupport/JavaUtil.java
transport = TransportManager.getTransport(serviceName);
transport = TransportUtils.getTransport(serviceName);
public TransportRegistrationDialog(String serviceName) { setLayout(new GridBagLayout()); this.serviceName = serviceName; ResourceUtils.resButton(registerButton, Res.getString("button.register")); ResourceUtils.resButton(cancelButton, Res.getString("button.cancel")); final JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); buttonPanel.add(registerButton); registerButton.requestFocus(); buttonPanel.add(cancelButton); transport = TransportManager.getTransport(serviceName); final TitlePanel titlePanel = new TitlePanel(transport.getTitle(), transport.getInstructions(), transport.getIcon(), true); add(titlePanel, new GridBagConstraints(0, 0, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); final JLabel usernameLabel = new JLabel(); usernameLabel.setFont(new Font("Dialog", Font.BOLD, 11)); ResourceUtils.resLabel(usernameLabel, usernameField, Res.getString("label.username") + ":"); add(usernameLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(usernameField, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); final JLabel passwordLabel = new JLabel(); passwordLabel.setFont(new Font("Dialog", Font.BOLD, 11)); ResourceUtils.resLabel(passwordLabel, passwordField, Res.getString("label.password") + ":"); add(passwordLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(passwordField, new GridBagConstraints(1, 2, 1, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); add(buttonPanel, new GridBagConstraints(0, 3, 2, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/TransportRegistrationDialog.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/gateways/TransportRegistrationDialog.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public void addCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().add(mapCtx.copy()); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.writeLock().unlock();
public void addCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().add(mapCtx.copy()); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{
try { pixelsObj = null; rendDefObj = null;
public void destroy() { rwl.writeLock().lock(); { renderer = null; } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.writeLock().unlock();
public void destroy() { rwl.writeLock().lock(); { renderer = null; } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
double result;
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
result = cb[w].getCoefficient().doubleValue();
return cb[w].getCoefficient().doubleValue(); } finally { rwl.readLock().unlock();
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public double getChannelCurveCoefficient(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getCoefficient().doubleValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
int result;
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
result = QuantumFactory.convertFamilyType(cb[w].getFamily());
return QuantumFactory.convertFamilyType(cb[w].getFamily()); } finally { rwl.readLock().unlock();
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public int getChannelFamily(int w) { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = QuantumFactory.convertFamilyType(cb[w].getFamily()); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
boolean result;
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
result = cb[w].getNoiseReduction().booleanValue();
return cb[w].getNoiseReduction().booleanValue(); } finally { rwl.readLock().unlock();
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public boolean getChannelNoiseReduction(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getNoiseReduction().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
double[] result;
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
} rwl.readLock().unlock(); return null ;
return null; } finally { rwl.readLock().unlock(); }
public double[] getChannelStats(int w) { double[] result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings();// FIXME// double[] stats = cb[w].getStats(), copy = new double[stats.length];// System.arraycopy(stats, 0, copy, 0, stats.length); } rwl.readLock().unlock(); return null ;// FIXME copy; // NOTE: These stats are supposed to be read-only; however we make a // copy to be on the safe side. }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
double result;
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
result = cb[w].getInputEnd().intValue();
return cb[w].getInputEnd().intValue(); } finally { rwl.readLock().unlock();
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public double getChannelWindowEnd(int w) { double result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputEnd().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
rwl.readLock().lock(); try { errorIfInvalidState();
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
result = cb[w].getInputStart().intValue();
return cb[w].getInputStart().intValue(); } finally { rwl.readLock().unlock();
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public double getChannelWindowStart(int w) { double result; rwl.readLock().unlock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getInputStart().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
int result;
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue();
try { errorIfNullRenderingDef(); return rendDefObj.getDefaultT().intValue(); } finally { rwl.readLock().unlock();
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public int getDefaultT() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultT().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
int result;
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue();
try { errorIfNullRenderingDef(); return rendDefObj.getDefaultZ().intValue(); } finally { rwl.readLock().unlock();
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public int getDefaultZ() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getDefaultZ().intValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
int result;
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = RenderingDefConstants.convertType(rendDefObj.getModel());
try { errorIfNullRenderingDef(); return RenderingDefConstants.convertType(rendDefObj.getModel()); } finally { rwl.readLock().unlock();
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public int getModel() { int result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); // TODO doesn't need render !!! other cases? result = RenderingDefConstants.convertType(rendDefObj.getModel()); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
QuantumDef result;
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization();
try { errorIfNullRenderingDef(); return rendDefObj.getQuantization(); } finally { rwl.readLock().unlock();
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public QuantumDef getQuantumDef() { QuantumDef result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.getRenderingDef().getQuantization(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
int[] rgba = new int[4];
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState(); int[] rgba = new int[4];
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return rgba;
public int[] getRGBA(int w) { int[] rgba = new int[4]; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); // int[] rgba = cb[w].getColor, copy = new int[rgba.length]; // System.arraycopy(rgba, 0, copy, 0, rgba.length); // return copy; // NOTE: The rgba is supposed to be read-only; however we make a // copy to be on the safe side. // TODO rgba[0] = cb[w].getColor().getRed().intValue(); rgba[1] = cb[w].getColor().getGreen().intValue(); rgba[2] = cb[w].getColor().getBlue().intValue(); rgba[3] = cb[w].getColor().getAlpha().intValue(); } rwl.readLock().unlock(); return rgba; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
return pixelsObj.getSizeX().intValue();
rwl.readLock().lock(); try { errorIfNullPixels(); return pixelsObj.getSizeX().intValue(); } finally { rwl.readLock().unlock(); }
public int getSizeX() { return pixelsObj.getSizeX().intValue(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
return pixelsObj.getSizeY().intValue();
rwl.readLock().lock(); try { errorIfNullPixels(); return pixelsObj.getSizeY().intValue(); } finally { rwl.readLock().unlock(); }
public int getSizeY() { return pixelsObj.getSizeY().intValue(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
boolean result;
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
result = cb[w].getActive().booleanValue();
return cb[w].getActive().booleanValue(); } finally { rwl.readLock().unlock();
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public boolean isActive(int w) { boolean result; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); result = cb[w].getActive().booleanValue(); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{
try { errorIfNullPixels();
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); }
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.writeLock().unlock();
public void load() { rwl.writeLock().lock(); { /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); StatsFactory sf = new StatsFactory(); if (pixelsObj == null) { throw new IllegalStateException("Pixels object not set."); } // FIXME: This should be stripped out /* if (rendDefObj == null) { this.rendDefObj = Helper.createDefaultRenderingDef(pixelsObj,pixelStats); pixelsObj.getSettings().add(rendDefObj); } */ renderer = new Renderer(pixelsObj, rendDefObj, buffer); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId);
try { this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId);
public void lookupPixels(long pixelsId) { rwl.writeLock().lock(); { this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId); this.renderer = null; } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.writeLock().unlock();
if (log.isDebugEnabled()) log.debug("lookupPixels for id "+pixelsId+" succeeded: "+this.pixelsObj);
public void lookupPixels(long pixelsId) { rwl.writeLock().lock(); { this.pixelsObj = pixMetaSrv.retrievePixDescription(pixelsId); this.renderer = null; } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{
try {
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
System.err.println(rendDefObj.toString());
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.writeLock().unlock();
if (log.isDebugEnabled()) log.debug("lookupRenderingDef for id "+pixelsId+" succeeded: "+this.rendDefObj);
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); System.err.println(rendDefObj.toString()); this.renderer = null; } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public void removeCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().remove(mapCtx.copy()); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.writeLock().unlock();
public void removeCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().remove(mapCtx.copy()); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.render(pd);
rwl.readLock().lock(); try { errorIfInvalidState(); return renderer.render(pd); } finally { rwl.readLock().unlock();
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.render(pd); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.readLock().unlock(); return result;
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); result = renderer.render(pd); } rwl.readLock().unlock(); return result; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
{ if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { errorIfInvalidState();
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
} finally { rwl.writeLock().unlock();
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
rwl.writeLock().unlock();
public void resetDefaults() { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.resetDefaults(); } rwl.writeLock().unlock(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/buggy/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java