<commit_before>package com.iamdigger.magictumblr.wcintf.job;

import com.iamdigger.magictumblr.wcintf.cache.Top5AssetCache;
import com.iamdigger.magictumblr.wcintf.service.interfaces.MagicAssetService;
import com.iamdigger.magictumblr.wcintf.utils.RuntimeUtil;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author Sam
 * @since 3.0.0
 */
@Component
public class Top5AssetLoader {

  private static Logger logger = LoggerFactory.getLogger(Top5AssetLoader.class);

  @Resource
  private MagicAssetService magicAssetService;

  @Resource
  private Top5AssetCache top5AssetCache;

  @Scheduled(cron = "0 */1 * * * *")<commit_msg>feat: add Top5Asset cron loader which will be triggered every 1hour<commit_after>package com.iamdigger.magictumblr.wcintf.job;

import com.iamdigger.magictumblr.wcintf.cache.Top5AssetCache;
import com.iamdigger.magictumblr.wcintf.service.interfaces.MagicAssetService;
import com.iamdigger.magictumblr.wcintf.utils.RuntimeUtil;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author Sam
 * @since 3.0.0
 */
@Component
public class Top5AssetLoader {

  private static Logger logger = LoggerFactory.getLogger(Top5AssetLoader.class);

  @Resource
  private MagicAssetService magicAssetService;

  @Resource
  private Top5AssetCache top5AssetCache;

  @Scheduled(cron = "0 0 */1 * * *")
{'fraction_non_alphanumeric': 0.09815950920245399, 'fraction_numerical': 0.016564417177914112, 'mean_word_length': 5.881856540084388, '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': '424508', 'n_tokens_mistral': 548, 'n_tokens_neox': 514, 'n_words': 95}