<commit_before>class GithubSyncJob < BackgroundJob
  @queue = :default

  self.timeout = 60

  extend Resque::Plugins::Workers::Lock

  def self.lock_workers(params)
    "github-sync-#{params[:stack_id]}"
  end

  def perform(params)
    @stack = Stack.find(params[:stack_id])

    new_commits, shared_parent = fetch_missing_commits(@stack.github_commits)

    new_commit_ids = []

    @stack.transaction do
      shared_parent.try(:detach_children!)<commit_msg>Dead code...<commit_after>class GithubSyncJob < BackgroundJob
  @queue = :default

  self.timeout = 60

  extend Resque::Plugins::Workers::Lock

  def self.lock_workers(params)
    "github-sync-#{params[:stack_id]}"
  end

  def perform(params)
    @stack = Stack.find(params[:stack_id])

    new_commits, shared_parent = fetch_missing_commits(@stack.github_commits)

    @stack.transaction do
      shared_parent.try(:detach_children!)
{'fraction_non_alphanumeric': 0.12026726057906459, 'fraction_numerical': 0.004454342984409799, 'mean_word_length': 4.515337423312883, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4091920', 'n_tokens_mistral': 307, 'n_tokens_neox': 291, 'n_words': 47}