<commit_before>import grails.plugins.jsonapivariants.Api

class User {

	static hasMany = [
		pets: Pet
	]

	//Annotating a property with @Api and no additional parameters
	//means this property should appear in all API versions
	@Api
	String screenName
	
	
	@Api('userSettings')
	String email
	String getEmail() {
		"${screenName}<${email}>"
	}
	
	@Api(['userSettings', 'detailedInformation', 'social'])
	String twitterUsername
	
	@Api(['detailedInformation', 'userSettings'])
	Set pets
	
	@Api('detailedInformation')
	Integer getNumberOfTicklyAnimals() {
		Pets.countAllWhereIsLikesTickling()
	}
}<commit_msg>Fixed a silly error in the example domain class.<commit_after>import grails.plugins.jsonapivariants.Api

class User {

	static hasMany = [
		pets: Pet
	]

	//Annotating a property with @Api and no additional parameters
	//means this property should appear in all API versions
	@Api
	String screenName
	
	
	@Api('userSettings')
	String email
	String getEmail() {
		"${screenName}<${email}>"
	}
	
	@Api(['userSettings', 'detailedInformation', 'social'])
	String twitterUsername
	
	@Api(['detailedInformation', 'userSettings'])
	Set pets
	
	@Api('detailedInformation')
	Integer getNumberOfTicklyAnimals() {
		pets.count { it.likesTickling }
	}
}
{'fraction_non_alphanumeric': 0.11652035115722266, 'fraction_numerical': 0.0, 'mean_word_length': 4.859813084112149, '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': '5805229', 'n_tokens_mistral': 423, 'n_tokens_neox': 387, 'n_words': 105}