<commit_before>const aggregator = require('../lib/score-aggregator')

const config = {}

config.scoreManager = {
  aggregator: new aggregator.Mean(),
  plugins: {
    'similar-title': {
      use: 'similar-title-plugin',
      inputs: ['file', 'tasks[]']
    },
    'close-time': {
      use: 'close-timestamp-plugin',
      inputs: ['file.created_at', 'tasks[].created_at'],
      params: { 'time-limit': 1234 }
    }
  }
}
config.secretToken = '<KEY>'

module.exports = config<commit_msg>Basisconfig hinzu, dieses mal branch von dev ausgehend.<commit_after>const aggregator = require('../lib/score-aggregator')

const config = {}
/**
 * Default config for scoreManager
 *
 * similar-title: compare titles if file and tasks
 * context-file-timestamp-tasks-timestamp: compares timestamps of file and tasks - timeLimit = 600s (default in plugin)
 * context-file-timestamp-tasks-timestamp: compares keywords of file title with keywords of description of tasks
 * context-file-description-task-title: compares keywords of file description with keywords of description of tasks
 * context-file-description-task-description: compares keywords of file description with keywords of description of tasks
*/
config.scoreManager = {
  aggregator: new aggregator.Mean(),
  plugins: {
    // similar-title-plugin pulls file.name from file and tasks[].name from tasks[] itself
    'similar-title': {
      use: 'similar-title-plugin',
      inputs: ['file', 'tasks[]']
    },
    // timestamp comparison defaults to 600 sec
    'context-file-timestamp-tasks-timestamp': {
      use: 'close-timestamp-plugin',
      inputs: ['file.created_at', 'tasks[].created_at']
    },
    'context-file-title-task-description': {
      use: 'similar-context-plugin',
      inputs: ['file.name', 'tasks[].description'],
      params: { 'extractKeywords': true }
    },
    'context-file-description-task-title': {
      use: 'similar-context-plugin',
      inputs: ['file.description', 'tasks[].name'],
      params: { 'extractKeywords': true }
    },
    'context-file-description-task-description': {
      use: 'similar-context-plugin',
      inputs: ['file.description', 'tasks[].description'],
      params: { 'extractKeywords': true }
    }
  }
}
config.secretToken = '<KEY>'

module.exports = config
{'fraction_non_alphanumeric': 0.1465555068012286, 'fraction_numerical': 0.004387889425186486, 'mean_word_length': 3.514851485148515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7171164', 'n_tokens_mistral': 673, 'n_tokens_neox': 651, 'n_words': 163}