<commit_before>{%extends 'product/base.html' %}
{% load i18n %}
{% block breadcrumbs_rows %}
    <li class="active"><a href="{{ obj.get_absolute_url }}">{{ object }} </a></li>
{% endblock %}

{% block content %}
    {% if user.is_authenticated %}
        <div class="btn-group">
            <a href="{% url 'product:delete' product.code %}" class="btn btn-primary"><i class="fa fa-trash"></i> {% trans "Usuń" %}</a>
            <a href="{% url 'product:view-history' product.code %}" class="btn btn-primary"><i class="fa fa-clock-o"></i> {% trans "Historia" %}</a>
            <a href="{% url 'product:edit' product.code %}" class="btn btn-primary"><i class="fa fa-pencil"></i> {% trans "Zmień" %}</a>
        </div>
    {% endif %}
    <h1>
        {% if object.locked_by %}<i class="fa fa-lock" title="Edytowane przez: {{ object.locked_by }}"></i>{% endif %}
        {{ object }} <small>#{{ object.pk }}</small>
    </h1>
	<div class="panel panel-primary">
        <div class="panel-heading">{% trans "Dane" %}</div>
		<div class="panel-body"><img src="{{ object.get_image_url }}" alt=""></div>
		<table class="table">
			<tr>
                <td>{% trans "ID: " %}</td><td>{{ object.pk }}</td>
			</tr>
			<tr>
                <td>{% trans "Nazwa: " %}</td><td>{{ object.name }}</td>
			</tr>
			<tr>
                <td>{% trans "Liczba zeskanowań: " %}</td><td>{{ object.query_count }}</td>
			</tr>
			<tr>
                <td>{% trans "Kod: " %}</td><td>{{ object.code }}</td>
			</tr>
			{% if object.company %}
				<tr>
                    <td>{% trans "NIP producenta: " %}</td><td>{{ object.company.nip }} </td>
				</tr>
				<tr>
                    <td>{% trans "Nazwa producenta: " %}</td><td><a href="{{ object.company.get_absolute_url }}">{{ object.company.name }}</a></td><commit_msg>Fixed: name of the company is not shown if company.name is None<commit_after>{%extends 'product/base.html' %}
{% load i18n %}
{% block breadcrumbs_rows %}
    <li class="active"><a href="{{ obj.get_absolute_url }}">{{ object }} </a></li>
{% endblock %}

{% block content %}
    {% if user.is_authenticated %}
        <div class="btn-group">
            <a href="{% url 'product:delete' product.code %}" class="btn btn-primary"><i class="fa fa-trash"></i> {% trans "Usuń" %}</a>
            <a href="{% url 'product:view-history' product.code %}" class="btn btn-primary"><i class="fa fa-clock-o"></i> {% trans "Historia" %}</a>
            <a href="{% url 'product:edit' product.code %}" class="btn btn-primary"><i class="fa fa-pencil"></i> {% trans "Zmień" %}</a>
        </div>
    {% endif %}
    <h1>
        {% if object.locked_by %}<i class="fa fa-lock" title="Edytowane przez: {{ object.locked_by }}"></i>{% endif %}
        {{ object }} <small>#{{ object.pk }}</small>
    </h1>
	<div class="panel panel-primary">
        <div class="panel-heading">{% trans "Dane" %}</div>
		<div class="panel-body"><img src="{{ object.get_image_url }}" alt=""></div>
		<table class="table">
			<tr>
                <td>{% trans "ID: " %}</td><td>{{ object.pk }}</td>
			</tr>
			<tr>
                <td>{% trans "Nazwa: " %}</td><td>{{ object.name }}</td>
			</tr>
			<tr>
                <td>{% trans "Liczba zeskanowań: " %}</td><td>{{ object.query_count }}</td>
			</tr>
			<tr>
                <td>{% trans "Kod: " %}</td><td>{{ object.code }}</td>
			</tr>
			{% if object.company %}
				<tr>
                    <td>{% trans "NIP producenta: " %}</td><td>{{ object.company.nip }} </td>
				</tr>
				<tr>
                    <td>{% trans "Nazwa producenta: " %}</td><td><a href="{{ object.company.get_absolute_url }}">{{ object.company }}</a></td>
{'fraction_non_alphanumeric': 0.24814916369618864, 'fraction_numerical': 0.0021935837674801205, 'mean_word_length': 2.6774193548387095, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, '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': '6637732', 'n_tokens_mistral': 1418, 'n_tokens_neox': 1279, 'n_words': 294}