<commit_before>{#
  Copyright (C) 2013  <NAME> <<EMAIL>>
  License: GNU Affero General Public License, version 3 or above.
#}

{% extends "base.html" %}
{% import "macros.inc.html" as macros %}

{% block title %}Advanced search{% endblock %}

{% block breadcrumbs %}advanced search{% endblock %}

{% block content %}

<h2>{{ self.title() }}</h2>

<h3>Search packages</h3>

<p>Simple search with a package name.</p>

{{ macros.searchform(searchform, display="inline", placeholder="package name") }}

<h3>Search occurences</h3>

<p>Search actual things in the source code.</p>

<h4>Via our tags base:</h4>
<p>You can search for the conjunction of tags, separating them with a semicolon.</p>
<form name="tagsearch" method="get" action="">
  <input type="text" name="tags" placeholder="tags" />
  <input type="text" name="package" placeholder="package name" />
  <input type="submit" value="Search tags!" />
</form>

<h4>Via codesearch:</h4>
<p>Or you can use regexes with Debian Codesearch.</p>
<form name="codesearch" method="get"
      action="http://codesearch.debian.net/search">
  <input name="q" placeholder="code regex" type="text" />
  <input type="submit" value="Search code" />
</form>



<h3>Search files</h3>

<p>Search identical files in the Debian archive or in a single
  package.</p>
<form name="shasearch" method="get" action="">
  <input type="text" name="shasum" placeholder="sha256 shum" />
  <input type="text" name="package" placeholder="package name" />
  <input type="submit" value="Search files!" />
</form>
<commit_msg>advanced search page: simplify prose and reduce vertical space usage<commit_after>{#
  Copyright (C) 2013  <NAME> <<EMAIL>>
  License: GNU Affero General Public License, version 3 or above.
#}

{% extends "base.html" %}
{% import "macros.inc.html" as macros %}

{% block title %}Search{% endblock %}

{% block breadcrumbs %}search{% endblock %}

{% block content %}

<!-- <h2>{{ self.title() }}</h2> -->


<h3>Package search</h3>

<p>
{{ macros.searchform(searchform, display="inline", placeholder="package name") }}
</p>


<h3>Source code search</h3>

<h4>Via <a href="http://codesearch.debian.net/">codesearch</a> (regex allowed)</h4>
<form name="codesearch" method="get"
      action="http://codesearch.debian.net/search">
  <input name="q" placeholder="code regex" type="text" />
  <input type="submit" value="Search code" />
</form>

<h4>By <a href="http://ctags.sourceforge.net">ctags</a> (tag conjunctions
  allowed, semicolon-separated)</h4>
<form name="tagsearch" method="get" action="">
  <input type="text" name="tags" placeholder="tags" />
  <input type="text" name="package" placeholder="package (optional)" />
  <input type="submit" value="Search tags" />
</form>


<h3>File search</h3>

<h4>By SHA256 hash</h4>
<form name="shasearch" method="get" action="">
  <input type="text" name="shasum" placeholder="sha256" />
  <input type="text" name="package" placeholder="package (optional)" />
  <input type="submit" value="Search files" />
</form>

{'fraction_non_alphanumeric': 0.18993668777074307, 'fraction_numerical': 0.014995001666111295, 'mean_word_length': 5.126530612244898, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, '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': '5554004', 'n_tokens_mistral': 1058, 'n_tokens_neox': 985, 'n_words': 272}