<commit_before>package net.yslibrary.monotweety.activity.shortcut

import android.app.Activity
import android.os.Bundle
import android.support.v4.content.pm.ShortcutInfoCompat
import android.support.v4.content.pm.ShortcutManagerCompat
import android.support.v4.graphics.drawable.IconCompat
import net.yslibrary.monotweety.R

class CreateShortcutActivity : Activity() {

  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)

    val shortcut = ShortcutActivity.callingIntent(applicationContext)

//    val resultIntent = Intent()
//    resultIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, getString(R.string.title_shortcut_editor))
//    val iconRes = Intent.ShortcutIconResource.fromContext(applicationContext, R.drawable.ic_app)
//    resultIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconRes)
//    resultIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut)<commit_msg>set action<commit_after>package net.yslibrary.monotweety.activity.shortcut

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v4.content.pm.ShortcutInfoCompat
import android.support.v4.content.pm.ShortcutManagerCompat
import android.support.v4.graphics.drawable.IconCompat
import net.yslibrary.monotweety.R

class CreateShortcutActivity : Activity() {

  override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)

    val shortcut = ShortcutActivity.callingIntent(applicationContext)
    shortcut.action = Intent.ACTION_EDIT
{'fraction_non_alphanumeric': 0.08794788273615635, 'fraction_numerical': 0.003908794788273616, 'mean_word_length': 6.211267605633803, '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': '2019894', 'n_tokens_mistral': 462, 'n_tokens_neox': 442, 'n_words': 67}