<commit_before>// Playground: Advanced operators
import Cocoa

/**
====== Bitwise Operators ======

Bitwise operators enable you to manipulate the individual raw data bits withing a data structure
*/

/*
=== Bitwise NOT operator (~) ===
*/
let initialBits: UInt8 = 0b00001111
let invertedBits = ~initialBits // 11110000

/*
=== Bitwise AND operator (&) ===
*/
let firstSixBits: UInt8 = 0b11111100
let lastSixBits:UInt8 = 0b00111111
let middleFourBits = firstSixBits & lastSixBits // 00111100<commit_msg>Advanced Operators: Bitwise OR operator<commit_after>// Playground: Advanced operators
import Cocoa

/**
====== Bitwise Operators ======

Bitwise operators enable you to manipulate the individual raw data bits withing a data structure
*/

/*
=== Bitwise NOT operator (~) ===
*/
let initialBits: UInt8 = 0b00001111
let invertedBits = ~initialBits // 11110000

/*
=== Bitwise AND operator (&) ===
*/
let firstSixBits: UInt8 = 0b11111100
let lastSixBits:UInt8 = 0b00111111
let middleFourBits = firstSixBits & lastSixBits // 00111100

/*
=== Bitwise OR operator (|) ===
*/
let someBits: UInt8 = 0b10110010
let moreBits: UInt8 = 0b01011110
let combinedbits = someBits | moreBits // 11111110
{'fraction_non_alphanumeric': 0.12457912457912458, 'fraction_numerical': 0.10101010101010101, 'mean_word_length': 4.716346153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6015641', 'n_tokens_mistral': 466, 'n_tokens_neox': 360, 'n_words': 117}