Name | tree-plus JSON |
Version |
1.0.59
JSON |
| download |
home_page | None |
Summary | A `tree` util enhanced with tokens, lines, and components. |
upload_time | 2024-08-09 19:55:27 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
tree
util
cli
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Tree Plus
**A `tree` util enhanced with tokens, lines, and components. Why? To see the big picture!**
[](https://choosealicense.com/licenses/)
[](https://github.com/bionicles/tree_plus/blob/main/README.md)
[](https://github.com/bionicles/tree_plus/actions/workflows/unix.yml)
[](https://github.com/bionicles/tree_plus/actions/workflows/microsoft.yml)
**Supported Python Versions:**





**Supported Operating Systems:**



**Support Free, Open-Source Software:**
[](https://www.buymeacoffee.com/bionicles)
`pip install -U tree_plus`
## Usage
Here's how `tree_plus --help` looks (`-h` and `-H` both also work)
<!-- t5-start -->
```sh
tree_plus -h
Usage: tree_plus [OPTIONS] [PATHS]...
A `tree` util enhanced with tokens, lines, and components.
Wrap patterns in quotes: -i "*.py" / -g "*.rs"
Example Invocations:
Show tree_plus_src and tests simultaneously
> tree_plus tree_plus_src tests
Show files matching "*.*s" within tests/more_languages
> tree_plus -g "*.*s" tests/more_languages
Ignore Java files
> tree_plus -i "*.java" tests
Override DEFAULT_IGNORE: Only ignore .ini files.
> tree_plus -o -i "*.ini" tests/dot_dot
Syntax Highlight python files in src and tests
> tree_plus -s tree_plus_src/*.py tests/*.py
Concise Mode (No Parsing)
> tree_plus -c
URL + Tag Categories for a website
> tree_plus example.com
URL + Tag Categories for multiple websites with a link tree
> tree_plus example.com example.org -l
Hacker News Mode (3 articles, max depth 3)
> tree_plus --yc
Hacker News Mode (6 articles, max depth 6, warning, slow!)
> tree_plus --yc -n 6 -m 6
Use the Tiktoken gpt4o Model Tokenizer to tokenize Rust files
> tree_plus -t -g '*.rs'
Options:
-i, -I, --ignore TEXT Patterns to ignore, in quotes: -i "*.java"
-o, -O, --override Override DEFAULT_IGNORE (includes ignored
content): -o -i "*.java"
-g, -G, --glob TEXT Patterns to find, in quotes: -g "*.rs"
-v, -V, --version Print the version and exit.
-d, -D, --debug Enables $DEBUG_TREE_PLUS.
-s, -S, --syntax Enables Syntax Highlighting (WIP).
-c, -C, --concise Omit module components. (False)
--yc, --hn Include ycombinator (False)
-n, -N, --number INTEGER number of results (--yc mode only, default 3)
-m, -M, --max-depth INTEGER max number of steps (depth / level) from root
(--yc mode only, default 3)
-l, -L, --links include links (web mode only, default False)
-t, --tiktoken a shorthand for tiktoken with the gpt4o
tokenizer
-T, --tokenizer-name TEXT name of the tokenizer to use, for now only
'gpt4o' works
--timeout FLOAT regex timeout in seconds (optional, default
0.7)
-H, -h, --help Show this message and exit.
v(1.0.59) --- https://github.com/bionicles/tree_plus/blob/main/README.md
```
<!-- t5-end -->
## Example Output:
- [ ] Demonstrate Parsed Checkboxes
<!-- t1-start -->
```sh
tree_plus -i tests
π tree_plus (7 folders, 27 files)
βββ π .env.test (4 tokens, 0 lines)
β βββ DEBUG_TREE_PLUS
βββ π .github (2 folders, 3 files)
β βββ π dependabot.yml (128 tokens, 11 lines)
β β βββ Unsupported YAML Category
β βββ π workflows (1 folder, 2 files)
β βββ π microsoft.yml (283 tokens, 40 lines)
β β βββ Microsoft
β β βββ job: build
β β βββ - Set up Python ${{ matrix.python-version }}
β β βββ - Install tree_plus
β β βββ - Create .env file
β β βββ - Set PYTHONUTF8 for Windows
β β βββ - Run generic tests
β β βββ - Run specific test
β βββ π unix.yml (663 tokens, 87 lines)
β βββ Linux & MacOS
β βββ job: test
β βββ - Set up Python ${{ matrix.python-version }}
β βββ - Install tree_plus
β βββ - Create .env file
β βββ - Run generic tests
β βββ - Run specific test
β βββ job: deploy
β βββ - Set up Python
β βββ - Install dependencies
β βββ - Increment Version
β βββ - Build
β βββ - Install
β βββ - Test
β βββ - Update README
β βββ - Build Again
β βββ - Commit Updates
β βββ - Publish to PyPI
βββ π .gitignore (202 tokens, 52 lines)
βββ π coverage (1 folder, 1 file)
β βββ π lcov.info (17,359 tokens, 2,180 lines)
βββ π LICENSE (2,744 tokens, 81 lines)
βββ π Makefile (770 tokens, 121 lines)
β βββ SHELL := /bin/bash
β βββ cli
β βββ library-demo
β βββ rewrite-demo
β βββ coverage
β βββ debug
β βββ .PHONY: debug-command
β βββ debug-command: test
β βββ html-demo
β βββ absurdly-huge-jsonl
β βββ test: test-sequential test-tp-dotdot test-e2e test-cli test-programs test-deploy
β βββ test-parallel
β βββ test-sequential
β βββ test-more-languages
β βββ test-group
β βββ test-units
β βββ test-tp-dotdot
β βββ test-e2e
β βββ test-cli: cli
β βββ test-programs
β βββ test-deploy
β βββ vulture: install_vulture
β βββ install-vulture
β βββ build: install-build-tool clean-dist
β βββ install-wheel
β βββ install-build-tool
β βββ test-publish: install-twine
β βββ install-twine
β βββ publish: install-twine
β βββ clean-dist
β βββ t1
β βββ t2
β βββ t3
β βββ t4
β βββ t5
β βββ t6
βββ π nodemon.json (112 tokens, 24 lines)
βββ π pyproject.toml (364 tokens, 51 lines)
β βββ name: tree_plus
β βββ version: N/A
β βββ description: A `tree` util enhanced with tokens, lines, and components.
β βββ License :: OSI Approved :: Apache Software License
β βββ License :: OSI Approved :: MIT License
β βββ dependencies:
β βββ tiktoken
β βββ PyYAML
β βββ click
β βββ rich
β βββ tomli
β βββ natsort>=7.1
β βββ fake_useragent
β βββ bs4
β βββ func_timeout
β βββ regex
βββ π pytest.ini (20 tokens, 4 lines)
βββ π README.md (36,974 tokens, 3,639 lines)
β βββ TODO: research various kwargs for huggingface
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: show off how well we parse_todo
β βββ TODO: MOVE TIMEOUT_SECONDS TO ENV VAR
β βββ NOTE: you can customize the color here
β βββ TODO: clarify subtree types
β βββ NOTE: sometimes we need wider trees
β βββ TODO: research
β βββ NOTE: here we add directly input file_paths to the amortized glob matches
β βββ TODO: decide if we apply glob patterns to glob paths
β βββ NOTE: switching these eager tallies to lazy properties
β βββ TODO: decide between glob and rglob in _from_glob
β βββ TODO: decide if we need to re
β βββ TODO: clarify ignore in glob seed context
β βββ TODO: re
β βββ NOTE: this is only to satisfy the type checker
β βββ TODO: incorporate gitignore
β βββ BUG: HTML tree doesn
β βββ TODO: Fix HTML in TreePlus
β βββ BUG: this repeatedly finds tags
β βββ BUG: catastrophic backtracking in some c files
β βββ TODO: update parse_objective_c to avoid fixed unrolling
β βββ TODO: re
β βββ NOTE: no point in the answers since there
β βββ TODO: This todo tests parse_todo
β βββ TODO: This todo tests parse_todo
β βββ TODO: research various kwargs for huggingface
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: show off how well we parse_todo
β βββ TODO: MOVE TIMEOUT_SECONDS TO ENV VAR
β βββ NOTE: you can customize the color here
β βββ TODO: clarify subtree types
β βββ NOTE: sometimes we need wider trees
β βββ TODO: research
β βββ NOTE: directly add input file_paths to the amortized glob matches
β βββ TODO: decide to apply glob patterns to glob paths
β βββ TODO: decide between glob and rglob in _from_glob
β βββ TODO: decide if we need to re
β βββ TODO: clarify ignore in glob seed context
β βββ NOTE: this is only to satisfy the type checker
β βββ TODO: incorporate gitignore
β βββ BUG: HTML tree doesn
β βββ TODO: Fix HTML in TreePlus
β βββ BUG: this repeatedly finds tags
β βββ TODO: update parse_objective_c to avoid fixed unrolling
β βββ TODO: update parse_ocaml to avoid forced unrolling
β βββ TODO: fix parse_apl to avoid forced unrolling
β βββ TODO: fix parse_perl to avoid forced unrolling
β βββ TODO: re
β βββ NOTE: no point in the answers since there
β βββ TODO: This todo tests parse_todo
β βββ TODO: technically we should build this module without AVX support
β βββ TODO: This todo tests parse_todo
β βββ TODO: research various kwargs for huggingface
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: show off how well we parse_todo
β βββ TODO: MOVE TIMEOUT_SECONDS TO ENV VAR
β βββ NOTE: you can customize the color here
β βββ TODO: clarify subtree types
β βββ NOTE: sometimes we need wider trees
β βββ TODO: research
β βββ NOTE: directly add input file_paths to the amortized glob matches
β βββ TODO: decide to apply glob patterns to glob paths
β βββ TODO: decide between glob and rglob in _from_glob
β βββ TODO: decide if we need to re
β βββ TODO: clarify ignore in glob seed context
β βββ NOTE: this is only to satisfy the type checker
β βββ TODO: incorporate gitignore
β βββ BUG: HTML tree doesn
β βββ TODO: Fix HTML in TreePlus
β βββ BUG: this repeatedly finds tags
β βββ TODO: update parse_objective_c to avoid fixed unrolling
β βββ TODO: update parse_ocaml to avoid forced unrolling
β βββ TODO: fix parse_apl to avoid forced unrolling
β βββ TODO: fix parse_perl to avoid forced unrolling
β βββ TODO: re
β βββ NOTE: no point in the answers since there
β βββ TODO: This todo tests parse_todo
β βββ TODO: technically we should build this module without AVX support
β βββ TODO: This todo tests parse_todo
β βββ TODO: research various kwargs for huggingface
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: show off how well we parse_todo
β βββ TODO: MOVE TIMEOUT_SECONDS TO ENV VAR
β βββ NOTE: you can customize the color here
β βββ TODO: clarify subtree types
β βββ NOTE: sometimes we need wider trees
β βββ TODO: research
β βββ NOTE: directly add input file_paths to the amortized glob matches
β βββ TODO: decide to apply glob patterns to glob paths
β βββ TODO: decide between glob and rglob in _from_glob
β βββ TODO: decide if we need to re
β βββ TODO: clarify ignore in glob seed context
β βββ NOTE: this is only to satisfy the type checker
β βββ TODO: incorporate gitignore
β βββ BUG: HTML tree doesn
β βββ TODO: Fix HTML in TreePlus
β βββ BUG: this repeatedly finds tags
β βββ TODO: update parse_objective_c to avoid fixed unrolling
β βββ TODO: update parse_ocaml to avoid forced unrolling
β βββ TODO: fix parse_apl to avoid forced unrolling
β βββ TODO: fix parse_perl to avoid forced unrolling
β βββ TODO: re
β βββ NOTE: no point in the answers since there
β βββ TODO: This todo tests parse_todo
β βββ TODO: technically we should build this module without AVX support
β βββ TODO: This todo tests parse_todo
β βββ TODO: research various kwargs for huggingface
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: show off how well we parse_todo
β βββ TODO: MOVE TIMEOUT_SECONDS TO ENV VAR
β βββ NOTE: you can customize the color here
β βββ TODO: clarify subtree types
β βββ NOTE: sometimes we need wider trees
β βββ TODO: research
β βββ NOTE: directly add input file_paths to the amortized glob matches
β βββ TODO: decide to apply glob patterns to glob paths
β βββ TODO: decide between glob and rglob in _from_glob
β βββ TODO: decide if we need to re
β βββ TODO: clarify ignore in glob seed context
β βββ NOTE: this is only to satisfy the type checker
β βββ TODO: incorporate gitignore
β βββ BUG: HTML tree doesn
β βββ TODO: Fix HTML in TreePlus
β βββ BUG: this repeatedly finds tags
β βββ TODO: gather requirements for C namespace visualization
β βββ TODO: update parse_objective_c to avoid fixed unrolling
β βββ TODO: update parse_ocaml to avoid forced unrolling
β βββ TODO: fix parse_apl to avoid forced unrolling
β βββ TODO: fix parse_perl to avoid forced unrolling
β βββ TODO: re
β βββ NOTE: no point in the answers since there
β βββ TODO: This todo tests parse_todo
β βββ TODO: technically we should use a proper parser
β βββ TODO: This todo tests parse_todo
β βββ TODO: research various kwargs for huggingface
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ TODO: show off how well we parse_todo
β βββ TODO: MOVE TIMEOUT_SECONDS TO ENV VAR
β βββ NOTE: you can customize the color here
β βββ TODO: clarify subtree types
β βββ NOTE: sometimes we need wider trees
β βββ TODO: research
β βββ NOTE: directly add input file_paths to the amortized glob matches
β βββ TODO: decide to apply glob patterns to glob paths
β βββ TODO: decide between glob and rglob in _from_glob
β βββ TODO: decide if we need to re
β βββ TODO: clarify ignore in glob seed context
β βββ NOTE: this is only to satisfy the type checker
β βββ TODO: incorporate gitignore
β βββ BUG: HTML tree doesn
β βββ TODO: Fix HTML in TreePlus
β βββ BUG: this repeatedly finds tags
β βββ TODO: gather requirements for C namespace visualization
β βββ TODO: update parse_objective_c to avoid fixed unrolling
β βββ TODO: update parse_ocaml to avoid forced unrolling
β βββ TODO: fix parse_apl to avoid forced unrolling
β βββ TODO: fix parse_perl to avoid forced unrolling
β βββ TODO: re
β βββ NOTE: no point in the answers since there
β βββ TODO: This todo tests parse_todo
β βββ TODO: technically we should use a proper parser
β βββ TODO: This todo tests parse_todo
β βββ # Tree Plus
β βββ ## Usage
β βββ ## Example Output:
β βββ - [ ] Demonstrate Parsed Checkboxes
β βββ ## Start Quick!
β βββ ### Prerequisites
β βββ ### Install Tree Plus
β βββ #### PyPI
β βββ #### Local Hackable Install
β βββ ### Alias Usage
β βββ ## Library Usage:
β βββ ## Moar Languages
β βββ ### Currently Tested Languages:
β βββ ### Without the -c "Concise" Flag:
β βββ ## Got Globs?
β βββ ## Languages Todo:
β βββ ## Oppose Unfair Business Practices
β βββ ## License
βββ π tree_plus_cli.py (1,895 tokens, 293 lines)
β βββ def main(
β glob: Optional[Tuple],
β paths: Optional[Union[str, Tuple]],
β ignore: Tuple,
β override: bool,
β debug: bool,
β version: bool,
β syntax: bool,
β concise: bool,
β
β yc: bool,
β number: int,
β max_depth: int,
β links: bool,
β tiktoken: bool,
β tokenizer_name: Optional,
β timeout: Optional,
β )
βββ π tree_plus_programs (1 folder, 4 files)
β βββ π hello_tree_plus.py (545 tokens, 80 lines)
β β βββ class ItHappened
β β βββ def main()
β β βββ def trees(
β β or_: bool,
β β it: int,
β β didnt: str,
β β happen: tuple,
β β ) -> ItHappened
β βββ π rewrite.py (4,017 tokens, 471 lines)
β β βββ TODO: research various kwargs for huggingface
β β βββ
β β β DEFAULT_MAX_LENGTH = 256
β β βββ class ModelName(Enum)
β β βββ QWEN_2 = "Qwen/Qwen2-7B-Instruct"
β β βββ MISTRAL_3 = "mistralai/Mistral-7B-Instruct-v0.3"
β β βββ class ModelContext(Enum)
β β βββ QWEN_2 = 131
β β βββ MISTRAL_3 = 32
β β βββ root: None,
β β βββ def rewrite_module(
β β β max_length: int,
β β β fill_context: bool,
β β β input_path: Path,
β β β output_path: Optional,
β β β suffix: Optional = ".rs",
β β β include_complete_file: bool = True,
β β β )
β β βββ def main(
β β fill_context: bool,
β β length: int,
β β input_path: Path,
β β output_path: Optional,
β β )
β βββ π stub_tests.py (1,348 tokens, 180 lines)
β β βββ TODO: fix this path
β β βββ TODO: fill in these stubs
β β βββ @lru_cache
β β β def remove_decorators(component: str) -> str
β β βββ def make_import_path(path: Path) -> str
β β βββ def stub_tests(
β β β input_path: str,
β β β output_path: Optional,
β β β rewrite_ok: bool,
β β β ) -> Tuple[List, str, bool]
β β βββ def main(
β β β input_path: str,
β β β output_path: Optional,
β β β rewrite_ok: bool,
β β β )
β β βββ class Vehicle
β β βββ class Car(Vehicle)
β βββ π test_stub_tests.py (79 tokens, 20 lines)
β βββ TODO: fix this path
β βββ TODO: fill in these stubs
β βββ def test_remove_decorators()
β βββ def test_make_import_path()
β βββ def test_stub_tests()
β βββ def test_main()
β βββ def test_class_vehicle()
β βββ def test_class_car()
βββ π tree_plus_src (2 folders, 10 files)
βββ π count_tokens_lines.py (1,316 tokens, 209 lines)
β βββ TODO: show off how well we parse_todo
β βββ @dataclass(frozen=True)
β β class TokenLineCount
β βββ n_tokens: int
β βββ n_lines: int
β βββ class TokenizerName(Enum)
β βββ WC = "wc"
β βββ GPT4O = "gpt4o"
β βββ GPT4 = "gpt-4"
β βββ def count_tokens_lines(
β β file_path: Union,
β β *,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β ) -> Optional[TokenLineCount]
β βββ def count_openai_tokens_lines_from_contents(
β β contents: Union,
β β *,
β β tokenizer_name: TokenizerName = TokenizerName.GPT4,
β β ) -> TokenLineCount
β βββ def count_wc_tokens_lines_from_path(file_path: str) -> TokenLineCount
β βββ def add_tokens_lines(
β lhs_count: TokenLineCount, rhs_count: TokenLineCount
β ) -> TokenLineCount
βββ π debug.py (186 tokens, 39 lines)
β βββ def disable_debug()
β βββ @lru_cache
β β def debug_enabled()
β βββ def debug_print(*args, **kwargs)
β βββ def enable_debug()
β βββ @contextmanager
β def debug_disabled()
βββ π deploy.py (2,058 tokens, 230 lines)
β βββ def extract(path: Optional = None) -> str
β βββ def load(content: Optional = None, path: Optional = None)
β βββ def extract_version(source_path: Optional = None) -> Tuple
β βββ def increment_version(
β β source_path: Optional = None,
β β sink_path: Optional = None,
β β )
β βββ def run_command(command: Optional = None, debug: bool = False)
β βββ def replace_readme_section(
β β source_path: Optional = None,
β β sink_path: Optional = None,
β β marker: Optional = None,
β β command: Optional = None,
β β )
β βββ def update_readme(source_path: Optional = None, sink_path: Optional = None)
β βββ def main()
βββ π engine.py (11,999 tokens, 1,433 lines)
β βββ TODO: MOVE TIMEOUT_SECONDS TO ENV VAR
β βββ NOTE: you can customize the color here
β βββ TODO: clarify subtree types
β βββ NOTE: sometimes we need wider trees
β βββ TODO: research
β βββ NOTE: directly add input file_paths to the amortized glob matches
β βββ TODO: decide to apply glob patterns to glob paths
β βββ TODO: decide between glob and rglob in _from_glob
β βββ TODO: decide if we need to re
β βββ TODO: clarify ignore in glob seed context
β βββ NOTE: this is only to satisfy the type checker
β βββ
β β INTO_RICH_TREE_TIMEOUT_SECONDS = 1
β βββ
β β BLACK = "black"
β βββ class Category(Enum)
β βββ
β β ROOT = 1
β βββ GLOB = 2
β βββ FOLDER = 3
β βββ FILE = 4
β βββ COMPONENT = 5
β βββ URL = 6
β βββ TAG = 7
β βββ @dataclass
β β class TreePlus
β βββ category: Category
β βββ name: Union
β βββ line_count: int
β βββ token_count: int
β βββ subtrees: Union[
β βββ hrefs: Optional[Dict]
β βββ @property
β β def has_tree_plus_subtrees(self) -> Optional
β βββ @property
β β def n_folders(self) -> int
β βββ @property
β β def n_files(self) -> int
β βββ @property
β β def n_lines(self) -> int
β βββ @property
β β def n_tokens(self) -> int
β βββ def is_root(self) -> bool
β βββ def is_folder(self) -> bool
β βββ def is_file(self) -> bool
β βββ def is_glob(self) -> bool
β βββ def is_component(self) -> bool
β βββ def is_url(self) -> bool
β βββ def into_rich_tree(self) -> Tree
β βββ def into_str(self) -> str
β βββ def render(
β β self,
β β style: Optional = None,
β β highlight: bool = False,
β β markup: bool = True,
β β capturing: bool = False,
β β )
β βββ def render_hrefs(self)
β βββ def stats(self) -> str
β βββ def from_hrefs(
β β hrefs: dict,
β β root_panel_text,
β β link_color: str = LINK_COLOR,
β β ) -> Optional[TreePlus]
β βββ def stats_from_tree_plus(tree: TreePlus) -> str
β βββ @lru_cache
β β def remove_trailing_space(x: str) -> str
β βββ def tree_to_string(
β β tree: Tree,
β β markup: bool = False,
β β highlight: bool = False,
β β text_style: str = TEXT_COLOR,
β β ) -> str
β βββ def clean_string(input_str: str) -> str
β βββ def safe_print(
β β tree: Union[Tree, Panel, str],
β β style: Optional = None,
β β highlight: bool = True,
β β markup: bool = False,
β β capturing: bool = False,
β β )
β βββ def _make_rich_tree(
β β label,
β β style: str = TEXT_COLOR,
β β guide_style: str = LINK_COLOR,
β β highlight: bool = True,
β β ) -> Tree
β βββ def into_rich_tree(
β β *,
β β root: Optional[TreePlus] = None,
β β timeout=INTO_RICH_TREE_TIMEOUT_SECONDS,
β β ) -> Tree
β βββ def _into_rich_tree(*, root: Optional[TreePlus] = None) -> Tree
β βββ def is_url(x: str) -> bool
β βββ @lru_cache
β β def categorize(
β β x: Union[Path, Tuple, str],
β β check_strs_globs: bool = True,
β β check_strs_paths: bool = True,
β β check_strs_urls: bool = True,
β β raise_if_component: bool = True,
β β ) -> Category
β βββ def from_seed(
β β maybe_seed: Optional[Union] = None,
β β *,
β β maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
β β maybe_globs: Optional[Tuple] = None,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β syntax_highlighting: bool = False,
β β override_ignore: bool = False,
β β concise: bool = False,
β β ) -> TreePlus
β βββ def from_seeds(
β β maybe_seeds: Optional[Tuple[Union, ...]] = None,
β β *,
β β maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
β β maybe_globs: Optional[Tuple] = None,
β β syntax_highlighting: bool = False,
β β override_ignore: bool = False,
β β concise: bool = False,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β regex_timeout: Optional = None,
β β ) -> TreePlus
β βββ def _reduce_forest(
β β *,
β β forest: Tuple[TreePlus, ...],
β β ) -> TreePlus
β βββ def _map_seeds(
β β *,
β β seeds: Optional[Tuple[Union, ...]] = None,
β β maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
β β maybe_globs: Optional[Tuple] = None,
β β syntax_highlighting: bool = False,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β regex_timeout: Optional = None,
β β concise: bool = False,
β β ) -> Tuple[TreePlus, ...]
β βββ def _from_seed(
β β *,
β β seed_path: Optional[Union[Path, str]] = None,
β β maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
β β maybe_globs: Optional[AmortizedGlobs] = None,
β β syntax_highlighting: bool = False,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β regex_timeout: Optional = None,
β β concise: bool = False,
β β is_url: bool = False,
β β ) -> TreePlus
β βββ def _add_subtree(
β β *,
β β root: TreePlus,
β β subtree: TreePlus,
β β )
β βββ def _from_glob(
β β *,
β β pattern: str,
β β maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
β β maybe_globs: Optional[AmortizedGlobs] = None,
β β syntax_highlighting: bool = False,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β regex_timeout: Optional = None,
β β concise: bool = False,
β β ) -> TreePlus
β βββ def _from_folder(
β β *,
β β folder_path: Path,
β β maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
β β maybe_globs: Optional[AmortizedGlobs] = None,
β β syntax_highlighting: bool = False,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β regex_timeout: Optional = None,
β β concise: bool = False,
β β ) -> TreePlus
β βββ def _from_file(
β β *,
β β file_path: Path,
β β syntax_highlighting: bool = False,
β β tokenizer_name: TokenizerName = TokenizerName.WC,
β β max_tokens: int = MAX_TOKENS,
β β regex_timeout: Optional = None,
β β concise: bool = False,
β β ) -> TreePlus
β βββ def _from_url(
β β *,
β β url: str,
β β syntax_highlighting: bool = False,
β β concise: bool = False,
β β ) -> TreePlus
β βββ def base_url(url: str, with_path: bool = False) -> str
β βββ def _from_html_text(contents: str, maybe_url_base: Optional = None) -> TreePlus
β βββ def empty_tag_tree(n: str = "?")
β βββ def union_from_element(elem: PageElement) -> Union[Tag, NavigableString]
β βββ def node_index_str_from_tuple(
β β node_index: Tuple,
β β prefix: str = "(",
β β suffix: str = ")",
β β number_color: str = CYBERCYAN,
β β dot_color: str = GOLD,
β β ) -> str
β βββ def _from_soup(
β β tag: Union[Tag, NavigableString],
β β tree: Optional[TreePlus] = None,
β β node_index: Tuple = (),
β β maybe_url_base: Optional = None,
β β hrefs: Optional[Dict] = None,
β β ) -> Optional[TreePlus]
β βββ def from_hacker_news_articles(
β β articles: Articles,
β β depth: int = 0,
β β max_depth: int = -1,
β β title: Union = "Hacker News Front Page",
β β parent_num: Tuple = (),
β β ) -> TreePlus
β βββ def format_link(
β β url: str,
β β text: str,
β β link_color: str = LINK_COLOR,
β β ) -> str
β βββ def process_hacker_news_item(
β β item: dict,
β β kids: Articles,
β β depth: int,
β β max_depth: int,
β β parent_num: Tuple,
β β parser: Union[Literal["lxml"], Literal["html.parser"]] = "html.parser",
β β link_color: str = LINK_COLOR,
β β ) -> Optional[TreePlus]
β βββ def rich_links_from_soup(
β β item_soup: BeautifulSoup,
β β recursive: bool = True,
β β ) -> List
β βββ def ordered_list_from(ordered_list: Iterable) -> List
β βββ def _get_lexer(file_path: Path) -> str
β βββ def _syntax_highlight(
β *,
β file_path: Path,
β components: List,
β ) -> Union[List[Syntax], List]
βββ π ignore.py (2,342 tokens, 332 lines)
β βββ TODO: incorporate gitignore
β βββ def _is_all_str(x: Any) -> bool
β βββ def can_parse(x) -> bool
β βββ @lru_cache
β β def parse_ignore(
β β maybe_ignore_tuple: Optional[Tuple] = None, override: bool = False
β β ) -> Optional[Tuple]
β βββ @lru_cache
β β def is_glob(x: str) -> bool
β βββ @lru_cache
β β def parse_globs(
β β maybe_globs_tuple: Optional[Tuple] = None,
β β ) -> Optional[Tuple]
β βββ @dataclass(frozen=True)
β β class AmortizedGlobs
β βββ paths: Tuple[Path, ...]
β βββ globs: Tuple
β βββ matches: FrozenSet[Path]
β βββ def amortize_globs(
β β paths: Tuple[Path, ...],
β β globs: Tuple,
β β ) -> Optional[AmortizedGlobs]
β βββ @lru_cache(maxsize=None)
β def should_ignore(
β path: Path,
β ignore: Optional[Tuple] = DEFAULT_IGNORE,
β globs: Optional[AmortizedGlobs] = None,
β ) -> bool
βββ π isabelle_symbols.py (2,146 tokens, 462 lines)
β βββ @lru_cache
β β def _replace_symbol(match: re.Match) -> str
β βββ def replace_isabelle_symbols(content: str) -> str
βββ π parse_file.py (24,619 tokens, 2,713 lines)
β βββ BUG: HTML tree doesn
β βββ TODO: Fix HTML in TreePlus
β βββ BUG: this repeatedly finds tags
β βββ TODO: gather requirements for C namespace visualization
β βββ TODO: update parse_objective_c to avoid fixed unrolling
β βββ TODO: update parse_ocaml to avoid forced unrolling
β βββ TODO: fix parse_apl to avoid forced unrolling
β βββ TODO: fix parse_perl to avoid forced unrolling
β βββ
β β DEFAULT_REGEX_TIMEOUT = 0
β βββ
β β BINARY_CHECK_SIZE = 1024
β βββ def head(n: int, content: str) -> str
β βββ @lru_cache(maxsize=None)
β β def read_file(
β β file_path: str,
β β raise_exceptions: bool = False,
β β n_lines: Optional = None,
β β ) -> str
β βββ def parse_file(
β β file_path: Union,
β β content: Optional = None,
β β regex_timeout: Optional = None,
β β ) -> List
β βββ def extract_groups(match: regex.Match, named_only: bool = False) -> dict
β βββ def parse_html(content: str) -> List
β βββ
β β
β β DENY_HTML = "
"
β βββ def parse_jsonl(content: str) -> List
β βββ def process_tag(tag, components) -> Optional
β βββ def components_from_html(content: str) -> List
β βββ def prettify_tr(component: str) -> str
β βββ def assemble_tensorflow_flag(
β β flag_type: str, flag: str, description: Optional[List] = None
β β ) -> str
β βββ def parse_tensorflow_flags(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_rst(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_c(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ @lru_cache
β β def is_binary_string(data: bytes) -> bool
β βββ @lru_cache
β β def is_binary(file_path: str) -> bool
β βββ def clean_isabelle_text(content: str) -> str
β βββ def parse_isabelle(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_fortran(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def remove_c_comments(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> str
β βββ def parse_ts(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def remove_py_comments(
β β input_string: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> str
β βββ def remove_docstrings(source, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> str
β βββ def parse_py(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_rb(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_fsharp(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_tcl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_erl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_rs(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_csv(content: str, max_leaves=11) -> List
β βββ def parse_mathematica(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_r(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_zig(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_hs(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_lisp(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_capnp(content: str) -> List
β βββ def parse_grpc(content: str) -> List
β βββ def parse_openrpc_json(content: str) -> List
β βββ def parse_json_rpc(content: str) -> List
β βββ def parse_graphql(content: str) -> List
β βββ def format_dependency(name, details)
β βββ def parse_cargo_toml(content: str) -> List
β βββ def parse_pyproject_toml(content: str) -> List
β βββ def parse_lean(
β β lean_content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_cs(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_tex(tex_content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_go(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_swift(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_bash(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_d_dot_ts(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_angular_app_module(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_angular_routes(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_angular_spec(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_environment_ts(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_dot_env(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_requirements_txt(content: str) -> List
β βββ def parse_json_schema(content: str) -> List
β βββ def parse_package_json(content: str) -> List
β βββ def parse_makefile(content: str) -> List
β βββ def parse_sql(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def is_openapi_yml(ymls: Tuple) -> bool
β βββ def is_k8s_yml(ymls: Tuple) -> bool
β βββ def is_ansible_yml(ymls: Tuple) -> bool
β βββ def is_github_yml(ymls: Tuple) -> bool
β βββ def parse_github_yml(ymls: Tuple) -> List
β βββ def parse_k8s(ymls: Tuple) -> List
β βββ def parse_ansible(ymls: Tuple) -> List
β βββ def parse_openapi_yml(ymls: Tuple) -> List
β βββ def parse_yml(content: str) -> List
β βββ def parse_db(db_path: str) -> List
β βββ def dedent_components(
β β components: List, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_cbl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_java(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_jl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_kt(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_lua(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_objective_c(
β β content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT
β β ) -> List
β βββ def parse_ocaml(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_apl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_perl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_php(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_ps1(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_matlab(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_scala(content: str, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_tf(content: str, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_md(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_txt(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
β βββ def parse_markers(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List
βββ π scripts (1 folder, 1 file)
β βββ π alias_tree_plus.sh (241 tokens, 30 lines)
β βββ add_alias()
β βββ create_conda_env()
βββ π version.py (12 tokens, 1 line)
β βββ __version__ = "1.0.59"
βββ π web.py (2,409 tokens, 321 lines)
βββ TODO: re
βββ NOTE: no point in the answers since there
βββ
β N_GOOGLE_RESULTS = 2
βββ def create_url(kind: Action, query: str) -> str
βββ def create_link(kind: Action, query: str) -> str
βββ def create_wikipedia_url(subterm: str) -> str
βββ def create_wikipedia_search_url(subterm: str) -> str
βββ def create_google_search_url(subterm: str) -> str
βββ def create_stack_overflow_search_url(subterm: str) -> str
βββ def create_wikipedia_search_link(
β subterm: str,
β prefix: str = "",
β suffix: str = "",
β link_style: str = LINK_STYLE,
β ) -> str
βββ def create_google_search_link(
β subterm: str,
β prefix: str = "",
β suffix: str = "",
β link_style: str = LINK_STYLE,
β ) -> str
βββ def create_stack_overflow_search_link(
β subterm: str,
β prefix: str = "",
β suffix: str = "",
β link_style: str = LINK_STYLE,
β ) -> str
βββ def search_stack_overflow(
β *,
β titled: Optional = None,
β tagged: Optional = None,
β answered: Optional = True,
β ) -> Tuple[Tuple[dict, Tuple], ...]
βββ def table_from_df(
β results: Tuple[Dict, ...],
β title: Optional = None,
β show_lines: bool = True,
β ) -> Table
βββ def articles_from_hacker_news(
β max_depth: int = 2,
β current_depth: int = 0,
β n_articles: int = 3,
β sleep_time: float = 0.00,
β ) -> Articles
βββ def hacker_news_article_from_id(
β article_id: int,
β depth: int,
β current_depth: int,
β n: int,
β sleep_time: float,
β ) -> Tuple[HList, Tuple[HList, ...]]
βββ def fetch_kids(
article_id: int,
kid_ids: List,
depth: int,
current_depth: int,
n: int,
sleep_time: float,
) -> Tuple[HList, ...]
tree_plus v(1.0.59) ignore=('tests',) globs=() syntax=False paths=()
7 folder(s), 27 file(s), 13,104 line(s), 114,835 token(s) in 0.31 second(s).
```
<!-- t1-end -->
- [x] Demonstrate Parsed Checkboxes
## Start Quick!
### Prerequisites
Ensure you have the following tools installed:
- [Miniconda3 (conda)](https://docs.conda.io/en/latest/miniconda.html)
- [GitHub CLI (gh)](https://cli.github.com/manual/installation)
### Install Tree Plus
#### PyPI
```bash
pip install tree_plus
```
#### Local Hackable Install
1. Clone the repository and cd into the tree_plus directory
```bash
gh repo clone https://github.com/bionicles/tree_plus.git && cd tree_plus
```
2. Install tree_plus using Makefile
```bash
make cli
```
Alternatively, if `make` is not installed, use `pip`:
```bash
pip install -e .[dev]
```
Now, you can use the `tree_plus` command.
3. Add slick aliases like `tp` to your RC file
Typical RC_FILE values `~/.bash_profile`, `~/.bashrc`, or `~/.zshrc`
Use our **idempotent aliasing script**: [alias_tree_plus.sh](https://github.com/bionicles/tree_plus/blob/main/tree_plus_src/scripts/alias_tree_plus.sh)
```bash
RC_FILE=~/.bash_profile source alias_tree_plus.sh
```
```bash
RC_FILE=~/.bashrc source alias_tree_plus.sh
```
```zsh
RC_FILE=~/.zshrc source alias_tree_plus.sh
```
### Alias Usage
Run `tree_plus` with a shorter alias:
```sh
tp
```
Reinstall `tree_plus` quickly:
```sh
tpcli
```
`cd` (change directory) to the `TREE_PLUS_PATH`:
```sh
cdtp
```
Run "debug mode" (test runner)
Ensure your rig has a global install of [nodemon](https://www.npmjs.com/package/nodemon):
```sh
npm install -g nodemon
```
Watch for changes to auto re-test `tree_plus`:
```sh
make debug
```
## Library Usage:
Here's how to import the library
```py
import tree_plus_src as tp
```
Check out the **tree_plus_programs** folder for a library usage example.
(More to come!)
To run the library usage example (make sure you've installed `tree_plus`!)
```sh
make library_demo
```
## Moar Languages
### Currently Tested Languages:
<!-- t6-start -->
```sh
tree_plus -c -i group_todo tests/more_languages
π more_languages (9 folders, 84 files)
βββ π group1 (1 folder, 11 files)
β βββ π addamt.cobol (441 tokens, 40 lines)
β βββ π CUSTOMER-INVOICE.CBL (412 tokens, 60 lines)
β βββ π JavaTest.java (578 tokens, 86 lines)
β βββ π JuliaTest.jl (381 tokens, 63 lines)
β βββ π KotlinTest.kt (974 tokens, 171 lines)
β βββ π lesson.cbl (635 tokens, 78 lines)
β βββ π LuaTest.lua (83 tokens, 16 lines)
β βββ π ObjectiveCTest.m (62 tokens, 16 lines)
β βββ π OcamlTest.ml (49 tokens, 12 lines)
β βββ π test.js (757 tokens, 154 lines)
β βββ π test.ts (832 tokens, 165 lines)
βββ π group2 (1 folder, 8 files)
β βββ π apl_test.apl (28 tokens, 5 lines)
β βββ π c_test.c (837 tokens, 142 lines)
β βββ π go_test.go (179 tokens, 46 lines)
β βββ π PerlTest.pl (63 tokens, 20 lines)
β βββ π PhpTest.php (70 tokens, 19 lines)
β βββ π PowershellTest.ps1 (459 tokens, 89 lines)
β βββ π ScalaTest.scala (171 tokens, 40 lines)
β βββ π test.csv (0 tokens, 0 lines)
βββ π group3 (1 folder, 16 files)
β βββ π bash_test.sh (127 tokens, 22 lines)
β βββ π cpp_test.cpp (1,670 tokens, 259 lines)
β βββ π csharp_test.cs (957 tokens, 146 lines)
β βββ π hallucination.tex (1,633 tokens, 126 lines)
β βββ π ruby_test.rb (138 tokens, 37 lines)
β βββ π swift_test.swift (469 tokens, 110 lines)
β βββ π test.lean (289 tokens, 42 lines)
β βββ π test.capnp (117 tokens, 30 lines)
β βββ π test.graphql (66 tokens, 21 lines)
β βββ π test.proto (142 tokens, 34 lines)
β βββ π test.sqlite (0 tokens, 0 lines)
β βββ π test_Cargo.toml (119 tokens, 18 lines)
β βββ π test_json_rpc_2_0.json (26 tokens, 6 lines)
β βββ π test_openapi.yaml (753 tokens, 92 lines)
β βββ π test_openrpc.json (225 tokens, 44 lines)
β βββ π test_pyproject.toml (304 tokens, 39 lines)
βββ π group4 (1 folder, 10 files)
β βββ π erl_test.erl (480 tokens, 68 lines)
β βββ π haskell_test.hs (414 tokens, 41 lines)
β βββ π mathematica_test.nb (133 tokens, 21 lines)
β βββ π matlab_test.m (48 tokens, 12 lines)
β βββ π RTest.R (367 tokens, 46 lines)
β βββ π rust_test.rs (974 tokens, 188 lines)
β βββ π test.zig (397 tokens, 60 lines)
β βββ π test_fsharp.fs (92 tokens, 27 lines)
β βββ π test_tcl_tk.tcl (54 tokens, 16 lines)
β βββ π tf_test.tf (202 tokens, 38 lines)
βββ π group5 (1 folder, 19 files)
β βββ π ansible_test.yml (55 tokens, 14 lines)
β βββ π app-routing.module.ts (287 tokens, 28 lines)
β βββ π app.component.spec.ts (410 tokens, 47 lines)
β βββ π app.component.ts (271 tokens, 45 lines)
β βββ π app.module.ts (374 tokens, 43 lines)
β βββ π checkbox_test.md (176 tokens, 21 lines)
β βββ π checkbox_test.txt (257 tokens, 33 lines)
β βββ π environment.test.ts (197 tokens, 19 lines)
β βββ π hello_world.pyi (22 tokens, 3 lines)
β βββ π k8s_test.yaml (140 tokens, 37 lines)
β βββ π Makefile (714 tokens, 84 lines)
β βββ π requirements_test.txt (29 tokens, 10 lines)
β βββ π rust_todo_test.rs (92 tokens, 26 lines)
β βββ π sql_test.sql (270 tokens, 51 lines)
β βββ π standard-app-routing.module.ts (100 tokens, 16 lines)
β βββ π test.env (190 tokens, 25 lines)
β βββ π testJsonSchema.json (421 tokens, 48 lines)
β βββ π testPackage.json (349 tokens, 43 lines)
β βββ π tickets.component.ts (7,160 tokens, 903 lines)
βββ π group6 (1 folder, 13 files)
β βββ π catastrophic.c (5,339 tokens, 754 lines)
β βββ π cpp_examples_impl.cc (60 tokens, 10 lines)
β βββ π cpp_examples_impl.cu (37 tokens, 10 lines)
β βββ π cpp_examples_impl.h (22 tokens, 6 lines)
β βββ π fractal.thy (1,712 tokens, 147 lines)
β βββ π Microsoft.PowerShell_profile.ps1 (3,346 tokens, 497 lines)
β βββ π python_complex_class.py (10 tokens, 2 lines)
β βββ π ramda__cloneRegExp.js (173 tokens, 9 lines)
β βββ π ramda_prop.js (646 tokens, 85 lines)
β βββ π tensorflow_flags.h (7,628 tokens, 668 lines)
β βββ π test.f (181 tokens, 30 lines)
β βββ π torch.rst (60 tokens, 8 lines)
β βββ π yc.html (9,063 tokens, 169 lines)
βββ π group7 (1 folder, 3 files)
β βββ π absurdly_huge.jsonl (8,347 tokens, 126 lines)
β βββ π angular_crud.ts (1,192 tokens, 148 lines)
β βββ π structure.py (400 tokens, 92 lines)
βββ π group_lisp (1 folder, 4 files)
βββ π clojure_test.clj (682 tokens, 85 lines)
βββ π LispTest.lisp (25 tokens, 6 lines)
βββ π racket_struct.rkt (14 tokens, 1 line)
βββ π test_scheme.scm (360 tokens, 44 lines)
tree_plus v(1.0.59) ignore=('group_todo',) globs=() concise=True paths=('tests/more_languages',)
9 folder(s), 84 file(s), 7,158 line(s), 68,018 token(s) in 0.21 second(s).
```
<!-- t6-end -->
### Without the -c "Concise" Flag:
<!-- t2-start -->
```sh
tree_plus -i group_todo tests/more_languages
π more_languages (9 folders, 84 files)
βββ π group1 (1 folder, 11 files)
β βββ π addamt.cobol (441 tokens, 40 lines)
β β βββ IDENTIFICATION DIVISION.
β β βββ PROGRAM-ID.
β β β ADDAMT.
β β βββ DATA DIVISION.
β β βββ WORKING-STORAGE SECTION.
β β βββ 01 KEYED-INPUT.
β β βββ 05 CUST-NO-IN.
β β βββ 05 AMT1-IN.
β β βββ 05 AMT2-IN.
β β βββ 05 AMT3-IN.
β β βββ 01 DISPLAYED-OUTPUT.
β β βββ 05 CUST-NO-OUT.
β β βββ 05 TOTAL-OUT.
β β βββ 01 MORE-DATA.
β β βββ PROCEDURE DIVISION.
β β βββ 100-MAIN.
β βββ π CUSTOMER-INVOICE.CBL (412 tokens, 60 lines)
β β βββ IDENTIFICATION DIVISION.
β β βββ PROGRAM-ID. CUSTOMER-INVOICE.
β β βββ AUTHOR. JANE DOE.
β β βββ DATE. 2023-12-30.
β β βββ DATE-COMPILED. 06/30/10.
β β βββ DATE-WRITTEN. 12/34/56.
β β βββ ENVIRONMENT DIVISION.
β β βββ INPUT-OUTPUT SECTION.
β β βββ FILE-CONTROL.
β β βββ SELECT CUSTOMER-FILE.
β β βββ SELECT INVOICE-FILE.
β β βββ SELECT REPORT-FILE.
β β βββ DATA DIVISION.
β β βββ FILE SECTION.
β β βββ FD CUSTOMER-FILE.
β β βββ 01 CUSTOMER-RECORD.
β β βββ 05 CUSTOMER-ID.
β β βββ 05 CUSTOMER-NAME.
β β βββ 05 CUSTOMER-BALANCE.
β β βββ FD INVOICE-FILE.
β β βββ 01 INVOICE-RECORD.
β β βββ 05 INVOICE-ID.
β β βββ 05 CUSTOMER-ID.
β β βββ 05 INVOICE-AMOUNT.
β β βββ FD REPORT-FILE.
β β βββ 01 REPORT-RECORD.
β β βββ WORKING-STORAGE SECTION.
β β βββ 01 WS-CUSTOMER-FOUND.
β β βββ 01 WS-END-OF-FILE.
β β βββ 01 WS-TOTAL-BALANCE.
β β βββ PROCEDURE DIVISION.
β β βββ 0000-MAIN-ROUTINE.
β β βββ 1000-PROCESS-RECORDS.
β β βββ 1100-UPDATE-CUSTOMER-BALANCE.
β β βββ END PROGRAM CUSTOMER-INVOICE.
β βββ π JavaTest.java (578 tokens, 86 lines)
β β βββ abstract class LivingBeing
β β βββ abstract void breathe()
β β βββ interface Communicator
β β βββ String communicate()
β β βββ @Log
β β βββ @Getter
β β βββ @Setter
β β βββ class Person extends LivingBeing implements Communicator
β β βββ Person(String name, int age)
β β βββ @Override
β β βββ void breathe()
β β βββ @Override
β β βββ public String communicate()
β β βββ void greet()
β β βββ String personalizedGreeting(String greeting, Optional<Boolean> includeAge)
β β βββ @Singleton
β β βββ @RestController
β β βββ @SpringBootApplication
β β βββ public class Example
β β βββ @Inject
β β βββ public Example(Person person)
β β βββ @RequestMapping("/greet")
β β βββ String home(@RequestParam(value = "name", defaultValue = "World") String name,
β β β @RequestParam(value = "age", defaultValue = "30") int age)
β β βββ public static void main(String[] args)
β βββ π JuliaTest.jl (381 tokens, 63 lines)
β β βββ module JuliaTest_EdgeCase
β β βββ struct Location
β β β name::String
β β β lat::Float32
β β β lon::Float32
β β β end
β β βββ mutable struct mPerson
β β β name::String
β β β age::Int
β β β end
β β βββ Base.@kwdef mutable struct Param
β β β Ξt::Float64 = 0.1
β β β n::Int64
β β β m::Int64
β β β end
β β βββ sic(x,y)
β β βββ welcome(l::Location)
β β βββ β(Ξ±, Ξ©)
β β βββ function noob()
β β β end
β β βββ function ye_olde(hello::String, world::Location)
β β β end
β β βββ function multiline_greet(
β β β p::mPerson,
β β β greeting::String
β β β )
β β β end
β β βββ function julia_is_awesome(prob::DiffEqBase.AbstractDAEProblem{uType, duType, tType,
β β β isinplace};
β β β kwargs...) where {uType, duType, tType, isinplace}
β β β end
β β βββ end
β βββ π KotlinTest.kt (974 tokens, 171 lines)
β β βββ data class Person(val name: String)
β β βββ fun greet(person: Person)
β β βββ fun <T> processItems(items: List<T>, processor: (T) -> Unit)
β β βββ interface Source<out T>
β β βββ fun nextT(): T
β β βββ fun MutableList<Int>.swap(index1: Int, index2: Int)
β β βββ fun Any?.toString(): String
β β βββ tailrec fun findFixPoint(x: Double = 1.0): Double
β β βββ class GenericRepository<T>
β β βββ fun getItem(id: Int): T?
β β βββ sealed interface Error
β β βββ sealed class IOError(): Error
β β βββ object Runner
β β βββ inline fun <reified S: SomeClass<T>, T> run() : T
β β βββ infix fun Int.shl(x: Int): Int
β β βββ class MyStringCollection
β β βββ infix fun add(s: String)
β β βββ fun build()
β β βββ open class Base(p: Int)
β β βββ class Derived(p: Int) : Base(p)
β β βββ open class Shape
β β βββ open fun draw()
β β βββ fun fill()
β β βββ open fun edge(case: Int)
β β βββ interface Thingy
β β βββ fun edge()
β β βββ class Circle() : Shape(), Thingy
β β βββ override fun draw()
β β βββ final override fun edge(case: Int)
β β βββ interface Base
β β βββ fun print()
β β βββ class BaseImpl(val x: Int) : Base
β β βββ override fun print()
β β βββ internal class Derived(b: Base) : Base by b
β β βββ class Person constructor(firstName: String)
β β βββ class People(
β β β firstNames: Array<String>,
β β β ages: Array<Int>(42),
β β β )
β β βββ fun edgeCases(): Boolean
β β βββ class Alien public @Inject constructor(
β β β val firstName: String,
β β β val lastName: String,
β β β var age: Int,
β β β val pets: MutableList<Pet> = mutableListOf(),
β β β )
β β βββ fun objectOriented(): String
β β βββ enum class IntArithmetics : BinaryOperator<Int>, IntBinaryOperator
β β βββ PLUS {
β β β override fun apply(t: Int, u: Int): Int
β β βββ TIMES {
β β β override fun apply(t: Int, u: Int): Int
β β βββ override fun applyAsInt(t: Int, u: Int)
β β βββ fun reformat(
β β β str: String,
β β β normalizeCase: Boolean = true,
β β β upperCaseFirstLetter: Boolean = true,
β β β divideByCamelHumps: Boolean = false,
β β β wordSeparator: Char = ' ',
β β β )
β β βββ operator fun Point.unaryMinus()
β β βββ abstract class Polygon
β β βββ abstract fun draw()
β βββ π lesson.cbl (635 tokens, 78 lines)
β β βββ IDENTIFICATION DIVISION.
β β βββ PROGRAM-ID. CBL0002.
β β βββ AUTHOR. Otto B. Fun.
β β βββ ENVIRONMENT DIVISION.
β β βββ INPUT-OUTPUT SECTION.
β β βββ FILE-CONTROL.
β β βββ SELECT PRINT-LINE.
β β βββ SELECT ACCT-REC.
β β βββ DATA DIVISION.
β β βββ FILE SECTION.
β β βββ FD PRINT-LINE.
β β βββ 01 PRINT-REC.
β β βββ 05 ACCT-NO-O.
β β βββ 05 ACCT-LIMIT-O.
β β βββ 05 ACCT-BALANCE-O.
β β βββ 05 LAST-NAME-O.
β β βββ 05 FIRST-NAME-O.
β β βββ 05 COMMENTS-O.
β β βββ FD ACCT-REC.
β β βββ 01 ACCT-FIELDS.
β β βββ 05 ACCT-NO.
β β βββ 05 ACCT-LIMIT.
β β βββ 05 ACCT-BALANCE.
β β βββ 05 LAST-NAME.
β β βββ 05 FIRST-NAME.
β β βββ 05 CLIENT-ADDR.
β β βββ 10 STREET-ADDR.
β β βββ 10 CITY-COUNTY.
β β βββ 10 USA-STATE.
β β βββ 05 RESERVED.
β β βββ 05 COMMENTS.
β β βββ WORKING-STORAGE SECTION.
β β βββ 01 FLAGS.
β β βββ 05 LASTREC.
β β βββ PROCEDURE DIVISION.
β β βββ OPEN-FILES.
β β βββ READ-NEXT-RECORD.
β β βββ CLOSE-STOP.
β β βββ READ-RECORD.
β β βββ WRITE-RECORD.
β βββ π LuaTest.lua (83 tokens, 16 lines)
β β βββ function HelloWorld.new
β β βββ function HelloWorld.greet
β β βββ function say_hello
β βββ π ObjectiveCTest.m (62 tokens, 16 lines)
β β βββ @interface HelloWorld
β β βββ @interface HelloWorld -> (void) sayHello
β β βββ @implementation HelloWorld
β β βββ @implementation HelloWorld -> (void) sayHello
β β βββ void sayHelloWorld()
β βββ π OcamlTest.ml (49 tokens, 12 lines)
β β βββ type color
β β βββ class hello
β β βββ class hello -> method say_hello
β β βββ let main ()
β βββ π test.js (757 tokens, 154 lines)
β β βββ class MyClass
β β βββ myMethod()
β β βββ async asyncMethod(a, b)
β β βββ methodWithDefaultParameters(a = 5, b = 10)
β β βββ multilineMethod(
β β β c,
β β β d
β β β )
β β βββ multilineMethodWithDefaults(
β β β t = "tree",
β β β p = "plus"
β β β )
β β βββ function myFunction(param1, param2)
β β βββ function multilineFunction(
β β β param1,
β β β param2
β β β )
β β βββ const arrowFunction = () =>
β β βββ const parametricArrow = (a, b) =>
β β βββ function ()
β β βββ function outerFunction(outerParam)
β β βββ function innerFunction(innerParam)
β β βββ innerFunction("inner")
β β βββ const myObject = {
β β βββ myMethod: function (stuff)
β β βββ let myArrowObject = {
β β βββ myArrow: ({
β β β a,
β β β b,
β β β c,
β β β }) =>
β β βββ const myAsyncArrowFunction = async () =>
β β βββ function functionWithRestParameters(...args)
β β βββ const namedFunctionExpression = function myNamedFunction()
β β βββ const multilineArrowFunction = (
β β β a,
β β β b
β β β ) =>
β β βββ function functionReturningFunction()
β β βββ return function ()
β β βββ function destructuringOnMultipleLines({
β β β a,
β β β b,
β β β })
β β βββ const arrowFunctionWithDestructuring = ({ a, b }) =>
β β βββ const multilineDestructuringArrow = ({
β β β a,
β β β b,
β β β }) =>
β β βββ async function asyncFunctionWithErrorHandling()
β β βββ class Car
β β βββ constructor(brand)
β β βββ present()
β β βββ class Model extends Car
β β βββ constructor(brand, mod)
β β βββ super(brand)
β β βββ show()
β βββ π test.ts (832 tokens, 165 lines)
β βββ type MyType
β βββ interface MyInterface
β βββ class TsClass
β βββ myMethod()
β βββ myMethodWithArgs(param1: string, param2: number): void
β βββ static myStaticMethod<T>(param: T): T
β βββ multilineMethod(
β β c: number,
β β d: number
β β ): number
β βββ multilineMethodWithDefaults(
β β t: string = "tree",
β β p: string = "plus"
β β ): string
β βββ export class AdvancedComponent implements MyInterface
β βββ async myAsyncMethod(
β β a: string,
β β b: number,
β β c: string
β β ): Promise<void>
β βββ genericMethod<T, U>(
β β arg1: T,
β β arg2: U
β β ): [T, U]
β βββ export class TicketsComponent implements MyInterface
β βββ async myAsyncMethod({ a, b, c }: { a: String; b: Number; c: String })
β βββ function tsFunction()
β βββ function tsFunctionSigned(
β β param1: number,
β β param2: number
β β ): void
β βββ export default async function tsFunctionComplicated<A, B, C>({
β β a = 1 | 2,
β β b = "bob",
β β c = async () => "charlie",
β β }: {
β β a: number;
β β b: string;
β β c: () => Promise<string>;
β β }): Promise<string>
β βββ return("Standalone function with parameters")
β βββ const tsArrowFunctionSigned = ({
β β a,
β β b,
β β }: {
β β a: number;
β β b: string;
β β }) =>
β βββ export const tsComplicatedArrow = async ({
β β a = 1 | 2,
β β b = "bob",
β β c = async () => "charlie",
β β }: {
β β a: number;
β β b: string;
β β c: () => Promise<string>;
β β }): Promise<string> =>
β βββ const arrowFunction = () =>
β βββ const arrow = (a: String, b: Number) =>
β βββ const asyncArrowFunction = async () =>
β βββ const asyncArrow = async (a: String, b: Number) =>
β βββ let weirdArrow = () =>
β βββ const asyncPromiseArrow = async (): Promise<void> =>
β βββ let myWeirdArrowSigned = (x: number): number =>
β βββ class Person
β βββ constructor(private firstName: string, private lastName: string)
β βββ getFullName(): string
β βββ describe(): string
β βββ class Employee extends Person
β βββ constructor(
β β firstName: string,
β β lastName: string,
β β private jobTitle: string
β β )
β βββ super(firstName, lastName)
β βββ describe(): string
β βββ interface Shape
β βββ interface Square extends Shape
βββ π group2 (1 folder, 8 files)
β βββ π apl_test.apl (28 tokens, 5 lines)
β β βββ :Namespace HelloWorld
β β βββ :Namespace HelloWorld -> hello β 'Hello, World!'
β β βββ :Namespace HelloWorld -> plus β {βΊ+β΅}
β βββ π c_test.c (837 tokens, 142 lines)
β β βββ struct Point
β β βββ int x;
β β βββ int y;
β β βββ struct Point getOrigin()
β β βββ float mul_two_floats(float x1, float x2)
β β βββ enum days
β β βββ SUN,
β β βββ MON,
β β βββ TUE,
β β βββ WED,
β β βββ THU,
β β βββ FRI,
β β βββ SAT
β β βββ long add_two_longs(long x1, long x2)
β β βββ double multiplyByTwo(double num)
β β βββ char getFirstCharacter(char *str)
β β βββ void greet(Person p)
β β βββ typedef struct
β β βββ char name[50];
β β βββ } Person;
β β βββ int main()
β β βββ int* getArrayStart(int arr[], int size)
β β βββ long complexFunctionWithMultipleArguments(
β β β int param1,
β β β double param2,
β β β char *param3,
β β β struct Point point
β β β )
β β βββ keyPattern *ACLKeyPatternCreate(sds pattern, int flags)
β β βββ sds sdsCatPatternString(sds base, keyPattern *pat)
β β βββ static int ACLCheckChannelAgainstList(list *reference, const char *channel, int channellen, int is_pattern)
β β βββ while((ln = listNext(&li)))
β β βββ static struct config
β β βββ aeEventLoop *el;
β β βββ cliConnInfo conn_info;
β β βββ const char *hostsocket;
β β βββ int tls;
β β βββ struct cliSSLconfig sslconfig;
β β βββ } config;
β βββ π go_test.go (179 tokens, 46 lines)
β β βββ type Greeting struct
β β βββ func (g Greeting) sayHello()
β β βββ func createGreeting(m string) Greeting
β β βββ type SomethingLong struct
β β βββ func (s *SomethingLong) WithAReasonableName(
β β β ctx context.Context,
β β β param1 string,
β β β param2 int,
β β β param3 mapinterface{},
β β β callback func(int) error,
β β β ) (resultType, error)
β β βββ type resultType struct
β β βββ func main()
β βββ π PerlTest.pl (63 tokens, 20 lines)
β β βββ package PerlTest
β β βββ package PerlTest -> sub new
β β βββ package PerlTest -> sub hello
β β βββ package PerlTest -> sub say_hello
β βββ π PhpTest.php (70 tokens, 19 lines)
β β βββ class HelloWorld
β β βββ class HelloWorld -> function sayHello
β β βββ function greet
β β βββ class Person
β β βββ class Person -> function __construct
β βββ π PowershellTest.ps1 (459 tokens, 89 lines)
β β βββ function Say-Nothing()
β β βββ class Person
β β βββ Person($name)
β β βββ Greet()
β β βββ GreetMany($times)
β β βββ GreetWithDetails($greeting, $times)
β β βββ GreetMultiline(
β β β $greeting,
β β β $times
β β β )
β β βββ NoReturn($times)
β β βββ NoReturnNoArgs()
β β βββ function Say-Hello([Person]$person)
β β βββ function Multi-Hello([Person]$personA, [Person]$personB)
β β βββ function Switch-Item
β β βββ param ($on)
β β βββ function Get-SmallFiles
β β βββ param (
β β β [PSDefaultValue(Help = '100')]
β β β $Size = 100)
β β βββ function Get-User
β β βββ [CmdletBinding(DefaultParameterSetName="ID")]
β β βββ [OutputType("System.Int32", ParameterSetName="ID")]
β β βββ [OutputType([String], ParameterSetName="Name")]
β β βββ Param (
β β β
β β β [Int[]]
β β β $UserID,
β β β
β β β [String[]]
β β β $UserName)
β β βββ filter Get-ErrorLog ($Message)
β β βββ function global:MultilineSignature(
β β $param1,
β β $param2,
β β [Parameter(Mandatory=$true)]
β β $param3
β β )
β βββ π ScalaTest.scala (171 tokens, 40 lines)
β β βββ def sumOfSquares(x: Int, y: Int): Int
β β βββ trait Bark
β β βββ def bark: String
β β βββ case class Person(name: String)
β β βββ class GenericClass[T](
β β β val data: T,
β β β val count: Int
β β β )
β β βββ def getData: T
β β βββ object HelloWorld
β β βββ def greet(person: Person): Unit
β β βββ def main(args: Array[String]): Unit
β β βββ def complexFunction(
β β β a: Int,
β β β b: String,
β β β c: Float
β β β ): (Int, String) Option
β β βββ def sumOfSquaresShort(x: Int, y: Int): Int
β βββ π test.csv (0 tokens, 0 lines)
β βββ Name
β βββ Age
β βββ Country
β βββ City
β βββ Email
βββ π group3 (1 folder, 16 files)
β βββ π bash_test.sh (127 tokens, 22 lines)
β β βββ echo_hello_world()
β β βββ function fun_echo_hello_world()
β β βββ export SECRET
β β βββ alias md='make debug'
β β βββ add_alias()
β β βββ create_conda_env()
β βββ π cpp_test.cpp (1,670 tokens, 259 lines)
β β βββ class Person
β β βββ std::string name;
β β βββ public:
β β βββ Person(std::string n) : name(n)
β β βββ void greet()
β β βββ void globalGreet()
β β βββ int main()
β β βββ void printMessage(const std::string &message)
β β βββ template<typename T>
β β β void printVector(const std::vector<T>& vec)
β β βββ struct Point
β β βββ int x, y;
β β βββ Point(int x, int y) : x(x), y(y)
β β βββ class Animal
β β βββ public:
β β βββ Animal(const std::string &name) : name(name)
β β βββ virtual void speak() const
β β βββ virtual ~Animal()
β β βββ protected:
β β βββ std::string name;
β β βββ class Dog : public Animal
β β βββ public:
β β βββ Dog(const std::string &name) : Animal(name)
β β βββ void speak() const override
β β βββ class Cat : public Animal
β β βββ public:
β β βββ Cat(const std::string &name) : Animal(name)
β β βββ void speak() const override
β β βββ nb::bytes BuildRnnDescriptor(int input_size, int hidden_size, int num_layers,
β β β int batch_size, int max_seq_length, float dropout,
β β β bool bidirectional, bool cudnn_allow_tf32,
β β β int workspace_size, int reserve_space_size)
β β βββ int main()
β β βββ enum ECarTypes
β β βββ Sedan,
β β βββ Hatchback,
β β βββ SUV,
β β βββ Wagon
β β βββ ECarTypes GetPreferredCarType()
β β βββ enum ECarTypes : uint8_t
β β βββ Sedan,
β β βββ Hatchback,
β β βββ SUV = 254,
β β βββ Hybrid
β β βββ enum class ECarTypes : uint8_t
β β βββ Sedan,
β β βββ Hatchback,
β β βββ SUV = 254,
β β βββ Hybrid
β β βββ void myFunction(string fname, int age)
β β βββ template <typename T> T cos(T)
β β βββ template <typename T> T sin(T)
β β βββ template <typename T> T sqrt(T)
β β βββ template<typename T> struct VLEN
β β βββ template<typename T> class arr
β β βββ private:
β β βββ static T *ralloc(size_t num)
β β βββ static void dealloc(T *ptr)
β β βββ static T *ralloc(size_t num)
β β βββ static void dealloc(T *ptr)
β β βββ public:
β β βββ arr() : p(0), sz(0)
β β βββ arr(size_t n) : p(ralloc(n)), sz(n)
β β βββ arr(arr &&other)
β β β : p(other.p), sz(other.sz)
β β βββ ~arr()
β β βββ void resize(size_t n)
β β βββ T &operator[](size_t idx)
β β βββ T *data()
β β βββ size_t size() const
β β βββ class Buffer
β β βββ private:
β β βββ void* ptr_;
β β βββ std::tuple<array, array, array> quantize(
β β const array& w,
β β int group_size,
β β int bits,
β β StreamOrDevice s)
β βββ π csharp_test.cs (957 tokens, 146 lines)
β β βββ public interface IExcelTemplate
β β βββ void LoadTemplate(string templateFilePath)
β β βββ void LoadData(Dictionary<string, string> data)
β β βββ void ModifyCell(string cellName, string value)
β β βββ void SaveToFile(string filePath)
β β βββ public interface IGreet
β β βββ void Greet()
β β βββ public enum WeekDays
β β βββ public delegate void DisplayMessage(string message)
β β βββ public struct Address
β β βββ public static class HelperFunctions
β β βββ public static void PrintMessage(string message)
β β βββ public static int AddNumbers(int a, int b)
β β βββ namespace HelloWorldApp
β β βββ class Person : IGreet
β β βββ public Person(string name, int age)
β β βββ public void Greet()
β β βββ class HelloWorld
β β βββ static void Main(string[] args)
β β βββ namespace TemplateToExcelServer.Template
β β βββ public interface ITemplateObject
β β βββ string[,] GetContent()
β β βββ string[] GetContentArray()
β β βββ string[] GetFormat()
β β βββ int? GetFormatLength()
β β βββ TemplateObject SetContent(string[,] Content)
β β βββ TemplateObject SetContentArray(string[] value)
β β βββ TemplateObject SetFormat(string[] Header)
β β βββ TemplateObject SetNameOfReport(
β β β ReadOnlyMemory<byte> ReportName,
β β β int[] EdgeCase)
β β βββ TemplateObject SetSheetName(ReadOnlyMemory<byte> SheetName)
β β βββ public class BankAccount(string accountID, string owner)
β β βββ public override string ToString() =>
β β βββ var IncrementBy = (int source, int increment = 1) =>
β β βββ Func<int, int, int> add = (x, y) =>
β β βββ button.Click += (sender, args) =>
β β βββ public Func<int, int> GetMultiplier(int factor)
β β βββ public void Method(
β β β int param1,
β β β int param2,
β β β int param3,
β β β int param4,
β β β int param5,
β β β int param6,
β β β )
β β βββ System.Net.ServicePointManager.ServerCertificateValidationCallback +=
β β β (se, cert, chain, sslerror) =>
β β βββ class ServerCertificateValidation
β β βββ public bool OnRemoteCertificateValidation(
β β β object se,
β β β X509Certificate cert,
β β β X509Chain chain,
β β β SslPolicyErrors sslerror
β β β )
β β βββ s_downloadButton.Clicked += async (o, e) =>
β β βββ [HttpGet, Route("DotNetCount")]
β β βββ static public async Task<int> GetDotNetCount(string URL)
β βββ π hallucination.tex (1,633 tokens, 126 lines)
β β βββ Harnessing the Master Algorithm: Strategies for AI LLMs to Mitigate Hallucinations
β β βββ Hallucinated Pedro Domingos et al.
β β βββ Christmas Eve 2023
β β βββ 1 Introduction
β β βββ 2 Representation in LLMs
β β βββ 2.1 Current Representational Models
β β βββ 2.2 Incorporating Cognitive Structures
β β βββ 2.3 Conceptual Diagrams of Advanced Representational Models
β β βββ 3 Evaluation Strategies
β β βββ 3.1 Existing Evaluation Metrics for LLMs
β β βββ 3.2 Integrating Contextual and Ethical Considerations
β β βββ 3.3 Case Studies: Evaluation in Practice
β β βββ 4 Optimization Techniques
β β βββ 4.1 Continuous Learning Models
β β βββ 4.2 Adaptive Algorithms for Real-time Adjustments
β β βββ 4.3 Performance Metrics Pre- and Post-Optimization
β β βββ 5 Interdisciplinary Insights
β β βββ 5.1 Cognitive Science and AI: A Symbiotic Relationship
β β βββ 5.2 Learning from Human Cognitive Processes
β β βββ 6 Challenges and Future Directions
β β βββ 6.1 Addressing Current Limitations
β β βββ 6.2 The Road Ahead: Ethical and Practical Considerations
β β βββ 7 Conclusion
β β βββ 7.1 Summarizing Key Findings
β β βββ 7.2 The Next Steps in AI Development
β βββ π ruby_test.rb (138 tokens, 37 lines)
β β βββ module Greeter
β β βββ def self.say_hello
β β βββ class HelloWorld
β β βββ def say_hello
β β βββ class Human
β β βββ def self.bar
β β βββ def self.bar=(value)
β β βββ class Doctor < Human
β β βββ def brachial_plexus(
β β roots,
β β trunks,
β β divisions: true,
β β cords: [],
β β branches: Time.now
β β )
β βββ π swift_test.swift (469 tokens, 110 lines)
β β βββ class Person
β β βββ init(name: String)
β β βββ func greet()
β β βββ func yEdgeCase(
β β β fname: String,
β β β lname: String,
β β β age: Int,
β β β address: String,
β β β phoneNumber: String
β β β )
β β βββ func globalGreet()
β β βββ struct Point
β β βββ protocol Animal
β β βββ func speak()
β β βββ struct Dog: Animal
β β βββ class Cat: Animal
β β βββ init(name: String)
β β βββ func speak()
β β βββ enum CarType
β β βββ func getPreferredCarType() -> CarType
β β βββ enum CarType: UInt8
β β βββ enum class CarType: UInt8
β β βββ func myFunction(fname: String, age: Int)
β β βββ func myFunctionWithMultipleParameters(
β β fname: String,
β β lname: String,
β β age: Int,
β β address: String,
β β phoneNumber: String
β β )
β βββ π test.lean (289 tokens, 42 lines)
β β βββ # Advanced Topics in Group Theory
β β βββ section GroupDynamics
β β βββ lemma group_stability (G : Type*) [Group G] (H : Subgroup G)
β β βββ theorem subgroup_closure {G : Type*} [Group G] (S : Set G)
β β βββ axiom group_homomorphism_preservation {G H : Type*} [Group G] [Group H] (f : G β H)
β β βββ end GroupDynamics
β β βββ section ConstructiveApproach
β β βββ lemma finite_group_order (G : Type*) [Group G] [Fintype G]
β β βββ lemma complex_lemma {X Y : Type*} [SomeClass X] [AnotherClass Y]
β β β (f : X β Y) (g : Y β X)
β β βββ end ConstructiveApproach
β βββ π test.capnp (117 tokens, 30 lines)
β β βββ struct Employee
β β βββ id @0 :Int32
β β βββ name @1 :Text
β β βββ role @2 :Text
β β βββ skills @3 :List(Skill)
β β βββ struct Skill
β β βββ name @0 :Text
β β βββ level @1 :Level
β β βββ enum Level
β β βββ beginner @0
β β βββ intermediate @1
β β βββ expert @2
β β βββ status :union
β β βββ active @4 :Void
β β βββ onLeave @5 :Void
β β βββ retired @6 :Void
β β βββ struct Company
β β βββ employees @0 :List(Employee)
β βββ π test.graphql (66 tokens, 21 lines)
β β βββ type Query
β β βββ getBooks: [Book]
β β βββ getAuthors: [Author]
β β βββ type Mutation
β β βββ addBook(title: String, author: String): Book
β β βββ removeBook(id: ID): Book
β β βββ type Book
β β βββ id: ID
β β βββ title: String
β β βββ author: Author
β β βββ type Author
β β βββ id: ID
β β βββ name: String
β β βββ books: [Book]
β βββ π test.proto (142 tokens, 34 lines)
β β βββ syntax = "proto3"
β β βββ service EmployeeService
β β βββ rpc GetEmployee(EmployeeId) returns (EmployeeInfo)
β β βββ rpc AddEmployee(EmployeeData) returns (EmployeeInfo)
β β βββ rpc UpdateEmployee(EmployeeUpdate) returns (EmployeeInfo)
β β βββ message EmployeeId
β β βββ int32 id = 1
β β βββ message EmployeeInfo
β β βββ int32 id = 1
β β βββ string name = 2
β β βββ string role = 3
β β βββ message EmployeeData
β β βββ string name = 1
β β βββ string role = 2
β β βββ message EmployeeUpdate
β β βββ int32 id = 1
β β βββ string name = 2
β β βββ string role = 3
β βββ π test.sqlite (0 tokens, 0 lines)
β β βββ students table:
β β βββ id integer primary key
β β βββ name text not null
β β βββ age integer not null
β β βββ courses table:
β β βββ id integer primary key
β β βββ title text not null
β β βββ credits integer not null
β βββ π test_Cargo.toml (119 tokens, 18 lines)
β β βββ name: test_cargo
β β βββ version: 0.1.0
β β βββ description: A test Cargo.toml
β β βββ license: MIT OR Apache-2.0
β β βββ dependencies:
β β βββ clap 4.4
β β βββ sqlx 0.7 (features: runtime-tokio, tls-rustls)
β βββ π test_json_rpc_2_0.json (26 tokens, 6 lines)
β β βββ jsonrpc: 2.0
β β βββ method: subtract
β β βββ params:
β β βββ minuend: 42
β β βββ subtrahend: 23
β β βββ id: 1
β βββ π test_openapi.yaml (753 tokens, 92 lines)
β β βββ openapi: 3.0.1
β β βββ title: TODO Plugin
β β βββ description: A plugin to create and manage TODO lists using ChatGPT.
β β βββ version: v1
β β βββ servers:
β β βββ - url: PLUGIN_HOSTNAME
β β βββ paths:
β β βββ '/todos/{username}':
β β βββ GET (getTodos): Get the list of todos
β β βββ POST (addTodo): Add a todo to the list
β β βββ DELETE (deleteTodo): Delete a todo from the list
β βββ π test_openrpc.json (225 tokens, 44 lines)
β β βββ openrpc: 1.2.1
β β βββ info:
β β βββ title: Demo Petstore
β β βββ version: 1.0.0
β β βββ methods:
β β βββ listPets: List all pets
β β βββ params:
β β βββ - limit: integer
β β βββ result: pets = An array of pets
β βββ π test_pyproject.toml (304 tokens, 39 lines)
β βββ name: tree_plus
β βββ version: 1.0.8
β βββ description: A `tree` util enhanced with tokens, lines, and components.
β βββ License :: OSI Approved :: Apache Software License
β βββ License :: OSI Approved :: MIT License
β βββ dependencies:
β βββ tiktoken
β βββ PyYAML
β βββ click
β βββ rich
β βββ tomli
βββ π group4 (1 folder, 10 files)
β βββ π erl_test.erl (480 tokens, 68 lines)
β β βββ -module(erl_test).
β β βββ -record(person).
β β βββ -type ra_peer_status().
β β βββ -type ra_membership().
β β βββ -opaque my_opaq_type().
β β βββ -type orddict(Key, Val).
β β βββ -type edge(
β β β Cases,
β β β Pwn,
β β β ).
β β βββ -spec guarded(X) -> X when X :: tuple().
β β βββ -spec edge_case(
β β β {integer(), any()} |
β β β ) -> processed, integer(), any()} | [{item, any()}].
β β βββ -spec complex_function({integer(), any()} | ) ->
β β β {processed, integer(), any()} | [{item, any()}].
β β βββ -spec list_manipulation() -> .
β β βββ -spec overload(T1, T2) -> T3
β β β ; (T4, T5) -> T6.
β β βββ -spec multiguard({X, integer()}) -> X when X :: atom()
β β β ; ([Y]) -> Y when Y :: number().
β β βββ -record(multiline).
β β βββ -record(maybe_undefined).
β βββ π haskell_test.hs (414 tokens, 41 lines)
β β βββ data Person
β β βββ greet :: Person -> String
β β βββ resolveVariables ::
β β forall m fragments.
β β (MonadError QErr m, Traversable fragments) =>
β β Options.BackwardsCompatibleNullInNonNullableVariables ->
β β [G.VariableDefinition] ->
β β GH.VariableValues ->
β β [G.Directive G.Name] ->
β β G.SelectionSet fragments G.Name ->
β β m
β β ( [G.Directive Variable],
β β G.SelectionSet fragments Variable
β β )
β βββ π mathematica_test.nb (133 tokens, 21 lines)
β β βββ person
β β βββ sayHello[]
β β βββ sumList
β βββ π matlab_test.m (48 tokens, 12 lines)
β β βββ classdef HelloWorld -> function greet
β β βββ function loneFun
β βββ π RTest.R (367 tokens, 46 lines)
β β βββ class(person)
β β βββ greet.Person <- function
β β βββ ensure_between = function
β β βββ run_intermediate_annealing_process = function
β βββ π rust_test.rs (974 tokens, 188 lines)
β β βββ enum Days
β β βββ struct Point
β β βββ impl Point
β β βββ fn get_origin() -> Point
β β βββ struct Person
β β βββ impl Person
β β βββ fn greet(&self)
β β βββ fn add_two_longs(x1: i64, x2: i64) -> i64
β β βββ fn add_two_longs_longer(
β β β x1: i64,
β β β x2: i64,
β β β ) -> i64
β β βββ fn multiply_by_two(num: f64) -> f64
β β βββ fn get_first_character(s: &str) -> Option<char>
β β βββ trait Drawable
β β βββ fn draw(&self)
β β βββ impl Drawable for Point
β β βββ fn draw(&self)
β β βββ fn main()
β β βββ pub struct VisibleStruct
β β βββ mod my_module
β β βββ pub struct AlsoVisibleStruct<T>(T, T)
β β βββ macro_rules! say_hello
β β βββ #
β β β macro_rules! hello_tree_plus
β β βββ pub mod lib
β β βββ pub mod interfaces
β β βββ mod engine
β β βββ pub fn flow<S1, S2, S3, S4, E, T, L>(
β β β source: S1,
β β β extractor: E,
β β β inbox: S2,
β β β transformer: T,
β β β outbox: S3,
β β β loader: L,
β β β sink: &mut S4,
β β β ) -> Result<(), Box<dyn Error>>
β β β where
β β β S1: Extractable,
β β β S2: Extractable + Loadable,
β β β S3: Extractable + Loadable,
β β β S4: Loadable,
β β β E: Extractor<S1, S2>,
β β β T: Transformer<S2, S3>,
β β β L: Loader<S3, S4>
β β βββ trait Container
β β βββ fn items(&self) -> impl Iterator<Item = Widget>
β β βββ trait HttpService
β β βββ async fn fetch(&self, url: Url) -> HtmlBody
β β βββ struct Pair<T, U>
β β βββ trait Transformer<T>
β β βββ fn transform(&self, input: T) -> T
β β βββ impl<T: std::ops::Add<Output = T> + Copy> Transformer<T> for Pair<T, T>
β β βββ fn transform(&self, input: T) -> T
β β βββ fn main()
β β βββ async fn handle_get(State(pool): State<PgPool>) -> Result<Html<String>, (StatusCode, String)>
β β β where
β β β Bion: Cool
β β βββ #
β β β macro_rules! unit
β β βββ fn insert(
β β &mut self,
β β key: (),
β β value: $unit_dtype,
β β ) -> Result<Option<$unit_dtype>, ETLError>
β βββ π test.zig (397 tokens, 60 lines)
β β βββ pub fn add(a: i32, b: i32) i32
β β βββ test "add function"
β β βββ const BunBuildOptions = struct
β β βββ pub fn updateRuntime(this: *BunBuildOptions) anyerror!void
β β βββ pub fn step(this: BunBuildOptions, b: anytype) *std.build.OptionsStep
β β βββ pub fn sgemv(
β β order: Order,
β β trans: Trans,
β β m: usize,
β β n: usize,
β β alpha: f32,
β β a: []const f32,
β β lda: usize,
β β x: []const f32,
β β x_add: usize,
β β beta: f32,
β β y: []f32,
β β y_add: usize,
β β ) void
β βββ π test_fsharp.fs (92 tokens, 27 lines)
β β βββ module TestFSharp
β β βββ type Person = {
β β βββ let add x y =
β β βββ let multiply
β β β (x: int)
β β β (y: int): int =
β β βββ let complexFunction
β β β (a: int)
β β β (b: string)
β β β (c: float)
β β β : (int * string) option =
β β βββ type Result<'T> =
β βββ π test_tcl_tk.tcl (54 tokens, 16 lines)
β β βββ proc sayHello {}
β β βββ proc arrg { input }
β β βββ proc multiLine {
β β x,
β β y
β β }
β βββ π tf_test.tf (202 tokens, 38 lines)
β βββ provider "aws"
β βββ resource "aws_instance" "example"
β βββ data "aws_ami" "ubuntu"
β βββ variable "instance_type"
β βββ output "instance_public_ip"
β βββ locals
β βββ module "vpc"
βββ π group5 (1 folder, 19 files)
β βββ π ansible_test.yml (55 tokens, 14 lines)
β β βββ Install package
β β βββ Start service
β β βββ Create user
β βββ π app-routing.module.ts (287 tokens, 28 lines)
β β βββ const routes: Routes = [
β β β { path: '', redirectTo: 'login', pathMatch: 'full' },
β β β { path: '*', redirectTo: 'login' },
β β β { path: 'home', component: HomeComponent },
β β β { path: 'login', component: LoginComponent },
β β β { path: 'register', component: RegisterComponent },
β β β { path: 'events', component: EventsComponent },
β β β { path: 'invites', component: InvitesComponent },
β β β { path: 'rewards', component: RewardsComponent },
β β β { path: 'profile', component: ProfileComponent },
β β β ];
β β βββ export class AppRoutingModule
β βββ π app.component.spec.ts (410 tokens, 47 lines)
β β βββ describe 'AppComponent'
β β βββ it should create the app
β β βββ it should welcome the user
β β βββ it should welcome 'Jimbo'
β β βββ it should request login if not logged in
β βββ π app.component.ts (271 tokens, 45 lines)
β β βββ export class AppComponent
β β βββ constructor(
β β β private http: HttpClient,
β β β private loginService: LoginService,
β β β private stripeService: StripeService
β β β )
β β βββ constructor(private loginService: LoginService)
β β βββ checkSession()
β β βββ async goToEvent(event_id: string)
β β βββ valInvitedBy(event: any, event_id: string)
β βββ π app.module.ts (374 tokens, 43 lines)
β β βββ @NgModule({
β β β declarations: [
β β β AppComponent,
β β β HomeComponent,
β β β LoginComponent,
β β β RegisterComponent,
β β β EventsComponent,
β β β InvitesComponent,
β β β RewardsComponent,
β β β ProfileComponent
β β βββ export class AppModule
β βββ π checkbox_test.md (176 tokens, 21 lines)
β β βββ # My Checkbox Test
β β βββ ## My No Parens Test
β β βββ ## My Empty href Test
β β βββ ## My other url Test [Q&A]
β β βββ ## My other other url Test [Q&A]
β β βββ ## My 2nd other url Test [Q&A]
β β βββ ## My 3rd other url Test [Q&A]
β β βββ - [ ] Task 1
β β βββ - [ ] No Space Task 1.1
β β βββ - [ ] Two Spaces Task 1.2
β β βββ - [ ] Subtask 1.2.1
β β βββ - [ ] Task 2
β β βββ - Task 3
β β βββ - [ ] Subtask 3.1
β β βββ - Task 6
β β βββ - Subtask 6.1
β β βββ - [ ] Handle edge cases
β βββ π checkbox_test.txt (257 tokens, 33 lines)
β β βββ - [ ] fix phone number format +1
β β βββ - [ ] add forgot password
β β βββ - [ ] ? add email verification
β β βββ - [ ] store token the right way
β β βββ - [ ] test nesting of checkboxes
β β βββ - [ ] user can use option to buy ticket at 2-referred price
β β βββ - [ ] CTA refer 2 people to get instant lower price
β β βββ - [ ] form to send referrals
β βββ π environment.test.ts (197 tokens, 19 lines)
β β βββ environment:
β β βββ production
β β βββ cognitoUserPoolId
β β βββ cognitoAppClientId
β β βββ apiurl
β βββ π hello_world.pyi (22 tokens, 3 lines)
β β βββ @final
β β β class dtype(Generic[_DTypeScalar_co])
β β βββ names: None | tuple
β βββ π k8s_test.yaml (140 tokens, 37 lines)
β β βββ apps/v1.Deployment -> my-app
β β βββ v1.Service -> my-service
β β βββ v1.ConfigMap -> my-config
β βββ π Makefile (714 tokens, 84 lines)
β β βββ include dotenv/dev.env
β β βββ .PHONY: dev
β β βββ dev
β β βββ services-down
β β βββ services-stop: services-down
β β βββ define CHECK_POSTGRES
β β βββ damage-report
β β βββ tail-logs
β β βββ cloud
β βββ π requirements_test.txt (29 tokens, 10 lines)
β β βββ psycopg2-binary
β β βββ pytest
β β βββ coverage
β β βββ flask
β β βββ flask_cors
β β βββ stripe
β β βββ pyjwt
β β βββ cognitojwt
β β βββ flask-lambda
β βββ π rust_todo_test.rs (92 tokens, 26 lines)
β β βββ TODO: This todo tests parse_todo
β β βββ enum Color
β β βββ struct Point
β β βββ trait Drawable
β β βββ fn draw(&self)
β β βββ impl Drawable for Point
β β βββ fn draw(&self)
β β βββ fn main()
β βββ π sql_test.sql (270 tokens, 51 lines)
β β βββ CREATE TABLE promoters
β β βββ user_id serial PRIMARY KEY,
β β βββ type varchar(20) NOT NULL,
β β βββ username varchar(20) NOT NULL,
β β βββ password varchar(20) NOT NULL,
β β βββ email varchar(30) NOT NULL,
β β βββ phone varchar(20) NOT NULL,
β β βββ promocode varchar(20),
β β βββ info json,
β β βββ going text[],
β β βββ invites text[],
β β βββ balance integer NOT NULL,
β β βββ rewards text[],
β β βββ created timestamp
β β βββ CREATE TABLE events
β β βββ event_id serial PRIMARY KEY,
β β βββ name varchar(64) NOT NULL,
β β βββ date varchar(64) NOT NULL,
β β βββ location varchar(64) NOT NULL,
β β βββ performer varchar(64) NOT NULL,
β β βββ rewards json,
β β βββ created timestamp
β βββ π standard-app-routing.module.ts (100 tokens, 16 lines)
β β βββ const routes: Routes = [
β β { path: '', component: HomeComponent },
β β {
β β path: 'heroes',
β β component: HeroesListComponent,
β β children: [
β β { path: ':id', component: HeroDetailComponent },
β β { path: 'new', component: HeroFormComponent },
β β ],
β β },
β β { path: '**', component: PageNotFoundComponent },
β β ];
β βββ π test.env (190 tokens, 25 lines)
β β βββ PROMO_PATH
β β βββ PRODUCTION
β β βββ SQL_SCHEMA_PATH
β β βββ DB_LOGS
β β βββ DB_LOG
β β βββ PGPASSWORD
β β βββ PGDATABASE
β β βββ PGHOST
β β βββ PGPORT
β β βββ PGUSER
β β βββ SERVER_LOG
β β βββ SERVER_LOGS
β β βββ API_URL
β β βββ APP_LOGS
β β βββ APP_LOG
β β βββ APP_URL
β β βββ COGNITO_USER_POOL_ID
β β βββ COGNITO_APP_CLIENT_ID
β β βββ AWS_REGION
β β βββ STRIPE_SECRET_KEY
β βββ π testJsonSchema.json (421 tokens, 48 lines)
β β βββ $schema: http://json-schema.org/draft-07/schema#
β β βββ type: object
β β βββ title: random_test
β β βββ description: A promoter's activites related to events
β βββ π testPackage.json (349 tokens, 43 lines)
β β βββ name: 'promo-app'
β β βββ version: 0.0.0
β β βββ scripts:
β β βββ ng: 'ng'
β β βββ start: 'ng serve'
β β βββ build: 'ng build'
β β βββ watch: 'ng build --watch --configuration development'
β β βββ test: 'ng test'
β βββ π tickets.component.ts (7,160 tokens, 903 lines)
β βββ interface EnrichedTicket extends Ticket
β βββ interface SpinConfig
β βββ interface RotationState
β βββ interface SpeakInput
β βββ const formatSpeakInput = (input: SpeakInput): string =>
β βββ function hourToSpeech(hour: number, minute: number, period: string): string
β βββ export class TicketsComponent implements AfterViewInit
β βββ speak(input: SpeakInput)
β βββ speakEvent(ticket: EnrichedTicket): void
β βββ formatEvent(ticket: EnrichedTicket): string
β βββ speakVenue(ticket: EnrichedTicket): void
β βββ formatDate(date: Date, oneLiner: boolean = false): string
β βββ formatDateForSpeech(date: Date): string
β βββ async spinQRCode(
β β event: PointerEvent,
β β config: SpinConfig = DEFAULT_SPIN_CONFIG
β β )
β βββ private animateRotation(
β β imgElement: HTMLElement,
β β targetRotation: number,
β β config: SpinConfig,
β β cleanup: () => void
β β )
β βββ const animate = (currentTime: number) =>
β βββ requestAnimationFrame(animate)
β βββ cleanup()
β βββ requestAnimationFrame(animate)
β βββ private getNext90Degree(currentRotation: number): number
β βββ private getCurrentRotation(matrix: string): number
β βββ ngAfterViewInit()
β βββ const mouseEnterListener = () =>
β βββ const mouseLeaveListener = () =>
β βββ ngOnDestroy()
β βββ toggleColumn(event: MatOptionSelectionChange, column: string)
β βββ adjustColumns(event?: Event)
β βββ onResize(event: Event)
β βββ async ngOnInit()
β βββ async loadTickets(): Promise<void>
β βββ onDateRangeChange(
β β type: "start" | "end",
β β event: MatDatepickerInputEvent<Date>
β β )
β βββ applyFilter(column: string): void
β βββ formatDateForComparison(date: Date): string
β βββ constructor(private renderer: Renderer2)
β βββ onFilterChange(event: Event, column: string)
β βββ onLatitudeChange(event: Event)
β βββ onLongitudeChange(event: Event)
β βββ onRadiusChange(event: Event)
β βββ sortData(sort: Sort): void
β βββ onRowClick(event: Event, row: any)
β βββ function isDate(value: Date | undefined | null): value is Date
β βββ function isNonNullNumber(value: number | null): value is number
β βββ function hasLocation(
β β ticket: any
β β ): ticket is
β βββ const create_faker_ticket = async () =>
β βββ function compare(a: number | string, b: number | string, isAsc: boolean)
β βββ function compare_dates(a: Date, b: Date, isAsc: boolean)
β βββ async function mockMoreTickets(): Promise<Ticket[]>
β βββ const mockTickets = async () =>
β βββ const renderQRCode = async (text: String): Promise<string> =>
βββ π group6 (1 folder, 13 files)
β βββ π catastrophic.c (5,339 tokens, 754 lines)
β β βββ TODO: technically we should use a proper parser
β β βββ struct Point
β β βββ int x;
β β βββ int y;
β β βββ struct Point getOrigin()
β β βββ float mul_two_floats(float x1, float x2)
β β βββ enum days
β β βββ SUN,
β β βββ MON,
β β βββ TUE,
β β βββ WED,
β β βββ THU,
β β βββ FRI,
β β βββ SAT
β β βββ enum worker_pool_flags
β β βββ POOL_BH = 1 << 0,
β β βββ POOL_MANAGER_ACTIVE = 1 << 1,
β β βββ POOL_DISASSOCIATED = 1 << 2,
β β βββ POOL_BH_DRAINING = 1 << 3,
β β βββ enum worker_flags
β β βββ WORKER_DIE = 1 << 1,
β β βββ WORKER_IDLE = 1 << 2,
β β βββ WORKER_PREP = 1 << 3,
β β βββ WORKER_CPU_INTENSIVE = 1 << 6,
β β βββ WORKER_UNBOUND = 1 << 7,
β β βββ WORKER_REBOUND = 1 << 8,
β β βββ WORKER_NOT_RUNNING = WORKER_PREP | WORKER_CPU_INTENSIVE |
β β β WORKER_UNBOUND | WORKER_REBOUND,
β β βββ struct worker_pool
β β βββ raw_spinlock_t lock;
β β βββ int cpu;
β β βββ int node;
β β βββ int id;
β β βββ unsigned int flags;
β β βββ unsigned long watchdog_ts;
β β βββ bool cpu_stall;
β β βββ int nr_running;
β β βββ struct list_head worklist;
β β βββ int nr_workers;
β β βββ int nr_idle;
β β βββ struct list_head idle_list;
β β βββ struct timer_list idle_timer;
β β βββ struct work_struct idle_cull_work;
β β βββ struct timer_list mayday_timer;
β β βββ struct worker *manager;
β β βββ struct list_head workers;
β β βββ struct ida worker_ida;
β β βββ struct workqueue_attrs *attrs;
β β βββ struct hlist_node hash_node;
β β βββ int refcnt;
β β βββ struct rcu_head rcu;
β β βββ long add_two_longs(long x1, long x2)
β β βββ double multiplyByTwo(double num)
β β βββ char getFirstCharacter(char *str)
β β βββ void greet(Person p)
β β βββ typedef struct
β β βββ char name[50];
β β βββ } Person;
β β βββ typedef struct PersonA
β β βββ char name[50];
β β βββ } PersonB;
β β βββ int main()
β β βββ int* getArrayStart(int arr[], int size)
β β βββ long complexFunctionWithMultipleArguments(
β β β int param1,
β β β double param2,
β β β char *param3,
β β β struct Point point
β β β )
β β βββ keyPattern *ACLKeyPatternCreate(sds pattern, int flags)
β β βββ sds sdsCatPatternString(sds base, keyPattern *pat)
β β βββ static int ACLCheckChannelAgainstList(list *reference, const char *channel, int channellen, int is_pattern)
β β βββ while((ln = listNext(&li)))
β β βββ static struct config
β β βββ aeEventLoop *el;
β β βββ cliConnInfo conn_info;
β β βββ const char *hostsocket;
β β βββ int tls;
β β βββ struct cliSSLconfig sslconfig;
β β βββ } config;
β β βββ class Person
β β βββ std::string name;
β β βββ public:
β β βββ Person(std::string n) : name(n)
β β βββ void greet()
β β βββ void globalGreet()
β β βββ int main()
β β βββ void printMessage(const std::string &message)
β β βββ template<typename T>
β β β void printVector(const std::vector<T>& vec)
β β βββ struct foo
β β βββ char x;
β β βββ struct foo_in
β β βββ char* y;
β β βββ short z;
β β βββ } inner;
β β βββ struct Point
β β βββ int x, y;
β β βββ Point(int x, int y) : x(x), y(y)
β β βββ class Animal
β β βββ public:
β β βββ Animal(const std::string &name) : name(name)
β β βββ virtual void speak() const
β β βββ virtual ~Animal()
β β βββ protected:
β β βββ std::string name;
β β βββ class Dog : public Animal
β β βββ public:
β β βββ Dog(const std::string &name) : Animal(name)
β β βββ void speak() const override
β β βββ class Cat : public Animal
β β βββ public:
β β βββ Cat(const std::string &name) : Animal(name)
β β βββ void speak() const override
β β βββ class CatDog: public Animal, public Cat, public Dog
β β βββ public:
β β βββ CatDog(const std::string &name) : Animal(name)
β β βββ int meow_bark()
β β βββ nb::bytes BuildRnnDescriptor(int input_size, int hidden_size, int num_layers,
β β β int batch_size, int max_seq_length, float dropout,
β β β bool bidirectional, bool cudnn_allow_tf32,
β β β int workspace_size, int reserve_space_size)
β β βββ int main()
β β βββ enum ECarTypes
β β βββ Sedan,
β β βββ Hatchback,
β β βββ SUV,
β β βββ Wagon
β β βββ ECarTypes GetPreferredCarType()
β β βββ enum ECarTypes : uint8_t
β β βββ Sedan,
β β βββ Hatchback,
β β βββ SUV = 254,
β β βββ Hybrid
β β βββ enum class ECarTypes : uint8_t
β β βββ Sedan,
β β βββ Hatchback,
β β βββ SUV = 254,
β β βββ Hybrid
β β βββ void myFunction(string fname, int age)
β β βββ template <typename T> T cos(T)
β β βββ template <typename T> T sin(T)
β β βββ template <typename T> T sqrt(T)
β β βββ template<typename T> struct VLEN
β β βββ template<typename T> class arr
β β βββ private:
β β βββ static T *ralloc(size_t num)
β β βββ static void dealloc(T *ptr)
β β βββ static T *ralloc(size_t num)
β β βββ static void dealloc(T *ptr)
β β βββ public:
β β βββ arr() : p(0), sz(0)
β β βββ arr(size_t n) : p(ralloc(n)), sz(n)
β β βββ arr(arr &&other)
β β β : p(other.p), sz(other.sz)
β β βββ ~arr()
β β βββ void resize(size_t n)
β β βββ T &operator[](size_t idx)
β β βββ T *data()
β β βββ size_t size() const
β β βββ class Buffer
β β βββ private:
β β βββ void* ptr_;
β β βββ std::tuple<array, array, array> quantize(
β β β const array& w,
β β β int group_size,
β β β int bits,
β β β StreamOrDevice s)
β β βββ #define PY_SSIZE_T_CLEAN
β β βββ #define PLATFORM_IS_X86
β β βββ #define PLATFORM_WINDOWS
β β βββ #define GETCPUID(a, b, c, d, a_inp, c_inp)
β β βββ static int GetXCR0EAX()
β β βββ #define GETCPUID(a, b, c, d, a_inp, c_inp)
β β βββ static int GetXCR0EAX()
β β βββ asm("XGETBV" : "=a"(eax), "=d"(edx) : "c"(0))
β β βββ static void ReportMissingCpuFeature(const char* name)
β β βββ static PyObject *CheckCpuFeatures(PyObject *self, PyObject *args)
β β βββ static PyObject *CheckCpuFeatures(PyObject *self, PyObject *args)
β β βββ static PyMethodDef cpu_feature_guard_methods[]
β β βββ static struct PyModuleDef cpu_feature_guard_module
β β βββ #define EXPORT_SYMBOL __declspec(dllexport)
β β βββ #define EXPORT_SYMBOL __attribute__ ((visibility("default")))
β β βββ EXPORT_SYMBOL PyMODINIT_FUNC PyInit_cpu_feature_guard(void)
β β βββ typedef struct
β β βββ GPT2Config config;
β β βββ ParameterTensors params;
β β βββ size_t param_sizes[NUM_PARAMETER_TENSORS];
β β βββ float* params_memory;
β β βββ size_t num_parameters;
β β βββ ParameterTensors grads;
β β βββ float* grads_memory;
β β βββ float* m_memory;
β β βββ float* v_memory;
β β βββ ActivationTensors acts;
β β βββ size_t act_sizes[NUM_ACTIVATION_TENSORS];
β β βββ float* acts_memory;
β β βββ size_t num_activations;
β β βββ ActivationTensors grads_acts;
β β βββ float* grads_acts_memory;
β β βββ int batch_size;
β β βββ int seq_len;
β β βββ int* inputs;
β β βββ int* targets;
β β βββ float mean_loss;
β β βββ } GPT2;
β βββ π cpp_examples_impl.cc (60 tokens, 10 lines)
β β βββ PYBIND11_MODULE(cpp_examples, m)
β β βββ m.def("add", &add<int>, "An example function to add two numbers.")
β βββ π cpp_examples_impl.cu (37 tokens, 10 lines)
β β βββ template <typename T>
β β β T add(T a, T b)
β β βββ template <>
β β int add<int>(int a, int b)
β βββ π cpp_examples_impl.h (22 tokens, 6 lines)
β β βββ template <typename T>
β β β T add(T a, T b)
β β βββ template <>
β β int add<int>(int, int)
β βββ π fractal.thy (1,712 tokens, 147 lines)
β β βββ Title: fractal.thy
β β βββ Author: Isabelle/HOL Contributors!
β β βββ Author: edge cases r us
β β βββ theory Simplified_Ring
β β βββ section βΉBasic Algebraic StructuresβΊ
β β βββ class everything = nothing + itself
β β βββ subsection βΉMonoidsβΊ
β β βββ definition ring_hom :: "[('a, 'm) ring_scheme, ('b, 'n) ring_scheme] => ('a => 'b) set"
β β βββ fun example_fun :: "nat β nat"
β β βββ locale monoid =
β β β fixes G (structure)
β β β assumes m_closed: "β¦x β carrier G; y β carrier Gβ§ βΉ x β y β carrier G"
β β β and m_assoc: "β¦x β carrier G; y β carrier G; z β carrier Gβ§ βΉ (x β y) β z = x β (y β z)"
β β β and one_closed: "π β carrier G"
β β β and l_one: "x β carrier G βΉ π β x = x"
β β β and r_one: "x β carrier G βΉ x β π = x"
β β βββ subsection βΉGroupsβΊ
β β βββ locale group = monoid +
β β β assumes Units_closed: "x β Units G βΉ x β carrier G"
β β β and l_inv_ex: "x β carrier G βΉ β y β carrier G. y β x = π"
β β β and r_inv_ex: "x β carrier G βΉ β y β carrier G. x β y = π"
β β βββ subsection βΉRingsβΊ
β β βββ locale ring = abelian_group R + monoid R +
β β β assumes l_distr: "β¦x β carrier R; y β carrier R; z β carrier Rβ§ βΉ (x β y) β z = x β z β y β z"
β β β and r_distr: "β¦x β carrier R; y β carrier R; z β carrier Rβ§ βΉ z β (x β y) = z β x β z β y"
β β βββ locale commutative_ring = ring +
β β β assumes m_commutative: "β¦x β carrier R; y β carrier Rβ§ βΉ x β y = y β x"
β β βββ locale domain = commutative_ring +
β β β assumes no_zero_divisors: "β¦a β b = π¬; a β carrier R; b β carrier Rβ§ βΉ a = π¬ β¨ b = π¬"
β β βββ locale field = domain +
β β β assumes inv_ex: "x β carrier R - {π¬} βΉ inv x β carrier R"
β β βββ subsection βΉMorphismsβΊ
β β βββ lemma example_lemma: "example_fun n = n"
β β βββ qualified lemma gcd_0:
β β β "gcd a 0 = normalize a"
β β βββ lemma abelian_monoidI:
β β β fixes R (structure)
β β β and f :: "'edge::{} β 'case::{}"
β β β assumes "βx y. β¦ x β carrier R; y β carrier R β§ βΉ x β y β carrier R"
β β β and "π¬ β carrier R"
β β β and "βx y z. β¦ x β carrier R; y β carrier R; z β carrier R β§ βΉ (x β y) β z = x β (y β z)"
β β β shows "abelian_monoid R"
β β βββ lemma euclidean_size_gcd_le1 :
β β β assumes "a β 0"
β β β shows "euclidean_size (gcd a b) β€ euclidean_size a"
β β βββ theorem Residue_theorem:
β β β fixes S pts::"complex set" and f::"complex β complex"
β β β and g::"real β complex"
β β β assumes "open S" "connected S" "finite pts" and
β β β holo:"f holomorphic_on S-pts" and
β β β "valid_path g" and
β β β loop:"pathfinish g = pathstart g" and
β β β "path_image g β S-pts" and
β β β homo:"βz. (z β S) βΆ winding_number g z = 0"
β β β shows "contour_integral g f = 2 * pi * π *(βp β pts. winding_number g p * residue f p)"
β β βββ corollary fps_coeff_residues_bigo':
β β β fixes f :: "complex β complex" and r :: real
β β β assumes exp: "f has_fps_expansion F"
β β β assumes "open A" "connected A" "cball 0 r β A" "r > 0"
β β β assumes "f holomorphic_on A - S" "S β ball 0 r" "finite S" "0 β S"
β β β assumes "eventually (Ξ»n. g n = -(βz β S. residue (Ξ»z. f z / z ^ Suc n) z)) sequentially"
β β β (is "eventually (Ξ»n. _ = -?g' n) _")
β β β shows "(Ξ»n. fps_nth F n - g n) β O(Ξ»n. 1 / r ^ n)" (is "(Ξ»n. ?c n - _) β O(_)")
β β βββ end
β βββ π Microsoft.PowerShell_profile.ps1 (3,346 tokens, 497 lines)
β β βββ function Log($message)
β β βββ function Remove-ChocolateyFromPath
β β βββ function Show-Profiles
β β βββ function Show-Path
β β βββ function Show-Error($err)
β β βββ function Get-ScoopPackagePath
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $PackageName)
β β βββ function Check-Command
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $Name)
β β βββ function Add-ToPath
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $PathToAdd)
β β βββ function Install-Scoop
β β βββ function Scoop-Install
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $Name,
β β β $PathToAdd)
β β βββ function Start-CondaEnv
β β βββ function Install-PipPackage
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $PackageName)
β β βββ function Install-VSBuildTools
β β βββ function Install-Crate
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $CrateName)
β β βββ function Get-ScoopVersion
β β βββ function Get-Version
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $ExecutablePath,
β β β $ExecutableName)
β β βββ function Show-Requirements
β β βββ function Measure-Status
β β βββ param(
β β β [Parameter(Mandatory = $true)]
β β β $Name)
β β βββ function Find-Profile
β β βββ function Edit-Profile
β β βββ function Set-Profile
β β βββ function Show-Profile
β βββ π python_complex_class.py (10 tokens, 2 lines)
β β βββ class Box(Space[NDArray[Any]])
β βββ π ramda__cloneRegExp.js (173 tokens, 9 lines)
β β βββ export default function _cloneRegExp(pattern)
β βββ π ramda_prop.js (646 tokens, 85 lines)
β β βββ /**
β β β * Returns a function that when supplied an object returns the indicated
β β β * property of that object, if it exists.
β β β * @category Object
β β β * @typedefn Idx = String | Int | Symbol
β β β * @sig Idx -> {s: a} -> a | Undefined
β β β * @param {String|Number} p The property name or array index
β β β * @param {Object} obj The object to query
β β β * @return {*} The value at `obj.p`.
β β β */
β β β var prop = _curry2(function prop(p, obj)
β β βββ /**
β β β * Solves equations of the form a * x = b
β β β * @param {{
β β β * z: number
β β β * }} x
β β β */
β β β function foo(x)
β β βββ /**
β β β * Deconstructs an array field from the input documents to output a document for each element.
β β β * Each output document is the input document with the value of the array field replaced by the element.
β β β * @category Object
β β β * @sig String -> {k: } -> [{k: v}]
β β β * @param {String} key The key to determine which property of the object should be unwound.
β β β * @param {Object} object The object containing the list to unwind at the property named by the key.
β β β * @return {List} A list of new objects, each having the given key associated to an item from the unwound list.
β β β */
β β β var unwind = _curry2(function(key, object)
β β βββ return _map(function(item)
β βββ π tensorflow_flags.h (7,628 tokens, 668 lines)
β β βββ TF_DECLARE_FLAG('test_only_experiment_1')
β β βββ TF_DECLARE_FLAG('test_only_experiment_2')
β β βββ TF_DECLARE_FLAG('enable_nested_function_shape_inference'):
β β β Allow ops such as tf.cond to invoke the ShapeRefiner on their nested functions.
β β βββ TF_DECLARE_FLAG('enable_quantized_dtypes_training'):
β β β Set quantized dtypes, like tf.qint8, to be trainable.
β β βββ TF_DECLARE_FLAG('graph_building_optimization'):
β β β Optimize graph building for faster tf.function tracing.
β β βββ TF_DECLARE_FLAG('saved_model_fingerprinting'):
β β β Add fingerprint to SavedModels.
β β βββ TF_DECLARE_FLAG('more_stack_traces'):
β β β Enable experimental code that preserves and propagates graph node stack traces in C++.
β β βββ TF_DECLARE_FLAG('publish_function_graphs'):
β β β Enables the publication of partitioned function graphs via StatsPublisherInterface. Disabling this flag can reduce
β β β memory consumption.
β β βββ TF_DECLARE_FLAG('enable_aggressive_constant_replication'):
β β β Replicate constants across CPU devices and even for local CPUs within the same task if available.
β β βββ TF_DECLARE_FLAG('enable_colocation_key_propagation_in_while_op_lowering'):
β β β If true, colocation key attributes for the ops will be propagated during while op lowering to switch/merge ops.
β β βββ Flag('tf_xla_auto_jit'):
β β β Control compilation of operators into XLA computations on CPU and GPU devices. 0 = use ConfigProto setting; -1 =
β β β off; 1 = on for things very likely to be improved; 2 = on for everything; (experimental) fusible = only for
β β β Tensorflow operations that XLA knows how to fuse. If set to single-gpu(<N>) then this resolves to <N> for single-GPU
β β β graphs (graphs that have at least one node placed on a GPU and no more than one GPU is in use through the entire
β β β graph) and 0 otherwise. Experimental.
β β βββ Flag('tf_xla_min_cluster_size'):
β β β Minimum number of operators in an XLA compilation. Ignored for operators placed on an XLA device or operators
β β β explicitly marked for compilation.
β β βββ Flag('tf_xla_max_cluster_size'):
β β β Maximum number of operators in an XLA compilation.
β β βββ Flag('tf_xla_cluster_exclude_ops'):
β β β (experimental) Exclude the operations from auto-clustering. If multiple, separate them with commas. Where,
β β β Some_other_ops.
β β βββ Flag('tf_xla_clustering_debug'):
β β β Dump graphs during XLA compilation.
β β βββ Flag('tf_xla_cpu_global_jit'):
β β β Enables global JIT compilation for CPU via SessionOptions.
β β βββ Flag('tf_xla_clustering_fuel'):
β β β Places an artificial limit on the number of ops marked as eligible for clustering.
β β βββ Flag('tf_xla_disable_deadness_safety_checks_for_debugging'):
β β β Disable deadness related safety checks when clustering (this is unsound).
β β βββ Flag('tf_xla_disable_resource_variable_safety_checks_for_debugging'):
β β β Disable resource variables related safety checks when clustering (this is unsound).
β β βββ Flag('tf_xla_deterministic_cluster_names'):
β β β Causes the function names assigned by auto clustering to be deterministic from run to run.
β β βββ Flag('tf_xla_persistent_cache_directory'):
β β β If non-empty, JIT-compiled executables are saved to and loaded from the specified file system directory path.
β β β Empty by default.
β β βββ Flag('tf_xla_persistent_cache_device_types'):
β β β If non-empty, the persistent cache will only be used for the specified devices (comma separated). Each device type
β β β should be able to be converted to.
β β βββ Flag('tf_xla_persistent_cache_read_only'):
β β β If true, the persistent cache will be read-only.
β β βββ Flag('tf_xla_disable_strict_signature_checks'):
β β β If true, entires loaded into the XLA compile cache will not have their signatures checked strictly. Defaults to
β β β false.
β β βββ Flag('tf_xla_persistent_cache_prefix'):
β β β Specifies the persistance cache prefix. Default is.
β β βββ Flag('tf_xla_sparse_core_disable_table_stacking'):
β β β Disable table stacking for all the tables passed to the SparseCore mid level API.
β β βββ Flag('tf_xla_sparse_core_minibatch_max_division_level'):
β β β Max level of division to split input data into minibatches.
β β βββ Flag('tf_xla_sparse_core_stacking_mem_limit_bytes'):
β β β If non-zero, limits the size of the activations for a given table to be below these many bytes.
β β βββ Flag('tf_xla_sparse_core_stacking_table_shard_limit_bytes'):
β β β If non-zero, limits the size of any table shard to be below these many bytes.
β β βββ Flag('always_specialize')
β β βββ Flag('cost_driven_async_parallel_for')
β β βββ Flag('enable_crash_reproducer')
β β βββ Flag('log_query_of_death')
β β βββ Flag('vectorize')
β β βββ Flag('tf_xla_enable_lazy_compilation')
β β βββ Flag('tf_xla_print_cluster_outputs'):
β β β If true then insert Print nodes to print out values produced by XLA clusters.
β β βββ Flag('tf_xla_check_cluster_input_numerics'):
β β β If true then insert CheckNumerics nodes to check all cluster inputs.
β β βββ Flag('tf_xla_check_cluster_output_numerics'):
β β β If true then insert CheckNumerics nodes to check all cluster outputs.
β β βββ Flag('tf_xla_disable_constant_folding'):
β β β If true then disables constant folding on TF graph before XLA compilation.
β β βββ Flag('tf_xla_disable_full_embedding_pipelining'):
β β β If true then disables full embedding pipelining and instead use strict SparseCore / TensorCore sequencing.
β β βββ Flag('tf_xla_embedding_parallel_iterations'):
β β β If >0 then use this many parallel iterations in embedding_pipelining and embedding_sequency. By default, use the
β β β parallel_iterations on the original model WhileOp.
β β βββ Flag('tf_xla_compile_on_demand'):
β β β Switch a device into 'on-demand' mode, where instead of autoclustering ops are compiled one by one just-in-time.
β β βββ Flag('tf_xla_enable_xla_devices'):
β β β Generate XLA_* devices, where placing a computation on such a device forces compilation by XLA. Deprecated.
β β βββ Flag('tf_xla_always_defer_compilation')
β β βββ Flag('tf_xla_async_compilation'):
β β β When lazy compilation is enabled, asynchronous compilation starts the cluster compilation in the background, and
β β β the fallback path is executed until the compilation has finished.
β β βββ Flag('tf_xla_use_device_api_for_xla_launch'):
β β β If true, uses Device API (PjRt) for single device compilation and execution of functions marked for JIT
β β β compilation i.e. jit_compile=True. Defaults to false.
β β βββ Flag('tf_xla_use_device_api_for_compile_on_demand'):
β β β If true, uses Device API (PjRt) for compiling and executing ops one by one in 'on-demand' mode. Defaults to false.
β β βββ Flag('tf_xla_use_device_api_for_auto_jit'):
β β β If true, uses Device API (PjRt) for compilation and execution when auto-clustering is enabled. Defaults to false.
β β βββ Flag('tf_xla_use_device_api'):
β β β If true, uses Device API (PjRt) for compilation and execution of ops one-by-one in 'on-demand' mode, for functions
β β β marked for JIT compilation, or when auto-clustering is enabled. Defaults to false.
β β βββ Flag('tf_xla_enable_device_api_for_gpu'):
β β β If true, uses Device API (PjRt) for TF GPU device. This is a helper flag so that individual tests can turn on PjRt
β β β for GPU specifically.
β β βββ Flag('tf_xla_call_module_disabled_checks'):
β β β A comma-sepated list of directives specifying the safety checks to be skipped when compiling XlaCallModuleOp. See
β β β the op documentation for the recognized values.
β β βββ Flag('tf_mlir_enable_mlir_bridge'):
β β β Enables experimental MLIR-Based TensorFlow Compiler Bridge.
β β βββ Flag('tf_mlir_enable_merge_control_flow_pass'):
β β β Enables MergeControlFlow pass for MLIR-Based TensorFlow Compiler Bridge.
β β βββ Flag('tf_mlir_enable_convert_control_to_data_outputs_pass'):
β β β Enables MLIR-Based TensorFlow Compiler Bridge.
β β βββ Flag('tf_mlir_enable_strict_clusters'):
β β β Do not allow clusters that have cyclic control dependencies.
β β βββ Flag('tf_mlir_enable_multiple_local_cpu_devices'):
β β β Enable multiple local CPU devices. CPU ops which are outside compiled inside the tpu cluster will also be
β β β replicated across multiple cpu devices.
β β βββ Flag('tf_dump_graphs_in_tfg'):
β β β When tf_dump_graphs_in_tfg is true, graphs after transformations are dumped in MLIR TFG dialect and not in
β β β GraphDef.
β β βββ Flag('tf_mlir_enable_generic_outside_compilation'):
β β β Enables OutsideCompilation passes for MLIR-Based TensorFlow Generic Compiler Bridge.
β β βββ Flag('tf_mlir_enable_tpu_variable_runtime_reformatting_pass'):
β β β Enables TPUVariableRuntimeReformatting pass for MLIR-Based TensorFlow Compiler Bridge. This enables weight update
β β β sharding and creates TPUReshardVariables ops.
β β βββ TF_PY_DECLARE_FLAG('test_only_experiment_1')
β β βββ TF_PY_DECLARE_FLAG('test_only_experiment_2')
β β βββ TF_PY_DECLARE_FLAG('enable_nested_function_shape_inference')
β β βββ TF_PY_DECLARE_FLAG('enable_quantized_dtypes_training')
β β βββ TF_PY_DECLARE_FLAG('graph_building_optimization')
β β βββ TF_PY_DECLARE_FLAG('op_building_optimization')
β β βββ TF_PY_DECLARE_FLAG('saved_model_fingerprinting')
β β βββ TF_PY_DECLARE_FLAG('tf_shape_default_int64')
β β βββ TF_PY_DECLARE_FLAG('more_stack_traces')
β β βββ TF_PY_DECLARE_FLAG('publish_function_graphs')
β β βββ TF_PY_DECLARE_FLAG('enable_aggressive_constant_replication')
β β βββ TF_PY_DECLARE_FLAG('enable_colocation_key_propagation_in_while_op_lowering')
β β βββ #define TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_
β β βββ class Flags
β β βββ public:
β β βββ bool SetterForXlaAutoJitFlag(const string& value)
β β βββ bool SetterForXlaCallModuleDisabledChecks(const string& value)
β β βββ void AppendMarkForCompilationPassFlagsInternal(std::vector<Flag>* flag_list)
β β βββ void AllocateAndParseJitRtFlags()
β β βββ void AllocateAndParseFlags()
β β βββ void ResetFlags()
β β βββ bool SetXlaAutoJitFlagFromFlagString(const string& value)
β β βββ BuildXlaOpsPassFlags* GetBuildXlaOpsPassFlags()
β β βββ MarkForCompilationPassFlags* GetMarkForCompilationPassFlags()
β β βββ XlaSparseCoreFlags* GetXlaSparseCoreFlags()
β β βββ XlaDeviceFlags* GetXlaDeviceFlags()
β β βββ XlaOpsCommonFlags* GetXlaOpsCommonFlags()
β β βββ XlaCallModuleFlags* GetXlaCallModuleFlags()
β β βββ MlirCommonFlags* GetMlirCommonFlags()
β β βββ void ResetJitCompilerFlags()
β β βββ const JitRtFlags& GetJitRtFlags()
β β βββ ConfigProto::Experimental::MlirBridgeRollout GetMlirBridgeRolloutState(
β β β std::optional<const ConfigProto> config_proto)
β β βββ void AppendMarkForCompilationPassFlags(std::vector<Flag>* flag_list)
β β βββ void DisableXlaCompilation()
β β βββ void EnableXlaCompilation()
β β βββ bool FailOnXlaCompilation()
β β βββ #define TF_PY_DECLARE_FLAG(flag_name)
β β βββ PYBIND11_MODULE(flags_pybind, m)
β βββ π test.f (181 tokens, 30 lines)
β β βββ MODULE basic_mod
β β βββ TYPE :: person
β β β CHARACTER(LEN=50) :: name
β β β INTEGER :: age
β β β END TYPE person
β β βββ SUBROUTINE short_hello(happy, path)
β β β END SUBROUTINE short_hello
β β βββ SUBROUTINE long_hello(
β β β p,
β β β message
β β β )
β β β END SUBROUTINE long_hello
β β βββ END MODULE basic_mod
β β βββ PROGRAM HelloFortran
β β END PROGRAM HelloFortran
β βββ π torch.rst (60 tokens, 8 lines)
β β βββ # libtorch (C++-only)
β β βββ - Building libtorch using Python
β βββ π yc.html (9,063 tokens, 169 lines)
βββ π group7 (1 folder, 3 files)
β βββ π absurdly_huge.jsonl (8,347 tokens, 126 lines)
β β βββ SMILES: str
β β βββ Yield: float
β β βββ Temperature: int
β β βββ Pressure: float
β β βββ Solvent: str
β β βββ Success: bool
β β βββ Reaction_Conditions: dict
β β βββ Products: list
β β βββ EdgeCasesMissed: None
β βββ π angular_crud.ts (1,192 tokens, 148 lines)
β β βββ interface DBCommand<T = any>
β β βββ export class IndexedDbService
β β βββ constructor()
β β βββ async create_connection({ db_name = 'client_db', table_name }: DBCommand)
β β βββ upgrade(db)
β β βββ async create_model({ db_name, table_name, model }: DBCommand)
β β βββ verify_matching({ table_name, model })
β β βββ async read_key({ db_name, table_name, key }: DBCommand)
β β βββ async update_model({ db_name, table_name, model }: DBCommand)
β β βββ verify_matching({ table_name, model })
β β βββ async delete_key({ db_name, table_name, key }: DBCommand)
β β βββ async list_table({
β β β db_name,
β β β table_name,
β β β where,
β β β }: DBCommand & { where?: { : string | number } })
β β βββ async search_table(criteria: SearchCriteria)
β βββ π structure.py (400 tokens, 92 lines)
β βββ @runtime_checkable
β β class DataClass(Protocol)
β βββ __dataclass_fields__: dict
β βββ class MyInteger(Enum)
β βββ ONE = 1
β βββ TWO = 2
β βββ THREE = 42
β βββ class MyString(Enum)
β βββ AAA1 = "aaa"
β βββ BB_B = """edge
β β case"""
β βββ @dataclass(frozen=True, slots=True, kw_only=True)
β β class Tool
β βββ name: str
β βββ description: str
β βββ input_model: DataClass
β βββ output_model: DataClass
β βββ def execute(self, *args, **kwargs)
β βββ @property
β β def edge_case(self) -> str
β βββ def should_still_see_me(self, x: bool = True) -> "Tool"
β βββ @dataclass
β β class MyInput[T]
β βββ name: str
β βββ rank: MyInteger
β βββ serial_n: int
β βββ @dataclass
β β class Thingy
β βββ is_edge_case: bool
β βββ @dataclass
β β class MyOutput
β βββ orders: str
β βββ class MyTools(Enum)
β βββ TOOL_A = Tool(
β β name="complicated",
β β description="edge case!",
β β input_model=MyInput[Thingy],
β β output_model=MyOutput,
β β )
β βββ TOOL_B = Tool(
β β name="""super
β β complicated
β β """,
β β description="edge case!",
β β input_model=MyInput,
β β output_model=MyOutput,
β β )
β βββ @final
β β class dtype(Generic[_DTypeScalar_co])
β βββ names: None | tuple
βββ π group_lisp (1 folder, 4 files)
βββ π clojure_test.clj (682 tokens, 85 lines)
β βββ defprotocol P
β βββ defrecord Person
β βββ defn -main
β βββ ns bion.likes_trees
β βββ def repo-url
β βββ defn config
β βββ defmacro with-os
β βββ defrecord SetFullElement
βββ π LispTest.lisp (25 tokens, 6 lines)
β βββ defstruct person
β βββ defun greet
βββ π racket_struct.rkt (14 tokens, 1 line)
β βββ struct point
βββ π test_scheme.scm (360 tokens, 44 lines)
βββ define topological-sort
βββ define table
βββ define queue
βββ define result
βββ define set-up
βββ define traverse
tree_plus v(1.0.59) ignore=('group_todo',) globs=() syntax=False paths=('tests/more_languages',)
9 folder(s), 84 file(s), 7,158 line(s), 68,018 token(s) in 0.77 second(s).
```
<!-- t2-end -->
## Got Globs?
<!-- t3-start -->
```sh
tree_plus -g "*.*s" -i group_todo tests/more_languages
π more_languages (7 folders, 17 files)
βββ π group1 (1 folder, 2 files)
β βββ π test.js (757 tokens, 154 lines)
β β βββ class MyClass
β β βββ myMethod()
β β βββ async asyncMethod(a, b)
β β βββ methodWithDefaultParameters(a = 5, b = 10)
β β βββ multilineMethod(
β β β c,
β β β d
β β β )
β β βββ multilineMethodWithDefaults(
β β β t = "tree",
β β β p = "plus"
β β β )
β β βββ function myFunction(param1, param2)
β β βββ function multilineFunction(
β β β param1,
β β β param2
β β β )
β β βββ const arrowFunction = () =>
β β βββ const parametricArrow = (a, b) =>
β β βββ function ()
β β βββ function outerFunction(outerParam)
β β βββ function innerFunction(innerParam)
β β βββ innerFunction("inner")
β β βββ const myObject = {
β β βββ myMethod: function (stuff)
β β βββ let myArrowObject = {
β β βββ myArrow: ({
β β β a,
β β β b,
β β β c,
β β β }) =>
β β βββ const myAsyncArrowFunction = async () =>
β β βββ function functionWithRestParameters(...args)
β β βββ const namedFunctionExpression = function myNamedFunction()
β β βββ const multilineArrowFunction = (
β β β a,
β β β b
β β β ) =>
β β βββ function functionReturningFunction()
β β βββ return function ()
β β βββ function destructuringOnMultipleLines({
β β β a,
β β β b,
β β β })
β β βββ const arrowFunctionWithDestructuring = ({ a, b }) =>
β β βββ const multilineDestructuringArrow = ({
β β β a,
β β β b,
β β β }) =>
β β βββ async function asyncFunctionWithErrorHandling()
β β βββ class Car
β β βββ constructor(brand)
β β βββ present()
β β βββ class Model extends Car
β β βββ constructor(brand, mod)
β β βββ super(brand)
β β βββ show()
β βββ π test.ts (832 tokens, 165 lines)
β βββ type MyType
β βββ interface MyInterface
β βββ class TsClass
β βββ myMethod()
β βββ myMethodWithArgs(param1: string, param2: number): void
β βββ static myStaticMethod<T>(param: T): T
β βββ multilineMethod(
β β c: number,
β β d: number
β β ): number
β βββ multilineMethodWithDefaults(
β β t: string = "tree",
β β p: string = "plus"
β β ): string
β βββ export class AdvancedComponent implements MyInterface
β βββ async myAsyncMethod(
β β a: string,
β β b: number,
β β c: string
β β ): Promise<void>
β βββ genericMethod<T, U>(
β β arg1: T,
β β arg2: U
β β ): [T, U]
β βββ export class TicketsComponent implements MyInterface
β βββ async myAsyncMethod({ a, b, c }: { a: String; b: Number; c: String })
β βββ function tsFunction()
β βββ function tsFunctionSigned(
β β param1: number,
β β param2: number
β β ): void
β βββ export default async function tsFunctionComplicated<A, B, C>({
β β a = 1 | 2,
β β b = "bob",
β β c = async () => "charlie",
β β }: {
β β a: number;
β β b: string;
β β c: () => Promise<string>;
β β }): Promise<string>
β βββ return("Standalone function with parameters")
β βββ const tsArrowFunctionSigned = ({
β β a,
β β b,
β β }: {
β β a: number;
β β b: string;
β β }) =>
β βββ export const tsComplicatedArrow = async ({
β β a = 1 | 2,
β β b = "bob",
β β c = async () => "charlie",
β β }: {
β β a: number;
β β b: string;
β β c: () => Promise<string>;
β β }): Promise<string> =>
β βββ const arrowFunction = () =>
β βββ const arrow = (a: String, b: Number) =>
β βββ const asyncArrowFunction = async () =>
β βββ const asyncArrow = async (a: String, b: Number) =>
β βββ let weirdArrow = () =>
β βββ const asyncPromiseArrow = async (): Promise<void> =>
β βββ let myWeirdArrowSigned = (x: number): number =>
β βββ class Person
β βββ constructor(private firstName: string, private lastName: string)
β βββ getFullName(): string
β βββ describe(): string
β βββ class Employee extends Person
β βββ constructor(
β β firstName: string,
β β lastName: string,
β β private jobTitle: string
β β )
β βββ super(firstName, lastName)
β βββ describe(): string
β βββ interface Shape
β βββ interface Square extends Shape
βββ π group3 (1 folder, 1 file)
β βββ π csharp_test.cs (957 tokens, 146 lines)
β βββ public interface IExcelTemplate
β βββ void LoadTemplate(string templateFilePath)
β βββ void LoadData(Dictionary<string, string> data)
β βββ void ModifyCell(string cellName, string value)
β βββ void SaveToFile(string filePath)
β βββ public interface IGreet
β βββ void Greet()
β βββ public enum WeekDays
β βββ public delegate void DisplayMessage(string message)
β βββ public struct Address
β βββ public static class HelperFunctions
β βββ public static void PrintMessage(string message)
β βββ public static int AddNumbers(int a, int b)
β βββ namespace HelloWorldApp
β βββ class Person : IGreet
β βββ public Person(string name, int age)
β βββ public void Greet()
β βββ class HelloWorld
β βββ static void Main(string[] args)
β βββ namespace TemplateToExcelServer.Template
β βββ public interface ITemplateObject
β βββ string[,] GetContent()
β βββ string[] GetContentArray()
β βββ string[] GetFormat()
β βββ int? GetFormatLength()
β βββ TemplateObject SetContent(string[,] Content)
β βββ TemplateObject SetContentArray(string[] value)
β βββ TemplateObject SetFormat(string[] Header)
β βββ TemplateObject SetNameOfReport(
β β ReadOnlyMemory<byte> ReportName,
β β int[] EdgeCase)
β βββ TemplateObject SetSheetName(ReadOnlyMemory<byte> SheetName)
β βββ public class BankAccount(string accountID, string owner)
β βββ public override string ToString() =>
β βββ var IncrementBy = (int source, int increment = 1) =>
β βββ Func<int, int, int> add = (x, y) =>
β βββ button.Click += (sender, args) =>
β βββ public Func<int, int> GetMultiplier(int factor)
β βββ public void Method(
β β int param1,
β β int param2,
β β int param3,
β β int param4,
β β int param5,
β β int param6,
β β )
β βββ System.Net.ServicePointManager.ServerCertificateValidationCallback +=
β β (se, cert, chain, sslerror) =>
β βββ class ServerCertificateValidation
β βββ public bool OnRemoteCertificateValidation(
β β object se,
β β X509Certificate cert,
β β X509Chain chain,
β β SslPolicyErrors sslerror
β β )
β βββ s_downloadButton.Clicked += async (o, e) =>
β βββ [HttpGet, Route("DotNetCount")]
β βββ static public async Task<int> GetDotNetCount(string URL)
βββ π group4 (1 folder, 3 files)
β βββ π haskell_test.hs (414 tokens, 41 lines)
β β βββ data Person
β β βββ greet :: Person -> String
β β βββ resolveVariables ::
β β forall m fragments.
β β (MonadError QErr m, Traversable fragments) =>
β β Options.BackwardsCompatibleNullInNonNullableVariables ->
β β [G.VariableDefinition] ->
β β GH.VariableValues ->
β β [G.Directive G.Name] ->
β β G.SelectionSet fragments G.Name ->
β β m
β β ( [G.Directive Variable],
β β G.SelectionSet fragments Variable
β β )
β βββ π rust_test.rs (974 tokens, 188 lines)
β β βββ enum Days
β β βββ struct Point
β β βββ impl Point
β β βββ fn get_origin() -> Point
β β βββ struct Person
β β βββ impl Person
β β βββ fn greet(&self)
β β βββ fn add_two_longs(x1: i64, x2: i64) -> i64
β β βββ fn add_two_longs_longer(
β β β x1: i64,
β β β x2: i64,
β β β ) -> i64
β β βββ fn multiply_by_two(num: f64) -> f64
β β βββ fn get_first_character(s: &str) -> Option<char>
β β βββ trait Drawable
β β βββ fn draw(&self)
β β βββ impl Drawable for Point
β β βββ fn draw(&self)
β β βββ fn main()
β β βββ pub struct VisibleStruct
β β βββ mod my_module
β β βββ pub struct AlsoVisibleStruct<T>(T, T)
β β βββ macro_rules! say_hello
β β βββ #
β β β macro_rules! hello_tree_plus
β β βββ pub mod lib
β β βββ pub mod interfaces
β β βββ mod engine
β β βββ pub fn flow<S1, S2, S3, S4, E, T, L>(
β β β source: S1,
β β β extractor: E,
β β β inbox: S2,
β β β transformer: T,
β β β outbox: S3,
β β β loader: L,
β β β sink: &mut S4,
β β β ) -> Result<(), Box<dyn Error>>
β β β where
β β β S1: Extractable,
β β β S2: Extractable + Loadable,
β β β S3: Extractable + Loadable,
β β β S4: Loadable,
β β β E: Extractor<S1, S2>,
β β β T: Transformer<S2, S3>,
β β β L: Loader<S3, S4>
β β βββ trait Container
β β βββ fn items(&self) -> impl Iterator<Item = Widget>
β β βββ trait HttpService
β β βββ async fn fetch(&self, url: Url) -> HtmlBody
β β βββ struct Pair<T, U>
β β βββ trait Transformer<T>
β β βββ fn transform(&self, input: T) -> T
β β βββ impl<T: std::ops::Add<Output = T> + Copy> Transformer<T> for Pair<T, T>
β β βββ fn transform(&self, input: T) -> T
β β βββ fn main()
β β βββ async fn handle_get(State(pool): State<PgPool>) -> Result<Html<String>, (StatusCode, String)>
β β β where
β β β Bion: Cool
β β βββ #
β β β macro_rules! unit
β β βββ fn insert(
β β &mut self,
β β key: (),
β β value: $unit_dtype,
β β ) -> Result<Option<$unit_dtype>, ETLError>
β βββ π test_fsharp.fs (92 tokens, 27 lines)
β βββ module TestFSharp
β βββ type Person = {
β βββ let add x y =
β βββ let multiply
β β (x: int)
β β (y: int): int =
β βββ let complexFunction
β β (a: int)
β β (b: string)
β β (c: float)
β β : (int * string) option =
β βββ type Result<'T> =
βββ π group5 (1 folder, 8 files)
β βββ π app-routing.module.ts (287 tokens, 28 lines)
β β βββ const routes: Routes = [
β β β { path: '', redirectTo: 'login', pathMatch: 'full' },
β β β { path: '*', redirectTo: 'login' },
β β β { path: 'home', component: HomeComponent },
β β β { path: 'login', component: LoginComponent },
β β β { path: 'register', component: RegisterComponent },
β β β { path: 'events', component: EventsComponent },
β β β { path: 'invites', component: InvitesComponent },
β β β { path: 'rewards', component: RewardsComponent },
β β β { path: 'profile', component: ProfileComponent },
β β β ];
β β βββ export class AppRoutingModule
β βββ π app.component.spec.ts (410 tokens, 47 lines)
β β βββ describe 'AppComponent'
β β βββ it should create the app
β β βββ it should welcome the user
β β βββ it should welcome 'Jimbo'
β β βββ it should request login if not logged in
β βββ π app.component.ts (271 tokens, 45 lines)
β β βββ export class AppComponent
β β βββ constructor(
β β β private http: HttpClient,
β β β private loginService: LoginService,
β β β private stripeService: StripeService
β β β )
β β βββ constructor(private loginService: LoginService)
β β βββ checkSession()
β β βββ async goToEvent(event_id: string)
β β βββ valInvitedBy(event: any, event_id: string)
β βββ π app.module.ts (374 tokens, 43 lines)
β β βββ @NgModule({
β β β declarations: [
β β β AppComponent,
β β β HomeComponent,
β β β LoginComponent,
β β β RegisterComponent,
β β β EventsComponent,
β β β InvitesComponent,
β β β RewardsComponent,
β β β ProfileComponent
β β βββ export class AppModule
β βββ π environment.test.ts (197 tokens, 19 lines)
β β βββ environment:
β β βββ production
β β βββ cognitoUserPoolId
β β βββ cognitoAppClientId
β β βββ apiurl
β βββ π rust_todo_test.rs (92 tokens, 26 lines)
β β βββ TODO: This todo tests parse_todo
β β βββ enum Color
β β βββ struct Point
β β βββ trait Drawable
β β βββ fn draw(&self)
β β βββ impl Drawable for Point
β β βββ fn draw(&self)
β β βββ fn main()
β βββ π standard-app-routing.module.ts (100 tokens, 16 lines)
β β βββ const routes: Routes = [
β β { path: '', component: HomeComponent },
β β {
β β path: 'heroes',
β β component: HeroesListComponent,
β β children: [
β β { path: ':id', component: HeroDetailComponent },
β β { path: 'new', component: HeroFormComponent },
β β ],
β β },
β β { path: '**', component: PageNotFoundComponent },
β β ];
β βββ π tickets.component.ts (7,160 tokens, 903 lines)
β βββ interface EnrichedTicket extends Ticket
β βββ interface SpinConfig
β βββ interface RotationState
β βββ interface SpeakInput
β βββ const formatSpeakInput = (input: SpeakInput): string =>
β βββ function hourToSpeech(hour: number, minute: number, period: string): string
β βββ export class TicketsComponent implements AfterViewInit
β βββ speak(input: SpeakInput)
β βββ speakEvent(ticket: EnrichedTicket): void
β βββ formatEvent(ticket: EnrichedTicket): string
β βββ speakVenue(ticket: EnrichedTicket): void
β βββ formatDate(date: Date, oneLiner: boolean = false): string
β βββ formatDateForSpeech(date: Date): string
β βββ async spinQRCode(
β β event: PointerEvent,
β β config: SpinConfig = DEFAULT_SPIN_CONFIG
β β )
β βββ private animateRotation(
β β imgElement: HTMLElement,
β β targetRotation: number,
β β config: SpinConfig,
β β cleanup: () => void
β β )
β βββ const animate = (currentTime: number) =>
β βββ requestAnimationFrame(animate)
β βββ cleanup()
β βββ requestAnimationFrame(animate)
β βββ private getNext90Degree(currentRotation: number): number
β βββ private getCurrentRotation(matrix: string): number
β βββ ngAfterViewInit()
β βββ const mouseEnterListener = () =>
β βββ const mouseLeaveListener = () =>
β βββ ngOnDestroy()
β βββ toggleColumn(event: MatOptionSelectionChange, column: string)
β βββ adjustColumns(event?: Event)
β βββ onResize(event: Event)
β βββ async ngOnInit()
β βββ async loadTickets(): Promise<void>
β βββ onDateRangeChange(
β β type: "start" | "end",
β β event: MatDatepickerInputEvent<Date>
β β )
β βββ applyFilter(column: string): void
β βββ formatDateForComparison(date: Date): string
β βββ constructor(private renderer: Renderer2)
β βββ onFilterChange(event: Event, column: string)
β βββ onLatitudeChange(event: Event)
β βββ onLongitudeChange(event: Event)
β βββ onRadiusChange(event: Event)
β βββ sortData(sort: Sort): void
β βββ onRowClick(event: Event, row: any)
β βββ function isDate(value: Date | undefined | null): value is Date
β βββ function isNonNullNumber(value: number | null): value is number
β βββ function hasLocation(
β β ticket: any
β β ): ticket is
β βββ const create_faker_ticket = async () =>
β βββ function compare(a: number | string, b: number | string, isAsc: boolean)
β βββ function compare_dates(a: Date, b: Date, isAsc: boolean)
β βββ async function mockMoreTickets(): Promise<Ticket[]>
β βββ const mockTickets = async () =>
β βββ const renderQRCode = async (text: String): Promise<string> =>
βββ π group6 (1 folder, 2 files)
β βββ π ramda__cloneRegExp.js (173 tokens, 9 lines)
β β βββ export default function _cloneRegExp(pattern)
β βββ π ramda_prop.js (646 tokens, 85 lines)
β βββ /**
β β * Returns a function that when supplied an object returns the indicated
β β * property of that object, if it exists.
β β * @category Object
β β * @typedefn Idx = String | Int | Symbol
β β * @sig Idx -> {s: a} -> a | Undefined
β β * @param {String|Number} p The property name or array index
β β * @param {Object} obj The object to query
β β * @return {*} The value at `obj.p`.
β β */
β β var prop = _curry2(function prop(p, obj)
β βββ /**
β β * Solves equations of the form a * x = b
β β * @param {{
β β * z: number
β β * }} x
β β */
β β function foo(x)
β βββ /**
β β * Deconstructs an array field from the input documents to output a document for each element.
β β * Each output document is the input document with the value of the array field replaced by the element.
β β * @category Object
β β * @sig String -> {k: } -> [{k: v}]
β β * @param {String} key The key to determine which property of the object should be unwound.
β β * @param {Object} object The object containing the list to unwind at the property named by the key.
β β * @return {List} A list of new objects, each having the given key associated to an item from the unwound list.
β β */
β β var unwind = _curry2(function(key, object)
β βββ return _map(function(item)
βββ π group7 (1 folder, 1 file)
βββ π angular_crud.ts (1,192 tokens, 148 lines)
βββ interface DBCommand<T = any>
βββ export class IndexedDbService
βββ constructor()
βββ async create_connection({ db_name = 'client_db', table_name }: DBCommand)
βββ upgrade(db)
βββ async create_model({ db_name, table_name, model }: DBCommand)
βββ verify_matching({ table_name, model })
βββ async read_key({ db_name, table_name, key }: DBCommand)
βββ async update_model({ db_name, table_name, model }: DBCommand)
βββ verify_matching({ table_name, model })
βββ async delete_key({ db_name, table_name, key }: DBCommand)
βββ async list_table({
β db_name,
β table_name,
β where,
β }: DBCommand & { where?: { : string | number } })
βββ async search_table(criteria: SearchCriteria)
tree_plus v(1.0.59) ignore=('group_todo',) globs=('*.*s',) syntax=False paths=('tests/more_languages',)
7 folder(s), 17 file(s), 2,090 line(s), 14,928 token(s) in 0.21 second(s).
```
<!-- t3-end -->
## Languages Todo:
Help me **add to** and **priorize** this list of languages to support!
- [Open a `tree_plus` GitHub Issue](https://github.com/bionicles/tree_plus/issues/new), or
- [Contact Bion on X](https://twitter.com/flesheatingemu)
<!-- t4-start -->
```sh
tree_plus tests/more_languages/group_todo
π group_todo (1 folder, 12 files)
βββ π AAPLShaders.metal (5,780 tokens, 566 lines)
βββ π crystal_test.cr (48 tokens, 15 lines)
βββ π dart_test.dart (108 tokens, 24 lines)
βββ π elixir_test.exs (39 tokens, 10 lines)
βββ π forward.frag (739 tokens, 87 lines)
βββ π forward.vert (359 tokens, 48 lines)
βββ π nodemon.json (118 tokens, 20 lines)
βββ π sas_test.sas (97 tokens, 22 lines)
βββ π test_setup_py.test (133 tokens, 24 lines)
βββ π testTypings.d.ts (158 tokens, 23 lines)
βββ π vba_test.bas (67 tokens, 16 lines)
βββ π wgsl_test.wgsl (94 tokens, 17 lines)
tree_plus v(1.0.59) ignore=() globs=() syntax=False paths=('tests/more_languages/group_todo',)
1 folder(s), 12 file(s), 872 line(s), 7,740 token(s) in 0.04 second(s).
```
<!-- t4-end -->
## Oppose Unfair Business Practices
Please consider contacting the authorities to report the issue described in this document:
[California OpenAI Complaint - Customer Noncompete Clause](https://www.tinyurl.com/cali-openai-complaint)
_Remember_: **Your Voice Matters!**
## License
MIT or Apache 2.0, at your option.
Raw data
{
"_id": null,
"home_page": null,
"name": "tree-plus",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "tree, util, cli",
"author": null,
"author_email": "Bion Howard <bion@atomiclogic.com>",
"download_url": "https://files.pythonhosted.org/packages/8e/fa/451fe4872a25e140b0fddcc77c44fd9f62a94bf7a4ec31787ed8febe7a41/tree_plus-1.0.59.tar.gz",
"platform": null,
"description": "# Tree Plus\n\n**A `tree` util enhanced with tokens, lines, and components. Why? To see the big picture!**\n\n[](https://choosealicense.com/licenses/)\n[](https://github.com/bionicles/tree_plus/blob/main/README.md)\n[](https://github.com/bionicles/tree_plus/actions/workflows/unix.yml)\n[](https://github.com/bionicles/tree_plus/actions/workflows/microsoft.yml)\n\n**Supported Python Versions:**\n\n\n\n\n\n\n\n**Supported Operating Systems:**\n\n\n\n\n\n**Support Free, Open-Source Software:**\n\n[](https://www.buymeacoffee.com/bionicles)\n\n\n`pip install -U tree_plus`\n\n## Usage\nHere's how `tree_plus --help` looks (`-h` and `-H` both also work) \n<!-- t5-start -->\n```sh\ntree_plus -h\nUsage: tree_plus [OPTIONS] [PATHS]...\n\n A `tree` util enhanced with tokens, lines, and components.\n\n Wrap patterns in quotes: -i \"*.py\" / -g \"*.rs\"\n\n Example Invocations:\n\n Show tree_plus_src and tests simultaneously\n > tree_plus tree_plus_src tests\n\n Show files matching \"*.*s\" within tests/more_languages\n > tree_plus -g \"*.*s\" tests/more_languages\n\n Ignore Java files\n > tree_plus -i \"*.java\" tests\n\n Override DEFAULT_IGNORE: Only ignore .ini files.\n > tree_plus -o -i \"*.ini\" tests/dot_dot\n\n Syntax Highlight python files in src and tests\n > tree_plus -s tree_plus_src/*.py tests/*.py\n\n Concise Mode (No Parsing)\n > tree_plus -c\n\n URL + Tag Categories for a website\n > tree_plus example.com\n\n URL + Tag Categories for multiple websites with a link tree\n > tree_plus example.com example.org -l\n\n Hacker News Mode (3 articles, max depth 3)\n > tree_plus --yc\n\n Hacker News Mode (6 articles, max depth 6, warning, slow!)\n > tree_plus --yc -n 6 -m 6\n\n Use the Tiktoken gpt4o Model Tokenizer to tokenize Rust files\n > tree_plus -t -g '*.rs'\n\nOptions:\n -i, -I, --ignore TEXT Patterns to ignore, in quotes: -i \"*.java\"\n -o, -O, --override Override DEFAULT_IGNORE (includes ignored\n content): -o -i \"*.java\"\n -g, -G, --glob TEXT Patterns to find, in quotes: -g \"*.rs\"\n -v, -V, --version Print the version and exit.\n -d, -D, --debug Enables $DEBUG_TREE_PLUS.\n -s, -S, --syntax Enables Syntax Highlighting (WIP).\n -c, -C, --concise Omit module components. (False)\n --yc, --hn Include ycombinator (False)\n -n, -N, --number INTEGER number of results (--yc mode only, default 3)\n -m, -M, --max-depth INTEGER max number of steps (depth / level) from root\n (--yc mode only, default 3)\n -l, -L, --links include links (web mode only, default False)\n -t, --tiktoken a shorthand for tiktoken with the gpt4o\n tokenizer\n -T, --tokenizer-name TEXT name of the tokenizer to use, for now only\n 'gpt4o' works\n --timeout FLOAT regex timeout in seconds (optional, default\n 0.7)\n -H, -h, --help Show this message and exit.\n\n v(1.0.59) --- https://github.com/bionicles/tree_plus/blob/main/README.md\n\n```\n<!-- t5-end -->\n\n\n## Example Output:\n- [ ] Demonstrate Parsed Checkboxes\n<!-- t1-start -->\n```sh\ntree_plus -i tests\n\ud83d\udcc1 tree_plus (7 folders, 27 files) \n\u251c\u2500\u2500 \ud83d\udcc4 .env.test (4 tokens, 0 lines)\n\u2502 \u2514\u2500\u2500 DEBUG_TREE_PLUS\n\u251c\u2500\u2500 \ud83d\udcc1 .github (2 folders, 3 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 dependabot.yml (128 tokens, 11 lines)\n\u2502 \u2502 \u2514\u2500\u2500 Unsupported YAML Category\n\u2502 \u2514\u2500\u2500 \ud83d\udcc1 workflows (1 folder, 2 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 microsoft.yml (283 tokens, 40 lines)\n\u2502 \u2502 \u251c\u2500\u2500 Microsoft\n\u2502 \u2502 \u251c\u2500\u2500 job: build\n\u2502 \u2502 \u251c\u2500\u2500 - Set up Python ${{ matrix.python-version }}\n\u2502 \u2502 \u251c\u2500\u2500 - Install tree_plus\n\u2502 \u2502 \u251c\u2500\u2500 - Create .env file\n\u2502 \u2502 \u251c\u2500\u2500 - Set PYTHONUTF8 for Windows\n\u2502 \u2502 \u251c\u2500\u2500 - Run generic tests\n\u2502 \u2502 \u2514\u2500\u2500 - Run specific test\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 unix.yml (663 tokens, 87 lines)\n\u2502 \u251c\u2500\u2500 Linux & MacOS\n\u2502 \u251c\u2500\u2500 job: test\n\u2502 \u251c\u2500\u2500 - Set up Python ${{ matrix.python-version }}\n\u2502 \u251c\u2500\u2500 - Install tree_plus\n\u2502 \u251c\u2500\u2500 - Create .env file\n\u2502 \u251c\u2500\u2500 - Run generic tests\n\u2502 \u251c\u2500\u2500 - Run specific test\n\u2502 \u251c\u2500\u2500 job: deploy\n\u2502 \u251c\u2500\u2500 - Set up Python\n\u2502 \u251c\u2500\u2500 - Install dependencies\n\u2502 \u251c\u2500\u2500 - Increment Version\n\u2502 \u251c\u2500\u2500 - Build\n\u2502 \u251c\u2500\u2500 - Install\n\u2502 \u251c\u2500\u2500 - Test\n\u2502 \u251c\u2500\u2500 - Update README\n\u2502 \u251c\u2500\u2500 - Build Again\n\u2502 \u251c\u2500\u2500 - Commit Updates\n\u2502 \u2514\u2500\u2500 - Publish to PyPI\n\u251c\u2500\u2500 \ud83d\udcc4 .gitignore (202 tokens, 52 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 coverage (1 folder, 1 file) \n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 lcov.info (17,359 tokens, 2,180 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 LICENSE (2,744 tokens, 81 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 Makefile (770 tokens, 121 lines)\n\u2502 \u251c\u2500\u2500 SHELL := /bin/bash\n\u2502 \u251c\u2500\u2500 cli\n\u2502 \u251c\u2500\u2500 library-demo\n\u2502 \u251c\u2500\u2500 rewrite-demo\n\u2502 \u251c\u2500\u2500 coverage\n\u2502 \u251c\u2500\u2500 debug\n\u2502 \u251c\u2500\u2500 .PHONY: debug-command\n\u2502 \u251c\u2500\u2500 debug-command: test\n\u2502 \u251c\u2500\u2500 html-demo\n\u2502 \u251c\u2500\u2500 absurdly-huge-jsonl\n\u2502 \u251c\u2500\u2500 test: test-sequential test-tp-dotdot test-e2e test-cli test-programs test-deploy\n\u2502 \u251c\u2500\u2500 test-parallel\n\u2502 \u251c\u2500\u2500 test-sequential\n\u2502 \u251c\u2500\u2500 test-more-languages\n\u2502 \u251c\u2500\u2500 test-group\n\u2502 \u251c\u2500\u2500 test-units\n\u2502 \u251c\u2500\u2500 test-tp-dotdot\n\u2502 \u251c\u2500\u2500 test-e2e\n\u2502 \u251c\u2500\u2500 test-cli: cli\n\u2502 \u251c\u2500\u2500 test-programs\n\u2502 \u251c\u2500\u2500 test-deploy\n\u2502 \u251c\u2500\u2500 vulture: install_vulture\n\u2502 \u251c\u2500\u2500 install-vulture\n\u2502 \u251c\u2500\u2500 build: install-build-tool clean-dist\n\u2502 \u251c\u2500\u2500 install-wheel\n\u2502 \u251c\u2500\u2500 install-build-tool\n\u2502 \u251c\u2500\u2500 test-publish: install-twine\n\u2502 \u251c\u2500\u2500 install-twine\n\u2502 \u251c\u2500\u2500 publish: install-twine\n\u2502 \u251c\u2500\u2500 clean-dist\n\u2502 \u251c\u2500\u2500 t1\n\u2502 \u251c\u2500\u2500 t2\n\u2502 \u251c\u2500\u2500 t3\n\u2502 \u251c\u2500\u2500 t4\n\u2502 \u251c\u2500\u2500 t5\n\u2502 \u2514\u2500\u2500 t6\n\u251c\u2500\u2500 \ud83d\udcc4 nodemon.json (112 tokens, 24 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 pyproject.toml (364 tokens, 51 lines)\n\u2502 \u251c\u2500\u2500 name: tree_plus\n\u2502 \u251c\u2500\u2500 version: N/A\n\u2502 \u251c\u2500\u2500 description: A `tree` util enhanced with tokens, lines, and components.\n\u2502 \u251c\u2500\u2500 License :: OSI Approved :: Apache Software License\n\u2502 \u251c\u2500\u2500 License :: OSI Approved :: MIT License\n\u2502 \u251c\u2500\u2500 dependencies:\n\u2502 \u251c\u2500\u2500 tiktoken\n\u2502 \u251c\u2500\u2500 PyYAML\n\u2502 \u251c\u2500\u2500 click\n\u2502 \u251c\u2500\u2500 rich\n\u2502 \u251c\u2500\u2500 tomli\n\u2502 \u251c\u2500\u2500 natsort>=7.1\n\u2502 \u251c\u2500\u2500 fake_useragent\n\u2502 \u251c\u2500\u2500 bs4\n\u2502 \u251c\u2500\u2500 func_timeout\n\u2502 \u2514\u2500\u2500 regex\n\u251c\u2500\u2500 \ud83d\udcc4 pytest.ini (20 tokens, 4 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 README.md (36,974 tokens, 3,639 lines)\n\u2502 \u251c\u2500\u2500 TODO: research various kwargs for huggingface\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: show off how well we parse_todo\n\u2502 \u251c\u2500\u2500 TODO: MOVE TIMEOUT_SECONDS TO ENV VAR\n\u2502 \u251c\u2500\u2500 NOTE: you can customize the color here\n\u2502 \u251c\u2500\u2500 TODO: clarify subtree types\n\u2502 \u251c\u2500\u2500 NOTE: sometimes we need wider trees\n\u2502 \u251c\u2500\u2500 TODO: research\n\u2502 \u251c\u2500\u2500 NOTE: here we add directly input file_paths to the amortized glob matches\n\u2502 \u251c\u2500\u2500 TODO: decide if we apply glob patterns to glob paths\n\u2502 \u251c\u2500\u2500 NOTE: switching these eager tallies to lazy properties\n\u2502 \u251c\u2500\u2500 TODO: decide between glob and rglob in _from_glob\n\u2502 \u251c\u2500\u2500 TODO: decide if we need to re\n\u2502 \u251c\u2500\u2500 TODO: clarify ignore in glob seed context\n\u2502 \u251c\u2500\u2500 TODO: re\n\u2502 \u251c\u2500\u2500 NOTE: this is only to satisfy the type checker\n\u2502 \u251c\u2500\u2500 TODO: incorporate gitignore\n\u2502 \u251c\u2500\u2500 BUG: HTML tree doesn\n\u2502 \u251c\u2500\u2500 TODO: Fix HTML in TreePlus\n\u2502 \u251c\u2500\u2500 BUG: this repeatedly finds tags\n\u2502 \u251c\u2500\u2500 BUG: catastrophic backtracking in some c files\n\u2502 \u251c\u2500\u2500 TODO: update parse_objective_c to avoid fixed unrolling\n\u2502 \u251c\u2500\u2500 TODO: re\n\u2502 \u251c\u2500\u2500 NOTE: no point in the answers since there\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: research various kwargs for huggingface\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: show off how well we parse_todo\n\u2502 \u251c\u2500\u2500 TODO: MOVE TIMEOUT_SECONDS TO ENV VAR\n\u2502 \u251c\u2500\u2500 NOTE: you can customize the color here\n\u2502 \u251c\u2500\u2500 TODO: clarify subtree types\n\u2502 \u251c\u2500\u2500 NOTE: sometimes we need wider trees\n\u2502 \u251c\u2500\u2500 TODO: research\n\u2502 \u251c\u2500\u2500 NOTE: directly add input file_paths to the amortized glob matches\n\u2502 \u251c\u2500\u2500 TODO: decide to apply glob patterns to glob paths\n\u2502 \u251c\u2500\u2500 TODO: decide between glob and rglob in _from_glob\n\u2502 \u251c\u2500\u2500 TODO: decide if we need to re\n\u2502 \u251c\u2500\u2500 TODO: clarify ignore in glob seed context\n\u2502 \u251c\u2500\u2500 NOTE: this is only to satisfy the type checker\n\u2502 \u251c\u2500\u2500 TODO: incorporate gitignore\n\u2502 \u251c\u2500\u2500 BUG: HTML tree doesn\n\u2502 \u251c\u2500\u2500 TODO: Fix HTML in TreePlus\n\u2502 \u251c\u2500\u2500 BUG: this repeatedly finds tags\n\u2502 \u251c\u2500\u2500 TODO: update parse_objective_c to avoid fixed unrolling\n\u2502 \u251c\u2500\u2500 TODO: update parse_ocaml to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_apl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_perl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: re\n\u2502 \u251c\u2500\u2500 NOTE: no point in the answers since there\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: technically we should build this module without AVX support\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: research various kwargs for huggingface\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: show off how well we parse_todo\n\u2502 \u251c\u2500\u2500 TODO: MOVE TIMEOUT_SECONDS TO ENV VAR\n\u2502 \u251c\u2500\u2500 NOTE: you can customize the color here\n\u2502 \u251c\u2500\u2500 TODO: clarify subtree types\n\u2502 \u251c\u2500\u2500 NOTE: sometimes we need wider trees\n\u2502 \u251c\u2500\u2500 TODO: research\n\u2502 \u251c\u2500\u2500 NOTE: directly add input file_paths to the amortized glob matches\n\u2502 \u251c\u2500\u2500 TODO: decide to apply glob patterns to glob paths\n\u2502 \u251c\u2500\u2500 TODO: decide between glob and rglob in _from_glob\n\u2502 \u251c\u2500\u2500 TODO: decide if we need to re\n\u2502 \u251c\u2500\u2500 TODO: clarify ignore in glob seed context\n\u2502 \u251c\u2500\u2500 NOTE: this is only to satisfy the type checker\n\u2502 \u251c\u2500\u2500 TODO: incorporate gitignore\n\u2502 \u251c\u2500\u2500 BUG: HTML tree doesn\n\u2502 \u251c\u2500\u2500 TODO: Fix HTML in TreePlus\n\u2502 \u251c\u2500\u2500 BUG: this repeatedly finds tags\n\u2502 \u251c\u2500\u2500 TODO: update parse_objective_c to avoid fixed unrolling\n\u2502 \u251c\u2500\u2500 TODO: update parse_ocaml to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_apl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_perl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: re\n\u2502 \u251c\u2500\u2500 NOTE: no point in the answers since there\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: technically we should build this module without AVX support\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: research various kwargs for huggingface\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: show off how well we parse_todo\n\u2502 \u251c\u2500\u2500 TODO: MOVE TIMEOUT_SECONDS TO ENV VAR\n\u2502 \u251c\u2500\u2500 NOTE: you can customize the color here\n\u2502 \u251c\u2500\u2500 TODO: clarify subtree types\n\u2502 \u251c\u2500\u2500 NOTE: sometimes we need wider trees\n\u2502 \u251c\u2500\u2500 TODO: research\n\u2502 \u251c\u2500\u2500 NOTE: directly add input file_paths to the amortized glob matches\n\u2502 \u251c\u2500\u2500 TODO: decide to apply glob patterns to glob paths\n\u2502 \u251c\u2500\u2500 TODO: decide between glob and rglob in _from_glob\n\u2502 \u251c\u2500\u2500 TODO: decide if we need to re\n\u2502 \u251c\u2500\u2500 TODO: clarify ignore in glob seed context\n\u2502 \u251c\u2500\u2500 NOTE: this is only to satisfy the type checker\n\u2502 \u251c\u2500\u2500 TODO: incorporate gitignore\n\u2502 \u251c\u2500\u2500 BUG: HTML tree doesn\n\u2502 \u251c\u2500\u2500 TODO: Fix HTML in TreePlus\n\u2502 \u251c\u2500\u2500 BUG: this repeatedly finds tags\n\u2502 \u251c\u2500\u2500 TODO: update parse_objective_c to avoid fixed unrolling\n\u2502 \u251c\u2500\u2500 TODO: update parse_ocaml to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_apl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_perl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: re\n\u2502 \u251c\u2500\u2500 NOTE: no point in the answers since there\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: technically we should build this module without AVX support\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: research various kwargs for huggingface\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: show off how well we parse_todo\n\u2502 \u251c\u2500\u2500 TODO: MOVE TIMEOUT_SECONDS TO ENV VAR\n\u2502 \u251c\u2500\u2500 NOTE: you can customize the color here\n\u2502 \u251c\u2500\u2500 TODO: clarify subtree types\n\u2502 \u251c\u2500\u2500 NOTE: sometimes we need wider trees\n\u2502 \u251c\u2500\u2500 TODO: research\n\u2502 \u251c\u2500\u2500 NOTE: directly add input file_paths to the amortized glob matches\n\u2502 \u251c\u2500\u2500 TODO: decide to apply glob patterns to glob paths\n\u2502 \u251c\u2500\u2500 TODO: decide between glob and rglob in _from_glob\n\u2502 \u251c\u2500\u2500 TODO: decide if we need to re\n\u2502 \u251c\u2500\u2500 TODO: clarify ignore in glob seed context\n\u2502 \u251c\u2500\u2500 NOTE: this is only to satisfy the type checker\n\u2502 \u251c\u2500\u2500 TODO: incorporate gitignore\n\u2502 \u251c\u2500\u2500 BUG: HTML tree doesn\n\u2502 \u251c\u2500\u2500 TODO: Fix HTML in TreePlus\n\u2502 \u251c\u2500\u2500 BUG: this repeatedly finds tags\n\u2502 \u251c\u2500\u2500 TODO: gather requirements for C namespace visualization\n\u2502 \u251c\u2500\u2500 TODO: update parse_objective_c to avoid fixed unrolling\n\u2502 \u251c\u2500\u2500 TODO: update parse_ocaml to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_apl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_perl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: re\n\u2502 \u251c\u2500\u2500 NOTE: no point in the answers since there\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: technically we should use a proper parser\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: research various kwargs for huggingface\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 TODO: show off how well we parse_todo\n\u2502 \u251c\u2500\u2500 TODO: MOVE TIMEOUT_SECONDS TO ENV VAR\n\u2502 \u251c\u2500\u2500 NOTE: you can customize the color here\n\u2502 \u251c\u2500\u2500 TODO: clarify subtree types\n\u2502 \u251c\u2500\u2500 NOTE: sometimes we need wider trees\n\u2502 \u251c\u2500\u2500 TODO: research\n\u2502 \u251c\u2500\u2500 NOTE: directly add input file_paths to the amortized glob matches\n\u2502 \u251c\u2500\u2500 TODO: decide to apply glob patterns to glob paths\n\u2502 \u251c\u2500\u2500 TODO: decide between glob and rglob in _from_glob\n\u2502 \u251c\u2500\u2500 TODO: decide if we need to re\n\u2502 \u251c\u2500\u2500 TODO: clarify ignore in glob seed context\n\u2502 \u251c\u2500\u2500 NOTE: this is only to satisfy the type checker\n\u2502 \u251c\u2500\u2500 TODO: incorporate gitignore\n\u2502 \u251c\u2500\u2500 BUG: HTML tree doesn\n\u2502 \u251c\u2500\u2500 TODO: Fix HTML in TreePlus\n\u2502 \u251c\u2500\u2500 BUG: this repeatedly finds tags\n\u2502 \u251c\u2500\u2500 TODO: gather requirements for C namespace visualization\n\u2502 \u251c\u2500\u2500 TODO: update parse_objective_c to avoid fixed unrolling\n\u2502 \u251c\u2500\u2500 TODO: update parse_ocaml to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_apl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: fix parse_perl to avoid forced unrolling\n\u2502 \u251c\u2500\u2500 TODO: re\n\u2502 \u251c\u2500\u2500 NOTE: no point in the answers since there\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 TODO: technically we should use a proper parser\n\u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u251c\u2500\u2500 # Tree Plus\n\u2502 \u251c\u2500\u2500 ## Usage\n\u2502 \u251c\u2500\u2500 ## Example Output:\n\u2502 \u251c\u2500\u2500 - [ ] Demonstrate Parsed Checkboxes\n\u2502 \u251c\u2500\u2500 ## Start Quick!\n\u2502 \u251c\u2500\u2500 ### Prerequisites\n\u2502 \u251c\u2500\u2500 ### Install Tree Plus\n\u2502 \u251c\u2500\u2500 #### PyPI\n\u2502 \u251c\u2500\u2500 #### Local Hackable Install\n\u2502 \u251c\u2500\u2500 ### Alias Usage\n\u2502 \u251c\u2500\u2500 ## Library Usage:\n\u2502 \u251c\u2500\u2500 ## Moar Languages\n\u2502 \u251c\u2500\u2500 ### Currently Tested Languages:\n\u2502 \u251c\u2500\u2500 ### Without the -c \"Concise\" Flag:\n\u2502 \u251c\u2500\u2500 ## Got Globs?\n\u2502 \u251c\u2500\u2500 ## Languages Todo:\n\u2502 \u251c\u2500\u2500 ## Oppose Unfair Business Practices\n\u2502 \u2514\u2500\u2500 ## License\n\u251c\u2500\u2500 \ud83d\udcc4 tree_plus_cli.py (1,895 tokens, 293 lines)\n\u2502 \u2514\u2500\u2500 def main(\n\u2502 glob: Optional[Tuple],\n\u2502 paths: Optional[Union[str, Tuple]],\n\u2502 ignore: Tuple,\n\u2502 override: bool,\n\u2502 debug: bool,\n\u2502 version: bool,\n\u2502 syntax: bool,\n\u2502 concise: bool,\n\u2502 \n\u2502 yc: bool,\n\u2502 number: int,\n\u2502 max_depth: int,\n\u2502 links: bool,\n\u2502 tiktoken: bool,\n\u2502 tokenizer_name: Optional,\n\u2502 timeout: Optional,\n\u2502 )\n\u251c\u2500\u2500 \ud83d\udcc1 tree_plus_programs (1 folder, 4 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 hello_tree_plus.py (545 tokens, 80 lines)\n\u2502 \u2502 \u251c\u2500\u2500 class ItHappened\n\u2502 \u2502 \u251c\u2500\u2500 def main()\n\u2502 \u2502 \u2514\u2500\u2500 def trees(\n\u2502 \u2502 or_: bool,\n\u2502 \u2502 it: int,\n\u2502 \u2502 didnt: str,\n\u2502 \u2502 happen: tuple,\n\u2502 \u2502 ) -> ItHappened\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 rewrite.py (4,017 tokens, 471 lines)\n\u2502 \u2502 \u251c\u2500\u2500 TODO: research various kwargs for huggingface\n\u2502 \u2502 \u251c\u2500\u2500 \n\u2502 \u2502 \u2502 DEFAULT_MAX_LENGTH = 256\n\u2502 \u2502 \u251c\u2500\u2500 class ModelName(Enum)\n\u2502 \u2502 \u251c\u2500\u2500 QWEN_2 = \"Qwen/Qwen2-7B-Instruct\"\n\u2502 \u2502 \u251c\u2500\u2500 MISTRAL_3 = \"mistralai/Mistral-7B-Instruct-v0.3\"\n\u2502 \u2502 \u251c\u2500\u2500 class ModelContext(Enum)\n\u2502 \u2502 \u251c\u2500\u2500 QWEN_2 = 131\n\u2502 \u2502 \u251c\u2500\u2500 MISTRAL_3 = 32\n\u2502 \u2502 \u251c\u2500\u2500 root: None,\n\u2502 \u2502 \u251c\u2500\u2500 def rewrite_module(\n\u2502 \u2502 \u2502 max_length: int,\n\u2502 \u2502 \u2502 fill_context: bool,\n\u2502 \u2502 \u2502 input_path: Path,\n\u2502 \u2502 \u2502 output_path: Optional,\n\u2502 \u2502 \u2502 suffix: Optional = \".rs\",\n\u2502 \u2502 \u2502 include_complete_file: bool = True,\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u2514\u2500\u2500 def main(\n\u2502 \u2502 fill_context: bool,\n\u2502 \u2502 length: int,\n\u2502 \u2502 input_path: Path,\n\u2502 \u2502 output_path: Optional,\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 stub_tests.py (1,348 tokens, 180 lines)\n\u2502 \u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u2502 \u251c\u2500\u2500 @lru_cache\n\u2502 \u2502 \u2502 def remove_decorators(component: str) -> str\n\u2502 \u2502 \u251c\u2500\u2500 def make_import_path(path: Path) -> str\n\u2502 \u2502 \u251c\u2500\u2500 def stub_tests(\n\u2502 \u2502 \u2502 input_path: str,\n\u2502 \u2502 \u2502 output_path: Optional,\n\u2502 \u2502 \u2502 rewrite_ok: bool,\n\u2502 \u2502 \u2502 ) -> Tuple[List, str, bool]\n\u2502 \u2502 \u251c\u2500\u2500 def main(\n\u2502 \u2502 \u2502 input_path: str,\n\u2502 \u2502 \u2502 output_path: Optional,\n\u2502 \u2502 \u2502 rewrite_ok: bool,\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 class Vehicle\n\u2502 \u2502 \u2514\u2500\u2500 class Car(Vehicle)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test_stub_tests.py (79 tokens, 20 lines)\n\u2502 \u251c\u2500\u2500 TODO: fix this path\n\u2502 \u251c\u2500\u2500 TODO: fill in these stubs\n\u2502 \u251c\u2500\u2500 def test_remove_decorators()\n\u2502 \u251c\u2500\u2500 def test_make_import_path()\n\u2502 \u251c\u2500\u2500 def test_stub_tests()\n\u2502 \u251c\u2500\u2500 def test_main()\n\u2502 \u251c\u2500\u2500 def test_class_vehicle()\n\u2502 \u2514\u2500\u2500 def test_class_car()\n\u2514\u2500\u2500 \ud83d\udcc1 tree_plus_src (2 folders, 10 files) \n \u251c\u2500\u2500 \ud83d\udcc4 count_tokens_lines.py (1,316 tokens, 209 lines)\n \u2502 \u251c\u2500\u2500 TODO: show off how well we parse_todo\n \u2502 \u251c\u2500\u2500 @dataclass(frozen=True)\n \u2502 \u2502 class TokenLineCount\n \u2502 \u251c\u2500\u2500 n_tokens: int\n \u2502 \u251c\u2500\u2500 n_lines: int\n \u2502 \u251c\u2500\u2500 class TokenizerName(Enum)\n \u2502 \u251c\u2500\u2500 WC = \"wc\"\n \u2502 \u251c\u2500\u2500 GPT4O = \"gpt4o\"\n \u2502 \u251c\u2500\u2500 GPT4 = \"gpt-4\"\n \u2502 \u251c\u2500\u2500 def count_tokens_lines(\n \u2502 \u2502 file_path: Union,\n \u2502 \u2502 *,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 ) -> Optional[TokenLineCount]\n \u2502 \u251c\u2500\u2500 def count_openai_tokens_lines_from_contents(\n \u2502 \u2502 contents: Union,\n \u2502 \u2502 *,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.GPT4,\n \u2502 \u2502 ) -> TokenLineCount\n \u2502 \u251c\u2500\u2500 def count_wc_tokens_lines_from_path(file_path: str) -> TokenLineCount\n \u2502 \u2514\u2500\u2500 def add_tokens_lines(\n \u2502 lhs_count: TokenLineCount, rhs_count: TokenLineCount\n \u2502 ) -> TokenLineCount\n \u251c\u2500\u2500 \ud83d\udcc4 debug.py (186 tokens, 39 lines)\n \u2502 \u251c\u2500\u2500 def disable_debug()\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def debug_enabled()\n \u2502 \u251c\u2500\u2500 def debug_print(*args, **kwargs)\n \u2502 \u251c\u2500\u2500 def enable_debug()\n \u2502 \u2514\u2500\u2500 @contextmanager\n \u2502 def debug_disabled()\n \u251c\u2500\u2500 \ud83d\udcc4 deploy.py (2,058 tokens, 230 lines)\n \u2502 \u251c\u2500\u2500 def extract(path: Optional = None) -> str\n \u2502 \u251c\u2500\u2500 def load(content: Optional = None, path: Optional = None)\n \u2502 \u251c\u2500\u2500 def extract_version(source_path: Optional = None) -> Tuple\n \u2502 \u251c\u2500\u2500 def increment_version(\n \u2502 \u2502 source_path: Optional = None,\n \u2502 \u2502 sink_path: Optional = None,\n \u2502 \u2502 )\n \u2502 \u251c\u2500\u2500 def run_command(command: Optional = None, debug: bool = False)\n \u2502 \u251c\u2500\u2500 def replace_readme_section(\n \u2502 \u2502 source_path: Optional = None,\n \u2502 \u2502 sink_path: Optional = None,\n \u2502 \u2502 marker: Optional = None,\n \u2502 \u2502 command: Optional = None,\n \u2502 \u2502 )\n \u2502 \u251c\u2500\u2500 def update_readme(source_path: Optional = None, sink_path: Optional = None)\n \u2502 \u2514\u2500\u2500 def main()\n \u251c\u2500\u2500 \ud83d\udcc4 engine.py (11,999 tokens, 1,433 lines)\n \u2502 \u251c\u2500\u2500 TODO: MOVE TIMEOUT_SECONDS TO ENV VAR\n \u2502 \u251c\u2500\u2500 NOTE: you can customize the color here\n \u2502 \u251c\u2500\u2500 TODO: clarify subtree types\n \u2502 \u251c\u2500\u2500 NOTE: sometimes we need wider trees\n \u2502 \u251c\u2500\u2500 TODO: research\n \u2502 \u251c\u2500\u2500 NOTE: directly add input file_paths to the amortized glob matches\n \u2502 \u251c\u2500\u2500 TODO: decide to apply glob patterns to glob paths\n \u2502 \u251c\u2500\u2500 TODO: decide between glob and rglob in _from_glob\n \u2502 \u251c\u2500\u2500 TODO: decide if we need to re\n \u2502 \u251c\u2500\u2500 TODO: clarify ignore in glob seed context\n \u2502 \u251c\u2500\u2500 NOTE: this is only to satisfy the type checker\n \u2502 \u251c\u2500\u2500 \n \u2502 \u2502 INTO_RICH_TREE_TIMEOUT_SECONDS = 1\n \u2502 \u251c\u2500\u2500 \n \u2502 \u2502 BLACK = \"black\"\n \u2502 \u251c\u2500\u2500 class Category(Enum)\n \u2502 \u251c\u2500\u2500 \n \u2502 \u2502 ROOT = 1\n \u2502 \u251c\u2500\u2500 GLOB = 2\n \u2502 \u251c\u2500\u2500 FOLDER = 3\n \u2502 \u251c\u2500\u2500 FILE = 4\n \u2502 \u251c\u2500\u2500 COMPONENT = 5\n \u2502 \u251c\u2500\u2500 URL = 6\n \u2502 \u251c\u2500\u2500 TAG = 7\n \u2502 \u251c\u2500\u2500 @dataclass\n \u2502 \u2502 class TreePlus\n \u2502 \u251c\u2500\u2500 category: Category\n \u2502 \u251c\u2500\u2500 name: Union\n \u2502 \u251c\u2500\u2500 line_count: int\n \u2502 \u251c\u2500\u2500 token_count: int\n \u2502 \u251c\u2500\u2500 subtrees: Union[\n \u2502 \u251c\u2500\u2500 hrefs: Optional[Dict]\n \u2502 \u251c\u2500\u2500 @property\n \u2502 \u2502 def has_tree_plus_subtrees(self) -> Optional\n \u2502 \u251c\u2500\u2500 @property\n \u2502 \u2502 def n_folders(self) -> int\n \u2502 \u251c\u2500\u2500 @property\n \u2502 \u2502 def n_files(self) -> int\n \u2502 \u251c\u2500\u2500 @property\n \u2502 \u2502 def n_lines(self) -> int\n \u2502 \u251c\u2500\u2500 @property\n \u2502 \u2502 def n_tokens(self) -> int\n \u2502 \u251c\u2500\u2500 def is_root(self) -> bool\n \u2502 \u251c\u2500\u2500 def is_folder(self) -> bool\n \u2502 \u251c\u2500\u2500 def is_file(self) -> bool\n \u2502 \u251c\u2500\u2500 def is_glob(self) -> bool\n \u2502 \u251c\u2500\u2500 def is_component(self) -> bool\n \u2502 \u251c\u2500\u2500 def is_url(self) -> bool\n \u2502 \u251c\u2500\u2500 def into_rich_tree(self) -> Tree\n \u2502 \u251c\u2500\u2500 def into_str(self) -> str\n \u2502 \u251c\u2500\u2500 def render(\n \u2502 \u2502 self,\n \u2502 \u2502 style: Optional = None,\n \u2502 \u2502 highlight: bool = False,\n \u2502 \u2502 markup: bool = True,\n \u2502 \u2502 capturing: bool = False,\n \u2502 \u2502 )\n \u2502 \u251c\u2500\u2500 def render_hrefs(self)\n \u2502 \u251c\u2500\u2500 def stats(self) -> str\n \u2502 \u251c\u2500\u2500 def from_hrefs(\n \u2502 \u2502 hrefs: dict,\n \u2502 \u2502 root_panel_text,\n \u2502 \u2502 link_color: str = LINK_COLOR,\n \u2502 \u2502 ) -> Optional[TreePlus]\n \u2502 \u251c\u2500\u2500 def stats_from_tree_plus(tree: TreePlus) -> str\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def remove_trailing_space(x: str) -> str\n \u2502 \u251c\u2500\u2500 def tree_to_string(\n \u2502 \u2502 tree: Tree,\n \u2502 \u2502 markup: bool = False,\n \u2502 \u2502 highlight: bool = False,\n \u2502 \u2502 text_style: str = TEXT_COLOR,\n \u2502 \u2502 ) -> str\n \u2502 \u251c\u2500\u2500 def clean_string(input_str: str) -> str\n \u2502 \u251c\u2500\u2500 def safe_print(\n \u2502 \u2502 tree: Union[Tree, Panel, str],\n \u2502 \u2502 style: Optional = None,\n \u2502 \u2502 highlight: bool = True,\n \u2502 \u2502 markup: bool = False,\n \u2502 \u2502 capturing: bool = False,\n \u2502 \u2502 )\n \u2502 \u251c\u2500\u2500 def _make_rich_tree(\n \u2502 \u2502 label,\n \u2502 \u2502 style: str = TEXT_COLOR,\n \u2502 \u2502 guide_style: str = LINK_COLOR,\n \u2502 \u2502 highlight: bool = True,\n \u2502 \u2502 ) -> Tree\n \u2502 \u251c\u2500\u2500 def into_rich_tree(\n \u2502 \u2502 *,\n \u2502 \u2502 root: Optional[TreePlus] = None,\n \u2502 \u2502 timeout=INTO_RICH_TREE_TIMEOUT_SECONDS,\n \u2502 \u2502 ) -> Tree\n \u2502 \u251c\u2500\u2500 def _into_rich_tree(*, root: Optional[TreePlus] = None) -> Tree\n \u2502 \u251c\u2500\u2500 def is_url(x: str) -> bool\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def categorize(\n \u2502 \u2502 x: Union[Path, Tuple, str],\n \u2502 \u2502 check_strs_globs: bool = True,\n \u2502 \u2502 check_strs_paths: bool = True,\n \u2502 \u2502 check_strs_urls: bool = True,\n \u2502 \u2502 raise_if_component: bool = True,\n \u2502 \u2502 ) -> Category\n \u2502 \u251c\u2500\u2500 def from_seed(\n \u2502 \u2502 maybe_seed: Optional[Union] = None,\n \u2502 \u2502 *,\n \u2502 \u2502 maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,\n \u2502 \u2502 maybe_globs: Optional[Tuple] = None,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 override_ignore: bool = False,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def from_seeds(\n \u2502 \u2502 maybe_seeds: Optional[Tuple[Union, ...]] = None,\n \u2502 \u2502 *,\n \u2502 \u2502 maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,\n \u2502 \u2502 maybe_globs: Optional[Tuple] = None,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 override_ignore: bool = False,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 regex_timeout: Optional = None,\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def _reduce_forest(\n \u2502 \u2502 *,\n \u2502 \u2502 forest: Tuple[TreePlus, ...],\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def _map_seeds(\n \u2502 \u2502 *,\n \u2502 \u2502 seeds: Optional[Tuple[Union, ...]] = None,\n \u2502 \u2502 maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,\n \u2502 \u2502 maybe_globs: Optional[Tuple] = None,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 regex_timeout: Optional = None,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 ) -> Tuple[TreePlus, ...]\n \u2502 \u251c\u2500\u2500 def _from_seed(\n \u2502 \u2502 *,\n \u2502 \u2502 seed_path: Optional[Union[Path, str]] = None,\n \u2502 \u2502 maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,\n \u2502 \u2502 maybe_globs: Optional[AmortizedGlobs] = None,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 regex_timeout: Optional = None,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 is_url: bool = False,\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def _add_subtree(\n \u2502 \u2502 *,\n \u2502 \u2502 root: TreePlus,\n \u2502 \u2502 subtree: TreePlus,\n \u2502 \u2502 )\n \u2502 \u251c\u2500\u2500 def _from_glob(\n \u2502 \u2502 *,\n \u2502 \u2502 pattern: str,\n \u2502 \u2502 maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,\n \u2502 \u2502 maybe_globs: Optional[AmortizedGlobs] = None,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 regex_timeout: Optional = None,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def _from_folder(\n \u2502 \u2502 *,\n \u2502 \u2502 folder_path: Path,\n \u2502 \u2502 maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,\n \u2502 \u2502 maybe_globs: Optional[AmortizedGlobs] = None,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 regex_timeout: Optional = None,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def _from_file(\n \u2502 \u2502 *,\n \u2502 \u2502 file_path: Path,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 tokenizer_name: TokenizerName = TokenizerName.WC,\n \u2502 \u2502 max_tokens: int = MAX_TOKENS,\n \u2502 \u2502 regex_timeout: Optional = None,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def _from_url(\n \u2502 \u2502 *,\n \u2502 \u2502 url: str,\n \u2502 \u2502 syntax_highlighting: bool = False,\n \u2502 \u2502 concise: bool = False,\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def base_url(url: str, with_path: bool = False) -> str\n \u2502 \u251c\u2500\u2500 def _from_html_text(contents: str, maybe_url_base: Optional = None) -> TreePlus\n \u2502 \u251c\u2500\u2500 def empty_tag_tree(n: str = \"?\")\n \u2502 \u251c\u2500\u2500 def union_from_element(elem: PageElement) -> Union[Tag, NavigableString]\n \u2502 \u251c\u2500\u2500 def node_index_str_from_tuple(\n \u2502 \u2502 node_index: Tuple,\n \u2502 \u2502 prefix: str = \"(\",\n \u2502 \u2502 suffix: str = \")\",\n \u2502 \u2502 number_color: str = CYBERCYAN,\n \u2502 \u2502 dot_color: str = GOLD,\n \u2502 \u2502 ) -> str\n \u2502 \u251c\u2500\u2500 def _from_soup(\n \u2502 \u2502 tag: Union[Tag, NavigableString],\n \u2502 \u2502 tree: Optional[TreePlus] = None,\n \u2502 \u2502 node_index: Tuple = (),\n \u2502 \u2502 maybe_url_base: Optional = None,\n \u2502 \u2502 hrefs: Optional[Dict] = None,\n \u2502 \u2502 ) -> Optional[TreePlus]\n \u2502 \u251c\u2500\u2500 def from_hacker_news_articles(\n \u2502 \u2502 articles: Articles,\n \u2502 \u2502 depth: int = 0,\n \u2502 \u2502 max_depth: int = -1,\n \u2502 \u2502 title: Union = \"Hacker News Front Page\",\n \u2502 \u2502 parent_num: Tuple = (),\n \u2502 \u2502 ) -> TreePlus\n \u2502 \u251c\u2500\u2500 def format_link(\n \u2502 \u2502 url: str,\n \u2502 \u2502 text: str,\n \u2502 \u2502 link_color: str = LINK_COLOR,\n \u2502 \u2502 ) -> str\n \u2502 \u251c\u2500\u2500 def process_hacker_news_item(\n \u2502 \u2502 item: dict,\n \u2502 \u2502 kids: Articles,\n \u2502 \u2502 depth: int,\n \u2502 \u2502 max_depth: int,\n \u2502 \u2502 parent_num: Tuple,\n \u2502 \u2502 parser: Union[Literal[\"lxml\"], Literal[\"html.parser\"]] = \"html.parser\",\n \u2502 \u2502 link_color: str = LINK_COLOR,\n \u2502 \u2502 ) -> Optional[TreePlus]\n \u2502 \u251c\u2500\u2500 def rich_links_from_soup(\n \u2502 \u2502 item_soup: BeautifulSoup,\n \u2502 \u2502 recursive: bool = True,\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def ordered_list_from(ordered_list: Iterable) -> List\n \u2502 \u251c\u2500\u2500 def _get_lexer(file_path: Path) -> str\n \u2502 \u2514\u2500\u2500 def _syntax_highlight(\n \u2502 *,\n \u2502 file_path: Path,\n \u2502 components: List,\n \u2502 ) -> Union[List[Syntax], List]\n \u251c\u2500\u2500 \ud83d\udcc4 ignore.py (2,342 tokens, 332 lines)\n \u2502 \u251c\u2500\u2500 TODO: incorporate gitignore\n \u2502 \u251c\u2500\u2500 def _is_all_str(x: Any) -> bool\n \u2502 \u251c\u2500\u2500 def can_parse(x) -> bool\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def parse_ignore(\n \u2502 \u2502 maybe_ignore_tuple: Optional[Tuple] = None, override: bool = False\n \u2502 \u2502 ) -> Optional[Tuple]\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def is_glob(x: str) -> bool\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def parse_globs(\n \u2502 \u2502 maybe_globs_tuple: Optional[Tuple] = None,\n \u2502 \u2502 ) -> Optional[Tuple]\n \u2502 \u251c\u2500\u2500 @dataclass(frozen=True)\n \u2502 \u2502 class AmortizedGlobs\n \u2502 \u251c\u2500\u2500 paths: Tuple[Path, ...]\n \u2502 \u251c\u2500\u2500 globs: Tuple\n \u2502 \u251c\u2500\u2500 matches: FrozenSet[Path]\n \u2502 \u251c\u2500\u2500 def amortize_globs(\n \u2502 \u2502 paths: Tuple[Path, ...],\n \u2502 \u2502 globs: Tuple,\n \u2502 \u2502 ) -> Optional[AmortizedGlobs]\n \u2502 \u2514\u2500\u2500 @lru_cache(maxsize=None)\n \u2502 def should_ignore(\n \u2502 path: Path,\n \u2502 ignore: Optional[Tuple] = DEFAULT_IGNORE,\n \u2502 globs: Optional[AmortizedGlobs] = None,\n \u2502 ) -> bool\n \u251c\u2500\u2500 \ud83d\udcc4 isabelle_symbols.py (2,146 tokens, 462 lines)\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def _replace_symbol(match: re.Match) -> str\n \u2502 \u2514\u2500\u2500 def replace_isabelle_symbols(content: str) -> str\n \u251c\u2500\u2500 \ud83d\udcc4 parse_file.py (24,619 tokens, 2,713 lines)\n \u2502 \u251c\u2500\u2500 BUG: HTML tree doesn\n \u2502 \u251c\u2500\u2500 TODO: Fix HTML in TreePlus\n \u2502 \u251c\u2500\u2500 BUG: this repeatedly finds tags\n \u2502 \u251c\u2500\u2500 TODO: gather requirements for C namespace visualization\n \u2502 \u251c\u2500\u2500 TODO: update parse_objective_c to avoid fixed unrolling\n \u2502 \u251c\u2500\u2500 TODO: update parse_ocaml to avoid forced unrolling\n \u2502 \u251c\u2500\u2500 TODO: fix parse_apl to avoid forced unrolling\n \u2502 \u251c\u2500\u2500 TODO: fix parse_perl to avoid forced unrolling\n \u2502 \u251c\u2500\u2500 \n \u2502 \u2502 DEFAULT_REGEX_TIMEOUT = 0\n \u2502 \u251c\u2500\u2500 \n \u2502 \u2502 BINARY_CHECK_SIZE = 1024\n \u2502 \u251c\u2500\u2500 def head(n: int, content: str) -> str\n \u2502 \u251c\u2500\u2500 @lru_cache(maxsize=None)\n \u2502 \u2502 def read_file(\n \u2502 \u2502 file_path: str,\n \u2502 \u2502 raise_exceptions: bool = False,\n \u2502 \u2502 n_lines: Optional = None,\n \u2502 \u2502 ) -> str\n \u2502 \u251c\u2500\u2500 def parse_file(\n \u2502 \u2502 file_path: Union,\n \u2502 \u2502 content: Optional = None,\n \u2502 \u2502 regex_timeout: Optional = None,\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def extract_groups(match: regex.Match, named_only: bool = False) -> dict\n \u2502 \u251c\u2500\u2500 def parse_html(content: str) -> List\n \u2502 \u251c\u2500\u2500 \n \u2502 \u2502 \n \u2502 \u2502 DENY_HTML = \"\n\"\n \u2502 \u251c\u2500\u2500 def parse_jsonl(content: str) -> List\n \u2502 \u251c\u2500\u2500 def process_tag(tag, components) -> Optional\n \u2502 \u251c\u2500\u2500 def components_from_html(content: str) -> List\n \u2502 \u251c\u2500\u2500 def prettify_tr(component: str) -> str\n \u2502 \u251c\u2500\u2500 def assemble_tensorflow_flag(\n \u2502 \u2502 flag_type: str, flag: str, description: Optional[List] = None\n \u2502 \u2502 ) -> str\n \u2502 \u251c\u2500\u2500 def parse_tensorflow_flags(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_rst(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_c(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def is_binary_string(data: bytes) -> bool\n \u2502 \u251c\u2500\u2500 @lru_cache\n \u2502 \u2502 def is_binary(file_path: str) -> bool\n \u2502 \u251c\u2500\u2500 def clean_isabelle_text(content: str) -> str\n \u2502 \u251c\u2500\u2500 def parse_isabelle(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_fortran(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def remove_c_comments(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> str\n \u2502 \u251c\u2500\u2500 def parse_ts(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def remove_py_comments(\n \u2502 \u2502 input_string: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> str\n \u2502 \u251c\u2500\u2500 def remove_docstrings(source, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> str\n \u2502 \u251c\u2500\u2500 def parse_py(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_rb(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_fsharp(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_tcl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_erl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_rs(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_csv(content: str, max_leaves=11) -> List\n \u2502 \u251c\u2500\u2500 def parse_mathematica(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_r(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_zig(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_hs(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_lisp(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_capnp(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_grpc(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_openrpc_json(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_json_rpc(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_graphql(content: str) -> List\n \u2502 \u251c\u2500\u2500 def format_dependency(name, details)\n \u2502 \u251c\u2500\u2500 def parse_cargo_toml(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_pyproject_toml(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_lean(\n \u2502 \u2502 lean_content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_cs(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_tex(tex_content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_go(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_swift(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_bash(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_d_dot_ts(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_angular_app_module(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_angular_routes(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_angular_spec(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_environment_ts(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_dot_env(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_requirements_txt(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_json_schema(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_package_json(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_makefile(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_sql(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def is_openapi_yml(ymls: Tuple) -> bool\n \u2502 \u251c\u2500\u2500 def is_k8s_yml(ymls: Tuple) -> bool\n \u2502 \u251c\u2500\u2500 def is_ansible_yml(ymls: Tuple) -> bool\n \u2502 \u251c\u2500\u2500 def is_github_yml(ymls: Tuple) -> bool\n \u2502 \u251c\u2500\u2500 def parse_github_yml(ymls: Tuple) -> List\n \u2502 \u251c\u2500\u2500 def parse_k8s(ymls: Tuple) -> List\n \u2502 \u251c\u2500\u2500 def parse_ansible(ymls: Tuple) -> List\n \u2502 \u251c\u2500\u2500 def parse_openapi_yml(ymls: Tuple) -> List\n \u2502 \u251c\u2500\u2500 def parse_yml(content: str) -> List\n \u2502 \u251c\u2500\u2500 def parse_db(db_path: str) -> List\n \u2502 \u251c\u2500\u2500 def dedent_components(\n \u2502 \u2502 components: List, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_cbl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_java(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_jl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_kt(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_lua(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_objective_c(\n \u2502 \u2502 content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT\n \u2502 \u2502 ) -> List\n \u2502 \u251c\u2500\u2500 def parse_ocaml(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_apl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_perl(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_php(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_ps1(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_matlab(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_scala(content: str, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_tf(content: str, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_md(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u251c\u2500\u2500 def parse_txt(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u2502 \u2514\u2500\u2500 def parse_markers(content: str, *, timeout: float = DEFAULT_REGEX_TIMEOUT) -> List\n \u251c\u2500\u2500 \ud83d\udcc1 scripts (1 folder, 1 file) \n \u2502 \u2514\u2500\u2500 \ud83d\udcc4 alias_tree_plus.sh (241 tokens, 30 lines)\n \u2502 \u251c\u2500\u2500 add_alias()\n \u2502 \u2514\u2500\u2500 create_conda_env()\n \u251c\u2500\u2500 \ud83d\udcc4 version.py (12 tokens, 1 line)\n \u2502 \u2514\u2500\u2500 __version__ = \"1.0.59\"\n \u2514\u2500\u2500 \ud83d\udcc4 web.py (2,409 tokens, 321 lines)\n \u251c\u2500\u2500 TODO: re\n \u251c\u2500\u2500 NOTE: no point in the answers since there\n \u251c\u2500\u2500 \n \u2502 N_GOOGLE_RESULTS = 2\n \u251c\u2500\u2500 def create_url(kind: Action, query: str) -> str\n \u251c\u2500\u2500 def create_link(kind: Action, query: str) -> str\n \u251c\u2500\u2500 def create_wikipedia_url(subterm: str) -> str\n \u251c\u2500\u2500 def create_wikipedia_search_url(subterm: str) -> str\n \u251c\u2500\u2500 def create_google_search_url(subterm: str) -> str\n \u251c\u2500\u2500 def create_stack_overflow_search_url(subterm: str) -> str\n \u251c\u2500\u2500 def create_wikipedia_search_link(\n \u2502 subterm: str,\n \u2502 prefix: str = \"\",\n \u2502 suffix: str = \"\",\n \u2502 link_style: str = LINK_STYLE,\n \u2502 ) -> str\n \u251c\u2500\u2500 def create_google_search_link(\n \u2502 subterm: str,\n \u2502 prefix: str = \"\",\n \u2502 suffix: str = \"\",\n \u2502 link_style: str = LINK_STYLE,\n \u2502 ) -> str\n \u251c\u2500\u2500 def create_stack_overflow_search_link(\n \u2502 subterm: str,\n \u2502 prefix: str = \"\",\n \u2502 suffix: str = \"\",\n \u2502 link_style: str = LINK_STYLE,\n \u2502 ) -> str\n \u251c\u2500\u2500 def search_stack_overflow(\n \u2502 *,\n \u2502 titled: Optional = None,\n \u2502 tagged: Optional = None,\n \u2502 answered: Optional = True,\n \u2502 ) -> Tuple[Tuple[dict, Tuple], ...]\n \u251c\u2500\u2500 def table_from_df(\n \u2502 results: Tuple[Dict, ...],\n \u2502 title: Optional = None,\n \u2502 show_lines: bool = True,\n \u2502 ) -> Table\n \u251c\u2500\u2500 def articles_from_hacker_news(\n \u2502 max_depth: int = 2,\n \u2502 current_depth: int = 0,\n \u2502 n_articles: int = 3,\n \u2502 sleep_time: float = 0.00,\n \u2502 ) -> Articles\n \u251c\u2500\u2500 def hacker_news_article_from_id(\n \u2502 article_id: int,\n \u2502 depth: int,\n \u2502 current_depth: int,\n \u2502 n: int,\n \u2502 sleep_time: float,\n \u2502 ) -> Tuple[HList, Tuple[HList, ...]]\n \u2514\u2500\u2500 def fetch_kids(\n article_id: int,\n kid_ids: List,\n depth: int,\n current_depth: int,\n n: int,\n sleep_time: float,\n ) -> Tuple[HList, ...]\n\ntree_plus v(1.0.59) ignore=('tests',) globs=() syntax=False paths=()\n7 folder(s), 27 file(s), 13,104 line(s), 114,835 token(s) in 0.31 second(s).\n\n```\n<!-- t1-end -->\n- [x] Demonstrate Parsed Checkboxes\n\n\n## Start Quick!\n\n### Prerequisites\n\nEnsure you have the following tools installed:\n\n- [Miniconda3 (conda)](https://docs.conda.io/en/latest/miniconda.html)\n- [GitHub CLI (gh)](https://cli.github.com/manual/installation)\n\n### Install Tree Plus\n\n#### PyPI\n\n```bash\npip install tree_plus\n```\n\n#### Local Hackable Install\n\n1. Clone the repository and cd into the tree_plus directory\n```bash\ngh repo clone https://github.com/bionicles/tree_plus.git && cd tree_plus\n```\n\n2. Install tree_plus using Makefile\n```bash\nmake cli\n```\n\nAlternatively, if `make` is not installed, use `pip`:\n```bash\npip install -e .[dev]\n```\n\nNow, you can use the `tree_plus` command.\n\n3. Add slick aliases like `tp` to your RC file\n\nTypical RC_FILE values `~/.bash_profile`, `~/.bashrc`, or `~/.zshrc`\n\nUse our **idempotent aliasing script**: [alias_tree_plus.sh](https://github.com/bionicles/tree_plus/blob/main/tree_plus_src/scripts/alias_tree_plus.sh)\n```bash\nRC_FILE=~/.bash_profile source alias_tree_plus.sh\n```\n```bash\nRC_FILE=~/.bashrc source alias_tree_plus.sh\n```\n```zsh\nRC_FILE=~/.zshrc source alias_tree_plus.sh\n```\n\n### Alias Usage\n\nRun `tree_plus` with a shorter alias:\n\n```sh\ntp\n```\n\nReinstall `tree_plus` quickly:\n\n```sh\ntpcli\n```\n\n`cd` (change directory) to the `TREE_PLUS_PATH`:\n\n```sh\ncdtp\n```\n\nRun \"debug mode\" (test runner)\n\nEnsure your rig has a global install of [nodemon](https://www.npmjs.com/package/nodemon):\n```sh\nnpm install -g nodemon\n```\n\nWatch for changes to auto re-test `tree_plus`:\n```sh\nmake debug\n```\n\n## Library Usage:\n\nHere's how to import the library\n```py\nimport tree_plus_src as tp\n```\n\nCheck out the **tree_plus_programs** folder for a library usage example.\n(More to come!) \n\nTo run the library usage example (make sure you've installed `tree_plus`!)\n```sh\nmake library_demo\n```\n\n## Moar Languages\n\n### Currently Tested Languages:\n<!-- t6-start -->\n```sh\ntree_plus -c -i group_todo tests/more_languages\n\ud83d\udcc1 more_languages (9 folders, 84 files) \n\u251c\u2500\u2500 \ud83d\udcc1 group1 (1 folder, 11 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 addamt.cobol (441 tokens, 40 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 CUSTOMER-INVOICE.CBL (412 tokens, 60 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 JavaTest.java (578 tokens, 86 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 JuliaTest.jl (381 tokens, 63 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 KotlinTest.kt (974 tokens, 171 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 lesson.cbl (635 tokens, 78 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 LuaTest.lua (83 tokens, 16 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ObjectiveCTest.m (62 tokens, 16 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 OcamlTest.ml (49 tokens, 12 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.js (757 tokens, 154 lines)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test.ts (832 tokens, 165 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 group2 (1 folder, 8 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 apl_test.apl (28 tokens, 5 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 c_test.c (837 tokens, 142 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 go_test.go (179 tokens, 46 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 PerlTest.pl (63 tokens, 20 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 PhpTest.php (70 tokens, 19 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 PowershellTest.ps1 (459 tokens, 89 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ScalaTest.scala (171 tokens, 40 lines)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test.csv (0 tokens, 0 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 group3 (1 folder, 16 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 bash_test.sh (127 tokens, 22 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_test.cpp (1,670 tokens, 259 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 csharp_test.cs (957 tokens, 146 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 hallucination.tex (1,633 tokens, 126 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ruby_test.rb (138 tokens, 37 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 swift_test.swift (469 tokens, 110 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.lean (289 tokens, 42 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.capnp (117 tokens, 30 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.graphql (66 tokens, 21 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.proto (142 tokens, 34 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.sqlite (0 tokens, 0 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_Cargo.toml (119 tokens, 18 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_json_rpc_2_0.json (26 tokens, 6 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_openapi.yaml (753 tokens, 92 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_openrpc.json (225 tokens, 44 lines)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test_pyproject.toml (304 tokens, 39 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 group4 (1 folder, 10 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 erl_test.erl (480 tokens, 68 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 haskell_test.hs (414 tokens, 41 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 mathematica_test.nb (133 tokens, 21 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 matlab_test.m (48 tokens, 12 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 RTest.R (367 tokens, 46 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 rust_test.rs (974 tokens, 188 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.zig (397 tokens, 60 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_fsharp.fs (92 tokens, 27 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_tcl_tk.tcl (54 tokens, 16 lines)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 tf_test.tf (202 tokens, 38 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 group5 (1 folder, 19 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ansible_test.yml (55 tokens, 14 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app-routing.module.ts (287 tokens, 28 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.component.spec.ts (410 tokens, 47 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.component.ts (271 tokens, 45 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.module.ts (374 tokens, 43 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 checkbox_test.md (176 tokens, 21 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 checkbox_test.txt (257 tokens, 33 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 environment.test.ts (197 tokens, 19 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 hello_world.pyi (22 tokens, 3 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 k8s_test.yaml (140 tokens, 37 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 Makefile (714 tokens, 84 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 requirements_test.txt (29 tokens, 10 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 rust_todo_test.rs (92 tokens, 26 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 sql_test.sql (270 tokens, 51 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 standard-app-routing.module.ts (100 tokens, 16 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.env (190 tokens, 25 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 testJsonSchema.json (421 tokens, 48 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 testPackage.json (349 tokens, 43 lines)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 tickets.component.ts (7,160 tokens, 903 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 group6 (1 folder, 13 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 catastrophic.c (5,339 tokens, 754 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_examples_impl.cc (60 tokens, 10 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_examples_impl.cu (37 tokens, 10 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_examples_impl.h (22 tokens, 6 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 fractal.thy (1,712 tokens, 147 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 Microsoft.PowerShell_profile.ps1 (3,346 tokens, 497 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 python_complex_class.py (10 tokens, 2 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ramda__cloneRegExp.js (173 tokens, 9 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ramda_prop.js (646 tokens, 85 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 tensorflow_flags.h (7,628 tokens, 668 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.f (181 tokens, 30 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 torch.rst (60 tokens, 8 lines)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 yc.html (9,063 tokens, 169 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 group7 (1 folder, 3 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 absurdly_huge.jsonl (8,347 tokens, 126 lines)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 angular_crud.ts (1,192 tokens, 148 lines)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 structure.py (400 tokens, 92 lines)\n\u2514\u2500\u2500 \ud83d\udcc1 group_lisp (1 folder, 4 files) \n \u251c\u2500\u2500 \ud83d\udcc4 clojure_test.clj (682 tokens, 85 lines)\n \u251c\u2500\u2500 \ud83d\udcc4 LispTest.lisp (25 tokens, 6 lines)\n \u251c\u2500\u2500 \ud83d\udcc4 racket_struct.rkt (14 tokens, 1 line)\n \u2514\u2500\u2500 \ud83d\udcc4 test_scheme.scm (360 tokens, 44 lines)\n\ntree_plus v(1.0.59) ignore=('group_todo',) globs=() concise=True paths=('tests/more_languages',)\n9 folder(s), 84 file(s), 7,158 line(s), 68,018 token(s) in 0.21 second(s).\n\n```\n<!-- t6-end -->\n### Without the -c \"Concise\" Flag:\n<!-- t2-start -->\n```sh\ntree_plus -i group_todo tests/more_languages\n\ud83d\udcc1 more_languages (9 folders, 84 files) \n\u251c\u2500\u2500 \ud83d\udcc1 group1 (1 folder, 11 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 addamt.cobol (441 tokens, 40 lines)\n\u2502 \u2502 \u251c\u2500\u2500 IDENTIFICATION DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 PROGRAM-ID.\n\u2502 \u2502 \u2502 ADDAMT.\n\u2502 \u2502 \u251c\u2500\u2500 DATA DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 WORKING-STORAGE SECTION.\n\u2502 \u2502 \u251c\u2500\u2500 01 KEYED-INPUT.\n\u2502 \u2502 \u251c\u2500\u2500 05 CUST-NO-IN.\n\u2502 \u2502 \u251c\u2500\u2500 05 AMT1-IN.\n\u2502 \u2502 \u251c\u2500\u2500 05 AMT2-IN.\n\u2502 \u2502 \u251c\u2500\u2500 05 AMT3-IN.\n\u2502 \u2502 \u251c\u2500\u2500 01 DISPLAYED-OUTPUT.\n\u2502 \u2502 \u251c\u2500\u2500 05 CUST-NO-OUT.\n\u2502 \u2502 \u251c\u2500\u2500 05 TOTAL-OUT.\n\u2502 \u2502 \u251c\u2500\u2500 01 MORE-DATA.\n\u2502 \u2502 \u251c\u2500\u2500 PROCEDURE DIVISION.\n\u2502 \u2502 \u2514\u2500\u2500 100-MAIN.\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 CUSTOMER-INVOICE.CBL (412 tokens, 60 lines)\n\u2502 \u2502 \u251c\u2500\u2500 IDENTIFICATION DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 PROGRAM-ID. CUSTOMER-INVOICE.\n\u2502 \u2502 \u251c\u2500\u2500 AUTHOR. JANE DOE.\n\u2502 \u2502 \u251c\u2500\u2500 DATE. 2023-12-30.\n\u2502 \u2502 \u251c\u2500\u2500 DATE-COMPILED. 06/30/10.\n\u2502 \u2502 \u251c\u2500\u2500 DATE-WRITTEN. 12/34/56.\n\u2502 \u2502 \u251c\u2500\u2500 ENVIRONMENT DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 INPUT-OUTPUT SECTION.\n\u2502 \u2502 \u251c\u2500\u2500 FILE-CONTROL.\n\u2502 \u2502 \u251c\u2500\u2500 SELECT CUSTOMER-FILE.\n\u2502 \u2502 \u251c\u2500\u2500 SELECT INVOICE-FILE.\n\u2502 \u2502 \u251c\u2500\u2500 SELECT REPORT-FILE.\n\u2502 \u2502 \u251c\u2500\u2500 DATA DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 FILE SECTION.\n\u2502 \u2502 \u251c\u2500\u2500 FD CUSTOMER-FILE.\n\u2502 \u2502 \u251c\u2500\u2500 01 CUSTOMER-RECORD.\n\u2502 \u2502 \u251c\u2500\u2500 05 CUSTOMER-ID.\n\u2502 \u2502 \u251c\u2500\u2500 05 CUSTOMER-NAME.\n\u2502 \u2502 \u251c\u2500\u2500 05 CUSTOMER-BALANCE.\n\u2502 \u2502 \u251c\u2500\u2500 FD INVOICE-FILE.\n\u2502 \u2502 \u251c\u2500\u2500 01 INVOICE-RECORD.\n\u2502 \u2502 \u251c\u2500\u2500 05 INVOICE-ID.\n\u2502 \u2502 \u251c\u2500\u2500 05 CUSTOMER-ID.\n\u2502 \u2502 \u251c\u2500\u2500 05 INVOICE-AMOUNT.\n\u2502 \u2502 \u251c\u2500\u2500 FD REPORT-FILE.\n\u2502 \u2502 \u251c\u2500\u2500 01 REPORT-RECORD.\n\u2502 \u2502 \u251c\u2500\u2500 WORKING-STORAGE SECTION.\n\u2502 \u2502 \u251c\u2500\u2500 01 WS-CUSTOMER-FOUND.\n\u2502 \u2502 \u251c\u2500\u2500 01 WS-END-OF-FILE.\n\u2502 \u2502 \u251c\u2500\u2500 01 WS-TOTAL-BALANCE.\n\u2502 \u2502 \u251c\u2500\u2500 PROCEDURE DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 0000-MAIN-ROUTINE.\n\u2502 \u2502 \u251c\u2500\u2500 1000-PROCESS-RECORDS.\n\u2502 \u2502 \u251c\u2500\u2500 1100-UPDATE-CUSTOMER-BALANCE.\n\u2502 \u2502 \u2514\u2500\u2500 END PROGRAM CUSTOMER-INVOICE.\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 JavaTest.java (578 tokens, 86 lines)\n\u2502 \u2502 \u251c\u2500\u2500 abstract class LivingBeing\n\u2502 \u2502 \u251c\u2500\u2500 abstract void breathe()\n\u2502 \u2502 \u251c\u2500\u2500 interface Communicator\n\u2502 \u2502 \u251c\u2500\u2500 String communicate()\n\u2502 \u2502 \u251c\u2500\u2500 @Log\n\u2502 \u2502 \u251c\u2500\u2500 @Getter\n\u2502 \u2502 \u251c\u2500\u2500 @Setter\n\u2502 \u2502 \u251c\u2500\u2500 class Person extends LivingBeing implements Communicator\n\u2502 \u2502 \u251c\u2500\u2500 Person(String name, int age)\n\u2502 \u2502 \u251c\u2500\u2500 @Override\n\u2502 \u2502 \u251c\u2500\u2500 void breathe()\n\u2502 \u2502 \u251c\u2500\u2500 @Override\n\u2502 \u2502 \u251c\u2500\u2500 public String communicate()\n\u2502 \u2502 \u251c\u2500\u2500 void greet()\n\u2502 \u2502 \u251c\u2500\u2500 String personalizedGreeting(String greeting, Optional<Boolean> includeAge)\n\u2502 \u2502 \u251c\u2500\u2500 @Singleton\n\u2502 \u2502 \u251c\u2500\u2500 @RestController\n\u2502 \u2502 \u251c\u2500\u2500 @SpringBootApplication\n\u2502 \u2502 \u251c\u2500\u2500 public class Example\n\u2502 \u2502 \u251c\u2500\u2500 @Inject\n\u2502 \u2502 \u251c\u2500\u2500 public Example(Person person)\n\u2502 \u2502 \u251c\u2500\u2500 @RequestMapping(\"/greet\")\n\u2502 \u2502 \u251c\u2500\u2500 String home(@RequestParam(value = \"name\", defaultValue = \"World\") String name,\n\u2502 \u2502 \u2502 @RequestParam(value = \"age\", defaultValue = \"30\") int age)\n\u2502 \u2502 \u2514\u2500\u2500 public static void main(String[] args)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 JuliaTest.jl (381 tokens, 63 lines)\n\u2502 \u2502 \u251c\u2500\u2500 module JuliaTest_EdgeCase\n\u2502 \u2502 \u251c\u2500\u2500 struct Location\n\u2502 \u2502 \u2502 name::String \n\u2502 \u2502 \u2502 lat::Float32\n\u2502 \u2502 \u2502 lon::Float32\n\u2502 \u2502 \u2502 end\n\u2502 \u2502 \u251c\u2500\u2500 mutable struct mPerson\n\u2502 \u2502 \u2502 name::String\n\u2502 \u2502 \u2502 age::Int\n\u2502 \u2502 \u2502 end\n\u2502 \u2502 \u251c\u2500\u2500 Base.@kwdef mutable struct Param\n\u2502 \u2502 \u2502 \u0394t::Float64 = 0.1\n\u2502 \u2502 \u2502 n::Int64\n\u2502 \u2502 \u2502 m::Int64\n\u2502 \u2502 \u2502 end\n\u2502 \u2502 \u251c\u2500\u2500 sic(x,y)\n\u2502 \u2502 \u251c\u2500\u2500 welcome(l::Location)\n\u2502 \u2502 \u251c\u2500\u2500 \u2211(\u03b1, \u03a9)\n\u2502 \u2502 \u251c\u2500\u2500 function noob()\n\u2502 \u2502 \u2502 end\n\u2502 \u2502 \u251c\u2500\u2500 function ye_olde(hello::String, world::Location)\n\u2502 \u2502 \u2502 end\n\u2502 \u2502 \u251c\u2500\u2500 function multiline_greet(\n\u2502 \u2502 \u2502 p::mPerson, \n\u2502 \u2502 \u2502 greeting::String\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u2502 end\n\u2502 \u2502 \u251c\u2500\u2500 function julia_is_awesome(prob::DiffEqBase.AbstractDAEProblem{uType, duType, tType,\n\u2502 \u2502 \u2502 isinplace};\n\u2502 \u2502 \u2502 kwargs...) where {uType, duType, tType, isinplace}\n\u2502 \u2502 \u2502 end\n\u2502 \u2502 \u2514\u2500\u2500 end\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 KotlinTest.kt (974 tokens, 171 lines)\n\u2502 \u2502 \u251c\u2500\u2500 data class Person(val name: String)\n\u2502 \u2502 \u251c\u2500\u2500 fun greet(person: Person)\n\u2502 \u2502 \u251c\u2500\u2500 fun <T> processItems(items: List<T>, processor: (T) -> Unit)\n\u2502 \u2502 \u251c\u2500\u2500 interface Source<out T>\n\u2502 \u2502 \u251c\u2500\u2500 fun nextT(): T\n\u2502 \u2502 \u251c\u2500\u2500 fun MutableList<Int>.swap(index1: Int, index2: Int)\n\u2502 \u2502 \u251c\u2500\u2500 fun Any?.toString(): String\n\u2502 \u2502 \u251c\u2500\u2500 tailrec fun findFixPoint(x: Double = 1.0): Double\n\u2502 \u2502 \u251c\u2500\u2500 class GenericRepository<T>\n\u2502 \u2502 \u251c\u2500\u2500 fun getItem(id: Int): T?\n\u2502 \u2502 \u251c\u2500\u2500 sealed interface Error\n\u2502 \u2502 \u251c\u2500\u2500 sealed class IOError(): Error\n\u2502 \u2502 \u251c\u2500\u2500 object Runner\n\u2502 \u2502 \u251c\u2500\u2500 inline fun <reified S: SomeClass<T>, T> run() : T\n\u2502 \u2502 \u251c\u2500\u2500 infix fun Int.shl(x: Int): Int\n\u2502 \u2502 \u251c\u2500\u2500 class MyStringCollection\n\u2502 \u2502 \u251c\u2500\u2500 infix fun add(s: String)\n\u2502 \u2502 \u251c\u2500\u2500 fun build()\n\u2502 \u2502 \u251c\u2500\u2500 open class Base(p: Int)\n\u2502 \u2502 \u251c\u2500\u2500 class Derived(p: Int) : Base(p)\n\u2502 \u2502 \u251c\u2500\u2500 open class Shape\n\u2502 \u2502 \u251c\u2500\u2500 open fun draw()\n\u2502 \u2502 \u251c\u2500\u2500 fun fill()\n\u2502 \u2502 \u251c\u2500\u2500 open fun edge(case: Int)\n\u2502 \u2502 \u251c\u2500\u2500 interface Thingy\n\u2502 \u2502 \u251c\u2500\u2500 fun edge()\n\u2502 \u2502 \u251c\u2500\u2500 class Circle() : Shape(), Thingy\n\u2502 \u2502 \u251c\u2500\u2500 override fun draw()\n\u2502 \u2502 \u251c\u2500\u2500 final override fun edge(case: Int)\n\u2502 \u2502 \u251c\u2500\u2500 interface Base\n\u2502 \u2502 \u251c\u2500\u2500 fun print()\n\u2502 \u2502 \u251c\u2500\u2500 class BaseImpl(val x: Int) : Base\n\u2502 \u2502 \u251c\u2500\u2500 override fun print()\n\u2502 \u2502 \u251c\u2500\u2500 internal class Derived(b: Base) : Base by b\n\u2502 \u2502 \u251c\u2500\u2500 class Person constructor(firstName: String)\n\u2502 \u2502 \u251c\u2500\u2500 class People(\n\u2502 \u2502 \u2502 firstNames: Array<String>,\n\u2502 \u2502 \u2502 ages: Array<Int>(42),\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 fun edgeCases(): Boolean\n\u2502 \u2502 \u251c\u2500\u2500 class Alien public @Inject constructor(\n\u2502 \u2502 \u2502 val firstName: String,\n\u2502 \u2502 \u2502 val lastName: String,\n\u2502 \u2502 \u2502 var age: Int,\n\u2502 \u2502 \u2502 val pets: MutableList<Pet> = mutableListOf(),\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 fun objectOriented(): String\n\u2502 \u2502 \u251c\u2500\u2500 enum class IntArithmetics : BinaryOperator<Int>, IntBinaryOperator\n\u2502 \u2502 \u251c\u2500\u2500 PLUS {\n\u2502 \u2502 \u2502 override fun apply(t: Int, u: Int): Int\n\u2502 \u2502 \u251c\u2500\u2500 TIMES {\n\u2502 \u2502 \u2502 override fun apply(t: Int, u: Int): Int\n\u2502 \u2502 \u251c\u2500\u2500 override fun applyAsInt(t: Int, u: Int)\n\u2502 \u2502 \u251c\u2500\u2500 fun reformat(\n\u2502 \u2502 \u2502 str: String,\n\u2502 \u2502 \u2502 normalizeCase: Boolean = true,\n\u2502 \u2502 \u2502 upperCaseFirstLetter: Boolean = true,\n\u2502 \u2502 \u2502 divideByCamelHumps: Boolean = false,\n\u2502 \u2502 \u2502 wordSeparator: Char = ' ',\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 operator fun Point.unaryMinus()\n\u2502 \u2502 \u251c\u2500\u2500 abstract class Polygon\n\u2502 \u2502 \u2514\u2500\u2500 abstract fun draw()\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 lesson.cbl (635 tokens, 78 lines)\n\u2502 \u2502 \u251c\u2500\u2500 IDENTIFICATION DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 PROGRAM-ID. CBL0002.\n\u2502 \u2502 \u251c\u2500\u2500 AUTHOR. Otto B. Fun.\n\u2502 \u2502 \u251c\u2500\u2500 ENVIRONMENT DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 INPUT-OUTPUT SECTION.\n\u2502 \u2502 \u251c\u2500\u2500 FILE-CONTROL.\n\u2502 \u2502 \u251c\u2500\u2500 SELECT PRINT-LINE.\n\u2502 \u2502 \u251c\u2500\u2500 SELECT ACCT-REC.\n\u2502 \u2502 \u251c\u2500\u2500 DATA DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 FILE SECTION.\n\u2502 \u2502 \u251c\u2500\u2500 FD PRINT-LINE.\n\u2502 \u2502 \u251c\u2500\u2500 01 PRINT-REC.\n\u2502 \u2502 \u251c\u2500\u2500 05 ACCT-NO-O.\n\u2502 \u2502 \u251c\u2500\u2500 05 ACCT-LIMIT-O.\n\u2502 \u2502 \u251c\u2500\u2500 05 ACCT-BALANCE-O.\n\u2502 \u2502 \u251c\u2500\u2500 05 LAST-NAME-O.\n\u2502 \u2502 \u251c\u2500\u2500 05 FIRST-NAME-O.\n\u2502 \u2502 \u251c\u2500\u2500 05 COMMENTS-O.\n\u2502 \u2502 \u251c\u2500\u2500 FD ACCT-REC.\n\u2502 \u2502 \u251c\u2500\u2500 01 ACCT-FIELDS.\n\u2502 \u2502 \u251c\u2500\u2500 05 ACCT-NO.\n\u2502 \u2502 \u251c\u2500\u2500 05 ACCT-LIMIT.\n\u2502 \u2502 \u251c\u2500\u2500 05 ACCT-BALANCE.\n\u2502 \u2502 \u251c\u2500\u2500 05 LAST-NAME.\n\u2502 \u2502 \u251c\u2500\u2500 05 FIRST-NAME.\n\u2502 \u2502 \u251c\u2500\u2500 05 CLIENT-ADDR.\n\u2502 \u2502 \u251c\u2500\u2500 10 STREET-ADDR.\n\u2502 \u2502 \u251c\u2500\u2500 10 CITY-COUNTY.\n\u2502 \u2502 \u251c\u2500\u2500 10 USA-STATE.\n\u2502 \u2502 \u251c\u2500\u2500 05 RESERVED.\n\u2502 \u2502 \u251c\u2500\u2500 05 COMMENTS.\n\u2502 \u2502 \u251c\u2500\u2500 WORKING-STORAGE SECTION.\n\u2502 \u2502 \u251c\u2500\u2500 01 FLAGS.\n\u2502 \u2502 \u251c\u2500\u2500 05 LASTREC.\n\u2502 \u2502 \u251c\u2500\u2500 PROCEDURE DIVISION.\n\u2502 \u2502 \u251c\u2500\u2500 OPEN-FILES.\n\u2502 \u2502 \u251c\u2500\u2500 READ-NEXT-RECORD.\n\u2502 \u2502 \u251c\u2500\u2500 CLOSE-STOP.\n\u2502 \u2502 \u251c\u2500\u2500 READ-RECORD.\n\u2502 \u2502 \u2514\u2500\u2500 WRITE-RECORD.\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 LuaTest.lua (83 tokens, 16 lines)\n\u2502 \u2502 \u251c\u2500\u2500 function HelloWorld.new\n\u2502 \u2502 \u251c\u2500\u2500 function HelloWorld.greet\n\u2502 \u2502 \u2514\u2500\u2500 function say_hello\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ObjectiveCTest.m (62 tokens, 16 lines)\n\u2502 \u2502 \u251c\u2500\u2500 @interface HelloWorld\n\u2502 \u2502 \u251c\u2500\u2500 @interface HelloWorld -> (void) sayHello\n\u2502 \u2502 \u251c\u2500\u2500 @implementation HelloWorld\n\u2502 \u2502 \u251c\u2500\u2500 @implementation HelloWorld -> (void) sayHello\n\u2502 \u2502 \u2514\u2500\u2500 void sayHelloWorld()\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 OcamlTest.ml (49 tokens, 12 lines)\n\u2502 \u2502 \u251c\u2500\u2500 type color\n\u2502 \u2502 \u251c\u2500\u2500 class hello\n\u2502 \u2502 \u251c\u2500\u2500 class hello -> method say_hello\n\u2502 \u2502 \u2514\u2500\u2500 let main ()\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.js (757 tokens, 154 lines)\n\u2502 \u2502 \u251c\u2500\u2500 class MyClass\n\u2502 \u2502 \u251c\u2500\u2500 myMethod()\n\u2502 \u2502 \u251c\u2500\u2500 async asyncMethod(a, b)\n\u2502 \u2502 \u251c\u2500\u2500 methodWithDefaultParameters(a = 5, b = 10)\n\u2502 \u2502 \u251c\u2500\u2500 multilineMethod(\n\u2502 \u2502 \u2502 c,\n\u2502 \u2502 \u2502 d\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 multilineMethodWithDefaults(\n\u2502 \u2502 \u2502 t = \"tree\",\n\u2502 \u2502 \u2502 p = \"plus\"\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 function myFunction(param1, param2)\n\u2502 \u2502 \u251c\u2500\u2500 function multilineFunction(\n\u2502 \u2502 \u2502 param1,\n\u2502 \u2502 \u2502 param2\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 const arrowFunction = () =>\n\u2502 \u2502 \u251c\u2500\u2500 const parametricArrow = (a, b) =>\n\u2502 \u2502 \u251c\u2500\u2500 function ()\n\u2502 \u2502 \u251c\u2500\u2500 function outerFunction(outerParam)\n\u2502 \u2502 \u251c\u2500\u2500 function innerFunction(innerParam)\n\u2502 \u2502 \u251c\u2500\u2500 innerFunction(\"inner\")\n\u2502 \u2502 \u251c\u2500\u2500 const myObject = {\n\u2502 \u2502 \u251c\u2500\u2500 myMethod: function (stuff)\n\u2502 \u2502 \u251c\u2500\u2500 let myArrowObject = {\n\u2502 \u2502 \u251c\u2500\u2500 myArrow: ({\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b,\n\u2502 \u2502 \u2502 c,\n\u2502 \u2502 \u2502 }) =>\n\u2502 \u2502 \u251c\u2500\u2500 const myAsyncArrowFunction = async () =>\n\u2502 \u2502 \u251c\u2500\u2500 function functionWithRestParameters(...args)\n\u2502 \u2502 \u251c\u2500\u2500 const namedFunctionExpression = function myNamedFunction()\n\u2502 \u2502 \u251c\u2500\u2500 const multilineArrowFunction = (\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b\n\u2502 \u2502 \u2502 ) =>\n\u2502 \u2502 \u251c\u2500\u2500 function functionReturningFunction()\n\u2502 \u2502 \u251c\u2500\u2500 return function ()\n\u2502 \u2502 \u251c\u2500\u2500 function destructuringOnMultipleLines({\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b,\n\u2502 \u2502 \u2502 })\n\u2502 \u2502 \u251c\u2500\u2500 const arrowFunctionWithDestructuring = ({ a, b }) =>\n\u2502 \u2502 \u251c\u2500\u2500 const multilineDestructuringArrow = ({\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b,\n\u2502 \u2502 \u2502 }) =>\n\u2502 \u2502 \u251c\u2500\u2500 async function asyncFunctionWithErrorHandling()\n\u2502 \u2502 \u251c\u2500\u2500 class Car\n\u2502 \u2502 \u251c\u2500\u2500 constructor(brand)\n\u2502 \u2502 \u251c\u2500\u2500 present()\n\u2502 \u2502 \u251c\u2500\u2500 class Model extends Car\n\u2502 \u2502 \u251c\u2500\u2500 constructor(brand, mod)\n\u2502 \u2502 \u251c\u2500\u2500 super(brand)\n\u2502 \u2502 \u2514\u2500\u2500 show()\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test.ts (832 tokens, 165 lines)\n\u2502 \u251c\u2500\u2500 type MyType\n\u2502 \u251c\u2500\u2500 interface MyInterface\n\u2502 \u251c\u2500\u2500 class TsClass\n\u2502 \u251c\u2500\u2500 myMethod()\n\u2502 \u251c\u2500\u2500 myMethodWithArgs(param1: string, param2: number): void\n\u2502 \u251c\u2500\u2500 static myStaticMethod<T>(param: T): T\n\u2502 \u251c\u2500\u2500 multilineMethod(\n\u2502 \u2502 c: number,\n\u2502 \u2502 d: number\n\u2502 \u2502 ): number\n\u2502 \u251c\u2500\u2500 multilineMethodWithDefaults(\n\u2502 \u2502 t: string = \"tree\",\n\u2502 \u2502 p: string = \"plus\"\n\u2502 \u2502 ): string\n\u2502 \u251c\u2500\u2500 export class AdvancedComponent implements MyInterface\n\u2502 \u251c\u2500\u2500 async myAsyncMethod(\n\u2502 \u2502 a: string,\n\u2502 \u2502 b: number,\n\u2502 \u2502 c: string\n\u2502 \u2502 ): Promise<void>\n\u2502 \u251c\u2500\u2500 genericMethod<T, U>(\n\u2502 \u2502 arg1: T,\n\u2502 \u2502 arg2: U\n\u2502 \u2502 ): [T, U]\n\u2502 \u251c\u2500\u2500 export class TicketsComponent implements MyInterface\n\u2502 \u251c\u2500\u2500 async myAsyncMethod({ a, b, c }: { a: String; b: Number; c: String })\n\u2502 \u251c\u2500\u2500 function tsFunction()\n\u2502 \u251c\u2500\u2500 function tsFunctionSigned(\n\u2502 \u2502 param1: number,\n\u2502 \u2502 param2: number\n\u2502 \u2502 ): void\n\u2502 \u251c\u2500\u2500 export default async function tsFunctionComplicated<A, B, C>({\n\u2502 \u2502 a = 1 | 2,\n\u2502 \u2502 b = \"bob\",\n\u2502 \u2502 c = async () => \"charlie\",\n\u2502 \u2502 }: {\n\u2502 \u2502 a: number;\n\u2502 \u2502 b: string;\n\u2502 \u2502 c: () => Promise<string>;\n\u2502 \u2502 }): Promise<string>\n\u2502 \u251c\u2500\u2500 return(\"Standalone function with parameters\")\n\u2502 \u251c\u2500\u2500 const tsArrowFunctionSigned = ({\n\u2502 \u2502 a,\n\u2502 \u2502 b,\n\u2502 \u2502 }: {\n\u2502 \u2502 a: number;\n\u2502 \u2502 b: string;\n\u2502 \u2502 }) =>\n\u2502 \u251c\u2500\u2500 export const tsComplicatedArrow = async ({\n\u2502 \u2502 a = 1 | 2,\n\u2502 \u2502 b = \"bob\",\n\u2502 \u2502 c = async () => \"charlie\",\n\u2502 \u2502 }: {\n\u2502 \u2502 a: number;\n\u2502 \u2502 b: string;\n\u2502 \u2502 c: () => Promise<string>;\n\u2502 \u2502 }): Promise<string> =>\n\u2502 \u251c\u2500\u2500 const arrowFunction = () =>\n\u2502 \u251c\u2500\u2500 const arrow = (a: String, b: Number) =>\n\u2502 \u251c\u2500\u2500 const asyncArrowFunction = async () =>\n\u2502 \u251c\u2500\u2500 const asyncArrow = async (a: String, b: Number) =>\n\u2502 \u251c\u2500\u2500 let weirdArrow = () =>\n\u2502 \u251c\u2500\u2500 const asyncPromiseArrow = async (): Promise<void> =>\n\u2502 \u251c\u2500\u2500 let myWeirdArrowSigned = (x: number): number =>\n\u2502 \u251c\u2500\u2500 class Person\n\u2502 \u251c\u2500\u2500 constructor(private firstName: string, private lastName: string)\n\u2502 \u251c\u2500\u2500 getFullName(): string\n\u2502 \u251c\u2500\u2500 describe(): string\n\u2502 \u251c\u2500\u2500 class Employee extends Person\n\u2502 \u251c\u2500\u2500 constructor(\n\u2502 \u2502 firstName: string,\n\u2502 \u2502 lastName: string,\n\u2502 \u2502 private jobTitle: string\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 super(firstName, lastName)\n\u2502 \u251c\u2500\u2500 describe(): string\n\u2502 \u251c\u2500\u2500 interface Shape\n\u2502 \u2514\u2500\u2500 interface Square extends Shape\n\u251c\u2500\u2500 \ud83d\udcc1 group2 (1 folder, 8 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 apl_test.apl (28 tokens, 5 lines)\n\u2502 \u2502 \u251c\u2500\u2500 :Namespace HelloWorld\n\u2502 \u2502 \u251c\u2500\u2500 :Namespace HelloWorld -> hello \u2190 'Hello, World!'\n\u2502 \u2502 \u2514\u2500\u2500 :Namespace HelloWorld -> plus \u2190 {\u237a+\u2375}\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 c_test.c (837 tokens, 142 lines)\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 int x;\n\u2502 \u2502 \u251c\u2500\u2500 int y;\n\u2502 \u2502 \u251c\u2500\u2500 struct Point getOrigin()\n\u2502 \u2502 \u251c\u2500\u2500 float mul_two_floats(float x1, float x2)\n\u2502 \u2502 \u251c\u2500\u2500 enum days\n\u2502 \u2502 \u251c\u2500\u2500 SUN,\n\u2502 \u2502 \u251c\u2500\u2500 MON,\n\u2502 \u2502 \u251c\u2500\u2500 TUE,\n\u2502 \u2502 \u251c\u2500\u2500 WED,\n\u2502 \u2502 \u251c\u2500\u2500 THU,\n\u2502 \u2502 \u251c\u2500\u2500 FRI,\n\u2502 \u2502 \u251c\u2500\u2500 SAT\n\u2502 \u2502 \u251c\u2500\u2500 long add_two_longs(long x1, long x2)\n\u2502 \u2502 \u251c\u2500\u2500 double multiplyByTwo(double num)\n\u2502 \u2502 \u251c\u2500\u2500 char getFirstCharacter(char *str)\n\u2502 \u2502 \u251c\u2500\u2500 void greet(Person p)\n\u2502 \u2502 \u251c\u2500\u2500 typedef struct\n\u2502 \u2502 \u251c\u2500\u2500 char name[50];\n\u2502 \u2502 \u251c\u2500\u2500 } Person;\n\u2502 \u2502 \u251c\u2500\u2500 int main()\n\u2502 \u2502 \u251c\u2500\u2500 int* getArrayStart(int arr[], int size)\n\u2502 \u2502 \u251c\u2500\u2500 long complexFunctionWithMultipleArguments(\n\u2502 \u2502 \u2502 int param1,\n\u2502 \u2502 \u2502 double param2,\n\u2502 \u2502 \u2502 char *param3,\n\u2502 \u2502 \u2502 struct Point point\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 keyPattern *ACLKeyPatternCreate(sds pattern, int flags)\n\u2502 \u2502 \u251c\u2500\u2500 sds sdsCatPatternString(sds base, keyPattern *pat)\n\u2502 \u2502 \u251c\u2500\u2500 static int ACLCheckChannelAgainstList(list *reference, const char *channel, int channellen, int is_pattern)\n\u2502 \u2502 \u251c\u2500\u2500 while((ln = listNext(&li)))\n\u2502 \u2502 \u251c\u2500\u2500 static struct config\n\u2502 \u2502 \u251c\u2500\u2500 aeEventLoop *el;\n\u2502 \u2502 \u251c\u2500\u2500 cliConnInfo conn_info;\n\u2502 \u2502 \u251c\u2500\u2500 const char *hostsocket;\n\u2502 \u2502 \u251c\u2500\u2500 int tls;\n\u2502 \u2502 \u251c\u2500\u2500 struct cliSSLconfig sslconfig;\n\u2502 \u2502 \u2514\u2500\u2500 } config;\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 go_test.go (179 tokens, 46 lines)\n\u2502 \u2502 \u251c\u2500\u2500 type Greeting struct\n\u2502 \u2502 \u251c\u2500\u2500 func (g Greeting) sayHello()\n\u2502 \u2502 \u251c\u2500\u2500 func createGreeting(m string) Greeting\n\u2502 \u2502 \u251c\u2500\u2500 type SomethingLong struct\n\u2502 \u2502 \u251c\u2500\u2500 func (s *SomethingLong) WithAReasonableName(\n\u2502 \u2502 \u2502 ctx context.Context,\n\u2502 \u2502 \u2502 param1 string,\n\u2502 \u2502 \u2502 param2 int,\n\u2502 \u2502 \u2502 param3 mapinterface{},\n\u2502 \u2502 \u2502 callback func(int) error,\n\u2502 \u2502 \u2502 ) (resultType, error)\n\u2502 \u2502 \u251c\u2500\u2500 type resultType struct\n\u2502 \u2502 \u2514\u2500\u2500 func main()\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 PerlTest.pl (63 tokens, 20 lines)\n\u2502 \u2502 \u251c\u2500\u2500 package PerlTest\n\u2502 \u2502 \u251c\u2500\u2500 package PerlTest -> sub new\n\u2502 \u2502 \u251c\u2500\u2500 package PerlTest -> sub hello\n\u2502 \u2502 \u2514\u2500\u2500 package PerlTest -> sub say_hello\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 PhpTest.php (70 tokens, 19 lines)\n\u2502 \u2502 \u251c\u2500\u2500 class HelloWorld\n\u2502 \u2502 \u251c\u2500\u2500 class HelloWorld -> function sayHello\n\u2502 \u2502 \u251c\u2500\u2500 function greet\n\u2502 \u2502 \u251c\u2500\u2500 class Person\n\u2502 \u2502 \u2514\u2500\u2500 class Person -> function __construct\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 PowershellTest.ps1 (459 tokens, 89 lines)\n\u2502 \u2502 \u251c\u2500\u2500 function Say-Nothing()\n\u2502 \u2502 \u251c\u2500\u2500 class Person\n\u2502 \u2502 \u251c\u2500\u2500 Person($name)\n\u2502 \u2502 \u251c\u2500\u2500 Greet()\n\u2502 \u2502 \u251c\u2500\u2500 GreetMany($times)\n\u2502 \u2502 \u251c\u2500\u2500 GreetWithDetails($greeting, $times)\n\u2502 \u2502 \u251c\u2500\u2500 GreetMultiline(\n\u2502 \u2502 \u2502 $greeting,\n\u2502 \u2502 \u2502 $times\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 NoReturn($times)\n\u2502 \u2502 \u251c\u2500\u2500 NoReturnNoArgs()\n\u2502 \u2502 \u251c\u2500\u2500 function Say-Hello([Person]$person)\n\u2502 \u2502 \u251c\u2500\u2500 function Multi-Hello([Person]$personA, [Person]$personB)\n\u2502 \u2502 \u251c\u2500\u2500 function Switch-Item\n\u2502 \u2502 \u251c\u2500\u2500 param ($on)\n\u2502 \u2502 \u251c\u2500\u2500 function Get-SmallFiles\n\u2502 \u2502 \u251c\u2500\u2500 param (\n\u2502 \u2502 \u2502 [PSDefaultValue(Help = '100')]\n\u2502 \u2502 \u2502 $Size = 100)\n\u2502 \u2502 \u251c\u2500\u2500 function Get-User\n\u2502 \u2502 \u251c\u2500\u2500 [CmdletBinding(DefaultParameterSetName=\"ID\")]\n\u2502 \u2502 \u251c\u2500\u2500 [OutputType(\"System.Int32\", ParameterSetName=\"ID\")]\n\u2502 \u2502 \u251c\u2500\u2500 [OutputType([String], ParameterSetName=\"Name\")]\n\u2502 \u2502 \u251c\u2500\u2500 Param (\n\u2502 \u2502 \u2502 \n\u2502 \u2502 \u2502 [Int[]]\n\u2502 \u2502 \u2502 $UserID,\n\u2502 \u2502 \u2502 \n\u2502 \u2502 \u2502 [String[]]\n\u2502 \u2502 \u2502 $UserName)\n\u2502 \u2502 \u251c\u2500\u2500 filter Get-ErrorLog ($Message)\n\u2502 \u2502 \u2514\u2500\u2500 function global:MultilineSignature(\n\u2502 \u2502 $param1,\n\u2502 \u2502 $param2,\n\u2502 \u2502 [Parameter(Mandatory=$true)]\n\u2502 \u2502 $param3\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ScalaTest.scala (171 tokens, 40 lines)\n\u2502 \u2502 \u251c\u2500\u2500 def sumOfSquares(x: Int, y: Int): Int\n\u2502 \u2502 \u251c\u2500\u2500 trait Bark\n\u2502 \u2502 \u251c\u2500\u2500 def bark: String\n\u2502 \u2502 \u251c\u2500\u2500 case class Person(name: String)\n\u2502 \u2502 \u251c\u2500\u2500 class GenericClass[T](\n\u2502 \u2502 \u2502 val data: T,\n\u2502 \u2502 \u2502 val count: Int\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 def getData: T\n\u2502 \u2502 \u251c\u2500\u2500 object HelloWorld\n\u2502 \u2502 \u251c\u2500\u2500 def greet(person: Person): Unit\n\u2502 \u2502 \u251c\u2500\u2500 def main(args: Array[String]): Unit\n\u2502 \u2502 \u251c\u2500\u2500 def complexFunction(\n\u2502 \u2502 \u2502 a: Int,\n\u2502 \u2502 \u2502 b: String,\n\u2502 \u2502 \u2502 c: Float\n\u2502 \u2502 \u2502 ): (Int, String) Option\n\u2502 \u2502 \u2514\u2500\u2500 def sumOfSquaresShort(x: Int, y: Int): Int\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test.csv (0 tokens, 0 lines)\n\u2502 \u251c\u2500\u2500 Name\n\u2502 \u251c\u2500\u2500 Age\n\u2502 \u251c\u2500\u2500 Country\n\u2502 \u251c\u2500\u2500 City\n\u2502 \u2514\u2500\u2500 Email\n\u251c\u2500\u2500 \ud83d\udcc1 group3 (1 folder, 16 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 bash_test.sh (127 tokens, 22 lines)\n\u2502 \u2502 \u251c\u2500\u2500 echo_hello_world()\n\u2502 \u2502 \u251c\u2500\u2500 function fun_echo_hello_world()\n\u2502 \u2502 \u251c\u2500\u2500 export SECRET\n\u2502 \u2502 \u251c\u2500\u2500 alias md='make debug'\n\u2502 \u2502 \u251c\u2500\u2500 add_alias()\n\u2502 \u2502 \u2514\u2500\u2500 create_conda_env()\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_test.cpp (1,670 tokens, 259 lines)\n\u2502 \u2502 \u251c\u2500\u2500 class Person\n\u2502 \u2502 \u251c\u2500\u2500 std::string name;\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Person(std::string n) : name(n)\n\u2502 \u2502 \u251c\u2500\u2500 void greet()\n\u2502 \u2502 \u251c\u2500\u2500 void globalGreet()\n\u2502 \u2502 \u251c\u2500\u2500 int main()\n\u2502 \u2502 \u251c\u2500\u2500 void printMessage(const std::string &message)\n\u2502 \u2502 \u251c\u2500\u2500 template<typename T>\n\u2502 \u2502 \u2502 void printVector(const std::vector<T>& vec)\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 int x, y;\n\u2502 \u2502 \u251c\u2500\u2500 Point(int x, int y) : x(x), y(y)\n\u2502 \u2502 \u251c\u2500\u2500 class Animal\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Animal(const std::string &name) : name(name)\n\u2502 \u2502 \u251c\u2500\u2500 virtual void speak() const\n\u2502 \u2502 \u251c\u2500\u2500 virtual ~Animal()\n\u2502 \u2502 \u251c\u2500\u2500 protected:\n\u2502 \u2502 \u251c\u2500\u2500 std::string name;\n\u2502 \u2502 \u251c\u2500\u2500 class Dog : public Animal\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Dog(const std::string &name) : Animal(name)\n\u2502 \u2502 \u251c\u2500\u2500 void speak() const override\n\u2502 \u2502 \u251c\u2500\u2500 class Cat : public Animal\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Cat(const std::string &name) : Animal(name)\n\u2502 \u2502 \u251c\u2500\u2500 void speak() const override\n\u2502 \u2502 \u251c\u2500\u2500 nb::bytes BuildRnnDescriptor(int input_size, int hidden_size, int num_layers,\n\u2502 \u2502 \u2502 int batch_size, int max_seq_length, float dropout,\n\u2502 \u2502 \u2502 bool bidirectional, bool cudnn_allow_tf32,\n\u2502 \u2502 \u2502 int workspace_size, int reserve_space_size)\n\u2502 \u2502 \u251c\u2500\u2500 int main()\n\u2502 \u2502 \u251c\u2500\u2500 enum ECarTypes\n\u2502 \u2502 \u251c\u2500\u2500 Sedan,\n\u2502 \u2502 \u251c\u2500\u2500 Hatchback,\n\u2502 \u2502 \u251c\u2500\u2500 SUV,\n\u2502 \u2502 \u251c\u2500\u2500 Wagon\n\u2502 \u2502 \u251c\u2500\u2500 ECarTypes GetPreferredCarType()\n\u2502 \u2502 \u251c\u2500\u2500 enum ECarTypes : uint8_t\n\u2502 \u2502 \u251c\u2500\u2500 Sedan,\n\u2502 \u2502 \u251c\u2500\u2500 Hatchback,\n\u2502 \u2502 \u251c\u2500\u2500 SUV = 254,\n\u2502 \u2502 \u251c\u2500\u2500 Hybrid\n\u2502 \u2502 \u251c\u2500\u2500 enum class ECarTypes : uint8_t\n\u2502 \u2502 \u251c\u2500\u2500 Sedan,\n\u2502 \u2502 \u251c\u2500\u2500 Hatchback,\n\u2502 \u2502 \u251c\u2500\u2500 SUV = 254,\n\u2502 \u2502 \u251c\u2500\u2500 Hybrid\n\u2502 \u2502 \u251c\u2500\u2500 void myFunction(string fname, int age)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T> T cos(T)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T> T sin(T)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T> T sqrt(T)\n\u2502 \u2502 \u251c\u2500\u2500 template<typename T> struct VLEN\n\u2502 \u2502 \u251c\u2500\u2500 template<typename T> class arr\n\u2502 \u2502 \u251c\u2500\u2500 private:\n\u2502 \u2502 \u251c\u2500\u2500 static T *ralloc(size_t num)\n\u2502 \u2502 \u251c\u2500\u2500 static void dealloc(T *ptr)\n\u2502 \u2502 \u251c\u2500\u2500 static T *ralloc(size_t num)\n\u2502 \u2502 \u251c\u2500\u2500 static void dealloc(T *ptr)\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 arr() : p(0), sz(0)\n\u2502 \u2502 \u251c\u2500\u2500 arr(size_t n) : p(ralloc(n)), sz(n)\n\u2502 \u2502 \u251c\u2500\u2500 arr(arr &&other)\n\u2502 \u2502 \u2502 : p(other.p), sz(other.sz)\n\u2502 \u2502 \u251c\u2500\u2500 ~arr()\n\u2502 \u2502 \u251c\u2500\u2500 void resize(size_t n)\n\u2502 \u2502 \u251c\u2500\u2500 T &operator[](size_t idx)\n\u2502 \u2502 \u251c\u2500\u2500 T *data()\n\u2502 \u2502 \u251c\u2500\u2500 size_t size() const\n\u2502 \u2502 \u251c\u2500\u2500 class Buffer\n\u2502 \u2502 \u251c\u2500\u2500 private:\n\u2502 \u2502 \u251c\u2500\u2500 void* ptr_;\n\u2502 \u2502 \u2514\u2500\u2500 std::tuple<array, array, array> quantize(\n\u2502 \u2502 const array& w,\n\u2502 \u2502 int group_size,\n\u2502 \u2502 int bits,\n\u2502 \u2502 StreamOrDevice s)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 csharp_test.cs (957 tokens, 146 lines)\n\u2502 \u2502 \u251c\u2500\u2500 public interface IExcelTemplate\n\u2502 \u2502 \u251c\u2500\u2500 void LoadTemplate(string templateFilePath)\n\u2502 \u2502 \u251c\u2500\u2500 void LoadData(Dictionary<string, string> data)\n\u2502 \u2502 \u251c\u2500\u2500 void ModifyCell(string cellName, string value)\n\u2502 \u2502 \u251c\u2500\u2500 void SaveToFile(string filePath)\n\u2502 \u2502 \u251c\u2500\u2500 public interface IGreet\n\u2502 \u2502 \u251c\u2500\u2500 void Greet()\n\u2502 \u2502 \u251c\u2500\u2500 public enum WeekDays\n\u2502 \u2502 \u251c\u2500\u2500 public delegate void DisplayMessage(string message)\n\u2502 \u2502 \u251c\u2500\u2500 public struct Address\n\u2502 \u2502 \u251c\u2500\u2500 public static class HelperFunctions\n\u2502 \u2502 \u251c\u2500\u2500 public static void PrintMessage(string message)\n\u2502 \u2502 \u251c\u2500\u2500 public static int AddNumbers(int a, int b)\n\u2502 \u2502 \u251c\u2500\u2500 namespace HelloWorldApp\n\u2502 \u2502 \u251c\u2500\u2500 class Person : IGreet\n\u2502 \u2502 \u251c\u2500\u2500 public Person(string name, int age)\n\u2502 \u2502 \u251c\u2500\u2500 public void Greet()\n\u2502 \u2502 \u251c\u2500\u2500 class HelloWorld\n\u2502 \u2502 \u251c\u2500\u2500 static void Main(string[] args)\n\u2502 \u2502 \u251c\u2500\u2500 namespace TemplateToExcelServer.Template\n\u2502 \u2502 \u251c\u2500\u2500 public interface ITemplateObject\n\u2502 \u2502 \u251c\u2500\u2500 string[,] GetContent()\n\u2502 \u2502 \u251c\u2500\u2500 string[] GetContentArray()\n\u2502 \u2502 \u251c\u2500\u2500 string[] GetFormat()\n\u2502 \u2502 \u251c\u2500\u2500 int? GetFormatLength()\n\u2502 \u2502 \u251c\u2500\u2500 TemplateObject SetContent(string[,] Content)\n\u2502 \u2502 \u251c\u2500\u2500 TemplateObject SetContentArray(string[] value)\n\u2502 \u2502 \u251c\u2500\u2500 TemplateObject SetFormat(string[] Header)\n\u2502 \u2502 \u251c\u2500\u2500 TemplateObject SetNameOfReport(\n\u2502 \u2502 \u2502 ReadOnlyMemory<byte> ReportName,\n\u2502 \u2502 \u2502 int[] EdgeCase)\n\u2502 \u2502 \u251c\u2500\u2500 TemplateObject SetSheetName(ReadOnlyMemory<byte> SheetName)\n\u2502 \u2502 \u251c\u2500\u2500 public class BankAccount(string accountID, string owner)\n\u2502 \u2502 \u251c\u2500\u2500 public override string ToString() =>\n\u2502 \u2502 \u251c\u2500\u2500 var IncrementBy = (int source, int increment = 1) =>\n\u2502 \u2502 \u251c\u2500\u2500 Func<int, int, int> add = (x, y) =>\n\u2502 \u2502 \u251c\u2500\u2500 button.Click += (sender, args) =>\n\u2502 \u2502 \u251c\u2500\u2500 public Func<int, int> GetMultiplier(int factor)\n\u2502 \u2502 \u251c\u2500\u2500 public void Method(\n\u2502 \u2502 \u2502 int param1,\n\u2502 \u2502 \u2502 int param2,\n\u2502 \u2502 \u2502 int param3,\n\u2502 \u2502 \u2502 int param4,\n\u2502 \u2502 \u2502 int param5,\n\u2502 \u2502 \u2502 int param6,\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 System.Net.ServicePointManager.ServerCertificateValidationCallback +=\n\u2502 \u2502 \u2502 (se, cert, chain, sslerror) =>\n\u2502 \u2502 \u251c\u2500\u2500 class ServerCertificateValidation\n\u2502 \u2502 \u251c\u2500\u2500 public bool OnRemoteCertificateValidation(\n\u2502 \u2502 \u2502 object se,\n\u2502 \u2502 \u2502 X509Certificate cert,\n\u2502 \u2502 \u2502 X509Chain chain,\n\u2502 \u2502 \u2502 SslPolicyErrors sslerror\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 s_downloadButton.Clicked += async (o, e) =>\n\u2502 \u2502 \u251c\u2500\u2500 [HttpGet, Route(\"DotNetCount\")]\n\u2502 \u2502 \u2514\u2500\u2500 static public async Task<int> GetDotNetCount(string URL)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 hallucination.tex (1,633 tokens, 126 lines)\n\u2502 \u2502 \u251c\u2500\u2500 Harnessing the Master Algorithm: Strategies for AI LLMs to Mitigate Hallucinations\n\u2502 \u2502 \u251c\u2500\u2500 Hallucinated Pedro Domingos et al.\n\u2502 \u2502 \u251c\u2500\u2500 Christmas Eve 2023\n\u2502 \u2502 \u251c\u2500\u2500 1 Introduction\n\u2502 \u2502 \u251c\u2500\u2500 2 Representation in LLMs\n\u2502 \u2502 \u251c\u2500\u2500 2.1 Current Representational Models\n\u2502 \u2502 \u251c\u2500\u2500 2.2 Incorporating Cognitive Structures\n\u2502 \u2502 \u251c\u2500\u2500 2.3 Conceptual Diagrams of Advanced Representational Models\n\u2502 \u2502 \u251c\u2500\u2500 3 Evaluation Strategies\n\u2502 \u2502 \u251c\u2500\u2500 3.1 Existing Evaluation Metrics for LLMs\n\u2502 \u2502 \u251c\u2500\u2500 3.2 Integrating Contextual and Ethical Considerations\n\u2502 \u2502 \u251c\u2500\u2500 3.3 Case Studies: Evaluation in Practice\n\u2502 \u2502 \u251c\u2500\u2500 4 Optimization Techniques\n\u2502 \u2502 \u251c\u2500\u2500 4.1 Continuous Learning Models\n\u2502 \u2502 \u251c\u2500\u2500 4.2 Adaptive Algorithms for Real-time Adjustments\n\u2502 \u2502 \u251c\u2500\u2500 4.3 Performance Metrics Pre- and Post-Optimization\n\u2502 \u2502 \u251c\u2500\u2500 5 Interdisciplinary Insights\n\u2502 \u2502 \u251c\u2500\u2500 5.1 Cognitive Science and AI: A Symbiotic Relationship\n\u2502 \u2502 \u251c\u2500\u2500 5.2 Learning from Human Cognitive Processes\n\u2502 \u2502 \u251c\u2500\u2500 6 Challenges and Future Directions\n\u2502 \u2502 \u251c\u2500\u2500 6.1 Addressing Current Limitations\n\u2502 \u2502 \u251c\u2500\u2500 6.2 The Road Ahead: Ethical and Practical Considerations\n\u2502 \u2502 \u251c\u2500\u2500 7 Conclusion\n\u2502 \u2502 \u251c\u2500\u2500 7.1 Summarizing Key Findings\n\u2502 \u2502 \u2514\u2500\u2500 7.2 The Next Steps in AI Development\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ruby_test.rb (138 tokens, 37 lines)\n\u2502 \u2502 \u251c\u2500\u2500 module Greeter\n\u2502 \u2502 \u251c\u2500\u2500 def self.say_hello\n\u2502 \u2502 \u251c\u2500\u2500 class HelloWorld\n\u2502 \u2502 \u251c\u2500\u2500 def say_hello\n\u2502 \u2502 \u251c\u2500\u2500 class Human\n\u2502 \u2502 \u251c\u2500\u2500 def self.bar\n\u2502 \u2502 \u251c\u2500\u2500 def self.bar=(value)\n\u2502 \u2502 \u251c\u2500\u2500 class Doctor < Human\n\u2502 \u2502 \u2514\u2500\u2500 def brachial_plexus(\n\u2502 \u2502 roots,\n\u2502 \u2502 trunks,\n\u2502 \u2502 divisions: true,\n\u2502 \u2502 cords: [],\n\u2502 \u2502 branches: Time.now\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 swift_test.swift (469 tokens, 110 lines)\n\u2502 \u2502 \u251c\u2500\u2500 class Person\n\u2502 \u2502 \u251c\u2500\u2500 init(name: String)\n\u2502 \u2502 \u251c\u2500\u2500 func greet()\n\u2502 \u2502 \u251c\u2500\u2500 func yEdgeCase(\n\u2502 \u2502 \u2502 fname: String, \n\u2502 \u2502 \u2502 lname: String, \n\u2502 \u2502 \u2502 age: Int,\n\u2502 \u2502 \u2502 address: String, \n\u2502 \u2502 \u2502 phoneNumber: String\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 func globalGreet()\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 protocol Animal\n\u2502 \u2502 \u251c\u2500\u2500 func speak()\n\u2502 \u2502 \u251c\u2500\u2500 struct Dog: Animal\n\u2502 \u2502 \u251c\u2500\u2500 class Cat: Animal\n\u2502 \u2502 \u251c\u2500\u2500 init(name: String)\n\u2502 \u2502 \u251c\u2500\u2500 func speak()\n\u2502 \u2502 \u251c\u2500\u2500 enum CarType\n\u2502 \u2502 \u251c\u2500\u2500 func getPreferredCarType() -> CarType\n\u2502 \u2502 \u251c\u2500\u2500 enum CarType: UInt8\n\u2502 \u2502 \u251c\u2500\u2500 enum class CarType: UInt8\n\u2502 \u2502 \u251c\u2500\u2500 func myFunction(fname: String, age: Int)\n\u2502 \u2502 \u2514\u2500\u2500 func myFunctionWithMultipleParameters(\n\u2502 \u2502 fname: String, \n\u2502 \u2502 lname: String, \n\u2502 \u2502 age: Int, \n\u2502 \u2502 address: String, \n\u2502 \u2502 phoneNumber: String\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.lean (289 tokens, 42 lines)\n\u2502 \u2502 \u251c\u2500\u2500 # Advanced Topics in Group Theory\n\u2502 \u2502 \u251c\u2500\u2500 section GroupDynamics\n\u2502 \u2502 \u251c\u2500\u2500 lemma group_stability (G : Type*) [Group G] (H : Subgroup G)\n\u2502 \u2502 \u251c\u2500\u2500 theorem subgroup_closure {G : Type*} [Group G] (S : Set G)\n\u2502 \u2502 \u251c\u2500\u2500 axiom group_homomorphism_preservation {G H : Type*} [Group G] [Group H] (f : G \u2192 H)\n\u2502 \u2502 \u251c\u2500\u2500 end GroupDynamics\n\u2502 \u2502 \u251c\u2500\u2500 section ConstructiveApproach\n\u2502 \u2502 \u251c\u2500\u2500 lemma finite_group_order (G : Type*) [Group G] [Fintype G]\n\u2502 \u2502 \u251c\u2500\u2500 lemma complex_lemma {X Y : Type*} [SomeClass X] [AnotherClass Y]\n\u2502 \u2502 \u2502 (f : X \u2192 Y) (g : Y \u2192 X)\n\u2502 \u2502 \u2514\u2500\u2500 end ConstructiveApproach\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.capnp (117 tokens, 30 lines)\n\u2502 \u2502 \u251c\u2500\u2500 struct Employee\n\u2502 \u2502 \u251c\u2500\u2500 id @0 :Int32\n\u2502 \u2502 \u251c\u2500\u2500 name @1 :Text\n\u2502 \u2502 \u251c\u2500\u2500 role @2 :Text\n\u2502 \u2502 \u251c\u2500\u2500 skills @3 :List(Skill)\n\u2502 \u2502 \u251c\u2500\u2500 struct Skill\n\u2502 \u2502 \u251c\u2500\u2500 name @0 :Text\n\u2502 \u2502 \u251c\u2500\u2500 level @1 :Level\n\u2502 \u2502 \u251c\u2500\u2500 enum Level\n\u2502 \u2502 \u251c\u2500\u2500 beginner @0\n\u2502 \u2502 \u251c\u2500\u2500 intermediate @1\n\u2502 \u2502 \u251c\u2500\u2500 expert @2\n\u2502 \u2502 \u251c\u2500\u2500 status :union\n\u2502 \u2502 \u251c\u2500\u2500 active @4 :Void\n\u2502 \u2502 \u251c\u2500\u2500 onLeave @5 :Void\n\u2502 \u2502 \u251c\u2500\u2500 retired @6 :Void\n\u2502 \u2502 \u251c\u2500\u2500 struct Company\n\u2502 \u2502 \u2514\u2500\u2500 employees @0 :List(Employee)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.graphql (66 tokens, 21 lines)\n\u2502 \u2502 \u251c\u2500\u2500 type Query\n\u2502 \u2502 \u251c\u2500\u2500 getBooks: [Book]\n\u2502 \u2502 \u251c\u2500\u2500 getAuthors: [Author]\n\u2502 \u2502 \u251c\u2500\u2500 type Mutation\n\u2502 \u2502 \u251c\u2500\u2500 addBook(title: String, author: String): Book\n\u2502 \u2502 \u251c\u2500\u2500 removeBook(id: ID): Book\n\u2502 \u2502 \u251c\u2500\u2500 type Book\n\u2502 \u2502 \u251c\u2500\u2500 id: ID\n\u2502 \u2502 \u251c\u2500\u2500 title: String\n\u2502 \u2502 \u251c\u2500\u2500 author: Author\n\u2502 \u2502 \u251c\u2500\u2500 type Author\n\u2502 \u2502 \u251c\u2500\u2500 id: ID\n\u2502 \u2502 \u251c\u2500\u2500 name: String\n\u2502 \u2502 \u2514\u2500\u2500 books: [Book]\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.proto (142 tokens, 34 lines)\n\u2502 \u2502 \u251c\u2500\u2500 syntax = \"proto3\"\n\u2502 \u2502 \u251c\u2500\u2500 service EmployeeService\n\u2502 \u2502 \u251c\u2500\u2500 rpc GetEmployee(EmployeeId) returns (EmployeeInfo)\n\u2502 \u2502 \u251c\u2500\u2500 rpc AddEmployee(EmployeeData) returns (EmployeeInfo)\n\u2502 \u2502 \u251c\u2500\u2500 rpc UpdateEmployee(EmployeeUpdate) returns (EmployeeInfo)\n\u2502 \u2502 \u251c\u2500\u2500 message EmployeeId\n\u2502 \u2502 \u251c\u2500\u2500 int32 id = 1\n\u2502 \u2502 \u251c\u2500\u2500 message EmployeeInfo\n\u2502 \u2502 \u251c\u2500\u2500 int32 id = 1\n\u2502 \u2502 \u251c\u2500\u2500 string name = 2\n\u2502 \u2502 \u251c\u2500\u2500 string role = 3\n\u2502 \u2502 \u251c\u2500\u2500 message EmployeeData\n\u2502 \u2502 \u251c\u2500\u2500 string name = 1\n\u2502 \u2502 \u251c\u2500\u2500 string role = 2\n\u2502 \u2502 \u251c\u2500\u2500 message EmployeeUpdate\n\u2502 \u2502 \u251c\u2500\u2500 int32 id = 1\n\u2502 \u2502 \u251c\u2500\u2500 string name = 2\n\u2502 \u2502 \u2514\u2500\u2500 string role = 3\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.sqlite (0 tokens, 0 lines)\n\u2502 \u2502 \u251c\u2500\u2500 students table:\n\u2502 \u2502 \u251c\u2500\u2500 id integer primary key\n\u2502 \u2502 \u251c\u2500\u2500 name text not null\n\u2502 \u2502 \u251c\u2500\u2500 age integer not null\n\u2502 \u2502 \u251c\u2500\u2500 courses table:\n\u2502 \u2502 \u251c\u2500\u2500 id integer primary key\n\u2502 \u2502 \u251c\u2500\u2500 title text not null\n\u2502 \u2502 \u2514\u2500\u2500 credits integer not null\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_Cargo.toml (119 tokens, 18 lines)\n\u2502 \u2502 \u251c\u2500\u2500 name: test_cargo\n\u2502 \u2502 \u251c\u2500\u2500 version: 0.1.0\n\u2502 \u2502 \u251c\u2500\u2500 description: A test Cargo.toml\n\u2502 \u2502 \u251c\u2500\u2500 license: MIT OR Apache-2.0\n\u2502 \u2502 \u251c\u2500\u2500 dependencies:\n\u2502 \u2502 \u251c\u2500\u2500 clap 4.4\n\u2502 \u2502 \u2514\u2500\u2500 sqlx 0.7 (features: runtime-tokio, tls-rustls)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_json_rpc_2_0.json (26 tokens, 6 lines)\n\u2502 \u2502 \u251c\u2500\u2500 jsonrpc: 2.0\n\u2502 \u2502 \u251c\u2500\u2500 method: subtract\n\u2502 \u2502 \u251c\u2500\u2500 params:\n\u2502 \u2502 \u251c\u2500\u2500 minuend: 42\n\u2502 \u2502 \u251c\u2500\u2500 subtrahend: 23\n\u2502 \u2502 \u2514\u2500\u2500 id: 1\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_openapi.yaml (753 tokens, 92 lines)\n\u2502 \u2502 \u251c\u2500\u2500 openapi: 3.0.1\n\u2502 \u2502 \u251c\u2500\u2500 title: TODO Plugin\n\u2502 \u2502 \u251c\u2500\u2500 description: A plugin to create and manage TODO lists using ChatGPT.\n\u2502 \u2502 \u251c\u2500\u2500 version: v1\n\u2502 \u2502 \u251c\u2500\u2500 servers:\n\u2502 \u2502 \u251c\u2500\u2500 - url: PLUGIN_HOSTNAME\n\u2502 \u2502 \u251c\u2500\u2500 paths:\n\u2502 \u2502 \u251c\u2500\u2500 '/todos/{username}':\n\u2502 \u2502 \u251c\u2500\u2500 GET (getTodos): Get the list of todos\n\u2502 \u2502 \u251c\u2500\u2500 POST (addTodo): Add a todo to the list\n\u2502 \u2502 \u2514\u2500\u2500 DELETE (deleteTodo): Delete a todo from the list\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_openrpc.json (225 tokens, 44 lines)\n\u2502 \u2502 \u251c\u2500\u2500 openrpc: 1.2.1\n\u2502 \u2502 \u251c\u2500\u2500 info:\n\u2502 \u2502 \u251c\u2500\u2500 title: Demo Petstore\n\u2502 \u2502 \u251c\u2500\u2500 version: 1.0.0\n\u2502 \u2502 \u251c\u2500\u2500 methods:\n\u2502 \u2502 \u251c\u2500\u2500 listPets: List all pets\n\u2502 \u2502 \u251c\u2500\u2500 params:\n\u2502 \u2502 \u251c\u2500\u2500 - limit: integer\n\u2502 \u2502 \u2514\u2500\u2500 result: pets = An array of pets\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test_pyproject.toml (304 tokens, 39 lines)\n\u2502 \u251c\u2500\u2500 name: tree_plus\n\u2502 \u251c\u2500\u2500 version: 1.0.8\n\u2502 \u251c\u2500\u2500 description: A `tree` util enhanced with tokens, lines, and components.\n\u2502 \u251c\u2500\u2500 License :: OSI Approved :: Apache Software License\n\u2502 \u251c\u2500\u2500 License :: OSI Approved :: MIT License\n\u2502 \u251c\u2500\u2500 dependencies:\n\u2502 \u251c\u2500\u2500 tiktoken\n\u2502 \u251c\u2500\u2500 PyYAML\n\u2502 \u251c\u2500\u2500 click\n\u2502 \u251c\u2500\u2500 rich\n\u2502 \u2514\u2500\u2500 tomli\n\u251c\u2500\u2500 \ud83d\udcc1 group4 (1 folder, 10 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 erl_test.erl (480 tokens, 68 lines)\n\u2502 \u2502 \u251c\u2500\u2500 -module(erl_test).\n\u2502 \u2502 \u251c\u2500\u2500 -record(person).\n\u2502 \u2502 \u251c\u2500\u2500 -type ra_peer_status().\n\u2502 \u2502 \u251c\u2500\u2500 -type ra_membership().\n\u2502 \u2502 \u251c\u2500\u2500 -opaque my_opaq_type().\n\u2502 \u2502 \u251c\u2500\u2500 -type orddict(Key, Val).\n\u2502 \u2502 \u251c\u2500\u2500 -type edge(\n\u2502 \u2502 \u2502 Cases,\n\u2502 \u2502 \u2502 Pwn,\n\u2502 \u2502 \u2502 ).\n\u2502 \u2502 \u251c\u2500\u2500 -spec guarded(X) -> X when X :: tuple().\n\u2502 \u2502 \u251c\u2500\u2500 -spec edge_case(\n\u2502 \u2502 \u2502 {integer(), any()} | \n\u2502 \u2502 \u2502 ) -> processed, integer(), any()} | [{item, any()}].\n\u2502 \u2502 \u251c\u2500\u2500 -spec complex_function({integer(), any()} | ) -> \n\u2502 \u2502 \u2502 {processed, integer(), any()} | [{item, any()}].\n\u2502 \u2502 \u251c\u2500\u2500 -spec list_manipulation() -> .\n\u2502 \u2502 \u251c\u2500\u2500 -spec overload(T1, T2) -> T3\n\u2502 \u2502 \u2502 ; (T4, T5) -> T6.\n\u2502 \u2502 \u251c\u2500\u2500 -spec multiguard({X, integer()}) -> X when X :: atom()\n\u2502 \u2502 \u2502 ; ([Y]) -> Y when Y :: number().\n\u2502 \u2502 \u251c\u2500\u2500 -record(multiline).\n\u2502 \u2502 \u2514\u2500\u2500 -record(maybe_undefined).\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 haskell_test.hs (414 tokens, 41 lines)\n\u2502 \u2502 \u251c\u2500\u2500 data Person\n\u2502 \u2502 \u251c\u2500\u2500 greet :: Person -> String\n\u2502 \u2502 \u2514\u2500\u2500 resolveVariables ::\n\u2502 \u2502 forall m fragments.\n\u2502 \u2502 (MonadError QErr m, Traversable fragments) =>\n\u2502 \u2502 Options.BackwardsCompatibleNullInNonNullableVariables ->\n\u2502 \u2502 [G.VariableDefinition] ->\n\u2502 \u2502 GH.VariableValues ->\n\u2502 \u2502 [G.Directive G.Name] ->\n\u2502 \u2502 G.SelectionSet fragments G.Name ->\n\u2502 \u2502 m\n\u2502 \u2502 ( [G.Directive Variable],\n\u2502 \u2502 G.SelectionSet fragments Variable\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 mathematica_test.nb (133 tokens, 21 lines)\n\u2502 \u2502 \u251c\u2500\u2500 person\n\u2502 \u2502 \u251c\u2500\u2500 sayHello[]\n\u2502 \u2502 \u2514\u2500\u2500 sumList\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 matlab_test.m (48 tokens, 12 lines)\n\u2502 \u2502 \u251c\u2500\u2500 classdef HelloWorld -> function greet\n\u2502 \u2502 \u2514\u2500\u2500 function loneFun\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 RTest.R (367 tokens, 46 lines)\n\u2502 \u2502 \u251c\u2500\u2500 class(person)\n\u2502 \u2502 \u251c\u2500\u2500 greet.Person <- function\n\u2502 \u2502 \u251c\u2500\u2500 ensure_between = function\n\u2502 \u2502 \u2514\u2500\u2500 run_intermediate_annealing_process = function\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 rust_test.rs (974 tokens, 188 lines)\n\u2502 \u2502 \u251c\u2500\u2500 enum Days\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 impl Point\n\u2502 \u2502 \u251c\u2500\u2500 fn get_origin() -> Point\n\u2502 \u2502 \u251c\u2500\u2500 struct Person\n\u2502 \u2502 \u251c\u2500\u2500 impl Person\n\u2502 \u2502 \u251c\u2500\u2500 fn greet(&self)\n\u2502 \u2502 \u251c\u2500\u2500 fn add_two_longs(x1: i64, x2: i64) -> i64\n\u2502 \u2502 \u251c\u2500\u2500 fn add_two_longs_longer(\n\u2502 \u2502 \u2502 x1: i64,\n\u2502 \u2502 \u2502 x2: i64,\n\u2502 \u2502 \u2502 ) -> i64\n\u2502 \u2502 \u251c\u2500\u2500 fn multiply_by_two(num: f64) -> f64\n\u2502 \u2502 \u251c\u2500\u2500 fn get_first_character(s: &str) -> Option<char>\n\u2502 \u2502 \u251c\u2500\u2500 trait Drawable\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u251c\u2500\u2500 impl Drawable for Point\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u251c\u2500\u2500 fn main()\n\u2502 \u2502 \u251c\u2500\u2500 pub struct VisibleStruct\n\u2502 \u2502 \u251c\u2500\u2500 mod my_module\n\u2502 \u2502 \u251c\u2500\u2500 pub struct AlsoVisibleStruct<T>(T, T)\n\u2502 \u2502 \u251c\u2500\u2500 macro_rules! say_hello\n\u2502 \u2502 \u251c\u2500\u2500 #\n\u2502 \u2502 \u2502 macro_rules! hello_tree_plus\n\u2502 \u2502 \u251c\u2500\u2500 pub mod lib\n\u2502 \u2502 \u251c\u2500\u2500 pub mod interfaces\n\u2502 \u2502 \u251c\u2500\u2500 mod engine\n\u2502 \u2502 \u251c\u2500\u2500 pub fn flow<S1, S2, S3, S4, E, T, L>(\n\u2502 \u2502 \u2502 source: S1,\n\u2502 \u2502 \u2502 extractor: E,\n\u2502 \u2502 \u2502 inbox: S2,\n\u2502 \u2502 \u2502 transformer: T,\n\u2502 \u2502 \u2502 outbox: S3,\n\u2502 \u2502 \u2502 loader: L,\n\u2502 \u2502 \u2502 sink: &mut S4,\n\u2502 \u2502 \u2502 ) -> Result<(), Box<dyn Error>>\n\u2502 \u2502 \u2502 where\n\u2502 \u2502 \u2502 S1: Extractable,\n\u2502 \u2502 \u2502 S2: Extractable + Loadable,\n\u2502 \u2502 \u2502 S3: Extractable + Loadable,\n\u2502 \u2502 \u2502 S4: Loadable,\n\u2502 \u2502 \u2502 E: Extractor<S1, S2>,\n\u2502 \u2502 \u2502 T: Transformer<S2, S3>,\n\u2502 \u2502 \u2502 L: Loader<S3, S4>\n\u2502 \u2502 \u251c\u2500\u2500 trait Container\n\u2502 \u2502 \u251c\u2500\u2500 fn items(&self) -> impl Iterator<Item = Widget>\n\u2502 \u2502 \u251c\u2500\u2500 trait HttpService\n\u2502 \u2502 \u251c\u2500\u2500 async fn fetch(&self, url: Url) -> HtmlBody\n\u2502 \u2502 \u251c\u2500\u2500 struct Pair<T, U>\n\u2502 \u2502 \u251c\u2500\u2500 trait Transformer<T>\n\u2502 \u2502 \u251c\u2500\u2500 fn transform(&self, input: T) -> T\n\u2502 \u2502 \u251c\u2500\u2500 impl<T: std::ops::Add<Output = T> + Copy> Transformer<T> for Pair<T, T>\n\u2502 \u2502 \u251c\u2500\u2500 fn transform(&self, input: T) -> T\n\u2502 \u2502 \u251c\u2500\u2500 fn main()\n\u2502 \u2502 \u251c\u2500\u2500 async fn handle_get(State(pool): State<PgPool>) -> Result<Html<String>, (StatusCode, String)> \n\u2502 \u2502 \u2502 where\n\u2502 \u2502 \u2502 Bion: Cool\n\u2502 \u2502 \u251c\u2500\u2500 #\n\u2502 \u2502 \u2502 macro_rules! unit\n\u2502 \u2502 \u2514\u2500\u2500 fn insert(\n\u2502 \u2502 &mut self,\n\u2502 \u2502 key: (),\n\u2502 \u2502 value: $unit_dtype,\n\u2502 \u2502 ) -> Result<Option<$unit_dtype>, ETLError>\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.zig (397 tokens, 60 lines)\n\u2502 \u2502 \u251c\u2500\u2500 pub fn add(a: i32, b: i32) i32\n\u2502 \u2502 \u251c\u2500\u2500 test \"add function\"\n\u2502 \u2502 \u251c\u2500\u2500 const BunBuildOptions = struct\n\u2502 \u2502 \u251c\u2500\u2500 pub fn updateRuntime(this: *BunBuildOptions) anyerror!void\n\u2502 \u2502 \u251c\u2500\u2500 pub fn step(this: BunBuildOptions, b: anytype) *std.build.OptionsStep\n\u2502 \u2502 \u2514\u2500\u2500 pub fn sgemv(\n\u2502 \u2502 order: Order,\n\u2502 \u2502 trans: Trans,\n\u2502 \u2502 m: usize,\n\u2502 \u2502 n: usize,\n\u2502 \u2502 alpha: f32,\n\u2502 \u2502 a: []const f32,\n\u2502 \u2502 lda: usize,\n\u2502 \u2502 x: []const f32,\n\u2502 \u2502 x_add: usize,\n\u2502 \u2502 beta: f32,\n\u2502 \u2502 y: []f32,\n\u2502 \u2502 y_add: usize,\n\u2502 \u2502 ) void\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_fsharp.fs (92 tokens, 27 lines)\n\u2502 \u2502 \u251c\u2500\u2500 module TestFSharp\n\u2502 \u2502 \u251c\u2500\u2500 type Person = {\n\u2502 \u2502 \u251c\u2500\u2500 let add x y =\n\u2502 \u2502 \u251c\u2500\u2500 let multiply \n\u2502 \u2502 \u2502 (x: int) \n\u2502 \u2502 \u2502 (y: int): int =\n\u2502 \u2502 \u251c\u2500\u2500 let complexFunction\n\u2502 \u2502 \u2502 (a: int)\n\u2502 \u2502 \u2502 (b: string)\n\u2502 \u2502 \u2502 (c: float)\n\u2502 \u2502 \u2502 : (int * string) option =\n\u2502 \u2502 \u2514\u2500\u2500 type Result<'T> =\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test_tcl_tk.tcl (54 tokens, 16 lines)\n\u2502 \u2502 \u251c\u2500\u2500 proc sayHello {}\n\u2502 \u2502 \u251c\u2500\u2500 proc arrg { input }\n\u2502 \u2502 \u2514\u2500\u2500 proc multiLine {\n\u2502 \u2502 x,\n\u2502 \u2502 y\n\u2502 \u2502 }\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 tf_test.tf (202 tokens, 38 lines)\n\u2502 \u251c\u2500\u2500 provider \"aws\"\n\u2502 \u251c\u2500\u2500 resource \"aws_instance\" \"example\"\n\u2502 \u251c\u2500\u2500 data \"aws_ami\" \"ubuntu\"\n\u2502 \u251c\u2500\u2500 variable \"instance_type\"\n\u2502 \u251c\u2500\u2500 output \"instance_public_ip\"\n\u2502 \u251c\u2500\u2500 locals\n\u2502 \u2514\u2500\u2500 module \"vpc\"\n\u251c\u2500\u2500 \ud83d\udcc1 group5 (1 folder, 19 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ansible_test.yml (55 tokens, 14 lines)\n\u2502 \u2502 \u251c\u2500\u2500 Install package\n\u2502 \u2502 \u251c\u2500\u2500 Start service\n\u2502 \u2502 \u2514\u2500\u2500 Create user\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app-routing.module.ts (287 tokens, 28 lines)\n\u2502 \u2502 \u251c\u2500\u2500 const routes: Routes = [\n\u2502 \u2502 \u2502 { path: '', redirectTo: 'login', pathMatch: 'full' },\n\u2502 \u2502 \u2502 { path: '*', redirectTo: 'login' },\n\u2502 \u2502 \u2502 { path: 'home', component: HomeComponent },\n\u2502 \u2502 \u2502 { path: 'login', component: LoginComponent },\n\u2502 \u2502 \u2502 { path: 'register', component: RegisterComponent },\n\u2502 \u2502 \u2502 { path: 'events', component: EventsComponent },\n\u2502 \u2502 \u2502 { path: 'invites', component: InvitesComponent },\n\u2502 \u2502 \u2502 { path: 'rewards', component: RewardsComponent },\n\u2502 \u2502 \u2502 { path: 'profile', component: ProfileComponent },\n\u2502 \u2502 \u2502 ];\n\u2502 \u2502 \u2514\u2500\u2500 export class AppRoutingModule\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.component.spec.ts (410 tokens, 47 lines)\n\u2502 \u2502 \u251c\u2500\u2500 describe 'AppComponent'\n\u2502 \u2502 \u251c\u2500\u2500 it should create the app\n\u2502 \u2502 \u251c\u2500\u2500 it should welcome the user\n\u2502 \u2502 \u251c\u2500\u2500 it should welcome 'Jimbo'\n\u2502 \u2502 \u2514\u2500\u2500 it should request login if not logged in\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.component.ts (271 tokens, 45 lines)\n\u2502 \u2502 \u251c\u2500\u2500 export class AppComponent\n\u2502 \u2502 \u251c\u2500\u2500 constructor(\n\u2502 \u2502 \u2502 private http: HttpClient,\n\u2502 \u2502 \u2502 private loginService: LoginService,\n\u2502 \u2502 \u2502 private stripeService: StripeService\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 constructor(private loginService: LoginService)\n\u2502 \u2502 \u251c\u2500\u2500 checkSession()\n\u2502 \u2502 \u251c\u2500\u2500 async goToEvent(event_id: string)\n\u2502 \u2502 \u2514\u2500\u2500 valInvitedBy(event: any, event_id: string)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.module.ts (374 tokens, 43 lines)\n\u2502 \u2502 \u251c\u2500\u2500 @NgModule({\n\u2502 \u2502 \u2502 declarations: [\n\u2502 \u2502 \u2502 AppComponent,\n\u2502 \u2502 \u2502 HomeComponent,\n\u2502 \u2502 \u2502 LoginComponent,\n\u2502 \u2502 \u2502 RegisterComponent,\n\u2502 \u2502 \u2502 EventsComponent,\n\u2502 \u2502 \u2502 InvitesComponent,\n\u2502 \u2502 \u2502 RewardsComponent,\n\u2502 \u2502 \u2502 ProfileComponent\n\u2502 \u2502 \u2514\u2500\u2500 export class AppModule\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 checkbox_test.md (176 tokens, 21 lines)\n\u2502 \u2502 \u251c\u2500\u2500 # My Checkbox Test\n\u2502 \u2502 \u251c\u2500\u2500 ## My No Parens Test\n\u2502 \u2502 \u251c\u2500\u2500 ## My Empty href Test\n\u2502 \u2502 \u251c\u2500\u2500 ## My other url Test [Q&A]\n\u2502 \u2502 \u251c\u2500\u2500 ## My other other url Test [Q&A]\n\u2502 \u2502 \u251c\u2500\u2500 ## My 2nd other url Test [Q&A]\n\u2502 \u2502 \u251c\u2500\u2500 ## My 3rd other url Test [Q&A]\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] Task 1\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] No Space Task 1.1\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] Two Spaces Task 1.2\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] Subtask 1.2.1\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] Task 2\n\u2502 \u2502 \u251c\u2500\u2500 - Task 3\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] Subtask 3.1\n\u2502 \u2502 \u251c\u2500\u2500 - Task 6\n\u2502 \u2502 \u251c\u2500\u2500 - Subtask 6.1\n\u2502 \u2502 \u2514\u2500\u2500 - [ ] Handle edge cases\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 checkbox_test.txt (257 tokens, 33 lines)\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] fix phone number format +1\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] add forgot password\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] ? add email verification\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] store token the right way\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] test nesting of checkboxes\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] user can use option to buy ticket at 2-referred price\n\u2502 \u2502 \u251c\u2500\u2500 - [ ] CTA refer 2 people to get instant lower price\n\u2502 \u2502 \u2514\u2500\u2500 - [ ] form to send referrals\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 environment.test.ts (197 tokens, 19 lines)\n\u2502 \u2502 \u251c\u2500\u2500 environment:\n\u2502 \u2502 \u251c\u2500\u2500 production\n\u2502 \u2502 \u251c\u2500\u2500 cognitoUserPoolId\n\u2502 \u2502 \u251c\u2500\u2500 cognitoAppClientId\n\u2502 \u2502 \u2514\u2500\u2500 apiurl\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 hello_world.pyi (22 tokens, 3 lines)\n\u2502 \u2502 \u251c\u2500\u2500 @final\n\u2502 \u2502 \u2502 class dtype(Generic[_DTypeScalar_co])\n\u2502 \u2502 \u2514\u2500\u2500 names: None | tuple\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 k8s_test.yaml (140 tokens, 37 lines)\n\u2502 \u2502 \u251c\u2500\u2500 apps/v1.Deployment -> my-app\n\u2502 \u2502 \u251c\u2500\u2500 v1.Service -> my-service\n\u2502 \u2502 \u2514\u2500\u2500 v1.ConfigMap -> my-config\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 Makefile (714 tokens, 84 lines)\n\u2502 \u2502 \u251c\u2500\u2500 include dotenv/dev.env\n\u2502 \u2502 \u251c\u2500\u2500 .PHONY: dev\n\u2502 \u2502 \u251c\u2500\u2500 dev\n\u2502 \u2502 \u251c\u2500\u2500 services-down\n\u2502 \u2502 \u251c\u2500\u2500 services-stop: services-down\n\u2502 \u2502 \u251c\u2500\u2500 define CHECK_POSTGRES\n\u2502 \u2502 \u251c\u2500\u2500 damage-report\n\u2502 \u2502 \u251c\u2500\u2500 tail-logs\n\u2502 \u2502 \u2514\u2500\u2500 cloud\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 requirements_test.txt (29 tokens, 10 lines)\n\u2502 \u2502 \u251c\u2500\u2500 psycopg2-binary\n\u2502 \u2502 \u251c\u2500\u2500 pytest\n\u2502 \u2502 \u251c\u2500\u2500 coverage\n\u2502 \u2502 \u251c\u2500\u2500 flask\n\u2502 \u2502 \u251c\u2500\u2500 flask_cors\n\u2502 \u2502 \u251c\u2500\u2500 stripe\n\u2502 \u2502 \u251c\u2500\u2500 pyjwt\n\u2502 \u2502 \u251c\u2500\u2500 cognitojwt\n\u2502 \u2502 \u2514\u2500\u2500 flask-lambda\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 rust_todo_test.rs (92 tokens, 26 lines)\n\u2502 \u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u2502 \u251c\u2500\u2500 enum Color\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 trait Drawable\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u251c\u2500\u2500 impl Drawable for Point\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u2514\u2500\u2500 fn main()\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 sql_test.sql (270 tokens, 51 lines)\n\u2502 \u2502 \u251c\u2500\u2500 CREATE TABLE promoters\n\u2502 \u2502 \u251c\u2500\u2500 user_id serial PRIMARY KEY,\n\u2502 \u2502 \u251c\u2500\u2500 type varchar(20) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 username varchar(20) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 password varchar(20) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 email varchar(30) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 phone varchar(20) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 promocode varchar(20),\n\u2502 \u2502 \u251c\u2500\u2500 info json,\n\u2502 \u2502 \u251c\u2500\u2500 going text[],\n\u2502 \u2502 \u251c\u2500\u2500 invites text[],\n\u2502 \u2502 \u251c\u2500\u2500 balance integer NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 rewards text[],\n\u2502 \u2502 \u251c\u2500\u2500 created timestamp\n\u2502 \u2502 \u251c\u2500\u2500 CREATE TABLE events\n\u2502 \u2502 \u251c\u2500\u2500 event_id serial PRIMARY KEY,\n\u2502 \u2502 \u251c\u2500\u2500 name varchar(64) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 date varchar(64) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 location varchar(64) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 performer varchar(64) NOT NULL,\n\u2502 \u2502 \u251c\u2500\u2500 rewards json,\n\u2502 \u2502 \u2514\u2500\u2500 created timestamp\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 standard-app-routing.module.ts (100 tokens, 16 lines)\n\u2502 \u2502 \u2514\u2500\u2500 const routes: Routes = [\n\u2502 \u2502 { path: '', component: HomeComponent },\n\u2502 \u2502 {\n\u2502 \u2502 path: 'heroes',\n\u2502 \u2502 component: HeroesListComponent,\n\u2502 \u2502 children: [\n\u2502 \u2502 { path: ':id', component: HeroDetailComponent },\n\u2502 \u2502 { path: 'new', component: HeroFormComponent },\n\u2502 \u2502 ],\n\u2502 \u2502 },\n\u2502 \u2502 { path: '**', component: PageNotFoundComponent },\n\u2502 \u2502 ];\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.env (190 tokens, 25 lines)\n\u2502 \u2502 \u251c\u2500\u2500 PROMO_PATH\n\u2502 \u2502 \u251c\u2500\u2500 PRODUCTION\n\u2502 \u2502 \u251c\u2500\u2500 SQL_SCHEMA_PATH\n\u2502 \u2502 \u251c\u2500\u2500 DB_LOGS\n\u2502 \u2502 \u251c\u2500\u2500 DB_LOG\n\u2502 \u2502 \u251c\u2500\u2500 PGPASSWORD\n\u2502 \u2502 \u251c\u2500\u2500 PGDATABASE\n\u2502 \u2502 \u251c\u2500\u2500 PGHOST\n\u2502 \u2502 \u251c\u2500\u2500 PGPORT\n\u2502 \u2502 \u251c\u2500\u2500 PGUSER\n\u2502 \u2502 \u251c\u2500\u2500 SERVER_LOG\n\u2502 \u2502 \u251c\u2500\u2500 SERVER_LOGS\n\u2502 \u2502 \u251c\u2500\u2500 API_URL\n\u2502 \u2502 \u251c\u2500\u2500 APP_LOGS\n\u2502 \u2502 \u251c\u2500\u2500 APP_LOG\n\u2502 \u2502 \u251c\u2500\u2500 APP_URL\n\u2502 \u2502 \u251c\u2500\u2500 COGNITO_USER_POOL_ID\n\u2502 \u2502 \u251c\u2500\u2500 COGNITO_APP_CLIENT_ID\n\u2502 \u2502 \u251c\u2500\u2500 AWS_REGION\n\u2502 \u2502 \u2514\u2500\u2500 STRIPE_SECRET_KEY\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 testJsonSchema.json (421 tokens, 48 lines)\n\u2502 \u2502 \u251c\u2500\u2500 $schema: http://json-schema.org/draft-07/schema#\n\u2502 \u2502 \u251c\u2500\u2500 type: object\n\u2502 \u2502 \u251c\u2500\u2500 title: random_test\n\u2502 \u2502 \u2514\u2500\u2500 description: A promoter's activites related to events\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 testPackage.json (349 tokens, 43 lines)\n\u2502 \u2502 \u251c\u2500\u2500 name: 'promo-app'\n\u2502 \u2502 \u251c\u2500\u2500 version: 0.0.0\n\u2502 \u2502 \u251c\u2500\u2500 scripts:\n\u2502 \u2502 \u251c\u2500\u2500 ng: 'ng'\n\u2502 \u2502 \u251c\u2500\u2500 start: 'ng serve'\n\u2502 \u2502 \u251c\u2500\u2500 build: 'ng build'\n\u2502 \u2502 \u251c\u2500\u2500 watch: 'ng build --watch --configuration development'\n\u2502 \u2502 \u2514\u2500\u2500 test: 'ng test'\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 tickets.component.ts (7,160 tokens, 903 lines)\n\u2502 \u251c\u2500\u2500 interface EnrichedTicket extends Ticket\n\u2502 \u251c\u2500\u2500 interface SpinConfig\n\u2502 \u251c\u2500\u2500 interface RotationState\n\u2502 \u251c\u2500\u2500 interface SpeakInput\n\u2502 \u251c\u2500\u2500 const formatSpeakInput = (input: SpeakInput): string =>\n\u2502 \u251c\u2500\u2500 function hourToSpeech(hour: number, minute: number, period: string): string\n\u2502 \u251c\u2500\u2500 export class TicketsComponent implements AfterViewInit\n\u2502 \u251c\u2500\u2500 speak(input: SpeakInput)\n\u2502 \u251c\u2500\u2500 speakEvent(ticket: EnrichedTicket): void\n\u2502 \u251c\u2500\u2500 formatEvent(ticket: EnrichedTicket): string\n\u2502 \u251c\u2500\u2500 speakVenue(ticket: EnrichedTicket): void\n\u2502 \u251c\u2500\u2500 formatDate(date: Date, oneLiner: boolean = false): string\n\u2502 \u251c\u2500\u2500 formatDateForSpeech(date: Date): string\n\u2502 \u251c\u2500\u2500 async spinQRCode(\n\u2502 \u2502 event: PointerEvent,\n\u2502 \u2502 config: SpinConfig = DEFAULT_SPIN_CONFIG\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 private animateRotation(\n\u2502 \u2502 imgElement: HTMLElement,\n\u2502 \u2502 targetRotation: number,\n\u2502 \u2502 config: SpinConfig,\n\u2502 \u2502 cleanup: () => void\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 const animate = (currentTime: number) =>\n\u2502 \u251c\u2500\u2500 requestAnimationFrame(animate)\n\u2502 \u251c\u2500\u2500 cleanup()\n\u2502 \u251c\u2500\u2500 requestAnimationFrame(animate)\n\u2502 \u251c\u2500\u2500 private getNext90Degree(currentRotation: number): number\n\u2502 \u251c\u2500\u2500 private getCurrentRotation(matrix: string): number\n\u2502 \u251c\u2500\u2500 ngAfterViewInit()\n\u2502 \u251c\u2500\u2500 const mouseEnterListener = () =>\n\u2502 \u251c\u2500\u2500 const mouseLeaveListener = () =>\n\u2502 \u251c\u2500\u2500 ngOnDestroy()\n\u2502 \u251c\u2500\u2500 toggleColumn(event: MatOptionSelectionChange, column: string)\n\u2502 \u251c\u2500\u2500 adjustColumns(event?: Event)\n\u2502 \u251c\u2500\u2500 onResize(event: Event)\n\u2502 \u251c\u2500\u2500 async ngOnInit()\n\u2502 \u251c\u2500\u2500 async loadTickets(): Promise<void>\n\u2502 \u251c\u2500\u2500 onDateRangeChange(\n\u2502 \u2502 type: \"start\" | \"end\",\n\u2502 \u2502 event: MatDatepickerInputEvent<Date>\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 applyFilter(column: string): void\n\u2502 \u251c\u2500\u2500 formatDateForComparison(date: Date): string\n\u2502 \u251c\u2500\u2500 constructor(private renderer: Renderer2)\n\u2502 \u251c\u2500\u2500 onFilterChange(event: Event, column: string)\n\u2502 \u251c\u2500\u2500 onLatitudeChange(event: Event)\n\u2502 \u251c\u2500\u2500 onLongitudeChange(event: Event)\n\u2502 \u251c\u2500\u2500 onRadiusChange(event: Event)\n\u2502 \u251c\u2500\u2500 sortData(sort: Sort): void\n\u2502 \u251c\u2500\u2500 onRowClick(event: Event, row: any)\n\u2502 \u251c\u2500\u2500 function isDate(value: Date | undefined | null): value is Date\n\u2502 \u251c\u2500\u2500 function isNonNullNumber(value: number | null): value is number\n\u2502 \u251c\u2500\u2500 function hasLocation(\n\u2502 \u2502 ticket: any\n\u2502 \u2502 ): ticket is\n\u2502 \u251c\u2500\u2500 const create_faker_ticket = async () =>\n\u2502 \u251c\u2500\u2500 function compare(a: number | string, b: number | string, isAsc: boolean)\n\u2502 \u251c\u2500\u2500 function compare_dates(a: Date, b: Date, isAsc: boolean)\n\u2502 \u251c\u2500\u2500 async function mockMoreTickets(): Promise<Ticket[]>\n\u2502 \u251c\u2500\u2500 const mockTickets = async () =>\n\u2502 \u2514\u2500\u2500 const renderQRCode = async (text: String): Promise<string> =>\n\u251c\u2500\u2500 \ud83d\udcc1 group6 (1 folder, 13 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 catastrophic.c (5,339 tokens, 754 lines)\n\u2502 \u2502 \u251c\u2500\u2500 TODO: technically we should use a proper parser\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 int x;\n\u2502 \u2502 \u251c\u2500\u2500 int y;\n\u2502 \u2502 \u251c\u2500\u2500 struct Point getOrigin()\n\u2502 \u2502 \u251c\u2500\u2500 float mul_two_floats(float x1, float x2)\n\u2502 \u2502 \u251c\u2500\u2500 enum days\n\u2502 \u2502 \u251c\u2500\u2500 SUN,\n\u2502 \u2502 \u251c\u2500\u2500 MON,\n\u2502 \u2502 \u251c\u2500\u2500 TUE,\n\u2502 \u2502 \u251c\u2500\u2500 WED,\n\u2502 \u2502 \u251c\u2500\u2500 THU,\n\u2502 \u2502 \u251c\u2500\u2500 FRI,\n\u2502 \u2502 \u251c\u2500\u2500 SAT\n\u2502 \u2502 \u251c\u2500\u2500 enum worker_pool_flags\n\u2502 \u2502 \u251c\u2500\u2500 POOL_BH = 1 << 0,\n\u2502 \u2502 \u251c\u2500\u2500 POOL_MANAGER_ACTIVE = 1 << 1,\n\u2502 \u2502 \u251c\u2500\u2500 POOL_DISASSOCIATED = 1 << 2,\n\u2502 \u2502 \u251c\u2500\u2500 POOL_BH_DRAINING = 1 << 3,\n\u2502 \u2502 \u251c\u2500\u2500 enum worker_flags\n\u2502 \u2502 \u251c\u2500\u2500 WORKER_DIE = 1 << 1,\n\u2502 \u2502 \u251c\u2500\u2500 WORKER_IDLE = 1 << 2,\n\u2502 \u2502 \u251c\u2500\u2500 WORKER_PREP = 1 << 3,\n\u2502 \u2502 \u251c\u2500\u2500 WORKER_CPU_INTENSIVE = 1 << 6,\n\u2502 \u2502 \u251c\u2500\u2500 WORKER_UNBOUND = 1 << 7,\n\u2502 \u2502 \u251c\u2500\u2500 WORKER_REBOUND = 1 << 8,\n\u2502 \u2502 \u251c\u2500\u2500 WORKER_NOT_RUNNING = WORKER_PREP | WORKER_CPU_INTENSIVE |\n\u2502 \u2502 \u2502 WORKER_UNBOUND | WORKER_REBOUND,\n\u2502 \u2502 \u251c\u2500\u2500 struct worker_pool\n\u2502 \u2502 \u251c\u2500\u2500 raw_spinlock_t lock;\n\u2502 \u2502 \u251c\u2500\u2500 int cpu;\n\u2502 \u2502 \u251c\u2500\u2500 int node;\n\u2502 \u2502 \u251c\u2500\u2500 int id;\n\u2502 \u2502 \u251c\u2500\u2500 unsigned int flags;\n\u2502 \u2502 \u251c\u2500\u2500 unsigned long watchdog_ts;\n\u2502 \u2502 \u251c\u2500\u2500 bool cpu_stall;\n\u2502 \u2502 \u251c\u2500\u2500 int nr_running;\n\u2502 \u2502 \u251c\u2500\u2500 struct list_head worklist;\n\u2502 \u2502 \u251c\u2500\u2500 int nr_workers;\n\u2502 \u2502 \u251c\u2500\u2500 int nr_idle;\n\u2502 \u2502 \u251c\u2500\u2500 struct list_head idle_list;\n\u2502 \u2502 \u251c\u2500\u2500 struct timer_list idle_timer;\n\u2502 \u2502 \u251c\u2500\u2500 struct work_struct idle_cull_work;\n\u2502 \u2502 \u251c\u2500\u2500 struct timer_list mayday_timer;\n\u2502 \u2502 \u251c\u2500\u2500 struct worker *manager;\n\u2502 \u2502 \u251c\u2500\u2500 struct list_head workers;\n\u2502 \u2502 \u251c\u2500\u2500 struct ida worker_ida;\n\u2502 \u2502 \u251c\u2500\u2500 struct workqueue_attrs *attrs;\n\u2502 \u2502 \u251c\u2500\u2500 struct hlist_node hash_node;\n\u2502 \u2502 \u251c\u2500\u2500 int refcnt;\n\u2502 \u2502 \u251c\u2500\u2500 struct rcu_head rcu;\n\u2502 \u2502 \u251c\u2500\u2500 long add_two_longs(long x1, long x2)\n\u2502 \u2502 \u251c\u2500\u2500 double multiplyByTwo(double num)\n\u2502 \u2502 \u251c\u2500\u2500 char getFirstCharacter(char *str)\n\u2502 \u2502 \u251c\u2500\u2500 void greet(Person p)\n\u2502 \u2502 \u251c\u2500\u2500 typedef struct\n\u2502 \u2502 \u251c\u2500\u2500 char name[50];\n\u2502 \u2502 \u251c\u2500\u2500 } Person;\n\u2502 \u2502 \u251c\u2500\u2500 typedef struct PersonA\n\u2502 \u2502 \u251c\u2500\u2500 char name[50];\n\u2502 \u2502 \u251c\u2500\u2500 } PersonB;\n\u2502 \u2502 \u251c\u2500\u2500 int main()\n\u2502 \u2502 \u251c\u2500\u2500 int* getArrayStart(int arr[], int size)\n\u2502 \u2502 \u251c\u2500\u2500 long complexFunctionWithMultipleArguments(\n\u2502 \u2502 \u2502 int param1,\n\u2502 \u2502 \u2502 double param2,\n\u2502 \u2502 \u2502 char *param3,\n\u2502 \u2502 \u2502 struct Point point\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 keyPattern *ACLKeyPatternCreate(sds pattern, int flags)\n\u2502 \u2502 \u251c\u2500\u2500 sds sdsCatPatternString(sds base, keyPattern *pat)\n\u2502 \u2502 \u251c\u2500\u2500 static int ACLCheckChannelAgainstList(list *reference, const char *channel, int channellen, int is_pattern)\n\u2502 \u2502 \u251c\u2500\u2500 while((ln = listNext(&li)))\n\u2502 \u2502 \u251c\u2500\u2500 static struct config\n\u2502 \u2502 \u251c\u2500\u2500 aeEventLoop *el;\n\u2502 \u2502 \u251c\u2500\u2500 cliConnInfo conn_info;\n\u2502 \u2502 \u251c\u2500\u2500 const char *hostsocket;\n\u2502 \u2502 \u251c\u2500\u2500 int tls;\n\u2502 \u2502 \u251c\u2500\u2500 struct cliSSLconfig sslconfig;\n\u2502 \u2502 \u251c\u2500\u2500 } config;\n\u2502 \u2502 \u251c\u2500\u2500 class Person\n\u2502 \u2502 \u251c\u2500\u2500 std::string name;\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Person(std::string n) : name(n)\n\u2502 \u2502 \u251c\u2500\u2500 void greet()\n\u2502 \u2502 \u251c\u2500\u2500 void globalGreet()\n\u2502 \u2502 \u251c\u2500\u2500 int main()\n\u2502 \u2502 \u251c\u2500\u2500 void printMessage(const std::string &message)\n\u2502 \u2502 \u251c\u2500\u2500 template<typename T>\n\u2502 \u2502 \u2502 void printVector(const std::vector<T>& vec)\n\u2502 \u2502 \u251c\u2500\u2500 struct foo\n\u2502 \u2502 \u251c\u2500\u2500 char x;\n\u2502 \u2502 \u251c\u2500\u2500 struct foo_in\n\u2502 \u2502 \u251c\u2500\u2500 char* y;\n\u2502 \u2502 \u251c\u2500\u2500 short z;\n\u2502 \u2502 \u251c\u2500\u2500 } inner;\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 int x, y;\n\u2502 \u2502 \u251c\u2500\u2500 Point(int x, int y) : x(x), y(y)\n\u2502 \u2502 \u251c\u2500\u2500 class Animal\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Animal(const std::string &name) : name(name)\n\u2502 \u2502 \u251c\u2500\u2500 virtual void speak() const\n\u2502 \u2502 \u251c\u2500\u2500 virtual ~Animal()\n\u2502 \u2502 \u251c\u2500\u2500 protected:\n\u2502 \u2502 \u251c\u2500\u2500 std::string name;\n\u2502 \u2502 \u251c\u2500\u2500 class Dog : public Animal\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Dog(const std::string &name) : Animal(name)\n\u2502 \u2502 \u251c\u2500\u2500 void speak() const override\n\u2502 \u2502 \u251c\u2500\u2500 class Cat : public Animal\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 Cat(const std::string &name) : Animal(name)\n\u2502 \u2502 \u251c\u2500\u2500 void speak() const override\n\u2502 \u2502 \u251c\u2500\u2500 class CatDog: public Animal, public Cat, public Dog\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 CatDog(const std::string &name) : Animal(name)\n\u2502 \u2502 \u251c\u2500\u2500 int meow_bark()\n\u2502 \u2502 \u251c\u2500\u2500 nb::bytes BuildRnnDescriptor(int input_size, int hidden_size, int num_layers,\n\u2502 \u2502 \u2502 int batch_size, int max_seq_length, float dropout,\n\u2502 \u2502 \u2502 bool bidirectional, bool cudnn_allow_tf32,\n\u2502 \u2502 \u2502 int workspace_size, int reserve_space_size)\n\u2502 \u2502 \u251c\u2500\u2500 int main()\n\u2502 \u2502 \u251c\u2500\u2500 enum ECarTypes\n\u2502 \u2502 \u251c\u2500\u2500 Sedan,\n\u2502 \u2502 \u251c\u2500\u2500 Hatchback,\n\u2502 \u2502 \u251c\u2500\u2500 SUV,\n\u2502 \u2502 \u251c\u2500\u2500 Wagon\n\u2502 \u2502 \u251c\u2500\u2500 ECarTypes GetPreferredCarType()\n\u2502 \u2502 \u251c\u2500\u2500 enum ECarTypes : uint8_t\n\u2502 \u2502 \u251c\u2500\u2500 Sedan,\n\u2502 \u2502 \u251c\u2500\u2500 Hatchback,\n\u2502 \u2502 \u251c\u2500\u2500 SUV = 254,\n\u2502 \u2502 \u251c\u2500\u2500 Hybrid\n\u2502 \u2502 \u251c\u2500\u2500 enum class ECarTypes : uint8_t\n\u2502 \u2502 \u251c\u2500\u2500 Sedan,\n\u2502 \u2502 \u251c\u2500\u2500 Hatchback,\n\u2502 \u2502 \u251c\u2500\u2500 SUV = 254,\n\u2502 \u2502 \u251c\u2500\u2500 Hybrid\n\u2502 \u2502 \u251c\u2500\u2500 void myFunction(string fname, int age)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T> T cos(T)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T> T sin(T)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T> T sqrt(T)\n\u2502 \u2502 \u251c\u2500\u2500 template<typename T> struct VLEN\n\u2502 \u2502 \u251c\u2500\u2500 template<typename T> class arr\n\u2502 \u2502 \u251c\u2500\u2500 private:\n\u2502 \u2502 \u251c\u2500\u2500 static T *ralloc(size_t num)\n\u2502 \u2502 \u251c\u2500\u2500 static void dealloc(T *ptr)\n\u2502 \u2502 \u251c\u2500\u2500 static T *ralloc(size_t num)\n\u2502 \u2502 \u251c\u2500\u2500 static void dealloc(T *ptr)\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 arr() : p(0), sz(0)\n\u2502 \u2502 \u251c\u2500\u2500 arr(size_t n) : p(ralloc(n)), sz(n)\n\u2502 \u2502 \u251c\u2500\u2500 arr(arr &&other)\n\u2502 \u2502 \u2502 : p(other.p), sz(other.sz)\n\u2502 \u2502 \u251c\u2500\u2500 ~arr()\n\u2502 \u2502 \u251c\u2500\u2500 void resize(size_t n)\n\u2502 \u2502 \u251c\u2500\u2500 T &operator[](size_t idx)\n\u2502 \u2502 \u251c\u2500\u2500 T *data()\n\u2502 \u2502 \u251c\u2500\u2500 size_t size() const\n\u2502 \u2502 \u251c\u2500\u2500 class Buffer\n\u2502 \u2502 \u251c\u2500\u2500 private:\n\u2502 \u2502 \u251c\u2500\u2500 void* ptr_;\n\u2502 \u2502 \u251c\u2500\u2500 std::tuple<array, array, array> quantize(\n\u2502 \u2502 \u2502 const array& w,\n\u2502 \u2502 \u2502 int group_size,\n\u2502 \u2502 \u2502 int bits,\n\u2502 \u2502 \u2502 StreamOrDevice s)\n\u2502 \u2502 \u251c\u2500\u2500 #define PY_SSIZE_T_CLEAN\n\u2502 \u2502 \u251c\u2500\u2500 #define PLATFORM_IS_X86\n\u2502 \u2502 \u251c\u2500\u2500 #define PLATFORM_WINDOWS\n\u2502 \u2502 \u251c\u2500\u2500 #define GETCPUID(a, b, c, d, a_inp, c_inp)\n\u2502 \u2502 \u251c\u2500\u2500 static int GetXCR0EAX()\n\u2502 \u2502 \u251c\u2500\u2500 #define GETCPUID(a, b, c, d, a_inp, c_inp)\n\u2502 \u2502 \u251c\u2500\u2500 static int GetXCR0EAX()\n\u2502 \u2502 \u251c\u2500\u2500 asm(\"XGETBV\" : \"=a\"(eax), \"=d\"(edx) : \"c\"(0))\n\u2502 \u2502 \u251c\u2500\u2500 static void ReportMissingCpuFeature(const char* name)\n\u2502 \u2502 \u251c\u2500\u2500 static PyObject *CheckCpuFeatures(PyObject *self, PyObject *args)\n\u2502 \u2502 \u251c\u2500\u2500 static PyObject *CheckCpuFeatures(PyObject *self, PyObject *args)\n\u2502 \u2502 \u251c\u2500\u2500 static PyMethodDef cpu_feature_guard_methods[]\n\u2502 \u2502 \u251c\u2500\u2500 static struct PyModuleDef cpu_feature_guard_module\n\u2502 \u2502 \u251c\u2500\u2500 #define EXPORT_SYMBOL __declspec(dllexport)\n\u2502 \u2502 \u251c\u2500\u2500 #define EXPORT_SYMBOL __attribute__ ((visibility(\"default\")))\n\u2502 \u2502 \u251c\u2500\u2500 EXPORT_SYMBOL PyMODINIT_FUNC PyInit_cpu_feature_guard(void)\n\u2502 \u2502 \u251c\u2500\u2500 typedef struct\n\u2502 \u2502 \u251c\u2500\u2500 GPT2Config config;\n\u2502 \u2502 \u251c\u2500\u2500 ParameterTensors params;\n\u2502 \u2502 \u251c\u2500\u2500 size_t param_sizes[NUM_PARAMETER_TENSORS];\n\u2502 \u2502 \u251c\u2500\u2500 float* params_memory;\n\u2502 \u2502 \u251c\u2500\u2500 size_t num_parameters;\n\u2502 \u2502 \u251c\u2500\u2500 ParameterTensors grads;\n\u2502 \u2502 \u251c\u2500\u2500 float* grads_memory;\n\u2502 \u2502 \u251c\u2500\u2500 float* m_memory;\n\u2502 \u2502 \u251c\u2500\u2500 float* v_memory;\n\u2502 \u2502 \u251c\u2500\u2500 ActivationTensors acts;\n\u2502 \u2502 \u251c\u2500\u2500 size_t act_sizes[NUM_ACTIVATION_TENSORS];\n\u2502 \u2502 \u251c\u2500\u2500 float* acts_memory;\n\u2502 \u2502 \u251c\u2500\u2500 size_t num_activations;\n\u2502 \u2502 \u251c\u2500\u2500 ActivationTensors grads_acts;\n\u2502 \u2502 \u251c\u2500\u2500 float* grads_acts_memory;\n\u2502 \u2502 \u251c\u2500\u2500 int batch_size;\n\u2502 \u2502 \u251c\u2500\u2500 int seq_len;\n\u2502 \u2502 \u251c\u2500\u2500 int* inputs;\n\u2502 \u2502 \u251c\u2500\u2500 int* targets;\n\u2502 \u2502 \u251c\u2500\u2500 float mean_loss;\n\u2502 \u2502 \u2514\u2500\u2500 } GPT2;\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_examples_impl.cc (60 tokens, 10 lines)\n\u2502 \u2502 \u251c\u2500\u2500 PYBIND11_MODULE(cpp_examples, m)\n\u2502 \u2502 \u2514\u2500\u2500 m.def(\"add\", &add<int>, \"An example function to add two numbers.\")\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_examples_impl.cu (37 tokens, 10 lines)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T>\n\u2502 \u2502 \u2502 T add(T a, T b)\n\u2502 \u2502 \u2514\u2500\u2500 template <>\n\u2502 \u2502 int add<int>(int a, int b)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 cpp_examples_impl.h (22 tokens, 6 lines)\n\u2502 \u2502 \u251c\u2500\u2500 template <typename T>\n\u2502 \u2502 \u2502 T add(T a, T b)\n\u2502 \u2502 \u2514\u2500\u2500 template <>\n\u2502 \u2502 int add<int>(int, int)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 fractal.thy (1,712 tokens, 147 lines)\n\u2502 \u2502 \u251c\u2500\u2500 Title: fractal.thy\n\u2502 \u2502 \u251c\u2500\u2500 Author: Isabelle/HOL Contributors!\n\u2502 \u2502 \u251c\u2500\u2500 Author: edge cases r us\n\u2502 \u2502 \u251c\u2500\u2500 theory Simplified_Ring\n\u2502 \u2502 \u251c\u2500\u2500 section \u2039Basic Algebraic Structures\u203a\n\u2502 \u2502 \u251c\u2500\u2500 class everything = nothing + itself\n\u2502 \u2502 \u251c\u2500\u2500 subsection \u2039Monoids\u203a\n\u2502 \u2502 \u251c\u2500\u2500 definition ring_hom :: \"[('a, 'm) ring_scheme, ('b, 'n) ring_scheme] => ('a => 'b) set\"\n\u2502 \u2502 \u251c\u2500\u2500 fun example_fun :: \"nat \u21d2 nat\"\n\u2502 \u2502 \u251c\u2500\u2500 locale monoid =\n\u2502 \u2502 \u2502 fixes G (structure)\n\u2502 \u2502 \u2502 assumes m_closed: \"\u27e6x \u2208 carrier G; y \u2208 carrier G\u27e7 \u27f9 x \u2297 y \u2208 carrier G\"\n\u2502 \u2502 \u2502 and m_assoc: \"\u27e6x \u2208 carrier G; y \u2208 carrier G; z \u2208 carrier G\u27e7 \u27f9 (x \u2297 y) \u2297 z = x \u2297 (y \u2297 z)\"\n\u2502 \u2502 \u2502 and one_closed: \"\ud835\udfed \u2208 carrier G\"\n\u2502 \u2502 \u2502 and l_one: \"x \u2208 carrier G \u27f9 \ud835\udfed \u2297 x = x\"\n\u2502 \u2502 \u2502 and r_one: \"x \u2208 carrier G \u27f9 x \u2297 \ud835\udfed = x\"\n\u2502 \u2502 \u251c\u2500\u2500 subsection \u2039Groups\u203a\n\u2502 \u2502 \u251c\u2500\u2500 locale group = monoid +\n\u2502 \u2502 \u2502 assumes Units_closed: \"x \u2208 Units G \u27f9 x \u2208 carrier G\"\n\u2502 \u2502 \u2502 and l_inv_ex: \"x \u2208 carrier G \u27f9 \u2203 y \u2208 carrier G. y \u2297 x = \ud835\udfed\"\n\u2502 \u2502 \u2502 and r_inv_ex: \"x \u2208 carrier G \u27f9 \u2203 y \u2208 carrier G. x \u2297 y = \ud835\udfed\"\n\u2502 \u2502 \u251c\u2500\u2500 subsection \u2039Rings\u203a\n\u2502 \u2502 \u251c\u2500\u2500 locale ring = abelian_group R + monoid R +\n\u2502 \u2502 \u2502 assumes l_distr: \"\u27e6x \u2208 carrier R; y \u2208 carrier R; z \u2208 carrier R\u27e7 \u27f9 (x \u2295 y) \u2297 z = x \u2297 z \u2295 y \u2297 z\"\n\u2502 \u2502 \u2502 and r_distr: \"\u27e6x \u2208 carrier R; y \u2208 carrier R; z \u2208 carrier R\u27e7 \u27f9 z \u2297 (x \u2295 y) = z \u2297 x \u2295 z \u2297 y\"\n\u2502 \u2502 \u251c\u2500\u2500 locale commutative_ring = ring +\n\u2502 \u2502 \u2502 assumes m_commutative: \"\u27e6x \u2208 carrier R; y \u2208 carrier R\u27e7 \u27f9 x \u2297 y = y \u2297 x\"\n\u2502 \u2502 \u251c\u2500\u2500 locale domain = commutative_ring +\n\u2502 \u2502 \u2502 assumes no_zero_divisors: \"\u27e6a \u2297 b = \ud835\udfec; a \u2208 carrier R; b \u2208 carrier R\u27e7 \u27f9 a = \ud835\udfec \u2228 b = \ud835\udfec\"\n\u2502 \u2502 \u251c\u2500\u2500 locale field = domain +\n\u2502 \u2502 \u2502 assumes inv_ex: \"x \u2208 carrier R - {\ud835\udfec} \u27f9 inv x \u2208 carrier R\"\n\u2502 \u2502 \u251c\u2500\u2500 subsection \u2039Morphisms\u203a\n\u2502 \u2502 \u251c\u2500\u2500 lemma example_lemma: \"example_fun n = n\"\n\u2502 \u2502 \u251c\u2500\u2500 qualified lemma gcd_0:\n\u2502 \u2502 \u2502 \"gcd a 0 = normalize a\"\n\u2502 \u2502 \u251c\u2500\u2500 lemma abelian_monoidI:\n\u2502 \u2502 \u2502 fixes R (structure)\n\u2502 \u2502 \u2502 and f :: \"'edge::{} \u21d2 'case::{}\"\n\u2502 \u2502 \u2502 assumes \"\u22c0x y. \u27e6 x \u2208 carrier R; y \u2208 carrier R \u27e7 \u27f9 x \u2295 y \u2208 carrier R\"\n\u2502 \u2502 \u2502 and \"\ud835\udfec \u2208 carrier R\"\n\u2502 \u2502 \u2502 and \"\u22c0x y z. \u27e6 x \u2208 carrier R; y \u2208 carrier R; z \u2208 carrier R \u27e7 \u27f9 (x \u2295 y) \u2295 z = x \u2295 (y \u2295 z)\"\n\u2502 \u2502 \u2502 shows \"abelian_monoid R\"\n\u2502 \u2502 \u251c\u2500\u2500 lemma euclidean_size_gcd_le1 :\n\u2502 \u2502 \u2502 assumes \"a \u2260 0\"\n\u2502 \u2502 \u2502 shows \"euclidean_size (gcd a b) \u2264 euclidean_size a\"\n\u2502 \u2502 \u251c\u2500\u2500 theorem Residue_theorem:\n\u2502 \u2502 \u2502 fixes S pts::\"complex set\" and f::\"complex \u21d2 complex\"\n\u2502 \u2502 \u2502 and g::\"real \u21d2 complex\"\n\u2502 \u2502 \u2502 assumes \"open S\" \"connected S\" \"finite pts\" and\n\u2502 \u2502 \u2502 holo:\"f holomorphic_on S-pts\" and\n\u2502 \u2502 \u2502 \"valid_path g\" and\n\u2502 \u2502 \u2502 loop:\"pathfinish g = pathstart g\" and\n\u2502 \u2502 \u2502 \"path_image g \u2286 S-pts\" and\n\u2502 \u2502 \u2502 homo:\"\u2200z. (z \u2209 S) \u27f6 winding_number g z = 0\"\n\u2502 \u2502 \u2502 shows \"contour_integral g f = 2 * pi * \ud835\uddc2 *(\u2211p \u2208 pts. winding_number g p * residue f p)\"\n\u2502 \u2502 \u251c\u2500\u2500 corollary fps_coeff_residues_bigo':\n\u2502 \u2502 \u2502 fixes f :: \"complex \u21d2 complex\" and r :: real\n\u2502 \u2502 \u2502 assumes exp: \"f has_fps_expansion F\"\n\u2502 \u2502 \u2502 assumes \"open A\" \"connected A\" \"cball 0 r \u2286 A\" \"r > 0\" \n\u2502 \u2502 \u2502 assumes \"f holomorphic_on A - S\" \"S \u2286 ball 0 r\" \"finite S\" \"0 \u2209 S\"\n\u2502 \u2502 \u2502 assumes \"eventually (\u03bbn. g n = -(\u2211z \u2208 S. residue (\u03bbz. f z / z ^ Suc n) z)) sequentially\"\n\u2502 \u2502 \u2502 (is \"eventually (\u03bbn. _ = -?g' n) _\")\n\u2502 \u2502 \u2502 shows \"(\u03bbn. fps_nth F n - g n) \u2208 O(\u03bbn. 1 / r ^ n)\" (is \"(\u03bbn. ?c n - _) \u2208 O(_)\")\n\u2502 \u2502 \u2514\u2500\u2500 end\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 Microsoft.PowerShell_profile.ps1 (3,346 tokens, 497 lines)\n\u2502 \u2502 \u251c\u2500\u2500 function Log($message)\n\u2502 \u2502 \u251c\u2500\u2500 function Remove-ChocolateyFromPath\n\u2502 \u2502 \u251c\u2500\u2500 function Show-Profiles\n\u2502 \u2502 \u251c\u2500\u2500 function Show-Path\n\u2502 \u2502 \u251c\u2500\u2500 function Show-Error($err)\n\u2502 \u2502 \u251c\u2500\u2500 function Get-ScoopPackagePath\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $PackageName)\n\u2502 \u2502 \u251c\u2500\u2500 function Check-Command\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $Name)\n\u2502 \u2502 \u251c\u2500\u2500 function Add-ToPath\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $PathToAdd)\n\u2502 \u2502 \u251c\u2500\u2500 function Install-Scoop\n\u2502 \u2502 \u251c\u2500\u2500 function Scoop-Install\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $Name,\n\u2502 \u2502 \u2502 $PathToAdd)\n\u2502 \u2502 \u251c\u2500\u2500 function Start-CondaEnv\n\u2502 \u2502 \u251c\u2500\u2500 function Install-PipPackage\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $PackageName)\n\u2502 \u2502 \u251c\u2500\u2500 function Install-VSBuildTools\n\u2502 \u2502 \u251c\u2500\u2500 function Install-Crate\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $CrateName)\n\u2502 \u2502 \u251c\u2500\u2500 function Get-ScoopVersion\n\u2502 \u2502 \u251c\u2500\u2500 function Get-Version\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $ExecutablePath,\n\u2502 \u2502 \u2502 $ExecutableName)\n\u2502 \u2502 \u251c\u2500\u2500 function Show-Requirements\n\u2502 \u2502 \u251c\u2500\u2500 function Measure-Status\n\u2502 \u2502 \u251c\u2500\u2500 param(\n\u2502 \u2502 \u2502 [Parameter(Mandatory = $true)]\n\u2502 \u2502 \u2502 $Name)\n\u2502 \u2502 \u251c\u2500\u2500 function Find-Profile\n\u2502 \u2502 \u251c\u2500\u2500 function Edit-Profile\n\u2502 \u2502 \u251c\u2500\u2500 function Set-Profile\n\u2502 \u2502 \u2514\u2500\u2500 function Show-Profile\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 python_complex_class.py (10 tokens, 2 lines)\n\u2502 \u2502 \u2514\u2500\u2500 class Box(Space[NDArray[Any]])\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ramda__cloneRegExp.js (173 tokens, 9 lines)\n\u2502 \u2502 \u2514\u2500\u2500 export default function _cloneRegExp(pattern)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ramda_prop.js (646 tokens, 85 lines)\n\u2502 \u2502 \u251c\u2500\u2500 /**\n\u2502 \u2502 \u2502 * Returns a function that when supplied an object returns the indicated\n\u2502 \u2502 \u2502 * property of that object, if it exists.\n\u2502 \u2502 \u2502 * @category Object\n\u2502 \u2502 \u2502 * @typedefn Idx = String | Int | Symbol\n\u2502 \u2502 \u2502 * @sig Idx -> {s: a} -> a | Undefined\n\u2502 \u2502 \u2502 * @param {String|Number} p The property name or array index\n\u2502 \u2502 \u2502 * @param {Object} obj The object to query\n\u2502 \u2502 \u2502 * @return {*} The value at `obj.p`.\n\u2502 \u2502 \u2502 */\n\u2502 \u2502 \u2502 var prop = _curry2(function prop(p, obj)\n\u2502 \u2502 \u251c\u2500\u2500 /**\n\u2502 \u2502 \u2502 * Solves equations of the form a * x = b\n\u2502 \u2502 \u2502 * @param {{\n\u2502 \u2502 \u2502 * z: number\n\u2502 \u2502 \u2502 * }} x\n\u2502 \u2502 \u2502 */\n\u2502 \u2502 \u2502 function foo(x)\n\u2502 \u2502 \u251c\u2500\u2500 /**\n\u2502 \u2502 \u2502 * Deconstructs an array field from the input documents to output a document for each element.\n\u2502 \u2502 \u2502 * Each output document is the input document with the value of the array field replaced by the element.\n\u2502 \u2502 \u2502 * @category Object\n\u2502 \u2502 \u2502 * @sig String -> {k: } -> [{k: v}]\n\u2502 \u2502 \u2502 * @param {String} key The key to determine which property of the object should be unwound.\n\u2502 \u2502 \u2502 * @param {Object} object The object containing the list to unwind at the property named by the key.\n\u2502 \u2502 \u2502 * @return {List} A list of new objects, each having the given key associated to an item from the unwound list.\n\u2502 \u2502 \u2502 */\n\u2502 \u2502 \u2502 var unwind = _curry2(function(key, object)\n\u2502 \u2502 \u2514\u2500\u2500 return _map(function(item)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 tensorflow_flags.h (7,628 tokens, 668 lines)\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('test_only_experiment_1')\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('test_only_experiment_2')\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('enable_nested_function_shape_inference'):\n\u2502 \u2502 \u2502 Allow ops such as tf.cond to invoke the ShapeRefiner on their nested functions.\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('enable_quantized_dtypes_training'):\n\u2502 \u2502 \u2502 Set quantized dtypes, like tf.qint8, to be trainable.\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('graph_building_optimization'):\n\u2502 \u2502 \u2502 Optimize graph building for faster tf.function tracing.\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('saved_model_fingerprinting'):\n\u2502 \u2502 \u2502 Add fingerprint to SavedModels.\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('more_stack_traces'):\n\u2502 \u2502 \u2502 Enable experimental code that preserves and propagates graph node stack traces in C++.\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('publish_function_graphs'):\n\u2502 \u2502 \u2502 Enables the publication of partitioned function graphs via StatsPublisherInterface. Disabling this flag can reduce\n\u2502 \u2502 \u2502 memory consumption.\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('enable_aggressive_constant_replication'):\n\u2502 \u2502 \u2502 Replicate constants across CPU devices and even for local CPUs within the same task if available.\n\u2502 \u2502 \u251c\u2500\u2500 TF_DECLARE_FLAG('enable_colocation_key_propagation_in_while_op_lowering'):\n\u2502 \u2502 \u2502 If true, colocation key attributes for the ops will be propagated during while op lowering to switch/merge ops.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_auto_jit'):\n\u2502 \u2502 \u2502 Control compilation of operators into XLA computations on CPU and GPU devices. 0 = use ConfigProto setting; -1 = \n\u2502 \u2502 \u2502 off; 1 = on for things very likely to be improved; 2 = on for everything; (experimental) fusible = only for \n\u2502 \u2502 \u2502 Tensorflow operations that XLA knows how to fuse. If set to single-gpu(<N>) then this resolves to <N> for single-GPU\n\u2502 \u2502 \u2502 graphs (graphs that have at least one node placed on a GPU and no more than one GPU is in use through the entire \n\u2502 \u2502 \u2502 graph) and 0 otherwise. Experimental.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_min_cluster_size'):\n\u2502 \u2502 \u2502 Minimum number of operators in an XLA compilation. Ignored for operators placed on an XLA device or operators \n\u2502 \u2502 \u2502 explicitly marked for compilation.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_max_cluster_size'):\n\u2502 \u2502 \u2502 Maximum number of operators in an XLA compilation.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_cluster_exclude_ops'):\n\u2502 \u2502 \u2502 (experimental) Exclude the operations from auto-clustering. If multiple, separate them with commas. Where, \n\u2502 \u2502 \u2502 Some_other_ops.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_clustering_debug'):\n\u2502 \u2502 \u2502 Dump graphs during XLA compilation.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_cpu_global_jit'):\n\u2502 \u2502 \u2502 Enables global JIT compilation for CPU via SessionOptions.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_clustering_fuel'):\n\u2502 \u2502 \u2502 Places an artificial limit on the number of ops marked as eligible for clustering.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_disable_deadness_safety_checks_for_debugging'):\n\u2502 \u2502 \u2502 Disable deadness related safety checks when clustering (this is unsound).\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_disable_resource_variable_safety_checks_for_debugging'):\n\u2502 \u2502 \u2502 Disable resource variables related safety checks when clustering (this is unsound).\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_deterministic_cluster_names'):\n\u2502 \u2502 \u2502 Causes the function names assigned by auto clustering to be deterministic from run to run.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_persistent_cache_directory'):\n\u2502 \u2502 \u2502 If non-empty, JIT-compiled executables are saved to and loaded from the specified file system directory path. \n\u2502 \u2502 \u2502 Empty by default.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_persistent_cache_device_types'):\n\u2502 \u2502 \u2502 If non-empty, the persistent cache will only be used for the specified devices (comma separated). Each device type\n\u2502 \u2502 \u2502 should be able to be converted to.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_persistent_cache_read_only'):\n\u2502 \u2502 \u2502 If true, the persistent cache will be read-only.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_disable_strict_signature_checks'):\n\u2502 \u2502 \u2502 If true, entires loaded into the XLA compile cache will not have their signatures checked strictly. Defaults to \n\u2502 \u2502 \u2502 false.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_persistent_cache_prefix'):\n\u2502 \u2502 \u2502 Specifies the persistance cache prefix. Default is.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_sparse_core_disable_table_stacking'):\n\u2502 \u2502 \u2502 Disable table stacking for all the tables passed to the SparseCore mid level API.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_sparse_core_minibatch_max_division_level'):\n\u2502 \u2502 \u2502 Max level of division to split input data into minibatches.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_sparse_core_stacking_mem_limit_bytes'):\n\u2502 \u2502 \u2502 If non-zero, limits the size of the activations for a given table to be below these many bytes.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_sparse_core_stacking_table_shard_limit_bytes'):\n\u2502 \u2502 \u2502 If non-zero, limits the size of any table shard to be below these many bytes.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('always_specialize')\n\u2502 \u2502 \u251c\u2500\u2500 Flag('cost_driven_async_parallel_for')\n\u2502 \u2502 \u251c\u2500\u2500 Flag('enable_crash_reproducer')\n\u2502 \u2502 \u251c\u2500\u2500 Flag('log_query_of_death')\n\u2502 \u2502 \u251c\u2500\u2500 Flag('vectorize')\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_enable_lazy_compilation')\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_print_cluster_outputs'):\n\u2502 \u2502 \u2502 If true then insert Print nodes to print out values produced by XLA clusters.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_check_cluster_input_numerics'):\n\u2502 \u2502 \u2502 If true then insert CheckNumerics nodes to check all cluster inputs.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_check_cluster_output_numerics'):\n\u2502 \u2502 \u2502 If true then insert CheckNumerics nodes to check all cluster outputs.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_disable_constant_folding'):\n\u2502 \u2502 \u2502 If true then disables constant folding on TF graph before XLA compilation.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_disable_full_embedding_pipelining'):\n\u2502 \u2502 \u2502 If true then disables full embedding pipelining and instead use strict SparseCore / TensorCore sequencing.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_embedding_parallel_iterations'):\n\u2502 \u2502 \u2502 If >0 then use this many parallel iterations in embedding_pipelining and embedding_sequency. By default, use the \n\u2502 \u2502 \u2502 parallel_iterations on the original model WhileOp.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_compile_on_demand'):\n\u2502 \u2502 \u2502 Switch a device into 'on-demand' mode, where instead of autoclustering ops are compiled one by one just-in-time.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_enable_xla_devices'):\n\u2502 \u2502 \u2502 Generate XLA_* devices, where placing a computation on such a device forces compilation by XLA. Deprecated.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_always_defer_compilation')\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_async_compilation'):\n\u2502 \u2502 \u2502 When lazy compilation is enabled, asynchronous compilation starts the cluster compilation in the background, and \n\u2502 \u2502 \u2502 the fallback path is executed until the compilation has finished.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_use_device_api_for_xla_launch'):\n\u2502 \u2502 \u2502 If true, uses Device API (PjRt) for single device compilation and execution of functions marked for JIT \n\u2502 \u2502 \u2502 compilation i.e. jit_compile=True. Defaults to false.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_use_device_api_for_compile_on_demand'):\n\u2502 \u2502 \u2502 If true, uses Device API (PjRt) for compiling and executing ops one by one in 'on-demand' mode. Defaults to false.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_use_device_api_for_auto_jit'):\n\u2502 \u2502 \u2502 If true, uses Device API (PjRt) for compilation and execution when auto-clustering is enabled. Defaults to false.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_use_device_api'):\n\u2502 \u2502 \u2502 If true, uses Device API (PjRt) for compilation and execution of ops one-by-one in 'on-demand' mode, for functions\n\u2502 \u2502 \u2502 marked for JIT compilation, or when auto-clustering is enabled. Defaults to false.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_enable_device_api_for_gpu'):\n\u2502 \u2502 \u2502 If true, uses Device API (PjRt) for TF GPU device. This is a helper flag so that individual tests can turn on PjRt\n\u2502 \u2502 \u2502 for GPU specifically.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_xla_call_module_disabled_checks'):\n\u2502 \u2502 \u2502 A comma-sepated list of directives specifying the safety checks to be skipped when compiling XlaCallModuleOp. See \n\u2502 \u2502 \u2502 the op documentation for the recognized values.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_mlir_enable_mlir_bridge'):\n\u2502 \u2502 \u2502 Enables experimental MLIR-Based TensorFlow Compiler Bridge.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_mlir_enable_merge_control_flow_pass'):\n\u2502 \u2502 \u2502 Enables MergeControlFlow pass for MLIR-Based TensorFlow Compiler Bridge.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_mlir_enable_convert_control_to_data_outputs_pass'):\n\u2502 \u2502 \u2502 Enables MLIR-Based TensorFlow Compiler Bridge.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_mlir_enable_strict_clusters'):\n\u2502 \u2502 \u2502 Do not allow clusters that have cyclic control dependencies.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_mlir_enable_multiple_local_cpu_devices'):\n\u2502 \u2502 \u2502 Enable multiple local CPU devices. CPU ops which are outside compiled inside the tpu cluster will also be \n\u2502 \u2502 \u2502 replicated across multiple cpu devices.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_dump_graphs_in_tfg'):\n\u2502 \u2502 \u2502 When tf_dump_graphs_in_tfg is true, graphs after transformations are dumped in MLIR TFG dialect and not in \n\u2502 \u2502 \u2502 GraphDef.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_mlir_enable_generic_outside_compilation'):\n\u2502 \u2502 \u2502 Enables OutsideCompilation passes for MLIR-Based TensorFlow Generic Compiler Bridge.\n\u2502 \u2502 \u251c\u2500\u2500 Flag('tf_mlir_enable_tpu_variable_runtime_reformatting_pass'):\n\u2502 \u2502 \u2502 Enables TPUVariableRuntimeReformatting pass for MLIR-Based TensorFlow Compiler Bridge. This enables weight update \n\u2502 \u2502 \u2502 sharding and creates TPUReshardVariables ops.\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('test_only_experiment_1')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('test_only_experiment_2')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('enable_nested_function_shape_inference')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('enable_quantized_dtypes_training')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('graph_building_optimization')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('op_building_optimization')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('saved_model_fingerprinting')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('tf_shape_default_int64')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('more_stack_traces')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('publish_function_graphs')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('enable_aggressive_constant_replication')\n\u2502 \u2502 \u251c\u2500\u2500 TF_PY_DECLARE_FLAG('enable_colocation_key_propagation_in_while_op_lowering')\n\u2502 \u2502 \u251c\u2500\u2500 #define TENSORFLOW_CORE_CONFIG_FLAG_DEFS_H_\n\u2502 \u2502 \u251c\u2500\u2500 class Flags\n\u2502 \u2502 \u251c\u2500\u2500 public:\n\u2502 \u2502 \u251c\u2500\u2500 bool SetterForXlaAutoJitFlag(const string& value)\n\u2502 \u2502 \u251c\u2500\u2500 bool SetterForXlaCallModuleDisabledChecks(const string& value)\n\u2502 \u2502 \u251c\u2500\u2500 void AppendMarkForCompilationPassFlagsInternal(std::vector<Flag>* flag_list)\n\u2502 \u2502 \u251c\u2500\u2500 void AllocateAndParseJitRtFlags()\n\u2502 \u2502 \u251c\u2500\u2500 void AllocateAndParseFlags()\n\u2502 \u2502 \u251c\u2500\u2500 void ResetFlags()\n\u2502 \u2502 \u251c\u2500\u2500 bool SetXlaAutoJitFlagFromFlagString(const string& value)\n\u2502 \u2502 \u251c\u2500\u2500 BuildXlaOpsPassFlags* GetBuildXlaOpsPassFlags()\n\u2502 \u2502 \u251c\u2500\u2500 MarkForCompilationPassFlags* GetMarkForCompilationPassFlags()\n\u2502 \u2502 \u251c\u2500\u2500 XlaSparseCoreFlags* GetXlaSparseCoreFlags()\n\u2502 \u2502 \u251c\u2500\u2500 XlaDeviceFlags* GetXlaDeviceFlags()\n\u2502 \u2502 \u251c\u2500\u2500 XlaOpsCommonFlags* GetXlaOpsCommonFlags()\n\u2502 \u2502 \u251c\u2500\u2500 XlaCallModuleFlags* GetXlaCallModuleFlags()\n\u2502 \u2502 \u251c\u2500\u2500 MlirCommonFlags* GetMlirCommonFlags()\n\u2502 \u2502 \u251c\u2500\u2500 void ResetJitCompilerFlags()\n\u2502 \u2502 \u251c\u2500\u2500 const JitRtFlags& GetJitRtFlags()\n\u2502 \u2502 \u251c\u2500\u2500 ConfigProto::Experimental::MlirBridgeRollout GetMlirBridgeRolloutState(\n\u2502 \u2502 \u2502 std::optional<const ConfigProto> config_proto)\n\u2502 \u2502 \u251c\u2500\u2500 void AppendMarkForCompilationPassFlags(std::vector<Flag>* flag_list)\n\u2502 \u2502 \u251c\u2500\u2500 void DisableXlaCompilation()\n\u2502 \u2502 \u251c\u2500\u2500 void EnableXlaCompilation()\n\u2502 \u2502 \u251c\u2500\u2500 bool FailOnXlaCompilation()\n\u2502 \u2502 \u251c\u2500\u2500 #define TF_PY_DECLARE_FLAG(flag_name)\n\u2502 \u2502 \u2514\u2500\u2500 PYBIND11_MODULE(flags_pybind, m)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.f (181 tokens, 30 lines)\n\u2502 \u2502 \u251c\u2500\u2500 MODULE basic_mod\n\u2502 \u2502 \u251c\u2500\u2500 TYPE :: person\n\u2502 \u2502 \u2502 CHARACTER(LEN=50) :: name\n\u2502 \u2502 \u2502 INTEGER :: age\n\u2502 \u2502 \u2502 END TYPE person\n\u2502 \u2502 \u251c\u2500\u2500 SUBROUTINE short_hello(happy, path)\n\u2502 \u2502 \u2502 END SUBROUTINE short_hello\n\u2502 \u2502 \u251c\u2500\u2500 SUBROUTINE long_hello(\n\u2502 \u2502 \u2502 p,\n\u2502 \u2502 \u2502 message\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u2502 END SUBROUTINE long_hello\n\u2502 \u2502 \u251c\u2500\u2500 END MODULE basic_mod\n\u2502 \u2502 \u2514\u2500\u2500 PROGRAM HelloFortran\n\u2502 \u2502 END PROGRAM HelloFortran\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 torch.rst (60 tokens, 8 lines)\n\u2502 \u2502 \u251c\u2500\u2500 # libtorch (C++-only)\n\u2502 \u2502 \u2514\u2500\u2500 - Building libtorch using Python\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 yc.html (9,063 tokens, 169 lines)\n\u251c\u2500\u2500 \ud83d\udcc1 group7 (1 folder, 3 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 absurdly_huge.jsonl (8,347 tokens, 126 lines)\n\u2502 \u2502 \u251c\u2500\u2500 SMILES: str\n\u2502 \u2502 \u251c\u2500\u2500 Yield: float\n\u2502 \u2502 \u251c\u2500\u2500 Temperature: int\n\u2502 \u2502 \u251c\u2500\u2500 Pressure: float\n\u2502 \u2502 \u251c\u2500\u2500 Solvent: str\n\u2502 \u2502 \u251c\u2500\u2500 Success: bool\n\u2502 \u2502 \u251c\u2500\u2500 Reaction_Conditions: dict\n\u2502 \u2502 \u251c\u2500\u2500 Products: list\n\u2502 \u2502 \u2514\u2500\u2500 EdgeCasesMissed: None\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 angular_crud.ts (1,192 tokens, 148 lines)\n\u2502 \u2502 \u251c\u2500\u2500 interface DBCommand<T = any>\n\u2502 \u2502 \u251c\u2500\u2500 export class IndexedDbService\n\u2502 \u2502 \u251c\u2500\u2500 constructor()\n\u2502 \u2502 \u251c\u2500\u2500 async create_connection({ db_name = 'client_db', table_name }: DBCommand)\n\u2502 \u2502 \u251c\u2500\u2500 upgrade(db)\n\u2502 \u2502 \u251c\u2500\u2500 async create_model({ db_name, table_name, model }: DBCommand)\n\u2502 \u2502 \u251c\u2500\u2500 verify_matching({ table_name, model })\n\u2502 \u2502 \u251c\u2500\u2500 async read_key({ db_name, table_name, key }: DBCommand)\n\u2502 \u2502 \u251c\u2500\u2500 async update_model({ db_name, table_name, model }: DBCommand)\n\u2502 \u2502 \u251c\u2500\u2500 verify_matching({ table_name, model })\n\u2502 \u2502 \u251c\u2500\u2500 async delete_key({ db_name, table_name, key }: DBCommand)\n\u2502 \u2502 \u251c\u2500\u2500 async list_table({\n\u2502 \u2502 \u2502 db_name,\n\u2502 \u2502 \u2502 table_name,\n\u2502 \u2502 \u2502 where,\n\u2502 \u2502 \u2502 }: DBCommand & { where?: { : string | number } })\n\u2502 \u2502 \u2514\u2500\u2500 async search_table(criteria: SearchCriteria)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 structure.py (400 tokens, 92 lines)\n\u2502 \u251c\u2500\u2500 @runtime_checkable\n\u2502 \u2502 class DataClass(Protocol)\n\u2502 \u251c\u2500\u2500 __dataclass_fields__: dict\n\u2502 \u251c\u2500\u2500 class MyInteger(Enum)\n\u2502 \u251c\u2500\u2500 ONE = 1\n\u2502 \u251c\u2500\u2500 TWO = 2\n\u2502 \u251c\u2500\u2500 THREE = 42\n\u2502 \u251c\u2500\u2500 class MyString(Enum)\n\u2502 \u251c\u2500\u2500 AAA1 = \"aaa\"\n\u2502 \u251c\u2500\u2500 BB_B = \"\"\"edge\n\u2502 \u2502 case\"\"\"\n\u2502 \u251c\u2500\u2500 @dataclass(frozen=True, slots=True, kw_only=True)\n\u2502 \u2502 class Tool\n\u2502 \u251c\u2500\u2500 name: str\n\u2502 \u251c\u2500\u2500 description: str\n\u2502 \u251c\u2500\u2500 input_model: DataClass\n\u2502 \u251c\u2500\u2500 output_model: DataClass\n\u2502 \u251c\u2500\u2500 def execute(self, *args, **kwargs)\n\u2502 \u251c\u2500\u2500 @property\n\u2502 \u2502 def edge_case(self) -> str\n\u2502 \u251c\u2500\u2500 def should_still_see_me(self, x: bool = True) -> \"Tool\"\n\u2502 \u251c\u2500\u2500 @dataclass\n\u2502 \u2502 class MyInput[T]\n\u2502 \u251c\u2500\u2500 name: str\n\u2502 \u251c\u2500\u2500 rank: MyInteger\n\u2502 \u251c\u2500\u2500 serial_n: int\n\u2502 \u251c\u2500\u2500 @dataclass\n\u2502 \u2502 class Thingy\n\u2502 \u251c\u2500\u2500 is_edge_case: bool\n\u2502 \u251c\u2500\u2500 @dataclass\n\u2502 \u2502 class MyOutput\n\u2502 \u251c\u2500\u2500 orders: str\n\u2502 \u251c\u2500\u2500 class MyTools(Enum)\n\u2502 \u251c\u2500\u2500 TOOL_A = Tool(\n\u2502 \u2502 name=\"complicated\",\n\u2502 \u2502 description=\"edge case!\",\n\u2502 \u2502 input_model=MyInput[Thingy],\n\u2502 \u2502 output_model=MyOutput,\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 TOOL_B = Tool(\n\u2502 \u2502 name=\"\"\"super\n\u2502 \u2502 complicated\n\u2502 \u2502 \"\"\",\n\u2502 \u2502 description=\"edge case!\",\n\u2502 \u2502 input_model=MyInput,\n\u2502 \u2502 output_model=MyOutput,\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 @final\n\u2502 \u2502 class dtype(Generic[_DTypeScalar_co])\n\u2502 \u2514\u2500\u2500 names: None | tuple\n\u2514\u2500\u2500 \ud83d\udcc1 group_lisp (1 folder, 4 files) \n \u251c\u2500\u2500 \ud83d\udcc4 clojure_test.clj (682 tokens, 85 lines)\n \u2502 \u251c\u2500\u2500 defprotocol P\n \u2502 \u251c\u2500\u2500 defrecord Person\n \u2502 \u251c\u2500\u2500 defn -main\n \u2502 \u251c\u2500\u2500 ns bion.likes_trees\n \u2502 \u251c\u2500\u2500 def repo-url\n \u2502 \u251c\u2500\u2500 defn config\n \u2502 \u251c\u2500\u2500 defmacro with-os\n \u2502 \u2514\u2500\u2500 defrecord SetFullElement\n \u251c\u2500\u2500 \ud83d\udcc4 LispTest.lisp (25 tokens, 6 lines)\n \u2502 \u251c\u2500\u2500 defstruct person\n \u2502 \u2514\u2500\u2500 defun greet\n \u251c\u2500\u2500 \ud83d\udcc4 racket_struct.rkt (14 tokens, 1 line)\n \u2502 \u2514\u2500\u2500 struct point\n \u2514\u2500\u2500 \ud83d\udcc4 test_scheme.scm (360 tokens, 44 lines)\n \u251c\u2500\u2500 define topological-sort\n \u251c\u2500\u2500 define table\n \u251c\u2500\u2500 define queue\n \u251c\u2500\u2500 define result\n \u251c\u2500\u2500 define set-up\n \u2514\u2500\u2500 define traverse\n\ntree_plus v(1.0.59) ignore=('group_todo',) globs=() syntax=False paths=('tests/more_languages',)\n9 folder(s), 84 file(s), 7,158 line(s), 68,018 token(s) in 0.77 second(s).\n\n```\n<!-- t2-end -->\n## Got Globs?\n\n<!-- t3-start -->\n```sh\ntree_plus -g \"*.*s\" -i group_todo tests/more_languages\n\ud83d\udcc1 more_languages (7 folders, 17 files) \n\u251c\u2500\u2500 \ud83d\udcc1 group1 (1 folder, 2 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 test.js (757 tokens, 154 lines)\n\u2502 \u2502 \u251c\u2500\u2500 class MyClass\n\u2502 \u2502 \u251c\u2500\u2500 myMethod()\n\u2502 \u2502 \u251c\u2500\u2500 async asyncMethod(a, b)\n\u2502 \u2502 \u251c\u2500\u2500 methodWithDefaultParameters(a = 5, b = 10)\n\u2502 \u2502 \u251c\u2500\u2500 multilineMethod(\n\u2502 \u2502 \u2502 c,\n\u2502 \u2502 \u2502 d\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 multilineMethodWithDefaults(\n\u2502 \u2502 \u2502 t = \"tree\",\n\u2502 \u2502 \u2502 p = \"plus\"\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 function myFunction(param1, param2)\n\u2502 \u2502 \u251c\u2500\u2500 function multilineFunction(\n\u2502 \u2502 \u2502 param1,\n\u2502 \u2502 \u2502 param2\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 const arrowFunction = () =>\n\u2502 \u2502 \u251c\u2500\u2500 const parametricArrow = (a, b) =>\n\u2502 \u2502 \u251c\u2500\u2500 function ()\n\u2502 \u2502 \u251c\u2500\u2500 function outerFunction(outerParam)\n\u2502 \u2502 \u251c\u2500\u2500 function innerFunction(innerParam)\n\u2502 \u2502 \u251c\u2500\u2500 innerFunction(\"inner\")\n\u2502 \u2502 \u251c\u2500\u2500 const myObject = {\n\u2502 \u2502 \u251c\u2500\u2500 myMethod: function (stuff)\n\u2502 \u2502 \u251c\u2500\u2500 let myArrowObject = {\n\u2502 \u2502 \u251c\u2500\u2500 myArrow: ({\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b,\n\u2502 \u2502 \u2502 c,\n\u2502 \u2502 \u2502 }) =>\n\u2502 \u2502 \u251c\u2500\u2500 const myAsyncArrowFunction = async () =>\n\u2502 \u2502 \u251c\u2500\u2500 function functionWithRestParameters(...args)\n\u2502 \u2502 \u251c\u2500\u2500 const namedFunctionExpression = function myNamedFunction()\n\u2502 \u2502 \u251c\u2500\u2500 const multilineArrowFunction = (\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b\n\u2502 \u2502 \u2502 ) =>\n\u2502 \u2502 \u251c\u2500\u2500 function functionReturningFunction()\n\u2502 \u2502 \u251c\u2500\u2500 return function ()\n\u2502 \u2502 \u251c\u2500\u2500 function destructuringOnMultipleLines({\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b,\n\u2502 \u2502 \u2502 })\n\u2502 \u2502 \u251c\u2500\u2500 const arrowFunctionWithDestructuring = ({ a, b }) =>\n\u2502 \u2502 \u251c\u2500\u2500 const multilineDestructuringArrow = ({\n\u2502 \u2502 \u2502 a,\n\u2502 \u2502 \u2502 b,\n\u2502 \u2502 \u2502 }) =>\n\u2502 \u2502 \u251c\u2500\u2500 async function asyncFunctionWithErrorHandling()\n\u2502 \u2502 \u251c\u2500\u2500 class Car\n\u2502 \u2502 \u251c\u2500\u2500 constructor(brand)\n\u2502 \u2502 \u251c\u2500\u2500 present()\n\u2502 \u2502 \u251c\u2500\u2500 class Model extends Car\n\u2502 \u2502 \u251c\u2500\u2500 constructor(brand, mod)\n\u2502 \u2502 \u251c\u2500\u2500 super(brand)\n\u2502 \u2502 \u2514\u2500\u2500 show()\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test.ts (832 tokens, 165 lines)\n\u2502 \u251c\u2500\u2500 type MyType\n\u2502 \u251c\u2500\u2500 interface MyInterface\n\u2502 \u251c\u2500\u2500 class TsClass\n\u2502 \u251c\u2500\u2500 myMethod()\n\u2502 \u251c\u2500\u2500 myMethodWithArgs(param1: string, param2: number): void\n\u2502 \u251c\u2500\u2500 static myStaticMethod<T>(param: T): T\n\u2502 \u251c\u2500\u2500 multilineMethod(\n\u2502 \u2502 c: number,\n\u2502 \u2502 d: number\n\u2502 \u2502 ): number\n\u2502 \u251c\u2500\u2500 multilineMethodWithDefaults(\n\u2502 \u2502 t: string = \"tree\",\n\u2502 \u2502 p: string = \"plus\"\n\u2502 \u2502 ): string\n\u2502 \u251c\u2500\u2500 export class AdvancedComponent implements MyInterface\n\u2502 \u251c\u2500\u2500 async myAsyncMethod(\n\u2502 \u2502 a: string,\n\u2502 \u2502 b: number,\n\u2502 \u2502 c: string\n\u2502 \u2502 ): Promise<void>\n\u2502 \u251c\u2500\u2500 genericMethod<T, U>(\n\u2502 \u2502 arg1: T,\n\u2502 \u2502 arg2: U\n\u2502 \u2502 ): [T, U]\n\u2502 \u251c\u2500\u2500 export class TicketsComponent implements MyInterface\n\u2502 \u251c\u2500\u2500 async myAsyncMethod({ a, b, c }: { a: String; b: Number; c: String })\n\u2502 \u251c\u2500\u2500 function tsFunction()\n\u2502 \u251c\u2500\u2500 function tsFunctionSigned(\n\u2502 \u2502 param1: number,\n\u2502 \u2502 param2: number\n\u2502 \u2502 ): void\n\u2502 \u251c\u2500\u2500 export default async function tsFunctionComplicated<A, B, C>({\n\u2502 \u2502 a = 1 | 2,\n\u2502 \u2502 b = \"bob\",\n\u2502 \u2502 c = async () => \"charlie\",\n\u2502 \u2502 }: {\n\u2502 \u2502 a: number;\n\u2502 \u2502 b: string;\n\u2502 \u2502 c: () => Promise<string>;\n\u2502 \u2502 }): Promise<string>\n\u2502 \u251c\u2500\u2500 return(\"Standalone function with parameters\")\n\u2502 \u251c\u2500\u2500 const tsArrowFunctionSigned = ({\n\u2502 \u2502 a,\n\u2502 \u2502 b,\n\u2502 \u2502 }: {\n\u2502 \u2502 a: number;\n\u2502 \u2502 b: string;\n\u2502 \u2502 }) =>\n\u2502 \u251c\u2500\u2500 export const tsComplicatedArrow = async ({\n\u2502 \u2502 a = 1 | 2,\n\u2502 \u2502 b = \"bob\",\n\u2502 \u2502 c = async () => \"charlie\",\n\u2502 \u2502 }: {\n\u2502 \u2502 a: number;\n\u2502 \u2502 b: string;\n\u2502 \u2502 c: () => Promise<string>;\n\u2502 \u2502 }): Promise<string> =>\n\u2502 \u251c\u2500\u2500 const arrowFunction = () =>\n\u2502 \u251c\u2500\u2500 const arrow = (a: String, b: Number) =>\n\u2502 \u251c\u2500\u2500 const asyncArrowFunction = async () =>\n\u2502 \u251c\u2500\u2500 const asyncArrow = async (a: String, b: Number) =>\n\u2502 \u251c\u2500\u2500 let weirdArrow = () =>\n\u2502 \u251c\u2500\u2500 const asyncPromiseArrow = async (): Promise<void> =>\n\u2502 \u251c\u2500\u2500 let myWeirdArrowSigned = (x: number): number =>\n\u2502 \u251c\u2500\u2500 class Person\n\u2502 \u251c\u2500\u2500 constructor(private firstName: string, private lastName: string)\n\u2502 \u251c\u2500\u2500 getFullName(): string\n\u2502 \u251c\u2500\u2500 describe(): string\n\u2502 \u251c\u2500\u2500 class Employee extends Person\n\u2502 \u251c\u2500\u2500 constructor(\n\u2502 \u2502 firstName: string,\n\u2502 \u2502 lastName: string,\n\u2502 \u2502 private jobTitle: string\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 super(firstName, lastName)\n\u2502 \u251c\u2500\u2500 describe(): string\n\u2502 \u251c\u2500\u2500 interface Shape\n\u2502 \u2514\u2500\u2500 interface Square extends Shape\n\u251c\u2500\u2500 \ud83d\udcc1 group3 (1 folder, 1 file) \n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 csharp_test.cs (957 tokens, 146 lines)\n\u2502 \u251c\u2500\u2500 public interface IExcelTemplate\n\u2502 \u251c\u2500\u2500 void LoadTemplate(string templateFilePath)\n\u2502 \u251c\u2500\u2500 void LoadData(Dictionary<string, string> data)\n\u2502 \u251c\u2500\u2500 void ModifyCell(string cellName, string value)\n\u2502 \u251c\u2500\u2500 void SaveToFile(string filePath)\n\u2502 \u251c\u2500\u2500 public interface IGreet\n\u2502 \u251c\u2500\u2500 void Greet()\n\u2502 \u251c\u2500\u2500 public enum WeekDays\n\u2502 \u251c\u2500\u2500 public delegate void DisplayMessage(string message)\n\u2502 \u251c\u2500\u2500 public struct Address\n\u2502 \u251c\u2500\u2500 public static class HelperFunctions\n\u2502 \u251c\u2500\u2500 public static void PrintMessage(string message)\n\u2502 \u251c\u2500\u2500 public static int AddNumbers(int a, int b)\n\u2502 \u251c\u2500\u2500 namespace HelloWorldApp\n\u2502 \u251c\u2500\u2500 class Person : IGreet\n\u2502 \u251c\u2500\u2500 public Person(string name, int age)\n\u2502 \u251c\u2500\u2500 public void Greet()\n\u2502 \u251c\u2500\u2500 class HelloWorld\n\u2502 \u251c\u2500\u2500 static void Main(string[] args)\n\u2502 \u251c\u2500\u2500 namespace TemplateToExcelServer.Template\n\u2502 \u251c\u2500\u2500 public interface ITemplateObject\n\u2502 \u251c\u2500\u2500 string[,] GetContent()\n\u2502 \u251c\u2500\u2500 string[] GetContentArray()\n\u2502 \u251c\u2500\u2500 string[] GetFormat()\n\u2502 \u251c\u2500\u2500 int? GetFormatLength()\n\u2502 \u251c\u2500\u2500 TemplateObject SetContent(string[,] Content)\n\u2502 \u251c\u2500\u2500 TemplateObject SetContentArray(string[] value)\n\u2502 \u251c\u2500\u2500 TemplateObject SetFormat(string[] Header)\n\u2502 \u251c\u2500\u2500 TemplateObject SetNameOfReport(\n\u2502 \u2502 ReadOnlyMemory<byte> ReportName,\n\u2502 \u2502 int[] EdgeCase)\n\u2502 \u251c\u2500\u2500 TemplateObject SetSheetName(ReadOnlyMemory<byte> SheetName)\n\u2502 \u251c\u2500\u2500 public class BankAccount(string accountID, string owner)\n\u2502 \u251c\u2500\u2500 public override string ToString() =>\n\u2502 \u251c\u2500\u2500 var IncrementBy = (int source, int increment = 1) =>\n\u2502 \u251c\u2500\u2500 Func<int, int, int> add = (x, y) =>\n\u2502 \u251c\u2500\u2500 button.Click += (sender, args) =>\n\u2502 \u251c\u2500\u2500 public Func<int, int> GetMultiplier(int factor)\n\u2502 \u251c\u2500\u2500 public void Method(\n\u2502 \u2502 int param1,\n\u2502 \u2502 int param2,\n\u2502 \u2502 int param3,\n\u2502 \u2502 int param4,\n\u2502 \u2502 int param5,\n\u2502 \u2502 int param6,\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 System.Net.ServicePointManager.ServerCertificateValidationCallback +=\n\u2502 \u2502 (se, cert, chain, sslerror) =>\n\u2502 \u251c\u2500\u2500 class ServerCertificateValidation\n\u2502 \u251c\u2500\u2500 public bool OnRemoteCertificateValidation(\n\u2502 \u2502 object se,\n\u2502 \u2502 X509Certificate cert,\n\u2502 \u2502 X509Chain chain,\n\u2502 \u2502 SslPolicyErrors sslerror\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 s_downloadButton.Clicked += async (o, e) =>\n\u2502 \u251c\u2500\u2500 [HttpGet, Route(\"DotNetCount\")]\n\u2502 \u2514\u2500\u2500 static public async Task<int> GetDotNetCount(string URL)\n\u251c\u2500\u2500 \ud83d\udcc1 group4 (1 folder, 3 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 haskell_test.hs (414 tokens, 41 lines)\n\u2502 \u2502 \u251c\u2500\u2500 data Person\n\u2502 \u2502 \u251c\u2500\u2500 greet :: Person -> String\n\u2502 \u2502 \u2514\u2500\u2500 resolveVariables ::\n\u2502 \u2502 forall m fragments.\n\u2502 \u2502 (MonadError QErr m, Traversable fragments) =>\n\u2502 \u2502 Options.BackwardsCompatibleNullInNonNullableVariables ->\n\u2502 \u2502 [G.VariableDefinition] ->\n\u2502 \u2502 GH.VariableValues ->\n\u2502 \u2502 [G.Directive G.Name] ->\n\u2502 \u2502 G.SelectionSet fragments G.Name ->\n\u2502 \u2502 m\n\u2502 \u2502 ( [G.Directive Variable],\n\u2502 \u2502 G.SelectionSet fragments Variable\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 rust_test.rs (974 tokens, 188 lines)\n\u2502 \u2502 \u251c\u2500\u2500 enum Days\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 impl Point\n\u2502 \u2502 \u251c\u2500\u2500 fn get_origin() -> Point\n\u2502 \u2502 \u251c\u2500\u2500 struct Person\n\u2502 \u2502 \u251c\u2500\u2500 impl Person\n\u2502 \u2502 \u251c\u2500\u2500 fn greet(&self)\n\u2502 \u2502 \u251c\u2500\u2500 fn add_two_longs(x1: i64, x2: i64) -> i64\n\u2502 \u2502 \u251c\u2500\u2500 fn add_two_longs_longer(\n\u2502 \u2502 \u2502 x1: i64,\n\u2502 \u2502 \u2502 x2: i64,\n\u2502 \u2502 \u2502 ) -> i64\n\u2502 \u2502 \u251c\u2500\u2500 fn multiply_by_two(num: f64) -> f64\n\u2502 \u2502 \u251c\u2500\u2500 fn get_first_character(s: &str) -> Option<char>\n\u2502 \u2502 \u251c\u2500\u2500 trait Drawable\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u251c\u2500\u2500 impl Drawable for Point\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u251c\u2500\u2500 fn main()\n\u2502 \u2502 \u251c\u2500\u2500 pub struct VisibleStruct\n\u2502 \u2502 \u251c\u2500\u2500 mod my_module\n\u2502 \u2502 \u251c\u2500\u2500 pub struct AlsoVisibleStruct<T>(T, T)\n\u2502 \u2502 \u251c\u2500\u2500 macro_rules! say_hello\n\u2502 \u2502 \u251c\u2500\u2500 #\n\u2502 \u2502 \u2502 macro_rules! hello_tree_plus\n\u2502 \u2502 \u251c\u2500\u2500 pub mod lib\n\u2502 \u2502 \u251c\u2500\u2500 pub mod interfaces\n\u2502 \u2502 \u251c\u2500\u2500 mod engine\n\u2502 \u2502 \u251c\u2500\u2500 pub fn flow<S1, S2, S3, S4, E, T, L>(\n\u2502 \u2502 \u2502 source: S1,\n\u2502 \u2502 \u2502 extractor: E,\n\u2502 \u2502 \u2502 inbox: S2,\n\u2502 \u2502 \u2502 transformer: T,\n\u2502 \u2502 \u2502 outbox: S3,\n\u2502 \u2502 \u2502 loader: L,\n\u2502 \u2502 \u2502 sink: &mut S4,\n\u2502 \u2502 \u2502 ) -> Result<(), Box<dyn Error>>\n\u2502 \u2502 \u2502 where\n\u2502 \u2502 \u2502 S1: Extractable,\n\u2502 \u2502 \u2502 S2: Extractable + Loadable,\n\u2502 \u2502 \u2502 S3: Extractable + Loadable,\n\u2502 \u2502 \u2502 S4: Loadable,\n\u2502 \u2502 \u2502 E: Extractor<S1, S2>,\n\u2502 \u2502 \u2502 T: Transformer<S2, S3>,\n\u2502 \u2502 \u2502 L: Loader<S3, S4>\n\u2502 \u2502 \u251c\u2500\u2500 trait Container\n\u2502 \u2502 \u251c\u2500\u2500 fn items(&self) -> impl Iterator<Item = Widget>\n\u2502 \u2502 \u251c\u2500\u2500 trait HttpService\n\u2502 \u2502 \u251c\u2500\u2500 async fn fetch(&self, url: Url) -> HtmlBody\n\u2502 \u2502 \u251c\u2500\u2500 struct Pair<T, U>\n\u2502 \u2502 \u251c\u2500\u2500 trait Transformer<T>\n\u2502 \u2502 \u251c\u2500\u2500 fn transform(&self, input: T) -> T\n\u2502 \u2502 \u251c\u2500\u2500 impl<T: std::ops::Add<Output = T> + Copy> Transformer<T> for Pair<T, T>\n\u2502 \u2502 \u251c\u2500\u2500 fn transform(&self, input: T) -> T\n\u2502 \u2502 \u251c\u2500\u2500 fn main()\n\u2502 \u2502 \u251c\u2500\u2500 async fn handle_get(State(pool): State<PgPool>) -> Result<Html<String>, (StatusCode, String)> \n\u2502 \u2502 \u2502 where\n\u2502 \u2502 \u2502 Bion: Cool\n\u2502 \u2502 \u251c\u2500\u2500 #\n\u2502 \u2502 \u2502 macro_rules! unit\n\u2502 \u2502 \u2514\u2500\u2500 fn insert(\n\u2502 \u2502 &mut self,\n\u2502 \u2502 key: (),\n\u2502 \u2502 value: $unit_dtype,\n\u2502 \u2502 ) -> Result<Option<$unit_dtype>, ETLError>\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 test_fsharp.fs (92 tokens, 27 lines)\n\u2502 \u251c\u2500\u2500 module TestFSharp\n\u2502 \u251c\u2500\u2500 type Person = {\n\u2502 \u251c\u2500\u2500 let add x y =\n\u2502 \u251c\u2500\u2500 let multiply \n\u2502 \u2502 (x: int) \n\u2502 \u2502 (y: int): int =\n\u2502 \u251c\u2500\u2500 let complexFunction\n\u2502 \u2502 (a: int)\n\u2502 \u2502 (b: string)\n\u2502 \u2502 (c: float)\n\u2502 \u2502 : (int * string) option =\n\u2502 \u2514\u2500\u2500 type Result<'T> =\n\u251c\u2500\u2500 \ud83d\udcc1 group5 (1 folder, 8 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app-routing.module.ts (287 tokens, 28 lines)\n\u2502 \u2502 \u251c\u2500\u2500 const routes: Routes = [\n\u2502 \u2502 \u2502 { path: '', redirectTo: 'login', pathMatch: 'full' },\n\u2502 \u2502 \u2502 { path: '*', redirectTo: 'login' },\n\u2502 \u2502 \u2502 { path: 'home', component: HomeComponent },\n\u2502 \u2502 \u2502 { path: 'login', component: LoginComponent },\n\u2502 \u2502 \u2502 { path: 'register', component: RegisterComponent },\n\u2502 \u2502 \u2502 { path: 'events', component: EventsComponent },\n\u2502 \u2502 \u2502 { path: 'invites', component: InvitesComponent },\n\u2502 \u2502 \u2502 { path: 'rewards', component: RewardsComponent },\n\u2502 \u2502 \u2502 { path: 'profile', component: ProfileComponent },\n\u2502 \u2502 \u2502 ];\n\u2502 \u2502 \u2514\u2500\u2500 export class AppRoutingModule\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.component.spec.ts (410 tokens, 47 lines)\n\u2502 \u2502 \u251c\u2500\u2500 describe 'AppComponent'\n\u2502 \u2502 \u251c\u2500\u2500 it should create the app\n\u2502 \u2502 \u251c\u2500\u2500 it should welcome the user\n\u2502 \u2502 \u251c\u2500\u2500 it should welcome 'Jimbo'\n\u2502 \u2502 \u2514\u2500\u2500 it should request login if not logged in\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.component.ts (271 tokens, 45 lines)\n\u2502 \u2502 \u251c\u2500\u2500 export class AppComponent\n\u2502 \u2502 \u251c\u2500\u2500 constructor(\n\u2502 \u2502 \u2502 private http: HttpClient,\n\u2502 \u2502 \u2502 private loginService: LoginService,\n\u2502 \u2502 \u2502 private stripeService: StripeService\n\u2502 \u2502 \u2502 )\n\u2502 \u2502 \u251c\u2500\u2500 constructor(private loginService: LoginService)\n\u2502 \u2502 \u251c\u2500\u2500 checkSession()\n\u2502 \u2502 \u251c\u2500\u2500 async goToEvent(event_id: string)\n\u2502 \u2502 \u2514\u2500\u2500 valInvitedBy(event: any, event_id: string)\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 app.module.ts (374 tokens, 43 lines)\n\u2502 \u2502 \u251c\u2500\u2500 @NgModule({\n\u2502 \u2502 \u2502 declarations: [\n\u2502 \u2502 \u2502 AppComponent,\n\u2502 \u2502 \u2502 HomeComponent,\n\u2502 \u2502 \u2502 LoginComponent,\n\u2502 \u2502 \u2502 RegisterComponent,\n\u2502 \u2502 \u2502 EventsComponent,\n\u2502 \u2502 \u2502 InvitesComponent,\n\u2502 \u2502 \u2502 RewardsComponent,\n\u2502 \u2502 \u2502 ProfileComponent\n\u2502 \u2502 \u2514\u2500\u2500 export class AppModule\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 environment.test.ts (197 tokens, 19 lines)\n\u2502 \u2502 \u251c\u2500\u2500 environment:\n\u2502 \u2502 \u251c\u2500\u2500 production\n\u2502 \u2502 \u251c\u2500\u2500 cognitoUserPoolId\n\u2502 \u2502 \u251c\u2500\u2500 cognitoAppClientId\n\u2502 \u2502 \u2514\u2500\u2500 apiurl\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 rust_todo_test.rs (92 tokens, 26 lines)\n\u2502 \u2502 \u251c\u2500\u2500 TODO: This todo tests parse_todo\n\u2502 \u2502 \u251c\u2500\u2500 enum Color\n\u2502 \u2502 \u251c\u2500\u2500 struct Point\n\u2502 \u2502 \u251c\u2500\u2500 trait Drawable\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u251c\u2500\u2500 impl Drawable for Point\n\u2502 \u2502 \u251c\u2500\u2500 fn draw(&self)\n\u2502 \u2502 \u2514\u2500\u2500 fn main()\n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 standard-app-routing.module.ts (100 tokens, 16 lines)\n\u2502 \u2502 \u2514\u2500\u2500 const routes: Routes = [\n\u2502 \u2502 { path: '', component: HomeComponent },\n\u2502 \u2502 {\n\u2502 \u2502 path: 'heroes',\n\u2502 \u2502 component: HeroesListComponent,\n\u2502 \u2502 children: [\n\u2502 \u2502 { path: ':id', component: HeroDetailComponent },\n\u2502 \u2502 { path: 'new', component: HeroFormComponent },\n\u2502 \u2502 ],\n\u2502 \u2502 },\n\u2502 \u2502 { path: '**', component: PageNotFoundComponent },\n\u2502 \u2502 ];\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 tickets.component.ts (7,160 tokens, 903 lines)\n\u2502 \u251c\u2500\u2500 interface EnrichedTicket extends Ticket\n\u2502 \u251c\u2500\u2500 interface SpinConfig\n\u2502 \u251c\u2500\u2500 interface RotationState\n\u2502 \u251c\u2500\u2500 interface SpeakInput\n\u2502 \u251c\u2500\u2500 const formatSpeakInput = (input: SpeakInput): string =>\n\u2502 \u251c\u2500\u2500 function hourToSpeech(hour: number, minute: number, period: string): string\n\u2502 \u251c\u2500\u2500 export class TicketsComponent implements AfterViewInit\n\u2502 \u251c\u2500\u2500 speak(input: SpeakInput)\n\u2502 \u251c\u2500\u2500 speakEvent(ticket: EnrichedTicket): void\n\u2502 \u251c\u2500\u2500 formatEvent(ticket: EnrichedTicket): string\n\u2502 \u251c\u2500\u2500 speakVenue(ticket: EnrichedTicket): void\n\u2502 \u251c\u2500\u2500 formatDate(date: Date, oneLiner: boolean = false): string\n\u2502 \u251c\u2500\u2500 formatDateForSpeech(date: Date): string\n\u2502 \u251c\u2500\u2500 async spinQRCode(\n\u2502 \u2502 event: PointerEvent,\n\u2502 \u2502 config: SpinConfig = DEFAULT_SPIN_CONFIG\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 private animateRotation(\n\u2502 \u2502 imgElement: HTMLElement,\n\u2502 \u2502 targetRotation: number,\n\u2502 \u2502 config: SpinConfig,\n\u2502 \u2502 cleanup: () => void\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 const animate = (currentTime: number) =>\n\u2502 \u251c\u2500\u2500 requestAnimationFrame(animate)\n\u2502 \u251c\u2500\u2500 cleanup()\n\u2502 \u251c\u2500\u2500 requestAnimationFrame(animate)\n\u2502 \u251c\u2500\u2500 private getNext90Degree(currentRotation: number): number\n\u2502 \u251c\u2500\u2500 private getCurrentRotation(matrix: string): number\n\u2502 \u251c\u2500\u2500 ngAfterViewInit()\n\u2502 \u251c\u2500\u2500 const mouseEnterListener = () =>\n\u2502 \u251c\u2500\u2500 const mouseLeaveListener = () =>\n\u2502 \u251c\u2500\u2500 ngOnDestroy()\n\u2502 \u251c\u2500\u2500 toggleColumn(event: MatOptionSelectionChange, column: string)\n\u2502 \u251c\u2500\u2500 adjustColumns(event?: Event)\n\u2502 \u251c\u2500\u2500 onResize(event: Event)\n\u2502 \u251c\u2500\u2500 async ngOnInit()\n\u2502 \u251c\u2500\u2500 async loadTickets(): Promise<void>\n\u2502 \u251c\u2500\u2500 onDateRangeChange(\n\u2502 \u2502 type: \"start\" | \"end\",\n\u2502 \u2502 event: MatDatepickerInputEvent<Date>\n\u2502 \u2502 )\n\u2502 \u251c\u2500\u2500 applyFilter(column: string): void\n\u2502 \u251c\u2500\u2500 formatDateForComparison(date: Date): string\n\u2502 \u251c\u2500\u2500 constructor(private renderer: Renderer2)\n\u2502 \u251c\u2500\u2500 onFilterChange(event: Event, column: string)\n\u2502 \u251c\u2500\u2500 onLatitudeChange(event: Event)\n\u2502 \u251c\u2500\u2500 onLongitudeChange(event: Event)\n\u2502 \u251c\u2500\u2500 onRadiusChange(event: Event)\n\u2502 \u251c\u2500\u2500 sortData(sort: Sort): void\n\u2502 \u251c\u2500\u2500 onRowClick(event: Event, row: any)\n\u2502 \u251c\u2500\u2500 function isDate(value: Date | undefined | null): value is Date\n\u2502 \u251c\u2500\u2500 function isNonNullNumber(value: number | null): value is number\n\u2502 \u251c\u2500\u2500 function hasLocation(\n\u2502 \u2502 ticket: any\n\u2502 \u2502 ): ticket is\n\u2502 \u251c\u2500\u2500 const create_faker_ticket = async () =>\n\u2502 \u251c\u2500\u2500 function compare(a: number | string, b: number | string, isAsc: boolean)\n\u2502 \u251c\u2500\u2500 function compare_dates(a: Date, b: Date, isAsc: boolean)\n\u2502 \u251c\u2500\u2500 async function mockMoreTickets(): Promise<Ticket[]>\n\u2502 \u251c\u2500\u2500 const mockTickets = async () =>\n\u2502 \u2514\u2500\u2500 const renderQRCode = async (text: String): Promise<string> =>\n\u251c\u2500\u2500 \ud83d\udcc1 group6 (1 folder, 2 files) \n\u2502 \u251c\u2500\u2500 \ud83d\udcc4 ramda__cloneRegExp.js (173 tokens, 9 lines)\n\u2502 \u2502 \u2514\u2500\u2500 export default function _cloneRegExp(pattern)\n\u2502 \u2514\u2500\u2500 \ud83d\udcc4 ramda_prop.js (646 tokens, 85 lines)\n\u2502 \u251c\u2500\u2500 /**\n\u2502 \u2502 * Returns a function that when supplied an object returns the indicated\n\u2502 \u2502 * property of that object, if it exists.\n\u2502 \u2502 * @category Object\n\u2502 \u2502 * @typedefn Idx = String | Int | Symbol\n\u2502 \u2502 * @sig Idx -> {s: a} -> a | Undefined\n\u2502 \u2502 * @param {String|Number} p The property name or array index\n\u2502 \u2502 * @param {Object} obj The object to query\n\u2502 \u2502 * @return {*} The value at `obj.p`.\n\u2502 \u2502 */\n\u2502 \u2502 var prop = _curry2(function prop(p, obj)\n\u2502 \u251c\u2500\u2500 /**\n\u2502 \u2502 * Solves equations of the form a * x = b\n\u2502 \u2502 * @param {{\n\u2502 \u2502 * z: number\n\u2502 \u2502 * }} x\n\u2502 \u2502 */\n\u2502 \u2502 function foo(x)\n\u2502 \u251c\u2500\u2500 /**\n\u2502 \u2502 * Deconstructs an array field from the input documents to output a document for each element.\n\u2502 \u2502 * Each output document is the input document with the value of the array field replaced by the element.\n\u2502 \u2502 * @category Object\n\u2502 \u2502 * @sig String -> {k: } -> [{k: v}]\n\u2502 \u2502 * @param {String} key The key to determine which property of the object should be unwound.\n\u2502 \u2502 * @param {Object} object The object containing the list to unwind at the property named by the key.\n\u2502 \u2502 * @return {List} A list of new objects, each having the given key associated to an item from the unwound list.\n\u2502 \u2502 */\n\u2502 \u2502 var unwind = _curry2(function(key, object)\n\u2502 \u2514\u2500\u2500 return _map(function(item)\n\u2514\u2500\u2500 \ud83d\udcc1 group7 (1 folder, 1 file) \n \u2514\u2500\u2500 \ud83d\udcc4 angular_crud.ts (1,192 tokens, 148 lines)\n \u251c\u2500\u2500 interface DBCommand<T = any>\n \u251c\u2500\u2500 export class IndexedDbService\n \u251c\u2500\u2500 constructor()\n \u251c\u2500\u2500 async create_connection({ db_name = 'client_db', table_name }: DBCommand)\n \u251c\u2500\u2500 upgrade(db)\n \u251c\u2500\u2500 async create_model({ db_name, table_name, model }: DBCommand)\n \u251c\u2500\u2500 verify_matching({ table_name, model })\n \u251c\u2500\u2500 async read_key({ db_name, table_name, key }: DBCommand)\n \u251c\u2500\u2500 async update_model({ db_name, table_name, model }: DBCommand)\n \u251c\u2500\u2500 verify_matching({ table_name, model })\n \u251c\u2500\u2500 async delete_key({ db_name, table_name, key }: DBCommand)\n \u251c\u2500\u2500 async list_table({\n \u2502 db_name,\n \u2502 table_name,\n \u2502 where,\n \u2502 }: DBCommand & { where?: { : string | number } })\n \u2514\u2500\u2500 async search_table(criteria: SearchCriteria)\n\ntree_plus v(1.0.59) ignore=('group_todo',) globs=('*.*s',) syntax=False paths=('tests/more_languages',)\n7 folder(s), 17 file(s), 2,090 line(s), 14,928 token(s) in 0.21 second(s).\n\n```\n<!-- t3-end -->\n\n## Languages Todo:\n\nHelp me **add to** and **priorize** this list of languages to support!\n\n- [Open a `tree_plus` GitHub Issue](https://github.com/bionicles/tree_plus/issues/new), or\n- [Contact Bion on X](https://twitter.com/flesheatingemu)\n\n<!-- t4-start -->\n```sh\ntree_plus tests/more_languages/group_todo\n\ud83d\udcc1 group_todo (1 folder, 12 files) \n\u251c\u2500\u2500 \ud83d\udcc4 AAPLShaders.metal (5,780 tokens, 566 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 crystal_test.cr (48 tokens, 15 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 dart_test.dart (108 tokens, 24 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 elixir_test.exs (39 tokens, 10 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 forward.frag (739 tokens, 87 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 forward.vert (359 tokens, 48 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 nodemon.json (118 tokens, 20 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 sas_test.sas (97 tokens, 22 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 test_setup_py.test (133 tokens, 24 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 testTypings.d.ts (158 tokens, 23 lines)\n\u251c\u2500\u2500 \ud83d\udcc4 vba_test.bas (67 tokens, 16 lines)\n\u2514\u2500\u2500 \ud83d\udcc4 wgsl_test.wgsl (94 tokens, 17 lines)\n\ntree_plus v(1.0.59) ignore=() globs=() syntax=False paths=('tests/more_languages/group_todo',)\n1 folder(s), 12 file(s), 872 line(s), 7,740 token(s) in 0.04 second(s).\n\n```\n<!-- t4-end -->\n\n## Oppose Unfair Business Practices\n\nPlease consider contacting the authorities to report the issue described in this document:\n\n[California OpenAI Complaint - Customer Noncompete Clause](https://www.tinyurl.com/cali-openai-complaint)\n\n_Remember_: **Your Voice Matters!**\n\n## License\n\nMIT or Apache 2.0, at your option.\n",
"bugtrack_url": null,
"license": null,
"summary": "A `tree` util enhanced with tokens, lines, and components.",
"version": "1.0.59",
"project_urls": {
"Homepage": "https://github.com/bionicles/tree_plus/blob/main/README.md",
"Issues": "https://github.com/bionicles/tree_plus/issues",
"documentation": "https://github.com/bionicles/tree_plus/blob/main/README.md",
"repository": "https://www.github.com/bionicles/tree_plus"
},
"split_keywords": [
"tree",
" util",
" cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a2501b333a3bdf50627660698fc226f0de6f6c86d472c2bc81cee06f0b9828fd",
"md5": "3397730a72bb57ff5f19af50c2211073",
"sha256": "a8c23c1a5c519699dcb882ad0ea3256cf2656bab771072ef653991cffa7de7b9"
},
"downloads": -1,
"filename": "tree_plus-1.0.59-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3397730a72bb57ff5f19af50c2211073",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 93200,
"upload_time": "2024-08-09T19:55:25",
"upload_time_iso_8601": "2024-08-09T19:55:25.347164Z",
"url": "https://files.pythonhosted.org/packages/a2/50/1b333a3bdf50627660698fc226f0de6f6c86d472c2bc81cee06f0b9828fd/tree_plus-1.0.59-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8efa451fe4872a25e140b0fddcc77c44fd9f62a94bf7a4ec31787ed8febe7a41",
"md5": "587789f8d080f115d23f6c5492d828c1",
"sha256": "c86e3f3b428fdb1a2c3a60f12956e8c9c8af2a4f76a368b99f6219e1f62b6a00"
},
"downloads": -1,
"filename": "tree_plus-1.0.59.tar.gz",
"has_sig": false,
"md5_digest": "587789f8d080f115d23f6c5492d828c1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 200597,
"upload_time": "2024-08-09T19:55:27",
"upload_time_iso_8601": "2024-08-09T19:55:27.990044Z",
"url": "https://files.pythonhosted.org/packages/8e/fa/451fe4872a25e140b0fddcc77c44fd9f62a94bf7a4ec31787ed8febe7a41/tree_plus-1.0.59.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-09 19:55:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bionicles",
"github_project": "tree_plus",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "tree-plus"
}