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, 27 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 (768 tokens, 114 lines)
โ โโโ SHELL := /bin/bash
โ โโโ cli
โ โโโ library_demo
โ โโโ rewrite_demo
โ โโโ coverage
โ โโโ debug
โ โโโ .PHONY: debug_command
โ โโโ debug_command: html_demo
โ โโโ html_demo
โ โโโ test_parallel
โ โโโ test_sequential
โ โโโ test_more_languages
โ โโโ test_group7
โ โโโ test: test_sequential test_tp_dotdot test_e2e test_cli test_programs test_deploy
โ โโโ 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 (356 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
โ โโโ fake_useragent
โ โโโ bs4
โโโ ๐ pytest.ini (21 tokens, 5 lines)
โโโ ๐ README.md (37,140 tokens, 3,032 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 (1,352 tokens, 215 lines)
โ โโโ def main(
โ glob: Optional[Tuple],
โ paths: Optional[Union[str, Tuple]],
โ ignore: Tuple,
โ override: bool,
โ debug: bool,
โ version: bool,
โ syntax: bool,
โ concise: bool,
โ
โ yc: bool,
โ number: int,
โ max_depth: int,
โ )
โโโ ๐ 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,
โ โ โ suffix: Optional = ".rs",
โ โ โ )
โ โ โโโ def main(
โ โ fill_context: bool,
โ โ length: int,
โ โ input_path: Path,
โ โ output_path: Optional,
โ โ )
โ โโโ ๐ 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,
โ โ โ rewrite_ok: bool,
โ โ โ ) -> Tuple[List, str, bool]
โ โ โโโ def main(
โ โ โ input_path: str,
โ โ โ output_path: Optional,
โ โ โ rewrite_ok: bool,
โ โ โ )
โ โ โโโ class Vehicle
โ โ โโโ class Car(Vehicle)
โ โโโ ๐ test_stub_tests.py (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, 10 files)
โโโ ๐ count_tokens_lines.py (970 tokens, 156 lines)
โ โโโ TODO (Line 14): show off how well we parse_todo!
โ โโโ @dataclass(frozen=True)
โ โ class TokenLineCount
โ โโโ def count_tokens_lines(file_path: Union) -> Optional[TokenLineCount]
โ โโโ def count_tokens_lines_from_contents(contents: Union) -> 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 = None) -> str
โ โโโ def load(content: Optional = None, path: Optional = None)
โ โโโ def extract_version(source_path: Optional = None) -> Tuple
โ โโโ def increment_version(
โ โ source_path: Optional = None,
โ โ sink_path: Optional = None,
โ โ )
โ โโโ def run_command(command: Optional = None, debug: bool = False)
โ โโโ def replace_readme_section(
โ โ source_path: Optional = None,
โ โ sink_path: Optional = None,
โ โ marker: Optional = None,
โ โ command: Optional = None,
โ โ )
โ โโโ def update_readme(source_path: Optional = None, sink_path: Optional = None)
โ โโโ def main()
โโโ ๐ engine.py (10,379 tokens, 1,295 lines)
โ โโโ TODO (Line 58): MOVE TIMEOUT_SECONDS TO ENV VAR & CLI INPUT
โ โโโ TODO (Line 117): clarify subtree types -- make this a DataFrame tbh
โ โโโ NOTE (Line 310): sometimes we need wider trees (deploy)
โ โโโ TODO (Line 628): research & decide about globs as paths instead of as filters
โ โโโ NOTE (Line 664): here we add directly input file_paths to the amortized glob matches
โ โโโ TODO (Line 758): decide if we apply glob patterns to glob paths (currently NO)
โ โโโ TODO (Line 806): decide between glob and rglob in _from_glob
โ โโโ TODO (Line 813): decide if we need to re-amortize the globs in the glob seed
โ โโโ TODO (Line 815): clarify ignore in glob seed context, skipping for now
โ โโโ TODO (Line 889): re-enable func_timeout for parsing
โ โโโ NOTE (Line 1090): this is only to satisfy the type checker
โ โโโ 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 is_url(self) -> bool
โ โโโ def into_rich_tree(self) -> Tree
โ โโโ def into_str(self) -> str
โ โโโ def render(
โ โ self,
โ โ style: Optional = None,
โ โ highlight: bool = False,
โ โ markup: bool = True,
โ โ capturing: bool = False,
โ โ )
โ โโโ def stats(self) -> str
โ โโโ def from_hrefs(hrefs: dict, root_panel_text) -> Optional[TreePlus]
โ โโโ def stats(tree: TreePlus) -> str
โ โโโ @lru_cache
โ โ def remove_trailing_space(x: str) -> str
โ โโโ def tree_to_string(
โ โ tree: Tree,
โ โ markup: bool = False,
โ โ highlight: bool = False,
โ โ ) -> str
โ โโโ def clean_string(input_str: str) -> str
โ โโโ def safe_print(
โ โ tree: Union[Tree, Panel, str],
โ โ style: Optional = None,
โ โ highlight: bool = True,
โ โ markup: bool = False,
โ โ capturing: bool = False,
โ โ )
โ โโโ def _make_rich_tree(
โ โ label,
โ โ style: str = colors["colorblind_gold"],
โ โ guide_style: str = colors["colorblind_blue"],
โ โ highlight: bool = True,
โ โ ) -> Tree
โ โโโ def into_rich_tree(*, root: Optional[TreePlus] = None) -> Tree
โ โโโ def is_url(x: str) -> bool
โ โโโ @lru_cache
โ โ def categorize(
โ โ x: Union[Path, Tuple, str],
โ โ check_strs_globs: bool = True,
โ โ check_strs_paths: bool = True,
โ โ check_strs_urls: bool = True,
โ โ raise_if_component: bool = True,
โ โ ) -> Category
โ โโโ def from_seed(
โ โ maybe_seed: Optional[Union] = None,
โ โ *,
โ โ maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[Tuple] = None,
โ โ syntax_highlighting: bool = False,
โ โ override_ignore: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โโโ def from_seeds(
โ โ maybe_seeds: Optional[Tuple[Union, ...]] = None,
โ โ *,
โ โ maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[Tuple] = None,
โ โ syntax_highlighting: bool = False,
โ โ override_ignore: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โโโ def _reduce_forest(
โ โ *,
โ โ forest: Tuple[TreePlus, ...],
โ โ ) -> TreePlus
โ โโโ def _map_seeds(
โ โ *,
โ โ seeds: Optional[Tuple[Union, ...]] = None,
โ โ maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[Tuple] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> Tuple[TreePlus, ...]
โ โโโ def _from_seed(
โ โ *,
โ โ seed_path: Optional[Union[Path, str]] = None,
โ โ maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[AmortizedGlobs] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ is_url: bool = False,
โ โ ) -> TreePlus
โ โโโ def _add_subtree(
โ โ *,
โ โ root: TreePlus,
โ โ subtree: TreePlus,
โ โ )
โ โโโ def _from_glob(
โ โ *,
โ โ pattern: str,
โ โ maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[AmortizedGlobs] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โโโ def _from_folder(
โ โ *,
โ โ folder_path: Path,
โ โ maybe_ignore: Optional[Tuple] = DEFAULT_IGNORE,
โ โ maybe_globs: Optional[AmortizedGlobs] = None,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โโโ def _from_file(
โ โ *,
โ โ file_path: Path,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ max_tokens: int = 100_000,
โ โ ) -> TreePlus
โ โโโ def _from_url(
โ โ *,
โ โ url: str,
โ โ syntax_highlighting: bool = False,
โ โ concise: bool = False,
โ โ ) -> TreePlus
โ โโโ def base_url(url: str, with_path: bool = False) -> str
โ โโโ def _from_html_text(contents: str, maybe_url_base: Optional = None) -> TreePlus
โ โโโ def empty_tag_tree(n: str = "?")
โ โโโ def union_from_element(elem: PageElement) -> Union[Tag, NavigableString]
โ โโโ def node_index_str_from_tuple(
โ โ node_index: Tuple,
โ โ prefix: str = "(",
โ โ suffix: str = ")",
โ โ number_color: str = CYBERCYAN,
โ โ dot_color: str = GOLD,
โ โ ) -> str
โ โโโ def _from_soup(
โ โ tag: Union[Tag, NavigableString],
โ โ tree: Optional[TreePlus] = None,
โ โ node_index: Tuple = (),
โ โ maybe_url_base: Optional = None,
โ โ hrefs: Optional[Dict] = None,
โ โ ) -> Optional[TreePlus]
โ โโโ def from_hacker_news_articles(
โ โ articles: Articles,
โ โ depth: int = 0,
โ โ max_depth: int = -1,
โ โ title: Union = "Hacker News Front Page",
โ โ parent_num: Tuple = (),
โ โ ) -> TreePlus
โ โโโ def format_link(
โ โ url: str,
โ โ text: str,
โ โ color: str = colors["colorblind_blue"],
โ โ ) -> str
โ โโโ def process_hacker_news_item(
โ โ item: dict,
โ โ kids: Articles,
โ โ depth: int,
โ โ max_depth: int,
โ โ parent_num: Tuple,
โ โ parser: Union[Literal["lxml"], Literal["html.parser"]] = "html.parser",
โ โ ) -> TreePlus
โ โโโ def rich_links_from_soup(
โ โ item_soup: BeautifulSoup,
โ โ recursive: bool = True,
โ โ ) -> List
โ โโโ def ordered_list_from(l: Iterable) -> List
โ โโโ def _get_lexer(file_path: Path) -> str
โ โโโ def _syntax_highlight(
โ *,
โ file_path: Path,
โ components: List,
โ ) -> Union[List[Syntax], List]
โโโ ๐ 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] = None, override: bool = False
โ โ ) -> Optional[Tuple]
โ โโโ @lru_cache
โ โ def is_glob(x: str) -> bool
โ โโโ @lru_cache
โ โ def parse_globs(
โ โ maybe_globs_tuple: Optional[Tuple] = None,
โ โ ) -> Optional[Tuple]
โ โโโ @dataclass(frozen=True)
โ โ class AmortizedGlobs
โ โโโ def amortize_globs(
โ โ paths: Tuple[Path, ...], globs: Tuple
โ โ ) -> Optional[AmortizedGlobs]
โ โโโ @lru_cache(maxsize=None)
โ def should_ignore(
โ path: Path,
โ ignore: Optional[Tuple] = DEFAULT_IGNORE,
โ globs: Optional[AmortizedGlobs] = None,
โ ) -> bool
โโโ ๐ isabelle_symbols.py (4,084 tokens, 462 lines)
โ โโโ @lru_cache
โ โ def _replace_symbol(match: re.Match) -> str
โ โโโ def replace_isabelle_symbols(content: str) -> str
โโโ ๐ parse_file.py (25,355 tokens, 2,742 lines)
โ โโโ BUG (Line 306): HTML tree doesn't look awesome (yet)
โ โโโ TODO (Line 307): Fix HTML in TreePlus (How?)
โ โโโ BUG (Line 343): this repeatedly finds tags, need to avoid repeating ourselves
โ โโโ BUG (Line 973): catastrophic backtracking in some c files
โ โโโ TODO (Line 2359): update parse_objective_c to avoid fixed unrolling
โ โโโ @lru_cache(maxsize=None)
โ โ def read_file(
โ โ file_path: str,
โ โ raise_exceptions: bool = False,
โ โ n_lines: Optional = None,
โ โ ) -> str
โ โโโ def parse_file(
โ โ file_path: Union,
โ โ contents: Optional = None,
โ โ ) -> List
โ โโโ def extract_groups(match: re.Match, named_only: bool = False) -> dict
โ โโโ def parse_html(contents: str) -> List
โ โโโ def process_tag(tag, components) -> Optional
โ โโโ def components_from_html(contents: str) -> List
โ โโโ def prettify_tr(component: str) -> str
โ โโโ def hierarchical_numbering(components)
โ โโโ def assemble_tensorflow_flag(
โ โ flag_type: str, flag: str, description: Optional[List] = None
โ โ ) -> str
โ โโโ def parse_tensorflow_flags(contents: str) -> List
โ โโโ def parse_rst(contents: str) -> List
โ โโโ def parse_c(contents: str) -> List
โ โโโ @lru_cache
โ โ def is_binary_string(data: bytes) -> bool
โ โโโ @lru_cache
โ โ def is_binary(file_path: str) -> bool
โ โโโ def clean_isabelle_text(content: str) -> str
โ โโโ def parse_isabelle(contents: str) -> List
โ โโโ def parse_fortran(contents: str) -> List
โ โโโ def remove_c_comments(contents: str) -> str
โ โโโ def parse_ts(contents: str) -> List
โ โโโ def remove_py_comments(input_string: str) -> str
โ โโโ def parse_py(contents: str) -> List
โ โโโ def parse_rb(contents: str) -> List
โ โโโ def parse_fsharp(contents: str) -> List
โ โโโ def parse_tcl(contents: str) -> List
โ โโโ def parse_erl(contents: str) -> List
โ โโโ def parse_rs(contents: str) -> List
โ โโโ def parse_csv(contents: str, max_leaves=11) -> List
โ โโโ def parse_mathematica(contents: str) -> List
โ โโโ def parse_r(contents: str) -> List
โ โโโ def parse_zig(contents: str) -> List
โ โโโ def parse_hs(contents: str) -> List
โ โโโ def parse_lisp(content: str) -> List
โ โโโ def parse_capnp(contents: str) -> List
โ โโโ def parse_grpc(contents: str) -> List
โ โโโ def parse_openrpc_json(contents: str) -> List
โ โโโ def parse_json_rpc(contents: str) -> List
โ โโโ def parse_graphql(contents: str) -> List
โ โโโ def format_dependency(name, details)
โ โโโ def parse_cargo_toml(contents: str) -> List
โ โโโ def parse_pyproject_toml(contents: str) -> List
โ โโโ def parse_lean(lean_content: str) -> List
โ โโโ def parse_cs(contents: str) -> List
โ โโโ def parse_tex(tex_content: str) -> List
โ โโโ def parse_go(contents: str) -> List
โ โโโ def parse_swift(contents: str) -> List
โ โโโ def parse_bash(contents: str) -> List
โ โโโ def parse_d_dot_ts(contents: str) -> List
โ โโโ def parse_angular_app_module(contents: str) -> List
โ โโโ def parse_angular_routes(content: str) -> List
โ โโโ def parse_angular_spec(content: str) -> List
โ โโโ def parse_environment_ts(contents: str) -> List
โ โโโ def parse_dot_env(contents: str) -> List
โ โโโ def parse_requirements_txt(contents: str) -> List
โ โโโ def parse_json_schema(contents: str) -> List
โ โโโ def parse_package_json(contents: str) -> List
โ โโโ def parse_makefile(contents: str) -> List
โ โโโ def parse_sql(contents: str) -> List
โ โโโ def is_openapi_yml(ymls: Tuple) -> bool
โ โโโ def is_k8s_yml(ymls: Tuple) -> bool
โ โโโ def is_ansible_yml(ymls: Tuple) -> bool
โ โโโ def is_github_yml(ymls: Tuple) -> bool
โ โโโ def parse_github_yml(ymls: Tuple) -> List
โ โโโ def parse_k8s(ymls: Tuple) -> List
โ โโโ def parse_ansible(ymls: Tuple) -> List
โ โโโ def parse_openapi_yml(ymls: Tuple) -> List
โ โโโ def parse_yml(contents: str) -> List
โ โโโ def parse_db(db_path: str) -> List
โ โโโ def dedent_components(components: List) -> List
โ โโโ def parse_cbl(content: str) -> List
โ โโโ def parse_java(contents: str) -> List
โ โโโ def parse_jl(contents: str) -> List
โ โโโ def parse_kt(contents: str) -> List
โ โโโ def parse_lua(content: str) -> List
โ โโโ def parse_objective_c(content: str) -> List
โ โโโ def parse_ocaml(content: str) -> List
โ โโโ def parse_apl(content: str) -> List
โ โโโ def parse_perl(content: str) -> List
โ โโโ def parse_php(content: str) -> List
โ โโโ def parse_ps1(contents: str) -> List
โ โโโ def parse_matlab(content: str) -> List
โ โโโ def parse_scala(contents: str) -> List
โ โโโ def parse_tf(contents: str) -> List
โ โโโ def parse_md(content: str) -> List
โ โโโ def parse_txt(content: str) -> List
โ โโโ def parse_markers(content: str) -> List
โโโ ๐ 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.44"
โโโ ๐ web.py (2,304 tokens, 321 lines)
โโโ TODO (Line 25): re-enable tree plus web actions
โโโ NOTE (Line 167): no point in the answers since there's no content
โโโ def create_url(kind: Action, query: str) -> str
โโโ def create_link(kind: Action, query: str) -> str
โโโ def create_wikipedia_url(subterm: str) -> str
โโโ def create_wikipedia_search_url(subterm: str) -> str
โโโ def create_google_search_url(subterm: str) -> str
โโโ def create_stack_overflow_search_url(subterm: str) -> str
โโโ def create_wikipedia_search_link(
โ subterm: str,
โ prefix: str = "",
โ suffix: str = "",
โ link_style: str = LINK_STYLE,
โ ) -> str
โโโ def create_google_search_link(
โ subterm: str,
โ prefix: str = "",
โ suffix: str = "",
โ link_style: str = LINK_STYLE,
โ ) -> str
โโโ def create_stack_overflow_search_link(
โ subterm: str,
โ prefix: str = "",
โ suffix: str = "",
โ link_style: str = LINK_STYLE,
โ ) -> str
โโโ def search_stack_overflow(
โ *,
โ titled: Optional = None,
โ tagged: Optional = None,
โ answered: Optional = True,
โ ) -> Tuple[Tuple[dict, Tuple], ...]
โโโ def table_from_df(
โ results: Tuple[Dict, ...],
โ title: Optional = None,
โ show_lines: bool = True,
โ ) -> Table
โโโ def articles_from_hacker_news(
โ max_depth: int = 2,
โ current_depth: int = 0,
โ n_articles: int = 3,
โ sleep_time: float = 0.00,
โ ) -> Articles
โโโ def hacker_news_article_from_id(
โ article_id: int,
โ depth: int,
โ current_depth: int,
โ n: int,
โ sleep_time: float,
โ ) -> Tuple[HList, Tuple[HList, ...]]
โโโ def fetch_kids(
article_id: int,
kid_ids: List,
depth: int,
current_depth: int,
n: int,
sleep_time: float,
) -> Tuple[HList, ...]
tree_plus v(1.0.44) ignore=('tests',) globs=() syntax=False paths=()
5 folder(s), 27 file(s), 0 line(s), 0 token(s) in 0.29 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
URL + Tag Categories (tree plus for the web)
> tree_plus https://en.wikipedia.org/wiki/Binary_search_tree
Hacker News Mode (3 articles, max depth 3)
> tree_plus --yc
Hacker News Mode (6 articles, max depth 6)
> tree_plus --yc -n 6 -m 6
Options:
-i, -I, --ignore TEXT Patterns to ignore, in quotes: -i "*.java"
-o, -O, --override Override DEFAULT_IGNORE (includes ignored
content): -o -i "*.java"
-g, -G, --glob TEXT Patterns to find, in quotes: -g "*.rs"
-v, -V, --version Print the version and exit.
-d, -D, --debug Enables $DEBUG_TREE_PLUS.
-s, -S, --syntax Enables Syntax Highlighting (WIP).
-c, -C, --concise Omit module components.
--yc, --hn Include ycombinator (False)
-n, -N, --number INTEGER number of results (--yc mode only, default 3)
-m, -M, --max-depth INTEGER maximum number of steps (depth / level) from
root (--yc mode only, default 3)
-h, -H, --help Show this message and exit.
v(1.0.44) --- 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 (9 folders, 86 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)
โ โ โโโ innerFunction("inner")
โ โ โโโ const myObject = {
โ โ โโโ myMethod: function (stuff)
โ โ โโโ let myArrowObject = {
โ โ โโโ myArrow: ({
โ โ โ a,
โ โ โ b,
โ โ โ c,
โ โ โ }) =>
โ โ โโโ const myAsyncArrowFunction = async () =>
โ โ โโโ function functionWithRestParameters(...args)
โ โ โโโ const namedFunctionExpression = function myNamedFunction()
โ โ โโโ const multilineArrowFunction = (
โ โ โ a,
โ โ โ b
โ โ โ ) =>
โ โ โโโ function functionReturningFunction()
โ โ โโโ return function ()
โ โ โโโ function destructuringOnMultipleLines({
โ โ โ a,
โ โ โ b,
โ โ โ })
โ โ โโโ const arrowFunctionWithDestructuring = ({ a, b }) =>
โ โ โโโ const multilineDestructuringArrow = ({
โ โ โ a,
โ โ โ b,
โ โ โ }) =>
โ โ โโโ async function asyncFunctionWithErrorHandling()
โ โ โโโ class Car
โ โ โโโ constructor(brand)
โ โ โโโ present()
โ โ โโโ class Model extends Car
โ โ โโโ constructor(brand, mod)
โ โ โโโ super(brand)
โ โ โโโ show()
โ โโโ ๐ test.ts (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>
โ โโโ return("Standalone function with parameters")
โ โโโ const tsArrowFunctionSigned = ({
โ โ a,
โ โ b,
โ โ }: {
โ โ a: number;
โ โ b: string;
โ โ }) =>
โ โโโ export const tsComplicatedArrow = async ({
โ โ a = 1 | 2,
โ โ b = "bob",
โ โ c = async () => "charlie",
โ โ }: {
โ โ a: number;
โ โ b: string;
โ โ c: () => Promise<string>;
โ โ }): Promise<string> =>
โ โโโ const arrowFunction = () =>
โ โโโ const arrow = (a: String, b: Number) =>
โ โโโ const asyncArrowFunction = async () =>
โ โโโ const asyncArrow = async (a: String, b: Number) =>
โ โโโ let weirdArrow = () =>
โ โโโ const asyncPromiseArrow = async (): Promise<void> =>
โ โโโ let myWeirdArrowSigned = (x: number): number =>
โ โโโ class Person
โ โโโ constructor(private firstName: string, private lastName: string)
โ โโโ getFullName(): string
โ โโโ describe(): string
โ โโโ class Employee extends Person
โ โโโ constructor(
โ โ firstName: string,
โ โ lastName: string,
โ โ private jobTitle: string
โ โ )
โ โโโ super(firstName, lastName)
โ โโโ describe(): string
โ โโโ interface Shape
โ โโโ interface Square extends Shape
โโโ ๐ group2 (1 folder, 8 files)
โ โโโ ๐ apl_test.apl (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 mapinterface{},
โ โ โ 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($name)
โ โ โโโ Greet()
โ โ โโโ GreetMany($times)
โ โ โโโ GreetWithDetails($greeting, $times)
โ โ โโโ GreetMultiline(
โ โ โ $greeting,
โ โ โ $times
โ โ โ )
โ โ โโโ NoReturn($times)
โ โ โโโ NoReturnNoArgs()
โ โ โโโ function Say-Hello([Person]$person)
โ โ โโโ function Multi-Hello([Person]$personA, [Person]$personB)
โ โ โโโ function Switch-Item
โ โ โโโ param ($on)
โ โ โโโ function Get-SmallFiles
โ โ โโโ param (
โ โ โ [PSDefaultValue(Help = '100')]
โ โ โ $Size = 100)
โ โ โโโ function Get-User
โ โ โโโ [CmdletBinding(DefaultParameterSetName="ID")]
โ โ โโโ [OutputType("System.Int32", ParameterSetName="ID")]
โ โ โโโ [OutputType([String], ParameterSetName="Name")]
โ โ โโโ Param (
โ โ โ
โ โ โ [Int[]]
โ โ โ $UserID,
โ โ โ
โ โ โ [String[]]
โ โ โ $UserName)
โ โ โโโ filter Get-ErrorLog ($Message)
โ โ โโโ function global:MultilineSignature(
โ โ $param1,
โ โ $param2,
โ โ [Parameter(Mandatory=$true)]
โ โ $param3
โ โ )
โ โโโ ๐ ScalaTest.scala (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 (0 tokens, 0 lines)
โ โโโ 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 (0 tokens, 0 lines)
โ โ โโโ students table:
โ โ โโโ id integer primary key
โ โ โโโ name text not null
โ โ โโโ age integer not null
โ โ โโโ courses table:
โ โ โโโ id integer primary key
โ โ โโโ title text not null
โ โ โโโ credits integer not null
โ โโโ ๐ test_Cargo.toml (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()} |
โ โ โ ) -> processed, integer(), any()} | [{item, any()}].
โ โ โโโ -spec complex_function({integer(), any()} | ) ->
โ โ โ {processed, integer(), any()} | [{item, any()}].
โ โ โโโ -spec list_manipulation() -> .
โ โ โโโ -spec overload(T1, T2) -> T3
โ โ โ ; (T4, T5) -> T6.
โ โ โโโ -spec multiguard({X, integer()}) -> X when X :: atom()
โ โ โ ; ([Y]) -> Y when Y :: number().
โ โ โโโ -record(multiline).
โ โ โโโ -record(maybe_undefined).
โ โโโ ๐ haskell_test.hs (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
โ โ โโโ sayHello[]
โ โ โโโ sumList
โ โโโ ๐ 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_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 http: HttpClient,
โ โ โ private loginService: LoginService,
โ โ โ private stripeService: StripeService
โ โ โ )
โ โ โโโ constructor(private loginService: LoginService)
โ โ โโโ checkSession()
โ โ โโโ async goToEvent(event_id: string)
โ โ โโโ valInvitedBy(event: any, event_id: string)
โ โโโ ๐ app.module.ts (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
โ โ โโโ - Task 3
โ โ โโโ - [ ] Subtask 3.1
โ โ โโโ - Task 6
โ โ โโโ - 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
โ โ โโโ flask_cors
โ โ โโโ stripe
โ โ โโโ pyjwt
โ โ โโโ cognitojwt
โ โ โโโ 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) =>
โ โโโ requestAnimationFrame(animate)
โ โโโ cleanup()
โ โโโ requestAnimationFrame(animate)
โ โโโ private getNext90Degree(currentRotation: number): number
โ โโโ private getCurrentRotation(matrix: string): number
โ โโโ ngAfterViewInit()
โ โโโ const mouseEnterListener = () =>
โ โโโ const mouseLeaveListener = () =>
โ โโโ ngOnDestroy()
โ โโโ toggleColumn(event: MatOptionSelectionChange, column: string)
โ โโโ adjustColumns(event?: Event)
โ โโโ onResize(event: Event)
โ โโโ async ngOnInit()
โ โโโ async loadTickets(): Promise<void>
โ โโโ onDateRangeChange(
โ โ type: "start" | "end",
โ โ event: MatDatepickerInputEvent<Date>
โ โ )
โ โโโ applyFilter(column: string): void
โ โโโ formatDateForComparison(date: Date): string
โ โโโ constructor(private renderer: Renderer2)
โ โโโ onFilterChange(event: Event, column: string)
โ โโโ onLatitudeChange(event: Event)
โ โโโ onLongitudeChange(event: Event)
โ โโโ onRadiusChange(event: Event)
โ โโโ sortData(sort: Sort): void
โ โโโ onRowClick(event: Event, row: any)
โ โโโ function isDate(value: Date | undefined | null): value is Date
โ โโโ function isNonNullNumber(value: number | null): value is number
โ โโโ function hasLocation(
โ โ ticket: any
โ โ ): ticket is
โ โโโ const create_faker_ticket = async () =>
โ โโโ function compare(a: number | string, b: number | string, isAsc: boolean)
โ โโโ function compare_dates(a: Date, b: Date, isAsc: boolean)
โ โโโ async function mockMoreTickets(): Promise<Ticket[]>
โ โโโ const mockTickets = async () =>
โ โโโ const renderQRCode = async (text: String): Promise<string> =>
โโโ ๐ group6 (1 folder, 13 files)
โ โโโ ๐ catastrophic.c (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)
โ โโโ ๐ cpp_examples_impl.cc (66 tokens, 10 lines)
โ โ โโโ PYBIND11_MODULE(cpp_examples, m)
โ โ โโโ m.def("add", &add<int>, "An example function to add two numbers.")
โ โโโ ๐ cpp_examples_impl.cu (47 tokens, 10 lines)
โ โ โโโ template <typename T>
โ โ โ T add(T a, T b)
โ โ โโโ template <>
โ โ int add<int>(int a, int b)
โ โโโ ๐ cpp_examples_impl.h (26 tokens, 7 lines)
โ โ โโโ template <typename T>
โ โ โ T add(T a, T b)
โ โ โโโ template <>
โ โ int add<int>(int, int)
โ โโโ ๐ 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 :
โ โ โ 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)]
โ โ โ $PackageName)
โ โ โโโ function Check-Command
โ โ โโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ $Name)
โ โ โโโ function Add-ToPath
โ โ โโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ $PathToAdd)
โ โ โโโ function Install-Scoop
โ โ โโโ function Scoop-Install
โ โ โโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ $Name,
โ โ โ $PathToAdd)
โ โ โโโ function Start-CondaEnv
โ โ โโโ function Install-PipPackage
โ โ โโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ $PackageName)
โ โ โโโ function Install-VSBuildTools
โ โ โโโ function Install-Crate
โ โ โโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ $CrateName)
โ โ โโโ function Get-ScoopVersion
โ โ โโโ function Get-Version
โ โ โโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ $ExecutablePath,
โ โ โ $ExecutableName)
โ โ โโโ function Show-Requirements
โ โ โโโ function Measure-Status
โ โ โโโ param(
โ โ โ [Parameter(Mandatory = $true)]
โ โ โ $Name)
โ โ โโโ function Find-Profile
โ โ โโโ function Edit-Profile
โ โ โโโ function Set-Profile
โ โ โโโ function Show-Profile
โ โโโ ๐ python_complex_class.py (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: } -> [{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)
โ โ โโโ PYBIND11_MODULE(flags_pybind, m)
โ โโโ ๐ 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
โ โโโ ๐ yc.html (12,015 tokens, 169 lines)
โโโ ๐ group7 (1 folder, 5 files)
โ โโโ ๐ AAPLShaders.metal (5,597 tokens, 566 lines)
โ โโโ ๐ angular_crud.ts (964 tokens, 148 lines)
โ โ โโโ interface DBCommand<T = any>
โ โ โโโ export class IndexedDbService
โ โ โโโ constructor()
โ โ โโโ async create_connection({ db_name = 'client_db', table_name }: DBCommand)
โ โ โโโ upgrade(db)
โ โ โโโ async create_model({ db_name, table_name, model }: DBCommand)
โ โ โโโ verify_matching({ table_name, model })
โ โ โโโ async read_key({ db_name, table_name, key }: DBCommand)
โ โ โโโ async update_model({ db_name, table_name, model }: DBCommand)
โ โ โโโ verify_matching({ table_name, model })
โ โ โโโ async delete_key({ db_name, table_name, key }: DBCommand)
โ โ โโโ async list_table({
โ โ โ db_name,
โ โ โ table_name,
โ โ โ where,
โ โ โ }: DBCommand & { where?: { : string | number } })
โ โ โโโ async search_table(criteria: SearchCriteria)
โ โโโ ๐ forward.frag (863 tokens, 88 lines)
โ โโโ ๐ forward.vert (373 tokens, 49 lines)
โ โโโ ๐ wgsl_test.wgsl (151 tokens, 17 lines)
โโโ ๐ 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.44) ignore=('group_todo',) globs=() syntax=False paths=('tests/more_languages',)
9 folder(s), 86 file(s), 0 line(s), 0 token(s) in 0.61 second(s).
Got Globs?
tree_plus -g "*.*s" -i group_todo tests/more_languages
๐ more_languages (7 folders, 17 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)
โ โ โโโ innerFunction("inner")
โ โ โโโ const myObject = {
โ โ โโโ myMethod: function (stuff)
โ โ โโโ let myArrowObject = {
โ โ โโโ myArrow: ({
โ โ โ a,
โ โ โ b,
โ โ โ c,
โ โ โ }) =>
โ โ โโโ const myAsyncArrowFunction = async () =>
โ โ โโโ function functionWithRestParameters(...args)
โ โ โโโ const namedFunctionExpression = function myNamedFunction()
โ โ โโโ const multilineArrowFunction = (
โ โ โ a,
โ โ โ b
โ โ โ ) =>
โ โ โโโ function functionReturningFunction()
โ โ โโโ return function ()
โ โ โโโ function destructuringOnMultipleLines({
โ โ โ a,
โ โ โ b,
โ โ โ })
โ โ โโโ const arrowFunctionWithDestructuring = ({ a, b }) =>
โ โ โโโ const multilineDestructuringArrow = ({
โ โ โ a,
โ โ โ b,
โ โ โ }) =>
โ โ โโโ async function asyncFunctionWithErrorHandling()
โ โ โโโ class Car
โ โ โโโ constructor(brand)
โ โ โโโ present()
โ โ โโโ class Model extends Car
โ โ โโโ constructor(brand, mod)
โ โ โโโ super(brand)
โ โ โโโ show()
โ โโโ ๐ test.ts (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>
โ โโโ return("Standalone function with parameters")
โ โโโ const tsArrowFunctionSigned = ({
โ โ a,
โ โ b,
โ โ }: {
โ โ a: number;
โ โ b: string;
โ โ }) =>
โ โโโ export const tsComplicatedArrow = async ({
โ โ a = 1 | 2,
โ โ b = "bob",
โ โ c = async () => "charlie",
โ โ }: {
โ โ a: number;
โ โ b: string;
โ โ c: () => Promise<string>;
โ โ }): Promise<string> =>
โ โโโ const arrowFunction = () =>
โ โโโ const arrow = (a: String, b: Number) =>
โ โโโ const asyncArrowFunction = async () =>
โ โโโ const asyncArrow = async (a: String, b: Number) =>
โ โโโ let weirdArrow = () =>
โ โโโ const asyncPromiseArrow = async (): Promise<void> =>
โ โโโ let myWeirdArrowSigned = (x: number): number =>
โ โโโ class Person
โ โโโ constructor(private firstName: string, private lastName: string)
โ โโโ getFullName(): string
โ โโโ describe(): string
โ โโโ class Employee extends Person
โ โโโ constructor(
โ โ firstName: string,
โ โ lastName: string,
โ โ private jobTitle: string
โ โ )
โ โโโ super(firstName, lastName)
โ โโโ describe(): string
โ โโโ interface Shape
โ โโโ interface Square extends Shape
โโโ ๐ group3 (1 folder, 1 file)
โ โโโ ๐ csharp_test.cs (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_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 http: HttpClient,
โ โ โ private loginService: LoginService,
โ โ โ private stripeService: StripeService
โ โ โ )
โ โ โโโ constructor(private loginService: LoginService)
โ โ โโโ checkSession()
โ โ โโโ async goToEvent(event_id: string)
โ โ โโโ valInvitedBy(event: any, event_id: string)
โ โโโ ๐ app.module.ts (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) =>
โ โโโ requestAnimationFrame(animate)
โ โโโ cleanup()
โ โโโ requestAnimationFrame(animate)
โ โโโ private getNext90Degree(currentRotation: number): number
โ โโโ private getCurrentRotation(matrix: string): number
โ โโโ ngAfterViewInit()
โ โโโ const mouseEnterListener = () =>
โ โโโ const mouseLeaveListener = () =>
โ โโโ ngOnDestroy()
โ โโโ toggleColumn(event: MatOptionSelectionChange, column: string)
โ โโโ adjustColumns(event?: Event)
โ โโโ onResize(event: Event)
โ โโโ async ngOnInit()
โ โโโ async loadTickets(): Promise<void>
โ โโโ onDateRangeChange(
โ โ type: "start" | "end",
โ โ event: MatDatepickerInputEvent<Date>
โ โ )
โ โโโ applyFilter(column: string): void
โ โโโ formatDateForComparison(date: Date): string
โ โโโ constructor(private renderer: Renderer2)
โ โโโ onFilterChange(event: Event, column: string)
โ โโโ onLatitudeChange(event: Event)
โ โโโ onLongitudeChange(event: Event)
โ โโโ onRadiusChange(event: Event)
โ โโโ sortData(sort: Sort): void
โ โโโ onRowClick(event: Event, row: any)
โ โโโ function isDate(value: Date | undefined | null): value is Date
โ โโโ function isNonNullNumber(value: number | null): value is number
โ โโโ function hasLocation(
โ โ ticket: any
โ โ ): ticket is
โ โโโ const create_faker_ticket = async () =>
โ โโโ function compare(a: number | string, b: number | string, isAsc: boolean)
โ โโโ function compare_dates(a: Date, b: Date, isAsc: boolean)
โ โโโ async function mockMoreTickets(): Promise<Ticket[]>
โ โโโ const mockTickets = async () =>
โ โโโ const renderQRCode = async (text: String): Promise<string> =>
โโโ ๐ group6 (1 folder, 2 files)
โ โโโ ๐ ramda__cloneRegExp.js (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: } -> [{k: v}]
โ โ * @param {String} key The key to determine which property of the object should be unwound.
โ โ * @param {Object} object The object containing the list to unwind at the property named by the key.
โ โ * @return {List} A list of new objects, each having the given key associated to an item from the unwound list.
โ โ */
โ โ var unwind = _curry2(function(key, object)
โ โโโ return _map(function(item)
โโโ ๐ group7 (1 folder, 1 file)
โโโ ๐ angular_crud.ts (964 tokens, 148 lines)
โโโ interface DBCommand<T = any>
โโโ export class IndexedDbService
โโโ constructor()
โโโ async create_connection({ db_name = 'client_db', table_name }: DBCommand)
โโโ upgrade(db)
โโโ async create_model({ db_name, table_name, model }: DBCommand)
โโโ verify_matching({ table_name, model })
โโโ async read_key({ db_name, table_name, key }: DBCommand)
โโโ async update_model({ db_name, table_name, model }: DBCommand)
โโโ verify_matching({ table_name, model })
โโโ async delete_key({ db_name, table_name, key }: DBCommand)
โโโ async list_table({
โ db_name,
โ table_name,
โ where,
โ }: DBCommand & { where?: { : string | number } })
โโโ async search_table(criteria: SearchCriteria)
tree_plus v(1.0.44) ignore=('group_todo',) globs=('*.*s',) syntax=False paths=('tests/more_languages',)
7 folder(s), 17 file(s), 0 line(s), 0 token(s) in 0.16 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.44) 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.44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 318bcadbd8172132a3b3b858a0f733af88df4f3986816f3d2582fc56567128d0 |
|
MD5 | 4dd970d5b05659f34fe8e5ed4e91e803 |
|
BLAKE2b-256 | 018dc43842794ea745f7c7b3d23625e5ddfbc69ea0ec53df94b2504c3d3606d0 |