diff --git a/MODULE.bazel b/MODULE.bazel index 74a0a31036..63b595a8a7 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -82,8 +82,6 @@ git_override( git_override( module_name = "pybind11_protobuf", commit = "f02a2b7653bc50eb5119d125842a3870db95d251", - #patch_strip = 1, - #patches = ["//patches:pybind11_protobuf.patch"], remote = "https://github.com/pybind/pybind11_protobuf.git", ) diff --git a/ortools/flatzinc/parser.lex b/ortools/flatzinc/parser.lex index 1ae81b8104..0095b8759d 100644 --- a/ortools/flatzinc/parser.lex +++ b/ortools/flatzinc/parser.lex @@ -1,3 +1,16 @@ +// Copyright 2010-2025 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /* Create a reentrant parser. */ %option reentrant /* Allow parameter passing to and from the bison parser. */ diff --git a/ortools/flatzinc/parser.yy b/ortools/flatzinc/parser.yy index 767cd1032d..6ee12935b3 100644 --- a/ortools/flatzinc/parser.yy +++ b/ortools/flatzinc/parser.yy @@ -1,3 +1,16 @@ +// Copyright 2010-2025 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Renames all yy to orfz_ in public functions. %define api.prefix {orfz_} diff --git a/ortools/routing/docs/routing_svg.py b/ortools/routing/docs/routing_svg.py index 881f5b396d..13be4effbb 100755 --- a/ortools/routing/docs/routing_svg.py +++ b/ortools/routing/docs/routing_svg.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright 2010-2025 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/ortools/sat/colab/flags.py b/ortools/sat/colab/flags.py index 7057db3684..48d2cebe17 100644 --- a/ortools/sat/colab/flags.py +++ b/ortools/sat/colab/flags.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright 2010-2025 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/ortools/sat/colab/visualization.py b/ortools/sat/colab/visualization.py index 725042fb27..10bcb82bc9 100644 --- a/ortools/sat/colab/visualization.py +++ b/ortools/sat/colab/visualization.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright 2010-2025 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/ortools/sat/python/BUILD.bazel b/ortools/sat/python/BUILD.bazel index ffd20a2ebd..0148f932c2 100644 --- a/ortools/sat/python/BUILD.bazel +++ b/ortools/sat/python/BUILD.bazel @@ -15,6 +15,8 @@ load("@pip_deps//:requirements.bzl", "requirement") load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") +load("@rules_cc//cc:cc_binary.bzl", "cc_binary") +load("@rules_cc//cc:cc_library.bzl", "cc_library") load("@rules_python//python:py_library.bzl", "py_library") load("@rules_python//python:py_test.bzl", "py_test") diff --git a/ortools/sat/python/cp_model.py b/ortools/sat/python/cp_model.py index 3eefdfbdbd..035ef78f22 100644 --- a/ortools/sat/python/cp_model.py +++ b/ortools/sat/python/cp_model.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # Copyright 2010-2025 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.