<commit_before># -*- coding: utf-8 -*-
<%inherit file="/base.html" />
<%def name="head_tags()">
  <title> View of item ${c.item.uri} </title>
</%def>
% if c.editor:
<p>View as <a href="/objects/${c.silo_name}/${c.id}?view=editor"> Editor </a>, or <a href="/objects/${c.silo_name}/${c.id}?view=user">User</a>
% endif
% if c.readme_text:
<%include file="/readme_section.html"/>
% endif
<%include file="/part_list.html"/>
% if c.item and c.view == "editor":
<div id="editor_metadata_view">
<p> Detailed view (As Editor)
<dl>
<dt>Item's JSON state (Accept: application/json):</dt>
<dd>${repr(c.item)}</dd>
<dt>Item's Embargo state</dt>
<dd>
<%
c.current = c.id
%>
<p><%include file="/embargo_form.html"/></p>
<p><small>Embargo state: True - only those logged in and with edit rights can see item. False - Anyone can GET the item and it's files.</small></p>
<p><small>Embargo date: Aim is for ISO8601 dates to provide embargo trigger events. Currently unused, unvalidated and unparsed.</small></p></dd>
<dt>Item's RDF Manifest (Accept: most RDF mimetypes):</dt>
<dd><pre>${c.item.rdf_to_string(format="pretty-xml")}</pre></dd><commit_msg>Adding an RDF <link> to the HTML header for pages<commit_after># -*- coding: utf-8 -*-
<%inherit file="/base.html" />
<%def name="head_tags()">
  <link rel="meta" type="application/rdf+xml" title="RDF Manifest"
               href="/objects/${c.silo_name}/${c.id}/manifest.rdf"/>
  <title> View of item ${c.item.uri} </title>
</%def>
% if c.editor:
<p>View as <a href="/objects/${c.silo_name}/${c.id}?view=editor"> Editor </a>, or <a href="/objects/${c.silo_name}/${c.id}?view=user">User</a>
% endif
% if c.readme_text:
<%include file="/readme_section.html"/>
% endif
<%include file="/part_list.html"/>
% if c.item and c.view == "editor":
<div id="editor_metadata_view">
<p> Detailed view (As Editor)
<dl>
<dt>Item's JSON state (Accept: application/json):</dt>
<dd>${repr(c.item)}</dd>
<dt>Item's Embargo state</dt>
<dd>
<%
c.current = c.id
%>
<p><%include file="/embargo_form.html"/></p>
<p><small>Embargo state: True - only those logged in and with edit rights can see item. False - Anyone can GET the item and it's files.</small></p>
<p><small>Embargo date: Aim is for ISO8601 dates to provide embargo trigger events. Currently unused, unvalidated and unparsed.</small></p></dd>
<dt>Item's RDF Manifest (Accept: most RDF mimetypes):</dt>
<dd><pre>${c.item.rdf_to_string(format="pretty-xml")}</pre></dd>
{'fraction_non_alphanumeric': 0.2165709598031173, 'fraction_numerical': 0.004101722723543888, 'mean_word_length': 4.919902912621359, 'pattern_counts': {'":': 2, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '3934633', 'n_tokens_mistral': 925, 'n_tokens_neox': 891, 'n_words': 230}