From f7cbd401caf62c35e5c39706ffb17da4f672aed7 Mon Sep 17 00:00:00 2001 From: realstealthninja Date: Wed, 30 Sep 2026 09:37:07 +0000 Subject: [PATCH] Documentation for b64d5ecd022e4eb6b7f3f9a1157f13eccbfa6b78 --- d6/d02/file__linter_8py_source.html | 95 +++++++++++-------- ...aph_1_1is__graph__bipartite_1_1_graph.html | 7 +- 2 files changed, 58 insertions(+), 44 deletions(-) diff --git a/d6/d02/file__linter_8py_source.html b/d6/d02/file__linter_8py_source.html index 97abb25a8..c61bb24c1 100644 --- a/d6/d02/file__linter_8py_source.html +++ b/d6/d02/file__linter_8py_source.html @@ -128,48 +128,61 @@ document.addEventListener('DOMContentLoaded',() => { initNavTree('d6/d02/file__l
5print("Python {}.{}.{}".format(*sys.version_info)) # Python 3.8
6with open("git_diff.txt") as in_file:
7 modified_files = sorted(in_file.read().splitlines())
-
8 print("{} files were modified.".format(len(modified_files)))
+
8 print(f"{len(modified_files)} files were modified.")
9
-
10 cpp_exts = tuple(".c .c++ .cc .cpp .cu .cuh .cxx .h .h++ .hh .hpp .hxx".split())
-
11 cpp_files = [file for file in modified_files if file.lower().endswith(cpp_exts)]
-
12 print(f"{len(cpp_files)} C++ files were modified.")
-
13 if not cpp_files:
-
14 sys.exit(0)
-
15
-
16 subprocess.run(
-
17 [
-
18 "clang-tidy",
-
19 "--fix",
-
20 "-p=build",
-
21 "--extra-arg=-std=c++11",
-
22 *cpp_files,
-
23 "--",
-
24 ],
-
25 check=True,
-
26 text=True,
-
27 stderr=subprocess.STDOUT,
-
28 )
-
29 subprocess.run(
-
30 ["clang-format", "-i", "-style=file", *cpp_files],
-
31 check=True,
-
32 text=True,
-
33 stderr=subprocess.STDOUT,
-
34 )
-
35 upper_files = [file for file in cpp_files if file != file.lower()]
-
36 if upper_files:
-
37 print(f"{len(upper_files)} files contain uppercase characters:")
-
38 print("\n".join(upper_files) + "\n")
-
39 space_files = [file for file in cpp_files if " " in file or "-" in file]
-
40 if space_files:
-
41 print(f"{len(space_files)} files contain space or dash characters:")
-
42 print("\n".join(space_files) + "\n")
-
43 nodir_files = [file for file in cpp_files if file.count(os.sep) != 1]
-
44 if nodir_files:
-
45 print(f"{len(nodir_files)} files are not in one and only one directory:")
-
46 print("\n".join(nodir_files) + "\n")
-
47 bad_files = len(upper_files + space_files + nodir_files)
-
48 if bad_files:
-
49 sys.exit(bad_files)
+
10 cpp_exts = (
+
11 ".c",
+
12 ".c++",
+
13 ".cc",
+
14 ".cpp",
+
15 ".cu",
+
16 ".cuh",
+
17 ".cxx",
+
18 ".h",
+
19 ".h++",
+
20 ".hh",
+
21 ".hpp",
+
22 ".hxx",
+
23 )
+
24 cpp_files = [file for file in modified_files if file.lower().endswith(cpp_exts)]
+
25 print(f"{len(cpp_files)} C++ files were modified.")
+
26 if not cpp_files:
+
27 sys.exit(0)
+
28
+
29 _ = subprocess.run(
+
30 [
+
31 "clang-tidy",
+
32 "--fix",
+
33 "-p=build",
+
34 "--extra-arg=-std=c++11",
+
35 *cpp_files,
+
36 "--",
+
37 ],
+
38 check=True,
+
39 text=True,
+
40 stderr=subprocess.STDOUT,
+
41 )
+
42 _ = subprocess.run(
+
43 ["clang-format", "-i", "-style=file", *cpp_files],
+
44 check=True,
+
45 text=True,
+
46 stderr=subprocess.STDOUT,
+
47 )
+
48 upper_files = [file for file in cpp_files if file != file.lower()]
+
49 if upper_files:
+
50 print(f"{len(upper_files)} files contain uppercase characters:")
+
51 print("\n".join(upper_files) + "\n")
+
52 space_files = [file for file in cpp_files if " " in file or "-" in file]
+
53 if space_files:
+
54 print(f"{len(space_files)} files contain space or dash characters:")
+
55 print("\n".join(space_files) + "\n")
+
56 nodir_files = [file for file in cpp_files if file.count(os.sep) != 1]
+
57 if nodir_files:
+
58 print(f"{len(nodir_files)} files are not in one and only one directory:")
+
59 print("\n".join(nodir_files) + "\n")
+
60 bad_files = len(upper_files + space_files + nodir_files)
+
61 if bad_files:
+
62 sys.exit(bad_files)
diff --git a/de/d00/classgraph_1_1is__graph__bipartite_1_1_graph.html b/de/d00/classgraph_1_1is__graph__bipartite_1_1_graph.html index e4686c2ba..0469c181d 100644 --- a/de/d00/classgraph_1_1is__graph__bipartite_1_1_graph.html +++ b/de/d00/classgraph_1_1is__graph__bipartite_1_1_graph.html @@ -273,7 +273,7 @@ Private Attributes

Definition at line 106 of file is_graph_bipartite.cpp.

106 {
-
107 bool check = true;
+
107 bool check = true;
108 std::queue<int> q;
109 for (int current_edge = 0; current_edge < n; ++current_edge) {
110 if (side[current_edge] == -1) {
@@ -287,14 +287,15 @@ Private Attributes
118 side[neighbour] = (1 ^ side[current]);
119 q.push(neighbour);
120 } else {
-
121 check &= (side[neighbour] != side[current]);
+
121 check &= (side[neighbour] != side[current]);
122 }
123 }
124 }
125 }
126 }
-
127 return check;
+
127 return check;
128}
+
bool check(const std::string &s, const std::unordered_set< std::string > &strSet, int pos, std::vector< int > *dp)
Function that checks if the string passed in param can be segmented from position 'pos',...