facebookresearch / Mephisto
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 264 files with 24,954 lines of code.
    • 0 very long files (0 lines of code)
    • 6 long files (4,194 lines of code)
    • 29 medium size files (8,404 lines of codeclsfd_ftr_w_mp_ins)
    • 53 small files (7,364 lines of code)
    • 176 very small files (4,992 lines of code)
0% | 16% | 33% | 29% | 20%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 21% | 39% | 24% | 14%
css0% | 55% | 0% | 17% | 27%
js0% | 0% | 33% | 44% | 22%
jsx0% | 0% | 39% | 49% | 10%
tsx0% | 0% | 24% | 31% | 44%
ts0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
jsonl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
mephisto/abstractions0% | 23% | 37% | 21% | 17%
mephisto/operations0% | 43% | 33% | 14% | 8%
packages/annotated0% | 17% | 25% | 38% | 17%
packages/annotation-toolkit0% | 22% | 29% | 37% | 10%
mephisto/client0% | 0% | 40% | 24% | 35%
mephisto/data_model0% | 0% | 45% | 42% | 11%
packages/mephisto-task0% | 0% | 56% | 35% | 8%
mephisto/tools0% | 0% | 58% | 0% | 41%
packages/cra-template-mephisto-review0% | 0% | 0% | 59% | 40%
mephisto/scripts0% | 0% | 0% | 76% | 23%
packages/mephisto-review-hook0% | 0% | 0% | 0% | 100%
packages/global-context-store0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
hydra_plugins0% | 0% | 0% | 0% | 100%
mephisto0% | 0% | 0% | 0% | 100%
hydra_configs/profile0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ec2_helpers.py
in mephisto/abstractions/architects/ec2
931 28
local_database.py
in mephisto/abstractions/databases
803 51
supervisor.py
in mephisto/operations
755 31
mturk_utils.py
in mephisto/abstractions/providers/mturk
589 36
react-mosaic-component.css
in packages/annotated/shell/src
558 -
react-mosaic-component.css
in packages/annotation-toolkit/src
558 -
server.js
in mephisto/abstractions/architects/router/deploy
478 22
blueprint.py
in mephisto/abstractions
422 41
agent.py
in mephisto/data_model
398 39
socket_handler.jsx
in packages/mephisto-task/src
394 -
mephisto_flask_blueprint.py
in mephisto/abstractions/architects/router/flask
390 35
operator.py
in mephisto/operations
369 12
heroku_architect.py
in mephisto/abstractions/architects
353 19
MovableRect.js
in packages/annotation-toolkit/src/layers
313 1
MovableRect.js
in packages/annotated/bbox/src
310 1
database.py
in mephisto/abstractions
306 51
review_server.py
in mephisto/client/review
292 12
parlai_chat_blueprint.py
in mephisto/abstractions/blueprints/parlai_chat
282 5
Launch.tsx
in mephisto/client/full/webapp/src/widgets
279 2
task_run.py
in mephisto/data_model
268 21
Keypoints.jsx
in packages/annotated/keypoint/src
263 -
api.py
in mephisto/client
258 24
use_gold_unit.py
in mephisto/abstractions/blueprints/mixins
256 14
mock_architect.py
in mephisto/abstractions/architects
248 27
cli.py
in mephisto/client
248 8
mturk_unit.py
in mephisto/abstractions/providers/mturk
239 15
utils.js
in packages/annotated/bbox/src/RRRR
238 -
utils.js
in packages/annotation-toolkit/src/layers/RRRR
238 -
mturk_datastore.py
in mephisto/abstractions/providers/mturk
237 17
ec2_architect.py
in mephisto/abstractions/architects/ec2
236 18
examine_utils.py
in mephisto/tools
224 7
parlai_chat_task_runner.py
in mephisto/abstractions/blueprints/parlai_chat
224 15
task_launcher.py
in mephisto/operations
220 13
unit.py
in mephisto/data_model
220 21
VideoPlayer.js
in packages/annotation-toolkit/src/layers
201 2
app.jsx
in mephisto/abstractions/blueprints/static_html_task/source/dev
199 -
WordCloud.jsx
in packages/cra-template-mephisto-review/template/src/renderers/WordCloudItem
193 -
launch_makeup_hits.py
in mephisto/scripts/mturk
190 2
screen_task_required.py
in mephisto/abstractions/blueprints/mixins
184 10
static_blueprint.py
in mephisto/abstractions/blueprints/abstract/static_task
183 3
index.js
in packages/annotated/bbox/src/RRRR/Rect
178 1
index.js
in packages/annotation-toolkit/src/layers/RRRR/Rect
178 1
worker.py
in mephisto/data_model
177 20
VideoPlayer.js
in packages/annotated/video-player/src
176 -
ContentPanel.js
in packages/annotated/shell/src/panels
175 3
ContentPanel.js
in packages/annotation-toolkit/src/panels
175 3
GridReview.js
in mephisto/client/full/webapp/src/widgets
170 1
qualification.py
in mephisto/data_model
169 5
ItemView.jsx
in packages/cra-template-mephisto-review/template/src/components
169 -
assignment.py
in mephisto/data_model
164 16
Files With Most Units (Top 20)
File# lines# units
local_database.py
in mephisto/abstractions/databases
803 51
database.py
in mephisto/abstractions
306 51
blueprint.py
in mephisto/abstractions
422 41
agent.py
in mephisto/data_model
398 39
mturk_utils.py
in mephisto/abstractions/providers/mturk
589 36
mephisto_flask_blueprint.py
in mephisto/abstractions/architects/router/flask
390 35
supervisor.py
in mephisto/operations
755 31
ec2_helpers.py
in mephisto/abstractions/architects/ec2
931 28
mock_architect.py
in mephisto/abstractions/architects
248 27
api.py
in mephisto/client
258 24
server.js
in mephisto/abstractions/architects/router/deploy
478 22
task_run.py
in mephisto/data_model
268 21
unit.py
in mephisto/data_model
220 21
worker.py
in mephisto/data_model
177 20
heroku_architect.py
in mephisto/abstractions/architects
353 19
ec2_architect.py
in mephisto/abstractions/architects/ec2
236 18
utils.py
in mephisto/operations
152 17
mturk_datastore.py
in mephisto/abstractions/providers/mturk
237 17
assignment.py
in mephisto/data_model
164 16
parlai_chat_task_runner.py
in mephisto/abstractions/blueprints/parlai_chat
224 15
Files With Long Lines (Top 18)

