<commit_before>/*global ons:false */
/*global app:false */
var _app_ready = function ($scope) {

    $scope.set_swipeable(false);

    // 如果要刪除profile，則執行這個
    //$scope.DB.drop_table(["profile", "log", "flashcard", "status", "list"]); return this;

    $scope.flashcard_setup(function () {
        // 測試用
        //                $scope.set_swipeable(true);
        //app.navi.replacePage("note.html", {animation: 'none'}); return this;

        // 20151126
        //$scope.ctl_learn_flashcard.status.review_stack = [6, 10, 11, 6, 10, 11, 6, 10, 11, 6, 10, 11, 6, 10, 11];
        //$scope.ctl_activity.enter_from_target();return this;

        // 測試：進入單字學習頁面
        //$scope.ctl_learn_flashcard.enter();return this;
        
//        setTimeout(function () {
//
//            $scope.ctl_learn_flashcard.var.learn_flashcard.note = "121212\n121212\n121212\n121212\n121212\n121212\n121212\n121212\n";
//            $scope.$digest();
//            $scope.ctl_note.enter();
//        }, 500);
        //setTimeout(function () {
        //    app.menu.open();
        //}, 500);

        // 測試：進入設定頁面
        //app.navi.replacePage("setting.html");
        //return this;

        // debug: 進入測試頁面
        //$scope.ctl_test_select.status.stack = [1, 2, 3];
        //$scope.ctl_test_select.next(false);return this;
        
        // debug: 進入推薦頁面
        $scope.ctl_target.init_recommend_target_data(function () {
            app.navi.replacePage("target_recommend.html");
        }); return this;

        if ($scope.db_profile.is_exists() === false) {
            //$scope.profile = $scope.profile_mock;
<commit_msg>1128 已經拆開成多個任務 建立target_recommend.html close #38<commit_after>/*global ons:false */
/*global app:false */
var _app_ready = function ($scope) {

    $scope.set_swipeable(false);

    // 如果要刪除profile，則執行這個
    //$scope.DB.drop_table(["profile", "log", "flashcard", "status", "list"]); return this;

    $scope.flashcard_setup(function () {
        // 測試用
        //                $scope.set_swipeable(true);
        //app.navi.replacePage("note.html", {animation: 'none'}); return this;

        // 20151126
        //$scope.ctl_learn_flashcard.status.review_stack = [6, 10, 11, 6, 10, 11, 6, 10, 11, 6, 10, 11, 6, 10, 11];
        //$scope.ctl_activity.enter_from_target();return this;

        // 測試：進入單字學習頁面
        //$scope.ctl_learn_flashcard.enter();return this;
        
//        setTimeout(function () {
//
//            $scope.ctl_learn_flashcard.var.learn_flashcard.note = "121212\n121212\n121212\n121212\n121212\n121212\n121212\n121212\n";
//            $scope.$digest();
//            $scope.ctl_note.enter();
//        }, 500);
        //setTimeout(function () {
        //    app.menu.open();
        //}, 500);

        // 測試：進入設定頁面
        //app.navi.replacePage("setting.html");
        //return this;

        // debug: 進入測試頁面
        //$scope.ctl_test_select.status.stack = [1, 2, 3];
        //$scope.ctl_test_select.next(false);return this;
        
        // debug: 進入推薦頁面
        //$scope.ctl_target.init_recommend_target_data(function () {
        //    app.navi.replacePage("target_recommend.html");
        //}); return this;

        if ($scope.db_profile.is_exists() === false) {
            //$scope.profile = $scope.profile_mock;

{'fraction_non_alphanumeric': 0.17250838159097837, 'fraction_numerical': 0.05669003352636391, 'mean_word_length': 2.113851992409867, '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': '4782032', 'n_tokens_mistral': 1330, 'n_tokens_neox': 1224, 'n_words': 162}