rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
for (int j = 0; j < menus.length; j++) {
for (int j = 0; j < menus.length; j++)
public void addToMenuBar(JMenu[] menus, boolean before) { JMenuBar bar = getJMenuBar(); if (before) { JMenu[] existingMenus = new JMenu[bar.getMenuCount()]; for (int i = 0; i < existingMenus.length; i++) { existingMenus[i] = bar.getMenu(i); } ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/TaskBarView.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TaskBarView.java
}
public void addToMenuBar(JMenu[] menus, boolean before) { JMenuBar bar = getJMenuBar(); if (before) { JMenu[] existingMenus = new JMenu[bar.getMenuCount()]; for (int i = 0; i < existingMenus.length; i++) { existingMenus[i] = bar.getMenu(i); } ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/TaskBarView.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TaskBarView.java
UIUtilities.formatToolTipText("Connect to OMEDS."));
UIUtilities.formatToolTipText("Connect to OMERO."));
private void createButtons() { buttons[CONNECT_BTN] = new JButton( iconManager.getIcon(IconManager.CONNECT_DS)); buttons[CONNECT_BTN].setToolTipText( UIUtilities.formatToolTipText("Connect to OMEDS.")); buttons[DISCONNECT_BTN] = new JButton( iconManager.getIcon(IconManager.DISCONNECT_DS)); button...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/TaskBarView.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TaskBarView.java
UIUtilities.formatToolTipText("Disconnect from OMEDS."));
UIUtilities.formatToolTipText("Disconnect from OMERO."));
private void createButtons() { buttons[CONNECT_BTN] = new JButton( iconManager.getIcon(IconManager.CONNECT_DS)); buttons[CONNECT_BTN].setToolTipText( UIUtilities.formatToolTipText("Connect to OMEDS.")); buttons[DISCONNECT_BTN] = new JButton( iconManager.getIcon(IconManager.DISCONNECT_DS)); button...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/TaskBarView.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TaskBarView.java
buttons[UPDATES_MI] = new JMenuItem("Software Updates",
buttons[UPDATES_MI] = new JMenuItem("About Software",
private void createMenuItems() { buttons[EXIT_MI] = new JMenuItem("Exit", iconManager.getIcon(IconManager.EXIT)); buttons[CONNECT_MI] = new JMenuItem("Connect to OMEDS", iconManager.getIcon(IconManager.CONNECT_DS)); buttons[DISCONNECT_MI] = new JMenuItem("Disconnect from OMEDS", iconManage...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/TaskBarView.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TaskBarView.java
return this.string;
return value;
public String getString() { return this.string; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/086abcd7e5107a6e6813ecb64810deff5780af95/RubyString.java/clean/org/jruby/RubyString.java
public void setString(String string) { this.string = string;
public void setString(String str) { value = str;
public void setString(String string) { this.string = string; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/086abcd7e5107a6e6813ecb64810deff5780af95/RubyString.java/clean/org/jruby/RubyString.java
public ModuleExecution(Integer moduleExecutionId, String status, Double attributeDbTime, boolean virtualMex, String inputTag, String iteratorTag, String dependence, Double attributeSortTime, String errorMessage, Date timestamp, Double attributeCreateTime, String newFeatureTag, Double totalTime, org.openmicroscopy.omero...
public ModuleExecution() {
public ModuleExecution(Integer moduleExecutionId, String status, Double attributeDbTime, boolean virtualMex, String inputTag, String iteratorTag, String dependence, Double attributeSortTime, String errorMessage, Date timestamp, Double attributeCreateTime, String newFeatureTag, Double totalTime, org.openmicroscopy.o...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
public org.openmicroscopy.omero.model.Dataset getDataset() {
public Dataset getDataset() {
public org.openmicroscopy.omero.model.Dataset getDataset() { return this.dataset; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
public org.openmicroscopy.omero.model.Experimenter getExperimenter() {
public Experimenter getExperimenter() {
public org.openmicroscopy.omero.model.Experimenter getExperimenter() { return this.experimenter; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
public org.openmicroscopy.omero.model.Group getGroup() {
public Group getGroup() {
public org.openmicroscopy.omero.model.Group getGroup() { return this.group; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.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/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
public void setDataset(org.openmicroscopy.omero.model.Dataset dataset) {
public void setDataset(Dataset dataset) {
public void setDataset(org.openmicroscopy.omero.model.Dataset dataset) { this.dataset = dataset; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) {
public void setExperimenter(Experimenter experimenter) {
public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) { this.experimenter = experimenter; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
public void setGroup(org.openmicroscopy.omero.model.Group group) {
public void setGroup(Group group) {
public void setGroup(org.openmicroscopy.omero.model.Group group) { this.group = group; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.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/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
public void setVirtualMex(boolean virtualMex) {
public void setVirtualMex(Boolean virtualMex) {
public void setVirtualMex(boolean virtualMex) { this.virtualMex = virtualMex; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ModuleExecution.java/buggy/components/common/src/org/openmicroscopy/omero/model/ModuleExecution.java
throws DSOutOfServiceException, DSAccessException;
throws DSOutOfServiceException, DSAccessException;
public void updateUserInputAttributes(List attributes) throws DSOutOfServiceException, DSAccessException;
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f5113c7a4ff99bcbee06e1b48554259a952e1a44/SemanticTypesService.java/buggy/SRC/org/openmicroscopy/shoola/env/data/SemanticTypesService.java
calendar.setFirstDayOfWeek(Calendar.MONDAY);
formatWeekYear(Calendar.MONDAY, toAppendTo); break;
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e0ef4a00b8bf2b12e8991a00385ac0a14c9bb461/RubyDateFormat.java/buggy/src/org/jruby/util/RubyDateFormat.java
value = calendar.get(Calendar.WEEK_OF_YEAR) - 1; if (value < 10) { toAppendTo.append('0'); } toAppendTo.append(value); calendar.setFirstDayOfWeek(Calendar.SUNDAY);
formatWeekYear(Calendar.SUNDAY, toAppendTo);
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e0ef4a00b8bf2b12e8991a00385ac0a14c9bb461/RubyDateFormat.java/buggy/src/org/jruby/util/RubyDateFormat.java
throw new PropertyException("No method to set \"" + _vname +
throw new PropertyException("No method to set \"" + getVariableName() +
public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.set(_names, newValue)) { throw new PropertyException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newV...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/976cc762ab65b58fbb5a81d83d913780b9d31fd4/GlobalVariable.java/clean/webmacro/src/org/webmacro/engine/GlobalVariable.java
return "global:" + _vname;
return "global:" + getVariableName();
public final String toString () { return "global:" + _vname; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/976cc762ab65b58fbb5a81d83d913780b9d31fd4/GlobalVariable.java/clean/webmacro/src/org/webmacro/engine/GlobalVariable.java
return getValue() > otherVal ? 1 : getValue() < otherVal ? -1 : 0;
return getLongValue() > otherVal ? 1 : getLongValue() < otherVal ? -1 : 0;
protected int compareValue(RubyNumeric other) { if (other instanceof RubyBignum) { return ((RubyBignum)other).compareValue(this) * -1; } else if (other instanceof RubyFloat) { double otherVal = other.getDoubleValue(); double thisVal = getDoubleValue(); retur...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.defineMethod("to_s", CallbackFactory.getMethod(RubyFixnum.class, "to_s")); fixnumClass.defineMethod("to_str", CallbackFactory.getMethod(RubyFi...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
return ruby.fixnumCache[(int) value];
RubyFixnum newNum = ruby.fixnumCache[(int) value]; if (newNum == null) { newNum = new RubyFixnum(ruby, value); ruby.fixnumCache[(int) value] = newNum; } return newNum; } else { return new RubyFixnum(ruby, value);
public static RubyFixnum newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int) value]; } return new RubyFixnum(ruby, value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
return new RubyFixnum(ruby, value);
public static RubyFixnum newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int) value]; } return new RubyFixnum(ruby, value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
return newFixnum(getRuby(), getValue() / other.getLongValue());
return newFixnum(getRuby(), getLongValue() / other.getLongValue());
public RubyNumeric op_div(RubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuby(), getLo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
return newFixnum(getRuby(), getValue() % other.getLongValue());
return newFixnum(getRuby(), getLongValue() % other.getLongValue());
public RubyNumeric op_mod(RubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuby(), getDoubleValue()).op_mod(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuby(), getLo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
return RubyString.newString(getRuby(), String.valueOf(getValue()));
return RubyString.newString(getRuby(), String.valueOf(getLongValue()));
public RubyString to_s() { return RubyString.newString(getRuby(), String.valueOf(getValue())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
{ JPanel p = new JPanel(); p.setBorder(new EtchedBorder()); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.BOTH; c.weighty = 1; c.insets = new Insets(3, 3, 3, 3); c.weightx = 0.4; p.add(new JScrollPane(annotationA...
{ JPanel p = new JPanel(); p.setBorder(new EtchedBorder()); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.BOTH; c.weighty = 1; c.insets = new Insets(3, 3, 3, 3); c.weightx = 0.4; p.add(new JScrollPane(annotationA...
private JPanel buildAnnotationPanel() { JPanel p = new JPanel(); p.setBorder(new EtchedBorder()); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.BOTH; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
{ JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); p.add(new JLabel(TITLE)); p.add(messageComponent); return UIUtilities.buildComponentPanel(p); }
{ JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); p.add(new JLabel(TITLE)); p.add(messageComponent); return UIUtilities.buildComponentPanel(p); }
private JPanel buildCommentsPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); p.add(new JLabel(TITLE)); p.add(messageComponent); return UIUtilities.buildComponentPanel(p); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
{ setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(buildCommentsPanel()); add(Box.createRigidArea(SMALL_V_SPACER_SIZE)); add(new JSeparator()); add(Box.createRigidArea(SMALL_V_SPACER_SIZE)); add(buildAnnotationPanel()); add(Box.createVerticalGlue()); }
{ setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(buildCommentsPanel()); add(Box.createRigidArea(SMALL_V_SPACER_SIZE)); add(new JSeparator()); add(Box.createRigidArea(SMALL_V_SPACER_SIZE)); add(buildAnnotationPanel()); add(Box.createVerticalGlue()); }
private void buildGUI() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(buildCommentsPanel()); add(Box.createRigidArea(SMALL_V_SPACER_SIZE)); add(new JSeparator()); add(Box.createRigidArea(SMALL_V_SPACER_SIZE)); add(buildAnnotationPanel()); add(Box.createVerticalGlue()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
{ listModel.removeAllElements();
{ listModel.removeAllElements();
private void formatList(String[] objects) { // remove all users from list before adding new listModel.removeAllElements(); // add each user to list Timestamp date; DateFormat df = DateFormat.getDateInstance(); AnnotationData data; List list; for (int i = 0; i < objects.l...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
Timestamp date; DateFormat df = DateFormat.getDateInstance(); AnnotationData data; List list; for (int i = 0; i < objects.length; i++) { list = getDataObjectAnnotation(i); data = ((AnnotationData) list.get(0)); date = data.getLastModified(); if (date == null) date = new Timestamp(new Date().getTime());; listModel.add...
Timestamp date; DateFormat df = DateFormat.getDateInstance(); AnnotationData data; List list; for (int i = 0; i < objects.length; i++) { list = getDataObjectAnnotation(i); data = ((AnnotationData) list.get(0)); date = data.getLastModified(); if (date == null) date = new Timestamp(new Date().getTime());; listModel.add...
private void formatList(String[] objects) { // remove all users from list before adding new listModel.removeAllElements(); // add each user to list Timestamp date; DateFormat df = DateFormat.getDateInstance(); AnnotationData data; List list; for (int i = 0; i < objects.l...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
{ Map annotations = model.getAnnotations(); Long ownerID = (Long) annotatedMap.get(new Integer(index)); if (ownerID == null) return new ArrayList(); return (List) annotations.get(ownerID); }
{ Map annotations = model.getAnnotations(); Long ownerID = (Long) annotatedMap.get(new Integer(index)); if (ownerID == null) return new ArrayList(); return (List) annotations.get(ownerID); }
private List getDataObjectAnnotation(int index) { Map annotations = model.getAnnotations(); Long ownerID = (Long) annotatedMap.get(new Integer(index)); if (ownerID == null) return new ArrayList(); //empty list return (List) annotations.get(ownerID); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
{ messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent,
{ messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent,
private void initComponents() { messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent, BoxLayout.Y_AXIS)); messageComponent.add(new JLabel(MESSAGE)); messageComponent.add(new JLabel(BODY)); messageComponent.setVisible(false); annotatedMap = new HashMap(); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
messageComponent.add(new JLabel(MESSAGE));
messageComponent.add(new JLabel(MESSAGE));
private void initComponents() { messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent, BoxLayout.Y_AXIS)); messageComponent.add(new JLabel(MESSAGE)); messageComponent.add(new JLabel(BODY)); messageComponent.setVisible(false); annotatedMap = new HashMap(); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
messageComponent.setVisible(false); annotatedMap = new HashMap(); annotationArea = new MultilineLabel(); annotationArea.setBorder(new TitledBorder("Annotation")); annotationArea.setEditable(true); listModel = new DefaultListModel(); annotatedList = new JList(listModel); listComponent = new JScrollPane(annotatedList); l...
messageComponent.setVisible(false); annotatedMap = new HashMap(); annotationArea = new MultilineLabel(); annotationArea.setBorder(new TitledBorder("Annotation")); annotationArea.setEditable(true); listModel = new DefaultListModel(); annotatedList = new JList(listModel); listComponent = new JScrollPane(annotatedList); l...
private void initComponents() { messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent, BoxLayout.Y_AXIS)); messageComponent.add(new JLabel(MESSAGE)); messageComponent.add(new JLabel(BODY)); messageComponent.setVisible(false); annotatedMap = new HashMap(); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
annotatedList.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) {
annotatedList.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) {
private void initComponents() { messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent, BoxLayout.Y_AXIS)); messageComponent.add(new JLabel(MESSAGE)); messageComponent.add(new JLabel(BODY)); messageComponent.setVisible(false); annotatedMap = new HashMap(); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
} }); annotationArea.getDocument().addDocumentListener(
} }); annotationArea.getDocument().addDocumentListener(
private void initComponents() { messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent, BoxLayout.Y_AXIS)); messageComponent.add(new JLabel(MESSAGE)); messageComponent.add(new JLabel(BODY)); messageComponent.setVisible(false); annotatedMap = new HashMap(); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
}
}
private void initComponents() { messageComponent = new JPanel(); messageComponent.setLayout(new BoxLayout(messageComponent, BoxLayout.Y_AXIS)); messageComponent.add(new JLabel(MESSAGE)); messageComponent.add(new JLabel(BODY)); messageComponent.setVisible(false); annotatedMap = new HashMap(); a...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
}
}
public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 1) { showSingleAnnotation(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
{ int index = annotatedList.getSelectedIndex(); if (index == -1) return; List list = getDataObjectAnnotation(index); if (list.size() > 0) { AnnotationData data = (AnnotationData) list.get(0); annotationArea.setText(data.getText()); } }
{ int index = annotatedList.getSelectedIndex(); if (index == -1) return; List list = getDataObjectAnnotation(index); if (list.size() > 0) { AnnotationData data = (AnnotationData) list.get(0); annotationArea.setText(data.getText()); } }
private void showSingleAnnotation() { int index = annotatedList.getSelectedIndex(); if (index == -1) return; List list = getDataObjectAnnotation(index); if (list.size() > 0) { AnnotationData data = (AnnotationData) list.get(0); annotationArea.setText(data.getText()); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorUI.java
menu.add(new JMenuItem( controller.getAction(HiViewerControl.VIEW_CGCI))); menu.add(new JSeparator(JSeparator.HORIZONTAL));
private JMenu createViewMenu() { JMenu menu = new JMenu("View"); menu.setMnemonic(KeyEvent.VK_V); //menu.add(new JMenuItem(controller.getAction(HiViewerControl.VIEW_PDI))); //menu.add(new JMenuItem( //s controller.getAction(HiViewerControl.VIEW_CGCI))); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/HiViewerWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerWin.java
System.err.println("looking at dataset ..."+browserDataset.getID());
private BrowserDatasetData findDatasetData(int dsId) { // go through some silliness to find the BrowserDatasetData // that corresponds to ds. must look at _all_ datasets - not // just those currently being displayed Iterator iter = allDatasets.iterator(); BrowserDatasetData browserDataset = null; while (iter.h...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e1c1190cf5c65047948165a5ab4e76d3d8909851/DatasetBrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/DatasetBrowserCanvas.java
System.err.println("selecting exec with ds ..."+dsId);
public void selectChainExecution(ChainExecutionData exec) { if (exec == null) { setSelectedDataset(null); return; } DatasetData ds = exec.getDataset(); int dsId = ds.getID(); System.err.println("selecting exec with ds ..."+dsId); DatasetNode n = null; BrowserDatasetData browserDataset = findDatasetData(dsId...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e1c1190cf5c65047948165a5ab4e76d3d8909851/DatasetBrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/DatasetBrowserCanvas.java
System.err.println("found dataset data.."+browserDataset);
public void selectChainExecution(ChainExecutionData exec) { if (exec == null) { setSelectedDataset(null); return; } DatasetData ds = exec.getDataset(); int dsId = ds.getID(); System.err.println("selecting exec with ds ..."+dsId); DatasetNode n = null; BrowserDatasetData browserDataset = findDatasetData(dsId...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e1c1190cf5c65047948165a5ab4e76d3d8909851/DatasetBrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/DatasetBrowserCanvas.java
if (dataset !=null) System.err.println("setting selected dataset .."+dataset.getID());
public void setSelectedDataset(BrowserDatasetData dataset) { // if they're the same, return // except for if it's null. then we might need to redraw if (dataset == selectedDataset && dataset != null) return; if (selectedDataset != null) selectedDataset.getNode().setHighlighted(false); if (dataset !=null) Sy...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e1c1190cf5c65047948165a5ab4e76d3d8909851/DatasetBrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/DatasetBrowserCanvas.java
public static void main(String args[]) { int i, j, n = Integer.parseInt(args[0]); int x[] = new int[n]; int y[] = new int[n]; for (i = 0; i < n; i++) x[i] = i ; for (j = n-1; j >= 0; j--) y[j] = x[j]; System.out.println(y[n-1]); }
53330 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53330/eb6c850277407b38bcaefb81155941da0f27b849/ary.java/buggy/tests/shootout/java-start/ary.java
TitlePanel titlePanel = new TitlePanel(Res.getString("title.add.contact.group"), Res.getString("message.add.contact.to.list"), SparkRes.getImageIcon(SparkRes.USER1_32x32), true);
TitlePanel titlePanel = new TitlePanel(Res.getString("title.add.contact"), Res.getString("message.add.contact.to.list"), SparkRes.getImageIcon(SparkRes.USER1_32x32), true);
public void showRosterDialog(JFrame parent) { TitlePanel titlePanel = new TitlePanel(Res.getString("title.add.contact.group"), Res.getString("message.add.contact.to.list"), SparkRes.getImageIcon(SparkRes.USER1_32x32), true); JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout(...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f0a2c9275d080f9ce27d62fcb2dc726a0b45bb64/RosterDialog.java/buggy/src/java/org/jivesoftware/spark/ui/RosterDialog.java
return pathname.endsWith(".jar") || pathname.endsWith(".zip") || pathname.endsWith(".war") || pathname.endsWith(".ear") || pathname.endsWith(".sar");
return ArchiveUtil.isArchive(pathname);
boolean isArchive() { if (!isFile()) { return false; } return pathname.endsWith(".jar") || pathname.endsWith(".zip") || pathname.endsWith(".war") || pathname.endsWith(".ear") || pathname.endsWith(".sar"); }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/ea44d50de680cfb1f234670ee0209ccd6aa03416/CoberturaFile.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/CoberturaFile.java
listeners = new HashSet();
public BrowserManager() { browserList = new ArrayList(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e83036080b3a8ade884eca150f3f3c2004b556c9/BrowserManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/BrowserManager.java
localNames.decreaseBlockLevel();
localNames.setBlockLevel(localNames.getBlockLevel() - 1);
public StackElement pop() { localNames.decreaseBlockLevel(); return super.pop(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/bfbf574a72dd640d8cff4544774a0d26a18665d8/BlockNamesStack.java/clean/src/org/jruby/parser/BlockNamesStack.java
localNames.increaseBlockLevel();
localNames.setBlockLevel(localNames.getBlockLevel() + 1);
public void push(StackElement newElement) { localNames.increaseBlockLevel(); super.push(newElement); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/bfbf574a72dd640d8cff4544774a0d26a18665d8/BlockNamesStack.java/clean/src/org/jruby/parser/BlockNamesStack.java
Java.createJavaModule(this);
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f621b644a7b64cb12bdf5d848d9e284e023964f4/Ruby.java/clean/src/org/jruby/Ruby.java
loadService.registerBuiltin("java.rb", new BuiltinScript("javasupport"));
loadService.registerBuiltin("java.rb", new Library() { public void load(IRuby runtime) throws IOException { Java.createJavaModule(runtime); new BuiltinScript("javasupport").load(runtime); } });
private void initLibraries() { loadService = new LoadService(this); loadService.registerBuiltin("java.rb", new BuiltinScript("javasupport")); loadService.registerBuiltin("socket.rb", new SocketLibrary()); loadService.registerBuiltin("rbconfig.rb", new RbConfigLibrary()); for (int ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f621b644a7b64cb12bdf5d848d9e284e023964f4/Ruby.java/clean/src/org/jruby/Ruby.java
in.close();
if (in != null) in.close();
public void parse() throws IOException, TemplateException { if (!_parsed) { Block newContent = null; Map newParameters = null; Map newMacros = null; Reader in = null; try { Parser parser = getParser(); in = getReader(); BlockBuilder bb = p...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/8f5880751893a7e5dd9da25d036747a39c9b25b5/WMTemplate.java/buggy/webmacro/src/org/webmacro/engine/WMTemplate.java
return getTemplate(templateName);
Template t = getTemplate(templateName); return t;
public Template handle(WebContext context) throws HandlerException { Object output = new Object(); String templateName; // get the form variables output = (String) context.getForm("loadFile"); name = (String) context.getForm("name"); email = (String) context.getForm("email"); ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/GuestBook.java/clean/webmacro/examples/GuestBook.java
defineGlobalDEBUG(runtime);
private void initializeRuntime(final IRuby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.getScriptArguments())); runtime.setVerbose(runtime.newBoolean(commandline.isVerbose())); defineGlobalVERBOSE(runtime); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a5d41074f98a47c0108b1a75c44775c0f6e4e87b/Main.java/buggy/src/org/jruby/Main.java
out.println(" -d set debugging flags (set $DEBUG to true)"); out.println(" -v print version number, then turn on verbose mode");
public void printUsage() { if (!hasPrintedUsage) { out.println("Usage: jruby [switches] [--] [rubyfile.rb] [arguments]"); out.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); out.println(" -b benchmark mode, times the script execution"); out...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a5d41074f98a47c0108b1a75c44775c0f6e4e87b/Main.java/buggy/src/org/jruby/Main.java
registry.getUserNotifier().notifyInfo("Data Saving Cancellation", info);
public void handleCancellation() { String info = "The data saving has been cancelled."; registry.getLogger().info(this, info); // registry.getUserNotifier().notifyInfo("Data Saving Cancellation", // info); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/EditorLoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/EditorLoader.java
firePropertyChange(LOCALIZE_IMAGE_DISPLAY, oldObject, newObject);
firePropertyChange(ClipBoard.LOCALIZE_IMAGE_DISPLAY, oldObject, newObject);
void setSelectedNode() { DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent(); if (selectedNode == node) return; ImageDisplay newObject = (ImageDisplay) node.getUserObject(); ImageDisplay oldObject = null; if (selectedNode != null) ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/SearchResultsPane.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/SearchResultsPane.java
return getCurrentFrame().isBlockGiven();
return getCurrentFrame().isBlockGiven() && blockStack.peek() != null;
public boolean isBlockGiven() { return getCurrentFrame().isBlockGiven(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/50d6342dd5da06c42d25bc955addce6aaa0e6b97/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
prev != null ? prev.cloneBlock() : null,
prev,
public RubyBlock cloneBlock() { return new RubyBlock( var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev != null ? prev.cloneBlock() : null,...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/RubyBlock.java/buggy/org/jruby/runtime/RubyBlock.java
return null;
return "RecentChanges";
public String getWikiPageName(WikiSystem wiki, WebContext wc) { return null; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/76bb847e1a32516a74762100398ded03f39feec8/RecentChangesAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/RecentChangesAction.java
isName = false;
ProjectEditorManager(ProjectEditor view, DataManagerCtrl agentCtrl, ProjectData model) { this.view = view; this.agentCtrl = agentCtrl; this.model = model; nameChange = false; isName = false; datasetsToRemove = new ArrayList(); datasetsToAdd = new ArrayList(); datasetsToAddToRemove = new ArrayList(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectEditorManager.java
nameField.addMouseListener(this);
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESE...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectEditorManager.java
view.getSaveButton().setEnabled(isName);
view.getSaveButton().setEnabled(true);
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectEditorManager.java
view.getSaveButton().setEnabled(isName);
view.getSaveButton().setEnabled(true);
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectEditorManager.java
LocalPreferences localPref = SettingsManager.getLocalPreferences(); if (localPref.isIdleOn()) { int delay = localPref.getIdleTime() * 60000; if (Spark.isWindows()) { try { setIdleListener(delay); } catch (Exception e) { Log.error(e); }
if (Spark.isWindows()) { try { setIdleListener(); } catch (Exception e) { Log.error(e);
public void initializeSession(XMPPConnection connection, String username, String password) { this.connection = connection; this.username = username; this.password = password; this.userBareAddress = StringUtils.parseBareAddress(connection.getUser()); // create workgroup session ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/743d2e6b128400d102d4977992944808419ad957/SessionManager.java/clean/src/java/org/jivesoftware/spark/SessionManager.java
private void setIdleListener(final long mill) throws Exception {
private void setIdleListener() throws Exception {
private void setIdleListener(final long mill) throws Exception { final Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { long idleTime = SystemInfo.getSessionIdleTime(); boolean isLocked = SystemInfo.isSessionLocked(); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/743d2e6b128400d102d4977992944808419ad957/SessionManager.java/clean/src/java/org/jivesoftware/spark/SessionManager.java
if (idleTime > mill) {
if (idleTime > delay) {
private void setIdleListener(final long mill) throws Exception { final Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { long idleTime = SystemInfo.getSessionIdleTime(); boolean isLocked = SystemInfo.isSessionLocked(); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/743d2e6b128400d102d4977992944808419ad957/SessionManager.java/clean/src/java/org/jivesoftware/spark/SessionManager.java
if (idleTime > mill) {
if (idleTime > delay) {
public void run() { long idleTime = SystemInfo.getSessionIdleTime(); boolean isLocked = SystemInfo.isSessionLocked(); if (idleTime > mill) { try { // Handle if spark is not connected to the server. ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/743d2e6b128400d102d4977992944808419ad957/SessionManager.java/clean/src/java/org/jivesoftware/spark/SessionManager.java
buttonPanel.add(Box.createHorizontalStrut(250));
buttonPanel.add(Box.createHorizontalStrut(100)); buttonPanel.add(setDefaultBtn); buttonPanel.add(Box.createHorizontalStrut(50));
void buildUI() { JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); panel.add(createLabelText(groupNameLabel, groupName, 20)); panel.add(Box.createRigidArea(new Dimension(5, 5))); panel.add(createLabelText(descriptionLabel, description, 60)); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e816110341e2f84a3681405f6c01dc8e685db8b4/GroupsTab.java/clean/components/tools/admin/src/adminTool/groupPanel/GroupsTab.java
ImageIcon removeUserIcon = ImageFactory.get().image( ImageFactory.RIGHT_ARROW);
void createActionButtons() { saveBtn = new JButton("Save"); ImageIcon addUserIcon = ImageFactory.get().image( ImageFactory.LEFT_ARROW); ImageIcon removeUserIcon = ImageFactory.get().image( ImageFactory.RIGHT_ARROW); ImageIcon addGroupIcon = ImageFactory.get(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e816110341e2f84a3681405f6c01dc8e685db8b4/GroupsTab.java/clean/components/tools/admin/src/adminTool/groupPanel/GroupsTab.java
setDefaultBtn.addActionListener(new SetDefaultAction(controller));
public void setController(GroupsTabController controller) { this.controller = controller; userList.setController(controller); groupList.setController(controller); saveBtn.addActionListener(new SaveAction(controller)); addGroupBtn.addActionListener(new GroupAction(GroupAction.ADD, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e816110341e2f84a3681405f6c01dc8e685db8b4/GroupsTab.java/clean/components/tools/admin/src/adminTool/groupPanel/GroupsTab.java
if (selection2D == null) continue;
public void iterate(ROI5D roi) throws DataSourceException { if (roi == null) throw new NullPointerException("No ROI."); PlaneArea selection2D; PlanePoint[] points; PlaneDef pd; notifyIterationStart(); try { //Iterate in ZWT order and notify observers. ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c3acf0375531681576d4a65f174981535a8919ae/PointIterator.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/roi/PointIterator.java
super(displayedDocument);
this.dd = displayedDocument;
public MainController(DisplayedDocument displayedDocument) { super(displayedDocument); }
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/57d4036eb7167d2d27117abe1f0280376377dbaa/MainController.java/clean/trunk/src/de/berlios/koalanotes/controllers/MainController.java
localUpdate.commit();
public void saveCurrentSettings() { delegate.saveCurrentSettings(); localUpdate.flush(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3174c2805bbc3341f9872f4461426b51c56c6770/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java
String[] dirs = globPattern.getPattern().split(File.separator);
String[] dirs = globPattern.getPattern().split(pathSplitter);
private void getFiles() { for (Iterator iter = patterns.iterator(); iter.hasNext();) { GlobPattern globPattern = (GlobPattern) iter.next(); String[] dirs = globPattern.getPattern().split(File.separator); File root = new File(dirs[0]); int idx = 1; if (glob2Regexp(dirs[0]) != null)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6acc52ad20fb231f849a10dff6ce197f6ea9c617/Glob.java/buggy/src/org/jruby/util/Glob.java
try { getFiles(); } catch (PatternSyntaxException e) { return new String[] {}; }
try { getFiles(); } catch (PatternSyntaxException e) { System.out.println("BAD PATTERN: " + e.getPattern()); return new String[] {}; }
public String[] getNames() { try { getFiles(); } catch (PatternSyntaxException e) { // This can happen if someone does Dir.glob("{") or similiar. return new String[] {}; } ArrayList allMatchedNames = new ArrayList(); for (Iterator iter = patterns.iterator(); iter.hasNext();) { GlobP...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6acc52ad20fb231f849a10dff6ce197f6ea9c617/Glob.java/buggy/src/org/jruby/util/Glob.java
public boolean getOnOff() { return onOff; }
boolean getOnOff() { return onOff; }
public boolean getOnOff() { return onOff; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java
g2D.setColor(roi.getLineColor());
r = s.getBounds(); g2D.setStroke(dashed); g2D.setColor(alphaColor(roi.getLineColor())); if (roi.getIndex() == indexSelected) { g2D.setStroke(stroke); g2D.setColor(roi.getLineColor()); }
private void paintROICollection(Graphics2D g2D, List l) { Iterator i = l.iterator(); ROIShape roi; Shape s; Rectangle r; magFactor = manager.getCurrentImageAffineTransform().getMagFactor(); while (i.hasNext()) { roi = (ROIShape) i.next(); setShapeBo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java
r = s.getBounds();
private void paintROICollection(Graphics2D g2D, List l) { Iterator i = l.iterator(); ROIShape roi; Shape s; Rectangle r; magFactor = manager.getCurrentImageAffineTransform().getMagFactor(); while (i.hasNext()) { roi = (ROIShape) i.next(); setShapeBo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java
g2D.drawString(roi.getText(), p.x, p.y);
g2D.drawString(roi.getLabel(), p.x, p.y);
private void paintROICollection(Graphics2D g2D, List l) { Iterator i = l.iterator(); ROIShape roi; Shape s; Rectangle r; magFactor = manager.getCurrentImageAffineTransform().getMagFactor(); while (i.hasNext()) { roi = (ROIShape) i.next(); setShapeBo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java
if (roi.getIndex() == indexSelected) {
if (roi.getAnnotation() != null && onOff) {
private void paintROICollection(Graphics2D g2D, List l) { Iterator i = l.iterator(); ROIShape roi; Shape s; Rectangle r; magFactor = manager.getCurrentImageAffineTransform().getMagFactor(); while (i.hasNext()) { roi = (ROIShape) i.next(); setShapeBo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java
LENGTH);
LENGTH);
private void paintROICollection(Graphics2D g2D, List l) { Iterator i = l.iterator(); ROIShape roi; Shape s; Rectangle r; magFactor = manager.getCurrentImageAffineTransform().getMagFactor(); while (i.hasNext()) { roi = (ROIShape) i.next(); setShapeBo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java
private void setShapeBounds(ROIShape roi) { Shape shape = roi.getShape(); Rectangle r = shape.getBounds(); double factor = roi.getAffineTransform().getMagFactor(); int shapeType = roi.getShapeType(); double coeff = magFactor/factor; ROIFactory.setShapeBounds(shap...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/75759d4628947eccba1f0e97cd7b5035c174f2cc/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java
public FileSystemXmlApplicationContext(String[] configLocations, boolean refresh, List xmlPreprocessors) throws BeansException { this(configLocations, refresh, null, xmlPreprocessors);
public FileSystemXmlApplicationContext(String configLocation) throws BeansException { this(new String[] {configLocation}, true, null, Collections.EMPTY_LIST);
public FileSystemXmlApplicationContext(String[] configLocations, boolean refresh, List xmlPreprocessors) throws BeansException { this(configLocations, refresh, null, xmlPreprocessors); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/b05052e52d5df78c860e248c9008c7e71be70d95/FileSystemXmlApplicationContext.java/clean/spring/src/java/org/xbean/spring/context/FileSystemXmlApplicationContext.java
PixelsService service = new PixelsService();
PixelsService service = new PixelsService(PixelsService.ROOT_DEFAULT);
protected void setUp() throws IOException { // Create set up the base fixture which sets up the database for us baseFixture = new PixbufIOFixture(); pixels = baseFixture.setUp(); // "Our" fixture which creates the planes needed for this test case. PixelsService service ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixbufCreationUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/itests/PixbufCreationUnitTest.java
double a = (double) (control.getGlobalMinimum()-b)/(double) rangeGraphics; return (int) (a*y+b);
double a = (c-b)/ (double) rangeGraphics; int r = (int) (a*y+b); if (r < c) r = c; if (r > b) r = b; return r;
int convertGraphicsIntoReal(int x) { int b = control.getGlobalMaximum(); int y = x-tW; double a = (double) (control.getGlobalMinimum()-b)/(double) rangeGraphics; return (int) (a*y+b); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4b6a9c2b424c068230039a988c19a9a6fb4cf0c5/HistogramDialogManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/HistogramDialogManager.java
double a = (double) rangeGraphics/(double) (b-c);
double a = (double) rangeGraphics/(b-c);
int convertRealIntoGraphics(int x) { int b = control.getGlobalMinimum(); int c = control.getGlobalMaximum(); double a = (double) rangeGraphics/(double) (b-c); return (int) (a*(x-c)+tW); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4b6a9c2b424c068230039a988c19a9a6fb4cf0c5/HistogramDialogManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/HistogramDialogManager.java
try { Object ret = invoke(iteratorMethod, instance, null); if (ret instanceof Iterator) { return (Iterator) ret; } else if (ret instanceof Enumeration) { return new EnumIterator((Enumeration) ret); } else if (ret instanceof Object[]) { return new ArrayIterator((Object[]) ret); }
Object ret = invoke(iteratorMethod, instance, null); if (ret instanceof Iterator) { return (Iterator) ret;
public Iterator findIterator(Object instance) throws PropertyException { if (iteratorMethod != null) { try { Object ret = invoke(iteratorMethod, instance, null); if (ret instanceof Iterator) { return (Iterator) ret; } else if (ret instanc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/289617da402a00c35bb091baf41ccd5f8d4042c2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
catch (NoSuchMethodException e) { throw new PropertyException("Error in PropertyOperator!", e);
else if (ret instanceof Enumeration) { return new EnumIterator((Enumeration) ret); } else if (ret instanceof Object[]) { return new ArrayIterator((Object[]) ret);
public Iterator findIterator(Object instance) throws PropertyException { if (iteratorMethod != null) { try { Object ret = invoke(iteratorMethod, instance, null); if (ret instanceof Iterator) { return (Iterator) ret; } else if (ret instanc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/289617da402a00c35bb091baf41ccd5f8d4042c2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
throws PropertyException, NoSuchMethodException {
throws PropertyException {
static Object invoke(Method meth, Object instance, Object[] args) throws PropertyException, NoSuchMethodException { try { Object obj = meth.invoke(instance, args); // if the method's return type is void return the VoidMacro // instance, instead of the 'null' we used to return her...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/289617da402a00c35bb091baf41ccd5f8d4042c2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
if (!Hibernate.isInitialized(obj)) { throw new IllegalStateException( "If the return object is not initialized then we can't send it.");
if (null != obj) { if (obj instanceof OMEModel) { daoUtils.clean((OMEModel) obj); } else if (obj instanceof Set) { daoUtils.clean((Set) obj); } else if (obj instanceof HashMap) { daoUtils.clean(((Map) obj).keySet()); daoUtils.clean(new HashSet(((Map) obj).values())); } else { String msg = "Instances of " + obj.getClas...
Object clean(Object obj) { if (!Hibernate.isInitialized(obj)) { throw new IllegalStateException( "If the return object is not initialized then we can't send it."); } Set done = new HashSet(); hessianClean(obj, done); return obj; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java
Set done = new HashSet(); hessianClean(obj, done);
Object clean(Object obj) { if (!Hibernate.isInitialized(obj)) { throw new IllegalStateException( "If the return object is not initialized then we can't send it."); } Set done = new HashSet(); hessianClean(obj, done); return obj; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java
Set categories = new HashSet();
public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java
for (Iterator c = classifications.iterator(); c.hasNext();) { Classification cla = (Classification) c.next(); if (null!=cla.getCategory()){ categories.add(cla.getCategory()); } } if (categories == null || categories.size() < 1) {
if (classifications == null || classifications.size() < 1) {
public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java
Iterator c = categories.iterator();
Iterator c = classifications.iterator();
public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java