<commit_before>package commands

import (
	"fmt"
	"net/url"
	"strings"

	"github.com/github/hub/github"
	"github.com/github/hub/utils"
)

var cmdBrowse = &Command{
	Run:          browse,
	GitExtension: true,
	Usage:        "browse [-u] [[<USER>/]<REPOSITORY>|--] [SUBPAGE]",
	Short:        "Open a GitHub page in the default browser",
	Long: `Open repository's GitHub page in the system's default web browser using
"open(1)" or the "BROWSER" env variable. If the repository isn't
specified, "browse" opens the page of the repository found in the current
directory. If SUBPAGE is specified, the browser will open on the specified
subpage: one of "wiki", "commits", "issues" or other (the default is
"tree"). With "-u", outputs the URL rather than opening the browser.
`,
}

func init() {
	CmdRunner.Use(cmdBrowse)
}

/*<commit_msg>Fix `hub help browse`<commit_after>package commands

import (
	"fmt"
	"net/url"
	"strings"

	"github.com/github/hub/github"
	"github.com/github/hub/utils"
)

var cmdBrowse = &Command{
	Run:          browse,
	GitExtension: false,
	Usage:        "browse [-u] [[<USER>/]<REPOSITORY>|--] [SUBPAGE]",
	Short:        "Open a GitHub page in the default browser",
	Long: `Open repository's GitHub page in the system's default web browser using
"open(1)" or the "BROWSER" env variable. If the repository isn't
specified, "browse" opens the page of the repository found in the current
directory. If SUBPAGE is specified, the browser will open on the specified
subpage: one of "wiki", "commits", "issues" or other (the default is
"tree"). With "-u", outputs the URL rather than opening the browser.
`,
}

func init() {
	CmdRunner.Use(cmdBrowse)
}

/*
{'fraction_non_alphanumeric': 0.12582384661473936, 'fraction_numerical': 0.0011983223487118035, 'mean_word_length': 3.9702380952380953, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6466539', 'n_tokens_mistral': 563, 'n_tokens_neox': 541, 'n_words': 203}