rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
setModified(true); | public void setJobClass(String jobClass) { if (((jobClass == null) && (_jobClass != null)) || ((jobClass != null) && (_jobClass == null)) || ((jobClass != null) && (_jobClass != null) && !jobClass.equals(_jobClass))) { if (!XSS_ALLOW_JOBCLASS) { jobClass = XSSUtil.strip(jobClass); } _jobClass = jobC... | |
setModified(true); | public void setJobTitle(String jobTitle) { if (((jobTitle == null) && (_jobTitle != null)) || ((jobTitle != null) && (_jobTitle == null)) || ((jobTitle != null) && (_jobTitle != null) && !jobTitle.equals(_jobTitle))) { if (!XSS_ALLOW_JOBTITLE) { jobTitle = XSSUtil.strip(jobTitle); } _jobTitle = jobT... | |
setModified(true); | public void setLastName(String lastName) { if (((lastName == null) && (_lastName != null)) || ((lastName != null) && (_lastName == null)) || ((lastName != null) && (_lastName != null) && !lastName.equals(_lastName))) { if (!XSS_ALLOW_LASTNAME) { lastName = XSSUtil.strip(lastName); } _lastName = last... | |
setModified(true); | public void setMale(boolean male) { if (male != _male) { _male = male; setModified(true); } } | |
setModified(true); | public void setMiddleName(String middleName) { if (((middleName == null) && (_middleName != null)) || ((middleName != null) && (_middleName == null)) || ((middleName != null) && (_middleName != null) && !middleName.equals(_middleName))) { if (!XSS_ALLOW_MIDDLENAME) { middleName = XSSUtil.strip(middleNam... | |
setModified(true); | public void setMsnSn(String msnSn) { if (((msnSn == null) && (_msnSn != null)) || ((msnSn != null) && (_msnSn == null)) || ((msnSn != null) && (_msnSn != null) && !msnSn.equals(_msnSn))) { if (!XSS_ALLOW_MSNSN) { msnSn = XSSUtil.strip(msnSn); } _msnSn = msnSn; setModified(true); } } | |
setModified(true); | public void setNickName(String nickName) { if (((nickName == null) && (_nickName != null)) || ((nickName != null) && (_nickName == null)) || ((nickName != null) && (_nickName != null) && !nickName.equals(_nickName))) { if (!XSS_ALLOW_NICKNAME) { nickName = XSSUtil.strip(nickName); } _nickName = nick... | |
setModified(true); | public void setParentContactId(String parentContactId) { if (((parentContactId == null) && (_parentContactId != null)) || ((parentContactId != null) && (_parentContactId == null)) || ((parentContactId != null) && (_parentContactId != null) && !parentContactId.equals(_parentContactId))) { if (!XSS_ALLOW_PAR... | |
setModified(true); | public void setPrefixId(String prefixId) { if (((prefixId == null) && (_prefixId != null)) || ((prefixId != null) && (_prefixId == null)) || ((prefixId != null) && (_prefixId != null) && !prefixId.equals(_prefixId))) { if (!XSS_ALLOW_PREFIXID) { prefixId = XSSUtil.strip(prefixId); } _prefixId = pref... | |
setModified(true); | public void setSkypeSn(String skypeSn) { if (((skypeSn == null) && (_skypeSn != null)) || ((skypeSn != null) && (_skypeSn == null)) || ((skypeSn != null) && (_skypeSn != null) && !skypeSn.equals(_skypeSn))) { if (!XSS_ALLOW_SKYPESN) { skypeSn = XSSUtil.strip(skypeSn); } _skypeSn = skypeSn; setModi... | |
setModified(true); | public void setSmsSn(String smsSn) { if (((smsSn == null) && (_smsSn != null)) || ((smsSn != null) && (_smsSn == null)) || ((smsSn != null) && (_smsSn != null) && !smsSn.equals(_smsSn))) { if (!XSS_ALLOW_SMSSN) { smsSn = XSSUtil.strip(smsSn); } _smsSn = smsSn; setModified(true); } } | |
setModified(true); | public void setSuffixId(String suffixId) { if (((suffixId == null) && (_suffixId != null)) || ((suffixId != null) && (_suffixId == null)) || ((suffixId != null) && (_suffixId != null) && !suffixId.equals(_suffixId))) { if (!XSS_ALLOW_SUFFIXID) { suffixId = XSSUtil.strip(suffixId); } _suffixId = suff... | |
setModified(true); | public void setYmSn(String ymSn) { if (((ymSn == null) && (_ymSn != null)) || ((ymSn != null) && (_ymSn == null)) || ((ymSn != null) && (_ymSn != null) && !ymSn.equals(_ymSn))) { if (!XSS_ALLOW_YMSN) { ymSn = XSSUtil.strip(ymSn); } _ymSn = ymSn; setModified(true); } } | |
entry = entry.trim(); | String [] parts = entry.split(StringPool.LESS_THAN); | private InternetAddress _getAddress(String entry) throws Exception { InternetAddress ia = new InternetAddress(); entry = entry.trim(); if (entry.endsWith(StringPool.GREATER_THAN)) { int iaBeg = entry.indexOf(StringPool.LESS_THAN); if (iaBeg < 0) { // throw exception } else { String address = ... |
if (entry.endsWith(StringPool.GREATER_THAN)) { int iaBeg = entry.indexOf(StringPool.LESS_THAN); if (iaBeg < 0) { | if (parts.length == 2) { String name = parts[0].trim(); if (name.endsWith(StringPool.QUOTE) || name.endsWith(StringPool.APOSTROPHE)) { name = name.substring(0, name.length() - 1); } if (name.startsWith(StringPool.QUOTE) || name.startsWith(StringPool.APOSTROPHE)) { name = name.substring(1); } String address = parts[1... | private InternetAddress _getAddress(String entry) throws Exception { InternetAddress ia = new InternetAddress(); entry = entry.trim(); if (entry.endsWith(StringPool.GREATER_THAN)) { int iaBeg = entry.indexOf(StringPool.LESS_THAN); if (iaBeg < 0) { // throw exception } else { String address = ... |
else { String address = entry.substring(iaBeg + 1, entry.length() - 2).trim(); String name = entry.substring(0, iaBeg - 1).trim(); if (!Validator.isAddress(address)) { } | private InternetAddress _getAddress(String entry) throws Exception { InternetAddress ia = new InternetAddress(); entry = entry.trim(); if (entry.endsWith(StringPool.GREATER_THAN)) { int iaBeg = entry.indexOf(StringPool.LESS_THAN); if (iaBeg < 0) { // throw exception } else { String address = ... | |
ia.setAddress(address); ia.setPersonal(name); | ia.setAddress(address.trim()); ia.setPersonal(name.trim()); } else if (parts.length == 1) { if (!Validator.isAddress(parts[0])) { | private InternetAddress _getAddress(String entry) throws Exception { InternetAddress ia = new InternetAddress(); entry = entry.trim(); if (entry.endsWith(StringPool.GREATER_THAN)) { int iaBeg = entry.indexOf(StringPool.LESS_THAN); if (iaBeg < 0) { // throw exception } else { String address = ... |
if (!Validator.isAddress(entry)) { } ia.setAddress(entry); | private InternetAddress _getAddress(String entry) throws Exception { InternetAddress ia = new InternetAddress(); entry = entry.trim(); if (entry.endsWith(StringPool.GREATER_THAN)) { int iaBeg = entry.indexOf(StringPool.LESS_THAN); if (iaBeg < 0) { // throw exception } else { String address = ... | |
Address [] addresses = new Address[entries.length]; | List addresses = new ArrayList(); | private Address [] _getAddresses(String mailingList) throws Exception { String [] entries = mailingList.split(",|;"); Address [] addresses = new Address[entries.length]; for (int i = 0; i < entries.length; i++) { addresses[i] = _getAddress(entries[i]); } return addresses; } |
addresses[i] = _getAddress(entries[i]); | String entry = entries[i].trim(); if (Validator.isNotNull(entry)) { addresses.add(_getAddress(entry)); } | private Address [] _getAddresses(String mailingList) throws Exception { String [] entries = mailingList.split(",|;"); Address [] addresses = new Address[entries.length]; for (int i = 0; i < entries.length; i++) { addresses[i] = _getAddress(entries[i]); } return addresses; } |
return addresses; | return (Address [])addresses.toArray(new Address [] {}); | private Address [] _getAddresses(String mailingList) throws Exception { String [] entries = mailingList.split(",|;"); Address [] addresses = new Address[entries.length]; for (int i = 0; i < entries.length; i++) { addresses[i] = _getAddress(entries[i]); } return addresses; } |
String imagePrefix = "attachment_"; | String prefix = "attachment"; | private Map _getAttachments(UploadPortletRequest uploadReq) throws Exception { Map attachments = new HashMap(); String imagePrefix = "attachment_"; Enumeration enu = uploadReq.getParameterNames(); while (enu.hasMoreElements()) { String name = (String)enu.nextElement(); if (name.startsWith(imagePrefix)) { Fi... |
if (name.startsWith(imagePrefix)) { | if (name.startsWith(prefix)) { | private Map _getAttachments(UploadPortletRequest uploadReq) throws Exception { Map attachments = new HashMap(); String imagePrefix = "attachment_"; Enumeration enu = uploadReq.getParameterNames(); while (enu.hasMoreElements()) { String name = (String)enu.nextElement(); if (name.startsWith(imagePrefix)) { Fi... |
attachments.put(file.getName(), bytes); | attachments.put(uploadReq.getFileName(name), bytes); | private Map _getAttachments(UploadPortletRequest uploadReq) throws Exception { Map attachments = new HashMap(); String imagePrefix = "attachment_"; Enumeration enu = uploadReq.getParameterNames(); while (enu.hasMoreElements()) { String name = (String)enu.nextElement(); if (name.startsWith(imagePrefix)) { Fi... |
_log.error("Unable to send message"); | public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { if (cmd.equals(Constants.SEND)) { Address [] tos = _getAddresses(ParamUtil.getString(req, "tos")); ... | |
sb.append("\t\t<module-name>").append(path.substring(3, path.length())).append(".war</module-name>\n"); | sb.append("\t\t<module-name>"); if (path.endsWith("-complete")) { sb.append("_"); } sb.append(path.substring(3, path.length())).append(".war</module-name>\n"); | private String _buildPramatiXMLWebModule(String path) throws DocumentException, IOException { String contextRoot = path.substring(2, path.length() - 4); String filePath = path + "/docroot/WEB-INF/web.xml"; if (path.endsWith("-complete")) { contextRoot = "/"; filePath = path.substring(0, path.length() - 9) +... |
String servletClass = config.getInitParameter("servlet-class"); | _config = config; | public void init(ServletConfig config) throws ServletException { String servletClass = config.getInitParameter("servlet-class"); ClassLoader classLoader = PortalClassLoaderUtil.getClassLoader(); try { _servlet = (HttpServlet)classLoader.loadClass( servletClass).newInstance(); } catch (ClassNotFoundException ... |
ClassLoader classLoader = PortalClassLoaderUtil.getClassLoader(); try { _servlet = (HttpServlet)classLoader.loadClass( servletClass).newInstance(); } catch (ClassNotFoundException cnfe) { throw new ServletException(cnfe.getMessage()); } catch (IllegalAccessException iae) { throw new ServletException(iae.getMessage());... | PortalInitableUtil.init(this); | public void init(ServletConfig config) throws ServletException { String servletClass = config.getInitParameter("servlet-class"); ClassLoader classLoader = PortalClassLoaderUtil.getClassLoader(); try { _servlet = (HttpServlet)classLoader.loadClass( servletClass).newInstance(); } catch (ClassNotFoundException ... |
aimSn, icqSn, msnSn, ymSn, contact.getJobTitle(), null, null); | aimSn, icqSn, msnSn, ymSn, contact.getJobTitle(), user.getOrganization().getOrganizationId(), user.getLocation().getOrganizationId()); | public static User updateUser( HttpServletRequest req, String userId, String emailAddress, String languageId, String timeZoneId, String greeting, String resolution, String comments, String smsSn, String aimSn, String icqSn, String msnSn, String ymSn) throws PortalException, SystemException { String password ... |
me.setRecipient(email.toString()); | if (email.length() > 0) { me.setRecipient(email.toString()); } | public static SortedSet getEnvelopes(HttpSession ses, Comparator comp) throws FolderException { SortedSet envelopes = new TreeSet(comp); try { Message [] msgs = _getCurrentFolder(ses).getMessages(); FetchProfile fp = new FetchProfile(); fp.add(FetchProfile.Item.ENVELOPE); fp.add(FetchProfile.Item.FLAG... |
if (shoppingCoupon.isNew() || shoppingCoupon.isModified()) { session = openSession(); if (shoppingCoupon.isNew()) { ShoppingCoupon shoppingCouponModel = new ShoppingCoupon(); shoppingCouponModel.setCouponId(shoppingCoupon.getCouponId()); shoppingCouponModel.setGroupId(shoppingCoupon.getGroupId()); shoppingCouponModel.... | session = openSession(); session.saveOrUpdate(shoppingCoupon); session.flush(); shoppingCoupon.setNew(false); | public com.liferay.portlet.shopping.model.ShoppingCoupon update( com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) throws SystemException { Session session = null; try { if (shoppingCoupon.isNew() || shoppingCoupon.isModified()) { session = openSession(); if (shoppingCoupon.isNew()) { S... |
return new ABContact(getContactId(), getUserId(), getFirstName(), getMiddleName(), getLastName(), getNickName(), getEmailAddress(), getHomeStreet(), getHomeCity(), getHomeState(), getHomeZip(), getHomeCountry(), getHomePhone(), getHomeFax(), getHomeCell(), getHomePager(), getHomeTollFree(), getHomeEmailAddress(), getBu... | ABContact clone = new ABContact(); clone.setContactId(getContactId()); clone.setUserId(getUserId()); clone.setFirstName(getFirstName()); clone.setMiddleName(getMiddleName()); clone.setLastName(getLastName()); clone.setNickName(getNickName()); clone.setEmailAddress(getEmailAddress()); clone.setHomeStreet(getHomeStreet()... | public Object clone() { return new ABContact(getContactId(), getUserId(), getFirstName(), getMiddleName(), getLastName(), getNickName(), getEmailAddress(), getHomeStreet(), getHomeCity(), getHomeState(), getHomeZip(), getHomeCountry(), getHomePhone(), getHomeFax(), getHomeCell(), getHomePager(), getHomeTollFr... |
return new com.liferay.portlet.mail.model.MailReceipt(receiptId); | MailReceiptHBM mailReceiptHBM = new MailReceiptHBM(); mailReceiptHBM.setNew(true); mailReceiptHBM.setPrimaryKey(receiptId); return MailReceiptHBMUtil.model(mailReceiptHBM); | public com.liferay.portlet.mail.model.MailReceipt create(String receiptId) { return new com.liferay.portlet.mail.model.MailReceipt(receiptId); } |
com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptPool.get(receiptId); | public com.liferay.portlet.mail.model.MailReceipt findByPrimaryKey( String receiptId) throws NoSuchReceiptException, SystemException { com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptPool.get(receiptId); Session session = null; try { if (mailReceipt == null) { session = openSession(); M... | |
if (mailReceipt == null) { session = openSession(); | session = openSession(); | public com.liferay.portlet.mail.model.MailReceipt findByPrimaryKey( String receiptId) throws NoSuchReceiptException, SystemException { com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptPool.get(receiptId); Session session = null; try { if (mailReceipt == null) { session = openSession(); M... |
if (mailReceiptHBM == null) { _log.warn("No MailReceipt exists with the primary key " + receiptId.toString()); throw new NoSuchReceiptException( "No MailReceipt exists with the primary key " + receiptId.toString()); } mailReceipt = MailReceiptHBMUtil.model(mailReceiptHBM, false); | if (mailReceiptHBM == null) { _log.warn("No MailReceipt exists with the primary key " + receiptId.toString()); throw new NoSuchReceiptException( "No MailReceipt exists with the primary key " + receiptId.toString()); | public com.liferay.portlet.mail.model.MailReceipt findByPrimaryKey( String receiptId) throws NoSuchReceiptException, SystemException { com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptPool.get(receiptId); Session session = null; try { if (mailReceipt == null) { session = openSession(); M... |
return mailReceipt; | return MailReceiptHBMUtil.model(mailReceiptHBM); | public com.liferay.portlet.mail.model.MailReceipt findByPrimaryKey( String receiptId) throws NoSuchReceiptException, SystemException { com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptPool.get(receiptId); Session session = null; try { if (mailReceipt == null) { session = openSession(); M... |
com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptHBMUtil.model(mailReceiptHBM); | public com.liferay.portlet.mail.model.MailReceipt remove(String receiptId) throws NoSuchReceiptException, SystemException { Session session = null; try { session = openSession(); MailReceiptHBM mailReceiptHBM = (MailReceiptHBM)session.get(MailReceiptHBM.class, receiptId); if (mailReceiptHBM == null) { ... | |
MailReceiptPool.remove(receiptId); | public com.liferay.portlet.mail.model.MailReceipt remove(String receiptId) throws NoSuchReceiptException, SystemException { Session session = null; try { session = openSession(); MailReceiptHBM mailReceiptHBM = (MailReceiptHBM)session.get(MailReceiptHBM.class, receiptId); if (mailReceiptHBM == null) { ... | |
return mailReceipt; | return MailReceiptHBMUtil.model(mailReceiptHBM); | public com.liferay.portlet.mail.model.MailReceipt remove(String receiptId) throws NoSuchReceiptException, SystemException { Session session = null; try { session = openSession(); MailReceiptHBM mailReceiptHBM = (MailReceiptHBM)session.get(MailReceiptHBM.class, receiptId); if (mailReceiptHBM == null) { ... |
MailReceiptPool.remove((String)mailReceiptHBM.getPrimaryKey()); | public void removeByCompanyId(String companyId) throws SystemException { Session session = null; try { session = openSession(); StringBuffer query = new StringBuffer(); query.append( "FROM MailReceipt IN CLASS com.liferay.portlet.mail.service.persistence.MailReceiptHBM WHERE "); query.append("companyId = ... | |
MailReceiptPool.remove((String)mailReceiptHBM.getPrimaryKey()); | public void removeByUserId(String userId) throws SystemException { Session session = null; try { session = openSession(); StringBuffer query = new StringBuffer(); query.append( "FROM MailReceipt IN CLASS com.liferay.portlet.mail.service.persistence.MailReceiptHBM WHERE "); query.append("userId = ?"); qu... | |
MailReceiptHBM mailReceiptHBM = new MailReceiptHBM(mailReceipt.getReceiptId(), mailReceipt.getCompanyId(), mailReceipt.getUserId(), mailReceipt.getCreateDate(), mailReceipt.getModifiedDate(), mailReceipt.getRecipientName(), mailReceipt.getRecipientAddress(), mailReceipt.getSubject(), mailReceipt.getSentDate(), mailRece... | MailReceiptHBM mailReceiptHBM = new MailReceiptHBM(); mailReceiptHBM.setReceiptId(mailReceipt.getReceiptId()); mailReceiptHBM.setCompanyId(mailReceipt.getCompanyId()); mailReceiptHBM.setUserId(mailReceipt.getUserId()); mailReceiptHBM.setCreateDate(mailReceipt.getCreateDate()); mailReceiptHBM.setModifiedDate(mailReceipt... | public com.liferay.portlet.mail.model.MailReceipt update( com.liferay.portlet.mail.model.MailReceipt mailReceipt) throws SystemException { Session session = null; try { if (mailReceipt.isNew() || mailReceipt.isModified()) { session = openSession(); if (mailReceipt.isNew()) { MailReceiptHBM mailReceiptH... |
mailReceiptHBM = new MailReceiptHBM(mailReceipt.getReceiptId(), mailReceipt.getCompanyId(), mailReceipt.getUserId(), mailReceipt.getCreateDate(), mailReceipt.getModifiedDate(), mailReceipt.getRecipientName(), mailReceipt.getRecipientAddress(), mailReceipt.getSubject(), mailReceipt.getSentDate(), mailReceipt.getReadCoun... | mailReceiptHBM = new MailReceiptHBM(); mailReceiptHBM.setReceiptId(mailReceipt.getReceiptId()); mailReceiptHBM.setCompanyId(mailReceipt.getCompanyId()); mailReceiptHBM.setUserId(mailReceipt.getUserId()); mailReceiptHBM.setCreateDate(mailReceipt.getCreateDate()); mailReceiptHBM.setModifiedDate(mailReceipt.getModifiedDat... | public com.liferay.portlet.mail.model.MailReceipt update( com.liferay.portlet.mail.model.MailReceipt mailReceipt) throws SystemException { Session session = null; try { if (mailReceipt.isNew() || mailReceipt.isModified()) { session = openSession(); if (mailReceipt.isNew()) { MailReceiptHBM mailReceiptH... |
mailReceipt.protect(); MailReceiptPool.update(mailReceipt.getPrimaryKey(), mailReceipt); | public com.liferay.portlet.mail.model.MailReceipt update( com.liferay.portlet.mail.model.MailReceipt mailReceipt) throws SystemException { Session session = null; try { if (mailReceipt.isNew() || mailReceipt.isModified()) { session = openSession(); if (mailReceipt.isNew()) { MailReceiptHBM mailReceiptH... | |
public Group getGroup(String companyId, String name) | public Group getGroup(String groupId) | public Group getGroup(String companyId, String name) throws PortalException, SystemException { return GroupLocalServiceUtil.getGroup(companyId, name); } |
return GroupLocalServiceUtil.getGroup(companyId, name); | return GroupLocalServiceUtil.getGroup(groupId); | public Group getGroup(String companyId, String name) throws PortalException, SystemException { return GroupLocalServiceUtil.getGroup(companyId, name); } |
return new ABList(getListId(), getUserId(), getName()); | ABList clone = new ABList(); clone.setListId(getListId()); clone.setUserId(getUserId()); clone.setName(getName()); return clone; | public Object clone() { return new ABList(getListId(), getUserId(), getName()); } |
if (PermissionFinder.countByGroupsRoles(permissions, groups) > 0) { return true; | if (groups.size() > 0) { if (PermissionFinder.countByGroupsRoles(permissions, groups) > 0) { return true; } | public boolean hasUserPermissions( String userId, String groupId, String actionId, String[] resourceIds, PermissionCheckerBag permissionCheckerBag) throws PortalException, SystemException { long start = 0; if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } // Return false if there is no reso... |
req, portletId, true, true); | portletId, layoutId, ownerId); | public String getJSON( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); String portletId =... |
public ChangeEvent( Object source, ChangeType type, Object change, Object previous ) { this(source, type, change, previous, null); | public ChangeEvent(Object source, ChangeType type) { this(source, type, null, null, null); | public ChangeEvent( Object source, ChangeType type, Object change, Object previous ) { this(source, type, change, previous, null); } |
public SimpleAnnotation(Annotation ann) throws IllegalArgumentException { super(ann); | public SimpleAnnotation() { super(); | public SimpleAnnotation(Annotation ann) throws IllegalArgumentException { super(ann); } |
public FeatureHolder filter(FeatureFilter ff, boolean recurse) { SimpleFeatureHolder res = new SimpleFeatureHolder(); for(Iterator f = features(); f.hasNext();) { Feature feat = (Feature) f.next(); if(ff.accept(feat)) { try { res.addFeature(feat); } catch (ChangeVetoException cve) { throw new BioError( "Assertion faile... | public FeatureHolder filter(FeatureFilter filter) { boolean recurse = FilterUtils.areProperSubset(filter, FeatureFilter.top_level); return filter(filter, recurse); | public FeatureHolder filter(FeatureFilter ff, boolean recurse) { SimpleFeatureHolder res = new SimpleFeatureHolder(); for(Iterator f = features(); f.hasNext();) { Feature feat = (Feature) f.next(); if(ff.accept(feat)) { try { res.addFeature(feat); } catch (ChangeVetoException cv... |
return res; } | public FeatureHolder filter(FeatureFilter ff, boolean recurse) { SimpleFeatureHolder res = new SimpleFeatureHolder(); for(Iterator f = features(); f.hasNext();) { Feature feat = (Feature) f.next(); if(ff.accept(feat)) { try { res.addFeature(feat); } catch (ChangeVetoException cv... | |
if (iwModel.isPartialMatchWord()) { System.out.println(iwModel.getMatchedWord()); System.out.println(iwModel.getWord()); System.out.println(iwModel.getMatchedPoint()); System.out.println(iwModel.getMatchedWord().equals(iwModel.getWord())); System.out.println(iwModel.getWordList()); System.out.println("partial!!!: "+mat... | public void initDataWithMem(Set<String> wordSet) { clearData(); Set<String> matchedWordSet = new HashSet<String>(); for (String word : wordSet) { InputWordModel iwModel = makeInputWordModel(word, wordConceptSetMap); if (iwModel != null) { inputWordModelSet.a... | |
DODDLE.STATUS_BAR.addProjectValue(); | public Map calcWordSpaceResult() { allConceptPairs.clear(); if (corpusTokenList.size() == 0) { return null; } if (0 < wsData.getGramNumber()) { for (int i = 1; i <= wsData.getGramNumber(); i++) { setGram(i, corpusTokenList); } } // System.out.p... | |
Collections.sort(inputWordList); | public List<String> getInputWordList() { List<String> inputWordList = new ArrayList<String>(); wordCorrespondConceptSetMap = disambiguationPanel.getWordCorrespondConceptSetMap(); wordConceptSetMap = disambiguationPanel.getWordConceptSetMap(); complexWordConceptMap = doddleProject.getCons... | |
return complexWordConceptMap.keySet(); | Set<String> complexWordSet = new HashSet<String>(); Set<String> wordSet = wordConceptSetMap.keySet(); for (String w : wordSet) { if (w.indexOf(" ") != -1) { complexWordSet.add(w); } } Set<String> partialMatchedWordSet = complexWordConceptMap.keySet(); if (partialMatchedWordSet != null) { complexWordSet.addAll(partialMa... | public Set<String> getComplexWordSet() { return complexWordConceptMap.keySet(); } |
public static void addEnComplexWord(List tokenList, Set<String> complexWordSet) { | public static void addEnComplexWord(List<String> tokenList, Set<String> complexWordSet) { | public static void addEnComplexWord(List tokenList, Set<String> complexWordSet) { for (String complexWord : complexWordSet) { List complexWordList = Arrays.asList(complexWord.split("\\s+")); Utils.addComplexWord(complexWord, complexWordList, tokenList, complexWordSet); } } |
List complexWordList = Arrays.asList(complexWord.split("\\s+")); Utils.addComplexWord(complexWord, complexWordList, tokenList, complexWordSet); | List<String> complexWordElementList = Arrays.asList(complexWord.split("\\s+")); Utils.addComplexWord(complexWord, complexWordElementList, tokenList, complexWordSet); | public static void addEnComplexWord(List tokenList, Set<String> complexWordSet) { for (String complexWord : complexWordSet) { List complexWordList = Arrays.asList(complexWord.split("\\s+")); Utils.addComplexWord(complexWord, complexWordList, tokenList, complexWordSet); } } |
List complexWordList = new ArrayList(); | List complexWordElementList = new ArrayList(); | public static void addJaComplexWord(List tokenList, Set<String> complexWordSet) { try { for (String complexWord : complexWordSet) { StringTagger tagger = StringTagger.getInstance(); Token[] complexWordToken = tagger.analyze(complexWord); List complexWor... |
complexWordList.add(complexWordToken[i].getBasicString()); | complexWordElementList.add(complexWordToken[i].getBasicString()); | public static void addJaComplexWord(List tokenList, Set<String> complexWordSet) { try { for (String complexWord : complexWordSet) { StringTagger tagger = StringTagger.getInstance(); Token[] complexWordToken = tagger.analyze(complexWord); List complexWor... |
Utils.addComplexWord(complexWord, complexWordList, tokenList, complexWordSet); | Utils.addComplexWord(complexWord, complexWordElementList, tokenList, complexWordSet); | public static void addJaComplexWord(List tokenList, Set<String> complexWordSet) { try { for (String complexWord : complexWordSet) { StringTagger tagger = StringTagger.getInstance(); Token[] complexWordToken = tagger.analyze(complexWord); List complexWor... |
connectionParameters = new ConnectionParameters(c.getProperties(), url, user, pwd, schema, cat); | connectionParameters = new ConnectionParameters(c.getProperties(), url, user, pwd, schema, cat, ThisParameter.get(ctx)); | public ConnectionManager(ScriptsContext ctx, ConnectionEl c) { String cat = ctx.substituteProperties(c.getCatalog()); String drvClass = ctx.substituteProperties(c.getDriver()); String pwd = ctx.substituteProperties(c.getPassword()); String user = ctx.substituteProperties(c.getUser()); ... |
expected.put(5, "555"); | public void test() throws ScriptsExecutorException { final Connection con = getConnection("onerrortest"); ScriptsExecutor se = newScriptsExecutor(); se.execute(); Query q = new Query("select * from test"); final Map<Integer, String> expected = new LinkedHashMap<Integer, String>();... | |
final DefaultFileReplicator replicator = new DefaultFileReplicator(); | final DefaultFileReplicator replicator = createDefaultFileReplicator(); | public void init() throws FileSystemException { // Set the replicator and temporary file store (use the same component) final DefaultFileReplicator replicator = new DefaultFileReplicator(); setReplicator(new PrivilegedFileReplicator(replicator)); setTemporaryFileStore(replicator); ... |
public JobConf(Configuration conf, Class aClass) { this(conf); String jar = findContainingJar(aClass); if (jar != null) { setJar(jar); } | public JobConf() { super(); | public JobConf(Configuration conf, Class aClass) { this(conf); String jar = findContainingJar(aClass); if (jar != null) { setJar(jar); } } |
super( context, rootName ); | super( context, rootName, null ); | public FtpFileSystem( final FileSystemProviderContext context, final FileName rootName, final String hostname, final String username, final String password ) throws FileSystemException { super( conte... |
final FileName rootName ) | final FileName rootName, final FileObject parentLayer ) | protected AbstractFileSystem( final FileSystemProviderContext context, final FileName rootName ) { this.rootName = rootName; this.context = context; } |
this.parentLayer = parentLayer; | protected AbstractFileSystem( final FileSystemProviderContext context, final FileName rootName ) { this.rootName = rootName; this.context = context; } | |
public synchronized static FileSystemManager getManager() | public static synchronized FileSystemManager getManager() | public synchronized static FileSystemManager getManager() throws FileSystemException { if ( instance == null ) { instance = doCreateManager(); } return instance; } |
m_tempDir = new File( "ant_vfs_cache" ).getAbsoluteFile(); | m_tempDir = (File) AccessController.doPrivileged( new PrivilegedAction() { public Object run() { return new File( "ant_vfs_cache" ).getAbsoluteFile(); } } ); | public DefaultFileReplicator( final DefaultFileSystemManager manager ) { m_manager = manager; m_tempDir = new File( "ant_vfs_cache" ).getAbsoluteFile(); } |
alignment = "bgrleft"; | alignment = "left"; | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
alignment = "bgrcenter"; | alignment = "center"; | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
alignment = "bgrright"; | alignment = "right"; | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
String startRow = "<TR>"; String endRow = "</TR>"; String startCol = "<TD class=" + alignment + ">"; String startColLeft = "<TD class=bgrleft>"; String startColCenter = "<TD class=bgrcenter>"; String startColRight = "<TD class=bgrright>"; String endCol = "</TD>"; | String startRow = "<tr>"; String endRow = "</tr>"; String startCol = "<td>"; String startColAligned = startCol; if (! alignment.equals("left")) startColAligned = IOHandler.addStyle(startCol, "text-align", alignment); String startColName = "<td style=\"width:160px\">"; String startColClub = "<td style=\"width:95px\">... | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
headers[Snitt.NAME] = "<TD class=bgrleft WIDTH=160><B>Namn</B>" + endCol; headers[Snitt.CLUB] = "<TD class=bgrleft WIDTH=95><B>Klubb</B>" + endCol; headers[Snitt.COMPS] = "<TD class=" + alignment + " WIDTH=60><B>Tvlingar</B>" + endCol; headers[Snitt.ROUNDS] = "<TD class=" + alignment + " WIDTH=50><B>Varv</B>" + endCol;... | headers[Snitt.NAME] = startColName + "<b>Namn</b>" + endCol; headers[Snitt.CLUB] = startColClub + "<b>Klubb</b>" + endCol; headers[Snitt.COMPS] = startColComps + "<b>Tvlingar</b>" + endCol; headers[Snitt.ROUNDS] = startColRounds + "<b>Varv</b>" + endCol; headers[Snitt.HITSUM] = startColHitSum + "<b>Slag</b>" + endCol; ... | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<HTML>"); | bufferOut.write("<!DOCTYPE HTML PUBLIC \"- | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<HEAD>"); | bufferOut.write("<html lang=\"sv\">"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<STYLE id=\"Bangolftvlingar\"><!--table "+ " .bgrleft{font-size:10.0pt;text-align:left;vertical-align:super;white-space:nowrap;}"+ " .bgrcenter{font-size:10.0pt;text-align:center;vertical-align:super;white-space:nowrap;}"+ " .bgrright{font-size:10.0pt;text-align:right;vertical-align:super;white-space:n... | bufferOut.write("<head>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<TITLE>" + header + "</TITLE>"); | bufferOut.write("<title>" + header + "</title>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("</HEAD>"); | bufferOut.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=WINDOWS-1252\">"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<BODY bgcolor=\"white\">"); | bufferOut.write("<style type=\"text/css\">" + "body {font-family: arial} " + "td {font-size: 10.0pt; vertical-align: super; white-space: nowrap} " + "</style>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<CENTER>"); | bufferOut.write("</head>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<FONT FACE=\"arial\">"); | bufferOut.write("<body style=\"background-color:white\">"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<H1 style='font-size:14.0pt;font-weight:800;font-style:normal'>" + header + "</H1>"); | bufferOut.write("<h1 style=\"font-size:14.0pt; text-align:center\">" + header + "</h1>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<TABLE CELLPADDING=1 CELLSPACING=1>"); | bufferOut.write("<table cellpadding=\"1\" cellspacing=\"1\" style=\"" + "margin-left:auto; margin-right:auto\">"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<TD class=bgrright WIDTH=59><B>Ranking </B>" + endCol); | bufferOut.write("<td style=\"width:59px; text-align:right\"><b>Ranking </b>" + endCol); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
data[Snitt.NAME] = startColLeft + person.getName() + endCol; data[Snitt.CLUB] = startColLeft + person.getClub() + endCol; data[Snitt.COMPS] = startCol + person.getComps() + endCol; data[Snitt.ROUNDS] = startCol + person.getRounds() + endCol; data[Snitt.HITSUM] = startCol + person.getHits() + endCol; data[Snitt.MEAN] = ... | data[Snitt.NAME] = startCol + person.getName() + endCol; data[Snitt.CLUB] = startCol + person.getClub() + endCol; data[Snitt.COMPS] = startColAligned + person.getComps() + endCol; data[Snitt.ROUNDS] = startColAligned + person.getRounds() + endCol; data[Snitt.HITSUM] = startColAligned + person.getHits() + endCol; if (! ... | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write(startColRight + "<B>" + (i - sameResult) + " </B>" + endCol); | bufferOut.write(IOHandler.addStyle(startCol, "text-align", "right") + "<b>" + (i - sameResult) + " </b>" + endCol); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("</TABLE>"); | bufferOut.write("</table>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<P><BR>"); | bufferOut.write("<p><br>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("<FONT SIZE=-2>Denna sida r skapad av <A HREF=\"http: + "BangolfResultat</A></FONT>"); | bufferOut.write("<div style=\"text-align:center; font-size:7.5pt\">Denna sida r skapad av <a href=\"http: + "BangolfResultat</a></div>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("</FONT>"); | bufferOut.write("</body>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
bufferOut.write("</CENTER>"); bufferOut.newLine(); bufferOut.write("</BODY>"); bufferOut.newLine(); bufferOut.write("</HTML>"); | bufferOut.write("</html>"); | public void outputToHTML(LinkedList list, int surface, int compareSurface, boolean[] headerList, int align) throws IOException { String alignment; if(align == AlignmentWindow.LEFT) { alignment = "bgrleft"; } else if(align == AlignmentWindow.CENTER) { alignment = "bgrcenter"; ... |
String identity, heltal, decimaltal; | String identity; | public int readCompareFile(String fileName) throws IOException { BufferedReader fileIn = new BufferedReader(new FileReader(fileName)); int surface = Integer.parseInt(fileIn.readLine()); String inLine = fileIn.readLine(); while (inLine != null) { String identity, heltal, decimaltal; double oldMean; St... |
StringTokenizer str; | public int readCompareFile(String fileName) throws IOException { BufferedReader fileIn = new BufferedReader(new FileReader(fileName)); int surface = Integer.parseInt(fileIn.readLine()); String inLine = fileIn.readLine(); while (inLine != null) { String identity, heltal, decimaltal; double oldMean; St... | |
Pattern[] patterns = new Pattern[columns.length]; boolean notEmptyPtr = false; | Pattern[] patterns = null; | List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query... |
if (s == null || s.length() == 0) { patterns[i] = null; } else { notEmptyPtr = true; | if (s != null && s.length() > 0) { if (patterns == null) { patterns = new Pattern[columns.length]; } | List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query... |
patterns[i] = Pattern.compile(substitutor.substitute(s)); | patterns[i] = Pattern.compile(substitutor.substitute(s), Pattern.CASE_INSENSITIVE | Pattern.DOTALL); | List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.