<commit_before>import * as AdhConfig from "../Config/Config";
import * as AdhPermissions from "../Permissions/Permissions";
import * as AdhUtil from "../Util/Util";

var pkgLocation = "/ResourceActions";

export var resourceActions = (
adhPermissions : AdhPermissions.Service,
	adhConfig: AdhConfig.IService
) => {
    return {
        restrict: "E",
        scope: {
        	path: "=",
        	editurl: "@",
        	reportfunction: "=?",
        	sharefunction: "=?",
        	deletefunction: "=?",
        	printfunction: "=?"

        },
		templateUrl: adhConfig.pkg_path + pkgLocation + "/ResourceActions.html",
        link: (scope, element) => {
			adhPermissions.bindScope(scope, () => scope.path && AdhUtil.parentPath(scope.path), "proposalItemOptions");
			console.log(scope);
        }
    };
};<commit_msg>gardening<commit_after>import * as AdhConfig from "../Config/Config";
import * as AdhPermissions from "../Permissions/Permissions";
import * as AdhUtil from "../Util/Util";

var pkgLocation = "/ResourceActions";

export var resourceActions = (
adhPermissions : AdhPermissions.Service,
	adhConfig: AdhConfig.IService
) => {
    return {
        restrict: "E",
        scope: {
        	path: "=",
        	editurl: "@",
        	reportfunction: "=?",
        	sharefunction: "=?",
        	deletefunction: "=?",
        	printfunction: "=?"

        },
		templateUrl: adhConfig.pkg_path + pkgLocation + "/ResourceActions.html",
        link: (scope, element) => {
			adhPermissions.bindScope(scope, () => scope.path && AdhUtil.parentPath(scope.path), "proposalItemOptions");
        }
    };
};

{'fraction_non_alphanumeric': 0.15737298636926889, 'fraction_numerical': 0.0, 'mean_word_length': 2.836104513064133, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1378868', 'n_tokens_mistral': 506, 'n_tokens_neox': 492, 'n_words': 93}