tracking-exposed / trex

youtube & tiktok analysis + youchoose recommendation custmizer. backend, extensions, and tooling
https://docs.tracking.exposed
GNU Affero General Public License v3.0
54 stars 15 forks source link

chore(workspace): cloc script grouping by file and by lang #777

Closed ascariandrea closed 2 years ago

ascariandrea commented 2 years ago

The output of cloc is now more readable as it is grouped by file and than lang

./packages/shared/src
     100 files
     128 text files.
classified 128 files
Duplicate file check 128 files (123 known unique)
Unique:      100 files                                          
     128 unique files.                              
Counting:  100
       2 files ignored.

github.com/AlDanial/cloc v 1.90  T=0.05 s (2526.9 files/s, 221857.3 lines/s)
-------------------------------------------------------------------------------------------------------------------------
File                                                                                  blank        comment           code
-------------------------------------------------------------------------------------------------------------------------
./packages/shared/src/arbitraries/HumanReadableString.arb.ts                              7              0           2891
./packages/shared/src/providers/parser.provider.ts                                       79            162            560
./packages/shared/src/providers/dataDonation.provider.ts                                 58             68            371
./packages/shared/src/providers/swagger/swagger.provider.ts                              31             34            312
./packages/shared/src/extension/app.ts                                                   59             51            276
./packages/shared/src/providers/api.provider.ts                                          27             16            234
./packages/shared/src/providers/browser.provider.ts                                      17              3            227
./packages/shared/src/providers/swagger/IOTSToOpenAPISchema.ts                           23             19            220
./packages/shared/src/webpack/config.ts                                                  30             12            220
./packages/shared/src/providers/mongo.provider.ts                                        23              2            197
./packages/shared/src/extension/popup/components/Popup.tsx                               17              4            155
./packages/shared/src/extension/popup/components/Settings.tsx                             7              0            142
./packages/shared/src/providers/db.provider.ts                                           27              3            140
./packages/shared/src/test/utils/parser.utils.ts                                         19             22            125
./packages/shared/src/providers/puppeteer/puppeteer.provider.ts                          11              4            124
./packages/shared/src/extension/background/account.ts                                    19             19            118
./packages/shared/src/backend/utils/routeHandlerMiddleware.ts                            13              5            113
./packages/shared/src/models/contributor/ContributorPersonalSummary.ts                   10             22            110
./packages/shared/src/extension/background/sendMessage.ts                                11              6            100
./packages/shared/src/webpack/extension.config.ts                                         9              0             97
./packages/shared/src/extension/background/sync.ts                                        6              1             96
./packages/shared/src/providers/puppeteer/steps/openURL.ts                               12             15             95
./packages/shared/src/extension/db.ts                                                    14              0             90
./packages/shared/src/endpoints/helper.ts                                                10              0             82
./packages/shared/src/endpoints/DocumentedEndpoint.ts                                     5              1             76
./packages/shared/src/models/Step.ts                                                     10              5             75
./packages/shared/src/models/contributor/ContributorPersonalStats.ts                      5              1             74
./packages/shared/src/models/index.ts                                                     1             10             69
./packages/shared/src/providers/bs58.provider.ts                                         12              1             69
./packages/shared/src/backend/utils/endpoint.ts                                           5              1             64
./packages/shared/src/extension/__mocks__/chrome.mock.ts                                 12              1             64
./packages/shared/src/extension/background/index.ts                                      12              1             58
./packages/shared/src/models/Experiment.ts                                                7              0             57
./packages/shared/src/providers/puppeteer/steps/keyPress.ts                               5              7             55
./packages/shared/src/extension/popup/components/InfoBox.tsx                              4              1             53
./packages/shared/src/providers/puppeteer/steps/scroll.ts                                11              6             52
./packages/shared/src/providers/swagger/swagger.provider.node.ts                          7             13             49
./packages/shared/src/utils/csv.utils.ts                                                  2              0             48
./packages/shared/src/extension/models/HubEvent.ts                                        7             13             46
./packages/shared/src/extension/utils/HTMLSize.utils.ts                                   7             10             45
./packages/shared/src/extension/models/Message.ts                                         9              0             44
./packages/shared/src/extension/utils/common.utils.ts                                     5              1             42
./packages/shared/src/models/ContentCreator.ts                                            7              1             42
./packages/shared/src/models/ContributionEvent.ts                                         9              0             42
./packages/shared/src/backend/errors/BackendError.ts                                      5              1             39
./packages/shared/src/models/Recommendation.ts                                            9              1             38
./packages/shared/src/providers/puppeteer/steps/click.ts                                  6             13             38
./packages/shared/src/extension/hub.ts                                                   14              2             37
./packages/shared/src/models/HandshakeBody.ts                                             5              0             37
./packages/shared/src/extension/file.ts                                                   6              1             34
./packages/shared/src/utils/food.utils.ts                                                 5             11             34
./packages/shared/src/extension/dom.ts                                                   12             36             33
./packages/shared/src/utils/endpoint.utils.ts                                             4              0             33
./packages/shared/src/extension/config.ts                                                 6              0             32
./packages/shared/src/extension/popup/components/DashboardLinks.tsx                       4              9             32
./packages/shared/src/backend/utils/authenticationMiddleware.ts                           4              0             30
./packages/shared/src/utils/arbitrary.utils.ts                                            2              0             30
./packages/shared/src/utils/date.utils.ts                                                 2              1             30
./packages/shared/src/endpoints/MinimalEndpoint.ts                                        2              0             29
./packages/shared/src/models/CreatorStats.ts                                              4              0             29
./packages/shared/src/components/Error/ErrorBox.tsx                                       2              2             28
./packages/shared/src/models/ChannelRelated.ts                                            4              0             28
./packages/shared/src/endpoints/ResourceEndpoints.ts                                      2              0             27
./packages/shared/src/models/HTML.ts                                                      2              0             27
./packages/shared/src/utils/encode.utils.ts                                               5              0             27
./packages/shared/src/arbitraries/Experiment.arb.ts                                       3              0             26
./packages/shared/src/components/Error/ErrorBoundary.tsx                                  6              5             26
./packages/shared/src/test/__mocks__/puppeteer.mock.ts                                    3              1             26
./packages/shared/src/utils/fp.utils.ts                                                   2             13             26
./packages/shared/src/models/stats/ChannelADV.ts                                          3              0             25
./packages/shared/src/logger/index.ts                                                     6              0             24
./packages/shared/src/arbitraries/HandshakeResponse.arb.ts                                5              0             21
./packages/shared/src/errors/AppError.ts                                                  4              0             21
./packages/shared/src/backend/index.ts                                                    5              4             20
./packages/shared/src/models/Video.ts                                                     3              0             19
./packages/shared/src/models/extension/Settings.ts                                        3              4             19
./packages/shared/src/providers/puppeteer/StepHooks.ts                                    1              0             19
./packages/shared/src/arbitraries/URL.arb.ts                                              1              0             18
./packages/shared/src/extension/popup/index.tsx                                           2              6             18
./packages/shared/src/extension/tooltip/index.tsx                                         5              0             18
./packages/shared/src/arbitraries/Step.arb.ts                                             2              3             17
./packages/shared/src/models/Auth.ts                                                      3              0             17
./packages/shared/src/models/Metadata.ts                                                  1              1             17
./packages/shared/src/models/contributor/ContributorPublicKey.ts                          2              0             16
./packages/shared/src/arbitraries/ContentCreator.arb.ts                                   2             10             15
./packages/shared/src/providers/localStorage.provider.ts                                  2              0             15
./packages/shared/src/providers/security.provider.type.ts                                 1              0             15
./packages/shared/src/utils/decode.utils.ts                                               4              1             15
./packages/shared/src/errors/APIError.ts                                                  2              0             14
./packages/shared/src/extension/models/UserSettings.ts                                    3              0             14
./packages/shared/src/extension/tooltip/components/tooltip.tsx                            4              0             14
./packages/shared/src/utils/yt.utils.ts                                                   5              0             14
./packages/shared/src/arbitraries/Supporter.arb.ts                                        1              0             13
./packages/shared/src/models/Supporter.ts                                                 2              0             13
./packages/shared/src/errors/ValidationError.ts                                           2              0             12
./packages/shared/src/extension/utils/browser.utils.ts                                    3              1             12
./packages/shared/src/models/http/SearchQuery.ts                                          1              0             12
./packages/shared/src/extension/handlers/index.ts                                         2              0             11
./packages/shared/src/extension/background/README.md                                      3              0              9
./packages/shared/src/models/extension/Keypair.ts                                         2              0              9
./packages/shared/src/utils/task.utils.ts                                                 1              6              9
./packages/shared/src/arbitraries/Recommendation.arb.ts                                   1              0              8
./packages/shared/src/arbitraries/Video.arb.ts                                            1              4              8
./packages/shared/src/backend/types.ts                                                    2              0              8
./packages/shared/src/endpoints/index.ts                                                  0              0              8
./packages/shared/src/extension/handlers/logger.ts                                        1              1              8
./packages/shared/src/backend/app.ts                                                      1              0              7
./packages/shared/src/extension/background/reloadExtension.ts                             1              0              7
./packages/shared/src/extension/handlers/reloadExtension.ts                               3              4              7
./packages/shared/src/utils/ip.utils.ts                                                   1              0              7
./packages/shared/src/models/common/What.ts                                               1              1              6
./packages/shared/src/models/http/params/PublicKey.ts                                     1              0              6
./packages/shared/src/extension/logger.ts                                                 3              0              5
./packages/shared/src/test/__mocks__/axios.mock.ts                                        2              1              5
./packages/shared/src/utils/promise.utils.ts                                              1              0              5
./packages/shared/src/constants/index.ts                                                  1              0              4
./packages/shared/src/providers/puppeteer/steps/types.ts                                  1              0              4
./packages/shared/src/utils/html.utils.ts                                                 1              7              4
./packages/shared/src/webpack/plugins.ts                                                  1              0              4
./packages/shared/src/extension/index.d.ts                                                0              0              3
./packages/shared/src/models/common/Format.ts                                             1              0              3
./packages/shared/src/models/common/StringOrNull.ts                                       1              0              3
./packages/shared/src/models/common/index.ts                                              0              0              3
./packages/shared/src/providers/puppeteer/index.ts                                        1              0              2
./packages/shared/src/providers/swagger/utils.ts                                          1              0              2
./packages/shared/src/test/index.ts                                                       1              0              2
./packages/shared/src/utils/number.utils.ts                                               1              0              2
./packages/shared/src/index.ts                                                            0              0              1
-------------------------------------------------------------------------------------------------------------------------
SUM:                                                                                    915            691           9632
-------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
TypeScript                     127            912            691           9623
Markdown                         1              3              0              9
-------------------------------------------------------------------------------
SUM:                           128            915            691           9632
-------------------------------------------------------------------------------