<commit_before>// $G $D/$F.go

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

type T struct {
  s string;
}


func main() {
  s := "";
  l1 := len(s);
  l2 := len(T.s);  // BUG: cannot take len() of a string field
}

/*
uetli:/home/gri/go/test/bugs gri$ 6g bug057.go 
bug057.go:13: syntax error
*/
<commit_msg>code had syntax error masking real bug<commit_after>// $G $D/$F.go

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

type T struct {
  s string;
}


func main() {
  s := "";
  l1 := len(s);
  var t T;
  l2 := len(T.s);  // BUG: cannot take len() of a string field
}

/*
uetli:/home/gri/go/test/bugs gri$ 6g bug057.go 
bug057.go:14: syntax error
*/

{'fraction_non_alphanumeric': 0.13956043956043956, 'fraction_numerical': 0.03296703296703297, 'mean_word_length': 2.7644628099173554, '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': '5244978', 'n_tokens_mistral': 358, 'n_tokens_neox': 328, 'n_words': 129}