bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public StackElement pop() { localNames.decreaseBlockLevel(); return super.pop(); }
public StackElement pop() { localNames.setBlockLevel(localNames.getBlockLevel() - 1); return super.pop(); }
3,232,552
public void push(StackElement newElement) { localNames.increaseBlockLevel(); super.push(newElement); }
public void push(StackElement newElement) { localNames.setBlockLevel(localNames.getBlockLevel() + 1); super.push(newElement); }
3,232,553
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
3,232,554
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 ...
private void initLibraries() { loadService = new LoadService(this); loadService.registerBuiltin("java.rb", new Library() { public void load(IRuby runtime) throws IOException { Java.createJavaModule(runtime); new BuiltinScript("javasupport").load(runtime); } }); loadService.registerBuiltin("sock...
3,232,555
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...
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...
3,232,556
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"); ...
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"); ...
3,232,557
public void handleCancellation() { String info = "The data saving has been cancelled."; registry.getLogger().info(this, info); // registry.getUserNotifier().notifyInfo("Data Saving Cancellation", // info); }
registry.getUserNotifier().notifyInfo("Data Saving Cancellation", info); registry.getUserNotifier().notifyInfo("Data Saving Cancellation", info); public void handleCancellation()registry.getUserNotifier().notifyInfo("Data Saving Cancellation", info); registry.getUserNotifier().notifyInfo("Data Saving Cancellation", inf...
3,232,560
void setSelectedNode() { DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent(); if (selectedNode == node) return; ImageDisplay newObject = (ImageDisplay) node.getUserObject(); ImageDisplay oldObject = null; if (selectedNode != null) ...
void setSelectedNode() { DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent(); if (selectedNode == node) return; ImageDisplay newObject = (ImageDisplay) node.getUserObject(); ImageDisplay oldObject = null; if (selectedNode != null) ...
3,232,561
public boolean isBlockGiven() { return getCurrentFrame().isBlockGiven(); }
public boolean isBlockGiven() { return getCurrentFrame().isBlockGiven() && blockStack.peek() != null; }
3,232,562
public RubyBlock cloneBlock() { return new RubyBlock( var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev != null ? prev.cloneBlock() : null,...
public RubyBlock cloneBlock() { return new RubyBlock( var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); }
3,232,563
public String getWikiPageName(WikiSystem wiki, WebContext wc) { return null; }
public String getWikiPageName(WikiSystem wiki, WebContext wc) { return "RecentChanges"; }
3,232,564
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(); }
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(); }
3,232,565
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESE...
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESE...
3,232,566
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
3,232,567
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
3,232,568
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 ...
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 ...
3,232,569
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(); ...
private void setIdleListener() throws Exception { final Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { long idleTime = SystemInfo.getSessionIdleTime(); boolean isLocked = SystemInfo.isSessionLocked(); i...
3,232,570
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(); ...
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(); ...
3,232,571
public void run() { long idleTime = SystemInfo.getSessionIdleTime(); boolean isLocked = SystemInfo.isSessionLocked(); if (idleTime > mill) { try { // Handle if spark is not connected to the server. ...
public void run() { long idleTime = SystemInfo.getSessionIdleTime(); boolean isLocked = SystemInfo.isSessionLocked(); if (idleTime > delay) { try { // Handle if spark is not connected to the server. ...
3,232,572
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)); ...
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)); ...
3,232,573
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(...
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(...
3,232,574
public MainController(DisplayedDocument displayedDocument) { super(displayedDocument); }
public MainController(DisplayedDocument displayedDocument) { super(displayedDocument); }
3,232,577
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)...
private void getFiles() { for (Iterator iter = patterns.iterator(); iter.hasNext();) { GlobPattern globPattern = (GlobPattern) iter.next(); String[] dirs = globPattern.getPattern().split(pathSplitter); File root = new File(dirs[0]); int idx = 1; if (glob2Regexp(dirs[0]) != null) {...
3,232,579
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...
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...
3,232,580
public boolean getOnOff() { return onOff; }
public boolean getOnOff() { return onOff; }
3,232,581
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...
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...
3,232,582
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...
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...
3,232,583
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...
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...
3,232,584
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...
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...
3,232,585
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...
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...
3,232,586
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...
privatevoidsetShapeBounds(ROIShaperoi){Shapeshape=roi.getShape();Rectangler=shape.getBounds();doublefactor=roi.getAffineTransform().getMagFactor();intshapeType=roi.getShapeType();doublecoeff=magFactor/factor;ROIFactory.setShapeBounds(shape,shapeType,(int)(r.x*coeff),(int)(r.y*coeff),(int)(r.width*coeff),(int)(r.height*...
3,232,587
public FileSystemXmlApplicationContext(String[] configLocations, boolean refresh, List xmlPreprocessors) throws BeansException { this(configLocations, refresh, null, xmlPreprocessors); }
public FileSystemXmlApplicationContext(String[] configLocations, boolean refresh, List xmlPreprocessors) throws BeansException { this(configLocations, refresh, null, xmlPreprocessors); }
3,232,588
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 ...
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 ...
3,232,589
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); }
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); }
3,232,590
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); }
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); }
3,232,591
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...
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...
3,232,592
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...
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...
3,232,593
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...
static Object invoke(Method meth, Object instance, Object[] args) throws PropertyException { 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 here // otherwise,...
3,232,594
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; }
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; }
3,232,595
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; }
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; }
3,232,596
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)...
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)...
3,232,597
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)...
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)...
3,232,598
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)...
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)...
3,232,599
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)...
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)...
3,232,600
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)...
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)...
3,232,601
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)...
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)...
3,232,602
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)...
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)...
3,232,603
void hessianClean(Object obj, Set done) { if (null == obj) return; if (done.contains(obj)) return; done.add(obj); if (obj instanceof Map) { Map map = (Map) obj; for (Iterator i = map.values().iterator(); i.hasNext();) { Object va...
private void hessianClean(Object obj, Set done) { if (null == obj) return; if (done.contains(obj)) return; done.add(obj); if (obj instanceof Map) { Map map = (Map) obj; for (Iterator i = map.values().iterator(); i.hasNext();) { O...
3,232,604
void hessianClean(Object obj, Set done) { if (null == obj) return; if (done.contains(obj)) return; done.add(obj); if (obj instanceof Map) { Map map = (Map) obj; for (Iterator i = map.values().iterator(); i.hasNext();) { Object va...
void hessianClean(Object obj, Set done) { if (null == obj) return; if (done.contains(obj)) return; done.add(obj); if (obj instanceof Map) { Map map = (Map) obj; for (Iterator i = map.values().iterator(); i.hasNext();) { Object va...
3,232,605
public void testFindCGCPaths() { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); } }; // param1: not null t.blowup(true,null,1,new HashMap()); t.blowup(false,new HashSet(),1,new HashMa...
public void testFindCGCPaths() { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); } }; // param1: not null t.blowup(true,null,1,new HashMap()); t.blowup(false,new HashSet(),1,new HashMa...
3,232,606
public void testFindCGCPaths() { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); } }; // param1: not null t.blowup(true,null,1,new HashMap()); t.blowup(false,new HashSet(),1,new HashMa...
public void testFindCGCPaths() { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); } }; // param1: not null t.blowup(true,null,1,new HashMap()); t.blowup(false,new HashSet(),1,new HashMa...
3,232,607
public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); }
public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); }
3,232,608
public boolean accept(WikiSystem wiki, WebContext wc, WikiUser user) { Enumeration enum = wc.getRequest().getParameterNames(); // don't accept if we have request parameters while (enum.hasMoreElements()) return false; // and then only accept if this is a get request ...
public boolean accept(WikiSystem wiki, WebContext wc, WikiUser user) { Enumeration enum = wc.getRequest().getParameterNames(); // don't accept if we have request parameters if (enum.hasMoreElements()) return false; // and then only accept if this is a get request ...
3,232,609
public String getTemplateName(WikiSystem wiki, WikiPage page) { Properties props = wiki.getProperties(); String template = props.getProperty (page.getTitle()); return template == null ? props.getProperty ("ViewPageAction.Template") : template; }
public String getTemplateName(WikiSystem wiki, WikiPage page) { Properties props = wiki.getProperties(); String template = props.getProperty (page.getTitle()); return template == null ? props.getProperty ("ViewPageAction.Template") : template; }
3,232,610
public void create() { super.create(); delegate = (RenderingEngine) applicationContext.getBean("renderService"); }
public void create() { super.create(); delegate = (RenderingEngine) applicationContext.getBean( RenderingEngine.class.getName()); }
3,232,611
public String toString() { StringBuffer buffer = new StringBuffer(100); StringBuffer off = new StringBuffer(3); buffer.append("(?"); flagToString(buffer, off, Pattern.DOTALL, 'm'); flagToString(buffer, off, Pattern.CASE_INSENSITIVE, 'i'); flagToString(buffer, off, Pattern.COMMENTS,...
public String toString() { StringBuffer buffer = new StringBuffer(100); StringBuffer off = new StringBuffer(3); buffer.append("(?"); flagToString(buffer, off, Pattern.DOTALL, 'm'); flagToString(buffer, off, Pattern.CASE_INSENSITIVE, 'i'); flagToString(buffer, off, Pattern.COMMENTS,...
3,232,616
public void refreshEdit(DataObject object, int op) { Object o = object; if (op == Editor.CREATE_OBJECT) o = getSelectedDisplay().getUserObject(); EditVisitor visitor = new EditVisitor(this, o); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); Set nodes = ...
public void refreshEdit(DataObject object, int op) { Object o = object; if (op == Editor.CREATE_OBJECT) o = getSelectedDisplay().getUserObject(); EditVisitor visitor = new EditVisitor(this, o); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); Set nodes = ...
3,232,617
public void refreshEdit(DataObject object, int op) { Object o = object; if (op == Editor.CREATE_OBJECT) o = getSelectedDisplay().getUserObject(); EditVisitor visitor = new EditVisitor(this, o); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); Set nodes = ...
public void refreshEdit(DataObject object, int op) { Object o = object; if (op == Editor.CREATE_OBJECT) o = getSelectedDisplay().getUserObject(); EditVisitor visitor = new EditVisitor(this, o); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); Set nodes = ...
3,232,618
protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ...
protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ...
3,232,619
protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ...
protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ...
3,232,620
public static Broker getBroker(Servlet s) throws InitException { int minorVersion, majorVersion; ServletContext sc = s.getServletConfig().getServletContext(); try { majorVersion = sc.getMajorVersion(); minorVersion = sc.getMinorVersion(); } catch (NoSuchMethodError e) { ...
public static Broker getBroker(Servlet s) throws InitException { int minorVersion, majorVersion; ServletContext sc = s.getServletConfig().getServletContext(); try { majorVersion = sc.getMajorVersion(); minorVersion = sc.getMinorVersion(); } catch (NoSuchMethodError e) { ...
3,232,622
public static Broker getBroker(Servlet s) throws InitException { int minorVersion, majorVersion; ServletContext sc = s.getServletConfig().getServletContext(); try { majorVersion = sc.getMajorVersion(); minorVersion = sc.getMinorVersion(); } catch (NoSuchMethodError e) { ...
public static Broker getBroker(Servlet s) throws InitException { int minorVersion, majorVersion; ServletContext sc = s.getServletConfig().getServletContext(); try { majorVersion = sc.getMajorVersion(); minorVersion = sc.getMinorVersion(); } catch (NoSuchMethodError e) { ...
3,232,623
final public boolean directiveOk() { if (size() == 0 || size() == literalMark) return true; else { Object o = elementAt(size() - 1); if (!(o instanceof String)) return true; else { String s = (String) o; char ch = s.charAt(s.length()-1); if (ch == '=' || ch == '\...
final public boolean directiveOk() { if (size() == 0 || size() == literalMark) return true; else { Object o = elementAt(size() - 1); if (!(o instanceof String)) return true; else { String s = (String) o; char ch = s.charAt(s.length()-1); if (ch == '=' || ch == '\...
3,232,624
public String toString(){ return "Dataset"+(datasetId==null ? ":Hash"+this.hashCode() : ":"+datasetId); }
public String toString(){ return "Dataset"+(datasetId==null ? ":Hash_"+this.hashCode() : ":Id_"+datasetId); }
3,232,625
public static void createReadline(IRuby runtime) throws IOException { readline = new ConsoleReader(); readline.setUseHistory(false); readline.setUsePagination(true); ((CandidateListCompletionHandler) readline.getCompletionHandler()).setAlwaysIncludeNewline(false); currentCompletor...
public static void createReadline(IRuby runtime) throws IOException { readline = new ConsoleReader(); readline.setUseHistory(false); readline.setUsePagination(true); ((CandidateListCompletionHandler) readline.getCompletionHandler()).setAlwaysIncludeNewline(false); currentCompletor...
3,232,628
public static IRubyObject s_hist_to_a(IRubyObject recv) throws Exception { RubyArray histList = recv.getRuntime().newArray(); for (Iterator i = readline.getHistory().getHistoryList().iterator(); i.hasNext();) { histList.append(recv.getRuntime().newString((String) i.next())); } return histList; }
public static IRubyObject s_hist_to_a(IRubyObject recv) throws Exception { RubyArray histList = recv.getRuntime().newArray(); for (Iterator i = readline.getHistory().getHistoryList().iterator(); i.hasNext();) { histList.append(recv.getRuntime().newString((String) i.next())); } return histList; }
3,232,629
public static IRubyObject s_push(IRubyObject recv, IRubyObject line) throws Exception { readline.getHistory().addToHistory(line.toString()); return recv.getRuntime().getNil(); }
public static IRubyObject s_push(IRubyObject recv, IRubyObject line) throws Exception { history.addToHistory(line.toString()); return recv.getRuntime().getNil(); }
3,232,630
public static IRubyObject s_set_completion_proc(IRubyObject recv, IRubyObject proc) throws Exception { if (!proc.respondsTo("call")) throw recv.getRuntime().newArgumentError("argument must respond to call"); readline.removeCompletor(currentCompletor); currentCompletor = new ProcCompletor(proc); ...
public static IRubyObject s_set_completion_proc(IRubyObject recv, IRubyObject proc) throws Exception { if (!proc.respondsTo("call")) throw recv.getRuntime().newArgumentError("argument must respond to call"); readline.removeCompletor(currentCompletor); currentCompletor = new ProcCompletor(proc); ...
3,232,632
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)...
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)...
3,232,633
public IterNode(Node varNode, Node bodyNode, Node iterNode) { super(Constants.NODE_ITER, varNode, bodyNode, iterNode); }
public IterNode(Node varNode, Node bodyNode, Node iterNode) { super(Constants.NODE_ITER, varNode, bodyNode, iterNode); }
3,232,634
public void accept(NodeVisitor iVisitor) { iVisitor.visitIterNode(this); }
public void accept(NodeVisitor iVisitor) { iVisitor.visitIterNode(this); }
3,232,635
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); ...
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); ...
3,232,636
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); ...
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); ...
3,232,637
private JLabel buildLabel() { JLabel label = new JLabel("Preview"); label.setBounds(BORDER+WIDTH+HSPACE, TOP, 45, 10); return label; }
private JLabel buildLabel() { JLabel label = new JLabel("Preview"); label.setBounds(BORDER+WIDTH+HSPACE, TOP, 45, 10); return label; }
3,232,638
public Node gettable(String id, ISourcePosition position) { if (id.equals("self")) { return new SelfNode(position); } else if (id.equals("nil")) { return new NilNode(position); } else if (id.equals("true")) { return new TrueNode(position); } else if (id.equals(...
public Node gettable(String id, ISourcePosition position) { if (id.equals("self")) { return new SelfNode(position); } else if (id.equals("nil")) { return new NilNode(position); } else if (id.equals("true")) { return new TrueNode(position); } else if (id.equals(...
3,232,639
public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); String[] names = configuration.getLocalVariables(); if (names != null && names.length > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); List namesList = new ArrayLis...
public void initTopLocalVariables() { LocalNamesElement localNames = new LocalNamesElement(); localNamesStack.push(localNames); String[] names = configuration.getLocalVariables(); if (names != null && names.length > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(...
3,232,640
public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); String[] names = configuration.getLocalVariables(); if (names != null && names.length > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); List namesList = new ArrayLis...
public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); String[] names = configuration.getLocalVariables(); if (names != null && names.length > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); List namesList = new ArrayLis...
3,232,641
public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (...
public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (...
3,232,643
private void paintROI(Graphics2D g2D) { if (currentShape != null) { if (!manager.isMoving()) g2D.setColor(manager.getLineColor()); g2D.draw(currentShape); } List l = manager.getListROI(); if (l.size()>0) paintROICollection(g2D, l); }
private void paintROI(Graphics2D g2D) { if (currentShape != null) { g2D.setColor(manager.getLineColor()); g2D.draw(currentShape); } List l = manager.getListROI(); if (l.size()>0) paintROICollection(g2D, l); }
3,232,644
public Set getCache(){ return (Set) cache.get(); }
public Set getCache(){ return (Set) cache.get(); }
3,232,645
protected void addSeen(Object o){ if (cache.get()==null) newCache(); ( (Set) cache.get()).add(o); }
protected void addSeen(Object o){ if (cache.get()==null) newCache(); ( (Set) cache.get()).add(o); }
3,232,646
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter...
3,232,647
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter...
3,232,648
public int compare(Object arg0, Object arg1) { SourceFileData sourceFileData0 = (SourceFileData)arg0; SourceFileData sourceFileData1 = (SourceFileData)arg1; int comparison = sourceFileData0.getBaseName().compareTo( sourceFileData1.getBaseName()); if (comparison != 0) return comparison; return sourceFileData0...
public int compare(Object arg0, Object arg1) { SourceFileData sourceFileData0 = (SourceFileData)arg0; SourceFileData sourceFileData1 = (SourceFileData)arg1; int comparison = sourceFileData0.getBaseName().compareTo( sourceFileData1.getBaseName()); if (comparison != 0) return comparison; return sourceFileData0...
3,232,649
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case RECTANGLE: setType(ROIFactory.RECTANGLE, true); break; case ELLIPSE: setType(ROIFactory.ELLIPSE...
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case RECTANGLE: setType(ROIFactory.RECTANGLE, true); break; case ELLIPSE: setType(ROIFactory.ELLIPSE...
3,232,650
private void paintedDrawingButtons(boolean b) { view.getRectangle().setBorderPainted(b); view.getEllipse().setBorderPainted(!b); view.getMoveROI().setBorderPainted(false); view.getSizeROI().setBorderPainted(false); }
private void paintedDrawingButtons(boolean b) { view.getRectangle().setBorderPainted(b); view.getEllipse().setBorderPainted(!b); view.getMoveROI().setBorderPainted(false); view.getSizeROI().setBorderPainted(false); }
3,232,651
private void setType(int type, boolean b) { paintedDrawingButtons(b); control.setType(type); control.setState(ROIAgt.CONSTRUCTING); }
private void setType(int type, boolean b) { paintedDrawingButtons(b); control.setType(type); }
3,232,652
public void scale(double f) { if (f < MIN_SCALING_FACTOR || f > MAX_SCALING_FACTOR) return; scalingFactor = f; int w = (int) (originalWidth*f), h = (int) (originalHeight*f); if (fullScaleThumb != null) { displayThumb = magnifyImage(f, fullScaleThumb); w = display...
public void scale(double f) { if (f < MIN_SCALING_FACTOR || f > MAX_SCALING_FACTOR) return; scalingFactor = f; int w = (int) (originalWidth*f), h = (int) (originalHeight*f); if (fullScaleThumb != null) { displayThumb = magnifyImage(f, fullScaleThumb); w = display...
3,232,653
public RubyFixnum aref(IRubyObject other) { RubyNumeric pos = numericValue(other); boolean isSet = getValue().testBit((int) pos.getLongValue()); return RubyFixnum.newFixnum(getRuntime(), (isSet ? 1 : 0)); }
public RubyFixnum aref(IRubyObject other) { RubyNumeric pos = numericValue(other); boolean isSet = getValue().testBit((int) pos.getLongValue()); return RubyFixnum.newFixnum(getRuntime(), (isSet ? 1 : 0)); }
3,232,655
public static RubyClass createBignumClass(Ruby ruby) { return new BignumDefinition(ruby).getType(); }
public static RubyClass createBignumClass(Ruby ruby) { RubyClass result = ruby.defineClass("Bignum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineMethod("~", callbackFactory.getMethod(RubyBignum.class, "op_invert")); result.defineMethod("&", ca...
3,232,658
public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { return bigNorm(getRuntime(), value.and(((RubyBignum) other).value)); } else { return bigNorm(getRuntime(), getValue()...
public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { return bigNorm(getRuntime(), value.and(((RubyBignum) other).value)); } else { return bigNorm(getRuntime(), getValue()...
3,232,659
public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { return bigNorm(getRuntime(), value.and(((RubyBignum) other).value)); } else { return bigNorm(getRuntime(), getValue()...
public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { return bigNorm(getRuntime(), value.and(((RubyBignum) other).value)); } else { return bigNorm(getRuntime(), getValue()...
3,232,660
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue(...
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue(...
3,232,662
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue(...
publicRubyNumericop_div(IRubyObjectnum){RubyNumericother=numericValue(num);if(otherinstanceofRubyFloat){returnRubyFloat.newFloat(getRuntime(),getDoubleValue()).op_div(other);}BigIntegerresults[]=getValue().divideAndRemainder(bigIntValue(other));if(results[0].compareTo(BigInteger.ZERO)<=0&&results[1].compareTo(BigIntege...
3,232,663
public RubyBignum op_lshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) throw new RangeError(runtime, "bignum too big to convert into `int'"); return new RubyBignum(runtime, value.shiftLeft((int) shif...
public RubyBignum op_lshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) throw new RangeError(runtime, "bignum too big to convert into `int'"); return new RubyBignum(runtime, value.shiftLeft((int) shif...
3,232,664
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_minus(other); } return bigNorm(getRuntime(), getValue().subtract(bigIntValue(other))); }
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_minus(other); } return bigNorm(getRuntime(), getValue().subtract(bigIntValue(other))); }
3,232,665
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).modulo(other); } BigInteger m = bigIntValue(other); BigInteger result = getValue().mod(m.abs()...
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).modulo(other); } BigInteger m = bigIntValue(other); BigInteger result = getValue().mod(m.abs()...
3,232,666
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); }
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); }
3,232,667
public RubyInteger op_or(IRubyObject num) { RubyNumeric other = numericValue(num); return newBignum(value.or(bigIntValue(other))); }
public RubyInteger op_or(IRubyObject num) { RubyNumeric other = numericValue(num); return newBignum(value.or(bigIntValue(other))); }
3,232,668
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } return bigNorm(getRuntime(), getValue().add(bigIntValue(other))); }
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } return bigNorm(getRuntime(), getValue().add(bigIntValue(other))); }
3,232,669