<commit_before>%import os
%from datetime import datetime
%from master import get_master
%from webui_lib import *
%master = get_master()
<html>
<head>
<title>Mesos Master on {{HOSTNAME}}</title>
<link rel="stylesheet" type="text/css" href="/static/stylesheet.css" />
</head>
<body>

<h1>Mesos Master on {{HOSTNAME}}</h1>

<p>
Built: {{master.build_date}} by {{master.build_user}}<br />
Started: {{format_time(start_time)}}<br />
PID: {{master.pid}}<br />
Slaves: {{master.slaves.size()}}<br />
Frameworks: {{master.frameworks.size()}}<br />
Fault-tolerant: {{master.isFT}}<br />
</p>

<p>
Log:
<a href="/log/INFO/100">[last 100 lines]</a>
<a href="/log/INFO">[full]</a>
</p>

<h2>Resources</h2>

%total_cpus = 0
%total_mem = 0
%for s in master.slaves:
%  total_cpus += s.cpus
%  total_mem += s.mem
%end

%running_cpus = 0
%running_mem = 0
%for framework in master.frameworks:
%  for task in framework.tasks:
%    running_cpus += task.cpus
%    running_mem += task.mem
%  end
%end

%offered_cpus = 0
%offered_mem = 0
%for f in master.frameworks:
%  for o in f.offers:
%    for r in o.resources:<commit_msg>Remove fault tolerance line from web UI<commit_after>%import os
%from datetime import datetime
%from master import get_master
%from webui_lib import *
%master = get_master()
<html>
<head>
<title>Mesos Master on {{HOSTNAME}}</title>
<link rel="stylesheet" type="text/css" href="/static/stylesheet.css" />
</head>
<body>

<h1>Mesos Master on {{HOSTNAME}}</h1>

<p>
Built: {{master.build_date}} by {{master.build_user}}<br />
Started: {{format_time(start_time)}}<br />
PID: {{master.pid}}<br />
Slaves: {{master.slaves.size()}}<br />
Frameworks: {{master.frameworks.size()}}<br />
</p>

<p>
Log:
<a href="/log/INFO/100">[last 100 lines]</a>
<a href="/log/INFO">[full]</a>
</p>

<h2>Resources</h2>

%total_cpus = 0
%total_mem = 0
%for s in master.slaves:
%  total_cpus += s.cpus
%  total_mem += s.mem
%end

%running_cpus = 0
%running_mem = 0
%for framework in master.frameworks:
%  for task in framework.tasks:
%    running_cpus += task.cpus
%    running_mem += task.mem
%  end
%end

%offered_cpus = 0
%offered_mem = 0
%for f in master.frameworks:
%  for o in f.offers:
%    for r in o.resources:
{'fraction_non_alphanumeric': 0.1885245901639344, 'fraction_numerical': 0.014571948998178506, 'mean_word_length': 4.647814910025707, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 52, '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': '7456951', 'n_tokens_mistral': 898, 'n_tokens_neox': 871, 'n_words': 211}