<commit_before>package com.luojilab.share.kotlin

import android.app.Activity
import android.os.Bundle
import android.widget.TextView
import com.luojilab.component.componentlib.service.AutowiredService
import com.luojilab.componentservice.share.bean.Author
import com.luojilab.router.facade.annotation.Autowired
import com.luojilab.router.facade.annotation.RouteNode

/**
 * Created by mrzhang on 2017/12/29.
 */
@RouteNode(path = "/shareMagazine", desc = "分享杂志页面")
class ShareMessageActivity : Activity() {

    @Autowired(name = "bookName")
    @JvmField
    var magazineName: String? = null

    @Autowired
    @JvmField
    var author: Author? = null

    var tvShareTitle: TextView? = null
    var tvShareBook: TextView? = null
    var tvAuthor: TextView? = null
    var tvCounty: TextView? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        AutowiredService.Factory.getInstance().create().autowire(this)
        setContentView(R.layout.kotlin_activity_share)

        tvShareTitle = findViewById<TextView>(R.id.share_title)
        tvShareBook = findViewById<TextView>(R.id.share_tv_tag)
        tvAuthor = findViewById<TextView>(R.id.share_tv_author)
        tvCounty = findViewById<TextView>(R.id.share_tv_county)


        tvShareTitle?.text = "Magazine"
        tvShareBook?.setText(magazineName)
        tvAuthor?.setText(author?.name ?: "zmq")
        tvCounty!!.setText(author?.county ?: "China")

    }

}<commit_msg>remove findViewById in kotlin activity file<commit_after>package com.luojilab.share.kotlin

import android.app.Activity
import android.os.Bundle
import com.luojilab.component.componentlib.service.AutowiredService
import com.luojilab.componentservice.share.bean.Author
import com.luojilab.router.facade.annotation.Autowired
import com.luojilab.router.facade.annotation.RouteNode
import kotlinx.android.synthetic.main.kotlin_activity_share.*

/**
 * Created by mrzhang on 2017/12/29.
 */
@RouteNode(path = "/shareMagazine", desc = "分享杂志页面")
class ShareMessageActivity : Activity() {

    @Autowired(name = "bookName")
    @JvmField
    var magazineName: String? = null

    @Autowired
    @JvmField
    var author: Author? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        AutowiredService.Factory.getInstance().create().autowire(this)
        setContentView(R.layout.kotlin_activity_share)

        share_title.text = "Magazine"
        share_tv_tag.setText(magazineName)
        share_tv_author.setText(author?.name ?: "zmq")
        share_tv_county.setText(author?.county ?: "China")

    }

}
{'fraction_non_alphanumeric': 0.10881024096385543, 'fraction_numerical': 0.006024096385542169, 'mean_word_length': 3.994360902255639, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1569703', 'n_tokens_mistral': 862, 'n_tokens_neox': 833, 'n_words': 139}