<jupyter_start><jupyter_text>set sample<jupyter_code>s = set([2,2,2,1,3,3])
s 
s1 = {2,2,2,1,3,3}
s1<jupyter_output><empty_output><jupyter_text>functions<jupyter_code>a = {1,2,3,4,5}
b = {3,4,5,6,7,8}<jupyter_output><empty_output><jupyter_text>union<jupyter_code>a.union(b)
a | b<jupyter_output><empty_output><jupyter_text>intersection<jupyter_code>a.intersection(b)
a & b<jupyter_output><empty_output><jupyter_text>difference<jupyter_code>a.difference(b)
a - b 
b.difference(a)
b - a<jupyter_output><empty_output><jupyter_text>symmetric difference<jupyter_code>a.symmetric_difference(b)
a ^ b
b.symmetric_difference(a)
b ^ a<jupyter_output><empty_output><jupyter_text>issubset<jupyter_code>a.issubset(b)
b.issuperset(a)<jupyter_output><empty_output><jupyter_text>issuperset<jupyter_code>a.issuperset(b)
b.issubset(a)<jupyter_output><empty_output><jupyter_text>isdisjoint<jupyter_code>a.isdisjoint(b)
b.isdisjoint(a)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15750528541226216, 'fraction_numerical': 0.026427061310782242, 'mean_word_length': 16.537037037037038, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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}}
{'chain_length': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '585779', 'license': 'Apache-2.0', 'n_tokens_mistral': 465, 'n_tokens_neox': 455, 'n_words': 28, 'path': 'basic/set_sample.ipynb', 'repo_name': 'erzhiqianyi/PythonDataAnalysis', 'size': '946'}