bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
boolean picked(int x, int y) { float dx = (x-radius); float dx2 = dx*dx; float dy = (y-radius); float dy2 = dy*dy; float dist = dx2+dy2; float r2 = radius*radius; if (dist<r2) { puck = new PlanePoint(x,y); return true; } return false; } | boolean picked(int x, int y) { float dx = (x-radius); float dx2 = dx*dx; float dy = (y-radius); float dy2 = dy*dy; float dist = dx2+dy2; float r2 = radius*radius; if (dist<r2) { puck = new PlanePoint(x,y); return true; } return false; } | 3,228,991 |
public void setWindow(double start, double end) { if (start < globalMin || globalMax < end) throw new IllegalArgumentException("Wrong interval definition"); verifyInterval(start, end); windowStart = start; windowEnd = end; onWindowChange(); } | public void setWindow(double start, double end) { if (start < globalMin || globalMax < end) throw new IllegalArgumentException("Wrong interval definition"); verifyInterval(start, end); windowStart = start; windowEnd = end; onWindowChange(); } | 3,228,992 |
public static Family getFamily(String value) { OmeroContext ctx = OmeroContext.getManagedServerContext(); IQuery iQuery = (IQuery) ctx.getBean("internal:ome.api.IQuery"); return (Family) iQuery.findByString(Family.class, "value", value); } | public static Family getFamily(IPixels iPixels, String value) { OmeroContext ctx = OmeroContext.getManagedServerContext(); IQuery iQuery = (IQuery) ctx.getBean("internal:ome.api.IQuery"); return (Family) iQuery.findByString(Family.class, "value", value); } | 3,228,993 |
public static Family getFamily(String value) { OmeroContext ctx = OmeroContext.getManagedServerContext(); IQuery iQuery = (IQuery) ctx.getBean("internal:ome.api.IQuery"); return (Family) iQuery.findByString(Family.class, "value", value); } | public static Family getFamily(String value) { OmeroContext ctx = OmeroContext.getManagedServerContext(); IQuery iQuery = (IQuery) ctx.getBean("internal:ome.api.IQuery"); return (Family) iQuery.findByString(Family.class, "value", value); } | 3,228,994 |
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) {System.out.println("First if"); return (RubyObject) tmp.getInstanceVari... | public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); ... | 3,228,995 |
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) {System.out.println("First if"); return (RubyObject) tmp.getInstanceVari... | public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) {System.out.println("First if"); return (RubyObject) tmp.getInstanceVari... | 3,228,996 |
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) {System.out.println("First if"); return (RubyObject) tmp.getInstanceVari... | public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) {System.out.println("First if"); return (RubyObject) tmp.getInstanceVari... | 3,228,997 |
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) {System.out.println("First if"); return (RubyObject) tmp.getInstanceVari... | public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) {System.out.println("First if"); return (RubyObject) tmp.getInstanceVari... | 3,228,998 |
public void setBodyNode(Node bodyNode) { this.bodyNode = bodyNode; } | public void setBodyNode(Node bodyNode) { this.bodyNode = bodyNode; } | 3,228,999 |
protected void setActException(RubyException actException) { this.actException = actException; if (actException.funcall("backtrace").isNil() && actException.getRuby().getSourceFile() != null) { actException.funcall("set_backtrace", createBacktrace(actException.getRuby(), -1)); } } | protected void setActException(RubyException actException) { this.actException = actException; if (actException.funcall("backtrace").isNil() && actException.getRuby().getSourceFile() != null) { actException.funcall("set_backtrace", createBacktrace(actException.getRuby(), -1)); } } | 3,229,000 |
protected QuantumStrategy(QuantumDef qd, PixelsType pt) { windowStart = globalMin = 0.0; windowEnd = globalMax = 1.0; family = QuantumFactory.getFamily(QuantumFactory.LINEAR); curveCoefficient = 1.0; if (qd == null) throw new NullPointerException("No quantum definition"); this.qDef = qd; ... | protected QuantumStrategy(QuantumDef qd, PixelsType pt) { windowStart = globalMin = 0.0; windowEnd = globalMax = 1.0; family = QuantumFactory.getFamily(QuantumFactory.LINEAR); curveCoefficient = 1.0; if (qd == null) throw new NullPointerException("No quantum definition"); this.qDef = qd; ... | 3,229,001 |
protected QuantumStrategy(QuantumDef qd, PixelsType pt) { windowStart = globalMin = 0.0; windowEnd = globalMax = 1.0; family = QuantumFactory.getFamily(QuantumFactory.LINEAR); curveCoefficient = 1.0; if (qd == null) throw new NullPointerException("No quantum definition"); this.qDef = qd; ... | protected QuantumStrategy(QuantumDef qd, PixelsType pt) { windowStart = globalMin = 0.0; windowEnd = globalMax = 1.0; family = QuantumFactory.getFamily(iPixels, QuantumFactory.LINEAR); curveCoefficient = 1.0; if (qd == null) throw new NullPointerException("No quantum definition"); this.qDef = q... | 3,229,002 |
public IRubyObject fcntl(IRubyObject cmd, IRubyObject arg) throws IOException { long realCmd = cmd.convertToInteger().getLongValue(); // Fixme: Arg may also be true, false, and nil and still be valid. Strangely enough, // protocol conversion is not happening in Ruby on this arg? ... | public IRubyObject fcntl(IRubyObject cmd, IRubyObject arg) throws IOException { long realCmd = cmd.convertToInteger().getLongValue(); // Fixme: Arg may also be true, false, and nil and still be valid. Strangely enough, // protocol conversion is not happening in Ruby on this arg? ... | 3,229,003 |
public IOHandlerNio(IRuby runtime, Channel channel) throws IOException { super(runtime); String mode = ""; this.channel = channel; if (channel instanceof ReadableByteChannel) { mode += "r"; isOpen = true; } if (channel instanceof WritableByteChannel) {... | public IOHandlerNio(IRuby runtime, Channel channel) throws IOException { super(runtime); String mode = ""; this.channel = channel; if (channel instanceof ReadableByteChannel) { mode += "r"; isOpen = true; } if (channel instanceof WritableByteChannel) {... | 3,229,004 |
private JPanel buildCommentPanel(String instructions, String comment, Icon icon) { JPanel commentPanel = new JPanel(); int iconSpace = 0; if (icon != null) iconSpace = icon.getIconWidth()+20; double tableSize[][] = {{iconSpace, (160 - iconSpace), TableLayout.FILL}, // ... | private JPanel buildCommentPanel(String instructions, String comment, Icon icon) { JPanel commentPanel = new JPanel(); int iconSpace = 0; if (icon != null) iconSpace = icon.getIconWidth()+20; double tableSize[][] = {{iconSpace, (160 - iconSpace), TableLayout.FILL}, // ... | 3,229,005 |
public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | 3,229,006 |
public Listener(Controllers controllers) { this.controllers = controllers; srcToEvtToMethod = new HashMap<Widget, HashMap<Integer, String>>(); } | public Listener(Controllers controllers) { this.controllers = controllers; srcToEvtToMethod = new HashMap<Widget, HashMap<Integer, String>>(); } | 3,229,008 |
public void testColor() throws Exception { assertStringTemplateEquals("layer-background-color:#FFFFCC", "layer-background-color:#FFFFCC"); } | public void testColor() throws Exception { assertStringTemplateEquals("layer-background-color:#FFFFCC", "layer-background-color:#FFFFCC"); } | 3,229,010 |
public void testTabs() throws Exception { assertStringTemplateEquals("\t#if (true) { pass }\n\t#else { fail }", " pass "); assertStringTemplateEquals("\t#if (true) \t#begin pass \t#end\t#else \t#begin fail \t#end", "pass "); } | public void testTabs() throws Exception { assertStringTemplateEquals("\t#if (true) { pass }\n\t#else { fail }", " pass "); assertStringTemplateEquals("\t#if (true) \t#begin pass \t#end\t#else \t#begin fail \t#end", "pass "); } | 3,229,011 |
public void testTabs() throws Exception { assertStringTemplateEquals("\t#if (true) { pass }\n\t#else { fail }", " pass "); assertStringTemplateEquals("\t#if (true) \t#begin pass \t#end\t#else \t#begin fail \t#end", "pass "); } | public void testTabs() throws Exception { assertStringTemplateEquals("\t#if (true) { pass }\n\t#else { fail }", " pass "); assertStringTemplateEquals("\t#if (true) \t#begin pass \t#end\t#else \t#begin fail \t#end", "pass "); } | 3,229,012 |
public void accept(NodeVisitor iVisitor) { iVisitor.visitBlockPassNode(this); } | public void accept(NodeVisitor iVisitor) { iVisitor.visitBlockPassNode(this); } | 3,229,013 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | 3,229,014 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | 3,229,015 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | 3,229,016 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | 3,229,017 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | 3,229,018 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject block = getBodyNode().eval(ruby, self); // RubyBlock oldBlock; // RubyBlock _block; // RubyBlock data; RubyObject result = ruby.getNil(); // int orphan; // int safe = ruby.getSecurityLevel(... | 3,229,019 |
public List getImageComponents() { switch (model.getState()) { case NEW: case LOADING_RENDERING_CONTROL: case DISCARDED: throw new IllegalStateException( "This method can't be invoked in the DISCARDED, NEW or" + "LOADING_RENDERI... | public List getImageComponents() { switch (model.getState()) { case NEW: case LOADING_RENDERING_CONTROL: case DISCARDED: throw new IllegalStateException( "This method can't be invoked in the DISCARDED, NEW or" + "LOADING_RENDERI... | 3,229,020 |
public void setColorModel(Map map) { switch (model.getState()) { case NEW: case LOADING_RENDERING_CONTROL: case DISCARDED: throw new IllegalStateException( "This method can't be invoked in the DISCARDED, NEW or" + "LOADING_RENDE... | public void setColorModel(Map map) { switch (model.getState()) { case NEW: case LOADING_RENDERING_CONTROL: case DISCARDED: throw new IllegalStateException( "This method can't be invoked in the DISCARDED, NEW or" + "LOADING_RENDE... | 3,229,021 |
public void setZoomFactor(double factor) { if(factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+" ... | public void setZoomFactor(double factor) { if (factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+"... | 3,229,022 |
public void setZoomFactor(double factor) { if(factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+" ... | public void setZoomFactor(double factor) { if(factor != -1) { if (factor > ZoomAction.MAX_ZOOM_FACTOR || factor < ZoomAction.MIN_ZOOM_FACTOR) throw new IllegalArgumentException("The zoom factor is value " + "between "+ZoomAction.MIN_ZOOM_FACTOR+" ... | 3,229,023 |
public IRubyObject insert(IRubyObject[] args) { checkArgumentCount(args, 1, -1); // ruby does not bother to bounds check index, if no elements are to be added. if (args.length == 1) { return this; } // too negative of an offset will throw an IndexError long offset = args[0].conv... | public IRubyObject insert(IRubyObject[] args) { checkArgumentCount(args, 1, -1); // ruby does not bother to bounds check index, if no elements are to be added. if (args.length == 1) { return this; } // too negative of an offset will throw an IndexError long offset = args[0].conv... | 3,229,024 |
private void handleMouseDrag(Point p) { switch (state) { case ROIAgt.CONSTRUCTING: currentShape = ROIFactory.makeShape(anchor, p, shapeType); view.draw(currentShape); break; case ROIAgt.MOVING: if (currentShape != null) mo... | private void handleMouseDrag(Point p) { switch (state) { case ROIAgt.CONSTRUCTING: currentShape = ROIFactory.makeShape(anchor, p, shapeType); view.draw(currentShape); break; case ROIAgt.MOVING: if (currentShape != null) mo... | 3,229,026 |
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; while (i.hasNext()) { roi = (ROIShape) ... | private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; while (i.hasNext()) { roi = (ROIShape) ... | 3,229,027 |
public void mouseReleased(MouseEvent e) { dragging = false; moving = false; switch (state) { case ROIAgt.CONSTRUCTING: if (!pressed) saveROI(); break; case ROIAgt.MOVING: case ROIAgt.RESIZING: if (currentShap... | public void mouseReleased(MouseEvent e) { dragging = false; moving = false; switch (state) { case ROIAgt.CONSTRUCTING: if (!pressed) saveROI(); break; case ROIAgt.MOVING: case ROIAgt.RESIZING: if (currentSha... | 3,229,028 |
public void setTextOnOff(boolean b) { textOnOff = b; } | public void setTextOnOff(boolean b) { textOnOff = b; } | 3,229,029 |
public void setOnOff(boolean b) { onOff = b; } | public void setOnOff(boolean b) { onOff = b; } | 3,229,030 |
public void setUp() { ruby = Ruby.getDefaultInstance(); oldHomeProperty = System.getProperty("jruby.home"); oldLibProperty = System.getProperty("jruby.lib"); } | public void setUp() { ruby = Ruby.getDefaultInstance(); oldHomeProperty = System.getProperty("jruby.home"); oldLibProperty = System.getProperty("jruby.lib"); } | 3,229,031 |
public void tearDown() { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException ex) { } } | public void tearDown() { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException ex) { } } | 3,229,032 |
public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | 3,229,033 |
public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | 3,229,034 |
public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRe... | 3,229,035 |
public void clientReconnected() { XMPPConnection con = SparkManager.getConnection(); if (con.isConnected()) { // Send Available status final Presence presence = SparkManager.getWorkspace().getStatusBar().getPresence(); SparkManager.getSessionManager().changePresence(pr... | public void clientReconnected() { XMPPConnection con = SparkManager.getConnection(); if (con.isConnected()) { // Send Available status final Presence presence = SparkManager.getWorkspace().getStatusBar().getPresence(); SparkManager.getSessionManager().changePresence(pr... | 3,229,036 |
private void reconnect(final String message, final boolean conflict) { // Show MainWindow SparkManager.getMainWindow().setVisible(true); // Flash That Window. SparkManager.getAlertManager().flashWindowStopOnFocus(SparkManager.getMainWindow()); if (reconnectListener == null) { ... | private void reconnect(final String message, final boolean conflict) { // Show MainWindow SparkManager.getMainWindow().setVisible(true); // Flash That Window. SparkManager.getAlertManager().flashWindowStopOnFocus(SparkManager.getMainWindow()); if (reconnectListener == null) { ... | 3,229,037 |
private void removeAllUsers() { // Show reconnect panel CardLayout cardLayout = (CardLayout)getLayout(); cardLayout.show(this, ROSTER_PANEL); // Behind the scenes, move everyone to the offline group. Iterator contactGroups = new ArrayList(getContactGroups()).iterator(); whi... | private void removeAllUsers() { // Show reconnect panel CardLayout cardLayout = (CardLayout)getLayout(); cardLayout.show(this, ROSTER_PANEL); // Behind the scenes, move everyone to the offline group. Iterator contactGroups = new ArrayList(getContactGroups()).iterator(); whi... | 3,229,038 |
public ToolBarManager(ViewerCtrl control, ToolBar view, int sizeT, int t, int sizeZ, int z) { this.control = control; this.view = view; maxT = sizeT; curT = t; maxZ = sizeZ; curZ = z; } | public ToolBarManager(ViewerCtrl control, ToolBar view, int sizeT, int t, int sizeZ, int z) { this.control = control; this.view = view; maxT = sizeT; curT = t; maxZ = sizeZ; curZ = z; } | 3,229,039 |
void attachListeners() { //textfield JTextField tField = view.getTField(), zField = view.getZField(); tField.setActionCommand(""+T_FIELD_CMD); tField.addActionListener(this); tField.addFocusListener(this); zField.setActionCommand(""+Z_FIELD_CMD); zField.addActionListener(this); zField.addFocusListener(this... | void attachListeners() { //textfield JTextField tField = view.getTField(), zField = view.getZField(); tField.setActionCommand(""+T_FIELD_CMD); tField.addActionListener(this); tField.addFocusListener(this); zField.setActionCommand(""+Z_FIELD_CMD); zField.addActionListener(this); zField.addFocusListener(this... | 3,229,040 |
void attachListeners() { //textfield JTextField tField = view.getTField(), zField = view.getZField(); tField.setActionCommand(""+T_FIELD_CMD); tField.addActionListener(this); tField.addFocusListener(this); zField.setActionCommand(""+Z_FIELD_CMD); zField.addActionListener(this); zField.addFocusListener(this... | void attachListeners() { //textfield JTextField tField = view.getTField(), zField = view.getZField(); tField.setActionCommand(""+T_FIELD_CMD); tField.addActionListener(this); tField.addFocusListener(this); zField.setActionCommand(""+Z_FIELD_CMD); zField.addActionListener(this); zField.addFocusListener(this... | 3,229,041 |
public Map getEnvironmentVariableMap(IRuby runtime) { String jrubyEnvMethod = System.getProperty("jruby.env.method"); IOSEnvironmentReader reader; if (jrubyEnvMethod == null || jrubyEnvMethod.length() < 1) { // Try to get environment from Java5 System.getenv() read... | public Map getEnvironmentVariableMap(IRuby runtime) { String jrubyEnvMethod = System.getProperty("jruby.env.method"); IOSEnvironmentReader reader; if (jrubyEnvMethod == null || jrubyEnvMethod.length() < 1) { // Try to get environment from Java5 System.getenv() read... | 3,229,042 |
public Map getEnvironmentVariableMap(IRuby runtime) { String jrubyEnvMethod = System.getProperty("jruby.env.method"); IOSEnvironmentReader reader; if (jrubyEnvMethod == null || jrubyEnvMethod.length() < 1) { // Try to get environment from Java5 System.getenv() read... | public Map getEnvironmentVariableMap(IRuby runtime) { String jrubyEnvMethod = System.getProperty("jruby.env.method"); IOSEnvironmentReader reader; if (jrubyEnvMethod == null || jrubyEnvMethod.length() < 1) { // Try to get environment from Java5 System.getenv() read... | 3,229,043 |
public Map getEnvironmentVariableMap(IRuby runtime) { String jrubyEnvMethod = System.getProperty("jruby.env.method"); IOSEnvironmentReader reader; if (jrubyEnvMethod == null || jrubyEnvMethod.length() < 1) { // Try to get environment from Java5 System.getenv() read... | public Map getEnvironmentVariableMap(IRuby runtime) { String jrubyEnvMethod = System.getProperty("jruby.env.method"); IOSEnvironmentReader reader; if (jrubyEnvMethod == null || jrubyEnvMethod.length() < 1) { // Try to get environment from Java5 System.getenv() read... | 3,229,044 |
public Map getSystemPropertiesMap(IRuby runtime) { return getAsMapOfRubyStrings(runtime, System.getProperties().entrySet()); } | public Map getSystemPropertiesMap(IRuby runtime) { try { return getAsMapOfRubyStrings(runtime, System.getProperties().entrySet()); } catch (AccessControlException accessEx) { return new HashMap(); } } | 3,229,045 |
public ROIAnalyzer(ROI5D[] rois, DataSink source, PixelsDimensions dims) { //Fail-fast checks. Failing in the middle of an analysis is generally //very expensive. (Think of rois[0]!=null and rois[1]==null and a //200 timepoints image; assume rois[0] defines at least one 2D selection ... | public ROIAnalyzer(ROI5D[] rois, DataSink source, PixelsDimensions dims) { //Fail-fast checks. Failing in the middle of an analysis is generally //very expensive. (Think of rois[0]!=null and rois[1]==null and a //200 timepoints image; assume rois[0] defines at least one 2D selection ... | 3,229,046 |
public ROIStats(PixelsDimensions dims) { if (dims == null) throw new NullPointerException("No dims."); } | public ROIStats(PixelsDimensions dims) { if (dims == null) throw new NullPointerException("No dims."); this.dims = dims; } | 3,229,048 |
public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | 3,229,050 |
public RateImageAction(ImViewer model, int ratingIndex) { super(model); setEnabled(true); controlsIndex(ratingIndex); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); this.ratingIndex = ratingIndex; putValue(Action.NAME, ... | public RateImageAction(ImViewer model, int ratingIndex) { super(model); setEnabled(true); controlsIndex(ratingIndex); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); this.ratingIndex = ratingIndex; putValue(Action.NAME, ... | 3,229,051 |
public String toString(){ return "Repository"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | public String toString(){ return "Repository"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); } | 3,229,052 |
protected void setUp() { pixels = new Pixels(); pixels.setId(1L); pixels.setSizeX(256); pixels.setSizeY(256); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type)... | protected void setUp() { pixels = new Pixels(); pixels.setId(1L); pixels.setSizeX(256); pixels.setSizeY(256); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type)... | 3,229,053 |
public static IRubyObject sprintf(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { throw new ArgumentError(recv.getRuntime(), "sprintf must have at least one argument"); } RubyString str = RubyString.stringValue(args[0]); RubyArray newArgs = RubyArray.create(rec... | public static IRubyObject sprintf(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { throw new ArgumentError(recv.getRuntime(), "sprintf must have at least one argument"); } RubyString str = RubyString.stringValue(args[0]); RubyArray newArgs = RubyArray.newArray(r... | 3,229,054 |
public ObjectName load(Kernel kernel, String location) { try { LiveHashSet repositories = new LiveHashSet(kernel, "repositories", Collections.singleton(new ObjectName("*:j2eeType=Repository,*"))); repositories.start(); ConfigurationInfo configurationInfo = loadConfigurationIn... | public ObjectName load(Kernel kernel, String location) { try { LiveHashSet repositories = new LiveHashSet(kernel, "repositories", Collections.singleton(new ObjectName("*:j2eeType=Repository,*"))); repositories.start(); ConfigurationInfo configurationInfo = loadConfigurationIn... | 3,229,056 |
public InvalidConfigurationException(String s, Throwable throwable) { super(s, throwable); } | public InvalidConfigurationException(String s, Throwable throwable) { super(s, throwable); } | 3,229,058 |
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | 3,229,059 |
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | 3,229,060 |
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | 3,229,061 |
public ObjectNameBuilder(MetadataManager metadataManager, String domainName, String serverName, String applicationName) { this.metadataManager = metadataManager; this.domainName = domainName; this.serverName = serverName; this.applicationName = applicationName; } | public ObjectNameBuilder(MetadataManager metadataManager, String domainName, String serverName, String moduleName) { this.metadataManager = metadataManager; this.domainName = domainName; this.serverName = serverName; this.applicationName = applicationName; } | 3,229,062 |
public ObjectNameBuilder(MetadataManager metadataManager, String domainName, String serverName, String applicationName) { this.metadataManager = metadataManager; this.domainName = domainName; this.serverName = serverName; this.applicationName = applicationName; } | public ObjectNameBuilder(MetadataManager metadataManager, String domainName, String serverName, String applicationName) { this.metadataManager = metadataManager; this.domainName = domainName; this.serverName = serverName; this.moduleName = moduleName; } | 3,229,063 |
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | 3,229,064 |
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringVisitor visitor = new AbstractSpringVisitor() { public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefiniti... | 3,229,065 |
public SparkTab(Icon icon, String text) { setLayout(new GridBagLayout()); selectedBorderColor = new Color(173, 0, 0); // setBackground(backgroundColor); this.actualText = text; iconLabel = new JLabel(icon); iconLabel.setOpaque(false); textLabel = new JLabel(text); ... | public SparkTab(Icon icon, String text) { setLayout(new GridBagLayout()); selectedBorderColor = new Color(173, 0, 0); // setBackground(backgroundColor); this.actualText = text; iconLabel = new JLabel(icon); iconLabel.setOpaque(false); textLabel = new JLabel(text); ... | 3,229,066 |
public double getPixelValue(int x1, int x2) { int offset = calculateOffset(x1, x2); return strategy.pack(data, offset, bytesPerPixel); } | public double getPixelValue(int x1, int x2) { int offset = calculateOffset(x1, x2); return strategy.pack(data, offset, bytesPerPixel); } | 3,229,067 |
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); return t; } catch (Null... | final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); return t; } catch (Null... | 3,229,068 |
public int getIntegerSetting(String key, int defaultValue) { if (containsKey(key)) { return getIntegerSetting(key); } else { return defaultValue; } } | public int getIntegerSetting(String key, int defaultValue) { if (containsKey(key)) { return getIntegerSetting(key); } else { return defaultValue; } } | 3,229,070 |
public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | 3,229,071 |
public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | 3,229,072 |
public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | 3,229,073 |
public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | 3,229,074 |
public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | public TitlePanel(String title, String description, Icon icon, boolean showDescription) { // Set the icon iconLabel.setIcon(icon); // Set the title setTitle(title); // Set the description setDescription(description); setLayout(gridBagLayout); if (showDescripti... | 3,229,075 |
private void makesureStandardFolderisCreated() { IWUserContext iwuc = getIWUserContext(); IWSlideService slideService = getIWSlideService(iwuc); String contentFolderPath = ArticleUtil.getContentRootPath(); String articlePath = ArticleUtil.getArticleRootPath(); try { //first make the folder: slideService.c... | private void makesureStandardFolderisCreated() { IWUserContext iwuc = getIWUserContext(); IWSlideService slideService = getIWSlideService(iwuc); String contentFolderPath = ArticleUtil.getContentRootPath(); String articlePath = ArticleUtil.getArticleRootPath(); try { //first make the folder: slideService.c... | 3,229,076 |
protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bai... | protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bai... | 3,229,077 |
public static String getContentRootPath(){ return ContentUtil.getContentRootPath(); } | public static String getContentRootPath(){ return ContentUtil.getContentRootPath(); } | 3,229,078 |
private static Collection getMatchingFiles(final NormalizedFile parent, final String pattern, final boolean isDirectory) { FileFilter filter = new FileFilter() { Pattern p = Pattern.compile(glob2Regexp(pattern)); public boolean accept(File pathname) { return (pathname.isDire... | private static Collection getMatchingFiles(final NormalizedFile parent, final String pattern, final boolean isDirectory) { FileFilter filter = new FileFilter() { public boolean accept(File pathname) { return (pathname.isDirectory() || !isDirectory) && p.matcher(pathname.getNa... | 3,229,079 |
public File[] listFiles(FileFilter filter) { File[] files = super.listFiles(filter); if (files == null) { return null; } else { NormalizedFile[] smartFiles = new NormalizedFile[files.length]; for (int i = 0; i < files.length; i++) { smartF... | public File[] listFiles(FileFilter filter) { File[] files = super.listFiles(filter); if (files == null) { return null; } else { NormalizedFile[] smartFiles = new NormalizedFile[files.length]; for (int i = 0; i < files.length; i++) { smartF... | 3,229,080 |
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition); | public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition); | 3,229,081 |
public TranscriptWindow() { setEditable(false); /* Load Preferences for this instance */ PreferenceManager preferenceManager = SparkManager.getPreferenceManager(); chatPref = (ChatPreferences)preferenceManager.getPreferenceData(ChatPreference.NAMESPACE); addMouseListener(this); ... | public TranscriptWindow() { setEditable(false); /* Load Preferences for this instance */ PreferenceManager preferenceManager = SparkManager.getPreferenceManager(); addMouseListener(this); addMouseMotionListener(this); setDragEnabled(true); final TranscriptWind... | 3,229,082 |
private String getDate(Date insertDate) { chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); if (insertDate == null) { insertDate = new Date(); } StyleConstants.setFontFamily(styles, font.getFontName()); StyleCon... | private String getDate(Date insertDate) { final LocalPreferences pref = SettingsManager.getLocalPreferences(); if (insertDate == null) { insertDate = new Date(); } StyleConstants.setFontFamily(styles, font.getFontName()); StyleConstants.setFontSize(styles, font.getSize(... | 3,229,083 |
private String getDate(Date insertDate) { chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); if (insertDate == null) { insertDate = new Date(); } StyleConstants.setFontFamily(styles, font.getFontName()); StyleCon... | private String getDate(Date insertDate) { chatPref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); if (insertDate == null) { insertDate = new Date(); } StyleConstants.setFontFamily(styles, font.getFontName()); StyleCon... | 3,229,084 |
public void saveTranscript(String fileName, List transcript, String headerData) { try { SimpleDateFormat formatter; File defaultSaveFile = new File(new File(Spark.getUserHome()), fileName); final JFileChooser fileChooser = new JFileChooser(defaultSaveFile); fileCho... | public void saveTranscript(String fileName, List transcript, String headerData) { try { SimpleDateFormat formatter; File defaultSaveFile = new File(new File(Spark.getUserHome()), fileName); final JFileChooser fileChooser = new JFileChooser(defaultSaveFile); fileCho... | 3,229,085 |
public ViewerCtrl(Viewer abstraction) { this.abstraction = abstraction; magFactor = ImageInspector.ZOOM_DEFAULT; } | public ViewerCtrl(Viewer abstraction) { this.abstraction = abstraction; magFactor = ImageInspector.ZOOM_DEFAULT; } | 3,229,086 |
public ViewerCtrl(Viewer abstraction) { this.abstraction = abstraction; magFactor = ImageInspector.ZOOM_DEFAULT; } | public ViewerCtrl(Viewer abstraction) { this.abstraction = abstraction; magFactor = ImageInspector.ZOOM_DEFAULT; } | 3,229,087 |
public void actionPerformed(ActionEvent e) { String s = e.getActionCommand(); int index = Integer.parseInt(s); try { switch (index) { case RENDERING: showRendering(); break; case SAVE_AS: showImageSaver(); break; case INSPECTOR: showInspector(); break; case VIEWER3D: showImage3DV... | public void actionPerformed(ActionEvent e) { String s = e.getActionCommand(); int index = Integer.parseInt(s); try { switch (index) { case RENDERING: showRendering(); break; case SAVE_AS: showImageSaver(); break; case INSPECTOR: showInspector(); break; case VIEWER3D: showImage3DV... | 3,229,088 |
void attachItemListener(AbstractButton item, int id) { item.setActionCommand(""+id); item.addActionListener(this); } | void attachItemListener(AbstractButton item, int id) { item.setActionCommand(""+id); item.addActionListener(this); } | 3,229,089 |
void attachListener() { tSlider = presentation.getTSlider(); zSlider = presentation.getZSlider(); tSlider.addChangeListener(this); zSlider.addChangeListener(this); } | void attachListener() { tSlider = presentation.getTSlider(); zSlider = presentation.getZSlider(); tSlider.addChangeListener(this); zSlider.addChangeListener(this); } | 3,229,090 |
void disposeDialogs() { if (moviePlayer != null) moviePlayer.dispose(); if (imageInspector != null) imageInspector.dispose(); moviePlayer = null; imageInspector = null; movieSettings = null; magFactor = ImageInspector.ZOOM_DEFAULT; } | void disposeDialogs() { if (moviePlayer != null) moviePlayer.dispose(); if (imageInspector != null) imageInspector.dispose(); moviePlayer = null; imageInspector = null; movieSettings = null; magFactor = ImageInspector.ZOOM_DEFAULT; } | 3,229,091 |
void disposeDialogs() { if (moviePlayer != null) moviePlayer.dispose(); if (imageInspector != null) imageInspector.dispose(); moviePlayer = null; imageInspector = null; movieSettings = null; magFactor = ImageInspector.ZOOM_DEFAULT; } | void disposeDialogs() { if (moviePlayer != null) moviePlayer.dispose(); if (imageInspector != null) imageInspector.dispose(); moviePlayer = null; imageInspector = null; movieSettings = null; magFactor = ImageInspector.ZOOM_DEFAULT; } | 3,229,092 |
public BufferedImage getBufferedImage() { return abstraction.getCurImage(); } | public BufferedImage getBufferedImage() { return abstraction.getCurImage(); } | 3,229,093 |
public ViewerUIF getReferenceFrame() { return presentation; } | public ViewerUIF getReferenceFrame() { return presentation; } | 3,229,094 |
public Registry getRegistry() { return abstraction.getRegistry(); } | public Registry getRegistry() { return abstraction.getRegistry(); } | 3,229,095 |
public void onPlaneSelected(int z, int t) { abstraction.onPlaneSelected(z, t); } | public void onPlaneSelected(int z, int t) { abstraction.onPlaneSelected(z, t); } | 3,229,096 |
public void onTChange(int z, int t) { resetTSlider(t); abstraction.onPlaneSelected(z, t); } | public void onTChange(int z, int t) { resetTSlider(t); abstraction.onPlaneSelected(z, t); } | 3,229,097 |
public void onTChange(int z, int t) { resetTSlider(t); abstraction.onPlaneSelected(z, t); } | public void onTChange(int z, int t) { resetTSlider(t); abstraction.onPlaneSelected(z, t); } | 3,229,098 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.