hunk.code_window:         return null;
       }
       getEarliestPost(id) {
           if (this.postsInfo.hasOwnProperty(id)) {
               const postList = this.postsInfo[id].postList;
               for (let i = postList.order.length - 1; i >= 0; i--) {
                   const postId = postList.order[i];
                   if (postList.posts[postId].state !== Constants.POST_DELETED) {
                       return postList.posts[postId];
                   }
               }
           }
           return null;
       }
       getLatestPost(id) {
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep
hunk.after_edit:     getEarliestPostFromPage(id) {
           return this.earliestPostFromPage[id];
  
hunk.file_path: webapp/stores/post_store.jsx
hunk.type: replace
file: Common libraries shared by Prometheus Go components.
  Copyright 2015 The Prometheus Authors
  
  This product includes software developed at
  SoundCloud Ltd. (http://soundcloud.com/).
  