<commit_before>package console

import (
	"encoding/json"
	"errors"
	"io/ioutil"
	"log"
	"os"
	"os/exec"
	"path/filepath"
	"strings"

	"github.com/leancloud/lean-cli/lean/utils"
)

type filesPattern struct {
	Includes []string
	Excludes []string
}

// Runtime stands for a language runtime
type Runtime struct {
	Name       string
	Exec       string
	Args       []string
	WatchFiles []string
	Envs       []string
	// DeployFiles is the patterns for source code to deploy to the remote server
	DeployFiles filesPattern
}

// Run the project, and watch file changes
func (runtime *Runtime) Run() error {
	command := exec.Command(runtime.Exec, runtime.Args...)
	command.Stdout = os.Stdout
	command.Stderr = os.Stderr

	for _, env := range runtime.Envs {
		command.Env = append(command.Env, env)<commit_msg>fix: pass current shell's env to development server<commit_after>package console

import (
	"encoding/json"
	"errors"
	"io/ioutil"
	"log"
	"os"
	"os/exec"
	"path/filepath"
	"strings"

	"github.com/leancloud/lean-cli/lean/utils"
)

type filesPattern struct {
	Includes []string
	Excludes []string
}

// Runtime stands for a language runtime
type Runtime struct {
	Name       string
	Exec       string
	Args       []string
	WatchFiles []string
	Envs       []string
	// DeployFiles is the patterns for source code to deploy to the remote server
	DeployFiles filesPattern
}

// Run the project, and watch file changes
func (runtime *Runtime) Run() error {
	command := exec.Command(runtime.Exec, runtime.Args...)
	command.Env = os.Environ()
	command.Stdout = os.Stdout
	command.Stderr = os.Stderr

	for _, env := range runtime.Envs {
		command.Env = append(command.Env, env)
{'fraction_non_alphanumeric': 0.10944976076555024, 'fraction_numerical': 0.0, 'mean_word_length': 3.5216216216216214, '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': '7022603', 'n_tokens_mistral': 556, 'n_tokens_neox': 549, 'n_words': 166}