bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsing hb = (HierarchyBrowsing) applicationContext.getBean("hierarchyBrowsingService"); Set imgIds = new HashSet(); imgIds.add(new Integer(1191)); imgIds.add(new Integer(4665)); imgIds.add(new Integer(1304)...
public void testImageThumbnailExplodsOnHessianSerialization() { Set imgIds = new HashSet(); imgIds.add(new Integer(1191)); imgIds.add(new Integer(4665)); imgIds.add(new Integer(1304)); imgIds.add(new Integer(4977)); imgIds.add(new Integer(3540)); imgIds.add(ne...
3,237,683
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageActionException { String pageName = wc.getForm ("jump"); pageName = WikiUtil.guessWikiTitle(pageName, wiki); if (!wiki.containsPage(pageName)) throw new PageActionException ("That page does n...
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageActionException { String pageName = wc.getForm ("jump"); pageName = WikiUtil.guessWikiTitle(pageName, wiki); if (!wiki.containsPage(pageName)) throw new PageActionException ("That page does n...
3,237,685
private void selectAll(boolean b) { TableComponent table = view.table; Boolean obj = Boolean.FALSE; if (b) obj = Boolean.TRUE; for (int i = 0; i < table.getRowCount(); i++) table.setValueAt(obj, i, ContextPane.BOOLEAN); }
private void selectAll(boolean b) { TableComponent table = view.table; Boolean obj = Boolean.FALSE; if (b) obj = Boolean.TRUE; for (int i = 0; i < table.getRowCount(); i++) table.setValueAt(obj, i, ContextDialog.BOOLEAN); }
3,237,686
public void stateChanged(ChangeEvent ce) { Object source = ce.getSource(); if (source instanceof HiViewer) { HiViewer parentModel = model.getParentModel(); if (parentModel.getState() == HiViewer.READY) { parentModel.getBrowser().addPropertyChangeListener( ...
public void stateChanged(ChangeEvent ce) { Object source = ce.getSource(); if (source instanceof HiViewer) { HiViewer parentModel = model.getParentModel(); if (parentModel.getState() == HiViewer.READY) { parentModel.getBrowser().addPropertyChangeListener( ...
3,237,688
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
3,237,689
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
3,237,690
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
3,237,691
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
3,237,692
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
3,237,693
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
3,237,694
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ...
protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ((RubyString) runtime.getGlobalVar("$FILENAME")).se...
3,237,695
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID...
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID...
3,237,696
public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); return this; }
public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); return this; }
3,237,697
private void createRoom() { ConferenceCreator mucRoomDialog = new ConferenceCreator(); final MultiUserChat groupChat = mucRoomDialog.createGroupChat(SparkManager.getMainWindow(), serviceName); final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(Ch...
private void createRoom() { ConferenceCreator mucRoomDialog = new ConferenceCreator(); final MultiUserChat groupChat = mucRoomDialog.createGroupChat(SparkManager.getMainWindow(), serviceName); LocalPreferences pref = SettingsManager.getLocalPreferences(); if (null != groupChat) { ...
3,237,698
EqualCondition(Condition l, Condition r) { _l = l; _r = r; }
EqualCondition(Condition l, Condition r) { _l = l; _r = r; }
3,237,699
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
3,237,700
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lmacro && !rmacro) { if ((l == null) || (r == null)) { return...
3,237,701
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
3,237,702
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
3,237,703
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (...
3,237,704
EqualConstantCondition(Condition l, Object r) { _l = l; _r = r; }
EqualConstantCondition(Condition l, Object r) { _l = l; _r = r; }
3,237,705
public final boolean test(Object context) { Object left; try { left = _l.evaluate(context); } catch (Exception e) { left = null; } if ((left == null) || (_r == null)) { return (left == _r); } return left.equals(_r); }
public final boolean test(Object context) { Object left; try { left = _l.evaluate(context); } catch (Exception e) { left = null; } if ((left == null) || (_r == null)) { return (left == _r); } return left.equals(_r); }
3,237,706
public void execute(EvaluationState state, InstructionContext ctx) { Colon2Node iVisited = (Colon2Node)ctx; Node leftNode = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the ...
public void execute(EvaluationState state, InstructionContext ctx) { Colon2Node iVisited = (Colon2Node)ctx; Node leftNode = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the ...
3,237,707
public void execute(EvaluationState state, InstructionContext ctx) { Colon2Node iVisited = (Colon2Node)ctx; if (state.getResult() instanceof RubyModule) { state.setResult(((RubyModule) state.getResult()).getConstantAtOrConstantMissing(iVisited.getName())); } else { ...
public void execute(EvaluationState state, InstructionContext ctx) { Colon2Node iVisited = (Colon2Node)ctx; if (state.getResult() instanceof RubyModule) { state.setResult(((RubyModule) state.getResult()).getConstantFrom(iVisited.getName())); } else { state.s...
3,237,708
public void execute(EvaluationState state, InstructionContext ctx) { Colon3Node iVisited = (Colon3Node)ctx; state.setResult(state.runtime.getObject().getConstant(iVisited.getName())); }
public void execute(EvaluationState state, InstructionContext ctx) { Colon3Node iVisited = (Colon3Node)ctx; state.setResult(state.runtime.getObject().getConstantFrom(iVisited.getName())); }
3,237,709
public void execute(EvaluationState state, InstructionContext ctx) { ConstDeclNode iVisited = (ConstDeclNode)ctx; state.getThreadContext().getRubyClass().setConstant(iVisited.getName(), state.getResult()); }
public void execute(EvaluationState state, InstructionContext ctx) { ConstDeclNode iVisited = (ConstDeclNode)ctx; ((RubyModule)state.getThreadContext().peekCRef().getValue()).setConstant(iVisited.getName(), state.getResult()); }
3,237,710
public void execute(EvaluationState state, InstructionContext ctx) { ConstNode iVisited = (ConstNode)ctx; state.setResult(state.getThreadContext().getRubyClass().getConstant(iVisited.getName())); }
public void execute(EvaluationState state, InstructionContext ctx) { ConstNode iVisited = (ConstNode)ctx; state.setResult(state.getThreadContext().getConstant(iVisited.getName())); }
3,237,711
public void execute(EvaluationState state, InstructionContext ctx) { DefnNode iVisited = (DefnNode)ctx; RubyModule containingClass = state.getThreadContext().getRubyClass(); if (containingClass == null) { throw state.runtime.newTypeError("No class to add method."); ...
public void execute(EvaluationState state, InstructionContext ctx) { DefnNode iVisited = (DefnNode)ctx; RubyModule containingClass = state.getThreadContext().getRubyClass(); if (containingClass == null) { throw state.runtime.newTypeError("No class to add method."); ...
3,237,712
public void execute(EvaluationState state, InstructionContext ctx) { DefsNode iVisited = (DefsNode)ctx; IRubyObject receiver = state.begin(iVisited.getReceiverNode()); if (state.runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw state.runtime.newSecurityError("Ins...
public void execute(EvaluationState state, InstructionContext ctx) { DefsNode iVisited = (DefsNode)ctx; IRubyObject receiver = state.begin(iVisited.getReceiverNode()); if (state.runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw state.runtime.newSecurityError("Ins...
3,237,713
public SetDirective(Variable target, Object result) { this.target = target; this.result = result; }
public SetDirective(Variable target, Object result) { this.target = target; this.result = result; }
3,237,714
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit...
publicRubyClassdefineClass(Stringname,RubyClasssuperClass){if(superClass==null){superClass=getClasses().getObjectClass();}RubyClassnewClass=RubyClass.newClass(this,superClass,name);newClass.makeMetaClass(superClass.getMetaClass());newClass.inheritedBy(superClass);classes.putClass(name,newClass);returnnewClass;}
3,237,715
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit...
publicRubyClassdefineClass(Stringname,RubyClasssuperClass){if(superClass==null){superClass=getClasses().getObjectClass();}RubyClassnewClass=RubyClass.newClass(this,superClass,name);newClass.makeMetaClass(superClass.getMetaClass());newClass.inheritedBy(superClass);classes.putClass(name,newClass);returnnewClass;}
3,237,716
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit...
publicRubyClassdefineClass(Stringname,RubyClasssuperClass){if(superClass==null){superClass=getClasses().getObjectClass();}RubyClassnewClass=RubyClass.newClass(this,superClass,name);newClass.makeMetaClass(superClass.getMetaClass());newClass.inheritedBy(superClass);classes.putClass(name,newClass);returnnewClass;}
3,237,717
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit...
publicRubyClassdefineClass(Stringname,RubyClasssuperClass){if(superClass==null){superClass=getClasses().getObjectClass();}RubyClassnewClass=RubyClass.newClass(this,superClass,name);newClass.makeMetaClass(superClass.getMetaClass());newClass.inheritedBy(superClass);classes.putClass(name,newClass);returnnewClass;}
3,237,718
protected void setUp() throws Exception { super.setUp(); qf = new QueryFactory(); impl = new PojosImpl(); impl.setQueryFactory( qf ); ProxyFactory factory = new ProxyFactory(impl); factory.addAdvice(new ServiceHandler()); manager = (IPojos) factory.getProxy(); }
protected void setUp() throws Exception { super.setUp(); impl = new PojosImpl(); impl.setQueryFactory( qf ); ProxyFactory factory = new ProxyFactory(impl); factory.addAdvice(new ServiceHandler()); manager = (IPojos) factory.getProxy(); }
3,237,719
protected void setUp() throws Exception { super.setUp(); qf = new QueryFactory(); impl = new PojosImpl(); impl.setQueryFactory( qf ); ProxyFactory factory = new ProxyFactory(impl); factory.addAdvice(new ServiceHandler()); manager = (IPojos) factory.getProxy(); }
protected void setUp() throws Exception { super.setUp(); qf = new QueryFactory(); impl = new PojosImpl(); ProxyFactory factory = new ProxyFactory(impl); factory.addAdvice(new ServiceHandler()); manager = (IPojos) factory.getProxy(); }
3,237,720
public void testGetUserImages() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.getUserImages((Map)arg[0]); } }; t.blowup(true,new PojoOptions().allExps().map()); t.blowup(false,new PojoOptions().exp(1L).map()); }
public void testGetUserImages() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.getUserImages((Map)arg[0]); } }; t.blowup(true,new PojoOptions().allExps().map()); t.blowup(false,new PojoOptions().exp(1L).map()); }
3,237,721
public void test_simple_usage() throws Exception { Long doesntExist = -1L; q= new PojosLoadHierarchyQueryDefinition( new Parameters() .addIds(Arrays.asList( doesntExist )) .addOptions(null) .addClass(Project.class) ); ...
public void test_simple_usage() throws Exception { Long doesntExist = -1L; q= new PojosLoadHierarchyQueryDefinition( new Parameters() .addIds(Arrays.asList( doesntExist )) .addOptions(null) .addClass(Project.class) ); ...
3,237,722
ViewerUIF(ViewerCtrl control, Registry registry, PixelsDimensions pxsDims, int defaultT, int defaultZ) { super("", registry.getTaskBar()); active = false; this.control = control; im = IconManager.getInstance(registry); int maxT = pxsDims.sizeT-1; int maxZ...
ViewerUIF(ViewerCtrl control, Registry registry, PixelsDimensions pxsDims, int defaultT, int defaultZ) { super("", registry.getTaskBar()); this.control = control; im = IconManager.getInstance(registry); int maxT = pxsDims.sizeT-1; int maxZ = pxsDims.sizeZ...
3,237,723
ViewerUIF(ViewerCtrl control, Registry registry, PixelsDimensions pxsDims, int defaultT, int defaultZ) { super("", registry.getTaskBar()); active = false; this.control = control; im = IconManager.getInstance(registry); int maxT = pxsDims.sizeT-1; int maxZ...
ViewerUIF(ViewerCtrl control, Registry registry, PixelsDimensions pxsDims, int defaultT, int defaultZ) { super("", registry.getTaskBar()); active = false; this.control = control; im = IconManager.getInstance(registry); int maxT = pxsDims.sizeT-1; int maxZ...
3,237,724
void resetLens() { canvas.resetLens(); //canvas.repaint(); }
void resetLens() { canvas.resetLens(); //canvas.repaint(); }
3,237,725
void setDefaultZT(int t, int z, int sizeT, int sizeZ) { ToolBarManager tbm = toolBar.getManager(); tbm.onTChange(t); tbm.onZChange(z); int maxZ = sizeZ-1; int maxT = sizeT-1; tbm.setMaxT(maxT); tbm.setMaxZ(maxZ); toolBar.getZLabel().setText("/"+maxZ); ...
void setDefaultZT(int t, int z, int sizeT, int sizeZ) { ToolBarManager tbm = toolBar.getManager(); tbm.onTChange(t); tbm.onZChange(z); int maxZ = sizeZ-1; int maxT = sizeT-1; tbm.setMaxT(maxT); tbm.setMaxZ(maxZ); toolBar.getZLabel().setText("/"+maxZ); ...
3,237,726
private void setWindowSize(int w, int h) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); if (w > width) w = width; if (h > height) h = height; setSize(w, h); }
private void setWindowSize(int w, int h) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); if (w > width) w = width; if (h > height) h = height; setSize(w, h); }
3,237,727
private void setWindowSize(int w, int h) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); if (w > width) w = width; if (h > height) h = height; setSize(w, h); }
private void setWindowSize(int w, int h) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); if (w > width) w = width; if (h > height) h = height; windowWidth = w; windowHeight ...
3,237,728
private void handleAddROICanvas(AddROICanvas response) { if (response.isOnOff()) bringUpPresentation(); else if (!postedAdd) closePresentation(); postedAdd = false; }
private void handleAddROICanvas(AddROICanvas response) { if (response.isOnOff()) bringUpPresentation(); else if (!postedAdd) closePresentation(); postedAdd = false; }
3,237,730
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
3,237,731
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
3,237,732
private static Node getParsedScript(Ruby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.assumePrinting) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.assumeLoop) { result = new...
private static Node getParsedScript(Ruby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.isAssumePrinting()) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.assumeLoop) { result =...
3,237,733
private static Node getParsedScript(Ruby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.assumePrinting) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.assumeLoop) { result = new...
private static Node getParsedScript(Ruby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.assumePrinting) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.assumeLoop) { result = new...
3,237,734
private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run...
private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run...
3,237,735
private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run...
private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run...
3,237,736
private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run...
private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run...
3,237,737
public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking) { ...
public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking) { ...
3,237,738
public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking) { ...
public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking()) { ...
3,237,739
public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking) { ...
public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking()) { ...
3,237,740
public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext(); ) { ...
public RubyArray singleton_methods(IRubyObject[] args) { boolean all = true; if(checkArgumentCount(args,0,1) == 1) { all = args[0].isTrue(); } RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperC...
3,237,741
public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext(); ) { ...
public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && ((type instanceof MetaClass) || (all && type.isIncluded())); type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().ite...
3,237,742
public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext(); ) { ...
public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext(); ) { ...
3,237,743
public Context(final Broker broker) { _broker = broker; _bean = null; _tools = null; _toolbox = null; _locals = null; }
public Context(final Broker broker) { _broker = broker; _bean = null; _toolbox = null; _locals = null; }
3,237,744
public Context(final Broker broker) { _broker = broker; _bean = null; _tools = null; _toolbox = null; _locals = null; }
public Context(final Broker broker) { _broker = broker; _bean = null; _tools = null; _toolbox = null; }
3,237,745
protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } }
public Object clone() { Context c = null; try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } }
3,237,747
protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } }
protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } }
3,237,748
public final Object getProperty(final Object[] names) throws PropertyException, InvalidContextException { if (names.length == 0) { return null; } else if (_bean == null) { Object res = get(names[0]); if (names.length == 1) { return res; } return P...
public final Object getProperty(final Object[] names) throws PropertyException, InvalidContextException { if (names.length == 0) { return null; } else if (_bean == null) { Object res = get(names[0]); if (names.length == 1) { return res; } return P...
3,237,750
final public Object getTool(String name) throws InvalidContextException { try { if (_toolbox == null) { return null; } Object ret = (_tools != null) ? _tools.get(name) : null; if (ret == null) { ContextTool tool = (ContextTool) _toolbox.get(name); ...
final public Object getTool(Object name) throws InvalidContextException { try { if (_toolbox == null) { return null; } Object ret = (_tools != null) ? _tools.get(name) : null; if (ret == null) { ContextTool tool = (ContextTool) _toolbox.get(name); ...
3,237,751
final public boolean setProperty(final Object[] names, final Object value) throws PropertyException, InvalidContextException { if (names.length == 0) { return false; } else if (_bean == null) { if (names.length == 1) { put(names[0], value); return true; ...
final public boolean setProperty(final Object[] names, final Object value) throws PropertyException, InvalidContextException { if (names.length == 0) { return false; } else if (_bean == null) { if (names.length == 1) { put(names[0], value); return true; ...
3,237,752
public void setPaneIndex(int index);
public void setPaneIndex(int index);
3,237,753
HistogramDialog(QuantumPaneManager control, int mini, int maxi, int start, int end, PixelsStatsEntry[] histogramData) { super(control.getReferenceFrame(), "Histogram", true); manager = new HistogramDialogManager(this, control); int yStart, yEnd; yStart = manager.convertRealIntoGraphics(start); yEnd = manager...
HistogramDialog(QuantumPaneManager control, int mini, int maxi, int start, int end, PixelsStatsEntry[] histogramData) { super(control.getReferenceFrame(), "Histogram", true); manager = new HistogramDialogManager(this, control); int yStart, yEnd; yStart = manager.convertRealIntoGraphics(start); yEnd = manager...
3,237,754
public void saveRenderingSettings(int pixelsID, int imageID, RenderingDef rDef) throws DSOutOfServiceException, DSAccessException { UserDetails uc = registry.getDataManagementService().getUserDetails(); Criteria c = ImageMapper.buildRenderingSettingsCr...
public void saveRenderingSettings(int pixelsID, int imageID, RenderingDef rDef) throws DSOutOfServiceException, DSAccessException { UserDetails uc = registry.getDataManagementService().getUserDetails(); Criteria c = ImageMapper.buildRenderingSettingsCr...
3,237,755
public void saveRenderingSettings(int pixelsID, int imageID, RenderingDef rDef) throws DSOutOfServiceException, DSAccessException { UserDetails uc = registry.getDataManagementService().getUserDetails(); Criteria c = ImageMapper.buildRenderingSettingsCr...
public void saveRenderingSettings(int pixelsID, int imageID, RenderingDef rDef) throws DSOutOfServiceException, DSAccessException { UserDetails uc = registry.getDataManagementService().getUserDetails(); Criteria c = ImageMapper.buildRenderingSettingsCr...
3,237,756
private JMenu createViewMenu() { JMenu menu = new JMenu("View"); menu.setMnemonic(KeyEvent.VK_V); //menu.add(new JMenuItem(controller.getAction(HiViewerControl.VIEW_PDI))); menu.add(new JMenuItem( controller.getAction(HiViewerControl.VIEW_CGCI))); //m...
private JMenu createViewMenu() { JMenu menu = new JMenu("View"); menu.setMnemonic(KeyEvent.VK_V); //menu.add(new JMenuItem(controller.getAction(HiViewerControl.VIEW_PDI))); menu.add(new JMenuItem( controller.getAction(HiViewerControl.VIEW_CGCI))); //m...
3,237,757
public RubyModule getCBase() { return cBase; }
public RubyModule getCBase() { return (RubyModule)getRubyFrame().getCbase().getClassValue(); }
3,237,758
public void setCBase(RubyModule cBase) { this.cBase = cBase; }
public void setCBase(RubyModule cBase) { getRubyFrame().getCbase().setClassValue(cBase); }
3,237,759
private void processQueue() { // reference queue is sychronized, so no need to do it ourself Node node; while ((node = (Node)queue.poll()) != null) { int hash = (node.hash & 0x7FFFFFFF) % tab.length; Node last=null; synchronized (locks[hash]) { if...
private void processQueue() { // reference queue is sychronized, so no need to do it ourself Node node; while ((node = (Node)queue.poll()) != null) {int hash = (node.hash & 0x7FFFFFFF) % tab.length;Node last=null;synchronized (locks[hash]) { if (!node.cleaned) { Node current = tab[hash]; while (current != null) {...
3,237,760
public IRubyObject setValue(IRubyObject value) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getClass("JavaProxy"))) { value = value.getInstanceVariable("java_object"); } value = Java.primitive_to_java(value, value); ...
public IRubyObject setValue(IRubyObject value) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getClasses().getClass("JavaProxy"))) { value = value.getInstanceVariable("java_object"); } value = Java.primitive_to_java(value, value)...
3,237,762
private Object convertToJava(IRubyObject value, Class type) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getClass("JavaProxy"))) { value = value.getInstanceVariable("java_object"); } value = Java.primitive_to_java(value, value); return JavaUtil...
private Object convertToJava(IRubyObject value, Class type) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getClasses().getClass("JavaProxy"))) { value = value.getInstanceVariable("java_object"); } value = Java.primitive_to_java(value, value); re...
3,237,763
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { return eval(ruby, recv); }
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper) { return eval(ruby, recv); }
3,237,764
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } List argsList = ...
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } List argsList = ...
3,237,765
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } List argsList = ...
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } List argsList = ...
3,237,766
public void actionPerformed(ActionEvent e) { if (model.getTreeView() == null) return; model.showTreeView(!model.getTreeView().isDisplay()); }
public void actionPerformed(ActionEvent e) { if (model.getTreeView() == null) return; model.showTreeView(!model.getTreeView().isDisplay()); }
3,237,767
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ...
privatevoidcreateMenuBar(){menuBar=newJToolBar();menuBar.setBorder(null);menuBar.setRollover(true);menuBar.setFloatable(false);JButtonbutton=newJButton(controller.getAction(BrowserControl.BACKWARD_NAV));button.setBorderPainted(false);//menuBar.add(button);button=newJButton(controller.getAction(BrowserControl.FORWARD_NA...
3,237,770
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ...
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ...
3,237,771
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ...
private void createMenuBar(){menuBar = new JToolBar();menuBar.setBorder(null);menuBar.setRollover(true);menuBar.setFloatable(false);JButton button = new JButton(controller.getAction(BrowserControl.BACKWARD_NAV));button.setBorderPainted(false);//menuBar.add(button);button = new JButton(controller.getAction(BrowserContro...
3,237,772
public static File createTempFile(String prefix, String suffix) throws IOException { File file = File.createTempFile(prefix, suffix); return new NormalizedFile(file.getPath()); }
public static File createTempFile(String prefix, String suffix) throws IOException { File file = File.createTempFile(prefix, suffix); return new NormalizedFile(file.getPath()); }
3,237,774
public Object build(BuildContext bc) throws BuildException { MacroDefinition md = bc.getMacro(name); if (md == null) throw new BuildException("No such macro " + name); Object[] args = (Object[]) argsBuilder.buildAsArray(bc); return md.expand(args, bc); }
public Object build(BuildContext bc) throws BuildException { MacroDefinition md = bc.getMacro(name); if (md == null) throw new BuildException("No such macro " + name); Object[] args = argsBuilder.buildAsArray(bc); return md.expand(args, bc); }
3,237,775
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); module.defineModuleFunction("Array", callbackFactory.getSingletonMethod("new_array", IRubyObject.class));...
module.defineModuleFunction("trap", callbackFactory.getOptSingletonMethod("trap")); module.defineModuleFunction("trap", callbackFactory.getOptSingletonMethod("trap")); module.defineModuleFunction("trap", callbackFactory.getOptSingletonMethod("trap")); module.defineModuleFunction("trap", callbackFactory.getOptSingletonM...
3,237,777
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil(); RubyEx...
public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil(); RubyEx...
3,237,778
public RubyClass newSubClass(String name, RubyModule parent) { return new IntegerMetaClass(name, this, parent); }
public RubyClass newSubClass(String name, RubyModule parent) { return new IntegerMetaClass(name, this, parent); }
3,237,779
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocal...
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocal...
3,237,780
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
3,237,781
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
3,237,782
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
3,237,783
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
3,237,784
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest...
3,237,785
public void setDataFile(String dataFile) { this.dataFile = dataFile; }
public void setDataFile(String dataFile) { this.dataFile = dataFile; }
3,237,787
public void setDestDir(File destDir) { this.destDir = destDir; }
public void setDestDir(File destDir) { this.destDir = destDir; }
3,237,788
public void setFormat(String format) { this.format = format; }
public void setFormat(String format) { this.format = format; }
3,237,789
public void setSrcDir(Path srcDir) { if (src == null) { src = srcDir; } else { src.append(srcDir); } }
public void setSrcDir(Path srcDir) { if (src == null) { src = srcDir; } else { src.append(srcDir); } }
3,237,790
public static IRubyObject exit(IRubyObject recv, IRubyObject args[]) { int status = 0; if (args.length > 0) { status = RubyNumeric.fix2int(args[0]); } System.exit(status); return recv.getRuntime().getNil(); }
publicstaticIRubyObjectexit(IRubyObjectrecv,IRubyObjectargs[]){intstatus=0;if(args.length>0){status=RubyNumeric.fix2int(args[0]);}System.exit(status);returnrecv.getRuntime().getNil();}
3,237,791
public static IRubyObject exit(IRubyObject recv, IRubyObject args[]) { int status = 0; if (args.length > 0) { status = RubyNumeric.fix2int(args[0]); } System.exit(status); return recv.getRuntime().getNil(); }
public static IRubyObject exit(IRubyObject recv, IRubyObject args[]) { int status = 0; if (args.length > 0) { status = RubyNumeric.fix2int(args[0]); } System.exit(status); return recv.getRuntime().getNil(); }
3,237,792
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); if (browser == null) return; ImageDisplay d = browser.getLastSelectedDisplay();...
publicvoidpropertyChange(PropertyChangeEventpce){StringpropName=pce.getPropertyName();if(Browser.POPUP_POINT_PROPERTY.equals(propName)){Browserbrowser=model.getBrowser();if(browser==null)return;ImageDisplayd=browser.getLastSelectedDisplay();Pointp=browser.getPopupPoint();if(d!=null&&p!=null)view.showPopup(d,p);}elseif(...
3,237,793