<commit_before>import ResolveContext from "../resolve/resolveContext"
import Path from "./../path/path";
import {IState} from "../state/interface";
import {objectKeys, zipObject, pick} from "../common/common";

// TODO: Refactor!
// TODO: this is better named ViewContext?
export default class PathContext {
  constructor(private _resolveContext: ResolveContext, 
    private _state: IState, 
    private _injector: ng.auto.IInjectorService, 
    private _options = {}) { }

  /** Invokes an annotated function in the context of the toPath */
  invoke(injectedFn, locals) {
    return this._resolveContext.invokeLater(this._state, injectedFn, locals, this._options);
  }

  /**
   * For the fn passed in, resolves any Resolvable dependencies within the transition toPath context
   * @returns a $q promise for the resolved data by name
   */
  getLocalsFor(fn) {<commit_msg>chore(view): tslint pathContext.js<commit_after>import ResolveContext from "../resolve/resolveContext";
import {IState} from "../state/interface";
import {objectKeys, zipObject, pick} from "../common/common";

// TODO: Refactor!
// TODO: this is better named ViewContext?
export default class PathContext {
  constructor(private _resolveContext: ResolveContext,
    private _state: IState,
    private _injector: ng.auto.IInjectorService,
    private _options = {}) { }

  /** Invokes an annotated function in the context of the toPath */
  invoke(injectedFn, locals) {
    return this._resolveContext.invokeLater(this._state, injectedFn, locals, this._options);
  }

  /**
   * For the fn passed in, resolves any Resolvable dependencies within the transition toPath context
   * @returns a $q promise for the resolved data by name
   */
  getLocalsFor(fn) {
{'fraction_non_alphanumeric': 0.10739030023094688, 'fraction_numerical': 0.0, 'mean_word_length': 4.142433234421365, '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': '5186804', 'n_tokens_mistral': 493, 'n_tokens_neox': 481, 'n_words': 164}