<commit_before>import React from 'react';

const StatusSwitch = (props) => {
  
  return (
    <div className="nav navbar-nav">
      <span className="active">Status: {props.status === 'Open' ? 'Open' : 'Close'}</span>
      <button type="button" className="btn btn-primary navbar-btn" data-toggle="modal" data-target="#close-queue-warning">{props.status === 'Open' ? 'Close' : 'Open'} Queue</button>

      <div id="close-queue-warning" className="modal fade" role="dialog">
        <div className="modal-dialog">
          <div className="modal-content">
            <div className="modal-header">
              <button type="button" className="close" data-dismiss="modal">&times;</button>
              <h2 className="modal-title"></h2>
            </div>
            <div className="modal-body">
              <p className="warning-content"><b>{props.status === 'Open' ? 'Close' : 'Open'}</b>Queue?</p>
            </div>
            <div className="modal-footer">
              <button className="btn btn-primary" onClick={props.switchStatus.bind(this)} data-dismiss="modal">Confirm</button>
              <button type="button" className="btn btn-default" data-dismiss="modal">Cancel</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
};

export default StatusSwitch;<commit_msg>fix spacing for status switch on manager page<commit_after>import React from 'react';

const StatusSwitch = (props) => {
  
  return (
    <div className="nav navbar-nav">
      <span className="active">Status: {props.status === 'Open' ? 'Open' : 'Close'}</span>
      <button type="button" className="btn btn-primary navbar-btn" data-toggle="modal" data-target="#close-queue-warning">{props.status === 'Open' ? 'Close' : 'Open'} Queue</button>

      <div id="close-queue-warning" className="modal fade" role="dialog">
        <div className="modal-dialog">
          <div className="modal-content">
            <div className="modal-header">
              <button type="button" className="close" data-dismiss="modal">&times;</button>
              <h2 className="modal-title"></h2>
            </div>
            <div className="modal-body">
              <p className="warning-content"><b>{props.status === 'Open' ? 'Close' : 'Open'} Queue?</b></p>
            </div>
            <div className="modal-footer">
              <button className="btn btn-primary" onClick={props.switchStatus.bind(this)} data-dismiss="modal">Confirm</button>
              <button type="button" className="btn btn-default" data-dismiss="modal">Cancel</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
};

export default StatusSwitch;
{'fraction_non_alphanumeric': 0.17930519237952933, 'fraction_numerical': 0.0014942099364960778, 'mean_word_length': 2.787835926449788, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 65, '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': '5927927', 'n_tokens_mistral': 765, 'n_tokens_neox': 754, 'n_words': 155}