<commit_before>package io.humble.video;

import static org.junit.Assert.*;

import java.util.Collection;
import java.util.List;

import org.junit.Test;

public class SourceFormatTest {

  @Test
  public void testSourceFormat() {
    final SourceFormat f = SourceFormat.findFormat("aiff");
    assertNotNull(f);
    
    assertEquals("aiff", f.getName());
    assertEquals("Audio IFF", f.getLongName());
    List<Codec.ID> l = f.getSupportedCodecs();
    assertEquals(17, l.size());
  }
  
  @Test
  public void testInstallation() {
    Collection<SourceFormat> formats = SourceFormat.getFormats();
    // A well configured FFmpeg will have over 180 formats
    assertTrue(formats.size() > 100);
    for (SourceFormat  f : formats)
    {
      assertNotNull(f);
//      System.out.println(f);
    }
  }
<commit_msg>fix test and make more robust to future ffmpeg changes.<commit_after>package io.humble.video;

import static org.junit.Assert.*;

import java.util.Collection;
import java.util.List;

import org.junit.Test;

public class SourceFormatTest {

  @Test
  public void testSourceFormat() {
    final SourceFormat f = SourceFormat.findFormat("aiff");
    assertNotNull(f);
    
    assertEquals("aiff", f.getName());
    assertEquals("Audio IFF", f.getLongName());
    List<Codec.ID> l = f.getSupportedCodecs();
    assertTrue(17 < l.size());
  }
  
  @Test
  public void testInstallation() {
    Collection<SourceFormat> formats = SourceFormat.getFormats();
    // A well configured FFmpeg will have over 180 formats
    assertTrue(formats.size() > 100);
    for (SourceFormat  f : formats)
    {
      assertNotNull(f);
//      System.out.println(f);
    }
  }

{'fraction_non_alphanumeric': 0.12642300778909527, 'fraction_numerical': 0.009586578789694428, 'mean_word_length': 3.46524064171123, 'pattern_counts': {'":': 0, '<': 8, '<?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': '6535557', 'n_tokens_mistral': 528, 'n_tokens_neox': 514, 'n_words': 123}