<commit_before>package org.zooper.remosko.rest.resources;

import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.PointerInfo;
import java.util.logging.Logger;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.zooper.remosko.controller.PcControllerFactory;
import org.zooper.remosko.controller.mouses.Mouse;
import org.zooper.remosko.controller.mouses.Mouse.BTN_ACTION;
import org.zooper.remosko.model.Control;
import org.zooper.remosko.model.transport.ActiveApp;
import org.zooper.remosko.model.transport.PcInfo;
import org.zooper.remosko.utils.Constants;

/**
 * APIs to control the pc.
 * 
 * GET /pc												//return PcInfo
 * 
 * POST		/pc/control/{control}						//send the command VOLMUTE to the pc
 * 
 * POST		/pc/keyboard/control/{control}				//es KBD_UP
 * POST		/pc/keyboard/{type}							//type on keyboard the string s
 * POST		/pc/keyboard			JSON String			//type on keyboard the string s
 * 
 * POST		/pc/mouse/control/{control}					//es MOUSE_LEFT
 * PUT		/pc/mouse/912x22
 * PUT		/pc/mouse/x22
 * PUT		/pc/mouse/912
 * PUT		/pc/mouse/32%x22%
 * PUT		/pc/mouse/-22
 * PUT		/pc/mouse/wheel/+912x-22	?
 * POST		/pc/mouse/buttons/1/click	?
 * POST		/pc/mouse/buttons/1/hold	?<commit_msg>fixed wrong comment<commit_after>package org.zooper.remosko.rest.resources;

import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.PointerInfo;
import java.util.logging.Logger;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.zooper.remosko.controller.PcControllerFactory;
import org.zooper.remosko.controller.mouses.Mouse;
import org.zooper.remosko.controller.mouses.Mouse.BTN_ACTION;
import org.zooper.remosko.model.Control;
import org.zooper.remosko.model.transport.ActiveApp;
import org.zooper.remosko.model.transport.PcInfo;
import org.zooper.remosko.utils.Constants;

/**
 * APIs to control the pc.
 * 
 * GET /pc												//return PcInfo
 * 
 * POST		/pc/control/{control}						//send the command VOLMUTE to the pc
 * 
 * POST		/pc/keyboard/control/{control}				//es KBD_UP
 * POST		/pc/keyboard/{type}							//type on keyboard the string s
 * POST		/pc/keyboard			JSON String			//type on keyboard the string s
 * 
 * POST		/pc/mouse/control/{control}					//es MOUSE_LEFT
 * PUT		/pc/mouse/912x22
 * PUT		/pc/mouse/x22
 * PUT		/pc/mouse/912
 * PUT		/pc/mouse/32%x22%
 * PUT		/pc/mouse/-22
 * PUT		/pc/mouse/wheel/+12    	?
 * POST		/pc/mouse/buttons/1/click	?
 * POST		/pc/mouse/buttons/1/hold	?
{'fraction_non_alphanumeric': 0.13511683034202507, 'fraction_numerical': 0.014561462919065358, 'mean_word_length': 3.318713450292398, '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': '14973', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1132, 'n_words': 210}