<commit_before><ol class="breadcrumb paths hide row" data-toggle="hsTabs">
    <li class="back-crumb dont-close pull-right">
        <a href="javascript:;">
            <i class="glyphicon glyphicon-remove-sign"></i>
        </a>
    </li>
    <li class="home-crumb active">
        <a href="javascript:;">
            <i class="glyphicon glyphicon-folder-open"></i>
            <b>文件列表</b>
        </a>
    </li>
</ol>
<div class="panes paths">
    <div></div>
    <div>
        <div class="col-xs-3 side-context">
            <div id="centra-fold-tree"
                 data-module="hsTree"
                 data-load-url="centra/file/search.act?type=dir"
                 data-send-urls-0="['centra/file/delete.act','.delete','您确定要删除此目录?']"
                 data-open-urls-0="['centra/manage/file/fold_form.html?path={ID}','.create','@']"
                 data-open-urls-1="['centra/manage/file/fold_edit.html?path={ID}','.modify','@']"
                 data-id-key="path"
                 data-pid-key="path"
                 data-cnum-key="size"
                 data-root-id="6666cd76f96956469e7be39d750cc7d9"
                 data-root-name="目录结构">
                <div class="toolbox btn-group">
                    <button type="button" class="create for-create btn btn-default">添加</button>
                    <button type="button" class="modify for-select btn btn-default">修改</button>
                    <button type="button" class="delete for-select btn btn-warning" title="删除"><span class="glyphicon glyphicon-trash"></span></button>
                </div>
                <div class="treebox"></div>
            </div>
        </div>
        <div class="col-xs-9 main-context"></div>
    </div>
</div>
<script type="text/javascript" src="static/addons/md5/md5.min.js"></script>
<script type="text/javascript">
    (function($) {
        var context = $("#centra-fold-tree").removeAttr ("id");
        var pathMap = {"6666cd76f96956469e7be39d750cc7d9":"/"};

        // path 作为 ID 使用, 进行 md5 编码, 规避 jquery 选择器的语法问题
        context.data("loadBack", function(rst, pid) {
            pid = hex_md5(pid);
            if (rst.list)
            for(var i = 0; i < rst.list.length; i ++) {
                var info = rst.list[i];
                var hash = hex_md5(info.path);
                pathMap [hash]  =  info.path ;
                info.path = hash;
            }
            return HsTree.prototype.loadBack.call(this, rst, pid);
        });
        context.data("sendBack", function(btn, rst, data) {
            data.path = hex_md5(data.path);
            return HsTree.prototype.sendBack.call(this, btn, rst, data);
        });
        context.data("openBack", function(btn, box, data) {
            data.path = hex_md5(data.path);
            return HsTree.prototype.openBack.call(this, btn, box, data);
        });
        context.data("load", function(pid, url, data) {
            pid = pathMap[pid];
            return HsTree.prototype.load.call(this, pid, url, data);
        });
        context.data("send", function(btn, msg, url, data) {
            data.path = pathMap[data.path];
            return HsTree.prototype.send.call(this, btn, msg, url, data);
        });
        context.data("open", function(btn, box, url, data) {
            url = hsSetParam(url,"path",pathMap[hsGetParam(url,"path")]);
            return HsTree.prototype.open.call(this, btn, box, url, data);
        });
        context.on("treeSelect", function(evt, nid, obj) {
            evt.stopPropagation(  );

            var box  = obj.context ;<commit_msg>修复因 open 方法参数规则改变后导致目录名取错数据的问题<commit_after><ol class="breadcrumb paths hide row" data-toggle="hsTabs">
    <li class="back-crumb dont-close pull-right">
        <a href="javascript:;">
            <i class="glyphicon glyphicon-remove-sign"></i>
        </a>
    </li>
    <li class="home-crumb active">
        <a href="javascript:;">
            <i class="glyphicon glyphicon-folder-open"></i>
            <b>文件列表</b>
        </a>
    </li>
</ol>
<div class="panes paths">
    <div></div>
    <div>
        <div class="col-xs-3 side-context">
            <div id="centra-fold-tree"
                 data-module="hsTree"
                 data-load-url="centra/file/search.act?type=dir"
                 data-send-urls-0="['centra/file/delete.act','.delete','您确定要删除此目录?']"
                 data-open-urls-0="['centra/manage/file/fold_form.html?path={ID}','.create','@']"
                 data-open-urls-1="['centra/manage/file/fold_edit.html?path={ID}','.modify','@']"
                 data-id-key="path"
                 data-pid-key="path"
                 data-cnum-key="size"
                 data-root-id="6666cd76f96956469e7be39d750cc7d9"
                 data-root-name="目录结构">
                <div class="toolbox btn-group">
                    <button type="button" class="create for-create btn btn-default">添加</button>
                    <button type="button" class="modify for-select btn btn-default">修改</button>
                    <button type="button" class="delete for-select btn btn-warning" title="删除"><span class="glyphicon glyphicon-trash"></span></button>
                </div>
                <div class="treebox"></div>
            </div>
        </div>
        <div class="col-xs-9 main-context"></div>
    </div>
</div>
<script type="text/javascript">
    (function($) {
        var context = $("#centra-fold-tree").removeAttr ("id");
        var pathMap = {"6666cd76f96956469e7be39d750cc7d9":"/"};

        // path 作为 ID 使用, 进行 md5 编码, 规避 jquery 选择器的语法问题
        context.data("loadBack", function(rst, pid) {
            pid = hex_md5(pid);
            if (rst.list)
            for(var i = 0; i < rst.list.length; i ++) {
                var info = rst.list[i];
                var hash = hex_md5(info.path);
                pathMap [hash]  =  info.path ;
                info.path = hash;
            }
            return HsTree.prototype.loadBack.call(this, rst, pid);
        });
        context.data("sendBack", function(btn, rst, data) {
            data.path = hex_md5(data.path);
            return HsTree.prototype.sendBack.call(this, btn, rst, data);
        });
        context.data("openBack", function(btn, box, data) {
            data.path = hex_md5(data.path);
            return HsTree.prototype.openBack.call(this, btn, box, data);
        });
        context.data("load", function(pid, url, data) {
            pid = pathMap[pid];
            return HsTree.prototype.load.call(this, pid, url, data);
        });
        context.data("send", function(btn, msg, url, data) {
            data.path = pathMap[data.path];
            return HsTree.prototype.send.call(this, btn, msg, url, data);
        });
        context.data("open", function(btn, box, url, data) {
            data.path = pathMap[data.path];
            return HsTree.prototype.open.call(this, btn, box, url, data);
        });
        context.on("treeSelect", function(evt, nid, obj) {
            evt.stopPropagation(  );

            var box  = obj.context ;
{'fraction_non_alphanumeric': 0.1646055437100213, 'fraction_numerical': 0.015920398009950248, 'mean_word_length': 1.932888703626511, 'pattern_counts': {'":': 2, '<': 89, '<?xml version=': 0, '>': 87, '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': '1447882', 'n_tokens_mistral': 2361, 'n_tokens_neox': 2311, 'n_words': 401}