Home | History | Annotate | Download | only in estimator

Lines Matching defs:Path

16 r"""System for specifying garbage collection (GC) of path based data.
18 This framework allows for GC of data specified by path names, for example files
19 on disk. gc.Path objects each represent a single item stored at a path and may
29 A gc filter function takes and returns a list of gc.Path items. Filter
30 functions are responsible for selecting Path items for preservation or deletion.
41 def parser(path):
42 match = re.match(path_regex, path.path)
45 return path._replace(export_version=int(match.group(1)))
61 gfile.DeleteRecursively(p.path) # deletes: "/tmp/1", "/tmp/2",
77 Path = collections.namedtuple('Path', 'path export_version')
91 for idx, path in enumerate(paths):
92 if path.export_version is not None:
93 heapq.heappush(heap, (path.export_version, idx))
107 A filter function that keeps exactly one path from each interval
108 [0, n], (n, 2n], (2n, 3n], etc... If more than one path exists in an
114 keeper_map = {} # map from interval to largest path seen in that interval
187 parser: a function which gets the raw Path and can augment it with
188 information such as the export_version, or ignore the path by returning
189 None. An example parser may extract the export version from a path
197 - Path.path
199 - Path.export_version
204 p = parser(Path(os.path.join(compat.as_str_any(base_dir),