microsoft / pgtoolsservice
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 299 files with 14,490 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (572 lines of code)
    • 16 medium size files (4,588 lines of codeclsfd_ftr_w_mp_ins)
    • 28 small files (3,930 lines of code)
    • 254 very small files (5,400 lines of code)
0% | 3% | 31% | 27% | 37%
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% | 3% | 31% | 27% | 36%
ps10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ossdbtoolsservice/language0% | 20% | 33% | 16% | 29%
pgsmo/objects0% | 0% | 40% | 46% | 12%
ossdbtoolsservice/object_explorer0% | 0% | 87% | 0% | 12%
ossdbtoolsservice/disaster_recovery0% | 0% | 80% | 18% | <1%
ossdbtoolsservice/query_execution0% | 0% | 58% | 0% | 41%
smo/utils0% | 0% | 93% | 0% | 6%
ossdbtoolsservice/connection0% | 0% | 55% | 0% | 44%
ossdbtoolsservice/converters0% | 0% | 49% | 0% | 50%
ossdbtoolsservice/capabilities0% | 0% | 0% | 64% | 35%
ossdbtoolsservice/driver0% | 0% | 0% | 76% | 23%
ossdbtoolsservice/hosting0% | 0% | 0% | 65% | 34%
ossdbtoolsservice/edit_data0% | 0% | 0% | 38% | 61%
ossdbtoolsservice/query0% | 0% | 0% | 25% | 74%
smo/common0% | 0% | 0% | 75% | 24%
ossdbtoolsservice/parsers0% | 0% | 0% | 60% | 39%
ossdbtoolsservice/workspace0% | 0% | 0% | 23% | 76%
mysqlsmo/objects0% | 0% | 0% | 0% | 100%
ossdbtoolsservice/tasks0% | 0% | 0% | 0% | 100%
ossdbtoolsservice/utils0% | 0% | 0% | 0% | 100%
ossdbtoolsservice/scripting0% | 0% | 0% | 0% | 100%
ossdbtoolsservice/metadata0% | 0% | 0% | 0% | 100%
ossdbtoolsservice0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
ossdbtoolsservice/admin0% | 0% | 0% | 0% | 100%
pgsmo0% | 0% | 0% | 0% | 100%
ossdbtoolsservice/serialization0% | 0% | 0% | 0% | 100%
mysqlsmo0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
smo0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
pgcompleter.py
in ossdbtoolsservice/language/completion
572 44
backup.py
in ossdbtoolsservice/disaster_recovery/contracts
365 5
table.py
in pgsmo/objects/table
358 80
column.py
in pgsmo/objects/table_objects
344 48
query_execution_service.py
in ossdbtoolsservice/query_execution
322 38
pg_lightweight_metadata.py
in ossdbtoolsservice/language/query
321 13
pg_routing.py
in ossdbtoolsservice/object_explorer/routing
321 24
language_service.py
in ossdbtoolsservice/language
304 26
sqlcompletion.py
in ossdbtoolsservice/language/completion/packages
299 15
constraints.py
in pgsmo/objects/table_objects
279 45
mysql_routing.py
in ossdbtoolsservice/object_explorer/routing
268 21
object_explorer_service.py
in ossdbtoolsservice/object_explorer
259 17
restore.py
in ossdbtoolsservice/disaster_recovery/contracts
255 4
function_base.py
in pgsmo/objects/functions
255 55
templating.py
in smo/utils
226 12
connection_service.py
in ossdbtoolsservice/connection
211 27
any_to_bytes_converters.py
in ossdbtoolsservice/converters/pg_converters
201 33
json_rpc_server.py
in ossdbtoolsservice/hosting
191 26
node_object.py
in smo/common
186 36
database.py
in pgsmo/objects/database
180 38
constraints_utils.py
in pgsmo/objects/table_objects
179 7
pg_connection_options.py
in ossdbtoolsservice/capabilities/connection_options
171 -
server.py
in pgsmo/objects/server
168 31
pymysql_driver.py
in ossdbtoolsservice/driver/types
165 26
data_editor_session.py
in ossdbtoolsservice/edit_data
157 14
mysql_connection_options.py
in ossdbtoolsservice/capabilities/connection_options
156 -
psycopg_driver.py
in ossdbtoolsservice/driver/types
148 27
trigger.py
in pgsmo/objects/table_objects
148 25
disaster_recovery_service.py
in ossdbtoolsservice/disaster_recovery
143 9
edit_data_service.py
in ossdbtoolsservice/edit_data
140 14
batch.py
in ossdbtoolsservice/query
136 24
datatypes.py
in ossdbtoolsservice/parsers
132 -
sequence.py
in pgsmo/objects/sequence
132 20
operations_queue.py
in ossdbtoolsservice/language
131 19
schema.py
in pgsmo/objects/schema
131 31
query.py
in ossdbtoolsservice/query
122 14
datatype.py
in pgsmo/objects/datatype
120 23
view_base.py
in pgsmo/objects/view
120 25
index.py
in pgsmo/objects/table_objects
119 21
json_reader.py
in ossdbtoolsservice/hosting
116 7
role.py
in pgsmo/objects/role
115 22
completion_refresher.py
in ossdbtoolsservice/language
110 12
workspace_service.py
in ossdbtoolsservice/workspace
107 13
meta.py
in ossdbtoolsservice/language/completion/packages/parseutils
105 11
mysqlcompleter.py
in ossdbtoolsservice/language/completion
102 17
json_message.py
in ossdbtoolsservice/hosting
98 13
tables.py
in ossdbtoolsservice/language/completion/packages/parseutils
95 5
collation.py
in pgsmo/objects/collation
91 16
ossdbtoolsservice_main.py
in ossdbtoolsservice
90 1
completer.py
in ossdbtoolsservice/language/completion
89 4
Files With Most Units (Top 20)
File# lines# units
table.py
in pgsmo/objects/table
358 80
function_base.py
in pgsmo/objects/functions
255 55
column.py
in pgsmo/objects/table_objects
344 48
constraints.py
in pgsmo/objects/table_objects
279 45
pgcompleter.py
in ossdbtoolsservice/language/completion
572 44
query_execution_service.py
in ossdbtoolsservice/query_execution
322 38
database.py
in pgsmo/objects/database
180 38
node_object.py
in smo/common
186 36
any_to_bytes_converters.py
in ossdbtoolsservice/converters/pg_converters
201 33
schema.py
in pgsmo/objects/schema
131 31
server.py
in pgsmo/objects/server
168 31
connection_service.py
in ossdbtoolsservice/connection
211 27
psycopg_driver.py
in ossdbtoolsservice/driver/types
148 27
pymysql_driver.py
in ossdbtoolsservice/driver/types
165 26
json_rpc_server.py
in ossdbtoolsservice/hosting
191 26
language_service.py
in ossdbtoolsservice/language
304 26
driver.py
in ossdbtoolsservice/driver/types
71 25
trigger.py
in pgsmo/objects/table_objects
148 25
view_base.py
in pgsmo/objects/view
120 25
pg_routing.py
in ossdbtoolsservice/object_explorer/routing
321 24
Files With Long Lines (Top 20)