There are 18 files with lines longer than 120 characters. In total, there are 32 long lines.

File# lines# units# long lines
cli.py
in mephisto/client
248 8 6
WordCloud.jsx
in packages/cra-template-mephisto-review/template/src/renderers/WordCloudItem
193 - 3
Pagination.jsx
in packages/cra-template-mephisto-review/template/src/components/Pagination
111 - 3
task.py
in mephisto/data_model
111 10 2
wrap_crowd_source.js
in mephisto/abstractions/providers/mock
72 8 2
wrap_crowd_source.js
in mephisto/abstractions/providers/mturk_sandbox
90 10 2
wrap_crowd_source.js
in mephisto/abstractions/providers/mturk
90 10 2
utils.js
in packages/mephisto-task/src
144 15 2
examine_utils.py
in mephisto/tools
224 7 1
supervisor.py
in mephisto/operations
755 31 1
static_react_blueprint.py
in mephisto/abstractions/blueprints/static_react_task
91 2 1
mturk_utils.py
in mephisto/abstractions/providers/mturk
589 36 1
ec2_helpers.py
in mephisto/abstractions/architects/ec2
931 28 1
cleanup_ec2_resources.py
in mephisto/abstractions/architects/ec2
15 1 1
mocks.ts
in mephisto/client/full/webapp/src
31 - 1
review_server.py
in mephisto/client/review
292 12 1
index.js
in packages/annotated/bbox/src/RRRR/Rect
178 1 1
index.js
in packages/annotation-toolkit/src/layers/RRRR/Rect
178 1 1