<commit_before>{% extends "sources/source_base.html" %}
{% load i18n %}
{% load ocl_tags %}
{% load bootstrap3 %}
{% load humanize %}


{% block tab-content %}
<div class="container-fluid">
<div class="row" ng-controllerx="SourceSearchController">
<form action="." method="get">

	<!-- Start left column -->
	<div class="col-sm-3 hidden-xs">

		<!-- Search Filters -->
		<div role="form">
			{% for search_filter in search_filters %}
			<div class="filter-group">
				<div class="filter-group-header">{{ search_filter.filter_name }}</div>
				<div class="filter-group-body">
					{% for filter_option in search_filter.options %}
						{% if filter_option.option_num > 0 or search_filter.attrs.show_zeroed_options %}
							<div class="checkbox"><label><input type="checkbox" name="{{ search_filter.filter_id }}" value="{{ filter_option.option_value }}" {% if filter_option.selected %}checked{% endif %}>{{ filter_option.option_name }}{% if not search_filter.attrs.hide_numbers %}&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-muted">{{ filter_option.option_num|intcomma }}</span>{% endif %}</label></div>
						{% endif %}
					{% endfor %}
				</div>
			</div>
			{% endfor %}
		</div>

	<!-- End left column -->
	</div>

	<!-- Start right column: Search results section -->
	<div class="col-sm-9">

		<!-- Search Bar, Actions, Sorting and Paging -->
		<div class="row" style="margin-bottom:10px;margin-top:10px;">
			<div class="col-xs-12">
				{% if request.user.is_authenticated %}
				<!-- Add to collection button -->
				<div class="pull-left" style="margin-left:-15px;">
					{% select_all_toggle checkbox_css_selector='.search-result-checkbox' data_table_rows_id='data-table-rows' %}
                    {% add_to_collection_dropdown collections=all_collections %}
				</div>
				{% endif %}

				{% if results %}
				<!-- Simple pager -->
				{% simple_pager current_page 'mapping' url=pagination_url pager_size='small' hide_xs=1 %}
				{% endif %}

				{% if results %}
				<!-- Sort By Dropdown -->
				<div class="hidden-xs btn-group pull-right" style="margin-right:8px;">
					<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span class="glyphicon glyphicon-sort"></span> <span class="caret"></span></button>
					<ul class="dropdown-menu" role="menu">
					{% for sort_option_def in search_sort_option_defs %}
						{% if source.owner_type == 'Organization' %}
							{% if kwargs and "source_version" in kwargs %}
								{% url 'source-version-mappings' org=source.owner source=source.id source_version=kwargs.source_version as source_mappings_url %}
							{% else %}
								{% url 'source-mappings' org=source.owner source=source.id as source_mappings_url %}
							{% endif %}
						{% else %}
							{% if kwargs and "source_version" in kwargs %}
								{% url 'source-version-mappings' user=source.owner source=source.id source_version=kwargs.source_version as source_mappings_url %}
							{% else %}
								{% url 'source-mappings' org=source.owner source=source.id as source_mappings_url %}<commit_msg>Fixing typo in construction for user sources' mappings list sort url<commit_after>{% extends "sources/source_base.html" %}
{% load i18n %}
{% load ocl_tags %}
{% load bootstrap3 %}
{% load humanize %}


{% block tab-content %}
<div class="container-fluid">
<div class="row" ng-controllerx="SourceSearchController">
<form action="." method="get">

	<!-- Start left column -->
	<div class="col-sm-3 hidden-xs">

		<!-- Search Filters -->
		<div role="form">
			{% for search_filter in search_filters %}
			<div class="filter-group">
				<div class="filter-group-header">{{ search_filter.filter_name }}</div>
				<div class="filter-group-body">
					{% for filter_option in search_filter.options %}
						{% if filter_option.option_num > 0 or search_filter.attrs.show_zeroed_options %}
							<div class="checkbox"><label><input type="checkbox" name="{{ search_filter.filter_id }}" value="{{ filter_option.option_value }}" {% if filter_option.selected %}checked{% endif %}>{{ filter_option.option_name }}{% if not search_filter.attrs.hide_numbers %}&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-muted">{{ filter_option.option_num|intcomma }}</span>{% endif %}</label></div>
						{% endif %}
					{% endfor %}
				</div>
			</div>
			{% endfor %}
		</div>

	<!-- End left column -->
	</div>

	<!-- Start right column: Search results section -->
	<div class="col-sm-9">

		<!-- Search Bar, Actions, Sorting and Paging -->
		<div class="row" style="margin-bottom:10px;margin-top:10px;">
			<div class="col-xs-12">
				{% if request.user.is_authenticated %}
				<!-- Add to collection button -->
				<div class="pull-left" style="margin-left:-15px;">
					{% select_all_toggle checkbox_css_selector='.search-result-checkbox' data_table_rows_id='data-table-rows' %}
                    {% add_to_collection_dropdown collections=all_collections %}
				</div>
				{% endif %}

				{% if results %}
				<!-- Simple pager -->
				{% simple_pager current_page 'mapping' url=pagination_url pager_size='small' hide_xs=1 %}
				{% endif %}

				{% if results %}
				<!-- Sort By Dropdown -->
				<div class="hidden-xs btn-group pull-right" style="margin-right:8px;">
					<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span class="glyphicon glyphicon-sort"></span> <span class="caret"></span></button>
					<ul class="dropdown-menu" role="menu">
					{% for sort_option_def in search_sort_option_defs %}
						{% if source.owner_type == 'Organization' %}
							{% if kwargs and "source_version" in kwargs %}
								{% url 'source-version-mappings' org=source.owner source=source.id source_version=kwargs.source_version as source_mappings_url %}
							{% else %}
								{% url 'source-mappings' org=source.owner source=source.id as source_mappings_url %}
							{% endif %}
						{% else %}
							{% if kwargs and "source_version" in kwargs %}
								{% url 'source-version-mappings' user=source.owner source=source.id source_version=kwargs.source_version as source_mappings_url %}
							{% else %}
								{% url 'source-mappings' user=source.owner source=source.id as source_mappings_url %}
{'fraction_non_alphanumeric': 0.1694453350432831, 'fraction_numerical': 0.005129849310676499, 'mean_word_length': 3.7517136329017515, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '6605386', 'n_tokens_mistral': 2423, 'n_tokens_neox': 1893, 'n_words': 416}