bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static Callback getTrueMethod() { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getTrue(); } }; }
public static Callback getTrueMethod(final int arity) { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getTrue(); } }; }
3,230,531
public IRubyObject set(IRubyObject value) { if (ruby.getGlobalVar("$!").isNil()) { throw new ArgumentError(ruby, "$! not set."); } ruby.getGlobalVar("$!").callMethod("set_backtrace", value.toRubyObject()); return value; }
public IRubyObject set(IRubyObject value) { if (ruby.getGlobalVar("$!").isNil()) { throw new ArgumentError(ruby, "$! not set."); } ruby.getGlobalVar("$!").callMethod("set_backtrace", value); return value; }
3,230,533
public IRubyObject set(IRubyObject value) { ruby.setLastline(value.toRubyObject()); return value; }
public IRubyObject set(IRubyObject value) { ruby.setLastline(value); return value; }
3,230,534
public IRubyObject set(IRubyObject value) { ((RubyArgsFile) ruby.getGlobalVar("$<")).setCurrentLineNumber(RubyFixnum.fix2int(value.toRubyObject())); return super.set(value); }
public IRubyObject set(IRubyObject value) { ((RubyArgsFile) ruby.getGlobalVar("$<")).setCurrentLineNumber(RubyFixnum.fix2int(value)); return super.set(value); }
3,230,535
public IRubyObject set(IRubyObject value) { int level = RubyFixnum.fix2int(value.toRubyObject()); if (level < ruby.getSafeLevel()) { throw new SecurityException("tried to downgrade level from " + ruby.getSafeLevel() + " to " + level); } ruby.setSafeLeve...
public IRubyObject set(IRubyObject value) { int level = RubyFixnum.fix2int(value); if (level < ruby.getSafeLevel()) { throw new SecurityException("tried to downgrade level from " + ruby.getSafeLevel() + " to " + level); } ruby.setSafeLevel(level); ...
3,230,536
private static void addInvitationListener() { // Add Invite Listener MultiUserChat.addInvitationListener(SparkManager.getConnection(), new InvitationListener() { public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final Str...
private static void addInvitationListener() { // Add Invite Listener MultiUserChat.addInvitationListener(SparkManager.getConnection(), new InvitationListener() { public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final Str...
3,230,537
public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final String password, final Message message) { SwingUtilities.invokeLater(new Runnable() { public void run() { Collection listener...
public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final String password, final Message message) { SwingUtilities.invokeLater(new Runnable() { public void run() { Collection listener...
3,230,538
public void run() { Collection listeners = new ArrayList(SparkManager.getChatManager().getInvitationListeners()); Iterator iter = listeners.iterator(); while (iter.hasNext()) { RoomInvitationListener list...
public void run() { Collection listeners = new ArrayList(SparkManager.getChatManager().getInvitationListeners()); Iterator iter = listeners.iterator(); while (iter.hasNext()) { RoomInvitationListener list...
3,230,539
public CreateAction(TreeViewer model) { super(model); putValue(Action.NAME, NAME); name = (String) getValue(Action.NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); IconManager im = IconManager.getInstance(); putValue(...
public CreateAction(TreeViewer model) { super(model); putValue(Action.NAME, NAME); name = (String) getValue(Action.NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); IconManager im = IconManager.getInstance(); putValue(...
3,230,541
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); name = NAME; putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; } Object ...
3,230,543
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); name = NAME; putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; } Object ...
3,230,544
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
3,230,545
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
3,230,546
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
3,230,547
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
3,230,548
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); name = NAME; putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; } Object ...
3,230,549
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); putValue(Action.NAME, NAME); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); return; ...
3,230,550
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
3,230,551
public Class loadJavaClass(String className) { try { Class result = primitiveClass(className); if (result == null) { return Class.forName(className, true, javaClassLoader); } return result; } catch (ClassNotFoundException cnfExcptn) { ...
public Class loadJavaClass(String className) { try { Class result = primitiveClass(className); if (result == null) { return Class.forName(className, true, javaClassLoader); } return result; } catch (ClassNotFoundException cnfExcptn) { ...
3,230,553
protected static void checkContentType(HttpMethodBase response, String mimeType) throws ImageServiceException { Header header = response.getResponseHeader("Content-Type"); if (header == null) throw new ImageServiceException( ...
protected static void checkContentType(HttpMethodBase response, String mimeType) throws ImageServiceException { Header header = response.getResponseHeader("Content-Type"); if (header == null) throw new ImageServiceException( ...
3,230,554
protected static void checkStatusCode(HttpMethodBase response) throws ImageServiceException { int status = response.getStatusCode(); if (status != HttpStatus.SC_OK) throw new ImageServiceException("OMEIS couldn't handle request: "+ HttpStatus.getStatusText(s...
protected static void checkStatusCode(HttpMethod response) throws ImageServiceException { int status = response.getStatusCode(); if (status != HttpStatus.SC_OK) throw new ImageServiceException("OMEIS couldn't handle request: "+ HttpStatus.getStatusText(statu...
3,230,555
public abstract void unmarshal(HttpMethodBase response, HttpChannel context) throws ImageServiceException, IOException;
public abstract void unmarshal(HttpMethod response, HttpChannel context) throws ImageServiceException, IOException;
3,230,556
public Node copyNodeScope(CRefNode refValue) { Node copy = new ScopeNode(null, refValue, getNextNode()); if (getTable() != null) { RubyIdPointer newTable = new RubyIdPointer(getTable().getId(0).intValue() + 1); newTable.set(getTable(), getTable().getId(0).intValue() + 1);...
public Node copyNodeScope(CRefNode refValue) { Node copy = new ScopeNode(null, refValue.cloneCRefNode(), getNextNode()); if (getTable() != null) { RubyIdPointer newTable = new RubyIdPointer(getTable().getId(0).intValue() + 1); newTable.set(getTable(), getTable().getId(0)....
3,230,557
public Node copyNodeScope(CRefNode refValue) { Node copy = new ScopeNode(null, refValue, getNextNode()); if (getTable() != null) { RubyIdPointer newTable = new RubyIdPointer(getTable().getId(0).intValue() + 1); newTable.set(getTable(), getTable().getId(0).intValue() + 1);...
public Node copyNodeScope(CRefNode refValue) { Node copy = new ScopeNode(null, refValue, getNextNode()); if (getTable() != null) { RubyIdPointer newTable = new RubyIdPointer(getTable().getId(0).intValue() + 1); newTable.set(getTable(), getTable().getId(0).intValue() + 1);...
3,230,558
public TopWindowManager(ManageableTopWindow window, AbstractButton[] displayButtons) { if (window == null) throw new NullPointerException("No window."); this.window = window; if (displayButtons != null) { ArrayList actualButtons = new ArrayList(displayButtons.length); for (int i = 0; i < displayButtons.lengt...
public TopWindowManager(ManageableTopWindow window, AbstractButton[] displayButtons) { if (window == null) throw new NullPointerException("No window."); this.window = window; if (displayButtons != null) { ArrayList actualButtons = new ArrayList(displayButtons.length); for (int i = 0; i < displayButtons.lengt...
3,230,559
public void continueHandleDisplay() { setOnScreen(); toForeground(); window.postHandleDisplay(); state = ON_SCREEN; //NOTE: setOnScreen() shows the window on screen, which will //eventually cause another call to componentShown() and, in turn, //another call to this method. However, the state is now ON_SCREEN...
public void continueHandleDisplay() { setOnScreen(); toForeground(); window.postHandleDisplay(); state = ON_SCREEN; //NOTE: setOnScreen() shows the window on screen, which will //eventually cause another call to componentShown() and, in turn, //another call to this method. However, the state is now ON_SCREEN...
3,230,560
public int getState() { return state; }
public int getState() { return state; }
3,230,561
private void handleDisplay() { if (state == ON_SCREEN) toForeground(); else { //DISPLAYABLE or UNLINKED. window.preHandleDisplay(this); } }
private void handleDisplay() { if (state == ON_SCREEN) toForeground(); else //DISPLAYABLE or UNLINKED. window.preHandleDisplay(this); } }
3,230,562
private void handleDisplay() { if (state == ON_SCREEN) toForeground(); else { //DISPLAYABLE or UNLINKED. window.preHandleDisplay(this); } }
private void handleDisplay() { if (state == ON_SCREEN) toForeground(); else { //DISPLAYABLE or UNLINKED. window.preHandleDisplay(this); } }
3,230,563
private void handleDispose() { state = UNLINKED; }
private void handleDispose() { state = UNLINKED; }
3,230,564
private void setInitialState() { if (window.isDisplayable()) state = (window.isShowing() ? ON_SCREEN : DISPLAYABLE); else state = UNLINKED; }
private void setInitialState() { if (window.isDisplayable()) state = (window.isShowing() ? ON_SCREEN : DISPLAYABLE); else state = UNLINKED; }
3,230,565
public void postHandleDisplay() { }
public void postHandleDisplay() { }
3,230,566
public void preHandleDisplay(TopWindowManager manager) { manager.continueHandleDisplay(); }
public void preHandleDisplay(TopWindowManager manager) { manager.continueHandleDisplay(); }
3,230,567
void setInputWindowEnd(int v, int min, int max) { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputEndBox(vg); view.updateInputEnd(vg, v); }
void setInputWindowEnd(int v, int min, int max) { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputEndBox(vg); view.updateInputEnd(vg, v); }
3,230,569
void setInputWindowStart(int v, int min, int max) { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputStartBox(vg); view.updateInputStart(vg, v); }
void setInputWindowStart(int v, int min, int max) { int vg = convertRealIntoGraphics(v, max-min, view.getInputGraphicsRange(), min); vg = vg + leftBorder; setInputStartBox(vg); view.updateInputStart(vg, v); }
3,230,570
int getGlobalMinimum() { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); return (int) eventManager.getGlobalChannelWindowStart(w); }
int getGlobalMinimum() { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); return (int) eventManager.getGlobalChannelWindowStart(w); }
3,230,571
int getGlobalMaximum() { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); return (int) eventManager.getGlobalChannelWindowEnd(w); }
int getGlobalMaximum() { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); return (int) eventManager.getGlobalChannelWindowEnd(w); }
3,230,572
void setInputWindowEnd(int value) { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); setInputWindowEnd(value, w); }
void setInputWindowEnd(int value) { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); setInputWindowEnd(value, w); }
3,230,573
void setInputWindowStart(int value) { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); setInputWindowStart(value, w); }
void setInputWindowStart(int value) { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); setInputWindowStart(value, w); }
3,230,574
void setCodomainUpperBound(int x) { eventManager.setCodomainUpperBound(x); }
void setCodomainUpperBound(int x) { eventManager.setCodomainUpperBound(x); }
3,230,575
void setCodomainLowerBound(int x) { eventManager.setCodomainLowerBound(x); }
void setCodomainLowerBound(int x) { eventManager.setCodomainLowerBound(x); }
3,230,576
boolean load(String file);
boolean load(String file);
3,230,577
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,230,578
protected void onBrowserSelection(Browser browser) { nodeType = -1; if (browser == null) { setEnabled(false); name = NAME; } else { switch (browser.getBrowserType()) { case Browser.PROJECT_EXPLORER: setEnabled(true); ...
protected void onBrowserSelection(Browser browser) { nodeType = -1; if (browser == null) { setEnabled(false); name = NAME; } else { switch (browser.getBrowserType()) { case Browser.PROJECT_EXPLORER: setEnabled(true); ...
3,230,579
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: ...
3,230,581
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
3,230,582
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
3,230,583
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
3,230,584
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
3,230,585
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =...
3,230,586
final public ListBuilder BracketList() throws ParseException { ListBuilder list; jj_consume_token(LBRACKET); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; default: jj_la1[34] = jj_gen; ; } list = ArgList(); jj_consume_token(RBRACKET); {if (t...
final public ListBuilder BracketList() throws ParseException { ListBuilder list; jj_consume_token(LBRACKET); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; default: jj_la1[34] = jj_gen; ; } list = ArgList(); jj_consume_token(RBRACKET); {if (t...
3,230,587
public void ReInit(java.io.Reader dstream) { ReInit(dstream, 1, 1, 4096); }
public void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize) { ReInit(dstream, 1, 1, 4096); }
3,230,588
public void ReInit(java.io.Reader dstream) { ReInit(dstream, 1, 1, 4096); }
public void ReInit(java.io.Reader dstream) { inputStream = dstream; line = startline; column = startcolumn - 1; if (bufA == null || bufA.size != buffersize) bufA = new Buffer(buffersize); if (bufB == null || bufB.size != buffersize) bufB = new Buffer(buffersize); curBuf = bufA; otherBuf = bufB; curBuf.curPos = o...
3,230,589
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch ...
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, context.getEncoding()); write(fw,context); fw.flush(); return os.toString("UTF8")...
3,230,590
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch ...
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString(context.getEncoding())...
3,230,591
public DirectiveBuilder(DirectiveDescriptor desc) { this.desc = desc; if (desc.args != null && desc.args.length > 0) buildArgs = new ArgsHolder(desc.args); if (desc.subdirectives != null && desc.subdirectives.length > 0) subdirectives = new Object[desc.subdirectives.length]; try { ...
public DirectiveBuilder(DirectiveDescriptor desc) { this.desc = desc; if (desc.args != null && desc.args.length > 0) buildArgs = new ArgsHolder(desc.args); if (desc.subdirectives != null && desc.subdirectives.length > 0) subdirectives = new Object[desc.subdirectives.length]; try { ...
3,230,592
public XMLReport(ProjectData projectData, File destinationDir, FileFinder finder) throws IOException { this.finder = finder; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"http://cobertura.sourc...
public XMLReport(ProjectData projectData, File destinationDir, FileFinder finder) throws IOException { this.finder = finder; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"http://cobertura.sourc...
3,230,593
private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class...
private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class...
3,230,595
private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class...
private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class...
3,230,596
private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = packageData.getCCN(finder); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchC...
private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = packageData.getCCN(finder); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchC...
3,230,597
private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = packageData.getCCN(finder); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchC...
private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = packageData.getCCN(finder); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchC...
3,230,598
private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); }
private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); }
3,230,599
private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); }
private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); }
3,230,600
private void dumpSources() { println("<sources>"); increaseIndentation(); for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); dumpSource(dir); } decreaseIndentation(); println("</sources>"); }
private void dumpSources() { println("<sources>"); increaseIndentation(); for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); dumpSource(dir); } decreaseIndentation(); println("</sources>"); }
3,230,601
public void handleNativeException(Exception exception) { Class excptnClass = exception.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSupercl...
public void handleNativeException(Exception exception) { Class excptnClass = exception.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSupercl...
3,230,602
void setUnitBarSize(double size) { unit = size/getPixelsSizeX(); }
void setUnitBarSize(double size) { if (getPixelsSizeX() > 0) unit = size/getPixelsSizeX(); else unit = size; }
3,230,603
public static RubyArray unpack(String encodedString, RubyString formatString) { IRuby runtime = formatString.getRuntime(); RubyArray result = runtime.newArray(); PtrList format = new PtrList(formatString.toString()); PtrList encode = new PtrList(encodedString); char ty...
public static RubyArray unpack(String encodedString, RubyString formatString) { IRuby runtime = formatString.getRuntime(); RubyArray result = runtime.newArray(); PtrList format = new PtrList(formatString.toString()); PtrList encode = new PtrList(encodedString); char ty...
3,230,605
public String getTemplateName(WikiSystem wiki, WikiPage page) { Properties props = wiki.getProperties(); String template = props.getProperty ("ViewPageAction.Template"); if (page != null) { template = props.getProperty (page.getTitle()); } return template; }
public String getTemplateName(WikiSystem wiki, WikiPage page) { Properties props = wiki.getProperties(); String template = props.getProperty ("ViewPageAction.Template"); if (page != null) { if (props.getProperty (page.getTitle()) != null) template = props.getProperty (page.getTitle()); ...
3,230,606
public RubyObject eval(Ruby ruby, RubyObject self) { while (getConditionNode().eval(ruby, self).isTrue()) { while (true) { try { getBodyNode().eval(ruby, self); break; } catch (RedoException rExcptn) { } catch (Next...
public RubyObject eval(Ruby ruby, RubyObject self) { while (getConditionNode().eval(ruby, self).isTrue()) { while (true) { try { getBodyNode().eval(ruby, self); break; } catch (RedoException rExcptn) { } catch (Next...
3,230,607
public HTMLReport(ProjectData projectData, File outputDir, File sourceDir) throws Exception { this.destinationDir = outputDir; this.sourceDir = sourceDir; this.projectData = projectData; CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generateOverviews(); generateSourceFiles(); }
public HTMLReport(ProjectData projectData, File outputDir, File sourceDir) throws Exception { this.destinationDir = outputDir; this.sourceDir = sourceDir; this.projectData = projectData; CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generateOverviews(); generateSourceFiles(); }
3,230,608
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,230,609
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,230,610
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,230,611
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,230,612
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,230,613
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,230,614
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
3,230,615
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
3,230,616
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
3,230,617
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,618
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,619
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,620
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,621
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,622
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,623
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,624
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,625
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin...
3,230,626
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
3,230,627
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
3,230,628
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
3,230,629
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa...
3,230,630
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-classes-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.g...
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-classes-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.g...
3,230,631
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-classes-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.g...
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-classes-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.g...
3,230,632
public Collection getClasses() { Collection result = new ArrayList(children.size() * 15); // just an approximation, no science here for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); result.addAll(packageData.getChildren()); ...
public Collection getClasses() { Collection result = new ArrayList(children.size() * 15); // just an approximation, no science here for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); result.addAll(packageData.getChildren()); ...
3,230,633
public DataManagerUIF(DataManagerCtrl control, Registry registry) { super("Data Manager", registry.getTaskBar()); this.registry = registry; this.control = control; im = IconManager.getInstance(registry); explPane = new ExplorerPane(control, registry); popupMenu = new TreePopupMenu(control, registry); clas...
public DataManagerUIF(DataManagerCtrl control, Registry registry) { super("Data Manager", registry.getTaskBar()); this.registry = registry; this.control = control; im = IconManager.getInstance(registry); explPane = new ExplorerPane(control, registry); popupMenu = new TreePopupMenu(control, registry); clas...
3,230,634
public ImageDimension(Integer attributeId, Float pixelSizeC, Float pixelSizeT, Float pixelSizeX, Float pixelSizeY, Float pixelSizeZ, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.pixelSizeC = pixelSize...
public ImageDimension(Integer attributeId, Float pixelSizeC, Float pixelSizeT, Float pixelSizeX, Float pixelSizeY, Float pixelSizeZ, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.pixelSizeC = pixelSize...
3,230,635
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
public Image getImage() { return this.image; }
3,230,636
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,230,637
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
public void setImage(Image image) { this.image = image; }
3,230,638