bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { r...
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { r...
3,227,995
public boolean accept(File pathname) { return pathname.getAbsolutePath().endsWith(".java"); }
public boolean accept(File pathname) { return pathname.getAbsolutePath().endsWith(".java"); }
3,227,996
protected void clearHighlights() { if (lastEntered != null) { lastEntered.setParamsHighlighted(false); ChainModuleData mod = lastEntered.getModule(); if (mod != null) mod.setModulesHighlighted(false); } }
protected void clearHighlights() { if (lastEntered != null) { lastEntered.setParamsHighlighted(false); ChainModuleData mod = lastEntered.getModule(); if (mod != null) mod.setModulesHighlighted(false); } }
3,227,997
public boolean waitForUnsatisfiedConditions(ServiceName serviceName, Set conditions) throws UnsatisfiedConditionsException { throw new UnsatisfiedConditionsException("Unsatisfied start conditions", serviceName, conditions); }
public boolean waitForUnsatisfiedConditions(ServiceName serviceName, Set conditions) throws UnsatisfiedConditionsException { throw new UnsatisfiedConditionsException("Unsatisfied stop conditions", serviceName, conditions); }
3,227,998
public ForcedStopException(ServiceName serviceName, Set unsatisfiedConditions) { super("Forced stop and ignored unsatisfied conditons:" + " serviceName=" + serviceName + ", unsatisfiedConditions=" + unsatisfiedConditions); this.serviceName = serviceName; this.unsat...
public ForcedStopException(ServiceName serviceName, Set unsatisfiedConditions) { super("Forced stop and ignored unsatisfied conditons:" + " serviceName=" + serviceName + ", unsatisfiedConditions=" + unsatisfiedConditions); this.serviceName = serviceName; this.unsat...
3,227,999
public UnsatisfiedConditionsException(String message, ServiceName serviceName, Set unsatisfiedConditions) { super(message + ": serviceName=" + serviceName + ": unsatisfiedConditions=" + unsatisfiedConditions); this.serviceName = serviceName; this.unsatisfiedConditions = unsatisfiedConditions; ...
public UnsatisfiedConditionsException(String message, ServiceName serviceName, Set unsatisfiedConditions) { super(message + ": serviceName=" + serviceName + ": unsatisfiedConditions=" + unsatisfiedConditions); this.serviceName = serviceName; this.unsatisfiedConditions = Collections.unmodifiable...
3,228,000
public Main(String[] args) throws IOException { Copyright.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[1] = new LongOpt("line", LongOpt.REQUIRED_ARGUMENT, null, 'l')...
public Main(String[] args) throws IOException { Copyright.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[1] = new LongOpt("line", LongOpt.REQUIRED_ARGUMENT, null, 'l')...
3,228,002
public boolean isLensVisible() { return view.isLensVisible(); }
public boolean isLensVisible() { if (model.getState() == DISCARDED) throw new IllegalStateException("The method cannot be invoked in " + "the DISCARDED state."); return view.isLensVisible(); }
3,228,005
void setLensVisible(boolean b) { if (lens == null) lens = new LensComponent(this); if (b) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShown) { ...
void setLensVisible(boolean b) { if (lens == null) lens = new LensComponent(this); if (b) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShown) { ...
3,228,007
public SpringServiceFactory(RootBeanDefinition beanDefinition, Map objectNameMap) throws Exception { this.beanDefinition = beanDefinition; this.objectNameMap = objectNameMap; extractDependencies(beanDefinition); }
public SpringServiceFactory(RootBeanDefinition beanDefinition, Map objectNameMap) throws Exception { this.beanDefinition = beanDefinition; this.objectNameMap = objectNameMap; dependencies = SpringUtil.extractDependencies(beanDefinition, objectNameMap); }
3,228,008
public Object createService(final ServiceContext serviceContext) throws Exception { Object service = null; try { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); ServiceContext oldServiceContext = ServiceContextThreadLocal.get(); try { ...
public Object createService(final ServiceContext serviceContext) throws Exception { Object service = null; try { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); ServiceContext oldServiceContext = ServiceContextThreadLocal.get(); try { ...
3,228,009
void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException;
void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException;
3,228,010
public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { visitConstructorArgumentValues(beanDefinition.getConstructorArgumentValues()); visitMutablePropertyValues(beanDefinition.getPropertyValues()); }
public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { visitConstructorArgumentValues(beanDefinition.getConstructorArgumentValues()); visitMutablePropertyValues(beanDefinition.getPropertyValues()); }
3,228,011
public void visitRuntimeBeanReference(RuntimeBeanReference beanReference) throws BeansException { }
public void visitRuntimeBeanReference(RuntimeBeanReference beanReference, Object data) throws BeansException { }
3,228,012
public ServiceFactory(String contextName){ this.ctx = OmeroContext.getInstance(contextName); }
public ServiceFactory(String contextName){ this.ctx = OmeroContext.getInstance(contextName); }
3,228,013
public JavaConstructor(Constructor[] constructors) { this.constructors = constructors; }
public JavaConstructor(Constructor[] constructors) { this.constructors = constructors; }
3,228,014
private void checkTabPopup(MouseEvent e) { final SparkTab tab = (SparkTab)e.getSource(); if (!e.isPopupTrigger()) { return; } final JPopupMenu popup = new JPopupMenu(); // Handle closing this room. Action closeThisAction = new AbstractAction() { public...
private void checkTabPopup(MouseEvent e) { final SparkTab tab = (SparkTab)e.getSource(); if (!e.isPopupTrigger()) { return; } final JPopupMenu popup = new JPopupMenu(); // Handle closing this room. Action closeThisAction = new AbstractAction() { public...
3,228,015
public void actionPerformed(ActionEvent e) { for(ChatRoom rooms : getStaleChatRooms()){ closeTab(rooms); } }
public void actionPerformed(ActionEvent e) { for (ChatRoom rooms : getStaleChatRooms()) { closeTab(rooms); } }
3,228,016
public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =...
public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =...
3,228,017
public Collection<ChatRoom> getStaleChatRooms() { final List<ChatRoom> staleRooms = new ArrayList<ChatRoom>(); for (ChatRoom chatRoom : getChatRooms()) { long lastActivity = chatRoom.getLastActivity(); long currentTime = System.currentTimeMillis(); long diff = currentT...
public Collection<ChatRoom> getStaleChatRooms() { final List<ChatRoom> staleRooms = new ArrayList<ChatRoom>(); for (ChatRoom chatRoom : getChatRooms()) { long lastActivity = chatRoom.getLastActivity(); long currentTime = System.currentTimeMillis(); long diff = currentT...
3,228,019
public void useTabDefault(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); final JLabel titleLabel = tab.getTitleLabel(); Font font = titleLabel.getFont(); titleLabel.setForeground(Color.blac...
public void useTabDefault(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); final JLabel titleLabel = tab.getTitleLabel(); titleLabel.setForeground(Color.black); Font newFont = font...
3,228,021
public void useTabDefault(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); final JLabel titleLabel = tab.getTitleLabel(); Font font = titleLabel.getFont(); titleLabel.setForeground(Color.blac...
public void useTabDefault(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); final JLabel titleLabel = tab.getTitleLabel(); Font font = titleLabel.getFont(); titleLabel.setForeground(Color.blac...
3,228,022
public KernelErrorsError(List errors) { assert errors != null : "errors is null"; assert !errors.isEmpty() : "errors is empty"; assert assertAllErrors(errors); this.errors = Collections.unmodifiableList(errors); }
public KernelErrorsError(List errors) { assert errors != null : "errors is null"; assert !errors.isEmpty() : "errors is empty"; assert assertAllErrors(errors); this.errors = Collections.unmodifiableList(errors); }
3,228,023
public void visitBlockNode(BlockNode iVisited) { Iterator iter = iVisited.iterator(); while (iter.hasNext()) { eval((Node) iter.next()); } }
public void visitBlockNode(BlockNode iVisited) { Iterator iter = iVisited.iterator(); while (iter.hasNext()) { eval((Node) iter.next()); } }
3,228,024
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject proc = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
3,228,025
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (proc.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
3,228,026
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
3,228,027
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
3,228,028
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
3,228,029
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { threadContext.getIterStack().push(Iter.ITER_NOT); try { eval(iVisited.getIterNode()); return; } finally { ...
3,228,030
public void visitFCallNode(FCallNode iVisited) { Block tmpBlock = threadContext.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(runtime, threadContext, iVisited.getArgsNode()); } finally { threadContext.endCallArgs(tmpBlock); } result =...
public void visitFCallNode(FCallNode iVisited) { Block tmpBlock = threadContext.beginCallArgs(); IRubyObject[] args; try { args = setupArgs(runtime, threadContext, iVisited.getArgsNode()); } finally { threadContext.endCallArgs(tmpBlock); } result = self.g...
3,228,031
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(Block.createBlock(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode(), iVisited.getVarNode()), self)); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try...
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(Block.createBlock(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode(), iVisited.getVarNode()), self)); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try...
3,228,032
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(Block.createBlock(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode(), iVisited.getVarNode()), self)); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try...
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(Block.createBlock(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode(), iVisited.getVarNode()), self)); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try...
3,228,033
private void initOverlayShapes() { int width = getImage().getWidth(null); int height = getImage().getHeight(null); PaintShapeGenerator generator = PaintShapeGenerator.getInstance(); if(multipleModeOn) { Shape prevShape = generator.getPrevImageShape(); ...
private void initOverlayShapes() { int width = getImage().getWidth(null); int height = getImage().getHeight(null); PaintShapeGenerator generator = PaintShapeGenerator.getInstance(); if(multipleModeOn) { Shape prevShape = generator.getPrevImageShape(); ...
3,228,034
public Shape getNextImageShape() { GeneralPath path = new GeneralPath(); path.moveTo(0,0); path.lineTo(12,12); path.lineTo(0,24); path.closePath(); return path; }
public Shape getNextImageShape() { GeneralPath path = new GeneralPath(); path.moveTo(0,0); path.lineTo(12,12); path.lineTo(0,24); path.closePath(); return path; }
3,228,036
public synchronized int[] getRGBA(int w) { ChannelBinding[] cb = renderer.getChannelBindings();// int[] rgba = cb[w].getColor, copy = new int[rgba.length];// System.arraycopy(rgba, 0, copy, 0, rgba.length);// return copy; // NOTE: The rgba is supposed to be read-only; however w...
public synchronized int[] getRGBA(int w) { ChannelBinding[] cb = renderer.getChannelBindings();// int[] rgba = cb[w].getColor, copy = new int[rgba.length];// System.arraycopy(rgba, 0, copy, 0, rgba.length);// return copy; // NOTE: The rgba is supposed to be read-only; however w...
3,228,037
public synchronized void setChannelWindow(int w, double start, double end) { QuantumStrategy qs = renderer.getQuantumManager().getStrategyFor(w); qs.setWindow(start, end); ChannelBinding[] cb = renderer.getChannelBindings(); // FIXME cb[w].setInputWindow(start, end); }
cb[w].setInputStart(new Float(start)); cb[w].setInputEnd(new Float(end)); cb[w].setInputStart(new Float(start)); cb[w].setInputEnd(new Float(end)); cb[w].setInputStart(new Float(start)); cb[w].setInputEnd(new Float(end)); cb[w].setInputStart(new Float(start)); cb[w].setInputEnd(new Float(end)); publiccb[w].setInputStar...
3,228,038
public synchronized void setCodomainInterval(int start, int end) { CodomainChain chain = renderer.getCodomainChain(); chain.setInterval(start, end); RenderingDef rd = renderer.getRenderingDef(); QuantumDef qd = rd.getQuantization(), newQd; newQd = new QuantumDef(); newQd...
public synchronized void setCodomainInterval(int start, int end) {CodomainMapContext mapCtx; Iterator i = rd.getSpatialDomainEnhancement().iterator(); while (i.hasNext()) { mapCtx = (CodomainMapContext) i.next(); mapCtx.setCodomain(start, end); } CodomainChain chain = renderer.getCodomainChain();CodomainMapConte...
3,228,039
public synchronized void setRGBA(int w, int red, int green, int blue, int alpha) { ChannelBinding[] cb = renderer.getChannelBindings(); // FIXMEcb[w].setRGBA(red, green, blue, alpha); Color c = cb[w].getColor(); c.setRed(Integer.valueOf(red)); c.setGreen(Integer.valu...
public synchronized void setRGBA(int w, int red, int green, int blue, int alpha) { ChannelBinding[] cb = renderer.getChannelBindings(); // FIXMEcb[w].setRGBA(red, green, blue, alpha); Color c = cb[w].getColor(); c.setRed(Integer.valueOf(red)); c.setGreen(Integer.valu...
3,228,040
public double[] getChannelStats(int w); //Do we need that one?
public double[] getChannelStats(int w); //Do we need that one?
3,228,041
public static RenderingDef createDefaultRenderingDef(Pixels metadata, PixelsStats stats) { int c_size = metadata.getSizeC().intValue(); int z_size = metadata.getSizeZ().intValue(); QuantumDef qDef = new QuantumDef(); qDef.setBitResolution(QuantumFactory.DEPTH_8BIT); ...
public static RenderingDef createDefaultRenderingDef(Pixels metadata, PixelsStats stats) { int c_size = metadata.getSizeC().intValue(); int z_size = metadata.getSizeZ().intValue(); QuantumDef qDef = new QuantumDef(); qDef.setBitResolution(QuantumFactory.DEPTH_8BIT); ...
3,228,042
public Renderer(IPixels iPixels, Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; this.iPixels = iPixels; if (metadata == null) throw new NullPointerExcepti...
public Renderer(IPixels iPixels, Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; this.iPixels = iPixels; if (metadata == null) throw new NullPointerExcepti...
3,228,043
public Renderer(IPixels iPixels, Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; this.iPixels = iPixels; if (metadata == null) throw new NullPointerExcepti...
public Renderer(IPixels iPixels, Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; this.iPixels = iPixels; if (metadata == null) throw new NullPointerExcepti...
3,228,044
public Renderer(IPixels iPixels, Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; this.iPixels = iPixels; if (metadata == null) throw new NullPointerExcepti...
public Renderer(IPixels iPixels, Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; this.iPixels = iPixels; if (metadata == null) throw new NullPointerException("Expecting not null metadata"); ...
3,228,045
public static Color getColor(int index, Channel channel) { Color c = ColorsFactory.getColor(channel); if (c != null) return c; switch (index) { case 0: return BLUE_COLOR; case 1: return GREEN_COLOR; default: return RED_COLOR; } }
private static Color getColor(Channel channel) { Color c = ColorsFactory.getColor(channel); if (c != null) return c; switch (index) { case 0: return BLUE_COLOR; case 1: return GREEN_COLOR; default: return RED_COLOR; } }
3,228,046
public static Color getColor(int index, Channel channel) { Color c = ColorsFactory.getColor(channel); if (c != null) return c; switch (index) { case 0: return BLUE_COLOR; case 1: return GREEN_COLOR; default: return RED_COLOR; } }
public static Color getColor(int index, Channel channel) { Color c = ColorsFactory.getColor(channel); if (c != null) return c; switch (index) { case 0: return BLUE_COLOR; case 1: return GREEN_COLOR; default: return RED_COLOR; } }
3,228,047
public void setDefaultT(int t); //Is it the best way to do it?
public void setDefaultT(int t); //Is it the best way to do it?
3,228,048
public void setDefaultZ(int z); //Is it the best way to do it?
public void setDefaultZ(int z); //Is it the best way to do it?
3,228,049
public IObject find(@NotNull final Class klass, final long id) { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { IObject o = (IObject) session.get(klass,id); ...
public IObject find(@NotNull final Class klass, final long id) { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { IObject o = (IObject) session.get(klass,id); ...
3,228,050
public Object doInHibernate(Session session) throws HibernateException { IObject o = (IObject) session.get(klass,id); Hibernate.initialize(o); return o; }
public Object doInHibernate(Session session) throws HibernateException { IObject o = (IObject) session.get(klass,id); return o; }
3,228,051
public IObject get(@NotNull final Class klass, final long id) throws ValidationException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { IObject o = null; ...
public IObject get(@NotNull final Class klass, final long id) throws ValidationException { return (IObject) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { IObject o = null; ...
3,228,052
public Object doInHibernate(Session session) throws HibernateException { IObject o = null; try { o = (IObject) session.load(klass,id); } catch (ObjectNotFoundException onfe) { ...
public Object doInHibernate(Session session) throws HibernateException { IObject o = null; try { o = (IObject) session.load(klass,id); } catch (ObjectNotFoundException onfe) { ...
3,228,053
int translateFlags(int options) { int flags = Pattern.MULTILINE; if ((options & ReOptions.RE_OPTION_IGNORECASE) > 0) { flags |= Pattern.CASE_INSENSITIVE; } if ((options & ReOptions.RE_OPTION_EXTENDED) > 0) { flags |= Pattern.COMMENTS; } if ((options & ReOpti...
int translateFlags(int options) { int flags = Pattern.MULTILINE; if ((options & ReOptions.RE_OPTION_IGNORECASE) > 0) { flags |= Pattern.CASE_INSENSITIVE; } if ((options & ReOptions.RE_OPTION_EXTENDED) > 0) { flags |= Pattern.COMMENTS; } if ((options & ReOpti...
3,228,055
String translatePattern(String regex, boolean commentsAllowed) { regex = COMMENT_PATTERN.matcher(regex).replaceAll(""); regex = HEX_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"x0$1"); regex = OCTAL_MISSING_ZERO_PATTERN.matcher(regex).replaceAll("\\\\"+"0$1"); if (commentsAllowed) { regex = SPACE_IN_CH...
String translatePattern(String regex, boolean commentsAllowed) { regex = COMMENT_PATTERN.matcher(regex).replaceAll(""); regex = HEX_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"x0$1"); regex = OCTAL_MISSING_ZERO_PATTERN.matcher(regex).replaceAll("\\\\"+"0$1"); if (commentsAllowed) { regex = SPACE_IN_CH...
3,228,056
public RubyClass newSubClass(String name, RubyModule parent) { return new StringMetaClass(name, this, parent); }
public RubyClass newSubClass(String name, RubyModule parent) { return new StringMetaClass(name, this, parent); }
3,228,057
public void defineMethod(String name, Arity arity, String java_name) { assert name != null; assert arity != null; assert java_name != null; Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; addMethod(name, new ReflectedMethod(this, builtinClass, java_name, arity, vi...
public void defineMethod(String name, Arity arity, String java_name) { assert name != null; assert arity != null; assert java_name != null; Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; addMethod(name, new ReflectedMethod(this, builtinClass, java_name, arity, vi...
3,228,058
protected ObjectMetaClass(String name, Class builtinClass, RubyClass superClass) { this(name, builtinClass, superClass, superClass.getRuntime().getClass("Object").getCRef()); }
protected ObjectMetaClass(String name, Class builtinClass, RubyClass superClass) { this(name, builtinClass, superClass, superClass.getRuntime().getClass("Object").getCRef()); }
3,228,059
public void handleBackgroundClick() { System.err.println("handling background click.."); hideLastChainView(); super.handleBackgroundClick(); SelectAnalysisChain event = new SelectAnalysisChain(null); registry.getEventBus().post(event); }
public void handleBackgroundClick() { System.err.println("handling background click.."); hideLastChainView(); super.handleBackgroundClick(); SelectAnalysisChain event = new SelectAnalysisChain(null); registry.getEventBus().post(event); }
3,228,060
public void hideLastChainView() { if (lastChainView != null) { lastChainView.hide(); } lastChainView = null; }
public void hideLastChainView() { if (lastChainView != null) { lastChainView.hide(); } lastChainView = null; }
3,228,061
public void mouseExited(PInputEvent e) { PNode n = e.getPickedNode(); if (n instanceof ChainBox) checkExit((ChainBox) n,e); else super.mouseExited(e); e.setHandled(true); }
public void mouseExited(PInputEvent e) { PNode n = e.getPickedNode(); if (n instanceof ChainBox) checkExit((ChainBox) n,e); else super.mouseExited(e); e.setHandled(true); }
3,228,063
public void setLastChainView(PaletteChainView lastChainView) { System.err.println("last chain view is ..."+lastChainView); this.lastChainView = lastChainView; }
public void setLastChainView(PaletteChainView lastChainView) { System.err.println("last chain view is ..."+lastChainView); this.lastChainView = lastChainView; }
3,228,064
protected void setLastEntered(PNode node) { System.err.println("setting last entered to .."+node); if (lastChainView != null && lastChainView != node && node != null && !lastChainView.isAncestorOf(node)) hideLastChainView(); if (node instanceof ChainBox) { ChainBox cb = (ChainBox)node; if (cb.getChainV...
protected void setLastEntered(PNode node) { System.err.println("setting last entered to .."+node); if (lastChainView != null && lastChainView != node && node != null && !lastChainView.isAncestorOf(node)) hideLastChainView(); if (node instanceof ChainBox) { ChainBox cb = (ChainBox)node; if (cb.getChainV...
3,228,065
protected void setLastEntered(PNode node) { System.err.println("setting last entered to .."+node); if (lastChainView != null && lastChainView != node && node != null && !lastChainView.isAncestorOf(node)) hideLastChainView(); if (node instanceof ChainBox) { ChainBox cb = (ChainBox)node; if (cb.getChainV...
protected void setLastEntered(PNode node) { System.err.println("setting last entered to .."+node); if (lastChainView != null && lastChainView != node && node != null && !lastChainView.isAncestorOf(node)) hideLastChainView(); if (node instanceof ChainBox) { ChainBox cb = (ChainBox)node; if (cb.getChainV...
3,228,066
private void setSelectedChain(ChainView chain) { System.err.println("setting selected chain.."+chain.getChain().getName()); if (chain != null && chain.getChain() != null) { ((ChainPaletteCanvas) canvas).setDraggingChain(chain.getChain());; } }
private void setSelectedChain(ChainView chain) { System.err.println("setting selected chain.."+chain.getChain().getName()); if (chain != null && chain.getChain() != null) { ((ChainPaletteCanvas) canvas).setDraggingChain(chain.getChain());; } }
3,228,067
public void activate(Rectangle bounds) { switch (model.getState()) { case NEW: model.fireHierarchyLoading(); view.setComponentBounds(bounds); //view.setOnScreen(); fireStateChange(); break; case DISCARDED: ...
publicvoidactivate(Rectanglebounds){switch(model.getState()){caseNEW:model.fireHierarchyLoading();view.setComponentBounds(bounds);//view.setOnScreen();fireStateChange();break;caseDISCARDED:thrownewIllegalStateException("Thismethodcan'tbeinvokedintheDISCARDEDstate.");default:view.deIconify();}}
3,228,068
public TreeView getTreeView() { int state = model.getState(); if (state == NEW && state == DISCARDED) throw new IllegalStateException( "This method cannot be invoked in the NEW "+ "or DISCARDED state."); TreeView treeView = model.getTreeView(); if (tr...
public TreeView getTreeView() { int state = model.getState(); if (state == NEW && state == DISCARDED) throw new IllegalStateException( "This method cannot be invoked in the NEW "+ "or DISCARDED state."); TreeView treeView = model.getTreeView(); if (tr...
3,228,069
protected Java getJava() { if (java == null) { java = (Java)getProject().createTask("java"); java.setTaskName(getTaskName()); java.setClassname(getClassName()); java.setFork(true); java.setDir(getProject().getBaseDir()); /** * We replace %20 with a space character because, for some * reason, when w...
protected Java getJava() { if (java == null) { java = (Java)getProject().createTask("java"); java.setTaskName(getTaskName()); java.setClassname(getClassName()); java.setFork(true); java.setDir(getProject().getBaseDir()); /** * We replace %20 with a space character because, for some * reason, when w...
3,228,075
public static Pixels createPixelGraph(Pixels example) { Pixels p = new Pixels(); AcquisitionContext ac = new AcquisitionContext(); PhotometricInterpretation pi = new PhotometricInterpretation(); AcquisitionMode mode = new AcquisitionMode(); PixelsType pt = new PixelsType(); ...
public static Pixels createPixelGraph(Pixels example) { Pixels p = new Pixels(); AcquisitionContext ac = new AcquisitionContext(); PhotometricInterpretation pi = new PhotometricInterpretation(); AcquisitionMode mode = new AcquisitionMode(); PixelsType pt = new PixelsType(); ...
3,228,077
public ComponentMap(Settings initProps) { _config = initProps; }
public ComponentMap(Settings initProps) { _config = initProps; }
3,228,079
public void load(String namelist, String suffix) { load(tokenize(namelist), suffix); }
public void load(String namelist, String suffix) { load(tokenize(namelist), suffix); }
3,228,080
public String asSymbol() { throw getRuntime().newTypeError(inspect().getValue() + " is not a symbol"); }
public String asSymbol() { throw getRuntime().newTypeError(inspect().toString() + " is not a symbol"); }
3,228,081
public IRubyObject evalUnder(RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line) { /* if (ruby_safe_level >= 4) { Check_Type(src, T_STRING); } else { Check_SafeStr(src); } */ return under.executeUnder(new Callback() { public IR...
public IRubyObject evalUnder(RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line) { /* if (ruby_safe_level >= 4) { Check_Type(src, T_STRING); } else { Check_SafeStr(src); } */ return under.executeUnder(new Callback() { public IR...
3,228,082
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject source = args[1]; IRubyObject filename = args[2]; IRubyObject lineNumber = args[3]; return args[0].eval(source, self.getRuntime().getNil...
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject source = args[1]; IRubyObject filename = args[2]; IRubyObject lineNumber = args[3]; return args[0].eval(source, self.getRuntime().getNil...
3,228,083
public String toString() { return ((RubyString) callMethod("to_s")).getValue(); }
public String toString() { return ((RubyString) callMethod("to_s")).toString(); }
3,228,084
public RubyString to_s() { String cname = getMetaClass().getRealClass().getName(); RubyString str = getRuntime().newString(""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(System.identityHashCode(this)) + ">"); str.setTaint(isTaint()); ...
public RubyString to_s() { String cname = getMetaClass().getRealClass().getName(); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(System.identityHashCode(this)) + ">"); str.setTaint(isTaint()); return str; }
3,228,085
public RubyString to_s() { String cname = getMetaClass().getRealClass().getName(); RubyString str = getRuntime().newString(""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(System.identityHashCode(this)) + ">"); str.setTaint(isTaint()); ...
public RubyString to_s() { String cname = getMetaClass().getRealClass().getName(); RubyString str = getRuntime().newString(""); /* 6:tags 16:addr 1:eos */ RubyString str = getRuntime().newString("#<" + cname + ":0x" + Integer.toHexString(System.identityHashCode(this)) + ">"); str....
3,228,086
public RaiseException newNoMethodError(String message);
public RaiseException newNoMethodError(String message);
3,228,087
public static void main(String arg[]) { try { EncodingCache ec = new EncodingCache("UTF8", 11, 3); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s; while ((s = in.readLine()) != null) { s = s.intern(); Sys...
public static void main(String arg[]) { try { /** byte[] prefix = getPrefix(arg[0]); System.out.println("Prefix for " + arg[0] + " is " + prefix.length + " bytes long"); */ EncodingCache ec = new EncodingCache("UTF16-LE", 11, 3); BufferedReader in = new BufferedReader(new Input...
3,228,088
public static void main(String arg[]) { try { EncodingCache ec = new EncodingCache("UTF8", 11, 3); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s; while ((s = in.readLine()) != null) { s = s.intern(); Sys...
public static void main(String arg[]) { try { EncodingCache ec = new EncodingCache("UTF8", 11, 3); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s; while ((s = in.readLine()) != null) { s = s.intern(); Sys...
3,228,089
public void respondDrag(PInputEvent e) { currentSelectPoint = e.getCamera().viewToLocal(e.getPosition()); repaint(); }
public void respondDrag(PInputEvent e) { double originalX = selectionAnchorPoint.getX(); double originalY = selectionAnchorPoint.getY(); double newX = e.getPosition().getX(); double newY = e.getPosition().getY(); double minX = Math.min(originalX,newX); double minY = Math.min(originalY,newY); ...
3,228,090
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(initialSelectPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(initialSelectPoint.getY(), ...
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(selectionAnchorPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(initialSelectPoint.getY(), ...
3,228,091
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(initialSelectPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(initialSelectPoint.getY(), ...
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(initialSelectPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(selectionAnchorPoint.getY(), ...
3,228,092
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(initialSelectPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(initialSelectPoint.getY(), ...
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(initialSelectPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(initialSelectPoint.getY(), ...
3,228,093
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(initialSelectPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(initialSelectPoint.getY(), ...
public void respondEndDrag(PInputEvent e) { Point2D endSelectPoint = e.getPosition(); double tlX = Math.min(initialSelectPoint.getX(), endSelectPoint.getX()); double tlY = Math.min(initialSelectPoint.getY(), ...
3,228,094
public void respondStartDrag(PInputEvent e) { Point2D position = e.getPosition(); Dimension2D offset = e.getDelta(); initialSelectPoint = new Point2D.Double(position.getX()- offset.getWidth(), ...
public void respondStartDrag(PInputEvent e) { Point2D position = e.getPosition(); Dimension2D offset = e.getDelta(); initialSelectPoint = new Point2D.Double(position.getX()- offset.getWidth(), ...
3,228,096
public void updateConstraints() { Dimension dimension = getSize(); double width = dimension.getWidth(); double height = dimension.getHeight(); double xRatio = width / footprint.getWidth(); double yRatio = height / footprint.getHeight(); if(Math.mi...
public void updateConstraints() { Dimension dimension = getSize(); double width = dimension.getWidth(); double height = dimension.getHeight(); double xRatio = width / footprint.getWidth(); double yRatio = height / footprint.getHeight(); if(Math.mi...
3,228,099
public TreeContextMenuController(DisplayedDocument displayedDocument) { super(displayedDocument); }
public TreeContextMenuController(DisplayedDocument displayedDocument) { super(displayedDocument); }
3,228,100
protected Method getMethod(String methodDescriptor) { String className = getClass().getCanonicalName(); if (!methodDescriptor.startsWith(className)) return null; int separator = className.length(); try { return getClass().getMethod(methodDescriptor.substring(separator + 1), METHOD_ARGS); } catch (NoSuchMethodEx...
protected Method getMethod(String methodDescriptor) { String className = getClass().getCanonicalName(); if (!methodDescriptor.startsWith(className)) return null; int separator = className.length(); try { return getClass().getMethod(methodDescriptor.substring(separator + 1), METHOD_ARGS); } catch (NoSuchMethodEx...
3,228,101
public static Callback getNilMethod() { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getNil(); } }; }
public static Callback getNilMethod(final int arity) { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getNil(); } }; }
3,228,103
public static RubyModule createComparable(Ruby ruby) { RubyModule comparableModule = ruby.defineModule("Comparable"); comparableModule.defineMethod( "==", CallbackFactory.getSingletonMethod(RubyComparable.class, "equal", RubyObject.class)); comparableModule.defineMethod(">...
public static RubyModule createComparable(Ruby ruby) { RubyModule comparableModule = ruby.defineModule("Comparable"); comparableModule.defineMethod( "==", CallbackFactory.getSingletonMethod(RubyComparable.class, "equal", RubyObject.class)); comparableModule.defineMethod(">...
3,228,107
public static RubyModule createComparable(Ruby ruby) { RubyModule comparableModule = ruby.defineModule("Comparable"); comparableModule.defineMethod( "==", CallbackFactory.getSingletonMethod(RubyComparable.class, "equal", RubyObject.class)); comparableModule.defineMethod(">...
public static RubyModule createComparable(Ruby ruby) { RubyModule comparableModule = ruby.defineModule("Comparable"); comparableModule.defineMethod( "==", CallbackFactory.getSingletonMethod(RubyComparable.class, "equal", RubyObject.class)); comparableModule.defineMethod(">...
3,228,108
public static RubyModule createComparable(Ruby ruby) { RubyModule comparableModule = ruby.defineModule("Comparable"); comparableModule.defineMethod( "==", CallbackFactory.getSingletonMethod(RubyComparable.class, "equal", RubyObject.class)); comparableModule.defineMethod(">...
public static RubyModule createComparable(Ruby ruby) { RubyModule comparableModule = ruby.defineModule("Comparable"); comparableModule.defineMethod( "==", CallbackFactory.getSingletonMethod(RubyComparable.class, "equal", RubyObject.class)); comparableModule.defineMethod(">...
3,228,109
public static RubyClass createNumericClass(Ruby ruby) { RubyClass result = ruby.defineClass("Numeric", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.includeModule(ruby.getClasses().getComparableModule()); result.defineMethod("+@", c...
public static RubyClass createNumericClass(Ruby ruby) { RubyClass result = ruby.defineClass("Numeric", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.includeModule(ruby.getClasses().getComparableModule()); result.defineMethod("+@", c...
3,228,110
public static RubyClass createHashClass(Ruby ruby) { RubyClass hashClass = ruby.defineClass("Hash", ruby.getClasses().getObjectClass()); hashClass.includeModule(ruby.getClasses().getEnumerableModule()); hashClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyHash.class,...
hashClass.defineMethod("shift", CallbackFactory.getMethod(RubyHash.class, "shift")); hashClass.defineMethod("shift", CallbackFactory.getMethod(RubyHash.class, "shift")); hashClass.defineMethod("shift", CallbackFactory.getMethod(RubyHash.class, "shift")); hashClass.defineMethod("shift", CallbackFactory.getMethod(RubyHas...
3,228,111
public static RubyClass createIOClass(Ruby ruby) { RubyClass result = ruby.defineClass("IO", ruby.getClasses().getObjectClass()); result.includeModule(ruby.getClasses().getClass("Enumerable")); // TODO: Implement tty? and isatty. We have no real capability to ...
public static RubyClass createIOClass(Ruby ruby) { RubyClass result = ruby.defineClass("IO", ruby.getClasses().getObjectClass()); result.includeModule(ruby.getClasses().getEnumerableModule()); // TODO: Implement tty? and isatty. We have no real capability to ...
3,228,113
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
3,228,114
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
3,228,115
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
3,228,116
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
public static RubyClass createMethodClass(Ruby ruby) { RubyCallbackMethod arity = new ReflectionCallbackMethod(RubyMethod.class, "arity"); RubyCallbackMethod call = new ReflectionCallbackMethod(RubyMethod.class, "call", true); RubyClass methodClass = ruby.defineClass("Method", ruby.getClasses().getObjectClass...
3,228,117
public static RubyModule createObjectSpaceModule(Ruby ruby) { RubyCallbackMethod each_object = new ReflectionCallbackMethod(RubyObjectSpace.class, "each_object", true, true); RubyModule objectSpaceModule = ruby.defineModule("ObjectSpace"); objectSpaceModule.defineModuleFunction("each_object", each_object); retur...
public static RubyModule createObjectSpaceModule(Ruby ruby) { RubyCallbackMethod each_object = new ReflectionCallbackMethod(RubyObjectSpace.class, "each_object", true, true); RubyModule objectSpaceModule = ruby.defineModule("ObjectSpace"); objectSpaceModule.defineModuleFunction("each_object", each_object); retur...
3,228,118