bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private JMenuItem getOpenMenuItem() { if(null == openMenuItem) { openMenuItem = createJMenuItem(getString("Open"), getMnemonic("OpenMnemonic"), getOpenMenuItemActionListener()); } return openMenuItem; } | private JMenuItem getOpenMenuItem() { if(null == openMenuItem) { openMenuItem = createJMenuItem(getString("Open"), getMnemonic("Open"), getOpenMenuItemActionListener()); } return openMenuItem; } | 1,113,079 |
private JMenuItem getRequestKeyMenuItem() { if(null == requestKeyMenuItem) { requestKeyMenuItem = createJMenuItem(getString("RequestKey"), getMnemonic("RequestKeyMnemonic"), getRequestKeyMenuItemActionListener()); } return requestKeyMenuItem; } | private JMenuItem getRequestKeyMenuItem() { if(null == requestKeyMenuItem) { requestKeyMenuItem = createJMenuItem(getString("RequestKey"), getMnemonic("RequestKey"), getRequestKeyMenuItemActionListener()); } return requestKeyMenuItem; } | 1,113,080 |
private JMenuItem getSendKeyMenuItem() { if(null == sendKeyMenuItem) { sendKeyMenuItem = createJMenuItem(getString("SendKey"), getMnemonic("SendKeyMnemonic"), getSendKeyMenuItemActionListener()); } return sendKeyMenuItem; } | private JMenuItem getSendKeyMenuItem() { if(null == sendKeyMenuItem) { sendKeyMenuItem = createJMenuItem(getString("SendKey"), getMnemonic("SendKey"), getSendKeyMenuItemActionListener()); } return sendKeyMenuItem; } | 1,113,081 |
private JMenuItem getSendMenuItem() { if(null == sendMenuItem) { sendMenuItem = createJMenuItem(getString("Send"), getMnemonic("SendMnemonic"), getSendMenuItemActionListener()); } return sendMenuItem; } | private JMenuItem getSendMenuItem() { if(null == sendMenuItem) { sendMenuItem = createJMenuItem(getString("Send"), getMnemonic("Send"), getSendMenuItemActionListener()); } return sendMenuItem; } | 1,113,082 |
SystemMessageModelImpl(final Workspace workspace) { super(workspace, L18nContext.SYSTEM_MESSAGE); this.defaultComparator = new ComparatorBuilder().createSystemMessageDefault(); this.systemMessageIO = IOFactory.getDefault().createSystemMessageHandler(); } | SystemMessageModelImpl(final Workspace workspace) { super(workspace); this.defaultComparator = new ComparatorBuilder().createSystemMessageDefault(); this.systemMessageIO = IOFactory.getDefault().createSystemMessageHandler(); } | 1,113,085 |
protected String getString(final String localKey, final Object[] arguments) { return l18n.getString(localKey, arguments); } | protected String getString(final String localKey, final Object[] arguments) { return l18n.getString(localKey, arguments); } | 1,113,086 |
Session(final SessionManager sessionManager, final Connection connection) { super(); this.connection = connection; this.logger = new Log4JWrapper(); this.id = JVMUniqueId.nextId(); this.sessionManager = sessionManager; } | Session(final SessionManager sessionManager, final Connection connection) { super(); this.connection = connection; this.id = JVMUniqueId.nextId(); this.sessionManager = sessionManager; } | 1,113,087 |
public void execute(final String sql) { assertOpen("execute(String)"); logger.logVariable("sql", sql); try { final Statement s = connection.createStatement(); s.execute(sql); commit(); } catch(final SQLException sqlx) { rollback(); throw new HypersonicException(sqlx); } } | public void execute(final String sql) { assertOpen("execute(String)"); logger.logVariable("sql", sql); try { final Statement s = connection.createStatement(); s.execute(sql); commit(); } catch(final SQLException sqlx) { rollback(); throw new HypersonicException(sqlx); } } | 1,113,088 |
public AuditEventType getAuditEventTypeFromInteger(final String columnName) { assertOpen("getAuditEventTypeFromInteger(String)"); assertOpenResult("getAuditEventTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); r... | public AuditEventType getAuditEventTypeFromInteger(final String columnName) { assertOpen("getAuditEventTypeFromInteger(String)"); assertOpenResult("getAuditEventTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); r... | 1,113,089 |
public Boolean getBoolean(final String columnName) { assertOpen("[GET BOOLEAN]"); assertOpenResult("[GET BOOLEAN]"); logger.logVariable("columnName", columnName); try { final Boolean value = resultSet.getBoolean(columnName); return resultSet.wasNull() ? null : value... | public Boolean getBoolean(final String columnName) { assertOpen("[GET BOOLEAN]"); assertOpenResult("[GET BOOLEAN]"); logger.logVariable("columnName", columnName); try { final Boolean value = resultSet.getBoolean(columnName); return resultSet.wasNull() ? null : value... | 1,113,091 |
public byte[] getBytes(final String columnName) { assertOpen("getBytes(String)"); assertOpenResult("getBytes(String)"); try { final byte[] value = resultSet.getBytes(columnName); return resultSet.wasNull() ? null : value; } catch (final SQLException sqlx) { throw new HypersonicE... | public byte[] getBytes(final String columnName) { assertOpen("getBytes(String)"); assertOpenResult("getBytes(String)"); try { final byte[] value = resultSet.getBytes(columnName); return resultSet.wasNull() ? null : value; } catch (final SQLException sqlx) { throw new HypersonicE... | 1,113,093 |
public EMail getEMail(final String columnName) { assertOpen("getCalendar(String)"); assertOpenResult("getCalendar(String)"); try { final String value = resultSet.getString(columnName); if (resultSet.wasNull()) { return null; } else { return EMailB... | public EMail getEMail(final String columnName) { assertOpen("getCalendar(String)"); assertOpenResult("getCalendar(String)"); try { final String value = resultSet.getString(columnName); if (resultSet.wasNull()) { return null; } else { return EMailB... | 1,113,095 |
public EMail getEMail(final String columnName) { assertOpen("getCalendar(String)"); assertOpenResult("getCalendar(String)"); try { final String value = resultSet.getString(columnName); if (resultSet.wasNull()) { return null; } else { return EMailB... | public EMail getEMail(final String columnName) { assertOpen("getCalendar(String)"); assertOpenResult("getCalendar(String)"); try { final String value = resultSet.getString(columnName); if (resultSet.wasNull()) { return null; } else { return EMailB... | 1,113,096 |
public ArtifactFlag getFlagFromInteger(final String columnName) { assertOpen("getFlagFromInteger(String)"); assertOpenResult("getFlagFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); return resultSet.wasNull() ? null... | public ArtifactFlag getFlagFromInteger(final String columnName) { assertOpen("getFlagFromInteger(String)"); assertOpenResult("getFlagFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); return resultSet.wasNull() ? null... | 1,113,097 |
public ArtifactFlag getFlagFromString(final String columnName) { assertOpen("getFlagFromString(String)"); assertOpenResult("getFlagFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? null ... | public ArtifactFlag getFlagFromString(final String columnName) { assertOpen("getFlagFromString(String)"); assertOpenResult("getFlagFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? null ... | 1,113,099 |
public InputStream getInputStream(final String columnName) { assertOpen("[GET INPUT STREAM]"); assertOpenResult("[GET INPUT STREAM]"); logger.logVariable("columnName", columnName); try { final InputStream value = resultSet.getBinaryStream(columnName); return resultS... | public InputStream getInputStream(final String columnName) { assertOpen("[GET INPUT STREAM]"); assertOpenResult("[GET INPUT STREAM]"); logger.logVariable("columnName", columnName); try { final InputStream value = resultSet.getBinaryStream(columnName); return resultS... | 1,113,101 |
public void getMetaDataTables() { assertOpen(); assertMetaData(); try { resultSet = metaData.getTables(null, "PUBLIC", null, new String[] {"TABLE"}); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } } | public void getMetaDataTables() { assertOpen(); assertMetaData(); try { resultSet = metaData.getTables(null, "PUBLIC", null, new String[] {"TABLE"}); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } } | 1,113,103 |
public MetaDataType getMetaDataTypeFromInteger(final String columnName) { assertOpen("getMetaDataTypeFromInteger(String)"); assertOpenResult("getMetaDataTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); return re... | public MetaDataType getMetaDataTypeFromInteger(final String columnName) { assertOpen("getMetaDataTypeFromInteger(String)"); assertOpenResult("getMetaDataTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName); return re... | 1,113,104 |
public ArtifactState getStateFromString(final String columnName) { assertOpen("getStateFromString(String)"); assertOpenResult("getStateFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? n... | public ArtifactState getStateFromString(final String columnName) { assertOpen("getStateFromString(String)"); assertOpenResult("getStateFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? n... | 1,113,106 |
public SystemMessageType getSystemMessageTypeFromInteger( final String columnName) { assertOpen("getSystemMessageTypeFromInteger(String)"); assertOpenResult("getSystemMessageTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName... | public SystemMessageType getSystemMessageTypeFromInteger( final String columnName) { assertOpen("getSystemMessageTypeFromInteger(String)"); assertOpenResult("getSystemMessageTypeFromInteger(String)"); logger.logVariable("columnName", columnName); try { final Integer value = resultSet.getInt(columnName... | 1,113,108 |
public ArtifactType getTypeFromString(final String columnName) { assertOpen("getTypeFromString(String)"); assertOpenResult("getTypeFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? null ... | public ArtifactType getTypeFromString(final String columnName) { assertOpen("getTypeFromString(String)"); assertOpenResult("getTypeFromString(String)"); logger.logVariable("columnName", columnName); try { final String value = resultSet.getString(columnName); return resultSet.wasNull() ? null ... | 1,113,110 |
public void openMetaData() { assertOpen("getMetaData"); try { metaData = connection.getMetaData(); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } } | public void openMetaData() { assertConnectionIsOpen(); try { metaData = connection.getMetaData(); } catch (final SQLException sqlx) { throw new HypersonicException(sqlx); } } | 1,113,112 |
public void setBoolean(final Integer index, final Boolean value) { assertOpen("setBoolean(Integer,Boolean)"); assertPreparedStatement("setBoolean(Integer,Boolean)"); logIndexAndValue(index, value); try { preparedStatement.setBoolean(index, value); } catch(final SQLException sqlx) { t... | public void setBoolean(final Integer index, final Boolean value) { assertOpen("setBoolean(Integer,Boolean)"); assertPreparedStatement("setBoolean(Integer,Boolean)"); logIndexAndValue(index, value); try { preparedStatement.setBoolean(index, value); } catch(final SQLException sqlx) { t... | 1,113,113 |
public void setBytes(final Integer index, final byte[] value) { assertOpen("setBytes(Integer,Byte[])"); assertPreparedStatement("setBytes(Integer,Byte[])"); logIndexAndValue(index, value); try { preparedStatement.setBytes(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sql... | public void setBytes(final Integer index, final byte[] value) { assertOpen("setBytes(Integer,Byte[])"); assertPreparedStatement("setBytes(Integer,Byte[])"); logIndexAndValue(index, value); try { preparedStatement.setBytes(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sql... | 1,113,114 |
public void setEMail(final Integer index, final EMail value) { assertOpen("setEMail(Integer,EMail)"); assertPreparedStatement("setEMail(Integer,EMail)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException... | public void setEMail(final Integer index, final EMail value) { assertOpen("setEMail(Integer,EMail)"); assertPreparedStatement("setEMail(Integer,EMail)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch (final SQLException... | 1,113,115 |
public void setFlagAsInteger(final Integer index, final ArtifactFlag value) { assertOpen("setFlagAsInteger(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsInteger(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLExcept... | public void setFlagAsInteger(final Integer index, final ArtifactFlag value) { assertOpen("setFlagAsInteger(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsInteger(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLExcept... | 1,113,116 |
public void setFlagAsString(final Integer index, final ArtifactFlag value) { assertOpen("setFlagAsString(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsString(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLExc... | public void setFlagAsString(final Integer index, final ArtifactFlag value) { assertOpen("setFlagAsString(Integer,ArtifactFlag)"); assertPreparedStatement("setFlagAsString(Integer,ArtifactFlag)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLExc... | 1,113,117 |
public void setInt(final Integer index, final Integer value) { assertOpen("setInt(Integer,Integer)"); assertPreparedStatement("setInt(Integer,Integer)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } } | public void setInt(final Integer index, final Integer value) { assertOpen("setInt(Integer,Integer)"); assertPreparedStatement("setInt(Integer,Integer)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value); } catch(final SQLException sqlx) { throw new HypersonicException(sqlx); } } | 1,113,118 |
public void setMetaDataAsString(final Integer index, final MetaData value) { assertOpen("setMetaDataAsString(Integer,MetaData)"); assertPreparedStatement("setMetaDataAsString(Integer,MetaData)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQL... | public void setMetaDataAsString(final Integer index, final MetaData value) { assertOpen("setMetaDataAsString(Integer,MetaData)"); assertPreparedStatement("setMetaDataAsString(Integer,MetaData)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQL... | 1,113,119 |
public void setQualifiedUsername(final Integer index, final JabberId value) { assertOpen("Database session is not open."); assertPreparedStatement("Prepared statement has not been set."); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.getQualifiedUsername()); } catch(final SQ... | public void setQualifiedUsername(final Integer index, final JabberId value) { assertOpen("Database session is not open."); assertPreparedStatement("Prepared statement has not been set."); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.getQualifiedUsername()); } catch(final SQ... | 1,113,120 |
public void setStateAsInteger(final Integer index, final ArtifactState value) { assertOpen("setStateAsInteger(Integer,ArtifactState)"); assertPreparedStatement("setStateAsInteger(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final ... | public void setStateAsInteger(final Integer index, final ArtifactState value) { assertOpen("setStateAsInteger(Integer,ArtifactState)"); assertPreparedStatement("setStateAsInteger(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final ... | 1,113,121 |
public void setStateAsString(final Integer index, final ArtifactState value) { assertOpen("setStateAsString(Integer,ArtifactState)"); assertPreparedStatement("setStateAsString(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toStrin... | public void setStateAsString(final Integer index, final ArtifactState value) { assertOpen("setStateAsString(Integer,ArtifactState)"); assertPreparedStatement("setStateAsString(Integer,ArtifactState)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toStrin... | 1,113,122 |
public void setStream(final Integer index, final InputStream stream, final Integer streamLength) { assertOpen(""); assertPreparedStatement(""); try { preparedStatement.setBinaryStream(index, stream, streamLength); } catch (final SQLException sqlx) { throw... | public void setStream(final Integer index, final InputStream stream, final Integer streamLength) { assertOpen(""); assertPreparedStatement(""); try { preparedStatement.setBinaryStream(index, stream, streamLength); } catch (final SQLException sqlx) { throw... | 1,113,123 |
public void setStream(final Integer index, final InputStream stream, final Integer streamLength) { assertOpen(""); assertPreparedStatement(""); try { preparedStatement.setBinaryStream(index, stream, streamLength); } catch (final SQLException sqlx) { throw... | public void setStream(final Integer index, final InputStream stream, final Integer streamLength) { assertOpen(""); assertPreparedStatement(""); try { preparedStatement.setBinaryStream(index, value, valueLength); } catch (final SQLException sqlx) { throw n... | 1,113,124 |
public void setTypeAsInteger(final Integer index, final ArtifactType value) { assertOpen("setTypeAsInteger(Integer,ArtifactType)"); assertPreparedStatement("setTypeAsInteger(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLExc... | public void setTypeAsInteger(final Integer index, final ArtifactType value) { assertOpen("setTypeAsInteger(Integer,ArtifactType)"); assertPreparedStatement("setTypeAsInteger(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setInt(index, value.getId()); } catch(final SQLExc... | 1,113,125 |
public void setTypeAsString(final Integer index, final ArtifactType value) { assertOpen("setTypeAsString(Integer,ArtifactType)"); assertPreparedStatement("setTypeString(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLExcep... | public void setTypeAsString(final Integer index, final ArtifactType value) { assertOpen("setTypeAsString(Integer,ArtifactType)"); assertPreparedStatement("setTypeString(Integer,ArtifactType)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLExcep... | 1,113,126 |
public void setUniqueId(final Integer index, final UUID value) { assertOpen("setUniqueId(Integer,UUID)"); assertPreparedStatement("setUniqueId(Integer,UUID)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicE... | public void setUniqueId(final Integer index, final UUID value) { assertOpen("setUniqueId(Integer,UUID)"); assertPreparedStatement("setUniqueId(Integer,UUID)"); logIndexAndValue(index, value); try { preparedStatement.setString(index, value.toString()); } catch(final SQLException sqlx) { throw new HypersonicE... | 1,113,127 |
public XMPPMethodResponse execute(final XMPPConnection xmppConnection) { // add an executed on parameter setParameter(Xml.All.EXECUTED_ON, DateUtil.getInstance()); // create a collector for the response final PacketCollector idCollector = createPacketCollector(xmppConnection); // ... | public XMPPMethodResponse execute(final XMPPConnection xmppConnection) { // add an executed on parameter setParameter(Xml.All.EXECUTED_ON, DateUtil.getInstance()); // create a collector for the response final PacketCollector idCollector = createPacketCollector(xmppConnection); // ... | 1,113,128 |
protected LinkTool copyWith(String uri) { LinkTool copy = duplicate(); copy.uri = uri; return copy; } | protected LinkTool copyWith(QueryPair pair) { LinkTool copy = duplicate(); copy.uri = uri; return copy; } | 1,113,129 |
protected LinkTool copyWith(String uri) { LinkTool copy = duplicate(); copy.uri = uri; return copy; } | protected LinkTool copyWith(String uri) { LinkTool copy = duplicate(); if (copy.queryData != null) { copy.queryData = (ArrayList)this.queryData.clone(); } else { copy.queryData = new ArrayList(); } copy.queryData.add(pair); return copy; } | 1,113,130 |
public List<DocumentVersion> readArchiveDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); | public List<DocumentVersion> readArchiveDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); | 1,113,133 |
public List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); | public List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId); | 1,113,134 |
void initialize(final StreamSession session, final String streamId) { authenticate(session); fileServer.initialize(session, streamId); socketServer.initialize(session, streamId); } | void initialize(final StreamSession session, final String streamId) { authenticate(session); fileServer.initialize(session, streamId); socketServer.initialize(session, streamId); } | 1,113,135 |
void destroy(final StreamSession session, final String streamId) { authenticate(session); fileServer.destroy(session, streamId); socketServer.destroy(session, streamId); } | void destroy(final StreamSession session) { authenticate(session); fileServer.destroy(session, streamId); socketServer.destroy(session, streamId); } | 1,113,136 |
void destroy(final StreamSession session, final String streamId) { authenticate(session); fileServer.destroy(session, streamId); socketServer.destroy(session, streamId); } | void destroy(final StreamSession session, final String streamId) { authenticate(session); fileServer.destroy(session, streamId); socketServer.destroy(session, streamId); } | 1,113,137 |
public void fireSelection() { getController().selectDocument(getDocumentId()); getController().displayDocumentHistoryListAvatar(); } | public void fireSelection() { getController().selectDocument(getDocumentId()); getController().displayDocumentHistoryAvatar(); } | 1,113,138 |
<T extends XMPPEvent> void handleEvent(final T xmppEvent) { logger.pushContext(new Log4JContext() { public String getContext() { return xmppCore.getUserId().getUsername(); } }); logger.logVariable("xmppEvent", xmppEvent); final List<XMPPEventListener<... | <T extends XMPPEvent> void handleEvent(final T xmppEvent) { logger.pushContext(new Log4JContext() { public String getContext() { return xmppCore.getUserId().getUsername(); } }); logger.logVariable("xmppEvent", xmppEvent); final List<XMPPEventListener<... | 1,113,139 |
private void deleteProfiles(final FileSystem profileFileSystem) { final File[] profileDirectories = profileFileSystem.list("/", new FileFilter() { public boolean accept(final File pathname) { return pathname.getName().startsWith(displayName); } }, Boolean.FALSE); ... | private void deleteProfiles(final FileSystem profileFileSystem) { final File[] profileDirectories = profileFileSystem.list("/", new FileFilter() { public boolean accept(final File pathname) { return pathname.getName().startsWith(displayName); } }, Boolean.FALSE); ... | 1,113,140 |
public Document(final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content, final String contentChecksum) { super(null, name, description, createdOn, createdBy, keyHolder, id); this.directory... | public Document(final String name, final Calendar createdOn, final String createdBy, final String keyHolder, final String description, final File directory, final UUID id, final byte[] content, final String contentChecksum) { super(null, name, description, createdOn, createdBy, id); this.directory = director... | 1,113,141 |
public File lookupXmlFile(final UUID id) { final String xmlFileAbsolutePath = idToXmlFileLookup.get(id.toString()); if(null == xmlFileAbsolutePath) { return null; } else { return new File(xmlFileAbsolutePath); } } | public File lookupXmlFile(final UUID id) { final String xmlFileAbsolutePath = idToXmlFileLookup.get(id.toString()); if(null == xmlFileAbsolutePath) { return null; } else { return new File(xmlFileAbsolutePath); } } | 1,113,142 |
protected quickfix.Session getQuickFixSession(Session nettySession, Message message) { quickfix.Session quickfixSession = getQuickFixSession(nettySession); if (quickfixSession == null) { // No QF session for this Netty session, SessionID sessionID = getSessionID(message, true); ... | protected quickfix.Session getQuickFixSession(Session nettySession, Message message) { quickfix.Session quickfixSession = getQuickFixSession(nettySession); if (quickfixSession == null) { // No QF session for this Netty session, SessionID sessionID = getSessionID(message, true); ... | 1,113,143 |
void index(final ArtifactIndex index) throws ParityException { logger.info("[LMODEL] [INDEX] [INDEX ARTIFACT]"); logger.debug(index); final InternalSessionModel iSModel = getInternalSessionModel(); final List<JabberId> jabberIds = new LinkedList<JabberId>(); jabberIds.add(index.getCreatedBy()); jabberIds.add(ind... | void index(final ArtifactIndex index) throws ParityException { logger.info("[LMODEL] [INDEX] [INDEX ARTIFACT]"); logger.debug(index); final InternalSessionModel iSModel = getInternalSessionModel(); final List<JabberId> jabberIds = new LinkedList<JabberId>(); jabberIds.add(index.getCreatedBy()); jabberIds.add(ind... | 1,113,144 |
private IndexReader openIndexReader() throws ParityException { try { return IndexReader.open(workspace.getIndexDirectory()); } catch(final IOException iox) { logger.error("Could not open index.", iox); logger.error(workspace.getIndexDirectory()); throw ParityErrorTranslator.translate(iox); } } | private IndexReader openIndexReader() throws ParityException { try { return IndexReader.open(getIndexDirectory()); } catch(final IOException iox) { logger.error("Could not open index.", iox); logger.error(workspace.getIndexDirectory()); throw ParityErrorTranslator.translate(iox); } } | 1,113,145 |
private IndexReader openIndexReader() throws ParityException { try { return IndexReader.open(workspace.getIndexDirectory()); } catch(final IOException iox) { logger.error("Could not open index.", iox); logger.error(workspace.getIndexDirectory()); throw ParityErrorTranslator.translate(iox); } } | private IndexReader openIndexReader() throws ParityException { try { return IndexReader.open(workspace.getIndexDirectory()); } catch(final IOException iox) { logger.error("Could not open index.", iox); logger.error(workspace.getIndexDirectory()); throw ParityErrorTranslator.translate(iox); } } | 1,113,146 |
public FieldBuilder setValue(final Long l) { this.value = l.toString(); return this; } | public FieldBuilder setValue(final Long l) { this.value = l.toString(); return this; } | 1,113,147 |
public List<QueryHit> search(final String expression) { final List<Query> queries = createQueries(expression); final List<QueryHit> hits = new LinkedList<QueryHit>(); final QueryHitBuilder queryHitBuilder = new QueryHitBuilder(idField); Iterator iHits; for(final Query query : queries) { logger.debug("query:" + ... | public List<QueryHit> search(final String expression) { final List<Query> queries = createQueries(expression); final List<QueryHit> hits = new LinkedList<QueryHit>(); final QueryHitBuilder queryHitBuilder = new QueryHitBuilder(idField); Iterator iHits; for(final Query query : queries) { logger.info("[LMODEL] [I... | 1,113,148 |
public ExtensibleDialog (Frame parent, String title) { super(title); setFont(defaultBigFont); buttonPressed = new MesquiteInteger(1); prepareDialog(parent,title,buttonPressed); addWindowListener(this); } | public ExtensibleDialog (Frame parent, String title) { super(title); setFont(defaultBigFont); buttonPressed = new MesquiteInteger(1); prepareDialog(parent,title,buttonPressed); addWindowListener(this); } | 1,113,149 |
public User create(final User user) { final Session session = openSession(); try { session.prepareStatement(SQL_CREATE); session.setQualifiedUsername(1, user.getId()); if(1 != session.executeUpdate()) throw new HypersonicException(""); final L... | public void create(final User user) { final Session session = openSession(); try { session.prepareStatement(SQL_CREATE); session.setQualifiedUsername(1, user.getId()); if(1 != session.executeUpdate()) throw new HypersonicException(""); final L... | 1,113,150 |
public User create(final User user) { final Session session = openSession(); try { session.prepareStatement(SQL_CREATE); session.setQualifiedUsername(1, user.getId()); if(1 != session.executeUpdate()) throw new HypersonicException(""); final L... | public User create(final User user) { final Session session = openSession(); try { session.prepareStatement(SQL_CREATE); session.setQualifiedUsername(1, user.getId()); if(1 != session.executeUpdate()) throw new HypersonicException(""); final L... | 1,113,151 |
public User create(final User user); | public void create(final User user); | 1,113,152 |
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... | 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... | 1,113,154 |
private void deleteLocal(final Long documentId) { final Document document = read(documentId); // delete audit final InternalAuditModel iAuditModel = getInternalAuditModel(); iAuditModel.delete(documentId); // delete versions final Collection<DocumentVersion> versions = list... | private void deleteLocal(final Long documentId) { final Document document = read(documentId); // delete audit final InternalAuditModel iAuditModel = getInternalAuditModel(); iAuditModel.delete(documentId); // delete versions final Collection<DocumentVersion> versions = list... | 1,113,155 |
public Comparator<Artifact> createByName(final Boolean isAscending) { return new NameComparator(isAscending); } | public Comparator<Artifact> createByName(final Boolean isAscending) { return new NameComparator(isAscending); } | 1,113,156 |
public static synchronized byte[] read( InputStream inputStream) throws IOException { return read(inputStream, DEFAULT_CHARSET_NAME); } | public static synchronized byte[] read( InputStream inputStream) throws IOException { return read(inputStream, DEFAULT_CHARSET_NAME); } | 1,113,157 |
protected final File downloadStream(final String streamId) throws IOException { final File streamFile = workspace.createTempFile(streamId); final FileOutputStream stream = new FileOutputStream(streamFile); final StreamSession session = getSessionModel().createStreamSession(); final Strea... | protected final File downloadStream(final String streamId) throws IOException { final File streamFile = workspace.createTempFile(streamId); final FileOutputStream stream = new FileOutputStream(streamFile); final StreamSession session = getSessionModel().createStreamSession(); final Strea... | 1,113,158 |
public Boolean doesVersionExist(final Long artifactId, final Long versionId) { synchronized (getImplLock()) { return getImpl().doesVersionExist(artifactId, versionId); } } | public Boolean doesVersionExist(final Long artifactId) { synchronized (getImplLock()) { return getImpl().doesVersionExist(artifactId, versionId); } } | 1,113,160 |
public Boolean doesVersionExist(final Long artifactId, final Long versionId) { synchronized (getImplLock()) { return getImpl().doesVersionExist(artifactId, versionId); } } | public Boolean doesVersionExist(final Long artifactId, final Long versionId) { synchronized (getImplLock()) { return getImpl().doesVersionExist(artifactId); } } | 1,113,161 |
public XMPPSessionImpl() { super(); this.listeners = new ArrayList<SessionListener>(); this.xmppArchive = new XMPPArchive(this); this.xmppBackup = new XMPPBackup(this); this.xmppArtifact = new XMPPArtifact(this); this.xmppContainer = new XMPPContainer(this); this.xmppContact = new XMPPCo... | public XMPPSessionImpl() { super(); this.listeners = new ArrayList<SessionListener>(); this.xmppArchive = new XMPPArchive(this); this.xmppBackup = new XMPPBackup(this); this.xmppArtifact = new XMPPArtifact(this); this.xmppContainer = new XMPPContainer(this); this.xmppContact = new XMPPCo... | 1,113,162 |
void decline(final EMail invitedAs, final JabberId invitedBy) throws SmackException { final XMPPMethod decline = new XMPPMethod("contact:declineinvitation"); decline.setParameter(Xml.Contact.INVITED_AS, invitedAs); decline.setParameter(Xml.Contact.INVITED_BY, invitedBy); decline.setPar... | void decline(final EMail invitedAs, final JabberId invitedBy) throws SmackException { final XMPPMethod decline = new XMPPMethod("contact:declineinvitation"); decline.setParameter(Xml.Contact.INVITED_AS, invitedAs); decline.setParameter(Xml.Contact.INVITED_BY, invitedBy); decline.setPar... | 1,113,163 |
List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | 1,113,165 |
List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | 1,113,166 |
List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | 1,113,167 |
List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | 1,113,168 |
List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | 1,113,169 |
List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | List<DocumentVersion> readDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("version... | 1,113,170 |
Contact read(final JabberId userId, final JabberId contactId) { logger.logApiId(); logger.logVariable("userId", userId); assertIsAuthenticatedUser(userId); final XMPPMethod read = new XMPPMethod("contact:read"); read.setParameter("userId", userId); read.setParameter("contac... | Contact read(final JabberId userId, final JabberId contactId) { logger.logApiId(); logger.logVariable("userId", userId); assertIsAuthenticatedUser(userId); final XMPPMethod read = new XMPPMethod("contact:read"); read.setParameter("userId", userId); read.setParameter("contac... | 1,113,171 |
Contact read(final JabberId userId, final JabberId contactId) { logger.logApiId(); logger.logVariable("userId", userId); assertIsAuthenticatedUser(userId); final XMPPMethod read = new XMPPMethod("contact:read"); read.setParameter("userId", userId); read.setParameter("contac... | Contact read(final JabberId userId, final JabberId contactId) { logger.logApiId(); logger.logVariable("userId", userId); assertIsAuthenticatedUser(userId); final XMPPMethod read = new XMPPMethod("contact:read"); read.setParameter("userId", userId); read.setParameter("contac... | 1,113,172 |
JabberId readKeyHolder(final JabberId userId, final UUID uniqueId) { final XMPPMethod method = new XMPPMethod("artifact:readkeyholder"); method.setParameter("userId", userId); method.setParameter("uniqueId", uniqueId); final XMPPMethodResponse result = execute(method); return resu... | JabberId readKeyHolder(final JabberId userId, final UUID uniqueId) { final XMPPMethod method = new XMPPMethod("artifact:readkeyholder"); method.setParameter("userId", userId); method.setParameter("uniqueId", uniqueId); final XMPPMethodResponse result = execute(method); return resu... | 1,113,173 |
public QueueItem enqueue(final String message) throws ParityServerModelException { synchronized(implLock) { return impl.enqueue(message); } } | public QueueItem enqueue(final JID jid, final IQ iq) throws ParityServerModelException { synchronized(implLock) { return impl.enqueue(message); } } | 1,113,174 |
public QueueItem enqueue(final String message) throws ParityServerModelException { synchronized(implLock) { return impl.enqueue(message); } } | public QueueItem enqueue(final String message) throws ParityServerModelException { synchronized(implLock) { return impl.enqueue(jid, iq); } } | 1,113,175 |
void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... | void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... | 1,113,176 |
void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... | void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... | 1,113,177 |
void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... | void login(final String username, final String password) throws ParityException { logger.info("login(String,String)"); logger.debug(username); logger.debug(mask(password)); final String host = preferences.getServerHost(); final Integer port = preferences.getServerPort(); synchronized(xmppHelperLock) { try { ... | 1,113,178 |
private void fireNotification(final String notificationMessage) { final TrayNotification notification = new TrayNotification(); notification.setMessage(notificationMessage); impl.fireNotification(notification); } | private void fireNotification(final String notificationMessage) { final Notification notification = new Notification(); notification.setMessage(notificationMessage); impl.fireNotification(notification); } | 1,113,180 |
void fireNotification(final TrayNotification notification) { synchronized(this) { queue.add(notification); notifyAll(); } } | void fireNotification(final TrayNotification notification) { synchronized(this) { queue.add(notification); notifyAll(); } } | 1,113,182 |
SystemApplicationImpl(final SystemApplication sysApp) { super("[BROWSER2] [APP] [SYS] [THREAD]"); this.sysApp = sysApp; this.queue = new LinkedList<TrayNotification>(); } | SystemApplicationImpl(final SystemApplication sysApp) { super("[BROWSER2] [APP] [SYS] [THREAD]"); this.sysApp = sysApp; this.queue = new LinkedList<Notification>(); } | 1,113,183 |
Document get(final UUID documentUniqueId) throws ParityException { logger.info("get(UUID)"); logger.debug(documentUniqueId); try { return documentIO.get(documentUniqueId); } catch(final RuntimeException rx) { logger.error("get(UUID)", rx); throw ParityErrorTranslator.translate(rx); } } | Document get(final UUID documentUniqueId) throws ParityException { logger.info("get(UUID)"); logger.debug(documentUniqueId); try { return documentIO.get(documentUniqueId); } catch(final RuntimeException rx) { logger.error("get(UUID)", rx); throw ParityErrorTranslator.translate(rx); } } | 1,113,185 |
Collection<Document> list(final Comparator<Artifact> comparator) throws ParityException { logger.info("list(Comparator<Artifact>)"); logger.debug(comparator); try { final Collection<Document> documents = documentIO.list(); ArtifactSorter.sortDocuments(documents, comparator); return documents; } catch(Runt... | Collection<Document> list(final Comparator<Artifact> comparator) throws ParityException { logger.info("list(Comparator<Artifact>)"); logger.debug(comparator); try { final Collection<Document> documents = documentIO.list(); ArtifactSorter.sortDocuments(documents, comparator); return documents; } catch(Runt... | 1,113,186 |
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { Document document = get(xmppDocument.getUniqueId()); logger.debug(document); if(null == document) { document = receiveCreate(xmppDocument); } else { receiveU... | void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { Document document = get(xmppDocument.getUniqueId()); logger.debug(document); if(null == document) { document = receiveCreate(xmppDocument); } else { receiveU... | 1,113,187 |
protected static void assertNotNull(final String assertion, final Container container) { assertNotNull(assertion + " [CONTAINER IS NULL]", (Object) container); assertNotNull(assertion + " [CONTAINER'S CREATED BY IS NULL]", container.getCreatedBy()); assertNotNull(assertion + " [CONTAINER'S CREA... | protected static void assertNotNull(final String assertion, final Container container) { assertNotNull(assertion + " [CONTAINER IS NULL]", (Object) container); assertNotNull(assertion + " [CONTAINER'S CREATED BY IS NULL]", container.getCreatedBy()); assertNotNull(assertion + " [CONTAINER'S CREA... | 1,113,188 |
public static Object invokeConstructor(String className, Object[] params) { try { Class converterClass= Class.forName(className); return ConstructorUtils.invokeConstructor(converterClass, params); } catch(Exception ex) { throw new JcrMappingException("Can... | public static Object invokeConstructor(String className, Object[] params) { try { Class converterClass= forName(className); return ConstructorUtils.invokeConstructor(converterClass, params); } catch(Exception ex) { throw new JcrMappingException("Cannot cr... | 1,113,189 |
public static Object newInstance(String clazz) { try { return Class.forName(clazz).newInstance(); } catch(Exception ex) { throw new JcrMappingException("Cannot create instance for class " + clazz, ex); } } | public static Object newInstance(Class clazz) { try { return Class.forName(clazz).newInstance(); } catch(Exception ex) { throw new JcrMappingException("Cannot create instance for class " + clazz, ex); } } | 1,113,190 |
public static Object newInstance(String clazz) { try { return Class.forName(clazz).newInstance(); } catch(Exception ex) { throw new JcrMappingException("Cannot create instance for class " + clazz, ex); } } | public static Object newInstance(String clazz) { try { return clazz.newInstance(); } catch(Exception ex) { throw new JcrMappingException("Cannot create instance for class " + clazz, ex); } } | 1,113,191 |
public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | public static ManageableCollection getManageableCollection(String manageableCollectionClassName) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } ... | 1,113,192 |
public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | 1,113,193 |
public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | 1,113,194 |
public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | public static ManageableCollection getManageableCollection(Object object) { try { if (object == null) { return null; } if (object instanceof ManageableCollection) { return (ManageableCollection) object; } if (object.getClass... | 1,113,195 |
void logout() { logger.logApiId(); try { final XMPPSession xmppSession = workspace.getXMPPSession(); synchronized (xmppSession) { xmppSession.logout(); } } catch (final Throwable t) { throw translateError(t); } } | void logout() { logger.logApiId(); try { final XMPPSession xmppSession = workspace.getXMPPSession(); synchronized (xmppSession) { xmppSession.logout(); } } catch (final Throwable t) { throw translateError(t); } } | 1,113,196 |
public List<DocumentView> readDocumentViews(final Long containerId, final Long versionId) { final Map<DocumentVersion, Delta> versions; final ContainerVersion previousVersion = containerModel.readPreviousVersion(containerId, versionId); if (null == previousVersion) { ... | public List<DocumentView> readDocumentViews(final Long containerId, final Long versionId) { final Map<DocumentVersion, Delta> versions; final ContainerVersion previousVersion = containerModel.readPreviousVersion(containerId, versionId); if (null == previousVersion) { ... | 1,113,198 |
public void addListener(final XMPPExtensionListener l); | public void addListener(final XMPPArtifactListener l); | 1,113,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.