<commit_before>//
//  BlogRefetchService.swift
//  EbloVaporServer
//
//  Created by <NAME> on 2017-05-27.
//
//

import Foundation
import Dispatch

/// The service that refetchs blogs.
class BlogRefetchService {
  
  /// The blog crawling service.
  var blogCrawlingService: BlogCrawlingService = BlogCrawlingService()
  
  /// Start service
  func startService() {
    print("--- Start new service \(Date())")
    self.blogCrawlingService.startService(automaticallySaveWhenCrawlingFinished: true)
    DispatchQueue.global().asyncAfter(deadline: .now() + 60 * 1, execute: {
      print("--- Will start new service")
      self.startService()
    })
  }
}
<commit_msg>Adjust perioadically fetch time.<commit_after>//
//  BlogRefetchService.swift
//  EbloVaporServer
//
//  Created by <NAME> on 2017-05-27.
//
//

import Foundation
import Dispatch

/// The service that refetchs blogs.
class BlogRefetchService {
  
  /// The blog crawling service.
  var blogCrawlingService: BlogCrawlingService = BlogCrawlingService()
  
  /// Start service
  func startService() {
    print("--- Start new service \(Date())")
    self.blogCrawlingService.startService(automaticallySaveWhenCrawlingFinished: true)
    DispatchQueue.global().asyncAfter(deadline: .now() + 60 * 15, execute: {
      print("--- Will start new service")
      self.startService()
    })
  }
}

{'fraction_non_alphanumeric': 0.1290560471976401, 'fraction_numerical': 0.01696165191740413, 'mean_word_length': 3.2274143302180685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2978235', 'n_tokens_mistral': 442, 'n_tokens_neox': 416, 'n_words': 101}