rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (ws.sizePushed() > limit) { break; | if (VERBOSE) { System.out.println( "done."+ "\n**********************************************\n"); | private static List searchDown( SimpleServletSupport support, Set startUIDSet, int limit) { if (VERBOSE) { System.out.println( "\n****************************************************"+ "\nSEARCH DOWN"+ "\nStart with ["+ ((startUIDSet != null) ? startUIDSet.size() : 0)+ "]: "+sta... |
if (VERBOSE) { System.out.println( "done."+ "\n**********************************************\n"); } List toL = new ArrayList(ws.sizePushed()); ws.toCollection(toL); return toL; } | private static List searchDown( SimpleServletSupport support, Set startUIDSet, int limit) { if (VERBOSE) { System.out.println( "\n****************************************************"+ "\nSEARCH DOWN"+ "\nStart with ["+ ((startUIDSet != null) ? startUIDSet.size() : 0)+ "]: "+sta... | |
if (VERBOSE) { System.out.println( "\n*****************************************************"+ "\nSEARCH UP"+ ((limit >= 0) ? ("\nLimit: "+limit) : "\nNo limit")); | if (VERBOSE) { System.out.println( "\n*****************************************************"+ "\nSEARCH UP"+ ((limit >= 0) ? ("\nLimit: "+limit) : "\nNo limit")); } WorkStack ws = new WorkStack(); Set findUIDSet = new HashSet(startUIDSet); search_up_loop: while (!(findUIDSet.isEmpty())) { if (VERBOSE) { System.out.... | private static List searchUp( SimpleServletSupport support, Set startUIDSet, int limit) { // get this Cluster's identifier ClusterIdentifier localCID = support.getAgentIdentifier(); if (VERBOSE) { System.out.println( "\n****************************************... |
WorkStack ws = new WorkStack(); Set findUIDSet = new HashSet(startUIDSet); search_up_loop: while (!(findUIDSet.isEmpty())) { if (VERBOSE) { System.out.println( "\nFind ["+findUIDSet.size()+"]: "+findUIDSet); } Collection foundCol = findUniqueObjects( support, findUIDSet); findUIDSet.clear(); if (VERBOSE) { System.... | private static List searchUp( SimpleServletSupport support, Set startUIDSet, int limit) { // get this Cluster's identifier ClusterIdentifier localCID = support.getAgentIdentifier(); if (VERBOSE) { System.out.println( "\n****************************************... | |
HttpServletResponse response) throws IOException, ServletException | HttpServletResponse response) throws IOException | public void doGet( HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // create a new "SearchProvider" context per request SearchProvider sp = new SearchProvider(support); sp.execute(request, response); } |
if (buckets == null) { | if (buckets == null || buckets.size() == 1) { | private static void member_helper_type(final CodeEmitter e, List members, final ObjectSwitchCallback callback, final ParameterTyper typer, final Lab... |
if (requestedConfSet) { node.setRequestedConf(null); } | private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ... | |
if (node.getRequestedConf()==null) { node.setRequestedConf(confs[i]); } | private void fetchDependencies(IvyNode node, String conf, boolean shouldBePublic) { checkInterrupted(); long start = System.currentTimeMillis(); if (debugConflictResolution()) { Message.debug(node.getId()+" => resolving dependencies in "+conf); } resolveConflict(node, node... | |
if (!inTransaction && _primaryKeyDictionary == null) { if (rawPrimaryKey() != null) { | if(_primaryKeyDictionary == null) { if (!inTransaction) { | public NSDictionary primaryKeyDictionary(boolean inTransaction) { if (!inTransaction && _primaryKeyDictionary == null) { if (rawPrimaryKey() != null) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) ... |
if (primaryKeyAttributeNames.count()>1) throw new RuntimeException("primaryKeyDictionary does not support compound primary keys"); _primaryKeyDictionary = new NSDictionary(rawPrimaryKey(), primaryKeyAttributeNames.lastObject()); } else _primaryKeyDictionary = ERXUtilities.primaryKeyDictionaryForEntity(editingContext()... | if (primaryKeyAttributeNames.count()>1) { if(true) return null; else throw new RuntimeException("primaryKeyDictionary does not support compound primary keys"); } if (rawPrimaryKey() != null) { if (log.isDebugEnabled()) log.debug("Got raw key: "+ rawPrimaryKey()); _primaryKeyDictionary = new NSDictionary(rawPrimaryKey(... | public NSDictionary primaryKeyDictionary(boolean inTransaction) { if (!inTransaction && _primaryKeyDictionary == null) { if (rawPrimaryKey() != null) { NSArray primaryKeyAttributeNames=primaryKeyAttributeNames(); if (primaryKeyAttributeNames.count()>1) ... |
throw new RuntimeException("Couldn't find sectionsContents or displayPropertyKeys in d2wContext!"); | throw new RuntimeException("Couldn't find sectionsContents or displayPropertyKeys in d2wContext: " + d2wContext().valueForKey("pageConfiguration")); | public NSArray sectionsContents() { if (_sectionsContents ==null) { NSArray sectionsContentsFromRule=(NSArray)d2wContext().valueForKey("sectionsContents"); if (sectionsContentsFromRule==null) { sectionsContentsFromRule=(NSArray)displayPropertyKeys(); } ... |
super(); | super("MD5"); | public MD5() { super(); engineReset (); } |
for (int i = 0; i < nodesToRun.length; i++) { NodeComponent nodeComponent = nodesToRun[i]; String hostName = hostsToRunOn[i]; final String nodeName = nodeComponent.getShortName(); String uniqueNodeName = nodeName; | HostComponent[] hostsToRunOn = experiment.getHostComponents(); for (int i = 0; i < hostsToRunOn.length; i++) { String hostName = hostsToRunOn[i].getShortName(); NodeComponent[] nodesToRun = hostsToRunOn[i].getNodes(); for (int j = 0; j < nodesToRun.length; j++) { NodeComponent nodeComponent = nodesToRun[j]; final Strin... | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
if (properties.getProperty("org.cougaar.core.persistence.clear") == null) { properties.setProperty("org.cougaar.core.persistence.clear", "true"); } NodeStatusButton statusButton = createStatusButton(nodeName, hostName); ConsoleStyledDocument doc = new ConsoleStyledDocument(); ConsoleTextPane textPane = new ConsoleTe... | if (properties.getProperty("org.cougaar.core.persistence.clear") == null) { properties.setProperty("org.cougaar.core.persistence.clear", "true"); | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
JOptionPane.showMessageDialog(this, "Unable to contact app-server on " + hostName + " : " + remotePort + "; check that server is running"); continue; } | NodeStatusButton statusButton = createStatusButton(nodeName, hostName); | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
RemoteFileSystem remoteFS; try { remoteFS = remoteAppServer.getRemoteFileSystem(); } catch (Exception e) { if(log.isErrorEnabled()) { log.error( "CSMARTConsole: unable to access app-server file system on " + hostName + " : " + remotePort, e); | ConsoleStyledDocument doc = new ConsoleStyledDocument(); ConsoleTextPane textPane = new ConsoleTextPane(doc, statusButton); JScrollPane scrollPane = new JScrollPane(textPane); OutputListener listener; String logFileName = getLogFileName(nodeName); try { listener = new ConsoleNodeListener(this, nodeComponent, logFileN... | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
JOptionPane.showMessageDialog(this, "Unable to access app-server file system on " + hostName + " : " + remotePort + "; check that server is running"); continue; } | if (notifyCondition != null) textPane.setNotifyCondition(notifyCondition); ((ConsoleStyledDocument)textPane.getStyledDocument()).setBufferSize(viewSize); if (notifyOnStandardError) statusButton.setNotifyOnStandardError(true); if (displayFilter != null) ((ConsoleNodeListener)listener).setFilter(displayFilter); nodeListe... | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
while(fileIter.hasNext()) { String filename = (String)fileIter.next(); OutputStream out = null; | OutputPolicy outputPolicy = new OutputPolicy(10); Iterator fileIter = experiment.getConfigFiles(nodesToRun); int remotePort = getAppServerPort(properties); RemoteHost remoteAppServer; | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
out = remoteFS.write(filename); experiment.writeContents(filename, out); } catch(Exception e) { | remoteAppServer = remoteHostRegistry.lookupRemoteHost(hostName, remotePort, true); } catch (Exception e) { | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
log.error( "Caught an Exception writing leaf on " + hostName + " : " + remotePort, e); | log.error("CSMARTConsole: unable to contact app-server on " + hostName + " : " + remotePort, e); | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
} finally { | JOptionPane.showMessageDialog(this, "Unable to contact app-server on " + hostName + " : " + remotePort + "; check that server is running"); continue; } RemoteFileSystem remoteFS; try { remoteFS = remoteAppServer.getRemoteFileSystem(); } catch (Exception e) { if(log.isErrorEnabled()) { log.error("CSMARTConsole: unable ... | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
out.close(); | out = remoteFS.write(filename); experiment.writeContents(filename, out); | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
log.error("Caught exception closing stream", e); | log.error("Caught an Exception writing leaf on " + hostName + " : " + remotePort, e); } } finally { try { out.close(); } catch(Exception e) { if(log.isErrorEnabled()) { log.error("Caught exception closing stream", e); } | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... |
NodeCreationInfo nci = new NodeCreationInfo(remoteAppServer, uniqueNodeName, properties, args, listener, outputPolicy, nodeName, hostName, nodeComponent, scrollPane, statusButton, logFileName); nodeCreationInfoList.add(nci); | private void prepareToCreateNodes() { // first need to set configuration file name property in ALL nodes // as these are all used by each experiment configuration writer// for (int i = 0; i < nodesToRun.length; i++) {// NodeComponent nodeComponent = nodesToRun[i];// nodeComponent.addProperty(... | |
ArrayList nodesToUse = new ArrayList(); hostsToUse = new ArrayList(); HostComponent[] hosts = experiment.getHostComponents(); for (int i = 0; i < hosts.length; i++) { NodeComponent[] nodes = hosts[i].getNodes(); for (int j = 0; j < nodes.length; j++) { AgentComponent[] agents = nodes[j].getAgents(); if (agents == null... | private void runButton_actionPerformed() { destroyOldNodes(); // Get rid of any old stuff before creating the new userStoppedTrials = false; ArrayList nodesToUse = new ArrayList(); hostsToUse = new ArrayList(); // hosts that nodes are on HostComponent[] hosts = experiment.getHostComponents(); for (i... | |
if (nodesToRun.length != 0) | if (experiment.getNodeComponents().length != 0) | private void runButton_actionPerformed() { destroyOldNodes(); // Get rid of any old stuff before creating the new userStoppedTrials = false; ArrayList nodesToUse = new ArrayList(); hostsToUse = new ArrayList(); // hosts that nodes are on HostComponent[] hosts = experiment.getHostComponents(); for (i... |
if (! hostsToUse.contains(hostName)) continue; | private void saveResults() { if (currentTrial < 0) return; // nothing to save File resultDir = experiment.getResultDirectory(); if (resultDir == null) return; // can't save, user didn't specify metrics directory Trial trial = experiment.getTrials()[currentTrial]; if (runStart == null) ru... | |
NodeComponent[] nodes = hosts[i].getNodes(); if (nodes.length != 0) properties = getNodeMinusD(nodes[0]); | properties = getNodeMinusD(nodes[0]); | private void saveResults() { if (currentTrial < 0) return; // nothing to save File resultDir = experiment.getResultDirectory(); if (resultDir == null) return; // can't save, user didn't specify metrics directory Trial trial = experiment.getTrials()[currentTrial]; if (runStart == null) ru... |
public ConcreteProcess (String[] progarray, String[] envp) throws IOException | public ConcreteProcess (String[] progarray, String[] envp, File dir) throws IOException | public ConcreteProcess (String[] progarray, String[] envp) throws IOException { throw new IOException("not implemented"); } |
boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Delete", JOptionPane.YES_NO_OPTION); if (response == JOptionPane.YES_OPTION) { doIt = true; } } ... | boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Delete", JOptionPane.YES_NO_OPTION); if (response == JOptionPane.YES_OPTION) { doIt = true; } | public static void deleteExperiment(String experiment_id) { boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Dele... |
if (!doIt) return; String expt_id = sqlQuote(experiment_id); String trial_id = sqlQuote(getTrialId(experiment_id)); ArrayList queries = new ArrayList(); queries.add(makeDeleteQuery(asbPrefix+"expt_trial_assembly", "expt_id", expt_id)); queries.add(makeDeleteQuery(asbPrefix+"expt_trial_thread", "expt_id", expt_id)); que... | public static void deleteExperiment(String experiment_id) { boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Dele... | |
if (!experiment.isInDatabase()) { | if (experiment.isInDatabase()) { threadBuilder = new ThreadBuilder(experiment); tabbedPane.add("Threads", threadBuilder); } else { | public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.experiment = experiment; isEditable = experiment.isEditable(); isRunnable = experiment.isRunnable(); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); for (int i = 0; ... |
setSize(450, 400); | setSize(650, 400); | public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.experiment = experiment; isEditable = experiment.isEditable(); isRunnable = experiment.isRunnable(); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); for (int i = 0; ... |
} else { if (trialBuilder == null) { trialBuilder = new TrialBuilder(experiment); tabbedPane.add("Trials", trialBuilder); } else trialBuilder.reinit(experiment); | } if (threadBuilder == null) { threadBuilder = new ThreadBuilder(experiment); tabbedPane.add("Threads", threadBuilder); } else threadBuilder.reinit(experiment); } else { if (trialBuilder == null) { trialBuilder = new TrialBuilder(experiment); tabbedPane.add("Trials", trialBuilder); } else trialBuilder.reinit(experiment... | public void reinit(Experiment newExperiment) { // restore editable flag on previous experiment if (isEditable) experiment.setEditable(isEditable); if (isRunnable) experiment.setRunnable(isRunnable); experiment = newExperiment; isEditable = newExperiment.isEditable(); isRunnable = newExper... |
Collection toKeep = new ArrayList(); | Set toKeep = new HashSet(); | private Collection filterModules(Collection mds, ModuleDescriptor rootmd) { // Make a map of ModuleId objects -> ModuleDescriptors Map moduleIdMap = new HashMap(); for (Iterator iter = mds.iterator(); iter.hasNext();) { ModuleDescriptor md = ((ModuleDescriptor) iter.next()); ... |
private void processFilterNode(ModuleDescriptor node, Collection toKeep, Map moduleIdMap) { | private void processFilterNode(ModuleDescriptor node, Set toKeep, Map moduleIdMap) { | private void processFilterNode(ModuleDescriptor node, Collection toKeep, Map moduleIdMap) { toKeep.add(node); DependencyDescriptor[] deps = node.getDependencies(); for (int i=0; i<deps.length; i++) { ModuleId id = deps[i].getDependencyId(); if (moduleIdMap.get(id) != null)... |
log.warn("assAsbToConfig got empty assembly " + assembly_id + " for trial trialId"); | log.warn("addAsbToConfig got empty assembly " + assembly_id + " for trial " + trialId); | private void addAssemblyToConfig(String assembly_id) throws SQLException { if (assembly_id == null || assembly_id.equals("")) { if (log.isWarnEnabled()) { log.warn("assAsbToConfig got empty assembly " + assembly_id + " for trial trialId"); } return; } substitutions.put(":assembly_id:", sqlQuot... |
if (assemblyInConfig(assembly_id)) { if (log.isInfoEnabled()) { log.info("addAsbToConfig already have ID " + assembly_id + " in config for trial " + trialId); } return; } | private void addAssemblyToConfig(String assembly_id) throws SQLException { if (assembly_id == null || assembly_id.equals("")) { if (log.isWarnEnabled()) { log.warn("assAsbToConfig got empty assembly " + assembly_id + " for trial trialId"); } return; } substitutions.put(":assembly_id:", sqlQuot... | |
if (assemblyInRuntime(assembly_id)) { if (log.isInfoEnabled()) { log.info("addAsbToRuntime already have ID " + assembly_id + " in runtime for trial " + trialId); } return; } | private void addAssemblyToRuntime(String assembly_id) throws SQLException { substitutions.put(":assembly_id:", sqlQuote(assembly_id)); substitutions.put(":trial_id:", trialId); substitutions.put(":expt_id:", exptId); substitutions.put(":assembly_type:", getAssemblyType(assembly_id)); if (log.isDebugEna... | |
String actionUrl = ctx.componentActionURL(); | String actionUrl = AjaxUtils.ajaxComponentActionUrl(ctx); | public void appendToResponse(WOResponse res, WOContext ctx) { super.appendToResponse(res, ctx); boolean isLocal = hasBinding("isLocal") && ((Boolean) valueForBinding("isLocal")).booleanValue(); if (isLocal) { StringBuffer str = new StringBuffer(); str.append("<script type=\"text/javascript\">\n// <![CD... |
DefaultTreeModel model = (DefaultTreeModel)hostTree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode)model.getRoot(); TreePath path = null; Enumeration nodes = root.breadthFirstEnumeration(); while (nodes.hasMoreElements()) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)nodes.nextElement(); if... | selectNodeInTree(hostTree, HostComponent.class, nodeName); | public void selectNodeInHostTree(String nodeName) { DefaultTreeModel model = (DefaultTreeModel)hostTree.getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode)model.getRoot(); TreePath path = null; Enumeration nodes = root.breadthFirstEnumeration(); while (nodes.hasMoreElements()) { ... |
if(log.isDebugEnabled()) { | if(log.isInfoEnabled()) { | public void execute() { // Publish Tasks as read in at prescribed intervals // If one of my Tasks is changed, look at the AllocationResult // Based on it being Success or Failure, publish a HappinessChangedEvent// if (log.isApplicable(log.VERY_VERBOSE)) {// log.log(this, log.VERY_VERBOSE, "execut... |
if (log.isDebugEnabled()) { | if (log.isInfoEnabled()) { | private void publishTask(SingleCustomerTask task) { if (log.isDebugEnabled()) { log.debug("publishTask: " + this + " entered"); } long pubTime; // get at the time long currentTime = currentTimeMillis();// if (log.isApplicable(log.VERY_VERBOSE)) {// log.log(this, log.VERY_VERBOSE, "publ... |
this(null, label, "Root"); | this(null, label, "Root", null); | public CommunityTreeObject(String label) { this(null, label, "Root"); } |
Property propLevelCount = result.getProperty(PROP_LEVELCOUNT); propLevelCount.setValue(getProperty(PROP_LEVELCOUNT).getValue()); Property propCommCount = result.getProperty(PROP_COMMUNITYCOUNT); propCommCount.setValue(getProperty(PROP_COMMUNITYCOUNT).getValue()); result.changeSociety(); | public SocietyComponent copy(Organizer organizer, Object context) { String societyName = organizer.generateSocietyName(getSocietyName()); ABCSociety result = new ABCSociety(societyName); result.initProperties(); // set the level & community count properties explicitly Property propLevelCount = result.g... | |
Property propStartTime = result.getProperty(PROP_STARTTIME); propStartTime.setValue(getProperty(PROP_STARTTIME).getValue()); Property propStopTime = result.getProperty(PROP_STOPTIME); propStopTime.setValue(getProperty(PROP_STOPTIME).getValue()); Property propSampleInterval = result.getProperty(PROP_SAMPLEINTERVAL); p... | this.copy(result); | public SocietyComponent copy(Organizer organizer, Object context) { String societyName = organizer.generateSocietyName(getSocietyName()); ABCSociety result = new ABCSociety(societyName); result.initProperties(); // set the level & community count properties explicitly Property propLevelCount = result.g... |
log = CSMART.createLogger("org.cougaar.tools.csmart.core.property"); | createLogger(); | protected PropertyBase(ConfigurableComponent c) { component = c; log = CSMART.createLogger("org.cougaar.tools.csmart.core.property"); } |
createLogger(); | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); listeners = (List) stream.readObject(); } | |
&& ((query == null && uObj.query == null) || (query != null && query.equals(uObj.query))) | public boolean equals(Object obj) { if (obj == null || ! (obj instanceof URL)) return false; URL uObj = (URL) obj; // This comparison is very conservative. It assumes that any // field can be null. return (port == uObj.port && ((protocol == null && uObj.protocol == null) || (protocol !=... | |
this.query = null; | protected void set(String protocol, String host, int port, String file, String ref) { // TBD: Theoretically, a poorly written StreamHandler could pass an // invalid protocol. It will cause the handler to be set to null // thus overriding a valid handler. Callers of this method should // be aware ... | |
availableQueries.add(new StringRange(s)); | if (! availableQueries.contains(new StringRange(s))) availableQueries.add(new StringRange(s)); | private static Set getAvailableQueries() { Logger log = CSMART.createLogger("org.cougaar.tools.csmart.recipe.RecipeQueryProperty"); if (availableQueries == null) { try { availableQueries = new HashSet(); // Get the base queries for (Iterator i = DBProperties.readQueryFile(PDbBase.QUERY... |
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); | GLCanvas canvas = new GLCanvas(); | public static void main(String[] args) { Frame frame = new Frame("Translate2 Test"); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); frame.setLayout(new BorderLayout()); GLCanvas canvas = GLDrawableFactory.getF... |
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); | GLCanvas canvas = new GLCanvas(); | public static void main(String[] args) { Frame frame = new Frame("Gear Demo"); GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); canvas.addGLEventListener(new Gears()); frame.add(canvas); frame.setSize(300, 300); final Animator animator = new Animator(canvas); ... |
_showPresentationControls = null; | public void awake() { _vheadingIndex = 0; _indexDict.removeAllObjects(); _colorDict = null; //[_currentZCriteria removeAllObjects]; if(!_initializedDimensionArrayFromBindings) { initializeDimensionArrayFromBindings("H"); initializeDimensionArrayFromBindings("... | |
return this.model().spanForVListIndexAsCellsShowHeadingShowTotals(false, currentLevel-1, this.showAsCells(), this.showRGHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); | return this.model().spanForVListIndexAsCellsShowHeadingShowTotals(false, currentLevel-1, this.showAsCells(), this.showRecordGroupHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); | public int colSpanForHorzList() { return this.model().spanForVListIndexAsCellsShowHeadingShowTotals(false, currentLevel-1, this.showAsCells(), this.showRGHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); } |
_initializedDimensionArrayFromBindings = false; | public WOComponent regenReport() { _initializedDimensionArrayFromBindings = false; return null; } | |
public void setShowCustomReportStyle(String v) { _showCustomReportStyle = v; | public void setShowCustomReportStyle(boolean v) { _showCustomReportStyle = v ? Boolean.TRUE : Boolean.FALSE; | public void setShowCustomReportStyle(String v) { _showCustomReportStyle = v; } |
if (v) { _showNavigation = "true"; } else { _showNavigation = "false"; } | _showNavigation = v ? Boolean.TRUE : Boolean.FALSE; | public void setShowNavigation(boolean v) { if (v) { _showNavigation = "true"; } else { _showNavigation = "false"; } } |
public void setShowRecordGroupAsTable(String v) { _showRecordGroupAsTable = v; | public void setShowRecordGroupAsTable(boolean v) { _showRecordGroupAsTable = v ? Boolean.TRUE : Boolean.FALSE; | public void setShowRecordGroupAsTable(String v) { _showRecordGroupAsTable = v; } |
public void setShowRecordGroupHeadings(String v) { _showRecordGroupHeadings = v; | public void setShowRecordGroupHeadings(boolean v) { _showRecordGroupHeadings = v ? Boolean.TRUE : Boolean.FALSE; | public void setShowRecordGroupHeadings(String v) { _showRecordGroupHeadings = v; } |
if (!this.showRGAsTable() && !this.selectedRecordGroupDisplayType().equals("SINGLE_TOTAL") && !this.selectedRecordGroupDisplayType().equals("TABLE")) { | if (!this.showRecordGroupAsTable() && !this.selectedRecordGroupDisplayType().equals("SINGLE_TOTAL") && !this.selectedRecordGroupDisplayType().equals("TABLE")) { | public boolean showAsCells() { if (!this.showRGAsTable() && !this.selectedRecordGroupDisplayType().equals("SINGLE_TOTAL") && !this.selectedRecordGroupDisplayType().equals("TABLE")) { return true; } return false; } |
public String showCustomReportStyle() { | public boolean showCustomReportStyle() { | public String showCustomReportStyle() { if (_showCustomReportStyle == null) { if (!this.hasBinding("showCustomReportStyle")) { _showCustomReportStyle = "false"; } else { Object v = (Object)this.valueForBinding("showCustomReportStyle"); if (ER... |
if (!this.hasBinding("showCustomReportStyle")) { _showCustomReportStyle = "false"; } else { Object v = (Object)this.valueForBinding("showCustomReportStyle"); if (ERXValueUtilities.booleanValue(v)) { _showCustomReportStyle = "true"; }else { _showCustomReportStyle = "false"; } } | _showCustomReportStyle = booleanValueForBinding("showCustomReportStyle"); | public String showCustomReportStyle() { if (_showCustomReportStyle == null) { if (!this.hasBinding("showCustomReportStyle")) { _showCustomReportStyle = "false"; } else { Object v = (Object)this.valueForBinding("showCustomReportStyle"); if (ER... |
return _showCustomReportStyle; | return _showCustomReportStyle.booleanValue(); | public String showCustomReportStyle() { if (_showCustomReportStyle == null) { if (!this.hasBinding("showCustomReportStyle")) { _showCustomReportStyle = "false"; } else { Object v = (Object)this.valueForBinding("showCustomReportStyle"); if (ER... |
Object v = (Object)this.valueForBinding("showEditing"); if (ERXValueUtilities.booleanValue(v)) { _showEditing = "true"; }else { _showEditing = "false"; } | _showEditing = booleanValueForBinding("showEditing"); | public boolean showEditing() { if(_showEditing == null){ Object v = (Object)this.valueForBinding("showEditing"); if (ERXValueUtilities.booleanValue(v)) { _showEditing = "true"; }else { _showEditing = "false"; } } if(_show... |
if(_showEditing.equals("true")) return true; return false; | return _showNavigation.booleanValue(); | public boolean showEditing() { if(_showEditing == null){ Object v = (Object)this.valueForBinding("showEditing"); if (ERXValueUtilities.booleanValue(v)) { _showEditing = "true"; }else { _showEditing = "false"; } } if(_show... |
if (this.showRGHeadings() && this.showTotalsOnlyAsCells()) { | if (this.showRecordGroupHeadings() && this.showTotalsOnlyAsCells()) { | public boolean showHeadersForAsCells() { if (this.showRGHeadings() && this.showTotalsOnlyAsCells()) { return true; } return false; } |
int span = this.model().spanForVListIndexAsCellsShowHeadingShowTotals(true, vheadingIndex(), !this.showRGAsTable(), this.showRGHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); | int span = this.model().spanForVListIndexAsCellsShowHeadingShowTotals(true, vheadingIndex(), !this.showRecordGroupAsTable(), this.showRecordGroupHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); | public boolean showIndentCell() { int oldCnt; Number oldCount = (Number)_indexDict.objectForKey(new Integer(vheadingIndex())); if (oldCount == null) { oldCnt = 0; } else { int span = this.model().spanForVListIndexAsCellsShowHeadingShowTotals(true, vheadingIndex(), !... |
Object v = (Object)this.valueForBinding("showNavigation"); if (ERXValueUtilities.booleanValue(v)) { _showNavigation = "true"; }else { _showNavigation = "false"; } | _showNavigation = booleanValueForBinding("showNavigation"); | public boolean showNavigation() { if (_showNavigation ==null) { Object v = (Object)this.valueForBinding("showNavigation"); if (ERXValueUtilities.booleanValue(v)) { _showNavigation = "true"; }else { _showNavigation = "false"; } }... |
if (_showNavigation.equals("true")) { return true; } return false; | return _showNavigation.booleanValue(); | public boolean showNavigation() { if (_showNavigation ==null) { Object v = (Object)this.valueForBinding("showNavigation"); if (ERXValueUtilities.booleanValue(v)) { _showNavigation = "true"; }else { _showNavigation = "false"; } }... |
Object v = (Object)this.valueForBinding("showPresentationControls"); if (ERXValueUtilities.booleanValue(v)) { _showPresentationControls = "true"; }else { _showPresentationControls = "false"; } | _showPresentationControls = booleanValueForBinding("showPresentationControls"); | public boolean showPresentationControls() { if (_showPresentationControls == null) { Object v = (Object)this.valueForBinding("showPresentationControls"); if (ERXValueUtilities.booleanValue(v)) { _showPresentationControls = "true"; }else { _showPr... |
return _showPresentationControls.equals("true"); | return _showPresentationControls.booleanValue(); | public boolean showPresentationControls() { if (_showPresentationControls == null) { Object v = (Object)this.valueForBinding("showPresentationControls"); if (ERXValueUtilities.booleanValue(v)) { _showPresentationControls = "true"; }else { _showPr... |
public String showRecordGroupAsTable() { | public boolean showRecordGroupAsTable() { | public String showRecordGroupAsTable() { if (_showRecordGroupAsTable == null) { if (this.hasBinding("showRecordGroupAsTable")) { _showRecordGroupAsTable = "false"; } else { Object v = (Object)this.valueForBinding("showRecordGroupAsTable"); if... |
if (this.hasBinding("showRecordGroupAsTable")) { _showRecordGroupAsTable = "false"; | if (!this.hasBinding("showRecordGroupAsTable")) { _showRecordGroupAsTable = Boolean.FALSE; | public String showRecordGroupAsTable() { if (_showRecordGroupAsTable == null) { if (this.hasBinding("showRecordGroupAsTable")) { _showRecordGroupAsTable = "false"; } else { Object v = (Object)this.valueForBinding("showRecordGroupAsTable"); if... |
Object v = (Object)this.valueForBinding("showRecordGroupAsTable"); if (ERXValueUtilities.booleanValue(v)) { _showRecordGroupAsTable = "true"; }else { _showRecordGroupAsTable = "false"; } | _showRecordGroupAsTable = booleanValueForBinding("showRecordGroupAsTable"); | public String showRecordGroupAsTable() { if (_showRecordGroupAsTable == null) { if (this.hasBinding("showRecordGroupAsTable")) { _showRecordGroupAsTable = "false"; } else { Object v = (Object)this.valueForBinding("showRecordGroupAsTable"); if... |
return _showRecordGroupAsTable; | return _showRecordGroupAsTable.booleanValue(); | public String showRecordGroupAsTable() { if (_showRecordGroupAsTable == null) { if (this.hasBinding("showRecordGroupAsTable")) { _showRecordGroupAsTable = "false"; } else { Object v = (Object)this.valueForBinding("showRecordGroupAsTable"); if... |
public String showRecordGroupHeadings() { | public boolean showRecordGroupHeadings() { | public String showRecordGroupHeadings() { if (_showRecordGroupHeadings == null) { if (!this.hasBinding("showRecordGroupHeadings")) { _showRecordGroupHeadings = "true"; } else { Object v = (Object)this.valueForBinding("showRecordGroupHeadings"); ... |
_showRecordGroupHeadings = "true"; | _showRecordGroupHeadings = Boolean.TRUE; | public String showRecordGroupHeadings() { if (_showRecordGroupHeadings == null) { if (!this.hasBinding("showRecordGroupHeadings")) { _showRecordGroupHeadings = "true"; } else { Object v = (Object)this.valueForBinding("showRecordGroupHeadings"); ... |
Object v = (Object)this.valueForBinding("showRecordGroupHeadings"); if (ERXValueUtilities.booleanValue(v)) { _showRecordGroupHeadings = "true"; }else { _showRecordGroupHeadings = "false"; } | _showRecordGroupHeadings = booleanValueForBinding("showRecordGroupHeadings"); | public String showRecordGroupHeadings() { if (_showRecordGroupHeadings == null) { if (!this.hasBinding("showRecordGroupHeadings")) { _showRecordGroupHeadings = "true"; } else { Object v = (Object)this.valueForBinding("showRecordGroupHeadings"); ... |
return _showRecordGroupHeadings; | return _showRecordGroupHeadings.booleanValue(); | public String showRecordGroupHeadings() { if (_showRecordGroupHeadings == null) { if (!this.hasBinding("showRecordGroupHeadings")) { _showRecordGroupHeadings = "true"; } else { Object v = (Object)this.valueForBinding("showRecordGroupHeadings"); ... |
if (this.selectedRecordGroupDisplayType().equals("TOTALS") && !this.showRGAsTable()) { | if (this.selectedRecordGroupDisplayType().equals("TOTALS") && !this.showRecordGroupAsTable()) { | public boolean showTotalsOnlyAsCells() { if (this.selectedRecordGroupDisplayType().equals("TOTALS") && !this.showRGAsTable()) { return true; } return false; } |
if (this.selectedReportStyle().equals("VERTICAL_ROWS") && !this.showRGAsTable() && this.selectedRecordGroupDisplayType().equals("TABLE")) { | if (this.selectedReportStyle().equals("VERTICAL_ROWS") && !this.showRecordGroupAsTable() && this.selectedRecordGroupDisplayType().equals("TABLE")) { | public boolean showVerticalRows() { if (this.selectedReportStyle().equals("VERTICAL_ROWS") && !this.showRGAsTable() && this.selectedRecordGroupDisplayType().equals("TABLE")) { return true; } return false; } |
return this.model().spanForVListIndexAsCellsShowHeadingShowTotals(true, vheadingIndex(), !this.showRGAsTable(), this.showRGHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); | return this.model().spanForVListIndexAsCellsShowHeadingShowTotals(true, vheadingIndex(), !this.showRecordGroupAsTable(), this.showRecordGroupHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); | public int vertRowSpan() { return this.model().spanForVListIndexAsCellsShowHeadingShowTotals(true, vheadingIndex(), !this.showRGAsTable(), this.showRGHeadings(), this.selectedRecordGroupDisplayType().equals("TOTALS")); } |
System.out.println("IMPickListAction.invokeAction: list = " + list); | public WOActionResults invokeAction(WORequest request, WOContext context) { WOActionResults results = null; if (context.elementID().equals(context.senderID())) { String message = context.request().stringFormValueForKey(InstantMessengerAdaptor.MESSAGE_KEY); NSArray list = (NSArray) valueForBinding("lis... | |
if(spec.fetchLimit() > 0 || spec.sortOrderings() != null) { spec = new EOFetchSpecification(spec.entityName(), spec.qualifier(), null); } | public static int rowCountForFetchSpecification(EOEditingContext ec, EOFetchSpecification spec) { int rowCount = -1; EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, spec.entityName()); EOModel model = entity.model(); EOSQLExpression sql = ERXEOAccessUtilities.sqlExpressionForFetch... | |
EOAdaptor adaptor = EOAdaptor.adaptorWithModel(model); EODatabase db = new EODatabase(adaptor); | EODatabaseContext dbc = EOUtilities.databaseContextForModelNamed(ec, model.name()); EOAdaptor adaptor = dbc.adaptorContext().adaptor(); | public static EOSQLExpression sqlExpressionForFetchSpecification(EOEditingContext ec, EOFetchSpecification spec, long start, long end) { EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, spec.entityName()); EOModel model = entity.model(); EOAdaptor adaptor = EOAdaptor.adaptorWithModel(mode... |
EOQualifier qualifier = spec.qualifier(); if(qualifier != null) qualifier = EOQualifierSQLGeneration.Support._schemaBasedQualifierWithRootEntity(qualifier, entity); if(qualifier != spec.qualifier()) { spec = (EOFetchSpecification)spec.clone(); spec.setQualifier(qualifier); } | public static EOSQLExpression sqlExpressionForFetchSpecification(EOEditingContext ec, EOFetchSpecification spec, long start, long end) { EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, spec.entityName()); EOModel model = entity.model(); EOAdaptor adaptor = EOAdaptor.adaptorWithModel(mode... | |
className.replace(className.indexOf("OrgRT"), className.indexOf("OrgRt"), "org"); | className.replace(className.indexOf("OrgRT"), className.lastIndexOf("OrgRT"), "org"); | protected void addPlugins() { ContainerBase container = new ContainerBase("Plugins"); container.initProperties(); addChild(container); ComponentDescription[] desc = ComponentConnector.parseFile(filename); if (desc == null) { if (log.isWarnEnabled()) { log.warn("No data found in file " + file... |
EOEntity entity = op.entity(); if(!entity.name().equals("WatchFolder")) { achannel.performAdaptorOperation(op); } | achannel.performAdaptorOperation(op); | public static void insertAdaptorOperations(NSArray ops) { EOEditingContext ec = ERXEC.newEditingContext(); ec.lock(); try { // FIXME use the entityName information from each EOAdaptorOperation to get the correct // database context, this implementation here only works if a... |
log.info(keys); | protected void addComponentLevelValuesForKey(String propertyKey) { context.setPropertyKey(propertyKey); dict.takeValueForKeyPath( new NSMutableDictionary(), "componentLevelKeys." + propertyKey); for(Enumeration e = componentLevelKeys.objectEnumerator(); e.hasMoreElements(); ) { Strin... | |
log.info(sortKey); | public NSArray maybeSortedList() { if (hasBinding("sortKey")) { String sortKey = (String)valueForBinding("sortKey"); log.info(sortKey); if(sortKey != null && sortKey.length() > 0) { NSMutableArray sortedList = new NSMutableArray((NSArray)valueForBinding("list")... | |
out.print("<dependency "); String org = _organisation; if (attributes.getValue("org") != null) { org = attributes.getValue("org"); out.print("org=\""+org+"\" "); } | out.print("<dependency"); String org = attributes.getValue("org"); org = org == null ? _organisation : org; | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
out.print("name=\""+mid.getName()+"\" "); String rev = (String)resolvedRevisions.get(mid); if (rev != null) { out.print("rev=\""+rev+"\""); } else { out.print("rev=\""+attributes.getValue("rev")+"\""); } if (attributes.getValue("conf") != null) { out.print(" conf=\""+attributes.getValue("conf")+"\""); | for (int i=0; i<attributes.getLength(); i++) { String attName = attributes.getQName(i); if ("rev".equals(attName)) { String rev = (String)resolvedRevisions.get(mid); if (rev != null) { out.print(" rev=\""+rev+"\""); } else { out.print(" rev=\""+attributes.getValue("rev")+"\""); } } else { out.print(" "+attName+"=\""+at... | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
sql += sql.substring(0, index) | sql = sql.substring(0, index) | public static EOSQLExpression sqlExpressionForFetchSpecification(EOEditingContext ec, EOFetchSpecification spec, long start, long end) { EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, spec.entityName()); EOModel model = entity.model(); EODatabaseContext dbc = EOUtilities.databaseContext... |
ResolveReport report = _ivy.resolve(new File("test/repositories/1/org1/mod1.4/ivys/ivy-1.0.1.xml").toURL(), | final Collection asked = new ArrayList(); Ivy ivy = new Ivy(); ivy.configure(new File("test/repositories/ivyconf.xml")); LatestConflictManager latestConflictManager = new LatestConflictManager("test", new LatestRevisionStrategy()) { public Collection resolveConflicts(IvyNode parent, Collection conflicts) { for (Iterato... | public void testLatest() throws Exception { // mod1.4 depends on latest mod1.2 ResolveReport report = _ivy.resolve(new File("test/repositories/1/org1/mod1.4/ivys/ivy-1.0.1.xml").toURL(), null, new String[] {"default"}, _cache, null, true); assertNotNull(report); ModuleDesc... |
assertTrue(_ivy.getResolvedIvyFileInCache(_cache, mrid).exists()); | assertTrue(ivy.getResolvedIvyFileInCache(_cache, mrid).exists()); | public void testLatest() throws Exception { // mod1.4 depends on latest mod1.2 ResolveReport report = _ivy.resolve(new File("test/repositories/1/org1/mod1.4/ivys/ivy-1.0.1.xml").toURL(), null, new String[] {"default"}, _cache, null, true); assertNotNull(report); ModuleDesc... |
assertTrue(_ivy.getIvyFileInCache(_cache, depId).exists()); assertTrue(_ivy.getArchiveFileInCache(_cache, "org1", "mod1.2", "2.2", "mod1.2", "jar", "jar").exists()); | assertTrue(ivy.getIvyFileInCache(_cache, depId).exists()); assertTrue(ivy.getArchiveFileInCache(_cache, "org1", "mod1.2", "2.2", "mod1.2", "jar", "jar").exists()); | public void testLatest() throws Exception { // mod1.4 depends on latest mod1.2 ResolveReport report = _ivy.resolve(new File("test/repositories/1/org1/mod1.4/ivys/ivy-1.0.1.xml").toURL(), null, new String[] {"default"}, _cache, null, true); assertNotNull(report); ModuleDesc... |
System.out.println("Experiment: SAVING TO DATABASE"); | public void saveToDb(DBConflictHandler ch) { System.out.println("Experiment: SAVING TO DATABASE"); try { updateNameServerHostName(); // Be sure this is up-to-date List components = getComponents(); boolean componentWasRemoved = false; PopulateDb pdb = null; SocietyComponent sc = getSoci... | |
addComponentToWorkspace(compCopy, (DefaultMutableTreeNode)findNode(comp).getParent()); | workspace.setSelection(addComponentToWorkspace(compCopy, (DefaultMutableTreeNode)findNode(comp).getParent())); | public ModifiableConfigurableComponent copyComponent(ModifiableConfigurableComponent comp, Object context) { if (comp instanceof SocietyComponent) return (ModifiableConfigurableComponent)copySociety((SocietyComponent)comp, context); else if (comp instanceof ImpactComponent) return (Modifi... |
addComponentToWorkspace(compCopy, (DefaultMutableTreeNode)context); | workspace.setSelection(addComponentToWorkspace(compCopy, (DefaultMutableTreeNode)context)); | public ModifiableConfigurableComponent copyComponent(ModifiableConfigurableComponent comp, Object context) { if (comp instanceof SocietyComponent) return (ModifiableConfigurableComponent)copySociety((SocietyComponent)comp, context); else if (comp instanceof ImpactComponent) return (Modifi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.