<commit_before>import React, { Component } from 'react';
import moment from 'moment';
// The following import target will be generate on build time, do not edit
import revisionInfo from '../../../target/classes/io/jenkins/blueocean/revisionInfo';
import { AppConfig } from '@jenkins-cd/blueocean-core-js';

export class DevelopmentFooter extends Component {
    render() {
        // testing basic integrity
        if (!revisionInfo || !revisionInfo.sha) {
            // TODO: At minimum we should return Jenkins version. Jenkins version is always present
             // in X-Hudson HTTP header. Something to be handled elsewhere during load time by
             // inspecting HTTP response headers
            return null;
        }

        let includeBranch = true;

        if(!revisionInfo.branch.includes('(no branch)')) {
            includeBranch = false;
        }
        return (
          <div className="development-footer">
              <span> {AppConfig.getConfig().version}&nbsp;</span>
              <span> &#183; Core {AppConfig.getJenkinsConfig().version}&nbsp;</span>
              <span> &#183; {revisionInfo.sha.substring(0,7)}&nbsp; </span>
              { includeBranch && <span> &#183; {revisionInfo.branch}&nbsp;</span> }
              <span> &#183; {moment(revisionInfo.timestamp).format('Do MMMM YYYY hh:mm A')}</span>
              
          </div>
        );
    }
}<commit_msg>[FIX JENKINS-46959] Remove unnecessary "no branch" (#1404)<commit_after>import React, { Component } from 'react';
import moment from 'moment';
// The following import target will be generate on build time, do not edit
import revisionInfo from '../../../target/classes/io/jenkins/blueocean/revisionInfo';
import { AppConfig } from '@jenkins-cd/blueocean-core-js';

export class DevelopmentFooter extends Component {
    render() {
        // testing basic integrity
        if (!revisionInfo || !revisionInfo.sha) {
            // TODO: At minimum we should return Jenkins version. Jenkins version is always present
             // in X-Hudson HTTP header. Something to be handled elsewhere during load time by
             // inspecting HTTP response headers
            return null;
        }

        return (
          <div className="development-footer">
              <span> {AppConfig.getConfig().version}&nbsp;</span>
              <span> &#183; Core {AppConfig.getJenkinsConfig().version}&nbsp;</span>
              <span> &#183; {revisionInfo.sha.substring(0,7)}&nbsp; </span>
              <span> &#183; {moment(revisionInfo.timestamp).format('Do MMMM YYYY hh:mm A')}</span>
              
          </div>
        );
    }
}
{'fraction_non_alphanumeric': 0.1268882175226586, 'fraction_numerical': 0.01283987915407855, 'mean_word_length': 2.400513478818999, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5209064', 'n_tokens_mistral': 733, 'n_tokens_neox': 703, 'n_words': 207}