<commit_before>module.exports = Users

var h = require('virtual-dom/h')
var inherits = require('util').inherits
var BaseElement = require('./base-element')

function Users (target) {
  BaseElement.call(this, target)
}
inherits(Users, BaseElement)

Users.prototype.render = function (users) {
  var self = this

  users = Object.keys(users).map(function (username) {
    var user = users[username]

    var className = user.active ? 'active' : ''
    return h('li', { className: className }, [
      h('a', {
        href: '#',
        onclick: function (e) {
          e.preventDefault()
          self.send('toggleBlockUser', username)
        },
        className: user.blocked ? 'blocked' : ''
      }, [
        h('img.avatar', { src: user.avatar }),
        username
      ])
    ])
  })<commit_msg>fix blocked user opacity rendering<commit_after>module.exports = Users

var h = require('virtual-dom/h')
var inherits = require('util').inherits
var BaseElement = require('./base-element')

function Users (target) {
  BaseElement.call(this, target)
}
inherits(Users, BaseElement)

Users.prototype.render = function (users) {
  var self = this

  users = Object.keys(users).map(function (username) {
    var user = users[username]

    var className = user.blocked ? 'blocked' : ''
    return h('li', { className: className }, [
      h('a', {
        href: '#',
        onclick: function (e) {
          e.preventDefault()
          self.send('toggleBlockUser', username)
        }
      }, [
        h('img.avatar', { src: user.avatar }),
        username
      ])
    ])
  })
{'fraction_non_alphanumeric': 0.15370018975332067, 'fraction_numerical': 0.0, 'mean_word_length': 2.7136150234741785, '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': '620535', 'n_tokens_mistral': 478, 'n_tokens_neox': 479, 'n_words': 107}