<commit_before>define([
  'angular',
  'lodash',
  './query_builder',
],
function (angular, _) {
  'use strict';

  var module = angular.module('grafana.controllers');

  module.controller('DataloopQueryCtrl', function($scope, $timeout, $sce, templateSrv, $q, uiSegmentSrv) {

    var metrics;

    $scope.init = function() {
      if (!$scope.target) { return; }

      var target = $scope.target;
      target.aggrs = target.aggrs || [];
      target.mget = target.mget || 'sum';
      target.mget_enabled = target.mget_enabled || false;

      $scope.oldMetric = $scope.target.metric;
      $scope.$on('typeahead-updated', function() {
        $timeout($scope.get_data);
      });

      $scope.mgets = ['sum', 'avg'];
      $scope.aggrs = [
        {
          name: 'avg',
          vals: ['1s']
        },
        {
          name: 'sum',
          vals: ["1s"]
        },
        {
          name: 'min',
          vals: ["1s"]<commit_msg>Allow for multiple lines with * wildcard<commit_after>define([
  'angular',
  'lodash',
  './query_builder',
],
function (angular, _) {
  'use strict';

  var module = angular.module('grafana.controllers');

  module.controller('DataloopQueryCtrl', function($scope, $timeout, $sce, templateSrv, $q, uiSegmentSrv) {

    var metrics;

    $scope.init = function() {
      if (!$scope.target) { return; }

      var target = $scope.target;
      target.aggrs = target.aggrs || [];
      target.mget = target.mget || 'sum';
      target.mget_enabled = target.mget_enabled || false;

      $scope.oldMetric = $scope.target.metric;
      $scope.$on('typeahead-updated', function() {
        $timeout($scope.get_data);
      });

      $scope.mgets = ['none', 'sum', 'avg'];
      $scope.aggrs = [
        {
          name: 'avg',
          vals: ['1s']
        },
        {
          name: 'sum',
          vals: ["1s"]
        },
        {
          name: 'min',
          vals: ["1s"]
{'fraction_non_alphanumeric': 0.17540217955371043, 'fraction_numerical': 0.0031136481577581734, 'mean_word_length': 2.160655737704918, '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': '1819621', 'n_tokens_mistral': 653, 'n_tokens_neox': 632, 'n_words': 119}