<commit_before>/*
 * WordNet-Java
 *
 * Copyright 1998 by <NAME>.  You can use this software freely so long as you preserve
 * the copyright notice and this restriction, and label your changes.
 */
package edu.brandeis.cs.steele.wn.browser;

import javax.swing.JApplet;
import java.util.logging.*;
import java.net.URL;

import edu.brandeis.cs.steele.wn.DictionaryDatabase;
import edu.brandeis.cs.steele.wn.FileBackedDictionary;
import edu.brandeis.cs.steele.wn.RemoteFileManager;


public class BrowserApplet extends JApplet {
private static final long serialVersionUID = 1L;
private static final Logger log = Logger.getLogger(BrowserApplet.class.getName());

  public void init() {
    final URL url = getCodeBase();
    if (log.isLoggable(Level.FINEST)) {
      log.finest("url = "+url);
    }
    String hostname = url.getHost();
    if (url.getPort() != -1) {
      hostname += ":" + url.getPort();
    }
    if (log.isLoggable(Level.FINEST)) {
      log.finest("hostname = "+hostname);
    }
    final DictionaryDatabase dictionary;
    try {
      dictionary = FileBackedDictionary.getInstance(RemoteFileManager.lookup(hostname));
    } catch (Exception e) {
      throw new RuntimeException(e.toString());
    }
    if (log.isLoggable(Level.FINEST)) {
      log.finest("dictionary = "+dictionary);
    }
    add(new BrowserPanel(dictionary));
  }
}<commit_msg>disable runtime<commit_after>/*
 * WordNet-Java
 *
 * Copyright 1998 by <NAME>.  You can use this software freely so long as you preserve
 * the copyright notice and this restriction, and label your changes.
 */
package edu.brandeis.cs.steele.wn.browser;

import javax.swing.JApplet;
import java.util.logging.*;
import java.net.URL;

import edu.brandeis.cs.steele.wn.DictionaryDatabase;
import edu.brandeis.cs.steele.wn.FileBackedDictionary;
import edu.brandeis.cs.steele.wn.RemoteFileManager;


public class BrowserApplet extends JApplet {
private static final long serialVersionUID = 1L;
private static final Logger log = Logger.getLogger(BrowserApplet.class.getName());

  public void init() {
    final URL url = getCodeBase();
    if (log.isLoggable(Level.FINEST)) {
      log.finest("url = "+url);
    }
    String hostname = url.getHost();
    if (url.getPort() != -1) {
      hostname += ":" + url.getPort();
    }
    if (log.isLoggable(Level.FINEST)) {
      log.finest("hostname = "+hostname);
    }
    final DictionaryDatabase dictionary;
    try {
      dictionary = FileBackedDictionary.getInstance(RemoteFileManager.lookup(hostname));
    } catch (Exception e) {
      throw new RuntimeException(e.toString());
    }
    if (log.isLoggable(Level.FINEST)) {
      log.finest("dictionary = "+dictionary);
    }
    throw new UnsupportedOperationException("FIXME");
    //FIXME add(new BrowserPanel(dictionary));
  }
}
{'fraction_non_alphanumeric': 0.12544674767691208, 'fraction_numerical': 0.004288777698355968, 'mean_word_length': 3.680602006688963, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '2978055', 'n_tokens_mistral': 897, 'n_tokens_neox': 885, 'n_words': 203}