bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void refresh() { 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... | public void refresh() { 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... | 3,231,529 |
void setDefaults() { int maxZ = model.getMaxZ(); int maxT = model.getMaxT(); zSlider.setEnabled(maxZ != 0); startZ.setEnabled(maxZ != 0); endZ.setEnabled(maxZ != 0); tSlider.setEnabled(maxT != 0); startT.setEnabled(maxT != 0); endT.setEnabled(maxT != 0); ... | void setDefaults() { int maxZ = model.getMaxZ(); int maxT = model.getMaxT(); zSlider.setEnabled(maxZ != 0); startZ.setEnabled(maxZ != 0); endZ.setEnabled(maxZ != 0); tSlider.setEnabled(maxT != 0); startT.setEnabled(maxT != 0); endT.setEnabled(maxT != 0); ... | 3,231,530 |
public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | 3,231,535 |
public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | 3,231,536 |
public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | 3,231,537 |
public String toString(){ return "ImageInfo"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | public String toString(){ return "ImageInfo"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); } | 3,231,543 |
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | 3,231,544 |
private void showMenu() { Point p = currentWin.getPopupPoint(); show(currentWin, p.x, p.y); } | private void showMenu() { Point p = currentWin.getPopupPoint(); Point pNew = SwingUtilities.convertPoint(currentWin, p.x, p.y, null); show(currentWin.getParent(), pNew.x, pNew.y); } | 3,231,545 |
public Object get(int i){ if ((i<1) || (i>fields.size())){ return _tbl.formatError("Invalid index: " + i + ". The column index must be between 1 and " + fields.size()); } return fields.getEntry(i-1); } | public Object get(int i){ if ((i<1) || (i>fields.size())){ return _tbl.formatError("Invalid index: " + i + ". The column index must be between 1 and " + fields.size()); } return fields.getEntry(i-1); } | 3,231,546 |
public Object get(int i){ if ((i<1) || (i>fields.size())){ return _tbl.formatError("Invalid index: " + i + ". The column index must be between 1 and " + fields.size()); } return fields.getEntry(i-1); } | public Object get(int i){ if ((i<1) || (i>fields.size())){ return _tbl.formatError("Invalid index: " + i + ". The column index must be between 1 and " + fields.size()); } return o; } | 3,231,547 |
public RubyObject execute(Ruby ruby, RubyObject receiver, String name, RubyObject[] args, boolean noSuper) { if (args == null) { args = new RubyObject[0]; } RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null) { optionalBlockArg = RubyProc.newPr... | public RubyObject execute(Ruby ruby, RubyObject receiver, String name, RubyObject[] args, boolean noSuper) { if (args == null) { args = new RubyObject[0]; } RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && ruby.isBlockGiven()) { optionalBl... | 3,231,548 |
public Object testLoadCGCIHierarchyCategory(){ setUp(); log.info("loadCGCI-C:"+data.cId); hbw.loadHierarchy(CategoryData.class, data.cId, observer); return observer.result; } | public Object testLoadCGCIHierarchyCategory(){ setUp(); hbw.loadHierarchy(CategoryData.class, data.cId, observer); return observer.result; } | 3,231,551 |
public Object testLoadCGCIHierarchyCategoryGroup(){ setUp(); log.info("loadCGCI-CG:"+data.cgId); hbw.loadHierarchy(CategoryGroupData.class, data.cgId, observer); return observer.result; } | public Object testLoadCGCIHierarchyCategoryGroup(){ setUp(); hbw.loadHierarchy(CategoryGroupData.class, data.cgId, observer); return observer.result; } | 3,231,552 |
public void copy(IObject model, ModelMapper mapper) { if (model instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) model; super.copy(model,mapper); // Details if (cg.getDetails()!=null){ this.setOwner((ExperimenterData) mapper.findTarg... | public void copy(IObject model, ModelMapper mapper) { if (model instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) model; super.copy(model,mapper); // Details if (cg.getDetails()!=null){ this.setOwner((ExperimenterData) mapper.findTarg... | 3,231,554 |
public void copy(IObject model, ModelMapper mapper) { if (model instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) model; super.copy(model,mapper); // Details if (cg.getDetails()!=null){ this.setOwner((ExperimenterData) mapper.findTarg... | public void copy(IObject model, ModelMapper mapper) { if (model instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) model; super.copy(model,mapper);// Detailsif (cg.getDetails()!=null){this.setOwner((ExperimenterData) mapper.findTarget(cg.getDetails().getOwner()));}// Fields this.setName(cg.getName());... | 3,231,555 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTree... | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTree... | 3,231,556 |
final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (txt ins... | final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enumeration = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (... | 3,231,557 |
final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (txt ins... | final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enumeration.hasMoreElements()) { Object txt = enum.nextElement(); if (... | 3,231,558 |
final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (txt ins... | final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enumeration.nextElement(); if (... | 3,231,559 |
private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | 3,231,561 |
private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | privateCategoryDatagetCategory(intid,booleanwithAnnotation)throwsDSOutOfServiceException,DSAccessException{//RetrievetheuserID.UserCredentialsuc=(UserCredentials)registry.lookup(LookupNames.USER_CREDENTIALS);//Retrievethespecifiedcategory.Criteriac=CategoryMapper.buildClassificationCriteria(id);Categorycategory=(Catego... | 3,231,562 |
private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | 3,231,563 |
public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | 3,231,564 |
public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | 3,231,565 |
public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | 3,231,566 |
public List retrieveCategoryGroups() throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); List result = new ArrayList(); UserCredentials uc = ... | public List retrieveCategoryGroups() throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); List result = new ArrayList(); UserCredentials uc = ... | 3,231,567 |
public List retrieveCategoryGroups() throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); List result = new ArrayList(); UserCredentials uc = ... | public List retrieveCategoryGroups() throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); List result = new ArrayList(); UserCredentials uc = ... | 3,231,568 |
public Object[] retrieveICGHierarchy(List imageSummaries) throws DSOutOfServiceException, DSAccessException { if (imageSummaries == null) throw new NullPointerException("List of imageSummaries " + "cannot be null"); if (imageSummaries.size() == 0) thr... | public Object[] retrieveICGHierarchy(List imageSummaries) throws DSOutOfServiceException, DSAccessException { if (imageSummaries == null) throw new NullPointerException("List of imageSummaries " + "cannot be null"); if (imageSummaries.size() == 0) thr... | 3,231,569 |
public Object[] retrieveICGHierarchy(List imageSummaries) throws DSOutOfServiceException, DSAccessException { if (imageSummaries == null) throw new NullPointerException("List of imageSummaries " + "cannot be null"); if (imageSummaries.size() == 0) thr... | public Object[] retrieveICGHierarchy(List imageSummaries) throws DSOutOfServiceException, DSAccessException { if (imageSummaries == null) throw new NullPointerException("List of imageSummaries " + "cannot be null"); if (imageSummaries.size() == 0) thr... | 3,231,570 |
public void updateCategory(CategoryData data, List imgsToRemove, List imgsToAdd) throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildBasicCriteria(data.getID()); Category category = (Category) gateway.retrieveSTSDat... | public void updateCategory(CategoryData data, List imgsToRemove, List imgsToAdd) throws DSOutOfServiceException, DSAccessException { UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); Criteria c = CategoryMapper.buildBasicCriteria(d... | 3,231,571 |
public void updateCategoryGroup(CategoryGroupData data, List toAdd) throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildBasicCriteria(data.getID()); CategoryGroup cg = (CategoryGroup) gateway.retrieveSTSData("CategoryGroup", c); cg.setName(... | public void updateCategoryGroup(CategoryGroupData data, List toAdd) throws DSOutOfServiceException, DSAccessException { UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); Criteria c = CategoryMapper.buildBasicCriteria(data.getID(), uc.getUserID()); Category... | 3,231,572 |
public static void fillImageAnnotationInCategory(Map map, List annotations, int userID) { Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); Iterator i = map.key... | public static void fillImageAnnotationInCategory(Map map, List annotations, int userID) { Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); Iterator i = map.key... | 3,231,573 |
public static void fillImageAnnotationInCategory(Map map, List annotations, int userID) { Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); Iterator i = map.key... | public static void fillImageAnnotationInCategory(Map map, List annotations, int userID) { Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); Iterator i = map.key... | 3,231,574 |
public static Criteria buildCategoryWithClassificationsCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("CategoryGroup"); c.addWantedField("ClassificationList"); c.addWantedField("ClassificationList", "Valid"); c.add... | public static Criteria buildCategoryWithClassificationsCriteria(int groupID, int userID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("CategoryGroup"); c.addWantedField("ClassificationList"); c.addWantedField("ClassificationList", "Valid"); ... | 3,231,575 |
public static Criteria buildCategoryWithClassificationsCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("CategoryGroup"); c.addWantedField("ClassificationList"); c.addWantedField("ClassificationList", "Valid"); c.add... | public static Criteria buildCategoryWithClassificationsCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("CategoryGroup"); c.addWantedField("ClassificationList"); c.addWantedField("ClassificationList", "Valid"); c.add... | 3,231,576 |
public static void fillCategoryWithClassifications(List l, List result, CategoryGroupData group, int userID) { //Map of ID of the images contained in the group. Map ids = new HashMap(); CategorySummary cs; Iterator i = group.getCategories().iterato... | public static void fillCategoryWithClassifications(List l, List result, CategoryGroupData group) { //Map of ID of the images contained in the group. Map ids = new HashMap(); CategorySummary cs; Iterator i = group.getCategories().iterator(); ... | 3,231,578 |
public static void fillCategoryWithClassifications(List l, List result, CategoryGroupData group, int userID) { //Map of ID of the images contained in the group. Map ids = new HashMap(); CategorySummary cs; Iterator i = group.getCategories().iterato... | public static void fillCategoryWithClassifications(List l, List result, CategoryGroupData group, int userID) { //Map of ID of the images contained in the group. Map ids = new HashMap(); CategorySummary cs; Iterator i = group.getCategories().iterato... | 3,231,579 |
public static void fillCategoryGroup(List l, List result, int userID) { Map cMap = new HashMap(); Iterator i = l.iterator(); CategoryGroup cg; CategoryGroupData cgd; CategorySummary cs; Category c; Iterator j; List categories; Integer id; whi... | public static void fillCategoryGroup(List l, List result, int userID) { Map cMap = new HashMap(); Iterator i = l.iterator(); CategoryGroup cg; CategoryGroupData cgd; CategorySummary cs; Category c; Iterator j; List categories; Integer id; whi... | 3,231,580 |
public static void fillCategoryGroup(List l, List result, int userID) { Map cMap = new HashMap(); Iterator i = l.iterator(); CategoryGroup cg; CategoryGroupData cgd; CategorySummary cs; Category c; Iterator j; List categories; Integer id; whi... | public static void fillCategoryGroup(List l, List result, int userID) { Map cMap = new HashMap(); Iterator i = l.iterator(); CategoryGroup cg; CategoryGroupData cgd; CategorySummary cs; Category c; Iterator j; List categories; Integer id; whi... | 3,231,581 |
protected int argCount(RubyObject[] args, int min, int max) { int len = args.length; if (len < min || (max > -1 && len > max)) { throw new RubyArgumentException(getRuby(), "wrong number of arguments"); } return len; } | protected int argCount(RubyObject[] args, int min, int max) { int len = args.length; if (len < min || (max > -1 && len > max)) { String msg = "Wrong number of arguments for method '" + ruby.getRubyFrame().getLastFunc() + "' in class " + getRubyClass().toName() + ". " + args.length + " is no... | 3,231,583 |
public static Object constructYamlStr(final Constructor ctor, final Node node) { final org.jruby.RubyString str = (org.jruby.RubyString)((JRubyConstructor)ctor).constructRubyScalar(node); return str.getValue().length() == 0 ? str.getRuntime().getNil() : str; } | public static Object constructYamlStr(final Constructor ctor, final Node node) { final org.jruby.RubyString str = (org.jruby.RubyString)((JRubyConstructor)ctor).constructRubyScalar(node); return (str.getValue().length() == 0 && ((org.jvyaml.nodes.ScalarNode)node).getStyle() == 0) ? str.getRuntime().ge... | 3,231,585 |
public void invoke(JFrame parentFrame, PreferencesPanel contentPane) { this.prefPanel = contentPane; // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); // Construct Dialog preferenceDialog = new JDialog(parentF... | public void invoke(JFrame parentFrame, PreferencesPanel contentPane) { this.prefPanel = contentPane; // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); // Construct Dialog preferenceDialog = new JDialog(parentF... | 3,231,586 |
protected PropertyEditor createPropertyEditor(String propertyEditor) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if( cl==null ) { cl = XBeanNamespaceHandler.class.getClassLoader(); } try { return (PropertyEditor)cl.loadClass(propertyEditor).newInstance(); ... | protected PropertyEditor createPropertyEditor(String propertyEditor) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if( cl==null ) { cl = XBeanNamespaceHandler.class.getClassLoader(); } try { return (PropertyEditor)cl.loadClass(propertyEditor).newInstance(); ... | 3,231,587 |
public Object getContents() { long start; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { Layou... | public Object getContents() { long start; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { Layou... | 3,231,588 |
public Object getContents() { long start; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { Layou... | public Object getContents() { long start; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { Layou... | 3,231,589 |
private void setBackTrace(int lineCount) { List traceLines = new ArrayList(); for (int i=0; i<lineCount; i++) traceLines.add(new RubyString(interpreter, testLine(i))); exception.set_backtrace(RubyArray.newArray(interpreter, traceLines)); } | private void setBackTrace(int lineCount) { List traceLines = new ArrayList(); for (int i=0; i<lineCount; i++) traceLines.add(new RubyString(interpreter, testLine(i))); exception.set_backtrace(RubyArray.newArray(interpreter, traceLines)); } | 3,231,590 |
public void testPrintBacktraceWithHiddenLevels() throws Exception { setBackTrace(19); String[] lines = printError(); assertEquals(expectedTraceLine(1), lines[0]); assertEquals("\t ... 7 levels...", lines[RubyException.TRACE_HEAD]); assertEquals(expectedTraceLine(16), lines[RubyException.TRACE_HEAD + 1]); } | public void testPrintBacktraceWithHiddenLevels() throws Exception { setBackTrace(19); String[] lines = printError(); assertEquals(expectedTraceLine(1), lines[0]); assertEquals("\t ... 7 levels...", lines[RubyException.TRACE_HEAD]); assertEquals(expectedTraceLine(16), lines[RubyException.TRACE_HEAD + 1]); } | 3,231,591 |
private void checkClass(Class klass) { if (klass.equals(ProjectData.class) || klass.equals(CategoryGroup.class)) return; throw new IllegalArgumentException("Root node not supported."); } | private void checkClass(Class klass) { if (klass.equals(ProjectData.class) || klass.equals(CategoryGroupData.class)) return; throw new IllegalArgumentException("Root node not supported."); } | 3,231,592 |
public void load(final IRuby runtime) throws IOException { RubyZlib.createZlibModule(runtime); new BuiltinScript("zlib").load(runtime); } | public void load(final IRuby runtime) throws IOException { RubyZlib.createZlibModule(runtime); } | 3,231,593 |
public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 3,231,597 |
public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 3,231,598 |
public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 3,231,599 |
public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 3,231,600 |
public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 3,231,601 |
public void execute() throws BuildException { if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } if (branchRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchRate); } if (lineRate != null) { g... | public void execute() throws BuildException { if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } if (branchRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchRate); } if (lineRate != null) { g... | 3,231,603 |
public void execute() throws BuildException { if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } if (branchRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchRate); } if (lineRate != null) { g... | public void execute() throws BuildException { if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } if (branchRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchRate); } if (lineRate != null) { g... | 3,231,604 |
public Object getValue (Context context) throws PropertyException { return context.getProperty(_names[0]); } | public Object getValue (Context context) throws PropertyException { return context.getProperty(_names); } | 3,231,605 |
public void chatRoomOpened(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.isHideChatHistory()) { return; } final String jid = room.getRoomname(); File transcriptFile = ChatTranscripts.getTranscriptFile(jid); if (!tr... | public void chatRoomOpened(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (!pref.isChatHistoryEnabled()) { return; } final String jid = room.getRoomname(); File transcriptFile = ChatTranscripts.getTranscriptFile(jid); if ... | 3,231,606 |
private void persistChatRoom(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.isHideChatHistory()) { return; } final String jid = room.getRoomname(); List transcripts = room.getTranscripts(); Iterator messages = trans... | private void persistChatRoom(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (!pref.isChatHistoryEnabled()) { return; } final String jid = room.getRoomname(); List transcripts = room.getTranscripts(); Iterator messages = t... | 3,231,607 |
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { return ChatTranscripts.getChatTranscript(jid); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); ... | private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { ... | 3,231,608 |
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { return ChatTranscripts.getChatTranscript(jid); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); ... | private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { return ChatTranscripts.getChatTranscript(jid); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); ... | 3,231,609 |
public Object construct() { return ChatTranscripts.getChatTranscript(jid); } | public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } | 3,231,610 |
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow wi... | public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow wi... | 3,231,611 |
public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); if (sf != factor) { th.scale(factor); node.setLocation((int) (r.x*factor/sf), (int) (r.y*factor/sf)); } } | public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); if (sf != factor) { th.scale(factor); double ratio = factor/sf; if (ratio < 1) ratio += EPSILON; node.setLocation((int) (r.x... | 3,231,612 |
public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Set unsatisfiedConditions) { this.eventId = eventId; this.kernel = kernel; this.serviceName = serviceName; this.serviceFactory = serviceFactor... | public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service) { this.eventId = eventId; this.kernel = kernel; this.serviceName = serviceName; this.serviceFactory = serviceFactory; this.classLoader ... | 3,231,613 |
public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Set unsatisfiedConditions) { this.eventId = eventId; this.kernel = kernel; this.serviceName = serviceName; this.serviceFactory = serviceFactor... | public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Set unsatisfiedConditions) { this.eventId = eventId; this.kernel = kernel; this.serviceName = serviceName; this.serviceFactory = serviceFactor... | 3,231,614 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | publicComponentgetTreeCellRendererComponent(JTreetree,Objectvalue,booleansel,booleanexpanded,booleanleaf,introw,booleanhasFocus){super.getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus);DefaultMutableTreeNodenode=(DefaultMutableTreeNode)value;if(node.getLevel()==0){setIcon(icons.getIcon(IconManager... | 3,231,616 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 3,231,617 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 3,231,618 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 3,231,619 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 3,231,620 |
private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = Util.getCCN(finder.findFile(packageData.getSourceFileName()), false); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" bran... | private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = Util.getCCN(finder.findFile(packageData.getSourceFileName()), false); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" bran... | 3,231,621 |
public ArticleBlock(String titleKey, WFTabListener taskbarListener) { super(titleKey); setId(ARTICLE_BLOCK_ID); getTitlebar().setValueRefTitle(true); setMainAreaStyleClass(null); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabBar tb = new WFTabBar(); tb.setId(TASKBAR_ID); add(tb); tb.addButtonVB(TASK_ID_... | public ArticleBlock(String titleKey, WFTabListener taskbarListener) { super(titleKey); setId(ARTICLE_BLOCK_ID); getTitlebar().setValueRefTitle(true); setMainAreaStyleClass(null); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabBar tb = new WFTabBar(); tb.setId(TASKBAR_ID); add(tb); tb.addButtonVB(TASK_ID_... | 3,231,622 |
private IOModes getModes(IRubyObject object) { if (object instanceof RubyString) { return new IOModes(getRuntime(), ((RubyString)object).getValue()); } else if (object instanceof RubyFixnum) { return new IOModes(getRuntime(), ((RubyFixnum)object).getLongValue()); } throw getRuntime().newTypeError("Invalid type... | private IOModes getModes(IRubyObject object) { if (object instanceof RubyString) { return new IOModes(getRuntime(), ((RubyString)object).getValue()); } else if (object instanceof RubyFixnum) { return new IOModes(getRuntime(), ((RubyFixnum)object).getLongValue()); } throw getRuntime().newTypeError("Invalid type... | 3,231,623 |
public void hidePalette(BPalette palette) { if(palette != null && paletteMap.containsValue(palette)) { for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { BrowserTopModelListener listener = (BrowserTopModelListener)iter.next(); ... | public void hidePalette(String name) { if(palette != null && paletteMap.containsValue(palette)) { for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { BrowserTopModelListener listener = (BrowserTopModelListener)iter.next(); ... | 3,231,627 |
public void hidePalette(BPalette palette) { if(palette != null && paletteMap.containsValue(palette)) { for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { BrowserTopModelListener listener = (BrowserTopModelListener)iter.next(); ... | public void hidePalette(BPalette palette) { if(palette != null && paletteMap.containsValue(palette)) { for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { BrowserTopModelListener listener = (BrowserTopModelListener)iter.next(); ... | 3,231,628 |
public void buildGUI(ModulesData modData) { Container content = getContentPane(); content.setLayout(new BorderLayout()); // what is the window that the chain modules are in? ChainModuleData.setMainWindow(this); JToolBar tb = new JToolBar(); Icon smallChain = icons.getIcon("chains-small.png"); JButton newChai... | public void buildGUI(ModulesData modData) { Container content = getContentPane(); content.setLayout(new BorderLayout()); // what is the window that the chain modules are in? ChainModuleData.setMainWindow(this); JToolBar tb = new JToolBar(); Icon smallChain = icons.getIcon("chains-small.png"); JButton newChai... | 3,231,630 |
public void buildGUI(ModulesData modData) { Container content = getContentPane(); content.setLayout(new BorderLayout()); // what is the window that the chain modules are in? ChainModuleData.setMainWindow(this); JToolBar tb = new JToolBar(); Icon smallChain = icons.getIcon("chains-small.png"); JButton newChai... | public void buildGUI(ModulesData modData) { Container content = getContentPane(); content.setLayout(new BorderLayout()); // what is the window that the chain modules are in? ChainModuleData.setMainWindow(this); JToolBar tb = new JToolBar(); Icon smallChain = icons.getIcon("chains-small.png"); JButton newChai... | 3,231,631 |
public void contentComplete() { if (dataManager.getChains() != null || dataManager.getModules() != null) { long guiStart =System.currentTimeMillis(); buildGUI((ModulesData) modLoader.getContents()); if (ChainBuilderAgent.DEBUG) { long guiTime =System.currentTimeMillis()-guiStart; System.err.println("time ... | public void contentComplete() { if (dataManager.getChains() != null || dataManager.getModules() != null) { long guiStart =System.currentTimeMillis(); buildGUI((ModulesData) modLoader.getContents()); if (ChainBuilderAgent.DEBUG) { long guiTime =System.currentTimeMillis()-guiStart; System.err.println("time ... | 3,231,632 |
public void contentComplete() { if (dataManager.getChains() != null || dataManager.getModules() != null) { long guiStart =System.currentTimeMillis(); buildGUI((ModulesData) modLoader.getContents()); if (ChainBuilderAgent.DEBUG) { long guiTime =System.currentTimeMillis()-guiStart; System.err.println("time ... | public void contentComplete() { if (dataManager.getChains() != null || dataManager.getModules() != null) { long guiStart =System.currentTimeMillis(); buildGUI((ModulesData) modLoader.getContents()); if (ChainBuilderAgent.DEBUG) { long guiTime =System.currentTimeMillis()-guiStart; System.err.println("time ... | 3,231,633 |
public List childNodes() { return Collections.EMPTY_LIST; } | public List childNodes() { return EMPTY_LIST; } | 3,231,634 |
private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 3,231,635 |
private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 3,231,636 |
private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 3,231,637 |
private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 3,231,638 |
private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 3,231,639 |
public ElementMapping(String namespace, String elementName, String className, String description, boolean rootElement, String initMethod, String destroyMethod, String factoryMethod, String contentProperty, Set attributes, List constructors, List flatProperties, Map maps, Map flatCollections)... | public ElementMapping(String namespace, String elementName, String className, String description, boolean rootElement, String initMethod, String destroyMethod, String factoryMethod, String contentProperty, Set attributes, List constructors, List flatProperties, Map maps, Map flatCollections)... | 3,231,640 |
public List retrieveImagesWithAnnotations(int datasetID, ImageSummary retVal) throws DSOutOfServiceException, DSAccessException { //Create a new dataObject if none provided. //Object used as prototype. if (retVal == null) retVal = new ImageS... | public List retrieveImagesWithAnnotations(int datasetID, ImageSummary retVal) throws DSOutOfServiceException, DSAccessException { //Create a new dataObject if none provided. //Object used as prototype. if (retVal == null) retVal = new ImageS... | 3,231,641 |
public List retrieveImagesWithAnnotations(int datasetID, ImageSummary retVal) throws DSOutOfServiceException, DSAccessException { //Create a new dataObject if none provided. //Object used as prototype. if (retVal == null) retVal = new ImageS... | public List retrieveImagesWithAnnotations(int datasetID, ImageSummary retVal) throws DSOutOfServiceException, DSAccessException { //Create a new dataObject if none provided. //Object used as prototype. if (retVal == null) retVal = new ImageS... | 3,231,642 |
public static void fillImage(Image image, ImageData empty) { //Fill in the data coming from OMEDS object. empty.setID(image.getID()); empty.setName(image.getName()); empty.setDescription(image.getDescription()); empty.setCreated(Timestamp.valueOf(image.getCreated())); empty.setInserted(Timestamp.valueOf(image.g... | public static void fillImage(Image image, ImageData empty) { //Fill in the data coming from OMEDS object. empty.setID(image.getID()); empty.setName(image.getName()); empty.setDescription(image.getDescription()); empty.setCreated(Timestamp.valueOf(image.getCreated())); empty.setInserted(Timestamp.valueOf(image.g... | 3,231,643 |
public static List fillListAnnotatedImages(Dataset dataset, ImageSummary iProto, List annotations, int userID, List images) { Iterator i = dataset.getImages().iterator(); Image image; ImageSummary is; in... | public static List fillListAnnotatedImages(Dataset dataset, ImageSummary iProto, List annotations, List images) { Iterator i = dataset.getImages().iterator(); Image image; ImageSummary is; int id; ... | 3,231,644 |
public static List fillListAnnotatedImages(Dataset dataset, ImageSummary iProto, List annotations, int userID, List images) { Iterator i = dataset.getImages().iterator(); Image image; ImageSummary is; in... | public static List fillListAnnotatedImages(Dataset dataset, ImageSummary iProto, List annotations, int userID, List images) { Iterator i = dataset.getImages().iterator(); Image image; ImageSummary is; in... | 3,231,645 |
public static List fillListAnnotatedDatasets(List projects, ProjectSummary pProto, DatasetSummary dProto, List annotations, int userID, List projectsList) { Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations, ... | public static List fillListAnnotatedDatasets(List projects, ProjectSummary pProto, DatasetSummary dProto, List annotations, List projectsList) { Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations, ... | 3,231,646 |
public static List fillListAnnotatedDatasets(List projects, ProjectSummary pProto, DatasetSummary dProto, List annotations, int userID, List projectsList) { Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations, ... | public static List fillListAnnotatedDatasets(List projects, ProjectSummary pProto, DatasetSummary dProto, List annotations, int userID, List projectsList) { Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations, ... | 3,231,647 |
protected GeneralPath drawBezierCurve(Point2D[] pts) { GeneralPath p = new GeneralPath(); int n = pts.length; //System.err.println("drawing bezier. "+n+" points"); // width of space? int w2=100; double width =w2; double step = 1./width; double t = step; float x; float y; double newx=0; double newy=0; //S... | protectedGeneralPathdrawBezierCurve(Point2D[]pts){ GeneralPathp=newGeneralPath(); intn=pts.length; //System.err.println("drawingbezier."+n+"points"); //widthofspace? intw2=100; doublewidth=w2; doublestep=1./width; doublet=step; floatx; floaty; doublenewx=0; doublenewy=0; //System.err.println("widthis"+wi... | 3,231,648 |
protected GeneralPath drawBezierCurve(Point2D[] pts) { GeneralPath p = new GeneralPath(); int n = pts.length; //System.err.println("drawing bezier. "+n+" points"); // width of space? int w2=100; double width =w2; double step = 1./width; double t = step; float x; float y; double newx=0; double newy=0; //S... | protectedGeneralPathdrawBezierCurve(Point2D[]pts){ GeneralPathp=newGeneralPath(); intn=pts.length; //System.err.println("drawingbezier."+n+"points"); //widthofspace? intw2=100; doublewidth=w2; doublestep=1./width; doublet=step; floatx; floaty; doublenewx=0; doublenewy=0; //System.err.println("widthis"+wi... | 3,231,649 |
public void setEndCoords(float x,float y) { //System.err.println("adding link end point "+x+","+y); setPoint(pointCount,new Point2D.Float(x,y)); setLine(); } | publicif (ChainBuilderAgent.DEBUG) System.err.println("adding link end point "+x+","+y); voidif (ChainBuilderAgent.DEBUG) System.err.println("adding link end point "+x+","+y); setEndCoords(floatif (ChainBuilderAgent.DEBUG) System.err.println("adding link end point "+x+","+y); x,floatif (ChainBuilderAgent.DEBUG) System... | 3,231,650 |
public void setPoint(int index,Point2D pt) { //System.err.println("setting point # "+index+", # of points is "+points.size()); if (points.size() <= index) { points.add(index,pt); } else points.set(index,pt); updateBounds(); } | publicif (ChainBuilderAgent.DEBUG) System.err.println("setting point # "+index+", # of points is "+points.size()); voidif (ChainBuilderAgent.DEBUG) System.err.println("setting point # "+index+", # of points is "+points.size()); setPoint(intif (ChainBuilderAgent.DEBUG) System.err.println("setting point # "+index+", # o... | 3,231,651 |
public void setSelected(boolean v) { //System.err.println(" setting a link to be selected.."); LinkTarget startTarget = getStartLinkTarget(); LinkTarget endTarget = getEndLinkTarget(); startTarget.setSelected(v); endTarget.setSelected(v); targets.removeAllChildren(); if (v == true) { // set up children bulb.... | publicif (ChainBuilderAgent.DEBUG) System.err.println(" setting a link to be selected.."); voidif (ChainBuilderAgent.DEBUG) System.err.println(" setting a link to be selected.."); setSelected(booleanif (ChainBuilderAgent.DEBUG) System.err.println(" setting a link to be selected.."); v)if (ChainBuilderAgent.DEBUG) Syst... | 3,231,652 |
private UIComponent getCategoryEditor() { WebDAVCategories categoriesUI = (WebDAVCategories)findComponent(WebDAVCategories.CATEGORIES_BLOCK_ID); if(categoriesUI==null){ //id on the component is set implicitly categoriesUI=new WebDAVCategories(); //we want to set the categories also on the parent ".article" fol... | private UIComponent getCategoryEditor() { WebDAVCategories categoriesUI = (WebDAVCategories)findComponent(WebDAVCategories.CATEGORIES_BLOCK_ID); if(categoriesUI==null){ //id on the component is set implicitly categoriesUI=new WebDAVCategories(); //we want to set the categories also on the parent ".article" fol... | 3,231,653 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.