<commit_before>import './profile.scss';

var Template = require ('./profile.html');
var Interface = require('interface.json');
var Core = require('_core.js');
/**
 * Creates an Profile
 *
 * @class
 *
 */

class Profile extends Core {

  constructor(options){
    super(options);
    this._render(Template, options);
  }

  // bind the supplied fn to click events on this element.
  onProfileImageClick(fn) {
    return this._attachListener("click", this.el, this.el, fn);
  }

  setImage(imageURL) {
    if (imageURL) {
      this.image = imageURL;
      this.el.children.first().setAttribute("src", this.image);
    }
  }

}

Profile._interface = Interface['components']['GlobalNav']['partials']['Container']['partials']['TopNav']['partials']['Profile'];
Profile._defaults = {
  image: 'https://placekitten.com/g/50/50'
};

module.exports = Profile;<commit_msg>add class to onProfileImageClick Handler<commit_after>import './profile.scss';

var Template = require ('./profile.html');
var Interface = require('interface.json');
var Core = require('_core.js');
/**
 * Creates an Profile
 *
 * @class
 *
 */

class Profile extends Core {

  constructor(options){
    super(options);
    this._render(Template, options);
  }

  // bind the supplied fn to click events on this element.
  onProfileImageClick(fn) {
    return this._attachListener("click", '.hig__global-nav__profile', this.el, fn);
  }

  setImage(imageURL) {
    if (imageURL) {
      this.image = imageURL;
      this.el.children.first().setAttribute("src", this.image);
    }
  }

}

Profile._interface = Interface['components']['GlobalNav']['partials']['Container']['partials']['TopNav']['partials']['Profile'];
Profile._defaults = {
  image: 'https://placekitten.com/g/50/50'
};

module.exports = Profile;
{'fraction_non_alphanumeric': 0.17202481669486747, 'fraction_numerical': 0.0045121263395375075, 'mean_word_length': 4.097701149425287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7059777', 'n_tokens_mistral': 551, 'n_tokens_neox': 537, 'n_words': 111}