<commit_before>app.ApiProfile = {
  Models: {},
  Collections: {},
  Views: {}
}

app.ApiProfile.Models.Profile = Backbone.Model.extend({

  urlRoot: '/apis/:id',

  initialize: function(){
  },

  defaults: {
    "title": "",
    "description": "",
    "tips": "",
    "average_score": "",
    "logo_url": "",
    "data_type": "",
    "doc_link": "",
    "endpoint_link": "",
    "num_followers": 0,
  }
})

app.ApiProfile.Views.Profile = Backbone.View.extend({
  model: app.ApiProfile.Models.Profile,

  initialize: function(opts){
    this.id = opts.id
  },

  template: _.template($('#apiprofile-template').html()),

  render: function() {
    var apiObject = new this.model
    var that = this;
    $.ajax({
      url:'/apis/' + this.id,
      success: function(result){
        apiObject.set(result.api);
        that.$el.html(that.template(apiObject.attributes));
      }
    })
    return this;
  },
})

/////////////// Reviews Section
app.ApiProfile.Models.Reviews = Backbone.Model.extend({
  // do we intialize our model here?
  // we will pass the model into the view
  initialize: function(){
  },

  defaults: {
    "content": "I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! ",
    "created_at": "9/12/14",
    "comment_content": "Dudes, WTF are you talking about, this API sucks, they have 0 docs >:/",
    "votes": "4",
    "user_photo_url": "http://gravatar.com/avatar.jpg"
  }

})

app.ApiProfile.Views.Reviews = Backbone.View.extend({
  // do an ajax call to get the reviews n shit we need
  model: new app.ApiProfile.Models.Reviews,

  initialize: function(){
  },

  template: _.template($('#apireviews-template').html()),

  render: function() {
    this.$el.html(this.template(this.model.attributes));
    return this;
  },<commit_msg>removes comment in api review<commit_after>app.ApiProfile = {
  Models: {},
  Collections: {},
  Views: {}
}

app.ApiProfile.Models.Profile = Backbone.Model.extend({

  urlRoot: '/apis/:id',

  initialize: function(){
  },

  defaults: {
    "title": "",
    "description": "",
    "tips": "",
    "average_score": "",
    "logo_url": "",
    "data_type": "",
    "doc_link": "",
    "endpoint_link": "",
    "num_followers": 0,
  }
})

app.ApiProfile.Views.Profile = Backbone.View.extend({
  model: app.ApiProfile.Models.Profile,

  initialize: function(opts){
    this.id = opts.id
  },

  template: _.template($('#apiprofile-template').html()),

  render: function() {
    var apiObject = new this.model
    var that = this;
    $.ajax({
      url:'/apis/' + this.id,
      success: function(result){
        apiObject.set(result.api);
        that.$el.html(that.template(apiObject.attributes));
      }
    })
    return this;
  },
})

/////////////// Reviews Section
app.ApiProfile.Models.Reviews = Backbone.Model.extend({
  // do we intialize our model here?
  // we will pass the model into the view
  initialize: function(){
  },

  defaults: {
    "content": "I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! I love this API! ",
    "created_at": "9/12/14",
    "comment_content": "Dudes, WTF are you talking about, this API sucks, they have 0 docs >:/",
    "votes": "4",
    "user_photo_url": "http://gravatar.com/avatar.jpg"
  }

})

app.ApiProfile.Views.Reviews = Backbone.View.extend({
  model: new app.ApiProfile.Models.Reviews,

  initialize: function(){
  },

  template: _.template($('#apireviews-template').html()),

  render: function() {
    this.$el.html(this.template(this.model.attributes));
    return this;
  },
{'fraction_non_alphanumeric': 0.16071850626329473, 'fraction_numerical': 0.003781611912077523, 'mean_word_length': 3.007575757575758, 'pattern_counts': {'":': 28, '<': 3, '<?xml version=': 0, '>': 5, '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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '966857', 'n_tokens_mistral': 1402, 'n_tokens_neox': 1362, 'n_words': 426}