<commit_before>import R from "ramda";
import React from "react";
import Radium from "radium";
import { css, PropTypes } from "./util";
const { numberOrString, boolOrString } = PropTypes;


/**
 * Stub component helpful for quickly laying up a
 * screen with placeholders.
 */
class Foo extends React.Component {
  static propTypes = {
    display: PropTypes.oneOf(["none", "block", "inline-block", "inline"]),
    width: numberOrString,
    height: numberOrString,
    minWidth: numberOrString,
    minHeight: numberOrString,
    padding: numberOrString,
    margin: numberOrString,
    marginTop: numberOrString,
    marginBottom: numberOrString,
    marginLeft: numberOrString,
    radius: numberOrString,
    fontSize: numberOrString,
    background: boolOrString,
    color: PropTypes.string,
    dashed: PropTypes.bool,
    border: boolOrString,
    absolute: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.number,
      PropTypes.arrayOf(numberOrString)
    ]),
    shadow: numberOrString
  };
  static defaultProps = {
    display: "block",
    padding: 10,
    radius: 0,
    fontSize: 16,
    background: "rgba(255, 0, 0, 0.1)",
    color: css.black.toString(),
    dashed: true
  };


  styles() {
    // Background.
    let background = this.props.background;
    if (background === false) { background = null; }
    if (background === true) { background = Foo.defaultProps.background; }

    // Border.
    const borderStyle = this.props.dashed ? "dashed" : "solid";
    const defaultBorder = `${ borderStyle } 1px rgba(0, 0, 0, 0.3)`;
    let border = this.props.border;
    if (R.is(Boolean, border)) {
      border = border ? defaultBorder : "solid 1px transparent";
    } else {
      border = R.is(String, border) ? border : defaultBorder;
    }

    // Shadow.
    let boxShadow = this.props.shadow;
    if (R.is(Number, boxShadow)) {
      boxShadow = `0px 3px 10px 5px rgba(0,0,0, ${ boxShadow })`;
    }
<commit_msg>Remove reference to CSS color helper.<commit_after>import R from "ramda";
import React from "react";
import Radium from "radium";
import { css, PropTypes } from "./util";
const { numberOrString, boolOrString } = PropTypes;


/**
 * Stub component helpful for quickly laying up a
 * screen with placeholders.
 */
class Foo extends React.Component {
  static propTypes = {
    display: PropTypes.oneOf(["none", "block", "inline-block", "inline"]),
    width: numberOrString,
    height: numberOrString,
    minWidth: numberOrString,
    minHeight: numberOrString,
    padding: numberOrString,
    margin: numberOrString,
    marginTop: numberOrString,
    marginBottom: numberOrString,
    marginLeft: numberOrString,
    radius: numberOrString,
    fontSize: numberOrString,
    background: boolOrString,
    color: PropTypes.string,
    dashed: PropTypes.bool,
    border: boolOrString,
    absolute: PropTypes.oneOfType([
      PropTypes.string,
      PropTypes.number,
      PropTypes.arrayOf(numberOrString)
    ]),
    shadow: numberOrString
  };
  static defaultProps = {
    display: "block",
    padding: 10,
    radius: 0,
    fontSize: 16,
    background: "rgba(255, 0, 0, 0.1)",
    color: "black",
    dashed: true
  };


  styles() {
    // Background.
    let background = this.props.background;
    if (background === false) { background = null; }
    if (background === true) { background = Foo.defaultProps.background; }

    // Border.
    const borderStyle = this.props.dashed ? "dashed" : "solid";
    const defaultBorder = `${ borderStyle } 1px rgba(0, 0, 0, 0.3)`;
    let border = this.props.border;
    if (R.is(Boolean, border)) {
      border = border ? defaultBorder : "solid 1px transparent";
    } else {
      border = R.is(String, border) ? border : defaultBorder;
    }

    // Shadow.
    let boxShadow = this.props.shadow;
    if (R.is(Number, boxShadow)) {
      boxShadow = `0px 3px 10px 5px rgba(0,0,0, ${ boxShadow })`;
    }

{'fraction_non_alphanumeric': 0.1259259259259259, 'fraction_numerical': 0.013793103448275862, 'mean_word_length': 3.126448893572181, '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': '5180102', 'n_tokens_mistral': 1253, 'n_tokens_neox': 1204, 'n_words': 325}