id: 1 unit: def build_payload() file: quickstarts/whereami/whereami_payload.py start line: 0 end line: 0 size: 110 LOC McCabe index: 21 number of parameters: 2 id: 2 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 158 end line: 228 size: 67 LOC McCabe index: 19 number of parameters: 1 id: 3 unit: def inference_interface() file: ai-ml/llm-serving-gemma/gradio/app/app.py start line: 0 end line: 0 size: 61 LOC McCabe index: 5 number of parameters: 5 id: 4 unit: public ActionResult FileShareDiagnostics() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/NetworkAccessController.cs start line: 71 end line: 130 size: 53 LOC McCabe index: 6 number of parameters: 1 id: 5 unit: func main() file: observability/custom-metrics-autoscaling/direct-to-sd/sd_dummy_exporter.go start line: 40 end line: 100 size: 50 LOC McCabe index: 14 number of parameters: 0 id: 6 unit: func file_reverse_proto_init() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 181 end line: 229 size: 49 LOC McCabe index: 9 number of parameters: 0 id: 7 unit: func file_echo_proto_init() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 179 end line: 227 size: 49 LOC McCabe index: 9 number of parameters: 0 id: 8 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 288 end line: 338 size: 48 LOC McCabe index: 16 number of parameters: 1 id: 9 unit: func buildContainers() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 339 end line: 388 size: 45 LOC McCabe index: 8 number of parameters: 2 id: 10 unit: func retrievePrices() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 61 end line: 103 size: 40 LOC McCabe index: 20 number of parameters: 2 id: 11 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 97 end line: 138 size: 40 LOC McCabe index: 2 number of parameters: 1 id: 12 unit: def generate_report() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 36 LOC McCabe index: 1 number of parameters: 2 id: 13 unit: public ActionResult SqlServerDiagnostics() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/NetworkAccessController.cs start line: 32 end line: 69 size: 34 LOC McCabe index: 4 number of parameters: 1 id: 14 unit: def train_func_per_worker() file: ai-ml/gke-ray/raytrain/pytorch-mnist/train.py start line: 0 end line: 0 size: 33 LOC McCabe index: 9 number of parameters: 1 id: 15 unit: export default function PlayerList() file: databases/hello-app-cloud-spanner/client/src/components/PlayerList.js start line: 25 end line: 57 size: 32 LOC McCabe index: 2 number of parameters: 3 id: 16 unit: export default function App() file: databases/hello-app-cloud-spanner/client/src/components/App.js start line: 27 end line: 60 size: 32 LOC McCabe index: 3 number of parameters: 0 id: 17 unit: func exportMetric() file: observability/custom-metrics-autoscaling/direct-to-sd/sd_dummy_exporter.go start line: 148 end line: 180 size: 32 LOC McCabe index: 1 number of parameters: 6 id: 18 unit: func buildHPAV2beta2() file: cost-optimization/gke-shift-left-cost/api/builder_hpa.go start line: 48 end line: 80 size: 30 LOC McCabe index: 7 number of parameters: 1 id: 19 unit: func estimateCost() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 290 end line: 326 size: 30 LOC McCabe index: 3 number of parameters: 3 id: 20 unit: func buildTimeSeriesRequest() file: cost-optimization/gke-scheduled-autoscaler/main.go start line: 59 end line: 87 size: 29 LOC McCabe index: 1 number of parameters: 3 id: 21 unit: func buildHPAV2beta1() file: cost-optimization/gke-shift-left-cost/api/builder_hpa.go start line: 82 end line: 113 size: 29 LOC McCabe index: 7 number of parameters: 1 id: 22 unit: def build_app() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve_tpu.py start line: 0 end line: 0 size: 29 LOC McCabe index: 6 number of parameters: 2 id: 23 unit: public ActionResult Authenticate() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/SecureController.cs start line: 29 end line: 60 size: 29 LOC McCabe index: 5 number of parameters: 0 id: 24 unit: def initialize() file: ai-ml/t5-model-serving/model/handler.py start line: 0 end line: 0 size: 28 LOC McCabe index: 8 number of parameters: 2 id: 25 unit: func main() file: observability/distributed-tracing/main.go start line: 58 end line: 96 size: 26 LOC McCabe index: 3 number of parameters: 0 id: 26 unit: def send_requests() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion_tpu_req.py start line: 0 end line: 0 size: 26 LOC McCabe index: 4 number of parameters: 4 id: 27 unit: def generate_tpu() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion_tpu.py start line: 0 end line: 0 size: 25 LOC McCabe index: 3 number of parameters: 2 id: 28 unit: export default function CreatePlayer() file: databases/hello-app-cloud-spanner/client/src/components/CreatePlayer.js start line: 23 end line: 48 size: 24 LOC McCabe index: 2 number of parameters: 3 id: 29 unit: def get_namespaces() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/main.py start line: 0 end line: 0 size: 24 LOC McCabe index: 4 number of parameters: 2 id: 30 unit: func main() file: observability/workload-metrics/main.go start line: 96 end line: 123 size: 23 LOC McCabe index: 3 number of parameters: 0 id: 31 unit: func buildStatefulSetV1() file: cost-optimization/gke-shift-left-cost/api/builder_statefulset.go start line: 42 end line: 66 size: 23 LOC McCabe index: 4 number of parameters: 2 id: 32 unit: def main() file: batch/aiml-workloads/src/worker.py start line: 0 end line: 0 size: 23 LOC McCabe index: 4 number of parameters: 0 id: 33 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 78 end line: 101 size: 22 LOC McCabe index: 6 number of parameters: 1 id: 34 unit: func populateConfigNotProvided() file: cost-optimization/gke-shift-left-cost/api/config.go start line: 67 end line: 89 size: 22 LOC McCabe index: 7 number of parameters: 1 id: 35 unit: func buildVolumeClaimV1() file: cost-optimization/gke-shift-left-cost/api/builder_volumeclaim.go start line: 44 end line: 66 size: 22 LOC McCabe index: 5 number of parameters: 2 id: 36 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 156 end line: 179 size: 21 LOC McCabe index: 1 number of parameters: 1 id: 37 unit: def __init__() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion_tpu.py start line: 0 end line: 0 size: 21 LOC McCabe index: 2 number of parameters: 4 id: 38 unit: def grpc_serve() file: quickstarts/whereami/app.py start line: 0 end line: 0 size: 21 LOC McCabe index: 5 number of parameters: 0 id: 39 unit: def main() file: databases/cloud-pubsub/main.py start line: 0 end line: 0 size: 20 LOC McCabe index: 2 number of parameters: 0 id: 40 unit: def main() file: cost-optimization/gke-keda/cloud-pubsub/main.py start line: 0 end line: 0 size: 20 LOC McCabe index: 2 number of parameters: 0 id: 41 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 42 end line: 62 size: 20 LOC McCabe index: 6 number of parameters: 1 id: 42 unit: func registryHPAVersions() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 54 end line: 75 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 43 unit: func registryDeploymentVersions() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 77 end line: 102 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 44 unit: func registryReplicaSetVersions() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 104 end line: 129 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 45 unit: func registryStatefulSetVersions() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 131 end line: 156 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 46 unit: func registryDeamonSetVersions() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 158 end line: 183 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 47 unit: def lease() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 20 LOC McCabe index: 5 number of parameters: 4 id: 48 unit: func main() file: quickstarts/hello-app-tls/main.go start line: 24 end line: 47 size: 20 LOC McCabe index: 4 number of parameters: 0 id: 49 unit: def kube_create_job_object() file: databases/postgres-pgvector/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 19 LOC McCabe index: 1 number of parameters: 7 id: 50 unit: func main() file: security/wi-secrets/main.go start line: 27 end line: 57 size: 19 LOC McCabe index: 3 number of parameters: 0 id: 51 unit: def train_fashion_mnist() file: ai-ml/gke-ray/raytrain/pytorch-mnist/train.py start line: 0 end line: 0 size: 19 LOC McCabe index: 1 number of parameters: 3 id: 52 unit: def process_message() file: ai-ml/llm-serving-gemma/gradio/app/app.py start line: 0 end line: 0 size: 19 LOC McCabe index: 7 number of parameters: 2 id: 53 unit: func main() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/main.go start line: 30 end line: 47 size: 18 LOC McCabe index: 4 number of parameters: 0 id: 54 unit: func main() file: networking/grpc-gke-nlb-tutorial/echo-grpc/main.go start line: 30 end line: 47 size: 18 LOC McCabe index: 4 number of parameters: 0 id: 55 unit: func main() file: observability/custom-metrics-autoscaling/prometheus-to-sd/prometheus_dummy_exporter.go start line: 32 end line: 55 size: 18 LOC McCabe index: 1 number of parameters: 0 id: 56 unit: func main() file: observability/custom-metrics-autoscaling/google-managed-prometheus/prometheus_dummy_exporter.go start line: 32 end line: 55 size: 18 LOC McCabe index: 1 number of parameters: 0 id: 57 unit: func calculateMonthlyPrice() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 132 end line: 153 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 58 unit: func buildHPAV1() file: cost-optimization/gke-shift-left-cost/api/builder_hpa.go start line: 115 end line: 132 size: 18 LOC McCabe index: 3 number of parameters: 1 id: 59 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 268 end line: 286 size: 18 LOC McCabe index: 1 number of parameters: 1 id: 60 unit: def get_dataloaders() file: ai-ml/gke-ray/raytrain/pytorch-mnist/train.py start line: 0 end line: 0 size: 18 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: def kube_create_job_object() file: databases/qdrant/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 17 LOC McCabe index: 1 number of parameters: 7 id: 62 unit: def kube_create_job_object() file: databases/weaviate/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 17 LOC McCabe index: 1 number of parameters: 7 id: 63 unit: def kube_create_job_object() file: databases/elasticsearch/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 17 LOC McCabe index: 1 number of parameters: 7 id: 64 unit: func _Reverse_Reverse_Handler() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse_grpc.pb.go start line: 69 end line: 85 size: 17 LOC McCabe index: 3 number of parameters: 3 id: 65 unit: func _Echo_Echo_Handler() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo_grpc.pb.go start line: 69 end line: 85 size: 17 LOC McCabe index: 3 number of parameters: 3 id: 66 unit: func PollItself() file: observability/workload-metrics/main.go start line: 63 end line: 79 size: 17 LOC McCabe index: 4 number of parameters: 0 id: 67 unit: func output() file: cost-optimization/gke-shift-left-cost/main.go start line: 158 end line: 176 size: 17 LOC McCabe index: 4 number of parameters: 1 id: 68 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 181 end line: 196 size: 16 LOC McCabe index: 5 number of parameters: 1 id: 69 unit: func init() file: cost-optimization/gke-shift-left-cost/main.go start line: 43 end line: 61 size: 16 LOC McCabe index: 2 number of parameters: 0 id: 70 unit: def __init__() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/config.py start line: 0 end line: 0 size: 16 LOC McCabe index: 1 number of parameters: 8 id: 71 unit: def preprocess() file: ai-ml/t5-model-serving/model/handler.py start line: 0 end line: 0 size: 16 LOC McCabe index: 3 number of parameters: 2 id: 72 unit: func main() file: quickstarts/hello-app-redis/main.go start line: 67 end line: 89 size: 16 LOC McCabe index: 2 number of parameters: 0 id: 73 unit: func hello() file: quickstarts/hello-app-redis/main.go start line: 108 end line: 127 size: 16 LOC McCabe index: 3 number of parameters: 2 id: 74 unit: func getResourceLabelsForOldModel() file: observability/custom-metrics-autoscaling/direct-to-sd/sd_dummy_exporter.go start line: 109 end line: 126 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 207 end line: 223 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 76 unit: func main() file: cost-optimization/gke-shift-left-cost/main.go start line: 63 end line: 79 size: 15 LOC McCabe index: 2 number of parameters: 0 id: 77 unit: private string RunPowershellScript() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/PowershellController.cs start line: 49 end line: 64 size: 15 LOC McCabe index: 3 number of parameters: 1 id: 78 unit: def __init__() file: quickstarts/whereami/whereami_payload.py start line: 0 end line: 0 size: 15 LOC McCabe index: 3 number of parameters: 1 id: 79 unit: def GetPayload() file: quickstarts/whereami/whereami_pb2_grpc.py start line: 0 end line: 0 size: 15 LOC McCabe index: 1 number of parameters: 3 id: 80 unit: func getResourceLabelsForNewModel() file: observability/custom-metrics-autoscaling/direct-to-sd/sd_dummy_exporter.go start line: 131 end line: 144 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 81 unit: func export() file: cost-optimization/gke-scheduled-autoscaler/main.go start line: 43 end line: 57 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 82 unit: func NewGCPPriceCatalog() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 46 end line: 59 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 83 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 143 end line: 156 size: 14 LOC McCabe index: 5 number of parameters: 1 id: 84 unit: func ConfigDefaults() file: cost-optimization/gke-shift-left-cost/api/config.go start line: 52 end line: 65 size: 14 LOC McCabe index: 1 number of parameters: 0 id: 85 unit: func decode() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 28 end line: 41 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 86 unit: func mainHandler() file: observability/distributed-tracing/main.go start line: 39 end line: 54 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 87 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 181 end line: 196 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: func buildDeploymentV1() file: cost-optimization/gke-shift-left-cost/api/builder_deployment.go start line: 42 end line: 54 size: 13 LOC McCabe index: 2 number of parameters: 2 id: 89 unit: func buildReplicaSetV1() file: cost-optimization/gke-shift-left-cost/api/builder_replicaset.go start line: 42 end line: 54 size: 13 LOC McCabe index: 2 number of parameters: 2 id: 90 unit: func isK8sPathProvided() file: cost-optimization/gke-shift-left-cost/main.go start line: 124 end line: 137 size: 13 LOC McCabe index: 6 number of parameters: 2 id: 91 unit: func saveGithubFile() file: cost-optimization/gke-shift-left-cost/main.go start line: 191 end line: 204 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 92 unit: def get_gcp_project_id() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/utils.py start line: 0 end line: 0 size: 13 LOC McCabe index: 4 number of parameters: 0 id: 93 unit: def _get_coordinator_ip_address() file: ai-ml/gke-a100-jax/train.py start line: 0 end line: 0 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 94 unit: def _main() file: ai-ml/gke-a100-jax/train.py start line: 0 end line: 0 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: def __init__() file: ai-ml/gke-ray/raytrain/pytorch-mnist/train.py start line: 0 end line: 0 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 96 unit: func buildMonitoredResourceLabels() file: cost-optimization/gke-scheduled-autoscaler/main.go start line: 89 end line: 100 size: 12 LOC McCabe index: 1 number of parameters: 0 id: 97 unit: func buildHPA() file: cost-optimization/gke-shift-left-cost/api/builder_hpa.go start line: 35 end line: 46 size: 12 LOC McCabe index: 4 number of parameters: 2 id: 98 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 83 end line: 94 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 99 unit: func percDiff() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 358 end line: 369 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 100 unit: func readConfigFromFile() file: cost-optimization/gke-shift-left-cost/main.go start line: 81 end line: 92 size: 12 LOC McCabe index: 2 number of parameters: 0 id: 101 unit: public void Configure() file: quickstarts/languages/dotnet/Startup.cs start line: 33 end line: 45 size: 12 LOC McCabe index: 2 number of parameters: 2 id: 102 unit: def kube_create_job() file: databases/postgres-pgvector/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 103 unit: def kube_create_job() file: databases/qdrant/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 104 unit: def kube_create_job() file: databases/weaviate/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 105 unit: def kube_create_job() file: databases/elasticsearch/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 106 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 60 end line: 70 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 107 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 107 end line: 117 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 108 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 60 end line: 70 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 109 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 107 end line: 117 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 110 unit: func parseFlags() file: observability/workload-metrics/main.go start line: 81 end line: 94 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 111 unit: func totalContainers() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 390 end line: 400 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 112 unit: func isObjectSupported() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 402 end line: 412 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 113 unit: func readAuthKeyFromFile() file: cost-optimization/gke-shift-left-cost/main.go start line: 102 end line: 112 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 114 unit: func saveDiffFile() file: cost-optimization/gke-shift-left-cost/main.go start line: 178 end line: 189 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 115 unit: def get_project_id() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/utils.py start line: 0 end line: 0 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 116 unit: def build_app() file: ai-ml/gke-ray/rayserve/llm/tpu/serve_tpu.py start line: 0 end line: 0 size: 11 LOC McCabe index: 4 number of parameters: 2 id: 117 unit: def add_WhereamiServicer_to_server() file: quickstarts/whereami/whereami_pb2_grpc.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 118 unit: func main() file: quickstarts/hello-app-cdn/main.go start line: 26 end line: 41 size: 11 LOC McCabe index: 2 number of parameters: 0 id: 119 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.go start line: 34 end line: 43 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 120 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.go start line: 34 end line: 43 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 121 unit: func Random() file: observability/workload-metrics/main.go start line: 51 end line: 60 size: 10 LOC McCabe index: 3 number of parameters: 0 id: 122 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 66 end line: 75 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 123 unit: func buildScheme() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 43 end line: 52 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 124 unit: func currencyDiff() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 347 end line: 356 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 125 unit: def get_interval() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/utils.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 126 unit: def get_aggregation() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/utils.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 127 unit: def text_to_text_function() file: ai-ml/t5-model-serving/client-app/src/app.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 3 id: 128 unit: def build_app() file: ai-ml/gke-ray/rayserve/llm/serve_chat_completion.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 129 unit: def __init__() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 130 unit: func main() file: quickstarts/hello-app/main.go start line: 28 end line: 42 size: 10 LOC McCabe index: 2 number of parameters: 0 id: 131 unit: func hello() file: quickstarts/hello-app-tls/main.go start line: 50 end line: 59 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 132 unit: func postProcessCost() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 328 end line: 337 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 133 unit: func buildDaemonSetV1() file: cost-optimization/gke-shift-left-cost/api/builder_daemonset.go start line: 42 end line: 50 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 134 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 145 end line: 153 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 135 unit: func estimateCost() file: cost-optimization/gke-shift-left-cost/main.go start line: 139 end line: 147 size: 9 LOC McCabe index: 2 number of parameters: 3 id: 136 unit: def setup_logging() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/utils.py start line: 0 end line: 0 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 137 unit: def on_start() file: ai-ml/t5-model-serving/loadgenerator/locustfile.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 138 unit: def get_image() file: ai-ml/maxdiffusion-tpu/build/webapp/app.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 139 unit: def _save_model() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 9 LOC McCabe index: 3 number of parameters: 2 id: 140 unit: public static void RegisterRoutes() file: windows/aspnet-gmsa/dotnetdemoappMVC/App_Start/RouteConfig.cs start line: 26 end line: 35 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 141 unit: func main() file: quickstarts/languages/go/helloworld.go start line: 25 end line: 35 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 142 unit: RedisController.prototype.onRedis = function() file: quickstarts/guestbook/php-redis/controllers.js start line: 24 end line: 32 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 143 unit: func() file: quickstarts/hello-app-redis/main.go start line: 43 end line: 51 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 144 unit: func healthz() file: quickstarts/hello-app-redis/main.go start line: 93 end line: 103 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 145 unit: def bucket() file: databases/postgres-pgvector/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 146 unit: def bucket() file: databases/qdrant/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 147 unit: def bucket() file: databases/weaviate/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 148 unit: def bucket() file: databases/elasticsearch/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 149 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 45 end line: 52 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 150 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 92 end line: 99 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 151 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse_grpc.pb.go start line: 32 end line: 39 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 152 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 45 end line: 52 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 153 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 92 end line: 99 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 154 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo_grpc.pb.go start line: 32 end line: 39 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 155 unit: func Contains() file: cost-optimization/gke-shift-left-cost/util/slice.go start line: 18 end line: 25 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 156 unit: func contains() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 155 end line: 162 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 157 unit: func buildDeployment() file: cost-optimization/gke-shift-left-cost/api/builder_deployment.go start line: 33 end line: 40 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 158 unit: func buildVolumeClaim() file: cost-optimization/gke-shift-left-cost/api/builder_volumeclaim.go start line: 35 end line: 42 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 159 unit: func buildReplicaSet() file: cost-optimization/gke-shift-left-cost/api/builder_replicaset.go start line: 33 end line: 40 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 160 unit: func buildStatefulSet() file: cost-optimization/gke-shift-left-cost/api/builder_statefulset.go start line: 33 end line: 40 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 161 unit: func buildDaemonSet() file: cost-optimization/gke-shift-left-cost/api/builder_daemonset.go start line: 33 end line: 40 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 162 unit: def parse_vllm_args() file: ai-ml/gke-ray/rayserve/llm/serve_chat_completion.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 163 unit: def get_tpu_head() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve_tpu.py start line: 0 end line: 0 size: 8 LOC McCabe index: 4 number of parameters: 0 id: 164 unit: def send_request_and_receive_image() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion_tpu_req.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 165 unit: def post_request() file: ai-ml/llm-serving-gemma/gradio/app/app.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 166 unit: public static void RegisterBundles() file: windows/aspnet-gmsa/dotnetdemoappMVC/App_Start/BundleConfig.cs start line: 23 end line: 34 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 167 unit: func hello() file: quickstarts/hello-app-cdn/main.go start line: 45 end line: 52 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 168 unit: func handler() file: quickstarts/languages/go/helloworld.go start line: 37 end line: 44 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 169 unit: func reverse() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.go start line: 45 end line: 51 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 170 unit: func retrieveAllSKUs() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 105 end line: 111 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 171 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 103 end line: 109 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 172 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 111 end line: 117 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 173 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 119 end line: 125 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 174 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 127 end line: 133 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 175 unit: func() file: cost-optimization/gke-shift-left-cost/api/manifests.go start line: 135 end line: 141 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 176 unit: func decodeHPA() file: cost-optimization/gke-shift-left-cost/api/builder_hpa.go start line: 26 end line: 32 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 177 unit: func buildAPIVersionKindName() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 277 end line: 283 size: 7 LOC McCabe index: 2 number of parameters: 4 id: 178 unit: func registryVolumeClaimVersions() file: cost-optimization/gke-shift-left-cost/api/k8s_decoder.go start line: 185 end line: 191 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 179 unit: func decodeDeployment() file: cost-optimization/gke-shift-left-cost/api/builder_deployment.go start line: 24 end line: 30 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 180 unit: func decodeVolumeClaim() file: cost-optimization/gke-shift-left-cost/api/builder_volumeclaim.go start line: 26 end line: 32 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 181 unit: func decodeReplicaSet() file: cost-optimization/gke-shift-left-cost/api/builder_replicaset.go start line: 24 end line: 30 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 182 unit: func decodeStatefulSet() file: cost-optimization/gke-shift-left-cost/api/builder_statefulset.go start line: 24 end line: 30 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 183 unit: func decodeDaemonSet() file: cost-optimization/gke-shift-left-cost/api/builder_daemonset.go start line: 24 end line: 30 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 184 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 74 end line: 80 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 185 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 199 end line: 206 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 186 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 243 end line: 249 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 187 unit: func newGCPPriceCatalog() file: cost-optimization/gke-shift-left-cost/main.go start line: 94 end line: 100 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 188 unit: func outputDiff() file: cost-optimization/gke-shift-left-cost/main.go start line: 149 end line: 156 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 189 unit: def is_deployed() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/utils.py start line: 0 end line: 0 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 190 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/tpu/serve_tpu.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 191 unit: protected void Application_Start() file: windows/aspnet-gmsa/dotnetdemoappMVC/Global.asax.cs start line: 27 end line: 33 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 192 unit: func hello() file: quickstarts/hello-app/main.go start line: 45 end line: 51 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 193 unit: def kube_test_credentials() file: databases/postgres-pgvector/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 194 unit: def kube_test_credentials() file: databases/qdrant/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 195 unit: def kube_test_credentials() file: databases/weaviate/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 196 unit: def kube_test_credentials() file: databases/elasticsearch/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 197 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 77 end line: 82 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 198 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 124 end line: 129 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 199 unit: func file_reverse_proto_rawDescGZIP() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 158 end line: 163 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 200 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 77 end line: 82 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 201 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 124 end line: 129 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 202 unit: func file_echo_proto_rawDescGZIP() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 156 end line: 161 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 203 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 235 end line: 240 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 204 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 252 end line: 257 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 205 unit: func() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 260 end line: 265 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 206 unit: def t5() file: ai-ml/t5-model-serving/loadgenerator/locustfile.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 207 unit: def replicate_all() file: ai-ml/maxdiffusion-tpu/build/server/main.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 208 unit: def aot_compile() file: ai-ml/maxdiffusion-tpu/build/server/main.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 209 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/serve_chat_completion.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 210 unit: def get_num_tpu_chips() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve_tpu.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 211 unit: def get_num_tpu_chips() file: ai-ml/gke-ray/rayserve/llm/tpu/serve_tpu.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 0 id: 212 unit: def image_grid() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion_tpu_req.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 3 id: 213 unit: def transform() file: ai-ml/llm-finetuning-gemma/finetune.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 214 unit: def __init__() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 215 unit: def train_and_save() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 216 unit: def __init__() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 3 id: 217 unit: def __init__() file: quickstarts/whereami/whereami_pb2_grpc.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 218 unit: def home() file: quickstarts/whereami/app.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 219 unit: func validateK8sPath() file: cost-optimization/gke-shift-left-cost/main.go start line: 114 end line: 118 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 220 unit: func exitOnError() file: cost-optimization/gke-shift-left-cost/main.go start line: 211 end line: 215 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 221 unit: func exitWithError() file: cost-optimization/gke-shift-left-cost/main.go start line: 217 end line: 221 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 222 unit: func exit() file: cost-optimization/gke-shift-left-cost/main.go start line: 223 end line: 227 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 223 unit: def img_prep() file: ai-ml/gke-online-serving-single-gpu/src/client/triton_mnist_client.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 224 unit: def img_prep() file: ai-ml/gke-online-serving-single-gpu/src/client/tfserve_mnist_client.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 225 unit: def tokenize_prompt() file: ai-ml/maxdiffusion-tpu/build/server/main.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 226 unit: def generate() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 227 unit: public ActionResult PreFlightChecks() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/PowershellController.cs start line: 31 end line: 35 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 228 unit: public ActionResult ContainerDiagnostics() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/PowershellController.cs start line: 37 end line: 41 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 229 unit: public ActionResult DomainDiagnostics() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/PowershellController.cs start line: 43 end line: 47 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 230 unit: func() file: quickstarts/hello-app-redis/main.go start line: 53 end line: 57 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 231 unit: func() file: quickstarts/hello-app-redis/main.go start line: 59 end line: 63 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 232 unit: func main() file: cost-optimization/gke-scheduled-autoscaler/main.go start line: 38 end line: 41 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 233 unit: func matchCPU() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 113 end line: 116 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 234 unit: func matchMemory() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 118 end line: 121 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 235 unit: func skuMatcher() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 127 end line: 130 size: 4 LOC McCabe index: 2 number of parameters: 3 id: 236 unit: func buildKindName() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 285 end line: 288 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 237 unit: func currency() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 342 end line: 345 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 238 unit: func saveMarkdownFile() file: cost-optimization/gke-shift-left-cost/main.go start line: 206 end line: 209 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 239 unit: func handler() file: workloads/migrate-x86-app-to-multi-arch/hello.go start line: 25 end line: 28 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 240 unit: func main() file: workloads/migrate-x86-app-to-multi-arch/hello.go start line: 30 end line: 33 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 241 unit: def inference() file: ai-ml/t5-model-serving/model/handler.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 242 unit: def get_max_model_len() file: ai-ml/gke-ray/rayserve/llm/tpu/serve_tpu.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 0 id: 243 unit: def get_tokenizer_mode() file: ai-ml/gke-ray/rayserve/llm/tpu/serve_tpu.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 0 id: 244 unit: def get_dtype() file: ai-ml/gke-ray/rayserve/llm/tpu/serve_tpu.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 0 id: 245 unit: def forward() file: ai-ml/gke-ray/raytrain/pytorch-mnist/train.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 246 unit: def get_features_and_labels() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 247 unit: def get_model_accuracy() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 248 unit: def _get_checkpoint_name() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 249 unit: def complete() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 250 unit: public static void RegisterGlobalFilters() file: windows/aspnet-gmsa/dotnetdemoappMVC/App_Start/FilterConfig.cs start line: 22 end line: 25 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 251 unit: public ActionResult Index() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/PowershellController.cs start line: 27 end line: 30 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 252 unit: public ActionResult Index() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/NetworkAccessController.cs start line: 27 end line: 30 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 253 unit: public ActionResult Index() file: windows/aspnet-gmsa/dotnetdemoappMVC/Controllers/HomeController.cs start line: 25 end line: 28 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 254 unit: def GetPayload() file: quickstarts/whereami/whereami_pb2_grpc.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 255 unit: export async function getPlayers() file: databases/hello-app-cloud-spanner/client/src/services/players.js start line: 15 end line: 17 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 256 unit: export async function createPlayer() file: databases/hello-app-cloud-spanner/client/src/services/players.js start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 257 unit: export async function deletePlayer() file: databases/hello-app-cloud-spanner/client/src/services/players.js start line: 23 end line: 25 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 258 unit: String hello() file: security/language-vulns/maven/src/main/java/com/example/helloworld/HelloworldApplication.java start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 259 unit: public static void main() file: security/language-vulns/maven/src/main/java/com/example/helloworld/HelloworldApplication.java start line: 37 end line: 39 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 260 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/health/health.go start line: 29 end line: 32 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 261 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/health/health.go start line: 35 end line: 37 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 262 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 54 end line: 56 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 263 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 73 end line: 75 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 264 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 101 end line: 103 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 265 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 120 end line: 122 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 266 unit: func NewReverseClient() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse_grpc.pb.go start line: 28 end line: 30 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 267 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse_grpc.pb.go start line: 53 end line: 55 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 268 unit: func RegisterReverseServer() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse_grpc.pb.go start line: 65 end line: 67 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 269 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/health/health.go start line: 29 end line: 32 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 270 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/health/health.go start line: 35 end line: 37 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 271 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 54 end line: 56 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 272 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 73 end line: 75 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 273 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 101 end line: 103 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 274 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 120 end line: 122 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 275 unit: func NewEchoClient() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo_grpc.pb.go start line: 28 end line: 30 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 276 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo_grpc.pb.go start line: 53 end line: 55 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 277 unit: func RegisterEchoServer() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo_grpc.pb.go start line: 65 end line: 67 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 278 unit: func getStackDriverService() file: observability/custom-metrics-autoscaling/direct-to-sd/sd_dummy_exporter.go start line: 102 end line: 104 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 279 unit: func matchGCEPersistentDisk() file: cost-optimization/gke-shift-left-cost/api/resource_price.go start line: 123 end line: 125 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 280 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 82 end line: 84 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 281 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 86 end line: 88 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 282 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 90 end line: 92 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 283 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 94 end line: 96 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 284 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 98 end line: 100 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 285 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 102 end line: 104 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 286 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 115 end line: 117 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 287 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 119 end line: 121 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 288 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 123 end line: 125 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 289 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 127 end line: 129 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 290 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 131 end line: 133 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 291 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 135 end line: 137 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 292 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 149 end line: 151 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 293 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 153 end line: 155 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 294 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 157 end line: 159 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 295 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 161 end line: 163 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 296 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 165 end line: 167 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 297 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 169 end line: 171 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 298 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 261 end line: 263 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 299 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 266 end line: 268 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 300 unit: func() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 271 end line: 273 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 301 unit: func isKindSupported() file: cost-optimization/gke-shift-left-cost/api/types.go start line: 414 end line: 416 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 302 unit: func bold() file: cost-optimization/gke-shift-left-cost/api/cost.go start line: 140 end line: 142 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 303 unit: func isPreviousPathProvided() file: cost-optimization/gke-shift-left-cost/main.go start line: 120 end line: 122 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 304 unit: def get_request_name() file: cost-optimization/gke-vpa-recommendations/metrics-exporter/utils.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 305 unit: def __init__() file: ai-ml/t5-model-serving/model/handler.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 306 unit: def index() file: ai-ml/maxdiffusion-tpu/build/webapp/app.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 307 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-multiplexing/serve.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 308 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve_tpu.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 309 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve_tpu.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 310 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve_tpu.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 311 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 312 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 313 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-composition/serve.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 314 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/serve.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 315 unit: def _read_dataset() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 316 unit: func main() file: windows/windows-multi-arch/hello.go start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 317 unit: def GetPayload() file: quickstarts/whereami/app.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 318 unit: def hello_world() file: quickstarts/languages/python/app.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 319 unit: String hello() file: quickstarts/languages/java/src/main/java/com/example/helloworld/HelloworldApplication.java start line: 33 end line: 35 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 320 unit: public static void main() file: quickstarts/languages/java/src/main/java/com/example/helloworld/HelloworldApplication.java start line: 38 end line: 40 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 321 unit: public void ConfigureServices() file: quickstarts/languages/dotnet/Startup.cs start line: 28 end line: 30 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 322 unit: def format_docs() file: databases/postgres-pgvector/docker/chatbot/chat.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 323 unit: def message() file: databases/postgres-pgvector/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 324 unit: def format_docs() file: databases/qdrant/docker/chatbot/chat.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 325 unit: def message() file: databases/qdrant/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 326 unit: def format_docs() file: databases/weaviate/docker/chatbot/chat.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 327 unit: def message() file: databases/weaviate/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 328 unit: def format_docs() file: databases/elasticsearch/docker/chatbot/chat.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 329 unit: def message() file: databases/elasticsearch/docker/embed-docs/endpoint.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 330 unit: def hello() file: management/gitops-style-delivery/app.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 331 unit: def postprocess() file: ai-ml/t5-model-serving/model/handler.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 2 id: 332 unit: def output_post() file: ai-ml/gke-online-serving-single-gpu/src/client/triton_mnist_client.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 333 unit: def output_post() file: ai-ml/gke-online-serving-single-gpu/src/client/tfserve_mnist_client.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 334 unit: def __init__() file: ai-ml/gke-ray/rayserve/llm/model-multiplexing/serve.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 335 unit: def __init__() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion_tpu.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 336 unit: def __init__() file: ai-ml/gke-ray/rayserve/stable-diffusion/stable_diffusion.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 337 unit: def get_model() file: batch/aiml-workloads/src/model_training.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 338 unit: def sessionID() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 339 unit: def _main_qsize() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 340 unit: def _processing_qsize() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 341 unit: def empty() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 342 unit: def _itemkey() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 343 unit: def _lease_exists() file: batch/aiml-workloads/src/rediswq.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 344 unit: def i_am_healthy() file: quickstarts/whereami/app.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 345 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 58 end line: 58 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 346 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 105 end line: 105 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 347 unit: func init() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse.pb.go start line: 180 end line: 180 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 348 unit: func() file: networking/grpc-gke-nlb-tutorial/reverse-grpc/api/reverse_grpc.pb.go start line: 56 end line: 56 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 349 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 58 end line: 58 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 350 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 105 end line: 105 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 351 unit: func init() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo.pb.go start line: 178 end line: 178 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 352 unit: func() file: networking/grpc-gke-nlb-tutorial/echo-grpc/api/echo_grpc.pb.go start line: 56 end line: 56 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 353 unit: def __init__() file: quickstarts/whereami/whereami_pb2.pyi start line: 0 end line: 0 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 354 unit: def __init__() file: quickstarts/whereami/whereami_pb2.pyi start line: 0 end line: 0 size: 1 LOC McCabe index: 1 number of parameters: 16 id: 355 unit: function RedisController() file: quickstarts/guestbook/php-redis/controllers.js start line: 22 end line: 22 size: 1 LOC McCabe index: 1 number of parameters: 0