<commit_before>package com.sra.searchfda

import grails.converters.JSON
import grails.plugin.springsecurity.annotation.Secured

class SearchController {

	def searchService
	
	def index() { }

	def search(String query) {
		def mapResults = searchService.parallelFederatedSearch(query)
		render((mapResults as JSON).toString())
	}
	
	@Secured(["ROLE_ADMIN"])
	def serialSearch(String query) {
		def mapResults = searchService.federatedSearch(query)
		render((mapResults as JSON).toString())
	}

	@Secured(["ROLE_ADMIN"])
	def searchTime(String query) {
		def mapResults = searchService.timingComparison(query)
		render((mapResults as JSON).toString())
	}

	def results(String q) {
		[query: q, results: SearchService.federatedSearchMock()]
	}
}<commit_msg>Updated Search Controller service reference left over from the merge.<commit_after>package com.sra.searchfda

import grails.converters.JSON
import grails.plugin.springsecurity.annotation.Secured

class SearchController {

	def searchService
	
	def index() { }

	def search(String query) {
		def mapResults = searchService.parallelFederatedSearch(query)
		render((mapResults as JSON).toString())
	}
	
	@Secured(["ROLE_ADMIN"])
	def serialSearch(String query) {
		def mapResults = searchService.federatedSearch(query)
		render((mapResults as JSON).toString())
	}

	@Secured(["ROLE_ADMIN"])
	def searchTime(String query) {
		def mapResults = searchService.timingComparison(query)
		render((mapResults as JSON).toString())
	}

	def results(String q) {
		[query: q, results: searchService.federatedSearchMock()]
	}
}
{'fraction_non_alphanumeric': 0.11302681992337164, 'fraction_numerical': 0.0, 'mean_word_length': 5.6118143459915615, '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': '5935703', 'n_tokens_mistral': 514, 'n_tokens_neox': 478, 'n_words': 105}