<commit_before>/*
go run cli/monitoring/main.go
cd cli/monitoring && go build && cd ../..
cli/monitoring/monitoring
https://stackoverflow.com/questions/12486691/how-do-i-get-my-golang-web-server-to-run-in-the-background
https://askubuntu.com/questions/38126/how-to-redirect-output-to-screen-as-well-as-a-file
/root/zhanat.site/cli/monitoring/monitoring &
echo $! | tee ../pid.txt
 */
package main

import (
	"net/http"
	"github.com/joho/godotenv"
	"github.com/Zhanat87/go/helpers"
	"os"
	"github.com/pkg/errors"
	"io/ioutil"
	"github.com/graarh/golang-socketio"
	"github.com/graarh/golang-socketio/transport"
	"time"
	"golang.org/x/net/context"
	grpc_local "github.com/Zhanat87/go/grpc"
	"google.golang.org/grpc"
	"io"
)

// go run ~/go/src/github.com/Zhanat87/go/server.go
func checkApiServerLiveness() {
	resp, err := http.Get(os.Getenv("API_BASE_URL") + "liveness")
	helpers.SendErrorIfNeed(err)<commit_msg>deploy<commit_after>/*
go run cli/monitoring/main.go
cd cli/monitoring && go build && cd ../..
cli/monitoring/monitoring
https://stackoverflow.com/questions/12486691/how-do-i-get-my-golang-web-server-to-run-in-the-background
https://askubuntu.com/questions/38126/how-to-redirect-output-to-screen-as-well-as-a-file
/root/zhanat.site/cli/monitoring/monitoring &
echo $! | tee ../pid.txt
ps -ef | grep monitoring
 */
package main

import (
	"net/http"
	"github.com/joho/godotenv"
	"github.com/Zhanat87/go/helpers"
	"os"
	"github.com/pkg/errors"
	"io/ioutil"
	"github.com/graarh/golang-socketio"
	"github.com/graarh/golang-socketio/transport"
	"time"
	"golang.org/x/net/context"
	grpc_local "github.com/Zhanat87/go/grpc"
	"google.golang.org/grpc"
	"io"
)

// go run ~/go/src/github.com/Zhanat87/go/server.go
func checkApiServerLiveness() {
	resp, err := http.Get(os.Getenv("API_BASE_URL") + "liveness")
	helpers.SendErrorIfNeed(err)
{'fraction_non_alphanumeric': 0.17845484221980412, 'fraction_numerical': 0.020674646354733407, 'mean_word_length': 4.151260504201681, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2720968', 'n_tokens_mistral': 818, 'n_tokens_neox': 766, 'n_words': 89}