Package: tree-plus-BIONICLES
Tree PlusSupported Operating Systems:Supported Python Versions:A simple command line interface (CLI) tool for developers to show atreeenhanced with token counts, line counts, and source code components.Example Output:Demonstrate Parsed Checkboxes~/hax/tree_plus(main)$
>tp-itestspaths=('.',)📁tree_plus(11526tokens,1012lines)┣━━📁.github
┃┗━━📁workflows(523tokens,70lines)┃┣━━📄microsoft.yml(272tokens,36lines)┃┃┣━━Microsoft
┃┃┣━━job:build
┃┃┣━━-SetupPython${{ matrix.python-version}}┃┃┣━━-Installtree_plus
┃┃┣━━-SetPYTHONUTF8forWindows
┃┃┣━━-Rungenerictests
┃┃┗━━-Runspecifictest┃┗━━📄unix.yml(251tokens,34lines)┃┣━━Ubuntu&MacOS
┃┣━━job:build
┃┣━━-SetupPython${{ matrix.python-version}}┃┣━━-Installtree_plus
┃┣━━-Rungenerictests
┃┗━━-Runspecifictest┣━━📁tree_plus_src(12997tokens,1542lines)┃┣━━📁scripts(6661tokens,861lines)┃┃┣━━📄alias_tree_plus.sh(277tokens,31lines)┃┃┣━━📄Microsoft.PowerShell_profile.ps1(3238tokens,419lines)┃┃┃┣━━functionLog($message)┃┃┃┗━━functionShow-Error($err)┃┃┣━━📄profile.toml(1192tokens,126lines)┃┃┣━━📄scratch.ps1(1317tokens,197lines)┃┃┗━━📄scratch.sh(637tokens,88lines)┃┣━━📄count_tokens_lines.py(575tokens,78lines)┃┃┣━━TODO(Line11):showoffhowwellweparse_todo!
┃┃┣━━classTokenLineCount
┃┃┣━━defadd_tokens_lines
┃┃┣━━defcount_tokens_lines
┃┃┗━━defcount_directory_tokens_lines
┃┣━━📄default_ignore.py(538tokens,94lines)┃┃┣━━defmake_ignore
┃┃┣━━defis_binary_string
┃┃┗━━defis_binary
┃┣━━📄parse_file.py(11631tokens,1333lines)┃┃┣━━TODO(Line15):convertthistoanenvironmentvariableandshareacrossthemodules
┃┃┣━━defdebug_print
┃┃┣━━defparse_file
┃┃┣━━defparse_d_dot_ts
┃┃┣━━defparse_angular_app_module
┃┃┣━━defparse_angular_component_ts
┃┃┣━━defparse_angular_routes
┃┃┣━━defparse_angular_spec
┃┃┣━━defparse_environment_ts
┃┃┣━━defparse_dot_env
┃┃┣━━defparse_requirements_txt
┃┃┣━━defparse_json_schema
┃┃┣━━defparse_package_json
┃┃┣━━defparse_ts
┃┃┣━━defparse_makefile
┃┃┣━━defparse_sql
┃┃┣━━defis_k8s_yml
┃┃┣━━defis_ansible_yml
┃┃┣━━defis_github_yml
┃┃┣━━defparse_github_yml
┃┃┣━━defparse_k8s
┃┃┣━━defparse_ansible
┃┃┣━━defparse_yml
┃┃┣━━defextract_nodes
┃┃┣━━defis_typing_construct
┃┃┣━━defis_builtin_type
┃┃┣━━defparse_py
┃┃┣━━defparse_db
┃┃┣━━defparse_cobol
┃┃┣━━defparse_java
┃┃┣━━defparse_julia
┃┃┣━━defparse_kotlin
┃┃┣━━defparse_lisp
┃┃┣━━defparse_lua
┃┃┣━━defparse_objective_c
┃┃┣━━defparse_ocaml
┃┃┣━━defparse_apl
┃┃┣━━defparse_perl
┃┃┣━━defparse_php
┃┃┣━━defparse_powershell
┃┃┣━━defparse_matlab
┃┃┣━━defparse_scala
┃┃┣━━defparse_c
┃┃┣━━defparse_tf
┃┃┣━━defparse_js
┃┃┣━━defparse_md
┃┃┣━━defparse_txt
┃┃┣━━defparse_markers
┃┃┗━━defparse_rs
┃┗━━📄traverse_directory.py(253tokens,37lines)┃┗━━deftraverse_directory
┣━━📄.gitignore(111tokens,32lines)┣━━📄LICENSE(2123tokens,81lines)┣━━📄Makefile(193tokens,26lines)┃┣━━SHELL:=/bin/bash
┃┣━━debug
┃┣━━.PHONY:debug_command
┃┣━━debug_command:clitest┃┣━━cli
┃┣━━test_s:test_tp_dotdot_s
┃┣━━test_tp_dotdot_s:test_tp_dotdot
┃┣━━test:test_tp_dotdot
┃┣━━test_tp_dotdot
┃┗━━move_powershell_profile
┣━━📄nodemon.json(64tokens,13lines)┣━━📄README.md(2682tokens,230lines)┃┣━━# Tree Plus┃┣━━## Example Output:┃┣━━-[]DemonstrateParsedCheckboxes
┃┣━━## Start Quick!┃┣━━### Prerequisites┃┣━━### Install Tree Plus┃┣━━#### Local Hackable Install┃┣━━### Usage┃┗━━## Moar Languages┣━━📄sample_output.sh(3039tokens,184lines)┣━━📄setup.py(608tokens,97lines)┃┗━━TODO(Line44):automaticallyinstalltree-sitter-{language}grammars
┣━━📄TODO.md(393tokens,41lines)┃┣━━# Do First┃┣━━# Backlog┃┣━━-[]Fixorderingofleavesbylinenumberconsistentlyacrosslanguages
┃┣━━-[]FixPythonordering
┃┣━━-[]FixJavaScript/TypeScriptordering
┃┣━━-[]Reviewotherlanguageunittestsforordering
┃┣━━-[]expandtestcasesforthesupportedlanguagestoverifyordering&completeness
┃┣━━-[]UpgradeCICDGitHubAction
┃┣━━-[]BuildanddeploytoPyPiiftestspass
┃┣━━-[]testfileinputinsteadofdirectory
┃┣━━-[]measuretestcoverage
┃┣━━-[]testnamedlambdasinpython
┃┣━━-[]autoinstalltree-sittergrammarstoenablerealparsinginsteadofregexifavailable
┃┣━━-[]modularizethetree_plusfunctiontoseparateindexcreationfromtreecreation
┃┣━━-[]brainstormandintegratemoreflags/optionstocontrolresults
┃┣━━-[]addatodoflagtoonlyshowtodosanduncheckedcheckboxes
┃┣━━-[]addasearch/filterinputtofilterresults
┃┣━━-[]makeatree_scantoapplyAILLMstothetree
┃┣━━-[]e.g.tosuggesttodos
┃┣━━-[]towritedocs
┃┣━━-[]towritetests
┃┣━━-[]towritecode
┃┣━━-[]totranslatelanguages(e.g.'rewrite it in rust'example)┃┣━━# Nice to have┃┣━━-[]Supportmorelanguages
┃┣━━-[]SQL(createtables,procedures)┃┣━━-[]C#
┃┣━━-[]C++
┃┣━━-[]OpenAPIyaml
┃┣━━-[]JsonRPC2.0schemas
┃┣━━-[]GRPCschemas
┃┣━━-[]GraphQLschemas
┃┣━━-[]Go
┃┣━━-[]Dart
┃┣━━-[]Swift
┃┗━━# Done┗━━📄tree_plus_cli.py(2313tokens,308lines)┣━━NOTE(Line275):parent_countunused,isthatok?┣━━defdebug_print┣━━deftree_to_string┣━━defclean_string┣━━defsafe_print┣━━defmain┣━━deftree_plus┣━━def_parse_paths┣━━defflatten_to_str┣━━def_handle_paths┗━━def_handle_pathDemonstrate Parsed CheckboxesStart Quick!PrerequisitesEnsure you have the following tools installed:Miniconda3 (conda)GitHub CLI (gh)Install Tree PlusLocal Hackable InstallClone the repository and cd into the tree_plus directoryghrepoclonehttps://github.com/bionicles/tree_plus.git&&cdtree_plusInstall tree_plus using MakefilemakecliAlternatively, ifmakeis not installed, usepip:pipinstall-e.Now, you can use thetree_pluscommand.Add slick aliases liketpto your RC file
Typical RC_FILE values~/.bash_profile,~/.bashrc, or~/.zshrcRC_FILE=~/.bash_profilesourcealias_tree_plus.shRC_FILE=~/.bashrcsourcealias_tree_plus.shRC_FILE=~/.zshrcsourcealias_tree_plus.shSoon, you'll be able to simply run 'pip install tree_plus'. Stay tuned!Usage# Use tree_plustpIf you make changes totree_plusand need to reinstall it quickly, use thetpclialias:# Reinstall tree_plus quickly after making changestpcliMoar Languages/home/bion/hax/tree_plus/tests/more_languages(0tokens,0lines)┣━━📁group1(402tokens,88lines)┃┣━━📄COBOL_TEST.CBL(57tokens,11lines)┃┃┣━━IDENTIFICATIONDIVISION->PROGRAM-ID.HELLO
┃┃┣━━DATADIVISION->01GREETING
┃┃┗━━PROCEDUREDIVISION
┃┣━━📄JavaTest.java(47tokens,12lines)┃┃┣━━classPerson
┃┃┣━━classPerson->Person(Stringname)┃┃┗━━classPerson->voidgreet()┃┣━━📄JuliaTest.jl(42tokens,12lines)┃┃┣━━moduleJuliaTest
┃┃┣━━moduleJuliaTest->structPerson
┃┃┗━━moduleJuliaTest->greet(p::Person)┃┣━━📄KotlinTest.kt(29tokens,4lines)┃┃┣━━dataclassPerson(valname:String)┃┃┗━━fungreet(person:Person)┃┣━━📄LispTest.lisp(31tokens,5lines)┃┃┣━━defstructperson
┃┃┗━━defungreet
┃┣━━📄LuaTest.lua(84tokens,16lines)┃┃┣━━functionHelloWorld.new
┃┃┣━━functionHelloWorld.greet
┃┃┗━━functionsay_hello
┃┣━━📄ObjectiveCTest.m(59tokens,16lines)┃┃┣━━@interfaceHelloWorld
┃┃┣━━@interfaceHelloWorld->(void)sayHello
┃┃┣━━@implementationHelloWorld
┃┃┣━━@implementationHelloWorld->(void)sayHello
┃┃┗━━voidsayHelloWorld()┃┗━━📄OcamlTest.ml(53tokens,12lines)┃┣━━typecolor
┃┣━━classhello
┃┣━━classhello->methodsay_hello
┃┗━━letmain()┣━━📁group2(754tokens,164lines)┃┣━━📄apl_test.apl(44tokens,5lines)┃┃┣━━:NamespaceHelloWorld
┃┃┣━━:NamespaceHelloWorld->hello←'Hello, World!'┃┃┗━━:NamespaceHelloWorld->plus←{⍺+⍵}┃┣━━📄c_test.c(256tokens,69lines)┃┃┣━━structPoint
┃┃┣━━structPointgetOrigin()┃┃┣━━floatmul_two_floats(floatx1,floatx2)┃┃┣━━enumdays
┃┃┣━━longadd_two_longs(longx1,longx2)┃┃┣━━doublemultiplyByTwo(doublenum)┃┃┣━━chargetFirstCharacter(char*str)┃┃┣━━voidgreet(Personp)┃┃┣━━typedefstructPerson
┃┃┣━━intmain()┃┃┗━━int*getArrayStart(intarr[],intsize)┃┣━━📄PerlTest.pl(75tokens,20lines)┃┃┣━━packagePerlTest
┃┃┣━━packagePerlTest->subnew
┃┃┣━━packagePerlTest->subhello
┃┃┗━━packagePerlTest->subsay_hello
┃┣━━📄PhpTest.php(74tokens,19lines)┃┃┣━━classHelloWorld
┃┃┣━━classHelloWorld->functionsayHello
┃┃┣━━functiongreet
┃┃┣━━classPerson
┃┃┗━━classPerson->function__construct
┃┣━━📄PowershellTest.ps1(169tokens,27lines)┃┃┣━━functionTest-Ordering($foo)┃┃┣━━classPerson
┃┃┣━━classPerson->Person($name)┃┃┣━━classPerson->Greet()┃┃┣━━classPerson->GreetMany($times)┃┃┣━━classPerson->NoReturn($times)┃┃┣━━classPerson->NoReturnNoArgs()┃┃┗━━functionSay-Hello([Person]$person)┃┗━━📄ScalaTest.scala(136tokens,24lines)┃┣━━defsumOfSquares(x:Int,y:Int):Int
┃┣━━traitBark
┃┣━━traitBark->defbark:String
┃┣━━caseclassPerson(name:String)┃┣━━objectHelloWorld
┃┣━━objectHelloWorld->defgreet(person:Person):Unit
┃┣━━objectHelloWorld->defmain(args:Array[String]):Unit
┃┗━━defsumOfSquaresShort(x:Int,y:Int):Int
┣━━📁group4(944tokens,166lines)┃┣━━📄matlab_test.m(45tokens,12lines)┃┃┣━━classdefHelloWorld->functiongreet
┃┃┗━━functionloneFun
┃┣━━📄rust_test.rs(611tokens,115lines)┃┃┣━━enumDays
┃┃┣━━structPoint
┃┃┣━━implPoint
┃┃┣━━fnget_origin()->Point
┃┃┣━━structPerson
┃┃┣━━implPerson
┃┃┣━━fngreet(&self)┃┃┣━━fnadd_two_longs(x1:i64,x2:i64)->i64
┃┃┣━━fnadd_two_longs_longer(┃┃┃x1:i64,
┃┃┃x2:i64,
┃┃┃)->i64
┃┃┣━━fnmultiply_by_two(num:f64)->f64
┃┃┣━━fnget_first_character(s:&str)->Option<char>
┃┃┣━━traitDrawable
┃┃┣━━fndraw(&self)┃┃┣━━implDrawableforPoint
┃┃┣━━fndraw(&self)┃┃┣━━fnmain()┃┃┣━━pubstructVisibleStruct
┃┃┣━━modmy_module
┃┃┣━━macro_rules!say_hello
┃┃┣━━pubmodlib
┃┃┣━━pubmodinterfaces
┃┃┣━━modengine
┃┃┗━━pubfnflow<S1,S2,S3,S4,E,T,L>(┃┃source:S1,
┃┃extractor:E,
┃┃inbox:S2,
┃┃transformer:T,
┃┃outbox:S3,
┃┃loader:L,
┃┃sink:&mutS4,
┃┃)->Result<(),Box<dynError>>
┃┃where
┃┃S1:Extractable,
┃┃S2:Extractable+Loadable,
┃┃S3:Extractable+Loadable,
┃┃S4:Loadable,
┃┃E:Extractor<S1,S2>,
┃┃T:Transformer<S2,S3>,
┃┃L:Loader<S3,S4>,
┃┗━━📄tf_test.tf(288tokens,39lines)┃┣━━provider"aws"┃┣━━resource"aws_instance""example"┃┣━━data"aws_ami""ubuntu"┃┣━━variable"instance_type"┃┣━━output"instance_public_ip"┃┣━━locals
┃┗━━module"vpc"┗━━📁group5(4442tokens,600lines)┣━━📄ansible_test.yml(60tokens,15lines)┃┣━━Installpackage┃┣━━Startservice┃┗━━Createuser┣━━📄app-routing.module.ts(242tokens,28lines)┃┣━━constroutes: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},┃┃];┃┗━━classAppRoutingModule┣━━📄app.component.spec.ts(307tokens,48lines)┃┣━━describe'AppComponent'┃┣━━itshouldcreatetheapp┃┣━━itshouldwelcometheuser┃┣━━itshouldwelcome'Jimbo'┃┗━━itshouldrequestloginifnotloggedin┣━━📄app.component.ts(243tokens,44lines)┃┣━━classAppComponent┃┣━━title:string='promo-app'┃┣━━user:any┃┣━━events:any┃┣━━events_list:any┃┣━━clientSecret:string┃┣━━card?:StripePaymentElementComponent┃┣━━cardOptions:StripePaymentElementOptions┃┣━━constructor(┃┃privatehttp:HttpClient,┃┃privateloginService:LoginService,┃┃privatestripeService:StripeService┃┃)┃┣━━constructor(privateloginService:LoginService)┃┣━━checkSession()┃┣━━asyncgoToEvent(event_id:string)┃┗━━valInvitedBy(event:any,event_id:string)┣━━📄app.module.ts(269tokens,43lines)┃┣━━@NgModule({┃┃declarations:[┃┃AppComponent,┃┃HomeComponent,┃┃LoginComponent,┃┃RegisterComponent,┃┃EventsComponent,┃┃InvitesComponent,┃┃RewardsComponent,┃┃ProfileComponent┃┗━━classAppModule┣━━📄checkbox_test.md(263tokens,22lines)┃┣━━# 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]┃┣━━-[]Task1┃┣━━-[]NoSpaceTask1.1┃┣━━-[]TwoSpacesTask1.2┃┣━━-[]Subtask1.2.1┃┣━━-[]Task2┃┣━━-Task3┃┣━━-[]Subtask3.1┃┣━━-Task6┃┣━━-Subtask6.1┃┗━━-[]Handleedgecases┣━━📄checkbox_test.txt(276tokens,33lines)┃┣━━-[]fixphonenumberformat+1┃┣━━-[]addforgotpassword┃┣━━-[]?addemailverification┃┣━━-[]storetokentherightway┃┣━━-[]testnestingofcheckboxes┃┣━━-[]usercanuseoptiontobuyticketat2-referredprice┃┣━━-[]CTArefer2peopletogetinstantlowerprice┃┗━━-[]formtosendreferrals┣━━📄environment.test.ts(193tokens,19lines)┃┣━━environment:┃┣━━production┃┣━━cognitoUserPoolId┃┣━━cognitoAppClientId┃┗━━apiurl┣━━📄k8s_test.yaml(171tokens,38lines)┃┣━━apps/v1.Deployment->my-app┃┣━━v1.Service->my-service┃┗━━v1.ConfigMap->my-config┣━━📄Makefile(882tokens,85lines)┃┣━━includedotenv/dev.env┃┣━━.PHONY:dev┃┣━━dev┃┣━━services-down┃┣━━services-stop:services-down┃┣━━defineCHECK_POSTGRES┃┣━━damage-report┃┣━━tail-logs┃┗━━cloud┣━━📄requirements_test.txt(40tokens,10lines)┃┣━━psycopg2-binary┃┣━━pytest┃┣━━coverage┃┣━━flask┃┣━━flask_cors┃┣━━stripe┃┣━━pyjwt┃┣━━cognitojwt┃┗━━flask-lambda┣━━📄rust_todo_test.rs(109tokens,27lines)┃┣━━TODO(Line23):Thistodotestsparse_todo┃┣━━enumColor┃┣━━structPoint┃┣━━traitDrawable┃┣━━fndraw(&self)┃┣━━implDrawableforPoint┃┣━━fndraw(&self)┃┗━━fnmain()┣━━📄sql_test.sql(300tokens,52lines)┃┣━━CREATETABLEpromoters┃┣━━user_idserialPRIMARYKEY,┃┣━━typevarchar(20)NOTNULL,┃┣━━usernamevarchar(20)NOTNULL,┃┣━━passwordvarchar(20)NOTNULL,┃┣━━emailvarchar(30)NOTNULL,┃┣━━phonevarchar(20)NOTNULL,┃┣━━promocodevarchar(20),┃┣━━infojson,┃┣━━goingtext[],┃┣━━invitestext[],┃┣━━balanceintegerNOTNULL,┃┣━━rewardstext[],┃┣━━createdtimestamp┃┣━━CREATETABLEevents┃┣━━event_idserialPRIMARYKEY,┃┣━━namevarchar(64)NOTNULL,┃┣━━datevarchar(64)NOTNULL,┃┣━━locationvarchar(64)NOTNULL,┃┣━━performervarchar(64)NOTNULL,┃┣━━rewardsjson,┃┗━━createdtimestamp┣━━📄standard-app-routing.module.ts(93tokens,17lines)┃┗━━constroutes:Routes=[┃{path:'',component:HomeComponent},┃{┃path:'heroes',┃component:HeroesListComponent,┃children:[┃{path:':id',component:HeroDetailComponent},┃{path:'new',component:HeroFormComponent},┃],┃},┃{path:'**',component:PageNotFoundComponent},┃];┣━━📄test.env(242tokens,26lines)┃┣━━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(294tokens,49lines)┃┣━━$schema:http://json-schema.org/draft-07/schema#┃┣━━type:object┃┣━━title:random_test┃┗━━description:Apromoter's activites related to events┗━━ 📄 testPackage.json (458 tokens, 44 lines)┣━━ name: 'promo-app'┣━━ version: 0.0.0┣━━ scripts:┣━━     ng: 'ng'┣━━     start: 'ngserve'┣━━     build: 'ngbuild'┣━━     watch: 'ngbuild--watch--configurationdevelopment'┗━━     test: 'ngtest'Support Free, Open-Source Software:Please consider contacting the authorities to report the issue described in this document:California OpenAI Complaint - Customer Noncompete Clause