bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void actionPerformed(ActionEvent e) { saveOrSaveAs(false, true); } | public void actionPerformed(ActionEvent e) { playpen.setZoom(1.0); } | 1,111,164 |
protected void tearDown() throws Exception { db.disconnect(); db = null; } | protected void tearDown() throws Exception { db = null; } | 1,111,165 |
public void setDataSource(Object dataSource) { if ( dataSource != null ) { log.info( "Setting data source to: " + dataSource + " of type: " + dataSource.getClass() ); } else { log.info( "Setting data source to: " + dataSource ); } this.rawDataSource = dataSource; this.dataSourceSpecified = true; } | public void setDataSource(Object dataSource) { if ( dataSource != null ) { log.info( "Setting data source to: " + dataSource + " of type: " + dataSource.getClass() ); } else { log.info( "Setting data source to: " + dataSource ); } this.rawDataSource = dataSource; this.dataSourceSpecified = true; } | 1,111,166 |
public SQLCatalog getCatalogByName(String catalogName) throws ArchitectException { if (!populated) populate(); if (children == null || children.size() == 0) { return null; } if (! (children.get(0) instanceof SQLCatalog) ) { // this database doesn't contain catalogs! return null; } Iterator childit = childr... | public SQLCatalog getCatalogByName(String catalogName) throws ArchitectException { populate(); if (children == null || children.size() == 0) { return null; } if (! (children.get(0) instanceof SQLCatalog) ) { // this database doesn't contain catalogs! return null; } Iterator childit = children.iterator(); ... | 1,111,168 |
public SQLSchema getSchemaByName(String schemaName) throws ArchitectException { if (!populated) populate(); if (children == null || children.size() == 0) { return null; } if (! (children.get(0) instanceof SQLSchema || children.get(0) instanceof SQLCatalog) ) { // this database doesn't contain schemas or catalo... | public SQLSchema getSchemaByName(String schemaName) throws ArchitectException { populate(); if (children == null || children.size() == 0) { return null; } if (! (children.get(0) instanceof SQLSchema || children.get(0) instanceof SQLCatalog) ) { // this database doesn't contain schemas or catalogs! return nul... | 1,111,169 |
public void propertyChange(PropertyChangeEvent e) { String pn = e.getPropertyName(); if ( (e.getOldValue() == null && e.getNewValue() != null) || (e.getOldValue() != null && e.getNewValue() == null) || (e.getOldValue() != null && e.getNewValue() != null && !e.getOldValue().equals(e.getNewValue())) ) { i... | public void propertyChange(PropertyChangeEvent e) { String pn = e.getPropertyName(); if ( (e.getOldValue() == null && e.getNewValue() != null) || (e.getOldValue() != null && e.getNewValue() == null) || (e.getOldValue() != null && e.getNewValue() != null && !e.getOldValue().equals(e.getNewValue())) ) { i... | 1,111,170 |
public void propertyChange(PropertyChangeEvent e) { String pn = e.getPropertyName(); if ( (e.getOldValue() == null && e.getNewValue() != null) || (e.getOldValue() != null && e.getNewValue() == null) || (e.getOldValue() != null && e.getNewValue() != null && !e.getOldValue().equals(e.getNewValue())) ) { i... | public void propertyChange(PropertyChangeEvent e) { String pn = e.getPropertyName(); if ( (e.getOldValue() == null && e.getNewValue() != null) || (e.getOldValue() != null && e.getNewValue() == null) || (e.getOldValue() != null && e.getNewValue() != null && !e.getOldValue().equals(e.getNewValue())) ) { i... | 1,111,171 |
public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } Object xpathContext = getXPathContext(); if (select == null) { select = createXPathFromBody(xpathContext); ... | public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new MissingAttributeException( "var" ); } Object xpathContext = getXPathContext(); if (select == null) { select = createXPathFromBody(xpathContext); } Objec... | 1,111,172 |
public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } Object xpathContext = getXPathContext(); if (select == null) { select = createXPathFromBody(xpathContext); ... | public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } if (select == null) { select = createXPathFromBody(xpathContext); } Object value = sele... | 1,111,173 |
public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } Object xpathContext = getXPathContext(); if (select == null) { select = createXPathFromBody(xpathContext); ... | public void doTag(XMLOutput output) throws Exception { if (var == null) { throw new IllegalArgumentException("The var attribute cannot be null"); } Object xpathContext = getXPathContext(); if (select == null) { throw new MissingAttributeException( "select" )... | 1,111,174 |
public void saveDprimeToText(File dumpDprimeFile, int source, int start, int stop) throws IOException{ FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); System.out.println("save dprime to text!"); //we use this LinkedList to store the dprime computations for a window of 5 markers ... | public void saveDprimeToText(File dumpDprimeFile, int source, int start, int stop) throws IOException{ FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); System.out.println("save dprime to text!"); //we use this LinkedList to store the dprime computations for a window of 5 markers ... | 1,111,175 |
public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... | 1,111,176 |
public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(appEvent instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHisto... | 1,111,177 |
public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... | 1,111,178 |
public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... | public void handleEvent(Event event) { ApplicationDowntimeHistory downtimeHistory = getDowntimeHistory(event.getApplicationConfig()); assert downtimeHistory != null; if(event instanceof ApplicationUpEvent){ // application must have went down earlier assert downtimeHistory.... | 1,111,179 |
public void applicationWentDown(long time){ assert downtimeBegin == null; downtimeBegin = time; } | public void applicationWentDown(long time){ assert downtimeBegin == null; downtimeBegin = time; } | 1,111,180 |
public void mouseReleased(MouseEvent mouseEvent) { firstMouseEvent = null; if ( dragType == DRAG_TYPE_SELECT ) { // Find out thumbails inside the selection rectangle // First lets restrict search to those rows that intersect with selection int topRow =... | public void mouseReleased(MouseEvent mouseEvent) { firstMouseEvent = null; if ( dragType == DRAG_TYPE_SELECT && photoCollection != null ) { // Find out thumbails inside the selection rectangle // First lets restrict search to those rows that intersect with select... | 1,111,181 |
public TablePane() { setOpaque(true); dt = new DropTarget(this, new TablePaneDropListener(this)); dgl = new TablePaneDragGestureListener(); ds = new DragSource(); // dgr = getToolkit().createDragGestureRecognizer(MouseDragGestureRecognizer.class, ds, this, DnDConstants.ACTION_MOVE, dgl); dgr = ds.createDefaultDr... | private TablePane() { setOpaque(true); dt = new DropTarget(this, new TablePaneDropListener(this)); dgl = new TablePaneDragGestureListener(); ds = new DragSource(); // dgr = getToolkit().createDragGestureRecognizer(MouseDragGestureRecognizer.class, ds, this, DnDConstants.ACTION_MOVE, dgl); dgr = ds.createDefaultD... | 1,111,182 |
public ApplicationConfig getApplicationConfig() { assert appName != null; return ServiceUtils.getApplicationConfigByName(appName); } | public ApplicationConfig getApplicationConfig() { if (appName == null) return null; return ServiceUtils.getApplicationConfigByName(appName); } | 1,111,183 |
public ObjectName getObjectName() { assert mbeanName != null; String mbeanName = ServiceUtils.resolveMBeanName(getApplicationConfig(), this.mbeanName); return new ObjectName(mbeanName); } | public ObjectName getObjectName() { if (mbeanName == null) return null; String mbeanName = ServiceUtils.resolveMBeanName(getApplicationConfig(), this.mbeanName); return new ObjectName(mbeanName); } | 1,111,184 |
protected Action createAction() { return new Action() { public void run(Node node) throws Exception { xpathSource = node; if (log.isDebugEnabled()) { log.debug( "Firing template body for match: " + match + " and node: " + node ); ... | protected Action createAction(final StylesheetTag tag, final XMLOutput output) { return new Action() { public void run(Node node) throws Exception { xpathSource = node; if (log.isDebugEnabled()) { log.debug( "Firing template body for match: " + ... | 1,111,187 |
protected Rule createRule() { return new Rule( match, getAction() ); } | protected Rule createRule() { return new Rule( match, getAction() ); } | 1,111,190 |
public void doTag(XMLOutput output) throws Exception { // for use by inner classes this.output = output; StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyException( "This <template> tag must be used ins... | public void doTag(XMLOutput output) throws Exception { // for use by inner classes StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyException( "This <template> tag must be used inside a <stylesheet> ta... | 1,111,191 |
public void doTag(XMLOutput output) throws Exception { // for use by inner classes this.output = output; StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyException( "This <template> tag must be used ins... | public void doTag(XMLOutput output) throws Exception { // for use by inner classes this.output = output; StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class ); if (tag == null) { throw new JellyException( "This <template> tag must be used ins... | 1,111,192 |
protected URL resolveURL(String name) throws MalformedURLException { URL url = this.getClass().getClassLoader().getResource(name); if (url == null) { File file = new File(name); if (file.exists()) { return file.toURL(); } return... | protected URL resolveURL(String name) throws MalformedURLException { URL url = this.getClass().getClassLoader().getResource(name); if (url == null) { File file = new File(name); if (file.exists()) { return file.toURL(); } return... | 1,111,193 |
protected URL resolveURL(String name) throws MalformedURLException { URL url = this.getClass().getClassLoader().getResource(name); if (url == null) { File file = new File(name); if (file.exists()) { return file.toURL(); } return... | protected URL resolveURL(String name) throws MalformedURLException { URL url = this.getClass().getClassLoader().getResource(name); if (url == null) { File file = new File(name); if (file.exists()) { return file.toURL(); } return... | 1,111,194 |
public void run(Context context, XMLOutput output) throws Exception { if ( var == null ) { throw new JellyException( "<define:script> must have a var attribute" ); } context.setVariable( var, getbody() ); } | public void run(Context context, XMLOutput output) throws Exception { if ( var == null ) { throw new JellyException( "<define:script> must have a var attribute" ); } context.setVariable( var, getBody() ); } | 1,111,196 |
public void setUp() { PhotovaultSettings.setConfiguration( "pv_test" ); String sqldbName = PhotovaultSettings.getConfProperty( "dbname" ); ODMG.initODMG("harri", "r1t1rat1", sqldbName); odmg = ODMG.getODMGImplementation(); db = ODMG.getODMGDatabase();// try {// db.open( "repository.xml", Database.OPEN_RE... | public void setUp() { PhotovaultSettings.setConfiguration( "pv_test" ); String sqldbName = PhotovaultSettings.getConfProperty( "dbname" ); ODMG.initODMG("harri", "r1t1rat1", sqldbName); odmg = ODMG.getODMGImplementation(); db = ODMG.getODMGDatabase();// try {// db.open( "repository.xml", Database.OPEN_RE... | 1,111,197 |
private static void authenticate(ServiceContextImpl context, String className, String methodName){ User user = context.getUser(); if(user == null){ /* only the login method in AuthService is allowed without ... | private static void authenticate(ServiceContextImpl context, String className, String methodName){ User user = context.getUser(); if(user == null){ /* only the login method in AuthService is allowed without ... | 1,111,198 |
public void setUp() { File f = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); try { source = ImageIO.read( f ); } catch ( IOException e ) { System.err.println( "Error reading image: " + e.getMessage() ); return; } testDir = new File( "c:\\java\\photovault\\tests\\images\\photovault\\image\\Im... | public void setUp() { File f = new File( testImgDir, "test1.jpg" ); try { source = ImageIO.read( f ); } catch ( IOException e ) { System.err.println( "Error reading image: " + e.getMessage() ); return; } testDir = new File( "c:\\java\\photovault\\tests\\images\\photovault\\image\\ImageXform" ); } | 1,111,199 |
public void setUp() { File f = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); try { source = ImageIO.read( f ); } catch ( IOException e ) { System.err.println( "Error reading image: " + e.getMessage() ); return; } testDir = new File( "c:\\java\\photovault\\tests\\images\\photovault\\image\\Im... | public void setUp() { File f = new File( "c:\\java\\photovault\\testfiles\\test1.jpg" ); try { source = ImageIO.read( f ); } catch ( IOException e ) { System.err.println( "Error reading image: " + e.getMessage() ); return; } testDir = new File( refImgDir, "photovault/image/ImageXform" ); } | 1,111,200 |
public void doPermutations() { stopProcessing = false; Vector curResults = null; Haplotype[][] haplotypes = new Haplotype[testSet.getHaplotypeAssociationResults().size()][]; Iterator hitr = testSet.getHaplotypeAssociationResults().iterator(); int count = 0; while (hitr.hasN... | public void doPermutations() { stopProcessing = false; Vector curResults = null; Haplotype[][] haplotypes = new Haplotype[testSet.getHaplotypeAssociationResults().size()][]; Iterator hitr = testSet.getHaplotypeAssociationResults().iterator(); int count = 0; while (hitr.hasN... | 1,111,201 |
public void doPermutations() { stopProcessing = false; Vector curResults = null; Haplotype[][] haplotypes = new Haplotype[testSet.getHaplotypeAssociationResults().size()][]; Iterator hitr = testSet.getHaplotypeAssociationResults().iterator(); int count = 0; while (hitr.hasN... | public void doPermutations() { stopProcessing = false; Vector curResults = null; Haplotype[][] haplotypes = new Haplotype[testSet.getHaplotypeAssociationResults().size()][]; Iterator hitr = testSet.getHaplotypeAssociationResults().iterator(); int count = 0; while (hitr.hasN... | 1,111,202 |
public BufferedImage export(int start, int stop){ forExport = true; exportStart = start; if (exportStart < 0){ exportStart = 0; } exportStop = stop; if (exportStop > theData.filteredDPrimeTable.length){ exportStop = theData.filteredDPrimeTable.length; ... | public BufferedImage export(int start, int stop, boolean compress){ forExport = true; exportStart = start; if (exportStart < 0){ exportStart = 0; } exportStop = stop; if (exportStop > theData.filteredDPrimeTable.length){ exportStop = theData.filteredDP... | 1,111,203 |
public Dimension getPreferredSize() { //loop through table to find deepest non-null comparison PairwiseLinkage[][] dPrimeTable = theData.filteredDPrimeTable; int upLim, loLim; if (forExport){ loLim = exportStart; upLim = exportStop; }else{ loLim = ... | public Dimension getPreferredSize() { //loop through table to find deepest non-null comparison PairwiseLinkage[][] dPrimeTable = theData.filteredDPrimeTable; int upLim, loLim; if (forExport){ loLim = exportStart; upLim = exportStop; }else{ loLim = ... | 1,111,205 |
public void paintComponent(Graphics g){ PairwiseLinkage[][] dPrimeTable = theData.filteredDPrimeTable; Vector blocks = theData.blocks; Rectangle visRect = getVisibleRect(); //deal with zooming if (chartSize.getWidth() > (3*visRect.width)){ showWM = true; }else{ ... | public void paintComponent(Graphics g){ PairwiseLinkage[][] dPrimeTable = theData.filteredDPrimeTable; Vector blocks = theData.blocks; Rectangle visRect = getVisibleRect(); //deal with zooming if (chartSize.getWidth() > (3*visRect.width)){ showWM = true; }else{ ... | 1,111,206 |
public static ImageInstance retrieve( VolumeBase volume, String fname ) throws PhotoNotFoundException { String oql = "select instance from " + ImageInstance.class.getName() + " where volumeId = \"" + volume.getName() + "\" and fname = \"" + fname + "\""; List instances = null; // Get transaction context ODMGXAW... | public static ImageInstance retrieve( VolumeBase volume, String fname ) throws PhotoNotFoundException { String oql = "select instance from " + ImageInstance.class.getName() + " where volumeId = \"" + volume.getName() + "\" and fname = \"" + fname + "\""; List instances = null; // Get transaction context ODMGXAW... | 1,111,209 |
public void actionPerformed(ActionEvent evt) { Selectable invoker = pp.getSelection(); if (invoker instanceof TablePane) { TablePane tp = (TablePane) invoker; int idx; while ( (idx = tp.getSelectedColumnIndex()) >= 0) { tp.getModel().removeChild(idx); } } else { JOptionPane.showMessageDialog((JComponen... | public void actionPerformed(ActionEvent evt) { Selectable invoker = pp.getSelection(); if (invoker instanceof TablePane) { TablePane tp = (TablePane) invoker; int idx; while ( (idx = tp.getSelectedColumnIndex()) >= 0) { tp.getModel().removeColumn(idx); } } else { JOptionPane.showMessageDialog((JCompone... | 1,111,210 |
public void actionPerformed(ActionEvent evt ) { manager.undo(); } | public void actionPerformed(ActionEvent evt ) { if (logger.isDebugEnabled()) { logger.debug(manager); int choice = JOptionPane.showConfirmDialog(null, "Undo manager state dumped to logger." + "\n\n" + "Proceed with undo?"); if (choice == JOptionPane.YES_OPTION) { manager.undo(); } } else { manager.undo(); } } | 1,111,212 |
public Object getVariable(String name) { Object value = variables.get(name); if ( value == null && isInherit() ) { JellyContext parent = getParent(); if (parent != null) { value = parent.findVariable( name ); } } return valu... | public Object getVariable(String name) { Object value = variables.get(name); if ( value == null && isInherit() ) { JellyContext parent = getParent(); if (parent != null) { value = parent.getVariable( name ); } } return value... | 1,111,213 |
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; AssociationTestSet customAssocSet; if(!quietMode && fileName != null){ System.out.println("Using data ... | private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; AssociationTestSet customAssocSet; if(!quietMode && fileName != null){ System.out.println("Using data ... | 1,111,215 |
private void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); prefs = PrefsUtils.getUserPrefsNode(architectSession); CoreUserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour wh... | private void init() throws ArchitectException { int accelMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); prefs = PrefsUtils.getUserPrefsNode(architectSession); CoreUserSettings us; // must be done right away, because a static // initializer in this class effects BeanUtils // behaviour wh... | 1,111,216 |
public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | 1,111,217 |
public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | 1,111,218 |
public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | 1,111,219 |
public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | public void actionPerformed(ActionEvent e) { try { final MappingReport mr ; final List<SQLTable> selectedTables; if (playpen.getSelectedTables().size() == 0) { selectedTables = new ArrayList(playpen.getTables()); ... | 1,111,220 |
public void actionPerformed(ActionEvent e) { f.setVisible(false); } | public void actionPerformed(ActionEvent e) { try { ExportCSV export = new ExportCSV(selectedTables); File file = null; JFileChooser fileDialog = new JFileChooser(); fileDialog.setSelectedFile(new File("map.csv")); if (fileDialog.showSaveDialog(ArchitectFrame.getMain... | 1,111,221 |
public void actionPerformed(ActionEvent e) { try { ExportCSV export = new ExportCSV(getProject().getPlayPen().getDatabase().getTables()); File file = null; JFileChooser fileDialog = new JFileChooser(); fileDialog.setS... | public void actionPerformed(ActionEvent e) { try { ExportCSV export = new ExportCSV(getProject().getPlayPen().getDatabase().getTables()); File file = null; JFileChooser fileDialog = new JFileChooser(); fileDialog.setS... | 1,111,222 |
public void run() { try { lastSaveOpSuccessful = false; project.setSaveInProgress(true); project.save(finalSeparateThread ? pm : null); lastSaveOpSuccessful = true; JOptionPane.showMessageDialog(ArchitectFrame.this, "Save successful"); } catch (Exception ex) { lastSaveOpSuccessful = fal... | public void run() { try { lastSaveOpSuccessful = false; project.setSaveInProgress(true); project.save(finalSeparateThread ? pm : null); lastSaveOpSuccessful = true; JOptionPane.showMessageDialog(ArchitectFrame.this, "Save successful"); } catch (Exception ex) { lastSaveOpSuccessful = fal... | 1,111,223 |
public void mousePressed (MouseEvent e) { if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK){ final int clickX = e.getX(); final int clickY = e.getY(); double dboxX = (double)(clickX - clickXShift - (clickY-clic... | public void mousePressed (MouseEvent e) { if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK){ final int clickX = e.getX(); final int clickY = e.getY(); double dboxX = (double)(clickX - clickXShift - (clickY-clic... | 1,111,224 |
public void mousePressed (MouseEvent e) { if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK){ final int clickX = e.getX(); final int clickY = e.getY(); double dboxX = (double)(clickX - clickXShift - (clickY-clic... | public void mousePressed (MouseEvent e) { if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK){ final int clickX = e.getX(); final int clickY = e.getY(); double dboxX = (double)(clickX - clickXShift - (clickY-clic... | 1,111,225 |
public Object construct(){ final int leftMargin = 12; String[] displayStrings = new String[5]; if (markersLoaded){ displayStrings[0] = new String ("(" +((SNP)marker... | public Object construct(){ final int leftMargin = 12; String[] displayStrings = new String[5]; if (markersLoaded){ displayStrings[0] = new String ("(" +((SNP)marker... | 1,111,226 |
public Object construct(){ final int leftMargin = 12; String[] displayStrings = new String[5]; if (markersLoaded){ displayStrings[0] = new String ("(" +((SNP)marker... | public Object construct(){ final int leftMargin = 12; String[] displayStrings = new String[5]; if (markersLoaded){ displayStrings[0] = new String ("(" +((SNP)marker... | 1,111,227 |
DPrimeDisplay(PairwiseLinkage[][] t, boolean b, Vector v){ markersLoaded = b; dPrimeTable = t; markers = v; this.setDoubleBuffered(true); addMouseListener(new PopMouseListener(this)); } | DPrimeDisplay(PairwiseLinkage[][] t, boolean b){ markersLoaded = b; dPrimeTable = t; markers = v; this.setDoubleBuffered(true); addMouseListener(new PopMouseListener(this)); } | 1,111,228 |
DPrimeDisplay(PairwiseLinkage[][] t, boolean b, Vector v){ markersLoaded = b; dPrimeTable = t; markers = v; this.setDoubleBuffered(true); addMouseListener(new PopMouseListener(this)); } | DPrimeDisplay(PairwiseLinkage[][] t, boolean b, Vector v){ markersLoaded = b; dPrimeTable = t; this.setDoubleBuffered(true); addMouseListener(new PopMouseListener(this)); } | 1,111,229 |
public void loadMarkers(Vector v){ markersLoaded = true; markers = v; repaint(); } | public void loadMarkers(){ markersLoaded = true; markers = v; repaint(); } | 1,111,230 |
public void loadMarkers(Vector v){ markersLoaded = true; markers = v; repaint(); } | public void loadMarkers(Vector v){ markersLoaded = true; repaint(); } | 1,111,231 |
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | 1,111,232 |
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | 1,111,233 |
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | 1,111,234 |
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | 1,111,235 |
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | 1,111,236 |
public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); clipRect = (Rectangle)g.getClip(); //first paint grab the cliprect for the whole viewport if (viewRect.width == 0){viewRect=clipRect;} ... | 1,111,237 |
public void adjustDisplay(){ //this is called when the controller wants to change the haps //displayed, instead of directly repainting so that none of this math //is done when the screen repaints for other reasons (resizing, focus change, etc) //first filter haps on displaythresh ... | public void adjustDisplay(){ //this is called when the controller wants to change the haps //displayed, instead of directly repainting so that none of this math //is done when the screen repaints for other reasons (resizing, focus change, etc) //first filter haps on displaythresh ... | 1,111,238 |
public void getHaps() throws HaploViewException{ if (theData.blocks == null) {return;} Haplotype[][] haplos = theData.generateHaplotypes(theData.blocks,false); orderedHaplos = new Haplotype[haplos.length][]; for (int i = 0; i < haplos.length; i++) { Vector orderedHaps = new Ve... | public void getHaps() throws HaploViewException{ if (theData.blocks == null) {return;} orderedHaplos = theData.generateHaplotypes(theData.blocks,false); orderedHaplos = new Haplotype[haplos.length][]; for (int i = 0; i < haplos.length; i++) { Vector orderedHaps = new Vector();... | 1,111,239 |
public void getHaps() throws HaploViewException{ if (theData.blocks == null) {return;} Haplotype[][] haplos = theData.generateHaplotypes(theData.blocks,false); orderedHaplos = new Haplotype[haplos.length][]; for (int i = 0; i < haplos.length; i++) { Vector orderedHaps = new Ve... | public void getHaps() throws HaploViewException{ if (theData.blocks == null) {return;} Haplotype[][] haplos = theData.generateHaplotypes(theData.blocks,false); orderedHaplos = new Haplotype[haplos.length][]; for (int i = 0; i < haplos.length; i++) { Vector orderedHaps = new Ve... | 1,111,240 |
public void testForObjectCompareToNull(){ SQLTable t = new SQLTable(); t.setName("Testing"); assertEquals (1, comparator.compare(t, null)); assertEquals (-1, comparator.compare(null, t)); } | public void testForObjectCompareToNull() throws ArchitectException{ SQLTable t = new SQLTable(); t.setName("Testing"); assertEquals (1, comparator.compare(t, null)); assertEquals (-1, comparator.compare(null, t)); } | 1,111,242 |
public void testForObjectCompareToObject(){ SQLTable t1 = new SQLTable(); SQLTable t2 = new SQLTable(); t1.setName("cow"); t2.setName("pigs"); assertTrue( comparator.compare(t1,t2) < 0); } | public void testForObjectCompareToObject() throws ArchitectException{ SQLTable t1 = new SQLTable(); SQLTable t2 = new SQLTable(); t1.setName("cow"); t2.setName("pigs"); assertTrue( comparator.compare(t1,t2) < 0); } | 1,111,243 |
public void testWithNullName() { SQLTable t1 = new SQLTable(); SQLTable t2 = new SQLTable(); assertEquals(0, comparator.compare(t1,t2)); } | public void testWithNullName() throws ArchitectException { SQLTable t1 = new SQLTable(); SQLTable t2 = new SQLTable(); assertEquals(0, comparator.compare(t1,t2)); } | 1,111,244 |
public void testWithSameName(){ SQLTable t1 = new SQLTable(); SQLTable t2 = new SQLTable(); t1.setName("cow"); t2.setName("cow"); assertEquals( 0, comparator.compare(t1,t2)); } | public void testWithSameName() throws ArchitectException{ SQLTable t1 = new SQLTable(); SQLTable t2 = new SQLTable(); t1.setName("cow"); t2.setName("cow"); assertEquals( 0, comparator.compare(t1,t2)); } | 1,111,245 |
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,247 |
public PlayPen() { zoom = 1.0; setBackground(java.awt.Color.white); contentPane = new PlayPenContentPane(this); setLayout(null); setName("Play Pen"); setMinimumSize(new Dimension(1,1)); dt = new DropTarget(this, new PlayPenDropListener()); bringToFrontAction = new BringToFrontAction(this); sendToBackAction = ... | public PlayPen() { zoom = 1.0; setBackground(java.awt.Color.white); contentPane = new PlayPenContentPane(this); setLayout(new PlayPenLayout()); setName("Play Pen"); setMinimumSize(new Dimension(1,1)); dt = new DropTarget(this, new PlayPenDropListener()); bringToFrontAction = new BringToFrontAction(this); send... | 1,111,248 |
public void actionPerformed(ActionEvent e) { logger.debug("oldZoom="+playpen.getZoom()+",zoomStep="+zoomStep); playpen.setZoom(playpen.getZoom() + zoomStep); logger.debug("newZoom="+playpen.getZoom()); Rectangle scrollTo = null; Iterator it = playpen.getSelectedItems().iterator(); while (it.hasNext()) { Rectan... | public void actionPerformed(ActionEvent e) { logger.debug("oldZoom="+playpen.getZoom()+",zoomStep="+zoomStep); playpen.setZoom(playpen.getZoom() * Math.pow(2,zoomStep)); logger.debug("newZoom="+playpen.getZoom()); Rectangle scrollTo = null; Iterator it = playpen.getSelectedItems().iterator(); while (it.hasNext()... | 1,111,249 |
public void propertyChange(PropertyChangeEvent e) { if ("zoom".equals(e.getPropertyName())) { if (playpen.getZoom() + zoomStep < 0.1) { setEnabled(false); } else { setEnabled(true); } } } | public void propertyChange(PropertyChangeEvent e) { if ("zoom".equals(e.getPropertyName())) { if (playpen.getZoom() + zoomStep < 0.1) { setEnabled(false); } else { setEnabled(true); } } } | 1,111,250 |
public boolean validate(Message message, MailProcessingRecord record) { return true; } | public boolean validate(Message message, MailProcessingRecord record) { MimeMultipart mimeMultipart; try { mimeMultipart = new MimeMultipart(message.getDataHandler().getDataSource()); } catch (MessagingException e) { return false; } int textPartSize = MailMatchingUtils.getMimePartSize(mimeMultipart, "text/plain"); ... | 1,111,251 |
protected void createUI() { editor = new PhotoInfoEditor( ctrl ); getContentPane().add( editor, BorderLayout.NORTH ); JButton okBtn = new JButton( "OK" ); okBtn.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } cat... | protected void createUI() { editor = new PhotoInfoEditor( ctrl ); getContentPane().add( editor, BorderLayout.NORTH ); JButton okBtn = new JButton( "OK" ); okBtn.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } cat... | 1,111,253 |
protected void createUI() { editor = new PhotoInfoEditor( ctrl ); getContentPane().add( editor, BorderLayout.NORTH ); JButton okBtn = new JButton( "OK" ); okBtn.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } cat... | protected void createUI() { editor = new PhotoInfoEditor( ctrl ); getContentPane().add( editor, BorderLayout.NORTH ); JButton okBtn = new JButton( "OK" ); okBtn.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } cat... | 1,111,254 |
protected void createUI() { editor = new PhotoInfoEditor( ctrl ); getContentPane().add( editor, BorderLayout.NORTH ); JButton okBtn = new JButton( "OK" ); okBtn.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } cat... | protected void createUI() { editor = new PhotoInfoEditor( ctrl ); getContentPane().add( editor, BorderLayout.NORTH ); JButton okBtn = new JButton( "OK" ); okBtn.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } cat... | 1,111,255 |
public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } catch ( Exception ex ) { log.warn( "problem while saving changes: " + ex.getMessage() ); } setVisible( false ); } | public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } catch ( Exception ex ) { log.warn( "problem while saving changes: " + ex.getMessage() ); } setVisible( false ); } | 1,111,256 |
public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } catch ( Exception ex ) { log.warn( "problem while saving changes: " + ex.getMessage() ); } setVisible( false ); } | public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } catch ( Exception ex ) { JOptionPane.showMessageDialog( staticThis, "Error while saving changes: \n" + ex.getMessage(), "Error saving changes", JOptionPane.ERROR_MESSAGE, null ); log.warn( "problem while saving chan... | 1,111,257 |
public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } catch ( Exception ex ) { log.warn( "problem while saving changes: " + ex.getMessage() ); } } | public void actionPerformed( ActionEvent e ) { try { ctrl.save(); photoChanged = true; } catch ( Exception ex ) { log.warn( "problem while saving changes: " + ex.getMessage() ); } } | 1,111,258 |
public void saveDprimeToText(String[][] dPrimeTable, String infile) throws IOException{ File dumpDprimeFile = new File(infile); FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); saveDprimeWriter.write("L1\tL2\tD'\tLOD\tr^2\tCIlow\tCIhi\n"); for (int i = 0; i < dPrimeTable.length; i++){ for (int j = ... | public void saveDprimeToText(String[][] dPrimeTable, String infile) throws IOException{ File dumpDprimeFile = new File(infile); FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); saveDprimeWriter.write("L1\tL2\tD'\tLOD\tr^2\tCIlow\tCIhi\n"); for (int i = 0; i < dPrimeTable.length; i++){ for (int j = ... | 1,111,259 |
public void saveHapsToText(Haplotype[][] finishedHaplos, String saveName) throws IOException{ NumberFormat nf = NumberFormat.getInstance(); nf.setMinimumFractionDigits(3); nf.setMaximumFractionDigits(3); //open file for saving haps text File saveHapsFile = new File(saveName); FileWriter saveHapsWriter = new FileWr... | public void saveHapsToText(Haplotype[][] finishedHaplos, File saveHapsFile) throws IOException{ NumberFormat nf = NumberFormat.getInstance(); nf.setMinimumFractionDigits(3); nf.setMaximumFractionDigits(3); //open file for saving haps text File saveHapsFile = new File(saveName); FileWriter saveHapsWriter = new File... | 1,111,260 |
public void saveHapsToText(Haplotype[][] finishedHaplos, String saveName) throws IOException{ NumberFormat nf = NumberFormat.getInstance(); nf.setMinimumFractionDigits(3); nf.setMaximumFractionDigits(3); //open file for saving haps text File saveHapsFile = new File(saveName); FileWriter saveHapsWriter = new FileWr... | public void saveHapsToText(Haplotype[][] finishedHaplos, String saveName) throws IOException{ NumberFormat nf = NumberFormat.getInstance(); nf.setMinimumFractionDigits(3); nf.setMaximumFractionDigits(3); //open file for saving haps text FileWriter saveHapsWriter = new FileWriter(saveHapsFile); int[][]lookupPos =... | 1,111,261 |
public void export(List<SQLTable> tablesToExport) throws SQLException, ArchitectException { logger.debug("Starting export of tables: "+tablesToExport); finished = false; hasStarted = true; Connection con = null; // repository connection Connection tCon = null; // target db connect... | public void export(List<SQLTable> tablesToExport) throws SQLException, ArchitectException { logger.debug("Starting export of tables: "+tablesToExport); finished = false; hasStarted = true; Connection con = null; // repository connection Connection tCon = null; // target db connect... | 1,111,262 |
Vector doSFS(){ double cutHighCI = 0.98; double cutLowCI = 0.70; double recHighCI = 0.90; int numStrong = 0; int numRec = 0; int numInGroup = 0; Vector blocks = new Vector(); Vector strongPairs = new Vector(); //first make a list of marker pairs in "strong LD", sorted by distance apart for (int x = 0; x < dPrime.... | Vector doSFS(){ double cutHighCI = 0.98; double cutLowCI = 0.70; double recHighCI = 0.90; int numStrong = 0; int numRec = 0; int numInGroup = 0; Vector blocks = new Vector(); Vector strongPairs = new Vector(); //first make a list of marker pairs in "strong LD", sorted by distance apart for (int x = 0; x < dPrime.... | 1,111,263 |
Vector doSFS(){ double cutHighCI = 0.98; double cutLowCI = 0.70; double recHighCI = 0.90; int numStrong = 0; int numRec = 0; int numInGroup = 0; Vector blocks = new Vector(); Vector strongPairs = new Vector(); //first make a list of marker pairs in "strong LD", sorted by distance apart for (int x = 0; x < dPrime.... | Vector doSFS(){ double cutHighCI = 0.98; double cutLowCI = 0.70; double recHighCI = 0.90; int numStrong = 0; int numRec = 0; int numInGroup = 0; Vector blocks = new Vector(); Vector strongPairs = new Vector(); //first make a list of marker pairs in "strong LD", sorted by distance apart for (int x = 0; x < dPrime.... | 1,111,264 |
protected Script compileScript() throws Exception { XMLParser parser = new XMLParser(); parser.setContext(getJellyContext()); Script script = parser.parse(getUrl().openStream()); script = script.compile(); if (log.isDebugEnabled()) { log.debug("Compiled script: " + getU... | protected Script compileScript() throws Exception { XMLParser parser = new XMLParser(); parser.setContext(getJellyContext()); Script script = parser.parse(getUrl().toString()); script = script.compile(); if (log.isDebugEnabled()) { log.debug("Compiled script: " + getUrl... | 1,111,265 |
public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command==RAW_DATA){ load(PED); }else if (command == PHASED_DATA){ load(HAPS); }else if (command == BROWSE_GENO){ browse(GENO); }else if (command == BROWSE_INFO)... | public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (command==RAW_DATA){ load(PED); }else if (command == PHASED_DATA){ load(HAPS); }else if (command == BROWSE_GENO){ browse(GENO); }else if (command == BROWSE_INFO)... | 1,111,266 |
void load(int ft){ fileType = ft; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel filePanel = new JPanel(); filePanel.setLayout(new BoxLayout(filePanel, BoxLayout.Y_AXIS)); JPanel topFilePanel = new JPanel(); JPan... | void load(int ft){ fileType = ft; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel filePanel = new JPanel(); filePanel.setLayout(new BoxLayout(filePanel, BoxLayout.Y_AXIS)); JPanel topFilePanel = new JPanel(); JPan... | 1,111,268 |
public int doStartTag() throws JspException{ HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); WebContext context = null; try{ context = WebContext.get(request); ApplicationConfig appConfig = context.getApplicationConfig(); ... | public int doStartTag() throws JspException{ HttpServletRequest request = (HttpServletRequest)pageContext.getRequest(); WebContext context = null; try{ context = WebContext.get(request); ApplicationConfig appConfig = context.getApplicationConfig(); ... | 1,111,269 |
public TagScript createCustomTagScript(final String name, Attributes attributes) throws Exception { // custom Ant tags if ( name.equals("fileScanner") ) { return new TagScript( new TagFactory() { public Tag createTag() throws Exception { ... | public TagScript createCustomTagScript(String name, Attributes attributes) throws Exception { // custom Ant tags if ( name.equals("fileScanner") ) { return new TagScript( new TagFactory() { public Tag createTag() throws Exception { ... | 1,111,270 |
public TagScript createCustomTagScript(final String name, Attributes attributes) throws Exception { // custom Ant tags if ( name.equals("fileScanner") ) { return new TagScript( new TagFactory() { public Tag createTag() throws Exception { ... | public TagScript createCustomTagScript(final String name, Attributes attributes) throws Exception { // custom Ant tags if ( name.equals("fileScanner") ) { return new TagScript( new TagFactory() { public Tag createTag(String name, Attributes attributes... | 1,111,271 |
public Tag createTag() throws Exception { return new FileScannerTag(new FileScanner()); } | public Tag createTag(String name, Attributes attributes) throws Exception { return new FileScannerTag(new FileScanner()); } | 1,111,272 |
public Tag createTag() throws Exception { return new SetPropertyTag(); } | public Tag createTag(String name, Attributes attributes) throws Exception { return new SetPropertyTag(); } | 1,111,273 |
public Tag createTag(String name) throws Exception { AntTag tag = new AntTag( name ); if ( name.equals( "echo" ) ) { tag.setTrim(false); } return tag; } | public Tag createTag(String name, Attributes attributes) throws Exception { AntTag tag = new AntTag( name ); if ( name.equals( "echo" ) ) { tag.setTrim(false); } return tag; } | 1,111,274 |
public TagScript createTagScript(final String name, Attributes attributes) throws Exception { TagScript answer = createCustomTagScript(name, attributes); if ( answer == null ) { answer = new TagScript( new TagFactory() { public Tag createTag() throws Except... | public TagScript createTagScript(String name, Attributes attributes) throws Exception { TagScript answer = createCustomTagScript(name, attributes); if ( answer == null ) { answer = new TagScript( new TagFactory() { public Tag createTag() throws Exception { ... | 1,111,275 |
public TagScript createTagScript(final String name, Attributes attributes) throws Exception { TagScript answer = createCustomTagScript(name, attributes); if ( answer == null ) { answer = new TagScript( new TagFactory() { public Tag createTag() throws Except... | public TagScript createTagScript(final String name, Attributes attributes) throws Exception { TagScript answer = createCustomTagScript(name, attributes); if ( answer == null ) { answer = new TagScript( new TagFactory() { public Tag createTag() throws Except... | 1,111,276 |
public Tag createTag() throws Exception { return AntTagLibrary.this.createTag(name); } | public Tag createTag() throws Exception { return AntTagLibrary.this.createTag(name); } | 1,111,277 |
protected String loadText(Reader reader) throws Exception { StringBuffer buffer = new StringBuffer(); // @todo its probably more efficient to use a fixed char[] buffer instead BufferedReader bufferedReader = new BufferedReader(reader); while (true) { String line = buff... | protected String loadText(Reader reader) throws Exception { StringBuffer buffer = new StringBuffer(); // @todo its probably more efficient to use a fixed char[] buffer instead BufferedReader bufferedReader = new BufferedReader(reader); while (true) { String line = buff... | 1,111,278 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.