<commit_before>CATARSE.ExploreIndexView = Backbone.View.extend({

  initialize: function() {
    _.bindAll(this, "render", "ProjectView", "ProjectsView", "initializeView", "recommended", "expiring", "recent", "successful", "category", "search", "updateSearch")
    CATARSE.router.route(":name", "category", this.category)
    CATARSE.router.route("recommended", "recommended", this.recommended)
    CATARSE.router.route("expiring", "expiring", this.expiring)
    CATARSE.router.route("recent", "recent", this.recent)
    CATARSE.router.route("successful", "successful", this.successful)
    CATARSE.router.route("search/*search", "search", this.search)
    CATARSE.router.route("", "index", this.recommended)
    this.render()
  },

  ProjectView: CATARSE.ModelView.extend({
    template: _.template(this.$('#project_template').html())
  }),

  ProjectsView: CATARSE.PaginatedView.extend({
    emptyTemplate: _.template(this.$('#empty_projects_template').html())
  }),

  search: function(search){
    this.selectItem("")
    this.initializeView({
      meta_sort: "explore",
      name_or_headline_or_about_or_user_name_contains: search
    })
    var input = this.$('#search')
    if(input.val() != search)
      input.val(search)
  },

  updateSearch: function(){
    var search = encodeURIComponent(this.$('#search').val())
    CATARSE.router.navigate("search/" + search, true)
  },

  recommended: function(){
    this.selectItem("recommended")
    this.initializeView({
      recommended: true,
      not_expired: true,
      meta_sort: "explore"
    })
  },

  expiring: function(){
    this.selectItem("expiring")<commit_msg>making project owner city searchable on the explore<commit_after>CATARSE.ExploreIndexView = Backbone.View.extend({

  initialize: function() {
    _.bindAll(this, "render", "ProjectView", "ProjectsView", "initializeView", "recommended", "expiring", "recent", "successful", "category", "search", "updateSearch")
    CATARSE.router.route(":name", "category", this.category)
    CATARSE.router.route("recommended", "recommended", this.recommended)
    CATARSE.router.route("expiring", "expiring", this.expiring)
    CATARSE.router.route("recent", "recent", this.recent)
    CATARSE.router.route("successful", "successful", this.successful)
    CATARSE.router.route("search/*search", "search", this.search)
    CATARSE.router.route("", "index", this.recommended)
    this.render()
  },

  ProjectView: CATARSE.ModelView.extend({
    template: _.template(this.$('#project_template').html())
  }),

  ProjectsView: CATARSE.PaginatedView.extend({
    emptyTemplate: _.template(this.$('#empty_projects_template').html())
  }),

  search: function(search){
    this.selectItem("")
    this.initializeView({
      meta_sort: "explore",
      name_or_headline_or_about_or_user_name_or_user_address_city_contains: search
    })
    var input = this.$('#search')
    if(input.val() != search)
      input.val(search)
  },

  updateSearch: function(){
    var search = encodeURIComponent(this.$('#search').val())
    CATARSE.router.navigate("search/" + search, true)
  },

  recommended: function(){
    this.selectItem("recommended")
    this.initializeView({
      recommended: true,
      not_expired: true,
      meta_sort: "explore"
    })
  },

  expiring: function(){
    this.selectItem("expiring")
{'fraction_non_alphanumeric': 0.16661654135338347, 'fraction_numerical': 0.0, 'mean_word_length': 4.452459016393442, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7382563', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1046, 'n_words': 168}