<commit_before><!DOCTYPE html>
<html>
<head>
<title>MyTestPilotCardUI</title>

<link rel="stylesheet" href="../../../main/css/style.css">
<link rel="stylesheet" href="../../../main/css/PilotCardUI.css">

<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/lib/react/react-0.13.3.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/lib/react/JSXTransformer-0.13.3.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/lib/microevent/microevent-1.0.0.js"></script>

<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/JavaScriptAugments.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/Logger.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/ArrayUtilities.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/InputValidator.js"></script>

<script src="../../../main/js/RangeRuler.js"></script>
<script src="../../../main/js/Weapon.js"></script>
<script src="../../../main/js/Team.js"></script>
<script src="../../../main/js/Maneuver.js"></script>
<script src="../../../main/js/ShipAction.js"></script>
<script src="../../../main/js/Ship.js"></script>
<script src="../../../main/js/Pilot.js"></script>

<script src="../../../main/js/DamageCard.js"></script>
<script src="../../../main/js/Environment.js"></script>
<script src="../../../main/js/Position.js"></script>
<script src="../../../main/js/SimpleAgent.js"></script>
<script src="../../../main/js/SquadBuilder.js"></script>
<script src="../../../main/js/Token.js"></script>
<script src="../../../main/js/UpgradeCard.js"></script>

<script src="../../../main/js/ui/HumanAgent.js"></script>
<script src="../../../main/js/ui/ImageUtilities.js"></script>
<script type="text/jsx" src="../../../main/js/ui/PilotCardUI.js"></script>

</head>
<body>
	<table>
		<tr>
			<td id="imperialPilot" style="vertical-align: top"></td>
			<td id="rebelPilot" style="vertical-align: top"></td>
		</tr>
		<tr>
			<td><button type="button" onclick="updateImperialToken();">Update</button></td>
			<td><button type="button" onclick="updateRebelToken()">Update</button></td>
		</tr>
	</table>
	<script type="text/jsx">
        "use strict";
        var LOGGER = new Logger();
        var imageUtils = new ImageUtilities();

        var imperialAgent = new SimpleAgent("Imperial Agent", Team.IMPERIAL,
                CoreSetImperialSquadBuilder);
        var imperialToken = new Token(Pilot.ACADEMY_PILOT, imperialAgent);
        imperialToken.increaseCloakCount();
        imperialToken.increaseEvadeCount();
        imperialToken.increaseEvadeCount();
        imperialToken.increaseFocusCount();
        imperialToken.increaseFocusCount();
        imperialToken.increaseFocusCount();

        var rebelAgent = new HumanAgent("Rebel Agent", Team.REBEL,
                CoreSetRebelSquadBuilder, new ImageUtilities());
        var rebelToken = new Token(Pilot.ROOKIE_PILOT, rebelAgent);
        rebelToken.increaseIonCount();
        rebelToken.increaseStressCount();
        rebelToken.addDamage(DamageCard.BLINDED_PILOT);

        React.render(<PilotCardUI initialToken={imperialToken} />, 
				document.getElementById("imperialPilot"));

        React.render(<PilotCardUI initialToken={rebelToken} />, 
				document.getElementById("rebelPilot"));

        function updateImperialToken()
        {
            LOGGER.info("updateImperialToken() start");
            imperialToken.addDamage(DamageCard.DIRECT_HIT);
            imperialToken.addCriticalDamage(DamageCard.BLINDED_PILOT);
            imperialToken.increaseCloakCount();
            imperialToken.increaseEvadeCount();
            imperialToken.increaseFocusCount();
            LOGGER.info("updateImperialToken() end");
        }

        function updateRebelToken()
        {
            LOGGER.info("updateRebelToken() start");
            rebelToken.addDamage(DamageCard.DIRECT_HIT);
            rebelToken.addCriticalDamage(DamageCard.BLINDED_PILOT);
            rebelToken.increaseIonCount();
            rebelToken.decreaseShieldCount();
            rebelToken.increaseStressCount();
            LOGGER.info("updateRebelToken() end");
        }
    </script>
</body>
</html>
<commit_msg>Updated for React components.<commit_after><!DOCTYPE html>
<html>
<head>
<title>MyTestPilotCardUI</title>

<link rel="stylesheet" href="../../../main/css/style.css">
<link rel="stylesheet" href="../../../main/css/PilotCardUI.css">

