class Dependabot::Uv::UpdateChecker::PipCompileVersionResolver

def compiled_file_includes_dependency?(compiled_file)

def compiled_file_includes_dependency?(compiled_file)
  return false unless compiled_file
  regex = RequirementParser::INSTALL_REQ_WITH_REQUIREMENT
  matches = []
  compiled_file.content.scan(regex) { matches << Regexp.last_match }
  matches.any? { |m| normalise(m[:name]) == dependency.name }
end