Repository Analysis

chef/chef

Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale

10.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of chef/chef, a Ruby project with 8,217 GitHub stars. SynthScan v2.0 examined 295,614 lines of code across 1983 source files, recording 2566 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 10.4 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

10.4
Adjusted Score
10.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.2K
Stars
Ruby
Language
295.6K
Lines of Code
2.0K
Files
2.6K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 1MEDIUM 222LOW 2342

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2566 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block2000 hits · 1979 pts
SeverityFileLineSnippetContext
LOWpost-bundle-install.rb21 next if %w{chef chef-universal-mingw-ucrt proxifier}.include?(gem_name)COMMENT
LOWpost-bundle-install.rb41 # This will leave us with _two_ versions installed at the same version,COMMENT
LOWtasks/dependencies.rb1#COMMENT
LOWtasks/target_mode.rb1#COMMENT
LOWtasks/rspec.rb1#COMMENT
LOWtasks/spellcheck.rb1#COMMENT
LOWchef-config/spec/spec_helper.rb1require "chef-utils"COMMENT
LOWchef-config/spec/spec_helper.rb41 # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/COMMENT
LOWchef-config/spec/spec_helper.rb61 # particularly slow.COMMENT
LOWchef-config/spec/unit/credentials_spec.rb1#COMMENT
LOWchef-config/spec/unit/config_spec.rb1#COMMENT
LOWchef-config/spec/unit/config_spec.rb201 # elseCOMMENT
LOWchef-config/spec/unit/fuzzy_hostname_matcher_spec.rb1#COMMENT
LOWchef-config/spec/unit/path_helper_spec.rb1#COMMENT
LOWchef-config/spec/unit/fips_spec.rb1#COMMENT
LOWchef-config/spec/unit/workstation_config_loader_spec.rb1#COMMENT
LOWchef-config/lib/chef-config.rb1#COMMENT
LOWchef-config/lib/chef-config/windows.rb1#COMMENT
LOWchef-config/lib/chef-config/path_helper.rb1#COMMENT
LOWchef-config/lib/chef-config/path_helper.rb141 # determined by the underlying node['platform'] value.COMMENT
LOWchef-config/lib/chef-config/path_helper.rb161 endCOMMENT
LOWchef-config/lib/chef-config/path_helper.rb221 # If the home directory doesn't exist or an error is otherwise encountered, nil is returned.COMMENT
LOWchef-config/lib/chef-config/path_helper.rb241 endCOMMENT
LOWchef-config/lib/chef-config/path_helper.rb261 # while USERPROFILE points to the location where the user application settings and profile are stored. HOMECOMMENT
LOWchef-config/lib/chef-config/exceptions.rb1#COMMENT
LOW…ef-config/lib/chef-config/workstation_config_loader.rb1#COMMENT
LOW…ef-config/lib/chef-config/workstation_config_loader.rb241 #COMMENT
LOWchef-config/lib/chef-config/logger.rb1#COMMENT
LOWchef-config/lib/chef-config/config.rb1#COMMENT
LOWchef-config/lib/chef-config/config.rb121 #COMMENT
LOWchef-config/lib/chef-config/config.rb441 # * :debugCOMMENT
LOWchef-config/lib/chef-config/config.rb501 # the --legacy-mode flag) or `chef-client -z` methods of starting a client run.COMMENT
LOWchef-config/lib/chef-config/config.rb541 # what you want when using Chef Zero to serve a single Chef Repo. SettingCOMMENT
LOWchef-config/lib/chef-config/config.rb581 "https://localhost:443"COMMENT
LOWchef-config/lib/chef-config/config.rb621 # most of our testing scenarios)COMMENT
LOWchef-config/lib/chef-config/config.rb641COMMENT
LOWchef-config/lib/chef-config/config.rb661COMMENT
LOWchef-config/lib/chef-config/config.rb761COMMENT
LOWchef-config/lib/chef-config/config.rb801COMMENT
LOWchef-config/lib/chef-config/config.rb841 # security. For example, the version 2 format is identical to version 1COMMENT
LOWchef-config/lib/chef-config/config.rb861 "#{ChefUtils::Dist::Infra::SHORT}-validator"COMMENT
LOWchef-config/lib/chef-config/config.rb901 default(:syntax_check_cache_path) { cache_options[:path] }.writes_value { |path| expand_relative_paths(path) }COMMENT
LOWchef-config/lib/chef-config/config.rb1001 #COMMENT
LOWchef-config/lib/chef-config/config.rb1021 # Number of worker threads for syncing cookbooks in parallel. IncreasingCOMMENT
LOWchef-config/lib/chef-config/config.rb1041 #COMMENT
LOWchef-config/lib/chef-config/config.rb1081 # Set `watchdog_timeout` to the number of seconds to wait for a chef-client runCOMMENT
LOWchef-config/lib/chef-config/config.rb1121 # can be used to run Data Collector only when running as Chef Solo butCOMMENT
LOWchef-config/lib/chef-config/config.rb1161 export_no_proxy(no_proxy) if key?(:no_proxy) && no_proxyCOMMENT
LOWchef-config/lib/chef-config/config.rb1221 endCOMMENT
LOWchef-config/lib/chef-config/config.rb1281 # japanese windows encodings). If we do not do this, then knife upload will fail when a cookbook'sCOMMENT
LOWchef-config/lib/chef-config/version.rb1# Copyright:: Copyright (c) 2009-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights ReCOMMENT
LOWchef-config/lib/chef-config/fips.rb1#COMMENT
LOWchef-config/lib/chef-config/mixin/dot_d.rb1#COMMENT
LOWchef-config/lib/chef-config/mixin/dot_d.rb21 module DotDCOMMENT
LOW…config/lib/chef-config/mixin/fuzzy_hostname_matcher.rb1#COMMENT
LOWchef-config/lib/chef-config/mixin/credentials.rb1#COMMENT
LOWchef-config/lib/chef-config/mixin/credentials.rb21COMMENT
LOWchef-config/lib/chef-config/mixin/train_transport.rb1# Author:: Bryan McLellan <btm@loftninjas.org>COMMENT
LOWspec/spec_helper.rb1#COMMENT
LOWspec/spec_helper.rb321COMMENT
1940 more matches not shown…
Decorative Section Separators116 hits · 366 pts
SeverityFileLineSnippetContext
MEDIUMspec/unit/target_io/support_spec.rb43 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/support_spec.rb58 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/support_spec.rb76 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/support_spec.rb83 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/support_spec.rb92 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/support_spec.rb142 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/support_spec.rb163 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb38 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb47 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb61 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb69 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb77 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb85 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb92 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/dir_spec.rb118 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb37 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb55 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb80 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb98 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb111 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb124 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb137 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb145 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb158 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb166 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb179 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb187 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb205 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/fileutils_spec.rb226 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb56 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb63 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb78 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb91 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb102 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb115 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb132 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb147 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb162 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb171 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb196 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb214 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb224 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb245 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/unit/target_io/train/file_spec.rb269 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb49 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb51 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb76 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb78 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb96 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb98 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb116 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/transport_spec.rb120 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb61 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb63 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb135 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb137 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb180 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb182 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb225 # ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMspec/integration/target_mode/target_mode_run_spec.rb229 # ─────────────────────────────────────────────────────────────────────────────COMMENT
56 more matches not shown…
Self-Referential Comments93 hits · 284 pts
SeverityFileLineSnippetContext
MEDIUMspec/tiny_server.rb54 # Create the server (but don't start yet)COMMENT
MEDIUMspec/unit/resource_reporter_spec.rb812 # Create a large binary file (1 MB) with problematic encodingCOMMENT
MEDIUMspec/unit/resource_reporter_spec.rb847 # Create a large problematic state that will trigger the size check AND JSON encoding errorCOMMENT
MEDIUMspec/unit/shell/model_wrapper_spec.rb73 # Creating a Chef::Search::Query object tries to read the private key...COMMENT
MEDIUMspec/functional/win32/registry_spec.rb26 # Create a registry itemCOMMENT
MEDIUMspec/functional/win32/registry_spec.rb42 # Create the node with ohai dataCOMMENT
MEDIUMspec/functional/win32/registry_spec.rb48 # Create a registry object that has access ot the node previously createdCOMMENT
MEDIUMkitchen-tests/kitchen.exec.windows.yml36 # Create a wrapper at <Drive>:\bin\chef-client.bat to satisfy exec script invocationCOMMENT
MEDIUMkitchen-tests/kitchen.dokken.yml63 # Create a symlink from chef/chef-infra-client package to custom built gha/chef-infra-clientCOMMENT
MEDIUM.github/workflows/kitchen.yml333 # Create a token file that can be mounted into containersCOMMENT
MEDIUM.github/workflows/windows-fips.yml102 # Create the key if it doesn't existCOMMENT
MEDIUMlib/chef/local_mode.rb25 # Create a chef local server (if the configuration requires one) for theCOMMENT
MEDIUMlib/chef/node.rb69 # Create a new Chef::Node object.COMMENT
MEDIUMlib/chef/node.rb693 # Create the node via the REST APICOMMENT
MEDIUMlib/chef/cookbook_loader.rb29 # This class is used by knife, cheffs and legacy chef-solo modes. It is not used by the server modeCOMMENT
MEDIUMlib/chef/cookbook_loader.rb32 # This class implements orchestration around producing a single cookbook_version for a cookbook orCOMMENT
MEDIUMlib/chef/api_client.rb39 # Create a new Chef::ApiClient object.COMMENT
MEDIUMlib/chef/api_client.rb208 # Create the client via the REST APICOMMENT
MEDIUMlib/chef/http.rb88 # Create a HTTP client object. The supplied +url+ is used as the base forCOMMENT
MEDIUMlib/chef/encrypted_data_bag_item.rb66 # Create a new encrypted data bag item for reading (decryption)COMMENT
MEDIUMlib/chef/api_client_v1.rb49 # Create a new Chef::ApiClientV1 object.COMMENT
MEDIUMlib/chef/api_client_v1.rb284 # Create the client via the REST APICOMMENT
MEDIUMlib/chef/cookbook_manifest.rb42 # Create a new CookbookManifest object for the given `cookbook_version`.COMMENT
MEDIUMlib/chef/run_context.rb678 # Create a child RunContext.COMMENT
MEDIUMlib/chef/run_lock.rb43 # Create a new instance of RunLockCOMMENT
MEDIUMlib/chef/data_bag_item.rb61 # Create a new Chef::DataBagItemCOMMENT
MEDIUMlib/chef/resource.rb105 # Create a new Resource.COMMENT
MEDIUMlib/chef/resource.rb821 # This method is unnecessary when declaring properties with `property`;COMMENT
MEDIUMlib/chef/resource.rb1048 # Define an action on this resource.COMMENT
MEDIUMlib/chef/resource.rb1104 # Define a method to load up this resource's properties with the currentCOMMENT
MEDIUMlib/chef/data_bag.rb47 # Create a new Chef::DataBagCOMMENT
MEDIUMlib/chef/role.rb36 # Create a new Chef::Role object.COMMENT
MEDIUMlib/chef/role.rb234 # Create the role via the REST APICOMMENT
MEDIUMlib/chef/file_cache.rb209 # Create a full path to a given file in the cache. By default,COMMENT
MEDIUMlib/chef/client.rb752 # Create a new public/private keypair in secure storageCOMMENT
MEDIUMlib/chef/resource_collection.rb52 # This method is meant to be the 1 insert method necessary in the future. It should support all known use casesCOMMENT
MEDIUMlib/chef/handler.rb34 # # Create the email messageCOMMENT
MEDIUMlib/chef/property.rb42 # Create a reusable property type that can be used in multiple propertiesCOMMENT
MEDIUMlib/chef/property.rb77 # Create a new property.COMMENT
MEDIUMlib/chef/provider.rb296 # Create a child run_context, compile the block, and converge it.COMMENT
MEDIUMlib/chef/provider.rb421 # Create the resource DSL module that forwards resource methods to new_resourceCOMMENT
MEDIUMlib/chef/runner.rb28 # This class is responsible for executing the steps in a Chef run.COMMENT
MEDIUMlib/chef/resource_resolver.rb58 # Create a resolver.COMMENT
MEDIUMlib/chef/util/threaded_job_queue.rb20 # Create a queue:COMMENT
MEDIUMlib/chef/mixin/securable.rb65 # This module is meant to be used to extend a class (instead ofCOMMENT
MEDIUMlib/chef/mixin/why_run.rb266 # Define a new Assertion.COMMENT
MEDIUMlib/chef/mixin/properties.rb31 # Create a property on this resource class.COMMENT
MEDIUMlib/chef/mixin/properties.rb141 # Create a reusable property type that can be used in multiple propertiesCOMMENT
MEDIUMlib/chef/mixin/properties.rb159 # Create a lazy value for assignment to a default value.COMMENT
MEDIUMlib/chef/mixin/properties.rb181 # This method is unnecessary when declaring properties with `property`;COMMENT
MEDIUMlib/chef/mixin/properties.rb229 # This method is unnecessary when declaring properties with `property`;COMMENT
MEDIUMlib/chef/provider/windows_script.rb89 # Create an ACE that allows the alternate user read access to the scriptCOMMENT
MEDIUMlib/chef/provider/powershell_script.rb241 # Initialize a variable we use to capture $? inside a blockCOMMENT
MEDIUMlib/chef/provider/group/groupadd.rb45 # Create the groupCOMMENT
MEDIUMlib/chef/provider/group/pw.rb39 # Create the groupCOMMENT
MEDIUMlib/chef/provider/group/groupmod.rb33 # Create the groupCOMMENT
MEDIUMlib/chef/provider/user/dscl.rb177 # Create a user using dsclCOMMENT
MEDIUMlib/chef/provider/package/deb.rb53 # This method is used for getting preseed fileCOMMENT
MEDIUMlib/chef/provider/package/yum/python_helper.rb168 # This function handles turning the second form into the first form.COMMENT
MEDIUMlib/chef/cookbook/file_vendor.rb22 # This class handles fetching of cookbook files based on specificity.COMMENT
33 more matches not shown…
Hyper-Verbose Identifiers262 hits · 280 pts
SeverityFileLineSnippetContext
LOWdangerfile.js106async function stickyWorkflowChangeReminder() {CODE
LOWdangerfile.js194async function checkWorkflowSecretsOnPullRequest() {CODE
LOWtasks/dependencies.rb30 def bundle_update_locked_multiplatform_task(task_name, dir)CODE
LOWtasks/docs.rb61 def friendly_full_property_list(name, properties)CODE
LOWtasks/docs.rb250 def build_resource_description(name, text)CODE
LOWspec/unit/lwrp_spec.rb44 def get_dynamic_lwrp_provider(name)CODE
LOWspec/unit/provider/launchd_spec.rb104 def run_resource_setup_for_action(action)CODE
LOWspec/unit/provider/service/macosx_spec.rb102 def run_resource_setup_for_action(action)CODE
LOWspec/unit/cookbook/metadata_spec.rb308 def expect_chef_version_works(*args)CODE
LOWspec/unit/cookbook/metadata_spec.rb360 def expect_ohai_version_works(*args)CODE
LOWspec/unit/resource/file/verification_spec.rb81 def platform_specific_verify_command(variable_name)CODE
LOWspec/integration/client/client_spec.rb38 def install_certificate_in_store(client_name, store_location)CODE
LOWspec/integration/client/exit_code_spec.rb39 def run_chef_client_and_expect_exit_code(exit_code)CODE
LOWspec/support/ruby_installer.rb18def verify_dependencies_for_dll(dll_dir, dll_name)CODE
LOW…ort/shared/unit/resource/static_provider_resolution.rb26def static_provider_resolution(opts = {})CODE
LOWspec/support/shared/functional/windows_script.rb240 def get_windows_script_output(suffix = "")CODE
LOWspec/data/lwrp/providers/buck_passer_2.rb1def without_deprecation_warnings(&block)CODE
LOW…roviders/embedded_resource_accesses_providers_scope.rb6def without_deprecation_warnings(&block)CODE
LOWspec/data/lwrp/providers/buck_passer.rb3def without_deprecation_warnings(&block)CODE
LOW…onal/file_content_management/deploy_strategies_spec.rb116 def unix_invariant_properties(stat_struct)CODE
LOWspec/functional/resource/dpkg_package_spec.rb48 def should_be_purged_or_removed(package, action = nil)CODE
LOWspec/functional/resource/ifconfig_spec.rb100 def interface_should_not_exists(interface)CODE
LOWspec/functional/resource/ifconfig_spec.rb104 def interface_persistence_should_exists(interface)CODE
LOWspec/functional/resource/ifconfig_spec.rb112 def interface_persistence_should_not_exists(interface)CODE
LOWspec/functional/resource/yum_package_spec.rb42 def expect_matching_installed_version(version)CODE
LOWspec/functional/resource/dsc_script_spec.rb45 def create_config_script_from_code(code, configuration_name, data = false)CODE
LOWspec/functional/resource/cron_spec.rb118 def create_and_validate_with_property(resource, attribute, value)CODE
LOWspec/functional/resource/cron_spec.rb128 def cron_attribute_should_exists(cron_name, attribute, value)CODE
LOWspec/functional/resource/dnf_package_spec.rb48 def expect_matching_installed_version(version)CODE
LOWspec/functional/resource/bff_spec.rb32 def bff_pkg_should_be_installed(resource)CODE
LOWspec/functional/resource/bff_spec.rb37 def bff_pkg_should_be_removed(resource)CODE
LOWspec/functional/resource/rpm_spec.rb34 def rpm_pkg_should_be_installed(resource)CODE
LOWspec/functional/resource/rpm_spec.rb46 def rpm_pkg_should_not_be_installed(resource)CODE
LOWspec/functional/resource/insserv_spec.rb39 def service_should_be_started(file_name)CODE
LOWspec/functional/resource/insserv_spec.rb44 def service_should_be_stopped(file_name)CODE
LOWspec/functional/resource/aixinit_service_spec.rb28 def service_should_be_started(file_name)CODE
LOWspec/functional/resource/aixinit_service_spec.rb33 def service_should_be_stopped(file_name)CODE
LOWspec/functional/resource/user/windows_spec.rb60 def set_windows_minimum_password_length(minimum_password_length = 0)CODE
LOWdocs/dev/design_documents/action_collection.md36 def action_collection_registration(action_collection)CODE
LOWlib/chef/run_list.rb159 def expansion_for_data_source(environment, data_source, opts = {})CODE
LOWlib/chef/resource_reporter.rb85 def handle_error_starting_run(e, url)CODE
LOWlib/chef/resource_reporter.rb140 def action_collection_registration(action_collection)CODE
LOWlib/chef/resource_reporter.rb225 def cookbook_resolution_failed(expanded_run_list, exception)CODE
LOWlib/chef/node.rb503 def apply_expansion_attributes(expansion)CODE
LOWlib/chef/node.rb766 def allowlist_or_whitelist_config(level)CODE
LOWlib/chef/node.rb779 def blocklist_or_blacklist_config(level)CODE
LOWlib/chef/node_map.rb323 def compare_matcher_properties(a, b)CODE
LOWlib/chef/http.rb175 def streaming_request_with_progress(path, headers = {}, tempfile = nil, &progress_block)CODE
LOWlib/chef/http.rb347 def apply_response_middleware(response, rest_request, return_value)CODE
LOWlib/chef/http.rb355 def apply_stream_complete_middleware(response, rest_request, return_value)CODE
LOWlib/chef/environment.rb147 def update_attributes_from_params(params)CODE
LOWlib/chef/environment.rb186 def update_cookbook_constraint_from_param(index, cookbook_constraint_spec)CODE
LOWlib/chef/environment.rb201 def add_cookbook_constraint_error(index, cookbook_constraint_spec)CODE
LOWlib/chef/cookbook_version.rb294 def preferred_manifest_record(node, segment, filename)CODE
LOWlib/chef/cookbook_version.rb334 def preferred_filename_on_disk_location(node, segment, filename, current_filepath = nil)CODE
LOWlib/chef/cookbook_version.rb343 def relative_filenames_in_preferred_directory(node, segment, dirname)CODE
LOWlib/chef/cookbook_version.rb383 def preferred_manifest_records_for_directory(node, segment, dirname)CODE
LOWlib/chef/cookbook_version.rb598 def find_preferred_manifest_record(node, segment, filename)CODE
LOWlib/chef/cookbook_manifest.rb270 def parse_file_from_root_paths(file)CODE
LOWlib/chef/cookbook_manifest.rb301 def extract_checksums_from_manifest(manifest)CODE
202 more matches not shown…
Redundant / Tautological Comments37 hits · 63 pts
SeverityFileLineSnippetContext
LOWchef-config/lib/chef-config/config.rb681 # Set these to enable SSL authentication / mutual-authenticationCOMMENT
LOWchef-config/lib/chef-config/config.rb1212 # Check if the proxy string contains a scheme. If not, add the url's scheme to theCOMMENT
LOWspec/support/chef_helpers.rb71# Check if a cmd exists on the PATHCOMMENT
LOWspec/support/platform_helpers.rb307# Check if the chef-powershell gem is properly installedCOMMENT
LOWspec/support/platform_helpers.rb313 # Check if gem is installed without forcing a requireCOMMENT
LOWspec/support/platform_helpers.rb326# Check if PowerShell execution via chef-powershell is availableCOMMENT
LOWspec/support/platform_helpers.rb340# Check if the required runtime dependencies are availableCOMMENT
LOWspec/support/platform_helpers.rb347 # Check if we can load the PowerShell DLL which requires vcruntime140.dllCOMMENT
LOWspec/functional/resource/cron_spec.rb123 # Verify if the cron is created successfullyCOMMENT
LOWkitchen-tests/test/integration/end-to-end/_apt.rb1# Check if an apt_repository using the same key url as a previous apt_repository, actually has a working key.COMMENT
LOW…s/cookbooks/end_to_end/recipes/_habitat_win_service.rb8 # Check if the Windows service is actually running instead of checking loaded servicesCOMMENT
LOW.github/workflows/selfhosted-linux-fips.yml88 # Check if FIPS mode is enabled on the systemCOMMENT
LOWlib/chef/node_map.rb76 # Check if the key is already present and locked, unless the override is allowed.COMMENT
LOWlib/chef/node_map.rb176 # Check if this map has been locked.COMMENT
LOWlib/chef/cookbook_manifest.rb275 # Check if path is actually under root_pathCOMMENT
LOWlib/chef/cookbook_manifest.rb286 # Check if pathname looks like files/foo or templates/foo (unscoped)COMMENT
LOWlib/chef/action_collection.rb223 # Verify if the resource has sensitive data and create a new blank resource with onlyCOMMENT
LOWlib/chef/data_bag.rb130 # Check if we have multiple items with similar names (ids) and raise if their content differsCOMMENT
LOWlib/chef/deprecated.rb60 # Check if this deprecation has been silenced.COMMENT
LOWlib/chef/deprecated.rb64 # Check if all warnings have been silenced.COMMENT
LOWlib/chef/deprecated.rb66 # Check if this warning has been silenced by the config.COMMENT
LOWlib/chef/client.rb917 # Check if the user has Administrator privileges on windows.COMMENT
LOWlib/chef/config_fetcher.rb57 # Check if the config file existsCOMMENT
LOWlib/chef/mixin/create_path.rb39 # Check if path starts with a separator or drive letter (Windows)COMMENT
LOWlib/chef/mixin/openssl_helper.rb43 # Check if the dhparam.pem file existsCOMMENT
LOWlib/chef/provider/powershell_script.rb39 # Set InputFormat to None as PowerShell will hang if STDIN is redirectedCOMMENT
LOWlib/chef/provider/package/chocolatey.rb545 # Check if the error is related to file locking by chocolatey processesCOMMENT
LOWlib/chef/resource/sysctl.rb216 # Check if chef has already configured a value for the given key andCOMMENT
LOWlib/chef/resource/homebrew_tap.rb88 # Check if the passed tap is already tappedCOMMENT
LOWlib/chef/win32/security/sid.rb264 # Check if the user belongs to service accounts categoryCOMMENT
LOWlib/chef/win32/security/sid.rb272 # Check if the user is in builtin system groupCOMMENT
LOWlib/chef/win32/security/sid.rb280 # Check if the user belongs to system users categoryCOMMENT
LOWlib/chef/win32/security/sid.rb327 # Check if the account is the Administrator accountCOMMENT
LOWlib/chef/dsl/platform_introspection.rb57 # Check if we match a version constraint via Chef::VersionConstraint::Platform and Chef::Version::PlatformCOMMENT
LOWchef-utils/lib/chef-utils/dsl/virtualization.rb252 # Check if the +vagrant+ key exists on the +node+ object. This key is noCOMMENT
LOWchef-utils/lib/chef-utils/dsl/virtualization.rb262 # Check if "vagrantup.com" is included in the node's domain.COMMENT
LOWchef-utils/lib/chef-utils/dsl/virtualization.rb271 # Check if the system contains a +vagrant+ user.COMMENT
AI Slop Vocabulary23 hits · 46 pts
SeverityFileLineSnippetContext
LOWtasks/docs.rb253 # if we're on a package resource, depending on the OS we want to inject a warning / note that you can just use 'paCOMMENT
LOWchef-config/lib/chef-config/path_helper.rb164 # just use Regexp.escape. For the latter, use escape_glob_dir below.COMMENT
LOWchef-config/lib/chef-config/path_helper.rb290 # If a block is provided, invoke it - otherwise just return what we've got.COMMENT
MEDIUMchef-config/lib/chef-config/config.rb803 # This flag is used in conjunction with 'migrate_key_to_keystore'. If 2 users, Bob and Terri, are usingCOMMENT
MEDIUMspec/integration/ohai/ohai_spec.rb33 # own testing harness, but that is not our concern, we are testing behaviorCOMMENT
MEDIUM.expeditor/scripts/verify-plan.sh10# Buildkite environment, or a vault, allowing for seamless updates without requiring a pull request for changes.COMMENT
MEDIUM.expeditor/scripts/habitat-test.sh14# Buildkite environment, or a vault, allowing for seamless updates without requiring a pull request for changes.COMMENT
LOWlib/chef/node.rb150 # @return [String] the current policy_name, or the one you just setCOMMENT
LOWlib/chef/node.rb173 # @return [String] the current policy_group, or the one you just setCOMMENT
MEDIUMlib/chef/group.rb61 # exclude 'pivotal' but don't mutate the group since we're caching itCOMMENT
LOWlib/chef/provider_resolver.rb120 # if resource.provider is set, just return one of those objectsCOMMENT
LOWlib/chef/provider/mount.rb111 # should actually check if the filesystem is mounted (not just return current_resource) and return true/falseCOMMENT
LOWlib/chef/provider/user/mac.rb198 # a departure from previous behavior. We could just set theCOMMENT
MEDIUMlib/chef/provider/package/homebrew.rb95 # information, but that is not any more robust than using theCOMMENT
LOWlib/chef/provider/package/yum/rpm_utils.rb25# e.g. this should just use Chef::Provider::Package::Yum::PythonHelper.instance.compare_versions(x,y)COMMENT
LOWlib/chef/run_list/versioned_recipe_list.rb87 # "foo::bar" just return "foo::bar". This makes it easier for people to search onCOMMENT
LOWlib/chef/event_dispatch/dispatcher.rb20 # threads to handle events from other threads, we just use thread localCOMMENT
LOWlib/chef/resource/inspec_input.rb99 # just return the source.COMMENT
MEDIUMlib/chef/resource/windows_update_settings.rb66 # options: 0 - do not elevate a user to force an install - falseCOMMENT
MEDIUMlib/chef/resource/windows_update_settings.rb67 # 1 - do elevate the logged on user to install an update - trueCOMMENT
LOWlib/chef/resource/windows_update_settings.rb79 # this needs to be the same as wsus_server_url so we just set that value in both places nowCOMMENT
LOWlib/chef/resource/inspec_waiver.rb147 # just return the source.COMMENT
LOWlib/chef/resource/sudo.rb273 # Ensure that the inputs are valid (we cannot just use the resource for this)COMMENT
Structural Annotation Overuse14 hits · 21 pts
SeverityFileLineSnippetContext
LOWdocs/dev/how_to/github-runner-setup-guide.md26### Step 1: Prepare the Windows EnvironmentCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md35### Step 2: Download and Extract the RunnerCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md52### Step 3: Configure the RunnerCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md71### Step 4: Install and Start the ServiceCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md84### Step 5: Verify the RunnerCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md92### Step 1: Prepare Azure EnvironmentCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md107### Step 2: Create Azure VMCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md122### Step 3: Open Required Ports and Configure SecurityCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md133### Step 4: Connect to VM and Install DependenciesCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md158### Step 5: Download and Extract the RunnerCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md176### Step 6: Configure the RunnerCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md198### Step 7: Install and Start the ServiceCOMMENT
LOWdocs/dev/how_to/github-runner-setup-guide.md215### Step 8: Verify the RunnerCOMMENT
LOWlib/chef/chef_class.rb18# NOTE: This class is not intended for internal use by the chef-client code. Classes inCOMMENT
Slop Phrases7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMchef-config/lib/chef-config/config.rb658 # compatibility mode. Compatibility mode remains available so you can useCOMMENT
LOWspec/functional/run_lock_spec.rb37 # make sure to start with a clean slate.COMMENT
LOWlib/chef/mixin/params_validate.rb178 # Ruby will print :something as something, which confuses users so make sure to print them as symbolsCOMMENT
LOWlib/chef/cookbook/cookbook_collection.rb39 "If you're loading #{key} from another cookbook, make sure you configure the dependency in your metadata"CODE
LOWlib/chef/compliance/runner.rb260 failed_report("Cannot fetch all profiles: #{profiles}. Please make sure you're authenticated and the server is rCODE
MEDIUMlib/chef/compliance/runner.rb370 # Note that the docs don't say you can use an array, but our implementationCOMMENT
MEDIUMlib/chef/http/decompressor.rb95 # object you can use to unzip/inflate a streaming response.COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALlib/chef/run_context/cookbook_compiler.rb442 cookbook.metadata.dependencies.keys.sort.map(&:to_sym).each(&block)CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…ec/unit/file_content_management/deploy/mv_unix_spec.rb81 # root somehow. In this example, gid==20 is something like "staff" whichCOMMENT
Modern AI Meta-Vocabulary2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMlib/chef/cookbook_loader.rb32 # This class implements orchestration around producing a single cookbook_version for a cookbook orCOMMENT
MEDIUMchef-utils/lib/chef-utils/internal.rb47 # for dependency injection rather than overriding the method in this case.COMMENT
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippetContext
LOWspec/unit/provider/cron_spec.rb445 @current_resource.mailto "foo@bar.com"CODE
LOWspec/unit/compliance/reporter/automate_spec.rb86 let(:token) { "fake_token" }CODE
LOWspec/unit/compliance/fetcher/automate_spec.rb13 let(:token) { "fake_token" }CODE
LOWkitchen-tests/cookbooks/end_to_end/recipes/_cron.rb20 mailto "admin@example.com"CODE
LOWlib/chef/resource/cron/cron_d.rb65 mailto 'admin@example.com'CODE
LOWlib/chef/resource/cron/cron.rb68 mailto 'admin@example.com'CODE
LOWlib/chef/dsl/powershell.rb24 def ps_credential(username = "placeholder", password) # rubocop:disable Style/OptionalArgumentsCODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWlib/chef/provider/package/dnf/dnf_helper.py50CODE
LOWlib/chef/provider/package/dnf/dnf_helper.py88CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/rest_resource_integration_test.rb5# Usage:COMMENT