Dataset Viewer
Auto-converted to Parquet Duplicate
Question
stringlengths
50
214
Response
stringlengths
1
550
What is the default value of the strip parameter in the Homebrew patch method?
:p1
In Homebrew, what flag would you use if you want to create a formula with a template for a Rust build?
--rust
Which instance attribute in the Cask class constructor is related to managing the reuse of tokens in the Homebrew version outlined?
@allow_reassignment
When using the `installer script:` stanza in Homebrew, which key specifies the path to the install script that will be run?
executable:
What is the recommended prefix for installing Homebrew on a macOS Intel system?
/usr/local
What factors should be ensured before running the `brew release` command for creating a new Homebrew release in Homebrew version 1.0.0?
- No code changes for at least 4 hours. - A completed Homebrew/homebrew-core pull request CI job. - Clear state of Homebrew/brew `master` CI job. - Confidence in no major regressions on `master`.
What command option in Homebrew allows a user to display the current state of developer mode?
`brew developer state`
What Homebrew command option is used to search descriptions using a regular expression just for text?
`-d`, `--description`
What type of return value does the `deprecated?` method in the Homebrew private API have?
Boolean
Which Homebrew method assigns a Boolean value based on whether it was loaded from an API?
loaded_from_api?
Which method defined in the Homebrew/brew repository returns a Boolean value and occurs on line 124 of the 'cask/cask.rbi' file?
livecheck_defined?
Which Homebrew method identifies if a formula has OS/arch-specific constraints like `on_macos` or `on_arm`?
on_system_blocks_exist?
What Homebrew method is deprecated for checking if a `livecheck` specification is defined, and what should be used instead?
Formula.livecheck_defined?
What is the common return type for the methods `appcast`, `appdir`, `arch`, and `artifact` in the Homebrew/brew repository private API?
T.untyped
Which method is used to specify one or more formulae that conflict with a given formula and indicates why?
conflicts_with
What is the default behavior for handling unneeded dependencies in Homebrew 4.3.0, and how can it be changed?
The default behavior is that `brew cleanup` and `brew uninstall` automatically run `brew autoremove`. It can be changed by setting `HOMEBREW_NO_AUTOREMOVE`.
What must a formula in the `homebrew/core` repository avoid in order to conform to Homebrew's policy on self-updating tools?
The self-update functionality should be disabled.
What is the required condition for building software with Xcode Clang on macOS to ensure it is considered adequately ported for Homebrew?
Stuff that doesn’t build with the latest, stable Xcode Clang.
What environment variable should be set for Homebrew to always use the latest stable tag, even after running developer commands?
HOMEBREW_UPDATE_TO_TAG
What Homebrew-specific environment variable should be set to use a different SSH configuration file when fetching Git repositories over SSH?
HOMEBREW_SSH_CONFIG_PATH
What does the method `tap_git_head` return if a `TapUnavailableError` occurs in Homebrew's Ruby interface?
nil
Which organization conducted Homebrew's 2023 security audit?
Trail of Bits
What is returned by the method `prefix_linked?` if the keg is not linked in the Homebrew environment?
false
How is the installation prefix specified when using the `std_meson_args` method in Homebrew?
`--prefix=#{prefix}`
In the configuration of Homebrew formulae, which symbol values are allowed for the `release_mode` parameter in the `std_zig_args` method?
:fast, :safe, :small
What does the `active_log_prefix` method return if `active_log_type` evaluates to `nil`?
""
What is the defined directory path for installing zsh function files in the Homebrew Formula class?
share/zsh/site-functions
What is the return type of the `latest_head_version` method in the Homebrew/brew repository?
PkgVersion or nil
In Homebrew Cask, under what condition can a fork replace the main cask despite the original software being discontinued?
1. The original discontinued software recommends that fork. 2. The fork is overwhelmingly popular and is now the de facto project.
What option allows ignoring errors when updating PyPI resource blocks for a formula in Homebrew?
--ignore-errors
Which option is required to retain the temporary directory when testing a `brew update` with a new repository clone in Homebrew?
--keep-tmp
What transformation is applied to the `+` symbol when converting a simplified name to a Homebrew Cask token?
-plus-
What does the `fetch` method in Homebrew's `formula.rb` file return?
Pathname (Pathname class)
What is the purpose of the `opt_prefix` method in Homebrew?
A stable path for this formula, when installed.
In Homebrew's private API, what is the default behavior of the `follow_installed_alias` method regarding outdated formulas?
True
What type of value does the `buildpath` method return in the Homebrew private API?
Pathname, nil
When should the `GithubLatest` strategy be used in Homebrew livecheck according to the current guidelines?
`GithubLatest` should only be used if the upstream repository has a “latest” release for a suitable version and either the formula/cask uses a release asset or the `Git` strategy can’t correctly identify the latest release version.
When should a formula be marked as `keg_only :provided_by_macos` in Homebrew?
When it comes with macOS.
What type of URL is required in a livecheck block according to current Homebrew guidelines?
A URL string or a formula/cask URL symbol (i.e. `:stable`, `:url`, `:head`, `:homepage`).
What is the preferred message format for a simple version update commit in Homebrew?
`foobar 7.3`
What suffix is required for GNU licenses to indicate whether a later version of the license is allowed?
-or-later
What is the return type of the `version_scheme` method in Homebrew's formula.rb file?
Integer
What does the method `oldnames` return when the formula has no associated tap?
[]
Which method in Homebrew's private API can return either a full name with an optional tap for an installed alias or a full name, and is intended only for internal use within the Homebrew/brew repository?
full_installed_alias_name
What is the most commonly recommended uninstall technique for Homebrew Casks that use `pkg` or `installer manual:` methods?
`uninstall pkgutil:`
Which uninstall key in Homebrew Cask is strongly preferred over using `delete:` and is considered most useful for completely removing a `pkg`?
pkgutil:
In Homebrew's `Xml` strategy block, what object type is required to extract version information?
REXML::Document
Which method in Homebrew's Cask module requires the `--eval-all` option or the `HOMEBREW_EVAL_ALL` environment variable to be used, and what error is raised if this condition is not met?
.all(eval_all: false) ArgumentError
What phases are supported for network access when using the `allow_network_access!` method in Homebrew?
:build, :test, :postinstall
Which method in Homebrew is part of a private API and is intended for use only within the Homebrew/brew repository, especially concerning network access during specific phases?
allow_network_access!
What is the return type of the method `ruby_source_checksum` specific to the Homebrew/brew repository?
Hash{Symbol => String}
What is the recommended linear algebra library for packages requiring BLAS/LAPACK interfaces in Homebrew, and why is it preferred?
OpenBLAS
What Homebrew URL download strategy would you use specifically for handling a Mercurial repository?
`:hg`
What DSL method in Homebrew, along with the build number, is used to specify the latest compiler version that causes a package to fail when using Clang, and what should be documented as the reason for this failure?
`fails_with :clang do; build [build number]; cause "[reason]" end`
What is the required commit message format for simple version updates in Homebrew?
`<FORMULA_NAME> <NEW_VERSION>`
What command should you use to squash new commits into one commit per formula when responding to feedback in Homebrew?
git rebase --interactive origin/master
What option allows installing dependencies without installing the main formula in Homebrew?
--only-dependencies
What is the purpose of the `--sudo-service-user` flag when running Homebrew services as root on macOS?
Run the service(s) as a specified user when executed as root on macOS.
How can you mark an installed Homebrew formula as not installed on request to allow removal by `brew autoremove`?
`brew tab --no-installed-on-request`
Which Homebrew option would you use to attempt compiling with a specific compiler executable, such as GCC 9, on macOS?
--cc
What option should be used in Homebrew to mark dependencies as build, test, implicit, optional, or recommended in the output?
`--annotate`
What information does the Homebrew method `deprecation_reason` return if a formula is not deprecated?
nil
What method is delegated to return the deprecation date in Homebrew’s Formula class?
deprecation_date
What does “keg-only” mean in the context of Homebrew?
Installed only into the Cellar, not linked into the default prefix.
What conditions might prevent Homebrew from using pre-built bottles when installing a formula?
- `--build-from-source` option is used. - No bottle available for the current OS version. - Non-default installation prefix. - Formula options included in the install command.
Which version of Homebrew marked the introduction of official support for Linux and Windows 10 with Windows Subsystem for Linux?
2.0.0
Which part of the Homebrew private API must be used to change version schemes for packages?
version_scheme
In Homebrew's `url` stanza block syntax, what data type should the result be assumed to be?
String
What argument does the 'internal_dependencies_hash' method raise an error for if it is unsupported?
`spec_symbol`
What restriction is placed on using the `target:` key for cask `app` artifacts regarding aesthetic changes in the Homebrew system?
Do not use `target:` for aesthetic reasons, like removing version numbers.
What is the purpose of the `keep_alive` option within the Homebrew service block?
To keep the process running.
Which method in Homebrew, a package manager, is deprecated in version 3.6.21 and should be replaced with Go modules?
go_resource
What is the return type of the `pinnable?` method defined within Homebrew's private API?
Boolean
Which method in Homebrew's private API is associated with determining if an element is pinnable and what is its return type?
pinnable? ⇒ Boolean
What happens when an unsupported phase is passed to the `deny_network_access!` method in Homebrew's private API?
ArgumentError, "Unknown phase: #{phase}"
What is one responsibility that both the Project Leader and Technical Steering Committee share regarding GitHub operations?
Performing GitHub admin operations on the Homebrew GitHub organisation.
What is the default behavior of the `deny_network_access!` method in Homebrew when no phases are specified?
Denied for all phases.
What is the purpose of the `.revision` method in Homebrew's `formula.rb` file, and what does it return if no value is set?
Used for creating new Homebrew versions of software without new upstream versions. Returns `0` if unset.
What parameter must be added if the hostnames in the `url` and `homepage` stanzas differ when creating a cask for Homebrew?
verified
What command hides the beer mug emoji when finishing a build in Homebrew?
export HOMEBREW_NO_EMOJI=1
How can you use Homebrew to manage a manually-installed app using the `--cask` and `--adopt` options?
Run `brew install --cask --adopt <app_name>`.
What option should be used to create a pull request for a cask update without running any audits or style fixes in the Homebrew system?
`--no-audit --no-style`
What is the default behavior of the `revision` method in Homebrew when no value is explicitly set?
0
What significant change in Homebrew 4.0.0 has been made to improve the speed of tap updates compared to version 3.6.0?
Migrating from Git-cloned taps to JSON downloads.
What is the primary method for installing packages in Homebrew 4.0.0 that differs from the previous process using local taps?
JSON downloads from formulae.brew.sh.
What is the line number where the `stage_only` method is defined in the Homebrew/brew repository?
172
What is the return type of the method `depends_on_set_in_block?` that is specific to the Homebrew repository and mentioned in the technical reference?
Boolean
What is the return type of the Homebrew private API method that provides bottle information for a formula and is specified in the 'formula.rb' file?
Hash{String => T.untyped}
In the Homebrew internal API, what error does the `outdated_kegs` method raise if a migration is needed?
Migrator::MigrationNeededError
What is indicated by the Homebrew method `pour_bottle?` regarding the formula's support for bottles?
True
Under what condition does the `caskfile_only?` method return true?
When there are any languages or any `Artifact::AbstractFlightBlock` artifacts.
What condition must be met for a formula in Homebrew to be deprecated instead of disabled using the `disable!` method?
The date for disabling has not yet passed.
What significant change specific to Homebrew functions was introduced in version 1.6.0?
`brew install python` installing Python 3.
In Homebrew, when using version 3.6.21, which command option allows you to display cache files only for CPU architectures?
`--arch`
When using Homebrew version 3.6.21, which command option includes formulae that specify another formula as a `:test` dependency?
--include-test
Which symbol is used to indicate that a formula cannot be built from source on any supported macOS version or Linux?
:does_not_build
What happens to disabled formulae in `homebrew/core` after they have been disabled for over a year?
They are automatically removed.
What command should be executed to link shell completions for external Homebrew commands to the `HOMEBREW_PREFIX`?
brew completions link
In configuring `zsh` completions for Homebrew version 4.0.0, what command rebuilds a necessary file to resolve "zsh compinit: insecure directories" warnings?
chmod -R go-w "$(brew --prefix)/share"
What potential complications arise from using a non-default installation prefix for Homebrew?
Building from source is slow, inefficient, buggy, and unsupported; bottles require the default prefix.
End of preview. Expand in Data Studio

Samples in this benchmark were generated by RELAI using the following data source(s):

Data Source Name: Homebrew

Documentation Data Source Link: https://docs.brew.sh/

Data Source License: https://github.com/Homebrew/brew/blob/master/LICENSE.txt

Data Source Authors: Homebrew Contributors

AI Benchmarks by Data Agents © 2025 RELAI.AI · Licensed under CC BY 4.0. Source: https://relai.ai

Downloads last month
1