<commit_before>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
		<meta name="author" content="DSD">

		<link rel="shortcut icon" href="../images/favicon.ico">

		<title>Data Science</title>

        <!--Morris Chart CSS -->
		<link rel="stylesheet" href="../plugins/morris/morris.css">

		<link href="../stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/menu.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/core.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/components.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/icons.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/pages.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/responsive.css" rel="stylesheet" type="text/css" />

        <script src="../javascripts/modernizr.min.js"></script>

	</head>

	<body class="fixed-left">

		<!-- Begin page -->
		<div id="wrapper">

            <!-- Top Bar Start -->
            <div class="topbar">

                <!-- LOGO -->
                <div class="topbar-left">
                    <div class="text-center">
                        <a href="index.html" class="logo">
                            <i class="zmdi zmdi-toys icon-c-logo"></i><span>DSD</span>
                            <!--<span><img src="images/logo.png" alt="logo" style="height: 20px;"></span>-->
                        </a>
                    </div>
                </div>

                <!-- Button mobile view to collapse sidebar menu -->
                <div class="navbar navbar-default" role="navigation">
                    <div class="container">
                        <div class="">
                            <div class="pull-left">
                                <button class="button-menu-mobile open-left waves-effect waves-light">
                                    <i class="zmdi zmdi-menu"></i>
                                </button>
                                <span class="clearfix"></span>
                            </div>


                            <ul class="nav navbar-nav navbar-right pull-right">
                                <li>
                                    <!-- Notification -->
                                   
                                    <!-- End Notification bar -->
                                </li>

                                <li class="dropdown user-box">
                                    <a href="" class="dropdown-toggle waves-effect waves-light profile " data-toggle="dropdown" aria-expanded="true">
                                        <img src="{{user.picture}}" alt="user-img" class="img-circle user-img">
                                        <div class="user-status away"><i class="zmdi zmdi-dot-circle"></i></div>
                                    </a>

                                    <ul class="dropdown-menu">
                                        <li><a href="/logout"><i class="ti-power-off m-r-5"></i> Logout</a></li>
                                    </ul>
                                </li>
                            </ul>

                        </div>
                        <!--/.nav-collapse -->
                    </div>
                </div>
            </div>
            <!-- Top Bar End -->


            <!-- ========== Left Sidebar Start ========== -->

            <div class="left side-menu">
                <div class="sidebar-inner slimscrollleft">
                    <!--- Divider -->
                    <div id="sidebar-menu">
                        <ul>

                        	<li class="text-muted menu-title">Navigation</li>

                            <li class="has_sub">
                                <a href="/user#" class="waves-effect"><i class="zmdi zmdi-view-dashboard"></i> <span> Dashboard</span> </a>
                            </li>
                              <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect"><i class="zmdi zmdi-collection-text"></i> <span> Notebooks </span> <span class="menu-arrow"></span> </a>
                                <ul class="list-unstyled">
                                    <li><a href="/user/datascience">Data Science</a></li>
                                    <li><a href="/user/spark">Spark</a></li>
                                    <li><a href="/user/tensorflow">Tensor Flow</a></li>
                                    <li><a href="/user/zepp">Zeppelin</a></li>
                                </ul>
                            </li>

                        </ul>
                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>

                </div>
            </div>
			<!-- Left Sidebar End -->

			<!-- ============================================================== -->
			<!-- Start right Content here -->
			<!-- ============================================================== -->
			<div class="content-page">
				<!-- Start content -->
				<div class="content">
					<div class="container">

						<!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">Welcome {{user.nickname}}</h4>
                            </div>
                        </div>


                        <div class="row">
                            <div class="col-lg-4">
                                <div class="card-box">
                                    
                                    <h4 class="header-title m-t-0">{{title}} Notebooks</h4>
                                    <button id="button01" type="button" class="btn btn-primary">Current Notebook Info</button>
                                    <div id="dsResults"></div>
                                        
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="card-box">
                                    
                                    <h4 class="header-title m-t-0">{{title}} Notebooks</h4>
                                    <button id="button02" type="button" class="btn btn-primary">Launch Notebook</button>
                                    
                                    <div id="dsLaunchResults"></div>
                                        
                                </div>
                            </div><!-- end col -->



                        </div>
                        <!-- end row -->





                    </div> <!-- container -->

                </div> <!-- content -->

                <footer class="footer">
                    2016 © DsDiscovery.</a>
                </footer>

            </div>
            <!-- ============================================================== -->
            <!-- End Right content here -->
            <!-- ============================================================== -->


            <!-- Right Sidebar -->
            

            <!-- /Right-bar -->


        </div>
        <!-- END wrapper -->

        <script>
            var resizefunc = [];
        </script>

        <!-- jQuery  -->
        <script src="../javascripts/jquery.min.js"></script>
        <script src="../javascripts/bootstrap.min.js"></script>
        <script src="../javascripts/detect.js"></script>
        <script src="../javascripts/fastclick.js"></script>
        <script src="../javascripts/jquery.slimscroll.js"></script>
        <script src="../javascripts/jquery.blockUI.js"></script>
        <script src="../javascripts/waves.js"></script>
        <script src="../javascripts/wow.min.js"></script>
        <script src="../javascripts/jquery.nicescroll.js"></script>
        <script src="../javascripts/jquery.scrollTo.min.js"></script>
        <!-- App js -->
        <script src="../javascripts/jquery.core.js"></script>
        <script src="../javascripts/jquery.app.js"></script>
        <script>
            var cID;
            var cNames;
            var cState;
            var cStatus;
        
            $("#button01").click(function() {
                event.preventDefault();
                $.ajax({
                    type: "GET",
                    dataType: 'json',
                    contentType: 'application/json',
                    url: 'https://dsp01.dyndns.org/docker/json',
                    success: function(data) {
                        // do stuff with json (in this case an array)
                        var containers = data;
                        cID = containers[0].Id;
                        cNames = containers[0].Names[0];
                        cState = containers[0].State;
                        cStatus = containers[0].Status;
                        console.log(containers);
                        console.log(cNames);
                        console.log(cState + " and " + cStatus);
                        // for(var i=0 ; i < containers.length ; i++){
                        // 	cNames = containers[i].Names;
                        // 	cID = containers[i].Id;
                        $('#dsResults').append('<div class="name">' + cNames + "  " + cState + " and " + cStatus + '</>');
                        // // 	$('#jobsResults').html(cNames);
                        // 	console.log(cNames);
                        // }
        
                        // $('#jobsResults').html(cNames);
        
        
        
                        // console.log(JSON.stringify(data) + "Success, Requesting all Jobs");
                    },
                    error: function() {
                        $('#resultsRun').append('<div class="name">' + "ERROR!!!!" + '</>');
                    }
                });
            });
            
            $("#button02").click(function() {
            event.preventDefault();
            console.log(cID);
            $.ajax({
                type: "POST",
                url: 'https://dsp01.dyndns.org/docker/create',
                dataType: 'json',
                contentType: "application/json; charset=utf-8",
                data: JSON.stringify(),
                success: function(data) {
                    // do stuff with json (in this case an array)
                    console.log(data + "Success, JSON sent");
                },
                error: function(data) {
                    $('#resultsStop').append('<div class="name">'+"ERROR!!!!"+'</>');
                }
            });
            });
        </script>
	</body>
