<commit_before>/*

*/

package controllers

import (
	"github.com/astaxie/beego"
	"github.com/dockercn/docker-bucket/markdown"
)

type ArticleController struct {
	beego.Controller
}

func (this *ArticleController) GetArticle() {
	//加载markdown文件
	doc := new(markdown.Doc)
	doc.Storage = "/tmp/docs"
	doc.Db = 6
	items, err := doc.Query(false, "private-docker-registry-with-nginx")
	if err != nil {
		beego.Trace(err)
	}
	this.TplNames = "article.html"
	this.Data["content"] = items[0].Content
	this.Render()
}
<commit_msg>去掉指定数据库连接部分<commit_after>/*

*/

package controllers

import (
	"github.com/astaxie/beego"
	"github.com/dockercn/docker-bucket/markdown"
)

type ArticleController struct {
	beego.Controller
}

func (this *ArticleController) GetArticle() {
	//加载markdown文件
	doc := new(markdown.Doc)
	items, err := doc.Query(false, "private-docker-registry-with-nginx")
	if err != nil {
		beego.Trace(err)
	}
	this.TplNames = "article.html"
	this.Data["content"] = items[0].Content
	this.Render()
}

{'fraction_non_alphanumeric': 0.15784215784215785, 'fraction_numerical': 0.002997002997002997, 'mean_word_length': 4.358288770053476, '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': '773628', 'n_tokens_mistral': 405, 'n_tokens_neox': 386, 'n_words': 64}