rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
addExperimentToWorkspace(experimentCopy, (DefaultMutableTreeNode)findNode(experiment).getParent()); | workspace.setSelection(addExperimentToWorkspace(experimentCopy, (DefaultMutableTreeNode)findNode(experiment).getParent())); | public Experiment copyExperiment(Experiment experiment, Object context) { // context is the tree node of the folder containing the experiment Experiment experimentCopy = experiment.copy(this, context); if (context == null) // add copy as sibling of original addExperimentToWorkspace(experimentCopy, ... |
addExperimentToWorkspace(experimentCopy, (DefaultMutableTreeNode)context); | workspace.setSelection(addExperimentToWorkspace(experimentCopy, (DefaultMutableTreeNode)context)); | public Experiment copyExperiment(Experiment experiment, Object context) { // context is the tree node of the folder containing the experiment Experiment experimentCopy = experiment.copy(this, context); if (context == null) // add copy as sibling of original addExperimentToWorkspace(experimentCopy, ... |
addImpactToWorkspace(impactCopy, (DefaultMutableTreeNode)findNode(impact).getParent()); addImpactToWorkspace(impactCopy, (DefaultMutableTreeNode)context); | workspace.setSelection(addImpactToWorkspace(impactCopy, (DefaultMutableTreeNode)findNode(impact).getParent())); workspace.setSelection(addImpactToWorkspace(impactCopy, (DefaultMutableTreeNode)context)); | public ImpactComponent copyImpact(ImpactComponent impact, Object context) { ImpactComponent impactCopy = impact.copy(this, context); if (context == null) addImpactToWorkspace(impactCopy, (DefaultMutableTreeNode)findNode(impact).getParent()); addImpactToWorkspace(impactCopy, (DefaultMutableTreeNode)conte... |
addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)context); | public Metric copyMetric(Metric metric, Object context) { Metric metricCopy = metric.copy(this, context); addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)context); if (context == null) addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)findNode(metric).getParent()); return metricCopy; ... | |
addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)findNode(metric).getParent()); | workspace.setSelection(addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)findNode(metric).getParent())); else workspace.setSelection(addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)context)); | public Metric copyMetric(Metric metric, Object context) { Metric metricCopy = metric.copy(this, context); addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)context); if (context == null) addMetricToWorkspace(metricCopy, (DefaultMutableTreeNode)findNode(metric).getParent()); return metricCopy; ... |
addSocietyToWorkspace(societyCopy, (DefaultMutableTreeNode)findNode(society).getParent()); | workspace.setSelection(addSocietyToWorkspace(societyCopy, (DefaultMutableTreeNode)findNode(society).getParent())); | public SocietyComponent copySociety(SocietyComponent society, Object context) { SocietyComponent societyCopy = society.copy(this, context); if (context == null) // add copy as sibling of original addSocietyToWorkspace(societyCopy, (DefaultMutableTreeNode)findNode(society).getParent())... |
addSocietyToWorkspace(societyCopy, (DefaultMutableTreeNode)context); | workspace.setSelection(addSocietyToWorkspace(societyCopy, (DefaultMutableTreeNode)context)); | public SocietyComponent copySociety(SocietyComponent society, Object context) { SocietyComponent societyCopy = society.copy(this, context); if (context == null) // add copy as sibling of original addSocietyToWorkspace(societyCopy, (DefaultMutableTreeNode)findNode(society).getParent())... |
"Experiment is in use; delete anyway?", | "Experiment " + reason + "; delete anyway?", | private void deleteExperiment(DefaultMutableTreeNode node) { if (node == null) return; Experiment experiment = (Experiment)node.getUserObject(); if (!experiment.isEditable()) { int result = JOptionPane.showConfirmDialog(this, "Experiment is in use; delete anyway?", "Experiment Not Editable",... |
if (experiment.hasUnboundProperties()) { csmart.runExperimentBuilder(experiment, false, true); } if (! experiment.hasConfiguration()) experiment.createDefaultConfiguration(); | private void startConsole(DefaultMutableTreeNode node) { Object o = node.getUserObject(); Experiment experiment; if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyComponent) o; String name = "Temp Experiment for " + sc.getSocietyName(); name = experimentNames.generateName(nam... | |
csmart.runExperimentBuilder(experiment, false, openForEditing); | csmart.runExperimentBuilder(experiment, false, true); | private void startExperimentBuilder(DefaultMutableTreeNode node, boolean openForEditing) { Object o = node.getUserObject(); Experiment experiment; if (o instanceof SocietyComponent) { SocietyComponent sc = (SocietyComponent) o; String name = "Experiment for " + sc.getSocietyName(); ex... |
setPropertyVisible(propAltType, show); | setPropertyVisible(propAltTypeId, show); | private void updateOrgParameters(String val) { boolean show = (val.equals(TRUE)) ? true : false; setPropertyVisible(propRelationCount, show); setPropertyVisible(propAssetClass, show); setPropertyVisible(propNomenclature, show); setPropertyVisible(propType, show); setPropertyVisible(propAltType, show... |
protected void postKeyEvent (int id, long when, int mods, int keyCode, char keyChar) | protected void postKeyEvent (int id, long when, int mods, int keyCode, char keyChar, int keyLocation) | protected void postKeyEvent (int id, long when, int mods, int keyCode, char keyChar) { q.postEvent (new KeyEvent (awtComponent, id, when, mods, keyCode, keyChar)); } |
q.postEvent (new KeyEvent (awtComponent, id, when, mods, keyCode, keyChar)); | q.postEvent (new KeyEvent (awtComponent, id, when, mods, keyCode, keyChar, keyLocation)); | protected void postKeyEvent (int id, long when, int mods, int keyCode, char keyChar) { q.postEvent (new KeyEvent (awtComponent, id, when, mods, keyCode, keyChar)); } |
impl.close(); remoteAddress = null; remotePort = -1; | if (!closed) { impl.close(); remoteAddress = null; remotePort = -1; closed = true; } | public void close() { impl.close(); remoteAddress = null; remotePort = -1; } |
remoteAddress = null; remotePort = -1; | public void disconnect() { impl.disconnect(); } | |
if (!isConnected ()) return null; | public InetAddress getInetAddress() { if (!isConnected ()) return null; return remoteAddress; } | |
if (!isConnected ()) return -1; | public int getPort() { if (!isConnected ()) return -1; return remotePort; } | |
return !impl.getFileDescriptor().valid(); | return closed; | public boolean isClosed() { return !impl.getFileDescriptor().valid(); } |
ERMailer.instance().processOutgoingMail(); | try { ERMailer.instance().processOutgoingMail(); } catch ( Exception e ) { log.error("run(): caught exception: " + e); } | public void run() { if (log.isDebugEnabled()) log.debug("Timer firing to process outgoing mail."); ERMailer.instance().processOutgoingMail(); } |
if (instance == null) instance = new ERMailer(); | if ( instance == null ) instance = newMailer(); | public static ERMailer instance() { if (instance == null) instance = new ERMailer(); return instance; } |
startConsole(popupNode); | copyExperimentInNode(popupNode); | public void actionPerformed(ActionEvent e) { startConsole(popupNode); } |
copyExperimentInNode(popupNode); | deleteExperiment(popupNode); | public void actionPerformed(ActionEvent e) { copyExperimentInNode(popupNode); } |
deleteExperiment(popupNode); | renameExperiment(popupNode); | public void actionPerformed(ActionEvent e) { deleteExperiment(popupNode); } |
renameExperiment(popupNode); | startBuilder(popupNode, e.getActionCommand().equals("Configure")); | public void actionPerformed(ActionEvent e) { renameExperiment(popupNode); } |
startBuilder(popupNode, e.getActionCommand().equals("Configure")); | startExperimentBuilder(popupNode, true); | public void actionPerformed(ActionEvent e) { startBuilder(popupNode, e.getActionCommand().equals("Configure")); } |
startExperimentBuilder(popupNode, true); | startConsole(popupNode); | public void actionPerformed(ActionEvent e) { startExperimentBuilder(popupNode, true); } |
startConsole(popupNode); | copySocietyInNode(popupNode); | public void actionPerformed(ActionEvent e) { startConsole(popupNode); } |
copySocietyInNode(popupNode); | deleteSociety(popupNode); | public void actionPerformed(ActionEvent e) { copySocietyInNode(popupNode); } |
deleteSociety(popupNode); | renameSociety(popupNode); | public void actionPerformed(ActionEvent e) { deleteSociety(popupNode); } |
renameSociety(popupNode); | startExperimentBuilder(popupNode, true); | public void actionPerformed(ActionEvent e) { renameSociety(popupNode); } |
startExperimentBuilder(popupNode, true); | copyComponentInNode(popupNode); | public void actionPerformed(ActionEvent e) { startExperimentBuilder(popupNode, true); } |
copyComponentInNode(popupNode); | deleteComponent(popupNode); | public void actionPerformed(ActionEvent e) { copyComponentInNode(popupNode); } |
deleteComponent(popupNode); | renameComponent(popupNode); | public void actionPerformed(ActionEvent e) { deleteComponent(popupNode); } |
renameComponent(popupNode); } | GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("SelectRecipe") { public void run() { selectRecipeFromDatabase(popupNode); GUIUtils.timeConsumingTaskEnd(organizer); } }.start(); } catch (RuntimeException re) { System.out.println("Runtime exception creating recipe: " + re); re.printStackTrace(); GUIUtils.ti... | public void actionPerformed(ActionEvent e) { renameComponent(popupNode); } |
newRecipe(popupNode); | startBuilder(popupNode, e.getActionCommand().equals("Configure")); | public void actionPerformed(ActionEvent e) { newRecipe(popupNode); } |
startExperimentBuilder(popupNode, true); | copyRecipeInNode(popupNode); | public void actionPerformed(ActionEvent e) { startExperimentBuilder(popupNode, true); } |
copyRecipeInNode(popupNode); | deleteRecipe(popupNode); | public void actionPerformed(ActionEvent e) { copyRecipeInNode(popupNode); } |
deleteRecipe(popupNode); | renameRecipe(popupNode); | public void actionPerformed(ActionEvent e) { deleteRecipe(popupNode); } |
renameRecipe(popupNode); | saveRecipe(popupNode); | public void actionPerformed(ActionEvent e) { renameRecipe(popupNode); } |
saveRecipe(popupNode); | while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newSociety(popupNode); | public void actionPerformed(ActionEvent e) { saveRecipe(popupNode); } |
newSociety(popupNode); | newRecipe(popupNode); | public void actionPerformed(ActionEvent e) { while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newSociety(popupNode); } |
newRecipe(popupNode); | newFolder(popupNode); | public void actionPerformed(ActionEvent e) { while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newRecipe(popupNode); } |
while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newFolder(popupNode); | deleteFolder(popupNode); | public void actionPerformed(ActionEvent e) { while (! popupNode.getAllowsChildren()) popupNode = (DefaultMutableTreeNode)popupNode.getParent(); newFolder(popupNode); } |
deleteFolder(popupNode); | renameFolder(popupNode); | public void actionPerformed(ActionEvent e) { deleteFolder(popupNode); } |
GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("SelectExperiment") { public void run() { selectExperimentFromDatabase(popupNode); GUIUtils.timeConsumingTaskEnd(organizer); } }.start(); } catch (RuntimeException re) { System.out.println("Runtime exception creating experiment: " + re); re.printStackTrace();... | selectExperimentFromDatabase(popupNode); } | public void actionPerformed(ActionEvent e) { GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("SelectExperiment") { public void run() { selectExperimentFromDatabase(popupNode); GUIUtils.timeConsumingTaskEnd(organizer); } ... |
newExperiment(popupNode); | startExperimentBuilder(popupNode, e.getActionCommand().equals("Configure")); | public void actionPerformed(ActionEvent e) { newExperiment(popupNode); } |
startExperimentBuilder(popupNode, e.getActionCommand().equals("Configure")); | startConsole(popupNode); | public void actionPerformed(ActionEvent e) { startExperimentBuilder(popupNode, e.getActionCommand().equals("Configure")); } |
String originalExperimentName = experimentName; | final String originalExperimentName = experimentName; | private void selectExperimentFromDatabase(DefaultMutableTreeNode node) { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.... |
CMTDialog dialog = new CMTDialog(csmart, this, experimentName, experimentId); dialog.processResults(); final String trialId = dialog.getTrialId(); if (trialId == null) | cmtDialog = new CMTDialog(csmart, this, experimentName, experimentId); while (!cmtDialog.isULThreadSelected() && !cmtDialog.wasCancelled()) { JOptionPane.showMessageDialog(this, "You must select at least one thread.", "No Thread Selected", JOptionPane.ERROR_MESSAGE); cmtDialog = new CMTDialog(csmart, this, experimen... | private void selectExperimentFromDatabase(DefaultMutableTreeNode node) { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.... |
createCMTExperiment(node, originalExperimentName, dialog.getExperimentName(), dialog.getExperimentId(), trialId, dialog.isCloned()); | final DefaultMutableTreeNode treeNode = node; GUIUtils.timeConsumingTaskStart(organizer); try { new Thread("SelectExperiment") { public void run() { cmtDialog.processResults(); final String trialId = cmtDialog.getTrialId(); if (trialId != null) createCMTExperiment(treeNode, originalExperimentName, cmtDialog.getExperime... | private void selectExperimentFromDatabase(DefaultMutableTreeNode node) { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.... |
if (menuBar != null) menuBar.addNotify(); | addNotify(){ if (peer == null) peer = getToolkit ().createFrame (this); super.addNotify();} | |
if (menuBar != null) menuBar.addNotify(); if (peer != null) ((FramePeer) peer).setMenuBar(menuBar); | setMenuBar(MenuBar menuBar){ this.menuBar = menuBar; if (menuBar != null) menuBar.addNotify(); if (peer != null) ((FramePeer) peer).setMenuBar(menuBar);} | |
EOEditingContext ec = ERXExtensions.newEditingContext(); | EOEditingContext ec = ERXEC.newEditingContext(); | public void testSendingMail() { log.info("Sending test mail"); try { EOEditingContext ec = ERXExtensions.newEditingContext(); ERCMailMessage message = ERCMailDelivery.sharedInstance().composeEmail(ERJavaMail.sharedInstance().adminEmail(), ... |
if(contextClassName().equals("WOContext")) setContextClassName("er.extensions.ERXWOContext"); ERXCompilerProxy.defaultProxy().setClassForName(ERXWOForm.class, "WOForm"); ERXCompilerProxy.defaultProxy().setClassForName(ERXWOFileUpload.class, "WOFileUpload"); | installPatches(); | public ERXApplication() { super(); if(contextClassName().equals("WOContext")) setContextClassName("er.extensions.ERXWOContext"); ERXCompilerProxy.defaultProxy().setClassForName(ERXWOForm.class, "WOForm"); ERXCompilerProxy.defaultProxy().setClassForName(ERXWOFileUpload.class, "... |
log = new PrintWriter(new FileWriter("PopulateDbQuery.log")); | public PDbBase() throws SQLException, IOException { log = new PrintWriter(new FileWriter("PopulateDbQuery.log")); dbp = DBProperties.readQueryFile(QUERY_FILE); try { dbp.addQueryFile(RecipeComponent.RECIPE_QUERY_FILE); } catch (FileNotFoundException e) { /... | |
} else if ("limit".equalsIgnoreCase(name)) { try { limit = Integer.parseInt(value); if (limit < 0) { limit = Integer.MAX_VALUE; } } catch (NumberFormatException nfe) { } | public void visitParameter(String name, String value) { if ("find".equalsIgnoreCase(name)) { if ("down".equalsIgnoreCase(value)) { isDown = true; } else if ("up".equalsIgnoreCase(value)) { isDown = false; } } else if ("format".equalsIgnoreCase(name)) { if ("da... | |
isDown); | isDown, limit); | public void execute( PrintStream out, HttpInput queryParameters, PlanServiceContext psc, PlanServiceUtilities psu) throws Exception { // parse URL parameters and POST data // // can later add filters as an Operator (UnaryPredicate) Set startUIDs = null; boolean returnAsData = false;... |
boolean isDown) { | boolean isDown, int limit) { | private static List search( QuerySupport querySupport, Set startUIDSet, boolean isDown) { return (isDown ? searchDown(querySupport, startUIDSet) : searchUp( querySupport, startUIDSet)); } |
searchDown(querySupport, startUIDSet) : searchUp( querySupport, startUIDSet)); | searchDown(querySupport, startUIDSet, limit) : searchUp( querySupport, startUIDSet, limit)); | private static List search( QuerySupport querySupport, Set startUIDSet, boolean isDown) { return (isDown ? searchDown(querySupport, startUIDSet) : searchUp( querySupport, startUIDSet)); } |
Set startUIDSet) { | Set startUIDSet, int limit) { | private static List searchDown( QuerySupport querySupport, Set startUIDSet) { if (VERBOSE) { System.out.println( "\n****************************************************"+ "\nSEARCH DOWN"+ "\nStart with ["+ ((startUIDSet != null) ? startUIDSet.size() : 0)+ ... |
"]: "+startUIDSet); | "]: "+startUIDSet+ ((limit >= 0) ? ("\nLimit: "+limit) : "\nNo limit")); | private static List searchDown( QuerySupport querySupport, Set startUIDSet) { if (VERBOSE) { System.out.println( "\n****************************************************"+ "\nSEARCH DOWN"+ "\nStart with ["+ ((startUIDSet != null) ? startUIDSet.size() : 0)+ ... |
if (ws.sizePushed() > limit) { break; } | private static List searchDown( QuerySupport querySupport, Set startUIDSet) { if (VERBOSE) { System.out.println( "\n****************************************************"+ "\nSEARCH DOWN"+ "\nStart with ["+ ((startUIDSet != null) ? startUIDSet.size() : 0)+ ... | |
Set startUIDSet) { | Set startUIDSet, int limit) { | private static List searchUp( QuerySupport querySupport, Set startUIDSet) { // get this Cluster's identifier ClusterIdentifier localCID = querySupport.getClusterIdentifier(); if (VERBOSE) { System.out.println( "\n*****************************************************"+ "... |
"\nSEARCH UP"); | "\nSEARCH UP"+ ((limit >= 0) ? ("\nLimit: "+limit) : "\nNo limit")); | private static List searchUp( QuerySupport querySupport, Set startUIDSet) { // get this Cluster's identifier ClusterIdentifier localCID = querySupport.getClusterIdentifier(); if (VERBOSE) { System.out.println( "\n*****************************************************"+ "... |
if (ws.sizePushed() > limit) { break search_up_loop; } | private static List searchUp( QuerySupport querySupport, Set startUIDSet) { // get this Cluster's identifier ClusterIdentifier localCID = querySupport.getClusterIdentifier(); if (VERBOSE) { System.out.println( "\n*****************************************************"+ "... | |
EOModel model = modelForFetchSpecificationAndEditingContext(spec, ec); EOEntity entity = model.entityNamed(spec.entityName()); EOAdaptor adaptor = EOAdaptor.adaptorWithModel(model); EODatabase db = new EODatabase(adaptor); EOSQLExpressionFactory sqlFactory = adaptor.expressionFactory(); NSArray attributesFromEntity =... | return sqlForFetchSpecificationAndEditingContext(spec,ec,0,-1); | public static String sqlForFetchSpecificationAndEditingContext(EOFetchSpecification spec, EOEditingContext ec) { EOModel model = modelForFetchSpecificationAndEditingContext(spec, ec); EOEntity entity = model.entityNamed(spec.entityName()); EOAdaptor adaptor = EOAdaptor.adaptorWithModel(model); ... |
ModuleRevisionId mrid = md.getModuleRevisionId(); | ModuleRevisionId mrid = node.getId(); | public void addCaller(String rootModuleConf, IvyNode node, String callerConf, String[] dependencyConfs, DependencyDescriptor dd) { ModuleDescriptor md = node.getDescriptor(); ModuleRevisionId mrid = md.getModuleRevisionId(); if (mrid.getModuleId().equals(getId().getModuleId())) { th... |
language = languageCode.toLowerCase(); country = countryCode.toUpperCase(); hashcode = languageCode.hashCode() ^ countryCode.hashCode(); | this (languageCode, countryCode, ""); | public Locale (String languageCode, String countryCode) { language = languageCode.toLowerCase(); country = countryCode.toUpperCase(); hashcode = languageCode.hashCode() ^ countryCode.hashCode(); } |
if ((language == null && loc.language != null) || (country == null && loc.country != null) || (variant == null && loc.variant != null)) return false; | public boolean equals (Object obj) { if (! (obj instanceof Locale)) return false; Locale loc = (Locale) obj; if ((language == null && loc.language != null) || (country == null && loc.country != null) || (variant == null && loc.variant != null)) return false; return (language.equals(loc.lang... | |
if (variant != null && variant.length() > 0) | if (variant.length() > 0) | public String toString () { StringBuffer result = new StringBuffer(20); result.append(language); result.append('_'); result.append(country); if (variant != null && variant.length() > 0) { result.append('_'); result.append(variant); } return result.toString(); } |
if (includeSessionID) return url; else return stripSessionIDFromURL(url); | if (!includeSessionID) { url = stripSessionIDFromURL(url); } return url; | public String directActionURLForActionNamed(String actionName, NSDictionary queryDict, boolean includeSessionID) { String url = super.directActionURLForActionNamed(actionName, queryDict); if (includeSessionID) return url; else return stripSessionIDFromURL(url); ... |
throw new IllegalArgumentException("value may not be less then 0"); | throw new IllegalArgumentException("value may not be less than 0"); | public NumberOfInterveningJobs(int value) { super(value); if (value < 0) throw new IllegalArgumentException("value may not be less then 0"); } |
defaultNodeArguments.put(PERSIST_CLEAR, PERSIST_CLEAR_DFLT); | private void setDefaultNodeArguments() { defaultNodeArguments = new ReadOnlyProperties(Collections.singleton(EXPERIMENT_ID)); createObserver(); defaultNodeArguments.put(PERSISTENCE_ENABLE, PERSISTENCE_DFLT); defaultNodeArguments.put(TIMEZONE, TIMEZONE_DFLT); defaultNodeArguments.put(AGENT_STARTTI... | |
editingContext.deleteObject(_object); editingContext.saveChanges(); _object=null; | if (editingContext instanceof EOSharedEditingContext) { if (ERXExtensions.isNewObject(_object)) { log.error("found a new object in a shared editing context "+editingContext); editingContext.deleteObject(_object); } else { EOEditingContext ec = ERXEC.newEditingContext(); ec.lock(); try { ec.setSharedEditingContext(null... | public WOComponent nextPage(WOComponent sender) { if (_object!=null && _object.editingContext()!=null) { EOEditingContext editingContext=_object.editingContext(); try { if (_dataSource != null) _dataSource.deleteObject(_object); editingCo... |
return readline(prompt, false); | return readline(prompt,true); | public static String readline(String prompt) throws EOFException, IOException, UnsupportedEncodingException { return readline(prompt, false); } |
providerCount += agentCount[Math.min(i, agentCount.length)]; | providerCount += agentCount[Math.min(i, agentCount.length - 1)]; | private void setProviderCount() { int[] agentCount = (int[]) getProperty(PROP_AGENTCOUNT).getValue(); int nLevels = getLevelCount(); int providerCount = 0; for (int i = 0; i < nLevels; i++) { providerCount += agentCount[Math.min(i, agentCount.length)]; } if (propProviderCount != null) { pr... |
return (FastClass)super.create(type); | return (FastClass)super.create(type.getName()); | public FastClass create() { setNamePrefix(type.getName()); return (FastClass)super.create(type); } |
public String ilFO2PDF(String foString) { | public byte[] ilFO2PDF(String foString) { | public String ilFO2PDF(String foString) { try { fo2pdf.setFoString(foString); fo2pdf.transform(); return fo2pdf.getPdfString(); } catch(ilTransformerException e) { logger.error("Error creating pdf: " + e); } ... |
return fo2pdf.getPdfString(); | return fo2pdf.getPdf(); | public String ilFO2PDF(String foString) { try { fo2pdf.setFoString(foString); fo2pdf.transform(); return fo2pdf.getPdfString(); } catch(ilTransformerException e) { logger.error("Error creating pdf: " + e); } ... |
return ""; | return null; | public String ilFO2PDF(String foString) { try { fo2pdf.setFoString(foString); fo2pdf.transform(); return fo2pdf.getPdfString(); } catch(ilTransformerException e) { logger.error("Error creating pdf: " + e); } ... |
PopulateDb pdb = new PopulateDb("CSM_", exp.getExperimentID(), exp.getTrialID()); | PopulateDb pdb = new PopulateDb("CSM", exp.getExperimentID(), exp.getTrialID()); | public DBConfigWriter(List components, NodeComponent[] nodesToWrite, Experiment exp) throws SQLException, IOException { this.nodesToWrite = nodesToWrite; this.components = components; theSoc = new GenericComponentData(); theSoc.setType(ComponentData.SOCIETY); theSoc.setName(exp.getExperimentName())... |
log = CSMART.createLogger("org.cougaar.tools.csmart.core.property.range"); | createLogger(); | public RangeBase() { log = CSMART.createLogger("org.cougaar.tools.csmart.core.property.range"); } |
Iterator iter = getLocalPropertyNames(); | Iterator iter = getSortedLocalPropertyNames(); | public ComponentProperties copy(ComponentProperties result) { // Make sure we're copying apples into apples // The result can be a sub-class, but we want it // to at least have the same set of properties if (! (this.getClass().isAssignableFrom(result.getClass()))) return null; Iterator iter = getL... |
if (o != null) hisProp.setValue(o); | if (o != null) { hisProp.setValue(o); } | public ComponentProperties copy(ComponentProperties result) { // Make sure we're copying apples into apples // The result can be a sub-class, but we want it // to at least have the same set of properties if (! (this.getClass().isAssignableFrom(result.getClass()))) return null; Iterator iter = getL... |
dep = dep.getRealNode(); | 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 ... | |
response.addDelayedElement(this, context.component(), context.elementID()); | response.addDelayedElement(this, component, elementID); | public WOActionResults invokeAction(WORequest request, WOContext context) { Object result = null; if (AjaxUtils.shouldHandleRequest(request, context, _containerID(context))) { Object childrenResult = null; if (_invokeChildrenBeforeHandleRequest()) { childrenResult = super.invokeAction(request, ... |
sharedDeliverer = new ERMailDeliveryHTML (); | sharedDeliverer = ERMailDeliveryHTML.newMailDelivery(); | public static ERMailDeliveryHTML sharedDeliverer () { if (sharedDeliverer == null) { sharedDeliverer = new ERMailDeliveryHTML (); } return sharedDeliverer; } |
public void windowClosing(WindowEvent e) { animator.stop(); System.out.println("Exiting"); System.exit(0); } }); | public void windowClosing(WindowEvent e) { new Thread(new Runnable() { public void run() { animator.stop(); System.exit(0); } }).start(); } }); | public static void main(String[] argv) { Frame frame = new Frame("Cg demo (runtime_ogl_vertex_fragment)"); GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); canvas.addGLEventListener(new runtime_ogl_vertex_fragment()); // Use debug pipeline canvas.setGL(new Deb... |
animator.stop(); System.out.println("Exiting"); System.exit(0); } | new Thread(new Runnable() { public void run() { animator.stop(); System.exit(0); } }).start(); } | public void windowClosing(WindowEvent e) { animator.stop(); System.out.println("Exiting"); System.exit(0); } |
return AnyMatcher.getInstance(); | return NoMatcher.getInstance(); | public Matcher getChangingMatcher() { if (_changingPattern == null) { return AnyMatcher.getInstance(); } PatternMatcher matcher = _ivy.getMatcher(_changingMatcherName); if (matcher == null) { throw new IllegalStateException("unknown matcher '"+_changingMatcherName+"... |
inputShutdown = false; outputShutdown = false; | public Socket () { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); } | |
if (!isConnected ()) return null; | public SocketAddress getRemoteSocketAddress() { return new InetSocketAddress (impl.getInetAddress (), impl.getPort ()); } | |
inputShutdown = true; | public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); } | |
outputShutdown = true; | public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); } | |
heartbeatCB.setSelected(false); | public void actionPerformed(ActionEvent e) { if (allCB.isSelected()) { standardCB.setSelected(false); errorCB.setSelected(false); createCB.setSelected(false); destroyCB.setSelected(false); idlenessCB.setSelected(false); heartbeatCB.setSelected(false); } } | |
msgArray[NodeEvent.HEARTBEAT] = heartbeatCB.isSelected(); | public void actionPerformed(ActionEvent e) { allSelected = allCB.isSelected(); if (!allSelected) { msgArray[NodeEvent.STANDARD_OUT] = standardCB.isSelected(); msgArray[NodeEvent.STANDARD_ERR] = errorCB.isSelected(); msgArray[NodeEvent.PROCESS_CREATED] = createCB.isSelected... | |
appServerSupport.killListeners(); | dontClose = false; boolean justExit = false; synchronized (runningNodesLock) { if (runningNodes.isEmpty()) justExit = true; } if (! justExit) { JPanel exitPanel = new JPanel(new GridBagLayout()); int x = 0; int y = 0; JLabel instr = new JLabel("Exit Console: Detach from Nodes (leaving them running), kill the Nodes, ... | private void exitMenuItem_actionPerformed(AWTEvent e) { // don't stop experiments when exiting the console // stopExperiments(); // kill any node output listeners that this instance of CSMART started appServerSupport.killListeners(); // Stop polling the Appservers if (asPollTimer != null) { ... |
updateControls(false); | private void exitMenuItem_actionPerformed(AWTEvent e) { // don't stop experiments when exiting the console // stopExperiments(); // kill any node output listeners that this instance of CSMART started appServerSupport.killListeners(); // Stop polling the Appservers if (asPollTimer != null) { ... | |
hosts[i].copy(nhosts[i]); | nhosts[i] = experimentCopy.addHost(hosts[i].getShortName().toString()); nhosts[i].setServerPort(hosts[i].getServerPort()); nhosts[i].setMonitoringPort(hosts[i].getMonitoringPort()); | public ModifiableComponent copy(String uniqueName) { if (log.isDebugEnabled()) { log.debug("Experiment copying " + getExperimentName() + " into new name " + uniqueName); } Experiment experimentCopy = null; if (DBUtils.dbMode) experimentCopy = new Experiment(uniqueName, expID, trialID); else ... |
return _requestedConf; | return (String) _requestedConf.get(getRootModuleConf()); | public final String getRequestedConf() { return _requestedConf; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.