{"size": 494, "ext": "js", "max_stars_repo_path": "packages/core/core/test/services/v2.math.service.js", "max_stars_repo_name": "weave-microservices/weave", "max_stars_repo_stars_event_min_datetime": "2019-04-26T08:16:51.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-13T22:02:09.000Z", "max_issues_repo_path": "packages/core/core/test/services/v2.math.service.js", "max_issues_repo_name": "weave-microservices/weave", "max_issues_repo_issues_event_min_datetime": "2019-12-30T11:57:19.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T22:45:08.000Z", "max_forks_repo_path": "packages/core/core/test/services/v2.math.service.js", "max_forks_repo_name": "weave-microservices/weave", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 8, "max_issues_count": 214, "max_forks_count": null, "avg_line_length": 16.4666666667, "max_line_length": 62, "alphanum_fraction": 0.4190283401}
module.exports = {
  name: 'math',
  version: 2,
  actions: {
    add: {
      cache: {
        keys: ['a', 'b']
      },
      params: {
        a: 'number',
        b: 'number'
      },
      handler (context) {
        return Number(context.data.a) + Number(context.data.b)
      }
    },
    round: {
      cache: {
        keys: ['value']
      },
      params: {
        value: 'number'
      },
      handler (context) {
        return Math.round(context.data.value)
      }
    }
  }
}
