<commit_before>package com.neucrack.communication;

import java.io.DataInputStream;
import java.io.DataOutputStream;

public class ToDevices {
	private DataInputStream mInStream=null;
	private DataOutputStream mOutStream=null;
	
	public ToDevices(DataInputStream inStream,DataOutputStream outStream){
		mInStream = inStream;
		mOutStream = outStream;
	}
	
	public SignInfo WaitSignIn(){
		SignInfo result = new SignInfo();
		return result;
	}
	public boolean LightControl(String device,boolean isOn){
		return isOn;
	}
	public boolean CurtainControl(String device,boolean isOn){
		return isOn;
	}
	public boolean DoorControl(String device,boolean isOn){
		return isOn;
	}
	public DoorInfo GetDoorStatus(String device){
		DoorInfo door = new DoorInfo();
		return door;
	}
	
	public LightInfo GetLightStatus(String device){
		LightInfo light = new LightInfo();
		return light;
	}
	public CurtainInfo GetCurtainStatus(String device){
		CurtainInfo curtain = new CurtainInfo();
		return curtain;
	}
	public SensorInfo GetSensorData(String device,int SensorName){
		SensorInfo sensor = new SensorInfo();
		return sensor;
	}
	
	class SignInfo{
		boolean isValid;
		String device;
		String userName;
		String passwd;
	}
	class LightInfo{
		boolean isValid;
		boolean isOn;
	}
	class CurtainInfo{
		boolean isValid;
		boolean isOn;
	}
	class SensorInfo{
		boolean isValid;
		int value;
	}
	class DoorInfo{
		boolean isValid;
		boolean isOn;
	}
}<commit_msg>update interface<commit_after>package com.neucrack.communication;

import java.io.DataInputStream;
import java.io.DataOutputStream;

public class ToDevices {
	private DataInputStream mInStream=null;
	private DataOutputStream mOutStream=null;
	
	public ToDevices(DataInputStream inStream,DataOutputStream outStream){
		mInStream = inStream;
		mOutStream = outStream;
	}
	
	public SignInfo WaitSignIn(){
		SignInfo result = new SignInfo();
		return result;
	}
	public boolean LightControl(String device,boolean isOn){
		return isOn;
	}
	public boolean CurtainControl(String device,boolean isOn){
		return isOn;
	}
	public boolean DoorControl(String device,boolean isOn){
		return isOn;
	}
	public boolean GetDoorStatus(String device,DoorInfo door){
		return false;
	}
	
	public boolean GetLightStatus(String device,LightInfo light){
		return false;
	}
	public boolean GetCurtainStatus(String device,CurtainInfo curtain){
		return false;
	}
	public boolean GetSensorData(String device,int SensorName,SensorInfo sensor){
		return false;
	}
	
	class SignInfo{
		public String device;
		public String userName;
		public String passwd;
	}
	class LightInfo{
		public boolean isOn;
	}
	class CurtainInfo{
		public boolean isOn;
	}
	class SensorInfo{
		public int value;
	}
	class DoorInfo{
		public boolean isOn;
	}
}
{'fraction_non_alphanumeric': 0.07580703663402248, 'fraction_numerical': 0.0, 'mean_word_length': 4.931182795698925, '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': '11564', 'n_tokens_mistral': 925, 'n_tokens_neox': 859, 'n_words': 242}