rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public boolean equals(Object obj) | public final boolean equals(Object obj) | public boolean equals(Object obj) { if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } return false; } |
public String getHostName() | public final String getHostName() | public String getHostName() { return addr.getHostName(); } |
public int hashCode() | public final int hashCode() | public int hashCode() { return port + addr.hashCode(); } |
public boolean isUnresolved() | public final boolean isUnresolved() | public boolean isUnresolved() { return addr == null; } |
and we are not using the | and we are not using the Assistant | protected void sortRules() { // This allows other non-d2wmodel file based rules to be loaded. cat.debug("posting WillSortRules."); NSNotificationCenter.defaultCenter().postNotification(WillSortRules, this); cat.debug("posted WillSortRules."); // We don't want dynamicly loaded rule... |
prepareAndCheck(); | public void execute() throws BuildException { if (_pathid == null) { throw new BuildException("pathid is required in ivy classpath"); } try { Path path = new Path(getProject()); getProject().addReference(_pathid, path); for (Iterator iter = getPaths()... | |
if (action.equals(DUPLICATE_ACTION) || action.equals(SAVE_TO_DATABASE_ACTION)) { | if (action.equals(DUPLICATE_ACTION)) { | public static boolean isActionAllowed(String action, Organizer organizer, boolean doPopup) { // If nothing is selected, some things are still legitimate if (organizer.getSelectedNode() == null) { if (action.equals(DELETE_EXPERIME... |
if (action.equals(SAVE_TO_DATABASE_ACTION)) { return false; } else if (action.equals(BUILD_ACTION)) { return !CSMART.isSocietyInEditor(society); } else if (action.equals(DELETE_ACTION) || action.equals(RENAME_ACTION) || action.equals(CONFIGURE_ACTION)) { | else if (action.equals(BUILD_ACTION) || action.equals(DELETE_ACTION) || action.equals(RENAME_ACTION) || action.equals(CONFIGURE_ACTION)) | public static boolean isActionAllowed(String action, Organizer organizer, boolean doPopup) { // If nothing is selected, some things are still legitimate if (organizer.getSelectedNode() == null) { if (action.equals(DELETE_EXPERIME... |
} else if (action.equals(BUILD_ACTION)) { return true; } else | else | public static boolean isActionAllowed(String action, Organizer organizer, boolean doPopup) { // If nothing is selected, some things are still legitimate if (organizer.getSelectedNode() == null) { if (action.equals(DELETE_EXPERIME... |
if (action.equals(DUPLICATE_ACTION) || action.equals(SAVE_TO_DATABASE_ACTION)) | if (isNodeInExperiment(organizer)) { if (action.equals(DUPLICATE_ACTION) || action.equals(DELETE_ACTION)) return false; } if (action.equals(DUPLICATE_ACTION)) | public static boolean isActionAllowed(String action, Organizer organizer, boolean doPopup) { // If nothing is selected, some things are still legitimate if (organizer.getSelectedNode() == null) { if (action.equals(DELETE_EXPERIME... |
IntBuffer a = (IntBuffer) obj; | IntBuffer other = (IntBuffer) obj; | public int compareTo (Object obj) { IntBuffer a = (IntBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) {... |
if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) | int num = Math.min(remaining(), other.remaining()); int pos_this = position(); int pos_other = other.position(); for (int count = 0; count < num; count++) | public int compareTo (Object obj) { IntBuffer a = (IntBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) {... |
return 1; | int a = get(pos_this++); int b = other.get(pos_other++); if (a == b) continue; if (a < b) return -1; return 1; | public int compareTo (Object obj) { IntBuffer a = (IntBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) {... |
int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) { int t = (int) (get (i1) - a.get (i2)); if (t != 0) { return (int) t; } } return 0; | return remaining() - other.remaining(); | public int compareTo (Object obj) { IntBuffer a = (IntBuffer) obj; if (a.remaining () != remaining ()) return 1; if (! hasArray () || ! a.hasArray ()) { return 1; } int r = remaining (); int i1 = position (); int i2 = a.position (); for (int i = 0; i < r; i++) {... |
HostComponent[] hosts = experiment.getHosts(); | HostComponent[] hosts = experiment.getHostComponents(); | public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName, RemoteProcess remoteNode, ... |
protected String getMatcher() { | public String getMatcher() { | protected String getMatcher() { return _matcher; } |
protected String getValue() { | public String getValue() { | protected String getValue() { return _value; } |
protected void setMatcher(String matcher) { | public void setMatcher(String matcher) { | protected void setMatcher(String matcher) { _matcher = matcher; } |
protected void setProperty(String name) { | public void setProperty(String name) { | protected void setProperty(String name) { _property = name; } |
protected void setValue(String value) { | public void setValue(String value) { | protected void setValue(String value) { _value = value; } |
if (url1 == null || url2 == null || url1.getPort() != url2.getPort()) | if (url1 == null || url2 == null) return false; int p1 = url1.getPort (); if (p1 == -1) p1 = url1.handler.getDefaultPort (); int p2 = url2.getPort (); if (p2 == -1) p2 = url2.handler.getDefaultPort (); if (p1 != p2) | protected 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(); ... |
while (!quit) { if (viewer != null) { viewer.update(); | try { while (!quit) { if (viewer != null) { viewer.update(); | public void run(String[] args) { canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); canvas.addGLEventListener(new Listener()); canvas.setNoAutoRedrawMode(true); Frame frame = new Frame("ARB_shadow Shadows"); frame.setLayout(new BorderLayout()); canvas.setSize(512, 512); ... |
cameraPerspective.set(params.getProjectionMatrix()); cameraInverseTransform.set(params.getModelviewMatrix()); cameraTransform.set(cameraInverseTransform); cameraTransform.invertRigid(); spotlightTransform.set(spotlight.getTransform()); spotlightInverseTransform.set(spotlightTransform); spotlightInverseTransform.invertR... | cameraPerspective.set(params.getProjectionMatrix()); cameraInverseTransform.set(params.getModelviewMatrix()); cameraTransform.set(cameraInverseTransform); cameraTransform.invertRigid(); spotlightTransform.set(spotlight.getTransform()); spotlightInverseTransform.set(spotlightTransform); spotlightInverseTransform.invertR... | public void run(String[] args) { canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); canvas.addGLEventListener(new Listener()); canvas.setNoAutoRedrawMode(true); Frame frame = new Frame("ARB_shadow Shadows"); frame.setLayout(new BorderLayout()); canvas.setSize(512, 512); ... |
if (displayMode == RENDER_SCENE_FROM_CAMERA_VIEW_SHADOWED || !fullyInitialized) { if (pbuffer != null) { pbuffer.display(); } } canvas.display(); | } finally { System.exit(0); | public void run(String[] args) { canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); canvas.addGLEventListener(new Listener()); canvas.setNoAutoRedrawMode(true); Frame frame = new Frame("ARB_shadow Shadows"); frame.setLayout(new BorderLayout()); canvas.setSize(512, 512); ... |
System.exit(0); | public void run(String[] args) { canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); canvas.addGLEventListener(new Listener()); canvas.setNoAutoRedrawMode(true); Frame frame = new Frame("ARB_shadow Shadows"); frame.setLayout(new BorderLayout()); canvas.setSize(512, 512); ... | |
dumpElement ("REFERENCE "); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement ("CLASSDESC NAME="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement (name + "; UID="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement (Long.toHexString(uid) + "; FLAGS="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement (Integer.toHexString(flags) + "; FIELD COUNT="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement (" TYPE CODE="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement (type_code + "; FIELD NAME="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement ("STRING="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement ("ARRAY LENGTH="); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElementln ("Reading fields of " + this.currentObjectStreamClass.getName ()); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); | dumpElement ("ENDBLOCKDATA? "); try { if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); dumpElementln ("yes"); } catch (EOFException e) { dumpElementln ("no, got EOFException"); } catch (IOException e) { ... | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... |
dumpElementln (e.toString()); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeseriali... | |
dumpElement ("STREAM MAGIC "); | protected void readStreamHeader () throws IOException, StreamCorruptedException {// DEBUG ("STREAM MAGIC "); if (this.realInputStream.readShort () != STREAM_MAGIC) throw new StreamCorruptedException ("Invalid stream magic number");// DEBUG ("STREAM VERSION "); if (this.realInputStream.readShort (... | |
dumpElementln ("STREAM VERSION "); | protected void readStreamHeader () throws IOException, StreamCorruptedException {// DEBUG ("STREAM MAGIC "); if (this.realInputStream.readShort () != STREAM_MAGIC) throw new StreamCorruptedException ("Invalid stream magic number");// DEBUG ("STREAM VERSION "); if (this.realInputStream.readShort (... | |
int len = dst.capacity() - dst.position(); | int len = dst.remaining(); | public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if ((! isBlocking()) &&... |
writer.print(me.getClassName()); | writer.print(me.getName()); | private void writeChildLine(PrintWriter writer, ComponentData me) throws IOException { writer.print(me.getClassName()); if (me.parameterCount() == 0) { writer.println(); return; } writer.print("("); Object[] params = me.getParameters(); writer.print(writeParam(params[0])); for (int i = ... |
try { writer.println("This is the prototype ini file"); | private void writePrototypeINI(File configDir, AgentComponentData agent) throws IOException { PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, agent.getName() + "-prototype-ini.dat"))); try { // FIXME!!!! writer.println("This is the prototype ini file"); // FIXME!!!!! ... | |
if(agent.getOwner() instanceof ABCSociety) { ABCSociety soc = (ABCSociety)agent.getOwner(); | private void writePrototypeINI(File configDir, AgentComponentData agent) throws IOException { PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, agent.getName() + "-prototype-ini.dat"))); try { // FIXME!!!! writer.println("This is the prototype ini file"); // FIXME!!!!! ... | |
Iterator iter = ((Collection)soc.getDescendentsOfClass(ABCAgent.class)).iterator(); while(iter.hasNext()) { ABCAgent ag = (ABCAgent)iter.next(); String name = ag.getFullName().toString(); if(name.equals(agent.getName())) { ag.writePrototypeIniFile(writer); } } } else if(agent.getOwner() instanceof ScalabilityXSociety) ... | private void writePrototypeINI(File configDir, AgentComponentData agent) throws IOException { PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, agent.getName() + "-prototype-ini.dat"))); try { // FIXME!!!! writer.println("This is the prototype ini file"); // FIXME!!!!! ... | |
Iterator iter = ((Collection)soc.getDescendentsOfClass(ScalabilityXAgent.class)).iterator(); while(iter.hasNext()) { ScalabilityXAgent ag = (ScalabilityXAgent)iter.next(); String name = ag.getFullName().toString(); if(name.equals(agent.getName())) { ag.writePrototypeIniFile(writer); } } } | private void writePrototypeINI(File configDir, AgentComponentData agent) throws IOException { PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, agent.getName() + "-prototype-ini.dat"))); try { // FIXME!!!! writer.println("This is the prototype ini file"); // FIXME!!!!! ... | |
} catch (Exception e) { System.out.println("Error writing config file: " + e); } finally { writer.close(); } | private void writePrototypeINI(File configDir, AgentComponentData agent) throws IOException { PrintWriter writer = new PrintWriter(new FileWriter(new File(configDir, agent.getName() + "-prototype-ini.dat"))); try { // FIXME!!!! writer.println("This is the prototype ini file"); // FIXME!!!!! ... | |
actionUrl = context.componentActionURL(); | actionUrl = AjaxUtils.ajaxComponentActionUrl(context); | public String onClick(WOContext context) { WOComponent component = context.component(); NSDictionary options = createAjaxOptions(component); StringBuffer onClickBuffer = new StringBuffer(); String onClickBefore = (String)valueForBinding("onClickBefore", context.component()); if (onClickBefore != null) { onCl... |
public void enableRestart() { startAction.setEnabled(true); stopAction.setEnabled(false); | public void enableRestart(boolean enable) { startAction.setEnabled(enable); stopAction.setEnabled(!enable); | public void enableRestart() { startAction.setEnabled(true); stopAction.setEnabled(false); } |
return _selected + " in "+ _node+" ("+_conflictManager+") ["+_rootModuleConf+"]"; | if (_selected != null) { return _selected + " in "+ _node+" ("+_conflictManager+") ["+_rootModuleConf+"]"; } else { return "transitively ["+_rootModuleConf+"]"; } | public String toString() { return _selected + " in "+ _node+" ("+_conflictManager+") ["+_rootModuleConf+"]"; } |
for (Iterator iterator = sel.iterator(); iterator.hasNext();) { IvyNode n = (IvyNode)iterator.next(); if (n.getRealNode().equals(this)) { iter.remove(); | if (sel != null) { for (Iterator iterator = sel.iterator(); iterator.hasNext();) { IvyNode n = (IvyNode)iterator.next(); if (n.getRealNode().equals(this)) { iter.remove(); } | private void cleanEvicted() { // check if it was evicted by a node that we are now the real node for for (Iterator iter = _evicted.keySet().iterator(); iter.hasNext();) { String rootModuleConf = (String)iter.next(); EvictionData ed = (EvictionData)_evicted.get(rootModuleConf); ... |
allEvictingNodes.addAll(ed.getSelected()); | Collection selected = ed.getSelected(); if (selected != null) { allEvictingNodes.addAll(selected); } | public Collection getAllEvictingNodes() { Collection allEvictingNodes = new HashSet(); for (Iterator iter = _evicted.values().iterator(); iter.hasNext();) { EvictionData ed = (EvictionData)iter.next(); allEvictingNodes.addAll(ed.getSelected()); } return allE... |
for (Iterator iter = resolved.iterator(); iter.hasNext();) { IvyNode selected = (IvyNode)iter.next(); selected.updateDataFrom(this, rootModuleConf); | if (resolved != null) { for (Iterator iter = resolved.iterator(); iter.hasNext();) { IvyNode selected = (IvyNode)iter.next(); selected.updateDataFrom(this, rootModuleConf); } | public void markEvicted(String rootModuleConf, IvyNode node, ConflictManager conflictManager, Collection resolved) { _evicted.put(rootModuleConf, new EvictionData(rootModuleConf, node, conflictManager, resolved)); if (!_rootModuleConfs.keySet().contains(rootModuleConf)) { _rootModuleConfs.p... |
cat.debug("SetLocalContext "+newValue); | if (cat.isDebugEnabled()) cat.debug("SetLocalContext "+newValue); | public void setLocalContext(D2WContext newValue) { if (ERXExtensions.safeDifferent(newValue,localContext())) { _hasBeenInitialized=false; _batchSize=null; // HACK ALERT: this next line is made necessary by the brain-damageness of // D2WComponent.setLocalContext, wh... |
EOSortOrdering sortOrdering= new EOSortOrdering((String)sortOrderingDefinition.objectAtIndex(i++), new NSSelector((String)sortOrderingDefinition.objectAtIndex(i++), ERXConstant.ObjectClassArray)); | String sortKey=(String)sortOrderingDefinition.objectAtIndex(i++); String sortSelectorKey=(String)sortOrderingDefinition.objectAtIndex(i++); EOSortOrdering sortOrdering=new EOSortOrdering(sortKey, ERXUtilities.sortSelectorWithKey(sortSelectorKey)); | public NSArray sortOrderings() { NSArray sortOrderings=null; if (userPreferencesCanSpecifySorting()) { NSKeyValueCoding userPreferences=(NSKeyValueCoding)d2wContext().valueForKey("userPreferences"); if (userPreferences!=null) { String key=ERXExtensions.userPreferen... |
boolean shouldHandleRequest = elementID != null && (elementID.startsWith(senderID) || (invokeWOElementID != null && invokeWOElementID.equals(elementID))); | boolean shouldHandleRequest = elementID != null && (elementID.equals(senderID) || (invokeWOElementID != null && invokeWOElementID.equals(elementID))); | public static boolean shouldHandleRequest(WORequest request, WOContext context) { String elementID = context.elementID(); String senderID = context.senderID(); String invokeWOElementID = request.stringFormValueForKey("invokeWOElementID"); // WOComponent wocomponent = context.component(); // System.out.... |
if (cc instanceof Experiment) cc = ((Experiment)cc).getSocietyComponent(); | if (cc instanceof Experiment) { Experiment experiment = (Experiment)cc; ComponentData cdata = experiment.getSocietyComponentData(); cc = new SocietyCDataComponent(cdata); cc.initProperties(); } | public void runBuilder(ModifiableComponent cc, boolean alwaysNew) { // note that cc is guaranteed non-null when this is called Class[] paramClasses = { CSMART.class, ModifiableComponent.class }; Object[] params = new Object[2]; params[0] = this; if (cc instanceof Experiment) ... |
contract = new ContractBeanDOMImpl(this.manager,parameterHelper); | contract = new ContractBeanDOMImpl(this.manager, parameterHelper,(URIResolver)this); | private void contractProcessingStart(Attributes attr) throws SAXException { try { if (contract == null) contract = new ContractBeanDOMImpl(this.manager,parameterHelper); else contract.initialize(); } catch (ParserConfigurationException e) { ... |
} catch (ParserConfigurationException e) { | } catch (Exception e) { | private void contractProcessingStart(Attributes attr) throws SAXException { try { if (contract == null) contract = new ContractBeanDOMImpl(this.manager,parameterHelper); else contract.initialize(); } catch (ParserConfigurationException e) { ... |
contract.setContractImpl(doc); | contract.setContractImpl(doc, contractUri); | private void contractProcessingStart(Attributes attr) throws SAXException { try { if (contract == null) contract = new ContractBeanDOMImpl(this.manager,parameterHelper); else contract.initialize(); } catch (ParserConfigurationException e) { ... |
m_resolver = null; | public void dispose() { if (null != this.manager) { this.manager = null; } insideProperties = false; super.dispose(); } | |
this.m_resolver = null; | private void localRecycle() { this.processor = null; this.dispatcherHelper = null; this.contract = null; this.hooksXSL = null; this.structurerTransformer = null; this.insideProperties = false; } | |
if (src.charAt(0) == '/' || SourceUtil.indexOfSchemeColon(src) != -1) { return src; } else { String base = (String) context.getMapByAnchor("lm").get("base"); return base + (base.charAt(base.length()-1) == '/' ? "" : "/") + src; | if (src.charAt(0) != '/' && SourceUtil.indexOfSchemeColon(src) == -1) { String base = (String) context.getMapByAnchor(LocationMap.ANCHOR_NAME).get("base"); src = base + (base.charAt(base.length()-1) == '/' ? "" : "/") + src; | public String locate(Map om, InvokeContext context) throws Exception { String src = m_src.resolve(context,om); // absolute, don't prefix if (src.charAt(0) == '/' || SourceUtil.indexOfSchemeColon(src) != -1) { return src; } else { String base =... |
if (getLogger().isDebugEnabled()) { getLogger().debug("location: " + src); } return src; | public String locate(Map om, InvokeContext context) throws Exception { String src = m_src.resolve(context,om); // absolute, don't prefix if (src.charAt(0) == '/' || SourceUtil.indexOfSchemeColon(src) != -1) { return src; } else { String base =... | |
return ("FocusEvent[" + temporary + ";" + super.paramString () + "]"); | String r = ""; switch (id) { case FOCUS_GAINED: r += "FOCUS_GAINED"; break; case FOCUS_LOST: r += "FOCUS_LOST"; break; default: r += "unknown id"; break; } r += (temporary ? "temporary" : "permanent"); return r; | public String paramString () { return ("FocusEvent[" + temporary + ";" + super.paramString () + "]"); } |
for (int i=0; i < fields.length; i++) { try { fields[i].lookupField(cl); } catch (NoSuchFieldException _) { fields[i].setToSet(false); } } | private void setFields(Class cl) { if (!isSerializable() || isExternalizable()) { fields = NO_FIELDS; return; } try { final Field serialPersistentFields = cl.getDeclaredField("serialPersistentFields"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { serial... | |
if(log.isDebugEnabled()) { log.error("Couldn't create results directory: " + e); | if(log.isErrorEnabled()) { log.error("Couldn't create results directory: ", e); | public void dumpINIFiles() { ExperimentINIWriter cw = null; theWholeSoc = null; if (DBUtils.dbMode) { if (theWholeSoc == null) { // write it to the db saveToDb(new DBConflictHandler() { public int handleConflict(Object msg, Object[] choices, Object defaultChoice) { ... |
if(log.isDebugEnabled()) { log.error("Couldn't write ini files: " + e); e.printStackTrace(); | if(log.isErrorEnabled()) { log.error("Couldn't write ini files: ", e); | public void dumpINIFiles() { ExperimentINIWriter cw = null; theWholeSoc = null; if (DBUtils.dbMode) { if (theWholeSoc == null) { // write it to the db saveToDb(new DBConflictHandler() { public int handleConflict(Object msg, Object[] choices, Object defaultChoice) { ... |
InputStream module = Message.class.getResourceAsStream("/module.properties"); if (module != null) { | URL moduleURL = Message.class.getResource("/module.properties"); if (moduleURL != null) { | private static void showInfo() { if (!_showedInfo ) { Properties props = new Properties(); InputStream module = Message.class.getResourceAsStream("/module.properties"); if (module != null) { try { props.load(module); info("... |
module.close(); | private static void showInfo() { if (!_showedInfo ) { Properties props = new Properties(); InputStream module = Message.class.getResourceAsStream("/module.properties"); if (module != null) { try { props.load(module); info("... | |
long bitcount = bytecount << 3; | long bitcount = bytecount * 8; | public byte[] engineDigest () { long bitcount = bytecount << 3; engineUpdate ((byte)0x80); // 10000000 in binary; the start of the padding // add the rest of the padding to fill this block out, but leave 8 // bytes to put in the original bytecount while ((bytecount & 0x3f) != 56) engineUpdate ((b... |
while ((bytecount & 0x3f) != 56) | while ((int)bytecount % 64 != 56) | public byte[] engineDigest () { long bitcount = bytecount << 3; engineUpdate ((byte)0x80); // 10000000 in binary; the start of the padding // add the rest of the padding to fill this block out, but leave 8 // bytes to put in the original bytecount while ((bytecount & 0x3f) != 56) engineUpdate ((b... |
int i = ((int)bytecount) & 0x3f; int shift = (3 - i % 4) << 3; | int i = (int)bytecount % 64; int shift = (3 - i % 4) * 8; | public void engineUpdate (byte b) { int i = ((int)bytecount) & 0x3f; //wgs int shift = (3 - i % 4) << 3; int idx = i / 4; i = (int)b; W[idx] = (W[idx] & ~(0xff << shift)) | ((i & 0xff) << shift); // if we've filled up a block, then process it if (((++bytecount) & 0x3f) == 0) munch (); } |
i = (int)b; W[idx] = (W[idx] & ~(0xff << shift)) | ((i & 0xff) << shift); | W[idx] = (W[idx] & ~(0xff << shift)) | ((b & 0xff) << shift); | public void engineUpdate (byte b) { int i = ((int)bytecount) & 0x3f; //wgs int shift = (3 - i % 4) << 3; int idx = i / 4; i = (int)b; W[idx] = (W[idx] & ~(0xff << shift)) | ((i & 0xff) << shift); // if we've filled up a block, then process it if (((++bytecount) & 0x3f) == 0) munch (); } |
if (((++bytecount) & 0x3f) == 0) | if ((++ bytecount) % 64 == 0) | public void engineUpdate (byte b) { int i = ((int)bytecount) & 0x3f; //wgs int shift = (3 - i % 4) << 3; int idx = i / 4; i = (int)b; W[idx] = (W[idx] & ~(0xff << shift)) | ((i & 0xff) << shift); // if we've filled up a block, then process it if (((++bytecount) & 0x3f) == 0) munch (); } |
Message.debug("asked configurations: "+rconfsSet); | Message.debug("asked configurations: "+confsSet); | protected String[] getConfsToResolve(String org, String module, String conf, boolean strict) { ModuleDescriptor reference = (ModuleDescriptor) getResolvedDescriptor(org, module, strict); Message.debug("calculating configurations to resolve"); if (reference == null) { Message.debug("mod... |
if (((String)possibleEntities.objectAtIndex(0)).length() == ((String)possibleEntities.objectAtIndex(1)).length()) | if (((String)possibleEntities.objectAtIndex(0)).length() == ((String)possibleEntities.lastObject()).length()) | public static EOEntity entityMatchingString(EOEditingContext ec, String string) { EOEntity result = null; if(string != null) { String lowerCaseName = string.toLowerCase(); if (entityNames == null) { EOModelGroup group = modelGroup(ec); entityNames = ... |
_chart = (JFreeChart)valueForBinding("chart"); | if(hasBinding("chart") && canGetValueForBinding("chart")) { _chart = (JFreeChart)valueForBinding("chart"); } | public JFreeChart chart() { if(_chart == null) { _chart = (JFreeChart)valueForBinding("chart"); if(_chart == null) { _chart = createChart(); if(hasBinding("chart") && canSetValueForBinding("chart")) { setValueForBinding(_chart, "chart"); ... |
_dataset = (Dataset)valueForBinding("dataset"); | if(hasBinding("dataset") && canGetValueForBinding("dataset")) { _dataset = (Dataset)valueForBinding("dataset"); } | public Dataset dataset() { if(_dataset == null) { _dataset = (Dataset)valueForBinding("dataset"); if(_dataset == null) { _dataset = (DefaultCategoryDataset) createDataset(); if(canSetValueForBinding("dataset")) { setValueForBinding(_datas... |
_dataset = (DefaultCategoryDataset) createDataset(); | _dataset = createDataset(); | public Dataset dataset() { if(_dataset == null) { _dataset = (Dataset)valueForBinding("dataset"); if(_dataset == null) { _dataset = (DefaultCategoryDataset) createDataset(); if(canSetValueForBinding("dataset")) { setValueForBinding(_datas... |
log.error(ex, ex); | public NSData imageData() { if(_imageData == null) { try { JFreeChart chart = chart(); if(chart != null) { ByteArrayOutputStream imageStream = new ByteArrayOutputStream(); ChartRenderingInfo info = null; if(show... | |
_htmlContent = null; | setHTMLContent(null); | public void newMail () { super.newMail (); _hasHiddenPlainTextContent = false; _htmlContent = null; } |
if (status == STATUS_NOTIFY || status == STATUS_STD_ERROR) | if (status == STATUS_NOTIFY || status == STATUS_STD_ERROR) { | public void setStatus(int status) { if (error) return; if (status < 0 || status > (statusColors.length-1)) return; // invalid status this.status = status; if (status == STATUS_NOTIFY || status == STATUS_STD_ERROR) error = true; Color statusColor = statusColors[status]; setIcon(new Col... |
Color statusColor = statusColors[status]; setIcon(new ColoredCircle(statusColor, 20)); setSelectedIcon(new SelectedColoredCircle(statusColor, 20)); | URL iconURL = getClass().getResource("Bang.gif"); if (iconURL != null) { ImageIcon icon = new ImageIcon(iconURL); setIcon(icon); setSelectedIcon(new SelectedErrorIcon(icon.getImage(), 20)); } } else { Color statusColor = statusColors[status]; setIcon(new ColoredCircle(statusColor, 20)); setSelectedIcon(new SelectedColo... | public void setStatus(int status) { if (error) return; if (status < 0 || status > (statusColors.length-1)) return; // invalid status this.status = status; if (status == STATUS_NOTIFY || status == STATUS_STD_ERROR) error = true; Color statusColor = statusColors[status]; setIcon(new Col... |
analyzerAction | analyzerAction, organizer.buildCommunityAction | public CSMART() { setTitle("CSMART"); csmart = this; createLog(); // Write initial CSMART info to the log file if (log.isShoutEnabled()) { log.shout(writeDebug()); } resultDir = initResultDir(); organizer = new Organizer(this); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMe... |
this.exptId = null; | public PopulateDb(String cmtAsbID, String societyName, String assemblyId, DBConflictHandler ch) throws SQLException, IOException { super(); createLogger(); if (ch == null) throw new IllegalArgumentException("null conflict handler"); this.conflictHandler = ch; this.cmtType = csaType; substit... | |
} else if (componentType.equals(ComponentData.HOST) || componentType.equals(ComponentData.NODE)) { result = data.getName(); | public String getComponentAlibId(ComponentData data) { // This relies on being able to find the ancestors // for plugins and binders, which you cant always do // FIXME!! if (data == null) return null; String result = data.getAlibID(); if (result == null) { String componentType = data.getType();... | |
if (componentType.equals(ComponentData.PLUGIN)) { | if (componentType.equals(ComponentData.NODE) || componentType.equals(ComponentData.HOST) || componentType.equals(ComponentData.SOCIETY) || componentType.equals(ComponentData.AGENT)) { return sqlQuote(getComponentAlibId(data)); } else { | private String getComponentLibId(ComponentData data) { if (data == null) return sqlQuote(null); String componentType = data.getType(); if (componentType.equals(ComponentData.PLUGIN)) { return sqlQuote(componentType + "|" + data.getClassName()); } if (componentType.equals(ComponentData.NODEBINDER))... |
if (componentType.equals(ComponentData.NODEBINDER)) { return sqlQuote(componentType + "|" + data.getClassName()); } if (componentType.equals(ComponentData.AGENTBINDER)) { return sqlQuote(componentType + "|" + data.getClassName()); } if (componentType.equals(ComponentData.AGENT)) { String agentName = data.getName(); ret... | private String getComponentLibId(ComponentData data) { if (data == null) return sqlQuote(null); String componentType = data.getType(); if (componentType.equals(ComponentData.PLUGIN)) { return sqlQuote(componentType + "|" + data.getClassName()); } if (componentType.equals(ComponentData.NODEBINDER))... | |
executeUpdate(dbp.getQuery("insertComponentHierarchy", substitutions)); | if (exptId != null || ! parent.getType().equals(ComponentData.SOCIETY)) { executeUpdate(dbp.getQuery("insertComponentHierarchy", substitutions)); } | private boolean populate(ComponentData data, float insertionOrder, String assemblyId) throws SQLException { boolean result = false; ComponentData parent = data.getParent(); String id = getComponentAlibId(data); addComponentDataSubstitutions(data); substitutions.put(":assembly_id:", sqlQuote(assembl... |
public FileDialog (Frame owner) | public FileDialog (Frame parent) | public FileDialog (Frame owner) { super(owner); // FIXME } |
super(owner); | this (parent, "", LOAD); | public FileDialog (Frame owner) { super(owner); // FIXME } |
return assembly_id; | } return assembly_id; | public static String createCMTasb(String assembly_description,String cfw_g_id,String[] threads, Map clones){ clearUnusedCMTassemblies(); String assembly_id = getAssemblyID(cfw_g_id, threads, clones); if (hasRows(asbPrefix+"asb_assembly", "assembly_id", sqlQuote(assembly_id))){ System.out.println("Not creating n... |
System.out.println("getNextId: "+query); | if (traceQueries) { System.out.println("getNextId: "+query); } | public static String getNextId(String queryName, String prefix) { DecimalFormat format = new DecimalFormat(prefix + "0000"); Map substitutions = new HashMap(); substitutions.put(":max_id_pattern", prefix + "____"); String id = format.format(1); // Default try { Connection dbConnectio... |
System.out.println("getNextId: n="+n+", maxId ="+maxId); | if (traceQueries) { System.out.println("getNextId: n="+n+", maxId ="+maxId); } | public static String getNextId(String queryName, String prefix) { DecimalFormat format = new DecimalFormat(prefix + "0000"); Map substitutions = new HashMap(); substitutions.put(":max_id_pattern", prefix + "____"); String id = format.format(1); // Default try { Connection dbConnectio... |
System.out.println("getNextId: id="+id); | if (traceQueries) { System.out.println("getNextId: id="+id); } | public static String getNextId(String queryName, String prefix) { DecimalFormat format = new DecimalFormat(prefix + "0000"); Map substitutions = new HashMap(); substitutions.put(":max_id_pattern", prefix + "____"); String id = format.format(1); // Default try { Connection dbConnectio... |
_project.setProperty("ivy.dep.file", "test/repositories/1/org2/mod2.3/ivys/ivy-0.4.xml"); | _project.setProperty("ivy.dep.file", "test/repositories/1/org2/mod2.5/ivys/ivy-0.6.1.xml"); | public void testCustomIvyPattern() throws Exception { // mod2.3 depends on mod2.1 which depends on mod1.1 which depends on mod1.2 _project.setProperty("ivy.dep.file", "test/repositories/1/org2/mod2.3/ivys/ivy-0.4.xml"); String ivyPattern = IVY_RETRIEVE_PATTERN; _retrieve.setIvypatt... |
"org2", "mod2.3", "0.4.1", "ivy", "ivy", "xml")).exists()); assertTrue(new File(IvyPatternHelper.substitute(ivyPattern, | public void testCustomIvyPattern() throws Exception { // mod2.3 depends on mod2.1 which depends on mod1.1 which depends on mod1.2 _project.setProperty("ivy.dep.file", "test/repositories/1/org2/mod2.3/ivys/ivy-0.4.xml"); String ivyPattern = IVY_RETRIEVE_PATTERN; _retrieve.setIvypatt... | |
Enumeration enum = v.elements(); | Enumeration enumList = v.elements(); | public static void createReferenceTags(File f, Vector tagList) { Vector v = (Vector) _fileReferences.get(f); if (v != null) { Enumeration enum = v.elements(); while (enum.hasMoreElements()) { Occurrence occ = (Occurrence) enum.nextElement(); HTMLTag ... |
while (enum.hasMoreElements()) { Occurrence occ = (Occurrence) enum.nextElement(); | while (enumList.hasMoreElements()) { Occurrence occ = (Occurrence) enumList.nextElement(); | public static void createReferenceTags(File f, Vector tagList) { Vector v = (Vector) _fileReferences.get(f); if (v != null) { Enumeration enum = v.elements(); while (enum.hasMoreElements()) { Occurrence occ = (Occurrence) enum.nextElement(); HTMLTag ... |
} | public static void createReferenceTags(File f, Vector tagList) { Vector v = (Vector) _fileReferences.get(f); if (v != null) { Enumeration enum = v.elements(); while (enum.hasMoreElements()) { Occurrence occ = (Occurrence) enum.nextElement(); HTMLTag ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.