<commit_before>package html;

import jisc.event.EventSource;
import jisc.input.html.JciEventsHtmlParser;
import jisc.input.html.RoyalAcademyHtmlParser;
import jisc.input.rss.RSSFeedParser;
import jisc.misc.HelperMethods;

import java.util.logging.Level;

import static org.junit.Assert.assertTrue;

/**
 * Created by mrzl on 15.04.2015.
 */
public class ParserTests {

    @org.junit.Test
    public void testRead() {
        HelperMethods.setGlobalLogLevel( Level.SEVERE );

        EventSource jciLondon = new EventSource( "JCI London", "http://www.jcilondon.org.uk/events/index.html" );
        JciEventsHtmlParser parser = new JciEventsHtmlParser();
        parser.parse();
        assertTrue( parser.getEvents( ).size( ) > 0 );
    }

    @org.junit.Test
    public void testNetworkingEventsLondon() {
        HelperMethods.setGlobalLogLevel( Level.SEVERE );

        EventSource networkingEventsLondon = new EventSource( "Networking Events London", "http://feeds2.feedburner.com/Networking-Events-In-London" );

        RSSFeedParser parser = new RSSFeedParser( networkingEventsLondon );
        parser.parse();
        assertTrue( parser.getEvents().size( ) > 0 );
    }

    @org.junit.Test
    public void testRoyalAcademy() {
        HelperMethods.setGlobalLogLevel( Level.SEVERE );

        RoyalAcademyHtmlParser royalAcademy = new RoyalAcademyHtmlParser();
        royalAcademy.parse();
        assertTrue( royalAcademy.getEvents().size( ) > 0 );
    }
}
<commit_msg>adds small console output to tests<commit_after>package html;

import jisc.event.EventSource;
import jisc.input.html.JciEventsHtmlParser;
import jisc.input.html.RoyalAcademyHtmlParser;
import jisc.input.rss.RSSFeedParser;
import jisc.misc.HelperMethods;

import java.util.logging.Level;

import static org.junit.Assert.assertTrue;

/**
 * Created by mrzl on 15.04.2015.
 */
public class ParserTests {

    @org.junit.Test
    public void testRead() {
        HelperMethods.setGlobalLogLevel( Level.SEVERE );

        EventSource jciLondon = new EventSource( "JCI London", "http://www.jcilondon.org.uk/events/index.html" );
        JciEventsHtmlParser parser = new JciEventsHtmlParser();
        parser.parse();
        System.out.println( "JCI events: " + parser.getEvents().size() );
        assertTrue( parser.getEvents( ).size( ) > 0 );
    }

    @org.junit.Test
    public void testNetworkingEventsLondon() {
        HelperMethods.setGlobalLogLevel( Level.SEVERE );

        EventSource networkingEventsLondon = new EventSource( "Networking Events London", "http://feeds2.feedburner.com/Networking-Events-In-London" );

        RSSFeedParser parser = new RSSFeedParser( networkingEventsLondon );
        parser.parse();
        System.out.println( "NetworkingEventsLondon events: " + parser.getEvents().size() );
        assertTrue( parser.getEvents().size( ) > 0 );
    }

    @org.junit.Test
    public void testRoyalAcademy() {
        HelperMethods.setGlobalLogLevel( Level.SEVERE );

        RoyalAcademyHtmlParser royalAcademy = new RoyalAcademyHtmlParser();
        royalAcademy.parse();
        System.out.println( "Royal Academy events: " + royalAcademy.getEvents().size() );
        assertTrue( royalAcademy.getEvents().size( ) > 0 );
    }
}

{'fraction_non_alphanumeric': 0.1136431784107946, 'fraction_numerical': 0.00719640179910045, 'mean_word_length': 2.9952095808383232, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4993800', 'n_tokens_mistral': 1040, 'n_tokens_neox': 972, 'n_words': 186}