rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
team = datum.aModel.readTeam(datum.containerId); | team = datum.cModel.readTeam(datum.containerId); | public void testHandleClose() { Set<User> team; try { datum.cInternalModel.handleClose(datum.containerId, datum.closedBy, datum.closedOn); } catch(final ParityException px) { fail(createFailMessage(px)); } final Container container = datum.cInternalModel.read(datum.containerId); asse... |
protected void setUp() throws Exception { super.setUp(); } | protected void setUp() throws Exception {} | protected void setUp() throws Exception { super.setUp(); } |
protected void tearDown() throws Exception { super.tearDown(); } | protected void tearDown() throws Exception {} | protected void tearDown() throws Exception { super.tearDown(); } |
public Container read(final Long containerId) { synchronized(implLock) { return impl.read(containerId); } } | public List<Container> read() { synchronized(implLock) { return impl.read(); } } | public Container read(final Long containerId) { synchronized(implLock) { return impl.read(containerId); } } |
protected static void assertNotNull(final String assertion, final List<Container> containers) { assertNotNull(assertion + " [CONTAINERS IS NULL]", (Object) containers); for(final Container container : containers) { assertNotNull(assertion, container); } | protected static void assertNotNull(final String assertion, final ContainerDraft draft) { assertNotNull(assertion + " [DRAFT IS NULL]", (Object) draft); assertNotNull(assertion + " [DRAFT ID IS NULL]", draft.getId()); assertNotNull(assertion + " [DRAFT VERSION ID IS NULL]", draft.getVersionId()); | protected static void assertNotNull(final String assertion, final List<Container> containers) { assertNotNull(assertion + " [CONTAINERS IS NULL]", (Object) containers); for(final Container container : containers) { assertNotNull(assertion, container); } } |
void addTeamMember(final UUID uniqueId, final JabberId teamMemberId) { | void addTeamMember(final UUID uniqueId, final List<JabberId> team, final JabberId teamMemberId) { | void addTeamMember(final UUID uniqueId, final JabberId teamMemberId) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("teamMemberId", teamMemberId); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final ... |
final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long artifactId = artifactModel.readId(uniqueId); final List<JabberId> team = artifactModel.readTeamIds(artifactId); | void addTeamMember(final UUID uniqueId, final JabberId teamMemberId) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("teamMemberId", teamMemberId); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final ... | |
final InternalArtifactModel artifactModel = getInternalArtifactModel(); | final InternalArtifactModel artifactModel = getArtifactModel(); | void confirmArtifactReceipt(final JabberId userId, final UUID uniqueId, final Long versionId, final JabberId receivedBy, final Calendar receivedOn) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("ver... |
final InternalArtifactModel artifactModel = getInternalArtifactModel(); | final InternalArtifactModel artifactModel = getArtifactModel(); | void deleteDraft(final UUID uniqueId) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long artifactId = artifactModel.readId(uniqueId); final List<JabberId> team =... |
final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { | final JabberId userId, final UUID uniqueId, final Long versionId) { | List<DocumentVersion> readArchiveDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable(... |
logger.logVariable("documentUniqueId", documentUniqueId); | List<DocumentVersion> readArchiveDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable(... | |
uniqueId, versionId, documentUniqueId); | uniqueId, versionId); | List<DocumentVersion> readArchiveDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable(... |
List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { | List<DocumentVersion> readBackupDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId) { | List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("... |
logger.logVariable("documentUniqueId", documentUniqueId); | List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("... | |
uniqueId, versionId, documentUniqueId); | uniqueId, versionId); | List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("... |
void removeTeamMember(final UUID uniqueId, final JabberId teamMemberId) { | void removeTeamMember(final UUID uniqueId, final List<JabberId> team, final JabberId teamMemberId) { | void removeTeamMember(final UUID uniqueId, final JabberId teamMemberId) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("teamMemberId", teamMemberId); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); fin... |
final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Long artifactId = artifactModel.readId(uniqueId); final List<JabberId> team = artifactModel.readTeamIds(artifactId); | void removeTeamMember(final UUID uniqueId, final JabberId teamMemberId) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("teamMemberId", teamMemberId); try { final InternalArtifactModel artifactModel = getInternalArtifactModel(); fin... | |
logger.logApiId(); | SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); ... | |
logger.logTraceId(); | SessionModelEventDispatcher(final Workspace workspace, final InternalModelFactory modelFactory, final XMPPSession xmppSession) { super(); this.logger = new Log4JWrapper(); this.modelFactory = modelFactory; logger.logApiId(); xmppSession.clearListeners(); ... | |
add(DisplayFactory.create(DisplayId.TITLE), gbc.clone()); | add(createDisplay(DisplayId.TITLE, BrowserWindow.Display.TITLE_HEIGHT), gbc.clone()); | private void initComponents() { final GridBagConstraints gbc = new GridBagConstraints(); setLayout(new GridBagLayout()); gbc.anchor = GridBagConstraints.NORTH; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.gridy = 0; gbc.ipady = 28; gbc.weightx = 1.0; add(Disp... |
add(DisplayFactory.create(DisplayId.STATUS), gbc.clone()); | add(createDisplay(DisplayId.STATUS, BrowserWindow.Display.STATUS_HEIGHT), gbc.clone()); | private void initComponents() { final GridBagConstraints gbc = new GridBagConstraints(); setLayout(new GridBagLayout()); gbc.anchor = GridBagConstraints.NORTH; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.gridy = 0; gbc.ipady = 28; gbc.weightx = 1.0; add(Disp... |
public void addListener(final XMPPContactListener xmppPresenceListener); | public void addListener(final XMPPArtifactListener xmppArtifactListener); | public void addListener(final XMPPContactListener xmppPresenceListener); |
public void removeListener(final XMPPContactListener xmppPresenceListener); | public void removeListener(final XMPPArtifactListener xmppArtifactListener); | public void removeListener(final XMPPContactListener xmppPresenceListener); |
public static boolean sendToTarget(Message message, String senderCompID, String targetCompID) throws SessionNotFound { return sendToTarget(message, senderCompID, targetCompID, ""); | public static boolean sendToTarget(Message message) throws SessionNotFound { return sendToTarget(message, ""); | public static boolean sendToTarget(Message message, String senderCompID, String targetCompID) throws SessionNotFound { return sendToTarget(message, senderCompID, targetCompID, ""); } |
} }); searchJTextField.getDocument().addDocumentListener(new DocumentListener() { public void changedUpdate(final DocumentEvent e) { searchJTextFieldChangedUpdate(e); } public void insertUpdate(final DocumentEvent e) { searchJTextFieldInsertUpdate(e); } public void removeUpdate(final DocumentEvent e) { searchJTextField... | private void initComponents() { searchJTextField = TextFactory.create(); // COLOR SearchText 237,241,244,255 searchJTextField.setBackground(new Color(237, 241, 244, 255)); // BORDER SearchText TopBottom 204,215,226,255 searchJTextField.setBorder(new TopBottomBorder(new Color(204, 215, 226, 255))); searchJTextFie... | |
synchronized(singletonLock) { return singleton.doCreateCheckBox(text, mnemonic); } | return SINGLETON.doCreateCheckBox(text, mnemonic); | public static JCheckBoxMenuItem createCheckBox(final String text, final Integer mnemonic) { synchronized(singletonLock) { return singleton.doCreateCheckBox(text, mnemonic); } } |
public void setString(String key, String value) { setString(DEFAULT_SESSION_ID, key, value); | public void setString(SessionID sessionID, String key, String value) { getOrCreateSessionProperties(sessionID).setProperty(key, value); | public void setString(String key, String value) { setString(DEFAULT_SESSION_ID, key, value); } |
public ScreenLogFactory(boolean incoming, boolean outgoing, boolean events) { this(incoming, outgoing, events, true); | public ScreenLogFactory(SessionSettings settings) { this(true, true, true); this.settings = settings; | public ScreenLogFactory(boolean incoming, boolean outgoing, boolean events) { this(incoming, outgoing, events, true); } |
this.logger = new Log4JWrapper(); | this.logger = new Log4JWrapper(getClass()); | protected AbstractModelImpl(final Session session) { super(); this.configurationSql = new ConfigurationSql(); this.logger = new Log4JWrapper(); this.session = session; } |
public double getBranchLength(int node); | public double getBranchLength(int node, boolean[] deleted); | public double getBranchLength(int node); |
final javax.swing.JLabel jLabel = (javax.swing.JLabel) e.getSource(); popupDelegate.initialize(this, jLabel.getX(), jLabel.getY() + jLabel.getHeight(), jLabel.getWidth(), jLabel.getHeight()); popupDelegate.showForSort(); | if (null != sortByDelegate) { final javax.swing.JLabel orderByJLabel = (javax.swing.JLabel) e.getSource(); final TabAvatarSortByPanel sortByPanel = new TabAvatarSortByPanel(); sortByPanel.setDelegate(sortByDelegate); sortByPanel.show(this, orderByJLabel.getX(), orderByJLabel.getY() + orderByJLabel.getHeight()); } | private void orderByJLabelMouseClicked(java.awt.event.MouseEvent e) {//GEN-FIRST:event_orderByJLabelMouseClicked final javax.swing.JLabel jLabel = (javax.swing.JLabel) e.getSource(); popupDelegate.initialize(this, jLabel.getX(), jLabel.getY() + jLabel.getHeight(), jLabel.getWidth(), jLa... |
public String getString(SessionID sessionID, String key) throws ConfigError, FieldConvertError { String value = getSessionProperties(sessionID).getProperty(key); if (value == null) { throw new ConfigError(key + " not defined"); } return value; | public String getString(String key) throws ConfigError, FieldConvertError { return getString(DEFAULT_SESSION_ID, key); | public String getString(SessionID sessionID, String key) throws ConfigError, FieldConvertError { String value = getSessionProperties(sessionID).getProperty(key); if (value == null) { throw new ConfigError(key + " not defined"); } return value; } |
public boolean getBool(SessionID sessionID, String key) throws ConfigError, FieldConvertError { try { return BooleanConverter.convert(getString(sessionID, key)); } catch (FieldConvertError e) { throw new ConfigError(e); } | public boolean getBool(String key) throws ConfigError, FieldConvertError { return getBool(DEFAULT_SESSION_ID, key); | public boolean getBool(SessionID sessionID, String key) throws ConfigError, FieldConvertError { try { return BooleanConverter.convert(getString(sessionID, key)); } catch (FieldConvertError e) { throw new ConfigError(e); } } |
SessionSchedule(int startDay, Calendar startTime, int endDay, Calendar endTime) { initialize(startDay, startTime, endDay, endTime); | SessionSchedule(SessionSettings settings, SessionID sessionID) throws ConfigError, FieldConvertError { boolean startDayPresent = settings.isSetting(sessionID, Session.SETTING_START_DAY); boolean endDayPresent = settings.isSetting(sessionID, Session.SETTING_END_DAY); if (startDayPresent && !endDayPresent) { throw new C... | SessionSchedule(int startDay, Calendar startTime, int endDay, Calendar endTime) { initialize(startDay, startTime, endDay, endTime); } |
this.modelTestCase = modelTestCase; | ModelTestCaseHelper(final ModelTestCase modelTestCase) { super(); this.modelTestCase = modelTestCase; } | |
"parity", "thinkparity.dyndns.org", 5223, "junit"); | "parity", "parity", "thinkparity.dyndns.org", 5223, "junit"); | public static ModelTestUser getJUnit() { return new ModelTestUser( "parity", "thinkparity.dyndns.org", 5223, "junit"); } |
public String getUsername() { return username; } | public String getUsername() { return username + "@" + serverHost; } | public String getUsername() { return username; } |
final int selectedIndex = jList.getSelectedIndex(); | public void reloadDocument(final Long documentId, final Boolean remoteReload) { final DisplayDocument displayDocument = getDisplayDocument(documentId); // if the display document is null; we can assume the document has been // deleted (it's not longer being created by the provider); so we find // the document and ... | |
jList.setSelectedIndex(selectedIndex); | public void reloadDocument(final Long documentId, final Boolean remoteReload) { final DisplayDocument displayDocument = getDisplayDocument(documentId); // if the display document is null; we can assume the document has been // deleted (it's not longer being created by the provider); so we find // the document and ... | |
final Integer modelIndex = jListModel.indexOf(listItem); jList.setSelectedIndex(modelIndex); | public void reloadDocument(final Long documentId, final Boolean remoteReload) { final DisplayDocument displayDocument = getDisplayDocument(documentId); // if the display document is null; we can assume the document has been // deleted (it's not longer being created by the provider); so we find // the document and ... | |
protected Avatar(final String l18nContext, final ScrollPolicy scrollPolicy, final Color background) { super(l18nContext, background); this.errors = new LinkedList<Throwable>(); this.scrollPolicy = scrollPolicy; | protected Avatar(final String l18nContext) { this(l18nContext, ScrollPolicy.NONE); | protected Avatar(final String l18nContext, final ScrollPolicy scrollPolicy, final Color background) { super(l18nContext, background); this.errors = new LinkedList<Throwable>(); this.scrollPolicy = scrollPolicy; } |
public FilterChain(final Filter<T> filter) { this.chain = new LinkedList<Filter<T>>(); addFilter(filter); } | public FilterChain() { this.chain = new HashSet<Filter<T>>(); } | public FilterChain(final Filter<T> filter) { this.chain = new LinkedList<Filter<T>>(); addFilter(filter); } |
public static ListItem create(final Message message) { return new SystemMessageListItem(message); | public static ListItem create(final Document document, final Boolean isKeyHolder) { return new DocumentListItem(document, isKeyHolder); | public static ListItem create(final Message message) { return new SystemMessageListItem(message); } |
return expanded.get(tabPanel); | return expanded.containsKey(tabPanel) ? expanded.get(tabPanel) : Boolean.FALSE; | private Boolean isExpanded(final TabPanel tabPanel) { return expanded.get(tabPanel); } |
final TabPanel containerPanel = getContainerPanel(container); containerPanel.setMouseOver(isExpanded(containerPanel)); | void syncContainer(final Long containerId, final Boolean remote) { debug(); final Container container = read(containerId); // remove the container from the panel list if (null == container) { removeContainerPanel(container); } else { if (containsContainerPane... | |
addContainerPanel(0, container); | addContainerPanel(0, expanded, container); | void syncContainer(final Long containerId, final Boolean remote) { debug(); final Container container = read(containerId); // remove the container from the panel list if (null == container) { removeContainerPanel(container); } else { if (containsContainerPane... |
addContainerPanel(indexOfContainerPanel, container); | addContainerPanel(indexOfContainerPanel, expanded, container); | void syncContainer(final Long containerId, final Boolean remote) { debug(); final Container container = read(containerId); // remove the container from the panel list if (null == container) { removeContainerPanel(container); } else { if (containsContainerPane... |
for (final TabPanel visiblePanel : visiblePanels) { if (!listModel.contains(visiblePanel)) { listModel.add(visiblePanels.indexOf(visiblePanel), visiblePanel); | for (int i = 0; i < visiblePanels.size(); i++) { if (listModel.contains(visiblePanels.get(i))) { listModel.remove(i); listModel.add(i, visiblePanels.get(i)); } else { listModel.add(i, visiblePanels.get(i)); | public void synchronize() { debug(); visiblePanels.clear(); for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); if (isExpanded(containerPanel)) { visiblePanels.add(versionsPanels.get(containerPanel)); } ... |
final TabPanel[] obsolutePanels = new TabPanel[listModel.size()]; listModel.copyInto(obsolutePanels); for (final TabPanel obsoletePanel : obsolutePanels) { if (!visiblePanels.contains(obsoletePanel)) { listModel.removeElement(obsoletePanel); | final TabPanel[] obsoletePanels = new TabPanel[listModel.size()]; listModel.copyInto(obsoletePanels); for (int i = 0; i < obsoletePanels.length; i++) { if (!visiblePanels.contains(obsoletePanels[i])) { listModel.removeElement(obsoletePanels[i]); | public void synchronize() { debug(); visiblePanels.clear(); for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); if (isExpanded(containerPanel)) { visiblePanels.add(versionsPanels.get(containerPanel)); } ... |
public Container read(final Long containerId) { return containerModel.read(containerId); | public List<Container> read() { return containerModel.read(); | public Container read(final Long containerId) { return containerModel.read(containerId); } |
versionsModel.addElement(new VersionCell( MessageFormat.format("Draft - {0} documents.", draft.getDocumentCount()))); | final List<VersionContentCell> contents = new ArrayList<VersionContentCell>(documents.size() + users.size()); | public void setDraft(final Container container, final ContainerDraft draft) { this.container = container; if (null != draft) { versionsModel.addElement(new VersionCell( MessageFormat.format("Draft - {0} documents.", draft.getDocumentCount()))); ... |
versionsContentModel.addElement(new VersionContentCell( MessageFormat.format("{0} - {1}", document.getName(), draft.getState(document)))); | contents.add(new VersionContentCell(document, draft.getState(document))); | public void setDraft(final Container container, final ContainerDraft draft) { this.container = container; if (null != draft) { versionsModel.addElement(new VersionCell( MessageFormat.format("Draft - {0} documents.", draft.getDocumentCount()))); ... |
versionsModel.addElement(new VersionCell(contents, draft)); | public void setDraft(final Container container, final ContainerDraft draft) { this.container = container; if (null != draft) { versionsModel.addElement(new VersionCell( MessageFormat.format("Draft - {0} documents.", draft.getDocumentCount()))); ... | |
versionsModel.addElement(new VersionCell(MessageFormat.format( "Version - {0,date,MMM d, yyyy h:mm a} - {1}", version .getCreatedOn().getTime(), publishedBy.getName(), publishedBy.getTitle(), publishedBy.getOrganization()))); | final List<VersionContentCell> contents = new ArrayList<VersionContentCell>(documents.size() + users.size()); | public void add(final ContainerVersion version, final List<Document> documents, final Map<User, ArtifactReceipt> users, final User publishedBy) { this.versions.add(version); this.documents.put(version, documents); this.users.put(version, users); this.publishedBy.put... |
versionsContentModel.addElement(new VersionContentCell( MessageFormat.format("{0}", document.getName()))); | contents.add(new VersionContentCell(version, document)); | public void add(final ContainerVersion version, final List<Document> documents, final Map<User, ArtifactReceipt> users, final User publishedBy) { this.versions.add(version); this.documents.put(version, documents); this.users.put(version, users); this.publishedBy.put... |
if (null == entry.getValue()) { versionsContentModel.addElement(new VersionContentCell( MessageFormat.format("{0}", entry.getKey().getName()))); } else { versionsContentModel.addElement(new VersionContentCell( MessageFormat.format( "{0} - {1,date,MMM d, yyyy h:mm a}", entry .getKey().getName(), entry.getValue() .getRec... | contents.add(new VersionContentCell(entry.getKey(), entry.getValue())); | public void add(final ContainerVersion version, final List<Document> documents, final Map<User, ArtifactReceipt> users, final User publishedBy) { this.versions.add(version); this.documents.put(version, documents); this.users.put(version, users); this.publishedBy.put... |
versionsModel.addElement(new VersionCell(contents, version, publishedBy)); | public void add(final ContainerVersion version, final List<Document> documents, final Map<User, ArtifactReceipt> users, final User publishedBy) { this.versions.add(version); this.documents.put(version, documents); this.users.put(version, users); this.publishedBy.put... | |
if(isLastItem()) { return new LeftBottomRightBorder(new Color(107, 111, 115, 255));} else { return new LeftRightBorder(new Color(107, 111, 115, 255)); } | return BorderFactory.createEmptyBorder(); | public Border getBorder() { if(isLastItem()) { return new LeftBottomRightBorder(new Color(107, 111, 115, 255));} else { return new LeftRightBorder(new Color(107, 111, 115, 255)); } } |
public Float getTextInsetFactor() { return BrowserConstants.PHI; } | public Float getTextInsetFactor() { return 3.0F; } | public Float getTextInsetFactor() { return BrowserConstants.PHI; } |
public Boolean isClosed() { return ArtifactUtil.isClosed(getId(), getType()); } | public Boolean isClosed() { return closed; } | public Boolean isClosed() { return ArtifactUtil.isClosed(getId(), getType()); } |
} else if (state.isLogonAlreadySent() && state.isLogonTimedOut()) { getLog().onEvent("Timed out waiting for logon response"); | state.incrNextTargetMsgSeqNum(); } } catch (FieldException e) { generateReject(message, e.getSessionRejectReason(), e.getField()); } catch (FieldNotFound e) { if (sessionID.getBeginString().compareTo(FixVersions.BEGINSTRING_FIX42) >= 0 && message.isApp()) { generateBusinessReject(message, BusinessRejectReason.CONDITION... | public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { getLog().onEvent("Initiated logout request"); generateLogout(state.getLogoutReason()); } } else { ... |
public RSS() { super("Crawler.RSS"); | public RSS(String name, String hostname, Integer port) { super("RSS." + name, hostname, port); | public RSS() { super("Crawler.RSS"); poller = new Poller(1); } |
public void airBrushReceiveMessage(Message msg) { | public boolean airBrushReceiveMessage(Message msg) { if (super.airBrushReceiveMessage(msg)) return true; | public void airBrushReceiveMessage(Message msg) { if (msg.type.equals("Feed.RSS")) { try { switchFeed(new URL(msg.content)); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } ... |
return false; | public void airBrushReceiveMessage(Message msg) { if (msg.type.equals("Feed.RSS")) { try { switchFeed(new URL(msg.content)); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } ... | |
s.setID(item.getGuid().getLocation().replaceAll("[^\\p{Print}]", "")); s.setAuthor(item.getCreator().replaceAll("[^\\p{Print}]", "")); s.setTitle(item.getTitle().replaceAll("[^\\p{Print}]", "")); s.setContent(item.getDescription().replaceAll("[^\\p{Print}]", "")); s.setPublicationDate(item.getDate()); | try { s.setID(item.getGuid().getLocation() .replaceAll("[^\\p{Print}]", "")); } catch (Exception e) { System.out.println("Something went wicked."); } try { s.setAuthor(item.getCreator().replaceAll("[^\\p{Print}]", "")); } catch (Exception e) { System.out.println("Something went wicked."); } try { s.setTitle(item.getTit... | private void handleItem(ItemIF item) { Story s = new Story(); s.setID(item.getGuid().getLocation().replaceAll("[^\\p{Print}]", "")); s.setAuthor(item.getCreator().replaceAll("[^\\p{Print}]", "")); s.setTitle(item.getTitle().replaceAll("[^\\p{Print}]", "")); s.setContent(item.getDe... |
public CrawlerObject(String moduleName) { super(moduleName); | public CrawlerObject(String moduleName, String hostname, Integer port) { super("Crawler." + moduleName, hostname, port); | public CrawlerObject(String moduleName) { super(moduleName); } |
public void airBrushReceiveMessage(Message msg); | public boolean airBrushReceiveMessage(Message msg); | public void airBrushReceiveMessage(Message msg); |
public void setPublicationDate(String value) { | public void setPublicationDate(Date value) { | public void setPublicationDate(String value) { setProperty(keyPublicationDate, value); } |
final Calendar publishedOn) throws IOException { | final Calendar publishedOn) { | void publish(final ContainerVersion container, final Map<DocumentVersion, String> documents, final List<JabberId> publishTo, final JabberId publishedBy, final Calendar publishedOn) throws IOException { logger.logApiId(); logger.logVariable("container", container); ... |
logger.logInfo("Remote event {0}.", packet.getClass().getName()); | protected <U extends AbstractThinkParityIQ> void addEventHandler( final XMPPEventHandler<U> eventHandler, final Class<? extends U> queryType) { xmppCore.addPacketListener( new PacketListener() { @SuppressWarnings("unchecked") public v... | |
public final void setParameter(final String listName, final String itemName, final List<JabberId> values) { final List<XMPPMethodParameter> parameters = new ArrayList<XMPPMethodParameter>(values.size()); for (final JabberId value : values) { parameters.add(new XMPPMethodParameter(itemName, JabberId.class, value)); } th... | public final void setParameter(final String name, final ArtifactType value) { parameters.add(new XMPPMethodParameter(name, ArtifactType.class, value)); | public final void setParameter(final String listName, final String itemName, final List<JabberId> values) { final List<XMPPMethodParameter> parameters = new ArrayList<XMPPMethodParameter>(values.size()); for (final JabberId value : values) { parameters.add(new XMPPMethodParameter... |
datum = new Fixture(new UpstreamHandler(server, session, streamId, new FileInputStream(streamFile))); | datum = new Fixture(new UpstreamHandler(server, session, streamId, streamFile.length(), new FileInputStream(streamFile))); | protected void setUp() throws Exception { super.setUp(); final File workingDirectory = new File(getOutputDirectory(), "working"); Assert.assertTrue(workingDirectory.mkdir(), "Could not create directory {0}.", workingDirectory); final File streamFile = getInputFiles()[0]; final Str... |
protected File getOutputDirectory() { | protected File getOutputDirectory(final String child) { | protected File getOutputDirectory() { final File outputDirectory = new File(getTestSession().getOutputDirectory(), getName()); if (!outputDirectory.exists()) { Assert.assertTrue(outputDirectory.mkdir(), "Could not create directory {0}.", outputDirectory); } return o... |
new File(getTestSession().getOutputDirectory(), getName()); | new File(getOutputDirectory(), child); | protected File getOutputDirectory() { final File outputDirectory = new File(getTestSession().getOutputDirectory(), getName()); if (!outputDirectory.exists()) { Assert.assertTrue(outputDirectory.mkdir(), "Could not create directory {0}.", outputDirectory); } return o... |
final InputStream input) { | final Long streamSize, final InputStream input) { | UpstreamHandler(final StreamServer streamServer, final StreamSession streamSession, final String streamId, final InputStream input) { super(); this.logger = new Log4JWrapper(); this.streamServer = streamServer; this.streamSession = streamSession; this.streamI... |
this.streamSize = streamSize; | UpstreamHandler(final StreamServer streamServer, final StreamSession streamSession, final String streamId, final InputStream input) { super(); this.logger = new Log4JWrapper(); this.streamServer = streamServer; this.streamSession = streamSession; this.streamI... | |
StreamUtil.copy(input, output, streamSession.getBufferSize()); | while((len = input.read(b)) > 0) { logger.logDebug("UPSTREAM RECEIVED {0}/{1}", total += len, streamSize); output.write(b, 0, len); output.flush(); } | public void run() { logger.logApiId(); try { final OutputStream output = streamServer.openOutputStream(streamSession, streamId); try { StreamUtil.copy(input, output, streamSession.getBufferSize()); } finally { output.close()... |
output.flush(); | public void run() { logger.logApiId(); try { final OutputStream output = streamServer.openOutputStream(streamSession, streamId); try { StreamUtil.copy(input, output, streamSession.getBufferSize()); } finally { output.close()... | |
nf = new DecimalFormat(format, new DecimalFormatSymbols(getLocale())); | nf = new DecimalFormat(format, new DecimalFormatSymbols(locale)); | public NumberFormat getNumberFormat(String format, Locale locale) { if (format == null) { return null; } NumberFormat nf = null; int style = getStyleAsInt(format); if (style < 0) { // we have a custom format nf = new DecimalFormat(... |
searchJTextFieldKeyTyped(e); | searchJTextFieldActionPerformed(e); | private void initComponents() { searchJTextField = TextFactory.create(); // COLOR SearchText 237,241,244,255 searchJTextField.setBackground(new Color(237, 241, 244, 255)); // BORDER SearchText TopBottom 204,215,226,255 searchJTextField.setBorder(new TopBottomBorder(new Color(204, 215, 226, 255))); searchJTextFie... |
searchLeftJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { searchLeftJLabelMouseClicked(e); } }); | private void initComponents() { searchJTextField = TextFactory.create(); // COLOR SearchText 237,241,244,255 searchJTextField.setBackground(new Color(237, 241, 244, 255)); // BORDER SearchText TopBottom 204,215,226,255 searchJTextField.setBorder(new TopBottomBorder(new Color(204, 215, 226, 255))); searchJTextFie... | |
searchJTextFieldKeyTyped(e); | searchJTextFieldActionPerformed(e); | public void actionPerformed(final ActionEvent e) { searchJTextFieldKeyTyped(e); } |
public void artifactClosed(final UUID artifactUniqueId); | public void artifactClosed(final UUID artifactUniqueId, final JabberId artifactClosedBy); | public void artifactClosed(final UUID artifactUniqueId); |
public void setUtcTimeStamp(int field, Date value, boolean includeMilliseconds) { String s = FieldValueConverter.UtcTimestampConverter.convert(value, includeMilliseconds); setField(new StringField(field, s)); | public void setUtcTimeStamp(int field, Date value) { setUtcTimeStamp(field, value, false); | public void setUtcTimeStamp(int field, Date value, boolean includeMilliseconds) { String s = FieldValueConverter.UtcTimestampConverter.convert(value, includeMilliseconds); setField(new StringField(field, s)); } |
public void audit(final ArchiveEvent event) throws HypersonicException; | public void audit(final AddTeamMemberEvent event) throws HypersonicException; | public void audit(final ArchiveEvent event) throws HypersonicException; |
logger.debug(toolTip.getSize()); logger.debug(toolTip.getLocation()); | public void start() { logger.debug(toolTip.getSize()); logger.debug(toolTip.getLocation()); timer.start(); } | |
logger.debug(toolTip.getSize()); logger.debug(toolTip.getLocation()); | public void stop() { logger.debug(toolTip.getSize()); logger.debug(toolTip.getLocation()); timer.stop(); } | |
protected User getUser(final String username) throws ParityException { | protected User getUser(final String simpleUsername) throws ParityException { | protected User getUser(final String username) throws ParityException { final SessionModel sessionModel = getSessionModel(); Assert.assertTrue("getUser(String)", sessionModel.isLoggedIn()); final Collection<User> rosterEntries = sessionModel.getRosterEntries(); for(User user : rosterEntries) { if(user.getUsername... |
if(user.getUsername().equals(username)) { return user; } | if(user.getSimpleUsername().equals(simpleUsername)) { return user; } | protected User getUser(final String username) throws ParityException { final SessionModel sessionModel = getSessionModel(); Assert.assertTrue("getUser(String)", sessionModel.isLoggedIn()); final Collection<User> rosterEntries = sessionModel.getRosterEntries(); for(User user : rosterEntries) { if(user.getUsername... |
this.comparator = new StringComparator(doCompareAscending); | NameComparator(final Boolean doCompareAscending) { super(doCompareAscending); } | |
public int compare(Artifact o1, Artifact o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } | public int compare(final Artifact o1, final Artifact o2) { final int compareResult = comparator.compare(o1.getName(), o2.getName()); if (0 == compareResult) { return subCompare(o1, o2); } else { return compareResult; } | public int compare(Artifact o1, Artifact o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } } |
new Thread(new StreamSocketDelegate(streamServer, clientSockets.peek()), clientSockets.peek().getRemoteSocketAddress().toString()).start(); | final StreamSocketDelegate delegate = new StreamSocketDelegate(streamServer, clientSockets.peek()); new Thread(delegate, delegate.getName()).start(); | public void run() { logger.logApiId(); logger.logVariable("run", run); try { while (run) { started = true; synchronized (this) { notifyAll(); } // attempt to establish a socket connection tr... |
this.logger = new Log4JWrapper(); | StreamSocketDelegate(final StreamServer streamServer, final Socket socket) throws IOException { super(); this.socket = socket; this.streamServer = streamServer; } | |
g2.drawImage(Images.BrowserTitle.HALO, leftLocation.x - 6, leftLocation.y - 7, null); | g2.drawImage(Images.BrowserTitle.HALO, leftLocation.x - 4, leftLocation.y - 4, null); | protected void paintComponent(final Graphics g) { super.paintComponent(g); if (searchJTextField.hasFocus()) { final Graphics2D g2 = (Graphics2D) g.create(); try { final Point leftLocation = leftJLabel.getLocation(); g2.drawImage(Images.BrowserTitle.H... |
public static String extract(final JTextField jTextField) { synchronized(singletonLock) { return singleton.doExtract(jTextField); } | public static Boolean extract(final JCheckBox jCheckBox) { synchronized(singletonLock) { return singleton.doExtract(jCheckBox); } | public static String extract(final JTextField jTextField) { synchronized(singletonLock) { return singleton.doExtract(jTextField); } } |
public FieldException(int sessionRejectReason, int field) { | public FieldException(int sessionRejectReason) { | public FieldException(int sessionRejectReason, int field) { this.sessionRejectReason = sessionRejectReason; this.field = field; } |
this.field = field; | this.field = -1; | public FieldException(int sessionRejectReason, int field) { this.sessionRejectReason = sessionRejectReason; this.field = field; } |
public static double convert(String value) throws FieldConvertError { try { Matcher matcher = doublePattern.matcher(value); if (!matcher.matches()) { throw new NumberFormatException(); } return Double.parseDouble(value); } catch (NumberFormatException e) { throw new FieldConvertError("invalid double value: " + value); | public static String convert(double d) { synchronized (doubleFormat) { return doubleFormat.format(d); | public static double convert(String value) throws FieldConvertError { try { Matcher matcher = doublePattern.matcher(value); if (!matcher.matches()) { throw new NumberFormatException(); } return Double.parseDouble(value); } catch (NumberFormatE... |
public static Date convert(String value) throws FieldConvertError { verifyFormat(value); String dateString = value.substring(0, 8); Calendar c = getCalendarForDay(value, dateString); long timeOffset = (parseLong(value.substring(9, 11)) * 3600000L) + (parseLong(value.substring(12, 14)) * 60000L) + (parseLong(value.subst... | public static String convert(Date d, boolean includeMilliseconds) { return getFormatter(includeMilliseconds).format(d); | public static Date convert(String value) throws FieldConvertError { verifyFormat(value); String dateString = value.substring(0, 8); Calendar c = getCalendarForDay(value, dateString); long timeOffset = (parseLong(value.substring(9, 11)) * 3600000L) + (parseLong(value.substr... |
reloadKeys(); | public void reload() { jListModel.clear(); reloadKeys(); reloadSystemMessages(); reloadDocuments(); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.