bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setQuantizatio... | public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setQuantizatio... | 3,235,814 |
public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setQuantizatio... | public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setQuantizatio... | 3,235,815 |
public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setQuantizatio... | public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setQuantizatio... | 3,235,816 |
public void setRGBA(int w, int red, int green, int blue, int alpha) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setRGBA(w, red, green, blue, alpha); } rwl.writeLock().unlock(); } | public void setRGBA(int w, int red, int green, int blue, int alpha) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setRGBA(w, red, green, blue, alpha); } rwl.writeLock().unlock(); } | 3,235,817 |
public void setRGBA(int w, int red, int green, int blue, int alpha) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setRGBA(w, red, green, blue, alpha); } rwl.writeLock().unlock(); } | } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); } finally { rwl.writeLock().unlock(); public} finally { rwl.writeLock().unlock(); void} finally { rwl.writeLock().unlock(); setRGBA(int} finally { rwl.writeLock().unlock(); w,} finally { rwl.writeLock().unl... | 3,235,818 |
public void setRGBA(int w, int red, int green, int blue, int alpha) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setRGBA(w, red, green, blue, alpha); } rwl.writeLock().unlock(); } | public void setRGBA(int w, int red, int green, int blue, int alpha) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.setRGBA(w, red, green, blue, alpha); } } | 3,235,819 |
public void updateCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().update(mapCtx.copy()); } rwl.writeLock().unlock(); ... | public void updateCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().update(mapCtx.copy()); } rwl.writeLock().unlock(); ... | 3,235,820 |
public void updateCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().update(mapCtx.copy()); } rwl.writeLock().unlock(); ... | public void updateCodomainMap(CodomainMapContext mapCtx) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); renderer.getCodomainChain().update(mapCtx.copy()); } } | 3,235,821 |
public void usePixels(Pixels pixels) { rwl.writeLock().lock(); { this.pixelsObj = pixels; this.renderer = null; } rwl.writeLock().unlock(); } | public void usePixels(Pixels pixels) try { rwl.writeLock().lock(); try { this.pixelsObj = pixels; this.renderer = null; } rwl.writeLock().unlock(); } | 3,235,822 |
public void usePixels(Pixels pixels) { rwl.writeLock().lock(); { this.pixelsObj = pixels; this.renderer = null; } rwl.writeLock().unlock(); } | public void usePixels(Pixels pixels) { rwl.writeLock().lock(); { this.pixelsObj = pixels; this.renderer = null; } if (log.isDebugEnabled()) log.debug("Using pixels: "+this.pixelsObj); } | 3,235,823 |
public ClassMetaClass(IRuby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getObject(), "Class", RubyClass.class); } | public ClassMetaClass(IRuby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getObject().getCRef(), "Class", RubyClass.class); } | 3,235,824 |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the p... | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the p... | 3,235,826 |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the p... | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the p... | 3,235,827 |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the p... | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the p... | 3,235,828 |
public CGCILoader(HiViewer viewer, Set images) { super(viewer); this.images = images; } | public CGCILoader(HiViewer viewer, Set images, boolean refresh) { super(viewer); this.images = images; } | 3,235,829 |
public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; //Async cancel. viewer.setHierarchyRoots((Set) result, false); } | public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; //Async cancel. viewer.setHierarchyRoots((Set) result, false, refresh); } | 3,235,831 |
EvalThread(String name, String script) { this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | EvalThread(String name, String script) { this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | 3,235,832 |
public void run() { ruby.getRuntime().loadScript(name, script, false); out.close(); } | public void run() { ruby.getRuntime().loadScript(name, script, false); out.close(); } | 3,235,833 |
public TestRubyBase(String name) { super(name); } | public TestRubyBase(String name) { super(name); } | 3,235,834 |
protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); /... | protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); /... | 3,235,835 |
protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); /... | protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); /... | 3,235,836 |
public void tearDown() { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException ex) { } } | public void tearDown() { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException ex) { } } | 3,235,837 |
public void eventFired(AgentEvent ae) { if (ae instanceof ShowProperties) handleShowProperties((ShowProperties) ae); } | public void eventFired(AgentEvent ae) { if (ae instanceof ShowProperties) handleShowProperties((ShowProperties) ae); } | 3,235,838 |
final public String toString () { StringBuffer sb = new StringBuffer(); String eol = java.lang.System.getProperty("line.separator"); for (Enumeration enum = _request.getParameterNames(); enum.hasMoreElements();) { String key = (String) enum.nextElement(); String[... | final public String toString () { StringBuffer sb = new StringBuffer(); String eol = java.lang.System.getProperty("line.separator"); for (Enumeration enumeration = _request.getParameterNames(); enumeration.hasMoreElements();) { String key = (String) enum.nextElement(); ... | 3,235,839 |
final public String toString () { StringBuffer sb = new StringBuffer(); String eol = java.lang.System.getProperty("line.separator"); for (Enumeration enum = _request.getParameterNames(); enum.hasMoreElements();) { String key = (String) enum.nextElement(); String[... | final public String toString () { StringBuffer sb = new StringBuffer(); String eol = java.lang.System.getProperty("line.separator"); for (Enumeration enum = _request.getParameterNames(); enum.hasMoreElements();) { String key = (String) enumeration.nextElement(); ... | 3,235,840 |
public void loadPlugins() { // Add presence and message listeners // we listen for these to force open a 1-1 peer chat window from other operators if // one isn't already open PacketFilter workspaceMessageFilter = new PacketTypeFilter(Message.class); // Add the packetListener to t... | public void loadPlugins() { // Add presence and message listeners // we listen for these to force open a 1-1 peer chat window from other operators if // one isn't already open PacketFilter workspaceMessageFilter = new PacketTypeFilter(Message.class); // Add the packetListener to t... | 3,235,842 |
public ModelBased map (Filterable source){ // TODO take any object. just like filter() Filterable o = this.filter("MAPPING...",source); return (ModelBased) model2target.get(o); } | public ModelBased map (Filterable source){ // TODO take any object. just like filter() Filterable o = this.filter("MAPPING...",source); return (ModelBased) model2target.get(o); } | 3,235,843 |
public AnnotateAction(TreeViewer model) { super(model); name = NAME; //putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); IconManager im = IconManager.getInstance(); putValue(Action.SMALL_ICON, im.... | publicAnnotateAction(TreeViewermodel){super(model);name=NAME;//putValue(Action.NAME,NAME);putValue(Action.SHORT_DESCRIPTION,UIUtilities.formatToolTipText(DESCRIPTION));IconManagerim=IconManager.getInstance();putValue(Action.SMALL_ICON,im.getIcon(IconManager.ANNOTATION));} | 3,235,844 |
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } Browser browser = model.getSelectedBrowser(); if (browser != null) { if (browser.getSelectedDisplays().length > 1) { ... | protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } Browser browser = model.getSelectedBrowser(); if (browser != null) { if (browser.getSelectedDisplays().length > 1) { ... | 3,235,846 |
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } Browser browser = model.getSelectedBrowser(); if (browser != null) { if (browser.getSelectedDisplays().length > 1) { ... | protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } Browser browser = model.getSelectedBrowser(); if (browser != null) { if (browser.getSelectedDisplays().length > 1) { ... | 3,235,847 |
int convertGraphicsIntoReal(int x) { int b = control.getGlobalMaximum(); double a = (double) (control.getGlobalMinimum()-b)/(double) rangeGraphics; return (int) (a*(x-tW)+b); } | int convertGraphicsIntoReal(int x) { int b = control.getGlobalMaximum(); double a = (double) (control.getGlobalMinimum()-b)/(double) rangeGraphics; return (int) (a*(x-tW)+b); } | 3,235,848 |
public void setPaneIndex(int index) { if (index != SEARCH_PANEL && index != ANNOTATION_PANEL) throw new IllegalArgumentException("Pane index not valid."); if (model.getPaneIndex() == index) return; model.setPaneIndex(index); view.onDisplayChange( model.getPar... | public void setPaneIndex(int index, ImageDisplay node) { if (index != SEARCH_PANEL && index != ANNOTATION_PANEL) throw new IllegalArgumentException("Pane index not valid."); if (model.getPaneIndex() == index) return; model.setPaneIndex(index); view.onDisplayChange( ... | 3,235,849 |
public void setPaneIndex(int index) { if (index != SEARCH_PANEL && index != ANNOTATION_PANEL) throw new IllegalArgumentException("Pane index not valid."); if (model.getPaneIndex() == index) return; model.setPaneIndex(index); view.onDisplayChange( model.getPar... | public void setPaneIndex(int index) { if (index != SEARCH_PANEL && index != ANNOTATION_PANEL) throw new IllegalArgumentException("Pane index not valid."); if (model.getPaneIndex() == index) return; model.setPaneIndex(index); view.onDisplayChange( model.getPar... | 3,235,850 |
public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { SourcePosition posi... | public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode(), iVisited.getVarNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ... | 3,235,852 |
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVi... | public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode(), iVisited.getVarNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ... | 3,235,853 |
public List childNodes() { return Collections.EMPTY_LIST; } | public List childNodes() { return EMPTY_LIST; } | 3,235,855 |
public static IRubyObject method_missing(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); if (args.length == 0) { throw recv.getRuntime().newArgumentError("no id given"); } String name = args[0].asSymbol(); String description = recv.callMethod(... | public static IRubyObject method_missing(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); if (args.length == 0) { throw recv.getRuntime().newArgumentError("no id given"); } String name = args[0].asSymbol(); String description = recv.callMethod(... | 3,235,856 |
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); String tag = args[0].asSymbol(); String[] catches = runtime.getCurrentContext().getActiveCatches(); String message = "uncaught throw '" + tag + '\''; //Ordering of array tr... | public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); String tag = args[0].asSymbol(); String[] catches = runtime.getCurrentContext().getActiveCatches(); String message = "uncaught throw '" + tag + '\''; //Ordering of array tr... | 3,235,857 |
public void actionPerformed(ActionEvent e) { ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { ... | public void actionPerformed(ActionEvent e) { ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { ... | 3,235,859 |
public void actionPerformed(ActionEvent e) { for (ChatRoom rooms : getStaleChatRooms()) { closeTab(rooms); } } | public void actionPerformed(ActionEvent e) { for (ChatRoom rooms : getStaleChatRooms()) { closeTab(rooms); } } | 3,235,861 |
public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasJoined(room, userid); } } | public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasJoined(room, userid); } } | 3,235,862 |
public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasLeft(room, userid); } } | public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasJoined(room, userid); } } | 3,235,863 |
public void run() { try { final int index = indexOfComponent(room); if (index != -1) { room.increaseUnreadMessageCount(); int unreadMessageCount = room.getUnreadMessageCount(); String ap... | public void run() { try { final int index = indexOfComponent(room); if (index != -1) { room.increaseUnreadMessageCount(); int unreadMessageCount = room.getUnreadMessageCount(); String ap... | 3,235,864 |
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | 3,235,865 |
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | 3,235,866 |
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | 3,235,867 |
public RubyObject reverse_bang() { modify(); Collections.reverse(list); return this; } | public RubyObject reverse_bang() { modify(); Collections.reverse(list); return this; } | 3,235,869 |
public void visitCallNode(CallNode iVisited) { EvaluateVisitor evaluator = EvaluateVisitor.createVisitor(self); IRubyObject receiver = evaluator.eval(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.getInternalClass().call(receiver.toRubyO... | public void visitCallNode(CallNode iVisited) { EvaluateVisitor evaluator = EvaluateVisitor.createVisitor(self); IRubyObject receiver = evaluator.eval(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.getInternalClass().call(receiver, iVisit... | 3,235,870 |
public void visitCallNode(CallNode iVisited) { EvaluateVisitor evaluator = EvaluateVisitor.createVisitor(self); IRubyObject receiver = evaluator.eval(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.getInternalClass().call(receiver.toRubyO... | public void visitCallNode(CallNode iVisited) { EvaluateVisitor evaluator = EvaluateVisitor.createVisitor(self); IRubyObject receiver = evaluator.eval(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.getInternalClass().call(receiver.toRubyO... | 3,235,871 |
public void loadDataset(int datasetID) { DataManagementService dms = registry.getDataManagementService(); DatasetData dataset; final BrowserModel model = new BrowserModel(); model.setLayoutMethod(new NumColsLayoutMethod(8)); BrowserTopModel topModel = new BrowserTopMode... | public void loadDataset(int datasetID) { DataManagementService dms = registry.getDataManagementService(); DatasetData dataset; final BrowserModel model = new BrowserModel(); model.setLayoutMethod(new NumColsLayoutMethod(8)); BrowserTopModel topModel = new BrowserTopMode... | 3,235,872 |
public void run() { int count = 1; int total = refList.size(); PlateLayoutMethod lm = new PlateLayoutMethod(refInfo.getNumRows(), refInfo.getNumCols()); model.se... | public void run() { int count = 1; int total = refList.size(); PlateLayoutMethod lm = new PlateLayoutMethod(refInfo.getNumRows(), refInfo.getNumCols()); model.se... | 3,235,874 |
public void run() { int count = 1; int total = refList.size(); PlateLayoutMethod lm = new PlateLayoutMethod(refInfo.getNumRows(), refInfo.getNumCols()); model.se... | public void run() { int count = 1; int total = refList.size(); PlateLayoutMethod lm = new PlateLayoutMethod(refInfo.getNumRows(), refInfo.getNumCols()); model.se... | 3,235,875 |
public void run() { int count = 1; int total = refList.size(); PlateLayoutMethod lm = new PlateLayoutMethod(refInfo.getNumRows(), refInfo.getNumCols()); model.se... | public void run() { int count = 1; int total = refList.size(); PlateLayoutMethod lm = new PlateLayoutMethod(refInfo.getNumRows(), refInfo.getNumCols()); model.se... | 3,235,876 |
public void run() { model.addThumbnail(t); String message = ProgressMessageFormatter.format("Loaded image %n of %t...", ... | public void run() { thumbnails.add(t); String message = ProgressMessageFormatter.format("Loaded image %n of %t...", ... | 3,235,879 |
public void run() { model.addThumbnail(t); } | public void run() { String message = ProgressMessageFormatter.format("Loaded image %n of %t...", theCount,theTotal); status.processAdvanced(message); thumbnails.add(t); } | 3,235,880 |
public void loadImage(int imageID) { // TODO: fill in loadImage(int) } | public void loadImage(Thumbnail t) { // TODO: fill in loadImage(int) } | 3,235,881 |
public void loadImage(int imageID) { // TODO: fill in loadImage(int) } | ThumbnailDataModel tdm = t.getModel(); int imageID = tdm.getID(); Pixels pixels = (Pixels)tdm.getAttributeMap().getAttribute("Pixels"); int pixelsID = pixels.getID(); loadImage(imageID,pixelsID); ThumbnailDataModel tdm = t.getModel(); int imageID = tdm.getID(); Pixels pixels = (Pixels)tdm.getAttributeMap().getAttribut... | 3,235,882 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(... | 3,235,883 |
int convertGraphicsIntoReal(int x) { int b = control.getGlobalMaximum(); double a = (double) (control.getGlobalMinimum()-b)/(double) rangeGraphics; return (int) (a*(x-tW)+b); } | int convertGraphicsIntoReal(int x) { int b = control.getGlobalMaximum(); double a = (double) (control.getGlobalMinimum()-b)/(double) rangeGraphics; return (int) (a*(x-tW)+b); } | 3,235,884 |
public void add(int index, Object element) { autoResize(Math.max(0, index + position - 1)); delegate.add(index + position, element); } | public void add(int index, Object element) { autoResize(Math.max(0, index + position)); delegate.add(index + position, element); } | 3,235,885 |
protected void autoResize(int index) { if (!autoResize) { return; } else if (index < 0) { delegate.addAll(0, Collections.nCopies(-index, autoResizeObject)); position += -index; } else if (index >= delegate.size()) { delegate.ensureCapacity... | protected void autoResize(int index) { if (!autoResize) { return; } else if (index < 0) { delegate.addAll(0, Collections.nCopies(-index, autoResizeObject)); position += -index; } else if (index >= delegate.size()) { delegate.ensureCapacity... | 3,235,886 |
protected void autoResize(int index) { if (!autoResize) { return; } else if (index < 0) { delegate.addAll(0, Collections.nCopies(-index, autoResizeObject)); position += -index; } else if (index >= delegate.size()) { delegate.ensureCapacity... | protected void autoResize(int index) { if (!autoResize) { return; } else if (index < 0) { delegate.addAll(0, Collections.nCopies(-index, autoResizeObject)); position += -index; } else if (index >= delegate.size()) { delegate.ensureCapacity... | 3,235,887 |
public Object get(int index) { autoResize(index + position); return delegate.get(index + position); } | public Object get(int index) { autoResize(index + position + 1); return delegate.get(index + position); } | 3,235,888 |
public Object set(int index, Object element) { autoResize(index + position); return delegate.set(index + position, element); } | public Object set(int index, Object element) { autoResize(index + position + 1); return delegate.set(index + position, element); } | 3,235,889 |
public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte... | public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte... | 3,235,890 |
private void init() { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); layoutMap = new HashMap(); footprint = new Rectangle2D.Double(0,0,0,0); // here we disable zoom/pan (TODO: save for later, reinstate on mode) removeInputEventList... | private void init() { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); layoutMap = new HashMap(); footprint = new Rectangle2D.Double(0,0,0,0); // here we disable zoom/pan (TODO: save for later, reinstate on mode) removeInputEventList... | 3,235,891 |
public String toString(){ return "ImageDimension"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | public String toString(){ return "ImageDimension"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); } | 3,235,892 |
public PojosLoadHierarchyQueryDefinition(QueryParameter... parameters) { super(parameters); } | public PojosLoadHierarchyQueryDefinition(QueryParameter... parameters) { super( defs, parameters); } | 3,235,893 |
protected static Method findMethod(String name) { Class type = PropertyEditorHelper.loadClass("org.apache.xbean.spring.context.impl.QNameHelper"); if (type != null) { Method[] methods = type.getMethods(); for (int i = 0; i < methods.length; i++) { Method method = m... | protected static Method findMethod(String name) { Class type = PropertyEditorHelper.loadClass("org.apache.xbean.spring.context.impl.QNameHelper"); if (type != null) { Method[] methods = type.getMethods(); for (int i = 0; i < methods.length; i++) { Method method = m... | 3,235,894 |
public static RubyObject m_print(Ruby ruby, RubyObject args[]) { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.print(((RubyString)args[i].funcall(ruby.intern("to_s"))).getString()); } } return ruby.getNil(); } | public static RubyObject m_print(Ruby ruby, RubyModule rubyClass, RubyObject args[]) { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.print(((RubyString)args[i].funcall(ruby.intern("to_s"))).getString()); } } return ruby.getNil(); ... | 3,235,896 |
public static RubyObject m_puts(Ruby ruby, RubyObject args[]) { if (args.length == 0) { System.out.println(); } else { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("to_... | public static RubyObject m_puts(Ruby ruby, RubyModule rubyClass, RubyObject args[]) { if (args.length == 0) { System.out.println(); } else { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].fu... | 3,235,897 |
public Object invoke(MethodInvocation arg0) throws Throwable { CurrentDetails.clear(); setDetails(); try { Object retVal = arg0.proceed(); ht.flush(); // TODO performance? but HInterceptor is flushing // after finally { clear } return ... | public Object invoke(MethodInvocation arg0) throws Throwable { CurrentDetails.clear(); setDetails(); try { Object retVal = arg0.proceed(); // TODO performance? but HInterceptor is flushing // after finally { clear } return retVal; ... | 3,235,898 |
public void run() { Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); removeContactItem(jid); } } | public void run() { Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); if (rosterEntry != null) { boolean isUnfiled = true; for (RosterGroup grou... | 3,235,899 |
public void entriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { ... | public void entriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { ... | 3,235,900 |
public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); ... | public void run() { Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); if (rosterEntry != null) { ... | 3,235,901 |
public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); ... | public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); ... | 3,235,902 |
private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | 3,235,903 |
private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | 3,235,904 |
private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | 3,235,905 |
private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | 3,235,906 |
private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | 3,235,907 |
public void actionPerformed(ActionEvent e) { dialog.dispose(); Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); int ok = JOptionPane.showConfirmDialog... | public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); int... | 3,235,908 |
public void actionPerformed(ActionEvent e) { // Send subscribed Presence response = new Presence(Presence.Type.unsubscribe); response.setTo(jid); SparkManager.getConnection().sendPacket(response); dialog.dispose(); } | public void actionPerformed(ActionEvent e) { // Send subscribed Presence response = new Presence(Presence.Type.unsubscribe); response.setTo(jid); SparkManager.getConnection().sendPacket(response); } | 3,235,910 |
private <T extends IObject> T lookup( T argument ) { if ( argument == null ) return null; if ( argument.getId() == null ) return argument; return (T) serviceFactory.getQueryService().get( argument.getClass(), argument.getId()); } | private <T extends IObject> T lookup( T argument ) { if ( argument == null ) return null; if ( argument.getId() == null ) return argument; return (T) localQuery.get( argument.getClass(), argument.getId()); } | 3,235,911 |
public void saveCurrentSettings() { delegate.saveCurrentSettings(); LocalUpdate localUpdate = (LocalUpdate) serviceFactory .getContext().getBean(LocalUpdate.class.getName()); localUpdate.flush(); } | public void saveCurrentSettings() { delegate.saveCurrentSettings(); LocalUpdate localUpdate = (LocalUpdate) serviceFactory .getContext().getBean(LocalUpdate.class.getName()); localUpdate.flush(); } | 3,235,912 |
public RubyFixnum hash() { return newFixnum(hashCode()); } | public RubyFixnum hash() { return newFixnum((int) value ^ (int) (value >> 32)); } | 3,235,913 |
public RubyObject m_initialize(RubyFixnum size, RubyObject value) { modify(); long len = size.getValue(); if (len < 0) { throw new RubyArgumentException("negative array size"); } if (len > Integer.MAX_VALUE) { throw new RubyArgumentException("array si... | public RubyObject m_initialize(RubyObject[] args) { if (args.length < 2) { return this; } RubyFixnum size = (RubyFixnum)args[0]; modify(); long len = size.getValue(); if (len < 0) { throw new RubyArgumentException("negative array size"); } if (len > Integer.MA... | 3,235,914 |
public RubyObject m_initialize(RubyFixnum size, RubyObject value) { modify(); long len = size.getValue(); if (len < 0) { throw new RubyArgumentException("negative array size"); } if (len > Integer.MAX_VALUE) { throw new RubyArgumentException("array si... | public RubyObject m_initialize(RubyFixnum size, RubyObject value) { modify(); long len = size.getValue(); if (len < 0) { throw new RubyArgumentException("negative array size"); } if (len > Integer.MAX_VALUE) { throw new RubyArgumentException("array si... | 3,235,915 |
public RubyObject m_initialize(RubyFixnum size, RubyObject value) { modify(); long len = size.getValue(); if (len < 0) { throw new RubyArgumentException("negative array size"); } if (len > Integer.MAX_VALUE) { throw new RubyArgumentException("array si... | public RubyObject m_initialize(RubyFixnum size, RubyObject value) { modify(); long len = size.getValue(); if (len < 0) { throw new RubyArgumentException("negative array size"); } if (len > Integer.MAX_VALUE) { throw new RubyArgumentException("array si... | 3,235,916 |
public RubyObject m_slice(RubyObject[] args) { if (args.length == 2) { long beg = ((RubyFixnum)args[0]).getValue(); long len = ((RubyFixnum)args[1]).getValue(); if (beg < 0) { beg += array.size(); } return subseq(beg, len); } ... | public RubyObject m_slice(RubyObject[] args) { if (args.length == 2) { long beg = ((RubyFixnum)args[0]).getValue(); long len = ((RubyFixnum)args[1]).getValue(); if (beg < 0) { beg += array.size(); } return subseq(beg, len); } ... | 3,235,918 |
public RubyObject m_slice(RubyObject[] args) { if (args.length == 2) { long beg = ((RubyFixnum)args[0]).getValue(); long len = ((RubyFixnum)args[1]).getValue(); if (beg < 0) { beg += array.size(); } return subseq(beg, len); } ... | public RubyObject m_slice(RubyObject[] args) { if (args.length == 2) { long beg = ((RubyFixnum)args[0]).getValue(); long len = ((RubyFixnum)args[1]).getValue(); if (beg < 0) { beg += array.size(); } return subseq(beg, len); } ... | 3,235,919 |
public void store(long idx, RubyObject value) { modify(); if (idx < 0) { idx += array.size(); if (idx < 0) { throw new RubyIndexException("index " + (idx - array.size()) + " out of array"); } } if (idx > array.size()) { array.ens... | public void store(long idx, RubyObject value) { modify(); if (idx < 0) { idx += array.size(); if (idx < 0) { throw new RubyIndexException("index " + (idx - array.size()) + " out of array"); } } if (idx > array.size()) { array.ens... | 3,235,920 |
public void store(long idx, RubyObject value) { modify(); if (idx < 0) { idx += array.size(); if (idx < 0) { throw new RubyIndexException("index " + (idx - array.size()) + " out of array"); } } if (idx > array.size()) { array.ens... | public void store(long idx, RubyObject value) { modify(); if (idx < 0) { idx += array.size(); if (idx < 0) { throw new RubyIndexException("index " + (idx - array.size()) + " out of array"); } } if (idx > array.size()) { array.ens... | 3,235,921 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro) initArgObj = ((Macro... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Map globalBeans = BeanConf.globalBeans; Map appBeans = beanConf.appBeans; boolean isNew = false; try { while (initArgObj instanceof Macro && initArgObj != UNDEF) ... | 3,235,928 |
public boolean isReadable() { return (modes & RDWR) != 0 || modes == RDONLY; } | public boolean isReadable() { return (modes & RDWR) != 0 || modes == RDONLY || modes == BINARY; } | 3,235,930 |
public Dispatcher(DisplayedDocument dd) { controllers = new LinkedList<Controller>(); controllers.add(new MainController(dd)); controllers.add(new MainMenuController(dd)); controllers.add(new TreeContextMenuController(dd)); controllers.add(new TreeController(dd)); } | public Dispatcher(DisplayedDocument dd) { controllers = new LinkedList<Controller>(); controllers.add(new MainController(dd)); controllers.add(new MainMenuController(dd)); controllers.add(new TreeContextMenuController(dd)); controllers.add(new TreeController(dd)); } | 3,235,931 |
public void invokeControllerMethod(String methodDescriptor, Event e) { // Get the controller and method. Controller controller = null; Method method = null; Iterator<Controller> iter = controllers.iterator(); while (iter.hasNext() && (method == null)) { controller = iter.next(); method = controller.getMetho... | public void invokeControllerMethod(String methodDescriptor, Event e) { // Get the controller and method. Controller controller = null; Method method = null; Iterator<Controller> iter = controllers.iterator(); while (iter.hasNext() && (method == null)) { controller = iter.next(); method = controller.getMetho... | 3,235,932 |
final protected void doPost (HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doRequest (req,resp); } | protected void doPost (HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doRequest (req,resp); } | 3,235,934 |
final protected void execute (Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming (); try { if (timing) c.startTiming ("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse (... | final protected void execute (Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming (); try { if (timing) c.startTiming ("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse (... | 3,235,935 |
final protected void execute (Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming (); try { if (timing) c.startTiming ("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse (... | final protected void execute (Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming (); try { if (timing) c.startTiming ("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse (... | 3,235,936 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.