<commit_before>var RtbObject = require('../rtbObject'),
    PublisherBuilder = require('./publisher').builder;

var App = function(storeurl, cat, id, name, publisher){
  this.storeurl = storeurl;
  this.cat = cat;  
  this.id = id;  
  this.name = name;  
  this.publisher = publisher;
};

App.prototype = Object.create(RtbObject.prototype);

var AppBuilder = function(){};

AppBuilder.prototype.storeurl = function(storeurl){
  this._storeurl = storeurl;
  return this;
};

AppBuilder.prototype.cat = function(cat){
  this._cat = cat;
  return this;
};

AppBuilder.prototype.id = function(id){
  this._id = id;
  return this;
};

AppBuilder.prototype.name = function(name){
  this._name = name;
  return this;
};

AppBuilder.prototype.publisher = function(publisher){
  var builder = new PublisherBuilder();
  this._publisher = builder
                    .id(publisher.id)
                    .name(publisher.name)
                    .build();
  return this;
};

AppBuilder.prototype.build = function() {
  return new App(this._storeurl, this._cat, this._id, this._name, this._publisher).removeUndefined();
};

module.exports = {
  object: App,
  builder: AppBuilder  
};<commit_msg>added app bundle<commit_after>var RtbObject = require('../rtbObject'),
    PublisherBuilder = require('./publisher').builder;

var App = function(storeurl, cat, id, name, publisher, bundle){
  this.storeurl = storeurl;
  this.cat = cat;  
  this.id = id;  
  this.name = name;  
  this.bundle = bundle;
  this.publisher = publisher;
};

App.prototype = Object.create(RtbObject.prototype);

var AppBuilder = function(){};

AppBuilder.prototype.storeurl = function(storeurl){
  this._storeurl = storeurl;
  return this;
};

AppBuilder.prototype.cat = function(cat){
  this._cat = cat;
  return this;
};

AppBuilder.prototype.id = function(id){
  this._id = id;
  return this;
};

AppBuilder.prototype.name = function(name){
  this._name = name;
  return this;
};

AppBuilder.prototype.bundle = function(bundle){
  this._bundle = bundle;
  return this;
};

AppBuilder.prototype.publisher = function(publisher){
  var builder = new PublisherBuilder();
  this._publisher = builder
                    .id(publisher.id)
                    .name(publisher.name)
                    .build();
  return this;
};

AppBuilder.prototype.build = function() {
  return new App(this._storeurl, this._cat, this._id, this._name, this._publisher, this._bundle).removeUndefined();
};

module.exports = {
  object: App,
  builder: AppBuilder  
};
{'fraction_non_alphanumeric': 0.1384799044966176, 'fraction_numerical': 0.0, 'mean_word_length': 3.3721739130434782, 'pattern_counts': {'":': 0, '<': 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': '3060477', 'n_tokens_mistral': 797, 'n_tokens_neox': 788, 'n_words': 168}