<commit_before>describe('Concat url parts', function () {
  var concatUrlParts = window.mwUI.Backbone.Utils.concatUrlParts;

  it('appends multiple arguments to one string', function(){
    var str1 = 'abc',
        str2 = 'def',
        str3 = 'xyz',
        result = concatUrlParts(str1, str2, str3);

    expect(result).toMatch(str1);
    expect(result).toMatch(str2);
    expect(result).toMatch(str3);
  });

  it('appends a slash between the strings', function(){
    var str1 = 'abc',
      str2 = 'def',
      result = concatUrlParts(str1, str2);

    expect(result).toMatch(str1+'/'+str2);
  });

  it('cut unnecessary slashes so that it is a valid url', function(){
    var str1 = 'abc/',
      str2 = '/def',
      result = concatUrlParts(str1, str2);

    expect(result).toMatch('abc/def');
  });

  it('does not add a slash at the first position', function(){<commit_msg>trailing slash is still valid url<commit_after>describe('Concat url parts', function () {
  var concatUrlParts = window.mwUI.Backbone.Utils.concatUrlParts;

  it('appends multiple arguments to one string', function(){
    var str1 = 'abc',
        str2 = 'def',
        str3 = 'xyz',
        result = concatUrlParts(str1, str2, str3);

    expect(result).toMatch(str1);
    expect(result).toMatch(str2);
    expect(result).toMatch(str3);
  });

  it('appends a slash between the strings', function(){
    var str1 = 'abc',
      str2 = 'def',
      result = concatUrlParts(str1, str2);

    expect(result).toMatch(str1+'/'+str2);
  });

  it('cuts unnecessary slashes', function(){
    var str1 = 'abc/',
      str2 = '/def',
      result = concatUrlParts(str1, str2);

    expect(result).toMatch('abc/def');
  });

  it('does not add a slash at the first position', function(){
{'fraction_non_alphanumeric': 0.15559341283361727, 'fraction_numerical': 0.021578648495173196, 'mean_word_length': 3.3080684596577017, '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': '1076996', 'n_tokens_mistral': 596, 'n_tokens_neox': 569, 'n_words': 145}