<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package xyz.meunier.wav2pzx;

import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author fred
 */
public class PulseListBuilderTest {
    
    private static final double TOLERANCE = 0.001;
	// Two 238 t state pulses with a trailing 79 t state pulse
    public int[] samples1 = {0, 0, 0, 255, 255, 255, 0};
    public int[] samples2 = {255, 255, 255, 0, 0, 0, 0, 255};
    public static final float SAMPLE_RATE = (float) 44100.0;
    public static final float MACHINE_HZ = (float) 3500000.0;<commit_msg>Correct tolerance level for tests.<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package xyz.meunier.wav2pzx;

import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author fred
 */
public class PulseListBuilderTest {
    
    private static final double TOLERANCE = 0.1;
	// Two 238 t state pulses with a trailing 79 t state pulse
    public int[] samples1 = {0, 0, 0, 255, 255, 255, 0};
    public int[] samples2 = {255, 255, 255, 0, 0, 0, 0, 255};
    public static final float SAMPLE_RATE = (float) 44100.0;
    public static final float MACHINE_HZ = (float) 3500000.0;
{'fraction_non_alphanumeric': 0.10542732376793512, 'fraction_numerical': 0.06737367436057393, 'mean_word_length': 3.5828571428571427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3433751', 'n_tokens_mistral': 600, 'n_tokens_neox': 503, 'n_words': 199}