<commit_before>/**
 * Created by rob on 2/17/2017.
 */
'use strict';

angular.module('eutilsUI')
.service('queryResults',['$resource', 'baseURL', function($resource, baseURL) {
    this.getQueryResults = function(term){
        return $resource(`${baseURL}/query?${term}`);
    };

}]).factory('NcbiResources',['$resource','baseURL', function ($resource,baseURL) {
    let NcbiResources = $resource(`${baseURL}`, {
    }, {
        getDbList: {
            method: "GET",
            url: `${baseURL}/dblist`,
            isArray: true,
        },<commit_msg>add database to filter by<commit_after>/**
 * Created by rob on 2/17/2017.
 */
'use strict';

angular.module('eutilsUI')
.service('queryResults',['$resource', 'baseURL', function($resource, baseURL) {
    this.getQueryResults = function(term,db){
        return $resource(`${baseURL}/query?term=${term}&db=${db}`);
    };

}]).factory('NcbiResources',['$resource','baseURL', function ($resource,baseURL) {
    let NcbiResources = $resource(`${baseURL}`, {
    }, {
        getDbList: {
            method: "GET",
            url: `${baseURL}/dblist`,
            isArray: true,
        },
{'fraction_non_alphanumeric': 0.1996512641673932, 'fraction_numerical': 0.012205754141238012, 'mean_word_length': 3.2676579925650557, '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': '1671918', 'n_tokens_mistral': 372, 'n_tokens_neox': 365, 'n_words': 64}