{% extends "base.html" %} {% block title %}{{ _("Repository") }}{% endblock %} {% block content %} {% macro capped(items) -%}
{{ _("What the repository is: its history, its releases, its code and its facts. Read from the code and its history, without calling your assistant.") }}
{{ _("Codetrail couldn't read the target's data; the log says why.") }}
{% else %}{{ _("Update the guide once: reading the code is free, and the statistics come from it.") }}
{% endif %}{{ _("The history couldn't be read just now; the log says why.") }}
{% else %}{{ _("The branch's whole history, by author date in UTC. Only dates and counts are read: no author or message.") }}
{{ _("The charts need the page's script; their numbers are in the tables below.") }}
| {{ _("First commit") }} | {{ activity.first.isoformat() }} |
|---|---|
| {{ _("Latest commit") }} | {{ activity.latest.isoformat() }} · {% trans count=[(today - activity.latest).days, 0]|max %}{{ count }} day ago{% pluralize %}{{ count }} days ago{% endtrans %} |
| {{ _("Weeks with a commit") }} | {% trans active=activity.active_weeks|number, weeks=activity.weeks|number %}{{ active }} of {{ weeks }}{% endtrans %} |
| {{ _("Longest quiet stretch") }} | {% if activity.longest_gap %}{% set start, end = activity.longest_gap %}{% trans count=(end - start).days, start=start.isoformat(), end=end.isoformat() %}{{ count }} day, from {{ start }} to {{ end }}{% pluralize %}{{ count }} days, from {{ start }} to {{ end }}{% endtrans %}{% else %}—{% endif %} |
{% trans count=history_limit|number %}The timeline shows the latest {{ count }} commits; the counts cover them all.{% endtrans %}
{% endif %}| {{ _("Month") }} | {{ _("Commits") }} |
|---|---|
| {{ month }} | {{ count|number }} |
| {{ _("Year") }} | {{ _("Commits") }} |
|---|---|
| {{ year }} | {{ count|number }} |
{{ _("The last 53 weeks, a square per day, shaded by its commits.") }}
{{ _("The charts need the page's script; their numbers are in the tables below.") }}
{{ _("The commit messages couldn't be read just now; the log says why.") }}
{% else %}{% trans matched=types.matched, measured=types.measured %}{{ matched }} of the latest {{ measured }} commit subjects match the target's commit_type_pattern, such as feat(web): add a page.{% endtrans %}
{% if not types.used %}{{ _("The repository doesn't appear to use typed commit subjects.") }}
{% else %} {% set widest = types.types[0][1] if types.types else 0 %} {% if types.scopes %}{{ _("The releases couldn't be read just now; the log says why.") }}
{% elif not releases.tags %}{{ _("No releases: the branch has no tags.") }}
{% else %}{{ _("The tags that point into the branch's history. A tag gitleaks flags is withheld.") }}
{{ tag.commit[:7] }}{{ tag.name }}{% if tag.message %}{{ tag.message }}{{ _("The history couldn't be read just now; the log says why.") }}
{% else %}{% trans count=churn.commits %}Over the latest {{ count }} commit, merges left out. Only files Codetrail may read are named.{% pluralize %}Over the latest {{ count }} commits, merges left out. Only files Codetrail may read are named.{% endtrans %}
{{ _("Each tile's size is its lines of code; its shade, the commits that changed it.") }}
{{ _("The charts need the page's script; their numbers are in the tables below.") }}
{% trans count=count %}{{ count }} smaller one isn't drawn.{% pluralize %}{{ count }} smaller ones aren't drawn.{% endtrans %}
{% endif %}{% endfor %}{{ _("Commits per month in each guide area over the last year.") }}
| {{ _("Area") }} | {% for month in churn.months %}{{ month_names[month[5:]|int - 1] }}{% if loop.first or month[5:] == "01" %} {{ month[:4] }}{% endif %} | {% endfor %}|
|---|---|---|
| {{ area_titles.get(page_id, page_id) }} | {% for count in cells %}{% if count is none %}– | {% else %}{{ count if count else "" }} | {% endif %}{% endfor %}
{{ _("An area with much change and mostly inferred rationale is where an ADR or a README would help most.") }}
| {{ _("Area") }} | {{ _("Commits") }} | {{ _("Documented") }} | {{ _("Inferred") }} |
|---|---|---|---|
| {{ spot.page.title }} | {{ spot.commits|number }} | {{ spot.documented }} | {{ spot.inferred }} |
{{ _("Areas are counted once your assistant has written the guide's area pages.") }}
{% endif %} {% if churn.files %}{{ _("No commits to measure yet.") }}
{% else %}{% trans median="%g"|format(churn.median_files), p90="%g"|format(churn.p90_files) %}Files a commit changes: {{ median }} at the median, {{ p90 }} at the 90th percentile.{% endtrans %}
{% trans count=churn.quiet_files, days=quiet_days %}{{ count }} file of code no commit has changed in the last {{ days }} days, by folder.{% pluralize %}{{ count }} files of code no commit has changed in the last {{ days }} days, by folder.{% endtrans %}
{% trans days=quiet_days %}Every file of code changed in the last {{ days }} days.{% endtrans %}
{% endif %}{{ _("The files Codetrail may read, without the excluded ones. A file's language comes from its name; documents are the files matching the target's document_globs, and tests those matching its test_globs.") }}
{% if size.languages %} {% set segments = language_segments(size.languages) %}| {{ _("Language") }} | {{ _("Files") }} | {{ _("Lines") }} |
|---|---|---|
| {{ row.language }} | {{ row.files|number }} | {{ row.lines|number }} |
{% trans date=inventory.since.taken_at[:10] %}What Codetrail's extractors found, by kind. Codetrail's history of this repository starts on {{ date }}: packages present then are counted as there from the start.{% endtrans %}
{% endif %} {% if inventory.kinds %}