anthropics / prompt-eng-interactive-tutorial
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 38 files with 15,565 lines of code.
    • 0 very long files (0 lines of code)
    • 15 long files (9,265 lines of code)
    • 14 medium size files (5,521 lines of code)
    • 3 small files (534 lines of code)
    • 6 very small files (245 lines of code)
0% | 59% | 35% | 3% | 1%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ipynb0% | 60% | 35% | 3% | <1%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
AmazonBedrock0% | 62% | 32% | 3% | 1%
Anthropic 1P0% | 52% | 42% | 3% | 2%
Longest Files (Top 38)
File# lines# units
10_2_Appendix_Tool_Use.ipynb
in AmazonBedrock/anthropic
800 -
10_2_Appendix_Tool_Use.ipynb
in AmazonBedrock/boto3
791 -
778 -
712 -
708 -
10_1_Appendix_Chaining_Prompts.ipynb
in AmazonBedrock/anthropic
706 -
562 -
558 -
552 -
528 -
528 -
517 -
514 -
508 -
01_Basic_Prompt_Structure.ipynb
in AmazonBedrock/boto3
503 -
496 -
01_Basic_Prompt_Structure.ipynb
in AmazonBedrock/anthropic
493 -
459 -
02_Being_Clear_and_Direct.ipynb
in AmazonBedrock/boto3
403 -
403 -
02_Being_Clear_and_Direct.ipynb
in AmazonBedrock/anthropic
399 -
397 -
394 -
391 -
353 -
342 -
335 -
03_Assigning_Roles_Role_Prompting.ipynb
in AmazonBedrock/anthropic
331 -
325 -
00_Tutorial_How-To.ipynb
in AmazonBedrock/boto3
195 -
00_Tutorial_How-To.ipynb
in AmazonBedrock/anthropic
185 -
154 -
hints.py
in Anthropic 1P
86 -
hints.py
in AmazonBedrock/utils
86 -
24 -
24 -
24 -
__init__.py
in AmazonBedrock/utils
1 -
Files With Most Units (Top 0)
File# lines# units
Files With Long Lines (Top 35)

There are 35 files with lines longer than 120 characters. In total, there are 752 long lines.

File# lines# units# long lines
778 - 43
391 - 43
397 - 43
10_2_Appendix_Tool_Use.ipynb
in AmazonBedrock/anthropic
800 - 43
403 - 43
10_2_Appendix_Tool_Use.ipynb
in AmazonBedrock/boto3
791 - 43
496 - 34
508 - 34
514 - 34
552 - 24
558 - 24
562 - 24
01_Basic_Prompt_Structure.ipynb
in AmazonBedrock/anthropic
493 - 21
353 - 21
342 - 21
01_Basic_Prompt_Structure.ipynb
in AmazonBedrock/boto3
503 - 21
459 - 19
517 - 19
528 - 19
528 - 19
325 - 17
03_Assigning_Roles_Role_Prompting.ipynb
in AmazonBedrock/anthropic
331 - 17
335 - 17
708 - 15
10_1_Appendix_Chaining_Prompts.ipynb
in AmazonBedrock/anthropic
706 - 15
712 - 15
394 - 11
02_Being_Clear_and_Direct.ipynb
in AmazonBedrock/anthropic
399 - 11
02_Being_Clear_and_Direct.ipynb
in AmazonBedrock/boto3
403 - 11
00_Tutorial_How-To.ipynb
in AmazonBedrock/boto3
195 - 8
154 - 7
00_Tutorial_How-To.ipynb
in AmazonBedrock/anthropic
185 - 7
24 - 3
24 - 3
24 - 3
Correlations

File Size vs. Commits (all time): 37 points

