<commit_before>package io.tetrapod.raft.storage;

import io.tetrapod.raft.Command;

import java.io.*;

public class LockCommand<T extends StorageStateMachine<T>> implements Command<T> {
   public static final int COMMAND_ID = 4;

   private String          key;
   private String          uuid;
   private long            leaseForMillis;
   private long            curTime;
   private boolean         acquired;

   public LockCommand() {}

   public LockCommand(String key, String uuid, long expiry, long curTime) {
      this.key = key;
      this.leaseForMillis = expiry;
      this.uuid = uuid;
   }

   @Override
   public void applyTo(T state) {
      acquired = state.lock(key, uuid, leaseForMillis, curTime);<commit_msg>Fix megaderp in LockCommand constructor<commit_after>package io.tetrapod.raft.storage;

import io.tetrapod.raft.Command;

import java.io.*;

public class LockCommand<T extends StorageStateMachine<T>> implements Command<T> {
   public static final int COMMAND_ID = 4;

   private String          key;
   private String          uuid;
   private long            leaseForMillis;
   private long            curTime;
   private boolean         acquired;

   public LockCommand() {}

   public LockCommand(String key, String uuid, long expiry, long curTime) {
      this.key = key;
      this.leaseForMillis = expiry;
      this.uuid = uuid;
      this.curTime = curTime;
   }

   @Override
   public void applyTo(T state) {
      acquired = state.lock(key, uuid, leaseForMillis, curTime);
{'fraction_non_alphanumeric': 0.08278145695364239, 'fraction_numerical': 0.0013245033112582781, 'mean_word_length': 2.7493796526054592, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6806721', 'n_tokens_mistral': 444, 'n_tokens_neox': 437, 'n_words': 127}