<commit_before>'use strict';

let angular = require('angular');

module.exports = angular.module('spinnaker.core.ci.jenkins.igor.service', [
  require('../../config/settings.js'),
  require('exports?"restangular"!imports?_=lodash!restangular'),
])
  .factory('igorService', function (settings, Restangular) {

    function listMasters() {
      return Restangular.one('builds').getList();
    }

    function listJobsForMaster(master) {
      return Restangular.one('builds', master).all('jobs').getList();
    }

    function listBuildsForJob(master, job) {
      return Restangular.one('builds', master).one('jobs', job).all('builds').getList();
    }

    function getJobConfig(master, job){
      return Restangular.one('builds', master).one('jobs', job).get();
    }

    return {
      listMasters: listMasters,
      listJobsForMaster: listJobsForMaster,<commit_msg>Update gate Jenkins endpoints for /v2/ changes<commit_after>'use strict';

let angular = require('angular');

module.exports = angular.module('spinnaker.core.ci.jenkins.igor.service', [
  require('../../config/settings.js'),
  require('exports?"restangular"!imports?_=lodash!restangular'),
])
  .factory('igorService', function (settings, Restangular) {
    var RestangularNoEncoding;

    RestangularNoEncoding = Restangular.withConfig(function(RestangularConfigurer) {
      RestangularConfigurer.setEncodeIds(false);
    });

    function listMasters() {
      return Restangular.one('v2').one('builds').getList();
    }

    function listJobsForMaster(master) {
      return Restangular.one('v2').one('builds', master).all('jobs').getList();
    }

    function listBuildsForJob(master, job) {
      return RestangularNoEncoding.one('v2').one('builds', master).one('builds').one(job).getList();
    }

    function getJobConfig(master, job){
      return RestangularNoEncoding.one('v2').one('builds', master).one('jobs', job).get();
    }

    return {
      listMasters: listMasters,
      listJobsForMaster: listJobsForMaster,
{'fraction_non_alphanumeric': 0.16109725685785536, 'fraction_numerical': 0.0024937655860349127, 'mean_word_length': 4.378016085790884, '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': '3515717', 'n_tokens_mistral': 625, 'n_tokens_neox': 604, 'n_words': 91}