<commit_before>-
  var Person = (function () {
    function Person($personinfo) {
      var self = this
      self.id   = $personinfo.id
      self.name = {
        honorificPrefix : $personinfo.name.honorificPrefix
      , givenName       : $personinfo.name.givenName
      , additionalName  : $personinfo.name.additionalName
      , familyName      : $personinfo.name.familyName
      , honorificSuffix : $personinfo.name.honorificSuffix
      }
      //- self.img         = $personinfo.img
      //- self.url         = $personinfo.url
      //- self.email       = $personinfo.email
      //- self.telephone   = $personinfo.telephone
      //- self.jobTitle    = $personinfo.jobTitle
      //- self.affiliation = $personinfo.affiliation
    }
    Person.prototype.printFullName = function printFullName() {
      var returned = ''
      returned += this.name.givenName
      returned += ' ' + this.name.additionalName
      returned += ' ' + this.name.familyName
      return returned
    }
    Person.prototype.printEntireName = function printEntireName() {
      var returned = ''
      if (this.name.honorificPrefix) returned += this.name.honorificPrefix + ' '
      returned += this.printFullName()
      if (this.name.honorificSuffix) returned += ', ' + this.name.honorificSuffix
      return returned
    }
    return Person
  })()<commit_msg>add Person methods<commit_after>-
  var Person = (function () {
    //- CONSTRUCTOR
    function Person($personinfo) {
      var self = this
      self.id   = $personinfo.id
      self.name = {
        honorificPrefix : $personinfo.name.honorificPrefix
      , givenName       : $personinfo.name.givenName
      , additionalName  : $personinfo.name.additionalName
      , familyName      : $personinfo.name.familyName
      , honorificSuffix : $personinfo.name.honorificSuffix
      }
      self.jobTitle    = ''
      self.img         = ''
      self.email       = ''
      self.telephone   = ''
      self.url         = ''
      self.social      = null
    }

    //- SETTER FUNCTIONS
    Person.prototype.setJobTitle = function setJobTitle(text) {
      this.jobTitle = text
      return this
    }
    Person.prototype.setImg = function setImg(arg) {
      var url
      if (typeof arg === 'function') {
        url = arg.call(this)
      } else {
        url = arg
      }
      this.img = url
      return this
    }
    Person.prototype.setEmail = function setEmail(text) {
      this.email = text
      return this
    }
    Person.prototype.setTel = function setTel(text) {
      this.telephone = text
      return this
    }
    Person.prototype.setURL = function setURL(text) {
      this.url = text
      return this
    }
    Person.prototype.setURL = function setSocial($links) {
      this.social = {
        linkedin = $links.linkedin
      , twitter  = $links.twitter
      }
      return this
    }

    //- GETTER FUNCTIONS
    Person.prototype.getJobTitle = function getJobTitle(text) {
      return this.jobTitle
    }
    Person.prototype.getImg = function getImg() {
      return this.img
    }
    Person.prototype.getEmail = function getEmail() {
      return this.email
    }
    Person.prototype.getTel = function getTel() {
      return this.telephone
    }
    Person.prototype.getURL = function getURL() {
      return this.url
    }
    Person.prototype.getSocial = function getSocial() {
      return Object.assign({}, this.social) // shallow clone this.social into {}
    }

    //- MORE PROTO FUNCTIONS
    Person.prototype.printFullName = function printFullName() {
      var returned = ''
      returned += this.name.givenName
      returned += ' ' + this.name.additionalName
      returned += ' ' + this.name.familyName
      return returned
    }
    Person.prototype.printEntireName = function printEntireName() {
      var returned = ''
      if (this.name.honorificPrefix) returned += this.name.honorificPrefix + ' '
      returned += this.printFullName()
      if (this.name.honorificSuffix) returned += ', ' + this.name.honorificSuffix
      return returned
    }

    //- STATIC MEMBERS

    return Person
  })()
{'fraction_non_alphanumeric': 0.11005600194789383, 'fraction_numerical': 0.0, 'mean_word_length': 2.1263318112633183, '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': '106332', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1205, 'n_words': 230}