bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected Tag findDynamicTag(JellyContext context, StaticTag tag) throws JellyException { // lets see if there's a tag library for this URI... TagLibrary taglib = context.getTagLibrary( tag.getUri() ); if ( taglib instanceof DynamicTagLibrary ) { DynamicTagLibrary dynaLib = (DynamicT... | protected Tag findDynamicTag(JellyContext context, StaticTag tag) throws JellyException { // lets see if there's a tag library for this URI... TagLibrary taglib = context.getTagLibrary( tag.getUri() ); if ( taglib instanceof DynamicTagLibrary ) { DynamicTagLibrary dynaLib = (DynamicT... | 1,111,405 |
private static void startJMXConnectorServer(int port){ try { /* attempt to start the rmi registry */ startRMIRegistry(port); /* start the connector server */ JMXServiceURL url = new JMXServiceURL( "service:jmx:rmi:///jndi/rmi://localhost:" + port + "/t... | private static void startJMXConnectorServer(int port){ try { /* attempt to start the rmi registry */ startRMIRegistry(port); /* start the connector server */ JMXServiceURL url = new JMXServiceURL( "service:jmx:rmi:///jndi/rmi://localhost:" + port + "/t... | 1,111,406 |
private static void startJMXMPConnectorServer(int port){ try { /* start the connector server */ JMXServiceURL url = new JMXServiceURL( "service:jmx:jmxmp://localhost:" + port); JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServe... | private static void startJMXMPConnectorServer(int port){ try { /* start the connector server */ JMXServiceURL url = new JMXServiceURL( "service:jmx:jmxmp://localhost:" + port); JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServe... | 1,111,407 |
public static void main(String[] args) { int exitValue = 0; //String dir = System.getProperty("user.dir"); //String ver = System.getProperty("java.version"); String sep = System.getProperty("file.separator"); String javaHome = System.getProperty("java.home"); //TODO:do some... | public static void main(String[] args) { int exitValue = 0; //String dir = System.getProperty("user.dir"); //String ver = System.getProperty("java.version"); String sep = System.getProperty("file.separator"); String javaHome = System.getProperty("java.home"); //TODO:do some... | 1,111,408 |
public Tag createTag(String name) throws Exception { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFactory ) { Tag... | public Tag createTag(String name, Attributes attributes) throws Exception { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFac... | 1,111,409 |
public Tag createTag(String name) throws Exception { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFactory ) { Tag... | public Tag createTag(String name) throws Exception { Object value = templates.get(name); if ( value instanceof Script ) { Script template = (Script) value; return new DynamicTag(template); } else if ( value instanceof TagFactory ) { Tag... | 1,111,410 |
public TagScript createTagScript(final String name, final Attributes attributes) throws Exception { return new TagScript( new TagFactory() { public Tag createTag() throws Exception { Tag answer = DynamicTagLibrary.this.createTag(name); ... | public TagScript createTagScript(final String name, final Attributes attributes) throws Exception { return new TagScript( new TagFactory() { public Tag createTag() throws Exception { Tag answer = DynamicTagLibrary.this.createTag(name); ... | 1,111,411 |
public Tag createTag() throws Exception { Tag answer = DynamicTagLibrary.this.createTag(name); // delegate to my parent instead if ( answer == null && parent != null ) { return parent.createTag(name, attr... | public Tag createTag() throws Exception { Tag answer = DynamicTagLibrary.this.createTag(name); // delegate to my parent instead if ( answer == null && parent != null ) { return parent.createTag(name, attr... | 1,111,412 |
private static JFreeChart createChart(final PieDataset dataset) { final JFreeChart chart = ChartFactory.createPieChart( null, // chart title dataset, // data false, // include legend false, false); // E6EEF9 chart.setBa... | private static JFreeChart createChart(final PieDataset dataset) { final JFreeChart chart = ChartFactory.createPieChart( null, // chart title dataset, // data false, // include legend false, false); // E6EEF9 chart.setBa... | 1,111,413 |
public static String drawComponent(WebContext context, HttpServletRequest request, String dashboardId, String componentId){ DashboardContext dashboardContext = new DashboardContextImpl(context, request); DashboardConfig dashboardConfig = DashboardRepository.getInstance().get(dashboardId); ... | public static String drawComponent(WebContext context, HttpServletRequest request, String dashboardId, String componentId){ DashboardConfig dashboardConfig = DashboardRepository.getInstance().get(dashboardId); assert dashboardConfig != null : "Error retrieving dashboard details. id=... | 1,111,415 |
public String makeDropForeignKeySQL(String fkCatalog, String fkSchema, String fkTable, String fkName) { return "ALTER TABLE " +DDLUtils.toQualifiedName(fkCatalog, fkSchema, fkTable) +" DROP CONSTRAINT " +fkName; } | public String makeDropForeignKeySQL(String fkTable, String fkName) { return "ALTER TABLE " +DDLUtils.toQualifiedName(fkCatalog, fkSchema, fkTable) +" DROP CONSTRAINT " +fkName; } | 1,111,417 |
public String makeDropForeignKeySQL(String fkCatalog, String fkSchema, String fkTable, String fkName) { return "ALTER TABLE " +DDLUtils.toQualifiedName(fkCatalog, fkSchema, fkTable) +" DROP CONSTRAINT " +fkName; } | public String makeDropForeignKeySQL(String fkCatalog, String fkSchema, String fkTable, String fkName) { return "ALTER TABLE " +DDLUtils.toQualifiedName(fkCatalog, fkSchema, fkTable) +" DROP CONSTRAINT " +fkName; } | 1,111,418 |
public void modifyColumn(SQLColumn c) throws ArchitectDiffException { Map colNameMap = new HashMap(); SQLTable t = c.getParentTable(); print("\n ALTER TABLE "); print( DDLUtils.toQualifiedName(t.getCatalogName(),t.getSchemaName(),t.getPhysicalName()) ); print(" MODIFY "); print(columnDefinition(c,colNameMap)... | public void modifyColumn(SQLColumn c) { Map colNameMap = new HashMap(); SQLTable t = c.getParentTable(); print("\n ALTER TABLE "); print( DDLUtils.toQualifiedName(t.getCatalogName(),t.getSchemaName(),t.getPhysicalName()) ); print(" MODIFY "); print(columnDefinition(c,colNameMap)); endStatement(DDLStatement.... | 1,111,419 |
public void modifyColumn(SQLColumn c) throws ArchitectDiffException { Map colNameMap = new HashMap(); SQLTable t = c.getParentTable(); print("\n ALTER TABLE "); print( DDLUtils.toQualifiedName(t.getCatalogName(),t.getSchemaName(),t.getPhysicalName()) ); print(" MODIFY "); print(columnDefinition(c,colNameMap)... | public void modifyColumn(SQLColumn c) throws ArchitectDiffException { Map colNameMap = new HashMap(); SQLTable t = c.getParentTable(); print("\n ALTER TABLE "); print(toQualifiedName(t.getPhysicalName())); print(" MODIFY "); print(columnDefinition(c,colNameMap)); endStatement(DDLStatement.StatementType.MODI... | 1,111,420 |
public String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; if (logger.isDebugEnabled()) logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_').toUpperCase(); if (logger.isDebugEnable... | private String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; if (logger.isDebugEnabled()) logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_').toUpperCase(); if (logger.isDebugEnabl... | 1,111,421 |
public ExportDialog(HaploView h){ super(h, "Export Data"); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel tabPanel = new JPanel(); int currTab = hv.tabs.getSelectedIndex(); tabPanel.setBorder(new TitledBo... | public ExportDialog(HaploView h){ super(h, "Export Data"); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel tabPanel = new JPanel(); int currTab = hv.tabs.getSelectedIndex(); tabPanel.setBorder(new TitledBo... | 1,111,422 |
public void doTag(XMLOutput output) throws Exception { // project.clear(); context.setVariable( "org.apache.commons.jelly.werkz.Project", project ); getBody().run(context, output); } | public void doTag(XMLOutput output) throws Exception { // project.clear(); context.setVariable( "org.apache.commons.jelly.werkz.Project", project ); getBody().run(context, output); } | 1,111,423 |
public void doTag(XMLOutput output) throws JellyTagException { try { JellyInterpreter interpreter = BeanShellExpressionFactory.getInterpreter(context); // @todo it'd be really nice to create a JellyNameSpace to pass into // this method so that any variables declared b... | public void doTag(XMLOutput output) throws JellyTagException { try { JellyInterpreter interpreter = BeanShellExpressionFactory.getInterpreter(context); // @todo it'd be really nice to create a JellyNameSpace to pass into // this method so that any variables declared b... | 1,111,426 |
public void doTag(XMLOutput output) throws Exception { if (log.isDebugEnabled()) log.debug("********Executing DummyTag Body*********"); if (m_classToBeLoaded != null) { try { Class clazz = getClass().getClassLoader().loadClass(m_classToBeLoaded);... | public void doTag(XMLOutput output) throws JellyTagException { if (log.isDebugEnabled()) log.debug("********Executing DummyTag Body*********"); if (m_classToBeLoaded != null) { try { Class clazz = getClass().getClassLoader().loadClass(m_classToBe... | 1,111,427 |
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | 1,111,428 |
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | 1,111,429 |
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | 1,111,430 |
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | 1,111,431 |
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | 1,111,432 |
private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | private MarkerResult checkMarker(int loc)throws PedFileException{ MarkerResult result = new MarkerResult(); Individual currentInd; //int indivgeno=0, int missing=0, founderHetCount=0, mendErrNum=0; int allele1=0, allele2=0, hom=0, het=0; //Hashtable allgenos = new Hashtable... | 1,111,433 |
public boolean isQualified(ApplicationConfig applicationConfig) { ServerConnection serverConnection = null; try { serverConnection = ServerConnector.getServerConnection(applicationConfig); String value = (String)serverConnection.getAttribute(objectName, ... | public boolean isQualified(ApplicationConfig applicationConfig) { ServerConnection serverConnection = null; try { serverConnection = ServerConnector.getServerConnection(applicationConfig); String value = (String)serverConnection.getAttribute(objectName, ... | 1,111,434 |
public StylesheetTag() { // add default actions stylesheet.setValueOfAction( new Action() { public void run(Node node) throws Exception { String text = node.getStringValue(); if ( text != null && text.length() > 0 ) { ... | public StylesheetTag() { // add default actions stylesheet.setValueOfAction( new Action() { public void run(Node node) throws Exception { String text = node.getStringValue(); if ( text != null && text.length() > 0 ) { ... | 1,111,436 |
public void addTemplate( Rule rule ) { stylesheet.addRule( rule ); } | public void addTemplate( Rule rule ) { getStylesheet().addRule( rule ); } | 1,111,437 |
public void doTag(XMLOutput output) throws Exception { // for use by inner classes this.output = output; try { // run the body to add the rules getBody().run(context, output); if ( log.isDebugEnabled() ) { log.debug( "A... | public void doTag(XMLOutput output) throws Exception { // for use by inner classes this.output = output; try { // run the body to add the rules getBody().run(context, output); if ( log.isDebugEnabled() ) { log.debug( "A... | 1,111,438 |
public void setVariables(Map variables) { this.variables = variables; } | public void setVariables(Map variables) { this.variables.putAll( variables ); } | 1,111,440 |
public void doTag(XMLOutput output) throws Exception { if (test != null) { if (test.evaluateAsBoolean(context)) { getBody().run(context, output); } } else { throw new MissingAttributeException( "test" ); } } | public void doTag(XMLOutput output) throws Exception { if (test != null) { if (test.evaluateAsBoolean(context)) { invokeBody(output); } } else { throw new MissingAttributeException( "test" ); } } | 1,111,442 |
public InsertColumnAction() { super("Insert Column", ASUtils.createIcon("NewColumn", "Insert Column", ArchitectFrame.getMainInstance().sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); } | public InsertColumnAction() { super("New Column", ASUtils.createIcon("NewColumn", "Insert Column", ArchitectFrame.getMainInstance().sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); } | 1,111,443 |
public InsertColumnAction() { super("Insert Column", ASUtils.createIcon("NewColumn", "Insert Column", ArchitectFrame.getMainInstance().sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); } | public InsertColumnAction() { super("New Column", ASUtils.createIcon("NewColumn", "New Column", ArchitectFrame.getMainInstance().sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); } | 1,111,444 |
Haplotype[][] generateCrossovers(Haplotype[][] haplos) throws HaploViewException{ Vector crossBlock = new Vector(); double CROSSOVER_THRESHOLD = 0.01; //to what percentage do we want to consider crossings? if (haplos.length == 0) return null; //seed first block with ordering numbers ... | Haplotype[][] generateCrossovers(Haplotype[][] haplos) throws HaploViewException{ Vector crossBlock = new Vector(); double CROSSOVER_THRESHOLD = 0.01; //to what percentage do we want to consider crossings? if (haplos.length == 0) return null; //seed first block with ordering numbers ... | 1,111,446 |
Haplotype[][] generateHaplotypes(Vector blocks, int hapthresh) throws HaploViewException{ //TODO: output indiv hap estimates Haplotype[][] results = new Haplotype[blocks.size()][]; //String raw = new String(); //String currentLine; this.totalBlocks = blocks.size(); this.blo... | Haplotype[][] generateHaplotypes(Vector blocks, int hapthresh, boolean crossover) throws HaploViewException{ //TODO: output indiv hap estimates Haplotype[][] results = new Haplotype[blocks.size()][]; //String raw = new String(); //String currentLine; this.totalBlocks = blocks.size... | 1,111,447 |
PokeDBThread (SQLDatabase sd) { super(); this.sd = sd; } | PokeDBThread (SQLObject so) { super(); this.sd = sd; } | 1,111,449 |
PokeDBThread (SQLDatabase sd) { super(); this.sd = sd; } | PokeDBThread (SQLDatabase sd) { super(); this.so = so; } | 1,111,450 |
public void run() { try { ArchitectUtils.pokeDatabase(sd); } catch (ArchitectException ex) { logger.error("problem poking database " + sd.getName(),ex); } logger.debug("finished poking database " + sd.getName()); } | public void run() { try { ArchitectUtils.pokeDatabase(so); } catch (ArchitectException ex) { logger.error("problem poking database " + sd.getName(),ex); } logger.debug("finished poking database " + sd.getName()); } | 1,111,451 |
public void run() { try { ArchitectUtils.pokeDatabase(sd); } catch (ArchitectException ex) { logger.error("problem poking database " + sd.getName(),ex); } logger.debug("finished poking database " + sd.getName()); } | public void run() { try { ArchitectUtils.pokeDatabase(sd); } catch (ArchitectException ex) { logger.error("problem poking database " + so.getName(),ex); } logger.debug("finished poking database " + sd.getName()); } | 1,111,452 |
public void run() { try { ArchitectUtils.pokeDatabase(sd); } catch (ArchitectException ex) { logger.error("problem poking database " + sd.getName(),ex); } logger.debug("finished poking database " + sd.getName()); } | public void run() { try { ArchitectUtils.pokeDatabase(sd); } catch (ArchitectException ex) { logger.error("problem poking database " + sd.getName(),ex); } logger.debug("finished poking database " + so.getName()); } | 1,111,453 |
public void run(){ while(true){ try { Thread.sleep(pollingInterval * 1000); } catch (InterruptedException e) { } /* get new data */ poll(); /* repaint */ GraphApplet.this.repain... | public void run(){ while(true){ try { Thread.sleep(pollingInterval * 1000); } catch (InterruptedException e) { } /* get new data */ poll(); /* repaint */ } } | 1,111,454 |
public void doTag(XMLOutput output) throws Exception { if ( var == null ) { var = "org.apache.commons.jelly.ojb.Broker"; } if ( broker != null ) { context.setVariable(var, broker); getBody().run(context, output); } else ... | public void doTag(XMLOutput output) throws Exception { if ( var == null ) { var = "org.apache.commons.jelly.ojb.Broker"; } if ( broker != null ) { context.setVariable(var, broker); invokeBody(output); } else { ... | 1,111,458 |
public void actionPerformed(ActionEvent evt) { SQLTable t = new SQLTable(); t.initFolders(); t.setTableName("New_Table"); TablePane tp = new TablePane(t); pp.addFloating(tp); } | public void actionPerformed(ActionEvent evt) { SQLTable t = new SQLTable(); t.initFolders(true); t.setTableName("New_Table"); TablePane tp = new TablePane(t); pp.addFloating(tp); } | 1,111,459 |
public String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_').toUpperCase(); logger.debug("after replace of spaces: " + ident); /... | public String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_'); logger.debug("after replace of spaces: " + ident); // see if it's ... | 1,111,460 |
public String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_').toUpperCase(); logger.debug("after replace of spaces: " + ident); /... | public String toIdentifier(String logicalName, String physicalName) { // replace spaces with underscores if (logicalName == null) return null; logger.debug("getting physical name for: " + logicalName); String ident = logicalName.replace(' ','_').toUpperCase(); logger.debug("after replace of spaces: " + ident); /... | 1,111,461 |
private void init() { variables.put("context", this); variables.put("systemScope", System.getProperties()); } | private void init() { variables.put("context", this); variables.put("systemScope", System.getProperties()); } | 1,111,462 |
private int getNumOfFamTrio(Enumeration famList, Hashtable parentgeno, Hashtable kidgeno){ //int totalfams = 0; int tdtfams =0; while(famList.hasMoreElements()){ //totalfams++; int parentGeno=0, kidsGeno =0; String key = (String)famList.nextElement(); ... | private int getNumOfFamTrio(Enumeration famList, Hashtable parentgeno, Hashtable kidgeno){ //int totalfams = 0; int tdtfams =0; while(famList.hasMoreElements()){ //totalfams++; int parentGeno=0, kidsGeno =0; String key = (String)famList.nextElement(); ... | 1,111,463 |
public Tagger(Vector s, Vector include, Vector exclude, AlleleCorrelator ac){ this(s,include,exclude,ac,DEFAULT_RSQ_CUTOFF,AGGRESSIVE_TRIPLE); } | public Tagger(Vector s, Vector include, Vector exclude, AlleleCorrelator ac){ this(s,include,exclude,ac,DEFAULT_RSQ_CUTOFF,AGGRESSIVE_TRIPLE, DEFAULT_MAXDIST); } | 1,111,468 |
public Vector findTags() { tags = new Vector(); untagged = new Vector(); taggedSoFar = 0; //potentialTagsHash stores the PotentialTag objects keyed on the corresponding sequences Hashtable potentialTagHash = new Hashtable(); PotentialTagComparator ptcomp = new PotentialTagC... | public Vector findTags() { tags = new Vector(); untagged = new Vector(); taggedSoFar = 0; //potentialTagsHash stores the PotentialTag objects keyed on the corresponding sequences Hashtable potentialTagHash = new Hashtable(); PotentialTagComparator ptcomp = new PotentialTagC... | 1,111,469 |
public ApplicationDowntimeHistory getDowntimeHistory(ApplicationConfig appConfig){ if(appConfig == null){ throw new NullPointerException("appConfig must be specified"); } ApplicationDowntimeHistory history = downtimesMap.get(appConfig); if(history == null){ /* it is... | public ApplicationDowntimeHistory getDowntimeHistory(ApplicationConfig appConfig){ if(appConfig == null){ throw new NullPointerException("appConfig must be specified"); } ApplicationDowntimeHistory history = downtimesMap.get(appConfig); if(history == null){ /* it is... | 1,111,470 |
public void colorDPrime(int scheme){ PairwiseLinkage dPrime[][] = theData.filteredDPrimeTable; if (scheme == STD_SCHEME){ // set coloring based on LOD and D' for (int i = 0; i < dPrime.length; i++){ for (int j = i+1; j < dPrime[i].length; j++){ P... | public void colorDPrime(int scheme){ PairwiseLinkage dPrime[][] = theData.filteredDPrimeTable; if (scheme == STD_SCHEME){ // set coloring based on LOD and D' for (int i = 0; i < dPrime.length; i++){ for (int j = i+1; j < dPrime[i].length; j++){ P... | 1,111,472 |
public void colorDPrime(int scheme){ PairwiseLinkage dPrime[][] = theData.filteredDPrimeTable; if (scheme == STD_SCHEME){ // set coloring based on LOD and D' for (int i = 0; i < dPrime.length; i++){ for (int j = i+1; j < dPrime[i].length; j++){ P... | public void colorDPrime(int scheme){ PairwiseLinkage dPrime[][] = theData.filteredDPrimeTable; if (scheme == STD_SCHEME){ // set coloring based on LOD and D' for (int i = 0; i < dPrime.length; i++){ for (int j = i+1; j < dPrime[i].length; j++){ P... | 1,111,473 |
public void handleEvent(Event event) { if(sourceConfig.getApplicationConfig().equals(event.getApplicationConfig()) && event instanceof ApplicationDownEvent){ handler.handle(new AlertInfo()); } } | public void handleEvent(Event event) { if(sourceConfig.getApplicationConfig().equals(event.getApplicationConfig()) && event instanceof ApplicationDownEvent){ handler.handle(new AlertInfo()); } } | 1,111,474 |
public void register(AlertHandler handler, String alertId, String alertName) { this.handler = handler; ApplicationDowntimeService.getInstance().addListener(new ApplicationDowntimeEventListener()); } | public void register(AlertHandler handler, String alertId, String alertName) { this.handler = handler; EventSystem.getInstance().addListener(new ApplicationDowntimeEventListener(), ApplicationDownEvent.class); } | 1,111,475 |
private static void authenticate(ServiceContextImpl context, String className, String methodName){ User user = context.getUser(); if(user == null){ /* only the login method in AuthService is allowed without ... | private static void authenticate(ServiceContextImpl context, String className, String methodName){ User user = context.getUser(); if(user == null){ /* only the login method in AuthService is allowed without ... | 1,111,477 |
private static void authenticate(ServiceContextImpl context, String className, String methodName){ User user = context.getUser(); if(user == null){ /* only the login method in AuthService is allowed without ... | private static void authenticate(ServiceContextImpl context, String className, String methodName){ User user = context.getUser(); if(user == null){ /* only the login method in AuthService is allowed without ... | 1,111,478 |
public void parseLinkage(Vector pedigrees) throws PedFileException { int colNum = -1; boolean withOptionalColumn = false; int numLines = pedigrees.size(); Individual ind; this.order = new Vector(); for(int k=0; k<numLines; k++){ StringTokenizer tokenizer = new St... | public void parseLinkage(Vector pedigrees) throws PedFileException { int colNum = -1; boolean withOptionalColumn = false; int numLines = pedigrees.size(); Individual ind; this.order = new Vector(); for(int k=0; k<numLines; k++){ StringTokenizer tokenizer = new St... | 1,111,479 |
public void parseLinkage(Vector pedigrees) throws PedFileException { int colNum = -1; boolean withOptionalColumn = false; int numLines = pedigrees.size(); Individual ind; this.order = new Vector(); for(int k=0; k<numLines; k++){ StringTokenizer tokenizer = new St... | public void parseLinkage(Vector pedigrees) throws PedFileException { int colNum = -1; boolean withOptionalColumn = false; int numLines = pedigrees.size(); Individual ind; this.order = new Vector(); for(int k=0; k<numLines; k++){ StringTokenizer tokenizer = new St... | 1,111,480 |
public void clearDriverJarList() { driverJarList.clear(); } | public void clearDriverJarList() { driverJarList.clear(); } | 1,111,481 |
public boolean removeDriverJar(String fullPath) { return driverJarList.remove(fullPath); } | public boolean removeDriverJar(String fullPath) { return driverJarList.remove(fullPath); } | 1,111,482 |
public Date getDate() { return date; } | public Date getDate() { return date != null ? (Date)date.clone() : null; } | 1,111,483 |
private void createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == Adm... | private boolean createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == ... | 1,111,484 |
private void createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == Adm... | private void createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == Adm... | 1,111,485 |
private void createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == Adm... | private void createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == Adm... | 1,111,486 |
private void createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == Adm... | private void createDatabase() { // Ask for the admin password PVDatabase db = new PVDatabase(); String user = ""; String passwd = ""; if ( dbServerBtn.isSelected() ) { AdminLoginDlg loginDlg = new AdminLoginDlg( this, true ); if ( loginDlg.showDialog() == Adm... | 1,111,487 |
public int doStartTag() throws JspException{ HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); WebContext context = null; try{ context = WebContext.get(request); ApplicationConfig appConfig = context.getApplicationConfig(); ... | public int doStartTag() throws JspException{ HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); WebContext context = null; try{ context = WebContext.get(request); ApplicationConfig appConfig = context.getApplicationConfig(); ... | 1,111,489 |
public String getCatalogSeparator() throws SQLException { if (catalogTerm == null) { throw new SQLException("Catalogs are not supported"); } else { return "."; } } | public String getCatalogSeparator() throws SQLException { if (getCatalogTerm() == null) { throw new SQLException("Catalogs are not supported"); } else { return "."; } } | 1,111,490 |
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { // TODO Auto-generated method stub return null; } | public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { // TODO Auto-generated method stub MockJDBCResultSet rs = new MockJDBCResultSet(null, 22); rs.setColumnName(1, "TABLE_CAT"); rs.setColumnName(2, "TABLE_SCHEM"); rs.setColumnN... | 1,111,492 |
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { throw new UnsupportedOperationException("Not implemented"); } | public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { MockJDBCResultSet rs = new MockJDBCResultSet(null, 14); rs.setColumnName(1, "PKTABLE_CAT"); rs.setColumnName(2, "PKTABLE_SCHEM"); rs.setColumnName(3, "PKTABLE_NAME"); rs.setColumnName(4, "PKCOLUMN_NAME"); rs.setColum... | 1,111,493 |
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { throw new UnsupportedOperationException("Not implemented"); } | public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { MockJDBCResultSet rs = new MockJDBCResultSet(null, 14); rs.setColumnName(1, "PKTABLE_CAT"); rs.setColumnName(2, "PKTABLE_SCHEM"); rs.setColumnName(3, "PKTABLE_NAME"); rs.setColumnName(4, "PKCOLUMN_NAME"); rs.setColum... | 1,111,494 |
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { throw new UnsupportedOperationException("Not implemented"); } | public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { MockJDBCResultSet rs = new MockJDBCResultSet(null, 6); rs.setColumnName(1, "TABLE_CAT"); rs.setColumnName(2, "TABLE_SCHEM"); rs.setColumnName(3, "TABLE_NAME"); rs.setColumnName(4, "COLUMN_NAME"); rs.setColumnName(5, "... | 1,111,495 |
public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { // no schemas. return emp... | public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { // no schemas. return emp... | 1,111,497 |
public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { // no schemas. return emp... | public ResultSet getSchemas() throws SQLException { String catalogList = connection.getProperties().getProperty("catalogs"); MockJDBCResultSet rs = new MockJDBCResultSet(null, 2); rs.setColumnName(1, "TABLE_SCHEM"); rs.setColumnName(2, "TABLE_CATALOG"); if (getSchemaTerm() == null) { // no schemas. return emp... | 1,111,499 |
public ResultSet getTableTypes() throws SQLException { // TODO Auto-generated method stub return null; } | public ResultSet getTableTypes() throws SQLException { // TODO Auto-generated method stub MockJDBCResultSet rs = new MockJDBCResultSet(null, 1); rs.setColumnName(1, "TABLE_TYPE"); rs.updateObject(1, "TABLE"); rs.beforeFirst(); return rs; } | 1,111,500 |
public ResultSet getTables(String catalogNamePattern, String schemaNamePattern, String tableNamePattern, String[] types) throws SQLException { MockJDBCResultSet rs = new MockJDBCResultSet(null, 10); rs.setColumnName(1, "TABLE_CAT"); rs.setColumnName(2, "TABLE_SCHEM"); rs.setColumnName(3, "TABLE_NAME"); rs.set... | public ResultSet getTables(String catalogNamePattern, String schemaNamePattern, String tableNamePattern, String[] types) throws SQLException { MockJDBCResultSet rs = new MockJDBCResultSet(null, 10); rs.setColumnName(1, "TABLE_CAT"); rs.setColumnName(2, "TABLE_SCHEM"); rs.setColumnName(3, "TABLE_NAME"); rs.set... | 1,111,501 |
public void mouseClicked(MouseEvent e) { if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { int clickX = e.getX(); int clickY = e.getY(); if (showWM && wmInteriorRect.contains(clickX,clickY)){ //convert a click on the ... | public void mouseClicked(MouseEvent e) { if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { int clickX = e.getX(); int clickY = e.getY(); if (showWM && wmInteriorRect.contains(clickX,clickY)){ //convert a click on the ... | 1,111,504 |
public void mouseReleased(MouseEvent e) { //remove popped up window if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK){ popupExists = false; repaint(); //resize window once user has ceased dragging } else if ((e.getModifiers(... | public void mouseReleased(MouseEvent e) { //remove popped up window if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK){ popupExists = false; repaint(); //resize window once user has ceased dragging } else if ((e.getModifiers(... | 1,111,505 |
void makeDialog(SQLTable st, int colIdx) throws ArchitectException { if (editDialog != null) { columnEditPanel.setModel(st); columnEditPanel.selectColumn(colIdx); editDialog.setTitle("Column Properties of "+st.getName()); editDialog.setVisible(true); editDialog.requestFocus(); } else { JPanel panel = new... | private void makeDialog(SQLTable st, int colIdx) throws ArchitectException { if (editDialog != null) { columnEditPanel.setModel(st); columnEditPanel.selectColumn(colIdx); editDialog.setTitle("Column Properties of "+st.getName()); editDialog.setVisible(true); editDialog.requestFocus(); } else { JPanel pan... | 1,111,506 |
public void doTag(XMLOutput output) throws Exception { if (log.isDebugEnabled()) { log.debug("running with items: " + items); } if (items != null) { Iterator iter = items.evaluateAsIterator(context); if (log.isDebugEnabled()) { log.debug("Iteratin... | public void doTag(XMLOutput output) throws Exception { if (log.isDebugEnabled()) { log.debug("running with items: " + items); } if (items != null) { Iterator iter = items.evaluateAsIterator(context); if (log.isDebugEnabled()) { log.debug("Iteratin... | 1,111,508 |
public void actionPerformed(ActionEvent evt ) { manager.redo(); } | public void actionPerformed(ActionEvent evt ) { if (logger.isDebugEnabled()) { logger.debug(manager); int choice = JOptionPane.showConfirmDialog(null, "Undo manager state dumped to logger." + "\n\n" + "Proceed with redo?"); if (choice == JOptionPane.YES_OPTION) { manager.redo(); } } else { manager.redo(); } } | 1,111,510 |
public Object findVariable(String name) { Object answer = variables.get(name); if ( answer == null && parent != null ) { return parent.findVariable(name); } return answer; } | public Object findVariable(String name) { Object answer = variables.get(name); if ( answer == null && parent != null ) { answer = parent.findVariable(name); if ( answer == null ) { try { answer = System.getProperty(name); } catch (Throwable t) { } } } return answer; } | 1,111,511 |
public HaploView(){ //set defaults Options.setMissingThreshold(1.0); Options.setSpacingThreshold(0.0); Options.setAssocTest(0); try{ fc = new JFileChooser(System.getProperty("user.dir")); }catch(NullPointerException n){ try{ UIManager.se... | public HaploView(){ //set defaults Options.setMissingThreshold(1.0); Options.setSpacingThreshold(0.0); Options.setAssocTest(ASSOC_NONE); Options.setHaplotypeDisplayThreshold(1); Options.setMaxDistance(500); try{ fc = new JFileChooser(System.getProperty("user.dir")); ... | 1,111,513 |
public static void main(String[] args) { boolean nogui = false; //HaploView window; for(int i = 0;i<args.length;i++) { if(args[i].equals("-n") || args[i].equals("-h") || args[i].equals("-help")) { nogui = true; } } if(nogui) { HaploT... | public static void main(String[] args) { boolean nogui = false; //HaploView window; for(int i = 0;i<args.length;i++) { if(args[i].equals("-n") || args[i].equals("-h") || args[i].equals("-help")) { nogui = true; } } if(nogui) { HaploT... | 1,111,514 |
public static void main(String[] args) { boolean nogui = false; //HaploView window; for(int i = 0;i<args.length;i++) { if(args[i].equals("-n") || args[i].equals("-h") || args[i].equals("-help")) { nogui = true; } } if(nogui) { HaploT... | public static void main(String[] args) { boolean nogui = false; //HaploView window; for(int i = 0;i<args.length;i++) { if(args[i].equals("-n") || args[i].equals("-h") || args[i].equals("-help")) { nogui = true; } } if(nogui) { HaploT... | 1,111,515 |
void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | 1,111,516 |
void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | 1,111,517 |
void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | 1,111,518 |
void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | void readGenotypes(String[] inputOptions, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is eit... | 1,111,519 |
public Object construct(){ dPrimeDisplay=null; changeKey(1); theData.generateDPrimeTable(); theData.guessBlocks(BLOX_GABRIEL); //theData.guessBlocks(BLOX_NONE); //for debugging, doesn't call blocks at first ... | public Object construct(){ dPrimeDisplay=null; changeKey(1); theData.generateDPrimeTable(); theData.guessBlocks(BLOX_GABRIEL); //theData.guessBlocks(BLOX_NONE); //for debugging, doesn't call blocks at first ... | 1,111,520 |
public Object construct(){ dPrimeDisplay=null; changeKey(1); theData.generateDPrimeTable(); theData.guessBlocks(BLOX_GABRIEL); //theData.guessBlocks(BLOX_NONE); //for debugging, doesn't call blocks at first ... | public Object construct(){ dPrimeDisplay=null; changeKey(1); theData.generateDPrimeTable(); theData.guessBlocks(BLOX_GABRIEL); //theData.guessBlocks(BLOX_NONE); //for debugging, doesn't call blocks at first ... | 1,111,521 |
public boolean applyChanges() { wizard.addSourceDatabases(wizard.getSourceTables()); Map ddlGeneratorMap = ArchitectUtils.getDriverDDLGeneratorMap(); Class selectedGeneratorClass = (Class) ddlGeneratorMap.get( wizard.getPlExport().getTargetDataSource().getDriverClass()); if (selectedGeneratorClass == null) { ... | public boolean applyChanges() { wizard.addSourceDatabases(wizard.getSourceTables()); Map ddlGeneratorMap = ArchitectUtils.getDriverDDLGeneratorMap(); Class selectedGeneratorClass = (Class) ddlGeneratorMap.get( wizard.getPlExport().getTargetDataSource().getDriverClass()); if (selectedGeneratorClass == null) { ... | 1,111,522 |
public void fakeStructureChanged(String string) { fireDbStructureChanged(string); } | public void fakeStructureChanged(String string) { fireDbStructureChanged(string); } | 1,111,523 |
public final void testSQLObjectListenerHandling() throws ArchitectException { SQLObjectListener t = new TestListener(); TestListener tt = (TestListener)t; target.addSQLObjectListener(t); allowsChildren = true; tt.setChildInserted(false); final SQLObjectImpl objectImpl = new SQLObjectImpl(); target.addChild(... | public final void testSQLObjectListenerHandling() throws ArchitectException { SQLObjectListener t = new TestListener(); TestListener tt = (TestListener)t; target.addSQLObjectListener(t); allowsChildren = true; tt.setChildInserted(false); final SQLObjectImpl objectImpl = new SQLObjectImpl(); target.addChild(... | 1,111,524 |
public UserSettings read(ArchitectSession session) throws IOException { Preferences prefs = ArchitectFrame.getMainInstance().getPrefs(); UserSettings userSettings = new UserSettings(); List<String> driverJarNameList = session.getDriverJarList(); int i; for (i = 0; i <= 99; i++) { String jarName = prefs.get(... | public UserSettings read(ArchitectSession session) throws IOException { Preferences prefs = ArchitectFrame.getMainInstance().getPrefs(); UserSettings userSettings = new UserSettings(); int i; for (i = 0; i <= 99; i++) { String jarName = prefs.get(jarFilePrefName(i), null); if (jarName == null) { break... | 1,111,525 |
public UserSettings read(ArchitectSession session) throws IOException { Preferences prefs = ArchitectFrame.getMainInstance().getPrefs(); UserSettings userSettings = new UserSettings(); List<String> driverJarNameList = session.getDriverJarList(); int i; for (i = 0; i <= 99; i++) { String jarName = prefs.get(... | public UserSettings read(ArchitectSession session) throws IOException { Preferences prefs = ArchitectFrame.getMainInstance().getPrefs(); UserSettings userSettings = new UserSettings(); List<String> driverJarNameList = session.getDriverJarList(); int i; for (i = 0; i <= 99; i++) { String jarName = prefs.get(... | 1,111,526 |
public void write(ArchitectSession session) throws ArchitectException { Preferences prefs = ArchitectFrame.getMainInstance().getPrefs(); UserSettings userSettings = session.getUserSettings(); List<String> driverJarList = session.getDriverJarList(); Iterator<String> it = driverJarList.iterator(); for (int i = ... | public void write(ArchitectSession session) throws ArchitectException { Preferences prefs = ArchitectFrame.getMainInstance().getPrefs(); UserSettings userSettings = session.getUserSettings(); List<String> driverJarList = session.getDriverJarList(); Iterator<String> it = driverJarList.iterator(); for (int i = ... | 1,111,528 |
public boolean login() { m_telnetClient = new TelnetClient(); try { m_telnetClient.connect(m_host, m_port); m_reader = new BufferedReader(new InputStreamReader(m_telnetClient.getInputStream())); m_writer = new OutputStreamWriter(m_telnetClient.getOutputStream()); ... | public boolean login() { m_telnetClient = new TelnetClient(); try { m_telnetClient.connect(m_host, m_port); m_reader = new BufferedReader(new InputStreamReader(new BufferedInputStream(m_telnetClient.getInputStream(), 1024), "ASCII")); m_writer = new OutputStreamWriter(... | 1,111,530 |
public List readAnswer() { long startTime = System.currentTimeMillis(); try { while (!m_reader.ready() && startTime + 100 > System.currentTimeMillis()) { try { Thread.sleep(20); } catch (InterruptedException e) { break; ... | public List readAnswer() { long startTime = System.currentTimeMillis(); try { while (!m_reader.ready() && startTime + 100 > System.currentTimeMillis()) { try { Thread.sleep(20); } catch (InterruptedException e) { break; ... | 1,111,532 |
public Dimension getPreferredSize(JComponent jc) { TablePane c = (TablePane) jc; SQLTable table = c.getModel(); if (table == null) return null; int height = 0; int width = 0; try { Insets insets = c.getInsets(); java.util.List columnList = table.getColumns(); int cols = columnList.size(); Font font = c.g... | public Dimension getPreferredSize(JComponent jc) { TablePane c = (TablePane) jc; SQLTable table = c.getModel(); if (table == null) return null; int height = 0; int width = 0; try { Insets insets = c.getInsets(); java.util.List columnList = table.getColumns(); int cols = columnList.size(); Font font = c.g... | 1,111,534 |
public boolean contains(JComponent c, int x, int y) { if (path == null) { return false; } else { Point loc = relationship.getLocation(); return path.intersects(x - radius + loc.x, y - radius + loc.y, radius*2, radius*2); } } | public boolean contains(JComponent c, int x, int y) { if (containmentPath == null) { return false; } else { Point loc = relationship.getLocation(); return path.intersects(x - radius + loc.x, y - radius + loc.y, radius*2, radius*2); } } | 1,111,535 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.