<commit_before><!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="MTG Inventory">
    <meta name="author" content="<NAME>">

    <title>MTG Inventory v1.0.18</title>

    <!-- Bootstrap core CSS -->
    <link href="./lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="./lib/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
    <!-- Load c3.css -->
	<link href="./lib/c3/c3.css" rel="stylesheet" type="text/css">
    <!-- Load pnotify.css -->
	<link href="./lib/pnotify/pnotify.custom.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="./">MTG Inventory</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse">
          <ul id="navigationMenu" class="nav navbar-nav">
            <li data-bind="css: { active: activePage() == pages.HOME }"><a data-bind="attr: { href: pages.HOME }">Home</a></li>
            <li data-bind="css: { active: activePage() == pages.DETAIL }"><a data-bind="attr: { href: pages.DETAIL }">Card detail</a></li>
            <li data-bind="css: { active: activePage() == pages.INTERESTS }"><a data-bind="attr: { href: pages.INTERESTS }">Interests</a></li>
          </ul>

          <ul class="nav navbar-nav navbar-right">
			 <!-- signIn user profile -->
             <li data-bind="if: user().idEmail" class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Profile <b class="caret"></b></a>
              	<ul class="dropdown-menu" style="padding: 15px;min-width: 250px;">
					<li>
						<div class="row">
							<div class="col-md-12">
								<form class="form">
									<div data-bind="text: user().idEmail"></div>
									<label class="sr-only" for="profileName">Name:</label>
									<div class="form-group">
										<input id="profileName" data-bind="value: user().name"></input>
									</div>
									<div data-bind="value: user().roles"></div>
									<!-- 
                        	    	    <button data-bind="click: savePropsUser" type="button" class="btn btn-info btn-block">Save user info</button>
                    	    	    -->
									<button data-bind="click: logoutUser" type="button"
										class="btn btn-info btn-block">Logout</button>
								</form>
							</div>
						</div>
					</li>
				</ul>
             </li>
		 	 <!-- not logged user -->
             <li data-bind="visible: !user().idEmail"><a href="#" data-bind="click: registerUser">Sign Up</a></li>
             <li data-bind="visible: !user().idEmail" class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Sign in <b class="caret"></b></a>
                <ul class="dropdown-menu" style="padding: 15px;min-width: 250px;">
                   <li>
                      <div class="row">
                         <div class="col-md-12">
                            <form class="form" accept-charset="UTF-8" data-bind="submit: loginUser">
                               <div class="form-group">
                                  <label class="sr-only" for="inEmail">Email address</label>
                                  <input data-bind="value: loginEmail" type="email" class="form-control" id="inEmail" placeholder="Email address" required>
                               </div>
                               <div class="form-group">
                                  <label class="sr-only" for="inPassword">Password</label>
                                  <input data-bind="value: loginPwd" type="password" class="form-control" id="inPassword" placeholder="Password" required>
                               </div>
                               <div class="checkbox">
                                  <label>
                                  <input type="checkbox"> Remember me
                                  </label>
                               </div>
                               <div class="form-group">
                                  <button type="submit" class="btn btn-success btn-block">Sign in</button>
                               </div>
                            </form>
                         </div>
                      </div>
                   </li>
                </ul>
             </li>
          </ul>
      
        </div><!--/.nav-collapse -->
      </div>
    </div>

    <div class="container">

		<div class="starter-template" data-bind="if: activePage() == pages.HOME">
			<h1>My MTG Inventory</h1>
			<p class="lead">Tento projekt je zaměřen na evidenci a sledování cen karet na českém trhu pro hráče MTG.</p>
		</div>

		<!-- Content for home page -->
		<div data-bind="visible: activePage() == pages.HOME">
			<div class="row">
			  	<div class="col-md-12">
					<form data-bind="submit: findCardInForm">
                        <div class="form-group">
							<label for="findInput">Card:</label>
					    	<input data-bind="value: newText" placeholder="card name?" id="findInput"/>
					    	<button type="submit" class="btn btn-success btn-sm">Find card</button>
					    	<button type="button" class="btn btn-info btn-sm" data-bind="click: fetchCard">Fetch card from shop</button>
                        </div>
					</form>
		
					<div class="table-responsive">
						<table class="table table-striped table-condensed table-bordered center-table">
							<thead>
								<tr>
									<th>card name</th>
									<th>links</th>
									<th>info</th>
								</tr>
							</thead>
							<!-- Todo: Generate table body -->
							<tbody data-bind="foreach: cards">
							    <tr>
							        <td><a data-bind="text: name, attr: { href: hrefDetail }"></a></td>
							        <td><span data-bind="html: crLink"></span> / <span data-bind="html: tolarieLink"></span></td>
							        <td><span data-bind="text: edition"></span> / 
							        	<span data-bind="text: rarity"></span> / 
							        	<span data-bind="text: foilTxt"></span> 
									<!-- 
							        	<a data-bind="click: $root.addUserCardFromTable"><i class="glyphicon glyphicon-plus"></i></a>
                    	    	    -->
							        </td>
							    </tr>    
							</tbody>
						</table>
					</div>
				</div>
	 		</div>
		</div>
		<!-- Content for actove page -->
		<div data-bind="visible: activePage() == pages.INTERESTS">
			<div class="row" data-bind="visible: user().isAdmin" style="display:none">
				<div class="col-md-12">
					<h1>Admin actions</h1>
					<div>
						<button type="button" class="btn btn-success" data-bind="click: fetchallManagedCards">managed cards update</button>
						<button type="button" class="btn btn-success" data-bind="click: generateMovements">generate movements</button>
					</div>			
				</div>
			</div>
			<div class="row">
			  	<div class="col-md-12">
					<h1>Daily Card price changes</h1>
					<div class="table-responsive">
						<table class="table table-striped table-condensed table-bordered center-table">
							<thead>
								<tr>
									<th>card name</th>
									<th>card info</th>
									<th>shop</th>
									<th>old</th>
									<th>new</th>
									<th>change</th>
								</tr>
							</thead>
							<!-- Todo: Generate table body -->
							<tbody data-bind="foreach: cardMovementsDay">
							    <tr>
							        <td><a data-bind="text: name, attr: { href: hrefDetail }"></a></td>
							        <td data-bind="html: info"></td>
							        <td data-bind="text: shop"></td>
							        <td data-bind="text: oldPrice"></td>
							        <td data-bind="text: newPrice"></td>
							        <td data-bind="text: gainPercentage, css: gainStatus"></td>
							    </tr>    
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<div class="row">
			  	<div class="col-md-12">
					<h1>Card price changes from start of week</h1>
					<div class="table-responsive">
						<table class="table table-striped table-condensed table-bordered center-table">
							<thead>
								<tr>
									<th>card name</th>
									<th>card info</th>
									<th>shop</th>
									<th>old</th>
									<th>new</th>
									<th>change</th>
								</tr>
							</thead>
							<!-- Todo: Generate table body -->
							<tbody data-bind="foreach: cardMovementsWeek">
							    <tr>
							        <td><a data-bind="text: name, attr: { href: hrefDetail }"></a></td>
							        <td data-bind="html: info"></td>
							        <td data-bind="text: shop"></td>
							        <td data-bind="text: oldPrice"></td>
							        <td data-bind="text: newPrice"></td>
							        <td data-bind="text: gainPercentage, css: gainStatus"></td>
							    </tr>    
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>

		<!-- Detail content -->
		<div class="row" data-bind="visible: activePage() == pages.DETAIL">
		  	<div class="col-md-9">
				<h1>Card details</h1>
				<h4><span data-bind="html: cardDetail().crLink"></span> / <span data-bind="html: cardDetail().tolarieLink"></span> / <span data-bind="html: cardDetail().magicCardsLink"></span></h4>
				<div>
					<ul>
						<li><strong>Název:</strong> <span data-bind="text: cardDetail().name"></span></li>
						<li><strong>Rarita:</strong> <span data-bind="text: cardDetail().rarity"></span></li>
						<li><strong>Edice:</strong> <span data-bind="text: cardDetail().edition"></span></li>
					</ul>
					<h4>skladem:</h4>
					<div data-bind="html: cardDetail().storeAmount"></div>
				</div>
			</div>`
		  	<div class="col-md-3">
				<h1>Card image</h1>
					<div data-bind="html: cardDetail().img"></div>
		  	</div>
		</div>
		<div class="row" data-bind="visible: activePage() == pages.DETAIL">
			<div id="cardDetail" class="col-md-12">
				<h1>Card price history</h1>
				<div id="chart"></div>
			</div>
		</div>
    </div><!-- /.container -->
	
    <!-- Placed at the end of the document so the pages load faster -->
    <script type='text/javascript' src="./lib/routing/path.min.js"></script>
    <script type='text/javascript' src="./lib/store/store2.min.js"></script>
    <script type='text/javascript' src="./lib/jquery-1.8.3.js"></script>
    <script type='text/javascript' src="./lib/pnotify/pnotify.custom.min.js"></script>
    <script type='text/javascript' src="./lib/bootstrap/js/bootstrap.min.js"></script>
    <script type='text/javascript' src='./lib/knockout-3.1.0.min.js'></script>
	<!-- Load d3.js and c3.js -->
	<script src="./lib/c3/d3.min.js" charset="utf-8"></script>
	<script src="./lib/c3/c3.min.js"></script>    
	<script src="./js/utils.js"></script>    
	<script src="./js/app.js"></script>   
</body></html><commit_msg>v 1.0.21<commit_after><!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="MTG Inventory">
    <meta name="author" content="<NAME>">

    <title>MTG Inventory v1.0.21</title>

    <!-- Bootstrap core CSS -->
    <link href="./lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="./lib/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
    <!-- Load c3.css -->
	<link href="./lib/c3/c3.css" rel="stylesheet" type="text/css">
    <!-- Load pnotify.css -->
	<link href="./lib/pnotify/pnotify.custom.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="./">MTG Inventory</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse">
          <ul id="navigationMenu" class="nav navbar-nav">
            <li data-bind="css: { active: activePage() == pages.HOME }"><a data-bind="attr: { href: pages.HOME }">Home</a></li>
            <li data-bind="css: { active: activePage() == pages.DETAIL }"><a data-bind="attr: { href: pages.DETAIL }">Card detail</a></li>
            <li data-bind="css: { active: activePage() == pages.INTERESTS }"><a data-bind="attr: { href: pages.INTERESTS }">Interests</a></li>
          </ul>

          <ul class="nav navbar-nav navbar-right">
			 <!-- signIn user profile -->
             <li data-bind="if: user().idEmail" class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Profile <b class="caret"></b></a>
              	<ul class="dropdown-menu" style="padding: 15px;min-width: 250px;">
					<li>
						<div class="row">
							<div class="col-md-12">
								<form class="form">
									<div data-bind="text: user().idEmail"></div>
									<label class="sr-only" for="profileName">Name:</label>
									<div class="form-group">
										<input id="profileName" data-bind="value: user().name"></input>
									</div>
									<div data-bind="value: user().roles"></div>
									<!-- 
                        	    	    <button data-bind="click: savePropsUser" type="button" class="btn btn-info btn-block">Save user info</button>
                    	    	    -->
									<button data-bind="click: logoutUser" type="button"
										class="btn btn-info btn-block">Logout</button>
								</form>
							</div>
						</div>
					</li>
				</ul>
             </li>
		 	 <!-- not logged user -->
             <li data-bind="visible: !user().idEmail"><a href="#" data-bind="click: registerUser">Sign Up</a></li>
             <li data-bind="visible: !user().idEmail" class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Sign in <b class="caret"></b></a>
                <ul class="dropdown-menu" style="padding: 15px;min-width: 250px;">
                   <li>
                      <div class="row">
                         <div class="col-md-12">
                            <form class="form" accept-charset="UTF-8" data-bind="submit: loginUser">
                               <div class="form-group">
                                  <label class="sr-only" for="inEmail">Email address</label>
                                  <input data-bind="value: loginEmail" type="email" class="form-control" id="inEmail" placeholder="Email address" required>
                               </div>
                               <div class="form-group">
                                  <label class="sr-only" for="inPassword">Password</label>
                                  <input data-bind="value: loginPwd" type="password" class="form-control" id="inPassword" placeholder="Password" required>
                               </div>
                               <div class="checkbox">
                                  <label>
                                  <input type="checkbox"> Remember me
                                  </label>
                               </div>
                               <div class="form-group">
                                  <button type="submit" class="btn btn-success btn-block">Sign in</button>
                               </div>
                            </form>
                         </div>
                      </div>
                   </li>
                </ul>
             </li>
          </ul>
      
        </div><!--/.nav-collapse -->
      </div>
    </div>

    <div class="container">

		<div class="starter-template" data-bind="if: activePage() == pages.HOME">
			<h1>My MTG Inventory</h1>
			<p class="lead">Tento projekt je zaměřen na evidenci a sledování cen karet na českém trhu pro hráče MTG.</p>
		</div>

		<!-- Content for home page -->
		<div data-bind="visible: activePage() == pages.HOME">
			<div class="row">
			  	<div class="col-md-12">
					<form data-bind="submit: findCardInForm">
                        <div class="form-group">
							<label for="findInput">Card:</label>
					    	<input data-bind="value: newText" placeholder="card name?" id="findInput"/>
					    	<button type="submit" class="btn btn-success btn-sm">Find card</button>
					    	<button type="button" class="btn btn-info btn-sm" data-bind="click: fetchCard">Fetch card from shop</button>
                        </div>
					</form>
		
					<div class="table-responsive">
						<table class="table table-striped table-condensed table-bordered center-table">
							<thead>
								<tr>
									<th>card name</th>
									<th>links</th>
									<th>info</th>
								</tr>
							</thead>
							<!-- Todo: Generate table body -->
							<tbody data-bind="foreach: cards">
							    <tr>
							        <td><a data-bind="text: name, attr: { href: hrefDetail }"></a></td>
							        <td><span data-bind="html: crLink"></span> / <span data-bind="html: tolarieLink"></span></td>
							        <td><span data-bind="text: edition"></span> / 
							        	<span data-bind="text: rarity"></span> / 
							        	<span data-bind="text: foilTxt"></span> 
									<!-- 
							        	<a data-bind="click: $root.addUserCardFromTable"><i class="glyphicon glyphicon-plus"></i></a>
                    	    	    -->
							        </td>
							    </tr>    
							</tbody>
						</table>
					</div>
				</div>
	 		</div>
		</div>
		<!-- Content for actove page -->
		<div data-bind="visible: activePage() == pages.INTERESTS">
			<div class="row" data-bind="visible: user().isAdmin" style="display:none">
				<div class="col-md-12">
					<h1>Admin actions</h1>
					<div>
						<button type="button" class="btn btn-success" data-bind="click: fetchallManagedCards">managed cards update</button>
						<button type="button" class="btn btn-success" data-bind="click: generateMovements">generate movements</button>
					</div>			
				</div>
			</div>
			<div class="row">
			  	<div class="col-md-12">
					<h1>Daily Card price changes</h1>
					<div class="table-responsive">
						<table class="table table-striped table-condensed table-bordered center-table">
							<thead>
								<tr>
									<th>card name</th>
									<th>card info</th>
									<th>shop</th>
									<th>old</th>
									<th>new</th>
									<th>change</th>
								</tr>
							</thead>
							<!-- Todo: Generate table body -->
							<tbody data-bind="foreach: cardMovementsDay">
							    <tr>
							        <td><a data-bind="text: name, attr: { href: hrefDetail }"></a></td>
							        <td data-bind="html: info"></td>
							        <td data-bind="text: shop"></td>
							        <td data-bind="text: oldPrice"></td>
							        <td data-bind="text: newPrice"></td>
							        <td data-bind="text: gainPercentage, css: gainStatus"></td>
							    </tr>    
							</tbody>
						</table>
					</div>
				</div>
			</div>
			<div class="row">
			  	<div class="col-md-12">
					<h1>Card price changes from start of week</h1>
					<div class="table-responsive">
						<table class="table table-striped table-condensed table-bordered center-table">
							<thead>
								<tr>
									<th>card name</th>
									<th>card info</th>
									<th>shop</th>
									<th>old</th>
									<th>new</th>
									<th>change</th>
								</tr>
							</thead>
							<!-- Todo: Generate table body -->
							<tbody data-bind="foreach: cardMovementsWeek">
							    <tr>
							        <td><a data-bind="text: name, attr: { href: hrefDetail }"></a></td>
							        <td data-bind="html: info"></td>
							        <td data-bind="text: shop"></td>
							        <td data-bind="text: oldPrice"></td>
							        <td data-bind="text: newPrice"></td>
							        <td data-bind="text: gainPercentage, css: gainStatus"></td>
							    </tr>    
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>

		<!-- Detail content -->
		<div class="row" data-bind="visible: activePage() == pages.DETAIL">
		  	<div class="col-md-9">
				<h1>Card details</h1>
				<h4><span data-bind="html: cardDetail().crLink"></span> / <span data-bind="html: cardDetail().tolarieLink"></span> / <span data-bind="html: cardDetail().magicCardsLink"></span></h4>
				<div>
					<ul>
						<li><strong>Název:</strong> <span data-bind="text: cardDetail().name"></span></li>
						<li><strong>Rarita:</strong> <span data-bind="text: cardDetail().rarity"></span></li>
						<li><strong>Edice:</strong> <span data-bind="text: cardDetail().edition"></span></li>
					</ul>
					<h4>skladem:</h4>
					<div data-bind="html: cardDetail().storeAmount"></div>
				</div>
			</div>`
		  	<div class="col-md-3">
				<h1>Card image</h1>
					<div data-bind="html: cardDetail().img"></div>
		  	</div>
		</div>
		<div class="row" data-bind="visible: activePage() == pages.DETAIL">
			<div id="cardDetail" class="col-md-12">
				<h1>Card price history</h1>
				<div id="chart"></div>
			</div>
		</div>
    </div><!-- /.container -->
	
    <!-- Placed at the end of the document so the pages load faster -->
    <script type='text/javascript' src="./lib/routing/path.min.js"></script>
    <script type='text/javascript' src="./lib/store/store2.min.js"></script>
    <script type='text/javascript' src="./lib/jquery-1.8.3.js"></script>
    <script type='text/javascript' src="./lib/pnotify/pnotify.custom.min.js"></script>
    <script type='text/javascript' src="./lib/bootstrap/js/bootstrap.min.js"></script>
    <script type='text/javascript' src='./lib/knockout-3.1.0.min.js'></script>
	<!-- Load d3.js and c3.js -->
	<script src="./lib/c3/d3.min.js" charset="utf-8"></script>
	<script src="./lib/c3/c3.min.js"></script>    
	<script src="./js/utils.js"></script>    
	<script src="./js/app.js"></script>   
</body></html>
{'fraction_non_alphanumeric': 0.18879712439556678, 'fraction_numerical': 0.007103427617784244, 'mean_word_length': 2.000770416024653, 'pattern_counts': {'":': 0, '<': 787, '<?xml version=': 0, '>': 787, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '91052', 'n_tokens_mistral': 8989, 'n_tokens_neox': 7186, 'n_words': 1454}