<commit_before>'use strict';

/* Controllers */

function AppCtrl($scope, $location, $rootScope) {
	
	$scope.q = "";
	$rootScope.title = "";
	$rootScope.subtitle = "";
	
	$rootScope.activePlaces = [];
	
	$rootScope.alerts = [];
	
	$scope.$watch("q", function() {
		if ($location.search().q.indexOf(':') == -1
				&& ($scope.q != "" || $location.path() == "/search") ) {
			$location.path('/search').search({q:$scope.q, type: "prefix"});
		}
	});
	
	$scope.submit = function() {
		$location.path('/search').search({q:$scope.q, type: ""});<commit_msg>fixed a bug in the search<commit_after>'use strict';

/* Controllers */

function AppCtrl($scope, $location, $rootScope) {
	
	$scope.q = "";
	$rootScope.title = "";
	$rootScope.subtitle = "";
	
	$rootScope.activePlaces = [];
	
	$rootScope.alerts = [];
	
	// search while typing
	$scope.$watch("q", function() {
		if ($scope.q.indexOf(':') == -1
				&& ($scope.q != "" || $location.path() == "/search") ) {
			$location.path('/search').search({q:$scope.q, type: "prefix"});
		}
	});
	
	$scope.submit = function() {
		$location.path('/search').search({q:$scope.q, type: ""});
{'fraction_non_alphanumeric': 0.25935828877005346, 'fraction_numerical': 0.0017825311942959, 'mean_word_length': 3.8405172413793105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6334964', 'n_tokens_mistral': 432, 'n_tokens_neox': 391, 'n_words': 62}