bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected void setParameters() { NameValuePair nvp = null; for (int index = 0; index < getParameters().size(); index++) { NameValuePair parameter = (NameValuePair) getParameters(). get(index); _postMethod.addParameter(parameter); } } | protected void setParameters(HttpUrlMethod method) { NameValuePair nvp = null; for (int index = 0; index < getParameters().size(); index++) { NameValuePair parameter = (NameValuePair) getParameters(). get(index); _postMethod.addParameter(parameter); } } | 1,109,325 |
protected void setParameters() { NameValuePair nvp = null; for (int index = 0; index < getParameters().size(); index++) { NameValuePair parameter = (NameValuePair) getParameters(). get(index); _postMethod.addParameter(parameter); } } | protected void setParameters() { NameValuePair nvp = null; for (int index = 0; index < getParameters().size(); index++) { NameValuePair parameter = (NameValuePair) getParameters(). get(index); ((UrlPostMethod) method).addParameter(parameter); } } | 1,109,326 |
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... | public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... | 1,109,327 |
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... | public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception { ... | 1,109,328 |
public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception{ Str... | public ActionForward execute(WebContext context, ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception{ Str... | 1,109,330 |
private void compoundGroupEnd() { if (UndoManager.this.isUndoOrRedoing()) return; if (compoundEditStackCount <= 0){ throw new IllegalStateException("No compound edit in progress"); } compoundEditStackCount--; if (compoundEditStackCount == 0) returnToEditState(); if (logger.isDebugEnabled()) { ... | private void compoundGroupEnd() { if (UndoManager.this.isUndoOrRedoing()) return; if (compoundEditStackCount <= 0){ throw new IllegalStateException("No compound edit in progress"); } compoundEditStackCount--; if (compoundEditStackCount == 0) returnToEditState(); if (logger.isDebugEnabled()) { ... | 1,109,331 |
private void compoundGroupStart(String toolTip) { if (UndoManager.this.isUndoOrRedoing()) return; compoundEditStackCount++; if (compoundEditStackCount == 1) ce = new CompEdit(toolTip); if (logger.isDebugEnabled()) { logger.debug("compoundGroupStart: edit stack ="+compoundEditStackCount); } } | private void compoundGroupStart(String toolTip) { if (UndoManager.this.isUndoOrRedoing()) return; compoundEditStackCount++; if (compoundEditStackCount == 1){ ce = new CompEdit(toolTip); if (logger.isDebugEnabled()) { logger.debug("compoundGroupStart: edit stack ="+compoundEditStackCount); } } | 1,109,332 |
private void createDatabase() { File dbDir = null; try { dbDir = File.createTempFile("pv_junit_derby_instance", ""); dbDir.delete(); } catch (IOException ex) { ex.printStackTrace(); } PVDatabase pvd = new PVDatabase(); pvd.setInstanceType( P... | private void createDatabase() { File dbDir = null; try { dbDir = File.createTempFile("pv_junit_derby_instance", ""); dbDir.delete(); } catch (IOException ex) { ex.printStackTrace(); } PVDatabase pvd = new PVDatabase(); pvd.setInstanceType( P... | 1,109,335 |
public DDLStatement(SQLObject object, StatementType type, String sqlText) { this.object = object; this.type = type; this.sqlText = sqlText; } | public DDLStatement(SQLObject object, StatementType type, String sqlText, String targetCatalog, String targetSchema) { this.object = object; this.type = type; this.sqlText = sqlText; } | 1,109,336 |
public Project getProject() { if ( project == null ) { // we may be invoked inside a child script, so lets try find the parent project project = (Project) context.getVariable( "org.apache.commons.jelly.werkz.Project" ); if ( project == null ) { project = new Project(); ... | public Project getProject() { if ( project == null ) { // we may be invoked inside a child script, so lets try find the parent project project = (Project) context.findVariable( "org.apache.commons.jelly.werkz.Project" ); if ( project == null ) { project = new Project(); ... | 1,109,338 |
public Object getVariable(String name) { // look in parent first Object answer = super.getVariable(name); if (answer == null) { answer = project.getProperty(name); } if ( log.isDebugEnabled() ) { log.debug( "Looking up variable: " + name + " answer: " + answe... | public Object getVariable(String name) { // look in parent first Object answer = super.getVariable(name); if (answer == null) { answer = project.getProperty(name); } if ( log.isDebugEnabled() ) { String answerString = null; try { answerString = answer.toStrin... | 1,109,339 |
FindBlocks(String[][] data){ dPrime = data; } | FindBlocks(PairwiseLinkage[][] data){ dPrime = data; } | 1,109,340 |
public ApplicationConfigData addApplication(ServiceContext context, ApplicationConfigData data){ AccessController.checkAccess(context, ACLConstants.ACL_ADD_APPLICATIONS); /* do the operation */ String appId = ApplicationConfig.getNextApplicationId(... | public ApplicationConfigData addApplication(ServiceContext context, ApplicationConfigData data){ AccessController.checkAccess(context, ACLConstants.ACL_ADD_APPLICATIONS); /* do the operation */ String appId = ApplicationConfig.getNextApplicationId(... | 1,109,341 |
public void actionPerformed(ActionEvent evt) { logger.debug("the hashcode is: " + super.hashCode()); pkTable = null; fkTable = null; logger.debug("Starting to create relationship!"); active = true; pp.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR)); // gets over the "can't select a selected item"... | public void actionPerformed(ActionEvent evt) { logger.debug("the hashcode is: " + super.hashCode()); pkTable = null; fkTable = null; logger.debug("Starting to create relationship, setting active to TRUE!"); active = true; pp.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR)); // gets over the "can't... | 1,109,342 |
Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; int numStrong = 0; int numRec = 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.length-1; x++){ ... | Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; 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,109,344 |
Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; int numStrong = 0; int numRec = 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.length-1; x++){ ... | Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; int numStrong = 0; int numRec = 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.length-1; x++){ ... | 1,109,345 |
Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; int numStrong = 0; int numRec = 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.length-1; x++){ ... | Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; int numStrong = 0; int numRec = 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.length-1; x++){ ... | 1,109,346 |
Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; int numStrong = 0; int numRec = 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.length-1; x++){ ... | Vector doSFS(){ float cutHighCI = 0.98f; float cutLowCI = 0.70f; float recHighCI = 0.90f; int numStrong = 0; int numRec = 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.length-1; x++){ ... | 1,109,347 |
protected void configure() { registerTagLibrary( "jelly:core", new CoreTagLibrary() ); registerTagLibrary( "jelly:xml", new XMLTagLibrary() ); } | protected void configure() { registerTagLibrary( "jelly:core", new CoreTagLibrary() ); registerTagLibrary( "jelly:xml", new XMLTagLibrary() ); } | 1,109,348 |
public DiscoverClasses getDiscoverClasses() { if ( discovery == null ) { ClassLoaders loaders = new ClassLoaders(); loaders.put( getClassLoader() ); discovery = new DiscoverClasses(loaders); discovery.addClassLoader( getClassLoader() ); } return disco... | public DiscoverClasses getDiscoverClasses() { if ( discovery == null ) { ClassLoaders loaders = new ClassLoaders(); loaders.put( getClassLoader() ); discovery = new DiscoverClasses(loaders); discovery.addClassLoader( getClassLoader() ); } return disco... | 1,109,350 |
public DiscoverClasses getDiscoverClasses() { if ( discovery == null ) { ClassLoaders loaders = new ClassLoaders(); loaders.put( getClassLoader() ); discovery = new DiscoverClasses(loaders); discovery.addClassLoader( getClassLoader() ); } return disco... | public DiscoverClasses getDiscoverClasses() { if ( discovery == null ) { ClassLoaders loaders = new ClassLoaders(); loaders.put( getClassLoader() ); discovery = new DiscoverClasses(loaders); } return discovery; } | 1,109,351 |
public double[] computeMultiDprime(Haplotype[][] haplos){ double[] multidprimeArray = new double[haplos.length]; for (int gap = 0; gap < haplos.length - 1; gap++){ double[][] multilocusTable = new double[haplos[gap].length][]; double[] rowSum = new double[haplos[gap].length]; ... | public double[] computeMultiDprime(Haplotype[][] haplos){ double[] multidprimeArray = new double[haplos.length]; for (int gap = 0; gap < haplos.length - 1; gap++){ double[][] multilocusTable = new double[haplos[gap].length][]; double[] rowSum = new double[haplos[gap].length]; ... | 1,109,353 |
public void pickTags(Haplotype[][] haplos){ for (int i = 0; i < haplos.length; i++){ //first clear the tags for this block haplos[i][0].clearTags(); //next pick the tagSNPs Vector theBestSubset = getBestSubset(haplos[i]); for (int j = 0; j < theBestSubse... | public void pickTags(Haplotype[][] haplos){ for (int i = 0; i < haplos.length; i++){ //first clear the tags for this block haplos[i][0].clearTags(); //next pick the tagSNPs Vector theBestSubset = getBestSubset(haplos[i]); for (int j = 0; j < theBestSubse... | 1,109,354 |
protected Stylesheet createStylesheet(final XMLOutput output) { // add default actions Stylesheet answer = new Stylesheet(); answer.setValueOfAction( new Action() { public void run(Node node) throws Exception { String text = node... | protected Stylesheet createStylesheet(final XMLOutput output) { // add default actions Stylesheet answer = new Stylesheet(); answer.setValueOfAction( new Action() { public void run(Node node) throws Exception { String text = node... | 1,109,355 |
private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file " + fileName); } in... | private void processFile(String fileName, int fileType, String infoFileName){ try { HaploData textData; File OutputFile; File inputFile; if(!quietMode && fileName != null){ System.out.println("Using data file " + fileName); } in... | 1,109,356 |
public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException, HaploViewException, PedFileException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector... | 1,109,357 |
public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | 1,109,358 |
public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | 1,109,360 |
public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | 1,109,361 |
public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | 1,109,362 |
public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | public void linkageToChrom(boolean[] markerResults, PedFile pedFile) throws IllegalArgumentException{ if(markerResults == null){ throw new IllegalArgumentException(); } Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); In... | 1,109,363 |
public void linkageToHapsFormat(boolean[] markerResults, PedFile pedFile, String hapFileName)throws IOException{ FileWriter linkageToHapsWriter = new FileWriter(new File(hapFileName)); Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vector(); Indi... | public void linkageToHapsFormat(boolean[] markerResults, PedFile pedFile, String hapFileName)throws IOException, PedFileException{ FileWriter linkageToHapsWriter = new FileWriter(new File(hapFileName)); Vector indList = pedFile.getOrder(); int numMarkers = 0; Vector usedParents = new Vec... | 1,109,364 |
void prepareHapsInput(File infile) throws IOException, HaploViewException{ //this method is called to suck in data from a file (its only argument) //of genotypes and sets up the Chromosome objects. String currentLine; Vector chroms = new Vector(); byte[] genos = new byte[0]; ... | void prepareHapsInput(File infile) throws IOException, HaploViewException{ //this method is called to suck in data from a file (its only argument) //of genotypes and sets up the Chromosome objects. String currentLine; Vector chroms = new Vector(); byte[] genos = new byte[0]; ... | 1,109,365 |
public int compare(SQLObject t1, SQLObject t2) { // if t1 and t2 refer to the same object, or are both null, then they're equal if (t1 == t2) return 0; else if (t1 == null) return -1; else if (t2 == null) return 1; else { //TODO In version 2.0 we want this to be an option String n1 = t1.getName().t... | public int compare(SQLObject t1, SQLObject t2) { // if t1 and t2 refer to the same object, or are both null, then they're equal if (t1 == t2) return 0; else if (t1 == null) return -1; else if (t2 == null) return 1; else { //TODO In version 2.0 we want this to be an option String n1 = t1.getName().t... | 1,109,366 |
public void testReconnectOldRelationshipWithCustomMapping() throws ArchitectException { List<SQLColumn> origParentCols = new ArrayList<SQLColumn>(parentTable.getColumns()); List<SQLColumn> origChild1Cols = new ArrayList<SQLColumn>(childTable1.getColumns()); parentTable.removeExportedKey(rel1); rel1.attachRelati... | public void testReconnectOldRelationshipWithCustomMapping() throws ArchitectException { List<SQLColumn> origParentCols = new ArrayList<SQLColumn>(parentTable.getColumns()); List<SQLColumn> origChild1Cols = new ArrayList<SQLColumn>(childTable1.getColumns()); parentTable.removeExportedKey(rel1); rel1.attachRelati... | 1,109,367 |
public FileIterator(Project project, Iterator fileSetIterator) { this.project = project; this.fileSetIterator = fileSetIterator; } | public FileIterator(Project project, Iterator fileSetIterator) { this.project = project; this.fileSetIterator = fileSetIterator; } | 1,109,368 |
private boolean setNextObject() { while (true) { while (ds == null) { if ( ! fileSetIterator.hasNext() ) { return false; } FileSet fs = (FileSet) fileSetIterator.next(); ds = fs.getDirectoryScanner(project); ... | private boolean setNextObject() { while (true) { while (ds == null) { if ( ! fileSetIterator.hasNext() ) { return false; } FileSet fs = (FileSet) fileSetIterator.next(); ds = fs.getDirectoryScanner(project); ... | 1,109,369 |
public void run(Context context, XMLOutput output) throws Exception { if ( test != null ) { if ( test.evaluateAsBoolean( context ) ) { getBody().run( context, output ); } } } | public void run(JellyContext context, XMLOutput output) throws Exception { if ( test != null ) { if ( test.evaluateAsBoolean( context ) ) { getBody().run( context, output ); } } } | 1,109,370 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { setText(value.toString()); if (value instanceof SQLDatabase) { logger.debug("proj... | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { setText(value.toString()); if (value instanceof SQLDatabase) { logger.debug("proj... | 1,109,371 |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { setText(value.toString()); if (value instanceof SQLDatabase) { logger.debug("proj... | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { setText(value.toString()); if (value instanceof SQLDatabase) { logger.debug("proj... | 1,109,372 |
public DBTree() { setUI(new MultiDragTreeUI()); setRootVisible(false); setShowsRootHandles(true); ds = new DragSource(); ds.createDefaultDragGestureRecognizer (this, DnDConstants.ACTION_COPY, new DBTreeDragGestureListener()); newDBCSAction = new NewDBCSAction(); dbcsPropertiesAction = new DBCSPropertiesActi... | private DBTree() { setUI(new MultiDragTreeUI()); setRootVisible(false); setShowsRootHandles(true); ds = new DragSource(); ds.createDefaultDragGestureRecognizer (this, DnDConstants.ACTION_COPY, new DBTreeDragGestureListener()); newDBCSAction = new NewDBCSAction(); dbcsPropertiesAction = new DBCSPropertiesAct... | 1,109,373 |
public String getName() { return connectionSpec.getDisplayName(); } | public String getName() { if (connectionSpec != null) { return connectionSpec.getDisplayName(); } else { return "PlayPen Database"; } } | 1,109,374 |
public String getShortDisplayName() { return connectionSpec.getDisplayName(); } | public String getShortDisplayName() { return getName(); } | 1,109,375 |
public String toString() { if (connectionSpec != null) { return connectionSpec.getDisplayName(); } else { return "PlayPen Database"; } } | public String toString() { if (connectionSpec != null) { return connectionSpec.getDisplayName(); } else { return "PlayPen Database"; } } | 1,109,376 |
public void startElement( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { // if this is a tag then create a script to run it // otherwise pass the text to the current body ... | public void startElement( String namespaceURI, String localName, String qName, Attributes list) throws SAXException { try { // if this is a tag then create a script to run it // otherwise pass the text to the current body ... | 1,109,378 |
protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { // special handling of size property as the Control object breaks the // JavaBean naming conventions by overloading the setSize() method if (bean instanceof Control) { Object size = attributes.remove("s... | protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { // special handling of size property as the Control object breaks the // JavaBean naming conventions by overloading the setSize() method if (bean instanceof Control) { Object size = attributes.remove("s... | 1,109,379 |
public static String format(Object data){ /* if data is null, return the configured null value */ if(data == null) return nullValue; /* check for a DataFormat for given type (normal object or array)*/ DataFormat formatter = findDataFormat(data); if(formatter != defaultFormatter){ ... | public static String format(Object data){ /* if data is null, return the configured null value */ if(data == null) return nullValue; /* check for a DataFormat for given type (normal object or array)*/ DataFormat formatter = findDataFormat(data); if(formatter != defaultFormatter){ ... | 1,109,380 |
public void doTag(XMLOutput output) throws Exception { if (log.isDebugEnabled()) { log.debug("running with items: " + items); } if (items != null) { Iterator iter = items.evaluateAsIterator(context); if (log.isDebugEnabled()) { log.debug("Iteratin... | public void doTag(XMLOutput output) throws Exception { if (log.isDebugEnabled()) { log.debug("running with items: " + items); } if (items != null) { Iterator iter = items.evaluateAsIterator(context); if (log.isDebugEnabled()) { log.debug("Iteratin... | 1,109,381 |
public Object evaluate(Context context) { // XXXX: unfortunately we must sychronize evaluations // so that we can swizzle in the context. // maybe we could create an expression from a context // (and so create a BSFManager for a context) synchronized (registry) { regist... | public Object evaluate(JellyContext context) { // XXXX: unfortunately we must sychronize evaluations // so that we can swizzle in the context. // maybe we could create an expression from a context // (and so create a BSFManager for a context) synchronized (registry) { r... | 1,109,382 |
public Object evaluate(Context context) { // XXXX: unfortunately we must sychronize evaluations // so that we can swizzle in the context. // maybe we could create an expression from a context // (and so create a BSFManager for a context) synchronized (registry) { regist... | public Object evaluate(Context context) { // XXXX: unfortunately we must sychronize evaluations // so that we can swizzle in the context. // maybe we could create an expression from a context // (and so create a BSFManager for a context) synchronized (registry) { regist... | 1,109,383 |
public void setContext(Context context) { this.context = context; } | public void setContext(JellyContext context) { this.context = context; } | 1,109,384 |
public GBrowseDialog(HaploView h, String title){ super (h,title); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel chromPanel = new JPanel(); chromPanel.add(new JLabel("Chromosome")); String[] c = {"1", "2"... | public GBrowseDialog(HaploView h, String title){ super (h,title); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel chromPanel = new JPanel(); chromPanel.add(new JLabel("Chromosome")); String[] c = {"1", "2"... | 1,109,385 |
private void setup() { progressBar.setVisible(false); FormLayout controlsLayout = new FormLayout( "4dlu,fill:min(150dlu;default):grow, 4dlu", // columns "default, 4dlu, fill:min(200dlu;default):grow,4dlu,default"); // rows CellConstraints cc = new CellConstraints()... | private void setup() { progressBar.setVisible(false); FormLayout controlsLayout = new FormLayout( "4dlu,fill:min(150dlu;default):grow, 4dlu", // columns "default, 4dlu, fill:min(200dlu;default):grow,4dlu,default"); // rows CellConstraints cc = new CellConstraints()... | 1,109,387 |
private void setup() { progressBar.setVisible(false); FormLayout controlsLayout = new FormLayout( "4dlu,fill:min(150dlu;default):grow, 4dlu", // columns "default, 4dlu, fill:min(200dlu;default):grow,4dlu,default"); // rows CellConstraints cc = new CellConstraints()... | private void setup() { progressBar.setVisible(false); FormLayout controlsLayout = new FormLayout( "4dlu,fill:min(150dlu;default):grow, 4dlu", // columns "default, 4dlu, fill:min(200dlu;default):grow,4dlu,default"); // rows CellConstraints cc = new CellConstraints()... | 1,109,388 |
public void displayProfile(SQLTable t, SQLColumn c) { ColumnProfileResult cr = (ColumnProfileResult) pm.getResult(c); TableProfileResult tr = (TableProfileResult) pm.getResult(t); if (tr instanceof TableProfileResult) { rowCount = tr.getRowCount(); } else { rowCount... | public void displayProfile(SQLTable t, SQLColumn c) { ColumnProfileResult cr = (ColumnProfileResult) pm.getResult(c); TableProfileResult tr = (TableProfileResult) pm.getResult(t); if (tr instanceof TableProfileResult) { rowCount = tr.getRowCount(); else { rowCount ... | 1,109,390 |
protected void reset() { if (ignoreReset) { logger.debug("Ignoring Reset request"); return; } logger.debug("Resetting...."); // tear down old connection stuff List old = children; if (old != null && old.size() > 0) { int[] oldIndices = new int[old.size()]; for (int i = 0, n = old.size(); i < n; i++) { ... | protected void reset() { if (ignoreReset) { logger.debug("Ignoring Reset request"); return; } logger.debug("Resetting...."); // tear down old connection stuff List old = children; if (old != null && old.size() > 0) { int[] oldIndices = new int[old.size()]; for (int i = 0, n = old.size(); i < n; i++) { ... | 1,109,393 |
protected void reset() { if (ignoreReset) { logger.debug("Ignoring Reset request"); return; } logger.debug("Resetting...."); // tear down old connection stuff List old = children; if (old != null && old.size() > 0) { int[] oldIndices = new int[old.size()]; for (int i = 0, n = old.size(); i < n; i++) { ... | protected void reset() { if (ignoreReset) { logger.debug("Ignoring Reset request"); return; } logger.debug("Resetting...."); // tear down old connection stuff List old = children; if (old != null && old.size() > 0) { int[] oldIndices = new int[old.size()]; for (int i = 0, n = old.size(); i < n; i++) { ... | 1,109,394 |
protected void reset() { if (ignoreReset) { logger.debug("Ignoring Reset request"); return; } logger.debug("Resetting...."); // tear down old connection stuff List old = children; if (old != null && old.size() > 0) { int[] oldIndices = new int[old.size()]; for (int i = 0, n = old.size(); i < n; i++) { ... | protected void reset() { if (ignoreReset) { logger.debug("Ignoring Reset request"); return; } logger.debug("Resetting...."); // tear down old connection stuff List old = children; if (old != null && old.size() > 0) { int[] oldIndices = new int[old.size()]; for (int i = 0, n = old.size(); i < n; i++) { ... | 1,109,395 |
public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); Vector colNames = new Vector... | public FilteredIndividualsDialog(HaploView h, String title) { super(h,title); JTable table; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents,BoxLayout.Y_AXIS)); Vector axedPeople = h.theData.getPedFile().getAxedPeople(); Vector colNames = new Vector... | 1,109,397 |
public PairwiseLinkage computeDPrime(int pos1, int pos2){ long sep = Chromosome.getMarker(pos2).getPosition() - Chromosome.getMarker(pos1).getPosition(); if (maxdist > 0){ if ((sep > maxdist || sep < negMaxdist)){ return null; } } compsDone++; ... | public PairwiseLinkage computeDPrime(int pos1, int pos2){ long sep = Chromosome.getMarker(pos2).getPosition() - Chromosome.getMarker(pos1).getPosition(); if (maxdist > 0){ if ((sep > maxdist || sep < negMaxdist)){ return null; } } compsDone++; ... | 1,109,399 |
public void drop(DropTargetDropEvent dtde) { PlayPen pp = tp.getPlayPen(); Point loc = pp.unzoomPoint(new Point(dtde.getLocation())); loc.x -= tp.getX(); loc.y -= tp.getY(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavo... | public void drop(DropTargetDropEvent dtde) { PlayPen pp = tp.getPlayPen(); Point loc = pp.unzoomPoint(new Point(dtde.getLocation())); loc.x -= tp.getX(); loc.y -= tp.getY(); logger.debug("Drop target drop event on "+tp.getName()+": "+dtde); Transferable t = dtde.getTransferable(); DataFlavor importFlavo... | 1,109,400 |
public byte[] getOrigInstanceHash() { return (byte[]) origInstanceHash.clone(); } | public byte[] getOrigInstanceHash() { return (origInstanceHash != null) ? ((byte[])origInstanceHash.clone()) : null; } | 1,109,401 |
private void setupMapping(SQLTable newTable, SQLTable otherTable, SQLRelationship newRel, SQLRelationship.ColumnMapping m, boolean newTableIsPk) throws ArchitectException { SQLColumn pkCol = null; SQLColumn fkCol = null; if (newTableIsPk) { pkCol=newTable.getColumnByName(m.getPkColum... | private void setupMapping(SQLTable newTable, SQLTable otherTable, SQLRelationship newRel, SQLRelationship.ColumnMapping m, boolean newTableIsPk) throws ArchitectException { SQLColumn pkCol = null; SQLColumn fkCol = null; if (newTableIsPk) { pkCol=newTable.getColumnByName(m.getPkColum... | 1,109,402 |
public void actionPerformed(ActionEvent evt) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Print"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createMatteBorder(12,12,12,12, cp.getBackground())); final PrintPanel printPanel = new PrintPanel(pp); cp.a... | public void actionPerformed(ActionEvent evt) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Print"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createMatteBorder(12,12,12,12, cp.getBackground())); final PrintPanel printPanel = new PrintPanel(pp); cp.a... | 1,109,403 |
public DashboardConfig(String dashboardId, String name, String template, Map<String, DashboardComponent> components, List<DashboardQualifier> qualifiers) { this.dashboardId = dashboardId; this.name = name; this.template = template; this... | public DashboardConfig(String dashboardId, String name, String template, Map<String, DashboardComponent> components, List<DashboardQualifier> qualifiers) { this.dashboardId = dashboardId; this.name = name; this.template = template; this... | 1,109,407 |
public DashboardConfig(String dashboardId, String name, String template, Map<String, DashboardComponent> components, List<DashboardQualifier> qualifiers) { this.dashboardId = dashboardId; this.name = name; this.template = template; this... | public DashboardConfig(String dashboardId, String name, String template, Map<String, DashboardComponent> components, List<DashboardQualifier> qualifiers) { this.dashboardId = dashboardId; this.name = name; this.template = template; this... | 1,109,408 |
protected Class getDefaultClass() { return null; } | protected Class getDefaultClass() { return defaultClass; } | 1,109,409 |
public TagScript createTagScript(String name, Attributes attributes) throws Exception { Project project = getProject(); // custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newIn... | public TagScript createTagScript(String name, Attributes attributes) throws Exception { Project project = getProject(); // custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newIn... | 1,109,411 |
public TagScript createTagScript(String name, Attributes attributes) throws Exception { Project project = getProject(); // custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newIn... | public TagScript createTagScript(String name, Attributes attributes) throws Exception { Project project = getProject(); // custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newIn... | 1,109,412 |
public TagScript createTagScript(String name, Attributes attributes) throws Exception { Project project = getProject(); // custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newIn... | public TagScript createTagScript(String name, Attributes attributes) throws Exception { Project project = getProject(); // custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newIn... | 1,109,413 |
public FieldController( Object[] model ) { setModel( model, false ); } | public FieldController( Object[] model ) { setModel( model, false ); } | 1,109,414 |
public void testGetDerivedInstance() throws Exception { SQLTable derivedTable; SQLTable table1; // Check to make sure it can be added to a playpen like database SQLDatabase pp = new SQLDatabase(); pp.setIgnoreReset(true); assertNotNull(table1 = db.getTableByName("REGRESSION_TEST1")); derivedTable = SQLTable.get... | public void testGetDerivedInstance() throws Exception { SQLTable derivedTable; SQLTable table1; // Check to make sure it can be added to a playpen like database SQLDatabase pp = new SQLDatabase(); pp.setPlayPenDatabase(true); assertNotNull(table1 = db.getTableByName("REGRESSION_TEST1")); derivedTable = SQLTable... | 1,109,416 |
public void paintComponent(Graphics g){ DPrimeTable dPrimeTable = theData.dpTable; if (Chromosome.getSize() == 0){ //if there are no valid markers, but info is known we don't want //to paint any of that stuff. printDPrimeValues = false; printMarkerNames = fa... | public void paintComponent(Graphics g){ DPrimeTable dPrimeTable = theData.dpTable; if (Chromosome.getSize() == 0){ //if there are no valid markers, but info is known we don't want //to paint any of that stuff. printDPrimeValues = false; printMarkerNames = fa... | 1,109,418 |
public ExportDialog(HaploView h){ super(h, "Export Data"); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel tabPanel = new JPanel(); int currTab = hv.tabs.getSelectedIndex(); tabPanel.setBorder(new TitledBo... | public ExportDialog(HaploView h){ super(h, "Export Data"); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel tabPanel = new JPanel(); int currTab = hv.tabs.getSelectedIndex(); tabPanel.setBorder(new TitledBo... | 1,109,419 |
public void doTag(XMLOutput output) throws Exception { if (test != null) { if (test.evaluateAsBoolean(context)) { getBody().run(context, output); } } else { throw new JellyException( "This tag must have a 'test' attribute defined" ); } } | public void doTag(XMLOutput output) throws Exception { if (test != null) { if (test.evaluateAsBoolean(context)) { getBody().run(context, output); } } else { throw new MissingAttributeException( "test" ); } } | 1,109,420 |
private User buildUser(ActionForm form){ UserForm userForm = (UserForm)form; User user = UserManager.getInstance().getUser(userForm.getUsername()); assert user != null; List roles = new ArrayList(1); roles.add(new Role(userForm.getRole())); user.setRoles(roles); // T... | private User buildUser(ActionForm form){ UserForm userForm = (UserForm)form; User user = UserManager.getInstance().getUser(userForm.getUsername()); assert user != null; List roles = new ArrayList(1); roles.add(new Role(userForm.getRole())); user.setRoles(roles); // T... | 1,109,423 |
public Connection getConnection() throws SQLException { Connection conn = null; if (userName != null) { log.info("Creating connection from url: " + jdbcURL + " userName: " + userName); conn = DriverManager.getConnection(jdbcURL, userName, password); } else { log.info("Creating connection from url: " + jdbcUR... | public Connection getConnection() throws SQLException { Connection conn = null; if (userName != null) { log.info("Creating connection from url: " + jdbcURL + " userName: " + userName); conn = DriverManager.getConnection(jdbcURL, userName, password); } else { log.info("Creating connection from url: " + jdbcUR... | 1,109,425 |
static public FuzzyDate parse( String str ) { log.warn( "Parsing " + str ); FuzzyDate fd = null; // First check whether the string contains a range with start and end dates String rangeSeparator = " - "; int separatorIdx = str.indexOf( rangeSeparator ); if ( separatorIdx > 0 ) { // Yes, it is. Parse both sides ... | static public FuzzyDate parse( String str ) { log.warn( "Parsing " + str ); FuzzyDate fd = null; // First check whether the string contains a range with start and end dates String rangeSeparator = " - "; int separatorIdx = str.indexOf( rangeSeparator ); if ( separatorIdx > 0 ) { // Yes, it is. Parse both sides ... | 1,109,426 |
private void search(String searchText) { rowMapping = null; fireTableDataChanged(); List<Integer> newRowMap = new ArrayList<Integer>(); CharSequence searchSubSequence = searchText.toLowerCase().subSequence(0,searchText.length()); for ( int row = 0; row < tableModel... | private void search(String searchText) { rowMapping = null; fireTableDataChanged(); List<Integer> newRowMap = new ArrayList<Integer>(); CharSequence searchSubSequence = searchText.toLowerCase().subSequence(0,searchText.length()); for ( int row = 0; row < tableModel... | 1,109,427 |
private void search(String searchText) { rowMapping = null; fireTableDataChanged(); List<Integer> newRowMap = new ArrayList<Integer>(); CharSequence searchSubSequence = searchText.toLowerCase().subSequence(0,searchText.length()); for ( int row = 0; row < tableModel... | private void search(String searchText) { rowMapping = null; fireTableDataChanged(); List<Integer> newRowMap = new ArrayList<Integer>(); CharSequence searchSubSequence = searchText.toLowerCase().subSequence(0,searchText.length()); for ( int row = 0; row < tableModel... | 1,109,428 |
private void search(String searchText) { rowMapping = null; fireTableDataChanged(); List<Integer> newRowMap = new ArrayList<Integer>(); CharSequence searchSubSequence = searchText.toLowerCase().subSequence(0,searchText.length()); for ( int row = 0; row < tableModel... | private void search(String searchText) { rowMapping = null; fireTableDataChanged(); List<Integer> newRowMap = new ArrayList<Integer>(); CharSequence searchSubSequence = searchText.toLowerCase().subSequence(0,searchText.length()); for ( int row = 0; row < tableModel... | 1,109,429 |
public void attachRelationship(SQLTable pkTable, SQLTable fkTable, boolean autoGenerateMapping) throws ArchitectException { SQLTable oldPkt = this.pkTable; SQLTable oldFkt = this.fkTable; if (this.pkTable != null || this.fkTable != null) { this.detachListeners(); } this.pkTable = pkTable; this.fkTable = fkTa... | public void attachRelationship(SQLTable pkTable, SQLTable fkTable, boolean autoGenerateMapping) throws ArchitectException { SQLTable oldPkt = this.pkTable; SQLTable oldFkt = this.fkTable; if (this.pkTable != null || this.fkTable != null) { this.detachListeners(); } this.pkTable = pkTable; this.fkTable = fkTa... | 1,109,430 |
public MyTagLibrary() { registerBean( "customer", Customer.class ); } | public MyTagLibrary() { } | 1,109,431 |
public void drop(DropTargetDropEvent dtde) { logger.info("Drop: I am over dtde="+dtde); if (tpTarget != null) { tpTarget.getDropTargetListener().drop(dtde); return; } Transferable t = dtde.getTransferable(); PlayPen c = (PlayPen) dtde.getDropTargetContext().getComponent(); DataFlavor importFlavor = ... | public void drop(DropTargetDropEvent dtde) { logger.info("Drop: I am over dtde="+dtde); if (tpTarget != null) { tpTarget.getDropTargetListener().drop(dtde); return; } Transferable t = dtde.getTransferable(); PlayPen c = (PlayPen) dtde.getDropTargetContext().getComponent(); DataFlavor importFlavor = ... | 1,109,433 |
public void drop(DropTargetDropEvent dtde) { logger.info("Drop: I am over dtde="+dtde); if (tpTarget != null) { tpTarget.getDropTargetListener().drop(dtde); return; } Transferable t = dtde.getTransferable(); PlayPen c = (PlayPen) dtde.getDropTargetContext().getComponent(); DataFlavor importFlavor = ... | public void drop(DropTargetDropEvent dtde) { logger.info("Drop: I am over dtde="+dtde); if (tpTarget != null) { tpTarget.getDropTargetListener().drop(dtde); return; } Transferable t = dtde.getTransferable(); PlayPen c = (PlayPen) dtde.getDropTargetContext().getComponent(); DataFlavor importFlavor = ... | 1,109,434 |
public void drop(DropTargetDropEvent dtde) { logger.info("Drop: I am over dtde="+dtde); if (tpTarget != null) { tpTarget.getDropTargetListener().drop(dtde); return; } Transferable t = dtde.getTransferable(); PlayPen c = (PlayPen) dtde.getDropTargetContext().getComponent(); DataFlavor importFlavor = ... | public void drop(DropTargetDropEvent dtde) { logger.info("Drop: I am over dtde="+dtde); if (tpTarget != null) { tpTarget.getDropTargetListener().drop(dtde); return; } Transferable t = dtde.getTransferable(); PlayPen c = (PlayPen) dtde.getDropTargetContext().getComponent(); DataFlavor importFlavor = ... | 1,109,435 |
private static Map<String,Object> setAllInterestingProperties(SQLObject target, Set<String> propertiesToIgnore) throws Exception { Map<String,Object> description = new HashMap<String,Object>(); PropertyDescriptor props[] = PropertyUtils.getPropertyDescriptors(target); for (int i = 0; i < props.length; i++) { ... | private static Map<String,Object> setAllInterestingProperties(SQLObject target, Set<String> propertiesToIgnore) throws Exception { PropertyDescriptor props[] = PropertyUtils.getPropertyDescriptors(target); for (int i = 0; i < props.length; i++) { Object oldVal = null; if (PropertyUtils.isReadable(target, p... | 1,109,436 |
public void testSaveCoversAllCatalogProperties() throws Exception { ArchitectDataSource ds = new ArchitectDataSource(); ds.setDisplayName("Schemaless Database"); ds.setDriverClass("regress.ca.sqlpower.architect.MockJDBCDriver"); ds.setUser("fake"); ds.setPass("fake"); //this creates a mock jdbc database with o... | public void testSaveCoversAllCatalogProperties() throws Exception { ArchitectDataSource ds = new ArchitectDataSource(); ds.setDisplayName("Schemaless Database"); ds.setDriverClass("regress.ca.sqlpower.architect.MockJDBCDriver"); ds.setUser("fake"); ds.setPass("fake"); //this creates a mock jdbc database with o... | 1,109,437 |
public void testSaveCoversAllCatalogProperties() throws Exception { ArchitectDataSource ds = new ArchitectDataSource(); ds.setDisplayName("Schemaless Database"); ds.setDriverClass("regress.ca.sqlpower.architect.MockJDBCDriver"); ds.setUser("fake"); ds.setPass("fake"); //this creates a mock jdbc database with o... | public void testSaveCoversAllCatalogProperties() throws Exception { ArchitectDataSource ds = new ArchitectDataSource(); ds.setDisplayName("Schemaless Database"); ds.setDriverClass("regress.ca.sqlpower.architect.MockJDBCDriver"); ds.setUser("fake"); ds.setPass("fake"); //this creates a mock jdbc database with o... | 1,109,438 |
public void testSaveCoversAllColumnProperties() throws Exception { final String tableName = "harry"; testLoad(); SQLDatabase ppdb = project.getPlayPen().getDatabase(); SQLTable table = new SQLTable(ppdb, true); table.setName(tableName); SQLColumn target = new SQLColumn(table, "my cool test column", Types.INTEG... | public void testSaveCoversAllColumnProperties() throws Exception { final String tableName = "harry"; testLoad(); SQLDatabase ppdb = project.getPlayPen().getDatabase(); SQLTable table = new SQLTable(ppdb, true); table.setName(tableName); SQLColumn target = new SQLColumn(table, "my cool test column", Types.INTEG... | 1,109,439 |
public void testSaveCoversAllColumnProperties() throws Exception { final String tableName = "harry"; testLoad(); SQLDatabase ppdb = project.getPlayPen().getDatabase(); SQLTable table = new SQLTable(ppdb, true); table.setName(tableName); SQLColumn target = new SQLColumn(table, "my cool test column", Types.INTEG... | public void testSaveCoversAllColumnProperties() throws Exception { final String tableName = "harry"; testLoad(); SQLDatabase ppdb = project.getPlayPen().getDatabase(); SQLTable table = new SQLTable(ppdb, true); table.setName(tableName); SQLColumn target = new SQLColumn(table, "my cool test column", Types.INTEG... | 1,109,440 |
public void testSaveCoversAllDatabaseProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase() { @Override public Conn... | public void testSaveCoversAllDatabaseProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase() { @Override public Conn... | 1,109,441 |
public void testSaveCoversAllDatabaseProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase() { @Override public Conn... | public void testSaveCoversAllDatabaseProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase() { @Override public Conn... | 1,109,442 |
public void testSaveCoversAllSchemaProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSo... | public void testSaveCoversAllSchemaProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSo... | 1,109,443 |
public void testSaveCoversAllSchemaProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSo... | public void testSaveCoversAllSchemaProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSo... | 1,109,444 |
public void testSaveCoversAllTableProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSou... | public void testSaveCoversAllTableProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSou... | 1,109,445 |
public void testSaveCoversAllTableProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSou... | public void testSaveCoversAllTableProperties() throws Exception { testLoad(); DBTree dbTree = project.getSourceDatabases(); DBTreeModel dbTreeModel = (DBTreeModel) dbTree.getModel(); ArchitectDataSource fakeDataSource = new ArchitectDataSource(); SQLDatabase db = new SQLDatabase(); db.setDataSource(fakeDataSou... | 1,109,446 |
public void testSaveCoversCompareDMSettings() throws Exception { testLoad(); CompareDMSettings cds = project.getCompareDMSettings(); File tmp = File.createTempFile("test", ".architect"); assertFalse (cds.getSaveFlag()); if (deleteOnExit) { tmp.deleteOnExit(); } PrintWriter out = new PrintWriter(tmp); asser... | public void testSaveCoversCompareDMSettings() throws Exception { testLoad(); CompareDMSettings cds = project.getCompareDMSettings(); File tmp = File.createTempFile("test", ".architect"); assertFalse (cds.getSaveFlag()); if (deleteOnExit) { tmp.deleteOnExit(); } PrintWriter out = new PrintWriter(tmp,ENCODING... | 1,109,447 |
public void testSaveCoversCompareDMSettings() throws Exception { testLoad(); CompareDMSettings cds = project.getCompareDMSettings(); File tmp = File.createTempFile("test", ".architect"); assertFalse (cds.getSaveFlag()); if (deleteOnExit) { tmp.deleteOnExit(); } PrintWriter out = new PrintWriter(tmp); asser... | public void testSaveCoversCompareDMSettings() throws Exception { testLoad(); CompareDMSettings cds = project.getCompareDMSettings(); File tmp = File.createTempFile("test", ".architect"); assertFalse (cds.getSaveFlag()); if (deleteOnExit) { tmp.deleteOnExit(); } PrintWriter out = new PrintWriter(tmp); asser... | 1,109,448 |
public void testSaveIsWellFormed() throws Exception { boolean validate = false; testLoad(); File tmp = File.createTempFile("test", ".architect"); if (deleteOnExit) { tmp.deleteOnExit(); } PrintWriter out = new PrintWriter(tmp); assertNotNull(out); project.setName("FOO<BAR"); // Implicitly testing sanitize... | public void testSaveIsWellFormed() throws Exception { boolean validate = false; testLoad(); File tmp = File.createTempFile("test", ".architect"); if (deleteOnExit) { tmp.deleteOnExit(); } PrintWriter out = new PrintWriter(tmp,ENCODING); assertNotNull(out); project.setName("FOO<BAR"); // Implicitly testing... | 1,109,449 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.