<commit_before>package main

import (
	"strings"

	"github.com/gin-gonic/gin"
	"go.bug.st/serial.v1"
)

func infoHandler(c *gin.Context) {
	host := c.Request.Host
	parts := strings.Split(host, ":")
	host = parts[0]

	c.JSON(200, gin.H{
		"version": version,
		"http":    "http://" + host + port,
		"https":   "https://localhost" + portSSL,
		"ws":      "ws://" + host + port,
		"wss":     "wss://localhost" + portSSL,
	})
}

func pauseHandler(c *gin.Context) {
	go func() {
		ports, _ := serial.GetPortsList()
		for _, element := range ports {<commit_msg>expose origin end update flags when callinig /info<commit_after>package main

import (
	"strings"

	"github.com/gin-gonic/gin"
	"go.bug.st/serial.v1"
)

func infoHandler(c *gin.Context) {
	host := c.Request.Host
	parts := strings.Split(host, ":")
	host = parts[0]

	c.JSON(200, gin.H{
		"version": version,
		"http":    "http://" + host + port,
		"https":   "https://localhost" + portSSL,
		"ws":      "ws://" + host + port,
		"wss":     "wss://localhost" + portSSL,
		"origins": origins,
		"update_url": updateUrl,
	})
}

func pauseHandler(c *gin.Context) {
	go func() {
		ports, _ := serial.GetPortsList()
		for _, element := range ports {
{'fraction_non_alphanumeric': 0.1948160535117057, 'fraction_numerical': 0.008361204013377926, 'mean_word_length': 3.2903225806451615, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6727444', 'n_tokens_mistral': 492, 'n_tokens_neox': 465, 'n_words': 99}