@@ -114,44 +114,41 @@ def github_intro(args):
114114 "Overview" ,
115115 None ,
116116 None ,
117- "The GitHub data, below, uses the `total_count`"
118- " returned by API for search queries of the various legal tools."
117+ "The GitHub data, below, uses the `total_count` returned by the API "
118+ " for search queries of the various legal tools.\n "
119119 "\n "
120- f"**The results indicate that { cc_total } ({ cc_percentage } )"
121- f"** of the { total_repositories } total public repositories"
122- " on GitHub that use a CC legal tool. Additionally,"
123- " many more use a non-CC use a Public domain"
124- " equivalent legal tools.\n "
120+ f"**The results indicate that { cc_total :,} ({ cc_percentage } )** of the"
121+ f" { total_repositories :,} total public repositories on GitHub use a CC"
122+ " legal tool. Additionally, many more use a non-CC use a Public"
123+ " domain equivalent legal tools. The fetched GitHub data creates a"
124+ " a subtotal that showcases the different level of permission that"
125+ " works are released under.\n "
125126 "\n "
126- " The GitHub data showcases the different level of"
127- " rights reserved on repositories We have Public"
128- " domain which includes works released under CC0, 0BSD and Unlicense"
129- " meaning developers have waived all their rights to a software."
130- " Allowing anyone to freely use, modify, and distribute the code"
131- " without restriction."
132- " See more at"
127+ "The public-domain-equivalent licenses include 0BSD, CC0, MIT-0 and"
128+ " Unlicense. These licenses allow anyone to freely use, modify, and"
129+ " distribute the code without restriction. See more at"
133130 " [Public-domain-equivalent license]"
134131 "(https://en.wikipedia.org/wiki/Public-domain-equivalent_license).\n "
135- " While a Permissive category of license contains works "
136- " under MIT-0 and CC BY 4.0 allows users to"
137- " reuse the code with some conditions and attribution"
132+ "\n "
133+ "The CC BY 4.0 license is a permissive license that allows users to"
134+ " reuse the code with some conditions and attribution. See more at "
138135 " [Permissive license]"
139- "(https://en.wikipedia.org/wiki/Permissive_software_license)"
140- " and Copyleft contains works under CC BY-SA 4.0. "
141- " which requires any derivative works to be licensed "
142- " under the same terms."
136+ "(https://en.wikipedia.org/wiki/Permissive_software_license). \n "
137+ "\n "
138+ "The CC BY-SA 4.0 license is a copyleft license which requires any "
139+ " derivative works to be licensed under the same terms. See more at "
143140 " [Copyleft](https://en.wikipedia.org/wiki/Copyleft).\n "
144141 "\n "
145- "Thank you GitHub for providing public API"
146- " access to repository metadata!" ,
142+ "Thank you GitHub for providing public API access to repository "
143+ " metadata!" ,
147144 )
148145
149146
150- def plot_totals_by_license_type (args ):
147+ def plot_distribution_by_license (args ):
151148 """
152- Create plots showing totals by license type
149+ Create a plot showing the subtotal distribution by license
153150 """
154- LOGGER .info (plot_totals_by_license_type .__doc__ .strip ())
151+ LOGGER .info (plot_distribution_by_license .__doc__ .strip ())
155152 file_path = shared .path_join (
156153 PATHS ["data_2-process" ],
157154 "github_totals_by_license.csv" ,
@@ -161,7 +158,7 @@ def plot_totals_by_license_type(args):
161158 data_label = "Count"
162159 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
163160 data .sort_values (data_label , ascending = True , inplace = True )
164- title = "Totals by license type "
161+ title = "Subtotal distribution by license"
165162 plt = plot .combined_plot (
166163 args = args ,
167164 data = data ,
@@ -186,22 +183,18 @@ def plot_totals_by_license_type(args):
186183 SECTION_TITLE ,
187184 title ,
188185 image_path ,
189- "Plots showing totals by license type."
190- " This shows the distribution of different CC license"
191- " and non CC license used in GitHub repositories."
192- " Allowing Commons to evaluate how freely softwares on"
193- " GitHub are being used, modified, and shared"
194- " and how developers choose to share their works."
195- " See more at [SPDX License List]"
196- "(https://spdx.org/licenses/)" ,
186+ "The plot shows the distribution of the different open content or"
187+ " public-domain-equivalent licenses (0BSD, CC BY 4.0, CC BY-SA 4.0,"
188+ " CC0 1.0, MIT-0, and Unlicense) used in the subtotal of GitHub"
189+ " repositories." ,
197190 )
198191
199192
200- def plot_totals_by_restriction (args ):
193+ def plot_distribution_by_restriction (args ):
201194 """
202- Create plots showing totals by restriction
195+ Create a plot showing the subtotal distribution by restriction
203196 """
204- LOGGER .info (plot_totals_by_restriction .__doc__ .strip ())
197+ LOGGER .info (plot_distribution_by_restriction .__doc__ .strip ())
205198 file_path = shared .path_join (
206199 PATHS ["data_2-process" ],
207200 "github_totals_by_restriction.csv" ,
@@ -211,7 +204,7 @@ def plot_totals_by_restriction(args):
211204 data_label = "Count"
212205 data = shared .open_data_file (LOGGER , file_path , index_col = name_label )
213206 data .sort_values (name_label , ascending = False , inplace = True )
214- title = "Totals by restriction"
207+ title = "Subtotal distribution by restriction"
215208 plt = plot .combined_plot (
216209 args = args ,
217210 data = data ,
@@ -235,10 +228,9 @@ def plot_totals_by_restriction(args):
235228 SECTION_TITLE ,
236229 title ,
237230 image_path ,
238- "Plots showing totals by different levels of restrictions."
239- " This shows the distribution of Public domain,"
240- " Permissive, and Copyleft"
241- " licenses used in GitHub repositories." ,
231+ "The plot shows the distribution of the different restrictions"
232+ " (Copyleft, Permissive, Public domain) used in the subtotal of GitHub"
233+ " repositories." ,
242234 )
243235
244236
@@ -251,8 +243,8 @@ def main():
251243 )
252244 shared .check_completion_file_exists (args , last_entry )
253245 github_intro (args )
254- plot_totals_by_license_type (args )
255- plot_totals_by_restriction (args )
246+ plot_distribution_by_license (args )
247+ plot_distribution_by_restriction (args )
256248
257249 # Add and commit changes
258250 args = shared .git_add_and_commit (
0 commit comments