bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r... | public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create relationship c... | 1,111,646 |
public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r... | public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); int pkx = Integer.parseInt(attributes.getValue("pk-x")); int pky = Integer.pars... | 1,111,647 |
public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r... | public Object createObject(Attributes attributes) { try { SQLRelationship rel = (SQLRelationship) objectIdMap.get(attributes.getValue("relationship-ref")); Relationship r = new Relationship(playPen, rel); playPen.add(r); return r; } catch (ArchitectException e) { logger.error("Couldn't create r... | 1,111,648 |
public void save(ProgressMonitor pm) throws IOException, ArchitectException { out = new PrintWriter(new BufferedWriter(new FileWriter(file))); objectIdMap = new HashMap(); dbcsIdMap = new HashMap(); indent = 0; this.pm = pm; pm.setMinimum(0); int pmMax = countSourceTables((SQLObject) sourceDatabases.getModel().... | public void save(ProgressMonitor pm) throws IOException, ArchitectException { out = new PrintWriter(new BufferedWriter(new FileWriter(file))); objectIdMap = new HashMap(); dbcsIdMap = new HashMap(); indent = 0; this.pm = pm; pm.setMinimum(0); int pmMax = countSourceTables((SQLObject) sourceDatabases.getModel().... | 1,111,650 |
protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr... | protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr... | 1,111,651 |
protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr... | protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr... | 1,111,652 |
protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr... | protected void savePlayPen() throws IOException, ArchitectException { println("<play-pen>"); indent++; int n = playPen.getComponentCount(); for (int i = 0; i < n; i++) { if (playPen.getComponent(i) instanceof TablePane) { TablePane tp = (TablePane) playPen.getComponent(i); Point p = tp.getLocation(); pr... | 1,111,653 |
public void testExample1() throws Exception { Document document = runScript( "src/test/org/apache/commons/jelly/jsl/example.jelly" ); Element small = (Element) document.selectSingleNode("/html/body/small"); new org.dom4j.io.XMLWriter(new java.io.FileOutputStream("file.xml")).write(document); ... | public void testExample1() throws Exception { Document document = runScript( "src/test/org/apache/commons/jelly/jsl/example.jelly" ); Element small = (Element) document.selectSingleNode("/html/body/small"); //assertTrue( "<small> starts with 'James Elson'", small.getText().trim().starts... | 1,111,655 |
public CommandLine parseCommandLineOptions(String[] args) throws ParseException { // create the expected options Options cmdLineOptions = new Options(); cmdLineOptions.addOption("o", true, "Output file"); cmdLineOptions.addOption("script", true, "Jelly script to run"); // -D optio... | public CommandLine parseCommandLineOptions(String[] args) throws ParseException { // create the expected options Options cmdLineOptions = new Options(); cmdLineOptions.addOption("o", true, "Output file"); cmdLineOptions.addOption("script", true, "Jelly script to run"); // -D optio... | 1,111,656 |
void export(int tabNum, int format, int start, int stop){ fc.setSelectedFile(new File("")); if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){ File outfile = fc.getSelectedFile(); if (format == PNG_MODE){ BufferedImage image; if (tabNum == ... | void export(int tabNum, int format, int start, int stop){ fc.setSelectedFile(new File("")); if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){ File outfile = fc.getSelectedFile(); if (format == PNG_MODE){ BufferedImage image; if (tabNum == ... | 1,111,657 |
public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ... | public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ... | 1,111,658 |
public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ... | public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ... | 1,111,659 |
public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ... | public void messageLogged(BuildEvent event) { try { if ( this.taskStack.isEmpty() ) { out.write( event.getMessage() + "\n" ); } else { out.write( " [" + this.taskStack.peek() + "] " + event.getMessage() + "\n" ); ... | 1,111,660 |
public void paintComponent(Graphics g) { validateLayout(); Graphics2D g2 = (Graphics2D) g; g2.setColor(pp.getBackground()); g2.fill(new Rectangle(0, 0, getWidth(), getHeight())); double zoom = calculateZoom(); int scaledWidth = (int) (getWidth()/zoom); int scaledHeight = (int) (getHeight()/zoom); i... | public void paintComponent(Graphics g) { validateLayout(); Graphics2D g2 = (Graphics2D) g; g2.setColor(pp.getBackground()); g2.fill(new Rectangle(0, 0, getWidth(), getHeight())); double zoom = calculateZoom(); int scaledWidth = (int) (getWidth()/zoom); int scaledHeight = (int) (getHeight()/zoom); i... | 1,111,661 |
public void setPageFormat(PageFormat pf) { PageFormat oldPF = pageFormat; pageFormat = pf; if (pf != oldPF) { validateLayout(); pageFormatLabel.setText(paperToPrintable(pageFormat)); firePropertyChange("pageFormat", oldPF, pageFormat); } } | public void setPageFormat(PageFormat pf) { PageFormat oldPF = pageFormat; pageFormat = pf; if (pf != oldPF) { validateLayout(); pageFormatLabel.setText(paperToPrintable(pageFormat)); firePropertyChange("pageFormat", oldPF, pageFormat); } } | 1,111,662 |
public static void main(String args[]) throws ArchitectException { ArchitectUtils.startup(); System.setProperty("apple.laf.useScreenMenuBar", "true"); ArchitectUtils.configureLog4j(); getMainInstance(); SwingUtilities.invokeLater(new Runnable() { public void run() { //... | public static void main(String args[]) throws ArchitectException { ArchitectUtils.startup(); System.setProperty("apple.laf.useScreenMenuBar", "true"); ArchitectUtils.configureLog4j(); getMainInstance(); SwingUtilities.invokeLater(new Runnable() { public void run() { //... | 1,111,663 |
public void run() { // this doesn't appear to have any effect on the motion threshold // in the Playpen, but it does seem to work on the DBTree... logger.debug("current motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); System.setProperty("awt.dnd.drag.threshold","50"); ... | public void run() { // this doesn't appear to have any effect on the motion threshold // in the Playpen, but it does seem to work on the DBTree... logger.debug("current motion threshold is: " + System.getProperty("awt.dnd.drag.threshold")); System.setProperty("awt.dnd.drag.threshold","50"); ... | 1,111,664 |
public Point parse(String text) { StringTokenizer enum = new StringTokenizer( text, "," ); int x = 0; int y = 0; if ( enum.hasMoreTokens() ) { x = parseNumber( enum.nextToken() ); } | public Point parse(String text) { StringTokenizer items = new StringTokenizer( text, "," ); int x = 0; int y = 0; if ( enum.hasMoreTokens() ) { x = parseNumber( enum.nextToken() ); } | 1,111,665 |
public Point parse(String text) { StringTokenizer enum = new StringTokenizer( text, "," ); int x = 0; int y = 0; if ( enum.hasMoreTokens() ) { x = parseNumber( enum.nextToken() ); } | public Point parse(String text) { StringTokenizer enum = new StringTokenizer( text, "," ); int x = 0; int y = 0; if ( enum.hasMoreTokens() ) { y = parseNumber( items.nextToken() ); } | 1,111,666 |
public boolean maybeShowPopup(MouseEvent evt) { Point p = evt.getPoint(); unzoomPoint(p); PlayPenComponent c = contentPane.getComponentAt(p); if (c != null) p.translate(-c.getX(), -c.getY()); if ( c instanceof Relationship) { if (evt.isPopupTrigger() && !evt.isConsumed()) { Relationship r = (Relat... | public boolean maybeShowPopup(MouseEvent evt) { Point p = evt.getPoint(); unzoomPoint(p); PlayPenComponent c = contentPane.getComponentAt(p); if (c != null) p.translate(-c.getX(), -c.getY()); if ( c instanceof Relationship) { if (evt.isPopupTrigger() && !evt.isConsumed()) { Relationship r = (Relat... | 1,111,667 |
public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (className == null) { throw new MissingAttributeException("className"); } Class theClass = null; try { ClassLoader classLoader = getClas... | public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (className == null) { throw new MissingAttributeException("className"); } Class theClass = null; try { ClassLoader classLoader = getClas... | 1,111,668 |
public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (className == null) { throw new MissingAttributeException("className"); } Class theClass = null; try { ClassLoader classLoader = getClas... | public void doTag(XMLOutput output) throws Exception { invokeBody(output); if (name == null) { throw new MissingAttributeException("name"); } if (className == null) { throw new MissingAttributeException("className"); } Class theClass = null; try { ClassLoader classLoader = getClas... | 1,111,669 |
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | 1,111,670 |
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | 1,111,671 |
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | 1,111,672 |
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | 1,111,673 |
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file: " + fileName); } i... | 1,111,674 |
public TDTPanel(PedFile pf, int t){ type = t; if (type == 1){ result = TDT.calcTrioTDT(pf); }else{ result = TDT.calcCCTDT(pf); } tableColumnNames.add("#"); tableColumnNames.add("Name"); if (type == 1){ tableColumnNames.add("Overtransm... | public TDTPanel(PedFile pf, int t) throws PedFileException{ type = t; if (type == 1){ result = TDT.calcTrioTDT(pf); }else{ result = TDT.calcCCTDT(pf); } tableColumnNames.add("#"); tableColumnNames.add("Name"); if (type == 1){ tableCol... | 1,111,675 |
private OpenProjectAction() { super("Open Project...", ASUtils.createJLFIcon("general/Open", "Open Project", sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); putValue(AbstractAction.SHORT_DESCRIPTION, "Open"); putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O, ... | private OpenProjectAction(RecentMenu recent) { super("Open Project...", ASUtils.createJLFIcon("general/Open", "Open Project", sprefs.getInt(SwingUserSettings.ICON_SIZE, 24))); putValue(AbstractAction.SHORT_DESCRIPTION, "Open"); putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(Ke... | 1,111,676 |
protected void closeProject(SwingUIProject project) { // close connections Iterator it = project.getSourceDatabases().getDatabaseList().iterator();; while (it.hasNext()) { SQLDatabase db = (SQLDatabase) it.next(); logger.debug ("closing connection: " + db.getName()); db.disconnect(); } } | protected void closeProject(SwingUIProject project) { // close connections Iterator it = project.getSourceDatabases().getDatabaseList().iterator(); while (it.hasNext()) { SQLDatabase db = (SQLDatabase) it.next(); logger.debug ("closing connection: " + db.getName()); db.disconnect(); } } | 1,111,679 |
protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty... | protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty... | 1,111,680 |
protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty... | protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty... | 1,111,681 |
public void actionPerformed(ActionEvent e) { saveOrSaveAs(true, true); } | public void actionPerformed(ActionEvent e) { saveOrSaveAs(true, true); } | 1,111,682 |
public void actionPerformed(ActionEvent e) { playpen.setZoom(1.0); } | public void actionPerformed(ActionEvent e) { saveOrSaveAs(false, true); } | 1,111,683 |
public void saveSettings() throws ArchitectException { if (configFile == null) configFile = ConfigFile.getDefaultInstance(); sprefs.setInt(SwingUserSettings.DIVIDER_LOCATION, splitPane.getDividerLocation()); sprefs.setInt(SwingUserSettings.MAIN_FRAME_X, getLocation().x); sprefs.setInt(SwingUserSettings.MAIN_FRAME_... | public void saveSettings() throws ArchitectException { if (configFile == null) configFile = ConfigFile.getDefaultInstance(); sprefs.setInt(SwingUserSettings.DIVIDER_LOCATION, splitPane.getDividerLocation()); sprefs.setInt(SwingUserSettings.MAIN_FRAME_X, getLocation().x); sprefs.setInt(SwingUserSettings.MAIN_FRAME_... | 1,111,684 |
private void processFile(String fileName,int fileType,String infoFileName){ System.out.println(TITLE_STRING); try { int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | private void processFile(String fileName,int fileType,String infoFileName){ System.out.println(TITLE_STRING); try { int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | 1,111,685 |
private void processFile(String fileName,int fileType,String infoFileName){ System.out.println(TITLE_STRING); try { int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | private void processFile(String fileName,int fileType,String infoFileName){ System.out.println(TITLE_STRING); try { int outputType; long maxDistance; HaploData textData; File OutputFile; File inputFile; inputFile = new File(fileName); ... | 1,111,686 |
public static Database getODMGDatabase() { if ( db == null ) { db = odmg.newDatabase(); try { db.open( "repository.xml", Database.OPEN_READ_WRITE ); } catch ( ODMGException e ) {// log.warn( "Could not open database: " + e.getMessage() ); db = null; } } return db; } | public static Database getODMGDatabase() { if ( db == null ) { db = odmg.newDatabase(); try { db.open( "pv_test#" + user + "#" + passwd, Database.OPEN_READ_WRITE ); } catch ( ODMGException e ) {// log.warn( "Could not open database: " + e.getMessage() ); db = null; } } return db; } | 1,111,687 |
public void setUp() { try { photo = PhotoInfo.retrievePhotoInfo( 1 ); } catch ( Exception e ) { fail( "Unable to retrieve PhotoInfo object" ); } String volumeRoot = "c:\\temp\\photoVaultImageInstanceTest"; volume = new Volume( "imageInstanceTest", volumeRoot ); } | public void setUp() { try { photo = PhotoInfo.retrievePhotoInfo( 1 ); } catch ( Exception e ) { fail( "Unable to retrieve PhotoInfo object" ); } volume = new Volume( "imageInstanceTest", volumeRoot ); } | 1,111,689 |
public void testImageInstanceCreate() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.... | public void testImageInstanceCreate() { File testFile = new File( testImgDir, "test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.create( volume, insta... | 1,111,690 |
public void testImageInstanceDelete() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.c... | public void testImageInstanceDelete() { File testFile = new File( testImgDir, "test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.create( volume, instan... | 1,111,691 |
public void testImageInstanceDelete() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.c... | public void testImageInstanceDelete() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.c... | 1,111,692 |
public void testImageInstanceUpdate() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.... | public void testImageInstanceUpdate() { File testFile = new File( testImgDir, "test1.jpg" ); File instanceFile = volume.getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } ImageInstance f = ImageInstance.create( volume, insta... | 1,111,693 |
protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty... | protected void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); UserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour which the XML Digester relies // upon heavily //Ty... | 1,111,694 |
public void actionPerformed(ActionEvent e) { if (promptForUnsavedModifications()) { try { closeProject(getProject()); setProject(new SwingUIProject("New Project")); logger.debug("Glass pane is "+getGlassPane()); getGlassPane().setVisible(true); ... | public void actionPerformed(ActionEvent e) { if (promptForUnsavedModifications()) { try { closeProject(getProject()); setProject(new SwingUIProject("New Project")); logger.debug("Glass pane is "+getGlassPane()); getGlassPane().setVisible(true); ... | 1,111,695 |
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e... | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command.equals(RAW_DATA)){ load(PED); }else if (command.equals(PHASED_DATA)){ load(HAPS); }else if (command.equals(HAPMAP_DATA)){ load(HMP); }else if (command.e... | 1,111,698 |
public void componentResized(PlayPenComponentEvent e) { logger.debug("Component "+e.getPPComponent().getName()+" changed size"); if (e.getPPComponent() == pkTable) { setPkConnectionPoint(ui.closestEdgePoint(true, getPkConnectionPoint())); // true == PK } if (e.getPPComponent() == fkTable) { setFkConnect... | public void componentResized(PlayPenComponentEvent e) { logger.debug("Component "+e.getPPComponent().getName()+" changed size"); if (e.getPPComponent() == pkTable) { setPkConnectionPoint(((RelationshipUI) getUI()).closestEdgePoint(true, getPkConnectionPoint())); // true == PK } if (e.getPPComponent() == fk... | 1,111,699 |
public void componentResized(PlayPenComponentEvent e) { logger.debug("Component "+e.getPPComponent().getName()+" changed size"); if (e.getPPComponent() == pkTable) { setPkConnectionPoint(ui.closestEdgePoint(true, getPkConnectionPoint())); // true == PK } if (e.getPPComponent() == fkTable) { setFkConnect... | public void componentResized(PlayPenComponentEvent e) { logger.debug("Component "+e.getPPComponent().getName()+" changed size"); if (e.getPPComponent() == pkTable) { setPkConnectionPoint(ui.closestEdgePoint(true, getPkConnectionPoint())); // true == PK } if (e.getPPComponent() == fkTable) { setFkConnect... | 1,111,700 |
protected Point translatePoint(Point p) { if (movingPk) { p.x = p.x - r.getPkTable().getX(); p.y = p.y - r.getPkTable().getY(); p = r.ui.closestEdgePoint(movingPk, p); } else { p.x = p.x - r.getFkTable().getX(); p.y = p.y - r.getFkTable().getY(); p = r.ui.closestEdgePoint(movingPk, p); } ret... | protected Point translatePoint(Point p) { if (movingPk) { p.x = p.x - r.getPkTable().getX(); p.y = p.y - r.getPkTable().getY(); p = ((RelationshipUI) r.getUI()).closestEdgePoint(movingPk, p); } else { p.x = p.x - r.getFkTable().getX(); p.y = p.y - r.getFkTable().getY(); p = ((RelationshipUI) r.g... | 1,111,701 |
public Point getFkConnectionPoint() { return ui.getFkConnectionPoint(); } | public Point getFkConnectionPoint() { return ((RelationshipUI) getUI()).getFkConnectionPoint(); } | 1,111,702 |
public Point getPkConnectionPoint() { return ui.getPkConnectionPoint(); } | public Point getPkConnectionPoint() { return ((RelationshipUI) getUI()).getPkConnectionPoint(); } | 1,111,703 |
public Point getPreferredLocation() { return ui.getPreferredLocation(); } | public Point getPreferredLocation() { return ((RelationshipUI) getUI()).getPreferredLocation(); } | 1,111,704 |
public boolean intersects(Rectangle region) { return ui.intersects(region); } | public boolean intersects(Rectangle region) { return ((RelationshipUI) getUI()).intersects(region); } | 1,111,705 |
public void setFkConnectionPoint(Point p) { ui.setFkConnectionPoint(p); revalidate(); } | public void setFkConnectionPoint(Point p) { ((RelationshipUI) getUI()).setFkConnectionPoint(p); revalidate(); } | 1,111,706 |
public void setPkConnectionPoint(Point p) { ui.setPkConnectionPoint(p); revalidate(); } | public void setPkConnectionPoint(Point p) { ((RelationshipUI) getUI()).setPkConnectionPoint(p); revalidate(); } | 1,111,707 |
public TDTResult() { counts = new int[2][2]; } | public TDTResult(SNP tempSNP) { counts = new int[2][2]; } | 1,111,708 |
public double getChiSq() { if(!this.chiSet){ this.chiSqVal = Math.pow( (this.counts[0][0] - this.counts[0][1]),2) / (this.counts[0][0] + this.counts[0][1]); this.chiSqVal = Math.rint(this.chiSqVal*1000.0)/1000.0; this.chiSet = true; } return this.chiSqVal; } | public double getChiSq(int type) { if(!this.chiSet){ this.chiSqVal = Math.pow( (this.counts[0][0] - this.counts[0][1]),2) / (this.counts[0][0] + this.counts[0][1]); this.chiSqVal = Math.rint(this.chiSqVal*1000.0)/1000.0; this.chiSet = true; } return this.chiSqVa... | 1,111,710 |
public double getChiSq() { if(!this.chiSet){ this.chiSqVal = Math.pow( (this.counts[0][0] - this.counts[0][1]),2) / (this.counts[0][0] + this.counts[0][1]); this.chiSqVal = Math.rint(this.chiSqVal*1000.0)/1000.0; this.chiSet = true; } return this.chiSqVal; } | public double getChiSq() { if(!this.chiSet){ if (type == 1){ this.chiSqVal = Math.pow( (this.counts[0][0] - this.counts[0][1]),2) / (this.counts[0][0] + this.counts[0][1]); }else{ int N = counts[0][0] + counts[0][1] + counts[1][0] + counts[1][1]; for (int i = 0; i < 2; i++){ for (int j = 0; j < 2;... | 1,111,711 |
public double getPValue() { double pval = 0; pval= MathUtil.gammq(.5,.5*getChiSq()); return Math.rint(pval*10000.0)/10000.0; } | public String getPValue() { double pval = 0; pval= MathUtil.gammq(.5,.5*getChiSq()); return Math.rint(pval*10000.0)/10000.0; } | 1,111,712 |
public double getPValue() { double pval = 0; pval= MathUtil.gammq(.5,.5*getChiSq()); return Math.rint(pval*10000.0)/10000.0; } | public double getPValue() { double pval = 0; pval= MathUtil.gammq(.5,.5*getChiSq()); return Math.rint(pval*10000.0)/10000.0; } | 1,111,713 |
public String getTURatio() { return this.counts[0][0] + ":" + this.counts[0][1]; } | public String getTURatio() { return this.counts[0][0] + ":" + this.counts[0][1]; } | 1,111,714 |
protected void runScript(String name) throws Exception { InputStream in = new FileInputStream(name); Script script = parser.parse(in); script = script.compile(); log.info("Evaluating: " + script); script.run(parser.getContext(), output); } | protected void runScript(String name) throws Exception { InputStream in = new FileInputStream(name); Script script = parser.parse(in); script = script.compile(); log.info("Evaluating: " + script); script.run(parser.getContext(), output); } | 1,111,715 |
public void testParse() throws Exception { StringWriter buffer = new StringWriter(); output = XMLOutput.createXMLOutput(buffer); runScript("src/test/org/apache/commons/jelly/define/babelfishTaglib.jelly"); runScript("src/test/org/apache/commons/jelly/define/example.jelly"... | public void testParse() throws Exception { StringWriter buffer = new StringWriter(); output = XMLOutput.createXMLOutput(buffer); runScript("src/test/org/apache/commons/jelly/define/example.jelly"); log.info("The output was as follows"); log.info(buf... | 1,111,716 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(final Component parent, String message, final Throwable throwable) { JDialog dialog; if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new... | 1,111,717 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | 1,111,718 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | 1,111,719 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | 1,111,720 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | 1,111,721 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | 1,111,722 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | 1,111,723 |
private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | private static void displayExceptionDialog(Component parent, String message, Throwable throwable) { if (parent == null) { logger.error("displayExceptionDialog with null parent for message " + message); } else if (parent instanceof Frame) { dialog = new JDialog((Frame) parent, "Er... | 1,111,724 |
public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { dialog.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); dialog.pack();... | public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { finalDialogReference.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); ... | 1,111,725 |
public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { dialog.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); dialog.pack();... | public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { dialog.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); finalDialogRef... | 1,111,726 |
public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { dialog.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); dialog.pack();... | public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { dialog.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); dialog.pack();... | 1,111,727 |
public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { dialog.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); dialog.pack();... | public void actionPerformed(ActionEvent e) { // System.out.println("showDetails=" + showDetails); if (showDetails) { dialog.add(messageComponent, BorderLayout.CENTER); detailsButton.setText("Hide Details"); dialog.pack();... | 1,111,728 |
public void actionPerformed(ActionEvent e) { dialog.dispose(); dialog.setVisible(false); } | public void actionPerformed(ActionEvent e) { dialog.dispose(); dialog.setVisible(false); } | 1,111,729 |
public void dragGestureRecognized(DragGestureEvent dge) { PlayPenComponent c = contentPane.getComponentAt( unzoomPoint(((MouseEvent) dge.getTriggerEvent()).getPoint())); if ( c instanceof TablePane ) { TablePane tp = (TablePane) c; int colIndex = TablePane.COLUMN_INDEX_NONE; Point dragOrigin =... | public void dragGestureRecognized(DragGestureEvent dge) { PlayPenComponent c = contentPane.getComponentAt( unzoomPoint(((MouseEvent) dge.getTriggerEvent()).getPoint())); if ( c instanceof TablePane ) { TablePane tp = (TablePane) c; int colIndex = TablePane.COLUMN_INDEX_NONE; Point dragOrigin =... | 1,111,730 |
public void testThumbnailCreateCorruptInstances() throws Exception { String testImgDir = "c:\\java\\photovault\\testfiles"; String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could n... | public void testThumbnailCreateCorruptInstances() throws Exception { String testImgDir = "c:\\java\\photovault\\testfiles"; String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could n... | 1,111,731 |
public static void main(String[] args) throws Exception{ UserManager userManager = UserManager.getInstance(); User user = null; char[] password = null; int invalidAttempts = 0; if(args.length == 1){ password = args[0].toCharArray(); user = userManager.verifyU... | public static void main(String[] args) throws Exception{ UserManager userManager = UserManager.getInstance(); User user = null; char[] password = null; int invalidAttempts = 0; if(args.length == 1){ password = args[0].toCharArray(); user = userManager.verifyU... | 1,111,733 |
public void stateChanged(ChangeEvent e) { viewMenuItems[tabs.getSelectedIndex()].setSelected(true); if (checkPanel != null && checkPanel.changed){ window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); JTable table = checkPanel.getTable(); ... | public void stateChanged(ChangeEvent e) { viewMenuItems[tabs.getSelectedIndex()].setSelected(true); if (checkPanel != null && checkPanel.changed){ window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); JTable table = checkPanel.getTable(); ... | 1,111,734 |
public String getExpressionText() { return expression.getExpression(); } | public String getExpressionText() { return "${" + expression.getExpression() + "}"; } | 1,111,737 |
public void doTag(XMLOutput output) throws JellyTagException { Project project = getAntProject(); String tagName = getTagName(); Object parentObject = findBeanAncestor(); Object parentTask = findParentTaskObject(); // lets assume that Task instances are not nested inside other Task in... | public void doTag(XMLOutput output) throws JellyTagException { Project project = getAntProject(); String tagName = getTagName(); Object parentObject = findBeanAncestor(); Object parentTask = findParentTaskObject(); // lets assume that Task instances are not nested inside other Task in... | 1,111,738 |
private void putResult(ProfileResult profileResult) { if (logger.isDebugEnabled()) { logger.debug("[instance "+hashCode()+"]" + " Adding new profile result for "+profileResult.getProfiledObject().getName()+ " existing profile count: "+results.size()); }... | public void putResult(ProfileResult profileResult) { if (logger.isDebugEnabled()) { logger.debug("[instance "+hashCode()+"]" + " Adding new profile result for "+profileResult.getProfiledObject().getName()+ " existing profile count: "+results.size()); } ... | 1,111,739 |
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... | public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... | 1,111,740 |
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (var == null) { throw new MissingAttributeException( "var" ); } if (select == null) { throw new MissingAttributeException( "select" ); } Object xpathContext = getXPat... | public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (var == null) { throw new MissingAttributeException( "var" ); } if (select == null) { throw new MissingAttributeException( "select" ); } Object xpathContext = getXPat... | 1,111,741 |
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (var == null) { throw new MissingAttributeException( "var" ); } if (select == null) { throw new MissingAttributeException( "select" ); } Object xpathContext = getXPat... | public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (var == null) { throw new MissingAttributeException( "var" ); } if (select == null) { throw new MissingAttributeException( "select" ); } Object xpathContext = getXPat... | 1,111,742 |
public void setDelim(String delim) { this.delim = delim; } | public void setDelim(String delim) { this.delimiter = delim; if( delim!=null ) { this.asString = Boolean.TRUE; } } | 1,111,744 |
public void dbChildrenInserted(SQLObjectEvent e) { logger.debug("dbChildrenInserted SQLObjectEvent: "+e); try { SQLObject[] newEventSources = e.getChildren(); for (int i = 0; i < newEventSources.length; i++) { ArchitectUtils.listenToHierarchy(this, newEventSources[i]); } } catch (ArchitectException ex) { ... | public void dbChildrenInserted(SQLObjectEvent e) { if (logger.isDebugEnabled()) { logger.debug("dbChildrenInserted SQLObjectEvent: "+e +"; tree path="+Arrays.asList(getPathToNode(e.getSQLSource()))); } try { SQLObject[] newEventSources = e.getChildren(); for (int i = 0; i < newEventSources.length; i++) { Arch... | 1,111,745 |
public void dbChildrenRemoved(SQLObjectEvent e) { logger.debug("dbChildrenRemoved SQLObjectEvent: "+e); try { SQLObject[] oldEventSources = e.getChildren(); for (int i = 0; i < oldEventSources.length; i++) { ArchitectUtils.unlistenToHierarchy(this, oldEventSources[i]); } } catch (ArchitectException ex) { ... | public void dbChildrenRemoved(SQLObjectEvent e) { if (logger.isDebugEnabled()) logger.debug("dbChildrenRemoved SQLObjectEvent: "+e); try { SQLObject[] oldEventSources = e.getChildren(); for (int i = 0; i < oldEventSources.length; i++) { ArchitectUtils.unlistenToHierarchy(this, oldEventSources[i]); } } catc... | 1,111,746 |
public void dbObjectChanged(SQLObjectEvent e) { logger.debug("dbObjectChanged SQLObjectEvent: "+e); SQLObject source = e.getSQLSource(); fireTreeNodesChanged(new TreeModelEvent(this, getPathToNode(source))); } | public void dbObjectChanged(SQLObjectEvent e) { if (logger.isDebugEnabled()) logger.debug("dbObjectChanged SQLObjectEvent: "+e); SQLObject source = e.getSQLSource(); fireTreeNodesChanged(new TreeModelEvent(this, getPathToNode(source))); } | 1,111,747 |
protected void fireTreeNodesInserted(TreeModelEvent e) { logger.debug("Firing treeNodesInserted event: "+e); Iterator it = treeModelListeners.iterator(); while (it.hasNext()) { ((TreeModelListener) it.next()).treeNodesInserted(e); } } | protected void fireTreeNodesInserted(TreeModelEvent e) { if (logger.isDebugEnabled()) logger.debug("Firing treeNodesInserted event: "+e); Iterator it = treeModelListeners.iterator(); while (it.hasNext()) { ((TreeModelListener) it.next()).treeNodesInserted(e); } } | 1,111,748 |
protected void fireTreeNodesRemoved(TreeModelEvent e) { logger.debug("Firing treeNodesRemoved event "+e); Iterator it = treeModelListeners.iterator(); while (it.hasNext()) { ((TreeModelListener) it.next()).treeNodesRemoved(e); logger.debug("Sent a copy"); } } | protected void fireTreeNodesRemoved(TreeModelEvent e) { if (logger.isDebugEnabled()) logger.debug("Firing treeNodesRemoved event "+e); Iterator it = treeModelListeners.iterator(); while (it.hasNext()) { ((TreeModelListener) it.next()).treeNodesRemoved(e); logger.debug("Sent a copy"); } } | 1,111,749 |
protected void fireTreeNodesRemoved(TreeModelEvent e) { logger.debug("Firing treeNodesRemoved event "+e); Iterator it = treeModelListeners.iterator(); while (it.hasNext()) { ((TreeModelListener) it.next()).treeNodesRemoved(e); logger.debug("Sent a copy"); } } | protected void fireTreeNodesRemoved(TreeModelEvent e) { logger.debug("Firing treeNodesRemoved event "+e); Iterator it = treeModelListeners.iterator(); while (it.hasNext()) { ((TreeModelListener) it.next()).treeNodesRemoved(e); if (logger.isDebugEnabled()) logger.debug("Sent a copy"); } } | 1,111,750 |
public Object getChild(Object parent, int index) { try { logger.debug("DBTreeModel.getChild("+parent+","+index+"): returning "+((SQLObject) parent).getChild(index)); return ((SQLObject) parent).getChild(index); } catch (ArchitectException e) { //logger.error("Couldn't get child "+index+" of "+parent, e); //r... | public Object getChild(Object parent, int index) { try { if (logger.isDebugEnabled()) logger.debug("DBTreeModel.getChild("+parent+","+index+"): returning "+((SQLObject) parent).getChild(index)); return ((SQLObject) parent).getChild(index); } catch (ArchitectException e) { //logger.error("Couldn't get child "+i... | 1,111,751 |
public int getChildCount(Object parent) { try { logger.debug("DBTreeModel.getChildCount("+parent+"): returning "+((SQLObject) parent).getChildCount()); return ((SQLObject) parent).getChildCount(); } catch (ArchitectException e) { //logger.error("Couldn't get child count of "+parent, e); //return -1; throw ... | public int getChildCount(Object parent) { try { if (logger.isDebugEnabled()) logger.debug("DBTreeModel.getChildCount("+parent+"): returning "+((SQLObject) parent).getChildCount()); return ((SQLObject) parent).getChildCount(); } catch (ArchitectException e) { //logger.error("Couldn't get child count of "+parent... | 1,111,752 |
public int getIndexOfChild(Object parent, Object child) { try { logger.debug("DBTreeModel.getIndexOfChild("+parent+","+child+"): returning "+((SQLObject) parent).getChildren().indexOf(child)); return ((SQLObject) parent).getChildren().indexOf(child); } catch (ArchitectException e) { //logger.error("Couldn't ge... | public int getIndexOfChild(Object parent, Object child) { try { if (logger.isDebugEnabled()) logger.debug("DBTreeModel.getIndexOfChild("+parent+","+child+"): returning "+((SQLObject) parent).getChildren().indexOf(child)); return ((SQLObject) parent).getChildren().indexOf(child); } catch (ArchitectException e) { ... | 1,111,753 |
public Object getRoot() { logger.debug("DBTreeModel.getRoot: returning "+root); return root; } | public Object getRoot() { if (logger.isDebugEnabled()) logger.debug("DBTreeModel.getRoot: returning "+root); return root; } | 1,111,754 |
public boolean isLeaf(Object parent) { logger.debug("DBTreeModel.isLeaf("+parent+"): returning "+!((SQLObject) parent).allowsChildren()); return !((SQLObject) parent).allowsChildren(); } | public boolean isLeaf(Object parent) { if (logger.isDebugEnabled()) logger.debug("DBTreeModel.isLeaf("+parent+"): returning "+!((SQLObject) parent).allowsChildren()); return !((SQLObject) parent).allowsChildren(); } | 1,111,755 |
public static void load() throws Exception { List<ApplicationConfig> applications = ApplicationConfigManager.getApplications(); for(ApplicationConfig config : applications) { String appType = config.getType(); if (appType.equals("connector")) { create(config); ... | public static void load() throws Exception { List<ApplicationConfig> applications = ApplicationConfigManager.getApplications(); for(ApplicationConfig config : applications) { String appType = config.getType(); if (appType.equals("connector")) { create(config); ... | 1,111,756 |
protected TagScript createStaticTag( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { StaticTag tag = new StaticTag( namespaceURI, localName, qName); StaticTagScript script = new StaticTagScript(tag); ... | protected TagScript createStaticTag( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { StaticTag tag = new StaticTag( namespaceURI, localName, qName); StaticTagScript script = new StaticTagScript(tag); ... | 1,111,757 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.