There are 62 files with lines longer than 120 characters. In total, there are 253 long lines.

File# lines# units# long lines
pg_routing.py
in ossdbtoolsservice/object_explorer/routing
321 24 84
query_execution_service.py
in ossdbtoolsservice/query_execution
322 38 24
language_service.py
in ossdbtoolsservice/language
304 26 19
mysql_routing.py
in ossdbtoolsservice/object_explorer/routing
268 21 18
edit_data_service.py
in ossdbtoolsservice/edit_data
140 14 8
connection_service.py
in ossdbtoolsservice/connection
211 27 7
object_explorer_service.py
in ossdbtoolsservice/object_explorer
259 17 6
capabilities_request.py
in ossdbtoolsservice/capabilities/contracts
67 8 4
any_to_bytes_converters.py
in ossdbtoolsservice/converters/pg_converters
201 33 4
data_editor_session.py
in ossdbtoolsservice/edit_data
157 14 4
__init__.py
in ossdbtoolsservice/query_execution/contracts
58 - 4
__init__.py
in ossdbtoolsservice/capabilities/contracts
14 - 3
disaster_recovery_service.py
in ossdbtoolsservice/disaster_recovery
143 9 3
__init__.py
in ossdbtoolsservice/object_explorer/contracts
16 - 3
batch.py
in ossdbtoolsservice/query
136 24 3
service_buffer_file_stream_reader.py
in ossdbtoolsservice/query/data_storage
50 3 3
tasks.py
in ossdbtoolsservice/tasks
83 10 3
__init__.py
in ossdbtoolsservice/connection/contracts
30 - 2
__init__.py
in ossdbtoolsservice/disaster_recovery/contracts
3 - 2
backup.py
in ossdbtoolsservice/disaster_recovery/contracts
365 5 2