A `tree` util enhanced with tokens, lines, and components.
Project description
Tree Plus
A tree
util enhanced with tokens, lines, and components. Why? To see the big picture!
Supported Python Versions:
Supported Operating Systems:
Support Free, Open-Source Software:
pip install -U tree_plus
Example Output:
- Demonstrate Parsed Checkboxes
tree_plus -i tests
๐ tree_plus (5 folders, 26 files)
โฃโโ ๐ .env.test (5 tokens, 1 line)
โ โโโ DEBUG_TREE_PLUS
โฃโโ ๐ .github (2 folders, 3 files)
โ โฃโโ ๐ dependabot.yml (107 tokens, 11 lines)
โ โ โโโ Unsupported YAML Category
โ โโโ ๐ workflows (1 folder, 2 files)
โ โฃโโ ๐ microsoft.yml (323 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 (715 tokens, 88 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 (210 tokens, 50 lines)
โฃโโ ๐ coverage (1 folder, 1 file)
โ โโโ ๐ lcov.info (48,981 tokens, 2,180 lines)
โฃโโ ๐ LICENSE (2,123 tokens, 81 lines)
โฃโโ ๐ Makefile (712 tokens, 105 lines)
โ โฃโโ SHELL := /bin/bash
โ โฃโโ cli
โ โฃโโ library_demo
โ โฃโโ rewrite_demo
โ โฃโโ coverage
โ โฃโโ debug
โ โฃโโ .PHONY: debug_command
โ โฃโโ debug_command: test_parallel
โ โฃโโ test_parallel
โ โฃโโ test_sequential:p
โ โฃโโ test_more_languages
โ โฃโโ test: test_parallel
โ โฃโโ 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
โฃโโ ๐ nodemon.json (140 tokens, 25 lines)
โฃโโ ๐ pyproject.toml (347 tokens, 41 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
โฃโโ ๐ pytest.ini (21 tokens, 5 lines)
โฃโโ ๐ README.md (42,480 tokens, 2,788 lines)
โ โฃโโ # Tree Plus
โ โฃโโ ## Example Output:
โ โฃโโ - [ ] Demonstrate Parsed Checkboxes
โ โฃโโ ## Start Quick!
โ โฃโโ ### Prerequisites
โ โฃโโ ### Install Tree Plus
โ โฃโโ #### PyPI
โ โฃโโ #### Local Hackable Install
โ โฃโโ ### Alias Usage
โ โฃโโ ## Library Usage:
โ โฃโโ ## Moar Languages
โ โฃโโ ## Got Globs?
โ โฃโโ ## Languages Todo:
โ โฃโโ ## Oppose Unfair Business Practices
โ โโโ ## License
โฃโโ ๐ tree_plus_cli.py (973 tokens, 161 lines)
โ โโโ def main(
โ glob: Optional[Tuple[str]],
โ paths: Optional[Union[str, Tuple[str]]],
โ ignore: Tuple[str],
โ override: bool,
โ debug: bool,
โ version: bool,
โ syntax: bool,
โ concise: bool,
โ )
โฃโโ ๐ tree_plus_programs (1 folder, 4 files)
โ โฃโโ ๐ hello_tree_plus.py (528 tokens, 80 lines)
โ โ โฃโโ class ItHappened
โ โ โฃโโ def main()
โ โ โโโ def trees(
โ โ or_: bool,
โ โ it: int,
โ โ didnt: str,
โ โ happen: tuple,
โ โ ) -> ItHappened
โ โฃโโ ๐ rewrite.py (2,340 tokens, 314 lines)
โ โ โฃโโ TODO (Line 218): research various kwargs for huggingface / torch performance
โ โ โฃโโ class ModelName(Enum)
โ โ โฃโโ def rewrite_module(
โ โ โ max_length: int,
โ โ โ fill_context: bool,
โ โ โ input_path: Path,
โ โ โ output_path: Optional[str],
โ โ โ suffix: Optional[str] = ".rs",
โ โ โ )
โ โ โโโ def main(
โ โ fill_context: bool,
โ โ length: int,
โ โ input_path: Path,
โ โ output_path: Optional[click.Path],
โ โ )
โ โฃโโ ๐ stub_tests.py (1,162 tokens, 180 lines)
โ โ โฃโโ TODO (Line 124): fix this path",
โ โ โฃโโ TODO (Line 126): 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[str],
โ โ โ rewrite_ok: bool,
โ โ โ ) -> Tuple[List[str], str, bool]
โ โ โฃโโ def main(
โ โ โ input_path: str,
โ โ โ output_path: Optional[str],
โ โ โ rewrite_ok: bool,
โ โ โ )
โ โ โฃโโ class Vehicle
โ โ โโโ class Car(Vehicle)
โ โโโ ๐ test_stub_tests.py (83 tokens, 20 lines)
โ โฃโโ TODO (Line 1): fix this path
โ โฃโโ TODO (Line 3): 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, 9 files)
โฃโโ ๐ count_tokens_lines.py (868 tokens, 144 lines)
โ โฃโโ TODO (Line 14): show off how well we parse_todo!
โ โฃโโ @dataclass(frozen=True)
โ โ class TokenLineCount
โ โฃโโ def count_tokens_lines(file_path: Union[str, Path]) -> Optional[TokenLineCount]
โ โโโ def add_tokens_lines(
โ lhs_count: TokenLineCount, rhs_count: TokenLineCount
โ ) -> TokenLineCount
โฃโโ ๐ debug.py (167 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 (1,912 tokens, 224 lines)
โ โฃโโ def extract(path: Optional[str] = None) -> str
โ โฃโโ def load(content: Optional[str] = None, path: Optional[str] = None)
โ โฃโโ def extract_version(source_path: Optional[str] = None) -> Tuple[int, int, int]
โ โฃโโ def increment_version(
โ โ source_path: Optional[str] = None,
โ โ sink_path: Optional[str] = None,
โ โ )
โ โฃโโ def run_command(command: Optional[str] = None, debug: bool = False)
โ โฃโโ def replace_readme_section(
โ โ source_path: Optional[str] = None,
โ โ sink_path: Optional[str] = None,
โ โ marker: Optional[str] = None,
โ โ command: Optional[str] = None,
โ โ )
โ โฃโโ def update_readme(source_path: Optional[str] = None, sink_path: Optional[str] = None)
โ โโโ def main()
โฃโโ ๐ engine.py (6,443 tokens, 770 lines)
โ โฃโโ TODO (Line 41): MOVE TIMEOUT_SECONDS TO ENV VAR & CLI INPUT
โ โฃโโ TODO (Line 432): research & decide about globs as paths instead of as filters
โ โฃโโ NOTE (Line 467): here we add directly input file_paths to the amortized glob matches
โ โฃโโ TODO (Line 540): decide if we apply glob patterns to glob paths (currently NO)
โ โฃโโ TODO (Line 584): decide between glob and rglob in _from_glob
โ โฃโโ TODO (Line 591): decide if we need to re-amortize the globs in the glob seed
โ โฃโโ TODO (Line 593): clarify ignore in glob seed context, skipping for now
โ โฃโโ class Category(Enum)
โ โฃโโ @dataclass
โ โ class TreePlus
โ โฃโโ 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 into_rich_tree(self) -> Tree
โ โฃโโ def into_str(self) -> str
โ โฃโโ def render(self)
โ โฃโโ def stats(self) -> str
โ โฃโโ @lru_cache
โ โ def remove_trailing_space(x: str) -> str
โ โฃโโ def tree_to_string(tree: Tree) -> str
โ โฃโโ def clean_string(input_str: str) -> str
โ โฃโโ def safe_print(
โ โ tree: Tree,
โ โ style: Optional[str] = None,
โ โ highlight: bool = True,
โ โ markup: bool = False,
โ โ capturing: bool = False,
โ โ )
โ โฃโโ def _make_rich_tree(label: str) -> Tree
โ โฃโโ def into_rich_tree(*, root: Optional[TreePlus] = None) -> Tree
โ โฃโโ @lru_cache
โ โ def categorize(
โ โ x: Union[Path, Tuple[str], str],
โ โ check_strs_globs: bool = True,
โ โ check_strs_paths: bool = True,
โ โ raise_if_component: bool = True,
โ โ ) -> Category
โ โฃโโ def from_seed(
โ โ maybe_seed_str: Optional[str] = None,
โ โ *,
โ โ maybe_ignore: Optional[Tuple[str, ...]] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[Tuple[str, ...]] = None,
โ โ syntax_highlighting: bool = False,
โ โ override_ignore: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โฃโโ def from_seeds(
โ โ maybe_seed_strs: Optional[Tuple[str]] = None,
โ โ *,
โ โ maybe_ignore: Optional[Tuple[str, ...]] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[Tuple[str, ...]] = None,
โ โ syntax_highlighting: bool = False,
โ โ override_ignore: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โฃโโ def _reduce_forest(
โ โ *,
โ โ forest: Tuple[TreePlus, ...],
โ โ ) -> TreePlus
โ โฃโโ def _map_seeds(
โ โ *,
โ โ seeds: Optional[Tuple[str, ...]] = None,
โ โ maybe_ignore: Optional[Tuple[str, ...]] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[Tuple[str, ...]] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> Tuple[TreePlus, ...]
โ โฃโโ def _from_seed(
โ โ *,
โ โ seed_path: Optional[Path] = None,
โ โ maybe_ignore: Optional[Tuple[str, ...]] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[AmortizedGlobs] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โฃโโ def _add_subtree(
โ โ *,
โ โ root: TreePlus,
โ โ subtree: TreePlus,
โ โ )
โ โฃโโ def _from_glob(
โ โ *,
โ โ pattern: str,
โ โ maybe_ignore: Optional[Tuple[str, ...]] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[AmortizedGlobs] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โฃโโ def _from_folder(
โ โ *,
โ โ folder_path: Path,
โ โ maybe_ignore: Optional[Tuple[str, ...]] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[AmortizedGlobs] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โฃโโ def _from_file(
โ โ *,
โ โ file_path: Path,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โฃโโ def _get_lexer(file_path: Path) -> str
โ โโโ def _syntax_highlight(
โ *,
โ file_path: Path,
โ components: List[str],
โ ) -> Union[List[Syntax], List[str]]
โฃโโ ๐ ignore.py (2,352 tokens, 331 lines)
โ โฃโโ TODO (Line 129): incorporate gitignore
โ โฃโโ def _is_all_str(x: Any) -> bool
โ โฃโโ def can_parse(x) -> bool
โ โฃโโ @lru_cache
โ โ def parse_ignore(
โ โ maybe_ignore_tuple: Optional[Tuple[str]] = None, override: bool = False
โ โ ) -> Optional[Tuple[str, ...]]
โ โฃโโ @lru_cache
โ โ def is_glob(x: str) -> bool
โ โฃโโ @lru_cache
โ โ def parse_globs(
โ โ maybe_globs_tuple: Optional[Tuple[str]] = None,
โ โ ) -> Optional[Tuple[str]]
โ โฃโโ @dataclass(frozen=True)
โ โ class AmortizedGlobs
โ โฃโโ def amortize_globs(
โ โ paths: Tuple[Path, ...], globs: Tuple[str, ...]
โ โ ) -> Optional[AmortizedGlobs]
โ โโโ @lru_cache(maxsize=None)
โ def should_ignore(
โ path: Path,
โ ignore: Optional[Tuple[str, ...]] = DEFAULT_IGNORE,
โ globs: Optional[AmortizedGlobs] = None,
โ ) -> bool
โฃโโ ๐ isabelle_symbols.py (4,084 tokens, 462 lines)
โ โฃโโ @lru_cache
โ โ def _replace_symbol(match: re.Match) -> str
โ โโโ def replace_isabelle_symbols(content: str) -> str
โฃโโ ๐ parse_file.py (22,744 tokens, 2,428 lines)
โ โฃโโ BUG (Line 672): catastrophic backtracking in some c files
โ โฃโโ @lru_cache(maxsize=None)
โ โ def read_file(
โ โ file_path: str,
โ โ raise_exceptions: bool = False,
โ โ n_lines: Optional[int] = None,
โ โ ) -> str
โ โฃโโ def parse_file(file_path: Union[str, Path]) -> List[str]
โ โฃโโ def extract_groups(match: re.Match, named_only: bool = False) -> dict
โ โฃโโ def assemble_tensorflow_flag(
โ โ flag_type: str, flag: str, description: Optional[List[str]] = None
โ โ ) -> str
โ โฃโโ def parse_tensorflow_flags(contents: str) -> List[str]
โ โฃโโ def parse_rst(contents: str) -> List[str]
โ โฃโโ def parse_c(contents: str) -> List[str]
โ โฃโโ @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(contents: str) -> List[str]
โ โฃโโ def parse_fortran(contents: str) -> List[str]
โ โฃโโ def remove_c_comments(contents: str) -> str
โ โฃโโ def parse_ts(contents: str) -> List[str]
โ โฃโโ def remove_py_comments(input_string: str) -> str
โ โฃโโ def parse_py(contents: str) -> List[str]
โ โฃโโ def parse_rb(contents: str) -> List[str]
โ โฃโโ def parse_fsharp(contents: str) -> List[str]
โ โฃโโ def parse_tcl(contents: str) -> List[str]
โ โฃโโ def parse_erl(contents: str) -> List[str]
โ โฃโโ def parse_rs(contents: str) -> List[str]
โ โฃโโ def parse_csv(contents: str, max_leaves=11) -> List[str]
โ โฃโโ def parse_mathematica(contents: str) -> List[str]
โ โฃโโ def parse_r(contents: str) -> List[str]
โ โฃโโ def parse_zig(contents: str) -> List[str]
โ โฃโโ def parse_hs(contents: str) -> List[str]
โ โฃโโ def parse_lisp(content: str) -> List[str]
โ โฃโโ def parse_capnp(contents: str) -> List[str]
โ โฃโโ def parse_grpc(contents: str) -> List[str]
โ โฃโโ def parse_openrpc_json(contents: str) -> List[str]
โ โฃโโ def parse_json_rpc(contents: str) -> List[str]
โ โฃโโ def parse_graphql(contents: str) -> List[str]
โ โฃโโ def format_dependency(name, details)
โ โฃโโ def parse_cargo_toml(contents: str) -> List[str]
โ โฃโโ def parse_pyproject_toml(contents: str) -> List[str]
โ โฃโโ def parse_lean(lean_content: str) -> List[str]
โ โฃโโ def parse_cs(contents: str) -> List[str]
โ โฃโโ def parse_tex(tex_content: str) -> List[str]
โ โฃโโ def parse_go(contents: str) -> List[str]
โ โฃโโ def parse_swift(contents: str) -> List[str]
โ โฃโโ def parse_bash(contents: str) -> List[str]
โ โฃโโ def parse_d_dot_ts(contents: str) -> List[str]
โ โฃโโ def parse_angular_app_module(contents: str) -> List[str]
โ โฃโโ def parse_angular_routes(content: str) -> List[str]
โ โฃโโ def parse_angular_spec(content: str) -> List[str]
โ โฃโโ def parse_environment_ts(contents: str) -> List[str]
โ โฃโโ def parse_dot_env(contents: str) -> List[str]
โ โฃโโ def parse_requirements_txt(contents: str) -> List[str]
โ โฃโโ def parse_json_schema(contents: str) -> List[str]
โ โฃโโ def parse_package_json(contents: str) -> List[str]
โ โฃโโ def parse_makefile(contents: str) -> List[str]
โ โฃโโ def parse_sql(contents: str) -> List[str]
โ โฃโโ def is_openapi_yml(ymls: Tuple[dict]) -> bool
โ โฃโโ def is_k8s_yml(ymls: Tuple[dict]) -> bool
โ โฃโโ def is_ansible_yml(ymls: Tuple[dict]) -> bool
โ โฃโโ def is_github_yml(ymls: Tuple[dict]) -> bool
โ โฃโโ def parse_github_yml(ymls: Tuple[dict]) -> List[str]
โ โฃโโ def parse_k8s(ymls: Tuple[dict]) -> List[str]
โ โฃโโ def parse_ansible(ymls: Tuple[dict]) -> List[str]
โ โฃโโ def parse_openapi_yml(ymls: Tuple[dict]) -> List[str]
โ โฃโโ def parse_yml(contents: str) -> List[str]
โ โฃโโ def parse_db(db_path: str) -> List[str]
โ โฃโโ def dedent_components(components: List[str]) -> List[str]
โ โฃโโ def parse_cbl(content: str) -> List[str]
โ โฃโโ def parse_java(contents: str) -> List[str]
โ โฃโโ def parse_jl(contents: str) -> List[str]
โ โฃโโ def parse_kt(contents: str) -> List[str]
โ โฃโโ def parse_lua(content: str) -> List[str]
โ โฃโโ def parse_objective_c(content: str) -> List[str]
โ โฃโโ def parse_ocaml(content: str) -> List[str]
โ โฃโโ def parse_apl(content: str) -> List[str]
โ โฃโโ def parse_perl(content: str) -> List[str]
โ โฃโโ def parse_php(content: str) -> List[str]
โ โฃโโ def parse_ps1(contents: str) -> List[str]
โ โฃโโ def parse_matlab(content: str) -> List[str]
โ โฃโโ def parse_scala(contents: str) -> List[str]
โ โฃโโ def parse_tf(contents: str) -> List[str]
โ โฃโโ def parse_md(content: str) -> List[str]
โ โฃโโ def parse_txt(content: str) -> List[str]
โ โโโ def parse_markers(content: str) -> List[str]
โฃโโ ๐ scripts (1 folder, 1 file)
โ โโโ ๐ alias_tree_plus.sh (277 tokens, 31 lines)
โ โฃโโ add_alias()
โ โโโ create_conda_env()
โโโ ๐ version.py (18 tokens, 2 lines)
โโโ __version__ = "1.0.40"
tree_plus v(1.0.40) ignore=('tests',) globs=() syntax=False paths=()
5 folder(s), 26 file(s), 0 line(s), 0 token(s) in 0.24 second(s).
- Demonstrate Parsed Checkboxes
Here's how tree_plus --help
looks (-h
and -H
both also work)
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"
Examples:
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
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 Enables Syntax Highlighting (WIP).
-H, -h, --help Show this message and exit.
v(1.0.40) --- https://github.com/bionicles/tree_plus/blob/main/README.md
Start Quick!
Prerequisites
Ensure you have the following tools installed:
Install Tree Plus
PyPI
pip install tree_plus
Local Hackable Install
- Clone the repository and cd into the tree_plus directory
gh repo clone https://github.com/bionicles/tree_plus.git && cd tree_plus
- Install tree_plus using Makefile
make cli
Alternatively, if make
is not installed, use pip
:
pip install -e .[dev]
Now, you can use the tree_plus
command.
- 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
RC_FILE=~/.bash_profile source alias_tree_plus.sh
RC_FILE=~/.bashrc source alias_tree_plus.sh
RC_FILE=~/.zshrc source alias_tree_plus.sh
Alias Usage
Run tree_plus
with a shorter alias:
tp
Reinstall tree_plus
quickly:
tpcli
cd
(change directory) to the TREE_PLUS_PATH
:
cdtp
Run "debug mode" (test runner)
Ensure your rig has a global install of nodemon:
npm install -g nodemon
Watch for changes to auto re-test tree_plus
:
make debug
Library Usage:
Here's how to import the library
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
!)
make library_demo
Moar Languages
tree_plus -i group_todo tests/more_languages
๐ more_languages (8 folders, 77 files)
โฃโโ ๐ group1 (1 folder, 11 files)
โ โฃโโ ๐ addamt.cobol (408 tokens, 41 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 (547 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 (470 tokens, 87 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 (482 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 (998 tokens, 172 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 (682 tokens, 79 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 (84 tokens, 16 lines)
โ โ โฃโโ function HelloWorld.new
โ โ โฃโโ function HelloWorld.greet
โ โ โโโ function say_hello
โ โฃโโ ๐ ObjectiveCTest.m (59 tokens, 16 lines)
โ โ โฃโโ @interface HelloWorld
โ โ โฃโโ @interface HelloWorld -> (void) sayHello
โ โ โฃโโ @implementation HelloWorld
โ โ โฃโโ @implementation HelloWorld -> (void) sayHello
โ โ โโโ void sayHelloWorld()
โ โฃโโ ๐ OcamlTest.ml (53 tokens, 12 lines)
โ โ โฃโโ type color
โ โ โฃโโ class hello
โ โ โฃโโ class hello -> method say_hello
โ โ โโโ let main ()
โ โฃโโ ๐ test.js (755 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)
โ โ โฃโโ 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)
โ โ โโโ show()
โ โโโ ๐ test.ts (871 tokens, 166 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>
โ โฃโโ 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
โ โ )
โ โฃโโ describe(): string
โ โฃโโ interface Shape
โ โโโ interface Square extends Shape
โฃโโ ๐ group2 (1 folder, 8 files)
โ โฃโโ ๐ apl_test.apl (44 tokens, 5 lines)
โ โ โฃโโ :Namespace HelloWorld
โ โ โฃโโ :Namespace HelloWorld -> hello โ 'Hello, World!'
โ โ โโโ :Namespace HelloWorld -> plus โ {โบ+โต}
โ โฃโโ ๐ c_test.c (886 tokens, 142 lines)
โ โ โฃโโ struct Point
โ โ โฃโโ struct Point getOrigin()
โ โ โฃโโ float mul_two_floats(float x1, float x2)
โ โ โฃโโ enum days
โ โ โฃโโ long add_two_longs(long x1, long x2)
โ โ โฃโโ double multiplyByTwo(double num)
โ โ โฃโโ char getFirstCharacter(char *str)
โ โ โฃโโ void greet(Person p)
โ โ โฃโโ typedef struct 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
โ โฃโโ ๐ go_test.go (169 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 map[string]interface{},
โ โ โ callback func(int) error,
โ โ โ ) (resultType, error)
โ โ โฃโโ type resultType struct
โ โ โโโ func main()
โ โฃโโ ๐ PerlTest.pl (75 tokens, 20 lines)
โ โ โฃโโ package PerlTest
โ โ โฃโโ package PerlTest -> sub new
โ โ โฃโโ package PerlTest -> sub hello
โ โ โโโ package PerlTest -> sub say_hello
โ โฃโโ ๐ PhpTest.php (74 tokens, 19 lines)
โ โ โฃโโ class HelloWorld
โ โ โฃโโ class HelloWorld -> function sayHello
โ โ โฃโโ function greet
โ โ โฃโโ class Person
โ โ โโโ class Person -> function __construct
โ โฃโโ ๐ PowershellTest.ps1 (523 tokens, 89 lines)
โ โ โฃโโ function Say-Nothing()
โ โ โฃโโ class Person
โ โ โฃโโ Person([string]$name)
โ โ โฃโโ [string]Greet()
โ โ โฃโโ [string]GreetMany([int]$times)
โ โ โฃโโ [string]GreetWithDetails([string]$greeting, [int]$times)
โ โ โฃโโ [string]GreetMultiline(
โ โ โ [string]$greeting,
โ โ โ [int]$times
โ โ โ )
โ โ โฃโโ NoReturn([int]$times)
โ โ โฃโโ NoReturnNoArgs()
โ โ โฃโโ function Say-Hello([Person]$person)
โ โ โฃโโ function Multi-Hello([Person]$personA, [Person]$personB)
โ โ โฃโโ function Switch-Item
โ โ โฃโโ param ([switch]$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 (
โ โ โ [parameter(Mandatory=$true, ParameterSetName="ID")]
โ โ โ [Int[]]
โ โ โ $UserID,
โ โ โ [parameter(Mandatory=$true, ParameterSetName="Name")]
โ โ โ [String[]]
โ โ โ $UserName)
โ โ โฃโโ filter Get-ErrorLog ([switch]$Message)
โ โ โโโ function global:MultilineSignature(
โ โ [string]$param1,
โ โ [int]$param2,
โ โ [Parameter(Mandatory=$true)]
โ โ [string]$param3
โ โ )
โ โฃโโ ๐ ScalaTest.scala (217 tokens, 41 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
โ โฃโโ Name
โ โฃโโ Age
โ โฃโโ Country
โ โฃโโ City
โ โโโ Email
โฃโโ ๐ group3 (1 folder, 16 files)
โ โฃโโ ๐ bash_test.sh (154 tokens, 23 lines)
โ โ โฃโโ echo_hello_world()
โ โ โฃโโ function fun_echo_hello_world()
โ โ โฃโโ export SECRET
โ โ โฃโโ alias md='make debug'
โ โ โฃโโ add_alias()
โ โ โโโ create_conda_env()
โ โฃโโ ๐ cpp_test.cpp (1,737 tokens, 259 lines)
โ โ โฃโโ class Person
โ โ โฃโโ 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
โ โ โฃโโ 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()
โ โ โฃโโ 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
โ โ โฃโโ ECarTypes GetPreferredCarType()
โ โ โฃโโ enum ECarTypes : uint8_t
โ โ โฃโโ enum class ECarTypes : uint8_t
โ โ โฃโโ 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
โ โ โโโ std::tuple<array, array, array> quantize(
โ โ const array& w,
โ โ int group_size,
โ โ int bits,
โ โ StreamOrDevice s)
โ โฃโโ ๐ csharp_test.cs (850 tokens, 147 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,465 tokens, 127 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 (157 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 (525 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 (384 tokens, 43 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 (143 tokens, 31 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 (83 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 (150 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
โ โ โฃโโ 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 (165 tokens, 19 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 (48 tokens, 6 lines)
โ โ โฃโโ jsonrpc: 2.0
โ โ โฃโโ method: subtract
โ โ โฃโโ params:
โ โ โฃโโ minuend: 42
โ โ โฃโโ subtrahend: 23
โ โ โโโ id: 1
โ โฃโโ ๐ test_openapi.yaml (507 tokens, 93 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 (224 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 (311 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 (512 tokens, 69 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()} | [any()]
โ โ โ ) -> processed, integer(), any()} | [{item, any()}].
โ โ โฃโโ -spec complex_function({integer(), any()} | [any()]) ->
โ โ โ {processed, integer(), any()} | [{item, any()}].
โ โ โฃโโ -spec list_manipulation([integer()]) -> [integer()].
โ โ โฃโโ -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 (373 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 (132 tokens, 21 lines)
โ โ โฃโโ person[name_]
โ โ โฃโโ sayHello[]
โ โ โโโ sumList[list_List]
โ โฃโโ ๐ matlab_test.m (45 tokens, 12 lines)
โ โ โฃโโ classdef HelloWorld -> function greet
โ โ โโโ function loneFun
โ โฃโโ ๐ RTest.R (367 tokens, 47 lines)
โ โ โฃโโ class(person)
โ โ โฃโโ greet.Person <- function
โ โ โฃโโ ensure_between = function
โ โ โโโ run_intermediate_annealing_process = function
โ โฃโโ ๐ rust_test.rs (932 tokens, 166 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_export]
โ โ โ 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
โ โฃโโ ๐ test.zig (436 tokens, 61 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 (127 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 (66 tokens, 17 lines)
โ โ โฃโโ proc sayHello {}
โ โ โฃโโ proc arrg { input }
โ โ โโโ proc multiLine {
โ โ x,
โ โ y
โ โ }
โ โโโ ๐ tf_test.tf (288 tokens, 39 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 (60 tokens, 15 lines)
โ โ โฃโโ Install package
โ โ โฃโโ Start service
โ โ โโโ Create user
โ โฃโโ ๐ app-routing.module.ts (242 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 (307 tokens, 48 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 (243 tokens, 45 lines)
โ โ โฃโโ export class AppComponent
โ โ โฃโโ constructor(private loginService: LoginService)
โ โ โฃโโ checkSession()
โ โ โฃโโ async goToEvent(event_id: string)
โ โ โโโ valInvitedBy(event: any, event_id: string)
โ โฃโโ ๐ app.module.ts (269 tokens, 43 lines)
โ โ โฃโโ @NgModule({
โ โ โ declarations: [
โ โ โ AppComponent,
โ โ โ HomeComponent,
โ โ โ LoginComponent,
โ โ โ RegisterComponent,
โ โ โ EventsComponent,
โ โ โ InvitesComponent,
โ โ โ RewardsComponent,
โ โ โ ProfileComponent
โ โ โโโ export class AppModule
โ โฃโโ ๐ checkbox_test.md (263 tokens, 22 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
โ โ โฃโโ - [x] Task 3
โ โ โฃโโ - [ ] Subtask 3.1
โ โ โฃโโ - [x] Task 6
โ โ โฃโโ - [x] Subtask 6.1
โ โ โโโ - [ ] Handle edge cases
โ โฃโโ ๐ checkbox_test.txt (276 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 (193 tokens, 19 lines)
โ โ โฃโโ environment:
โ โ โฃโโ production
โ โ โฃโโ cognitoUserPoolId
โ โ โฃโโ cognitoAppClientId
โ โ โโโ apiurl
โ โฃโโ ๐ hello_world.pyi (26 tokens, 3 lines)
โ โ โโโ @final
โ โ class dtype(Generic[_DTypeScalar_co])
โ โฃโโ ๐ k8s_test.yaml (171 tokens, 38 lines)
โ โ โฃโโ apps/v1.Deployment -> my-app
โ โ โฃโโ v1.Service -> my-service
โ โ โโโ v1.ConfigMap -> my-config
โ โฃโโ ๐ Makefile (882 tokens, 85 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 (40 tokens, 10 lines)
โ โ โฃโโ psycopg2-binary
โ โ โฃโโ pytest
โ โ โฃโโ coverage
โ โ โฃโโ flask[async]
โ โ โฃโโ flask_cors
โ โ โฃโโ stripe
โ โ โฃโโ pyjwt[crypto]
โ โ โฃโโ cognitojwt[async]
โ โ โโโ flask-lambda
โ โฃโโ ๐ rust_todo_test.rs (109 tokens, 27 lines)
โ โ โฃโโ TODO (Line 23): 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 (300 tokens, 52 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 (93 tokens, 17 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 (242 tokens, 26 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 (294 tokens, 49 lines)
โ โ โฃโโ $schema: http://json-schema.org/draft-07/schema#
โ โ โฃโโ type: object
โ โ โฃโโ title: random_test
โ โ โโโ description: A promoter's activites related to events
โ โฃโโ ๐ testPackage.json (458 tokens, 44 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 (6,950 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) =>
โ โฃโโ 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, 9 files)
โ โฃโโ ๐ catastrophic.c (4,144 tokens, 581 lines)
โ โ โฃโโ struct Point
โ โ โฃโโ struct Point getOrigin()
โ โ โฃโโ float mul_two_floats(float x1, float x2)
โ โ โฃโโ enum days
โ โ โฃโโ long add_two_longs(long x1, long x2)
โ โ โฃโโ double multiplyByTwo(double num)
โ โ โฃโโ char getFirstCharacter(char *str)
โ โ โฃโโ void greet(Person p)
โ โ โฃโโ typedef struct Person
โ โ โฃโโ typedef struct PersonA
โ โ โฃโโ 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
โ โ โฃโโ class Person
โ โ โฃโโ 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
โ โ โฃโโ 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()
โ โ โฃโโ 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
โ โ โฃโโ ECarTypes GetPreferredCarType()
โ โ โฃโโ enum ECarTypes : uint8_t
โ โ โฃโโ enum class ECarTypes : uint8_t
โ โ โฃโโ 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
โ โ โฃโโ 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)
โ โฃโโ ๐ fractal.thy (2,183 tokens, 148 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 [simp]:
โ โ โ 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,854 tokens, 498 lines)
โ โ โฃโโ function Log($message)
โ โ โฃโโ function Remove-ChocolateyFromPath
โ โ โฃโโ function Show-Profiles
โ โ โฃโโ function Show-Path
โ โ โฃโโ function Show-Error($err)
โ โ โฃโโ function Get-ScoopPackagePath
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$PackageName)
โ โ โฃโโ function Check-Command
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$Name)
โ โ โฃโโ function Add-ToPath
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$PathToAdd)
โ โ โฃโโ function Install-Scoop
โ โ โฃโโ function Scoop-Install
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$Name,
โ โ โ [string]$PathToAdd)
โ โ โฃโโ function Start-CondaEnv
โ โ โฃโโ function Install-PipPackage
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$PackageName)
โ โ โฃโโ function Install-VSBuildTools
โ โ โฃโโ function Install-Crate
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$CrateName)
โ โ โฃโโ function Get-ScoopVersion
โ โ โฃโโ function Get-Version
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$ExecutablePath,
โ โ โ [string]$ExecutableName)
โ โ โฃโโ function Show-Requirements
โ โ โฃโโ function Measure-Status
โ โ โฃโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ [string]$Name)
โ โ โฃโโ function Find-Profile
โ โ โฃโโ function Edit-Profile
โ โ โฃโโ function Set-Profile
โ โ โโโ function Show-Profile
โ โฃโโ ๐ python_complex_class.py (13 tokens, 2 lines)
โ โ โโโ class Box(Space[NDArray[Any]])
โ โฃโโ ๐ ramda__cloneRegExp.js (105 tokens, 9 lines)
โ โ โโโ export default function _cloneRegExp(pattern)
โ โฃโโ ๐ ramda_prop.js (747 tokens, 86 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: [v]} -> [{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,098 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
โ โ โฃโโ 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)
โ โฃโโ ๐ test.f (200 tokens, 31 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 (53 tokens, 9 lines)
โ โฃโโ # libtorch (C++-only)
โ โโโ - Building libtorch using Python
โโโ ๐ group_lisp (1 folder, 4 files)
โฃโโ ๐ clojure_test.clj (726 tokens, 86 lines)
โ โฃโโ defprotocol P
โ โฃโโ defrecord Person
โ โฃโโ defn -main
โ โฃโโ ns bion.likes_trees
โ โฃโโ def repo-url
โ โฃโโ defn config
โ โฃโโ defmacro with-os
โ โโโ defrecord SetFullElement
โฃโโ ๐ LispTest.lisp (31 tokens, 6 lines)
โ โฃโโ defstruct person
โ โโโ defun greet
โฃโโ ๐ racket_struct.rkt (17 tokens, 2 lines)
โ โโโ struct point
โโโ ๐ test_scheme.scm (389 tokens, 45 lines)
โฃโโ define topological-sort
โฃโโ define table
โฃโโ define queue
โฃโโ define result
โฃโโ define set-up
โโโ define traverse
tree_plus v(1.0.40) ignore=('group_todo',) globs=() syntax=False paths=('tests/more_languages',)
8 folder(s), 77 file(s), 0 line(s), 0 token(s) in 0.50 second(s).
Got Globs?
tree_plus -g "*.*s" -i group_todo tests/more_languages
๐ more_languages (6 folders, 16 files)
โฃโโ ๐ group1 (1 folder, 2 files)
โ โฃโโ ๐ test.js (755 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)
โ โ โฃโโ 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)
โ โ โโโ show()
โ โโโ ๐ test.ts (871 tokens, 166 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>
โ โฃโโ 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
โ โ )
โ โฃโโ describe(): string
โ โฃโโ interface Shape
โ โโโ interface Square extends Shape
โฃโโ ๐ group3 (1 folder, 1 file)
โ โโโ ๐ csharp_test.cs (850 tokens, 147 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 (373 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 (932 tokens, 166 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_export]
โ โ โ 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
โ โโโ ๐ test_fsharp.fs (127 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 (242 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 (307 tokens, 48 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 (243 tokens, 45 lines)
โ โ โฃโโ export class AppComponent
โ โ โฃโโ constructor(private loginService: LoginService)
โ โ โฃโโ checkSession()
โ โ โฃโโ async goToEvent(event_id: string)
โ โ โโโ valInvitedBy(event: any, event_id: string)
โ โฃโโ ๐ app.module.ts (269 tokens, 43 lines)
โ โ โฃโโ @NgModule({
โ โ โ declarations: [
โ โ โ AppComponent,
โ โ โ HomeComponent,
โ โ โ LoginComponent,
โ โ โ RegisterComponent,
โ โ โ EventsComponent,
โ โ โ InvitesComponent,
โ โ โ RewardsComponent,
โ โ โ ProfileComponent
โ โ โโโ export class AppModule
โ โฃโโ ๐ environment.test.ts (193 tokens, 19 lines)
โ โ โฃโโ environment:
โ โ โฃโโ production
โ โ โฃโโ cognitoUserPoolId
โ โ โฃโโ cognitoAppClientId
โ โ โโโ apiurl
โ โฃโโ ๐ rust_todo_test.rs (109 tokens, 27 lines)
โ โ โฃโโ TODO (Line 23): 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 (93 tokens, 17 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 (6,950 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) =>
โ โฃโโ 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 (105 tokens, 9 lines)
โ โโโ export default function _cloneRegExp(pattern)
โโโ ๐ ramda_prop.js (747 tokens, 86 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: [v]} -> [{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)
tree_plus v(1.0.40) ignore=('group_todo',) globs=('*.*s',) syntax=False paths=('tests/more_languages',)
6 folder(s), 16 file(s), 0 line(s), 0 token(s) in 0.14 second(s).
Languages Todo:
Help me add to and priorize this list of languages to support!
tree_plus tests/more_languages/group_todo
๐ group_todo (1 folder, 8 files)
โฃโโ ๐ crystal_test.cr (56 tokens, 15 lines)
โฃโโ ๐ dart_test.dart (106 tokens, 24 lines)
โฃโโ ๐ elixir_test.exs (49 tokens, 10 lines)
โฃโโ ๐ nodemon.json (120 tokens, 21 lines)
โฃโโ ๐ sas_test.sas (104 tokens, 22 lines)
โฃโโ ๐ test_setup_py.test (118 tokens, 24 lines)
โฃโโ ๐ testTypings.d.ts (149 tokens, 23 lines)
โโโ ๐ vba_test.bas (72 tokens, 16 lines)
tree_plus v(1.0.40) ignore=() globs=() syntax=False paths=('tests/more_languages/group_todo',)
1 folder(s), 8 file(s), 0 line(s), 0 token(s) in 0.02 second(s).
Oppose Unfair Business Practices
Please consider contacting the authorities to report the issue described in this document:
California OpenAI Complaint - Customer Noncompete Clause
Remember: Your Voice Matters!
License
MIT or Apache 2.0, at your option.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tree_plus-1.0.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d55529467799314c165d039da59be42779496b65d10dc5122bd2afc36712a431 |
|
MD5 | 741fbc522fb9bc5692fc4429bae4ccba |
|
BLAKE2b-256 | 983f826ea2c73e9f18412ea701c0be1ed54e7d49fe410adb9d43c3327b171c02 |