rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
versionId, documentUniqueId); | versionId); | public List<DocumentVersion> readDocumentVersions( final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return archiveModel.readDocumentVersions(uniqueId, versionId, documentUniqueId); ... |
final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { | final UUID uniqueId, final Long versionId) { | void restoreBackup() { logger.logApiId(); try { final List<Container> containers = read(); if (0 < containers.size()) { logger.logWarning("{0} containers will be deleted.", containers.size()); for (final Container container : containers) { ... |
versionId, documentUniqueId); | versionId); | void restoreBackup() { logger.logApiId(); try { final List<Container> containers = read(); if (0 < containers.size()) { logger.logWarning("{0} containers will be deleted.", containers.size()); for (final Container container : containers) { ... |
final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { | final UUID uniqueId, final Long versionId) { | public List<DocumentVersion> readDocumentVersions( final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return backupModel.readDocumentVersions(uniqueId, versionId, docume... |
versionId, documentUniqueId); | versionId); | public List<DocumentVersion> readDocumentVersions( final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return backupModel.readDocumentVersions(uniqueId, versionId, docume... |
final InternalSessionModel iSModel = getInternalSessionModel(); iSModel.sendDelete(documentId); | void close(final Long documentId) throws ParityException { logger.info("[LMODEL] [DOCUMENT MODE] [CLOSE]"); logger.debug(documentId); assertOnline("[LMODEL] [DOCUMENT MODE] [CLOSE] [USER IS NOT ONLINE]"); assertIsKeyHolder("[LMODEL] [DOCUMENT MODE] [CLOSE] [USER IS NOT KEY HOLDER]", documentId); ... | |
final Long documentId) { | final Long documentId, final Integer eTeamSize) { | private Fixture(final ArtifactModel aModel, final JabberId closedBy, final DocumentModelImpl dMImpl, final DocumentModel dModel, final Long documentId) { this.aModel = aModel; this.closedBy = closedBy; this.dMImpl = dMImpl; this.dModel = dModel; this.... |
this.eTeamSize = eTeamSize; | private Fixture(final ArtifactModel aModel, final JabberId closedBy, final DocumentModelImpl dMImpl, final DocumentModel dModel, final Long documentId) { this.aModel = aModel; this.closedBy = closedBy; this.dMImpl = dMImpl; this.dModel = dModel; this.... | |
data.add(new Fixture(aModel, userX.getJabberId(), dMImpl, dModel, d0.getId())); | data.add(new Fixture(aModel, userX.getJabberId(), dMImpl, dModel, d0.getId(), aModel.readTeam(d0.getId()).size())); | protected void setUp() throws Exception { super.setUp(); data = new LinkedList<Fixture>(); final ArtifactModel aModel = getArtifactModel(); final DocumentModel dModel = getDocumentModel(); final DocumentModelImpl dMImpl = getImpl(); final SessionModel sModel = getSessionModel(); final ModelTes... |
assertEquals("[LMODEL] [DOCUMENT] [TEST CLOSE] [NON-ZERO TEAM SIZE]", team.size(), 0); | assertEquals("[LMODEL] [DOCUMENT] [TEST CLOSE] [NON-ZERO TEAM SIZE]", datum.eTeamSize.intValue(), team.size()); | public void testHandleClose() { testLogger.info("[LMODEL] [DOCUMENT] [TEST HANDLE CLOSE]"); Document document; Set<User> team; for(final Fixture datum : data) { try { datum.dMImpl.handleClose(datum.documentId, datum.closedBy); } catch(final ParityException px) { fail(c... |
final ConfirmSynchronize confirmSynchronize = new ConfirmSynchronize(); openWindow(confirmSynchronize); return confirmSynchronize.didConfirm(); | final ConfirmSynchronizeWindow confirmWindow = new ConfirmSynchronizeWindow(); confirmWindow.setVisibleAndWait(); return confirmWindow.didConfirm(); | public Boolean confirmSynchronize() { final ConfirmSynchronize confirmSynchronize = new ConfirmSynchronize(); openWindow(confirmSynchronize); return confirmSynchronize.didConfirm(); } |
synchronized(this) { notifyAll(); | synchronized (OpheliaJFrame.this) { OpheliaJFrame.this.notifyAll(); | public final void setVisibleAndWait() { addWindowListener(new WindowAdapter() { public void windowClosed(final WindowEvent e) { synchronized(this) { notifyAll(); } } }); try { SwingUtilities.invokeAndWait(new Runn... |
synchronized (this) { | synchronized (OpheliaJFrame.this) { | public final void setVisibleAndWait() { addWindowListener(new WindowAdapter() { public void windowClosed(final WindowEvent e) { synchronized(this) { notifyAll(); } } }); try { SwingUtilities.invokeAndWait(new Runn... |
wait(); | OpheliaJFrame.this.wait(); | public final void setVisibleAndWait() { addWindowListener(new WindowAdapter() { public void windowClosed(final WindowEvent e) { synchronized(this) { notifyAll(); } } }); try { SwingUtilities.invokeAndWait(new Runn... |
data.add(new Fixture(null, documentModel, new Long(-1L))); | data.add(new Fixture(null, documentModel, -1L)); | protected void setUp() throws Exception { super.setUp(); data = new Vector<Fixture>(getInputFilesLength()); final DocumentModel documentModel = getDocumentModel(OpheliaTestUser.JUNIT); Document document; Long documentId; for(File testFile : getInputFiles()) { document = create(OpheliaTestUser.JUNIT, testFile... |
public static final int pow (int base, int power) { return base^power; } | public static final int pow (int base, int power) { return (int)java.lang.Math.pow(base, power); } | public static final int pow (int base, int power) { return base^power; } |
getContainerModel(datum.junit_z).delete(c.getId()); | public void testRestore() { // test final Container c = createContainer(datum.junit_z, "Backup Test: Restore backup 1"); addDocument(datum.junit_z, c.getId(), "JUnitTestFramework.doc"); addDocument(datum.junit_z, c.getId(), "JUnitTestFramework.pdf"); addDocument(datum.junit_z, c.g... | |
for(final Iterator<TrayNotification> i = queue.iterator(); i.hasNext();) { notification = i.next(); sysTray.display(notification); i.remove(); | synchronized(this) { for(final Iterator<TrayNotification> i = queue.iterator(); i.hasNext();) { notification = i.next(); sysTray.display(notification); i.remove(); } | private void processQueue() { sysApp.logger.info("[LBROWSER] [APPLICATION] [SYSTEM] [PROCESS QUEUE (" + getQueueTotal() + ")]"); if(0 < getQueueTotal()) { TrayNotification notification; for(final Iterator<TrayNotification> i = queue.iterator(); i.hasNext();) { notification... |
this.listeners = new ArrayList<T>(); | protected AbstractXMPP(final XMPPCore xmppCore) { super(); this.listeners = new ArrayList<T>(); this.xmppCore = xmppCore; this.xmppEventManager = XMPPEventManager.getInstance(xmppCore); this.xstream = new XStream(); } | |
this.xmppEventManager = XMPPEventManager.getInstance(xmppCore); | protected AbstractXMPP(final XMPPCore xmppCore) { super(); this.listeners = new ArrayList<T>(); this.xmppCore = xmppCore; this.xmppEventManager = XMPPEventManager.getInstance(xmppCore); this.xstream = new XStream(); } | |
systemTrayIcon.addBalloonActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { if(systemApplication.isBrowserRunning()) systemApplication.runMoveBrowserToFront(); else systemApplication.runRestoreBrowser(); } }); | public void install() { systemTrayIcon = new TrayIcon(readTrayIcon()); systemTrayIcon.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { if(systemApplication.isBrowserRunning()) systemApplication.runMoveBrowserToFront(); else... | |
void run() throws IOException { final HeaderReader headerReader = new HeaderReader(); final StreamHeader sessionId = headerReader.readNext(); if (null != sessionId) { final StreamSession streamSession = streamServer.authenticate(sessionId.getValue(), ((InetSocketAddress) socket.getRemoteSocketAddress()).getAddress()); ... | public void run() { try { final HeaderReader headerReader = new HeaderReader(); final StreamHeader sessionId = headerReader.readNext(); if (null != sessionId) { final StreamSession streamSession = streamServer.authenticate(sessionId.getValue(), ((InetSocketAddress) socket.getRemoteSocketAddress()).getAddress()); final ... | void run() throws IOException { final HeaderReader headerReader = new HeaderReader(); final StreamHeader sessionId = headerReader.readNext(); if (null != sessionId) { final StreamSession streamSession = streamServer.authenticate(sessionId.getValue(), ... |
socket.close(); | void run() throws IOException { final HeaderReader headerReader = new HeaderReader(); final StreamHeader sessionId = headerReader.readNext(); if (null != sessionId) { final StreamSession streamSession = streamServer.authenticate(sessionId.getValue(), ... | |
Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, ServletLogger.class.getName()); Velocity.setApplicationAttribute(SERVLET_CONTEXT_KEY, getServletContext()); Velocity.setProperty(RuntimeConstants.RESOURCE_LOADER, "webapp"); Velocity.setProperty("webapp.resource.loader.class", WebappLoader.class.getNa... | protected void initVelocity( ServletConfig config ) throws ServletException { // Try reading Velocity configuration try { Properties p = super.loadConfiguration(config); Velocity.setExtendedProperties(ExtendedProperties.convertProperties(p)); } cat... | |
ServletLogger sl = new ServletLogger( getServletContext() ); Velocity.setProperty( RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, sl ); VelocityStrutsServletAppContext vssac = new VelocityStrutsServletAppContext( getServletContext() ); Velocity.setApplicationAttribute( "org.apache.velocity.tools.view.servlet.WebappLoader", ... | protected void initVelocity( ServletConfig config ) throws ServletException { // Try reading Velocity configuration try { Properties p = super.loadConfiguration(config); Velocity.setExtendedProperties(ExtendedProperties.convertProperties(p)); } cat... | |
Ancestor ancestor = (Ancestor) persistenceManager.getObject(Ancestor.class,"/test"); assertTrue("Invalid object instance", ancestor instanceof Descendant ); assertEquals("Ancestor path is invalid", ancestor.getPath(), "/test"); assertEquals("Ancestor ancestorField is invalid", ancestor.getAncestorField(), "anotherAnce... | public void testRetrieveSingleton() { try { PersistenceManager persistenceManager = this.getPersistenceManager(); //--------------------------------------------------------------------------------------------------------- // Insert a descendant object //--------------------------------------------------------... | |
return new StringBuffer(PREFIX) .append(IRendererConstants.NULL) .append(IRendererConstants.SUFFIX).toString(); | return "null"; | public String doRender(Object o) { if(null == o) { return new StringBuffer(PREFIX) .append(IRendererConstants.NULL) .append(IRendererConstants.SUFFIX).toString(); } else { final Packet p = (Packet) o; return new StringBuffer(PREFIX) .append(IRendererConstants.ID).append(p.getPacketID()) .append(T... |
final Packet p = (Packet) o; return new StringBuffer(PREFIX) .append(IRendererConstants.ID).append(p.getPacketID()) .append(TO).append(p.getTo()) .append(FROM).append(p.getFrom()) .append(XML).append(p.toXML()) .append(IRendererConstants.SUFFIX) .toString(); | return ((Packet) o).toXML(); | public String doRender(Object o) { if(null == o) { return new StringBuffer(PREFIX) .append(IRendererConstants.NULL) .append(IRendererConstants.SUFFIX).toString(); } else { final Packet p = (Packet) o; return new StringBuffer(PREFIX) .append(IRendererConstants.ID).append(p.getPacketID()) .append(T... |
documentModel.createDraft(document.getId()); | ContainerDraft createDraft(final Long containerId) { logger.logApiId(); logger.logVariable("containerId", containerId); try { assertContainerDraftDoesNotExist(containerId); if (isFirstDraft(containerId)) { createFirstDraft(containerId, localTeamMember(contai... | |
if (1 == e.getClickCount()) { if (e.getButton()==MouseEvent.BUTTON1) { if (isMouseEventWithinCell(e)) { triggerExpand(getSelectedCell()); | if (!MenuFactory.isPopupMenu()) { if (1 == e.getClickCount()) { if (e.getButton()==MouseEvent.BUTTON1) { if (isMouseEventWithinCell(e)) { triggerExpand(getSelectedCell()); } | private void tabJListMouseClicked(java.awt.event.MouseEvent e) {//GEN-FIRST:event_tabJListMouseClicked if (1 == e.getClickCount()) { if (e.getButton()==MouseEvent.BUTTON1) { if (isMouseEventWithinCell(e)) { triggerExpand(getSelectedCell()); } ... |
} } else if (2 == e.getClickCount()) { if (isMouseEventWithinCell(e)) { triggerDoubleClick(getSelectedCell()); } else { triggerDoubleClick(); | } else if (2 == e.getClickCount()) { if (isMouseEventWithinCell(e)) { triggerDoubleClick(getSelectedCell()); } else { triggerDoubleClick(); } | private void tabJListMouseClicked(java.awt.event.MouseEvent e) {//GEN-FIRST:event_tabJListMouseClicked if (1 == e.getClickCount()) { if (e.getButton()==MouseEvent.BUTTON1) { if (isMouseEventWithinCell(e)) { triggerExpand(getSelectedCell()); } ... |
if(e.isPopupTrigger()) { | if (!MenuFactory.isPopupMenu() && e.isPopupTrigger()) { | private void tabJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_tabJListMouseReleased if(e.isPopupTrigger()) { // Desired behavior: if click on an entry in the list then trigger a popup for that entry. // If click in the blank area below the last entry in the list the... |
addContainerPanel(containerPanels.size() == 0 ? 0 : containerPanels .size() - 1, container); | addContainerPanel(panels.size() == 0 ? 0 : panels.size() - 1, container); | private void addContainerPanel(final Container container) { addContainerPanel(containerPanels.size() == 0 ? 0 : containerPanels .size() - 1, container); } |
this.searchResults = readSearchResults(); | applySearchResults(); | public void applySearch(final String searchExpression) { debug(); if (searchExpression.equals(this.searchExpression)) { return; } else { this.searchExpression = searchExpression; this.searchResults = readSearchResults(); synchronize(); } } |
containerPanels.clear(); | panels.clear(); | private void clearPanels() { containerPanels.clear(); } |
logger.logDebug("{0} container panels.", containerPanels.size()); | logger.logDebug("{0} container panels.", panels.size()); | public void debug() { logger.logDebug("{0} container panels.", containerPanels.size()); logger.logDebug("{0} visible panels.", visiblePanels.size()); for (final TabPanel visiblePanel : visiblePanels) { logger.logVariable("visiblePanel.getId()", visiblePanel.getId()); } ... |
for (int i = 0; i < containerPanels.size(); i++) if (((ContainerPanel) containerPanels.get(i)).getContainer() | for (int i = 0; i < panels.size(); i++) if (((ContainerPanel) panels.get(i)).getContainer() | private int lookupIndex(final Long containerId) { for (int i = 0; i < containerPanels.size(); i++) if (((ContainerPanel) containerPanels.get(i)).getContainer() .getId().equals(containerId)) return i; return -1; } |
final TabPanel containerPanel = containerPanels.remove(panelIndex); | final TabPanel containerPanel = panels.remove(panelIndex); | private void removeContainerPanel(final Long containerId, final boolean removeExpandedState) { Long lookupContainerId; for (final Iterator<Long> iLookupValues = containerIdLookup.values().iterator(); iLookupValues.hasNext(); ) { lookupContainerId = iLookupValues.next()... |
containerPanels.remove(panelIndex); | panels.remove(panelIndex); | private void removeContainerPanel(final Long containerId, final boolean removeExpandedState) { Long lookupContainerId; for (final Iterator<Long> iLookupValues = containerIdLookup.values().iterator(); iLookupValues.hasNext(); ) { lookupContainerId = iLookupValues.next()... |
searchResults = null; | searchResults.clear(); | public void removeSearch() { debug(); // if the member search expression is already null; then there is no // search applied -> do nothing if (null == searchExpression) { return; } else { searchExpression = null; searchResults = null; sy... |
applyFilters(); | protected void synchronize() { debug(); /* add container panels and container version panels to the visibility list */ visiblePanels.clear(); for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); } // add newly visib... | |
for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); | for (final TabPanel panel : filteredPanels) { visiblePanels.add(panel); | protected void synchronize() { debug(); /* add container panels and container version panels to the visibility list */ visiblePanels.clear(); for (final TabPanel containerPanel : containerPanels) { visiblePanels.add(containerPanel); } // add newly visib... |
mainCellDocument.setExpanded(documents.get(index).isExpanded()); | private void syncDocumentInternal(final Long documentId, final Boolean remote) { final MainCellDocument mainCellDocument = readDocument(documentId); // if the document is null; we can assume the document has been // deleted (it's not longer being created by the provider); so we find ... | |
case KEY_RESPONSE_DENIED: return extractKeyResponseDenied(session); case KEY_REQUEST_DENIED: return extractKeyRequestDenied(session); | private AuditEvent extract(final Session session) { final AuditEventType eventType = session.getAuditEventTypeFromInteger("ARTIFACT_AUDIT_TYPE_ID"); switch(eventType) { case ARCHIVE: return extractArchive(session); case CLOSE: return extractClose(session); case CREATE: return extractCreate(session); case R... | |
final StreamSession streamSession) { | final StreamSession streamSession, final Long streamSize) { | private Fixture(final InputStream stream, final String streamId, final StreamSession streamSession) { super(); this.stream = stream; this.streamId = streamId; this.streamSession = streamSession; } |
this.streamSize = streamSize; | private Fixture(final InputStream stream, final String streamId, final StreamSession streamSession) { super(); this.stream = stream; this.streamId = streamId; this.streamSession = streamSession; } | |
datum = new Fixture(stream, streamId, session); | datum = new Fixture(stream, streamId, session, streamFile.length()); | 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()[3]; final Str... |
writer.write(datum.streamId, datum.stream); | writer.write(datum.streamId, datum.stream, datum.streamSize); } catch (final IOException iox) { fail(createFailMessage(iox)); | public void testWriter() { final StreamWriter writer = new StreamWriter(datum.streamSession); try { writer.open(); writer.write(datum.streamId, datum.stream); } finally { writer.close(); } } |
writer.close(); | try { datum.stream.close(); writer.close(); } catch (final IOException iox2) { fail(createFailMessage(iox2)); } | public void testWriter() { final StreamWriter writer = new StreamWriter(datum.streamSession); try { writer.open(); writer.write(datum.streamId, datum.stream); } finally { writer.close(); } } |
this(workspace, null); | super(); this.context = new Context(getClass()); this.l18n = new Localization(LocalizationContext.MODEL); this.logger = LoggerFactory.getLogger(getClass()); this.workspace = workspace; this.preferences = (null == workspace ? null : workspace.getPreferences()); | protected AbstractModelImpl(final Workspace workspace) { this(workspace, null); } |
public BooleanTypeConverterImpl(ValueFactory factory) { super(factory); } | public BooleanTypeConverterImpl() { super(); } | public BooleanTypeConverterImpl(ValueFactory factory) { super(factory); } |
System.out.println("Creating connection with Psyclone at " + hostname + ":" + port + " with service name " + plugname); | public void connect(String plugname, String hostname, Integer port) { plug = new JavaAIRPlug(plugname, hostname, port); } | |
callback.airBrushReceiveMessage(message); | if (!callback.airBrushReceiveMessage(message)) { System.out.println("Note: Unhandled callback for: " + message.type + " to: " + message.to); } | public void run() { Message message; while (Thread.currentThread() == thread) { if ((message = plug.waitForNewMessage(100)) != null) { callback.airBrushReceiveMessage(message); } } } |
if(DEBUG) verbose = true; | if(debug) verbose = true; | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) { | if(debug) { | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println("Addresses not equal! Assumption broken... =/", | println("ERROR: Addresses not equal! Assumption false.", | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println("plistSize field does not match plistEnd marker!", | println("NOTE: plistSize field does not match plistEnd marker. Assumption false.", | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(verbose) { printlnVerbose(" Dumping blkx..."); FileOutputStream fos = new FileOutputStream(xn.getKeyValue("ID") + ".blkx"); fos.write(data); fos.close(); } if(DEBUG) { File dumpFile = new File("data " + xn.getKeyValue("ID") + ".bin"); | if(debug) { File dumpFile = new File("data(" + xn.getKeyValue("ID") + ").bin"); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) println("!-----addInOffset mode: inOffset tranformation " + inOffset + "->" + (inOffset+lastInOffset)); | if(debug) println("------->NOTE: addInOffset mode: inOffset tranformation " + inOffset + "->" + (inOffset+lastInOffset)); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
else if(inOffset == 0) { if(DEBUG) println("!-----Detected inOffset == 0, setting to " + lastInOffset); | else if(inOffset == 0 && blockCount == 0) { if(debug) println("------->NOTE: Detected inOffset == 0, setting to " + lastInOffset); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) { println("outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize + " lastOutOffset=" + lastOutOffset + " lastInOffset=" + lastInOffset | if(debug) { println(" outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset, " inSize=" + inSize + " lastOutOffset=" + lastOutOffset + " lastInOffset=" + lastInOffset | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println(" " + elementNumber + ":" + blockCount + ". ERROR: BT_ADC not supported."); | println("!------>ERROR: BT_ADC not supported."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) println(" " + elementNumber + ":" + blockCount + ". BT_ZLIB processing..."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... | |
println(" " + elementNumber + ":" + blockCount + ". WARNING: BT_ZLIB FP != outOffset (" + | println("!------>WARNING: BT_ZLIB FP != outOffset (" + | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println(" " + elementNumber + ":" + blockCount + ". ERROR: BT_ZLIB Could not decode..."); | println("!------>ERROR: BT_ZLIB Could not decode..."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(!DEBUG) { println("outOffset=" + outOffset + " outSize=" + outSize + | if(!debug) { println("!------> outOffset=" + outOffset + " outSize=" + outSize + | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println(" Testing mode, so continuing..."); | println("!------> Testing mode, so continuing..."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println(" " + elementNumber + ":" + blockCount + ". ERROR: BT_BZIP2 not currently supported."); | println("!------>ERROR: BT_BZIP2 not currently supported."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) println(" " + elementNumber + ":" + blockCount + ". BT_COPY processing..."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... | |
println(" " + elementNumber + ":" + blockCount + ". WARNING: BT_COPY FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); | println("!------>WARNING: BT_COPY FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) println(" " + elementNumber + ":" + blockCount + ". BT_ZERO processing..."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... | |
println(" " + elementNumber + ":" + blockCount + ". WARNING: BT_ZERO FP != outOffset (" + | println("!------>WARNING: BT_ZERO FP != outOffset (" + | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) println(" " + elementNumber + ":" + blockCount + ". BT_ZERO2 processing..."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... | |
println(" " + elementNumber + ":" + blockCount + ". WARNING: BT_ZERO2 FP != outOffset (" + | println("!------>WARNING: BT_ZERO2 FP != outOffset (" + | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) println(" " + elementNumber + ":" + blockCount + ". BT_UNKNOWN processing..."); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... | |
println(" " + elementNumber + ":" + blockCount + ". WARNING: Blocktype BT_UNKNOWN had non-zero sizes...", " inSize=" + inSize + ", outSize=" + outSize); | println("!------>WARNING: Blocktype BT_UNKNOWN had non-zero sizes...", "!------> inSize=" + inSize + ", outSize=" + outSize); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(DEBUG) println(" " + elementNumber + ":" + blockCount + ". BT_END processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + elementNumber + ":" + blockCount + ". WARNING: BT_END FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); | if(!testOnly && isoRaf.getFilePointer() != outOffset) { println("!------>WARNING: BT_END FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); ++warningsReported; } | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println(" " + elementNumber + ":" + blockCount + ". WARNING: previously unseen blocktype " + blockType + " [0x" + Integer.toHexString(blockType) + "]", " " + elementNumber + ":" + blockCount + ". outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize); | println("!------>WARNING: previously unseen blocktype " + blockType + " [0x" + Integer.toHexString(blockType) + "]", "!------> outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize); | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
println(" " + elementNumber + ":" + blockCount + ". unknown blocktype FP != outOffset (" + | println("!------>WARNING: unknown blocktype FP != outOffset (" + | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
if(!DEBUG) { | if(!debug) { | public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAcce... |
" based upon dmg2iso, Copyright (c) 2004 vu1tur <v@vu1tur.eu.org>", | " based on dmg2iso, Copyright (c) 2004 vu1tur <v@vu1tur.eu.org>", | public static void parseArgs(String[] args) { boolean parseSuccessful = false; try { /* Take care of the options... */ int i; for(i = 0; i < args.length; ++i) { String cur = args[i]; if(!cur.startsWith("-")) break; else if(cur.equals("-gui")) { graphical = true; // This should be moved... |
final InternalDocumentModel iDocumentModel = | final InternalDocumentModel iDModel = | static void notifyKeyRequestAccepted(final UUID artifactUniqueId, final JabberId acceptedBy) { final InternalDocumentModel iDocumentModel = DocumentModel.getInternalModel(sContext); try { final Document document = iDocumentModel.get(artifactUniqueId); iDocumentModel.unlock(document.getId()); SystemMessageM... |
final Document document = iDocumentModel.get(artifactUniqueId); iDocumentModel.unlock(document.getId()); | final Document document = iDModel.get(artifactUniqueId); iDModel.unlock(document.getId()); | static void notifyKeyRequestAccepted(final UUID artifactUniqueId, final JabberId acceptedBy) { final InternalDocumentModel iDocumentModel = DocumentModel.getInternalModel(sContext); try { final Document document = iDocumentModel.get(artifactUniqueId); iDocumentModel.unlock(document.getId()); SystemMessageM... |
final User loggedInUser; synchronized(xmppHelperLock) { loggedInUser = xmppHelper.getUser(); } iDModel.auditRecieveKey(document.getId(), loggedInUser.getId(), currentDateTime(), acceptedBy); } catch(final SmackException sx) { sLogger.fatal("Could not accept key request.", sx); return; | static void notifyKeyRequestAccepted(final UUID artifactUniqueId, final JabberId acceptedBy) { final InternalDocumentModel iDocumentModel = DocumentModel.getInternalModel(sContext); try { final Document document = iDocumentModel.get(artifactUniqueId); iDocumentModel.unlock(document.getId()); SystemMessageM... | |
final DocumentVersion version = iDModel.createVersion(documentId); | final DocumentVersion version; if(iDModel.isWorkingVersionEqual(documentId)) { version = iDModel.getLatestVersion(documentId); } else { version = iDModel.createVersion(documentId); } | void sendKeyResponse(final Long documentId, final JabberId requestedBy, final KeyResponse keyResponse) throws ParityException { logger.info("sendKeyResponse(UUID,User,KeyResponse)"); logger.debug(documentId); logger.debug(requestedBy); logger.debug(keyResponse); assertLoggedInUserIsKeyHolder(documentId); synch... |
xmppHelper.getUser().getId(), version.getUpdatedOn(), | xmppHelper.getUser().getId(), currentDateTime(), | void sendKeyResponse(final Long documentId, final JabberId requestedBy, final KeyResponse keyResponse) throws ParityException { logger.info("sendKeyResponse(UUID,User,KeyResponse)"); logger.debug(documentId); logger.debug(requestedBy); logger.debug(keyResponse); assertLoggedInUserIsKeyHolder(documentId); synch... |
ServletContext servletContext = config.getServletContext(); | public void init( ServletConfig config ) throws ServletException { super.init( config ); /* * setup the toolbox if there is one */ String key = config.getInitParameter( TOOLBOX_PARAM ); if ( key != null ) { InputStream is = null; try ... | |
if ( key != null ) | if (key == null || key.length() == 0) | public void init( ServletConfig config ) throws ServletException { super.init( config ); /* * setup the toolbox if there is one */ String key = config.getInitParameter( TOOLBOX_PARAM ); if ( key != null ) { InputStream is = null; try ... |
InputStream is = null; | key = servletContext.getInitParameter(TOOLBOX_PARAM); } | public void init( ServletConfig config ) throws ServletException { super.init( config ); /* * setup the toolbox if there is one */ String key = config.getInitParameter( TOOLBOX_PARAM ); if ( key != null ) { InputStream is = null; try ... |
try { if ( !key.startsWith("/") ) { key = "/" + key; } is = getServletContext().getResourceAsStream( key ); if ( is != null) { Velocity.info("Using toolbox configuration file '" + key +"'"); toolboxManager = new ServletToolboxManager(getServletContext()); toolboxManager.load( is ); Velocity.info("Toolbox setup ... | if (key != null) { toolboxManager = ServletToolboxManager.getInstance(servletContext, key); } else { | public void init( ServletConfig config ) throws ServletException { super.init( config ); /* * setup the toolbox if there is one */ String key = config.getInitParameter( TOOLBOX_PARAM ); if ( key != null ) { InputStream is = null; try ... |
public ServletToolboxManager(ServletContext servletContext) | private ServletToolboxManager(ServletContext servletContext) | public ServletToolboxManager(ServletContext servletContext) { this.servletContext = servletContext; appTools = new HashMap(); sessionToolInfo = new ArrayList(); requestToolInfo = new ArrayList(); createSession = true; } |
final OutputStream stream, final String streamId, final StreamSession streamSession) { | final StreamSession streamSession, final String streamId, final File inputFile, final File outputFile) { | private Fixture(final StreamServer streamServer, final OutputStream stream, final String streamId, final StreamSession streamSession) { super(); this.streamServer = streamServer; this.stream = stream; this.streamId = streamId; ... |
this.stream = stream; | private Fixture(final StreamServer streamServer, final OutputStream stream, final String streamId, final StreamSession streamSession) { super(); this.streamServer = streamServer; this.stream = stream; this.streamId = streamId; ... | |
this.inputFile = inputFile; this.outputFile = outputFile; | private Fixture(final StreamServer streamServer, final OutputStream stream, final String streamId, final StreamSession streamSession) { super(); this.streamServer = streamServer; this.stream = stream; this.streamId = streamId; ... | |
final File streamFile = getInputFiles()[0]; | final File inputFile = getInputFiles()[0]; final File outputFile = new File(getOutputDirectory(), inputFile.getName()); | 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... |
final String streamId = createStream(server, session, streamFile.getName()); final OutputStream stream = new FileOutputStream(new File(getOutputDirectory(), streamFile.getName())); seedServer(server, session, streamId, 0L, streamFile); datum = new Fixture(server, stream, streamId, session); | final String streamId = createStream(server, session, inputFile.getName()); seedServer(server, session, streamId, 0L, inputFile); datum = new Fixture(server, session, streamId, inputFile, outputFile); | 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... |
reader.open(); reader.read(datum.streamId, datum.stream); | final OutputStream outputStream = new FileOutputStream(datum.outputFile); try { reader.open(); reader.read(datum.streamId, outputStream, 0L); } catch (final IOException iox) { fail(createFailMessage(iox)); } finally { try { outputStream.close(); reader.close(); } catch (final IOException iox2) { fail(createFailMessage(... | public void testReader() { final StreamReader reader = new StreamReader(datum.streamSession); try { reader.open(); reader.read(datum.streamId, datum.stream); } catch (final IOException iox) { fail(createFailMessage(iox)); } finally { try { ... |
} finally { | } assertEquals(datum.outputFile.length(), datum.inputFile.length()); try { final InputStream downloadInputStream = new FileInputStream(datum.outputFile); String downloadChecksum; | public void testReader() { final StreamReader reader = new StreamReader(datum.streamSession); try { reader.open(); reader.read(datum.streamId, datum.stream); } catch (final IOException iox) { fail(createFailMessage(iox)); } finally { try { ... |
datum.stream.close(); reader.close(); } catch (final IOException iox2) { fail(createFailMessage(iox2)); | downloadChecksum = MD5Util.md5Hex(downloadInputStream); } catch (final Throwable t) { downloadChecksum = null; } finally { downloadInputStream.close(); | public void testReader() { final StreamReader reader = new StreamReader(datum.streamSession); try { reader.open(); reader.read(datum.streamId, datum.stream); } catch (final IOException iox) { fail(createFailMessage(iox)); } finally { try { ... |
final InputStream uploadInputStream = new FileInputStream(datum.inputFile); String uploadChecksum; try { uploadChecksum = MD5Util.md5Hex(uploadInputStream); } catch (final Throwable t) { uploadChecksum = null; } finally { uploadInputStream.close(); } assertEquals(downloadChecksum, uploadChecksum); } catch (final IOExc... | public void testReader() { final StreamReader reader = new StreamReader(datum.streamSession); try { reader.open(); reader.read(datum.streamId, datum.stream); } catch (final IOException iox) { fail(createFailMessage(iox)); } finally { try { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.