<commit_before>(function() {
  'use strict';

  angular.module('app.resources')
    .factory('OdlData', OdlDataFactory);

  /** @ngInject */
  function OdlDataFactory($resource) {
    var base = '/api/v1/odl/providers/:id/:action';
    var OdlData = $resource(base, {action: '@action', id: '@id'},{
      'save': {
        method: 'POST',
        isArray: true
      },
      'delete': {
        method: 'DELETE',
        isArray: true
      }
    });

    OdlData.networkTopology = networkTopology;
    OdlData.addRule = addRule;
    OdlData.editRule = editRule;
    OdlData.removeRule = removeRule;
    OdlData.shiftDropRule = shiftDropRule;

    return OdlData;

    function networkTopology(id) {
      return OdlData.query({id: id, action: 'network_topology'}).$promise;
    }

    function shiftDropRule(id) {
      return OdlData.query({id: id, action: 'network_topology'}).$promise;
    }

    function addRule(id, rule) {
      return OdlData.save({id: id, action: 'add_rule', rule: rule}).$promise;
    }

    function editRule(id, rule) {
      return OdlData.save({id: id, action: 'edit_rule', rule: rule}).$promise;
    }

    function removeRule(id, rule_num) {<commit_msg>Correct API ref for shift drop rule data factory<commit_after>(function() {
  'use strict';

  angular.module('app.resources')
    .factory('OdlData', OdlDataFactory);

  /** @ngInject */
  function OdlDataFactory($resource) {
    var base = '/api/v1/odl/providers/:id/:action';
    var OdlData = $resource(base, {action: '@action', id: '@id'},{
      'save': {
        method: 'POST',
        isArray: true
      },
      'delete': {
        method: 'DELETE',
        isArray: true
      }
    });

    OdlData.networkTopology = networkTopology;
    OdlData.addRule = addRule;
    OdlData.editRule = editRule;
    OdlData.removeRule = removeRule;
    OdlData.shiftDropRule = shiftDropRule;

    return OdlData;

    function networkTopology(id) {
      return OdlData.query({id: id, action: 'network_topology'}).$promise;
    }

    function shiftDropRule(id) {
      return OdlData.query({id: id, action: 'shift_drop_rule'}).$promise;
    }

    function addRule(id, rule) {
      return OdlData.save({id: id, action: 'add_rule', rule: rule}).$promise;
    }

    function editRule(id, rule) {
      return OdlData.save({id: id, action: 'edit_rule', rule: rule}).$promise;
    }

    function removeRule(id, rule_num) {
{'fraction_non_alphanumeric': 0.14950166112956811, 'fraction_numerical': 0.0008305647840531562, 'mean_word_length': 2.9686985172981877, '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': '6196905', 'n_tokens_mistral': 823, 'n_tokens_neox': 807, 'n_words': 164}