<commit_before>{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load ocl_tags %}


{% block title %}{{ source.owner }} / {{ source.id }} / {% trans "New Concept" %} - Open Concept Lab{% endblock %}


{% block content %}
{% if source.owner_type == 'Organization' %}
	{% url 'source-concepts' org=source.owner source=source.id as source_concepts_url %}
{% else %}
	{% url 'source-concepts' user=source.owner source=source.id as source_concepts_url %}
{% endif %}

<h3>
	{% resource_owner_label source %} / {% source_label source %}&nbsp;/&nbsp;
	<span style="color:#e5e5e5"><span class="glyphicon glyphicon-list"></span></span>&nbsp;&nbsp;{% trans 'New Concept' %}
</h3>

<div class="container">
	<div class="row" style="padding-top:15px;">

		<!-- New Concept Form -->
		<div class="col-md-8">
			<form class="form" name="concept_form" autocomplete="off" method="post" action=".">
				{% csrf_token %}
        {% bootstrap_form form %}
        <concept-name-synonym names="[{'name':'', 'locale':'{{ source.default_locale }}', 'locale_preferred':false, 'name_type':'Fully Specified'}]"
                              types="{{ name_types }}"
                              default-locale="'{{ source.default_locale }}'"
                              locales="{{ locales }}"></concept-name-synonym>

        <concept-description descriptions="[{'description':'', 'locale':'{{ source.default_locale }}', 'locale_preferred':false, 'description_type':'None'}]"
                             default-locale="'{{ source.default_locale }}'"
                             types="{{ description_types }}" locales="{{ locales }}"></concept-description>
<commit_msg>Locale preferred for the 1st name and description should be checked by default #224<commit_after>{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load ocl_tags %}


{% block title %}{{ source.owner }} / {{ source.id }} / {% trans "New Concept" %} - Open Concept Lab{% endblock %}


{% block content %}
{% if source.owner_type == 'Organization' %}
	{% url 'source-concepts' org=source.owner source=source.id as source_concepts_url %}
{% else %}
	{% url 'source-concepts' user=source.owner source=source.id as source_concepts_url %}
{% endif %}

<h3>
	{% resource_owner_label source %} / {% source_label source %}&nbsp;/&nbsp;
	<span style="color:#e5e5e5"><span class="glyphicon glyphicon-list"></span></span>&nbsp;&nbsp;{% trans 'New Concept' %}
</h3>

<div class="container">
	<div class="row" style="padding-top:15px;">

		<!-- New Concept Form -->
		<div class="col-md-8">
			<form class="form" name="concept_form" autocomplete="off" method="post" action=".">
				{% csrf_token %}
        {% bootstrap_form form %}
        <concept-name-synonym names="[{'name':'', 'locale':'{{ source.default_locale }}', 'locale_preferred':true, 'name_type':'Fully Specified'}]"
                              types="{{ name_types }}"
                              default-locale="'{{ source.default_locale }}'"
                              locales="{{ locales }}"></concept-name-synonym>

        <concept-description descriptions="[{'description':'', 'locale':'{{ source.default_locale }}', 'locale_preferred':true, 'description_type':'None'}]"
                             default-locale="'{{ source.default_locale }}'"
                             types="{{ description_types }}" locales="{{ locales }}"></concept-description>

{'fraction_non_alphanumeric': 0.1931216931216931, 'fraction_numerical': 0.007642563198118754, 'mean_word_length': 3.3516624040920715, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '3006786', 'n_tokens_mistral': 1139, 'n_tokens_neox': 979, 'n_words': 211}