<commit_before>//: Playground - noun: a place where people can play

import UIKit

print(1+2) // addition
print(5-3) // subtraction
print(2*3) // multiplication
print(4/2) // division
print(5%2) // residue

var value_operation1 = 3
print(++value_operation1)  // increment
print(value_operation1++)  // increment
value_operation1+=2; print(value_operation1) // increment
print(--value_operation1)  // decrement
print(value_operation1--)  // decrement
value_operation1-=3; print(value_operation1) // decrement

// Overflow operator
// It allows to overflow the value of a variable.
var value_operator2 = Int8.max
// print(value_operator2 + 1) // error: overflow
print(value_operator2 &+ 1) // OK: -128<commit_msg>swift_operator: add a code of conparsion operators<commit_after>//: Playground - noun: a place where people can play

import UIKit

print(1+2) // addition
print(5-3) // subtraction
print(2*3) // multiplication
print(4/2) // division
print(5%2) // residue

var value_operation1 = 3
print(++value_operation1)  // increment
print(value_operation1++)  // increment
value_operation1+=2; print(value_operation1) // increment
print(--value_operation1)  // decrement
print(value_operation1--)  // decrement
value_operation1-=3; print(value_operation1) // decrement


// Overflow operator
// It allows to overflow the value of a variable.
var value_operator2 = Int8.max
// print(value_operator2 + 1) // error: overflow
print(value_operator2 &+ 1) // OK: -128


// Conparsion operator
print(2 == 3)
print(2 != 3)
print(2 >  3)
print(2 <  3)
print(2 >= 3)
print(2 <= 3)

print(1 == "1")
print(nil == false)
print(0 == nil)

print(0 ==  false)
print(0 === false)
print(1 ==  true)
print(1 === true)
print(0 !=  false)
print(0 !== false)
print(1 !=  true)
print(1 !== true)
{'fraction_non_alphanumeric': 0.14963297571993225, 'fraction_numerical': 0.04799548277809147, 'mean_word_length': 4.211764705882353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'dir': 'git-commits-cleaned', 'id': '3952060', 'n_tokens_mistral': 624, 'n_tokens_neox': 598, 'n_words': 161}