rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
private boolean ensurePollMinimumOptions(Post p, Poll poll) throws Exception | private boolean ensurePollMinimumOptions(Post p, Poll poll) | private boolean ensurePollMinimumOptions(Post p, Poll poll) throws Exception { if (poll.getOptions().size() < 2) { // It is not a valid poll, cancel the post JForumExecutionContext.enableRollback(); p.setText(this.request.getParameter("message")); p.setId(0); this.context.put("errorMessage", I18n.getMessage... |
public void insert() throws Exception | public void insert() | public void insert() throws Exception { int forumId = -1; // If we have a topic_id, then it should be a reply if (this.request.getParameter("topic_id") != null) { int topicId = this.request.getIntParameter("topic_id"); Topic t = TopicRepository.getTopic(new Topic(topicId)); if (t == null) { t = Da... |
int forumId = -1; | int forumId; | public void insert() throws Exception { int forumId = -1; // If we have a topic_id, then it should be a reply if (this.request.getParameter("topic_id") != null) { int topicId = this.request.getIntParameter("topic_id"); Topic t = TopicRepository.getTopic(new Topic(topicId)); if (t == null) { t = Da... |
public void insertSave() throws Exception | public void insertSave() | public void insertSave() throws Exception { int forumId = this.request.getIntParameter("forum_id"); boolean firstPost = false; if (!this.anonymousPost(forumId)) { SessionFacade.setAttribute(ConfigKeys.REQUEST_DUMP, this.request.dumpRequest()); return; } Topic t = new Topic(-1); t.setForumId(forumId); boo... |
if (p.getSubject() == null || p.getSubject() == "") { | if (StringUtils.isBlank(p.getSubject())) { | public void insertSave() throws Exception { int forumId = this.request.getIntParameter("forum_id"); boolean firstPost = false; if (!this.anonymousPost(forumId)) { SessionFacade.setAttribute(ConfigKeys.REQUEST_DUMP, this.request.dumpRequest()); return; } Topic t = new Topic(-1); t.setForumId(forumId); boo... |
public void insertSave2() throws Exception | public void insertSave2() | public void insertSave2() throws Exception { this.insertSave(1, true, "Teste insertSave2", 0, "teste", "Admin", "admin"); } |
private boolean isForumReadonly(int forumId, boolean isReply) throws Exception { | private boolean isForumReadonly(int forumId, boolean isReply) { | private boolean isForumReadonly(int forumId, boolean isReply) throws Exception { if (!SecurityRepository.canAccess(SecurityConstants.PERM_READ_ONLY_FORUMS, Integer.toString(forumId))) { if (isReply) { this.list(); } else { JForumExecutionContext.setRedirect(this.request.getContextPath() + "/forums/show/" ... |
private boolean isReplyOnly(int forumId) throws Exception | private boolean isReplyOnly(int forumId) | private boolean isReplyOnly(int forumId) throws Exception { return !SecurityRepository.canAccess(SecurityConstants.PERM_REPLY_ONLY, Integer.toString(forumId)); } |
public void list() throws Exception | public void list() | public void list() throws Exception { PostDAO pm = DataAccessDriver.getInstance().newPostDAO(); PollDAO pollDao = DataAccessDriver.getInstance().newPollDAO(); UserDAO um = DataAccessDriver.getInstance().newUserDAO(); TopicDAO tm = DataAccessDriver.getInstance().newTopicDAO(); UserSession us = SessionFacade.getUs... |
public void listByUser() throws Exception | public void listByUser() | public void listByUser() throws Exception { PostDAO pm = DataAccessDriver.getInstance().newPostDAO(); UserDAO um = DataAccessDriver.getInstance().newUserDAO(); TopicDAO tm = DataAccessDriver.getInstance().newTopicDAO(); UserSession us = SessionFacade.getUserSession(); int anonymousUser = SystemGlobals.getIntVa... |
public void preList() throws Exception | public void preList() | public void preList() throws Exception { int postId = this.request.getIntParameter("post_id"); PostDAO pdao = DataAccessDriver.getInstance().newPostDAO(); int count = pdao.countPreviousPosts(postId); int postsPerPage = SystemGlobals.getIntValue(ConfigKeys.POST_PER_PAGE); int topicId = this.request.getIntPar... |
public void quote() throws Exception | public void quote() | public void quote() throws Exception { PostDAO pm = DataAccessDriver.getInstance().newPostDAO(); Post p = pm.selectById(this.request.getIntParameter("post_id")); if (p.getId() == 0) { this.postNotFound(); return; } if (p.isModerationNeeded()) { this.notModeratedYet(); return; } if (!this.anonymousP... |
public void reply() throws Exception | public void reply() | public void reply() throws Exception { this.insert(); } |
public void review() throws Exception | public void review() | public void review() throws Exception { PostDAO pm = DataAccessDriver.getInstance().newPostDAO(); UserDAO um = DataAccessDriver.getInstance().newUserDAO(); TopicDAO tm = DataAccessDriver.getInstance().newTopicDAO(); int userId = SessionFacade.getUserSession().getUserId(); int topicId = this.request.getIntParamet... |
public void unwatch() throws Exception { | public void unwatch() { | public void unwatch() throws Exception { if (SessionFacade.isLogged()) { int topicId = this.request.getIntParameter("topic_id"); int userId = SessionFacade.getUserSession().getUserId(); int start = ViewCommon.getStartPage(); DataAccessDriver.getInstance().newTopicDAO().removeSubscription(topicId, userId); S... |
public void vote() throws Exception | public void vote() | public void vote() throws Exception { int pollId = this.request.getIntParameter("poll_id"); int topicId = this.request.getIntParameter("topic_id"); if (SessionFacade.isLogged() && this.request.getParameter("poll_option") != null) { Topic topic = TopicRepository.getTopic(new Topic(topicId)); if (topic == nu... |
private void watch(TopicDAO tm, int topicId, int userId) throws Exception { | private void watch(TopicDAO tm, int topicId, int userId) { | private void watch(TopicDAO tm, int topicId, int userId) throws Exception { if (!tm.isUserSubscribed(topicId, userId)) { tm.subscribeUser(topicId, userId); } } |
public static String getMessage(String m) | public static String getMessage(String localeName, String messageName, Object params[]) | public static String getMessage(String m) { return getMessage(defaultName, m); } |
return getMessage(defaultName, m); | return MessageFormat.format(((Properties)messagesMap.get(localeName)).getProperty(messageName), params); | public static String getMessage(String m) { return getMessage(defaultName, m); } |
public final static DataAccessDriver getInstance() | public static DataAccessDriver getInstance() | public final static DataAccessDriver getInstance() { return driver; } |
public Post selectById(int postId) throws Exception; | public Post selectById(int postId) ; | public Post selectById(int postId) throws Exception; |
public Topic selectRaw(int topicId) throws Exception; | public Topic selectRaw(int topicId) ; | public Topic selectRaw(int topicId) throws Exception; |
public static boolean isTopicAccessible(int forumId) throws Exception | public static boolean isTopicAccessible(int forumId) | public static boolean isTopicAccessible(int forumId) throws Exception { Forum f = ForumRepository.getForum(forumId); if (f == null || !ForumRepository.isCategoryAccessible(f.getCategoryId())) { new ModerationHelper().denied(I18n.getMessage("PostShow.denied")); return false; } return true; } |
public void delete(Post post) throws Exception; | public void delete(Post post) ; | public void delete(Post post) throws Exception; |
public void updateUserKarma(int userId) throws Exception; | public void updateUserKarma(int userId) ; | public void updateUserKarma(int userId) throws Exception; |
public void deleteAttachments(int postId, int forumId) throws Exception | public void deleteAttachments(int postId, int forumId) | public void deleteAttachments(int postId, int forumId) throws Exception { // Attachments List attachments = DataAccessDriver.getInstance().newAttachmentDAO().selectAttachments(postId); StringBuffer attachIds = new StringBuffer(); for (Iterator iter = attachments.iterator(); iter.hasNext(); ) { Attachment a = (... |
public int getTotalPosts(int topicId) throws Exception; | public int getTotalPosts(int topicId) ; | public int getTotalPosts(int topicId) throws Exception; |
public void decrementTotalReplies(int topicId) throws Exception; | public void decrementTotalReplies(int topicId) ; | public void decrementTotalReplies(int topicId) throws Exception; |
public int getMaxPostId(int topicId) throws Exception; | public int getMaxPostId(int topicId) ; | public int getMaxPostId(int topicId) throws Exception; |
public void setLastPostId(int topicId, int postId) throws Exception; | public void setLastPostId(int topicId, int postId) ; | public void setLastPostId(int topicId, int postId) throws Exception; |
public int getMinPostId(int topicId) throws Exception; | public int getMinPostId(int topicId) ; | public int getMinPostId(int topicId) throws Exception; |
public void setFirstPostId(int topicId, int postId) throws Exception; | public void setFirstPostId(int topicId, int postId) ; | public void setFirstPostId(int topicId, int postId) throws Exception; |
int start = 0; | int start; | public static int getStartPage() { String s = JForumExecutionContext.getRequest().getParameter("start"); int start = 0; if (s == null || s.trim().equals("")) { start = 0; } else { start = Integer.parseInt(s); if (start < 0) { start = 0; } } return start; } |
public Topic selectById(int topicId) throws Exception; | public Topic selectById(int topicId) ; | public Topic selectById(int topicId) throws Exception; |
public static void deleteTopic(int topicId, int forumId, boolean fromModeration) throws Exception | public static void deleteTopic(int topicId, int forumId, boolean fromModeration) | public static void deleteTopic(int topicId, int forumId, boolean fromModeration) throws Exception { TopicDAO tm = DataAccessDriver.getInstance().newTopicDAO(); ForumDAO fm = DataAccessDriver.getInstance().newForumDAO(); Topic topic = new Topic(); topic.setId(topicId); topic.setForumId(forumId); tm.delete(topic... |
public Attachment selectAttachmentById(int attachId) throws Exception; | public Attachment selectAttachmentById(int attachId); | public Attachment selectAttachmentById(int attachId) throws Exception; |
public void updateAttachment(Attachment a) throws Exception; | public void updateAttachment(Attachment a); | public void updateAttachment(Attachment a) throws Exception; |
public boolean isPhysicalDownloadMode(int extensionGroupId) throws Exception; | public boolean isPhysicalDownloadMode(int extensionGroupId); | public boolean isPhysicalDownloadMode(int extensionGroupId) throws Exception; |
public List selectAttachments(int postId) throws Exception; | public List selectAttachments(int postId); | public List selectAttachments(int postId) throws Exception; |
public Poll selectById(int pollId) throws Exception; | public Poll selectById(int pollId) ; | public Poll selectById(int pollId) throws Exception; |
public QuotaLimit getQuotaLimit(int userId) throws Exception | public QuotaLimit getQuotaLimit(int userId) | public QuotaLimit getQuotaLimit(int userId) throws Exception { QuotaLimit ql = new QuotaLimit(); User u = DataAccessDriver.getInstance().newUserDAO().selectById(userId); for (Iterator iter = u.getGroupsList().iterator(); iter.hasNext();) { QuotaLimit l = this.am.selectQuotaLimitByGroup(((Group)iter.next()).getI... |
public static void prepareUserSignature(User u) throws Exception | public static void prepareUserSignature(User u) | public static void prepareUserSignature(User u) throws Exception { if (u.getSignature() != null) { StringBuffer sb = new StringBuffer(u.getSignature()); replaceAll(sb, "\n", "<br/>"); u.setSignature(sb.toString()); u.setSignature(PostCommon.alwaysProcess(u.getSignature(), BBCodeRepository.getBBCollec... |
public static Post fillPostFromRequest(Post p, boolean isEdit) throws Exception | public static Post fillPostFromRequest() | public static Post fillPostFromRequest(Post p, boolean isEdit) throws Exception { ActionServletRequest request = JForumExecutionContext.getRequest(); p.setSubject(SafeHtml.makeSafe(request.getParameter("subject"))); p.setBbCodeEnabled(request.getParameter("disable_bbcode") != null ? false : true); p.setSmiliesEn... |
ActionServletRequest request = JForumExecutionContext.getRequest(); p.setSubject(SafeHtml.makeSafe(request.getParameter("subject"))); p.setBbCodeEnabled(request.getParameter("disable_bbcode") != null ? false : true); p.setSmiliesEnabled(request.getParameter("disable_smilies") != null ? false : true); p.setSignatureEna... | Post p = new Post(); p.setTime(new Date()); | public static Post fillPostFromRequest(Post p, boolean isEdit) throws Exception { ActionServletRequest request = JForumExecutionContext.getRequest(); p.setSubject(SafeHtml.makeSafe(request.getParameter("subject"))); p.setBbCodeEnabled(request.getParameter("disable_bbcode") != null ? false : true); p.setSmiliesEn... |
if (!isEdit) { p.setUserIp(request.getRemoteAddr()); p.setUserId(SessionFacade.getUserSession().getUserId()); } boolean htmlEnabled = SecurityRepository.canAccess(SecurityConstants.PERM_HTML_DISABLED, request.getParameter("forum_id")); p.setHtmlEnabled(htmlEnabled && request.getParameter("disable_html") == null); if ... | return fillPostFromRequest(p, false); | public static Post fillPostFromRequest(Post p, boolean isEdit) throws Exception { ActionServletRequest request = JForumExecutionContext.getRequest(); p.setSubject(SafeHtml.makeSafe(request.getParameter("subject"))); p.setBbCodeEnabled(request.getParameter("disable_bbcode") != null ? false : true); p.setSmiliesEn... |
public void preProcess() throws Exception | public void preProcess() | public void preProcess() throws Exception { if (!this.canProceed) { return; } String t = this.request.getParameter("total_files"); if (t == null || "".equals(t)) { return; } int total = Integer.parseInt(t); if (total < 1) { return; } if (total > SystemGlobals.getIntValue(ConfigKeys.ATTACHMENTS... |
public void update(Post post) throws Exception; | public void update(Post post) ; | public void update(Post post) throws Exception; |
public void editAttachments(int postId, int forumId) throws Exception | public void editAttachments(int postId, int forumId) | public void editAttachments(int postId, int forumId) throws Exception { // Allow removing the attachments at least AttachmentDAO am = DataAccessDriver.getInstance().newAttachmentDAO(); // Check for attachments to remove List deleteList = new ArrayList(); String[] delete = null; String s = this.request.getParam... |
public void insertAttachments(Post post) throws Exception | public void insertAttachments(Post post) | public void insertAttachments(Post post) throws Exception { if (!this.canProceed) { return; } post.hasAttachments(this.filesToSave.size() > 0); for (Iterator iter = this.filesToSave.entrySet().iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry)iter.next(); Attachment a = (Attachment)entry.getVa... |
public static Poll fillPollFromRequest() throws Exception | public static Poll fillPollFromRequest() | public static Poll fillPollFromRequest() throws Exception { ActionServletRequest request = JForumExecutionContext.getRequest(); String label = request.getParameter("poll_label"); if (label == null || label.length() == 0) { return null; } Poll poll = new Poll(); poll.setStartTime(new Date()); poll.setLabel(lab... |
public int addNew(Poll poll) throws Exception; | public int addNew(Poll poll) ; | public int addNew(Poll poll) throws Exception; |
public void update(Poll poll) throws Exception; | public void update(Poll poll) ; | public void update(Poll poll) throws Exception; |
public void delete(int pollId) throws Exception; | public void delete(int pollId) ; | public void delete(int pollId) throws Exception; |
public void update(Topic topic) throws Exception; | public void update(Topic topic) ; | public void update(Topic topic) throws Exception; |
public void removeSubscription(int topicId, int userId) throws Exception; | public void removeSubscription(int topicId, int userId) ; | public void removeSubscription(int topicId, int userId) throws Exception; |
public int addNew(Topic topic) throws Exception; | public int addNew(Topic topic) ; | public int addNew(Topic topic) throws Exception; |
public int addNew(Post post) throws Exception; | public int addNew(Post post) ; | public int addNew(Post post) throws Exception; |
public static void notifyUsers(Topic t, TopicDAO tm) throws Exception | public static void notifyUsers(Topic t, TopicDAO tm) | public static void notifyUsers(Topic t, TopicDAO tm) throws Exception { if (SystemGlobals.getBoolValue(ConfigKeys.MAIL_NOTIFY_ANSWERS)) { try { List usersToNotify = tm.notifyUsers(t); // we only have to send an email if there are users // subscribed to the topic if (usersToNotify != null && usersToNotif... |
public static void updateBoardStatus(Topic t, int lastPostId, boolean firstPost, TopicDAO tm, ForumDAO fm) throws Exception | public static void updateBoardStatus(Topic t, int lastPostId, boolean firstPost, TopicDAO tm, ForumDAO fm) | public static void updateBoardStatus(Topic t, int lastPostId, boolean firstPost, TopicDAO tm, ForumDAO fm) throws Exception { t.setLastPostId(lastPostId); tm.update(t); fm.setLastPost(t.getForumId(), lastPostId); if (!firstPost) { tm.incrementTotalReplies(t.getId()); } else { fm.incrementTotalTopics(t.ge... |
public static boolean isCategoryAccessible(int categoryId) | public static boolean isCategoryAccessible(int userId, int categoryId) | public static boolean isCategoryAccessible(int categoryId) { return isCategoryAccessible(SessionFacade.getUserSession().getUserId(), categoryId); } |
return isCategoryAccessible(SessionFacade.getUserSession().getUserId(), categoryId); | return isCategoryAccessible(SecurityRepository.get(userId), categoryId); | public static boolean isCategoryAccessible(int categoryId) { return isCategoryAccessible(SessionFacade.getUserSession().getUserId(), categoryId); } |
public static List topicPosts(PostDAO dao, boolean canEdit, int userId, int topicId, int start, int count) throws Exception | public static List topicPosts(PostDAO dao, boolean canEdit, int userId, int topicId, int start, int count) | public static List topicPosts(PostDAO dao, boolean canEdit, int userId, int topicId, int start, int count) throws Exception { List posts = null; boolean needPrepare = true; if (SystemGlobals.getBoolValue(ConfigKeys.POSTS_CACHE_ENABLED)) { posts = PostRepository.selectAllByTopicByLimit(topicId, start, count); ... |
List posts = null; | public static List topicPosts(PostDAO dao, boolean canEdit, int userId, int topicId, int start, int count) throws Exception { List posts = null; boolean needPrepare = true; if (SystemGlobals.getBoolValue(ConfigKeys.POSTS_CACHE_ENABLED)) { posts = PostRepository.selectAllByTopicByLimit(topicId, start, count); ... | |
List posts; | public static List topicPosts(PostDAO dao, boolean canEdit, int userId, int topicId, int start, int count) throws Exception { List posts = null; boolean needPrepare = true; if (SystemGlobals.getBoolValue(ConfigKeys.POSTS_CACHE_ENABLED)) { posts = PostRepository.selectAllByTopicByLimit(topicId, start, count); ... | |
public void updateReadStatus(int topicId, int userId, boolean read) throws Exception; | public void updateReadStatus(int topicId, int userId, boolean read) ; | public void updateReadStatus(int topicId, int userId, boolean read) throws Exception; |
public void incrementTotalViews(int topicId) throws Exception; | public void incrementTotalViews(int topicId) ; | public void incrementTotalViews(int topicId) throws Exception; |
public Map getUserVotes(int topicId, int userId) throws Exception; | public Map getUserVotes(int topicId, int userId) ; | public Map getUserVotes(int topicId, int userId) throws Exception; |
public static List getAllCategoriesAndForums(boolean checkUnreadPosts) throws Exception | public static List getAllCategoriesAndForums(UserSession us, int anonymousUserId, Map tracking, boolean checkUnreadPosts) throws Exception | public static List getAllCategoriesAndForums(boolean checkUnreadPosts) throws Exception { return getAllCategoriesAndForums(SessionFacade.getUserSession(), SystemGlobals.getIntValue(ConfigKeys.ANONYMOUS_USER_ID), (Map)SessionFacade.getAttribute(ConfigKeys.TOPICS_TRACKING), checkUnreadPosts); } |
return getAllCategoriesAndForums(SessionFacade.getUserSession(), SystemGlobals.getIntValue(ConfigKeys.ANONYMOUS_USER_ID), (Map)SessionFacade.getAttribute(ConfigKeys.TOPICS_TRACKING), checkUnreadPosts); | long lastVisit = 0; int userId = anonymousUserId; if (us != null) { lastVisit = us.getLastVisit().getTime(); userId = us.getUserId(); } checkUnreadPosts = checkUnreadPosts && (us.getUserId() != anonymousUserId); List categories = ForumRepository.getAllCategories(userId); if (!checkUnreadPosts) { return categories;... | public static List getAllCategoriesAndForums(boolean checkUnreadPosts) throws Exception { return getAllCategoriesAndForums(SessionFacade.getUserSession(), SystemGlobals.getIntValue(ConfigKeys.ANONYMOUS_USER_ID), (Map)SessionFacade.getAttribute(ConfigKeys.TOPICS_TRACKING), checkUnreadPosts); } |
public Map topicPosters(int topicId) throws Exception; | public Map topicPosters(int topicId) ; | public Map topicPosters(int topicId) throws Exception; |
public boolean isUserSubscribed(int topicId, int userId) throws Exception; | public boolean isUserSubscribed(int topicId, int userId) ; | public boolean isUserSubscribed(int topicId, int userId) throws Exception; |
public static void topicListingBase() throws Exception | public static void topicListingBase() | public static void topicListingBase() throws Exception { SimpleHash context = JForumExecutionContext.getTemplateContext(); // Topic Types context.put("TOPIC_ANNOUNCE", new Integer(Topic.TYPE_ANNOUNCE)); context.put("TOPIC_STICKY", new Integer(Topic.TYPE_STICKY)); context.put("TOPIC_NORMAL", new Integer(Topic.TY... |
public List selectByUserByLimit(int userId,int startFrom, int count) throws Exception; | public List selectByUserByLimit(int userId,int startFrom, int count) ; | public List selectByUserByLimit(int userId,int startFrom, int count) throws Exception; |
public int countUserPosts(int userId) throws Exception; | public int countUserPosts(int userId) ; | public int countUserPosts(int userId) throws Exception; |
public int countPreviousPosts(int postId) throws Exception; | public int countPreviousPosts(int postId) ; | public int countPreviousPosts(int postId) throws Exception; |
public void voteOnPoll(int pollId, int optionId, int userId, String ipAddress) throws Exception; | public void voteOnPoll(int pollId, int optionId, int userId, String ipAddress); | public void voteOnPoll(int pollId, int optionId, int userId, String ipAddress) throws Exception; |
public void subscribeUser(int topicId, int userId) throws Exception; | public void subscribeUser(int topicId, int userId) ; | public void subscribeUser(int topicId, int userId) throws Exception; |
} if(a == none() || b == none()) { return true; | public static boolean areDisjoint(FeatureFilter a, FeatureFilter b) { // Preconditions if (a == null) { throw new NullPointerException("Null FeatureFilter: a"); } if (b == null) { throw new NullPointerException("Null FeatureFilter: b"); } // Body if... | |
System.err.println("Optimizing " + filter); | System.err.println(depth + ":" + "Optimizing " + filter); depth++; try { | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("is AND"); | System.err.println(depth + ":" + "is AND"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("as list: " + filters); | System.err.println(depth + ":" + "as list: " + filters); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("i: " + i); | System.err.println(depth + ":" + "i: " + i); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("j: " + j); | System.err.println(depth + ":" + "j: " + j); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("Comparing " + a + ", " + b + " of " + filters); | System.err.println(depth + ":" + "Comparing " + a + ", " + b + " of " + filters); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("Disjoint"); | System.err.println(depth + ":" + "Disjoint. Returning none()"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("a < b"); | System.err.println(depth + ":" + "a < b. Removing b"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("a > b"); | System.err.println(depth + ":" + "a > b. Removing a"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("Attempting to calculate intersection"); | System.err.println(depth + ":" + "Attempting to calculate intersection"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("got intersection: " + intersect); | System.err.println(depth + ":" + "got intersection: " + intersect); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
j--; i--; | j--; i-=2; | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("no luck - moving on"); | System.err.println(depth + ":" + "no luck - moving on"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("Reduced to: " + filters); | System.err.println(depth + ":" + "Reduced to: " + filters); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("empty filter set"); | System.err.println(depth + ":" + "empty filter set. Returning none()"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("No ors, just returning anded values: " + ands); | System.err.println(depth + ":" + "No ors, just returning anded values: " + ands); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("Mixing in ors: " + ors); System.err.println("to: " + ands); | System.err.println(depth + ":" + "Mixing in ors: " + ors); System.err.println(depth + ":" + "to: " + ands); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
return optimize(or((FeatureFilter[]) combs.toArray(new FeatureFilter[] {}))); | FeatureFilter res = optimize(or((FeatureFilter[]) combs.toArray(new FeatureFilter[] {}))); System.err.println(depth + ":" + "Returning optimized or: " + res); return res; | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("is OR"); | System.err.println(depth + ":" + "is OR"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("Found an all"); | System.err.println(depth + ":" + "Found an all. Returning all()"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("a < b"); | System.err.println(depth + ":" + "a < b. Removing a"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
System.err.println("a > b"); | System.err.println(depth + ":" + "a > b. Removing b"); | public final static FeatureFilter optimize(FeatureFilter filter) { System.err.println("Optimizing " + filter); if(filter instanceof FeatureFilter.And) { System.err.println("is AND"); List filters = new ArrayList(); expandAnd(filter, filters); System.err.println("as list: " + filter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.