microsoft / TextWorld
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 85 files with 10,540 lines of code.
    • 1 very long files (1,023 lines of code)
    • 3 long files (2,287 lines of code)
    • 10 medium size files (3,220 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,477 lines of code)
    • 54 very small files (1,533 lines of code)
9% | 21% | 30% | 23% | 14%
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
py10% | 22% | 29% | 22% | 14%
css0% | 0% | 100% | 0% | 0%
c0% | 0% | 0% | 100% | 0%
ebnf0% | 0% | 0% | 0% | 100%
handlebars0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
textworld/challenges68% | 0% | 14% | 8% | 8%
textworld/logic0% | 92% | 0% | 0% | 7%
textworld/generator0% | 18% | 59% | 22% | <1%
textworld/render0% | 0% | 60% | 35% | 3%
textworld/envs0% | 0% | 29% | 31% | 38%
textworld0% | 0% | 0% | 59% | 40%
textworld/textgen0% | 0% | 0% | 65% | 34%
src0% | 0% | 0% | 100% | 0%
benchmark0% | 0% | 0% | 88% | 11%
scripts0% | 0% | 0% | 54% | 45%
textworld/gym0% | 0% | 0% | 0% | 100%
textworld/agents0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cooking.py
in textworld/challenges/tw_cooking
1023 17
__init__.py
in textworld/logic
998 204
game.py
in textworld/generator
670 107
parser.py
in textworld/logic
619 91
world.py
in textworld/generator
422 42
maker.py
in textworld/generator
403 50
world2inform7.py
in textworld/generator/inform7
395 17
text_generation.py
in textworld/generator
394 18
render.py
in textworld/render
343 19
chaining.py
in textworld/generator
315 29
tw_inform7.py
in textworld/envs/wrappers
253 27
text_grammar.py
in textworld/generator
250 24
simple.py
in textworld/challenges/tw_simple
225 2
style.css
in textworld/render/tmpl/static
220 -
parser.py
in textworld/textgen
194 25
glk_comm.c
in src
186 7
serve.py
in textworld/render
181 19
vtypes.py
in textworld/generator
177 26
core.py
in textworld
172 41
batch_env.py
in textworld/envs/batch
157 25
graph.py
in textworld/render
151 2
benchmark.py
in benchmark
147 7
__init__.py
in textworld/generator
136 9
graph_networks.py
in textworld/generator
134 12
logger.py
in textworld/generator
134 13
treasure_hunter.py
in textworld/challenges/tw_treasure_hunter
130 3
benchmark_framework.py
in scripts
127 4
dependency_tree.py
in textworld/generator
118 21
tw.py
in textworld/envs
114 6
utils.py
in textworld
110 15
__init__.py
in textworld/generator/data
109 12
jericho.py
in textworld/envs/zmachine
92 11
coin_collector.py
in textworld/challenges/tw_coin_collector
91 3
git_glulx.py
in textworld/envs/glulx
90 10
textworld_batch.py
in textworld/gym/envs
84 8
text_spaces.py
in textworld/gym/spaces
80 7
model.py
in textworld/logic
79 1
sample_quests.py
in scripts
77 4
testing.py
in textworld
77 5
helpers.py
in textworld
65 3
__init__.py
in textworld/textgen
64 17
setup.py
in root
59 4
utils.py
in textworld/gym
59 2
human.py
in textworld/agents
49 3
ebnf
logic.ebnf
in textworld/logic
46 -
viewer.py
in textworld/envs/wrappers
43 6
text_utils.py
in textworld
39 3
random.py
in textworld/agents
31 6
check_generated_games.py
in scripts
29 2
handlebars
slideshow.handlebars
in textworld/render/tmpl
29 -
Files With Most Units (Top 20)
File# lines# units
__init__.py
in textworld/logic
998 204
game.py
in textworld/generator
670 107
parser.py
in textworld/logic
619 91
maker.py
in textworld/generator
403 50
world.py
in textworld/generator
422 42
core.py
in textworld
172 41
chaining.py
in textworld/generator
315 29
tw_inform7.py
in textworld/envs/wrappers
253 27
vtypes.py
in textworld/generator
177 26
batch_env.py
in textworld/envs/batch
157 25
parser.py
in textworld/textgen
194 25
text_grammar.py
in textworld/generator
250 24
dependency_tree.py
in textworld/generator
118 21
render.py
in textworld/render
343 19
serve.py
in textworld/render
181 19
text_generation.py
in textworld/generator
394 18
cooking.py
in textworld/challenges/tw_cooking
1023 17
world2inform7.py
in textworld/generator/inform7
395 17
__init__.py
in textworld/textgen
64 17
utils.py
in textworld
110 15
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 16 long lines.

File# lines# units# long lines
cooking.py
in textworld/challenges/tw_cooking
1023 17 7
text_generation.py
in textworld/generator
394 18 3
world2inform7.py
in textworld/generator/inform7
395 17 2
__init__.py
in textworld/logic
998 204 2
__init__.py
in textworld/generator/data
109 12 1
serve.py
in textworld/render
181 19 1