</html><commit_msg>Change onclick behavior of Launch Notebook button to generate docker-cli-js command; create new button to open notebook in new tab with correct port<commit_after>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
		<meta name="author" content="DSD">

		<link rel="shortcut icon" href="../images/favicon.ico">

		<title>Data Science</title>

        <!--Morris Chart CSS -->
		<link rel="stylesheet" href="../plugins/morris/morris.css">

		<link href="../stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/menu.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/core.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/components.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/icons.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/pages.css" rel="stylesheet" type="text/css" />
        <link href="../stylesheets/responsive.css" rel="stylesheet" type="text/css" />

        <script src="../javascripts/modernizr.min.js"></script>

	</head>

	<body class="fixed-left">

		<!-- Begin page -->
		<div id="wrapper">

            <!-- Top Bar Start -->
            <div class="topbar">

                <!-- LOGO -->
                <div class="topbar-left">
                    <div class="text-center">
                        <a href="index.html" class="logo">
                            <i class="zmdi zmdi-toys icon-c-logo"></i><span>DSD</span>
                            <!--<span><img src="images/logo.png" alt="logo" style="height: 20px;"></span>-->
                        </a>
                    </div>
                </div>

                <!-- Button mobile view to collapse sidebar menu -->
                <div class="navbar navbar-default" role="navigation">
                    <div class="container">
                        <div class="">
                            <div class="pull-left">
                                <button class="button-menu-mobile open-left waves-effect waves-light">
                                    <i class="zmdi zmdi-menu"></i>
                                </button>
                                <span class="clearfix"></span>
                            </div>


                            <ul class="nav navbar-nav navbar-right pull-right">
                                <li>
                                    <!-- Notification -->

                                    <!-- End Notification bar -->
                                </li>

                                <li class="dropdown user-box">
                                    <a href="" class="dropdown-toggle waves-effect waves-light profile " data-toggle="dropdown" aria-expanded="true">
                                        <img src="{{user.picture}}" alt="user-img" class="img-circle user-img">
                                        <div class="user-status away"><i class="zmdi zmdi-dot-circle"></i></div>
                                    </a>

                                    <ul class="dropdown-menu">
                                        <li><a href="/logout"><i class="ti-power-off m-r-5"></i> Logout</a></li>
                                    </ul>
                                </li>
                            </ul>

                        </div>
                        <!--/.nav-collapse -->
                    </div>
                </div>
            </div>
            <!-- Top Bar End -->


            <!-- ========== Left Sidebar Start ========== -->

            <div class="left side-menu">
                <div class="sidebar-inner slimscrollleft">
                    <!--- Divider -->
                    <div id="sidebar-menu">
                        <ul>

                        	<li class="text-muted menu-title">Navigation</li>

                            <li class="has_sub">
                                <a href="/user#" class="waves-effect"><i class="zmdi zmdi-view-dashboard"></i> <span> Dashboard</span> </a>
                            </li>
                              <li class="has_sub">
                                <a href="javascript:void(0);" class="waves-effect"><i class="zmdi zmdi-collection-text"></i> <span> Notebooks </span> <span class="menu-arrow"></span> </a>
                                <ul class="list-unstyled">
                                    <li><a href="/user/datascience">Data Science</a></li>
                                    <li><a href="/user/spark">Spark</a></li>
                                    <li><a href="/user/tensorflow">Tensor Flow</a></li>
                                    <li><a href="/user/zepp">Zeppelin</a></li>
                                </ul>
                            </li>

                        </ul>
                        <div class="clearfix"></div>
                    </div>
                    <div class="clearfix"></div>

                </div>
            </div>
			<!-- Left Sidebar End -->

			<!-- ============================================================== -->
			<!-- Start right Content here -->
			<!-- ============================================================== -->
			<div class="content-page">
				<!-- Start content -->
				<div class="content">
					<div class="container">

						<!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">Welcome {{user.nickname}}</h4>
                            </div>
                        </div>


                        <div class="row">
                            <div class="col-lg-4">
                                <div class="card-box">

                                    <h4 class="header-title m-t-0">{{title}} Notebooks</h4>
                                    <button id="button01" type="button" class="btn btn-primary">Current Notebook Info</button>
                                    <div id="dsResults"></div>

                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="card-box">

                                    <h4 class="header-title m-t-0">{{title}} Notebooks</h4>
                                    <button id="button02" type="button" class="btn btn-primary">Launch Notebook</button>

                                    <div id="dsLaunchResults"></div>

                                </div>
                            </div><!-- end col -->



                        </div>
                        <!-- end row -->





                    </div> <!-- container -->

                </div> <!-- content -->

                <footer class="footer">
                    2016 © DsDiscovery.</a>
                </footer>

            </div>
            <!-- ============================================================== -->
            <!-- End Right content here -->
            <!-- ============================================================== -->


            <!-- Right Sidebar -->


            <!-- /Right-bar -->


        </div>
        <!-- END wrapper -->

        <script>
            var resizefunc = [];
        </script>

        <!-- jQuery  -->
        <script src="../javascripts/jquery.min.js"></script>
        <script src="../javascripts/bootstrap.min.js"></script>
        <script src="../javascripts/detect.js"></script>
        <script src="../javascripts/fastclick.js"></script>
        <script src="../javascripts/jquery.slimscroll.js"></script>
        <script src="../javascripts/jquery.blockUI.js"></script>
        <script src="../javascripts/waves.js"></script>
        <script src="../javascripts/wow.min.js"></script>
        <script src="../javascripts/jquery.nicescroll.js"></script>
        <script src="../javascripts/jquery.scrollTo.min.js"></script>
        <!-- App js -->
        <script src="../javascripts/jquery.core.js"></script>
        <script src="../javascripts/jquery.app.js"></script>
        <script>
              $("#button02").click(function() {
                event.preventDefault();
                $.ajax({
                    type: "GET",
                    url: '/docker',
                    success: function(data) {
												var port = data;
												var notebookLink = (`<br><div><a href="http://localhost:${port}" target=_blank><button id="button03" type="button" class="btn btn-success">Open Notebook</button></a></div`);
												$('#dsLaunchResults').append(notebookLink);
                    },
                    error: function() {
                        $('#resultsRun').append('<div class="name">' + "ERROR!!!!" + '</>');
                    }
                });
            });
				</script>
	</body>
</html>

{'fraction_non_alphanumeric': 0.18225959853831908, 'fraction_numerical': 0.003654202332682585, 'mean_word_length': 1.1145215918712954, 'pattern_counts': {'":': 0, '<': 461, '<?xml version=': 0, '>': 459, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 69, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6388417', 'n_tokens_mistral': 5157, 'n_tokens_neox': 4647, 'n_words': 899}