bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
void addPanel(final AbstractJPanel jPanel) { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 1; add(new WindowTitle(), c.clone()); jPanels.add(jPanel); ac.gridy++; add((Component) jPanel, ac.clone()); } | void addPanel(final AbstractJPanel jPanel) { final GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.weightx = 1; add(new WindowTitle(), c.clone()); jPanels.add(jPanel); add((Component) jPanel, ac.clone()); } | 1,113,989 |
public DocumentVersion getVersion(final Long documentId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_GET_VERSION); session.setLong(1, documentId); session.setLong(2, versionId); session.executeQuery(); if(session.nextResult()) { return extractVersion(se... | public DocumentVersion getVersion(final Long documentId, final Long versionId) { final Session session = openSession(); try { session.prepareStatement(SQL_GET_VERSION); session.setLong(1, documentId); session.setLong(2, versionId); session.executeQuery(); if(session.nextResult()) { return extractVersion(se... | 1,113,990 |
void deleteRemoteInfo(final Session session, final Long artifactId) { session.prepareStatement(SQL_DELETE_REMOTE_INFO); session.setLong(1, artifactId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete remote info."); } | void deleteRemoteInfo(final Session session, final Long artifactId) { session.prepareStatement(SQL_DELETE_REMOTE_INFO); session.setLong(1, artifactId); if(1 != session.executeUpdate()) throw new HypersonicException("Could not delete remote info."); } | 1,113,991 |
public KeywordSpotter() { super("Sieve.KeywordSpotter"); } | public KeywordSpotter() { super("Sieve.KeywordSpotter"); } | 1,113,992 |
public void airBrushReceiveMessage(Message msg) { super.airBrushReceiveMessage(msg); if (msg.type.equals("Keywords")) { // FIXME: Do something } } | public void airBrushReceiveMessage(Message msg) { super.airBrushReceiveMessage(msg); if (msg.type.equals("Keywords")) { // FIXME: Do something } } | 1,113,993 |
public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about ... | public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches(contentMatchString)) { // If the string IJsland appears in the text, it's definitely ... | 1,113,995 |
public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about ... | public Analysis doAnalysis(Story story, String topic) { Analysis a = new Analysis(); a.setID(story.getID()); a.setTopic(topic); String content = story.getContent(); if (content.matches("IJsland")) { // If the string IJsland appears in the text, it's definitely about ... | 1,113,996 |
public SieveObject(String moduleName) { super(moduleName); } | public SieveObject(String moduleName) { super(moduleName); } | 1,113,997 |
public void airBrushReceiveMessage(Message msg) { if (msg.type.equals("Story")) { System.out.println("Story received"); handleIncomingStory(msg); } } | public void airBrushReceiveMessage(Message msg) { if (msg.type.equals("Story")) { System.out.println("Story received"); handleIncomingStory(msg); } } | 1,113,998 |
public String getID() { return getProperty(keyIdentifier); } | public String getID() { return (String) getProperty(keyIdentifier); } | 1,114,000 |
public String getContent() { return getProperty(keyContent); } | public String getContent() { return (String) getProperty(keyContent); } | 1,114,001 |
public String getAuthor() { return getProperty(keyAuthor); } | public String getAuthor() { return (String) getProperty(keyAuthor); } | 1,114,002 |
public void setAuthorRelevance(String value) { setProperty(keyAuthorRelevance, value); relevant = true; } | public void setAuthorRelevance(String value) { setProperty(keyAuthorRelevance, value); relevant = true; } | 1,114,003 |
public Map<User, ArtifactReceipt> readPublishedTo(final UUID uniqueId, final Long versionId) { final Long containerId = readArchivedArtifactId(uniqueId); if (null == containerId) { return Collections.emptyMap(); } else { return containerModel.readPublishedTo(uniqueId, vers... | public Map<User, ArtifactReceipt> readPublishedTo(final UUID uniqueId, final Long versionId) { final Long containerId = readArchivedArtifactId(uniqueId); if (null == containerId) { return Collections.emptyMap(); } else { return containerModel.readPublishedTo(containerId, v... | 1,114,004 |
private void initComponents() { contactsJLabel = LabelFactory.create(CONTACTS_ICON); contactsJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { displayManageContacts(); } public void mouseEntered(final MouseEvent e) { contactsJLabel.setIcon(CONTACTS_ROLLOVER_ICON)... | private void initComponents() { contactsJLabel = LabelFactory.create(CONTACTS_ICON); contactsJLabel.addMouseListener(new MouseAdapter() { public void mouseClicked(final MouseEvent e) { displayManageContacts(); } public void mouseEntered(final MouseEvent e) { contactsJLabel.setIcon(CONTACTS_ROLLOVER_ICON)... | 1,114,005 |
public void mouseExited(final MouseEvent e) { unselectDocument(document.getId()); } | public void mouseExited(final MouseEvent e) { if(!isWithinListItem(e)) { unselectDocument(document.getId()); } } | 1,114,007 |
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if... | void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if... | 1,114,008 |
void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if... | void receive(final XMPPDocument xmppDocument) throws ParityException { logger.info("receiveDocument(XMPPDocument)"); logger.debug(xmppDocument); try { final JabberId receivedFromJabberId = JabberIdBuilder.parseUsername(xmppDocument.getReceivedFrom()); Document document = get(xmppDocument.getUniqueId()); if... | 1,114,009 |
private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; this.loginUser = loginUser; } | private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; this.loginUser = loginUser; } | 1,114,010 |
private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; this.loginUser = loginUser; } | private Fixture(final Container container, final InternalContainerModel containerModel, final User loginUser) { this.containerModel = containerModel; this.container = container; this.didNotify = Boolean.FALSE; addQueueHelper(junit); addQueueHelper(junit... | 1,114,011 |
protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); addDocuments(OpheliaTestUser.JUN... | protected void setUp() throws Exception { super.setUp(); login(OpheliaTestUser.JUNIT); final InternalContainerModel containerModel = getContainerModel(OpheliaTestUser.JUNIT); final Container container = createContainer(OpheliaTestUser.JUNIT, NAME); addDocuments(OpheliaTestUser.JUN... | 1,114,012 |
protected void tearDown() throws Exception { logout(OpheliaTestUser.JUNIT); datum.containerModel.removeListener(datum); datum = null; super.tearDown(); } | protected void tearDown() throws Exception { logout(OpheliaTestUser.JUNIT); datum.containerModel.removeListener(datum); datum = null; super.tearDown(); } | 1,114,013 |
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | 1,114,014 |
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | 1,114,015 |
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | 1,114,016 |
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | 1,114,017 |
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | 1,114,018 |
public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | public void testCreateDraft() { logTrace("{0} - Creating draft for container \"{1}\".", NAME, datum.container.getName()); final ContainerDraft draft = datum.containerModel.createDraft(datum.container.getId()); assertNotNull(NAME, draft); assertEquals(NAME + " [DRAFT ID DOES NOT MATCH EX... | 1,114,019 |
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("WebappLoader : No template name provided"); } ... | 1,114,020 |
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } while ... | 1,114,021 |
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | 1,114,022 |
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | 1,114,023 |
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | 1,114,024 |
public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | public synchronized InputStream getResourceStream( String name ) throws ResourceNotFoundException { InputStream result = null; if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try ... | 1,114,025 |
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | 1,114,026 |
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { paths = new String[1]; paths[0] = "/"; ... | 1,114,027 |
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | 1,114,028 |
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | 1,114,029 |
public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | public void init( ExtendedProperties configuration) { rsvc.info("WebappLoader : initialization starting."); // get custom default path path = configuration.getString("path"); if (path == null || path.length() == 0) { path = "/"; } else { ... | 1,114,030 |
private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS... | private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS + 1]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_... | 1,114,031 |
private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS... | private void initBackgroundImages() { if (null == scaledContainerBackgroundLeft) { scaledContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS]; } if (null == clippedContainerBackgroundLeft) { clippedContainerBackgroundLeft = new BufferedImage[NUMBER_VISIBLE_ROWS... | 1,114,032 |
public SessionSendFormAvatar() { // COLOR Send Form Background super("SessionSendForm", Color.WHITE); this.contactsModel = new DefaultListModel(); this.contactsSelectionModel = new DefaultListSelectionModel(); this.teamModel = new DefaultListModel(); this.teamSelectionModel = new DefaultListSelectionModel(... | public SessionSendFormAvatar() { // COLOR Send Form Background super("SessionSendForm", BrowserConstants.DIALOGUE_BACKGROUND); this.contactsModel = new DefaultListModel(); this.contactsSelectionModel = new DefaultListSelectionModel(); this.teamModel = new DefaultListModel(); this.teamSelectionModel = new D... | 1,114,033 |
private AvatarFactory(final Platform platform) { super(); this.avatarRegistry = new AvatarRegistry(); this.logger = Logger.getLogger(getClass()); } | private AvatarFactory(final Platform platform) { super(); this.avatarRegistry = new AvatarRegistry(); } | 1,114,034 |
private void register(final Avatar avatar) { logger.info(MessageFormat.format("AVATAR {0} REGISTERED", avatar.getId().toString())); Assert.assertIsNull( "Avatar " + avatar.getId() + " already registered.", avatarRegistry.put(avatar.getId(), avatar)); } | private void register(final Avatar avatar) { logger.info(MessageFormat.format("AVATAR {0} REGISTERED", avatar.getId().toString())); Assert.assertIsNull( "Avatar " + avatar.getId() + " already registered.", avatarRegistry.put(avatar.getId(), avatar)); } | 1,114,035 |
private Display createContent() { if(null == content) { content = new ContentDisplay(); applySize(content, 275); } return content; } | private Display createContent() { if(null == content) { content = new ContentDisplay(); applySize(content, 300); } return content; } | 1,114,037 |
private Display createForm() { if(null == form) { form = new FormDisplay(); applySize(form, 435); } return form; } | private Display createForm() { if(null == form) { form = new FormDisplay(); applySize(form, 394); } return form; } | 1,114,038 |
private Display createInfo() { if(null == info) { info = new InfoDisplay(); applySize(info, 160); } return info; } | private Display createInfo() { if(null == info) { info = new InfoDisplay(); applySize(info, 135); } return info; } | 1,114,039 |
private Display createLogo() { if(null == logo) { logo = new LogoDisplay(); applySize(logo, 85); } return logo; } | private Display createLogo() { if(null == logo) { logo = new LogoDisplay(); applySize(logo, 94); } return logo; } | 1,114,040 |
private Display createTitle() { if(null == title) { title = new TitleDisplay(); applySize(title, 30); } return title; } | private Display createTitle() { if(null == title) { title = new TitleDisplay(); applySize(title, 21); } return title; } | 1,114,041 |
public void panelCellMouseClicked(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { if (e.isPopupTrigger() || (e.getButton() == MouseEvent.BUTTON1)) { westListModel.setSelectedCell(cell); } if ((e.getClickCount() % 2) == 0) { ... | public void panelCellMouseClicked(final Cell cell, final MouseEvent e) { if (cell instanceof WestCell) { if (e.isPopupTrigger() || (e.getButton() == MouseEvent.BUTTON1)) { westListModel.setSelectedCell(cell); } if ((e.getClickCount() % 2) == 0) { ... | 1,114,042 |
public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); installListeners(tabPanel, iconJLabel); } | public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); installListeners(tabPanel, iconJLabel); } | 1,114,043 |
public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); installListeners(tabPanel, iconJLabel); } | public TopWestCellRenderer(final DefaultTabPanel tabPanel) { super(tabPanel); initComponents(); } | 1,114,044 |
LogoDisplay() { // COLOR WHITE super("LogoDisplay", Color.WHITE); // COLOR 180, 180, 180, 255 setBorder(new DefaultBorder(new Color(180, 180, 180, 255))); } | LogoDisplay() { // COLOR WHITE super("LogoDisplay", Color.WHITE); // COLOR 180, 180, 180, 255 setBorder(new TopBorder(new Color(180, 180, 180, 255))); } | 1,114,045 |
User create(final JabberId jabberId) throws ParityException { final User remoteUser = getInternalSessionModel().readUser(jabberId); return userIO.create(remoteUser); } | User create(final JabberId jabberId) throws ParityException { final User remoteUser = getInternalSessionModel().readUser(jabberId); userIO.create(remoteUser); return read(jabberId); } | 1,114,046 |
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | 1,114,047 |
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | 1,114,048 |
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | 1,114,049 |
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toS... | 1,114,050 |
public int compare(final Contact o1, final Contact o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } } | public int compare(final Contact o1, final Contact o2) { final int compareResult = o1.getName().compareTo(o2.getName()); if(0 == compareResult) { return subCompare(o1, o2); } else { return compareResult * resultMultiplier; } } | 1,114,053 |
public int whichTaxonNumber(Taxon t){ for (int i=0; i<numTaxa; i++) if (t == taxon[i]) return i; return -1; } | public int whichTaxonNumber(Taxon t){ for (int i=0; i<numTaxa; i++) if (t == taxon[i]) return i; return -1; } | 1,114,054 |
void close(final Long documentId, final JabberId closedBy, final Calendar closedOn) { final CloseEvent closeEvent = new CloseEvent(); closeEvent.setArtifactId(documentId); closeEvent.setCreatedBy(closedBy); closeEvent.setCreatedOn(closedOn); closeEvent.setType(AuditEventType.CLOSE); getInternalAuditModel().aud... | void close(final Long documentId, final JabberId closedBy, final Calendar closedOn, final JabberId createdBy) { final CloseEvent closeEvent = new CloseEvent(); closeEvent.setArtifactId(documentId); closeEvent.setCreatedBy(closedBy); closeEvent.setCreatedOn(closedOn); closeEvent.setType(AuditEventType.CLOSE); g... | 1,114,055 |
public FieldDescriptor getDiscriminatorFieldDescriptor() { return this.discriminatorFieldDescriptor; } | public FieldDescriptor getDiscriminatorFieldDescriptor() { return this.discriminatorFieldDescriptor; } | 1,114,057 |
public boolean hasDiscriminatorField() { return this.discriminatorFieldDescriptor != null; } | public boolean hasDiscriminatorField() { return this.getDiscriminatorFieldDescriptor() != null; } | 1,114,058 |
private void lookupInheritanceSettings() { if (null != this.superClassDescriptor) { if (this.jcrNodeType.equals(this.superClassDescriptor.jcrNodeType)) { this.extendsStrategy = NODETYPE_PER_HIERARCHY; } else { this.extendsStrategy = NODETYPE_PER_... | private void lookupInheritanceSettings() { if (null != this.superClassDescriptor) { if (this.jcrNodeType.equals(this.superClassDescriptor.jcrNodeType)) { this.extendsStrategy = NODETYPE_PER_HIERARCHY; } else { this.extendsStrategy = NODETYPE_PER_... | 1,114,059 |
private void validateInheritanceSettings() { if (NODETYPE_PER_CONCRETECLASS.equals(this.extendsStrategy)) { this.discriminatorFieldDescriptor = findDiscriminatorField(); if (null != this.discriminatorFieldDescriptor) { throw new JcrMappingException(""); } ... | private void validateInheritanceSettings() { if (NODETYPE_PER_CONCRETECLASS.equals(this.extendsStrategy)) { this.discriminatorFieldDescriptor = getDiscriminatorFieldDescriptor(); if (null != this.discriminatorFieldDescriptor) { throw new JcrMappingException(""); ... | 1,114,062 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,063 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,064 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,065 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,066 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,067 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,068 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,069 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,070 |
private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | private void installDataListener() { final DefaultListModel listModel = model.getListModel(); listModel.addListDataListener(new ListDataListener() { public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariab... | 1,114,071 |
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | 1,114,073 |
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | 1,114,074 |
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | 1,114,075 |
public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | public void contentsChanged(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1(); i++) { panelConstraints.grid... | 1,114,076 |
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponent... | public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponent... | 1,114,078 |
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponent... | public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponentCount(); i++) { ... | 1,114,079 |
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponent... | public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponent... | 1,114,080 |
public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponent... | public void intervalAdded(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); final int index0 = e.getIndex0(); tabJPanel.remove(fillJLabel); for (int i = index0; i < tabJPanel.getComponent... | 1,114,081 |
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(... | public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(... | 1,114,083 |
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(... | public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(... | 1,114,084 |
public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(... | public void intervalRemoved(final ListDataEvent e) { debug(); logger.logApiId(); logger.logVariable("e", e); tabJPanel.remove(fillJLabel); for (int i = e.getIndex0(); i < e.getIndex1() + 1; i++) { tabJPanel.remove(... | 1,114,085 |
private void versionsContentJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue(), ... | private void versionsContentJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue(), ... | 1,114,087 |
private void versionsContentJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue()... | private void versionsContentJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsContentJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractContentCell) ((JList) e.getSource()).getSelectedValue()... | 1,114,088 |
private void versionsJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup( (AbstractVersionCell) ((JList) e.getSource()).getSelectedVal... | private void versionsJListMousePressed(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMousePressed logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup( (AbstractVersionCell) ((JList) e.getSource()).getSelectedVal... | 1,114,089 |
private void versionsJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractVersionCell) ((JList) e.getSource()).getSelectedValue(), e); ... | private void versionsJListMouseReleased(java.awt.event.MouseEvent e) {//GEN-FIRST:event_versionsJListMouseReleased logger.logApiId(); logger.logVariable("e", e); if (e.isPopupTrigger()) { triggerJListPopup((AbstractVersionCell) ((JList) e.getSource()).getSelectedValue(), e); ... | 1,114,090 |
public abstract Analysis doAnalysis(Story story); | public abstract Analysis doAnalysis(Story story, String topic); | 1,114,091 |
private void handleIncomingStory(Message msg) { Story s = Story.createFromYAML(msg.content); Analysis a = doAnalysis(s); if (a.isRelevant()) { Message m = new Message(); m.to = "WB.Analyses"; m.content = a.toYAML(); airBrush.postMessage(m); ... | private void handleIncomingStory(Message msg) { Story s = Story.createFromYAML(msg.content); String t = "iceland"; Analysis a = doAnalysis(s, t); if (a.isRelevant()) { Message m = new Message(); m.to = "WB.Analyses"; m.content = a.toYAML(); ai... | 1,114,092 |
public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } ... | public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } ... | 1,114,093 |
public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } ... | public Module(String moduleName) { airBrush = new AirBrush(moduleName, airHostName, airPort); airBrush.setCallbackObject(this); try { airBrush.startListening(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } ... | 1,114,094 |
public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(tru... | public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(tru... | 1,114,095 |
public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(tru... | public History2Window(final BrowserWindow browserWindow, final Avatar avatar) { super(browserWindow, Boolean.FALSE, ""); final Color c1 = new Color(196, 213, 255, 255); final Color c2 = new Color(117, 130, 162, 255); getRootPane().setBorder(new CustomEtechedBorder(EtchedBorder.RAISED, c1, c2)); setUndecorated(tru... | 1,114,096 |
private static Point calculateLocation(final BrowserWindow browserWindow, final Dimension hws) { final Point bwl = browserWindow.getLocation(); final Dimension bws = browserWindow.getSize(); return new Point(bwl.x + bws.width, bwl.y + (bws.height - hws.height)); } | private static Point calculateLocation(final BrowserWindow browserWindow, final Dimension hws) { final Point bwl = browserWindow.getLocation(); final Dimension bws = browserWindow.getSize(); return new Point(bwl.x + bws.width, bwl.y + (bws.height - hws.height) - 45); } | 1,114,097 |
public void applySearchFilter(final List<IndexHit> searchResult) { if(null == searchFilter) { searchFilter = new com.thinkparity.model.parity.model.filter.artifact.Search(searchResult); } else { searchFilter.setResults(searchResult); } SwingUtilities.invokeLater(new Runnable() { public void run() { ((Bro... | public void applySearchFilter(final List<IndexHit> searchResult) { if(null == searchFilter) { searchFilter = new com.thinkparity.model.parity.model.filter.artifact.Search(searchResult); } else { searchFilter.setResults(searchResult); } SwingUtilities.invokeLater(new Runnable() { public void run() { ((Bro... | 1,114,098 |
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).applyFilter(searchFilter); } | public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } | 1,114,099 |
public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } | public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); } | 1,114,100 |
public void run() { ((BrowserMainAvatar) avatarRegistry.get(AvatarId.BROWSER_MAIN)).reloadDocument(documentId, Boolean.FALSE); } | public void run() { ((BrowserInfoAvatar) avatarRegistry.get(AvatarId.BROWSER_INFO)).reload(); } | 1,114,101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.