<commit_before>describe('Util', function() {
  var util;

  it('gives unique ids', function() {
      var a = iD.Util.id(),
          b = iD.Util.id(),
          c = iD.Util.id(),
          d = iD.Util.id();
      expect(a === b).toEqual(false);
      expect(b === c).toEqual(false);
      expect(c === d).toEqual(false);
  });

  it('creates a truthy object', function() {
      expect(iD.Util.trueObj(['a', 'b', 'c'])).toEqual({ a: true, b: true, c: true });
      expect(iD.Util.trueObj([])).toEqual({});
  });
});<commit_msg>Test friendlyName<commit_after>describe('Util', function() {
  var util;

  it('#id', function() {
      var a = iD.Util.id(),
          b = iD.Util.id(),
          c = iD.Util.id(),
          d = iD.Util.id();
      expect(a === b).toEqual(false);
      expect(b === c).toEqual(false);
      expect(c === d).toEqual(false);
  });

  it('#trueObj', function() {
      expect(iD.Util.trueObj(['a', 'b', 'c'])).toEqual({ a: true, b: true, c: true });
      expect(iD.Util.trueObj([])).toEqual({});
  });

  it('#friendlyName', function() {
      expect(iD.Util.friendlyName({ tags: { name: 'hi' }})).toEqual('hi');
      expect(iD.Util.friendlyName({ tags: { highway: 'Route 5' }})).toEqual('Route 5');
      expect(iD.Util.friendlyName({ tags: { name: 'hi', highway: 'Route 5' }})).toEqual('hi');
  });
});
{'fraction_non_alphanumeric': 0.24662668665667167, 'fraction_numerical': 0.0022488755622188904, 'mean_word_length': 2.836206896551724, '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': '1730359', 'n_tokens_mistral': 480, 'n_tokens_neox': 482, 'n_words': 94}