{'fraction_non_alphanumeric': 0.02680965147453083, 'fraction_numerical': 0.0, 'mean_word_length': 5.1735537190082646, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Encapsulation in object-oriented programs

In stead of decomposing data and procedures, object-oriented (OO) programming encapsulates the both through an object. An object is instantiated from a class which defines attributes (related data) and methods (operational procedures). The definition of a class may be recursive since the class can encapsulate the instance(s) of another classes as its attributes. An object containing other objects is called a complex object. The form of a most primitive object, an object containing no other object, is nothing but a data entity and is called a simple object. Encapsulation solidates an object by hiding the details; it may also obstruct dependency analysis for complex objects by information hiding.