<commit_before>package sample;

import com.sun.istack.internal.Nullable;
import org.junit.Before;
import org.junit.Test;

import javax.lang.model.type.NullType;

import static org.junit.Assert.*;
import static org.junit.matchers.JUnitMatchers.*;
import static org.hamcrest.CoreMatchers.*;

public class iTunesFeedTest {
  private iTunesFeed feed;

  @Before
  public void setUp () throws Exception {
  }

  @Test
  public void getTitle () throws Exception {
    feed = new iTunesFeed("http://historyofrome.libsyn.com/rss/");
    assertThat(feed.getTitle(), equalTo("The History of Rome"));

    feed = new iTunesFeed("https://rss.art19.com/levar-burton-reads");
    assertThat(feed.getTitle(), equalTo("LeVar Burton Reads"));

    feed = new iTunesFeed("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss");
    assertThat(feed.getTitle(), equalTo("OWASP 24/7"));
  }

  @Test
  public void getURL () throws Exception {
    feed = new iTunesFeed("http://historyofrome.libsyn.com/rss/");
    assertThat(feed.getURL(), equalTo("http://historyofrome.libsyn.com/rss/"));

    feed = new iTunesFeed("https://rss.art19.com/levar-burton-reads");
    assertThat(feed.getURL(), equalTo("https://rss.art19.com/levar-burton-reads"));

    feed = new iTunesFeed("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss");
    assertThat(feed.getURL(), equalTo("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss"));
  }

  @Test
  public void getAuthor () throws Exception {
    feed = new iTunesFeed("http://historyofrome.libsyn.com/rss/");
    assertThat(feed.getAuthor(), equalTo(null));

    feed = new iTunesFeed("https://rss.art19.com/levar-burton-reads");
    assertThat(feed.getAuthor(), equalTo("<EMAIL> (Stitcher)"));

    feed = new iTunesFeed("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss");
    assertThat(feed.getAuthor(), equalTo(null));
  }

  @Test
  public void getAllEpisodes () throws Exception {
  }

}<commit_msg>Fixed iTunesFeed unit test to check correct author<commit_after>package sample;

import com.sun.istack.internal.Nullable;
import org.junit.Before;
import org.junit.Test;

import javax.lang.model.type.NullType;

import static org.junit.Assert.*;
import static org.junit.matchers.JUnitMatchers.*;
import static org.hamcrest.CoreMatchers.*;

public class iTunesFeedTest {
  private iTunesFeed feed;

  @Before
  public void setUp () throws Exception {
  }

  @Test
  public void getTitle () throws Exception {
    feed = new iTunesFeed("http://historyofrome.libsyn.com/rss/");
    assertThat(feed.getTitle(), equalTo("The History of Rome"));

    feed = new iTunesFeed("https://rss.art19.com/levar-burton-reads");
    assertThat(feed.getTitle(), equalTo("LeVar Burton Reads"));

    feed = new iTunesFeed("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss");
    assertThat(feed.getTitle(), equalTo("OWASP 24/7"));
  }

  @Test
  public void getURL () throws Exception {
    feed = new iTunesFeed("http://historyofrome.libsyn.com/rss/");
    assertThat(feed.getURL(), equalTo("http://historyofrome.libsyn.com/rss/"));

    feed = new iTunesFeed("https://rss.art19.com/levar-burton-reads");
    assertThat(feed.getURL(), equalTo("https://rss.art19.com/levar-burton-reads"));

    feed = new iTunesFeed("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss");
    assertThat(feed.getURL(), equalTo("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss"));
  }

  @Test
  public void getAuthor () throws Exception {
    feed = new iTunesFeed("http://historyofrome.libsyn.com/rss/");
    assertThat(feed.getAuthor(), equalTo("<NAME>"));

    feed = new iTunesFeed("https://rss.art19.com/levar-burton-reads");
    assertThat(feed.getAuthor(), equalTo("<NAME> and Stitcher"));

    feed = new iTunesFeed("https://feeds.soundcloud.com/users/soundcloud:users:63303345/sounds.rss");
    assertThat(feed.getAuthor(), equalTo("OWASP 24/7"));
  }

  @Test
  public void getAllEpisodes () throws Exception {
  }

}
{'fraction_non_alphanumeric': 0.15961633054599114, 'fraction_numerical': 0.021888834235120513, 'mean_word_length': 4.444444444444445, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1189540', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1310, 'n_words': 223}