<commit_before><?php
		$gmdate_mod = gmdate('D, d M Y H:i:s', time()) . ' GMT';
		header("Last-Modified: $gmdate_mod");
		header("Content-Type: application/x-java-jnlp-file");

        header("Cache-Control: public, max-age=0");
        header("Pragma: x-no-cache");

        global $HTTP_SERVER_VARS;

        $ENGINE_SCRIPT = "demo.php";
        $BASE_URL = substr($HTTP_SERVER_VARS["SCRIPT_NAME"], 0, -1-strlen($ENGINE_SCRIPT));

        $serverName = $HTTP_SERVER_VARS["SERVER_NAME"];
        if ($serverName == "" || $serverName == null)
            $serverName = $HTTP_SERVER_VARS["SERVER_ADDR"];

        if ($serverName != null) {
            if ($HTTP_SERVER_VARS["SERVER_PORT"] != null) {
                $BASE_URL = "http://" . $serverName . ":" . $HTTP_SERVER_VARS["SERVER_PORT"] . $BASE_URL;
            }
            else {
                $BASE_URL = "http://" . $serverName . $BASE_URL;
            }
        }
?>

<jnlp spec="1.0+" codebase="<?php echo $BASE_URL; ?>">
	<information>
		<title>Carrot2 Demo Application</title>
		<vendor>Carrot2 Project (www.carrot2.org)</vendor>

		<homepage href="http://www.carrot2.org/" />

		<description>Carrot2 Demo Application</description>
		<description kind="short">Carrot2 Demo Application for tuning and testing purposes.</description>
		<description kind="tooltip">Carrot2 Demo</description>

		<icon href="img/carrot2-64x64.gif" width="64" height="64" />

		<offline-allowed />
	</information>

	<resources>
		<j2se version="1.4+" />

		<jar href="carrot2-demo-browser.jar" />
		<jar href="lib/demo-resources.jar" />

		<?php include("demo.inc"); ?>
	</resources>

	<resources os="Windows">
		<jar href="lib/windows/jdic.jar"/>
		<nativelib href="lib/windows/jdic-native.jar"/>
	</resources>
<commit_msg>Added a 'purejava' option which causes the WebStart version to run on Swing-HTML browser.<commit_after><?php
		$gmdate_mod = gmdate('D, d M Y H:i:s', time()) . ' GMT';
		header("Last-Modified: $gmdate_mod");
		header("Content-Type: application/x-java-jnlp-file");

        header("Cache-Control: public, max-age=0");
        header("Pragma: x-no-cache");

        global $HTTP_SERVER_VARS;

        $ENGINE_SCRIPT = "demo.php";
        $BASE_URL = substr($HTTP_SERVER_VARS["SCRIPT_NAME"], 0, -1-strlen($ENGINE_SCRIPT));

        $serverName = $HTTP_SERVER_VARS["SERVER_NAME"];
        if ($serverName == "" || $serverName == null)
            $serverName = $HTTP_SERVER_VARS["SERVER_ADDR"];

        if ($serverName != null) {
            if ($HTTP_SERVER_VARS["SERVER_PORT"] != null) {
                $BASE_URL = "http://" . $serverName . ":" . $HTTP_SERVER_VARS["SERVER_PORT"] . $BASE_URL;
            }
            else {
                $BASE_URL = "http://" . $serverName . $BASE_URL;
            }
        }
?>

<jnlp spec="1.0+" codebase="<?php echo $BASE_URL; ?>">
	<information>
		<title>Carrot2 Demo Application</title>
		<vendor>Carrot2 Project (www.carrot2.org)</vendor>

		<homepage href="http://www.carrot2.org/" />

		<description>Carrot2 Demo Application</description>
		<description kind="short">Carrot2 Demo Application for tuning and testing purposes.</description>
		<description kind="tooltip">Carrot2 Demo</description>

		<icon href="img/carrot2-64x64.gif" width="64" height="64" />

		<offline-allowed />
	</information>

	<resources>
		<j2se version="1.4+" />

		<jar href="carrot2-demo-browser.jar" />
		<jar href="lib/demo-resources.jar" />

		<?php include("demo.inc"); ?>
	</resources>

	<resources os="Windows">
		<jar href="lib/windows/jdic.jar"/>
		<nativelib href="lib/windows/jdic-native.jar"/>
		<?php
		if (isset($_REQUEST['purejava'])) {
		    echo '<property name="use.java.browser" value="true" />';
		}
		?>
	</resources>

{'fraction_non_alphanumeric': 0.18198874296435272, 'fraction_numerical': 0.013401232913428035, 'mean_word_length': 3.174496644295302, 'pattern_counts': {'":': 2, '<': 61, '<?xml version=': 0, '>': 61, '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': '5449679', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1269, 'n_words': 224}