<commit_before><head>
  <title>OpenBAS</title>
</head>

<body>
  {{> navbar}}
</body>

<template name="navbar">
  <div class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
      <a class="navbar-brand" href="/">OpenBAS</a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'dashboard'}}"><a href="{{pathFor 'dashboard'}}">Display</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'schedule'}}"><a href="{{pathFor 'schedule'}}">Schedule</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'building'}}"><a href="{{pathFor 'building'}}">Building</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'status'}}"><a href="{{pathFor 'status'}}">Status</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'points'}}"><a href="{{pathFor 'points'}}">Points</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'plot'}}"><a href="{{pathFor 'plot'}}">Plot</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'about'}}"><a href="{{pathFor 'about'}}">About</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        {{> loginButtons }} 
      </ul>
    </div>
  </div>
</template>

<template name="about">
  <h1 style="text-align: center">UCB OpenBAS</h1>
  <div class="container panel panel-default">
  <p>Buildings consume over 40% of the total energy consumption in the U.S. A significant portion of the energy consumed in buildings is wasted because of the lack of building controls or the inability to use existing Building Automation Systems (BAS) properly. Over 90% of the buildings in the U.S. are either small-sized (&lt;5,000 square feet, or sf) or medium-sized (between 5,000 sf and 50,000 sf); these buildings typically do not use BAS to monitor and control their building systems from a central location</p>
  <p>In 2013, the Department of Energy solicited “Turn-Key” Open Source Software Solutions for Energy Management of Small to Medium Sized Buildings (DE-FOA-0000822). The objective was to develop a “turn key” BAS solution using Open-Source software and architecture specifically tailored to small and medium buildings to advance opportunities for energy efficiency in this sector.</p>
  <p>The OpenBAS platform seen here is the product of the UC Berkeley-led team’s solution.</p>
  </div>
</template>

