<commit_before>import React from 'react';
import { Link } from 'react-router';
import PropTypes from 'prop-types';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import { green, yellow } from '@material-ui/core/colors';
import Button from '@material-ui/core/Button';
import DeleteIcon from '@material-ui/icons/Delete';
import WarningIcon from '@material-ui/icons/Warning';
import CheckIcon from '@material-ui/icons/Check';
import { withStyles } from '@material-ui/core/styles';

const styles = theme => ({
  rootPaper: {
    ...theme.mixins.gutters(),
    paddingTop: theme.spacing(2),
    paddingBottom: theme.spacing(2),
    marginTop: theme.spacing(2),
    height: '100%',
    display: 'flex',
    flexDirection: 'column',
    justifyContent: 'space-between',
  },
  title: {
    marginBottom: theme.spacing(1),
  },
  contentContainer: {
    marginTop: theme.spacing(1),
    marginBottom: theme.spacing(1),
  },
  labelInline: {
    fontWeight: 'bold',
    marginRight: theme.spacing(1),
    display: 'inline-block',
  },
  value: {
    display: 'inline-block',
  },
});

const MapsListItem = ({
  consortium,
  pipeline,
  canDelete,
  onDelete,
  needsDataMapping,
  classes,
}) => (
  <Paper
    key={`${consortium.id}-list-item`}
    className={classes.rootPaper}
    elevation={12}
  >
    <Typography variant="h4" className={classes.title}>
      { consortium.name }
    </Typography>
    <div className={classes.contentContainer}>
      <Typography className={classes.labelInline}>
        Active Pipeline:
      </Typography>
      <Typography className={classes.value}>{ pipeline.name }</Typography>
    </div>
    <div className="list-item__actions">
      <div className="list-item__actions-primary">
        <Button
          variant="contained"
          color={needsDataMapping ? 'secondary' : 'primary'}
          component={Link}
          to={`/dashboard/maps/${consortium.id}`}
          name={consortium.name}
        >
          { needsDataMapping ? 'Map Data to Consortium' : 'View Details' }
        </Button>
      </div>
      {<commit_msg>Change elevation on map item paper<commit_after>import React from 'react';
import { Link } from 'react-router';
import PropTypes from 'prop-types';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import { green, yellow } from '@material-ui/core/colors';
import Button from '@material-ui/core/Button';
import DeleteIcon from '@material-ui/icons/Delete';
import WarningIcon from '@material-ui/icons/Warning';
import CheckIcon from '@material-ui/icons/Check';
import { withStyles } from '@material-ui/core/styles';

const styles = theme => ({
  rootPaper: {
    ...theme.mixins.gutters(),
    paddingTop: theme.spacing(2),
    paddingBottom: theme.spacing(2),
    marginTop: theme.spacing(2),
    height: '100%',
    display: 'flex',
    flexDirection: 'column',
    justifyContent: 'space-between',
  },
  title: {
    marginBottom: theme.spacing(1),
  },
  contentContainer: {
    marginTop: theme.spacing(1),
    marginBottom: theme.spacing(1),
  },
  labelInline: {
    fontWeight: 'bold',
    marginRight: theme.spacing(1),
    display: 'inline-block',
  },
  value: {
    display: 'inline-block',
  },
});

const MapsListItem = ({
  consortium,
  pipeline,
  canDelete,
  onDelete,
  needsDataMapping,
  classes,
}) => (
  <Paper
    key={`${consortium.id}-list-item`}
    className={classes.rootPaper}
    elevation={10}
  >
    <Typography variant="h4" className={classes.title}>
      { consortium.name }
    </Typography>
    <div className={classes.contentContainer}>
      <Typography className={classes.labelInline}>
        Active Pipeline:
      </Typography>
      <Typography className={classes.value}>{ pipeline.name }</Typography>
    </div>
    <div className="list-item__actions">
      <div className="list-item__actions-primary">
        <Button
          variant="contained"
          color={needsDataMapping ? 'secondary' : 'primary'}
          component={Link}
          to={`/dashboard/maps/${consortium.id}`}
          name={consortium.name}
        >
          { needsDataMapping ? 'Map Data to Consortium' : 'View Details' }
        </Button>
      </div>
      {
{'fraction_non_alphanumeric': 0.1505981703026038, 'fraction_numerical': 0.006098991320666197, 'mean_word_length': 3.2725450901803605, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 35, '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': '3835114', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1295, 'n_words': 269}