rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } }
if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } }
protected void testArgsCount(Ruby ruby, RubyObject[] methodArgs) { if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgs...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java
if (view.isLensVisible())
if (view.isLensVisible()) {
public void setZoomFactor(double factor) { if (factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+"...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/ImViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java
view.scrollLens(); }
public void setZoomFactor(double factor) { if (factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+"...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/ImViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java
} catch (Exception e) { throw new IOException("Unicode conversion error: " + e);
private void writeChars(char[] cbuf, int offset, int len) throws IOException { try { if (_asciiHack) { // cheat while (len > 0) { int max = (len < _BSIZE) ? len : _BSIZE; for (int i = 0; i < max; i++) { _bbuf[i] = (byte) cbuf[i +...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/1ea887f7b197431dd85ca8259382755c7915dc7c/FastWriter.java/clean/webmacro/src/org/webmacro/FastWriter.java
final Long userId = CurrentDetails.getOwner().getId();
final Long userId = securitySystem.currentUserId();
public RenderingDef retrieveRndSettings(final long pixId) { final Long userId = CurrentDetails.getOwner().getId(); return (RenderingDef) iQuery.findByQuery( " select rdef from RenderingDef rdef where " + " rdef.pixels.id = :pixid and rdef.details.owner.id = :ownerid"...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/PixelsImpl.java/buggy/components/server/src/ome/logic/PixelsImpl.java
objectSpaceModule.defineModuleFunction("undefine_finalizer", callbackFactory.getOptSingletonMethod("undefine_finalizer"));
public static RubyModule createObjectSpaceModule(IRuby runtime) { RubyModule objectSpaceModule = runtime.defineModule("ObjectSpace"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyObjectSpace.class); objectSpaceModule.defineModuleFunction("each_object", callbackFactory.getOptSin...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyObjectSpace.java/clean/src/org/jruby/RubyObjectSpace.java
return recv;
return recv;
public static IRubyObject define_finalizer(IRubyObject recv, IRubyObject[] args) { // Put in to fake tempfile.rb out. return recv; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyObjectSpace.java/clean/src/org/jruby/RubyObjectSpace.java
File file = new File(baseDirectory.toURI().resolve(configurationFile));
File file = new File(configurationFile); if (!file.isAbsolute()) { file = new File(baseDirectory.toURI().resolve(configurationFile)); }
public Main loadMain() { if (serverBaseDirectory == null) { throw new NullPointerException("serverBaseDirectory is null"); } File baseDirectory = new File(serverBaseDirectory); if (!baseDirectory.isDirectory()) { throw new IllegalArgumentException("serverBaseDirecto...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4362a23ef99e4f3fe94eb6a276d2403731f61fab/SpringBootstrap.java/buggy/server/src/main/java/org/xbean/server/spring/main/SpringBootstrap.java
SetState(DEFAULT);
SetState(DEFAULT);
final public MapBuilder CurlyMap() throws ParseException { MapBuilder map; jj_consume_token(LBRACE); map = MapArgList(); SetState(DEFAULT); jj_consume_token(RBRACE); SetState(WM); {if (true) return map;} thro...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
SetState(WM);
SetState(WM);
final public MapBuilder CurlyMap() throws ParseException { MapBuilder map; jj_consume_token(LBRACE); map = MapArgList(); SetState(DEFAULT); jj_consume_token(RBRACE); SetState(WM); {if (true) return map;} thro...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
case WS: case NEWLINE:
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
key = Expression();
jj_consume_token(COLON);
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_consume_token(COLON);
value = Expression();
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[47] = jj_gen; jj_consume_token(-1); throw new ParseException(); } swi...
map.put(key, value); label_8:
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
break label_9; } jj_consume_token(COMMA);
; } key = Expression();
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
key = Expression();
jj_consume_token(COLON);
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_consume_token(COLON);
value = Expression();
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
value = Expression(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: case NEWLINE: label_13: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; case NEWLINE: jj_consume_token(NEWLINE); break; default: jj_la1[60] = jj_gen; jj_consume_token(-1); throw new ParseException(); } sw...
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_la1[63] = jj_gen;
jj_la1[60] = jj_gen;
final public MapBuilder MapArgList() throws ParseException { MapBuilder map = new MapBuilder(); Object key, value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: case DOLLAR: case QUOTE: case SQUOTE: case NULL: case TRUE: case FALSE: case UNDEFINED: case WS: case NEWLINE: ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_la1_0 = new int[] {0x40000000,0xc0000000,0x40000000,0x80000000,0x40000000,0x80000000,0x40000000,0xc0000000,0xc0000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0...
jj_la1_0 = new int[] {0x40000000,0xc0000000,0x40000000,0x80000000,0x40000000,0x80000000,0x40000000,0xc0000000,0xc0000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0...
private static void jj_la1_0() { jj_la1_0 = new int[] {0x40000000,0xc0000000,0x40000000,0x80000000,0x40000000,0x80000000,0x40000000,0xc0000000,0xc0000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40000000,0x40...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400000,0x1,0x0,0x400001,0x2000000,0x2000000,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x88400...
jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400000,0x1,0x0,0x400001,0x2000000,0x2000000,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x884005,0x0,0x0,0x...
private static void jj_la1_1() { jj_la1_1 = new int[] {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x400000,0x1,0x0,0x400001,0x2000000,0x2000000,0x4000000,0x4000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x100000,0x0,0x0,0x0,0x...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5e5de75cf5b61f00754d416eb6035171dc5b58ef/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
_log = _broker.getLog("directive");
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { _broker = bc.getBroker(); // BeanConf object is created by the init method when this directive // is registered by the DirectiveProvider beanConf = (BeanConf)_broker.getBrokerLocal("...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG) System.err.println("DBG: #bean, target="+target +", className="+_className+", scope="+scope +", isStaticClass="+isStaticClass+", initArgs="+initArgObj);
_log.debug("BeanDirective, target="+target +", className="+_className+", scope="+scope +", isStaticClass="+isStaticClass+", initArgs="+initArgObj);
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { _broker = bc.getBroker(); // BeanConf object is created by the init method when this directive // is registered by the DirectiveProvider beanConf = (BeanConf)_broker.getBrokerLocal("...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG){ System.err.println("DBG: #bean - impliedPackages: " + bCfg.impliedPackages); System.err.println("DBG: #bean - allowedPackages: " + bCfg.allowedPackages); }
Log log = b.getLog("directive"); log.debug("BeanDirective initialization - impliedPackages: " + bCfg.impliedPackages); log.debug("BeanDirective initialization - allowedPackages: " + bCfg.allowedPackages);
public static void init(Broker b){ // get configuration parameters synchronized (b){ BeanConf bCfg = new BeanConf(b); b.setBrokerLocal("BeanDirective.Conf", bCfg); if (DEBUG){ System.err.println("DBG: #bean - impliedPackages: " + bCfg.impliedPackages); ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
throw new PropertyException("#bean usage error: session scope is only valid with servlets!");
PropertyException e = new PropertyException( "#bean usage error: session scope is only valid with servlets!"); _broker.getEvaluationExceptionHandler().evaluate( target, context, e);
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG) System.err.println("#bean: Class " + _className + " loaded.");
_log.debug("BeanDirective: Class " + _className + " loaded.");
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
if (DEBUG) System.err.println("#bean: Class " + _className + " failed: " + e); this._log.error("#bean: Class " + _className + " failed.", e); throw e;
this._broker.getEvaluationExceptionHandler().evaluate(target, context, e);
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
String errorText = "#bean: Unable to load bean " + target + " of type " + _className; context.getBroker().getLog("engine").error(errorText, e);
String errorText = "BeanDirective: Unable to load bean " + target + " of type " + _className; _log.error(errorText, e);
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/db7f6c77c50a7decbf2a693e201e2e672bf2e415/BeanDirective.java/buggy/webmacro/src/org/webmacro/directive/BeanDirective.java
return super.callIndexed(index, args);
public IRubyObject callIndexed(int index, IRubyObject[] args) { switch (index) { case ThreadDefinition.ABORT_ON_EXCEPTION : return abort_on_exception(); case ThreadDefinition.ABORT_ON_EXCEPTION_SET : return abort_on_exception_set(args[0]); case T...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/dc7ce748a0710f6824ce88e4621f4479beb195fc/ThreadClass.java/clean/src/org/jruby/ThreadClass.java
SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(final Packet packet) { try { if (customList.contains(StringUtils.parseBareAddress(packet.getFrom()))) { cancelledNotification(packet.getFrom(), ""); } } catch (Exception e) { Log.error(e); } } }, new PacketTypeFilter(Messag...
MessageEventRequestListener messageEventRequestListener = new ChatMessageEventRequestListener(); SparkManager.getMessageEventManager(). addMessageEventRequestListener(messageEventRequestListener);
private ChatManager() { chatContainer = new ChatContainer(); // Add a Message Handler SparkManager.getMessageEventManager().addMessageEventNotificationListener(this); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(final Packet p...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
final ContactList contactList = SparkManager.getWorkspace().getContactList();
ContactList contactList = SparkManager.getWorkspace().getContactList();
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
((ChatRoomImpl)chatRoom).showTyping(true);
((ChatRoomImpl)chatRoom).showTyping(false);
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
contactList.setIconFor(from, SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_EDIT_IMAGE)); customList.add(StringUtils.parseBareAddress(from));
contactList.useDefaults(from); customList.remove(StringUtils.parseBareAddress(from));
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0bc7db8cc68c7433cd601f93a8d06f275e576e91/ChatManager.java/buggy/src/java/org/jivesoftware/spark/ChatManager.java
buffer.close();
if (buffer != null) buffer.close();
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/050d26f0ffe472a85912c497dd53df40527ed6cd/RenderingBean.java/clean/components/server/src/ome/services/RenderingBean.java
public Classification(Integer attributeId, Float confidence, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Category category, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.confidence = confidence; this.valid = valid; th...
public Classification() {
public Classification(Integer attributeId, Float confidence, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Category category, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.confidence = confidence; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public org.openmicroscopy.omero.model.Category getCategory() {
public Category getCategory() {
public org.openmicroscopy.omero.model.Category getCategory() { return this.category; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public org.openmicroscopy.omero.model.Image getImage() {
public Image getImage() {
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() {
public ModuleExecution getModuleExecution() {
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public void setCategory(org.openmicroscopy.omero.model.Category category) {
public void setCategory(Category category) {
public void setCategory(org.openmicroscopy.omero.model.Category category) { this.category = category; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public void setImage(org.openmicroscopy.omero.model.Image image) {
public void setImage(Image image) {
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) {
public void setModuleExecution(ModuleExecution moduleExecution) {
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Classification.java/clean/components/common/src/org/openmicroscopy/omero/model/Classification.java
c._locale = _locale;
protected Object clone() { Context c = null; try { c = (Context) super.clone(); } catch (CloneNotSupportedException e) { // Object supports clone } c._localState = null; c._beanState = null; c._state = 0; c._locals = null; c._bean = null; return c; ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/Context.java/buggy/webmacro/src/org/webmacro/Context.java
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) {
public static IRubyObject autoload(final IRubyObject recv, IRubyObject symbol, final IRubyObject file) {
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadMe...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/07909c1bbecaed91018759825231df5f1506ecbb/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
return runtime.getObject().getConstant(name);
return ((RubyModule)recv).getConstant(name);
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadMe...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/07909c1bbecaed91018759825231df5f1506ecbb/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
return runtime.getObject().getConstant(name);
return ((RubyModule)recv).getConstant(name);
public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); return runtime.getObject().getConstant(name); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/07909c1bbecaed91018759825231df5f1506ecbb/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
/*if (args[0].equals("-version")) { printVersion(); } else*/ if (args[0].equals("-help")) {
int lNbArg = args.length; for (int i = 0; i < lNbArg; i++) { if (args[i].equals("-h") || args[i].equals("-help"))
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
} else { runInterpreter(args[0]);
else if (args[i].equals("-e")) { if (i++ >= lNbArg) { System.err.println("invalid argument " + i); System.err.println(" -e must be followed by an expression to evaluate"); printUsage(); } else runInterpreter(args[i], "command line " + i); } else { runInterpreterOnFile(args[0]);
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
}
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
System.out.println("Usage: java -jar jruby.jar rubyfile.rb");
System.out.println("Usage: java -jar jruby.jar [switches] [rubyfile.rb] [arguments]"); System.out.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]");
protected static void printUsage() { System.out.println("Usage: java -jar jruby.jar rubyfile.rb"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
protected static void runInterpreter(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.length()); BufferedReader br = new BufferedReader(new FileReader(rubyFi...
protected static void runInterpreter(String iString2Eval, String iFileName) { Ruby ruby = new Ruby(); parse p = new parse(ruby); RubyString rs = RubyString.m_newString(ruby, iString2Eval); ruby.getInterpreter().eval(ruby.getObjectClass(), p.rb_compile_string(iFileName, rs, 0));
protected static void runInterpreter(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.length())...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e433dd46c4f08c54b8f43864c41cbd733cb83561/Main.java/clean/org/jruby/Main.java
iUpdate.commit();
public void saveCurrentSettings() { rwl.writeLock().lock(); try { errorIfNullRenderingDef(); pixMetaSrv.saveRndSettings(rendDefObj); } finally { rwl.writeLock().unlock(); } iUpdate.flush(); iUpdate.commit(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/19d01118f726c7723dd8da679e9c4eb422aad850/RenderingBean.java/clean/components/server/src/ome/services/RenderingBean.java
return c.list();
return this.params.getFilter().isUnique() ? c.uniqueResult() : c.list();
protected Object runQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); for (QueryParameter qp : params.queryParameters()) { if ( ! qp.name.equals( CLASS ) ) { c.add(Expressio...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/ClassQuerySource.java/clean/components/server/src/ome/services/query/ClassQuerySource.java
if (c == '{') {
if (c == '{') {
private Node parseExpressionString(Node list, int closeQuote) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
Thread.currentThread().setContextClassLoader(classLoader);
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElemen...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/9fc9ccec99c02b7779ac87689a92ab2b268f0af2/ClassLoaderXmlPreprocessor.java/buggy/server/src/main/java/org/xbean/server/spring/configuration/ClassLoaderXmlPreprocessor.java
throw getRuntime().newTypeError("wrong argument type " + args[0].getType().getName() + " (expected Proc/RubyMethod)");
throw getRuntime().newTypeError("wrong argument type " + args[0].getType().getName() + " (expected Proc/Method)");
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } String name = args[0].asSymbol(); IRubyObject body; ICallable newMethod; Vis...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/22347d0716e4477e47b1106e1cfec4b84364a038/RubyModule.java/clean/src/org/jruby/RubyModule.java
out.println(namespace.replace(":", "\\:") + "=" + NAMESPACE_HANDLER);
out.println(namespace.replaceAll(":", "\\\\:") + "=" + NAMESPACE_HANDLER);
public void generate(NamespaceMapping namespaceMapping) throws IOException { String namespace = namespaceMapping.getNamespace(); if (namespace == null) { return; } File file = new File(metaInfDir, NamespaceHelper.createDiscoveryPathName(namespace)); file.getParentFile()...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/d8f8672e113549ebb864bc748c4897a6cb04359a/XmlMetadataGenerator.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XmlMetadataGenerator.java
if(con != null){ con.connect(); }
private XMPPConnection getConnection() throws XMPPException { LocalPreferences localPref = SettingsManager.getLocalPreferences(); XMPPConnection con; // Get connection int port = localPref.getXmppPort(); String serverName = getServer(); int checkForPort = serverName.indexOf...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/caf8563cc06ab68f1c251d173654deb6b4b1a77c/AccountCreationWizard.java/clean/src/java/org/jivesoftware/AccountCreationWizard.java
loadService.registerBuiltin("jruby", new JRubyLibrary());
private void initLibraries() { loadService = new LoadService(this); loadService.registerBuiltin("java", new BuiltinScript("javasupport")); loadService.registerBuiltin("socket", new SocketLibrary()); loadService.registerBuiltin("fcntl", new BuiltinScript("fcntl")); loadService.regi...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/Ruby.java/clean/src/org/jruby/Ruby.java
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/ZSuperNode.java/buggy/src/org/jruby/ast/ZSuperNode.java
int width = AnalysisControls.WIDTH_MIN;
int w = AnalysisControls.WIDTH_MIN;
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
width = AnalysisControls.WIDTH_MAX; setRowHeight(width);
w = AnalysisControls.WIDTH_MAX; setRowHeight(w);
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
col.setMinWidth(width); col.setMaxWidth(width); col.setPreferredWidth(width);
col.setMinWidth(w); col.setMaxWidth(w); col.setPreferredWidth(w);
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
int w = width*numColumns, h = width*numRows; if (w > MAX_WIDTH) w = MAX_WIDTH; if (h > MAX_HEIGHT) h = MAX_HEIGHT; setPreferredScrollableViewportSize(new Dimension(w, h));
height = AnalysisControls.HEADER+w*(numRows+1); width = AnalysisControls.HEADER+w*(numColumns+1);
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/ColoredCellTable.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ColoredCellTable.java
public RubyArray coerce(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyArray coerce(RubyNumeric other) {
public RubyArray coerce(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyArray.newArray(getRuntime(), newFloat(getRuntime(), other.getDoubleValue()), this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
return new FloatDefinition(ruby).getType();
RubyClass result = ruby.defineClass("Float", ruby.getClasses().getNumericClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineMethod("+", callbackFactory.getMethod(RubyFloat.class, "op_plus", RubyNumeric.class)); result.defineMethod("-", callbackFactory.getMethod(RubyFloat.class, "op_minus"...
public static RubyClass createFloatClass(Ruby ruby) { return new FloatDefinition(ruby).getType(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_div(RubyNumeric other) {
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() / other.getDoubleValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_minus(RubyNumeric other) {
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() - other.getDoubleValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_mod(RubyNumeric other) {
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); // Modelled after c ruby implementation (java /,% not same as ruby) double x = getDoubleValue(); double y = other.getDoubleValue(); double mod = x % y; if ((mod < 0 && y > 0) || (mod > 0 && ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this);
public RubyNumeric op_mul(RubyNumeric num) { return num.multiplyWith(this);
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num);
public RubyNumeric op_plus(RubyNumeric other) {
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() + other.getDoubleValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue()));
public RubyNumeric op_pow(RubyNumeric other) { return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue()));
public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java
criteria.addWantedField("default_pixels", "SizeX"); criteria.addWantedField("default_pixels", "SizeY"); criteria.addWantedField("default_pixels", "SizeZ"); criteria.addWantedField("default_pixels", "SizeC"); criteria.addWantedField("default_pixels", "SizeT"); criteria.addWantedField("default_pixels", "PixelType"); cr...
fieldsForPixels(criteria, "default_pixels"); criteria.addFilter("id", new Integer(imageID));
public static Criteria buildPixelsCriteria(int imageID) { Criteria criteria = new Criteria(); //Specify which fields we want for the image. criteria.addWantedField("default_pixels"); //Specify which fields we want for the pixels. criteria.addWantedField("default_pixels", "SizeX"); criteria.addWantedField("defa...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/73d218b1f03225366903abf43d50c4be713e767b/PixelsMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/PixelsMapper.java
cancelButton.setFont(new Font("Dialog", Font.BOLD, 10));
cancelButton.setFont(new Font("Dialog", Font.BOLD, 11));
private void decorateCancelButton() { cancelButton.setVisible(false); ResourceUtils.resButton(cancelButton, Res.getString("cancel")); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); cancelButton.setForeground(new Color(73, 113, 196)); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e3a7a307a8f9a8e562406bb4e0820d56a5810759/ReceiveMessage.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java
openFileButton.setFont(new Font("Dialog", Font.BOLD, 10));
openFileButton.setFont(new Font("Dialog", Font.BOLD, 11));
private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e3a7a307a8f9a8e562406bb4e0820d56a5810759/ReceiveMessage.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java
openFolderButton.setFont(new Font("Dialog", Font.BOLD, 10));
openFolderButton.setFont(new Font("Dialog", Font.BOLD, 11));
private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e3a7a307a8f9a8e562406bb4e0820d56a5810759/ReceiveMessage.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java
RbJavaObject.defineJavaObjectClass(this);
private void initializeCoreClasses() { RubyClass metaClass; objectClass = defineBootClass("Object", null); moduleClass = defineBootClass("Module", objectClass); classClass = defineBootClass("Class", moduleClass); metaClass = classClass.newSingletonClass(); o...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/Ruby.java/clean/org/jruby/Ruby.java
javaObjectClass.defineMethod("eql?", getMethod("m_equal")); javaObjectClass.defineMethod("==", getMethod("m_equal"));
public static void defineJavaObjectClass(Ruby ruby) { RubyClass javaObjectClass = ruby.defineClass("JavaObject", ruby.getObjectClass()); javaObjectClass.defineMethod("to_s", getMethod("m_to_s")); javaObjectClass.defineSingletonMethod("load_class", getSingletonMethod("m_load_class", Ruby...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/241a0fe060c8d239aa9e5d2519e98cf44d69a201/RbJavaObject.java/buggy/org/jruby/core/RbJavaObject.java
public HashMap getChainExecutionsByChainID() {
public LinkedHashMap getChainExecutionsByChainID() {
public HashMap getChainExecutionsByChainID() { return executionsByChain; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainExecutionsLoadedEvent.java/clean/SRC/org/openmicroscopy/shoola/agents/events/ChainExecutionsLoadedEvent.java
public HashMap getChainExecutionsByDatasetID() { return (HashMap) getSource();
public LinkedHashMap getChainExecutionsByDatasetID() { return (LinkedHashMap) getSource();
public HashMap getChainExecutionsByDatasetID() { return (HashMap) getSource(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainExecutionsLoadedEvent.java/clean/SRC/org/openmicroscopy/shoola/agents/events/ChainExecutionsLoadedEvent.java
public HashMap getExecutionsByID() {
public LinkedHashMap getExecutionsByID() {
public HashMap getExecutionsByID() { return executionsByID; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainExecutionsLoadedEvent.java/clean/SRC/org/openmicroscopy/shoola/agents/events/ChainExecutionsLoadedEvent.java
final StringBuffer sb = new StringBuffer('{');
final StringBuffer sb = new StringBuffer("{");
public RubyString inspect() { //FIXME this two strings should be built only once, at leas only once //per instance no matter how many calls to inspect and maybe better once //per ruby interpreter. //Benoit final String sep = ", "; final String arrow = "=>"; f...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2f13ba47385b7584839c7f6f6f1abfee251cbe53/RubyHash.java/buggy/org/jruby/RubyHash.java
ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); final String nickname = chatPref.getNickname().trim();
LocalPreferences pref = SettingsManager.getLocalPreferences(); final String nickname = pref.getNickname().trim();
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferences)Spar...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ConferenceUtils.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java
ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); chatRoom.create(chatPref.getNickname());
LocalPreferences pref = SettingsManager.getLocalPreferences(); chatRoom.create(pref.getNickname());
public static void createPrivateConference(String serviceName, String message, String roomName, Collection jids) { final MultiUserChat chatRoom = new MultiUserChat(SparkManager.getConnection(), roomName + "@" + serviceName); final GroupChatRoom room = new GroupChatRoom(chatRoom); try { ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ConferenceUtils.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java
ChatPreferences chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); final String nickname = chatPref.getNickname().trim();
final LocalPreferences pref = SettingsManager.getLocalPreferences(); final String nickname = pref.getNickname().trim();
public static GroupChatRoom enterRoomOnSameThread(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferen...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ConferenceUtils.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java
final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE);
final LocalPreferences pref = SettingsManager.getLocalPreferences();
public void joinRoom(final String roomJID, final String roomName) { final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); // Set default nickname nicknameField.setText(pref.getNickname()); // Enable password field i...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/JoinConferenceRoomDialog.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/JoinConferenceRoomDialog.java
return model.getTreeView();
TreeView treeView = model.getTreeView(); if (treeView == null) { model.createTreeView(); treeView = model.getTreeView(); treeView.addPropertyChangeListener(controller); } return treeView;
public TreeView getTreeView() { int state = model.getState(); if (state != LOADING_THUMBNAILS && state != READY) throw new IllegalStateException( "This method can only be invoked in the LOADING_THUMBNAILS "+ "or READY state."); return model...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64ee7ec527da3cc538fcd8d0a21183719f854676/HiViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerComponent.java
String prop; Object nextProp = null;
String propName; Object nextPropValue = null;
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop = (String) names[start];
propName = (String) names[start];
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop = pm.getName(); acc = (Accessor) _directAccessors.get(prop);
propName = pm.getName(); acc = (Accessor) _directAccessors.get(propName);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
if (isMethodRestricted(instance.getClass(), prop))
if (isMethodRestricted(instance.getClass(), propName))
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance, args);
nextPropValue = acc.get(instance, args);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop = names[start].toString();
propName = names[start].toString();
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
acc = (Accessor) _unaryAccessors.get(prop);
acc = (Accessor) _unaryAccessors.get(propName);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance);
nextPropValue = acc.get(instance);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
acc = (Accessor) _binaryAccessors.get(prop); if ((acc != null) && ((start + 1) <= end))
acc = (Accessor) _binaryAccessors.get(propName); if ((acc != null) && ((start + 1) <= names.length))
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance, (String) names[start + 1]);
nextPropValue = acc.get(instance, (String) names[start + 1]);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
nextProp = acc.get(instance, prop);
nextPropValue = acc.get(instance, propName);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
if (isMethodRestricted(instance.getClass(), "get" + prop) || isMethodRestricted(instance.getClass(), "set" + prop))
if (isMethodRestricted(instance.getClass(), "get" + propName) || isMethodRestricted(instance.getClass(), "set" + propName))
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop, fillInName(names, start),
propName, fillInName(names, start),
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
prop, fillInName(names, start),
propName, fillInName(names, start),
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java