<commit_before>import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import {
  Card,
  CardHeader,
  Button,
  CardMedia,
  CardContent,
  CardActions,
  Avatar,
  Typography,
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableRow
} from '@material-ui/core';

import certifiedFreshIcon from '../icons/certified-fresh.png';
import freshIcon from '../icons/fresh.png';
import rottenIcon from '../icons/splat.png';

const useStyles = makeStyles(theme => ({
  card: {
    maxWidth: theme.spacing(55)
  },
  media: {
    height: 0,
    paddingTop: '100%'
  },
  expand: {
    transform: 'rotate(0deg)',
    marginLeft: 'auto',
    transition: theme.transitions.create('transform', {
      duration: theme.transitions.duration.shortest
    })
  },
  expandOpen: {
    transform: 'rotate(180deg)'
  }
}));

const MovieCard = props => {
  const classes = useStyles();

  const { movieData, showTimes } = props;

  let iconFromClass;
  switch (movieData.meterClass) {
    case 'certified_fresh':
      iconFromClass = certifiedFreshIcon;
      break;
    case 'fresh':
      iconFromClass = freshIcon;
      break;
    case 'rotten':
      iconFromClass = rottenIcon;
      break;
    default:
      iconFromClass = '';
  }

  const niceLanguage = languageCode => {
    switch (languageCode) {
      case 'ENG':
        return 'English';
      case 'TH':
        return 'Thai';
      default:
        return languageCode;
    }
  };
<commit_msg>added Japanese translation from JP<commit_after>import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import {
  Card,
  CardHeader,
  Button,
  CardMedia,
  CardContent,
  CardActions,
  Avatar,
  Typography,
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableRow
} from '@material-ui/core';

import certifiedFreshIcon from '../icons/certified-fresh.png';
import freshIcon from '../icons/fresh.png';
import rottenIcon from '../icons/splat.png';

const useStyles = makeStyles(theme => ({
  card: {
    maxWidth: theme.spacing(55)
  },
  media: {
    height: 0,
    paddingTop: '100%'
  },
  expand: {
    transform: 'rotate(0deg)',
    marginLeft: 'auto',
    transition: theme.transitions.create('transform', {
      duration: theme.transitions.duration.shortest
    })
  },
  expandOpen: {
    transform: 'rotate(180deg)'
  }
}));

const MovieCard = props => {
  const classes = useStyles();

  const { movieData, showTimes } = props;

  let iconFromClass;
  switch (movieData.meterClass) {
    case 'certified_fresh':
      iconFromClass = certifiedFreshIcon;
      break;
    case 'fresh':
      iconFromClass = freshIcon;
      break;
    case 'rotten':
      iconFromClass = rottenIcon;
      break;
    default:
      iconFromClass = '';
  }

  const niceLanguage = languageCode => {
    switch (languageCode) {
      case 'ENG':
        return 'English';
      case 'TH':
        return 'Thai';
      case 'JP':
        return 'Japanese';
      default:
        return languageCode;
    }
  };

{'fraction_non_alphanumeric': 0.12853812853812854, 'fraction_numerical': 0.00666000666000666, 'mean_word_length': 2.8365261813537677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4542839', 'n_tokens_mistral': 987, 'n_tokens_neox': 948, 'n_words': 220}