<commit_before>define(['angular', 'jquery'], function (angular, $) {
  'use strict';

  var ExploreService = function ($location, $timeout) {
    this._$location = $location;
    this._$timeout = $timeout;
  };

  ExploreService.prototype.setCanvas = function (canvas) {
    this._canvas = canvas;
    this._canvas.setEnterIssueCallback(this._onPressIssue.bind(this));
  };

  ExploreService.prototype.switchView = function (view) {
    if (view === 'explore') {
      this._canvas.showExplore();
    } else if (view === 'topics') {
      this._canvas.showTopics();
    } else if (view === 'issues') {
      this._canvas.showIssues();
    }
  };

  ExploreService.prototype._onPressIssue = function (topic, issue) {
    this._$timeout(function () {
      this._$location.url('/detail/?topipc=' + topic + '&issue=' + issue);
    }.bind(this));
  };

  ExploreService.$inject = [
    '$location',
    '$timeout'<commit_msg>fixed typo<commit_after>define(['angular', 'jquery'], function (angular, $) {
  'use strict';

  var ExploreService = function ($location, $timeout) {
    this._$location = $location;
    this._$timeout = $timeout;
  };

  ExploreService.prototype.setCanvas = function (canvas) {
    this._canvas = canvas;
    this._canvas.setEnterIssueCallback(this._onPressIssue.bind(this));
  };

  ExploreService.prototype.switchView = function (view) {
    if (view === 'explore') {
      this._canvas.showExplore();
    } else if (view === 'topics') {
      this._canvas.showTopics();
    } else if (view === 'issues') {
      this._canvas.showIssues();
    }
  };

  ExploreService.prototype._onPressIssue = function (topic, issue) {
    this._$timeout(function () {
      this._$location.url('/detail/?topic=' + topic + '&issue=' + issue);
    }.bind(this));
  };

  ExploreService.$inject = [
    '$location',
    '$timeout'
{'fraction_non_alphanumeric': 0.17410228509249184, 'fraction_numerical': 0.0, 'mean_word_length': 3.4420289855072466, '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': '4533610', 'n_tokens_mistral': 593, 'n_tokens_neox': 570, 'n_words': 102}