<commit_before>const co = require("co")

module.exports = angular.module("falcorception.falcorClient", []).component("falcorClient", {
  templateUrl: "node_modules/falcorClient/falcorClient.html",
  bindings: {
    api: "<",
  },
  controller($scope, falcorFactory) {
    const ctrl = this

    ctrl.get = co.wrap(function* (paths) {
      yield ctrl.falcorAction("get", arguments)
    })

    ctrl.call = co.wrap(function* (path, args, refPaths, thisPaths) {
      args = args && JSON.parse(args)
      refPaths = refPaths && JSON.parse(refPaths)
      yield ctrl.falcorAction("call", _.compact(arguments))
    })

    ctrl.falcorAction = co.wrap(function* falcorAction(action, args) {
      ctrl.error = false
      ctrl.response = null
      const model = falcorFactory(ctrl.api.url)
      try {<commit_msg>fix: thisPaths handling in falcor client<commit_after>const co = require("co")

module.exports = angular.module("falcorception.falcorClient", []).component("falcorClient", {
  templateUrl: "node_modules/falcorClient/falcorClient.html",
  bindings: {
    api: "<",
  },
  controller($scope, falcorFactory) {
    const ctrl = this

    ctrl.get = co.wrap(function* (paths) {
      yield ctrl.falcorAction("get", arguments)
    })

    ctrl.call = co.wrap(function* (path, args, refPaths, thisPaths) {
      args = args && JSON.parse(args)
      refPaths = refPaths && JSON.parse(refPaths)
      thisPaths = thisPaths && JSON.parse(thisPaths)
      yield ctrl.falcorAction("call", _.compact(arguments))
    })

    ctrl.falcorAction = co.wrap(function* falcorAction(action, args) {
      ctrl.error = false
      ctrl.response = null
      const model = falcorFactory(ctrl.api.url)
      try {
{'fraction_non_alphanumeric': 0.14058823529411765, 'fraction_numerical': 0.0, 'mean_word_length': 3.4763157894736842, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1081205', 'n_tokens_mistral': 552, 'n_tokens_neox': 527, 'n_words': 104}