bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static RubyRegexp newInstance(IRubyObject recv, IRubyObject[] args) { RubyRegexp re = new RubyRegexp(recv.getRuntime()); re.setRubyClass((RubyClass) recv); re.initialize(args); return re; }
public static RubyRegexp newInstance(IRubyObject recv, IRubyObject[] args) { RubyRegexp re = new RubyRegexp(recv.getRuntime()); re.setInternalClass((RubyClass) recv); re.initialize(args); return re; }
3,229,326
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChain...
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChain...
3,229,327
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChain...
public Collection getChainExecutions() { long start; // if we're done, go for it. if (chainExecutions != null) { return chainExecutions.getExecutions(); } if (gettingExecutions == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingExecutions = true; retrieveChain...
3,229,328
public Collection getChainExecutionsByChainID(int id) { if (chainExecutions != null) return chainExecutions.getChainExecutionsByChainID(id); return null; }
public Collection getChainExecutionsByChainID(int id) { if (chainExecutions != null) return chainExecutions.getChainExecutionsByChainID(id); return null; }
3,229,329
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains =...
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains =...
3,229,330
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains =...
public Collection getChains() { Collection res = null; long start; // if we're done, go for it. if (chainHash != null && chainHash.size() > 0) { res = chainHash.values(); } else { if (gettingChains == false) { if (ChainBuilderAgent.DEBUG) { start = System.currentTimeMillis(); } gettingChains =...
3,229,331
public Collection getModuleCategories() { // if we're done, go for it. if (moduleCategoryHash != null && moduleCategoryHash.size() > 0) return moduleCategoryHash.values(); if (loadingModuleCategories == false) { long start = System.currentTimeMillis(); loadingModuleCategories = true; retrieveModuleCat...
public Collection getModuleCategories() { // if we're done, go for it. if (moduleCategoryHash != null && moduleCategoryHash.size() > 0) return moduleCategoryHash.values(); if (loadingModuleCategories == false) { long start = System.currentTimeMillis(); loadingModuleCategories = true; retrieveModuleCat...
3,229,332
public Collection getModules() { // if we're done, go for it. if (moduleHash != null && moduleHash.size() > 0) return moduleHash.values(); if (loadingModules == false) { long start = System.currentTimeMillis(); loadingModules = true; retrieveModules(); // retrieveCategories(); loadingModules = fals...
public Collection getModules() { // if we're done, go for it. if (moduleHash != null && moduleHash.size() > 0) return moduleHash.values(); if (loadingModules == false) { long start = System.currentTimeMillis(); loadingModules = true; retrieveModules(); // retrieveCategories(); loadingModules = fals...
3,229,333
public boolean hasChainWithName(String name) { Collection chains = getChains(); Iterator iter = chains.iterator(); LayoutChainData chain; while (iter.hasNext()) { chain = (LayoutChainData) iter.next(); if (name.compareTo(chain.getName()) == 0) return true; } return false; }
public boolean hasChainWithName(String name) { Collection chains = getChains(); Iterator iter = chains.iterator(); LayoutChainData chain; while (iter.hasNext()) { chain = (LayoutChainData) iter.next(); if (name.compareTo(chain.getName()) == 0) return true; } return false; }
3,229,334
public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter);...
public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter);...
3,229,336
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename }); }
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename }); }
3,229,337
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), new RubyObject[] { filename }); }
public static RubyObject open(Ruby ruby, RubyObject recv, RubyString filename) { if (filename.toString().startsWith("|")) { // +++ return ruby.getNil(); // --- } return RubyFile.open(ruby, ruby.getClasses().getFileClass(), args); }
3,229,338
public void stuffContext (Context context) throws Exception { context.setEvaluationExceptionHandler ( new CrankyEvaluationExceptionHandler(_wm.getBroker())); context.put ("TestObject", new TestObject()); context.put ("NullTestObject", new NullTestObject()); context.put("enum",new T...
context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); context.put ("OWNM", new ObjectWithNullMethod()); publiccontext.put ("OWNM", new ObjectWithNullMethod()); voidcontext.put ("OWNM", new ObjectWithNullMethod()); stuffContextcontext.put ("OWNM", new ObjectWithNullMethod())...
3,229,339
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,229,340
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,229,341
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
3,229,342
private void generateOverviews() throws IOException { generateOverview(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateOverview(packageData); } }
private void generateOverviews() throws IOException { generateOverview(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateOverview(packageData); } }
3,229,343
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print...
3,229,344
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html...
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html...
3,229,345
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html...
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html...
3,229,346
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html...
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; Collection sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html...
3,229,347
private void generateSourceFileLists() throws IOException { generateSourceFileList(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateSourceFileList(packageData); } }
private void generateSourceFileLists() throws IOException { generateSourceFileList(null); Iterator iter = projectData.getChildren().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); generateSourceFileList(packageData); } }
3,229,348
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Ut...
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Ut...
3,229,349
public int getNumberOfClasses() { return getClasses().size(); }
public int getNumberOfClasses() { return getClasses().size(); }
3,229,350
public PojosFindHierarchiesQueryDefinition(QueryParameter... parameters) { super(parameters); }
public PojosFindHierarchiesQueryDefinition(QueryParameter... parameters) { super( defs, parameters ); }
3,229,351
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
3,229,352
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
3,229,353
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
3,229,354
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
3,229,355
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
3,229,356
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
3,229,357
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
public void run() { if(model == null) return; if(selectedNode == null) return; if(!(selectedNode instanceof SemanticTypeTree.ElementNode) || selectedNode.getFQName() == null) { fireModeCancel(); currentMethod = null; ...
3,229,358
public void nodeSelected(SemanticTypeTree.TreeNode node) { if(model == null || node == null) { return; } LoaderThread thread = new LoaderThread(node); thread.start(); }
public void nodeSelected(SemanticTypeTree.TreeNode node) { if(model == null || node == null) { return; } LoaderThread thread = new LoaderThread(node); thread.start(); }
3,229,361
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, fi...
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, fi...
3,229,362
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, fi...
public static PaintMethod getPaintMethod(final HeatMapMode mode, final String attributeName, final String elementName, final Scale scale, fi...
3,229,363
public LogarithmicScale(double min, double max) { if(min > max || min == max) { throw new IllegalArgumentException("max cannot <= min"); } this.min = min; this.max = max; logMin = Math.log(min); logMax = Math.log(max); }
public LogarithmicScale(double min, double max) { if(min > max) { throw new IllegalArgumentException("max cannot <= min"); } this.min = min; this.max = max; logMin = Math.log(min); logMax = Math.log(max); }
3,229,364
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElemen...
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElemen...
3,229,367
public RubyObject callIndexed(int index, RubyObject[] args) { switch (index) { case M_TO_F: return to_f(); case M_TO_S: return to_s(); case M_OP_LSHIFT: return op_lshift(args[0]); case M_OP_RSHIFT: return op_rshift(args[0]); case ...
public RubyObject callIndexed(int index, RubyObject[] args) { switch (index) { case M_TO_F: return to_f(); case M_TO_S: return to_s(); case M_OP_LSHIFT: return op_lshift(args[0]); case M_OP_RSHIFT: return op_rshift(args[0]); case ...
3,229,369
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod...
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod...
3,229,370
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
3,229,371
public RaiseException newNameError(String message) { return newRaiseException(getClass("NameError"), message); }
public RaiseException newNameError(String message) { return newRaiseException(getClass("NameError"), message); }
3,229,372
public RaiseException newNoMethodError(String message) { return newRaiseException(getClass("NoMethodError"), message); }
public RaiseException newNoMethodError(String message) { return newRaiseException(getClass("NoMethodError"), message); }
3,229,373
public String toString(){ return "CategoryGroup"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
public String toString(){ return "CategoryGroup"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); }
3,229,375
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
3,229,376
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
3,229,377
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
3,229,378
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
3,229,379
public void refreshTree() { switch (model.getState()) { case LOADING_DATA: case LOADING_LEAVES: case DISCARDED: throw new IllegalStateException( "This method cannot be invoked in the LOADING_DATA, "+ " LOADING_LEAVES or DISCARDED ...
public void refreshTree() { switch (model.getState()) { case LOADING_DATA: case LOADING_LEAVES: case DISCARDED: throw new IllegalStateException( "This method cannot be invoked in the LOADING_DATA, "+ " LOADING_LEAVES or DISCARDED ...
3,229,380
public void execute(EvaluationState state, InstructionContext ctx) { CallNode iVisited = (CallNode)ctx; state.getThreadContext().beginCallArgs(); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = state.begin(iVisited.getReceiver...
public void execute(EvaluationState state, InstructionContext ctx) { CallNode iVisited = (CallNode)ctx; state.getThreadContext().beginCallArgs(); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = state.begin(iVisited.getReceiver...
3,229,381
public void execute(EvaluationState state, InstructionContext ctx) { ClassVarAsgnNode iVisited = (ClassVarAsgnNode)ctx; state.getThreadContext().getRubyClass().setClassVar(iVisited.getName(), state.getResult()); }
public void execute(EvaluationState state, InstructionContext ctx) { ClassVarAsgnNode iVisited = (ClassVarAsgnNode)ctx; ((RubyModule) state.getThreadContext().peekCRef().getValue()).setClassVar(iVisited.getName(), state.getResult()); }
3,229,382
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); inAnno = false; }
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, Pattern pattern) { super(viewer, regEx); colors = Colors.getInstance(); inAnno = false; }
3,229,383
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); inAnno = false; }
FindRegExTitleAndAnnotationVisitor(HiViewer viewer, String regEx) { super(viewer, pattern); colors = Colors.getInstance(); inAnno = false; }
3,229,384
FindRegExVisitor(HiViewer viewer, String regEx) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
FindRegExVisitor(HiViewer viewer, Pattern pattern) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
3,229,385
FindRegExVisitor(HiViewer viewer, String regEx) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
FindRegExVisitor(HiViewer viewer, String regEx) { super(viewer); if (regEx == null) throw new IllegalArgumentException("No regular expression."); pattern = RegExFactory.createCaseInsensitivePattern(regEx); foundNodes = new HashSet(); }
3,229,386
public List childNodes() { return Collections.EMPTY_LIST; }
public List childNodes() { return EMPTY_LIST; }
3,229,387
private void initOverlayShapes() { int width = getImage().getWidth(null); int height = getImage().getHeight(null); PaintShapeGenerator generator = PaintShapeGenerator.getInstance(); if(multipleModeOn) { Shape prevShape = generator.getPrevImageShape(); ...
iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth = menuIconImage.getWidth(null); iconHeight = menuIconImage.getHeight(null); menuIconShape = new Rectangle2D.Double(8,36,iconWidth,iconHeight); iconWidth...
3,229,388
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getI...
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getI...
3,229,391
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getI...
public static PiccoloAction getAnnotateImageAction(final Thumbnail t, final Point point) { PiccoloAction action = new PiccoloAction() { public void execute() { BrowserEnvironment env = BrowserEnvironment.getI...
3,229,392
public static JPopupMenu getThumbnailMenu(final Thumbnail t) { final JMenuItem annotateItem = new JMenuItem("Annotate"); final JPopupMenu menu = new JPopupMenu() { public void show(Component arg0, int arg1, int arg2) { super.show(arg0, arg1, arg2); ...
publicstaticJPopupMenugetThumbnailMenu(finalThumbnailt){finalJMenuItemannotateItem=newJMenuItem("Annotate");finalJPopupMenumenu=newJPopupMenu(){publicvoidshow(Componentarg0,intarg1,intarg2){super.show(arg0,arg1,arg2);Pointp=arg0.getLocationOnScreen();finalPointdisplayPoint=newPoint(p.x+arg1,p.y+arg2);System.err.println...
3,229,393
public static JPopupMenu getThumbnailMenu(final Thumbnail t) { final JMenuItem annotateItem = new JMenuItem("Annotate"); final JPopupMenu menu = new JPopupMenu() { public void show(Component arg0, int arg1, int arg2) { super.show(arg0, arg1, arg2); ...
public static JPopupMenu getThumbnailMenu(final Thumbnail t) { final JMenuItem annotateItem = new JMenuItem("Annotate"); final JPopupMenu menu = new JPopupMenu() { public void show(Component arg0, int arg1, int arg2) { super.show(arg0, arg1, arg2); ...
3,229,394
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,229,395
public SessionHandler(DataSource dataSource, SessionFactory factory) { this.dataSource = dataSource; this.delegate = new HibernateInterceptor(); this.factory = factory; this.delegate.setSessionFactory(factory); }
publicSessionHandler(DataSourcedataSource,SessionFactoryfactory){this.dataSource=dataSource;this.delegate=newHibernateInterceptor();this.factory=factory;this.delegate.setSessionFactory(factory);}
3,229,396
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) ...
catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } catch (Throwable e) { e.printStackTrace(); throw e; } privatecatch (Throwable e) { e.printStackTrace(); throw e; } Objectcatch (Throwable e) { e.printStackTra...
3,229,397
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) ...
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) ...
3,229,398
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) ...
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } finally { if (isCloseSession(invocation)) ...
3,229,399
public String render (WikiPage page) throws WikiPageRenderer.RenderException { WikiData[] dataElement = page.getData(); StringBuffer sb = new StringBuffer (2048); for (int x=0; x<dataElement.length; x++) { int type = dataElement[x].getType (); String data = (String...
public String render (WikiPage page) throws WikiPageRenderer.RenderException { WikiData[] dataElement = page.getData(); StringBuffer sb = new StringBuffer (2048); for (int x=0; x<dataElement.length; x++) { int type = dataElement[x].getType (); String data = (String...
3,229,400
public Object filter(String fieldId, Object o) { Object result; if (o == null) { return null; } else if (o instanceof IObject) { result = filter(fieldId, (Filterable) o); } else if (o instanceof Collection) { result = filter(fieldId, (Collection) o); ...
public Object filter(String fieldId, Object o) { Object result; if (o == null) { return null; } else if (o instanceof IObject) { result = filter(fieldId, (Filterable) o); } else if (o instanceof Collection) { result = filter(fieldId, (Collection) o); ...
3,229,401
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInt...
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInt...
3,229,402
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInt...
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInt...
3,229,403
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInt...
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInt...
3,229,404
public static RubyInteger srand(IRubyObject recv, IRubyObject[] args) { long oldRandomSeed = recv.getRuntime().randomSeed; if (args.length > 0) { RubyInteger integerSeed = (RubyInteger) args[0].convertToType("Integer", "to_int", true); recv.getRuntime().randomSeed = integ...
public static RubyInteger srand(IRubyObject recv, IRubyObject[] args) { long oldRandomSeed = recv.getRuntime().randomSeed; if (args.length > 0) { RubyInteger integerSeed = (RubyInteger) args[0].convertToType("Integer", "to_int", true); recv.getRuntime().randomSeed = integ...
3,229,406
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new ServiceFactory( applicationContext ); eventContext = (EventContext) applicationContext.getBean("eventContext"); localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.ge...
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new InternalServiceFactory( applicationContext ); localQuery = (LocalQuery) serviceFactory.getQueryService(); localUpdate = (LocalUpdate) serviceFactory.getUpdateService(); eventContext = (E...
3,229,407
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new ServiceFactory( applicationContext ); eventContext = (EventContext) applicationContext.getBean("eventContext"); localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.ge...
public void create() { applicationContext = OmeroContext.getManagedServerContext(); serviceFactory = new ServiceFactory( applicationContext ); eventContext = (EventContext) applicationContext.getBean("eventContext"); localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.ge...
3,229,408
protected Object wrap( InvocationContext context, String factoryName ) throws Exception { try { login(); AOPAdapter adapter = AOPAdapter.create( (ProxyFactoryBean) applicationContext.getBean(factoryName), context ); return...
protected Object wrap( InvocationContext context, Class<? extends ServiceInterface> factoryClass ) throws Exception { try { login(); AOPAdapter adapter = AOPAdapter.create( (ProxyFactoryBean) applicationContext.getBean(factoryName), ...
3,229,409
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyC...
public RubyClass defineOrGetClassUnder(String name, RubyClass superClazz) { IRubyObject type = getConstantAt(name); if (type == null) { return (RubyClass) setConstant(name, getRuntime().defineClassUnder(name, superClazz, cref)); } if (!(type instanceof RubyC...
3,229,412
public double getDoubleValue() { return (double)value; }
public double getDoubleValue() { return (double) value; }
3,229,414
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int)value]; } return new RubyFixnum(ruby, value); }
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int) value]; } return new RubyFixnum(ruby, value); }
3,229,415
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int)value]; } return new RubyFixnum(ruby, value); }
public static RubyFixnum m_newFixnum(Ruby ruby, long value) { // Cache for Fixnums (Performance) if ((value & ~Ruby.FIXNUM_CACHE_MAX) == 0) { return ruby.fixnumCache[(int)value]; } return new RubyFixnum(ruby, value); }
3,229,416
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue()); } }
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue()); } }
3,229,417
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue()); } }
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean( getRuby(), getLongValue() == ((RubyNumeric) other).getLongValue());...
3,229,418
public RubyBoolean op_ge(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_ge(other); } else { return getLongValue() >= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_ge(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_ge(other); } else { return getLongValue() >= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,419
public RubyBoolean op_gt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_gt(other); } else { return getLongValue() > other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_gt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_gt(other); } else { return getLongValue() > other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,420
public RubyBoolean op_le(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_le(other); } else { return getLongValue() <= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_le(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_le(other); } else { return getLongValue() <= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,421
public RubyBoolean op_lt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_lt(other); } else { return getLongValue() < other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
public RubyBoolean op_lt(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_lt(other); } else { return getLongValue() < other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } }
3,229,422
public RubyNumeric op_minus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_minus(other); } else if (other instanceof RubyBignum || needBignumAdd(-other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(),...
public RubyNumeric op_minus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_minus(other); } else if ( other instanceof RubyBignum || needBignumAdd(-other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(),...
3,229,423
public RubyNumeric op_mul(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_mul(other); } else if (other instanceof RubyBignum || needBignumMul(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), getL...
public RubyNumeric op_mul(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_mul(other); } else if ( other instanceof RubyBignum || needBignumMul(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), getL...
3,229,424
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_plus(other); } else if (other instanceof RubyBignum || needBignumAdd(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), val...
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_plus(other); } else if ( other instanceof RubyBignum || needBignumAdd(other.getLongValue())) { return RubyBignum.m_newBignum(getRuby(), va...
3,229,425
public List childNodes() { return Collections.EMPTY_LIST; }
public List childNodes() { return EMPTY_LIST; }
3,229,426
public ImagePixel(Integer attributeId, String pixelType, Integer sizeY, Integer sizeZ, String fileSha1, String path, Integer sizeT, Long imageServerId, Integer sizeX, Integer sizeC, Integer bitsPerPixel, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Repository repository, org.openmicros...
public ImagePixel(Integer attributeId, String pixelType, Integer sizeY, Integer sizeZ, String fileSha1, String path, Integer sizeT, Long imageServerId, Integer sizeX, Integer sizeC, Integer bitsPerPixel, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Repository repository, org.openmicros...
3,229,427
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
public Image getImage() { return this.image; }
3,229,428
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,229,429
public org.openmicroscopy.omero.model.Repository getRepository() { return this.repository; }
public Repository getRepository() { return this.repository; }
3,229,430
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
public void setImage(Image image) { this.image = image; }
3,229,431
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,229,432
public void setRepository(org.openmicroscopy.omero.model.Repository repository) { this.repository = repository; }
public void setRepository(Repository repository) { this.repository = repository; }
3,229,433
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { //root name = BROWSE; setEnabled(model.getSelectedBrowser().getBrowserT...
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { //root name = BROWSE; setEnabled(model.getSelectedBrowser().getBrowserT...
3,229,434
protected String renderEndList() { return "</ul>"; }
protected String renderEndList() { return "</ul>\n"; }
3,229,435
protected String renderHorizLine() { return "<hr>"; }
protected String renderHorizLine() { return "<hr>\n"; }
3,229,436
protected String renderLineBreak() { return "<br>"; }
protected String renderLineBreak() { return "<br>\n"; }
3,229,437
protected String renderParagraphBreak() { return "<br><br>"; }
protected String renderParagraphBreak() { return "<br><br>\n"; }
3,229,438