rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (properties.getProperty(Experiment.PERSIST_CLEAR) == null) { properties.setProperty(Experiment.PERSIST_CLEAR, "true"); } | private void prepareToCreateNodes() { 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+... | |
string_switch(keys, switchStyle, new StringSwitchCallback() { public void processCase(String key, Label end) { push((int)key.charAt(key.length() - 1)); | string_switch(keys, switchStyle, new ObjectSwitchCallback() { public void processCase(Object key, Label end) { String string = (String)key; push((int)string.charAt(string.length() - 1)); | protected void generate() throws Exception { null_constructor(); Method method = Indexed.class.getMethod("getIndex", new Class[]{ String.class }); begin_method(method); load_arg(0); string_switch(keys, switchStyle, new StringSwitchCallback() { ... |
public void processCase(String key, Label end) { push((int)key.charAt(key.length() - 1)); | public void processCase(Object key, Label end) { String string = (String)key; push((int)string.charAt(string.length() - 1)); | public void processCase(String key, Label end) { push((int)key.charAt(key.length() - 1)); goTo(end); } |
throws java.io.IOException; | throws IOException; | protected abstract URLConnection openConnection(URL u) throws java.io.IOException; |
public boolean sameFile(URL url1, URL url2) | protected boolean sameFile(URL url1, URL url2) | public boolean sameFile(URL url1, URL url2) { if (url1 == url2) return true; // This comparison is very conservative. It assumes that any // field can be null. if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) return false; String s1, s2; s1 = url1.getProtocol(); s... |
log = CSMART.createLogger(this.getClass().getName()); | protected ModifiableConfigurableComponent(String name) { super(name); } | |
e.printStackTrace(); | if(log.isErrorEnabled()) { log.error("Exception", e); } | public ModifiableComponent copy(String name) { Class cls = this.getClass(); try { Constructor constructor = cls.getConstructor(constructorArgTypes); ModifiableComponent component = (ModifiableComponent) constructor.newInstance(new String[] {name}); component.initProperties(); return compone... |
public long getDuration(); | long getDuration(); | public long getDuration(); |
public double getIntensity(); | double getIntensity(); | public double getIntensity(); |
public ClusterIdentifier getTarget(); | ClusterIdentifier getTarget(); | public ClusterIdentifier getTarget(); |
CallbackFilter filter = new CallbackFilter() { public int accept(Member member) { return Callbacks.NO_OP; } }; Object obj = Enhancer.enhance(Foo.class, null, null, null, null, filter); | Object obj = Enhancer.enhance(Foo.class, null, null, null, null, new SimpleFilter(Callbacks.NO_OP)); | public void testNoOp() { CallbackFilter filter = new CallbackFilter() { public int accept(Member member) { return Callbacks.NO_OP; } }; Object obj = Enhancer.enhance(Foo.class, null, null, null, null, filter); assertTrue("foo".equals(o... |
if (! (endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException ("Address type not supported"); | public void connect (SocketAddress endpoint) throws IOException { impl.connect (endpoint, 0); } | |
init(); | beforeExecute(); | public void execute() throws BuildException { init(); for (Iterator it = getFiles().iterator(); it.hasNext();) { try { processFile((File)it.next()); } catch (Exception e) { throw new BuildException(e); } } } |
((DefaultModuleDescriptor)md).setModuleRevisionId(ModuleRevisionId.newInstance(mrid.getOrganisation(), mrid.getName(), ivyRef.getRevision(), mrid.getExtraAttributes())); | String revision = getRevision(ivyRef, mrid, md); ((DefaultModuleDescriptor)md).setModuleRevisionId(ModuleRevisionId.newInstance(mrid.getOrganisation(), mrid.getName(), revision, mrid.getExtraAttributes())); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; ModuleRevisionId mrid = ... |
resolvedMrid = new ModuleRevisionId(resolvedMrid.getModuleId(), (_envDependent?"##":"")+DATE_FORMAT.format(data.getDate())+"@"+_workspaceName); | resolvedMrid = new ModuleRevisionId(resolvedMrid.getModuleId(), "working@"+getName()); | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; ModuleRevisionId mrid = ... |
lo = med3(lo, lo + s, lo + s + s, array); | lo = med3(lo, lo + s, lo + 2 * s, array); | private static void qsort(byte[] array, int from, int count) { // Use an insertion sort on small arrays. if (count <= 7) { for (int i = from + 1; i < from + count; i++) for (int j = i; j > 0 && array[j - 1] > array[j]; j--) swap(j, j - 1, array); return; } // Dete... |
hi = med3(hi - s - s, hi - s, hi, array); | hi = med3(hi - 2 * s, hi - s, hi, array); | private static void qsort(byte[] array, int from, int count) { // Use an insertion sort on small arrays. if (count <= 7) { for (int i = from + 1; i < from + count; i++) for (int j = i; j > 0 && array[j - 1] > array[j]; j--) swap(j, j - 1, array); return; } // Dete... |
a = b = from + 1; c = d = hi; | a = b = from; c = d = from + count - 1; | private static void qsort(byte[] array, int from, int count) { // Use an insertion sort on small arrays. if (count <= 7) { for (int i = from + 1; i < from + count; i++) for (int j = i; j > 0 && array[j - 1] > array[j]; j--) swap(j, j - 1, array); return; } // Dete... |
vecswap(b, hi - span + 1, span, array); | vecswap(b, hi - span, span, array); | private static void qsort(byte[] array, int from, int count) { // Use an insertion sort on small arrays. if (count <= 7) { for (int i = from + 1; i < from + count; i++) for (int j = i; j > 0 && array[j - 1] > array[j]; j--) swap(j, j - 1, array); return; } // Dete... |
qsort(array, hi - span + 1, span); | qsort(array, hi - span, span); | private static void qsort(byte[] array, int from, int count) { // Use an insertion sort on small arrays. if (count <= 7) { for (int i = from + 1; i < from + count; i++) for (int j = i; j > 0 && array[j - 1] > array[j]; j--) swap(j, j - 1, array); return; } // Dete... |
if (x == 0.0 && y == -0.0) return 1; if (x == -0.0 && y == 0.0) return -1; | if (x == 0 && y == 0) return (int) (1 / x - 1 / y); | public static int compare (float x, float y) { if (isNaN (x)) return isNaN (y) ? 0 : 1; if (isNaN (y)) return -1; if (x == 0.0 && y == -0.0) return 1; if (x == -0.0 && y == 0.0) return -1; if (x == y) return 0; return x > y ? 1 : -1; } |
if (x == 0.0d && y == -0.0d) return 1; if (x == -0.0d && y == 0.0d) return -1; | if (x == 0 && y == 0) return (int) (1 / x - 1 / y); | public static int compare (double x, double y) { if (isNaN (x)) return isNaN (y) ? 0 : 1; if (isNaN (y)) return -1; if (x == 0.0d && y == -0.0d) return 1; if (x == -0.0d && y == 0.0d) return -1; if (x == y) return 0; return x > y ? 1 : -1; } |
return ERXExtensions.replaceStringByStringInString("*", "[*]", fix); | return ERXStringUtilities.replaceStringByStringInString("*", "[*]", fix); | public String fixString(Object o) { String fix = "'" + o + "'"; return ERXExtensions.replaceStringByStringInString("*", "[*]", fix); } |
put ((byte) ((((int) value) & 0xff00000000000000) >> 56)); put ((byte) ((((int) value) & 0x00ff000000000000) >> 48)); put ((byte) ((((int) value) & 0x0000ff0000000000) >> 40)); put ((byte) ((((int) value) & 0x000000ff00000000) >> 32)); put ((byte) ((((int) value) & 0x00000000ff000000) >> 24)); put ((byte) ((((int) valu... | put ((byte) ((((long) value) & 0xff00000000000000L) >> 56)); put ((byte) ((((long) value) & 0x00ff000000000000L) >> 48)); put ((byte) ((((long) value) & 0x0000ff0000000000L) >> 40)); put ((byte) ((((long) value) & 0x000000ff00000000L) >> 32)); put ((byte) ((((long) value) & 0x00000000ff000000L) >> 24)); put ((byte) (((... | final public ByteBuffer putDouble (double value) { // FIXME: this handles big endian only put ((byte) ((((int) value) & 0xff00000000000000) >> 56)); put ((byte) ((((int) value) & 0x00ff000000000000) >> 48)); put ((byte) ((((int) value) & 0x0000ff0000000000) >> 40)); put ((byte) ((((int) value) & 0x000... |
put ((byte) ((((int) value) & 0xff00000000000000) >> 56)); put ((byte) ((((int) value) & 0x00ff000000000000) >> 48)); put ((byte) ((((int) value) & 0x0000ff0000000000) >> 40)); put ((byte) ((((int) value) & 0x000000ff00000000) >> 32)); put ((byte) ((((int) value) & 0x00000000ff000000) >> 24)); put ((byte) ((((int) valu... | put ((byte) ((value & 0xff00000000000000L) >> 56)); put ((byte) ((value & 0x00ff000000000000L) >> 48)); put ((byte) ((value & 0x0000ff0000000000L) >> 40)); put ((byte) ((value & 0x000000ff00000000L) >> 32)); put ((byte) ((value & 0x00000000ff000000L) >> 24)); put ((byte) ((value & 0x0000000000ff0000L) >> 16)); put ((by... | final public ByteBuffer putLong (long value) { // FIXME: this handles big endian only put ((byte) ((((int) value) & 0xff00000000000000) >> 56)); put ((byte) ((((int) value) & 0x00ff000000000000) >> 48)); put ((byte) ((((int) value) & 0x0000ff0000000000) >> 40)); put ((byte) ((((int) value) & 0x000000f... |
public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) | public CharViewBufferImpl (ByteBuffer bb, boolean readOnly) | public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Char... |
super (limit, limit, offset, position); | super (bb.remaining () >> 1, bb.remaining () >> 1, bb.position (), 0); | public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Char... |
public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) | public DoubleViewBufferImpl (ByteBuffer bb, boolean readOnly) | public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Do... |
super (limit, limit, offset, position); | super (bb.remaining () >> 3, bb.remaining () >> 3, bb.position (), 0); | public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Do... |
public FloatViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) | public FloatViewBufferImpl (ByteBuffer bb, boolean readOnly) | public FloatViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Flo... |
super (limit, limit, offset, position); | super (bb.remaining () >> 2, bb.remaining () >> 2, bb.position (), 0); | public FloatViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Flo... |
public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) | public IntViewBufferImpl (ByteBuffer bb, boolean readOnly) | public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from IntVi... |
super (limit, limit, offset, position); | super (bb.remaining () >> 2, bb.remaining () >> 2, bb.position (), 0); | public IntViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from IntVi... |
public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) | public LongViewBufferImpl (ByteBuffer bb, boolean readOnly) | public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Long... |
super (limit, limit, offset, position); | super (bb.remaining () >> 3, bb.remaining () >> 3, bb.position (), 0); | public LongViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from Long... |
NSSet result = ERXUtilities.setFromArray(main); return result.setBySubtractingSet(ERXUtilities.setFromArray(minus)).allObjects(); | NSSet result = ERXArrayUtilities.setFromArray(main); return result.setBySubtractingSet(ERXArrayUtilities.setFromArray(minus)).allObjects(); | public static NSArray arrayMinusArray(NSArray main, NSArray minus){ NSSet result = ERXUtilities.setFromArray(main); return result.setBySubtractingSet(ERXUtilities.setFromArray(minus)).allObjects(); } |
String actionUrl = context.componentActionURL(); | String actionUrl = AjaxUtils.ajaxComponentActionUrl(context); | public void appendToResponse(WOResponse response, WOContext context) { WOComponent component = context.component(); String id; if (_idAssociation == null) { id = AjaxUtils.toSafeElementID(context.elementID()); } else { id = (String) _idAssociation.valueInComponent(component); } String e... |
public static void addScriptResourceInHead(WOContext context, WOResponse response, String fileName) { addScriptResourceInHead(context, response, "Ajax", fileName); | public static void addScriptResourceInHead(WOContext context, WOResponse response, String framework, String fileName) { String startTag = "<script type=\"text/javascript\" src=\""; String endTag = "\"></script>"; addResourceInHead(context, response, framework, fileName, startTag, endTag); | public static void addScriptResourceInHead(WOContext context, WOResponse response, String fileName) { addScriptResourceInHead(context, response, "Ajax", fileName); } |
this.processes = new HashMap(); | public BlissedTag() { this.processes = new HashMap(); } | |
return name; | return getShortName(); | public String getImpactName() { return name; } |
setConfigComponent(mc); | configComponent = mc; | public PropertyBuilder(CSMART csmart, ModifiableComponent mc, ModifiableComponent originalComponent, Experiment experiment) { log = CSMART.createLogger(this.getClass().getName()); this.csmart = csmart; this.originalComponent = originalComponent; this.experi... |
if (isModified()) { | if (isModified() || componentWasSaved) { | private void exit() { propertyEditor.stopEditing(); // accept any edit in progress propertyEditor.exit(); if (isModified()) { if (experiment != null) { if (configComponent instanceof SocietyComponent) { SocietyComponent society = (SocietyComponent)configComponent; experiment.rem... |
} | private void exit() { propertyEditor.stopEditing(); // accept any edit in progress propertyEditor.exit(); if (isModified()) { if (experiment != null) { if (configComponent instanceof SocietyComponent) { SocietyComponent society = (SocietyComponent)configComponent; experiment.rem... | |
componentWasSaved = true; | private void save() { if (!isModified()) { String[] msg = { "No modifications were made.", "Do you want to save anyway?" }; int answer = JOptionPane.showConfirmDialog(this, msg, "No Modifications", JOption... | |
manifest = getManifest(); | manifest = jarfile.getManifest(); | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getN... |
synchronized(jarfile) { if (!jarfile.signaturesRead) try { jarfile.readSignatures(); } catch (IOException ioe) { if (JarFile.DEBUG) { JarFile.debug(ioe); ioe.printStackTrace(); } jarfile.signaturesRead = true; } if (jarfile.entryCerts != null && jarfile.verified.get(zip.getName()) == Boolean.TRUE) { Set certs = (Se... | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(jar.getN... | |
public ZipEntry getEntry(String name) | public synchronized ZipEntry getEntry(String name) | public ZipEntry getEntry(String name) { ZipEntry entry = super.getEntry(name); if (entry != null) { JarEntry jarEntry = new JarEntry(entry); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jarEntry.attr = manif... |
} if (!signaturesRead) try { readSignatures(); } catch (IOException ioe) { if (DEBUG) { debug(ioe); ioe.printStackTrace(); } signaturesRead = true; } if (DEBUG) debug("entryCerts=" + entryCerts + " verified " + name + " ? " + verified.get(name)); if (entryCerts != null && verified.get(name) == Boolean.TRUE) { Set ce... | public ZipEntry getEntry(String name) { ZipEntry entry = super.getEntry(name); if (entry != null) { JarEntry jarEntry = new JarEntry(entry); Manifest manifest; try { manifest = getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jarEntry.attr = manif... | |
+ "; destination=" + getDestination() | + "; destination=" + getDestination().getName() | public String toString() { return "[Transition: origin=" + getOrigin() + "; destination=" + getDestination() + "; guard=" + getGuard() + "; description=" + getDescription() + "]"; } |
createLogger(); | public BinderBase (String name){ super(name); } | |
if(log.isErrorEnabled()) { log.error("not supported yet"); | if (data.getType() != ComponentData.AGENT && data.getType() != ComponentData.NODE) { if (log.isErrorEnabled()) { log.error("Asked to add to non Agent/Node: " + data); } return data; | public ComponentData addComponentData(ComponentData data) { if(log.isErrorEnabled()) { log.error("not supported yet"); } return data; } |
ComponentData self = new GenericComponentData(); if (data.getType() == ComponentData.AGENT) { self.setType(ComponentData.AGENTBINDER); } else { self.setType(getBinderType()); } self.setOwner(this); self.setParent(data); data.setClassName(getBinderClassName()); for(int i=0; i < nParameters; i++) { data.addParameter(ge... | public ComponentData addComponentData(ComponentData data) { if(log.isErrorEnabled()) { log.error("not supported yet"); } return data; } | |
Property prop = addProperty(PROP_CLASSNAME, classname); prop.setToolTip(PROP_CLASSNAME_DESC); prop = addProperty(PROP_TYPE, type); prop.setToolTip(PROP_TYPE_DESC); | public void initProperties() { } | |
substitutions.put(":assembly_id:", assemblyId); | public String createCSAAssembly(String cmtAsbID, String societyName) throws SQLException { // whatever the current cmtAssemblyId (possibly really a CSA) // create a new CSA assembly from it: // entry in asb_assembly and copy any oplan rows // and return the new ID // which will be if (log.isDebugEn... | |
Iterator iter = getProperties(); while(iter.hasNext()) { Property p = (Property)iter.next(); if(p.getName().last().toString().startsWith("$$CP")) { removeProperty(p); } } | public boolean saveToDatabase() { // The only way to preserve the target overrides in the children is to make them // arguments of the parent, save, and then remove them from the parent. for(int i=0; i < getChildCount(); i ++) { ComponentBase child = (ComponentBase)getChild(i); if(child.getProperty... | |
organizer.startConsole(); | organizer.duplicate(); | public void actionPerformed(ActionEvent e) { organizer.startConsole(); } |
organizer.duplicate(); | organizer.deleteExperiment(); | public void actionPerformed(ActionEvent e) { organizer.duplicate(); } |
organizer.saveExperiment(); } | organizer.renameExperiment(); } | public void actionPerformed(ActionEvent e) { organizer.saveExperiment(); } |
organizer.deleteExperiment(); | organizer.startBuilder(); | public void actionPerformed(ActionEvent e) { organizer.deleteExperiment(); } |
organizer.renameExperiment(); | organizer.deleteRecipe(); | public void actionPerformed(ActionEvent e) { organizer.renameExperiment(); } |
organizer.startBuilder(); | organizer.renameRecipe(); | public void actionPerformed(ActionEvent e) { organizer.startBuilder(); } |
organizer.deleteRecipe(); | organizer.deleteFolder(); | public void actionPerformed(ActionEvent e) { organizer.deleteRecipe(); } |
organizer.renameRecipe(); | organizer.renameFolder(); | public void actionPerformed(ActionEvent e) { organizer.renameRecipe(); } |
organizer.saveRecipe(); } | organizer.deleteSociety(); } | public void actionPerformed(ActionEvent e) { organizer.saveRecipe(); } |
organizer.deleteFolder(); } | organizer.renameSociety(); } | public void actionPerformed(ActionEvent e) { organizer.deleteFolder(); } |
organizer.renameFolder(); } | organizer.selectRecipeFromDatabase(); } | public void actionPerformed(ActionEvent e) { organizer.renameFolder(); } |
organizer.deleteSociety(); } | organizer.newRecipe(); } | public void actionPerformed(ActionEvent e) { organizer.deleteSociety(); } |
organizer.newSociety(); } | organizer.newFolder(); } | public void actionPerformed(ActionEvent e) { organizer.newSociety(); } |
organizer.newFolder(); | organizer.renameWorkspace(); | public void actionPerformed(ActionEvent e) { organizer.newFolder(); } |
organizer.renameWorkspace(); } | organizer.deleteExperimentFromDatabase(); } | public void actionPerformed(ActionEvent e) { organizer.renameWorkspace(); } |
organizer.deleteExperimentFromDatabase(); | organizer.deleteRecipeFromDatabase(); | public void actionPerformed(ActionEvent e) { organizer.deleteExperimentFromDatabase(); } |
organizer.deleteRecipeFromDatabase(); } | organizer.startExperimentBuilder(); } | public void actionPerformed(ActionEvent e) { organizer.deleteRecipeFromDatabase(); } |
organizer.startExperimentBuilder(); | organizer.startConsole(); | public void actionPerformed(ActionEvent e) { organizer.startExperimentBuilder(); } |
for (int i = 0; i < newExperimentActions.length; i++) | for (int i = 0; i < newExperimentActions.length; i++) { | public OrganizerMouseListener(Organizer organizer, OrganizerTree workspace) { this.organizer = organizer; this.workspace = workspace; // newSocietyAction.setEnabled(false); // disable creating builtin societies // set up experiment submenus for (int i = 0; i < newExper... |
newExperimentInFolderMenu.add(newExperimentActions[i]); } | public OrganizerMouseListener(Organizer organizer, OrganizerTree workspace) { this.organizer = organizer; this.workspace = workspace; // newSocietyAction.setEnabled(false); // disable creating builtin societies // set up experiment submenus for (int i = 0; i < newExper... | |
result.append("CSMART configuration DB (org.cougaar.configuration.database)=" + System.getProperty("org.cougaar.configuration.database") + "\n"); | public static String writeDebug() { // Cougaar version, build info StringBuffer result = new StringBuffer(); String version = null; long buildtime = 0; try { Class vc = Class.forName("org.cougaar.Version"); Field vf = vc.getField("version"); Field bf = vc.getField("buildTime"); vers... | |
public void init(EOModel eomodel, EOEnterpriseObject eo) { for (Enumeration e = entities().objectEnumerator(); e.hasMoreElements();) { GSVEntity entity = (GSVEntity)e.nextElement(); EOEntity eoentity = eomodel.entityNamed(entity.name()); NSLog.debug.appendln("checking gsventity"+entity.name()); if ( eoentity == null) {... | public void init(EOModel eomodel) { if (!inited) { inited = true; for (Enumeration e = entities().immutableClone().objectEnumerator(); e.hasMoreElements();) { GSVEntity entity = (GSVEntity)e.nextElement(); String name = entity.name(); EOEntity eoentity = eomodel.entityNamed(name); if ( eoentity == null) { removeEntity... | public void init(EOModel eomodel, EOEnterpriseObject eo) { for (Enumeration e = entities().objectEnumerator(); e.hasMoreElements();) { GSVEntity entity = (GSVEntity)e.nextElement(); EOEntity eoentity = eomodel.entityNamed(entity.name()); NSLog.debug.appendln("checking gsventity"+entity.name()); if (... |
NSLog.debug.appendln("checking attribute"+eoentity.name()+"."+attribute.name()); | public void init(GSVModel model, EOEntity eoentity) { NSArray myattributes = attributes().immutableClone(); for ( Enumeration e = myattributes.objectEnumerator(); e.hasMoreElements();) { GSVAttribute attribute = (GSVAttribute)e.nextElement(); NSLog.debug.appendln("checking attribute"+eoentity.name()+"."+att... | |
NSLog.debug.appendln("checking eo="+eoentity.name()+", attributename="+attribute.name()); | public void init(GSVModel model, EOEntity eoentity) { NSArray myattributes = attributes().immutableClone(); for ( Enumeration e = myattributes.objectEnumerator(); e.hasMoreElements();) { GSVAttribute attribute = (GSVAttribute)e.nextElement(); NSLog.debug.appendln("checking attribute"+eoentity.name()+"."+att... | |
eoenterpriseobject.valueForKeyPath(attribute.name()); | ec.insertObject(eoenterpriseobject); eoenterpriseobject.valueForKeyPath(attribute.name()); | public void init(GSVModel model, EOEntity eoentity) { NSArray myattributes = attributes().immutableClone(); for ( Enumeration e = myattributes.objectEnumerator(); e.hasMoreElements();) { GSVAttribute attribute = (GSVAttribute)e.nextElement(); NSLog.debug.appendln("checking attribute"+eoentity.name()+"."+att... |
NSLog.debug.appendln(e1); | public void init(GSVModel model, EOEntity eoentity) { NSArray myattributes = attributes().immutableClone(); for ( Enumeration e = myattributes.objectEnumerator(); e.hasMoreElements();) { GSVAttribute attribute = (GSVAttribute)e.nextElement(); NSLog.debug.appendln("checking attribute"+eoentity.name()+"."+att... | |
} | } finally { ec.unlock(); ec.dispose(); } | public void init(GSVModel model, EOEntity eoentity) { NSArray myattributes = attributes().immutableClone(); for ( Enumeration e = myattributes.objectEnumerator(); e.hasMoreElements();) { GSVAttribute attribute = (GSVAttribute)e.nextElement(); NSLog.debug.appendln("checking attribute"+eoentity.name()+"."+att... |
fireModification(); | if (!saveInProgress) fireModification(); | public void modified(ModificationEvent e) { fireModification(); } |
setNamePrefix(superMethod.getDeclaringClass().getName()); | Method nonNull = (superMethod != null) ? superMethod : method; if (nonNull == null) { throw new IllegalArgumentException("Both method and superMethod cannot be null"); } setNamePrefix(nonNull.getDeclaringClass().getName()); | public Generator(Method method, Method superMethod) { setSuperclass(MethodProxy.class); setNamePrefix(superMethod.getDeclaringClass().getName()); this.superMethod = superMethod; this.method = method; } |
UnknownServiceException(String message) | UnknownServiceException() | UnknownServiceException(String message){ super(message);} |
super(message); | super(); | UnknownServiceException(String message){ super(message);} |
NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupRules); NSLog.setAllowedDebugLevel(NSLog.DebugLevelDetailed); | public static void configureTraceRuleFiring() { if (trace.isDebugEnabled() && !NSLog.debugLoggingAllowedForGroups(NSLog.DebugGroupRules)) { NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupRules); NSLog.setAllowedDebugLevel(NSLog.DebugLevelDetailed); trace.info("Rule tracing ... | |
NSLog.refuseDebugLoggingForGroups(NSLog.DebugGroupRules); | public static void configureTraceRuleFiring() { if (trace.isDebugEnabled() && !NSLog.debugLoggingAllowedForGroups(NSLog.DebugGroupRules)) { NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupRules); NSLog.setAllowedDebugLevel(NSLog.DebugLevelDetailed); trace.info("Rule tracing ... | |
if (trace.isDebugEnabled() && !NSLog.debugLoggingAllowedForGroups(NSLog.DebugGroupRules)) { NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupRules); NSLog.setAllowedDebugLevel(NSLog.DebugLevelDetailed); trace.info("Rule tracing on"); } | configureTraceRuleFiring(); | public static void configureTraceRuleFiringRapidTurnAround() { if (!_initializedTraceRuleFiring) { // otherwise not properly initialized trace = ERXLogger.getERXLogger("er.directtoweb.rules.D2WTraceRuleFiringEnabled"); // Note: If the configuration file says debug, but the co... |
try { vec = new Vector(); RandomAccessFile servletFile = null; servletFile = new RandomAccessFile(inputFile, "r"); while (true) { String isrv = servletFile.readLine(); if (isrv == null) { break; } isrv = isrv.trim(); if (isrv.startsWith("#") || isrv.equals("")) continue; ServletListRecord servletRecord = parseServlet... | vec = new Vector(); if (inputFile != null) { try { RandomAccessFile servletFile = null; servletFile = new RandomAccessFile(inputFile, "r"); while (true) { String isrv = servletFile.readLine(); if (isrv == null) { break; } isrv = isrv.trim(); if (isrv.startsWith("#") || isrv.equals("")) continue; ServletListRecord ser... | private Vector getServletList() { Vector vec = null; ConfigFinder cf = ConfigFinder.getInstance(); File inputFile = null; try { inputFile = cf.locateFile("servlets.txt"); } catch(Exception e) { if (log.isErrorEnabled()) { log.error("Could not read servlets file.", e); } } if (vec ... |
} else { if (log.isWarnEnabled()) log.warn("Unable to find servlets.txt!"); | private Vector getServletList() { Vector vec = null; ConfigFinder cf = ConfigFinder.getInstance(); File inputFile = null; try { inputFile = cf.locateFile("servlets.txt"); } catch(Exception e) { if (log.isErrorEnabled()) { log.error("Could not read servlets file.", e); } } if (vec ... | |
if (! partial) executeUpdate(dbp.getQuery("cleanASBAssembly", substitutions)); | private void cleanAssemblies(boolean partial) throws SQLException { if (log.isDebugEnabled()) { log.debug("Deleting assemblies using substitutions: " + substitutions); } if (! partial) executeUpdate(dbp.getQuery("cleanASBAssembly", substitutions)); executeUpdate(dbp.getQuery("cleanASBComponentAr... | |
if (! partial) executeUpdate(dbp.getQuery("cleanASBAssembly", substitutions)); | private void cleanAssemblies(boolean partial) throws SQLException { if (log.isDebugEnabled()) { log.debug("Deleting assemblies using substitutions: " + substitutions); } if (! partial) executeUpdate(dbp.getQuery("cleanASBAssembly", substitutions)); executeUpdate(dbp.getQuery("cleanASBComponentAr... | |
Class cls = ClassLoader.class; ClassLoader loader = (ClassLoader) Trace.newInstance(cls); loader.loadClass(Obj.class.getName()); | public static void main( String args[] ) throws Exception{ JavaClass jc = Repository.lookupClass( Obj.class.getName() ); Field fields[] = jc.getFields(); for( int i = 0; i < fields.length; i++ ){ System.out.println(fields[i]); } Method m[] = jc.getMeth... | |
_organisation = attributes.getValue("organisation"); | _organisation = substitute(ivy, attributes.getValue("organisation")); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
+"\" module=\""+attributes.getValue("module")+"\""); | +"\" module=\""+substitute(ivy, attributes.getValue("module"))+"\""); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
out.print(" revision=\""+attributes.getValue("revision")+"\""); | out.print(" revision=\""+substitute(ivy, attributes.getValue("revision"))+"\""); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
out.print(" status=\""+attributes.getValue("status")+"\""); | out.print(" status=\""+substitute(ivy, attributes.getValue("status"))+"\""); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
out.print(" publication=\""+attributes.getValue("publication")+"\""); | out.print(" publication=\""+substitute(ivy, attributes.getValue("publication"))+"\""); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
out.print(" resolver=\""+attributes.getValue("resolver")+"\""); | out.print(" resolver=\""+substitute(ivy, attributes.getValue("resolver"))+"\""); | public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.