AmazonBedrock/anthropic/00_Tutorial_How-To.ipynb x: 1 commits (all time) y: 185 lines of code AmazonBedrock/anthropic/01_Basic_Prompt_Structure.ipynb x: 1 commits (all time) y: 493 lines of code AmazonBedrock/anthropic/02_Being_Clear_and_Direct.ipynb x: 1 commits (all time) y: 399 lines of code AmazonBedrock/anthropic/03_Assigning_Roles_Role_Prompting.ipynb x: 1 commits (all time) y: 331 lines of code AmazonBedrock/anthropic/04_Separating_Data_and_Instructions.ipynb x: 1 commits (all time) y: 558 lines of code AmazonBedrock/anthropic/05_Formatting_Output_and_Speaking_for_Claude.ipynb x: 1 commits (all time) y: 528 lines of code AmazonBedrock/anthropic/06_Precognition_Thinking_Step_by_Step.ipynb x: 1 commits (all time) y: 508 lines of code AmazonBedrock/anthropic/10_1_Appendix_Chaining_Prompts.ipynb x: 1 commits (all time) y: 706 lines of code AmazonBedrock/anthropic/10_2_Appendix_Tool_Use.ipynb x: 1 commits (all time) y: 800 lines of code AmazonBedrock/anthropic/10_3_Appendix_Empirical_Performance_Evaluations.ipynb x: 1 commits (all time) y: 353 lines of code AmazonBedrock/anthropic/10_4_Appendix_Search_and_Retrieval.ipynb x: 1 commits (all time) y: 24 lines of code AmazonBedrock/boto3/00_Tutorial_How-To.ipynb x: 1 commits (all time) y: 195 lines of code AmazonBedrock/boto3/01_Basic_Prompt_Structure.ipynb x: 1 commits (all time) y: 503 lines of code AmazonBedrock/boto3/02_Being_Clear_and_Direct.ipynb x: 1 commits (all time) y: 403 lines of code AmazonBedrock/boto3/03_Assigning_Roles_Role_Prompting.ipynb x: 1 commits (all time) y: 335 lines of code AmazonBedrock/boto3/04_Separating_Data_and_Instructions.ipynb x: 1 commits (all time) y: 562 lines of code AmazonBedrock/boto3/06_Precognition_Thinking_Step_by_Step.ipynb x: 1 commits (all time) y: 514 lines of code AmazonBedrock/boto3/10_1_Appendix_Chaining_Prompts.ipynb x: 1 commits (all time) y: 712 lines of code AmazonBedrock/boto3/10_2_Appendix_Tool_Use.ipynb x: 1 commits (all time) y: 791 lines of code AmazonBedrock/boto3/10_3_Appendix_Empirical_Performance_Eval.ipynb x: 1 commits (all time) y: 342 lines of code AmazonBedrock/utils/__init__.py x: 1 commits (all time) y: 1 lines of code AmazonBedrock/utils/hints.py x: 1 commits (all time) y: 86 lines of code Anthropic 1P/00_Tutorial_How-To.ipynb x: 1 commits (all time) y: 154 lines of code Anthropic 1P/01_Basic_Prompt_Structure.ipynb x: 1 commits (all time) y: 459 lines of code Anthropic 1P/02_Being_Clear_and_Direct.ipynb x: 1 commits (all time) y: 394 lines of code Anthropic 1P/03_Assigning_Roles_Role_Prompting.ipynb x: 1 commits (all time) y: 325 lines of code Anthropic 1P/04_Separating_Data_and_Instructions.ipynb x: 1 commits (all time) y: 552 lines of code Anthropic 1P/05_Formatting_Output_and_Speaking_for_Claude.ipynb x: 1 commits (all time) y: 517 lines of code Anthropic 1P/06_Precognition_Thinking_Step_by_Step.ipynb x: 1 commits (all time) y: 496 lines of code Anthropic 1P/07_Using_Examples_Few-Shot_Prompting.ipynb x: 1 commits (all time) y: 391 lines of code Anthropic 1P/10.2_Appendix_Tool Use.ipynb x: 1 commits (all time) y: 778 lines of code
800.0
lines of code
  min: 1.0
  average: 418.35
  25th percentile: 328.0
  median: 403.0
  75th percentile: 540.0
  max: 800.0
0 1.0
commits (all time)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (all time): 37 points