<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/lib/react/react-0.13.3.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/lib/react/JSXTransformer-0.13.3.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/lib/microevent/microevent-1.0.0.js"></script>

<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/JavaScriptAugments.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/Logger.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/ArrayUtilities.js"></script>
<script src="http://rawgit.com/jmthompson2015/vizzini/master/coreweb/src/main/js/util/InputValidator.js"></script>

<script src="../../../main/js/RangeRuler.js"></script>
<script src="../../../main/js/Weapon.js"></script>
<script src="../../../main/js/Team.js"></script>
<script src="../../../main/js/Maneuver.js"></script>
<script src="../../../main/js/ShipAction.js"></script>
<script src="../../../main/js/Ship.js"></script>
<script src="../../../main/js/Pilot.js"></script>

<script src="../../../main/js/DamageCard.js"></script>
<script src="../../../main/js/Environment.js"></script>
<script src="../../../main/js/Position.js"></script>
<script src="../../../main/js/SimpleAgent.js"></script>
<script src="../../../main/js/SquadBuilder.js"></script>
<script src="../../../main/js/Token.js"></script>
<script src="../../../main/js/UpgradeCard.js"></script>

<script src="../../../main/js/ui/ImageUtilities.js"></script>

<script type="text/jsx" src="../../../main/js/ui/HumanAgent.js"></script>
<script type="text/jsx" src="../../../main/js/ui/PilotCardUI.js"></script>

</head>
<body>
	<table>
		<tr>
			<td id="imperialPilot" style="vertical-align: top"></td>
			<td id="rebelPilot" style="vertical-align: top"></td>
		</tr>
		<tr>
			<td><button type="button" onclick="updateImperialToken();">Update</button></td>
			<td><button type="button" onclick="updateRebelToken()">Update</button></td>
		</tr>
	</table>
	<script type="text/jsx">
        "use strict";
        var LOGGER = new Logger();
        var imageUtils = new ImageUtilities();

        var imperialAgent = new SimpleAgent("Imperial Agent", Team.IMPERIAL,
                CoreSetImperialSquadBuilder);
        var imperialToken = new Token(Pilot.ACADEMY_PILOT, imperialAgent);
        imperialToken.increaseCloakCount();
        imperialToken.increaseEvadeCount();
        imperialToken.increaseEvadeCount();
        imperialToken.increaseFocusCount();
        imperialToken.increaseFocusCount();
        imperialToken.increaseFocusCount();

        var rebelAgent = new HumanAgent("Rebel Agent", Team.REBEL,
                CoreSetRebelSquadBuilder, new ImageUtilities());
        var rebelToken = new Token(Pilot.ROOKIE_PILOT, rebelAgent);
        rebelToken.increaseIonCount();
        rebelToken.increaseStressCount();
        rebelToken.addDamage(DamageCard.BLINDED_PILOT);

        React.render(<PilotCardUI initialToken={imperialToken} />, 
				document.getElementById("imperialPilot"));

        React.render(<PilotCardUI initialToken={rebelToken} />, 
				document.getElementById("rebelPilot"));

        function updateImperialToken()
        {
            LOGGER.info("updateImperialToken() start");
            imperialToken.addDamage(DamageCard.DIRECT_HIT);
            imperialToken.addCriticalDamage(DamageCard.BLINDED_PILOT);
            imperialToken.increaseCloakCount();
            imperialToken.increaseEvadeCount();
            imperialToken.increaseFocusCount();
            LOGGER.info("updateImperialToken() end");
        }

        function updateRebelToken()
        {
            LOGGER.info("updateRebelToken() start");
            rebelToken.addDamage(DamageCard.DIRECT_HIT);
            rebelToken.addCriticalDamage(DamageCard.BLINDED_PILOT);
            rebelToken.increaseIonCount();
            rebelToken.decreaseShieldCount();
            rebelToken.increaseStressCount();
            LOGGER.info("updateRebelToken() end");
        }
    </script>
</body>
</html>

{'fraction_non_alphanumeric': 0.19619745733592944, 'fraction_numerical': 0.00893368457221395, 'mean_word_length': 3.267839687194526, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 165, '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': '3138553', 'n_tokens_mistral': 2950, 'n_tokens_neox': 2783, 'n_words': 324}