<commit_before>/*
 *                      Nividic development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the microarray platform
 * of the cole Normale Suprieure and the individual authors.
 * These should be listed in @author doc comments.
 *
 * For more information on the Nividic project and its aims,
 * or to join the Nividic mailing list, visit the home page
 * at:
 *
 *      http://www.transcriptome.ens.fr/nividic
 *
 */

package fr.ens.transcriptome.nividic.util;

import java.io.File;
import java.io.IOException;
import java.net.URL;

/**
 * This class defines method to launch a web browser.
 * @author <NAME>
 */
public final class WebBrowser {

  private static final String IE_PATH = "c:\\Program Files\\Internet Explorer\\iexplore.exe";
  private static final String KONQUEROR_EXE = "konqueror";
  private static final String MOZILLA_EXE = "mozilla";
  private static final String FIREFOX_EXE = "mozilla-firefox";
  private static final String NETSCAPE_EXE = "netscape";
  private static final String SAFARI_MAC_PATH = "/Applications/Safari.app/Contents/MacOS/Safari";
  private static final String SAFARI_OPEN = "/usr/bin/open -a Safari";
  private static final String IE_MAC_PATH = "/Applications/Internet Explorer.app/Contents"
      + "/MacOS/Internet Explorer";

  /**
   * Start an browser.
   * @throws IOException if an error occurs while launching the browser
   */
  public static void launch() throws IOException {
    launch(null);
  }

  /**
   * Start an browser with an URL.
   * @param url URL where launch the browser
   * @throws IOException if an error occurs while launching the browser
   */
  public static void launch(final URL url) throws IOException {
    launch(null, url.toString());
  }

  /**<commit_msg>Fix the path of Internet explorer executable<commit_after>/*
 *                      Nividic development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the microarray platform
 * of the cole Normale Suprieure and the individual authors.
 * These should be listed in @author doc comments.
 *
 * For more information on the Nividic project and its aims,
 * or to join the Nividic mailing list, visit the home page
 * at:
 *
 *      http://www.transcriptome.ens.fr/nividic
 *
 */

package fr.ens.transcriptome.nividic.util;

import java.io.File;
import java.io.IOException;
import java.net.URL;

/**
 * This class defines method to launch a web browser.
 * @author <NAME>
 */
public final class WebBrowser {

  private static final String IE_PATH = "c:\\Program FileSystem\\Internet Explorer\\iexplore.exe";
  private static final String KONQUEROR_EXE = "konqueror";
  private static final String MOZILLA_EXE = "mozilla";
  private static final String FIREFOX_EXE = "mozilla-firefox";
  private static final String NETSCAPE_EXE = "netscape";
  private static final String SAFARI_MAC_PATH = "/Applications/Safari.app/Contents/MacOS/Safari";
  private static final String SAFARI_OPEN = "/usr/bin/open -a Safari";
  private static final String IE_MAC_PATH = "/Applications/Internet Explorer.app/Contents"
      + "/MacOS/Internet Explorer";

  /**
   * Start an browser.
   * @throws IOException if an error occurs while launching the browser
   */
  public static void launch() throws IOException {
    launch(null);
  }

  /**
   * Start an browser with an URL.
   * @param url URL where launch the browser
   * @throws IOException if an error occurs while launching the browser
   */
  public static void launch(final URL url) throws IOException {
    launch(null, url.toString());
  }

  /**
{'fraction_non_alphanumeric': 0.08781450419338925, 'fraction_numerical': 0.0, 'mean_word_length': 3.383783783783784, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '7149989', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1143, 'n_words': 446}