<commit_before>// @flow

import React from 'react';
import moment from 'moment-timezone';
import { FormatTime } from 'app/components/Time';

type Penalty = {
  id: number,
  reason: string,
  weight: number,
  exactExpiration: string
};

type Props = {
  penalties: Array<Penalty>
};

function Penalties({ penalties }: Props) {
  if (!penalties.length) {
    return <div>Du har ingen prikker.</div>;
  }

  return (
    <ul>
      {penalties.map(penalty => {
        const word = penalty.weight > 1 ? 'prikker' : 'prikk';
        return (
          <li key={penalty.id} style={{ marginBottom: '10px' }}><commit_msg>Remove import statement<commit_after>// @flow

import React from 'react';
import { FormatTime } from 'app/components/Time';

type Penalty = {
  id: number,
  reason: string,
  weight: number,
  exactExpiration: string
};

type Props = {
  penalties: Array<Penalty>
};

function Penalties({ penalties }: Props) {
  if (!penalties.length) {
    return <div>Du har ingen prikker.</div>;
  }

  return (
    <ul>
      {penalties.map(penalty => {
        const word = penalty.weight > 1 ? 'prikker' : 'prikk';
        return (
          <li key={penalty.id} style={{ marginBottom: '10px' }}>
{'fraction_non_alphanumeric': 0.1480865224625624, 'fraction_numerical': 0.004991680532445923, 'mean_word_length': 3.1482758620689655, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '4215533', 'n_tokens_mistral': 420, 'n_tokens_neox': 403, 'n_words': 106}