bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public IRubyObject dup() { RubyModule dup = (RubyModule) rbClone(); dup.setRubyClass(getInternalClass()); // +++ jpetersen // dup.setSingleton(isSingleton()); // --- jpetersen return dup; } | public IRubyObject dup() { RubyModule dup = (RubyModule) rbClone(); dup.setInternalClass(getInternalClass()); // +++ jpetersen // dup.setSingleton(isSingleton()); // --- jpetersen return dup; } | 3,230,975 |
public static RubyModule unmarshalFrom(UnmarshalStream input) throws java.io.IOException { String name = input.unmarshalString(); Ruby ruby = input.getRuby(); RubyModule result = ruby.getClasses().getClassFromPath(name); if (result == null) { throw new NameError(ruby, "uniniti... | public static RubyModule unmarshalFrom(UnmarshalStream input) throws java.io.IOException { String name = input.unmarshalString(); Ruby ruby = input.getRuntime(); RubyModule result = ruby.getClasses().getClassFromPath(name); if (result == null) { throw new NameError(ruby, "unin... | 3,230,976 |
public RubyObject setupModule(Ruby ruby, RubyModule module) { // Node node = n; String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // TMP_PROTECT; ruby.getRubyFrame().tmpPush(); ruby.pushClass(); ruby.setRubyClass(module); ruby.setCBase(modul... | public RubyObject setupModule(Ruby ruby, RubyModule module) { // Node node = n; String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // TMP_PROTECT; ruby.getRubyFrame().tmpPush(); ruby.pushClass(); ruby.setRubyClass(module); //CHAD ruby... | 3,230,977 |
public static IRubyObject autoload(final IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAuto... | public static IRubyObject autoload(final IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); final String baseName = symbol.asSymbol(); String nm = baseName; if(recv instanceof RubyModule) { nm = ((RubyModule)recv).getName... | 3,230,978 |
public static IRubyObject autoload(final IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAuto... | public static IRubyObject autoload(final IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAuto... | 3,230,979 |
public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); return ((RubyModule)recv).getConstant(name); } | public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); if(recv instanceof RubyModule) { return ((RubyModule)recv).getConstant(baseName); } return runtime.getObject().getConstant(baseName); } | 3,230,980 |
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | module.definePublicModuleFunction("autoload?", callbackFactory.getSingletonMethod("autoload_p", IRubyObject.class)); module.definePublicModuleFunction("autoload?", callbackFactory.getSingletonMethod("autoload_p", IRubyObject.class)); module.definePublicModuleFunction("autoload?", callbackFactory.getSingletonMethod("aut... | 3,230,981 |
protected void onSetUpInTransaction() throws Exception { if (null==c) { try { c = new DatabaseConnection(ds.getConnection()); DatabaseOperation.CLEAN_INSERT.execute(c,getData()); } catch (Exception e){ c = null; ... | protected void onSetUpInTransaction() throws Exception { if (null==c) { try { c = new DatabaseConnection(ds.getConnection()); DatabaseOperation.CLEAN_INSERT.execute(c,getData()); } catch (Exception e){ c = null; ... | 3,230,982 |
protected void onSetUpInTransaction() throws Exception { if (null==c) { try { c = new DatabaseConnection(ds.getConnection()); DatabaseOperation.CLEAN_INSERT.execute(c,getData()); } catch (Exception e){ c = null; ... | protectedvoidonSetUpInTransaction()throwsException{if(null==c){try{c=newDatabaseConnection(ds.getConnection());DatabaseOperation.CLEAN_INSERT.execute(c,getData());}catch(Exceptione){c=null;throwe;}}} | 3,230,983 |
public String[] getToolbarActions(){ return ACTION_ARRAY; } | public String[] getToolbarActions(){ return ACTION_ARRAY; } | 3,230,984 |
public void visitMethodInsn(int opcode, String owner, String name, String desc) { super.visitMethodInsn(opcode, owner, name, desc); if ((ignoreRegex != null) && (pm.matches(owner, ignoreRegex))) classData.removeLine(currentLine); } | public void visitMethodInsn(int opcode, String owner, String name, String desc) { super.visitMethodInsn(opcode, owner, name, desc); if ((ignoreRegex != null) && (pm.matches(owner, ignoreRegex))) classData.removeLine(currentLine); } | 3,230,985 |
public void addNoteTab(DisplayedNote displayedNote) { new NoteTab(tabFolder, l, displayedNote); } | public void addNoteTab(DisplayedNote displayedNote) { new NoteTab(tabFolder, l, displayedNote); } | 3,230,986 |
public NoteTab(final CTabFolder parent, Listener l, DisplayedNote displayedNote) { this.displayedNote = displayedNote; tabItem = new CTabItem(parent, SWT.NONE); tabItem.setText(displayedNote.getName()); tabItem.setData(this); text = new Text(parent, SWT.NONE); text.setText(displayedNote.getNote().getText()); ta... | public NoteTab(final CTabFolder parent, Listener l, DisplayedNote displayedNote) { this.displayedNote = displayedNote; tabItem = new CTabItem(parent, SWT.NONE); tabItem.setText(displayedNote.getName()); tabItem.setData(this); text = new Text(parent, SWT.NONE); text.setText(displayedNote.getNote().getText()); ta... | 3,230,987 |
public NoteTab(final CTabFolder parent, Listener l, DisplayedNote displayedNote) { this.displayedNote = displayedNote; tabItem = new CTabItem(parent, SWT.NONE); tabItem.setText(displayedNote.getName()); tabItem.setData(this); text = new Text(parent, SWT.NONE); text.setText(displayedNote.getNote().getText()); ta... | public NoteTab(final CTabFolder parent, Listener l, DisplayedNote displayedNote) { this.displayedNote = displayedNote; tabItem = new CTabItem(parent, SWT.NONE); tabItem.setText(displayedNote.getName()); tabItem.setData(this); text = new Text(parent, SWT.NONE); text.setText(displayedNote.getNote().getText()); ta... | 3,230,988 |
public PojosCGCPathsQueryDefinition(QueryParameter... parameters) { super(parameters); } | public PojosCGCPathsQueryDefinition(QueryParameter... parameters) { super(defs, parameters); } | 3,230,989 |
public void processAction(ActionEvent event) { UIComponent link = event.getComponent(); String id = WFUtil.getParameter(link, "id"); WFTabBar tb = (WFTabBar) link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT); ArticleBlock ab = (ArticleBlock) tb.findCompo... | public void processAction(ActionEvent event) { UIComponent link = event.getComponent(); String id = WFUtil.getParameter(link, "id"); WFTabBar tb = (WFTabBar) link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT); ArticleBlock ab = (ArticleBlock) tb.findCompo... | 3,230,990 |
public void setEditMode() { WFTabBar tb = (WFTabBar) findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT); ArticleBlock ab = (ArticleBlock) tb.findComponent(ArticleBlock.ARTICLE_BLOCK_ID); ab.setEditMode(); } | public void setEditMode() { WFTabBar tb = (WFTabBar) findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT); ArticleBlock ab = (ArticleBlock) tb.findComponent(ArticleBlock.ARTICLE_BLOCK_ID); ab.setEditMode(); } | 3,230,991 |
private void callTraceFunction(String event, String file, int line, IRubyObject self, String name, IRubyObject type) { ruby.getRuntime().callTraceFunction(event, file, line, self.toRubyObject(), name, type); } | private void callTraceFunction(String event, String file, int line, IRubyObject self, String name, IRubyObject type) { ruby.getRuntime().callTraceFunction(event, file, line, self, name, type); } | 3,230,992 |
public void visitCallNode(CallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(ruby); IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); result = receiv... | public void visitCallNode(CallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(ruby); IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); result = receiv... | 3,230,993 |
public void visitCaseNode(CaseNode iVisited) { if (iVisited.getCaseNode() != null) { IRubyObject expression = eval(iVisited.getCaseNode()); Iterator iter = iVisited.getWhenNodes().iterator(); for (int i = 0, size = iVisited.getWhenNodes().size(); i < size; i++) { ... | public void visitCaseNode(CaseNode iVisited) { if (iVisited.getCaseNode() != null) { IRubyObject expression = eval(iVisited.getCaseNode()); Iterator iter = iVisited.getWhenNodes().iterator(); for (int i = 0, size = iVisited.getWhenNodes().size(); i < size; i++) { ... | 3,230,994 |
public void visitClassVarAsgnNode(ClassVarAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.getCBase().setClassVar(iVisited.getName(), result.toRubyObject()); } | public void visitClassVarAsgnNode(ClassVarAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.getCBase().setClassVar(iVisited.getName(), result); } | 3,230,995 |
public void visitClassVarDeclNode(ClassVarDeclNode iVisited) { if (ruby.getCBase() == null) { throw new TypeError(ruby, "no class/module to define class variable"); } eval(iVisited.getValueNode()); ruby.getCBase().declareClassVar(iVisited.getName(), result.toRubyObject()); ... | public void visitClassVarDeclNode(ClassVarDeclNode iVisited) { if (ruby.getCBase() == null) { throw new TypeError(ruby, "no class/module to define class variable"); } eval(iVisited.getValueNode()); ruby.getCBase().declareClassVar(iVisited.getName(), result); } | 3,230,996 |
public void visitClassVarNode(ClassVarNode iVisited) { if (ruby.getCBase() == null) { result = self.toRubyObject().getInternalClass().getClassVar(iVisited.getName()); } else if (!ruby.getCBase().isSingleton()) { result = ruby.getCBase().getClassVar(iVisited.getName()); } e... | public void visitClassVarNode(ClassVarNode iVisited) { if (ruby.getCBase() == null) { result = self.getInternalClass().getClassVar(iVisited.getName()); } else if (!ruby.getCBase().isSingleton()) { result = ruby.getCBase().getClassVar(iVisited.getName()); } else { ... | 3,230,997 |
public void visitConstDeclNode(ConstDeclNode iVisited) { if (ruby.getRubyClass() == null) { throw new TypeError(ruby, "no class/module to define constant"); } ruby.getRubyClass().setConstant(iVisited.getName(), eval(iVisited.getValueNode()).toRubyObject()); } | public void visitConstDeclNode(ConstDeclNode iVisited) { if (ruby.getRubyClass() == null) { throw new TypeError(ruby, "no class/module to define constant"); } ruby.getRubyClass().setConstant(iVisited.getName(), eval(iVisited.getValueNode())); } | 3,230,998 |
public void visitConstNode(ConstNode iVisited) { result = ruby.getCurrentFrame().getNamespace().getConstant(self.toRubyObject(), iVisited.getName()); } | public void visitConstNode(ConstNode iVisited) { result = ruby.getCurrentFrame().getNamespace().getConstant(self, iVisited.getName()); } | 3,230,999 |
public void visitDAsgnCurrNode(DAsgnCurrNode iVisited) { eval(iVisited.getValueNode()); ruby.setDynamicVariable(iVisited.getName(), result.toRubyObject()); } | public void visitDAsgnCurrNode(DAsgnCurrNode iVisited) { eval(iVisited.getValueNode()); ruby.setDynamicVariable(iVisited.getName(), result); } | 3,231,000 |
public void visitDAsgnNode(DAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.setDynamicVariable(iVisited.getName(), result.toRubyObject()); } | public void visitDAsgnNode(DAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.setDynamicVariable(iVisited.getName(), result); } | 3,231,001 |
public void visitDefinedNode(DefinedNode iVisited) { String def = new DefinedVisitor(ruby, self.toRubyObject()).getDefinition(iVisited.getExpressionNode()); if (def != null) { result = builtins.toString(def); } } | public void visitDefinedNode(DefinedNode iVisited) { String def = new DefinedVisitor(ruby, self).getDefinition(iVisited.getExpressionNode()); if (def != null) { result = builtins.toString(def); } } | 3,231,002 |
public void visitDotNode(DotNode iVisited) { result = RubyRange.newRange(ruby, eval(iVisited.getBeginNode()).toRubyObject(), eval(iVisited.getEndNode()).toRubyObject(), iVisited.isExclusive()); } | public void visitDotNode(DotNode iVisited) { result = RubyRange.newRange(ruby, eval(iVisited.getBeginNode()), eval(iVisited.getEndNode()), iVisited.isExclusive()); } | 3,231,003 |
public void visitExpandArrayNode(ExpandArrayNode iVisited) { eval(iVisited.getExpandNode()); if (!(result instanceof RubyArray)) { if (result.isNil()) { result = RubyArray.newArray(ruby, 0); } else { result = RubyArray.newArray(ruby, result.toRubyObj... | public void visitExpandArrayNode(ExpandArrayNode iVisited) { eval(iVisited.getExpandNode()); if (!(result instanceof RubyArray)) { if (result.isNil()) { result = RubyArray.newArray(ruby, 0); } else { result = RubyArray.newArray(ruby, result); ... | 3,231,004 |
public void visitFCallNode(FCallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(ruby); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); result = self.getInternalClass().call(self.toRubyObject(), iVisited.getName()... | public void visitFCallNode(FCallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(ruby); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); result = self.getInternalClass().call(self, iVisited.getName(), args, 1); ... | 3,231,005 |
public void visitFlipNode(FlipNode iVisited) { if (iVisited.isExclusive()) { if (!ruby.getScope().getValue(iVisited.getCount()).isTrue()) { //Benoit: I don't understand why the result is inversed result = eval(iVisited.getBeginNode()).isTrue() ? ruby.getFalse() : ruby... | public void visitFlipNode(FlipNode iVisited) { if (iVisited.isExclusive()) { if (!ruby.getScope().getValue(iVisited.getCount()).isTrue()) { //Benoit: I don't understand why the result is inversed result = eval(iVisited.getBeginNode()).isTrue() ? ruby.getFalse() : ruby... | 3,231,006 |
public void visitForNode(ForNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.get... | public void visitForNode(ForNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.getSourceFile(); ... | 3,231,007 |
public void visitForNode(ForNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.get... | public void visitForNode(ForNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { String file = ruby.get... | 3,231,008 |
public void visitGlobalAsgnNode(GlobalAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.setGlobalVar(iVisited.getName(), result.toRubyObject()); } | public void visitGlobalAsgnNode(GlobalAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.setGlobalVar(iVisited.getName(), result); } | 3,231,009 |
public void visitHashNode(HashNode iVisited) { RubyHash hash = RubyHash.newHash(ruby); if (iVisited.getListNode() != null) { Iterator iterator = iVisited.getListNode().iterator(); while (iterator.hasNext()) { IRubyObject key = eval((INode) iterator.next()); ... | public void visitHashNode(HashNode iVisited) { RubyHash hash = RubyHash.newHash(ruby); if (iVisited.getListNode() != null) { Iterator iterator = iVisited.getListNode().iterator(); while (iterator.hasNext()) { IRubyObject key = eval((INode) iterator.next()); ... | 3,231,010 |
public void visitInstAsgnNode(InstAsgnNode iVisited) { eval(iVisited.getValueNode()); self.setInstanceVariable(iVisited.getName(), result.toRubyObject()); } | public void visitInstAsgnNode(InstAsgnNode iVisited) { eval(iVisited.getValueNode()); self.setInstanceVariable(iVisited.getName(), result); } | 3,231,011 |
public void visitIterNode(IterNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self.toRubyObject()); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisit... | public void visitIterNode(IterNode iVisited) { ruby.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); ruby.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisited.getIterNode(... | 3,231,012 |
public void visitLocalAsgnNode(LocalAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.getScope().setValue(iVisited.getCount(), result.toRubyObject()); } | public void visitLocalAsgnNode(LocalAsgnNode iVisited) { eval(iVisited.getValueNode()); ruby.getScope().setValue(iVisited.getCount(), result); } | 3,231,013 |
public void visitMatch2Node(Match2Node iVisited) { result = ((RubyRegexp) eval(iVisited.getReceiverNode())).match(eval(iVisited.getValueNode()).toRubyObject()); } | public void visitMatch2Node(Match2Node iVisited) { result = ((RubyRegexp) eval(iVisited.getReceiverNode())).match(eval(iVisited.getValueNode())); } | 3,231,014 |
public void visitMatch3Node(Match3Node iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = eval(iVisited.getValueNode()); if (value instanceof RubyString) { result = ((RubyRegexp) receiver).match(value.toRubyObject()); } else { r... | public void visitMatch3Node(Match3Node iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = eval(iVisited.getValueNode()); if (value instanceof RubyString) { result = ((RubyRegexp) receiver).match(value); } else { result = value.c... | 3,231,015 |
public void visitMatch3Node(Match3Node iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = eval(iVisited.getValueNode()); if (value instanceof RubyString) { result = ((RubyRegexp) receiver).match(value.toRubyObject()); } else { r... | public void visitMatch3Node(Match3Node iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = eval(iVisited.getValueNode()); if (value instanceof RubyString) { result = ((RubyRegexp) receiver).match(value.toRubyObject()); } else { r... | 3,231,016 |
public void visitMultipleAsgnNode(MultipleAsgnNode iVisited) { result = new AssignmentVisitor(ruby, self.toRubyObject()).assign(iVisited, eval(iVisited.getValueNode()).toRubyObject(), false); } | public void visitMultipleAsgnNode(MultipleAsgnNode iVisited) { result = new AssignmentVisitor(ruby, self).assign(iVisited, eval(iVisited.getValueNode()), false); } | 3,231,017 |
public void visitOpAsgnNode(OpAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = receiver.callMethod(iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { result = value; ... | public void visitOpAsgnNode(OpAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = receiver.callMethod(iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { result = value; ... | 3,231,018 |
public void visitOpAsgnNode(OpAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = receiver.callMethod(iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { result = value; ... | public void visitOpAsgnNode(OpAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject value = receiver.callMethod(iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { result = value; ... | 3,231,019 |
public void visitOpElementAsgnNode(OpElementAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); IRubyObject firstValue = receiver.toRubyObject().callMethod("[]", args); if (iVisited.get... | public void visitOpElementAsgnNode(OpElementAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); IRubyObject firstValue = receiver.callMethod("[]", args); if (iVisited.getOperatorName().... | 3,231,020 |
public void visitOpElementAsgnNode(OpElementAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); IRubyObject firstValue = receiver.toRubyObject().callMethod("[]", args); if (iVisited.get... | public void visitOpElementAsgnNode(OpElementAsgnNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); IRubyObject[] args = ArgsUtil.setupArgs(ruby, this, iVisited.getArgsNode()); IRubyObject firstValue = receiver.toRubyObject().callMethod("[]", args); if (iVisited.get... | 3,231,021 |
public void visitRestArgsNode(RestArgsNode iVisited) { result = builtins.toArray(eval(iVisited.getArgumentNode()).toRubyObject()); } | public void visitRestArgsNode(RestArgsNode iVisited) { result = builtins.toArray(eval(iVisited.getArgumentNode())); } | 3,231,022 |
public void visitReturnNode(ReturnNode iVisited) { throw new ReturnJump(eval(iVisited.getValueNode()).toRubyObject()); } | public void visitReturnNode(ReturnNode iVisited) { throw new ReturnJump(eval(iVisited.getValueNode())); } | 3,231,023 |
public void visitVCallNode(VCallNode iVisited) { result = self.getInternalClass().call(self.toRubyObject(), iVisited.getMethodName(), null, 2); } | public void visitVCallNode(VCallNode iVisited) { result = self.getInternalClass().call(self, iVisited.getMethodName(), null, 2); } | 3,231,024 |
public void visitYieldNode(YieldNode iVisited) { eval(iVisited.getArgsNode()); if (iVisited.getArgsNode() instanceof ExpandArrayNode && ((RubyArray) result).getLength() == 1) { result = ((RubyArray) result).entry(0); } result = ruby.yield(result.toRubyObject(), null, null, fal... | public void visitYieldNode(YieldNode iVisited) { eval(iVisited.getArgsNode()); if (iVisited.getArgsNode() instanceof ExpandArrayNode && ((RubyArray) result).getLength() == 1) { result = ((RubyArray) result).entry(0); } result = ruby.yield(result, null, null, false); } | 3,231,025 |
public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroup group = new ButtonGroup(); IconFactory icons = dataManager.getIconFactory(); Icon zoomIc... | public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroup group = new ButtonGroup(); IconFactory icons = dataManager.getIconFactory(); Icon zoomIc... | 3,231,026 |
public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroup group = new ButtonGroup(); IconFactory icons = dataManager.getIconFactory(); Icon zoomIc... | public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroup group = new ButtonGroup(); IconFactory icons = dataManager.getIconFactory(); Icon zoomIc... | 3,231,027 |
public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroup group = new ButtonGroup(); IconFactory icons = dataManager.getIconFactory(); Icon zoomIc... | public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroup group = new ButtonGroup(); IconFactory icons = dataManager.getIconFactory(); Icon zoomIc... | 3,231,028 |
public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroup group = new ButtonGroup(); IconFactory icons = dataManager.getIconFactory(); Icon zoomIc... | publicvoidbuildGUI(){ Containercontent=getContentPane(); content.setLayout(newBorderLayout()); JToolBartb=newJToolBar(); tb.setFloatable(false); tb.setBackground(Constants.CANVAS_BACKGROUND_COLOR); ButtonGroupgroup=newButtonGroup(); IconFactoryicons=dataManager.getIconFactory(); IconzoomIcon=icons.getIcon("z... | 3,231,029 |
public static final int random(int start, int end) { return start + (int) (end *java.lang.Math.random()/(Integer.MAX_VALUE+1.0)); } | public static final int random(int start, int end) { return start + (int)((end - start + 1) * java.lang.Math.random()); } | 3,231,030 |
protected void checkManagedState( IObject obj ) { Details currentDetails = CurrentDetails.createDetails(); Experimenter user = currentDetails.getOwner(); ExperimenterGroup group = currentDetails.getGroup(); if ( obj.getId() == null) throw new ValidationExcep... | protected void checkManagedState( IObject obj ) { Details currentDetails = CurrentDetails.createDetails(); Experimenter user = currentDetails.getOwner(); ExperimenterGroup group = currentDetails.getGroup(); if ( obj.getId() == null) throw new ValidationExcep... | 3,231,031 |
protected void checkManagedState( IObject obj ) { Details currentDetails = CurrentDetails.createDetails(); Experimenter user = currentDetails.getOwner(); ExperimenterGroup group = currentDetails.getGroup(); if ( obj.getId() == null) throw new ValidationExcep... | protected void checkManagedState( IObject obj ) { Details currentDetails = CurrentDetails.createDetails(); Experimenter user = currentDetails.getOwner(); ExperimenterGroup group = currentDetails.getGroup(); if ( obj.getId() == null) throw new ValidationExcep... | 3,231,032 |
protected void checkManagedState( IObject obj ) { Details currentDetails = CurrentDetails.createDetails(); Experimenter user = currentDetails.getOwner(); ExperimenterGroup group = currentDetails.getGroup(); if ( obj.getId() == null) throw new ValidationExcep... | protected void checkManagedState( IObject obj ) { Details currentDetails = CurrentDetails.createDetails(); Experimenter user = currentDetails.getOwner(); ExperimenterGroup group = currentDetails.getGroup(); if ( obj.getId() == null) throw new ValidationExcep... | 3,231,033 |
public void copyAcrossT(PlaneArea pa, int from, int to, int z) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyAcrossT(pa, index, from, to, z); int t = getCurrentT(); if (z == getCurrentZ() && (t >= from || t <= to)) { PlaneArea p = abstraction.g... | public void copyAcrossT(PlaneArea pa, int from, int to, int z) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyAcrossT(pa, index, from, to, z); int t = getCurrentT(); if (z == getCurrentZ() && (t >= from || t <= to)) { PlaneArea p = abstraction.g... | 3,231,036 |
public void copyAcrossZ(PlaneArea pa, int from, int to, int t) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyAcrossZ(pa, index, from, to, t); //Need to refresh the view. int z = getCurrentZ(); if (t == getCurrentT() && (z >= from || z <= to)) { ... | public void copyAcrossZ(PlaneArea pa, int from, int to, int t) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyAcrossZ(pa, index, from, to, t); //Need to refresh the view. int z = getCurrentZ(); if (t == getCurrentT() && (z >= from || z <= to)) { ... | 3,231,037 |
public void copyAcrossZAndT(PlaneArea pa, int fromZ, int toZ, int fromT, int toT) { int index = presentation.getToolBar().getSelectedIndex(); int t = getCurrentT(), z = getCurrentZ(); abstraction.copyAcrossZAndT(pa, index, fromZ, toZ, fromT, toT); if ((... | public void copyAcrossZAndT(PlaneArea pa, int fromZ, int toZ, int fromT, int toT) { int index = presentation.getToolBar().getSelectedIndex(); int t = getCurrentT(), z = getCurrentZ(); abstraction.copyAcrossZAndT(pa, index, fromZ, toZ, fromT, toT); if ((... | 3,231,038 |
public void copyPlaneArea(PlaneArea pa, int newZ, int newT) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyPlaneArea(pa, index, newZ, newT); if (newT == getCurrentT() && newZ == getCurrentZ()) { PlaneArea p = abstraction.getPlaneArea(newZ, newT, index)... | public void copyPlaneArea(PlaneArea pa, int newZ, int newT) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyPlaneArea(pa, index, newZ, newT); if (newT == getCurrentT() && newZ == getCurrentZ()) { PlaneArea p = abstraction.getPlaneArea(newZ, newT, index)... | 3,231,039 |
public void copyStack(int from, int to) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyStack(index, from, to); int t = getCurrentT(); if (t == from || t == to) { PlaneArea p = abstraction.getPlaneArea(getCurrentZ(), t, index); p.scale... | public void copyStack(int from, int to) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyStack(index, from, to); int t = getCurrentT(); if (t == from || t == to) { PlaneArea p = abstraction.getPlaneArea(getCurrentZ(), t, index); p.scale... | 3,231,040 |
public void copyStackAcrossT(int from, int to) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyStackAcrossT(index, from, to); int t = getCurrentT(); if (t >= from || t <= to) { PlaneArea p = abstraction.getPlaneArea(getCurrentZ(), t, index); ... | public void copyStackAcrossT(int from, int to) { int index = presentation.getToolBar().getSelectedIndex(); abstraction.copyStackAcrossT(index, from, to); int t = getCurrentT(); if (t >= from || t <= to) { PlaneArea p = abstraction.getPlaneArea(getCurrentZ(), t, index); ... | 3,231,041 |
public ROIResults(ROIAgtCtrl control, int sizeT, int sizeZ) { super(control.getReferenceFrame(), "ROI Results", true); paneMap = new HashMap(); manager = new ROIResultsMng(this, control); IconManager im = IconManager.getInstance(control.getRegistry()); JPanel p = buildTabbedPan... | public ROIResults(ROIAgtCtrl control, int sizeT, int sizeZ) { super(control.getReferenceFrame(), "ROI Results", true); paneMap = new HashMap(); manager = new ROIResultsMng(this, control); IconManager im = IconManager.getInstance(control.getRegistry()); JPanel p = buildTabbedPan... | 3,231,042 |
public void push(int newIter) { if (newIter == iter) { count ++; } else { prev = new RubyIter(iter, prev); iter = newIter; } } | public void push(int newIter) { if (newIter == iter) { count ++; } else { prev = new RubyIter(iter, prev); iter = newIter; } } | 3,231,043 |
public void push(Node v, Node b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b; self = newSelf; frame = ruby.getRubyFrame(); klass = ruby.... | public void push(Node v, Node b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b; self = newSelf; frame = ruby.getRubyFrame(); klass = ruby.... | 3,231,044 |
public void pop() { if (count > 0) { count --; } else { iter = prev.iter; prev = prev.prev; } } | public void pop() { if (count > 0) { count --; } else { iter = prev.iter; prev = prev.prev; } } | 3,231,045 |
public static IObject createIObject(DataObject child, DataObject parent) { if (child instanceof ProjectData) { ProjectData data = (ProjectData) child; Project model = new Project(); model.setName(data.getName()); model.setDescription(data.getDescription()); ... | publicstaticIObjectcreateIObject(DataObjectchild,DataObjectparent){if(childinstanceofProjectData){ProjectDatadata=(ProjectData)child;Projectmodel=newProject();model.setName(data.getName());model.setDescription(data.getDescription());returnmodel;}elseif(childinstanceofCategoryGroupData){CategoryGroupDatadata=(CategoryGr... | 3,231,046 |
public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | 3,231,047 |
public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | 3,231,048 |
public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | 3,231,049 |
public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | public static IObject removeIObject(IObject child, IObject parent) { if ((child instanceof Dataset) && (parent instanceof Project)) { Dataset mChild = (Dataset) child; Project mParent = (Project) parent; mChild.unlinkProject(mParent); return mChild; } els... | 3,231,050 |
public void removeAll(boolean dispose) { int k = windows.size(); if (k == 0) return; JFrame[] wIterator = new JFrame[k]; windows.keySet().toArray(wIterator); //NOTE: Using Iterator would cause a ConcurrentModificationException. for (k = 0; k < wIterator.length; ++k) remove(wIterator[k], dispose); } | public void removeAll(boolean dispose) { int k = windows.size(); if (k == 0) return; JFrame[] wIterator = new JFrame[k]; windows.keySet().toArray(wIterator); //NOTE: Using Iterator would cause a ConcurrentModificationException. for (k = 0; k < wIterator.length; ++k) remove(wIterator[k], dispose); } | 3,231,051 |
public Object init(Context context) throws PropertyException { try { WebContext wc = (WebContext) context; CGI_Impersonator cgi = new CGI_Impersonator(wc.getRequest()); return cgi; } catch (ClassCastException ce) { throw new PropertyException( "CGITool ... | public Object init(Context context) throws PropertyException { try { WebContext wc = (WebContext) context; CGI_Impersonator cgi = new CGI_Impersonator(wc); return cgi; } catch (ClassCastException ce) { throw new PropertyException( "CGITool only works wi... | 3,231,052 |
CGI_Impersonator(final HttpServletRequest r) { requst_ = r; } | CGI_Impersonator(final HttpServletRequest r) { requst_ = r; } | 3,231,053 |
public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplem... | public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImpl... | 3,231,054 |
public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplem... | public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplem... | 3,231,055 |
public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplem... | public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplem... | 3,231,056 |
public ArrayList getMatchedFiles() { ArrayList fileNames = new ArrayList(); int size = files.size(); int offset = cwd.endsWith("/") ? 0 : 1; for (int i = 0; i < size; i++) { String path = ((NormalizedFile) files.get(i)).getPath(); String name; if (patternIsRelative && path.startsWith(c... | public ArrayList getMatchedFiles() { ArrayList fileNames = new ArrayList(); int size = files.size(); int offset = cwd.endsWith("/") ? 0 : 1; for (int i = 0; i < size; i++) { String path = ((NormalizedFile) files.get(i)).getPath(); String name; if (patternIsRelative && path.startsWith(c... | 3,231,058 |
private void init() { gradPanel = new HeatMapGradientUI(); statusPanel = new HeatMapStatusUI(); modeBar = new HeatMapModeBar(); scaleBar = new HeatMapScaleBar(); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(Int... | private void init() { gradPanel = new HeatMapGradientUI(); statusPanel = new HeatMapStatusUI(); modeBar = new HeatMapModeBar(); scaleBar = new HeatMapScaleBar(); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(Int... | 3,231,059 |
private void init() { gradPanel = new HeatMapGradientUI(); statusPanel = new HeatMapStatusUI(); modeBar = new HeatMapModeBar(); scaleBar = new HeatMapScaleBar(); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(Int... | private void init() { gradPanel = new HeatMapGradientUI(); statusPanel = new HeatMapStatusUI(); modeBar = new HeatMapModeBar(); scaleBar = new HeatMapScaleBar(); addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosing(Int... | 3,231,060 |
public void internalFrameActivated(InternalFrameEvent arg0) { dispatcher.fireModeReactivate(); } | public void internalFrameActivated(InternalFrameEvent arg0) { if(dispatcher != null) { dispatcher.fireModeReactivate(); } } | 3,231,061 |
public void internalFrameClosing(InternalFrameEvent arg0) { dispatcher.fireModeCancel(); } | public void internalFrameClosing(InternalFrameEvent arg0) { if(dispatcher != null) { dispatcher.fireModeCancel(); } } | 3,231,062 |
public List childNodes() { return Collections.EMPTY_LIST; } | public List childNodes() { return EMPTY_LIST; } | 3,231,067 |
protected void recalculatePanNodes() { for(Iterator iter = panNodeList.iterator(); iter.hasNext();) { camera.removeChild((PanCameraNode)iter.next()); } panNodeList.clear(); double netAmount = camera.localToView(new Point2D.Double(panSpeed,0)).getX(); ... | protected void recalculatePanNodes() { for(Iterator iter = panNodeList.iterator(); iter.hasNext();) { camera.removeChild((PanCameraNode)iter.next()); } panNodeList.clear(); double netAmount = camera.localToView(new Point2D.Double(panSpeed,0)).getX(); ... | 3,231,068 |
private UIComponent getDetailPanel() { WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(1); //Add the detailed info p = WFPanelUtil.getPlainFormPanel(1); p.getChildren().add(WFUtil.getHeaderTextVB(ref + "headline")); p.getChildren().add(WFU... | private UIComponent getDetailPanel() { WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(1); //Add the detailed info p = WFPanelUtil.getPlainFormPanel(1); p.getChildren().add(WFUtil.getHeaderTextVB(ref + "headline")); p.getChildren().add(WFU... | 3,231,069 |
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT, null, 'd'); longOpts[2] = ne... | public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT, null, 'd'); longOpts[2] = ne... | 3,231,070 |
private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | 3,231,071 |
private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | 3,231,072 |
private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | 3,231,073 |
private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | 3,231,074 |
private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | private void afterUpdate( Object argument, UpdateFilter filter) { if ( logger.isDebugEnabled() ) logger.debug( " Post-save cleanup. " ); // Save all that and go back to AUTO flush. getHibernateTemplate().flush(); // TODO performance? currentSession().setFlus... | 3,231,075 |
private void beforeUpdate( Object argument, UpdateFilter filter ) { if ( argument == null ) throw new IllegalArgumentException( "Argument to save cannot be null."); if ( logger.isDebugEnabled() ) logger.debug( " Saving event before merge. " ); ... | private void beforeUpdate( Object argument, UpdateFilter filter ) { if ( argument == null ) throw new IllegalArgumentException( "Argument to save cannot be null."); if ( logger.isDebugEnabled() ) logger.debug( " Saving event before merge. " ); ... | 3,231,077 |
private void beforeUpdate( Object argument, UpdateFilter filter ) { if ( argument == null ) throw new IllegalArgumentException( "Argument to save cannot be null."); if ( logger.isDebugEnabled() ) logger.debug( " Saving event before merge. " ); ... | private void beforeUpdate( Object argument, UpdateFilter filter ) { if ( argument == null ) throw new IllegalArgumentException( "Argument to save cannot be null."); if ( logger.isDebugEnabled() ) logger.debug( " Saving event before merge. " ); ... | 3,231,078 |
public void deleteObject( IObject row ) { UpdateFilter filter = new UpdateFilter( getHibernateTemplate() ); beforeUpdate( row, filter ); internalDelete( row, filter ); afterUpdate( row, filter ); } | public void deleteObject( IObject row ) { UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); beforeUpdate( row, filter ); internalDelete( row, filter ); afterUpdate( row, filter ); } | 3,231,080 |
public IObject[] saveAndReturnArray(IObject[] graph) { UpdateFilter filter = new UpdateFilter( getHibernateTemplate() ); beforeUpdate( graph, filter ); for (int i = 0; i < graph.length; i++) { graph[i] = internalSave( graph[i], filter ); } afterUpd... | public IObject[] saveAndReturnArray(IObject[] graph) { UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); beforeUpdate( graph, filter ); for (int i = 0; i < graph.length; i++) { graph[i] = internalSave( graph[i], filter ); } afte... | 3,231,081 |
public IObject saveAndReturnObject( IObject graph ) { UpdateFilter filter = new UpdateFilter( getHibernateTemplate() ); beforeUpdate( graph, filter ); graph = internalSave( graph, filter ); afterUpdate( graph, filter ); return graph; } | public IObject saveAndReturnObject( IObject graph ) { UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); beforeUpdate( graph, filter ); graph = internalSave( graph, filter ); afterUpdate( graph, filter ); return graph; } | 3,231,082 |
public void saveArray(IObject[] graph) { UpdateFilter filter = new UpdateFilter( getHibernateTemplate() ); beforeUpdate( graph, filter ); for (int i = 0; i < graph.length; i++) { graph[i] = internalSave( graph[i], filter ); } afterUpdate( graph, filter ); } | public void saveArray(IObject[] graph) { UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); beforeUpdate( graph, filter ); for (int i = 0; i < graph.length; i++) { graph[i] = internalSave( graph[i], filter ); } afterUpdate( graph, filter ); ... | 3,231,083 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.