<commit_before>var a = 1;
var go = false;



def work() {
  var b = 2;

  begin {
    while (!go);
    b = 2 * a;
    writeln( "b is ", b);
    a = 2 * b;
  }
}


def jam_records() {
  cobegin {
    work();
    begin {
      while (a == 1);
      work();
    }
  }
}


jam_records();
go = true;
<commit_msg>spin wait to sync fix<commit_after>var go: sync bool;

var a: sync int;

var c = 1;

def work() {
  var b = 2;

  begin {
    go;
    b = 2 * c;
    writeln("b is ", b);
    c = 2 * b;
    a = 2 * b;
    go = true;
  }
}


def jam_records() {
  cobegin {
    work();
    begin {
      a;
      work();
    }
  }
}


jam_records();
go = true;

{'fraction_non_alphanumeric': 0.1694915254237288, 'fraction_numerical': 0.015408320493066256, 'mean_word_length': 1.6209677419354838, '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': '2875444', 'n_tokens_mistral': 296, 'n_tokens_neox': 277, 'n_words': 82}