AmazonBedrock/anthropic/00_Tutorial_How-To.ipynb x: 1 contributors (all time) y: 185 lines of code AmazonBedrock/anthropic/01_Basic_Prompt_Structure.ipynb x: 1 contributors (all time) y: 493 lines of code AmazonBedrock/anthropic/02_Being_Clear_and_Direct.ipynb x: 1 contributors (all time) y: 399 lines of code AmazonBedrock/anthropic/03_Assigning_Roles_Role_Prompting.ipynb x: 1 contributors (all time) y: 331 lines of code AmazonBedrock/anthropic/04_Separating_Data_and_Instructions.ipynb x: 1 contributors (all time) y: 558 lines of code AmazonBedrock/anthropic/05_Formatting_Output_and_Speaking_for_Claude.ipynb x: 1 contributors (all time) y: 528 lines of code AmazonBedrock/anthropic/06_Precognition_Thinking_Step_by_Step.ipynb x: 1 contributors (all time) y: 508 lines of code AmazonBedrock/anthropic/10_1_Appendix_Chaining_Prompts.ipynb x: 1 contributors (all time) y: 706 lines of code AmazonBedrock/anthropic/10_2_Appendix_Tool_Use.ipynb x: 1 contributors (all time) y: 800 lines of code AmazonBedrock/anthropic/10_3_Appendix_Empirical_Performance_Evaluations.ipynb x: 1 contributors (all time) y: 353 lines of code AmazonBedrock/anthropic/10_4_Appendix_Search_and_Retrieval.ipynb x: 1 contributors (all time) y: 24 lines of code AmazonBedrock/boto3/00_Tutorial_How-To.ipynb x: 1 contributors (all time) y: 195 lines of code AmazonBedrock/boto3/01_Basic_Prompt_Structure.ipynb x: 1 contributors (all time) y: 503 lines of code AmazonBedrock/boto3/02_Being_Clear_and_Direct.ipynb x: 1 contributors (all time) y: 403 lines of code AmazonBedrock/boto3/03_Assigning_Roles_Role_Prompting.ipynb x: 1 contributors (all time) y: 335 lines of code AmazonBedrock/boto3/04_Separating_Data_and_Instructions.ipynb x: 1 contributors (all time) y: 562 lines of code AmazonBedrock/boto3/06_Precognition_Thinking_Step_by_Step.ipynb x: 1 contributors (all time) y: 514 lines of code AmazonBedrock/boto3/10_1_Appendix_Chaining_Prompts.ipynb x: 1 contributors (all time) y: 712 lines of code AmazonBedrock/boto3/10_2_Appendix_Tool_Use.ipynb x: 1 contributors (all time) y: 791 lines of code AmazonBedrock/boto3/10_3_Appendix_Empirical_Performance_Eval.ipynb x: 1 contributors (all time) y: 342 lines of code AmazonBedrock/utils/__init__.py x: 1 contributors (all time) y: 1 lines of code AmazonBedrock/utils/hints.py x: 1 contributors (all time) y: 86 lines of code Anthropic 1P/00_Tutorial_How-To.ipynb x: 1 contributors (all time) y: 154 lines of code Anthropic 1P/01_Basic_Prompt_Structure.ipynb x: 1 contributors (all time) y: 459 lines of code Anthropic 1P/02_Being_Clear_and_Direct.ipynb x: 1 contributors (all time) y: 394 lines of code Anthropic 1P/03_Assigning_Roles_Role_Prompting.ipynb x: 1 contributors (all time) y: 325 lines of code Anthropic 1P/04_Separating_Data_and_Instructions.ipynb x: 1 contributors (all time) y: 552 lines of code Anthropic 1P/05_Formatting_Output_and_Speaking_for_Claude.ipynb x: 1 contributors (all time) y: 517 lines of code Anthropic 1P/06_Precognition_Thinking_Step_by_Step.ipynb x: 1 contributors (all time) y: 496 lines of code Anthropic 1P/07_Using_Examples_Few-Shot_Prompting.ipynb x: 1 contributors (all time) y: 391 lines of code Anthropic 1P/10.2_Appendix_Tool Use.ipynb x: 1 contributors (all time) y: 778 lines of code
800.0
lines of code
  min: 1.0
  average: 418.35
  25th percentile: 328.0
  median: 403.0
  75th percentile: 540.0
  max: 800.0
0 1.0
contributors (all time)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".