MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / to_dict

Method to_dict

src/summarycode/score.py:223–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

221 ambiguous_compound_licensing = attr.ib(default=False)
222
223 def to_dict(self):
224 return {
225 'score': self.score,
226 'declared_license': self.declared_license,
227 'identification_precision': self.identification_precision,
228 'has_license_text': self.has_license_text,
229 'declared_copyrights': self.declared_copyrights,
230 'conflicting_license_categories': self.conflicting_license_categories,
231 'ambiguous_compound_licensing': self.ambiguous_compound_licensing,
232 }
233
234
235# minimum score to consider a license detection as good.

Callers 7

process_codebaseMethod · 0.45
process_codebaseMethod · 0.45
add_filesFunction · 0.45
get_displayable_summaryFunction · 0.45
get_licensesFunction · 0.45
get_package_infoFunction · 0.45
get_package_dataFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected