<commit_before>package edu.pdx.cs410J.rmi;

import edu.pdx.cs410J.InvokeMainTestCase;
import org.junit.AfterClass;
import org.junit.BeforeClass;

import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;

public class MovieDatabaseRmiTestCase extends InvokeMainTestCase {
  static final int RMI_PORT = 7777;
  static final String RMI_HOST = "localhost";
  private static MovieDatabaseImpl movieDatabaseImpl;
  private static Registry rmiRegistry;

  @BeforeClass<commit_msg>GitHub CI didn't like using port 7777.  So, try a random port.<commit_after>package edu.pdx.cs410J.rmi;

import edu.pdx.cs410J.InvokeMainTestCase;
import org.junit.AfterClass;
import org.junit.BeforeClass;

import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;

public class MovieDatabaseRmiTestCase extends InvokeMainTestCase {
  static final int RMI_PORT = getRandomPort();

  private static int getRandomPort() {
    return (int) (1_000 + Math.random() * (9_000 - 1));
  }

  static final String RMI_HOST = "localhost";
  private static MovieDatabaseImpl movieDatabaseImpl;
  private static Registry rmiRegistry;

  @BeforeClass
{'fraction_non_alphanumeric': 0.08196721311475409, 'fraction_numerical': 0.01901639344262295, 'mean_word_length': 5.9363636363636365, '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': '3110982', 'n_tokens_mistral': 497, 'n_tokens_neox': 466, 'n_words': 112}