<commit_before>"use strict";

angular.module("angular-mobile-docs")
    .factory("AngularGitFetchService", function ($http, $filter) {

        var get = function (url) {
            return $http.get(url);
        }

        var getVersionList = function () {
            return get("https://api.github.com/repos/angular/code.angularjs.org/contents/");
        }

        var getAPI = function(version){
            return get("https://api.github.com/repos/angular/code.angularjs.org/contents/"+version+"/docs/partials/api/?ref=master");
        }

        //https://github.com/angular/code.angularjs.org/blob/master/1.2.0rc1/docs/docs-data.js
        /*
         angular.module('docsData', []).value('NG_PAGES',[
         {"section":"api","id":"index","shortName":"
         */

        return{
            getVersionList: function () {
                return getVersionList();
            },
            getAPI: function (version) {
                return getAPI(version);
            }

        };

    });<commit_msg>service use mock data now<commit_after>"use strict";

angular.module("angular-mobile-docs")
    .factory("AngularGitFetchService", function ($http, $filter) {

        var get = function (url) {
            return $http.get(url);
        }

        var getVersionList = function () {
            //return get("https://api.github.com/repos/angular/code.angularjs.org/contents/");
            return get("mock/versions.json");
        }

        var getAPI = function(version){
            //return get("https://api.github.com/repos/angular/code.angularjs.org/contents/"+version+"/docs/partials/api/?ref=master");
            return get("mock/api.json");
        }

        //https://github.com/angular/code.angularjs.org/blob/master/1.2.0rc1/docs/docs-data.js
        /*
         angular.module('docsData', []).value('NG_PAGES',[
         {"section":"api","id":"index","shortName":"
         */

        return{
            getVersionList: function () {
                return getVersionList();
            },
            getAPI: function (version) {
                return getAPI(version);
            }

        };

    });
{'fraction_non_alphanumeric': 0.16223776223776223, 'fraction_numerical': 0.0037296037296037296, 'mean_word_length': 1.9197278911564626, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '2226880', 'n_tokens_mistral': 627, 'n_tokens_neox': 598, 'n_words': 82}