<commit_before>/*global config*/
import React, {Component} from 'react';
let Link = require('react-router').Link;


class Breadcrumb extends Component {

  render() {
    let path = window.location.pathname.split('/');
    let pages = path.slice(4, path.length);
    let links = [];

    pages.forEach(function(page, i) {
      let link, pageLink, key;
      if (i !== pages.length - 1 && i !== 0) {
        pageLink = pages.slice(0, i + 1).join('/');
        key = page + i;
        link = <Link key={key} className='crumb' to={`${config.appRoot}builds/${pageLink}`}>{page}</Link>;
      } else if (i === 0) {
        link = page + ' / ';
      } else {
        link = page;
      }
      links.push(link);
    });

    return (
      <div className='breadcrumbs'> {links} </div>
    );

  }<commit_msg>fix breadcrumb path<commit_after>/*global config*/
import React, {Component} from 'react';
const Link = require('react-router').Link;


class Breadcrumb extends Component {

  render() {
    const path = window.location.pathname.split('/');
    const pages = path.slice(2, path.length);
    const links = [];

    pages.forEach(function(page, i) {
      let link, key;
      if (i !== pages.length - 1 && i !== 0) {
        const pageLink = pages.slice(0, i + 1).join('/');
        key = page + i;
        link = <Link key={key} className='crumb' to={`${config.appRoot}builds/${pageLink}`}>{page}</Link>;
      } else if (i === 0) {
        link = page + ' / ';
      } else {
        link = page;
      }
      links.push(link);
    });

    return (
      <div className='breadcrumbs'> {links} </div>
    );

  }
{'fraction_non_alphanumeric': 0.18603213844252164, 'fraction_numerical': 0.007416563658838072, 'mean_word_length': 2.3799582463465554, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5931499', 'n_tokens_mistral': 541, 'n_tokens_neox': 525, 'n_words': 128}