bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | 1,108,122 |
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | 1,108,123 |
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | 1,108,124 |
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | 1,108,125 |
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | 1,108,126 |
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions... | 1,108,127 |
private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { int numExt = stmt.cliParamExtPositions.size(); for (int i = 0; i < stmt.cliParamExtPositions.size(); i++) { int paramPos = ((Integer) (stmt.cliParamExtPositions).get(i)).intV... | private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { int numExt = stmt.cliParamExtPositions.size(); for (int i = 0; i < stmt.cliParamExtPositions.size(); i++) { int paramPos = ((Integer) (stmt.cliParamExtPositions).get(i)).intV... | 1,108,128 |
private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { int numExt = stmt.cliParamExtPositions.size(); for (int i = 0; i < stmt.cliParamExtPositions.size(); i++) { int paramPos = ((Integer) (stmt.cliParamExtPositions).get(i)).intV... | private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { int numExt = stmt.cliParamExtPositions.size(); for (int i = 0; i < stmt.cliParamExtPositions.size(); i++) { int paramPos = stmt.getExtPosition(i); final boolean doStream... | 1,108,129 |
private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { int numExt = stmt.cliParamExtPositions.size(); for (int i = 0; i < stmt.cliParamExtPositions.size(); i++) { int paramPos = ((Integer) (stmt.cliParamExtPositions).get(i)).intV... | private void readAndSetAllExtParams(final DRDAStatement stmt, final boolean streamLOB) throws SQLException, DRDAProtocolException { int numExt = stmt.cliParamExtPositions.size(); for (int i = 0; i < stmt.cliParamExtPositions.size(); i++) { int paramPos = ((Integer) (stmt.cliParamExtPositions).get(i)).intV... | 1,108,130 |
private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | 1,108,131 |
private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | 1,108,132 |
private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | 1,108,133 |
private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EngineParameterMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | 1,108,134 |
private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); ... | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); ... | 1,108,135 |
public void addMatrixQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParameter... | public void addMatrixQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParameter... | 1,108,137 |
public void createSessionSurvey(HttpServletRequest request){ HttpSession session = request.getSession(true); Survey survey = new Survey(); Calendar creationDate = Calendar.getInstance(); survey.setCreationDate(creationDate); survey.setStatus(SurveyState.OPEN.getCode()); session.setAttribute("currentSurvey", surv... | public void createSessionSurvey(HttpServletRequest request){ HttpSession session = request.getSession(true); Survey survey = new Survey(); Calendar creationDate = Calendar.getInstance(); survey.setCreationDate(creationDate); survey.setStatus(SurveyState.DESIGN.getCode()); session.setAttribute("currentSurvey", su... | 1,108,138 |
public void removeAnswerFromSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; Collection answers = (Collection) session.getAttribute("answers"); answers.remove(rowId); session.setAttribute("answers", answers); } | public void removeAnswerFromSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; Collection answers = (Collection) session.getAttribute("answers"); answers.remove(rowId); session.setAttribute("answers", answers); } | 1,108,139 |
public void updateMatrixQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParame... | public void updateMatrixQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParame... | 1,108,140 |
private Survey updateSessionSurveyValues(HttpServletRequest request, SurveyForm sform){ HttpSession session = request.getSession(); Survey survey = (Survey) session.getAttribute("currentSurvey"); survey.setName(sform.getName()); survey.setCreationDate(Calendar.getInstance()); survey.setFinishDate(Transformer.getC... | private Survey updateSessionSurveyValues(HttpServletRequest request, SurveyForm sform){ HttpSession session = request.getSession(); Survey survey = (Survey) session.getAttribute("currentSurvey"); survey.setName(sform.getName()); survey.setCreationDate(Calendar.getInstance()); survey.setFinishDate(Transformer.getC... | 1,108,142 |
private void notificaVez() { class ThreadNotifica extends Thread { public int numNotificado; public void run() { getJogador(numNotificado).vez(getJogadorDaVez(), isPodeFechada()); } } for (int i = 1; i <= 4; i++) { ThreadNotifica tn = new ThreadNotifica(); tn.numNotificado = i; tn.start(); } } | private void notificaVez() { class ThreadNotifica extends Thread { public int numNotificado; public void run() { getJogador(numNotificado).vez(getJogadorDaVez(), isPodeFechada()); } } for (int i = 1; i <= 4; i++) { ThreadNotifica tn = new ThreadNotifica(); tn.numNotificado = i; tn.start(); } } | 1,108,143 |
public void run() { getJogador(numNotificado).vez(getJogadorDaVez(), isPodeFechada()); } | public void run() { getJogador(numNotificado).vez(getJogadorDaVez(), isPodeFechada()); } | 1,108,145 |
public static void main(String[] args) { Connection con; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "tn", "dc"}; System.out.println("Test resultsetJdbc30 starting"); try { // use the ij utility to read the property file and // make the initial conne... | public static void main(String[] args) { Connection con; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "tn", "dc"}; System.out.println("Test resultsetJdbc30 starting"); try { // use the ij utility to read the property file and // make the initial conne... | 1,108,146 |
public static void main(String[] args) { Connection con; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "tn", "dc"}; System.out.println("Test resultsetJdbc30 starting"); try { // use the ij utility to read the property file and // make the initial conne... | public static void main(String[] args) { Connection con; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "tn", "dc"}; System.out.println("Test resultsetJdbc30 starting"); try { // use the ij utility to read the property file and // make the initial conne... | 1,108,147 |
public static void main(String[] args) { Connection con; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "tn", "dc"}; System.out.println("Test resultsetJdbc30 starting"); try { // use the ij utility to read the property file and // make the initial conne... | public static void main(String[] args) { Connection con; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "tn", "dc"}; System.out.println("Test resultsetJdbc30 starting"); try { // use the ij utility to read the property file and // make the initial conne... | 1,108,148 |
public NestedLoopLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, ... | public NestedLoopLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, ... | 1,108,149 |
protected String loadText(Reader reader) throws IOException { StringBuffer buffer = new StringBuffer(); // @todo its probably more efficient to use a fixed char[] buffer instead try { BufferedReader bufferedReader = new BufferedReader(reader); while (true) { ... | protected String loadText(Reader reader) throws IOException { StringBuffer buffer = new StringBuffer(); // @todo its probably more efficient to use a fixed char[] buffer instead try { BufferedReader bufferedReader = new BufferedReader(reader); while (true) { ... | 1,108,150 |
private static void testDatabaseMetaDataMethods(Connection con) throws Exception { con.setAutoCommit(true); // make sure it is true Statement s = con.createStatement(); DatabaseMetaData met = con.getMetaData(); if (!met.supportsStoredFunctionsUsingCallSyntax()) { Sys... | private static void testDatabaseMetaDataMethods(Connection con) throws Exception { con.setAutoCommit(true); // make sure it is true Statement s = con.createStatement(); DatabaseMetaData met = con.getMetaData(); if (!met.supportsStoredFunctionsUsingCallSyntax()) { Sys... | 1,108,151 |
public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // "runTest()" is going to try to connect to the database thro... | public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // "runTest()" is going to try to connect to the database thro... | 1,108,152 |
public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // "runTest()" is going to try to connect to the database thro... | public static void main(String[] args) throws Exception { consoleLogStream.switchOutput( shutdownLogStream ); consoleErrLogStream.switchOutput( shutdownErrLogStream ); // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PO... | 1,108,153 |
public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // "runTest()" is going to try to connect to the database thro... | public static void main(String[] args) throws Exception { // Load harness properties. ij.getPropertyArg(args); String hostName = TestUtil.getHostName(); if (hostName.equals("localhost")) NETWORKSERVER_PORT = 20000; else NETWORKSERVER_PORT = 1527; // "runTest()" is going to try to connect to the database thro... | 1,108,154 |
public Volume( String volName, String volBaseDir ) { volumeName = volName; volumeBaseDir = new File( volBaseDir ); if ( !volumeBaseDir.exists() ) { volumeBaseDir.mkdir(); } registerVolume(); } | public Volume( String volName, String volBaseDir ) { volumeName = volName; volumeBaseDir = new File( volBaseDir ); if ( !volumeBaseDir.exists() ) { volumeBaseDir.mkdir(); } registerVolume(); } | 1,108,155 |
public Vector<Transaction> getTransactions(Date startDate, Date endDate){ Vector<Transaction> transactions = getTransactions(); Vector<Transaction> v = new Vector<Transaction>(); for (Transaction t : transactions) { if ((t.getDate().after(startDate) || t.getDate().equals(startDate)) && (t.getDate().before(... | public Vector<Transaction> getTransactions(Date startDate, Date endDate){ Vector<Transaction> transactions = getTransactions(); Vector<Transaction> v = new Vector<Transaction>(); for (Transaction t : transactions) { if ((t.getDate().after(startDate) || t.getDate().equals(startDate)) && (t.getDate().before(... | 1,108,157 |
public void parseHapMap(Vector rawLines) throws PedFileException { int colNum = -1; int numLines = rawLines.size(); if (numLines < 2){ throw new PedFileException("Hapmap data format error: empty file"); } Individual ind; this.allIndividuals = new Vector(); ... | public void parseHapMap(Vector lines) throws PedFileException { int colNum = -1; int numLines = rawLines.size(); if (numLines < 2){ throw new PedFileException("Hapmap data format error: empty file"); } Individual ind; this.allIndividuals = new Vector(); //... | 1,108,158 |
public void parseHapMap(Vector rawLines) throws PedFileException { int colNum = -1; int numLines = rawLines.size(); if (numLines < 2){ throw new PedFileException("Hapmap data format error: empty file"); } Individual ind; this.allIndividuals = new Vector(); ... | public void parseHapMap(Vector rawLines) throws PedFileException { int colNum = -1; int numLines = lines.size(); if (numLines < 2){ throw new PedFileException("Hapmap data format error: empty file"); } Individual ind; this.allIndividuals = new Vector(); //... | 1,108,159 |
public void parseHapMap(Vector rawLines) throws PedFileException { int colNum = -1; int numLines = rawLines.size(); if (numLines < 2){ throw new PedFileException("Hapmap data format error: empty file"); } Individual ind; this.allIndividuals = new Vector(); ... | public void parseHapMap(Vector rawLines) throws PedFileException { int colNum = -1; int numLines = rawLines.size(); if (numLines < 2){ throw new PedFileException("Hapmap data format error: empty file"); } Individual ind; this.allIndividuals = new Vector(); ... | 1,108,160 |
public Family(String familyName){ this.members = new Hashtable(); this.familyName = familyName; } | public Family(){ this.members = new Hashtable(); this.familyName = familyName; } | 1,108,161 |
public Family(String familyName){ this.members = new Hashtable(); this.familyName = familyName; } | public Family(String familyName){ this.members = new Hashtable(); } | 1,108,162 |
public void doTag(XMLOutput output) throws Exception { String message = getMessage(); if ( message == null ) { message = getBodyText(); } fail( message ); } | public void doTag(XMLOutput output) throws JellyTagException { String message = getMessage(); if ( message == null ) { message = getBodyText(); } fail( message ); } | 1,108,163 |
public void flushCache(XWikiContext context) { // We need to flush the virtual wiki list virtualWikiList = new ArrayList(); // We need to flush the server Cache if (virtualWikiMap!=null) { virtualWikiMap.flushAll(); virtualWikiMap = null; } // We need ... | public void flushCache(XWikiContext context) { // We need to flush the virtual wiki list virtualWikiList = new ArrayList(); // We need to flush the server Cache if (virtualWikiMap!=null) { virtualWikiMap.flushAll(); virtualWikiMap = null; } // We need ... | 1,108,164 |
public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Export DDL Script"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DDLExportPanel ddlPanel = new DDLExportPanel(architectFrame... | public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Forward Engineer SQL Script"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DDLExportPanel ddlPanel = new DDLExportPanel(arch... | 1,108,166 |
public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Export DDL Script"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DDLExportPanel ddlPanel = new DDLExportPanel(architectFrame... | public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Export DDL Script"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DDLExportPanel ddlPanel = new DDLExportPanel(architectFrame... | 1,108,167 |
public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Export DDL Script"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DDLExportPanel ddlPanel = new DDLExportPanel(architectFrame... | public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Export DDL Script"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DDLExportPanel ddlPanel = new DDLExportPanel(architectFrame... | 1,108,168 |
public void actionPerformed(ActionEvent evt) { try { ddlPanel.applyChanges(); architectFrame.project.getDDLGenerator().writeDDL (architectFrame.playpen.getDatabase()); } catch (Exception ex) { JOptionPane.showMessageDialog (architectFrame, "Can't export DDL: "+ex.getMessage... | public void actionPerformed(ActionEvent evt) { try { ddlPanel.applyChanges(); architectFrame.project.getDDLGenerator().writeDDL (architectFrame.playpen.getDatabase()); } catch (Exception ex) { JOptionPane.showMessageDialog (architectFrame, "Can't export DDL: "+ex.getMessage... | 1,108,169 |
public void actionPerformed(ActionEvent evt) { try { ddlPanel.applyChanges(); architectFrame.project.getDDLGenerator().writeDDL (architectFrame.playpen.getDatabase()); } catch (Exception ex) { JOptionPane.showMessageDialog (architectFrame, "Can't export DDL: "+ex.getMessage... | public void actionPerformed(ActionEvent evt) { try { ddlPanel.applyChanges(); architectFrame.project.getDDLGenerator().writeDDL (architectFrame.playpen.getDatabase()); } catch (Exception ex) { JOptionPane.showMessageDialog (architectFrame, "Can't export DDL: "+ex.getMessage... | 1,108,170 |
public Object getTaskObject(); | public Object getTaskObject() throws Exception; | 1,108,171 |
public void doTag(XMLOutput output) throws Exception { output.startElement(uri, localName, qname, attributes); getBody().run(context, output); output.endElement(uri, localName, qname); } | public void doTag(XMLOutput output) throws Exception { output.startElement(uri, localName, qname, attributes); invokeBody( output); output.endElement(uri, localName, qname); } | 1,108,172 |
void doExportDPrime(){ fc.setSelectedFile(null); int returnVal = fc.showSaveDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION){ try { int scaleSize = theData.dPrimeTable.length*30; DrawingMethods dm = new DrawingMethods(); BufferedImage image = new BufferedImage(scaleSize, scaleSize, BufferedImage.T... | void doExportDPrime(){ fc.setSelectedFile(null); int returnVal = fc.showSaveDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION){ try { DrawingMethods dm = new DrawingMethods(); BufferedImage image = new BufferedImage(scaleSize, scaleSize, BufferedImage.TYPE_3BYTE_BGR); dm.dPrimeDraw(theData.dPrimeT... | 1,108,173 |
void doExportDPrime(){ fc.setSelectedFile(null); int returnVal = fc.showSaveDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION){ try { int scaleSize = theData.dPrimeTable.length*30; DrawingMethods dm = new DrawingMethods(); BufferedImage image = new BufferedImage(scaleSize, scaleSize, BufferedImage.T... | void doExportDPrime(){ fc.setSelectedFile(null); int returnVal = fc.showSaveDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION){ try { int scaleSize = theData.dPrimeTable.length*30; DrawingMethods dm = new DrawingMethods(); Dimension theSize = dm.dPrimeGetPreferredSize(theData.dPrimeTable.length, inf... | 1,108,174 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(PairwiseLinkage[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = n... | 1,108,176 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; double d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font(... | 1,108,177 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,108,178 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,108,179 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,108,180 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,108,181 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,108,182 |
public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | public void dPrimeDraw(String[][] table, boolean info, Vector snps, Graphics g){ int scale = table.length*30; int activeOffset = 0; float d, l, blgr; Color myColor; int[] shifts; Font regFont = new Font("Lucida Sans Regular", Font.PLAIN, 10); FontMetrics regfm = g.getFontMetrics(regFont); Font boldFont = new Font("... | 1,108,183 |
void saveImage(BufferedImage image, String filename) throws IOException{ try { if (! (filename.endsWith(".jpg") || filename.endsWith(".JPG"))){ filename += ".jpg"; } Jimi.putImage("image/jpg", (Image)image, filename); }catch (com.sun.jimi.core.JimiException e){ e.printStackTrace(); } } | void saveImage(BufferedImage image, String filename) throws IOException{ try { if (! (filename.endsWith(".jpg") || filename.endsWith(".JPG"))){ filename += ".jpg"; } Jimi.putImage("image/jpg", (Image)image, filename); }catch (com.sun.jimi.core.JimiException e){ e.printStackTrace(); } } | 1,108,184 |
void saveImage(BufferedImage image, String filename) throws IOException{ try { if (! (filename.endsWith(".jpg") || filename.endsWith(".JPG"))){ filename += ".jpg"; } Jimi.putImage("image/jpg", (Image)image, filename); }catch (com.sun.jimi.core.JimiException e){ e.printStackTrace(); } } | void saveImage(BufferedImage image, String filename) throws IOException{ try { if (! (filename.endsWith(".jpg") || filename.endsWith(".JPG"))){ filename += ".jpg"; } Jimi.putImage("image/png", (Image)image, filename); }catch (com.sun.jimi.core.JimiException e){ e.printStackTrace(); } } | 1,108,185 |
DPrimePanel(String[][] t){ table = t; } | DPrimePanel(String[][] t, boolean b, Vector v){ table = t; } | 1,108,186 |
BlockDisplay(Vector ms, Vector bs, DPrimePanel dp, boolean ik){ markers = ms; blocks = bs; theDPrime = dp; infoKnown = ik; setBackground(Color.black); setLayout(gridbag); selected = new boolean[markers.size()]; markerButtons = new JButton[markers.size()]; spaceLabels = new JLabel[markers.size() - 1]; //create a bu... | BlockDisplay(Vector ms, Vector bs, DPrimePanel dp, boolean ik){ markers = ms; blocks = bs; theDPrime = dp; infoKnown = ik; setBackground(Color.black); setLayout(gridbag); selected = new boolean[markers.size()]; markerButtons = new JButton[markers.size()]; spaceLabels = new JLabel[markers.size() - 1]; //create a bu... | 1,108,188 |
public void saveDprimeToText(String[][] dPrimeTable, File dumpDprimeFile, boolean info, Vector markerinfo) throws IOException{ FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); if (info){ saveDprimeWriter.write("L1\tL2\tD'\tLOD\tr^2\tCIlow\tCIhi\tDist\n"); long dist; for (int i = 0; i ... | public void saveDprimeToText(PairwiseLinkage[][] dPrimeTable, File dumpDprimeFile, boolean info, Vector markerinfo) throws IOException{ FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); if (info){ saveDprimeWriter.write("L1\tL2\tD'\tLOD\tr^2\tCIlow\tCIhi\tDist\n"); long dist; for (int ... | 1,108,189 |
public void saveDprimeToText(String[][] dPrimeTable, File dumpDprimeFile, boolean info, Vector markerinfo) throws IOException{ FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); if (info){ saveDprimeWriter.write("L1\tL2\tD'\tLOD\tr^2\tCIlow\tCIhi\tDist\n"); long dist; for (int i = 0; i ... | public void saveDprimeToText(String[][] dPrimeTable, File dumpDprimeFile, boolean info, Vector markerinfo) throws IOException{ FileWriter saveDprimeWriter = new FileWriter(dumpDprimeFile); if (info){ saveDprimeWriter.write("L1\tL2\tD'\tLOD\tr^2\tCIlow\tCIhi\tDist\n"); long dist; for (int i = 0; i ... | 1,108,190 |
public void setAttribute(String name, Object value) throws JellyTagException { // ### we'll assume that all attributes are in no namespace! // ### this is severely limiting! // ### - Tag attributes should allow for namespace aware int index = attributes.getIndex("", name); if (ind... | public void setAttribute(String name, Object value) throws JellyTagException { // ### we'll assume that all attributes are in no namespace! // ### this is severely limiting! // ### - Tag attributes should allow for namespace aware int index = attributes.getIndex("", name); if (ind... | 1,108,191 |
public void startElement( String uri, String localName, String qName, Attributes atts) throws SAXException { int idx = qName.indexOf(':'); String attNsPrefix = ""; if (idx >= 0) { attNsPrefix = qName.substring(0, idx); } namespaceStack... | public void startElement( String uri, String localName, String qName, Attributes atts) throws SAXException { int idx = qName.indexOf(':'); String attNsPrefix = ""; if (idx >= 0) { attNsPrefix = qName.substring(0, idx); } namespaceStack... | 1,108,192 |
public void endElement(String uri, String localName, String qName) throws SAXException { contentHandler.endElement(uri, localName, qName); // Inform namespaceStack to return to previous depth namespaceStack.decreaseLevel(); namespaceStack.popNamespaces(); } | public void endElement(String uri, String localName, String qName) throws SAXException { contentHandler.endElement(uri, localName, qName); // Inform namespaceStack to return to previous depth namespaceStack.decreaseLevel(); namespaceStack.popNamespaces(); } | 1,108,193 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,194 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,195 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,197 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,199 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,200 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,201 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,202 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,204 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,205 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,206 |
public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | public HaploView(){ //menu setup JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); JMenuItem menuItem; //file menu JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); menuItem = new JMenuItem(READ_GENOTYPES); setAccelerator(menuItem, 'O', false); menuItem.addActionListener(this); fileMenu.add(menuIte... | 1,108,209 |
void defineBlocks(){ String[] methodStrings = {"95% of informative pairwise comparisons show strong LD via confidence intervals (SFS)", "Four Gamete Rule", "Solid block of strong LD via D prime (MJD)"}; JComboBox methodList = new JComboBox(methodStrings); JOptionPane.showMessageDialog(this, metho... | void defineBlocks(){ String[] methodStrings = {"95% of informative pairwise comparisons show strong LD via confidence intervals (SFS)", "Four Gamete Rule", "Solid block of strong LD via D prime (MJD)"}; JComboBox methodList = new JComboBox(methodStrings); JOptionPane.showMessageDialog(this, metho... | 1,108,210 |
public static void main(String[] args) {//throws IOException{ try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } //setup view object HaploView window = new HaploView(); window.setTitle("HaploView beta"); window.setSize(800,600); //center the window on th... | public static void main(String[] args) {//throws IOException{ try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } //setup view object HaploView window = new HaploView(); window.setTitle("HaploView beta"); window.setSize(800,600); //center the window on th... | 1,108,211 |
public static void main(String[] args) {//throws IOException{ try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } //setup view object HaploView window = new HaploView(); window.setTitle("HaploView beta"); window.setSize(800,600); //center the window on th... | public static void main(String[] args) {//throws IOException{ try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } //setup view object HaploView window = new HaploView(); window.setTitle("HaploView beta"); window.setSize(800,600); //center the window on th... | 1,108,212 |
public static void main(String[] args) {//throws IOException{ try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } //setup view object HaploView window = new HaploView(); window.setTitle("HaploView beta"); window.setSize(800,600); //center the window on th... | public static void main(String[] args) {//throws IOException{ try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { } //setup view object HaploView window = new HaploView(); window.setTitle("HaploView beta"); window.setSize(800,600); //center the window on th... | 1,108,213 |
void readMarkers(File inputFile){ try { int good = theData.prepareMarkerInput(inputFile); if (good == -1){ JOptionPane.showMessageDialog(this, "Number of markers in info file does not match number of markers in dataset.", "Error", JOptionPane.ERROR_MESSAGE); }else{ infoK... | void readMarkers(File inputFile){ try { int good = theData.prepareMarkerInput(inputFile); if (good == -1){ JOptionPane.showMessageDialog(this, "Number of markers in info file does not match number of markers in dataset.", "Error", JOptionPane.ERROR_MESSAGE); }else{ infoK... | 1,108,214 |
void readPhasedGenotypes(String[] f){ //input is a 2 element array with //filenames[0] = haps file //filenames[1] = info file (null if none) filenames = f; try{ theData = new HaploData(new File(filenames[0])); //compute D primes and monitor progress progressMonitor = new ProgressMonitor(this, "C... | void readPhasedGenotypes(String[] f){ //input is a 2 element array with //filenames[0] = haps file //filenames[1] = info file (null if none) filenames = f; try{ theData = new HaploData(new File(filenames[0])); //compute D primes and monitor progress progressMonitor = new ProgressMonitor(this, "C... | 1,108,215 |
void readPhasedGenotypes(String[] f){ //input is a 2 element array with //filenames[0] = haps file //filenames[1] = info file (null if none) filenames = f; try{ theData = new HaploData(new File(filenames[0])); //compute D primes and monitor progress progressMonitor = new ProgressMonitor(this, "C... | void readPhasedGenotypes(String[] f){ //input is a 2 element array with //filenames[0] = haps file //filenames[1] = info file (null if none) filenames = f; try{ theData = new HaploData(new File(filenames[0])); //compute D primes and monitor progress progressMonitor = new ProgressMonitor(this, "C... | 1,108,216 |
public HaplotypeDisplayController(HaplotypeDisplay parent){ this.parent = parent; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel hapPercentPanel = new JPanel(); hapPercentPanel.add(new JLabel("Examine haplotypes above ")); hapPercentPanel.add(minDisplayField = ... | public HaplotypeDisplayController(HaplotypeDisplay parent){ this.parent = parent; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel hapPercentPanel = new JPanel(); hapPercentPanel.add(new JLabel("Examine haplotypes above ")); hapPercentPanel.add(minDisplayField = ... | 1,108,217 |
public HaplotypeDisplayController(HaplotypeDisplay parent){ this.parent = parent; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel hapPercentPanel = new JPanel(); hapPercentPanel.add(new JLabel("Examine haplotypes above ")); hapPercentPanel.add(minDisplayField = ... | public HaplotypeDisplayController(HaplotypeDisplay parent){ this.parent = parent; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel hapPercentPanel = new JPanel(); hapPercentPanel.add(new JLabel("Examine haplotypes above ")); hapPercentPanel.add(minDisplayField = ... | 1,108,218 |
public HaplotypeDisplayController(HaplotypeDisplay parent){ this.parent = parent; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel hapPercentPanel = new JPanel(); hapPercentPanel.add(new JLabel("Examine haplotypes above ")); hapPercentPanel.add(minDisplayField = ... | public HaplotypeDisplayController(HaplotypeDisplay parent){ this.parent = parent; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel hapPercentPanel = new JPanel(); hapPercentPanel.add(new JLabel("Examine haplotypes above ")); hapPercentPanel.add(minDisplayField = ... | 1,108,219 |
public Expression createExpression( ExpressionFactory factory, String tagName, String attributeName, String attributeValue) throws Exception { // #### may need to include some namespace URI information in the XPath instance? if (attributeName.equals("select")) { ... | public Expression createExpression( ExpressionFactory factory, String tagName, String attributeName, String attributeValue) throws Exception { // #### may need to include some namespace URI information in the XPath instance? if (attributeName.equals("select")) { ... | 1,108,221 |
public XPathExpression(XPath xpath) { this.xpath = xpath; } | public XPathExpression(XPath xpath) { this.xpath = xpath; } | 1,108,222 |
public JellyException(String message, Throwable cause) { super(message); this.cause = cause; } | public JellyException(String message, Throwable cause) { super(message); this.cause = cause; } | 1,108,223 |
public void paint( Graphics g ) { super.paint( g ); Graphics2D g2 = (Graphics2D) g; Rectangle clipRect = g.getClipBounds(); Dimension compSize = getSize(); // columnCount = (int)(compSize.getWidth()/columnWidth); int photoCount = 0; if ( photoCollection != nu... | public void paint( Graphics g ) { super.paint( g ); Graphics2D g2 = (Graphics2D) g; Rectangle clipRect = g.getClipBounds(); Dimension compSize = getSize(); // columnCount = (int)(compSize.getWidth()/columnWidth); int photoCount = 0; if ( photoCollection != nu... | 1,108,224 |
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { log.debug( "paintThumbnail entry " + photo.getUid() ); long startTime = System.currentTimeMillis(); long thumbReadyTime = 0; long thumbDrawnTime = 0; long endTime = 0; // Cu... | private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { log.debug( "paintThumbnail entry " + photo.getUid() ); long startTime = System.currentTimeMillis(); long thumbReadyTime = 0; long thumbDrawnTime = 0; long endTime = 0; // Cu... | 1,108,225 |
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { log.debug( "paintThumbnail entry " + photo.getUid() ); long startTime = System.currentTimeMillis(); long thumbReadyTime = 0; long thumbDrawnTime = 0; long endTime = 0; // Cu... | private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { log.debug( "paintThumbnail entry " + photo.getUid() ); long startTime = System.currentTimeMillis(); long thumbReadyTime = 0; long thumbDrawnTime = 0; long endTime = 0; // Cu... | 1,108,226 |
private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { log.debug( "paintThumbnail entry " + photo.getUid() ); long startTime = System.currentTimeMillis(); long thumbReadyTime = 0; long thumbDrawnTime = 0; long endTime = 0; // Cu... | private void paintThumbnail( Graphics2D g2, PhotoInfo photo, int startx, int starty, boolean isSelected ) { log.debug( "paintThumbnail entry " + photo.getUid() ); long startTime = System.currentTimeMillis(); long thumbReadyTime = 0; long thumbDrawnTime = 0; long endTime = 0; // Cu... | 1,108,227 |
public FuzzyDate( Date date, double accuracy ) { this.date = date; this.accuracy = accuracy; } | public FuzzyDate( Date date, double accuracy ) { this.date = (date != null) ? (Date) date.clone() : null; this.accuracy = accuracy; } | 1,108,228 |
public Script parse(InputStream input) throws IOException, SAXException { ensureConfigured(); this.fileName = null; getXMLReader().parse(new InputSource(input)); return script; } | public Script parse(InputStream input) throws IOException, SAXException { ensureConfigured(); this.fileName = null; getXMLReader().parse(new InputSource(input)); return script; } | 1,108,229 |
public void run(Context context, XMLOutput output) throws Exception; | public void run(JellyContext context, XMLOutput output) throws Exception; | 1,108,230 |
public Filter<S> and(Filter<S> filter) { if (filter instanceof OpenFilter) { return this; } if (filter instanceof ClosedFilter) { return filter; } return AndFilter.getCanonical(this, filter); } | public Filter<S> and(Filter<S> filter) { if (filter instanceof OpenFilter) { return this; } if (filter instanceof ClosedFilter) { return filter; } return AndFilter.getCanonical(this, filter); } | 1,108,231 |
public abstract void appendTo(Appendable app, FilterValues<S> values) throws IOException; | public abstract void appendTo(Appendable app, FilterValues<S> values) throws IOException; | 1,108,232 |
public Filter<S> or(Filter<S> filter) { if (filter instanceof OpenFilter) { return filter; } if (filter instanceof ClosedFilter) { return this; } return OrFilter.getCanonical(this, filter); } | public Filter<S> or(Filter<S> filter) { if (filter instanceof OpenFilter) { return filter; } if (filter instanceof ClosedFilter) { return this; } return OrFilter.getCanonical(this, filter); } | 1,108,233 |
public void login(ServiceContext context, String username, String password) throws ServiceException{ LoginCallbackHandler callbackHandler = new LoginCallbackHandler(username, password); User user = null; UserManager userManager = UserMana... | public void login(ServiceContext context, String username, String password) throws ServiceException{ LoginCallbackHandler callbackHandler = new LoginCallbackHandler(username, password); User user = null; UserManager userManager = UserMana... | 1,108,234 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.