rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
retrieveThumbnail();
public void setRetrievedClassification(Set paths) { if (model.getState() != LOADING_CLASSIFICATION) throw new IllegalStateException("This method should only be " + "invoked in the LOADING_CLASSIFICATION state."); if (paths == null) throw new IllegalArgumentE...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java
throw new IllegalArgumentException("No thumbnail.");
return; model.setThumbnailLoaded(true);
public void setThumbnail(BufferedImage thumbnail) { if (model.getState() != DISCARDED) { if (thumbnail == null) throw new IllegalArgumentException("No thumbnail."); view.setThumbnail(thumbnail); model.setState(READY); fireStateChange(); } ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java
} else if (object instanceof RubyArray) { List tmpList = (List) ((RubyArray) object).getList(); ArrayList newList = new ArrayList(); for (Iterator iter = tmpList.iterator(); iter.hasNext();) { newList.add(JavaUtil.convertArgument(primitive_to_java(recv, (IRubyObject) iter.next()), Object.class)); } javaObject = newLis...
public static IRubyObject primitive_to_java(IRubyObject recv, IRubyObject object) { if (object instanceof JavaObject) { return object; } Ruby runtime = recv.getRuntime(); Object javaObject; if (object.isNil()) { javaObject = null; } else if (object ins...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8c54b93def4895b998d669a089420d5925274ea0/Java.java/clean/src/org/jruby/javasupport/Java.java
setRolloverEnabled(true);
ClassifiedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false);...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/58be91fb535c971d0bef1fde12344382b140273b/ClassifiedButton.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/ClassifiedButton.java
setRolloverIcon(im.getIcon(IconManager.CLASSIFIED_SMALL_OVER));
ClassifiedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false);...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/58be91fb535c971d0bef1fde12344382b140273b/ClassifiedButton.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/ClassifiedButton.java
public Group(Integer attributeId, String name, org.openmicroscopy.omero.model.Experimenter leader, org.openmicroscopy.omero.model.Experimenter contact, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set datasets, Set images, Set projects, Set experimenters, Set moduleExecutions, Set imageInfos) { this....
public Group() {
public Group(Integer attributeId, String name, org.openmicroscopy.omero.model.Experimenter leader, org.openmicroscopy.omero.model.Experimenter contact, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set datasets, Set images, Set projects, Set experimenters, Set moduleExecutions, Set imageInfos) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Group.java/clean/components/common/src/org/openmicroscopy/omero/model/Group.java
public org.openmicroscopy.omero.model.Experimenter getContact() {
public Experimenter getContact() {
public org.openmicroscopy.omero.model.Experimenter getContact() { return this.contact; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Group.java/clean/components/common/src/org/openmicroscopy/omero/model/Group.java
public org.openmicroscopy.omero.model.Experimenter getLeader() {
public Experimenter getLeader() {
public org.openmicroscopy.omero.model.Experimenter getLeader() { return this.leader; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Group.java/clean/components/common/src/org/openmicroscopy/omero/model/Group.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/Group.java/clean/components/common/src/org/openmicroscopy/omero/model/Group.java
public void setContact(org.openmicroscopy.omero.model.Experimenter contact) {
public void setContact(Experimenter contact) {
public void setContact(org.openmicroscopy.omero.model.Experimenter contact) { this.contact = contact; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Group.java/clean/components/common/src/org/openmicroscopy/omero/model/Group.java
public void setLeader(org.openmicroscopy.omero.model.Experimenter leader) {
public void setLeader(Experimenter leader) {
public void setLeader(org.openmicroscopy.omero.model.Experimenter leader) { this.leader = leader; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Group.java/clean/components/common/src/org/openmicroscopy/omero/model/Group.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/Group.java/clean/components/common/src/org/openmicroscopy/omero/model/Group.java
if (_log != null) { _log.info("target: " + t); }
public void addTarget(LogTarget t) { _targets.add(t); Enumeration s = _sources.elements(); while (s.hasMoreElements()) { LogSource l = (LogSource) s.nextElement(); t.attach(l); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/LogManager.java/buggy/webmacro/src/org/webmacro/util/LogManager.java
RubyModule parentModule) {
SinglyLinkedList parentCRef) {
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule) { throw new MockException(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/BaseMockRuby.java/clean/test/org/jruby/test/BaseMockRuby.java
public RubyModule defineModuleUnder(String name, RubyModule parentModule) {
public RubyModule defineModuleUnder(String name, SinglyLinkedList parentCRef) {
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { throw new MockException(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/BaseMockRuby.java/clean/test/org/jruby/test/BaseMockRuby.java
}
}
public RubyNumeric newNumeric() { throw new MockException(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/BaseMockRuby.java/clean/test/org/jruby/test/BaseMockRuby.java
throw new MockException(); }
throw new MockException(); }
public RubyProc newProc() { throw new MockException(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/BaseMockRuby.java/clean/test/org/jruby/test/BaseMockRuby.java
/* * Seems a bit wasteful to check the URL here but t.parse() * generates "spurious" errors if the template doesn't exist */ InputStream _is = null; try { _is = url.openStream(); t = new URLTemplate(_broker,url); _log.debug("**PARSING "+url); t.parse(); return t; } finally { if (_is != null) _is.close(); }
t = new URLTemplate(_broker,url); _log.debug("**PARSING "+url); t.parse(); return t;
final private Template getTemplate(URL path) { _log.debug("get:"+path); URLTemplate t; String pre = null; String mid = null; String post = null; String pathStr = path.toExternalForm(); try { String[] parts = parseLocalePath(pathStr); S...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c6b8002d7c14caded0975f7dac50775e0400abda/URLTemplateProvider.java/buggy/webmacro/src/org/webmacro/resource/URLTemplateProvider.java
this.actException = actException; }
this.actException = actException; }
public RaiseException(RubyException actException) { this.actException = actException; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RaiseException.java/buggy/org/jruby/exceptions/RaiseException.java
return actException; }
return actException; }
public RubyException getActException() { return actException; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RaiseException.java/buggy/org/jruby/exceptions/RaiseException.java
this.actException = actException; }
this.actException = actException; }
public void setActException(RubyException actException) { this.actException = actException; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RaiseException.java/buggy/org/jruby/exceptions/RaiseException.java
public static void main(String[] args) { String line; Vector nums = new Vector(); double num, sum = 0.0; double mean = 0.0; double average_deviation = 0.0; double standard_deviation = 0.0; double variance = 0.0; double skew = 0.0; double kurtosis = 0.0; double median = 0.0; double deviation = 0.0; int i, n, mid = 0...
53330 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53330/eb6c850277407b38bcaefb81155941da0f27b849/moments.java/buggy/tests/shootout/java-start/moments.java
if("create".equals(iwc.getParameter(ContentViewer.PARAMETER_CONTENT_RESOURCE))){
if("create".equals(iwc.getParameter(ContentViewer.PARAMETER_ACTION))){
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/44c7553551d463f44b7cb7cf5d0a43b62412701b/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java
buf.append(RESOURCE_DIRECTORY.getAbsolutePath()).append(";");
try { buf.append(RESOURCE_DIRECTORY.getCanonicalPath()).append(";"); } catch (IOException e) { e.printStackTrace(); }
public static void main(final String[] args) { EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.c...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/Spark.java/clean/src/java/org/jivesoftware/Spark.java
} catch (BreakException bExcptn) {
} catch (BreakJump bExcptn) {
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { String file = ruby.getSourceFile(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/ForNode.java/buggy/org/jruby/nodes/ForNode.java
createException = new MockCreateException();
assertValidServiceContext(serviceContext); this.serviceContext = serviceContext; createException = new MockCreateException("MockCreateException");
public Object createService(ServiceContext serviceContext) { createException = new MockCreateException(); if (throwExceptionFromCreate) throw createException; return super.createService(serviceContext); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
destroyException = new MockDestroyException();
assertSame(this.serviceContext, serviceContext); assertValidServiceContext(serviceContext); destroyException = new MockDestroyException("MockDestroyException");
public void destroyService(ServiceContext serviceContext) { destroyException = new MockDestroyException(); if (throwExceptionFromDestroy) throw destroyException; super.destroyService(serviceContext); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
public Set getStartConditions() {
public synchronized Set getStartConditions() {
public Set getStartConditions() { Set startConditions = new HashSet(super.getStartConditions()); startConditions.add(startCondition); return startConditions; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
public Set getStopConditions() {
public synchronized Set getStopConditions() {
public Set getStopConditions() { Set stopConditions = new HashSet(super.getStopConditions()); stopConditions.add(stopCondition); return stopConditions; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceRegistered(ServiceEvent serviceEvent) { registered = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, true);
public void serviceRunning(ServiceEvent serviceEvent) { running = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceStartError(ServiceEvent serviceEvent) { startError = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceStarting(ServiceEvent serviceEvent) { starting = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceStopError(ServiceEvent serviceEvent) { stopError = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceStopped(ServiceEvent serviceEvent) { stopped = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceStopping(ServiceEvent serviceEvent) { stopping = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceUnregistered(ServiceEvent serviceEvent) { unregistered = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, false);
public void serviceWaitingToStart(ServiceEvent serviceEvent) { waitingToStart = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidEvent(serviceEvent, true);
public void serviceWaitingToStop(ServiceEvent serviceEvent) { waitingToStop = serviceEvent; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidServiceConditionContext(context);
public void initialize(ServiceConditionContext context) { initializeCalled = true; this.context = context; if (initializedSignal != null) { initializedSignal.countDown(); } }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertValidServiceConditionContext(context);
public void initialize(ServiceConditionContext context) { initializeCalled = true; this.context = context; if (initializedSignal != null) { initializedSignal.countDown(); } }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
} else if (serviceFactory.throwExceptionFromDestroy != true) {
} else if (!serviceFactory.throwExceptionFromDestroy) {
private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServ...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, e.getServiceName());
private void disabledStart(StartStrategy startStrategy) throws Exception { serviceFactory.setEnabled(false); try { serviceManager.start(false, startStrategy); fail("A disabled service should throw an IllegalServiceStateException from start"); } catch (IllegalServiceStateEx...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertTrue(serviceFactory.throwExceptionFromCreate == true);
assertTrue(serviceFactory.throwExceptionFromCreate);
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertTrue(startCondition.satisfied == false);
assertTrue(!startCondition.satisfied);
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
} else if (serviceFactory.throwExceptionFromCreate != true && startCondition.satisfied == true) {
} else if (!serviceFactory.throwExceptionFromCreate && startCondition.satisfied) {
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, e.getServiceName());
private void startException(StartStrategy startStrategy, boolean recursive) throws Exception { serviceFactory.throwExceptionFromCreate = true; try { start(recursive, startStrategy); } catch (MockCreateException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS |...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
} catch (IllegalServiceStateException excpected) {
} catch (IllegalServiceStateException e) {
private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown ...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, e.getServiceName());
private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown ...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, e.getServiceName());
private void startStopsException(StartStrategy startStrategy, StopStrategy stopStrategy) throws Exception { serviceFactory.throwExceptionFromCreate = true; serviceFactory.throwExceptionFromDestroy = true; try { start(false, startStrategy); } catch (MockCreateException e) { ...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, cause.getServiceName());
private void startWaiting(StartStrategy startStrategy, boolean recursive) throws Exception { startCondition.satisfied = false; try { start(recursive, startStrategy); } catch (UnsatisfiedConditionsException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS); ...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, cause.getServiceName());
private void startWaitingStart(StartStrategy startStrategy, boolean recursive) throws Exception { startCondition.satisfied = recursive; try { start(recursive, startStrategy); } catch (UnsatisfiedConditionsException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONO...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, cause.getServiceName());
private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, se...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
assertEquals(serviceName, e.getServiceName());
public void waitingStop(StopStrategy stopStrategy) throws Exception { start(false, StartStrategies.SYNCHRONOUS); stopCondition.satisfied = false; try { stop(stopStrategy); } catch (UnsatisfiedConditionsException e) { assertTrue(stopStrategy == StopStrategies.SYNCHRO...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
.println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);");
.println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"FormattedNumber\"]);");
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/44269750c437f83c33c41ee2416e5dc0fd270215/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java
.println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);");
.println(" [\"String\", \"Percentage\", \"Percentage\", \"FormattedNumber\"]);");
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/44269750c437f83c33c41ee2416e5dc0fd270215/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java
+ "<td class=\"value\">" + getDoubleValue(ccn) + "</td>";
+ "<td class=\"value\"><span class=\"hidden\">" + ccn + ";</span>" + getDoubleValue(ccn) + "</td>";
private static String generateTableColumnsFromData(double lineCoverage, double branchCoverage, double ccn) { String lineCoverageCell = (lineCoverage == -1) ? generateNAPercent() : generatePercentResult(lineCoverage); String branchCoverageCell = (branchCoverage == -1) ? generateNAPercent() : generatePer...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/44269750c437f83c33c41ee2416e5dc0fd270215/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java
module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class));
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62395b140d1fb0b5b75ba224eb0f4b564f70979b/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
g2d.setClip(vButtonShape);
if(!Spark.isMac()){ g2d.setClip(vButtonShape); }
public void paint(Graphics g, JComponent c) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Insets vInsets = c.getInsets(); int w = c.getWidth() - (vInsets.left + vInsets.right); int h = c.getHeight() - (v...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/1230b9151d62dc1da764a5a6dc7c80caf97a0718/TabPanelUI.java/buggy/src/java/org/jivesoftware/spark/component/tabbedPane/TabPanelUI.java
p.add(addButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX));
private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManag...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectEditorBar.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectEditorBar.java
add(UIUtilities.buildComponentPanel(addButton));
private void buildGUI() { add(UIUtilities.buildComponentPanelRight(buildButtonPanel())); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectEditorBar.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectEditorBar.java
addButton = new JButton("Add datasets");
addButton = new JButton("Add datasets...");
private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add datasets"); addButton.setCursor(Cur...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectEditorBar.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectEditorBar.java
public void fileTransferRequest(FileTransferRequest request) { if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem ...
public void fileTransferRequest(final FileTransferRequest request) { SwingUtilities.invokeLater(new Runnable() { public void run() { handleTransferRequest(request, contactList);
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
StyleConstants.setComponent(style, receivingMessageUI); try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(c...
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
public void fileTransferRequest(FileTransferRequest request) { if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactItem contactItem = contactList.getContactItemByJID(bareJID); ChatRoom chatRoom; if (contactItem ...
public void fileTransferRequest(final FileTransferRequest request) { SwingUtilities.invokeLater(new Runnable() { public void run() { handleTransferRequest(request, contactList);
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
StyleConstants.setComponent(style, receivingMessageUI); try { doc.insertString(doc.getLength(), "ignored text", style); doc.insertString(doc.getLength(), "\n", null); } catch (BadLocationException e) { Log.error(e); } chatRoom.scrollToBottom(); SparkManager.getChatManager().getChatContainer().fireNotifyOnMessage(c...
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } catch (InterruptedException e1) { Log.error(e1); } return "delay"; } public void finished() { ChatRoomImpl roomImpl = (ChatRoomImpl)room; getFileChooser().setDialogTitle("Select ...
public void actionPerformed(ActionEvent actionEvent) { sendScreenshot(sendScreenShotButton, room);
public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel();
if (presence != null) { String bareJID = StringUtils.parseBareAddress(presence.getFrom()); List list = (List)waitMap.get(bareJID); if (list != null) { Iterator iter = list.iterator(); ChatRoom room = null; while (iter.hasNext()) { File file = (File)iter.next(); room = sendFile(file, bareJID); } if (room != null) { ...
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } }...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
waitMap.remove(bareJID);
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } }...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { Log.error(e); } return null; }
try { Thread.sleep(10); } catch (InterruptedException e1) { Log.error(e1); } return "delay"; }
public Object construct() { try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); }
ChatRoomImpl roomImpl = (ChatRoomImpl)room;
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
getFileChooser().setDialogTitle("Select File(s) to send"); getFileChooser().setMultiSelectionEnabled(true); int ok = getFileChooser().showOpenDialog(roomImpl); if (ok != JFileChooser.APPROVE_OPTION) { return; } File[] file = getFileChooser().getSelectedFiles(); if (file == null || file.length == 0) { return; } final...
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/90f230809a192f7030b7fb4ee9b40a0993429b8c/SparkTransferManager.java/buggy/src/java/org/jivesoftware/spark/filetransfer/SparkTransferManager.java
String path = ome.io.nio.Helper.getFilesPath(new Long(1000000001));
String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1000000001));
public void testFilesFourDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/Dir-000/1000000001", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getFilesPath((long)Integer.MAX_VALUE);
String path = new PixelsService("/OME/OMEIS/").getFilesPath((long)Integer.MAX_VALUE);
public void testFilesFourDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Files/Dir-002/Dir-147/Dir-483/2147483647", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getFilesPath(new Long(1));
String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1));
public void testFilesSingleDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1)); assertEquals("/OME/OMEIS/Files/1", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getFilesPath(new Long(999));
String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999));
public void testFilesSingleDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999)); assertEquals("/OME/OMEIS/Files/999", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getFilesPath(new Long(1000001));
String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1000001));
public void testFilesThreeDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/1000001", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getFilesPath(new Long(999999999));
String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999999999));
public void testFilesThreeDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999999999)); assertEquals("/OME/OMEIS/Files/Dir-999/Dir-999/999999999", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getFilesPath(new Long(1001));
String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1001));
public void testFilesTwoDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1001)); assertEquals("/OME/OMEIS/Files/Dir-001/1001", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getFilesPath(new Long(999999));
String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999999));
public void testFilesTwoDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999999)); assertEquals("/OME/OMEIS/Files/Dir-999/999999", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath(new Long(1000000001));
String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1000000001));
public void testPixelsFourDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/Dir-000/1000000001", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath((long)Integer.MAX_VALUE);
String path = new PixelsService("/OME/OMEIS/").getPixelsPath((long)Integer.MAX_VALUE);
public void testPixelsFourDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Pixels/Dir-002/Dir-147/Dir-483/2147483647", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath(new Long(1));
String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1));
public void testPixelsSingleDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1)); assertEquals("/OME/OMEIS/Pixels/1", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath(new Long(999));
String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999));
public void testPixelsSingleDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999)); assertEquals("/OME/OMEIS/Pixels/999", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath(new Long(1000001));
String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1000001));
public void testPixelsThreeDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/1000001", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath(new Long(999999999));
String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999999999));
public void testPixelsThreeDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/Dir-999/999999999", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath(new Long(1001));
String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1001));
public void testPixelsTwoDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/1001", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
String path = ome.io.nio.Helper.getPixelsPath(new Long(999999));
String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999999));
public void testPixelsTwoDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/999999", path); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java
indent -= indentRate;
if (indent > 0) indent--;
void decreaseIndentation() { indent -= indentRate; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/4d63a8c9fa3cc11c9152b3635695cdd64fa70119/XMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java
indent += indentRate;
indent++;
void increaseIndentation() { indent += indentRate; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/4d63a8c9fa3cc11c9152b3635695cdd64fa70119/XMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java
int i = 0; while (st.hasMoreElements()) {
for (int i=0; st.hasMoreElements(); i++) {
static private String[] tokenize(String list) { StringTokenizer st = new StringTokenizer(list," \t\n\f\r;,"); String[] tokens = new String[st.countTokens()]; int i = 0; while (st.hasMoreElements()) { tokens[i] = st.nextToken(); } return tokens; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/abe5553399408c243ffa20f1b662334a2c8120a5/ComponentMap.java/clean/webmacro/src/org/webmacro/util/ComponentMap.java
maxZoomLabel.setText(String.valueOf(val)+"%");
public void maxZoomLevelChanged(double level) { int val = (int)Math.round(level*100); if(slider.getValue() > val) { slider.setValue(val); } slider.setMaximum(val); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserInternalFrame.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserInternalFrame.java
System.err.println("minzoom change: "+level);
public void minZoomLevelChanged(double level) { System.err.println("minzoom change: "+level); int val = (int)Math.round(level*100); if(slider.getValue() < val) { slider.setValue(val); } sl...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserInternalFrame.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserInternalFrame.java
minZoomLabel.setText(String.valueOf(val)+"%");
public void minZoomLevelChanged(double level) { System.err.println("minzoom change: "+level); int val = (int)Math.round(level*100); if(slider.getValue() < val) { slider.setValue(val); } sl...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserInternalFrame.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserInternalFrame.java
System.err.println("zoom changed: "+level);
public void zoomLevelChanged(double level) { System.err.println("zoom changed: "+level); if(!slider.getValueIsAdjusting()) { int val = (int)Math.round(level*100); slider.setValue(val); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserInternalFrame.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserInternalFrame.java
System.err.println("bounds: ["+iX+","+iY+","+iEX+"," +iEY+","+iW+","+iH+"]");
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.rou...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserInternalFrame.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserInternalFrame.java
horizModel.setValue(iY);
vertModel.setValue(iY);
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.rou...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserInternalFrame.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserInternalFrame.java
public ColorChooser(ChannelBindings cb)
public ColorChooser(HSBPaneManager hsbManager, int[] rgba)
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c2418384f5c30e274953927e006a71647a24f1b/ColorChooser.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooser.java
int[] rgba = cb.getRGBA();
super(hsbManager.getReferenceFrame(), "ColorChooser", true);
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c2418384f5c30e274953927e006a71647a24f1b/ColorChooser.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooser.java
ccManager = new ColorChooserManager(this, rgba, v);
ccManager = new ColorChooserManager(this, hsbManager, rgba, v);
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c2418384f5c30e274953927e006a71647a24f1b/ColorChooser.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooser.java