<commit_before>@import '../../settings';
@import '../../mixins';

.c-report-panel {
  bottom: $offset-panel-control-mobile;
  position: absolute;
  transform: translate(0, 0);
  transition: transform .25s ease;
  width: 100%;
  z-index: 103;

  @media #{$mq-tablet} {
    flex: 0 0 auto;
    margin-left: $control-panel-left-offset;
    position: relative;
    top: 0;
    width: calc(100% - #{$control-panel-left-offset});
  }

  &.-minimized {
    transform: translate(0, calc(-100% - #{$report-panel-menu-height}));

    @media #{$mq-tablet} {
      transform: translate(0, 0);
    }
  }

  &.-no-footer {
    @media #{$mq-tablet} {
      bottom: $timebar-height;
    }
  }

  > .menu {
    align-items: center;
    background-color: $color-13;
    cursor: pointer;
    display: flex;
    height: $report-panel-menu-height;
    justify-content: space-between;
    padding: 0 25px 0 30px;
    position: relative;
  }

  > .menu > .report-total {
    color: $color-4;
    font-size: $font-size-small;
    font-weight: $font-weight-bold;
    text-transform: uppercase;
  }

  > .menu > .toggle {
    @include arrow(12px, 2px, $color-4, 'down');
    position: absolute;
    right: 27px;
    top: calc(50% - 4px);
    transform: translate(0, -50%) rotate(45deg);
    transition: transform .25s ease;

    &.-expanded {
      top: calc(50% + 4px);
      transform: translate(0, -50%) rotate(-135deg);
    }
  }

  > .container {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;

    &.-expanded {
      max-height: 270px;
    }
  }

  > .container > .content {
    background-color: $color-4;
    padding: 20px 0 20px 30px;

    > .polygon-list {
      max-height: 100px;
      overflow-y: auto;

      @media #{$mq-desktop} {
        max-height: 200px;
      }
    }

    > .polygon-list > .polygon-item {
      align-items: center;
      display: flex;
      justify-content: space-between;
      position: relative;

      &:not(:first-child) {
        margin: 15px 0 0;
      }

      &:first-child {
        padding: 10px 0 0;
      }

      &:last-child {
        padding: 0 0 10px;
      }

      > .polygon-name {
        color: $color-1;
        font-size: $font-size-xxs-small;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
        width: 240px;
      }

      > .polygon-message {<commit_msg>fixes padding when only child in polygon-list<commit_after>@import '../../settings';
@import '../../mixins';

.c-report-panel {
  bottom: $offset-panel-control-mobile;
  position: absolute;
  transform: translate(0, 0);
  transition: transform .25s ease;
  width: 100%;
  z-index: 103;

  @media #{$mq-tablet} {
    flex: 0 0 auto;
    margin-left: $control-panel-left-offset;
    position: relative;
    top: 0;
    width: calc(100% - #{$control-panel-left-offset});
  }

  &.-minimized {
    transform: translate(0, calc(-100% - #{$report-panel-menu-height}));

    @media #{$mq-tablet} {
      transform: translate(0, 0);
    }
  }

  &.-no-footer {
    @media #{$mq-tablet} {
      bottom: $timebar-height;
    }
  }

  > .menu {
    align-items: center;
    background-color: $color-13;
    cursor: pointer;
    display: flex;
    height: $report-panel-menu-height;
    justify-content: space-between;
    padding: 0 25px 0 30px;
    position: relative;
  }

  > .menu > .report-total {
    color: $color-4;
    font-size: $font-size-small;
    font-weight: $font-weight-bold;
    text-transform: uppercase;
  }

  > .menu > .toggle {
    @include arrow(12px, 2px, $color-4, 'down');
    position: absolute;
    right: 27px;
    top: calc(50% - 4px);
    transform: translate(0, -50%) rotate(45deg);
    transition: transform .25s ease;

    &.-expanded {
      top: calc(50% + 4px);
      transform: translate(0, -50%) rotate(-135deg);
    }
  }

  > .container {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;

    &.-expanded {
      max-height: 270px;
    }
  }

  > .container > .content {
    background-color: $color-4;
    padding: 20px 0 20px 30px;

    > .polygon-list {
      max-height: 100px;
      overflow-y: auto;

      @media #{$mq-desktop} {
        max-height: 200px;
      }
    }

    > .polygon-list > .polygon-item {
      align-items: center;
      display: flex;
      justify-content: space-between;
      position: relative;

      &:not(:first-child) {
        margin: 15px 0 0;
      }

      &:first-child {
        padding: 10px 0 0;
      }

      &:last-child {
        padding: 0 0 10px;
      }

      &:only-child {
        padding: 10px 0;
      }

      > .polygon-name {
        color: $color-1;
        font-size: $font-size-xxs-small;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
        width: 240px;
      }

      > .polygon-message {
{'fraction_non_alphanumeric': 0.15751887369924505, 'fraction_numerical': 0.03815547847378086, 'mean_word_length': 2.0409429280397022, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '1206066', 'n_tokens_mistral': 1894, 'n_tokens_neox': 1714, 'n_words': 372}