rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
jif.getContentPane().add(new GLSClient(getOPlanAgentURL())); | jif.getContentPane().add(new GLSClient(getOPlanAgentURL(glsAgent))); | private void runTrial() { setTrialValues(); runStart = new Date(); nodeCreationInfoList = new ArrayList(); prepareToCreateNodes(); stopNodeCreation = false; startTimers(); nodeCreator = new Thread("CreateNodes") { public void run() { createNodes(); starting = false; // r... |
} | private void runTrial() { setTrialValues(); runStart = new Date(); nodeCreationInfoList = new ArrayList(); prepareToCreateNodes(); stopNodeCreation = false; startTimers(); nodeCreator = new Thread("CreateNodes") { public void run() { createNodes(); starting = false; // r... | |
} else | } else { | public void run() { createNodes(); starting = false; // reset controls if no nodes started successfully boolean reset = false; synchronized (runningNodesLock) { if (runningNodes.isEmpty()) reset = true; } // end synchronized if (reset) { ... |
if(findServlet()) { | final String glsAgent = findServlet(); if(glsAgent != null) { | public void run() { createNodes(); starting = false; // reset controls if no nodes started successfully boolean reset = false; synchronized (runningNodesLock) { if (runningNodes.isEmpty()) reset = true; } // end synchronized if (reset) { ... |
jif.getContentPane().add(new GLSClient(getOPlanAgentURL())); | jif.getContentPane().add(new GLSClient(getOPlanAgentURL(glsAgent))); | public void run() { createNodes(); starting = false; // reset controls if no nodes started successfully boolean reset = false; synchronized (runningNodesLock) { if (runningNodes.isEmpty()) reset = true; } // end synchronized if (reset) { ... |
} | public void run() { createNodes(); starting = false; // reset controls if no nodes started successfully boolean reset = false; synchronized (runningNodesLock) { if (runningNodes.isEmpty()) reset = true; } // end synchronized if (reset) { ... | |
jif.getContentPane().add(new GLSClient(getOPlanAgentURL())); | jif.getContentPane().add(new GLSClient(getOPlanAgentURL(glsAgent))); | public void run() { JInternalFrame jif = new JInternalFrame("GLS", true, false, true, true); jif.getContentPane().add(new GLSClient(getOPlanAgentURL())); jif.setSize(350, 350); jif.setLocation(0, 0); ... |
modified = false; installListeners(); | private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); createLogger(); } | |
ensureResolved(isHaltonfailure(), isUseOrigin(), isTransitive(), getOrganisation(), getModule(), getProperty(_conf, ivy, "ivy.resolved.configurations")); | if (!orgAndModSetManually) { ensureResolved(isHaltonfailure(), isUseOrigin(), isTransitive(), getOrganisation(), getModule(), getProperty(_conf, ivy, "ivy.resolved.configurations")); } | protected void prepareAndCheck() { Ivy ivy = getIvyInstance(); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); if (isInline()) { _conf = _conf == null ? "*" : _conf; if (_organisation == nu... |
getProject().setProperty("ivy.deps.changed", String.valueOf(report.hasChanged())); ivy.setVariable("ivy.deps.changed", String.valueOf(report.hasChanged())); | boolean hasChanged = report.hasChanged(); getProject().setProperty("ivy.deps.changed", String.valueOf(hasChanged)); ivy.setVariable("ivy.deps.changed", String.valueOf(hasChanged)); | public void execute() throws BuildException { Ivy ivy = getIvyInstance(); try { if (_file == null) { _file = new File(getProject().getBaseDir(), getProperty(ivy, "ivy.dep.file")); } _conf = getProperty(_conf, ivy, "ivy.configurations"); _revis... |
String defaultRorrestPropertiesStringURI = contextHome | String defaultForrestPropertiesStringURI = contextHome | public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti... |
defaultRorrestPropertiesStringURI); | defaultForrestPropertiesStringURI); | public void initialize() throws Exception { forrestHome = ForrestConfUtils.getForrestHome(); projectHome = ForrestConfUtils.getProjectHome(); contextHome = ForrestConfUtils.getContextHome(); filteringProperties = new AntProperties(); //add forrest.home and project.home to properti... |
} if (changeHappened) fireChange(); | public void putAll(Map map) { boolean changeHappened = false; for (Iterator entries = map.entrySet().iterator(); entries.hasNext(); ) { Map.Entry entry = (Map.Entry) entries.next(); Object key = entry.getKey(); if (isReadOnly(key)) continue; Object o = get(k... | |
if (changeHappened) fireChange(); } | public void putAll(Map map) { boolean changeHappened = false; for (Iterator entries = map.entrySet().iterator(); entries.hasNext(); ) { Map.Entry entry = (Map.Entry) entries.next(); Object key = entry.getKey(); if (isReadOnly(key)) continue; Object o = get(k... | |
return super.setProperty(key, newValue); } | return put(key, newValue); } | public Object setProperty(String key, String newValue) { // System.out.println("Setting property: " + key); // fireChange(); // change is fired in put if necessary return super.setProperty(key, newValue); } |
d2wcontext.setEntity(d2wcontext.entity()); d2wcontext.setTask(d2wcontext.task()); | public static D2WContext makeSubContextForDynamicPageNamed(String s, WOSession wosession) { D2WContext d2wcontext = ERD2WContext.newContext(wosession); d2wcontext.setDynamicPage(s); d2wcontext.takeValueForKey(D2WModel.One, "frame"); return d2wcontext; } | |
public static D2WContext newContext(WOSession session) { return _factory.newContext(session); | public static D2WContext newContext() { return _factory.newContext(); | public static D2WContext newContext(WOSession session) { return _factory.newContext(session); } |
public ContractBeanDOMImpl(ServiceManager manager, HashMap parameterHelper) | public ContractBeanDOMImpl(ServiceManager manager, HashMap parameterHelper,URIResolver uriResolver) | public ContractBeanDOMImpl(ServiceManager manager, HashMap parameterHelper) throws ParserConfigurationException { this.manager = manager; dispatcherHelper = new DispatcherHelper(manager); this.parameterHelper = parameterHelper; } |
m_uriResolver=uriResolver; | public ContractBeanDOMImpl(ServiceManager manager, HashMap parameterHelper) throws ParserConfigurationException { this.manager = manager; dispatcherHelper = new DispatcherHelper(manager); this.parameterHelper = parameterHelper; } | |
TransformerFactory tFactory = TransformerFactory | TransformerFactory transFact = TransformerFactory | private void contractImplHelper(Document _contractImpl) throws Exception, TransformerFactoryConfigurationError, TransformerConfigurationException, IllegalArgumentException { NodeList template = _contractImpl .getElementsByTagName(CONTRACT_IMPL_ROOT_ELEMENT); if (te... |
Transformer transformer = tFactory .newTransformer(stylesource); if (transformer == null) | stylesource.setSystemId(m_systemID); transFact.setURIResolver(m_uriResolver); Templates cachedXSLT = transFact.newTemplates(stylesource); if (cachedXSLT == null) | private void contractImplHelper(Document _contractImpl) throws Exception, TransformerFactoryConfigurationError, TransformerConfigurationException, IllegalArgumentException { NodeList template = _contractImpl .getElementsByTagName(CONTRACT_IMPL_ROOT_ELEMENT); if (te... |
Transformer transformer = cachedXSLT.newTransformer(); | private void contractImplHelper(Document _contractImpl) throws Exception, TransformerFactoryConfigurationError, TransformerConfigurationException, IllegalArgumentException { NodeList template = _contractImpl .getElementsByTagName(CONTRACT_IMPL_ROOT_ELEMENT); if (te... | |
m_systemID = contractUri; | public void setContractImpl(String contractUri) throws Exception { Document _contractImpl = dispatcherHelper.getDocument(contractUri); this.contractImpl = _contractImpl; contractImplHelper(this.contractImpl); } | |
public DispatcherException(String message) { super(message); | public DispatcherException() { super(); | public DispatcherException(String message) { super(message); } |
Message.warn("unknown configuration '"+conf+"' in "+node.getResolvedId()+": ignoring"); | Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); | private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("unknown configuration '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it wa... |
Message.warn("it was asked from "+node.getParent().getResolvedId()); | Message.warn("it was required from "+node.getParent().getResolvedId()); | private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("unknown configuration '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it wa... |
String[] parts = encoded.split(" "); | String[] parts = encoded.split(ENCODE_SEPARATOR); | public static ModuleId decode(String encoded) { String[] parts = encoded.split(" "); if (parts.length != 2) { throw new IllegalArgumentException("badly encoded module revision id: '"+encoded+"'"); } return new ModuleId(parts[0], parts[1]); } |
throw new IllegalArgumentException("badly encoded module revision id: '"+encoded+"'"); | throw new IllegalArgumentException("badly encoded module id: '"+encoded+"'"); | public static ModuleId decode(String encoded) { String[] parts = encoded.split(" "); if (parts.length != 2) { throw new IllegalArgumentException("badly encoded module revision id: '"+encoded+"'"); } return new ModuleId(parts[0], parts[1]); } |
return getOrganisation() + " "+getName(); | return getOrganisation() + ENCODE_SEPARATOR + getName(); | public String encodeToString() { return getOrganisation() + " "+getName(); } |
return new EvictionData(rootModuleConf, this, root.getConflictManager(getModuleId()), selectedNodes); | return new EvictionData(rootModuleConf, parent, root.getConflictManager(getModuleId()), selectedNodes); | public EvictionData getEvictionDataInRoot(String rootModuleConf, IvyNode parent) { IvyNode root = getRoot(parent); Collection selectedNodes = root.getResolvedNodes(getModuleId(), rootModuleConf); for (Iterator iter = selectedNodes.iterator(); iter.hasNext();) { IvyNode node = (IvyNod... |
if (_revision.equals(revision)) { return true; } if (_revision.startsWith("latest.")) { return true; } if (_revision.endsWith("+") && revision.startsWith(_revision.substring(0, _revision.length() - 1))) { return true; } return false; | return acceptRevision(_revision, revision); | public boolean acceptRevision(String revision) { if (_revision.equals(revision)) { return true; } if (_revision.startsWith("latest.")) { return true; } if (_revision.endsWith("+") && revision.startsWith(_revision.substring(0, _revision.length() - 1))) { ... |
int index = s.lastIndexOf(':'); | int index = s.lastIndexOf("), "); | public void setStatus(int newStatus) { if (newStatus < 0 || newStatus > STATUS_MAX) return; // invalid status // if there's an error, add the warning icon if (newStatus == STATUS_NOTIFY || newStatus == STATUS_STD_ERROR) { URL iconURL = getClass().getResource("Bang.gif"); if (iconURL != null) {... |
s = s.substring(0, index+1) + descriptions[status]; | s = s.substring(0, index+3) + descriptions[status]; | public void setStatus(int newStatus) { if (newStatus < 0 || newStatus > STATUS_MAX) return; // invalid status // if there's an error, add the warning icon if (newStatus == STATUS_NOTIFY || newStatus == STATUS_STD_ERROR) { URL iconURL = getClass().getResource("Bang.gif"); if (iconURL != null) {... |
String val = (String)getValue(parseArgs(dataType, tokens.sval)); System.out.println("Value: " + val); if(propData.getName().equals("HomeLocation")) { propData.setValue(parseHomeLocation(val)); } else { propData.setValue(val); } | propData.setValue(getValue(parseArgs(dataType, tokens.sval))); | protected int setPropertyForAsset(String prop, int newVal, StreamTokenizer tokens, AgentAssetData aad) throws IOException { String propertyName = prop.substring(1, prop.length()-1).trim(); if(log.isDebugEnabled()) { log.debug("Creating PropGroupData: " + propertyName)... |
new PopulateDb("CMT", "CSMART", "CSM", getExperimentName(), | new PopulateDb("CMT", "CSHNA", "CSMI", getExperimentName(), | public void saveToDb() { System.out.println("saveToDb"); try { List components = getComponents(); NodeComponent[] nodesToWrite = getNodes(); ComponentData theSoc = new GenericComponentData(); theSoc.setType(ComponentData.SOCIETY); theSoc.setName(getExperimentName()); // this should be e... |
public int read(byte[] b) throws IOException | public int read() throws IOException | public int read(byte[] b) throws IOException { return fd.read(b, 0, b.length); } |
return fd.read(b, 0, b.length); | return fd.read(); | public int read(byte[] b) throws IOException { return fd.read(b, 0, b.length); } |
if (retainDefaultsEnabled() && propertyValue == null) { setArrayForKey(array == null ? NSArray.EmptyArray : array, propertyName); | if (retainDefaultsEnabled() && propertyValue == null && array != null) { setArrayForKey(array, propertyName); | public static NSArray arrayForKeyWithDefault(final String s, final NSArray defaultValue) { final String propertyName = getApplicationSpecificPropertyName(s); Object value = _cache.get(propertyName); if (value == UndefinedMarker) { return defaultValue; } if (value instan... |
if (properties == null) init_properties (); | public static String setProperty (String key, String value) { if (secman != null) secman.checkPermission (new PropertyPermission (key, "write")); return (String) properties.setProperty (key, value); } | |
src.put (toPut); | put (toPut); | public ByteBuffer put (ByteBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining()); if (src.remaining () > 0) { byte[] toPut = new byte [src.remaining ()]; src.get (toPut); src.put (toPut); } return this; } |
if (mark > 0) | if (mark >= 0) | Buffer (int capacity, int limit, int position, int mark) { if (capacity < 0) throw new IllegalArgumentException (); cap = capacity; limit (limit); position (position); if (mark > 0) { if (mark > pos) throw new IllegalArgumentException (); this.mark = mark; } ... |
return new DirectByteBufferImpl(VMDirectByteBuffer.allocate(capacity), capacity); | return new DirectByteBufferImpl.ReadWrite(capacity); | public static ByteBuffer allocate(int capacity) { return new DirectByteBufferImpl(VMDirectByteBuffer.allocate(capacity), capacity); } |
String query; | query = null; | private void addAgents(Experiment experiment, ArrayList nodes, AgentComponent[] agents, String trialId, String assemblyMatch) { Iterator iter = nodes.iterator(); try { Connection conn = DBUtils.getConnection(); Map substitutions =... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception getting agents " + query + ": " + se); | private void addAgents(Experiment experiment, ArrayList nodes, AgentComponent[] agents, String trialId, String assemblyMatch) { Iterator iter = nodes.iterator(); try { Connection conn = DBUtils.getConnection(); Map substitutions =... |
String query = DBUtils.getQuery("queryRecipes", substitutions); | query = DBUtils.getQuery("queryRecipes", substitutions); | private List checkForRecipes(String trialId, String exptId) { List recipeList = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":trial_id", trialId); substitutions.put(":expt_id", exptId); Statement stmt = conn.crea... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception getting recipes " + query + ": " + se); | private List checkForRecipes(String trialId, String exptId) { List recipeList = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":trial_id", trialId); substitutions.put(":expt_id", exptId); Statement stmt = conn.crea... |
if (assemblyIDs.size() < 1) { System.out.println("Got no assemblies!"); assemblyMatch.append("''"); } | private String getAssemblyMatch(ArrayList assemblyIDs) { StringBuffer assemblyMatch = new StringBuffer(); assemblyMatch.append("in ("); Iterator iter = assemblyIDs.iterator(); boolean first = true; while (iter.hasNext()) { String val = (String)iter.next(); if (first) { first = false; ... | |
String query = DBUtils.getQuery("queryRecipe", substitutions); | query = DBUtils.getQuery("queryRecipe", substitutions); | private DbRecipe getDatabaseRecipe(String recipeId) { try { Connection conn = DBUtils.getConnection(); try { Map substitutions = new HashMap(); substitutions.put(":recipe_id", recipeId); Statement stmt = conn.createStatement(); String query = DBUtils.getQuery("queryRecipe", su... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception gettin DBRecipe " + query + ": " + se); | private DbRecipe getDatabaseRecipe(String recipeId) { try { Connection conn = DBUtils.getConnection(); try { Map substitutions = new HashMap(); substitutions.put(":recipe_id", recipeId); Statement stmt = conn.createStatement(); String query = DBUtils.getQuery("queryRecipe", su... |
String query = DBUtils.getQuery(EXPT_HOST_QUERY, substitutions); | query = DBUtils.getQuery(EXPT_HOST_QUERY, substitutions); | private ArrayList getHosts(String trialId, String assemblyMatch) { ArrayList hosts = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch", assemblyMatch); Statement stmt = conn.createStatement(); String q... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception getting hosts: " + query + ": " + se); | private ArrayList getHosts(String trialId, String assemblyMatch) { ArrayList hosts = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch", assemblyMatch); Statement stmt = conn.createStatement(); String q... |
String query = DBUtils.getQuery(EXPT_NODE_QUERY, substitutions); | query = DBUtils.getQuery(EXPT_NODE_QUERY, substitutions); | private ArrayList getNodes(String trialId, String assemblyMatch) { ArrayList nodes = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":trial_id", trialId); substitutions.put(":assemblyMatch", assemblyMatch); Statemen... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception getting Nodes " + query + ": " + se); | private ArrayList getNodes(String trialId, String assemblyMatch) { ArrayList nodes = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":trial_id", trialId); substitutions.put(":assemblyMatch", assemblyMatch); Statemen... |
String query = null; | private Map getRecipeNamesFromDatabase() { Map recipes = new TreeMap(); try { Connection conn = DBUtils.getConnection(); Statement stmt = conn.createStatement(); Map substitutions = new HashMap(); String query = DBUtils.getQuery("queryLibRecipes", substitutions); ResultSet rs = stmt.exe... | |
String query = DBUtils.getQuery("queryLibRecipes", substitutions); | query = DBUtils.getQuery("queryLibRecipes", substitutions); | private Map getRecipeNamesFromDatabase() { Map recipes = new TreeMap(); try { Connection conn = DBUtils.getConnection(); Statement stmt = conn.createStatement(); Map substitutions = new HashMap(); String query = DBUtils.getQuery("queryLibRecipes", substitutions); ResultSet rs = stmt.exe... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception getting recipe names " + query + ": " + se); | private Map getRecipeNamesFromDatabase() { Map recipes = new TreeMap(); try { Connection conn = DBUtils.getConnection(); Statement stmt = conn.createStatement(); Map substitutions = new HashMap(); String query = DBUtils.getQuery("queryLibRecipes", substitutions); ResultSet rs = stmt.exe... |
String query = DBUtils.getQuery(EXPT_ASSEM_QUERY, substitutions); | query = DBUtils.getQuery(EXPT_ASSEM_QUERY, substitutions); | private ArrayList getTrialAssemblyIds(String experimentId, String trialId) { ArrayList assemblyIds = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":expt_id", experimentId); substitutions.put(":trial_id", trialId); ... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception getting Trial pieces: " + query + ": " + se); | private ArrayList getTrialAssemblyIds(String experimentId, String trialId) { ArrayList assemblyIds = new ArrayList(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":expt_id", experimentId); substitutions.put(":trial_id", trialId); ... |
String query = null; | private void mapNodesToHosts(Experiment experiment, String assemblyMatch ) { NodeComponent[] nodeComponents = experiment.getNodes(); HostComponent[] hostComponents = experiment.getHosts(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutio... | |
String query = DBUtils.getQuery("queryHostNodes", substitutions); | query = DBUtils.getQuery("queryHostNodes", substitutions); | private void mapNodesToHosts(Experiment experiment, String assemblyMatch ) { NodeComponent[] nodeComponents = experiment.getNodes(); HostComponent[] hostComponents = experiment.getHosts(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutio... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception getting HN map " + query + ": " + se); | private void mapNodesToHosts(Experiment experiment, String assemblyMatch ) { NodeComponent[] nodeComponents = experiment.getNodes(); HostComponent[] hostComponents = experiment.getHosts(); try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutio... |
String query = DBUtils.getQuery(COMPONENT_ARGS_QUERY, substitutions); | query = DBUtils.getQuery(COMPONENT_ARGS_QUERY, substitutions); | private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception gettin compArgs " + query + ": " + se); | private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... |
System.err.println("Caught SQL exception: " + se); | System.err.println("Caught SQL exception setting NodeArgs: " + se); | private void setDefaultNodeArguments(Experiment experiment, String assemblyMatch, String socAlibId) { Properties props = experiment.getDefaultNodeArguments(); try { Connection conn = DBUtils.getConnection(); try { Stat... |
log = CSMART.createLogger("org.cougaar.tools.csmart.ui.monitor.generic"); | createLogger(); | public BirdFrame(String title, Graph graph, CSMARTFrame frame) { super(title); log = CSMART.createLogger("org.cougaar.tools.csmart.ui.monitor.generic"); // if user closes window, this hides the window, so we can re-use it addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e... |
Map.Entry existingPageRecordEntry = null; | boolean increasingCacheSize = true; | public void savePage(WOComponent page) { WOContext context = context(); WOResponse response = context.response(); if (response != null && (response.headerForKey(ERXSession.DONT_STORE_PAGE) != null || (response.userInfo() != null && response.userInfo().objectForKey(ERXSession.DONT_STORE_PAGE) != null)... |
while (existingPageRecordEntry == null && transactionRecordsEnum.hasNext()) { | while (transactionRecordsEnum.hasNext()) { | public void savePage(WOComponent page) { WOContext context = context(); WOResponse response = context.response(); if (response != null && (response.headerForKey(ERXSession.DONT_STORE_PAGE) != null || (response.userInfo() != null && response.userInfo().objectForKey(ERXSession.DONT_STORE_PAGE) != null)... |
TransactionRecord tempPageRecord = (TransactionRecord)pageRecordEntry.getValue(); String transactionRecordKey = tempPageRecord.key(); if (pageCacheKey.equals(transactionRecordKey)) { existingPageRecordEntry = pageRecordEntry; | TransactionRecord tempPageRecord = (TransactionRecord)pageRecordEntry.getValue(); WOComponent tempPage = tempPageRecord.page(); WOContext tempContext = tempPageRecord.context(); if (tempPage == null || tempContext == null) { | public void savePage(WOComponent page) { WOContext context = context(); WOResponse response = context.response(); if (response != null && (response.headerForKey(ERXSession.DONT_STORE_PAGE) != null || (response.userInfo() != null && response.userInfo().objectForKey(ERXSession.DONT_STORE_PAGE) != null)... |
if (existingPageRecordEntry == null && pageReplacementCache.size() >= ERXSession.MAX_PAGE_REPLACEMENT_CACHE_SIZE) { | if (increasingCacheSize && pageReplacementCache.size() >= ERXSession.MAX_PAGE_REPLACEMENT_CACHE_SIZE * 2) { | public void savePage(WOComponent page) { WOContext context = context(); WOResponse response = context.response(); if (response != null && (response.headerForKey(ERXSession.DONT_STORE_PAGE) != null || (response.userInfo() != null && response.userInfo().objectForKey(ERXSession.DONT_STORE_PAGE) != null)... |
if(log.isDebugEnabled()) { | if(log.isErrorEnabled()) { | public ComponentData modifyComponentData(ComponentData data) { numAgs2 = 0; // Gets counted as metrics plugins are inserted ComponentData picd = addMetricsComponentData(data); // OK, now set numAgs2 val in the numProviders slot // First, find the MetricsInitializer Plugin if (picd == nul... |
check.key = (size == 2) ? ~var : var; Integer value = (Integer)state.locals.get(check); | Integer value = remapHelper(var, (size == 0) ? 1 : size); | private int remap(int var, int size) { if (var < state.firstLocal) { return var; } check.key = (size == 2) ? ~var : var; Integer value = (Integer)state.locals.get(check); if (value == null) { IntRef ref = new IntRef(); ref.key = check.key; ... |
IntRef ref = new IntRef(); ref.key = check.key; state.locals.put(ref, value = new Integer(nextLocal(size))); | if (size == 0) { value = remapHelper(var, 2); if (value == null) { throw new IllegalStateException("Unknown local variable " + var); } } else { IntRef ref = new IntRef(); ref.key = getKey(var, size); state.locals.put(ref, value = new Integer(nextLocal(size))); } | private int remap(int var, int size) { if (var < state.firstLocal) { return var; } check.key = (size == 2) ? ~var : var; Integer value = (Integer)state.locals.get(check); if (value == null) { IntRef ref = new IntRef(); ref.key = check.key; ... |
href = context.componentActionURL(); | href = AjaxUtils.ajaxComponentActionUrl(context); | public void appendToResponse(WOResponse response, WOContext context) { WOComponent component = context.component(); String divID=AjaxUtils.toSafeElementID(context.elementID()); response.appendContentString("<a "); String href = (String) valueForBinding("href", component); if(href ... |
protected void addScriptResourceInHead(WOContext context, WOResponse response, String fileName) { AjaxUtils.addScriptResourceInHead(context, response, fileName); | protected void addScriptResourceInHead(WOContext context, WOResponse response, String framework, String fileName) { AjaxUtils.addScriptResourceInHead(context, response, framework, fileName); | protected void addScriptResourceInHead(WOContext context, WOResponse response, String fileName) { AjaxUtils.addScriptResourceInHead(context, response, fileName); } |
public Object valueForBinding(String name, WOComponent component) { return AjaxUtils.valueForBinding(name, _associations, component); | public Object valueForBinding(String name, Object defaultValue, WOComponent component) { return AjaxUtils.valueForBinding(name, defaultValue, _associations, component); | public Object valueForBinding(String name, WOComponent component) { return AjaxUtils.valueForBinding(name, _associations, component); } |
if (result == context.page()) { log.warn("An Ajax request attempted to return the page, which is almost certainly an error."); result = null; } | public WOActionResults invokeAction(WORequest request, WOContext context) { Object result = null; if (AjaxUtils.shouldHandleRequest(request, context, _containerID(context))) { WOComponent component = context.component(); String elementID = context.elementID(); AjaxResponse response = AjaxUtils.createResponse(r... | |
if(array.count() == 0) { return array; } EOEnterpriseObject eo = (EOEnterpriseObject)array.objectAtIndex(0); return filteredArrayWithEntityFetchSpecification(array, eo.entityName(), keypath, null); } | synchronized(array) { if(array.count() == 0) { return array; } EOEnterpriseObject eo = (EOEnterpriseObject)array.objectAtIndex(0); return filteredArrayWithFetchSpecificationNamedEntityNamed(array, keypath, eo.entityName()); } } | public Object compute(NSArray array, String keypath) { if(array.count() == 0) { return array; } EOEnterpriseObject eo = (EOEnterpriseObject)array.objectAtIndex(0); return filteredArrayWithEntityFetchSpecification(array, eo.entityName(), keypath, null); ... |
if (array.count() < 2) return array; return sortedArraySortedWithKey(array, keypath, selector); | synchronized (array) { if (array.count() < 2) return array; return sortedArraySortedWithKey(array, keypath, selector); } | public Object compute(NSArray array, String keypath) { if (array.count() < 2) return array; return sortedArraySortedWithKey(array, keypath, selector); } |
return arrayWithoutDuplicates(array); | synchronized (array) { return arrayWithoutDuplicates(array); } | public Object compute(NSArray array, String keypath) { return arrayWithoutDuplicates(array); } |
} else if (array == null || array.count() == 0) { return false; | public static boolean arrayContainsArray(NSArray array, NSArray objects) { boolean arrayContainsAllObjects = true; if (array != null && objects != null && array.count() > 0 && objects.count() > 0) { for (Enumeration e = objects.objectEnumerator(); e.hasMoreElements();) { if (... | |
NSArray.setOperatorForKey("isEmpty", new IsEmptyOperator()); NSArray.setOperatorForKey("subarrayWithRange", new SubarrayWithRangeOperator()); | public static void initialize() { NSArray.setOperatorForKey("sort", new SortOperator(EOSortOrdering.CompareAscending)); NSArray.setOperatorForKey("sortAsc", new SortOperator(EOSortOrdering.CompareAscending)); NSArray.setOperatorForKey("sortDesc", new SortOperator(EOSortOrdering.CompareDescendin... | |
societyCopy.initProperties(); | for(int i=0; i < this.getChildCount(); i++) { societyCopy.addChild(this.getChild(i)); } | public ModifiableComponent copy(String name) { ModifiableComponent societyCopy = new SocietyFileComponent(name, filenames); societyCopy.initProperties(); return societyCopy; } |
if (filenames == null) initFromSingleFile(); else initFromMultiFiles(); | if(!filesParsed) { filesParsed = true; initFromFiles(); } | public void initProperties() { if (filenames == null) initFromSingleFile(); else initFromMultiFiles(); } |
this.description = ""; | public ProcessTag() { this.description = ""; } | |
checkAttribute( "name", this.name ); | checkStringAttribute( "name", getName() ); | public void doTag(XMLOutput output) throws Exception { checkAttribute( "name", this.name ); checkAttribute( "start", this.start ); this.process = new Process( this.name, this.description ); invokeBody( ou... |
checkAttribute( "start", this.start ); | checkStringAttribute( "start", getStart() ); | public void doTag(XMLOutput output) throws Exception { checkAttribute( "name", this.name ); checkAttribute( "start", this.start ); this.process = new Process( this.name, this.description ); invokeBody( ou... |
this.process = new Process( this.name, this.description ); | this.process = new Process( getName(), "" ); | public void doTag(XMLOutput output) throws Exception { checkAttribute( "name", this.name ); checkAttribute( "start", this.start ); this.process = new Process( this.name, this.description ); invokeBody( ou... |
State startState = this.process.getState( this.start ); | State startState = this.process.getState( getStart() ); | public void doTag(XMLOutput output) throws Exception { checkAttribute( "name", this.name ); checkAttribute( "start", this.start ); this.process = new Process( this.name, this.description ); invokeBody( ou... |
throw new JellyException( "Start state \"" + this.start + "\" not found." ); | throw new JellyException( "Start state \"" + getStart() + "\" not found." ); | public void doTag(XMLOutput output) throws Exception { checkAttribute( "name", this.name ); checkAttribute( "start", this.start ); this.process = new Process( this.name, this.description ); invokeBody( ou... |
exit(); | if(!ExperimentBuilder.this.getGlassPane().isVisible()) { exit(); } | public ExperimentBuilder(CSMART csmart, Experiment experiment) { this.csmart = csmart; createLogger(); setExperiment(experiment); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); JMenu fileMenu = new JMenu(FILE_MENU); fileMenu.setToolTipText("Configure hosts and nodes, save,... |
exit(); | if(!ExperimentBuilder.this.getGlassPane().isVisible()) { exit(); } | public void windowClosing(WindowEvent e) { exit(); } |
GUIUtils.timeConsumingTaskStart(csmart); | private void saveHelper(boolean force) { if (force || experiment.isModified()) { final Component c = this; GUIUtils.timeConsumingTaskStart(c); GUIUtils.timeConsumingTaskStart(csmart); try { new Thread("Save") { public void run() { experiment.saveToDb(saveToDbConflictHandler); GUIUtils... | |
GUIUtils.timeConsumingTaskEnd(csmart); | private void saveHelper(boolean force) { if (force || experiment.isModified()) { final Component c = this; GUIUtils.timeConsumingTaskStart(c); GUIUtils.timeConsumingTaskStart(csmart); try { new Thread("Save") { public void run() { experiment.saveToDb(saveToDbConflictHandler); GUIUtils... | |
GUIUtils.timeConsumingTaskEnd(csmart); | public void run() { experiment.saveToDb(saveToDbConflictHandler); GUIUtils.timeConsumingTaskEnd(c); GUIUtils.timeConsumingTaskEnd(csmart); } | |
src.put (toPut); | put (toPut); | public LongBuffer put (LongBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining ()); if (src.remaining () > 0) { long[] toPut = new long [src.remaining ()]; src.get (toPut); src.put (toPut); } return this; } |
SendFailedException sfex = (SendFailedException)e; NSArray invalidEmails = ERMailUtils.convertInternetAddressesToNSArray (sfex.getInvalidAddresses ()); this.notifyInvalidEmails (invalidEmails); | if (callbackObject != null) { SendFailedException sfex = (SendFailedException)e; NSArray invalidEmails = ERMailUtils.convertInternetAddressesToNSArray (sfex.getInvalidAddresses ()); this.notifyInvalidEmails (callbackObject, invalidEmails); } | protected void _sendMessageNow (ERMessage message, Transport transport) throws MessagingException { boolean debug = log.isDebugEnabled (); MimeMessage aMessage = message.mimeMessage (); MessagingException exception = null; if (message.shouldSendMessage()) { // Send the messag... |
throw new NSForwardException(t); | protected void _sendMessageNow (ERMessage message, Transport transport) throws MessagingException { boolean debug = log.isDebugEnabled (); MimeMessage aMessage = message.mimeMessage (); MessagingException exception = null; if (message.shouldSendMessage()) { // Send the messag... | |
protected void notifyInvalidEmails (Object callbackObject, NSArray invalidAddresses) { notifyInvalidEmails( invalidAddresses ); } | protected void notifyInvalidEmails (Object callbackObject, NSArray invalidEmails) { try { Class c = Class.forName (ERMailDelivery.callBackClassName); Class[] parameterTypes = new Class[] {callbackObject.getClass(), NSArray.class}; Method m = c.getMethod (ERMailDelivery.callBackMethodName, parameterTypes); Object[] arg... | protected void notifyInvalidEmails (Object callbackObject, NSArray invalidAddresses) { notifyInvalidEmails( invalidAddresses );} |
public ERXUnitAwareDecimalFormat(String unitName) { | public ERXUnitAwareDecimalFormat() { | public ERXUnitAwareDecimalFormat(String unitName) { super(); this.unitPrefixArray = UnitPrefix.unitPrefixArrayForUnit(unitName); } |
this.unitPrefixArray = UnitPrefix.unitPrefixArrayForUnit(unitName); | this.unitPrefixArray = NSArray.EmptyArray; | public ERXUnitAwareDecimalFormat(String unitName) { super(); this.unitPrefixArray = UnitPrefix.unitPrefixArrayForUnit(unitName); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.