bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void saveCollection(Collection graph) { UpdateFilter filter = new UpdateFilter( getHibernateTemplate() ); beforeUpdate( graph, filter ); for (Object _object : graph) { IObject obj = (IObject) _object; obj = internalSave( obj, filter ); } afte... | public void saveCollection(Collection graph) { UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); beforeUpdate( graph, filter ); for (Object _object : graph) { IObject obj = (IObject) _object; obj = internalSave( obj, filter ); } ... | 3,231,084 |
public void saveObject(IObject graph) { UpdateFilter filter = new UpdateFilter( getHibernateTemplate() ); beforeUpdate( graph, filter ); graph = internalSave( graph, filter ); afterUpdate( graph, filter ); } | public void saveObject(IObject graph) { UpdateFilter filter = new UpdateFilter( securitySystem, localQuery ); beforeUpdate( graph, filter ); graph = internalSave( graph, filter ); afterUpdate( graph, filter ); } | 3,231,085 |
private void showPresentation() { DataManagerUIF presentation = abstraction.getPresentation(); if (presentation != null && presentation.isClosed()) abstraction.showPresentation(); } | private void showPresentation() { DataManagerUIF presentation = abstraction.getPresentation(); if (presentation != null && presentation.isClosed()) abstraction.showPresentation(); } | 3,231,086 |
void updateDataset(pojos.DatasetData dd, List isToRemove, List isToAdd, boolean nameChange) { try { DataManagementService dms = registry.getDataManagementService(); dms.updateDataset(transformPojosDatasetData(dd), isToRemove, isToAdd); //update the presentation and the datas... | void updateDataset(pojos.DatasetData dd, List isToRemove, List isToAdd, boolean nameChange) { try { DataManagementService dms = registry.getDataManagementService(); dms.updateDataset(transformPojosDatasetData(dd), isToRemove, isToAdd); //update the presentation and the datas... | 3,231,087 |
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } //if (model.getSelectedBrowser().getBrowserType() == //Browser.IMAGES_EXPLORER && if (selectedDisplay.getParentDisplay() ==... | protected void onDisplayChange(TreeImageDisplay selectedDisplay){if (selectedDisplay == null) {setEnabled(false);return;}//if (model.getSelectedBrowser().getBrowserType() == //Browser.IMAGES_EXPLORER && if (selectedDisplay.getParentDisplay() == null) { //rootsetEnabled(true);return;}Object ho = selectedDisplay.getUserO... | 3,231,091 |
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } //if (model.getSelectedBrowser().getBrowserType() == //Browser.IMAGES_EXPLORER && if (selectedDisplay.getParentDisplay() ==... | protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } //if (model.getSelectedBrowser().getBrowserType() == //Browser.IMAGES_EXPLORER && if (selectedDisplay.getParentDisplay() ==... | 3,231,092 |
protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); ByteArrayInputStream bais = new ByteArrayInputStream(body.getBytes()); ByteArrayOut... | protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); ByteArrayInputStream bais = new ByteArrayInputStream(body.getBytes()); ByteArrayOut... | 3,231,093 |
protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); ByteArrayInputStream bais = new ByteArrayInputStream(body.getBytes()); ByteArrayOut... | protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); ByteArrayInputStream bais = new ByteArrayInputStream(body.getBytes()); ByteArrayOut... | 3,231,094 |
public ZoomBarManager(ZoomBar view, ImageInspectorManager control, double magFactor) { zoomLevel = magFactor; percentFormat = NumberFormat.getPercentInstance(); this.view = view; this.control = control; } | public ZoomBarManager(ZoomBar view, ImageInspectorManager control, double magFactor) { zoomLevel = magFactor; percentFormat = NumberFormat.getPercentInstance(); this.view = view; this.control = control; } | 3,231,095 |
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case ZOOM_FIELD_CMD: zoomFieldActionHandler(); break; case ZOOM_IN_CMD: zoomIn(); break; case ZOOM_OUT_CMD: zoomOut(); break; case ZOOM_FIT_CMD: zoomFit(); break; }... | public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case ZOOM_FIELD_CMD: zoomFieldActionHandler(); break; case ZOOM_IN_CMD: zoomIn(); break; case ZOOM_OUT_CMD: zoomOut(); break; case ZOOM_FIT_CMD: zoomFit(); break; }... | 3,231,096 |
void attachListeners() { //textfield zoomField = view.getZoomField(); zoomField.setActionCommand(""+ZOOM_FIELD_CMD); zoomField.addActionListener(this); zoomField.addFocusListener(this); //button JButton zoomIn = view.getZoomIn(), zoomOut = view.getZoomOut(), zoomFit = view.getZoomFit(); zoomIn.addActio... | void attachListeners() { //textfield zoomField = view.getZoomField(); zoomField.setActionCommand(""+ZOOM_FIELD_CMD); zoomField.addActionListener(this); zoomField.addFocusListener(this); //button JButton zoomIn = view.getZoomIn(), zoomOut = view.getZoomOut(), zoomFit = view.getZoomFit(); zoomIn.addActio... | 3,231,097 |
public void focusLost(FocusEvent e) { String val = zoomField.getText(); String cVal = percentFormat.format(zoomLevel); if (val == null || !val.equals(cVal)) zoomField.setText(cVal); } | public void focusLost(FocusEvent e) { String val = zoomField.getText(); String cVal = percentFormat.format(zoomLevel); if (val == null || !val.equals(cVal)) zoomField.setText(cVal); } | 3,231,098 |
public void setText(double level) { zoomField.setText(percentFormat.format(level)); } | public void setText(double level) { zoomField.setText(percentFormat.format(level)); } | 3,231,099 |
private void synchZoom(double value) { zoomLevel = value; control.setZoomLevel(zoomLevel); } | private void synchZoom(double value) { zoomLevel = value; control.setZoomLevel(zoomLevel); } | 3,231,100 |
private void zoomFieldActionHandler() { boolean valid = false; double val = 0; try { val = percentFormat.parse(zoomField.getText()).doubleValue(); if (ImageInspector.MIN_ZOOM_LEVEL <= val && val <= ImageInspector.MAX_ZOOM_LEVEL) { valid = true; } else if (val < ImageInspector.MIN_ZOOM_LEVEL) { val =... | private void zoomFieldActionHandler() { boolean valid = false; double val = 0; try { val = percentFormat.parse(zoomField.getText()).doubleValue(); if (ImageInspector.MIN_ZOOM_LEVEL <= val && val <= ImageInspector.MAX_ZOOM_LEVEL) { valid = true; } else if (val < ImageInspector.MIN_ZOOM_LEVEL) { val =... | 3,231,101 |
private void zoomFit() { zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | private void zoomFit() { zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | 3,231,102 |
private void zoomIn() { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) zoomLevel += ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | private void zoomIn() { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) zoomLevel += ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | 3,231,103 |
private void zoomIn() { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) zoomLevel += ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | private void zoomIn() { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) zoomLevel += ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | 3,231,104 |
private void zoomOut() { if (zoomLevel > ImageInspector.MIN_ZOOM_LEVEL) zoomLevel -= ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | private void zoomOut() { if (zoomLevel > ImageInspector.MIN_ZOOM_LEVEL) zoomLevel -= ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | 3,231,105 |
void setSelectedNode() { DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent(); if (selectedNode == node) return; ImageDisplay newObject = (ImageDisplay) node.getUserObject(); ImageDisplay oldObject = null; if (selectedNode != null) ... | void setSelectedNode() { DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent(); if (selectedNode == node) return; Object uo = node.getUserObject(); if (uo instanceof String) return; ImageDisplay newObject = (ImageDisplay) uo; ImageDisplay o... | 3,231,106 |
void buildTree(Set nodes) { if (nodes.size() == 0) { getTreeModel(); DefaultMutableTreeNode childNode = new DefaultMutableTreeNode("Empty"); DefaultTreeModel tm= (DefaultTreeModel) view.getModel(); tm.insertNodeInto(childNode, root, root.getChild... | void buildTree(Set nodes) { if (nodes.size() == 0) { getTreeModel(); DefaultMutableTreeNode childNode = new DefaultMutableTreeNode("Empty"); DefaultTreeModel tm= (DefaultTreeModel) view.getModel(); tm.insertNodeInto(childNode, root, root.getChild... | 3,231,107 |
protected DataLoader createHierarchyLoader() { return new ImagesLoader(component, imagesID); } | protected DataLoader createHierarchyLoader(boolean refresh) { return new ImagesLoader(component, imagesID); } | 3,231,108 |
protected DataLoader createHierarchyLoader() { return new ImagesLoader(component, imagesID); } | protected DataLoader createHierarchyLoader() { return new ImagesLoader(component, imagesID, refresh); } | 3,231,109 |
public static void main(String args[]) { //@START int i, n = Integer.parseInt(args[0]); int x[] = new int[n]; int y[] = new int[n]; for (i = 0; i < n;) { x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] =... | public static void main(String args[]) { //@START int i, n = Integer.parseInt(args[0]); int x[] = new int[n]; int y[] = new int[n]; for (i = 0; i < n;) { x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] =... | 3,231,111 |
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true... | public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true... | 3,231,112 |
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true... | public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true... | 3,231,113 |
private IRubyObject substr(int beg, int len) { int length = getValue().length(); if (len < 0 || beg > length) { return getRuntime().getNil(); } if (beg < 0) { beg += length; if (beg < 0) { return getRuntime().getNil(); } } int end = Math.min(length, beg + len); return newString(getMutableValue().subs... | private IRubyObject substr(int beg, int len) { int length = getValue().length(); if (len < 0 || beg > length) { return getRuntime().getNil(); } if (beg < 0) { beg += length; if (beg < 0) { return getRuntime().getNil(); } } int end = Math.min(length, beg + len); return newString(getMutableValue().subs... | 3,231,114 |
private void process() { if (limit == 1) { result.add(splitee); return; } int pos = 0; int beg = 0; int hits = 0; int len = splitee.length(); RubyString rubySplitee = runtime.newString(splitee); while ((beg = pattern.search(rubySplitee, pos)) > -1) { hits++; ... | private void process() { if (limit == 1) { result.add(splitee); return; } int pos = 0; int beg = 0; int hits = 0; int len = splitee.length(); RubyString rubySplitee = runtime.newString(splitee); while ((beg = pattern.search(rubySplitee, pos)) > -1) { hits++; ... | 3,231,115 |
public void initialize() throws IllegalServiceStateException, UnsatisfiedConditionsException, Exception { // if we are not restartable, we need to start immediately, otherwise we are not going to register this service if (!serviceFactory.isRestartable()) { try { start(false, ... | public void initialize() throws IllegalServiceStateException, UnsatisfiedConditionsException, Exception { // if we are not restartable, we need to start immediately, otherwise we are not going to register this service if (!serviceFactory.isRestartable()) { try { start(false, ... | 3,231,117 |
public void destroy() throws KernelErrorsError { // we gather all errors that occur during shutdown and throw them as on huge exception List errors = new ArrayList(); List managerFutures; synchronized (serviceManagers) { managerFutures = new ArrayList(); serviceMana... | public void destroy() throws KernelErrorsError { // we gather all errors that occur during shutdown and throw them as on huge exception List errors = new ArrayList(); List managerFutures; synchronized (serviceManagers) { managerFutures = new ArrayList(serviceManagers.values())... | 3,231,119 |
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " ... | public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " ... | 3,231,121 |
public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " ... | public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " ... | 3,231,122 |
public void selfConfigure() { this.ctx = OmeroContext.getInternalServerContext(); this.ctx.applyBeanPropertyValues(this,getName()); } | public void selfConfigure() { this.ctx = OmeroContext.getInternalServerContext(); this.ctx.applyBeanPropertyValues(this,getServiceInterface()); } | 3,231,123 |
public void setQueryFactory(QueryFactory factory){ this.queryFactory = factory; } | public void setQueryFactory(QueryFactory factory) { this.queryFactory = factory; } | 3,231,124 |
public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | 3,231,125 |
public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | 3,231,126 |
public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | 3,231,127 |
public RubyString gethostname() { try { String hostName = InetAddress.getLocalHost().getHostName(); return new RubyString(getRuntime(), hostName); } catch (UnknownHostException e) { // DSC throw SystemError("gethostname"); return new RubyString(getRuntime(), ""); } } | public RubyString gethostname() { try { String hostName = InetAddress.getLocalHost().getHostName(); return new RubyString(getRuntime(), hostName); } catch (UnknownHostException e) { // DSC throw SystemError("gethostname"); return new RubyString(getRuntime(), ""); } } | 3,231,128 |
public RubyString gethostname() { try { String hostName = InetAddress.getLocalHost().getHostName(); return new RubyString(getRuntime(), hostName); } catch (UnknownHostException e) { // DSC throw SystemError("gethostname"); return new RubyString(getRuntime(), ""); } } | public RubyString gethostname() { try { String hostName = InetAddress.getLocalHost().getHostName(); return new RubyString(getRuntime(), hostName); } catch (UnknownHostException e) { // DSC throw SystemError("gethostname"); return new RubyString(getRuntime(), ""); } } | 3,231,129 |
public void valueChanged(TreeSelectionEvent e) { // If this change is occurring because a if (lockTreeChange == true) return; ModuleTreeNode node = (ModuleTreeNode) tree.getLastSelectedPathComponent(); if (node == null) return; if (lastModule != null) { moduleCanvas.unhighlightModules(lastModule)... | public void valueChanged(TreeSelectionEvent e) { // If this change is occurring because a if (lockTreeChange == true) return; ModuleTreeNode node = (ModuleTreeNode) tree.getLastSelectedPathComponent(); if (node == null) return; if (lastModule != null) { moduleCanvas.unhighlightModules(lastModule)... | 3,231,131 |
public RubyString m_inspect() { // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_OF(obj)); // if (rb_inspecting_p(obj)) { // str... | public RubyString m_inspect() { // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_OF(obj)); // if (rb_inspecting_p(obj)) { // str... | 3,231,132 |
public void initialize() { contactList = SparkManager.getWorkspace().getContactList(); contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F6"), "viewNotes"); contactList.getActionMap().put("viewNotes", new AbstractAction("viewNotes") { public ... | public void initialize() { contactList = SparkManager.getWorkspace().getContactList(); contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control F6"), "viewNotes"); contactList.getActionMap().put("viewNotes", new AbstractAction("viewNotes") { publ... | 3,231,133 |
public void initialize() { contactList = SparkManager.getWorkspace().getContactList(); contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F6"), "viewNotes"); contactList.getActionMap().put("viewNotes", new AbstractAction("viewNotes") { public ... | public void initialize() { contactList = SparkManager.getWorkspace().getContactList(); contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F6"), "viewNotes"); contactList.getActionMap().put("viewNotes", new AbstractAction("viewNotes") { public ... | 3,231,134 |
void login(String userName, String password) throws DSOutOfServiceException { try { RemoteCaller proxy = proxiesFactory.getRemoteCaller(); proxy.login(userName, password); serverVersionCheck(); connected = true; } catch (RemoteConnectionException rce) { connected = false; throw new DSO... | void login(String userName, String password) throws DSOutOfServiceException { try { RemoteCaller proxy = proxiesFactory.getRemoteCaller(); proxy.login(userName, password); serverVersionCheck(); connected = true; } catch (RemoteServerErrorException iae) { connected = false; throw new DSOutOfService... | 3,231,136 |
public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | 3,231,137 |
public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | 3,231,138 |
public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | publicstaticObject[]fillICGHierarchy(Listclassifications,MapmapIS,intuserID){Object[]results=newObject[2];Iteratori=classifications.iterator();//OME-JAVAobject.Classificationclassification;Categorycategory;CategoryGroupgroup;//Shoolaobject.ClassificationDatacData;CategoryDatacModel;CategoryGroupDatagModel;ImageSummaryi... | 3,231,139 |
public ScriptTest(Ruby ruby, String filename) { super(filename); this.ruby = ruby; this.filename = filename; this.script = new File(TEST_DIR + File.separator + filename); } | public ScriptTest(Ruby ruby, String filename) { super(filename); this.ruby = ruby; this.filename = filename; } | 3,231,140 |
public void runTest() throws Throwable { StringBuffer scriptString = new StringBuffer((int) script.length()); BufferedReader br = new BufferedReader(new FileReader(script)); String line; while ((line = br.readLine()) != null) { scriptString.append(line)... | public void runTest() throws Throwable { StringBuffer scriptString = new StringBuffer((int) script.length()); BufferedReader br = new BufferedReader(new FileReader(script)); String line; while ((line = br.readLine()) != null) { scriptString.append(line)... | 3,231,141 |
public void runTest() throws Throwable { StringBuffer scriptString = new StringBuffer((int) script.length()); BufferedReader br = new BufferedReader(new FileReader(script)); String line; while ((line = br.readLine()) != null) { scriptString.append(line)... | public void runTest() throws Throwable { StringBuffer scriptString = new StringBuffer((int) script.length()); BufferedReader br = new BufferedReader(new FileReader(script)); String line; while ((line = br.readLine()) != null) { scriptString.append(line)... | 3,231,142 |
public void actionPerformed(ActionEvent actionEvent) { Collection contacts = contactList.getSelectedUsers(); startConference(contacts); } | public void actionPerformed(ActionEvent actionEvent) { Collection contacts = contactList.getActiveGroup().getContactItems(); startConference(contacts); } | 3,231,143 |
TNavigator(NavigationPaletteManager topManager, int sizeT, int t) { manager = new TNavigatorManager(this, topManager, sizeT, t); im = IconManager.getInstance(topManager.getRegistry()); initComponents(sizeT, t); manager.attachListeners(); buildGUI(); } | TNavigator(NavigationPaletteManager topManager, int sizeT, int t) { manager = new TNavigatorManager(this, topManager, sizeT, t); im = IconManager.getInstance(topManager.getRegistry()); initComponents(sizeT, t); manager.attachListeners(); buildGUI(); } | 3,231,146 |
XYZNavigator(NavigationPaletteManager topManager, int sizeX, int sizeY, int sizeZ, int z) { manager = new XYZNavigatorManager(this, topManager, sizeZ, z); im = IconManager.getInstance(topManager.getRegistry()); initSlider(sizeZ, z); initTextField(sizeZ, z); manager.attachListeners(); buildGUI(sizeX, sizeY, s... | XYZNavigator(NavigationPaletteManager topManager, int sizeX, int sizeY, int sizeZ, int z) { manager = new XYZNavigatorManager(this, topManager, sizeZ, z); im = IconManager.getInstance(topManager.getRegistry()); initSlider(sizeZ, z); initTextField(sizeZ, z); manager.attachListeners(); buildGUI(sizeX, sizeY, s... | 3,231,147 |
public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); } | public RubyFixnum hash() { long baseHash = (isExclusive ? 1 : 0); long beginHash = ((RubyFixnum) begin.callMethod("hash")).getLongValue(); long endHash = ((RubyFixnum) end.callMethod("hash")).getLongValue(); long hash = baseHash; hash = hash ^ (beginHash << 1); hash = hash ^ (endHash << 9); hash = hash ^ (bas... | 3,231,148 |
public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | 3,231,149 |
public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | 3,231,150 |
public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | 3,231,151 |
public static List fillListImages(Dataset dataset) { List images = new ArrayList(); Iterator i = dataset.getImages().iterator(); Image image; while (i.hasNext()) { image = (Image) i.next(); images.add(new ImageSummary(image.getID(), image.getName(), fillListPixelsID(image), fillDefa... | public static List fillListImages(Dataset dataset) { List images = new ArrayList(); Iterator i = dataset.getImages().iterator(); Image image; while (i.hasNext()) { image = (Image) i.next(); images.add(new ImageSummary(image.getID(), image.getName(), fillListPixelsID(image), fillDefa... | 3,231,152 |
public static List fillListImages(Dataset dataset) { List images = new ArrayList(); Iterator i = dataset.getImages().iterator(); Image image; while (i.hasNext()) { image = (Image) i.next(); images.add(new ImageSummary(image.getID(), image.getName(), fillListPixelsID(image), fillDefa... | public static List fillListImages(Dataset dataset) { List images = new ArrayList(); Iterator i = dataset.getImages().iterator(); Image image; while (i.hasNext()) { image = (Image) i.next(); images.add(new ImageSummary(image.getID(), image.getName(), fillListPixelsID(image), fillDefa... | 3,231,153 |
public static List fillUserDatasets(List datasets, DatasetSummary dProto) { List datasetsList = new ArrayList(); //The returned summary list. Iterator i = datasets.iterator(); DatasetSummary ds; Dataset d; //For each d in datasets... while (i.hasNext()) { d = (Dataset) i.next(); //Make a new DataObject and ... | public static List fillUserDatasets(List datasets, DatasetSummary dProto) { List datasetsList = new ArrayList(); //The returned summary list. Iterator i = datasets.iterator(); DatasetSummary ds; Dataset d; //For each d in datasets... while (i.hasNext()) { d = (Dataset) i.next(); //Make a new DataObject and ... | 3,231,154 |
public static List fillUserDatasets(List datasets, DatasetSummary dProto) { List datasetsList = new ArrayList(); //The returned summary list. Iterator i = datasets.iterator(); DatasetSummary ds; Dataset d; //For each d in datasets... while (i.hasNext()) { d = (Dataset) i.next(); //Make a new DataObject and ... | publicstaticListfillUserDatasets(Listdatasets,DatasetSummarydProto) { ListdatasetsList=newArrayList();//Thereturnedsummarylist. Iteratori=datasets.iterator(); DatasetSummaryds; Datasetd; //Foreachdindatasets... while(i.hasNext()){ d=(Dataset)i.next(); //MakeanewDataObjectandfillitup. ds=(DatasetSummary)dPr... | 3,231,155 |
public IRubyObject internalCall(ThreadContext context, IRubyObject receiver, RubyModule lastClass, String name, IRubyObject[] args, boolean noSuper) { assert args != null; IRuby runtime = context.getRuntime(); if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { // We pas... | public IRubyObject internalCall(ThreadContext context, IRubyObject receiver, RubyModule lastClass, String name, IRubyObject[] args, boolean noSuper) { assert args != null; IRuby runtime = context.getRuntime(); if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { // We pas... | 3,231,156 |
void onCurveChange() { String f = model.getFamily(); gammaSlider.setEnabled((f.equals(RendererModel.POLYNOMIAL) || f.equals(RendererModel.EXPONENTIAL))); graphicsPane.onCurveChange(); } | void onCurveChange() { String f = model.getFamily(); gammaSlider.setEnabled((f.equals(RendererModel.POLYNOMIAL) || f.equals(RendererModel.EXPONENTIAL))); graphicsPane.onCurveChange(); } | 3,231,157 |
OrCondition(Condition l, Condition r) { _l = l; _r = r; System.out.println("Condition: " + l + " || + " + r); } | OrCondition(Condition l, Condition r) { _l = l; _r = r; System.out.println("Condition: " + l + " || + " + r); } | 3,231,158 |
public static RubyTime s_new(Ruby ruby, RubyObject rubyClass) { RubyObject[] args = new RubyObject[1]; args[0] = new RubyFixnum(ruby, new Date().getTime()); return s_at(ruby, rubyClass, args); } | public static RubyTime s_new(Ruby ruby, RubyObject rubyClass) { RubyObject[] args = new RubyObject[1]; args[0] = RubyFixnum.newFixnum(ruby, new Date().getTime()); return s_at(ruby, rubyClass, args); } | 3,231,159 |
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { if (args[0] instanceof RubyRegexp) { IRubyObject match = RubyRegexp.regexpValue(args[0]).match(toString(), 0); return match.isNil() ? getRuntime().getNil() : ... | public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { if (args[0] instanceof RubyRegexp) { IRubyObject match = RubyRegexp.regexpValue(args[0]).match(toString(), 0); return match.isNil() ? getRuntime().getNil() : ... | 3,231,160 |
public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | public void visit(ImageNode node) { Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; node.setLocation((int) (r.x*r... | 3,231,161 |
public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | 3,231,162 |
public List getDatasets() { if (datasets == null ||projects.size() == 0) { try { DataManagementService dms = registry.getDataManagementService(); datasets = dms.retrieveUserDatasets(new BrowserDatasetSummary()); Collections.sort(datasets); registry.getLogger().info(this,"loaded datasets..."); } ... | public List getDatasets() { if (datasets == null ||projects.size() == 0) { try { DataManagementService dms = registry.getDataManagementService(); datasets = dms.retrieveUserDatasets(new BrowserDatasetSummary()); Collections.sort(datasets); registry.getLogger().info(this,"loaded datasets..."); } ... | 3,231,163 |
void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | void collectUserCredentials(SplashScreenFuture future, boolean init) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | 3,231,164 |
void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | 3,231,165 |
void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.login.setEnabled(true); } | 3,231,166 |
public boolean lies(PlanePoint p) { if (p == null) throw new NullPointerException("No point."); boolean result = false; double k1, k2; if (direction.x1 == 0 && direction.x2 !=0) { k2 = (p.x2-origin.x2)/direction.x2; if (k2 < 0 || k2 > 1) result = false; ... | public boolean lies(PlanePoint p) { if (p == null) throw new NullPointerException("No point."); boolean result = false; double k1, k2; if (direction.x1 == 0 && direction.x2 !=0) { k2 = (p.x2-origin.x2)/direction.x2; if (k2 < 0 || k2 > 1) result = false; ... | 3,231,168 |
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] argsObj = ArgsUtil.setupArgs(ruby, self, getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); return self.getRubyClass().call(self,... | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyPointer args = ArgsUtil.setupArgs(ruby, self, getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); return self.getRubyClass().call(self, get... | 3,231,169 |
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] argsObj = ArgsUtil.setupArgs(ruby, self, getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); return self.getRubyClass().call(self,... | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] argsObj = ArgsUtil.setupArgs(ruby, self, getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); return self.getRubyClass().call(self,... | 3,231,170 |
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | 3,231,171 |
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | 3,231,172 |
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | 3,231,173 |
public RubyException m_exception(RubyObject[] args) { switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } } | public RubyException m_exception(RubyObject[] args) { switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } } | 3,231,174 |
public RubyException m_exception(RubyObject[] args) { switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } } | public RubyException m_exception(RubyObject[] args) { switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } } | 3,231,175 |
public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | 3,231,176 |
public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | 3,231,177 |
public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | 3,231,178 |
public static RubyException m_new(Ruby ruby, RubyObject recv, RubyObject[] args) { return s_new(ruby, recv.getRubyClass(), args); } | public static RubyException m_new(Ruby ruby, RubyObject recv, RubyObject[] args) { return s_new(ruby, recv.getRubyClass(), args); } | 3,231,179 |
public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | 3,231,180 |
public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | 3,231,181 |
public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | 3,231,182 |
public static RubyException s_new(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyException newException = new RubyException(ruby, (RubyClass)recv); if (args.length == 1) { newException.setInstanceVar("mesg", args[0]); } return newException; } | public static RubyException s_new(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyException newException = new RubyException(ruby, (RubyClass)recv); if (args.length == 1) { newException.setInstanceVar("mesg", args[0]); } return newException; } | 3,231,183 |
public static void flood(String directory, String fileName, String fileExt, int numOfFiles, int linesPerFile) { File dir = new File(directory); if (dir.exists() && dir.isDirectory()) { for (int i = 1; i <= numOfFiles; i++) { try { File file = new File(direc... | public static void flood(String directory, String fileName, String fileExt, int numOfFiles, int linesPerFile) { File dir = new File(directory); if (dir.exists() && dir.isDirectory()) { for (int i = 1; i <= numOfFiles; i++) { try { File file = new File(direc... | 3,231,185 |
public static void main(String[] args) { FileFlooder.flood(".", "file", "txt", 100, 1000); System.out.println("done"); } | public static void main(String[] args) { FileFlooder.flood(".", "file", "txt", 100, 1000); System.out.println("done"); } | 3,231,186 |
protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODER... | protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODER... | 3,231,188 |
protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODER... | protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODER... | 3,231,189 |
TreeCheckRenderer(boolean leafOnly) { this.leafOnly = leafOnly; restoredSize = null; setLayout(null); setOpaque(true); label = new TreeCheckLabel(); check = new JCheckBox(); check.setBackground(UIManager.getColor("Tree.textBackground")); setBackground(UIMan... | TreeCheckRenderer(boolean leafOnly) { this.leafOnly = leafOnly; restoredSize = null; setLayout(null); setOpaque(false); label = new TreeCheckLabel(); check = new JCheckBox(); check.setBackground(UIManager.getColor("Tree.textBackground")); setBackground(UIMa... | 3,231,190 |
protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ... | protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ... | 3,231,191 |
protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ... | protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ... | 3,231,192 |
protected String renderListItem() { return "* "; } | protected String renderListItem() { return _number > 0 ? "" + (++_number) : "* "; } | 3,231,193 |
public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.getScriptFileName()); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new Str... | 3,231,195 |
public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | 3,231,196 |
public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | 3,231,197 |
main(String[] args) { int status = 0; Ice.Communicator ic = null; try { ic = Ice.Util.initialize(args); Ice.ObjectPrx base = ic.stringToProxy( "T:default -p 10000"); test.TPrx printer = test.TPrxHelper.checkedCast(base); ... | main(String[] args) { int status = 0; Ice.Communicator ic = null; try { ic = Ice.Util.initialize(args); Ice.ObjectPrx base = ic.stringToProxy( "T:default -p 10000"); test.TPrx printer = test.TPrxHelper.checkedCast(base); ... | 3,231,198 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.