<commit_before>package uk.ac.cam.cl.dtg.teaching.api;

import java.util.List;
import java.util.Map;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;

public interface DashboardApi {
	
	// Settings
	
	@GET @Path("/api/account/")
	public Settings getSettings(@QueryParam("userId") String user, @QueryParam("key") String key);
	
	public static class Settings {
		private List<MenuItem> sidebar;
		private Map<String, Object> user;
		private String error;
		
		public List<MenuItem> getSidebar() {return sidebar;}
		public void setSidebar(List<MenuItem> sidebar) {this.sidebar = sidebar;}
		
		public Map<String, Object> getUser() {return user;}
		public void setUser(Map<String, Object> user) {this.user = user;}
		
		public String getError() {return error;}
		public void setError(String error) {this.error = error;}
	}
	
	public static class MenuItem {
		private String name;
		private String icon;
		private String section;
		private int iconType;
		private int notificationCount;
		private List<SubMenuItem> links;
		
		public String getName() {return name;}
		public void setName(String name) {this.name = name;}
		
		public String getIcon() {return icon;}
		public void setIcon(String icon) {this.icon = icon;}
		
		public String getSection() {return section;}
		public void setSection(String section) {this.section = section;}
		
		public int getIconType() {return iconType;}
		public void setIconType(int iconType) {this.iconType = iconType;}
		
		public List<SubMenuItem> getLinks() {return links;}
		public void setLinks(List<SubMenuItem> links) {this.links = links;}
		
		public int getNotificationCount() {return notificationCount;}
		public void setNotificationCount(int notificationCount) {this.notificationCount = notificationCount;}
	}
	<commit_msg>Added user and changed to settings<commit_after>package uk.ac.cam.cl.dtg.teaching.api;

import java.util.List;
import java.util.Map;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;

public interface DashboardApi {
	
	// Settings
	
	@GET @Path("/api/account/")
	public Settings getSettings(@QueryParam("userId") String user, @QueryParam("key") String key);
	
	public static class Settings {
		private List<MenuItem> sidebar;
		private Map<String, Object> settings;
		private String user;
		private String error;
		private List<String> keys;
		
		public List<MenuItem> getSidebar() {return sidebar;}
		public void setSidebar(List<MenuItem> sidebar) {this.sidebar = sidebar;}
		
		public Map<String, Object> getSettings() {return settings;}
		public void setSettings(Map<String, Object> settings) {this.settings = settings;}
		
		public String getError() {return error;}
		public void setError(String error) {this.error = error;}
		
		public String getUser() {return user;}
		public void setUser(String user) {this.user = user;}
		
		public List<String> getKeys() {return keys;}
		public void setKeys(List<String> keys) {this.keys = keys;}
	}
	
	public static class MenuItem {
		private String name;
		private String icon;
		private String section;
		private int iconType;
		private int notificationCount;
		private List<SubMenuItem> links;
		
		public String getName() {return name;}
		public void setName(String name) {this.name = name;}
		
		public String getIcon() {return icon;}
		public void setIcon(String icon) {this.icon = icon;}
		
		public String getSection() {return section;}
		public void setSection(String section) {this.section = section;}
		
		public int getIconType() {return iconType;}
		public void setIconType(int iconType) {this.iconType = iconType;}
		
		public List<SubMenuItem> getLinks() {return links;}
		public void setLinks(List<SubMenuItem> links) {this.links = links;}
		
		public int getNotificationCount() {return notificationCount;}
		public void setNotificationCount(int notificationCount) {this.notificationCount = notificationCount;}
	}
	
{'fraction_non_alphanumeric': 0.10911846425865117, 'fraction_numerical': 0.0, 'mean_word_length': 4.755813953488372, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '5010846', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1111, 'n_words': 363}