<commit_before><!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Scalr API Explorer</title>
  <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
  <link type="image/x-icon" href="/static/favicon.ico" rel="shortcut icon" />
  <style>
    .nav, .pagination, .carousel, .panel-title a { cursor: pointer; }
    .nav.nav-tabs { padding-bottom: 15px; }
  </style>
</head>

<body ng-app="ScalrAPIExplorer">
  <div class="container">
    <div class="page-header">
      <h1>Scalr API Explorer</h1>
      <p>Use this app to explore the Scalr API.</p>
      <p>This app is exclusively client-side. All requests are directly sent from your workstation to the Scalr API.</p>
    </div>

    <div class="container" ng-controller="APIRequestForm">
        <div class="row">
          <h2>API Structure</h2>
          <p>Status: <span class="label label-{{ apiStructureStatus.label }}">{{ apiStructureStatus.status }}</span></p>
          <button class="btn btn-default" ng-click="loadApiStructure()">Reload API Structure</button>
        </div>



        <div class="row">

          <h2>API Settings</h2>

          <div class="alert alert-warning" role="alert" ng-show="isHttps && apiSettingsForm.apiUrl.$valid && apiSettings.apiUrl.indexOf('https') != 0">
            <p>
              <strong><span class="glyphicon glyphicon-warning-sign"></span> Heads up!</strong>
              You are currently accessing the API Explorer over HTTPS, but your API endpoint is served over HTTP.
              This may trigger a <a href="https://developer.mozilla.org/en-US/docs/Security/MixedContent">mixed content alert</a> in your browser.
            </p>
            <p>
              <strong>Don't panic, the API Explorer can still work,</strong> provided you allow mixed content first.
            </p>
            <p>
              To do so, make a "Hello" API Call. Your browser will show a warning; it's a shield icon next to the URL bar.
              Click it, and allow mixed content. Then, retry your request. You should only have to do this once.
            </p>

          </div>

          <form name="apiSettingsForm" class="form-horizontal" role="form" novalidate>
            <div class="form-group" ng-class="{'has-error': apiSettingsForm.apiUrl.$invalid}">
              <label class="col-sm-2 control-label">API URL</label>
              <div class="col-sm-10">
                <input class="form-control" type="url" name="apiUrl" ng-model="apiSettings.apiUrl" ng-required="true" />
              </div><commit_msg>Improve the mixed content warning<commit_after><!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Scalr API Explorer</title>
  <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
  <link type="image/x-icon" href="/static/favicon.ico" rel="shortcut icon" />
  <style>
    .nav, .pagination, .carousel, .panel-title a { cursor: pointer; }
    .nav.nav-tabs { padding-bottom: 15px; }
  </style>
</head>

<body ng-app="ScalrAPIExplorer">
  <div class="container">
    <div class="page-header">
      <h1>Scalr API Explorer</h1>
      <p>Use this app to explore the Scalr API.</p>
      <p>This app is exclusively client-side. All requests are directly sent from your workstation to the Scalr API.</p>
    </div>

    <div class="container" ng-controller="APIRequestForm">
        <div class="row">
          <h2>API Structure</h2>
          <p>Status: <span class="label label-{{ apiStructureStatus.label }}">{{ apiStructureStatus.status }}</span></p>
          <button class="btn btn-default" ng-click="loadApiStructure()">Reload API Structure</button>
        </div>



        <div class="row">

          <h2>API Settings</h2>

          <div class="alert alert-warning" role="alert" ng-show="isHttps && apiSettingsForm.apiUrl.$valid && apiSettings.apiUrl.indexOf('https') != 0">
            <p>
              <strong><span class="glyphicon glyphicon-warning-sign"></span> Heads up!</strong>
              You are currently accessing the API Explorer over HTTPS, but your API endpoint is served over HTTP.
              This may trigger a <a href="https://developer.mozilla.org/en-US/docs/Security/MixedContent">mixed content alert</a> in your browser.
            </p>
            <p>
              <strong>Don't panic, the API Explorer can still work,</strong> provided you allow mixed content first.
            </p>
            <p>
              To do so, make a "Hello" API Call. Your browser will show a warning; it's a shield icon next to the URL bar.
              Click it, and allow mixed content. Most browsers will reload the page, so make sure you save your API settings first.
            </p>

          </div>

          <form name="apiSettingsForm" class="form-horizontal" role="form" novalidate>
            <div class="form-group" ng-class="{'has-error': apiSettingsForm.apiUrl.$invalid}">
              <label class="col-sm-2 control-label">API URL</label>
              <div class="col-sm-10">
                <input class="form-control" type="url" name="apiUrl" ng-model="apiSettings.apiUrl" ng-required="true" />
              </div>
{'fraction_non_alphanumeric': 0.1449971192625312, 'fraction_numerical': 0.0061455732667562895, 'mean_word_length': 2.6445066480055983, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 2, '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': '6560854', 'n_tokens_mistral': 1604, 'n_tokens_neox': 1530, 'n_words': 438}