<template name="points">
  <div class="panel panel-default" style="margin: 0 auto; width: 60%; margin-bottom: 10px;">
    <div class="panel-heading">Points</div>
    <table class="table table-bordered table-striped">
      <thead>
        <tr>
          <th class="Path">Path</th>
          <th class="sparkline">Trend</th>
          <th class="value">value</th>
        </tr>
      </thead>
      <tbody>
        {{#each pointsAll}}
          {{#if notActuator}}
            {{> point_row}}
          {{/if}}
        {{/each}}
      </tbody>
    </table>
  </div>
</template>

<template name="point_row">
  <tr class="point" data-uuid="{{uuid}}">
    <td class="Path">
      <a href="{{ pathFor 'pointDetail'}}">
        {{Path}}
      </a>
    </td>
    <td class="trend" id="trend-{{uuid}}"></td>
    <td class="value">{{value}}</td>
  </tr>
</template>

<template name="actuators">
  <table class="table table-bordered" id="actuators">
    <thead>
      <tr>
        <th>Path</th>
        <th>Value</th>
        <th>Type</th>
      </tr>
    </thead>
    <tbody>
      {{# each actuatorsAll}}
        <tr>
          {{> actuator_display}}
        </tr>
      {{/each}}
    </tbody>
  </table>
</template>

<template name="actuator_display">
  {{#with point uuid}}
    <td><a href="{{ploturl}}">{{name}}</a></td>
    <td>{{value}}</td>
    {{#if isDiscrete}}
      <td>{{> actuator_discrete}}</td>
    {{else}} {{#if isContinuous}}
      <td>{{> actuator_continuous}}</td>
    {{else}} {{#if isBinary}}
      <td>{{> actuator_binary}}</td>
    {{else}}
      <td>None</td>
    {{/if}}{{/if}}{{/if}}
  {{/with}}
</template>

<template name="point_display">
  {{#with point uuid}}
  <td><a href="{{ploturl}}">{{name}}</a></td>
  <td>{{value}}</td>
  <td></td>
  {{/with}}
</template>

<template name="actuator_discrete">
  <select id="{{ActuatorUUID}}" data-value="{{value}}" class="form-control">
  </select>
</template>

<template name="actuator_continuous">
  <div id="{{ActuatorUUID}}" data-value="{{value}}"></div>
</template>

<template name="actuator_binary">
  <div id="{{ActuatorUUID}}" class="button button-3d-caution button-small" data-value="{{value}}">Binary Actuator</div><br>
</template>

<template name="loading">
  <div style="text-align: center; margin: 0 auto; width: 50%">
    Loading ...  
    <span class="glyphicon glyphicon-repeat glyph-animate"></span>
  </div>
</template>
<commit_msg>some formatting and tweaks to about page<commit_after><head>
  <title>OpenBAS</title>
</head>

<body>
  {{> navbar}}
</body>

<template name="navbar">
  <div class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
      <a class="navbar-brand" href="/">OpenBAS</a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'dashboard'}}"><a href="{{pathFor 'dashboard'}}">Display</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'schedule'}}"><a href="{{pathFor 'schedule'}}">Schedule</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'building'}}"><a href="{{pathFor 'building'}}">Building</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'status'}}"><a href="{{pathFor 'status'}}">Status</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'points'}}"><a href="{{pathFor 'points'}}">Points</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'plot'}}"><a href="{{pathFor 'plot'}}">Plot</a></li>
      </ul>
      <ul class="nav navbar-nav">
        <li class="{{activeIf 'about'}}"><a href="{{pathFor 'about'}}">About</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        {{> loginButtons }} 
      </ul>
    </div>
  </div>
</template>

<template name="about">
  <div class="container panel panel-default" style="padding: 20px; font-size: 1.2em;">
    <p>Buildings consume over 40% of the total energy consumption in the U.S. A significant portion of the energy consumed in buildings is wasted because of the lack of building controls or the inability to use existing Building Automation Systems (BAS) properly. Over 90% of the buildings in the U.S. are either small-sized (&lt;5,000 square feet, or sf) or medium-sized (between 5,000 sf and 50,000 sf); these buildings typically do not use BAS to monitor and control their building systems from a central location.</p>
    <p>In 2013, the Department of Energy solicited “Turn-Key” Open Source Software Solutions for Energy Management of Small to Medium Sized Buildings (DE-FOA-0000822). The objective was to develop a “turn key” BAS solution using Open-Source software and architecture specifically tailored to small and medium buildings to advance opportunities for energy efficiency in this sector.</p>
    <p>The OpenBAS platform seen here is the product of the UC Berkeley-led team’s solution. The sourcecode for this project can be found <a href="http://github.com/SoftwareDefinedBuildings/openbas">on GitHub</a>.</p>
  </div>
</template>

<template name="points">
  <div class="panel panel-default" style="margin: 0 auto; width: 60%; margin-bottom: 10px;">
    <div class="panel-heading">Points</div>
    <table class="table table-bordered table-striped">
      <thead>
        <tr>
          <th class="Path">Path</th>
          <th class="sparkline">Trend</th>
          <th class="value">value</th>
        </tr>
      </thead>
      <tbody>
        {{#each pointsAll}}
          {{#if notActuator}}
            {{> point_row}}
          {{/if}}
        {{/each}}
      </tbody>
    </table>
  </div>
</template>

<template name="point_row">
  <tr class="point" data-uuid="{{uuid}}">
    <td class="Path">
      <a href="{{ pathFor 'pointDetail'}}">
        {{Path}}
      </a>
    </td>
    <td class="trend" id="trend-{{uuid}}"></td>
    <td class="value">{{value}}</td>
  </tr>
</template>

<template name="actuators">
  <table class="table table-bordered" id="actuators">
    <thead>
      <tr>
        <th>Path</th>
        <th>Value</th>
        <th>Type</th>
      </tr>
    </thead>
    <tbody>
      {{# each actuatorsAll}}
        <tr>
          {{> actuator_display}}
        </tr>
      {{/each}}
    </tbody>
  </table>
</template>

<template name="actuator_display">
  {{#with point uuid}}
    <td><a href="{{ploturl}}">{{name}}</a></td>
    <td>{{value}}</td>
    {{#if isDiscrete}}
      <td>{{> actuator_discrete}}</td>
    {{else}} {{#if isContinuous}}
      <td>{{> actuator_continuous}}</td>
    {{else}} {{#if isBinary}}
      <td>{{> actuator_binary}}</td>
    {{else}}
      <td>None</td>
    {{/if}}{{/if}}{{/if}}
  {{/with}}
</template>

<template name="point_display">
  {{#with point uuid}}
  <td><a href="{{ploturl}}">{{name}}</a></td>
  <td>{{value}}</td>
  <td></td>
  {{/with}}
</template>

<template name="actuator_discrete">
  <select id="{{ActuatorUUID}}" data-value="{{value}}" class="form-control">
  </select>
</template>

<template name="actuator_continuous">
  <div id="{{ActuatorUUID}}" data-value="{{value}}"></div>
</template>

<template name="actuator_binary">
  <div id="{{ActuatorUUID}}" class="button button-3d-caution button-small" data-value="{{value}}">Binary Actuator</div><br>
</template>

<template name="loading">
  <div style="text-align: center; margin: 0 auto; width: 50%">
    Loading ...  
    <span class="glyphicon glyphicon-repeat glyph-animate"></span>
  </div>
</template>

{'fraction_non_alphanumeric': 0.2006592089492609, 'fraction_numerical': 0.007990411506192568, 'mean_word_length': 3.3383882149046795, 'pattern_counts': {'":': 0, '<': 337, '<?xml version=': 0, '>': 351, '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': '1654492', 'n_tokens_mistral': 3395, 'n_tokens_neox': 3238, 'n_words': 853}