<commit_before>import React, { PropTypes } from 'react';

import Examples from 'es6!display/examples';

/*
 * Basic code to deal with the fact that our builds (and similar objects like
 * jobs and tests (!) can be in many different conditions: still running,
 * failed, passed, etc. Some things we handle in this file:
 * - Given a build (/job/jobstep/test), what condition is it in?
 * - What color should I render text for a particular condition
 * - Rendering a colored dot that represents a condition
 *
 * Generally, we can assign conditions to objects with a status and result
 */

const COND_PASSED = 'passed';
const COND_FAILED = 'failed';
const COND_FAILED_INFRA = 'failed_infra';
const COND_FAILED_ABORTED = 'failed_aborted';
const COND_UNKNOWN = 'unknown';
const COND_WAITING = 'waiting';
const COND_WAITING_WITH_ERRORS = 'waiting_with_errors';
const COND_WAITING_WITH_FAILURES = 'waiting_with_failures';

var all_build_conditions = [
  COND_PASSED,
  COND_FAILED,
  COND_FAILED_INFRA,
  COND_FAILED_ABORTED,
  COND_UNKNOWN,
  COND_WAITING,
  COND_WAITING_WITH_ERRORS,<commit_msg>Add 'export' to constants that should be exported.<commit_after>import React, { PropTypes } from 'react';

import Examples from 'es6!display/examples';

/*
 * Basic code to deal with the fact that our builds (and similar objects like
 * jobs and tests (!) can be in many different conditions: still running,
 * failed, passed, etc. Some things we handle in this file:
 * - Given a build (/job/jobstep/test), what condition is it in?
 * - What color should I render text for a particular condition
 * - Rendering a colored dot that represents a condition
 *
 * Generally, we can assign conditions to objects with a status and result
 */

export const COND_PASSED = 'passed';
export const COND_FAILED = 'failed';
export const COND_FAILED_INFRA = 'failed_infra';
export const COND_FAILED_ABORTED = 'failed_aborted';
export const COND_UNKNOWN = 'unknown';
export const COND_WAITING = 'waiting';
export const COND_WAITING_WITH_ERRORS = 'waiting_with_errors';
export const COND_WAITING_WITH_FAILURES = 'waiting_with_failures';

var all_build_conditions = [
  COND_PASSED,
  COND_FAILED,
  COND_FAILED_INFRA,
  COND_FAILED_ABORTED,
  COND_UNKNOWN,
  COND_WAITING,
  COND_WAITING_WITH_ERRORS,
{'fraction_non_alphanumeric': 0.07868131868131868, 'fraction_numerical': 0.0008791208791208791, 'mean_word_length': 5.101876675603217, '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': '1777680', 'n_tokens_mistral': 717, 'n_tokens_neox': 717, 'n_words': 246}