bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void save(ProgressMonitor pm) throws IOException, ArchitectException { // write to temp file and then rename (this preserves old project file // when there's problems) if (file.exists() && !file.canWrite()) { // write problems with architect file will muck up the save process throw new ArchitectExceptio... | public void save(ProgressMonitor pm) throws IOException, ArchitectException { // write to temp file and then rename (this preserves old project file // when there's problems) if (file.exists() && !file.canWrite()) { // write problems with architect file will muck up the save process throw new ArchitectExceptio... | 1,108,361 |
public void save(ProgressMonitor pm) throws IOException, ArchitectException { // write to temp file and then rename (this preserves old project file // when there's problems) if (file.exists() && !file.canWrite()) { // write problems with architect file will muck up the save process throw new ArchitectExceptio... | public void save(ProgressMonitor pm) throws IOException, ArchitectException { // write to temp file and then rename (this preserves old project file // when there's problems) if (file.exists() && !file.canWrite()) { // write problems with architect file will muck up the save process throw new ArchitectExceptio... | 1,108,362 |
private void peelBack(Vector tagsToBePeeled){ Hashtable tagsBySeq = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } for... | private void peelBack(Vector tagsToBePeeled){ Hashtable blockTagsByAllele = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } ... | 1,108,363 |
private void peelBack(Vector tagsToBePeeled){ Hashtable tagsBySeq = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } for... | private void peelBack(Vector tagsToBePeeled){ Hashtable tagsBySeq = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } for... | 1,108,364 |
private void peelBack(Vector tagsToBePeeled){ Hashtable tagsBySeq = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } for... | private void peelBack(Vector tagsToBePeeled){ Hashtable tagsBySeq = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } for... | 1,108,365 |
private void peelBack(Vector tagsToBePeeled){ Hashtable tagsBySeq = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } for... | private void peelBack(Vector tagsToBePeeled){ Hashtable tagsBySeq = new Hashtable(); HashSet snpsInBlockTags = new HashSet(); for (int i = 0; i < tagsToBePeeled.size(); i++){ tagsBySeq.put(((TagSequence)tagsToBePeeled.get(i)).getSequence(), tagsToBePeeled.get(i)); } for... | 1,108,366 |
public static ImageInstance create ( VolumeBase vol, File imgFile ) { ODMGXAWrapper txw = new ODMGXAWrapper(); ImageInstance i = new ImageInstance(); i.volume = vol; i.volumeId = vol.getName(); i.imageFile = imgFile; i.fileSize = imgFile.length(); i.mtime = imgFile.lastModified(); i.fnam... | public static ImageInstance create ( VolumeBase vol, File imgFile ) { ODMGXAWrapper txw = new ODMGXAWrapper(); ImageInstance i = new ImageInstance(); i.volume = vol; i.volumeId = vol.getName(); i.imageFile = imgFile; i.fileSize = imgFile.length(); i.mtime = imgFile.lastModified(); i.fnam... | 1,108,367 |
protected void readImageFile() throws IOException { // Find the JPEG image reader // TODO: THis shoud decode also other readers from fname Iterator readers = ImageIO.getImageReadersByFormatName("jpg"); ImageReader reader = (ImageReader)readers.next(); ImageInputStream iis = ImageIO.createImageInputStream( imageFile... | protected void readImageFile() throws IOException { // Find the JPEG image reader // TODO: THis shoud decode also other readers from fname Iterator readers = ImageIO.getImageReadersByFormatName("jpg"); ImageReader reader = (ImageReader)readers.next(); ImageInputStream iis = ImageIO.createImageInputStream( imageFile... | 1,108,369 |
void readGenotypes(String[] inputOptions, int type){ //input is a 2 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //type is either 3 or 4 for ped and hapmap files respectively final File inFile = new File(inputOptions[0]); try ... | void readGenotypes(String[] inputOptions, int type){ //input is a 2 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //type is either 3 or 4 for ped and hapmap files respectively final File inFile = new File(inputOptions[0]); try ... | 1,108,370 |
public void makeTable(Haplotype[][] haps) { this.removeAll(); initialHaplotypeDisplayThreshold = Options.getHaplotypeDisplayThreshold(); Vector colNames = new Vector(); colNames.add("Haplotype"); colNames.add("Freq."); if (Options.getAssocTest() == ASSOC_TRIO){ c... | public void makeTable(Haplotype[][] haps) { this.removeAll(); initialHaplotypeDisplayThreshold = Options.getHaplotypeDisplayThreshold(); Vector colNames = new Vector(); colNames.add("Haplotype"); colNames.add("Freq."); if (Options.getAssocTest() == ASSOC_TRIO){ c... | 1,108,371 |
public void makeTable(Haplotype[][] haps) { this.removeAll(); initialHaplotypeDisplayThreshold = Options.getHaplotypeDisplayThreshold(); Vector colNames = new Vector(); colNames.add("Haplotype"); colNames.add("Freq."); if (Options.getAssocTest() == ASSOC_TRIO){ c... | public void makeTable(Haplotype[][] haps) { this.removeAll(); initialHaplotypeDisplayThreshold = Options.getHaplotypeDisplayThreshold(); Vector colNames = new Vector(); colNames.add("Haplotype"); colNames.add("Freq."); if (Options.getAssocTest() == ASSOC_TRIO){ c... | 1,108,372 |
public void makeTable(Haplotype[][] haps) { this.removeAll(); initialHaplotypeDisplayThreshold = Options.getHaplotypeDisplayThreshold(); Vector colNames = new Vector(); colNames.add("Haplotype"); colNames.add("Freq."); if (Options.getAssocTest() == ASSOC_TRIO){ c... | public void makeTable(Haplotype[][] haps) { this.removeAll(); initialHaplotypeDisplayThreshold = Options.getHaplotypeDisplayThreshold(); Vector colNames = new Vector(); colNames.add("Haplotype"); colNames.add("Freq."); if (Options.getAssocTest() == ASSOC_TRIO){ c... | 1,108,373 |
public void refreshTable(){ this.removeAll(); Vector tableData = new Vector(); int numRes = Chromosome.getFilteredSize(); for (int i = 0; i < numRes; i++){ Vector tempVect = new Vector(); TDTResult currentResult = (TDTResult)result.get(Chromosome.realIndex[i]); ... | public void refreshTable(){ this.removeAll(); Vector tableData = new Vector(); int numRes = Chromosome.getFilteredSize(); for (int i = 0; i < numRes; i++){ Vector tempVect = new Vector(); TDTResult currentResult = (TDTResult)result.get(Chromosome.realIndex[i]); ... | 1,108,374 |
public String getPVal(){ return pval; } | public Double getPVal(){ return pval; } | 1,108,379 |
public TDTPanel(Vector chromosomes) { result = TDT.calcTDT(chromosomes); tableColumnNames.add("Name"); tableColumnNames.add("T:U"); tableColumnNames.add("Chi Squared"); tableColumnNames.add("p value"); refreshTable(); } | public TDTPanel(Vector chromosomes) { result = TDT.calcTDT(chromosomes); tableColumnNames.add("Name"); tableColumnNames.add("T:U"); tableColumnNames.add("Chi Squared"); tableColumnNames.add("p value"); refreshTable(); } | 1,108,380 |
public TDTPanel(Vector chromosomes) { result = TDT.calcTDT(chromosomes); tableColumnNames.add("Name"); tableColumnNames.add("T:U"); tableColumnNames.add("Chi Squared"); tableColumnNames.add("p value"); refreshTable(); } | public TDTPanel(Vector chromosomes) { result = TDT.calcTDT(chromosomes); tableColumnNames.add("Name"); if (type == 1){ tableColumnNames.add("T:U"); }else{ tableColumnNames.add("Case, Control Ratios"); } tableColumnNames.add("Chi Squared"); tableColumnNames.add("p value"); r... | 1,108,381 |
Chromosome(String p, String i, byte[] g, boolean a, String o){ ped = p; individual = i; genotypes = g; affected = a; origin = o; trueSize = genotypes.length; } | Chromosome(String p, String i, byte[] g, String o){ ped = p; individual = i; genotypes = g; affected = a; origin = o; trueSize = genotypes.length; } | 1,108,383 |
Chromosome(String p, String i, byte[] g, boolean a, String o){ ped = p; individual = i; genotypes = g; affected = a; origin = o; trueSize = genotypes.length; } | Chromosome(String p, String i, byte[] g, boolean a, String o){ ped = p; individual = i; genotypes = g; origin = o; trueSize = genotypes.length; } | 1,108,384 |
protected void indexDir() { IndexerFileChooser fc = new IndexerFileChooser(); fc.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY ); int retval = fc.showDialog( this, "Select directory to index" ); if ( retval == JFileChooser.APPROVE_OPTION ) { File dir = fc.getSelectedFile(); ... | protected void indexDir() { IndexerFileChooser fc = new IndexerFileChooser(); fc.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY ); int retval = fc.showDialog( this, "Select directory to index" ); if ( retval == JFileChooser.APPROVE_OPTION ) { File dir = fc.getSelectedFile(); ... | 1,108,385 |
public HaploView(){ JMenu fileMenu, toolMenu, helpMenu, blockMenu; JMenuBar menuBar = new JMenuBar(); JMenuItem menuItem; addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e){ System.exit(0); } }); setJMenuBar(menuBar); fileMenu = new JMenu("File"); menuBar.add(fileMenu); to... | public HaploView(){ JMenu fileMenu, toolMenu, helpMenu, blockMenu; JMenuBar menuBar = new JMenuBar(); JMenuItem menuItem; addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e){ System.exit(0); } }); setJMenuBar(menuBar); fileMenu = new JMenu("File"); menuBar.add(fileMenu); to... | 1,108,386 |
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == "Open"){ fc.setSelectedFile(null); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { try{ theData = new HaploData(fc.getSelectedFile()); infileName = fc.ge... | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == "Open Haplotype File" || command == "Open Linkage File"){ fc.setSelectedFile(null); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { try{ theData = new HaploDa... | 1,108,387 |
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == "Open"){ fc.setSelectedFile(null); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { try{ theData = new HaploData(fc.getSelectedFile()); infileName = fc.ge... | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command == "Open"){ fc.setSelectedFile(null); int returnVal = fc.showOpenDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { try{ theData = new HaploData(fc.getSelectedFile()); infileName = fc.ge... | 1,108,388 |
public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); ... | public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); ... | 1,108,389 |
public CheckDataPanel(HaploView hv){ this(hv.theData); this.hv = hv; setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); JPanel missingPanel = new JPanel(); JLabel countsLabel; countsLabel = new JLabel("Using " + theData.numSingletons + " singletons and " + theD... | public CheckDataPanel(HaploView hv){ this(hv.theData); this.hv = hv; setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); JPanel missingPanel = new JPanel(); JLabel countsLabel; countsLabel = new JLabel("Using " + theData.numSingletons + " singletons and " + theD... | 1,108,390 |
public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); BasicTableModel tableModel; JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); ... | public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); BasicTableModel tableModel; JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); ... | 1,108,391 |
public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); BasicTableModel tableModel; JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); ... | public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); BasicTableModel tableModel; JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); ... | 1,108,392 |
public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); BasicTableModel tableModel; JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); ... | public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); BasicTableModel tableModel; JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); ... | 1,108,393 |
public void setAttribute(String name, Object value) { if ( value == null ) { // should we send in null? super.setAttribute( name, "" ); } else { if ( value instanceof Expression ) { super.setAttribute( name, ((Expression) value).evaluat... | public void setAttribute(String name, Object value) { if ( value == null ) { // should we send in null? super.setAttribute( name, "" ); } else { if ( value instanceof Expression ) { super.setAttribute( name, ((Expression) value).evaluat... | 1,108,396 |
public void run(Context context, XMLOutput output) throws Exception { if ( var == null ) { throw new IllegalArgumentException( "The var attribute cannot be null" ); } if ( value != null ) { Object answer = value.evaluate( context ); context.setVariable( var, ans... | public void run(JellyContext context, XMLOutput output) throws Exception { if ( var == null ) { throw new IllegalArgumentException( "The var attribute cannot be null" ); } if ( value != null ) { Object answer = value.evaluate( context ); context.setVariable( var... | 1,108,397 |
public void run(Context context, XMLOutput output) throws Exception { if ( var == null ) { throw new IllegalArgumentException( "The var attribute cannot be null" ); } if ( value != null ) { Object answer = value.evaluate( context ); context.setVariable( var, ans... | public void run(Context context, XMLOutput output) throws Exception { if ( var == null ) { throw new IllegalArgumentException( "The var attribute cannot be null" ); } if ( value != null ) { Object answer = value.evaluate( context ); context.setVariable( var, ans... | 1,108,398 |
public void testCreationFromImage() { 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 not find photo: " + e.getMessage(... | public void testCreationFromImage() { String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could not find photo: " + e.getMessage() ); } assertNotNull( photo ); assertTrue( photo.getNu... | 1,108,399 |
public void testGetThumbnail() { 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 not find photo: " + e.getMessage() ); ... | public void testGetThumbnail() { String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could not find photo: " + e.getMessage() ); } assertNotNull( photo ); int instanceCount = photo.ge... | 1,108,400 |
public void testInstanceAddition() { File testFile = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); File instanceFile = Volume.getDefaultVolume().getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } PhotoInfo photo =... | public void testInstanceAddition() { File testFile = new File( testImgDir, "test1.jpg" ); File instanceFile = Volume.getDefaultVolume().getFilingFname( testFile ); try { FileUtils.copyFile( testFile, instanceFile ); } catch ( IOException e ) { fail( e.getMessage() ); } PhotoInfo photo = PhotoInfo.create(); ... | 1,108,401 |
public void testThumbWithNoInstances() { PhotoInfo photo = PhotoInfo.create(); Thumbnail thumb = photo.getThumbnail(); assertTrue( "getThumbnail should return default thumbnail", thumb == Thumbnail.getDefaultThumbnail() ) ; assertEquals( "No new instances should have been created", 0, photo.getNumInstances() )... | public void testThumbWithNoInstances() { PhotoInfo photo = PhotoInfo.create(); Thumbnail thumb = photo.getThumbnail(); assertTrue( "getThumbnail should return default thumbnail", thumb == Thumbnail.getDefaultThumbnail() ) ; assertEquals( "No new instances should have been created", 0, photo.getNumInstances() )... | 1,108,402 |
public void testThumbnailCreate() { 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 not find photo: " + e.getMessage() ... | public void testThumbnailCreate() { String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could not find photo: " + e.getMessage() ); } assertNotNull( photo ); int instanceCount = photo... | 1,108,403 |
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 fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could not find photo: " + e.getMessage() ); } // Corrupt the ... | 1,108,404 |
public void testThumbnailRotation() { 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 not find photo: " + e.getMessage(... | public void testThumbnailRotation() { String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); } catch ( PhotoNotFoundException e ) { fail( "Could not find photo: " + e.getMessage() ); } photo.setPrefRotation( -45 ); Thumbnail thumb =... | 1,108,405 |
public void testfailedCreation() { String testImgDir = "c:\\_directoryThatDoesNotExist"; String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); // Execution should never proceed this far since addToDB // should produce exception... | public void testfailedCreation() { String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); // Execution should never proceed this far since addToDB // should produce exception fail( "Image file should have been nonexistent" ... | 1,108,406 |
public void testfailedCreation() { String testImgDir = "c:\\_directoryThatDoesNotExist"; String fname = "test1.jpg"; File f = new File( testImgDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); // Execution should never proceed this far since addToDB // should produce exception... | public void testfailedCreation() { String testImgDir = "c:\\_directoryThatDoesNotExist"; String fname = "test1.jpg"; File f = new File( nonExistingDir, fname ); PhotoInfo photo = null; try { photo = PhotoInfo.addToDB( f ); // Execution should never proceed this far since addToDB // should produce excep... | 1,108,407 |
protected void createThumbnail() { Volume vol = Volume.getDefaultVolume(); createThumbnail( vol ); } | protected void createThumbnail() { Volume vol = Volume.getDefaultVolume(); createThumbnail( vol ); } | 1,108,408 |
public static boolean compareImgToFile( BufferedImage img, File file ) { if ( file.exists() ) { System.err.println( "File " + file.getName() + " exists" ); BufferedImage fImg = null; try { fImg = ImageIO.read( file ); System.err.println( "Read image" ); } catch ( IOException e ) { System.err.p... | public static boolean compareImgToFile( BufferedImage img, File file ) { if ( file.exists() ) { System.err.println( "File " + file.getName() + " exists" ); BufferedImage fImg = null; try { fImg = ImageIO.read( file ); System.err.println( "Read image" ); } catch ( IOException e ) { System.err.p... | 1,108,409 |
public static byte getRandomByte() { return (byte)CHARSET[getRandomInt()]; } | public static byte getRandomByte() { return (byte)(Math.random() * 255); } | 1,108,410 |
void renameSelectedFolder() { log.warn( "Not implemented: renameSelectedFolder()" ); } | void renameSelectedFolder() { if ( selected != null ) { String origName = selected.getName(); String newName = (String) JOptionPane.showInputDialog( this, "Enter new name", "Rename folder", JOptionPane.PLAIN_MESSAGE, null, null, origName ); if ( newName != null ) { PhotoFolder f = selected; f.setName( newName ); f.... | 1,108,413 |
public static PhotoFolder getRoot() { ODMGXAWrapper txw = new ODMGXAWrapper(); Implementation odmg = ODMG.getODMGImplementation(); DList folders = null; boolean mustCommit = false; try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where folder... | public static PhotoFolder getRoot() { ODMGXAWrapper txw = new ODMGXAWrapper(); Implementation odmg = ODMG.getODMGImplementation(); DList folders = null; boolean mustCommit = false; try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where folder... | 1,108,414 |
public static PhotoFolder getRoot() { ODMGXAWrapper txw = new ODMGXAWrapper(); Implementation odmg = ODMG.getODMGImplementation(); DList folders = null; boolean mustCommit = false; try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where folder... | public static PhotoFolder getRoot() { ODMGXAWrapper txw = new ODMGXAWrapper(); Implementation odmg = ODMG.getODMGImplementation(); DList folders = null; boolean mustCommit = false; try { OQLQuery query = odmg.newOQLQuery(); query.create( "select folders from " + PhotoFolder.class.getName() + " where folder... | 1,108,415 |
public PrintPreviewPanel(PrintPanel settings) { this.settings = settings; setDoubleBuffered(false); settings.addPropertyChangeListener(this); } | public PrintPreviewPanel(PrintPanel settings) { this.settings = settings; setDoubleBuffered(false); settings.addPropertyChangeListener(this); } | 1,108,416 |
public PrintPreviewPanel(PrintPanel settings) { this.settings = settings; setDoubleBuffered(false); settings.addPropertyChangeListener(this); } | public PrintPreviewPanel(PrintPanel settings) { this.settings = settings; setDoubleBuffered(false); PrintPanel.this.addPropertyChangeListener(this); PreviewZoomAdjuster adjuster = new PreviewZoomAdjuster(); addMouseMotionListener(adjuster); addMouseListener(adjuster); } | 1,108,417 |
public Dimension getPreferredSize() { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; double preferredScale = 500.0/print... | public Dimension getPreferredSize() { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; double preferredScale = 500.0/print... | 1,108,418 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,419 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,420 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,421 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,422 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,424 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,425 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,426 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,427 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,428 |
public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | public void paintComponent(Graphics g) { settings.validateLayout(); double iW = settings.pageFormat.getImageableWidth(); double iH = settings.pageFormat.getImageableHeight(); double printoutWidth = settings.pagesAcross * iW; double printoutHeight = settings.pagesDown * iH; // create a bitmapped image of t... | 1,108,429 |
public PrintPanel(PlayPen pp) { super(); setOpaque(true); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.pp = pp; job = PrinterJob.getPrinterJob(); jobAttributes = new HashPrintRequestAttributeSet(); pageFormat = job.defaultPage(); JPanel formPanel = new JPanel(new FormLayout()); formPanel.add(new JLa... | public PrintPanel(PlayPen pp) { super(); setOpaque(true); setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.pp = pp; job = PrinterJob.getPrinterJob(); jobAttributes = new HashPrintRequestAttributeSet(); pageFormat = job.defaultPage(); JPanel formPanel = new JPanel(new FormLayout()); formPanel.add(new JLa... | 1,108,430 |
public void setDriverClassName(String driverClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { log.info("Loading JDBC driver: [" + driverClassName + "]"); this.driverClassName = driverClassName; getClass().getClassLoader().loadClass(driverClassName).newInstance(); } | public void setDriverClassName(String driverClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { log.info("Loading JDBC driver: [" + driverClassName + "]"); this.driverClassName = driverClassName; getClass().getClassLoader().loadClass(driverClassName).newInstance(); } | 1,108,432 |
public void setDriverClassName(String driverClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { log.info("Loading JDBC driver: [" + driverClassName + "]"); this.driverClassName = driverClassName; getClass().getClassLoader().loadClass(driverClassName).newInstance(); } | public void setDriverClassName(String driverClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { log.info("Loading JDBC driver: [" + driverClassName + "]"); this.driverClassName = driverClassName; getClass().getClassLoader().loadClass(driverClassName).newInstance(); } | 1,108,433 |
public void setJdbcURL(String jdbcURL) { log.info("Setting url to: " + jdbcURL); this.jdbcURL = jdbcURL; } | public void setJdbcURL(String jdbcURL) { log.info("Setting url to: " + jdbcURL); this.jdbcURL = jdbcURL; } | 1,108,434 |
private void doEscape(String str) throws IOException, SQLException, ArchitectException { String rest = null; if (str.length() > 2) { rest = str.substring(2); } if (str.startsWith("\\d")) { // Display if (rest == null){ throw new ArchitectException("\\d needs display arg"); } display(rest); } else if... | private void doEscape(String str) throws IOException, SQLException, ArchitectException { String rest = null; if (str.length() > 2) { rest = str.substring(2); } if (str.startsWith("\\d")) { // Display if (rest == null){ throw new ArchitectException("\\d needs display arg"); } display(rest); } else if... | 1,108,435 |
public static void deleteApplication(String applicationId) { assert applicationId != null: "applicationId is null"; ApplicationConfig config = getApplicationConfig(applicationId); assert config != null: "there is no application with id="+applicationId; deleteApplication(config); } | public static ApplicationConfig deleteApplication(String applicationId) { assert applicationId != null: "applicationId is null"; ApplicationConfig config = getApplicationConfig(applicationId); assert config != null: "there is no application with id="+applicationId; deleteApplication(conf... | 1,108,436 |
public Config read(){ List applications = config.getRootElement().getChild(APPLICATIONS).getChildren(); List<ApplicationConfig> appConfigList = getApplicationConfigList(applications, null); List<DashboardConfig> dashboardConfigList = null; Element dashboards = config.getRo... | public Config read(){ List applications = config.getRootElement().getChild(APPLICATIONS).getChildren(); List<ApplicationConfig> appConfigList = getApplicationConfigList(applications, null); List<DashboardConfig> dashboardConfigList = null; Element dashboards = config.getRo... | 1,108,438 |
public void write(Config config) { try { Document doc = new Document(); Element rootElement = new Element(ConfigConstants.APPLICATION_CONFIG); /* applications */ Element applicationsElement = new Element(ConfigConstants.APPLICATIONS); rootElement.addCont... | public void write(Config config) { try { Document doc = new Document(); Element rootElement = new Element(ConfigConstants.APPLICATION_CONFIG); /* applications */ Element applicationsElement = new Element(ConfigConstants.APPLICATIONS); rootElement.addCont... | 1,108,439 |
public void write(Config config) { try { Document doc = new Document(); Element rootElement = new Element(ConfigConstants.APPLICATION_CONFIG); /* applications */ Element applicationsElement = new Element(ConfigConstants.APPLICATIONS); rootElement.addCont... | public void write(Config config) { try { Document doc = new Document(); Element rootElement = new Element(ConfigConstants.APPLICATION_CONFIG); /* applications */ Element applicationsElement = new Element(ConfigConstants.APPLICATIONS); rootElement.addCont... | 1,108,440 |
public ProportionalSpacingDialog(HaploView h, String title){ super (h, title); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JSlider slider = new JSlider(0,100, (int)(Options.getSpacingThreshold()*100)); ... | public ProportionalSpacingDialog(HaploView h, String title){ super (h, title); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JSlider slider = new JSlider(0,100, (int)(Options.getSpacingThreshold()*200)); ... | 1,108,441 |
public void stateChanged(ChangeEvent e) { JSlider source = (JSlider)e.getSource(); if (!source.getValueIsAdjusting()) { double thresh = ((double)source.getValue())/100; Options.setSpacingThreshold(thresh); hv.dPrimeDisplay.computePreferredSize(); if (hv.dPri... | public void stateChanged(ChangeEvent e) { JSlider source = (JSlider)e.getSource(); if (!source.getValueIsAdjusting()) { double thresh = ((double)source.getValue())/100; Options.setSpacingThreshold(thresh*0.5); hv.dPrimeDisplay.computePreferredSize(); if (hv.... | 1,108,442 |
public void taskFinished(TaskTerminationEvent e) { System.out.println("\n\n\n========================================="); try { for ( SQLTable t : tables ) { ProfileResult pr = profileManager.getResult(t); System.out.println(... | public void taskFinished(TaskTerminationEvent e) { System.out.println("\n\n\n========================================="); try { for ( SQLTable t : tables ) { ProfileResult pr = profileManager.getResult(t); System.out.println(... | 1,108,443 |
public void actionPerformed(ActionEvent e) { if (dbTree == null) { logger.debug("dbtree was null when actionPerformed called"); return; } try { if ( dbTree.getSelectionPaths() == null ) return; final Set <SQLTable> tables = ... | public void actionPerformed(ActionEvent e) { if (dbTree == null) { logger.debug("dbtree was null when actionPerformed called"); return; } try { if ( dbTree.getSelectionPaths() == null ) return; final Set <SQLTable> tables = ... | 1,108,444 |
public void actionPerformed(ActionEvent e) { if (dbTree == null) { logger.debug("dbtree was null when actionPerformed called"); return; } try { if ( dbTree.getSelectionPaths() == null ) return; final Set <SQLTable> tables = ... | public void actionPerformed(ActionEvent e) { if (dbTree == null) { logger.debug("dbtree was null when actionPerformed called"); return; } try { if ( dbTree.getSelectionPaths() == null ) return; final Set <SQLTable> tables = ... | 1,108,445 |
public synchronized void createProfiles(Collection<SQLTable> tables ) throws SQLException, ArchitectException { createProfiles(tables,null); } | public synchronized void createProfiles(Collection<SQLTable> tables ) throws SQLException, ArchitectException { createProfiles(tables,null); } | 1,108,448 |
public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | public void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessException { ... | 1,108,450 |
public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | 1,108,451 |
public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | 1,108,452 |
public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | 1,108,453 |
public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | public static void createPdf(OutputStream out, java.util.List<SQLTable> tables, ProfileManager pm) throws DocumentException, IOException, SQLException, ArchitectException, InstantiationException, IllegalAccessExceptio... | 1,108,454 |
public static void showExceptionDialogNoReport(Component parent,String string, Throwable ex) { displayExceptionDialog(parent, string, ex); } | public static void showExceptionDialogNoReport(Component parent,String string, Throwable ex) { displayExceptionDialog(parent, string, ex); } | 1,108,455 |
public void unregister() { assert connection != null; assert monitorObjName != null; /* remove notification listener */ connection.removeNotificationListener(monitorObjName, listener, filter, null); /* unregister GaugeMonitor MBean */ connection.unregisterMBea... | public void unregister() { assert connection != null; assert monitorObjName != null; /* remove notification listener */ connection.removeNotificationListener(monitorObjName, listener, filter, null); /* unregister GaugeMonitor MBean */ connection.unregisterMBea... | 1,108,457 |
public void unregister() { assert connection != null; assert monitorObjName != null; /* remove notification listener */ connection.removeNotificationListener(monitorObjName, listener, filter, null); /* unregister GaugeMonitor MBean */ connection.unregisterMBea... | public void unregister() { assert connection != null; assert monitorObjName != null; /* remove notification listener */ connection.removeNotificationListener(monitorObjName, listener, filter, null); /* unregister GaugeMonitor MBean */ try { connection.unregis... | 1,108,458 |
public AlertInfo(ObjectNotification notification){ // todo: figure out a better way to generate unique alert ids setAlertId(notification.getType() + System.currentTimeMillis()); setType(notification.getType()); setSequenceNumber(notification.getSequenceNumber()); setMessage(notifi... | public AlertInfo(ObjectNotification notification){ // todo: figure out a better way to generate unique alert ids setAlertId(notification.getType() + System.currentTimeMillis()); setType(notification.getType()); setSequenceNumber(notification.getSequenceNumber()); setMessage(notifi... | 1,108,460 |
public TextScript(String text) { this.text = text; } | public TextScript(String text) { this.text = text; } | 1,108,461 |
public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | 1,108,462 |
public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | 1,108,463 |
public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | 1,108,464 |
public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component cell = super.getTableCellRendererComponent (table, value, isSelected, hasFocus, row, column); int myRating = ((CheckDataTableModel)table.... | 1,108,465 |
public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | public CheckDataPanel(PedFile pf) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileReader(file))... | 1,108,467 |
public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | 1,108,468 |
public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | 1,108,469 |
public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | 1,108,470 |
public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | public CheckDataPanel(File file, int type) throws IOException, PedFileException{ setLayout(new BoxLayout(this,BoxLayout.Y_AXIS)); //okay, for now we're going to assume the ped file has no header Vector pedFileStrings = new Vector(); BufferedReader reader = new BufferedReader(new FileRead... | 1,108,471 |
public void redoRatings(){ try{ Vector result = pedfile.check(); for (int i = 0; i < table.getRowCount(); i++){ MarkerResult cur = (MarkerResult)result.get(i); int rating = cur.getRating(); if (rating > 0){ table.setValueAt... | public void redoRatings(){ try{ Vector result = pedfile.check(); for (int i = 0; i < table.getRowCount(); i++){ MarkerResult cur = (MarkerResult)result.get(i); int rating = cur.getRating(); if (rating > 0){ table.setValueAt... | 1,108,472 |
public void redoRatings(){ try{ Vector result = pedfile.check(); for (int i = 0; i < table.getRowCount(); i++){ MarkerResult cur = (MarkerResult)result.get(i); int rating = cur.getRating(); if (rating > 0){ table.setValueAt... | public void redoRatings(){ try{ Vector result = pedfile.check(); for (int i = 0; i < table.getRowCount(); i++){ MarkerResult cur = (MarkerResult)result.get(i); int rating = cur.getRating(); if (rating > 0){ table.setValueAt... | 1,108,473 |
public void redoRatings(){ try{ Vector result = pedfile.check(); for (int i = 0; i < table.getRowCount(); i++){ MarkerResult cur = (MarkerResult)result.get(i); int rating = cur.getRating(); if (rating > 0){ table.setValueAt... | public void redoRatings(){ try{ Vector result = pedfile.check(); for (int i = 0; i < table.getRowCount(); i++){ MarkerResult cur = (MarkerResult)result.get(i); int rating = cur.getRating(); if (rating > 0){ table.setValueAt... | 1,108,474 |
public void selectAll(){ for (int i = 0; i < table.getRowCount(); i++){ table.setValueAt(new Boolean(true), i, 7); } } | public void selectAll(){ for (int i = 0; i < table.getRowCount(); i++){ table.setValueAt(new Boolean(true), i, STATUS_COL); } } | 1,108,475 |
public void tableChanged(TableModelEvent e) { if (e.getColumn() == 7){ changed = true; } } | public void tableChanged(TableModelEvent e) { if (e.getColumn() == STATUS_COL){ changed = true; } } | 1,108,476 |
public void doTag(XMLOutput output) throws Exception { if (test == null && xpath == null) { throw new MissingAttributeException( "test" ); } if (test != null) { if (! test.evaluateAsBoolean(context)) { fail( getBodyText(), "evaluating test: "+ test ); ... | public void doTag(XMLOutput output) throws Exception { if (test == null && xpath == null) { throw new MissingAttributeException( "test" ); } if (test != null) { if (! test.evaluateAsBoolean(context)) { fail( getBodyText(), "evaluating test: "+ test ); ... | 1,108,477 |
public void setXpath(Expression xpath) { this.xpath = xpath; } | public void setXpath(XPath xpath) { this.xpath = xpath; } | 1,108,478 |
public boolean evaluateAsBoolean(Context context); | public boolean evaluateAsBoolean(JellyContext context); | 1,108,479 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.