bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
void disposeDialogs() { // forward event to the quantumManager. if (qpManager != null) qpManager.disposeDialogs(); }
void disposeDialogs() { // forward event to the quantumManager. if (qpManager != null) qpManager.disposeDialogs(); }
3,228,665
public PixelsStatsEntry[] getChannelStats(int w) { return abstraction.getChannelStats(w); }
public PixelsStatsEntry[] getChannelStats(int w) { return abstraction.getChannelStats(w); }
3,228,666
ModelPane getModelPane() { return activate(getRendererClass(abstraction.getModel())); }
ModelPane getModelPane() { return activate(getRendererClass(abstraction.getModel())); }
3,228,667
public RenderingAgtUIF getReferenceFrame() { return presentation; }
public RenderingAgtUIF getReferenceFrame() { return presentation; }
3,228,668
private Class getRendererClass(int index) { Class result = null; try { switch (index) { case GREY: result = GreyScalePane.class; modelType = "Grey"; modelIcon = im.getIcon(IconManager.GREYSCALE); break; case HSB: result = HSBPane.class; modelType = "HSB"; modelIcon = im.getIcon(Ic...
private Class getRendererClass(int index) { Class result = null; try { switch (index) { case GREY: result = GreyScalePane.class; modelType = "Grey"; modelIcon = im.getIcon(IconManager.GREYSCALE); break; case HSB: result = HSBPane.class; modelType = "HSB"; modelIcon = im.getIcon(Ic...
3,228,669
public void removeCodomainMap(CodomainMapContext ctx) { abstraction.removeCodomainMap(ctx); }
public void removeCodomainMap(CodomainMapContext ctx) { abstraction.removeCodomainMap(ctx); }
3,228,670
public void resetDefaults() { //update the rendering control. abstraction.resetDefaults(); //update the view. qpManager.resetDefaults(); //reset the model pane QuantumPane qp = presentation.getQuantumPane(); qp.setSelectionWavelengthsEnable(false); presentation.resetGUI(activate(getRendererClass(GREY))); }
public void resetDefaults() { //update the rendering control. abstraction.resetDefaults(); //update the view. qpManager.resetDefaults(); //reset the model pane QuantumPane qp = presentation.getQuantumPane(); qp.setSelectionWavelengthsEnable(false); presentation.resetGUI(activate(getRendererClass(GREY))); }
3,228,671
public void saveDisplayOptions() { abstraction.saveDisplayOptions(); }
public void saveDisplayOptions() { abstraction.saveDisplayOptions(); }
3,228,672
public void setActive(int w, boolean active) { if (active) { presentation.getQuantumPane().setSelectedWavelength(w); presentation.getTabs().setSelectedIndex(RenderingAgtUIF.POS_MODEL); } abstraction.setActive(w, active); }
public void setActive(int w, boolean active) { if (active) { presentation.getQuantumPane().setSelectedWavelength(w); presentation.getTabs().setSelectedIndex(RenderingAgtUIF.POS_MODEL); } abstraction.setActive(w, active); }
3,228,673
public void setChannelWindowEnd(int w, int x) { abstraction.setChannelWindowEnd(w, x); }
public void setChannelWindowEnd(int w, int x) { abstraction.setChannelWindowEnd(w, x); }
3,228,674
public void setChannelWindowStart(int w, int x) { abstraction.setChannelWindowStart(w, x); }
public void setChannelWindowStart(int w, int x) { abstraction.setChannelWindowStart(w, x); }
3,228,675
public void setCodomainLowerBound(int x) { abstraction.setCodomainLowerBound(x); }
public void setCodomainLowerBound(int x) { abstraction.setCodomainLowerBound(x); }
3,228,676
public void setCodomainUpperBound(int x) { abstraction.setCodomainUpperBound(x); }
public void setCodomainUpperBound(int x) { abstraction.setCodomainUpperBound(x); }
3,228,677
public void setMappingPane() { presentation.setMappingPane(); }
public void setMappingPane() { presentation.setMappingPane(); }
3,228,678
void setPresentation(RenderingAgtUIF presentation) { this.presentation = presentation; }
void setPresentation(RenderingAgtUIF presentation) { this.presentation = presentation; }
3,228,679
public void setQuantumStrategy(double k, int family, int resolution) { abstraction.setQuantumStrategy(k, family, resolution); }
public void setQuantumStrategy(double k, int family, int resolution) { abstraction.setQuantumStrategy(k, family, resolution); }
3,228,680
public void setRGBA(int w, int red, int green, int blue, int alpha) { abstraction.setRGBA(w, red, green, blue, alpha); }
public void setRGBA(int w, int red, int green, int blue, int alpha) { abstraction.setRGBA(w, red, green, blue, alpha); }
3,228,681
public void updateChannelData(ChannelData cd) { abstraction.updateChannelData(cd); }
public void updateChannelData(ChannelData cd) { abstraction.updateChannelData(cd); }
3,228,682
public void updateCodomainMap(CodomainMapContext ctx) { abstraction.updateCodomainMap(ctx); }
public void updateCodomainMap(CodomainMapContext ctx) { abstraction.updateCodomainMap(ctx); }
3,228,683
void setModelPane(ModelPane pane, boolean b) { tabs.remove(POS_MODEL); modelPane.removeAll(); modelPane = pane; modelPane.buildComponent(); tabs.insertTab(control.getModelType()+" Model", control.getModelIcon(), modelPane, null, POS_MODEL); if (b) tabs.setSelectedIndex(POS_MODEL); }
void setModelPane(ModelPane pane, boolean b) { tabs.remove(POS_MODEL); modelPane.removeAll(); modelPane = pane; modelPane.buildComponent(); tabs.insertTab(control.getModelType()+" Model", control.getModelIcon(), modelPane, null, POS_MODEL); if (b) tabs.setSelectedIndex(POS_MODEL); }
3,228,684
void setModel(int model) { renderingControl.setModel(model); refreshImage(); }
void setModel(int model) { renderingControl.setModel(model); refreshImage(); }
3,228,685
void addCodomainMap(CodomainMapContext ctx) { renderingControl.addCodomainMap(ctx); refreshImage(); }
void addCodomainMap(CodomainMapContext ctx) { renderingControl.addCodomainMap(ctx); refreshImage(); }
3,228,686
public void disposeDialogs() { DomainPaneManager dpm = view.getDomainPane().getManager(); dpm.disposeDialogs(); }
public void disposeDialogs() { DomainPaneManager dpm = view.getDomainPane().getManager(); dpm.disposeDialogs(); }
3,228,687
PixelsStatsEntry[] getChannelStats(int w) { PixelsStatsEntry[] channelStats = new PixelsStatsEntry[pxsDims.sizeT]; for (int t = 0; t < pxsDims.sizeT; t++) channelStats[t] = pxsStats.getEntry(w, t); return channelStats; }
PixelsStatsEntry[] getChannelStats(int w) { PixelsStatsEntry[] channelStats = new PixelsStatsEntry[pxsDims.sizeT]; for (int t = 0; t < pxsDims.sizeT; t++) channelStats[t] = pxsStats.getEntry(w, t); return channelStats; }
3,228,688
double getChannelWindowEnd(int w) { return renderingControl.getChannelWindowEnd(w); }
double getChannelWindowEnd(int w) { return renderingControl.getChannelWindowEnd(w); }
3,228,689
double getChannelWindowStart(int w) { return renderingControl.getChannelWindowStart(w); }
double getChannelWindowStart(int w) { return renderingControl.getChannelWindowStart(w); }
3,228,690
double getGlobalChannelWindowEnd(int w) { return pxsStats.getGlobalEntry(w).globalMax; }
double getGlobalChannelWindowEnd(int w) { return pxsStats.getGlobalEntry(w).globalMax; }
3,228,691
double getGlobalChannelWindowStart(int w) { return pxsStats.getGlobalEntry(w).globalMin; }
double getGlobalChannelWindowStart(int w) { return pxsStats.getGlobalEntry(w).globalMin; }
3,228,692
void removeCodomainMap(CodomainMapContext ctx) { renderingControl.removeCodomainMap(ctx); refreshImage(); }
void removeCodomainMap(CodomainMapContext ctx) { renderingControl.removeCodomainMap(ctx); refreshImage(); }
3,228,693
void resetDefaults() { renderingControl.resetDefaults(); refreshImage(); }
void resetDefaults() { renderingControl.resetDefaults(); refreshImage(); }
3,228,694
public void resetDefaults() { //DomainPane+Histogram DomainPaneManager dpm = view.getDomainPane().getManager(); dpm.resetDefaults(); //Codomain CodomainPaneManager cpm = view.getCodomainPane().getManager(); cpm.resetDefaults(); //Graphics representation view.getGRPane().removeAll(); GraphicsRepresentation...
public void resetDefaults() { //DomainPane+Histogram DomainPaneManager dpm = view.getDomainPane().getManager(); dpm.resetDefaults(); //Codomain CodomainPaneManager cpm = view.getCodomainPane().getManager(); cpm.resetDefaults(); //Graphics representation view.getGRPane().removeAll(); GraphicsRepresentation...
3,228,695
void resetGUI(ModelPane pane) { setModelPane(pane, false); setMappingPane(); }
void resetGUI(ModelPane pane) { setModelPane(pane, false); setMappingPane(); }
3,228,696
void saveDisplayOptions() { renderingControl.saveCurrentSettings(); String msg = "The settings have now been saved, Note that the " + "parameters set in \"options\" haven't been saved."; registry.getUserNotifier().notifyInfo("Rendering", msg); }
void saveDisplayOptions() { renderingControl.saveCurrentSettings(); String msg = "The settings have now been saved, Note that the " + "parameters set in \"options\" haven't been saved."; registry.getUserNotifier().notifyInfo("Rendering", msg); }
3,228,697
void setActive(int w, boolean active) { renderingControl.setActive(w, active); refreshImage(); }
void setActive(int w, boolean active) { renderingControl.setActive(w, active); refreshImage(); }
3,228,698
void setChannelWindowEnd(int w, double x) { double start = renderingControl.getChannelWindowStart(w); renderingControl.setChannelWindow(w, start, x); refreshImage(); }
void setChannelWindowEnd(int w, double x) { double start = renderingControl.getChannelWindowStart(w); renderingControl.setChannelWindow(w, start, x); refreshImage(); }
3,228,699
void setChannelWindowStart(int w, double x) { double end = renderingControl.getChannelWindowEnd(w); renderingControl.setChannelWindow(w, x, end); refreshImage(); }
void setChannelWindowStart(int w, double x) { double end = renderingControl.getChannelWindowEnd(w); renderingControl.setChannelWindow(w, x, end); refreshImage(); }
3,228,700
void setCodomainLowerBound(int x) { QuantumDef qDef = renderingControl.getQuantumDef(); renderingControl.setCodomainInterval(x, qDef.cdEnd); refreshImage(); }
void setCodomainLowerBound(int x) { QuantumDef qDef = renderingControl.getQuantumDef(); renderingControl.setCodomainInterval(x, qDef.cdEnd); refreshImage(); }
3,228,701
void setCodomainUpperBound(int x) { QuantumDef qDef = renderingControl.getQuantumDef(); renderingControl.setCodomainInterval(qDef.cdStart, x); refreshImage(); }
void setCodomainUpperBound(int x) { QuantumDef qDef = renderingControl.getQuantumDef(); renderingControl.setCodomainInterval(qDef.cdStart, x); refreshImage(); }
3,228,702
void setMappingPane() { tabs.remove(POS_MAPPING); mappingPanel.removeAll(); buildMappingPanel(); tabs.insertTab("Mapping", im.getIcon(IconManager.MAPPING), mappingPanel, null, POS_MAPPING); tabs.setSelectedIndex(POS_MAPPING); }
void setMappingPane() { tabs.remove(POS_MAPPING); mappingPanel.removeAll(); buildMappingPanel(); tabs.insertTab("Mapping", im.getIcon(IconManager.MAPPING), mappingPanel, null, POS_MAPPING); tabs.setSelectedIndex(POS_MAPPING); }
3,228,703
void setQuantumStrategy(double k, int family, int resolution) { renderingControl.setQuantumStrategy(family, k, resolution); refreshImage(); }
void setQuantumStrategy(double k, int family, int resolution) { renderingControl.setQuantumStrategy(family, k, resolution); refreshImage(); }
3,228,704
void setRGBA(int w, int red, int green, int blue, int alpha) { renderingControl.setRGBA(w, red, green, blue, alpha); refreshImage(); }
void setRGBA(int w, int red, int green, int blue, int alpha) { renderingControl.setRGBA(w, red, green, blue, alpha); refreshImage(); }
3,228,705
void updateChannelData(ChannelData cd) { try { if (canUpdate) { DataManagementService ds = registry.getDataManagementService(); ds.updateChannelData(cd); channelData[cd.getIndex()] = cd; } else { String msg = "The channel data can't be updated b/c of a data" + " retrieval failure at initializatio...
void updateChannelData(ChannelData cd) { try { if (canUpdate) { DataManagementService ds = registry.getDataManagementService(); ds.updateChannelData(cd); channelData[cd.getIndex()] = cd; } else { String msg = "The channel data can't be updated b/c of a data" + " retrieval failure at initializatio...
3,228,706
void updateCodomainMap(CodomainMapContext ctx) { renderingControl.updateCodomainMap(ctx); refreshImage(); }
void updateCodomainMap(CodomainMapContext ctx) { renderingControl.updateCodomainMap(ctx); refreshImage(); }
3,228,707
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); return null; } // ?? // ....
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); return null; } // ?? // ....
3,228,708
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); return null; } // ?? // ....
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? SearchMethodResult smr = searchMethod(id); NODE body = smr.getBody(); RubyModule origin = smr.getOrigin(); if (body == null || body.nd_body() == null) { System.out.println("Cant find method ...
3,228,709
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); return null; } // ?? // ....
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); MethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return ...
3,228,710
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); return null; } // ?? // ....
MethodCacheEntry ent = new MethodCacheEntry(this, body.nd_noex()); public NODE getMethodBody(RubyId id, int scope) {MethodCacheEntry ent = new MethodCacheEntry(this, body.nd_noex()); MethodCacheEntry ent = new MethodCacheEntry(this, body.nd_noex()); NODE body = searchMethod(id);MethodCacheEntry ent = new MethodCache...
3,228,711
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); return null; } // ?? // ....
public NODE getMethodBody(RubyId id, int scope) { NODE body = searchMethod(id); // ?? if (body == null) { System.out.println("Cant find method \"" + id.toName() + "\" in class " + toName()); return null; } // ?? // ....
3,228,712
public RubyMethod(Ruby ruby, RubyClass rubyClass) { super(ruby, rubyClass); }
public RubyMethod(Ruby ruby, RubyClass rubyClass) { super(ruby, rubyClass); }
3,228,713
public void setReceiverClass(RubyClass receiverClass) { this.receiverClass = receiverClass; }
public void setReceiverClass(RubyClass receiverClass) { this.receiverClass = receiverClass; }
3,228,714
public void setReceiver(RubyObject receiver) { this.receiver = receiver; }
public void setReceiver(RubyObject receiver) { this.receiver = receiver; }
3,228,715
public void setMethodId(RubyId methodId) { this.methodId = methodId; }
public void setMethodId(RubyId methodId) { this.methodId = methodId; }
3,228,716
public void setOriginalClass(RubyClass originalClass) { this.originalClass = originalClass; }
public void setOriginalClass(RubyClass originalClass) { this.originalClass = originalClass; }
3,228,717
public void setOriginalId(RubyId originalId) { this.originalId = originalId; }
public void setOriginalId(RubyId originalId) { this.originalId = originalId; }
3,228,718
public RubyNumeric op_mul(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() * other.getDoubleValue()); }
public RubyNumeric op_mul(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() * other.getDoubleValue()); }
3,228,719
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.CANCEL)); statusButton.setVisible(false); ...
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.CANCEL)); statusButton.setVisible(false); ...
3,228,721
protected Pixels createPixelGraph(Long pixelsId) { // TODO put this into ome.testing.ObjectFactory PIType pi = new PIType(); pi.setValue("test"); AcquisitionContext ac = new AcquisitionContext(); ac.setPhotometricInterpretation(pi); Channel c = new Channel(); ...
protected Pixels createPixelGraph(Long pixelsId) { // TODO put this into ome.testing.ObjectFactory PIType pi = new PIType(); pi.setValue("test"); AcquisitionContext ac = new AcquisitionContext(); ac.setPhotometricInterpretation(pi); Channel c = new Channel(); ...
3,228,722
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; File[] fi...
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; File[] fi...
3,228,723
BrowserCanvas(BrowserModel model, BrowserUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; charWidth = getFontMetrics(getFont()).charWidth('m'); s...
BrowserCanvas(BrowserModel model, BrowserUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; charWidth = getFontMetrics(getFont()).charWidth('m'); s...
3,228,724
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ...
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ...
3,228,725
void setComponentsSize(int w, int h) { Dimension d = new Dimension(w, h); layeredPane.setPreferredSize(d); layeredPane.setSize(d); browserCanvas.setPreferredSize(d); browserCanvas.setSize(d); }
private void setComponentsSize(int w, int h) { Dimension d = new Dimension(w, h); layeredPane.setPreferredSize(d); layeredPane.setSize(d); browserCanvas.setPreferredSize(d); browserCanvas.setSize(d); }
3,228,726
private void log(Object...objects) { if ( log.isDebugEnabled() && objects != null && objects.length > 0) { StringBuilder sb = new StringBuilder(objects.length*16); for (Object obj : objects) { sb.append(obj.toString()); } log.debug(sb.toString()); } }
private void log(Object...objects) { if ( log.isDebugEnabled() && objects != null && objects.length > 0) { StringBuilder sb = new StringBuilder(objects.length*16); for (Object obj : objects) { sb.append(obj.toString()); } log.debug(sb.toString()); } }
3,228,728
public void paint(PPaintContext context) { Graphics2D g2 = context.getGraphics(); Paint oldPaint = g2.getPaint(); Font oldFont = g2.getFont(); Color oldColor = g2.getColor(); g2.setPaint(Color.yellow); g2.fill(border); g2.setPaint(oldPaint); g2.drawImage(ge...
public void paint(PPaintContext context) { Graphics2D g2 = context.getGraphics(); Paint oldPaint = g2.getPaint(); Font oldFont = g2.getFont(); Color oldColor = g2.getColor(); g2.setPaint(Color.yellow); g2.fill(border); g2.setPaint(new Color(153,153,153,128)); ...
3,228,729
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Experimenter) { Experimenter exp = (Experimenter) model; super.copy(model,mapper); // Fields this.setFirstName(exp.getFirstName()); this.setLastName(exp.getLastName()); this.setEmail(exp.getEmail...
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Experimenter) { Experimenter exp = (Experimenter) model; super.copy(model,mapper); // Fields this.setFirstName(exp.getFirstName()); this.setLastName(exp.getLastName()); this.setEmail(exp.getEmail...
3,228,731
public void initCoreClasses() { objectClass = defineBootClass("Object", null); moduleClass = defineBootClass("Module", objectClass); classClass = defineBootClass("Class", moduleClass); RubyClass metaClass = objectClass.makeMetaClass(classClass); metaClass = moduleClass.makeMetaCla...
public void initCoreClasses() { objectClass = defineBootClass("Object", null); moduleClass = defineBootClass("Module", objectClass); classClass = defineBootClass("Class", moduleClass); RubyClass metaClass = objectClass.makeMetaClass(classClass); metaClass = moduleClass.makeMetaCla...
3,228,732
public static RubyClass createFileStatClass(IRuby runtime) { final RubyClass fileStatClass = runtime.getClass("File").defineClassUnder("Stat",runtime.getObject()); final CallbackFactory callbackFactory = runtime.callbackFactory(RubyFileStat.class); // fileStatClass.defineMethod("<=>", ca...
fileStatClass.defineMethod("ino", callbackFactory.getMethod("ino")); fileStatClass.defineMethod("ino", callbackFactory.getMethod("ino")); fileStatClass.defineMethod("ino", callbackFactory.getMethod("ino")); fileStatClass.defineMethod("ino", callbackFactory.getMethod("ino")); publicfileStatClass.defineMethod("ino", call...
3,228,733
public RubyString to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } }
public RubyString to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString)message.funcall("to_s"); } }
3,228,734
public HSV(float hs, float ss, float vs, float as) { h = hs; s = ss; v = vs; a = as; }
public HSV() { h = hs; s = ss; v = vs; a = as; }
3,228,736
public HSV(float hs, float ss, float vs, float as) { h = hs; s = ss; v = vs; a = as; }
public HSV(float hs, float ss, float vs, float as) { h = hs; s = ss; v = vs; a = as; }
3,228,737
public RubyString to_s() { String cname = getMetaClass().getName(); RubyString str = getRuntime().newString(""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(System.identityHashCode(this)) + ">"); str.setTaint(isTaint()); return str; ...
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()); ...
3,228,738
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.STATUS_INFO)); statusButton.setBorder(null); ...
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.STATUS_INFO)); statusButton.setBorder(null); ...
3,228,739
public RubyException(String message) { super(message); }
public RubyException(String message) { super(message); }
3,228,740
private int here_document(int term, int indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c);...
private int here_document(int term, int indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c);...
3,228,741
String translatePattern(String regex, boolean commentsAllowed) { regex = COMMENT_PATTERN.matcher(regex).replaceAll(""); regex = HEX_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"x0$1"); regex = OCTAL_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"0$1"); regex = OCTAL_THREE_DIGIT_PATTERN.matcher(re...
String translatePattern(String regex, boolean commentsAllowed) { regex = COMMENT_PATTERN.matcher(regex).replaceAll(""); regex = HEX_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"x0$1"); regex = OCTAL_SINGLE_DIGIT_PATTERN.matcher(regex).replaceAll("\\\\"+"0$1"); regex = OCTAL_THREE_DIGIT_PATTERN.matcher(re...
3,228,743
public void compile(Ruby ruby, String pattern) throws RegexpError { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RegexpError(ruby, e.getMessage()); } }
public void compile(Ruby runtime, String pattern) throws RegexpError { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RegexpError(ruby, e.getMessage()); } }
3,228,745
public void compile(Ruby ruby, String pattern) throws RegexpError { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RegexpError(ruby, e.getMessage()); } }
public void compile(Ruby ruby, String pattern) throws RegexpError { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RegexpError(runtime, e.getMessage()); } }
3,228,746
public IRubyObject search(Ruby ruby, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < cou...
public IRubyObject search(Ruby runtime, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < ...
3,228,747
public IRubyObject search(Ruby ruby, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < cou...
public IRubyObject search(Ruby ruby, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < cou...
3,228,748
public IRubyObject search(Ruby ruby, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < cou...
public IRubyObject search(Ruby ruby, String target, int startPos) { REMatch match = re.getMatch(target, startPos, eflags); if (match != null) { int count = re.getNumSubs() + 1; int[] begin = new int[count]; int[] end = new int[count]; for (int i = 0; i < cou...
3,228,749
public abstract void compile(Ruby ruby, String pattern) throws RegexpError;
public abstract void compile(Ruby ruby, String pattern) throws RegexpError;
3,228,750
public String unextend(String re) { boolean inClass = false; int len = re.length(); StringBuffer sbuf = new StringBuffer(len); int pos = 0; char c; while (pos < len) { c = re.charAt(pos); if (c == '\\' && ++pos < len) { sbuf.append('\\')...
public String unextend(String re) { boolean inClass = false; int len = re.length(); StringBuffer sbuf = new StringBuffer(len); int pos = 0; char c; while (pos < len) { c = re.charAt(pos); if (c == '\\' && ++pos < len) { sbuf.append('\\')...
3,228,751
public String unextend(String re) { boolean inClass = false; int len = re.length(); StringBuffer sbuf = new StringBuffer(len); int pos = 0; char c; while (pos < len) { c = re.charAt(pos); if (c == '\\' && ++pos < len) { sbuf.append('\\')...
public String unextend(String re) { boolean inClass = false; int len = re.length(); StringBuffer sbuf = new StringBuffer(len); int pos = 0; char c; while (pos < len) { c = re.charAt(pos); if (c == '\\' && ++pos < len) { sbuf.append('\\')...
3,228,752
public abstract IRubyObject search(Ruby ruby, String target, int startPos);
public abstract IRubyObject search(Ruby ruby, String target, int startPos);
3,228,753
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
3,228,754
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
3,228,755
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
3,228,756
public static void errorOnViolation(Class implClass, Method mthd, Object[] args) throws ValidationException { if ( implClass == null || mthd == null ) { throw new ApiUsageException( "ApiConstraintChecker expects non null class and method " + "ar...
if (anns == null) continue; if (anns == null) continue; if (anns == null) continue; if (anns == null) continue; publicif (anns == null) continue; staticif (anns == null) continue; voidif (anns == null) continue; errorOnViolation(Classif (anns == null) continue; implClass,if (anns == null) continue; Methodif (a...
3,228,758
public static RubyProc newProc(Ruby runtime, boolean isLambda) { if (!runtime.isBlockGiven() && !runtime.isFBlockGiven()) { throw runtime.newArgumentError("tried to create Proc object without a block"); } RubyProc newProc = new RubyProc(runtime, runtime.getClasses().getProcClass()); ...
public static RubyProc newProc(Ruby runtime, boolean isLambda) { if (!runtime.isBlockGiven() && !runtime.isFBlockGiven()) { throw runtime.newArgumentError("tried to create Proc object without a block"); } RubyProc newProc = new RubyProc(runtime, runtime.getClasses().getProcClass()); ...
3,228,759
List getLocalValues() { return localValues; }
public List getLocalValues() { return localValues; }
3,228,761
private void cleanIdentities() { IdReference ref; while ((ref = (IdReference) deadIdentityReferences.poll()) != null) identities.remove(long Long(ref.id())); }
private void cleanIdentities() { IdReference ref; while ((ref = (IdReference) deadIdentityReferences.poll()) != null) identities.remove(new Long(ref.id())); }
3,228,762
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { eval(iVisited.getIterNode()); return; } else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else i...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { eval(iVisited.getIterNode()); return; } else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else i...
3,228,763
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { eval(iVisited.getIterNode()); return; } else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else i...
public void visitBlockPassNode(BlockPassNode iVisited) { IRubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { eval(iVisited.getIterNode()); return; } else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc(); } else i...
3,228,764
public void visitForNode(ForNode iVisited) { ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.getSourc...
public void visitForNode(ForNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.get...
3,228,765
public void visitForNode(ForNode iVisited) { ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.getSourc...
public void visitForNode(ForNode iVisited) { ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.getSourc...
3,228,766
public void visitIterNode(IterNode iVisited) { ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisited.ge...
public void visitIterNode(IterNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisit...
3,228,767
public void visitIterNode(IterNode iVisited) { ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisited.ge...
public void visitIterNode(IterNode iVisited) { ruby.getBlock().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisited.ge...
3,228,768
public NoteTreeNode(Tree parent, Note data) { treeItem = new TreeItem(parent, SWT.NONE); init(data); }
public NoteTreeNode(Tree parent, Note data) { treeItem = new TreeItem(parent, SWT.NONE); init(data); }
3,228,769
public void dispose() { if (displayedNote.getTab() != null) displayedNote.getTab().dispose(); treeItem.dispose(); }
public void dispose() { if (displayedNote.getTab() != null) displayedNote.getTab().dispose(); treeItem.dispose(); }
3,228,770
private void init(Note data) { this.displayedNote = new DisplayedNote(this, data); treeItem.setText(data.getName()); treeItem.setData(this); for (Note n : data.getChildren()) { new NoteTreeNode(treeItem, n); } }
private void init(Note data) { this.displayedNote = new DisplayedNote(this, data); treeItem.setText(data.getName()); treeItem.setData(this); for (Note n : data.getChildren()) { new NoteTreeNode(treeItem, n); } }
3,228,771
private void init(Note data) { this.displayedNote = new DisplayedNote(this, data); treeItem.setText(data.getName()); treeItem.setData(this); for (Note n : data.getChildren()) { new NoteTreeNode(treeItem, n); } }
private void init(Note data) { this.displayedNote = new DisplayedNote(this, data); treeItem.setText(data.getName()); treeItem.setData(this); for (Note n : data.getChildren()) { new NoteTreeNode(treeItem, n); } }
3,228,772