<commit_before><template>
	<div id="app">
		<list :result="result"></list>
		<pageination :pageSize="rows"
			:total-num = false
			:hep = true
			:btn-type="1"
			:allpage="allpage"
			@current-change="handleCurrentChange"
		>
		</pageination>
	</div>
</template>

<script>
	import pageination from './components/page'
	import list from './components/list'

	export default {
		name: 'app',
		data() {
			return {
				currentpage: 1,
				rows: 5,
				limit:10,
				total: 500,
				result: []
			}
		},
		created() {
       this.getList()
		},
		computed: {
			allpage() {
				return Math.ceil(this.total / this.rows)
			}
		},
		methods: {
			handleCurrentChange(val){
				this.currentpage = val
			},
			getList() {
				var _that = this
				this.$http.get('/topics', {
					params: {
						page: _that.currentpage,
						limit: _that.limit
					}
				})
				.then(function(res) {

					_that.$set(_that.$data,'result',res.data.data)
				})
				.catch(function(error) {
					console.log(error)
				})
			}
		},
		watch:{
			currentpage(val){
				this.getList()
			}
		},
		components: {<commit_msg>修改app.vue<commit_after><template>
	<div id="app">
		<list :result="result"></list>
		<pageination :pageSize="rows"
			:total-num = false
			:hep = true
			:btn-type="1"
			:allpage="allpage"
			@current-change="handleCurrentChange"
		>
		</pageination>
	</div>
</template>

<script>
	import pageination from './components/page'
	import list from './components/list'

	export default {
		name: 'app',
		data() {
			return {
				currentpage: 1,
				rows: 5,
				limit:10,
				total: 500,
				result: []
			}
		},
		created() {
       this.getList()
		},
		computed: {
			allpage() {
				return Math.ceil(this.total / this.rows)
			}
		},
		methods: {
			handleCurrentChange(val){
				this.currentpage = val
			},
			getList() {
				var _that = this
				_that.$http.get('/topics', {
					params: {
						page: _that.currentpage,
						limit: _that.limit
					}
				})
				.then(function(res) {

					_that.$set(_that.$data,'result',res.data.data)
				})
				.catch(function(error) {
					console.log(error)
				})
			}
		},
		watch:{
			currentpage(val){
				this.getList()
			}
		},
		components: {
{'fraction_non_alphanumeric': 0.17084282460136674, 'fraction_numerical': 0.007289293849658315, 'mean_word_length': 2.4420062695924765, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '2581777', 'n_tokens_mistral': 1054, 'n_tokens_neox': 802, 'n_words': 138}