<commit_before># Reference

## Functions

* `luapbintf.add_proto_path(proto_path)`
	+ Add proto path.
		- Like protoc -IPATH or --proto_path=PATH option.
		- Specify the directory in which to search for imports.
		- May add multiple times to set multiple proto paths,
		  and the directories will be searched in order.
		- If not given, the current working directory is used.
		- Same as `map_path("", proto_path)`
	+ `proto_path` {string}: a proto path
	+ returns nil
	+ e.g.
		- `add_proto_path("d:/proto_root")`
		- `add_proto_path("foo_proto")`

* `luapbintf.map_path(virtual_path, disk_path)`
	+ Map a path on disk to a location in the SourceTree.
	  Details see Protobuf `DiskSourceTree::MapPath()`.
	+ `virtual_path` {string}
	+ `disk_path` {string}
	+ returns nil
	+ e.g. `map_path("bar", "foo/bar")`

* `luapbintf.import_proto_file(proto_file)`
	+ Import the given file to a FileDescriptor.
		- Dependencies are imported automatically.
	+ `proto_file` {string}: a proto file name<commit_msg>Update doc.<commit_after># Reference

## Functions

* `luapbintf.add_proto_path(proto_path)`
	+ Add proto path.
		- Like protoc -IPATH or --proto_path=PATH option.
		- Specify the directory in which to search for imports.
		- May add multiple times to set multiple proto paths,
		  and the directories will be searched in order.
		- The current working directory is always added first automatically.
		- Same as `map_path("", proto_path)`
	+ `proto_path` {string}: a proto path
	+ returns nil
	+ e.g.
		- `add_proto_path("d:/proto_root")`
		- `add_proto_path("foo_proto")`

* `luapbintf.map_path(virtual_path, disk_path)`
	+ Map a path on disk to a location in the SourceTree.
	  Details see Protobuf `DiskSourceTree::MapPath()`.
	+ `virtual_path` {string}
	+ `disk_path` {string}
	+ returns nil
	+ e.g. `map_path("bar", "foo/bar")`

* `luapbintf.import_proto_file(proto_file)`
	+ Import the given file to a FileDescriptor.
		- Dependencies are imported automatically.
	+ `proto_file` {string}: a proto file name
{'fraction_non_alphanumeric': 0.1172962226640159, 'fraction_numerical': 0.0, 'mean_word_length': 4.122137404580153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6389100', 'n_tokens_mistral': 721, 'n_tokens_neox': 682, 'n_words': 212}